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
|
---|---|---|---|---|---|
Formatting_Strings/What_day_is_today?.py | RKiddle/python_reg_expressions | 0 | 164755 | <reponame>RKiddle/python_reg_expressions<filename>Formatting_Strings/What_day_is_today?.py
# Import datetime
from datetime import datetime
# Assign date to get_date
get_date = datetime.now()
# Add named placeholders with format specifiers
message = "Good morning. Today is {today:%B %d, %Y}. It's {today:%H:%M} ... time to work!"
# Format date
print(message.format(today=get_date))
| [
1,
529,
276,
1112,
420,
29958,
29934,
29968,
2632,
29914,
4691,
29918,
1727,
29918,
17073,
1080,
29966,
9507,
29958,
2500,
23980,
29918,
26545,
29914,
5618,
29918,
3250,
29918,
275,
29918,
27765,
9808,
2272,
13,
29937,
16032,
12865,
29871,
13,
3166,
12865,
1053,
12865,
13,
13,
29937,
4007,
647,
2635,
304,
679,
29918,
1256,
13,
657,
29918,
1256,
353,
12865,
29889,
3707,
580,
13,
13,
29937,
3462,
4257,
2058,
8948,
414,
411,
3402,
1580,
14903,
13,
4906,
353,
376,
18420,
7250,
29889,
20628,
338,
426,
27765,
16664,
29933,
1273,
29881,
29892,
1273,
29979,
1836,
739,
29915,
29879,
426,
27765,
16664,
29950,
16664,
29924,
29913,
2023,
931,
304,
664,
3850,
13,
13,
29937,
19191,
2635,
13,
2158,
29898,
4906,
29889,
4830,
29898,
27765,
29922,
657,
29918,
1256,
876,
13,
2
] |
ripiu/djangocms_aoxomoxoa/admin/options/grid_panel.py | ripiu/djangocms_aoxomoxoa | 0 | 44283 | <filename>ripiu/djangocms_aoxomoxoa/admin/options/grid_panel.py
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
class GridPanelUniteOptionsAdmin(admin.ModelAdmin):
'''
Grid theme
'''
fieldsets = (
(_('Strip panel options'), {
'classes': ('collapse',),
'fields': (
'gridpanel_vertical_scroll',
'gridpanel_grid_align',
(
'gridpanel_padding_border_top',
'gridpanel_padding_border_bottom',
),
(
'gridpanel_padding_border_left',
'gridpanel_padding_border_right',
),
'gridpanel_arrows_skin',
('gridpanel_arrows_align_vert', 'gridpanel_arrows_align_hor',),
(
'gridpanel_arrows_padding_vert',
'gridpanel_arrows_padding_hor',
),
'gridpanel_space_between_arrows',
'gridpanel_arrows_always_on',
'gridpanel_enable_handle',
'gridpanel_handle_align',
'gridpanel_handle_offset',
'gridpanel_handle_skin',
'gridpanel_background_color',
'grid_panes_direction',
'grid_num_cols',
'grid_space_between_cols',
'grid_space_between_rows',
'grid_transition_duration',
'grid_transition_easing',
'grid_carousel',
)
}),
)
| [
1,
529,
9507,
29958,
374,
1631,
29884,
29914,
19776,
574,
542,
1516,
29918,
29874,
2251,
290,
2251,
19807,
29914,
6406,
29914,
6768,
29914,
7720,
29918,
15119,
29889,
2272,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
318,
657,
726,
29918,
433,
1537,
408,
903,
13,
13,
13,
1990,
11657,
7490,
2525,
568,
5856,
12754,
29898,
6406,
29889,
3195,
12754,
1125,
13,
1678,
14550,
13,
1678,
11657,
10929,
13,
1678,
14550,
13,
1678,
1746,
7224,
353,
313,
13,
4706,
9423,
877,
855,
6472,
9451,
3987,
5477,
426,
13,
9651,
525,
13203,
2396,
6702,
27756,
742,
511,
13,
9651,
525,
9621,
2396,
313,
13,
18884,
525,
7720,
15119,
29918,
18575,
29918,
10510,
742,
13,
18884,
525,
7720,
15119,
29918,
7720,
29918,
2520,
742,
13,
18884,
313,
13,
462,
1678,
525,
7720,
15119,
29918,
12791,
29918,
11466,
29918,
3332,
742,
13,
462,
1678,
525,
7720,
15119,
29918,
12791,
29918,
11466,
29918,
8968,
742,
13,
18884,
10353,
13,
18884,
313,
13,
462,
1678,
525,
7720,
15119,
29918,
12791,
29918,
11466,
29918,
1563,
742,
13,
462,
1678,
525,
7720,
15119,
29918,
12791,
29918,
11466,
29918,
1266,
742,
13,
18884,
10353,
13,
13,
18884,
525,
7720,
15119,
29918,
2936,
29879,
29918,
808,
262,
742,
13,
18884,
6702,
7720,
15119,
29918,
2936,
29879,
29918,
2520,
29918,
1765,
742,
525,
7720,
15119,
29918,
2936,
29879,
29918,
2520,
29918,
2015,
742,
511,
13,
18884,
313,
13,
462,
1678,
525,
7720,
15119,
29918,
2936,
29879,
29918,
12791,
29918,
1765,
742,
13,
462,
1678,
525,
7720,
15119,
29918,
2936,
29879,
29918,
12791,
29918,
2015,
742,
13,
18884,
10353,
13,
13,
18884,
525,
7720,
15119,
29918,
3493,
29918,
14811,
29918,
2936,
29879,
742,
13,
18884,
525,
7720,
15119,
29918,
2936,
29879,
29918,
21936,
29918,
265,
742,
13,
13,
18884,
525,
7720,
15119,
29918,
12007,
29918,
8411,
742,
13,
18884,
525,
7720,
15119,
29918,
8411,
29918,
2520,
742,
13,
18884,
525,
7720,
15119,
29918,
8411,
29918,
10289,
742,
13,
18884,
525,
7720,
15119,
29918,
8411,
29918,
808,
262,
742,
13,
13,
18884,
525,
7720,
15119,
29918,
7042,
29918,
2780,
742,
13,
13,
18884,
525,
7720,
29918,
8357,
267,
29918,
20845,
742,
13,
18884,
525,
7720,
29918,
1949,
29918,
22724,
742,
13,
18884,
525,
7720,
29918,
3493,
29918,
14811,
29918,
22724,
742,
13,
18884,
525,
7720,
29918,
3493,
29918,
14811,
29918,
5727,
742,
13,
18884,
525,
7720,
29918,
20543,
29918,
19708,
742,
13,
18884,
525,
7720,
29918,
20543,
29918,
29872,
5832,
742,
13,
18884,
525,
7720,
29918,
4287,
21299,
742,
13,
9651,
1723,
13,
4706,
500,
511,
13,
1678,
1723,
13,
2
] |
p_030_039/problem31.py | ericgreveson/projecteuler | 0 | 3235 | <gh_stars>0
class CoinArray(list):
"""
Coin list that is hashable for storage in sets
The 8 entries are [1p count, 2p count, 5p count, ... , 200p count]
"""
def __hash__(self):
"""
Hash this as a string
"""
return hash(" ".join([str(i) for i in self]))
def main():
"""
Entry point
"""
# Important: sorted smallest to largest
coins = [1, 2, 5, 10, 20, 50, 100, 200]
coin_index = {coin: index for index, coin in enumerate(coins)}
# How many ways are there of making each number from 1 to 200 from these values?
# Building up from 1 means we can re-use earlier results
# e.g.:
# 1p: [{1}]
# 2p: [{1,1}, {2}]
# 3p: [{1,1,1}, {2,1}]
# 4p: [{1,1,1,1}, {2,1,1}, {2,2}]
# etc
way_sets = [None]
for i in range(1, 201):
way_set_i = set()
# Try using 1 of each coin and then all the ways of the remainder, if > 0
for coin in coins:
remainder = i - coin
if remainder == 0:
# We can make this with exactly this coin alone - but no larger coins
coin_count = [0 for i in coins]
coin_count[coin_index[coin]] = 1
way_set_i.add(CoinArray(coin_count))
break
elif remainder > 0:
# We can use this coin and whatever the options for the smaller value are
for rem_list in way_sets[remainder]:
new_coin_count = [c for c in rem_list]
new_coin_count[coin_index[coin]] += 1
way_set_i.add(CoinArray(new_coin_count))
else:
# Can't use any bigger coins
break
way_sets.append(way_set_i)
print(f"Number of ways of making £2: {len(way_sets[200])}")
return
if __name__ == "__main__":
main()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
1990,
3189,
262,
2588,
29898,
1761,
1125,
13,
1678,
9995,
13,
1678,
3189,
262,
1051,
393,
338,
6608,
519,
363,
8635,
297,
6166,
13,
1678,
450,
29871,
29947,
9976,
526,
518,
29896,
29886,
2302,
29892,
29871,
29906,
29886,
2302,
29892,
29871,
29945,
29886,
2302,
29892,
2023,
1919,
29871,
29906,
29900,
29900,
29886,
2302,
29962,
13,
1678,
9995,
13,
1678,
822,
4770,
8568,
12035,
1311,
1125,
13,
4706,
9995,
13,
4706,
11874,
445,
408,
263,
1347,
13,
4706,
9995,
13,
4706,
736,
6608,
703,
11393,
7122,
4197,
710,
29898,
29875,
29897,
363,
474,
297,
1583,
12622,
13,
13,
1753,
1667,
7295,
13,
1678,
9995,
13,
1678,
28236,
1298,
13,
1678,
9995,
13,
1678,
396,
16032,
424,
29901,
12705,
19087,
304,
10150,
13,
1678,
1302,
1144,
353,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29945,
29892,
29871,
29896,
29900,
29892,
29871,
29906,
29900,
29892,
29871,
29945,
29900,
29892,
29871,
29896,
29900,
29900,
29892,
29871,
29906,
29900,
29900,
29962,
13,
1678,
19480,
29918,
2248,
353,
426,
1111,
262,
29901,
2380,
363,
2380,
29892,
19480,
297,
26985,
29898,
1111,
1144,
2915,
13,
268,
13,
1678,
396,
1128,
1784,
5837,
526,
727,
310,
3907,
1269,
1353,
515,
29871,
29896,
304,
29871,
29906,
29900,
29900,
515,
1438,
1819,
29973,
13,
1678,
396,
17166,
701,
515,
29871,
29896,
2794,
591,
508,
337,
29899,
1509,
8859,
2582,
13,
1678,
396,
321,
29889,
29887,
4898,
13,
1678,
396,
29871,
29896,
29886,
29901,
15974,
29896,
6525,
13,
1678,
396,
29871,
29906,
29886,
29901,
15974,
29896,
29892,
29896,
1118,
426,
29906,
6525,
13,
1678,
396,
29871,
29941,
29886,
29901,
15974,
29896,
29892,
29896,
29892,
29896,
1118,
426,
29906,
29892,
29896,
6525,
13,
1678,
396,
29871,
29946,
29886,
29901,
15974,
29896,
29892,
29896,
29892,
29896,
29892,
29896,
1118,
426,
29906,
29892,
29896,
29892,
29896,
1118,
426,
29906,
29892,
29906,
6525,
13,
1678,
396,
2992,
13,
1678,
982,
29918,
7224,
353,
518,
8516,
29962,
13,
1678,
363,
474,
297,
3464,
29898,
29896,
29892,
29871,
29906,
29900,
29896,
1125,
13,
4706,
982,
29918,
842,
29918,
29875,
353,
731,
580,
13,
13,
4706,
396,
3967,
773,
29871,
29896,
310,
1269,
19480,
322,
769,
599,
278,
5837,
310,
278,
21162,
29892,
565,
1405,
29871,
29900,
13,
4706,
363,
19480,
297,
1302,
1144,
29901,
13,
9651,
21162,
353,
474,
448,
19480,
13,
13,
9651,
565,
21162,
1275,
29871,
29900,
29901,
13,
18884,
396,
1334,
508,
1207,
445,
411,
3721,
445,
19480,
7432,
448,
541,
694,
7200,
1302,
1144,
13,
18884,
19480,
29918,
2798,
353,
518,
29900,
363,
474,
297,
1302,
1144,
29962,
13,
18884,
19480,
29918,
2798,
29961,
1111,
262,
29918,
2248,
29961,
1111,
262,
5262,
353,
29871,
29896,
13,
18884,
982,
29918,
842,
29918,
29875,
29889,
1202,
29898,
7967,
262,
2588,
29898,
1111,
262,
29918,
2798,
876,
13,
18884,
2867,
13,
9651,
25342,
21162,
1405,
29871,
29900,
29901,
13,
18884,
396,
1334,
508,
671,
445,
19480,
322,
6514,
278,
3987,
363,
278,
7968,
995,
526,
13,
18884,
363,
1083,
29918,
1761,
297,
982,
29918,
7224,
29961,
1745,
475,
672,
5387,
13,
462,
1678,
716,
29918,
1111,
262,
29918,
2798,
353,
518,
29883,
363,
274,
297,
1083,
29918,
1761,
29962,
13,
462,
1678,
716,
29918,
1111,
262,
29918,
2798,
29961,
1111,
262,
29918,
2248,
29961,
1111,
262,
5262,
4619,
29871,
29896,
13,
462,
1678,
982,
29918,
842,
29918,
29875,
29889,
1202,
29898,
7967,
262,
2588,
29898,
1482,
29918,
1111,
262,
29918,
2798,
876,
13,
9651,
1683,
29901,
13,
18884,
396,
1815,
29915,
29873,
671,
738,
16600,
1302,
1144,
13,
18884,
2867,
13,
13,
4706,
982,
29918,
7224,
29889,
4397,
29898,
1582,
29918,
842,
29918,
29875,
29897,
13,
13,
1678,
1596,
29898,
29888,
29908,
4557,
310,
5837,
310,
3907,
15151,
29906,
29901,
426,
2435,
29898,
1582,
29918,
7224,
29961,
29906,
29900,
29900,
2314,
27195,
13,
1678,
736,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1667,
580,
13,
2
] |
scanpy/tools/paga.py | LuckyMD/scanpy | 0 | 31033 | from collections import namedtuple
import numpy as np
import scipy as sp
from scipy.sparse.csgraph import minimum_spanning_tree
from .. import logging as logg
from ..neighbors import Neighbors
from .. import utils
from .. import settings
def paga(
adata,
groups='louvain',
use_rna_velocity=False,
copy=False):
"""\
Generate cellular maps of differentiation manifolds with complex
topologies [Wolf17i]_.
Partition-based graph abstraction (PAGA) quantifies the connectivities of
partitions of a neighborhood graph of single cells, thereby generating a
much simpler abstracted graph whose nodes label the partitions. Together
with a random walk-based distance measure, this generates a partial
coordinatization of data useful for exploring and explaining its variation.
Parameters
----------
adata : :class:`~scanpy.api.AnnData`
Annotated data matrix.
groups : categorical annotation of observations or 'louvain_groups', optional (default: 'louvain_groups')
Criterion to determine the resulting partitions of the single-cell
graph. 'louvain_groups' uses the Louvain algorithm and optimizes
modularity of the graph. You can also pass your predefined groups by
choosing any categorical annotation of observations (`adata.obs`).
use_rna_velocity : `bool` (default: `False`)
Use RNA velocity to orient edges in the abstracted graph and estimate transitions.
copy : `bool`, optional (default: `False`)
Copy `adata` before computation and return a copy. Otherwise, perform
computation inplace and return `None`.
Returns
-------
Returns or updates `adata` depending on `copy` with
connectivities : np.ndarray (adata.uns['connectivities'])
The full adjacency matrix of the abstracted graph, weights
correspond to connectivities.
confidence : np.ndarray (adata.uns['confidence'])
The full adjacency matrix of the abstracted graph, weights
correspond to confidence in the presence of an edge.
confidence_tree : sc.sparse csr matrix (adata.uns['confidence_tree'])
The adjacency matrix of the tree-like subgraph that best explains
the topology.
"""
if 'neighbors' not in adata.uns:
raise ValueError(
'You need to run `pp.neighbors` first to compute a neighborhood graph.')
adata = adata.copy() if copy else adata
utils.sanitize_anndata(adata)
logg.info('running partition-based graph abstraction (PAGA)', reset=True)
paga = PAGA(adata, groups, use_rna_velocity=use_rna_velocity)
paga.compute()
# only add if not present
if 'paga' not in adata.uns:
adata.uns['paga'] = {}
if not use_rna_velocity:
adata.uns['paga']['connectivities'] = paga.connectivities_coarse
adata.uns['paga']['confidence'] = paga.confidence
adata.uns['paga']['confidence_tree'] = paga.confidence_tree
adata.uns[groups + '_sizes'] = np.array(paga.vc.sizes())
else:
adata.uns['paga']['transitions_confidence'] = paga.transitions_confidence
adata.uns['paga']['transitions_ttest'] = paga.transitions_ttest
adata.uns['paga']['groups'] = groups
logg.info(' finished', time=True, end=' ' if settings.verbosity > 2 else '\n')
if use_rna_velocity:
logg.hint(
'added\n'
' \'paga/transitions_confidence\', confidence adjacency (adata.uns)\n'
' \'paga/transitions_ttest\', confidence subtree (adata.uns)')
else:
logg.hint(
'added\n'
' \'paga/connectivities\', connectivities adjacency (adata.uns)\n'
' \'paga/confidence\', confidence adjacency (adata.uns)\n'
' \'paga/confidence_tree\', confidence subtree (adata.uns)')
return adata if copy else None
class PAGA(Neighbors):
def __init__(self, adata, groups, use_rna_velocity=False,
tree_based_confidence=False):
super(PAGA, self).__init__(adata)
self._groups = groups
self._tree_based_confidence = tree_based_confidence
self._use_rna_velocity = use_rna_velocity
def compute(self):
if self._use_rna_velocity:
self.compute_transitions_coarse()
else:
self.compute_connectivities_coarse()
self.compute_confidence()
def compute_connectivities_coarse(self):
import igraph
ones = self.connectivities.copy()
# graph where edges carry weight 1
ones.data = np.ones(len(ones.data))
g = utils.get_igraph_from_adjacency(ones)
self.vc = igraph.VertexClustering(
g, membership=self._adata.obs[self._groups].cat.codes.values)
cg = self.vc.cluster_graph(combine_edges='sum')
self.connectivities_coarse = utils.get_sparse_from_igraph(cg, weight_attr='weight')/2
def compute_confidence(self):
"""Translates the connectivities_coarse measure into a confidence measure.
"""
pseudo_distance = self.connectivities_coarse.copy()
pseudo_distance.data = 1./pseudo_distance.data
connectivities_coarse_tree = minimum_spanning_tree(pseudo_distance)
connectivities_coarse_tree.data = 1./connectivities_coarse_tree.data
connectivities_coarse_tree_indices = [
connectivities_coarse_tree[i].nonzero()[1]
for i in range(connectivities_coarse_tree.shape[0])]
# inter- and intra-cluster based confidence
if not self._tree_based_confidence:
total_n = self.n_neighbors * np.array(self.vc.sizes())
maximum = self.connectivities_coarse.max()
confidence = self.connectivities_coarse.copy() # initializing
for i in range(self.connectivities_coarse.shape[0]):
for j in range(i+1, self.connectivities_coarse.shape[1]):
if self.connectivities_coarse[i, j] > 0:
geom_mean = np.sqrt(total_n[i] * total_n[j])
confidence[i, j] = self.connectivities_coarse[i, j] / geom_mean
confidence[j, i] = confidence[i, j]
# tree-based confidence
else:
median_connectivities_coarse_tree = np.median(connectivities_coarse_tree.data)
confidence = self.connectivities_coarse.copy()
confidence.data[self.connectivities_coarse.data >= median_connectivities_coarse_tree] = 1
connectivities_coarse_adjusted = self.connectivities_coarse.copy()
connectivities_coarse_adjusted.data -= median_connectivities_coarse_tree
connectivities_coarse_adjusted.data = np.exp(connectivities_coarse_adjusted.data)
index = self.connectivities_coarse.data < median_connectivities_coarse_tree
confidence.data[index] = connectivities_coarse_adjusted.data[index]
confidence_tree = self.compute_confidence_tree(
confidence, connectivities_coarse_tree_indices)
self.confidence = confidence
self.confidence_tree = confidence_tree
def compute_confidence_tree(
self, confidence, connectivities_coarse_tree_indices):
confidence_tree = sp.sparse.lil_matrix(confidence.shape, dtype=float)
for i, neighbors in enumerate(connectivities_coarse_tree_indices):
if len(neighbors) > 0:
confidence_tree[i, neighbors] = confidence[i, neighbors]
return confidence_tree.tocsr()
def compute_transitions_coarse(self):
# analogous code using networkx
# membership = adata.obs['clusters'].cat.codes.tolist()
# partition = defaultdict(list)
# for n, p in zip(list(range(len(G))), membership):
# partition[p].append(n)
# partition = partition.values()
# g_abstracted = nx.quotient_graph(g, partition, relabel=True)
# for some reason, though, edges aren't oriented in the quotient
# graph...
import igraph
g = utils.get_igraph_from_adjacency(
self._adata.uns['velocyto_transitions'], directed=True)
vc = igraph.VertexClustering(
g, membership=self._adata.obs[self._groups].cat.codes.values)
cg_full = vc.cluster_graph(combine_edges=False)
g_bool = utils.get_igraph_from_adjacency(
self._adata.uns['velocyto_transitions'].astype('bool'), directed=True)
vc_bool = igraph.VertexClustering(
g_bool, membership=self._adata.obs[self._groups].cat.codes.values)
cg_bool = vc_bool.cluster_graph(combine_edges='sum') # collapsed version
transitions_coarse = utils.get_sparse_from_igraph(cg_bool, weight_attr='weight')
# translate this into a confidence measure
# the number of outgoing edges
# total_n = np.zeros(len(vc.sizes()))
# # (this is not the convention of standard stochastic matrices)
# total_outgoing = transitions_coarse.sum(axis=1)
# for i in range(len(total_n)):
# total_n[i] = vc.subgraph(i).ecount()
# total_n[i] += total_outgoing[i, 0]
# use the topology based reference, the velocity one might have very small numbers
total_n = self.n_neighbors * np.array(vc_bool.sizes())
transitions_ttest = transitions_coarse.copy()
transitions_confidence = transitions_coarse.copy()
from scipy.stats import ttest_1samp
for i in range(transitions_coarse.shape[0]):
# no symmetry in transitions_coarse, hence we should not restrict to
# upper triangle
neighbors = transitions_coarse[i].nonzero()[1]
for j in neighbors:
forward = cg_full.es.select(_source=i, _target=j)['weight']
backward = cg_full.es.select(_source=j, _target=i)['weight']
# backward direction: add minus sign
values = np.array(list(forward) + list(-np.array(backward)))
# require some minimal number of observations
if len(values) < 5:
transitions_ttest[i, j] = 0
transitions_ttest[j, i] = 0
transitions_confidence[i, j] = 0
transitions_confidence[j, i] = 0
continue
t, prob = ttest_1samp(values, 0.0)
if t > 0:
# number of outgoing edges greater than number of ingoing edges
# i.e., transition from i to j
transitions_ttest[i, j] = -np.log10(max(prob, 1e-10))
transitions_ttest[j, i] = 0
else:
transitions_ttest[j, i] = -np.log10(max(prob, 1e-10))
transitions_ttest[i, j] = 0
# geom_mean
geom_mean = np.sqrt(total_n[i] * total_n[j])
diff = (len(forward) - len(backward)) / geom_mean
if diff > 0:
transitions_confidence[i, j] = diff
transitions_confidence[j, i] = 0
else:
transitions_confidence[j, i] = -diff
transitions_confidence[i, j] = 0
transitions_ttest.eliminate_zeros()
transitions_confidence.eliminate_zeros()
# transpose in order to match convention of stochastic matrices
# entry ij means transition from j to i
self.transitions_ttest = transitions_ttest.T
self.transitions_confidence = transitions_confidence.T
def paga_degrees(adata):
"""Compute the degree of each node in the abstracted graph.
Parameters
----------
adata : AnnData
Annotated data matrix.
Returns
-------
degrees : list
List of degrees for each node.
"""
import networkx as nx
g = nx.Graph(adata.uns['paga']['confidence'])
degrees = [d for _, d in g.degree(weight='weight')]
return degrees
def paga_expression_entropies(adata):
"""Compute the median expression entropy for each node-group.
Parameters
----------
adata : AnnData
Annotated data matrix.
Returns
-------
entropies : list
Entropies of median expressions for each node.
"""
from scipy.stats import entropy
groups_order, groups_masks = utils.select_groups(
adata, key=adata.uns['paga']['groups'])
entropies = []
for mask in groups_masks:
X_mask = adata.X[mask]
x_median = np.median(X_mask, axis=0)
x_probs = (x_median - np.min(x_median)) / (np.max(x_median) - np.min(x_median))
entropies.append(entropy(x_probs))
return entropies
def paga_compare_paths(adata1, adata2,
adjacency_key='confidence', adjacency_key2=None):
"""Compare paths in abstracted graphs in two datasets.
Compute the fraction of consistent paths between leafs, a measure for the
topological similarity between graphs.
By increasing the verbosity to level 4 and 5, the paths that do not agree
and the paths that agree are written to the output, respectively.
The PAGA "groups key" needs to be the same in both objects.
Parameters
----------
adata1, adata2 : AnnData
Annotated data matrices to compare.
adjacency_key : str
Key for indexing the adjacency matrices in `.uns['paga']` to be used in
adata1 and adata2.
adjacency_key2 : str, None
If provided, used for adata2.
Returns
-------
OrderedTuple with attributes ``n_steps`` (total number of steps in paths)
and ``frac_steps`` (fraction of consistent steps), ``n_paths`` and
``frac_paths``.
"""
import networkx as nx
g1 = nx.Graph(adata1.uns['paga'][adjacency_key])
g2 = nx.Graph(adata2.uns['paga'][adjacency_key2 if adjacency_key2 is not None else adjacency_key])
leaf_nodes1 = [str(x) for x in g1.nodes() if g1.degree(x) == 1]
logg.msg('leaf nodes in graph 1: {}'.format(leaf_nodes1), v=5, no_indent=True)
paga_groups = adata1.uns['paga']['groups']
asso_groups1 = utils.identify_groups(adata1.obs[paga_groups].values,
adata2.obs[paga_groups].values)
asso_groups2 = utils.identify_groups(adata2.obs[paga_groups].values,
adata1.obs[paga_groups].values)
orig_names1 = adata1.obs[paga_groups].cat.categories
orig_names2 = adata2.obs[paga_groups].cat.categories
import itertools
n_steps = 0
n_agreeing_steps = 0
n_paths = 0
n_agreeing_paths = 0
# loop over all pairs of leaf nodes in the reference adata1
for (r, s) in itertools.combinations(leaf_nodes1, r=2):
r2, s2 = asso_groups1[r][0], asso_groups1[s][0]
orig_names = [orig_names1[int(i)] for i in [r, s]]
orig_names += [orig_names2[int(i)] for i in [r2, s2]]
logg.msg('compare shortest paths between leafs ({}, {}) in graph1 and ({}, {}) in graph2:'
.format(*orig_names), v=4, no_indent=True)
no_path1 = False
try:
path1 = [str(x) for x in nx.shortest_path(g1, int(r), int(s))]
except nx.NetworkXNoPath:
no_path1 = True
no_path2 = False
try:
path2 = [str(x) for x in nx.shortest_path(g2, int(r2), int(s2))]
except nx.NetworkXNoPath:
no_path2 = True
if no_path1 and no_path2:
# consistent behavior
n_paths += 1
n_agreeing_paths += 1
n_steps += 1
n_agreeing_steps += 1
logg.msg('there are no connecting paths in both graphs', v=5, no_indent=True)
continue
elif no_path1 or no_path2:
# non-consistent result
n_paths += 1
n_steps += 1
continue
if len(path1) >= len(path2):
path_mapped = [asso_groups1[l] for l in path1]
path_compare = path2
path_compare_id = 2
path_compare_orig_names = [[orig_names2[int(s)] for s in l] for l in path_compare]
path_mapped_orig_names = [[orig_names2[int(s)] for s in l] for l in path_mapped]
else:
path_mapped = [asso_groups2[l] for l in path2]
path_compare = path1
path_compare_id = 1
path_compare_orig_names = [[orig_names1[int(s)] for s in l] for l in path_compare]
path_mapped_orig_names = [[orig_names1[int(s)] for s in l] for l in path_mapped]
n_agreeing_steps_path = 0
ip_progress = 0
for il, l in enumerate(path_compare[:-1]):
for ip, p in enumerate(path_mapped):
if ip >= ip_progress and l in p:
# check whether we can find the step forward of path_compare in path_mapped
if (ip + 1 < len(path_mapped)
and
path_compare[il + 1] in path_mapped[ip + 1]):
# make sure that a step backward leads us to the same value of l
# in case we "jumped"
logg.msg('found matching step ({} -> {}) at position {} in path{} and position {} in path_mapped'
.format(l, path_compare_orig_names[il + 1], il, path_compare_id, ip), v=6)
consistent_history = True
for iip in range(ip, ip_progress, -1):
if l not in path_mapped[iip - 1]:
consistent_history = False
if consistent_history:
# here, we take one step further back (ip_progress - 1); it's implied that this
# was ok in the previous step
logg.msg(' step(s) backward to position(s) {} in path_mapped are fine, too: valid step'
.format(list(range(ip - 1, ip_progress - 2, -1))), v=6)
n_agreeing_steps_path += 1
ip_progress = ip + 1
break
n_steps_path = len(path_compare) - 1
n_agreeing_steps += n_agreeing_steps_path
n_steps += n_steps_path
n_paths += 1
if n_agreeing_steps_path == n_steps_path: n_agreeing_paths += 1
# only for the output, use original names
path1_orig_names = [orig_names1[int(s)] for s in path1]
path2_orig_names = [orig_names2[int(s)] for s in path2]
logg.msg(' path1 = {},\n'
'path_mapped = {},\n'
' path2 = {},\n'
'-> n_agreeing_steps = {} / n_steps = {}.'
.format(path1_orig_names,
[list(p) for p in path_mapped_orig_names],
path2_orig_names,
n_agreeing_steps_path, n_steps_path), v=5, no_indent=True)
Result = namedtuple('paga_compare_paths_result',
['frac_steps', 'n_steps', 'frac_paths', 'n_paths'])
return Result(frac_steps=n_agreeing_steps/n_steps if n_steps > 0 else np.nan,
n_steps=n_steps if n_steps > 0 else np.nan,
frac_paths=n_agreeing_paths/n_paths if n_steps > 0 else np.nan,
n_paths=n_paths if n_steps > 0 else np.nan)
| [
1,
515,
16250,
1053,
4257,
23583,
13,
5215,
12655,
408,
7442,
13,
5215,
4560,
2272,
408,
805,
13,
3166,
4560,
2272,
29889,
29879,
5510,
29889,
2395,
4262,
1053,
9212,
29918,
1028,
9450,
29918,
8336,
13,
3166,
6317,
1053,
12183,
408,
1480,
29887,
13,
3166,
6317,
484,
1141,
29890,
943,
1053,
2448,
1141,
29890,
943,
13,
3166,
6317,
1053,
3667,
29879,
13,
3166,
6317,
1053,
6055,
13,
13,
13,
1753,
282,
7781,
29898,
13,
4706,
594,
532,
29892,
13,
4706,
6471,
2433,
29880,
5128,
475,
742,
13,
4706,
671,
29918,
29878,
1056,
29918,
955,
25245,
29922,
8824,
29892,
13,
4706,
3509,
29922,
8824,
1125,
13,
1678,
9995,
29905,
13,
1678,
3251,
403,
3038,
1070,
11053,
310,
1422,
11685,
14682,
3361,
411,
4280,
13,
1678,
2246,
11763,
518,
29956,
4369,
29896,
29955,
29875,
29962,
5396,
13,
13,
1678,
3455,
654,
29899,
6707,
3983,
27086,
428,
313,
7228,
12739,
29897,
4323,
11057,
278,
4511,
440,
1907,
310,
13,
1678,
23629,
310,
263,
18403,
3983,
310,
2323,
9101,
29892,
27999,
14655,
263,
13,
1678,
1568,
13682,
9846,
287,
3983,
5069,
7573,
3858,
278,
23629,
29889,
323,
12966,
13,
1678,
411,
263,
4036,
6686,
29899,
6707,
5418,
5645,
29892,
445,
16785,
263,
7687,
13,
1678,
6615,
271,
2133,
310,
848,
5407,
363,
3902,
8253,
322,
24232,
967,
19262,
29889,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
594,
532,
584,
584,
1990,
18078,
30022,
16192,
2272,
29889,
2754,
29889,
2744,
29876,
1469,
29952,
13,
4706,
530,
1333,
630,
848,
4636,
29889,
13,
1678,
6471,
584,
11608,
936,
17195,
310,
13917,
470,
525,
29880,
5128,
475,
29918,
13155,
742,
13136,
313,
4381,
29901,
525,
29880,
5128,
475,
29918,
13155,
1495,
13,
4706,
315,
5385,
291,
304,
8161,
278,
9819,
23629,
310,
278,
2323,
29899,
3729,
13,
4706,
3983,
29889,
525,
29880,
5128,
475,
29918,
13155,
29915,
3913,
278,
4562,
29894,
475,
5687,
322,
5994,
7093,
13,
4706,
878,
1070,
537,
310,
278,
3983,
29889,
887,
508,
884,
1209,
596,
758,
12119,
6471,
491,
13,
4706,
23906,
738,
11608,
936,
17195,
310,
13917,
6695,
7221,
29889,
26290,
12913,
13,
1678,
671,
29918,
29878,
1056,
29918,
955,
25245,
584,
421,
11227,
29952,
313,
4381,
29901,
421,
8824,
6348,
13,
4706,
4803,
390,
3521,
12885,
304,
7769,
12770,
297,
278,
9846,
287,
3983,
322,
12678,
1301,
2187,
29889,
13,
1678,
3509,
584,
421,
11227,
1673,
13136,
313,
4381,
29901,
421,
8824,
6348,
13,
4706,
14187,
421,
7221,
29952,
1434,
16287,
322,
736,
263,
3509,
29889,
13466,
29892,
2189,
13,
4706,
16287,
297,
6689,
322,
736,
421,
8516,
1412,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
16969,
470,
11217,
421,
7221,
29952,
8679,
373,
421,
8552,
29952,
411,
13,
1678,
4511,
440,
1907,
584,
7442,
29889,
299,
2378,
313,
7221,
29889,
6948,
1839,
6915,
440,
1907,
11287,
13,
4706,
450,
2989,
12109,
562,
3819,
4636,
310,
278,
9846,
287,
3983,
29892,
18177,
13,
4706,
3928,
304,
4511,
440,
1907,
29889,
13,
1678,
16420,
584,
7442,
29889,
299,
2378,
313,
7221,
29889,
6948,
1839,
5527,
5084,
11287,
13,
4706,
450,
2989,
12109,
562,
3819,
4636,
310,
278,
9846,
287,
3983,
29892,
18177,
13,
4706,
3928,
304,
16420,
297,
278,
10122,
310,
385,
7636,
29889,
13,
1678,
16420,
29918,
8336,
584,
885,
29889,
29879,
5510,
5939,
29878,
4636,
313,
7221,
29889,
6948,
1839,
5527,
5084,
29918,
8336,
11287,
13,
4706,
450,
12109,
562,
3819,
4636,
310,
278,
5447,
29899,
4561,
1014,
4262,
393,
1900,
18568,
13,
4706,
278,
20159,
29889,
13,
1678,
9995,
13,
1678,
565,
525,
484,
1141,
29890,
943,
29915,
451,
297,
594,
532,
29889,
6948,
29901,
13,
4706,
12020,
7865,
2392,
29898,
13,
9651,
525,
3492,
817,
304,
1065,
421,
407,
29889,
484,
1141,
29890,
943,
29952,
937,
304,
10272,
263,
18403,
3983,
29889,
1495,
13,
1678,
594,
532,
353,
594,
532,
29889,
8552,
580,
565,
3509,
1683,
594,
532,
13,
1678,
3667,
29879,
29889,
28455,
277,
675,
29918,
273,
299,
532,
29898,
7221,
29897,
13,
1678,
1480,
29887,
29889,
3888,
877,
21094,
8877,
29899,
6707,
3983,
27086,
428,
313,
7228,
12739,
29897,
742,
10092,
29922,
5574,
29897,
13,
1678,
282,
7781,
353,
349,
10051,
29909,
29898,
7221,
29892,
6471,
29892,
671,
29918,
29878,
1056,
29918,
955,
25245,
29922,
1509,
29918,
29878,
1056,
29918,
955,
25245,
29897,
13,
1678,
282,
7781,
29889,
26017,
580,
13,
1678,
396,
871,
788,
565,
451,
2198,
13,
1678,
565,
525,
29886,
7781,
29915,
451,
297,
594,
532,
29889,
6948,
29901,
13,
4706,
594,
532,
29889,
6948,
1839,
29886,
7781,
2033,
353,
6571,
13,
1678,
565,
451,
671,
29918,
29878,
1056,
29918,
955,
25245,
29901,
13,
4706,
594,
532,
29889,
6948,
1839,
29886,
7781,
16215,
6915,
440,
1907,
2033,
353,
282,
7781,
29889,
6915,
440,
1907,
29918,
1111,
7989,
13,
4706,
594,
532,
29889,
6948,
1839,
29886,
7781,
16215,
5527,
5084,
2033,
353,
282,
7781,
29889,
5527,
5084,
13,
4706,
594,
532,
29889,
6948,
1839,
29886,
7781,
16215,
5527,
5084,
29918,
8336,
2033,
353,
282,
7781,
29889,
5527,
5084,
29918,
8336,
13,
4706,
594,
532,
29889,
6948,
29961,
13155,
718,
22868,
29879,
7093,
2033,
353,
7442,
29889,
2378,
29898,
29886,
7781,
29889,
7071,
29889,
29879,
7093,
3101,
13,
1678,
1683,
29901,
13,
4706,
594,
532,
29889,
6948,
1839,
29886,
7781,
16215,
3286,
2187,
29918,
5527,
5084,
2033,
353,
282,
7781,
29889,
3286,
2187,
29918,
5527,
5084,
13,
4706,
594,
532,
29889,
6948,
1839,
29886,
7781,
16215,
3286,
2187,
29918,
698,
342,
2033,
353,
282,
7781,
29889,
3286,
2187,
29918,
698,
342,
13,
1678,
594,
532,
29889,
6948,
1839,
29886,
7781,
16215,
13155,
2033,
353,
6471,
13,
1678,
1480,
29887,
29889,
3888,
877,
1678,
7743,
742,
931,
29922,
5574,
29892,
1095,
2433,
525,
565,
6055,
29889,
18248,
359,
537,
1405,
29871,
29906,
1683,
11297,
29876,
1495,
13,
1678,
565,
671,
29918,
29878,
1056,
29918,
955,
25245,
29901,
13,
4706,
1480,
29887,
29889,
29882,
524,
29898,
13,
9651,
525,
23959,
29905,
29876,
29915,
13,
9651,
525,
1678,
320,
29915,
29886,
7781,
29914,
3286,
2187,
29918,
5527,
5084,
29905,
742,
16420,
12109,
562,
3819,
313,
7221,
29889,
6948,
2144,
29876,
29915,
13,
9651,
525,
1678,
320,
29915,
29886,
7781,
29914,
3286,
2187,
29918,
698,
342,
29905,
742,
16420,
1014,
8336,
313,
7221,
29889,
6948,
29897,
1495,
13,
1678,
1683,
29901,
13,
4706,
1480,
29887,
29889,
29882,
524,
29898,
13,
9651,
525,
23959,
29905,
29876,
29915,
13,
9651,
525,
1678,
320,
29915,
29886,
7781,
29914,
6915,
440,
1907,
29905,
742,
4511,
440,
1907,
12109,
562,
3819,
313,
7221,
29889,
6948,
2144,
29876,
29915,
13,
9651,
525,
1678,
320,
29915,
29886,
7781,
29914,
5527,
5084,
29905,
742,
16420,
12109,
562,
3819,
313,
7221,
29889,
6948,
2144,
29876,
29915,
13,
9651,
525,
1678,
320,
29915,
29886,
7781,
29914,
5527,
5084,
29918,
8336,
29905,
742,
16420,
1014,
8336,
313,
7221,
29889,
6948,
29897,
1495,
13,
1678,
736,
594,
532,
565,
3509,
1683,
6213,
13,
13,
13,
1990,
349,
10051,
29909,
29898,
8139,
1141,
29890,
943,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
594,
532,
29892,
6471,
29892,
671,
29918,
29878,
1056,
29918,
955,
25245,
29922,
8824,
29892,
13,
462,
5447,
29918,
6707,
29918,
5527,
5084,
29922,
8824,
1125,
13,
4706,
2428,
29898,
7228,
12739,
29892,
1583,
467,
1649,
2344,
12035,
7221,
29897,
13,
4706,
1583,
3032,
13155,
353,
6471,
13,
4706,
1583,
3032,
8336,
29918,
6707,
29918,
5527,
5084,
353,
5447,
29918,
6707,
29918,
5527,
5084,
13,
4706,
1583,
3032,
1509,
29918,
29878,
1056,
29918,
955,
25245,
353,
671,
29918,
29878,
1056,
29918,
955,
25245,
13,
13,
1678,
822,
10272,
29898,
1311,
1125,
13,
4706,
565,
1583,
3032,
1509,
29918,
29878,
1056,
29918,
955,
25245,
29901,
13,
9651,
1583,
29889,
26017,
29918,
3286,
2187,
29918,
1111,
7989,
580,
13,
4706,
1683,
29901,
13,
9651,
1583,
29889,
26017,
29918,
6915,
440,
1907,
29918,
1111,
7989,
580,
13,
9651,
1583,
29889,
26017,
29918,
5527,
5084,
580,
13,
13,
1678,
822,
10272,
29918,
6915,
440,
1907,
29918,
1111,
7989,
29898,
1311,
1125,
13,
4706,
1053,
8919,
1140,
13,
4706,
6743,
353,
1583,
29889,
6915,
440,
1907,
29889,
8552,
580,
13,
4706,
396,
3983,
988,
12770,
8677,
7688,
29871,
29896,
13,
4706,
6743,
29889,
1272,
353,
7442,
29889,
2873,
29898,
2435,
29898,
2873,
29889,
1272,
876,
13,
4706,
330,
353,
3667,
29879,
29889,
657,
29918,
335,
1140,
29918,
3166,
29918,
26859,
562,
3819,
29898,
2873,
29897,
13,
4706,
1583,
29889,
7071,
353,
8919,
1140,
29889,
22479,
6821,
504,
3241,
29898,
13,
9651,
330,
29892,
28512,
29922,
1311,
3032,
7221,
29889,
26290,
29961,
1311,
3032,
13155,
1822,
4117,
29889,
18137,
29889,
5975,
29897,
13,
4706,
274,
29887,
353,
1583,
29889,
7071,
29889,
19594,
29918,
4262,
29898,
17743,
457,
29918,
287,
2710,
2433,
2083,
1495,
13,
4706,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
353,
3667,
29879,
29889,
657,
29918,
29879,
5510,
29918,
3166,
29918,
335,
1140,
29898,
29883,
29887,
29892,
7688,
29918,
5552,
2433,
7915,
1495,
29914,
29906,
13,
13,
1678,
822,
10272,
29918,
5527,
5084,
29898,
1311,
1125,
13,
4706,
9995,
4300,
29880,
1078,
278,
4511,
440,
1907,
29918,
1111,
7989,
5645,
964,
263,
16420,
5645,
29889,
13,
4706,
9995,
13,
4706,
17381,
29918,
19244,
353,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29889,
8552,
580,
13,
4706,
17381,
29918,
19244,
29889,
1272,
353,
29871,
29896,
6904,
27358,
5333,
29918,
19244,
29889,
1272,
13,
4706,
4511,
440,
1907,
29918,
1111,
7989,
29918,
8336,
353,
9212,
29918,
1028,
9450,
29918,
8336,
29898,
27358,
5333,
29918,
19244,
29897,
13,
4706,
4511,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29889,
1272,
353,
29871,
29896,
6904,
6915,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29889,
1272,
13,
4706,
4511,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29918,
513,
1575,
353,
518,
13,
9651,
4511,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29961,
29875,
1822,
5464,
9171,
580,
29961,
29896,
29962,
13,
9651,
363,
474,
297,
3464,
29898,
6915,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29889,
12181,
29961,
29900,
2314,
29962,
13,
4706,
396,
1006,
29899,
322,
938,
336,
29899,
19594,
2729,
16420,
13,
4706,
565,
451,
1583,
3032,
8336,
29918,
6707,
29918,
5527,
5084,
29901,
13,
9651,
3001,
29918,
29876,
353,
1583,
29889,
29876,
29918,
484,
1141,
29890,
943,
334,
7442,
29889,
2378,
29898,
1311,
29889,
7071,
29889,
29879,
7093,
3101,
13,
9651,
7472,
353,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29889,
3317,
580,
13,
9651,
16420,
353,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29889,
8552,
580,
29871,
396,
2847,
5281,
13,
9651,
363,
474,
297,
3464,
29898,
1311,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29889,
12181,
29961,
29900,
29962,
1125,
13,
18884,
363,
432,
297,
3464,
29898,
29875,
29974,
29896,
29892,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29889,
12181,
29961,
29896,
29962,
1125,
13,
462,
1678,
565,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29961,
29875,
29892,
432,
29962,
1405,
29871,
29900,
29901,
13,
462,
4706,
23216,
29918,
12676,
353,
7442,
29889,
3676,
29898,
7827,
29918,
29876,
29961,
29875,
29962,
334,
3001,
29918,
29876,
29961,
29926,
2314,
13,
462,
4706,
16420,
29961,
29875,
29892,
432,
29962,
353,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29961,
29875,
29892,
432,
29962,
847,
23216,
29918,
12676,
13,
462,
4706,
16420,
29961,
29926,
29892,
474,
29962,
353,
16420,
29961,
29875,
29892,
432,
29962,
13,
4706,
396,
5447,
29899,
6707,
16420,
13,
4706,
1683,
29901,
13,
9651,
19194,
29918,
6915,
440,
1907,
29918,
1111,
7989,
29918,
8336,
353,
7442,
29889,
2168,
713,
29898,
6915,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29889,
1272,
29897,
13,
9651,
16420,
353,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29889,
8552,
580,
13,
9651,
16420,
29889,
1272,
29961,
1311,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29889,
1272,
6736,
19194,
29918,
6915,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29962,
353,
29871,
29896,
13,
9651,
4511,
440,
1907,
29918,
1111,
7989,
29918,
328,
5143,
287,
353,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29889,
8552,
580,
13,
9651,
4511,
440,
1907,
29918,
1111,
7989,
29918,
328,
5143,
287,
29889,
1272,
22361,
19194,
29918,
6915,
440,
1907,
29918,
1111,
7989,
29918,
8336,
13,
9651,
4511,
440,
1907,
29918,
1111,
7989,
29918,
328,
5143,
287,
29889,
1272,
353,
7442,
29889,
4548,
29898,
6915,
440,
1907,
29918,
1111,
7989,
29918,
328,
5143,
287,
29889,
1272,
29897,
13,
9651,
2380,
353,
1583,
29889,
6915,
440,
1907,
29918,
1111,
7989,
29889,
1272,
529,
19194,
29918,
6915,
440,
1907,
29918,
1111,
7989,
29918,
8336,
13,
9651,
16420,
29889,
1272,
29961,
2248,
29962,
353,
4511,
440,
1907,
29918,
1111,
7989,
29918,
328,
5143,
287,
29889,
1272,
29961,
2248,
29962,
13,
4706,
16420,
29918,
8336,
353,
1583,
29889,
26017,
29918,
5527,
5084,
29918,
8336,
29898,
13,
9651,
16420,
29892,
4511,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29918,
513,
1575,
29897,
13,
4706,
1583,
29889,
5527,
5084,
353,
16420,
13,
4706,
1583,
29889,
5527,
5084,
29918,
8336,
353,
16420,
29918,
8336,
13,
13,
1678,
822,
10272,
29918,
5527,
5084,
29918,
8336,
29898,
13,
9651,
1583,
29892,
16420,
29892,
4511,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29918,
513,
1575,
1125,
13,
4706,
16420,
29918,
8336,
353,
805,
29889,
29879,
5510,
29889,
29880,
309,
29918,
5344,
29898,
5527,
5084,
29889,
12181,
29892,
26688,
29922,
7411,
29897,
13,
4706,
363,
474,
29892,
22092,
943,
297,
26985,
29898,
6915,
440,
1907,
29918,
1111,
7989,
29918,
8336,
29918,
513,
1575,
1125,
13,
9651,
565,
7431,
29898,
484,
1141,
29890,
943,
29897,
1405,
29871,
29900,
29901,
13,
18884,
16420,
29918,
8336,
29961,
29875,
29892,
22092,
943,
29962,
353,
16420,
29961,
29875,
29892,
22092,
943,
29962,
13,
4706,
736,
16420,
29918,
8336,
29889,
517,
2395,
29878,
580,
13,
13,
1678,
822,
10272,
29918,
3286,
2187,
29918,
1111,
7989,
29898,
1311,
1125,
13,
4706,
396,
15690,
681,
775,
773,
3564,
29916,
13,
4706,
396,
28512,
353,
594,
532,
29889,
26290,
1839,
695,
504,
414,
13359,
4117,
29889,
18137,
29889,
25027,
391,
580,
13,
4706,
396,
8877,
353,
2322,
8977,
29898,
1761,
29897,
13,
4706,
396,
363,
302,
29892,
282,
297,
14319,
29898,
1761,
29898,
3881,
29898,
2435,
29898,
29954,
876,
511,
28512,
1125,
13,
4706,
396,
268,
8877,
29961,
29886,
1822,
4397,
29898,
29876,
29897,
13,
4706,
396,
8877,
353,
8877,
29889,
5975,
580,
13,
4706,
396,
330,
29918,
16595,
287,
353,
302,
29916,
29889,
23083,
993,
29918,
4262,
29898,
29887,
29892,
8877,
29892,
1104,
1107,
29922,
5574,
29897,
13,
4706,
396,
363,
777,
2769,
29892,
2466,
29892,
12770,
9455,
29915,
29873,
7769,
287,
297,
278,
13911,
993,
13,
4706,
396,
3983,
856,
13,
4706,
1053,
8919,
1140,
13,
4706,
330,
353,
3667,
29879,
29889,
657,
29918,
335,
1140,
29918,
3166,
29918,
26859,
562,
3819,
29898,
13,
9651,
1583,
3032,
7221,
29889,
6948,
1839,
955,
22502,
517,
29918,
3286,
2187,
7464,
10624,
29922,
5574,
29897,
13,
4706,
325,
29883,
353,
8919,
1140,
29889,
22479,
6821,
504,
3241,
29898,
13,
9651,
330,
29892,
28512,
29922,
1311,
3032,
7221,
29889,
26290,
29961,
1311,
3032,
13155,
1822,
4117,
29889,
18137,
29889,
5975,
29897,
13,
4706,
274,
29887,
29918,
8159,
353,
325,
29883,
29889,
19594,
29918,
4262,
29898,
17743,
457,
29918,
287,
2710,
29922,
8824,
29897,
13,
13,
4706,
330,
29918,
11227,
353,
3667,
29879,
29889,
657,
29918,
335,
1140,
29918,
3166,
29918,
26859,
562,
3819,
29898,
13,
9651,
1583,
3032,
7221,
29889,
6948,
1839,
955,
22502,
517,
29918,
3286,
2187,
13359,
579,
668,
877,
11227,
5477,
10624,
29922,
5574,
29897,
13,
4706,
325,
29883,
29918,
11227,
353,
8919,
1140,
29889,
22479,
6821,
504,
3241,
29898,
13,
9651,
330,
29918,
11227,
29892,
28512,
29922,
1311,
3032,
7221,
29889,
26290,
29961,
1311,
3032,
13155,
1822,
4117,
29889,
18137,
29889,
5975,
29897,
13,
4706,
274,
29887,
29918,
11227,
353,
325,
29883,
29918,
11227,
29889,
19594,
29918,
4262,
29898,
17743,
457,
29918,
287,
2710,
2433,
2083,
1495,
29871,
396,
784,
23384,
1873,
13,
4706,
1301,
2187,
29918,
1111,
7989,
353,
3667,
29879,
29889,
657,
29918,
29879,
5510,
29918,
3166,
29918,
335,
1140,
29898,
29883,
29887,
29918,
11227,
29892,
7688,
29918,
5552,
2433,
7915,
1495,
13,
4706,
396,
14240,
445,
964,
263,
16420,
5645,
13,
4706,
396,
278,
1353,
310,
714,
17696,
12770,
13,
4706,
396,
3001,
29918,
29876,
353,
7442,
29889,
3298,
359,
29898,
2435,
29898,
7071,
29889,
29879,
7093,
22130,
13,
4706,
396,
396,
313,
1366,
338,
451,
278,
15687,
310,
3918,
380,
28225,
13516,
29897,
13,
4706,
396,
3001,
29918,
449,
17696,
353,
1301,
2187,
29918,
1111,
7989,
29889,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
396,
363,
474,
297,
3464,
29898,
2435,
29898,
7827,
29918,
29876,
22164,
13,
4706,
396,
268,
3001,
29918,
29876,
29961,
29875,
29962,
353,
325,
29883,
29889,
1491,
4262,
29898,
29875,
467,
687,
792,
580,
13,
4706,
396,
268,
3001,
29918,
29876,
29961,
29875,
29962,
4619,
3001,
29918,
449,
17696,
29961,
29875,
29892,
29871,
29900,
29962,
13,
4706,
396,
671,
278,
20159,
2729,
3407,
29892,
278,
12885,
697,
1795,
505,
1407,
2319,
3694,
13,
4706,
3001,
29918,
29876,
353,
1583,
29889,
29876,
29918,
484,
1141,
29890,
943,
334,
7442,
29889,
2378,
29898,
7071,
29918,
11227,
29889,
29879,
7093,
3101,
13,
4706,
1301,
2187,
29918,
698,
342,
353,
1301,
2187,
29918,
1111,
7989,
29889,
8552,
580,
13,
4706,
1301,
2187,
29918,
5527,
5084,
353,
1301,
2187,
29918,
1111,
7989,
29889,
8552,
580,
13,
4706,
515,
4560,
2272,
29889,
16202,
1053,
260,
1688,
29918,
29896,
29879,
1160,
13,
4706,
363,
474,
297,
3464,
29898,
3286,
2187,
29918,
1111,
7989,
29889,
12181,
29961,
29900,
29962,
1125,
13,
9651,
396,
694,
18446,
297,
1301,
2187,
29918,
1111,
7989,
29892,
8151,
591,
881,
451,
9250,
304,
13,
9651,
396,
7568,
17205,
13,
9651,
22092,
943,
353,
1301,
2187,
29918,
1111,
7989,
29961,
29875,
1822,
5464,
9171,
580,
29961,
29896,
29962,
13,
9651,
363,
432,
297,
22092,
943,
29901,
13,
18884,
6375,
353,
274,
29887,
29918,
8159,
29889,
267,
29889,
2622,
7373,
4993,
29922,
29875,
29892,
903,
5182,
29922,
29926,
29897,
1839,
7915,
2033,
13,
18884,
1250,
1328,
353,
274,
29887,
29918,
8159,
29889,
267,
29889,
2622,
7373,
4993,
29922,
29926,
29892,
903,
5182,
29922,
29875,
29897,
1839,
7915,
2033,
13,
18884,
396,
1250,
1328,
5305,
29901,
788,
26134,
1804,
13,
18884,
1819,
353,
7442,
29889,
2378,
29898,
1761,
29898,
11333,
29897,
718,
1051,
6278,
9302,
29889,
2378,
29898,
1627,
1328,
4961,
13,
18884,
396,
1996,
777,
13114,
1353,
310,
13917,
13,
18884,
565,
7431,
29898,
5975,
29897,
529,
29871,
29945,
29901,
13,
462,
1678,
1301,
2187,
29918,
698,
342,
29961,
29875,
29892,
432,
29962,
353,
29871,
29900,
13,
462,
1678,
1301,
2187,
29918,
698,
342,
29961,
29926,
29892,
474,
29962,
353,
29871,
29900,
13,
462,
1678,
1301,
2187,
29918,
5527,
5084,
29961,
29875,
29892,
432,
29962,
353,
29871,
29900,
13,
462,
1678,
1301,
2187,
29918,
5527,
5084,
29961,
29926,
29892,
474,
29962,
353,
29871,
29900,
13,
462,
1678,
6773,
13,
18884,
260,
29892,
2070,
353,
260,
1688,
29918,
29896,
29879,
1160,
29898,
5975,
29892,
29871,
29900,
29889,
29900,
29897,
13,
18884,
565,
260,
1405,
29871,
29900,
29901,
13,
462,
1678,
396,
1353,
310,
714,
17696,
12770,
7621,
1135,
1353,
310,
2348,
29877,
292,
12770,
13,
462,
1678,
396,
474,
29889,
29872,
1696,
9558,
515,
474,
304,
432,
13,
462,
1678,
1301,
2187,
29918,
698,
342,
29961,
29875,
29892,
432,
29962,
353,
448,
9302,
29889,
1188,
29896,
29900,
29898,
3317,
29898,
22795,
29892,
29871,
29896,
29872,
29899,
29896,
29900,
876,
13,
462,
1678,
1301,
2187,
29918,
698,
342,
29961,
29926,
29892,
474,
29962,
353,
29871,
29900,
13,
18884,
1683,
29901,
13,
462,
1678,
1301,
2187,
29918,
698,
342,
29961,
29926,
29892,
474,
29962,
353,
448,
9302,
29889,
1188,
29896,
29900,
29898,
3317,
29898,
22795,
29892,
29871,
29896,
29872,
29899,
29896,
29900,
876,
13,
462,
1678,
1301,
2187,
29918,
698,
342,
29961,
29875,
29892,
432,
29962,
353,
29871,
29900,
13,
18884,
396,
23216,
29918,
12676,
13,
18884,
23216,
29918,
12676,
353,
7442,
29889,
3676,
29898,
7827,
29918,
29876,
29961,
29875,
29962,
334,
3001,
29918,
29876,
29961,
29926,
2314,
13,
18884,
2923,
353,
313,
2435,
29898,
11333,
29897,
448,
7431,
29898,
1627,
1328,
876,
847,
23216,
29918,
12676,
13,
18884,
565,
2923,
1405,
29871,
29900,
29901,
13,
462,
1678,
1301,
2187,
29918,
5527,
5084,
29961,
29875,
29892,
432,
29962,
353,
2923,
13,
462,
1678,
1301,
2187,
29918,
5527,
5084,
29961,
29926,
29892,
474,
29962,
353,
29871,
29900,
13,
18884,
1683,
29901,
13,
462,
1678,
1301,
2187,
29918,
5527,
5084,
29961,
29926,
29892,
474,
29962,
353,
448,
12765,
13,
462,
1678,
1301,
2187,
29918,
5527,
5084,
29961,
29875,
29892,
432,
29962,
353,
29871,
29900,
13,
4706,
1301,
2187,
29918,
698,
342,
29889,
295,
8332,
403,
29918,
3298,
359,
580,
13,
4706,
1301,
2187,
29918,
5527,
5084,
29889,
295,
8332,
403,
29918,
3298,
359,
580,
13,
4706,
396,
1301,
4220,
297,
1797,
304,
1993,
15687,
310,
380,
28225,
13516,
13,
4706,
396,
6251,
474,
29926,
2794,
9558,
515,
432,
304,
474,
13,
4706,
1583,
29889,
3286,
2187,
29918,
698,
342,
353,
1301,
2187,
29918,
698,
342,
29889,
29911,
13,
4706,
1583,
29889,
3286,
2187,
29918,
5527,
5084,
353,
1301,
2187,
29918,
5527,
5084,
29889,
29911,
13,
13,
13,
1753,
282,
7781,
29918,
311,
7979,
267,
29898,
7221,
1125,
13,
1678,
9995,
20606,
29872,
278,
7426,
310,
1269,
2943,
297,
278,
9846,
287,
3983,
29889,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
594,
532,
584,
8081,
1469,
13,
4706,
530,
1333,
630,
848,
4636,
29889,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
14496,
584,
1051,
13,
4706,
2391,
310,
14496,
363,
1269,
2943,
29889,
13,
1678,
9995,
13,
1678,
1053,
3564,
29916,
408,
302,
29916,
13,
1678,
330,
353,
302,
29916,
29889,
9527,
29898,
7221,
29889,
6948,
1839,
29886,
7781,
16215,
5527,
5084,
11287,
13,
1678,
14496,
353,
518,
29881,
363,
17117,
270,
297,
330,
29889,
12163,
929,
29898,
7915,
2433,
7915,
1495,
29962,
13,
1678,
736,
14496,
13,
13,
13,
1753,
282,
7781,
29918,
17471,
29918,
296,
1336,
583,
29898,
7221,
1125,
13,
1678,
9995,
20606,
29872,
278,
19194,
4603,
24687,
363,
1269,
2943,
29899,
2972,
29889,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
594,
532,
584,
8081,
1469,
13,
4706,
530,
1333,
630,
848,
4636,
29889,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
875,
1336,
583,
584,
1051,
13,
4706,
4284,
1336,
583,
310,
19194,
12241,
363,
1269,
2943,
29889,
13,
1678,
9995,
13,
1678,
515,
4560,
2272,
29889,
16202,
1053,
24687,
13,
1678,
6471,
29918,
2098,
29892,
6471,
29918,
13168,
29879,
353,
3667,
29879,
29889,
2622,
29918,
13155,
29898,
13,
4706,
594,
532,
29892,
1820,
29922,
7221,
29889,
6948,
1839,
29886,
7781,
16215,
13155,
11287,
13,
1678,
875,
1336,
583,
353,
5159,
13,
1678,
363,
11105,
297,
6471,
29918,
13168,
29879,
29901,
13,
4706,
1060,
29918,
13168,
353,
594,
532,
29889,
29990,
29961,
13168,
29962,
13,
4706,
921,
29918,
2168,
713,
353,
7442,
29889,
2168,
713,
29898,
29990,
29918,
13168,
29892,
9685,
29922,
29900,
29897,
13,
4706,
921,
29918,
771,
5824,
353,
313,
29916,
29918,
2168,
713,
448,
7442,
29889,
1195,
29898,
29916,
29918,
2168,
713,
876,
847,
313,
9302,
29889,
3317,
29898,
29916,
29918,
2168,
713,
29897,
448,
7442,
29889,
1195,
29898,
29916,
29918,
2168,
713,
876,
13,
4706,
875,
1336,
583,
29889,
4397,
29898,
296,
14441,
29898,
29916,
29918,
771,
5824,
876,
13,
1678,
736,
875,
1336,
583,
13,
13,
13,
1753,
282,
7781,
29918,
18307,
29918,
24772,
29898,
7221,
29896,
29892,
594,
532,
29906,
29892,
13,
462,
539,
12109,
562,
3819,
29918,
1989,
2433,
5527,
5084,
742,
12109,
562,
3819,
29918,
1989,
29906,
29922,
8516,
1125,
13,
1678,
9995,
6843,
598,
10898,
297,
9846,
287,
18445,
297,
1023,
20035,
29889,
13,
13,
1678,
11796,
29872,
278,
15958,
310,
13747,
10898,
1546,
20447,
29879,
29892,
263,
5645,
363,
278,
13,
1678,
25002,
29501,
1546,
18445,
29889,
13,
13,
1678,
2648,
10231,
278,
9750,
359,
537,
304,
3233,
29871,
29946,
322,
29871,
29945,
29892,
278,
10898,
393,
437,
451,
8661,
13,
1678,
322,
278,
10898,
393,
8661,
526,
3971,
304,
278,
1962,
29892,
8307,
29889,
13,
13,
1678,
450,
349,
10051,
29909,
376,
13155,
1820,
29908,
4225,
304,
367,
278,
1021,
297,
1716,
3618,
29889,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
594,
532,
29896,
29892,
594,
532,
29906,
584,
8081,
1469,
13,
4706,
530,
1333,
630,
848,
13516,
304,
7252,
29889,
13,
1678,
12109,
562,
3819,
29918,
1989,
584,
851,
13,
4706,
7670,
363,
26190,
278,
12109,
562,
3819,
13516,
297,
5050,
6948,
1839,
29886,
7781,
2033,
29952,
304,
367,
1304,
297,
13,
4706,
594,
532,
29896,
322,
594,
532,
29906,
29889,
13,
1678,
12109,
562,
3819,
29918,
1989,
29906,
584,
851,
29892,
6213,
13,
4706,
960,
4944,
29892,
1304,
363,
594,
532,
29906,
29889,
13,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
8170,
287,
23215,
552,
411,
8393,
4954,
29876,
29918,
24530,
16159,
313,
7827,
1353,
310,
6576,
297,
10898,
29897,
13,
1678,
322,
4954,
1154,
29918,
24530,
16159,
313,
29888,
13857,
310,
13747,
6576,
511,
4954,
29876,
29918,
24772,
16159,
322,
13,
1678,
4954,
1154,
29918,
24772,
29952,
1412,
13,
1678,
9995,
13,
1678,
1053,
3564,
29916,
408,
302,
29916,
13,
1678,
330,
29896,
353,
302,
29916,
29889,
9527,
29898,
7221,
29896,
29889,
6948,
1839,
29886,
7781,
2033,
29961,
26859,
562,
3819,
29918,
1989,
2314,
13,
1678,
330,
29906,
353,
302,
29916,
29889,
9527,
29898,
7221,
29906,
29889,
6948,
1839,
29886,
7781,
2033,
29961,
26859,
562,
3819,
29918,
1989,
29906,
565,
12109,
562,
3819,
29918,
1989,
29906,
338,
451,
6213,
1683,
12109,
562,
3819,
29918,
1989,
2314,
13,
1678,
20447,
29918,
18010,
29896,
353,
518,
710,
29898,
29916,
29897,
363,
921,
297,
330,
29896,
29889,
18010,
580,
565,
330,
29896,
29889,
12163,
929,
29898,
29916,
29897,
1275,
29871,
29896,
29962,
13,
1678,
1480,
29887,
29889,
7645,
877,
29500,
7573,
297,
3983,
29871,
29896,
29901,
6571,
4286,
4830,
29898,
29500,
29918,
18010,
29896,
511,
325,
29922,
29945,
29892,
694,
29918,
12860,
29922,
5574,
29897,
13,
1678,
282,
7781,
29918,
13155,
353,
594,
532,
29896,
29889,
6948,
1839,
29886,
7781,
16215,
13155,
2033,
13,
1678,
408,
578,
29918,
13155,
29896,
353,
3667,
29879,
29889,
1693,
1598,
29918,
13155,
29898,
7221,
29896,
29889,
26290,
29961,
29886,
7781,
29918,
13155,
1822,
5975,
29892,
13,
462,
462,
308,
594,
532,
29906,
29889,
26290,
29961,
29886,
7781,
29918,
13155,
1822,
5975,
29897,
13,
1678,
408,
578,
29918,
13155,
29906,
353,
3667,
29879,
29889,
1693,
1598,
29918,
13155,
29898,
7221,
29906,
29889,
26290,
29961,
29886,
7781,
29918,
13155,
1822,
5975,
29892,
13,
462,
462,
308,
594,
532,
29896,
29889,
26290,
29961,
29886,
7781,
29918,
13155,
1822,
5975,
29897,
13,
1678,
1677,
29918,
7039,
29896,
353,
594,
532,
29896,
29889,
26290,
29961,
29886,
7781,
29918,
13155,
1822,
4117,
29889,
20683,
13,
1678,
1677,
29918,
7039,
29906,
353,
594,
532,
29906,
29889,
26290,
29961,
29886,
7781,
29918,
13155,
1822,
4117,
29889,
20683,
13,
13,
1678,
1053,
4256,
8504,
13,
1678,
302,
29918,
24530,
353,
29871,
29900,
13,
1678,
302,
29918,
351,
929,
292,
29918,
24530,
353,
29871,
29900,
13,
1678,
302,
29918,
24772,
353,
29871,
29900,
13,
1678,
302,
29918,
351,
929,
292,
29918,
24772,
353,
29871,
29900,
13,
1678,
396,
2425,
975,
599,
11000,
310,
20447,
7573,
297,
278,
3407,
594,
532,
29896,
13,
1678,
363,
313,
29878,
29892,
269,
29897,
297,
4256,
8504,
29889,
510,
2109,
800,
29898,
29500,
29918,
18010,
29896,
29892,
364,
29922,
29906,
1125,
13,
4706,
364,
29906,
29892,
269,
29906,
353,
408,
578,
29918,
13155,
29896,
29961,
29878,
3816,
29900,
1402,
408,
578,
29918,
13155,
29896,
29961,
29879,
3816,
29900,
29962,
13,
4706,
1677,
29918,
7039,
353,
518,
12683,
29918,
7039,
29896,
29961,
524,
29898,
29875,
4638,
363,
474,
297,
518,
29878,
29892,
269,
5262,
13,
4706,
1677,
29918,
7039,
4619,
518,
12683,
29918,
7039,
29906,
29961,
524,
29898,
29875,
4638,
363,
474,
297,
518,
29878,
29906,
29892,
269,
29906,
5262,
13,
4706,
1480,
29887,
29889,
7645,
877,
18307,
3273,
342,
10898,
1546,
20447,
29879,
21313,
1118,
426,
1800,
297,
3983,
29896,
322,
21313,
1118,
426,
1800,
297,
3983,
29906,
11283,
13,
1669,
869,
4830,
10456,
12683,
29918,
7039,
511,
325,
29922,
29946,
29892,
694,
29918,
12860,
29922,
5574,
29897,
13,
4706,
694,
29918,
2084,
29896,
353,
7700,
13,
4706,
1018,
29901,
13,
9651,
2224,
29896,
353,
518,
710,
29898,
29916,
29897,
363,
921,
297,
302,
29916,
29889,
12759,
342,
29918,
2084,
29898,
29887,
29896,
29892,
938,
29898,
29878,
511,
938,
29898,
29879,
28166,
13,
4706,
5174,
302,
29916,
29889,
13724,
29990,
3782,
2605,
29901,
13,
9651,
694,
29918,
2084,
29896,
353,
5852,
13,
4706,
694,
29918,
2084,
29906,
353,
7700,
13,
4706,
1018,
29901,
13,
9651,
2224,
29906,
353,
518,
710,
29898,
29916,
29897,
363,
921,
297,
302,
29916,
29889,
12759,
342,
29918,
2084,
29898,
29887,
29906,
29892,
938,
29898,
29878,
29906,
511,
938,
29898,
29879,
29906,
28166,
13,
4706,
5174,
302,
29916,
29889,
13724,
29990,
3782,
2605,
29901,
13,
9651,
694,
29918,
2084,
29906,
353,
5852,
13,
4706,
565,
694,
29918,
2084,
29896,
322,
694,
29918,
2084,
29906,
29901,
13,
9651,
396,
13747,
6030,
13,
9651,
302,
29918,
24772,
4619,
29871,
29896,
13,
9651,
302,
29918,
351,
929,
292,
29918,
24772,
4619,
29871,
29896,
13,
9651,
302,
29918,
24530,
4619,
29871,
29896,
13,
9651,
302,
29918,
351,
929,
292,
29918,
24530,
4619,
29871,
29896,
13,
9651,
1480,
29887,
29889,
7645,
877,
12711,
526,
694,
16791,
10898,
297,
1716,
18445,
742,
325,
29922,
29945,
29892,
694,
29918,
12860,
29922,
5574,
29897,
13,
9651,
6773,
13,
4706,
25342,
694,
29918,
2084,
29896,
470,
694,
29918,
2084,
29906,
29901,
13,
9651,
396,
1661,
29899,
3200,
9696,
1121,
13,
9651,
302,
29918,
24772,
4619,
29871,
29896,
13,
9651,
302,
29918,
24530,
4619,
29871,
29896,
13,
9651,
6773,
13,
4706,
565,
7431,
29898,
2084,
29896,
29897,
6736,
7431,
29898,
2084,
29906,
1125,
13,
9651,
2224,
29918,
655,
2986,
353,
518,
9979,
29918,
13155,
29896,
29961,
29880,
29962,
363,
301,
297,
2224,
29896,
29962,
13,
9651,
2224,
29918,
18307,
353,
2224,
29906,
13,
9651,
2224,
29918,
18307,
29918,
333,
353,
29871,
29906,
13,
9651,
2224,
29918,
18307,
29918,
12683,
29918,
7039,
353,
5519,
12683,
29918,
7039,
29906,
29961,
524,
29898,
29879,
4638,
363,
269,
297,
301,
29962,
363,
301,
297,
2224,
29918,
18307,
29962,
13,
9651,
2224,
29918,
655,
2986,
29918,
12683,
29918,
7039,
353,
5519,
12683,
29918,
7039,
29906,
29961,
524,
29898,
29879,
4638,
363,
269,
297,
301,
29962,
363,
301,
297,
2224,
29918,
655,
2986,
29962,
13,
4706,
1683,
29901,
13,
9651,
2224,
29918,
655,
2986,
353,
518,
9979,
29918,
13155,
29906,
29961,
29880,
29962,
363,
301,
297,
2224,
29906,
29962,
13,
9651,
2224,
29918,
18307,
353,
2224,
29896,
13,
9651,
2224,
29918,
18307,
29918,
333,
353,
29871,
29896,
13,
9651,
2224,
29918,
18307,
29918,
12683,
29918,
7039,
353,
5519,
12683,
29918,
7039,
29896,
29961,
524,
29898,
29879,
4638,
363,
269,
297,
301,
29962,
363,
301,
297,
2224,
29918,
18307,
29962,
13,
9651,
2224,
29918,
655,
2986,
29918,
12683,
29918,
7039,
353,
5519,
12683,
29918,
7039,
29896,
29961,
524,
29898,
29879,
4638,
363,
269,
297,
301,
29962,
363,
301,
297,
2224,
29918,
655,
2986,
29962,
13,
4706,
302,
29918,
351,
929,
292,
29918,
24530,
29918,
2084,
353,
29871,
29900,
13,
4706,
10377,
29918,
18035,
353,
29871,
29900,
13,
4706,
363,
980,
29892,
301,
297,
26985,
29898,
2084,
29918,
18307,
7503,
29899,
29896,
29962,
1125,
13,
9651,
363,
10377,
29892,
282,
297,
26985,
29898,
2084,
29918,
655,
2986,
1125,
13,
18884,
565,
10377,
6736,
10377,
29918,
18035,
322,
301,
297,
282,
29901,
13,
462,
1678,
396,
1423,
3692,
591,
508,
1284,
278,
4331,
6375,
310,
2224,
29918,
18307,
297,
2224,
29918,
655,
2986,
13,
462,
1678,
565,
313,
666,
718,
29871,
29896,
529,
7431,
29898,
2084,
29918,
655,
2986,
29897,
13,
462,
4706,
322,
13,
462,
4706,
2224,
29918,
18307,
29961,
309,
718,
29871,
29896,
29962,
297,
2224,
29918,
655,
2986,
29961,
666,
718,
29871,
29896,
29962,
1125,
13,
462,
4706,
396,
1207,
1854,
393,
263,
4331,
1250,
1328,
11981,
502,
304,
278,
1021,
995,
310,
301,
13,
462,
4706,
396,
297,
1206,
591,
376,
29926,
3427,
287,
29908,
13,
462,
4706,
1480,
29887,
29889,
7645,
877,
11940,
9686,
4331,
313,
8875,
1599,
426,
1800,
472,
2602,
6571,
297,
2224,
8875,
322,
2602,
6571,
297,
2224,
29918,
655,
2986,
29915,
13,
462,
1669,
869,
4830,
29898,
29880,
29892,
2224,
29918,
18307,
29918,
12683,
29918,
7039,
29961,
309,
718,
29871,
29896,
1402,
980,
29892,
2224,
29918,
18307,
29918,
333,
29892,
10377,
511,
325,
29922,
29953,
29897,
13,
462,
4706,
13747,
29918,
18434,
353,
5852,
13,
462,
4706,
363,
474,
666,
297,
3464,
29898,
666,
29892,
10377,
29918,
18035,
29892,
448,
29896,
1125,
13,
462,
9651,
565,
301,
451,
297,
2224,
29918,
655,
2986,
29961,
29875,
666,
448,
29871,
29896,
5387,
13,
462,
18884,
13747,
29918,
18434,
353,
7700,
13,
462,
4706,
565,
13747,
29918,
18434,
29901,
13,
462,
9651,
396,
1244,
29892,
591,
2125,
697,
4331,
4340,
1250,
313,
666,
29918,
18035,
448,
29871,
29896,
416,
372,
29915,
29879,
2411,
2957,
393,
445,
13,
462,
9651,
396,
471,
3431,
297,
278,
3517,
4331,
13,
462,
9651,
1480,
29887,
29889,
7645,
877,
1678,
4331,
29898,
29879,
29897,
1250,
1328,
304,
2602,
29898,
29879,
29897,
6571,
297,
2224,
29918,
655,
2986,
526,
2691,
29892,
2086,
29901,
2854,
4331,
29915,
13,
462,
462,
259,
869,
4830,
29898,
1761,
29898,
3881,
29898,
666,
448,
29871,
29896,
29892,
10377,
29918,
18035,
448,
29871,
29906,
29892,
448,
29896,
876,
511,
325,
29922,
29953,
29897,
13,
462,
9651,
302,
29918,
351,
929,
292,
29918,
24530,
29918,
2084,
4619,
29871,
29896,
13,
462,
9651,
10377,
29918,
18035,
353,
10377,
718,
29871,
29896,
13,
462,
9651,
2867,
13,
4706,
302,
29918,
24530,
29918,
2084,
353,
7431,
29898,
2084,
29918,
18307,
29897,
448,
29871,
29896,
13,
4706,
302,
29918,
351,
929,
292,
29918,
24530,
4619,
302,
29918,
351,
929,
292,
29918,
24530,
29918,
2084,
13,
4706,
302,
29918,
24530,
4619,
302,
29918,
24530,
29918,
2084,
13,
4706,
302,
29918,
24772,
4619,
29871,
29896,
13,
4706,
565,
302,
29918,
351,
929,
292,
29918,
24530,
29918,
2084,
1275,
302,
29918,
24530,
29918,
2084,
29901,
302,
29918,
351,
929,
292,
29918,
24772,
4619,
29871,
29896,
13,
13,
4706,
396,
871,
363,
278,
1962,
29892,
671,
2441,
2983,
13,
4706,
2224,
29896,
29918,
12683,
29918,
7039,
353,
518,
12683,
29918,
7039,
29896,
29961,
524,
29898,
29879,
4638,
363,
269,
297,
2224,
29896,
29962,
13,
4706,
2224,
29906,
29918,
12683,
29918,
7039,
353,
518,
12683,
29918,
7039,
29906,
29961,
524,
29898,
29879,
4638,
363,
269,
297,
2224,
29906,
29962,
13,
4706,
1480,
29887,
29889,
7645,
877,
418,
2224,
29896,
353,
426,
7570,
29876,
29915,
13,
1669,
525,
2084,
29918,
655,
2986,
353,
426,
7570,
29876,
29915,
13,
1669,
525,
418,
2224,
29906,
353,
426,
7570,
29876,
29915,
13,
1669,
525,
976,
302,
29918,
351,
929,
292,
29918,
24530,
353,
6571,
847,
302,
29918,
24530,
353,
426,
1836,
29915,
13,
1669,
869,
4830,
29898,
2084,
29896,
29918,
12683,
29918,
7039,
29892,
13,
462,
539,
518,
1761,
29898,
29886,
29897,
363,
282,
297,
2224,
29918,
655,
2986,
29918,
12683,
29918,
7039,
1402,
13,
462,
539,
2224,
29906,
29918,
12683,
29918,
7039,
29892,
13,
462,
539,
302,
29918,
351,
929,
292,
29918,
24530,
29918,
2084,
29892,
302,
29918,
24530,
29918,
2084,
511,
325,
29922,
29945,
29892,
694,
29918,
12860,
29922,
5574,
29897,
13,
1678,
7867,
353,
4257,
23583,
877,
29886,
7781,
29918,
18307,
29918,
24772,
29918,
2914,
742,
13,
462,
4706,
6024,
1154,
29918,
24530,
742,
525,
29876,
29918,
24530,
742,
525,
1154,
29918,
24772,
742,
525,
29876,
29918,
24772,
11287,
13,
1678,
736,
7867,
29898,
1154,
29918,
24530,
29922,
29876,
29918,
351,
929,
292,
29918,
24530,
29914,
29876,
29918,
24530,
565,
302,
29918,
24530,
1405,
29871,
29900,
1683,
7442,
29889,
13707,
29892,
13,
462,
29871,
302,
29918,
24530,
29922,
29876,
29918,
24530,
565,
302,
29918,
24530,
1405,
29871,
29900,
1683,
7442,
29889,
13707,
29892,
13,
462,
29871,
285,
945,
29918,
24772,
29922,
29876,
29918,
351,
929,
292,
29918,
24772,
29914,
29876,
29918,
24772,
565,
302,
29918,
24530,
1405,
29871,
29900,
1683,
7442,
29889,
13707,
29892,
13,
462,
29871,
302,
29918,
24772,
29922,
29876,
29918,
24772,
565,
302,
29918,
24530,
1405,
29871,
29900,
1683,
7442,
29889,
13707,
29897,
13,
2
] |
wholesomebot/__main__.py | bnb32/wholesome_bot | 0 | 1612892 | from wholesomebot.connection import WebSocketClient, IrcSocketClient
from wholesomebot.misc import get_logger
import asyncio
logger = get_logger()
ircClient = IrcSocketClient()
webClient = WebSocketClient()
try:
loop = asyncio.new_event_loop()
loop = asyncio.get_event_loop()
loop.create_task(ircClient.listen_forever())
loop.create_task(webClient.listen_forever())
loop.run_forever()
except KeyboardInterrupt:
logger.warning("Exiting wholesomebot!")
exit()
| [
1,
515,
377,
6544,
608,
7451,
29889,
9965,
1053,
2563,
11373,
4032,
29892,
306,
2214,
11373,
4032,
13,
3166,
377,
6544,
608,
7451,
29889,
29885,
10669,
1053,
679,
29918,
21707,
13,
13,
5215,
408,
948,
3934,
13,
13,
21707,
353,
679,
29918,
21707,
580,
13,
539,
13,
2076,
4032,
353,
306,
2214,
11373,
4032,
580,
13,
2676,
4032,
353,
2563,
11373,
4032,
580,
13,
268,
13,
2202,
29901,
13,
268,
13,
1678,
2425,
353,
408,
948,
3934,
29889,
1482,
29918,
3696,
29918,
7888,
580,
13,
1678,
2425,
353,
408,
948,
3934,
29889,
657,
29918,
3696,
29918,
7888,
580,
13,
1678,
2425,
29889,
3258,
29918,
7662,
29898,
2076,
4032,
29889,
20631,
29918,
1079,
369,
3101,
13,
1678,
2425,
29889,
3258,
29918,
7662,
29898,
2676,
4032,
29889,
20631,
29918,
1079,
369,
3101,
13,
1678,
2425,
29889,
3389,
29918,
1079,
369,
580,
13,
13,
19499,
7670,
3377,
4074,
6685,
29901,
13,
1678,
17927,
29889,
27392,
703,
1252,
11407,
377,
6544,
608,
7451,
29991,
1159,
13,
1678,
6876,
580,
13,
2
] |
test/sample.py | HyechurnJang/umbi | 0 | 94302 | # -*- coding: utf-8 -*-
'''
Created on 2017. 10. 12.
@author: HyechurnJang
'''
import json
from umbi import UmbiAPI
def v(data):
print json.dumps(data, indent=2)
api = UmbiAPI('85aaa4d3-333e-4212-a7bd-b64300321193')
# print 'Domains'
# v(api.Domains.Categorization('hecloud.org', 'google.com'))
# v(api.Domains.Categories())
# v(api.Domains.Score('hecloud.org', 'google.com'))
# v(api.Domains.LatestTags('hecloud.org'))
# print ''
# print 'Timeline'
# v(api.Timeline('domain.com'))
# print ''
# print 'URL'
# v(api.URL.Classifiers('hecloud.org'))
# v(api.URL.Info('hecloud.org'))
# print ''
# print 'Search'
# v(api.Search('hecloud.org', '-30days', True))
# print ''
# print 'Recommendations'
# v(api.Recommendations.Name('hecloud.org'))
# print ''
# print 'Links'
# v(api.Links.Name('hecloud.org'))
# print ''
# print 'Security'
# v(api.Security.Name('hecloud.org'))
# print ''
# print 'DnsDB'
# v(api.DnsDB.Name('hecloud.org'))
# v(api.DnsDB.IP('8.8.8.8'))
# print ''
# print 'BGP'
# v(api.BgpRoutes.IP('8.8.8.8'))
# v(api.BgpRoutes.ASN(11425))
# print 'WhoIs'
# v(api.WhoIs('hecloud.org'))
# v(api.WhoIs.Emails('<EMAIL>', '<EMAIL>', limit=2, offset=10, sort='created'))
# v(api.WhoIs.Nameservers('ns1.google.com', 'ns2.google.com', limit=2, offset=10, sort='created'))
# print ''
# print 'IPs'
# v(api.IPs.LatestDomains('192.168.3.11'))
# print ''
# print 'TopMillion'
# v(api.TopMillion(limit=100))
# print ''
print 'Samples'
v(api.Samples('192.168.3.11'))
print ''
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
12008,
30004,
13,
20399,
373,
29871,
29906,
29900,
29896,
29955,
29889,
29871,
29896,
29900,
29889,
29871,
29896,
29906,
22993,
13,
29992,
8921,
29901,
379,
4099,
305,
595,
29967,
574,
30004,
13,
12008,
30004,
13,
30004,
13,
5215,
4390,
30004,
13,
3166,
1922,
5365,
1053,
6379,
5365,
8787,
30004,
13,
30004,
13,
1753,
325,
29898,
1272,
1125,
30004,
13,
1678,
1596,
4390,
29889,
29881,
17204,
29898,
1272,
29892,
29536,
29922,
29906,
8443,
13,
30004,
13,
2754,
353,
6379,
5365,
8787,
877,
29947,
29945,
7340,
29874,
29946,
29881,
29941,
29899,
29941,
29941,
29941,
29872,
29899,
29946,
29906,
29896,
29906,
29899,
29874,
29955,
6448,
29899,
29890,
29953,
29946,
29941,
29900,
29900,
29941,
29906,
29896,
29896,
29929,
29941,
1495,
30004,
13,
30004,
13,
29937,
1596,
525,
11096,
2708,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
11096,
2708,
29889,
29907,
20440,
2133,
877,
354,
9274,
29889,
990,
742,
525,
3608,
29889,
510,
8785,
30004,
13,
29937,
325,
29898,
2754,
29889,
11096,
2708,
29889,
29907,
14404,
3101,
30004,
13,
29937,
325,
29898,
2754,
29889,
11096,
2708,
29889,
20097,
877,
354,
9274,
29889,
990,
742,
525,
3608,
29889,
510,
8785,
30004,
13,
29937,
325,
29898,
2754,
29889,
11096,
2708,
29889,
13992,
342,
28089,
877,
354,
9274,
29889,
990,
8785,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
13711,
5570,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
13711,
5570,
877,
7247,
29889,
510,
8785,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
4219,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
4219,
29889,
2385,
14903,
877,
354,
9274,
29889,
990,
8785,
30004,
13,
29937,
325,
29898,
2754,
29889,
4219,
29889,
3401,
877,
354,
9274,
29889,
990,
8785,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
7974,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
7974,
877,
354,
9274,
29889,
990,
742,
17411,
29941,
29900,
16700,
742,
5852,
876,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
1123,
2055,
355,
800,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
1123,
2055,
355,
800,
29889,
1170,
877,
354,
9274,
29889,
990,
8785,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
6595,
29879,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
6595,
29879,
29889,
1170,
877,
354,
9274,
29889,
990,
8785,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
13228,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
13228,
29889,
1170,
877,
354,
9274,
29889,
990,
8785,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
29928,
1983,
4051,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
29928,
1983,
4051,
29889,
1170,
877,
354,
9274,
29889,
990,
8785,
30004,
13,
29937,
325,
29898,
2754,
29889,
29928,
1983,
4051,
29889,
5690,
877,
29947,
29889,
29947,
29889,
29947,
29889,
29947,
8785,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
29933,
19903,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
29933,
29887,
29886,
24254,
267,
29889,
5690,
877,
29947,
29889,
29947,
29889,
29947,
29889,
29947,
8785,
30004,
13,
29937,
325,
29898,
2754,
29889,
29933,
29887,
29886,
24254,
267,
29889,
3289,
29940,
29898,
29896,
29896,
29946,
29906,
29945,
876,
30004,
13,
30004,
13,
29937,
1596,
525,
22110,
3624,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
22110,
3624,
877,
354,
9274,
29889,
990,
8785,
30004,
13,
29937,
325,
29898,
2754,
29889,
22110,
3624,
29889,
9823,
29879,
877,
29966,
26862,
6227,
29958,
742,
12801,
26862,
6227,
29958,
742,
4046,
29922,
29906,
29892,
9210,
29922,
29896,
29900,
29892,
2656,
2433,
11600,
8785,
30004,
13,
29937,
325,
29898,
2754,
29889,
22110,
3624,
29889,
8659,
261,
874,
877,
1983,
29896,
29889,
3608,
29889,
510,
742,
525,
1983,
29906,
29889,
3608,
29889,
510,
742,
4046,
29922,
29906,
29892,
9210,
29922,
29896,
29900,
29892,
2656,
2433,
11600,
8785,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
5690,
29879,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
5690,
29879,
29889,
13992,
342,
11096,
2708,
877,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29941,
29889,
29896,
29896,
8785,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
29937,
1596,
525,
7031,
19169,
291,
29915,
30004,
13,
29937,
325,
29898,
2754,
29889,
7031,
19169,
291,
29898,
13400,
29922,
29896,
29900,
29900,
876,
30004,
13,
29937,
1596,
6629,
30004,
13,
30004,
13,
2158,
525,
29903,
9422,
29915,
30004,
13,
29894,
29898,
2754,
29889,
29903,
9422,
877,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29941,
29889,
29896,
29896,
8785,
30004,
13,
2158,
6629,
30004,
13,
2
] |
third_party/blink/tools/blinkpy/w3c/wpt_uploader.py | chromium/chromium | 14,668 | 175393 | # Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Uploads Wpt test results from Chromium to wpt.fyi."""
import argparse
import gzip
import json
import logging
import os
import requests
import tempfile
from blinkpy.common.net.rpc import Rpc
from blinkpy.common.system.log_utils import configure_logging
_log = logging.getLogger(__name__)
class WptReportUploader(object):
def __init__(self, host):
self._host = host
self._rpc = Rpc(host)
self._dry_run = False
configure_logging(logging_level=logging.INFO, include_time=True)
def main(self, argv=None):
"""Pull wpt_report.json from latest CI runs, merge the reports and
upload that to wpt.fyi.
Returns:
A boolean: True if success, False if there were any failures.
"""
options = self.parse_args(argv)
if options.verbose:
configure_logging(logging_level=logging.DEBUG, include_time=True)
self._dry_run = options.dry_run
rv = 0
builders = [("chromium", "ci", "android-webview-pie-x86-wpt-fyi-rel")]
for builder in builders:
reports = []
_log.info("Uploading report for %s" % builder[2])
build = self.fetch_latest_complete_build(*builder)
if build:
_log.info("Find latest completed build %d" % build.get("number"))
urls = self.fetch_wpt_report_urls(build.get("id"))
for url in urls:
_log.info("Fetching wpt report from %s" % url)
res = self._host.web.request("GET", url)
if res.getcode() == 200:
body = res.read()
reports.append(json.loads(body))
else:
_log.error("Failed to fetch wpt report.")
merged_report = self.merge_reports(reports)
with tempfile.TemporaryDirectory() as tmpdir:
path = os.path.join(tmpdir, "reports.json.gz")
with gzip.open(path, 'wt', encoding="utf-8") as zipfile:
json.dump(merged_report, zipfile)
rv = rv | self.upload_report(path)
_log.info(" ")
return rv
def fetch_wpt_report_urls(self, build_id):
"""Get a list of fetchUrl for wpt-report from given build.
This uses the QueryArtifacts rpc format specified in
https://source.chromium.org/chromium/infra/infra/+/main:go/src/go.chromium.org/luci/resultdb/proto/v1/resultdb.proto
The response is a list of dicts of the following form:
{
'artifacts': [
{
'name': 'some name',
'artifactId': 'wpt_reports_dada.json',
'fetchUrl': 'https://something...',
'fetchUrlExpiration': 'some future time',
'sizeBytes': '8472164'
},
... more artifacts
]
}
Returns a list of URLs for wpt report
"""
invocation = "invocations/build-%s" % build_id
data = {
"invocations": [invocation],
"predicate": {
"followEdges": {"includedInvocations": True}
}
}
url = 'https://results.api.cr.dev/prpc/luci.resultdb.v1.ResultDB/QueryArtifacts'
res = self._rpc.luci_rpc(url, data)
artifacts = res.get("artifacts") if res else None
if not artifacts:
return []
rv = []
for artifact in artifacts:
if artifact.get("artifactId").startswith("wpt_reports"):
rv.append(artifact.get("fetchUrl"))
return rv
def fetch_latest_complete_build(self, project, bucket, builder_name):
"""Gets latest successful build from a CI builder.
This uses the SearchBuilds rpc format specified in
https://cs.chromium.org/chromium/infra/go/src/go.chromium.org/luci/buildbucket/proto/rpc.proto
The response is a list of dicts of the following form:
{
"builds": [
{
"id": "8828280326907235505",
"builder": {
"builder": "android-webview-pie-x86-wpt-fyi-rel"
},
"status": "SUCCESS"
},
... more builds
}
This method returns the latest finished build.
"""
data = {
"predicate": {
"builder": {
"project": project,
"bucket": bucket,
"builder": builder_name
},
"status": "SUCCESS"
},
"fields": "builds.*.builder.builder,builds.*.number,builds.*.status,builds.*.id",
"pageSize": 10
}
url = 'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds/SearchBuilds'
raw_results_json = self._rpc.luci_rpc(url, data)
if 'builds' not in raw_results_json:
return None
builds = raw_results_json['builds']
return builds[0] if builds else None
def upload_report(self, path_to_report):
"""Upload the wpt report to wpt.fyi
The Api is defined at:
https://github.com/web-platform-tests/wpt.fyi/tree/main/api#results-creation
"""
username = "chromium-ci-results-uploader"
password = <PASSWORD>"
url = "https://staging.wpt.fyi/api/results/upload"
session = requests.Session()
session.auth = (username, password)
with open(path_to_report, 'rb') as fp:
files = {'result_file': fp}
if self._dry_run:
_log.info("Dry run, no report uploaded.")
return 0
res = session.post(url=url, files=files)
if res.status_code == 200:
_log.info("Successfully uploaded wpt report with response: " + res.text)
report_id = res.text.split()[1]
_log.info("Report uploaded to https://staging.wpt.fyi/api/runs?run_id=%s" % report_id)
return 0
else:
_log.error("Upload wpt report failed with status code: %d", res.status_code)
return 1
def merge_reports(self, reports):
if not reports:
return {}
merged_report = {}
merged_report['run_info'] = reports[0]['run_info']
merged_report['time_start'] = reports[0]['time_start']
merged_report['results'] = []
merged_report['time_end'] = reports[0]['time_end']
for report in reports:
merged_report['time_start'] = min(merged_report['time_start'],
report['time_start'])
merged_report['results'].extend(report['results'])
merged_report['time_end'] = max(merged_report['time_end'],
report['time_end'])
return merged_report
def parse_args(self, argv):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'-v',
'--verbose',
action='store_true',
help='log extra details that may be helpful when debugging')
parser.add_argument(
'--dry-run',
action='store_true',
help='See what would be done without actually uploading any report.')
return parser.parse_args(argv)
| [
1,
396,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
450,
678,
456,
1974,
13189,
943,
29889,
2178,
10462,
21676,
29889,
13,
29937,
4803,
310,
445,
2752,
775,
338,
4095,
287,
491,
263,
350,
7230,
29899,
3293,
19405,
393,
508,
367,
13,
29937,
1476,
297,
278,
365,
2965,
1430,
1660,
934,
29889,
13,
15945,
29908,
17553,
29879,
399,
415,
1243,
2582,
515,
678,
456,
1974,
304,
281,
415,
29889,
29888,
25675,
1213,
15945,
13,
13,
5215,
1852,
5510,
13,
5215,
330,
7554,
13,
5215,
4390,
13,
5215,
12183,
13,
5215,
2897,
13,
5215,
7274,
13,
5215,
5694,
1445,
13,
13,
3166,
1999,
682,
2272,
29889,
9435,
29889,
1212,
29889,
29878,
6739,
1053,
390,
6739,
13,
3166,
1999,
682,
2272,
29889,
9435,
29889,
5205,
29889,
1188,
29918,
13239,
1053,
10822,
29918,
21027,
13,
13,
29918,
1188,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
13,
1990,
399,
415,
13020,
3373,
12657,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3495,
1125,
13,
4706,
1583,
3032,
3069,
353,
3495,
13,
4706,
1583,
3032,
29878,
6739,
353,
390,
6739,
29898,
3069,
29897,
13,
4706,
1583,
3032,
29881,
719,
29918,
3389,
353,
7700,
13,
4706,
10822,
29918,
21027,
29898,
21027,
29918,
5563,
29922,
21027,
29889,
11690,
29892,
3160,
29918,
2230,
29922,
5574,
29897,
13,
13,
1678,
822,
1667,
29898,
1311,
29892,
1852,
29894,
29922,
8516,
1125,
13,
4706,
9995,
29925,
913,
281,
415,
29918,
12276,
29889,
3126,
515,
9281,
25781,
6057,
29892,
10366,
278,
13676,
322,
13,
4706,
6441,
393,
304,
281,
415,
29889,
29888,
25675,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
319,
7223,
29901,
5852,
565,
2551,
29892,
7700,
565,
727,
892,
738,
4418,
1973,
29889,
13,
4706,
9995,
13,
4706,
3987,
353,
1583,
29889,
5510,
29918,
5085,
29898,
19218,
29897,
13,
4706,
565,
3987,
29889,
369,
15828,
29901,
13,
9651,
10822,
29918,
21027,
29898,
21027,
29918,
5563,
29922,
21027,
29889,
18525,
29892,
3160,
29918,
2230,
29922,
5574,
29897,
13,
4706,
1583,
3032,
29881,
719,
29918,
3389,
353,
3987,
29889,
29881,
719,
29918,
3389,
13,
13,
4706,
364,
29894,
353,
29871,
29900,
13,
13,
4706,
2048,
414,
353,
518,
703,
27433,
1974,
613,
376,
455,
613,
376,
2843,
29899,
2676,
1493,
29899,
12343,
29899,
29916,
29947,
29953,
29899,
29893,
415,
29899,
29888,
25675,
29899,
2674,
13531,
13,
4706,
363,
12856,
297,
2048,
414,
29901,
13,
9651,
13676,
353,
5159,
13,
9651,
903,
1188,
29889,
3888,
703,
3373,
13234,
3461,
363,
1273,
29879,
29908,
1273,
12856,
29961,
29906,
2314,
13,
9651,
2048,
353,
1583,
29889,
9155,
29918,
12333,
29918,
8835,
29918,
4282,
10456,
16409,
29897,
13,
9651,
565,
2048,
29901,
13,
18884,
903,
1188,
29889,
3888,
703,
12542,
9281,
8676,
2048,
1273,
29881,
29908,
1273,
2048,
29889,
657,
703,
4537,
5783,
13,
18884,
23942,
353,
1583,
29889,
9155,
29918,
29893,
415,
29918,
12276,
29918,
26045,
29898,
4282,
29889,
657,
703,
333,
5783,
13,
18884,
363,
3142,
297,
23942,
29901,
13,
462,
1678,
903,
1188,
29889,
3888,
703,
20927,
292,
281,
415,
3461,
515,
1273,
29879,
29908,
1273,
3142,
29897,
13,
462,
1678,
620,
353,
1583,
3032,
3069,
29889,
2676,
29889,
3827,
703,
7194,
613,
3142,
29897,
13,
462,
1678,
565,
620,
29889,
657,
401,
580,
1275,
29871,
29906,
29900,
29900,
29901,
13,
462,
4706,
3573,
353,
620,
29889,
949,
580,
13,
462,
4706,
13676,
29889,
4397,
29898,
3126,
29889,
18132,
29898,
2587,
876,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
903,
1188,
29889,
2704,
703,
17776,
304,
6699,
281,
415,
3461,
23157,
13,
13,
9651,
19412,
29918,
12276,
353,
1583,
29889,
14634,
29918,
276,
4011,
29898,
276,
4011,
29897,
13,
13,
9651,
411,
5694,
1445,
29889,
5776,
1971,
653,
9882,
580,
408,
13128,
3972,
29901,
13,
18884,
2224,
353,
2897,
29889,
2084,
29889,
7122,
29898,
7050,
3972,
29892,
376,
276,
4011,
29889,
3126,
29889,
18828,
1159,
13,
18884,
411,
330,
7554,
29889,
3150,
29898,
2084,
29892,
525,
14554,
742,
8025,
543,
9420,
29899,
29947,
1159,
408,
14319,
1445,
29901,
13,
462,
1678,
4390,
29889,
15070,
29898,
1050,
3192,
29918,
12276,
29892,
14319,
1445,
29897,
13,
18884,
364,
29894,
353,
364,
29894,
891,
1583,
29889,
9009,
29918,
12276,
29898,
2084,
29897,
13,
9651,
903,
1188,
29889,
3888,
703,
16521,
13,
13,
4706,
736,
364,
29894,
13,
13,
1678,
822,
6699,
29918,
29893,
415,
29918,
12276,
29918,
26045,
29898,
1311,
29892,
2048,
29918,
333,
1125,
13,
4706,
9995,
2577,
263,
1051,
310,
6699,
5983,
363,
281,
415,
29899,
12276,
515,
2183,
2048,
29889,
13,
13,
4706,
910,
3913,
278,
13641,
9986,
7060,
29879,
364,
6739,
3402,
6790,
297,
13,
4706,
2045,
597,
4993,
29889,
27433,
1974,
29889,
990,
29914,
27433,
1974,
29914,
7192,
336,
29914,
7192,
336,
29914,
29974,
29914,
3396,
29901,
1484,
29914,
4351,
29914,
1484,
29889,
27433,
1974,
29889,
990,
29914,
6092,
455,
29914,
2914,
2585,
29914,
17529,
29914,
29894,
29896,
29914,
2914,
2585,
29889,
17529,
13,
13,
4706,
450,
2933,
338,
263,
1051,
310,
9657,
29879,
310,
278,
1494,
883,
29901,
13,
13,
4706,
426,
13,
9651,
525,
8813,
29879,
2396,
518,
13,
18884,
426,
13,
462,
1678,
525,
978,
2396,
525,
5372,
1024,
742,
13,
462,
1678,
525,
9680,
2396,
525,
29893,
415,
29918,
276,
4011,
29918,
29881,
1114,
29889,
3126,
742,
13,
462,
1678,
525,
9155,
5983,
2396,
525,
991,
597,
14481,
856,
742,
13,
462,
1678,
525,
9155,
5983,
9544,
12232,
2396,
525,
5372,
5434,
931,
742,
13,
462,
1678,
525,
2311,
11207,
2396,
525,
29947,
29946,
29955,
29906,
29896,
29953,
29946,
29915,
13,
18884,
2981,
13,
18884,
2023,
901,
24238,
29879,
13,
9651,
4514,
13,
4706,
500,
13,
4706,
16969,
263,
1051,
310,
24295,
363,
281,
415,
3461,
13,
4706,
9995,
13,
13,
4706,
2437,
10610,
353,
376,
11569,
542,
800,
29914,
4282,
19222,
29879,
29908,
1273,
2048,
29918,
333,
13,
4706,
848,
353,
426,
13,
9651,
376,
11569,
542,
800,
1115,
518,
11569,
10610,
1402,
13,
9651,
376,
11965,
9593,
1115,
426,
13,
18884,
376,
23031,
3853,
2710,
1115,
8853,
11707,
287,
12165,
542,
800,
1115,
5852,
29913,
13,
9651,
500,
13,
4706,
500,
13,
4706,
3142,
353,
525,
991,
597,
9902,
29889,
2754,
29889,
7283,
29889,
3359,
29914,
558,
6739,
29914,
6092,
455,
29889,
2914,
2585,
29889,
29894,
29896,
29889,
3591,
4051,
29914,
3010,
9986,
7060,
29879,
29915,
13,
4706,
620,
353,
1583,
3032,
29878,
6739,
29889,
6092,
455,
29918,
29878,
6739,
29898,
2271,
29892,
848,
29897,
13,
4706,
24238,
29879,
353,
620,
29889,
657,
703,
8813,
29879,
1159,
565,
620,
1683,
6213,
13,
4706,
565,
451,
24238,
29879,
29901,
13,
9651,
736,
5159,
13,
13,
4706,
364,
29894,
353,
5159,
13,
4706,
363,
24238,
297,
24238,
29879,
29901,
13,
9651,
565,
24238,
29889,
657,
703,
9680,
2564,
27382,
2541,
703,
29893,
415,
29918,
276,
4011,
29908,
1125,
13,
18884,
364,
29894,
29889,
4397,
29898,
8813,
29889,
657,
703,
9155,
5983,
5783,
13,
4706,
736,
364,
29894,
13,
13,
1678,
822,
6699,
29918,
12333,
29918,
8835,
29918,
4282,
29898,
1311,
29892,
2060,
29892,
20968,
29892,
12856,
29918,
978,
1125,
13,
4706,
9995,
29954,
1691,
9281,
9150,
2048,
515,
263,
25781,
12856,
29889,
13,
13,
4706,
910,
3913,
278,
11856,
8893,
29879,
364,
6739,
3402,
6790,
297,
13,
4706,
2045,
597,
2395,
29889,
27433,
1974,
29889,
990,
29914,
27433,
1974,
29914,
7192,
336,
29914,
1484,
29914,
4351,
29914,
1484,
29889,
27433,
1974,
29889,
990,
29914,
6092,
455,
29914,
4282,
21454,
29914,
17529,
29914,
29878,
6739,
29889,
17529,
13,
13,
4706,
450,
2933,
338,
263,
1051,
310,
9657,
29879,
310,
278,
1494,
883,
29901,
13,
4706,
426,
13,
965,
376,
4282,
29879,
1115,
518,
13,
1669,
426,
13,
462,
259,
376,
333,
1115,
376,
29947,
29947,
29906,
29947,
29906,
29947,
29900,
29941,
29906,
29953,
29929,
29900,
29955,
29906,
29941,
29945,
29945,
29900,
29945,
613,
13,
462,
259,
376,
16409,
1115,
426,
13,
462,
539,
376,
16409,
1115,
376,
2843,
29899,
2676,
1493,
29899,
12343,
29899,
29916,
29947,
29953,
29899,
29893,
415,
29899,
29888,
25675,
29899,
2674,
29908,
13,
462,
259,
2981,
13,
462,
259,
376,
4882,
1115,
376,
14605,
26925,
29908,
13,
1669,
2981,
13,
1669,
2023,
901,
23315,
13,
4706,
500,
13,
13,
4706,
910,
1158,
3639,
278,
9281,
7743,
2048,
29889,
13,
4706,
9995,
13,
4706,
848,
353,
426,
13,
9651,
376,
11965,
9593,
1115,
426,
13,
18884,
376,
16409,
1115,
426,
13,
462,
1678,
376,
4836,
1115,
2060,
29892,
13,
462,
1678,
376,
21454,
1115,
20968,
29892,
13,
462,
1678,
376,
16409,
1115,
12856,
29918,
978,
13,
18884,
2981,
13,
18884,
376,
4882,
1115,
376,
14605,
26925,
29908,
13,
9651,
2981,
13,
9651,
376,
9621,
1115,
376,
4282,
29879,
5575,
29889,
16409,
29889,
16409,
29892,
4282,
29879,
5575,
29889,
4537,
29892,
4282,
29879,
5575,
29889,
4882,
29892,
4282,
29879,
5575,
29889,
333,
613,
13,
9651,
376,
3488,
3505,
1115,
29871,
29896,
29900,
13,
4706,
500,
13,
4706,
3142,
353,
525,
991,
597,
7283,
29899,
4282,
21454,
29889,
932,
17500,
29889,
510,
29914,
558,
6739,
29914,
4282,
21454,
29889,
29894,
29906,
29889,
8893,
29879,
29914,
7974,
8893,
29879,
29915,
13,
4706,
10650,
29918,
9902,
29918,
3126,
353,
1583,
3032,
29878,
6739,
29889,
6092,
455,
29918,
29878,
6739,
29898,
2271,
29892,
848,
29897,
13,
4706,
565,
525,
4282,
29879,
29915,
451,
297,
10650,
29918,
9902,
29918,
3126,
29901,
13,
9651,
736,
6213,
13,
4706,
23315,
353,
10650,
29918,
9902,
29918,
3126,
1839,
4282,
29879,
2033,
13,
4706,
736,
23315,
29961,
29900,
29962,
565,
23315,
1683,
6213,
13,
13,
1678,
822,
6441,
29918,
12276,
29898,
1311,
29892,
2224,
29918,
517,
29918,
12276,
1125,
13,
4706,
9995,
17553,
278,
281,
415,
3461,
304,
281,
415,
29889,
29888,
25675,
13,
13,
4706,
450,
29749,
338,
3342,
472,
29901,
13,
4706,
2045,
597,
3292,
29889,
510,
29914,
2676,
29899,
12120,
29899,
21150,
29914,
29893,
415,
29889,
29888,
25675,
29914,
8336,
29914,
3396,
29914,
2754,
29937,
9902,
29899,
1037,
362,
13,
4706,
9995,
13,
4706,
8952,
353,
376,
27433,
1974,
29899,
455,
29899,
9902,
29899,
9009,
261,
29908,
13,
4706,
4800,
353,
529,
25711,
17013,
11903,
13,
4706,
3142,
353,
376,
991,
597,
303,
6751,
29889,
29893,
415,
29889,
29888,
25675,
29914,
2754,
29914,
9902,
29914,
9009,
29908,
13,
13,
4706,
4867,
353,
7274,
29889,
7317,
580,
13,
4706,
4867,
29889,
5150,
353,
313,
6786,
29892,
4800,
29897,
13,
4706,
411,
1722,
29898,
2084,
29918,
517,
29918,
12276,
29892,
525,
6050,
1495,
408,
285,
29886,
29901,
13,
9651,
2066,
353,
11117,
2914,
29918,
1445,
2396,
285,
29886,
29913,
13,
9651,
565,
1583,
3032,
29881,
719,
29918,
3389,
29901,
13,
18884,
903,
1188,
29889,
3888,
703,
29928,
719,
1065,
29892,
694,
3461,
20373,
23157,
13,
18884,
736,
29871,
29900,
13,
9651,
620,
353,
4867,
29889,
2490,
29898,
2271,
29922,
2271,
29892,
2066,
29922,
5325,
29897,
13,
9651,
565,
620,
29889,
4882,
29918,
401,
1275,
29871,
29906,
29900,
29900,
29901,
13,
18884,
903,
1188,
29889,
3888,
703,
14191,
3730,
20373,
281,
415,
3461,
411,
2933,
29901,
376,
718,
620,
29889,
726,
29897,
13,
18884,
3461,
29918,
333,
353,
620,
29889,
726,
29889,
5451,
580,
29961,
29896,
29962,
13,
18884,
903,
1188,
29889,
3888,
703,
13020,
20373,
304,
2045,
597,
303,
6751,
29889,
29893,
415,
29889,
29888,
25675,
29914,
2754,
29914,
3389,
29879,
29973,
3389,
29918,
333,
16328,
29879,
29908,
1273,
3461,
29918,
333,
29897,
13,
18884,
736,
29871,
29900,
13,
9651,
1683,
29901,
13,
18884,
903,
1188,
29889,
2704,
703,
17553,
281,
415,
3461,
5229,
411,
4660,
775,
29901,
1273,
29881,
613,
620,
29889,
4882,
29918,
401,
29897,
13,
18884,
736,
29871,
29896,
13,
13,
1678,
822,
10366,
29918,
276,
4011,
29898,
1311,
29892,
13676,
1125,
13,
4706,
565,
451,
13676,
29901,
13,
9651,
736,
6571,
13,
13,
4706,
19412,
29918,
12276,
353,
6571,
13,
4706,
19412,
29918,
12276,
1839,
3389,
29918,
3888,
2033,
353,
13676,
29961,
29900,
22322,
3389,
29918,
3888,
2033,
13,
4706,
19412,
29918,
12276,
1839,
2230,
29918,
2962,
2033,
353,
13676,
29961,
29900,
22322,
2230,
29918,
2962,
2033,
13,
4706,
19412,
29918,
12276,
1839,
9902,
2033,
353,
5159,
13,
4706,
19412,
29918,
12276,
1839,
2230,
29918,
355,
2033,
353,
13676,
29961,
29900,
22322,
2230,
29918,
355,
2033,
13,
4706,
363,
3461,
297,
13676,
29901,
13,
9651,
19412,
29918,
12276,
1839,
2230,
29918,
2962,
2033,
353,
1375,
29898,
1050,
3192,
29918,
12276,
1839,
2230,
29918,
2962,
7464,
13,
462,
462,
795,
3461,
1839,
2230,
29918,
2962,
11287,
13,
9651,
19412,
29918,
12276,
1839,
9902,
13359,
21843,
29898,
12276,
1839,
9902,
11287,
13,
9651,
19412,
29918,
12276,
1839,
2230,
29918,
355,
2033,
353,
4236,
29898,
1050,
3192,
29918,
12276,
1839,
2230,
29918,
355,
7464,
13,
462,
462,
9651,
3461,
1839,
2230,
29918,
355,
11287,
13,
4706,
736,
19412,
29918,
12276,
13,
13,
1678,
822,
6088,
29918,
5085,
29898,
1311,
29892,
1852,
29894,
1125,
13,
4706,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
29922,
1649,
1514,
1649,
29897,
13,
4706,
13812,
29889,
1202,
29918,
23516,
29898,
13,
9651,
17411,
29894,
742,
13,
9651,
525,
489,
369,
15828,
742,
13,
9651,
3158,
2433,
8899,
29918,
3009,
742,
13,
9651,
1371,
2433,
1188,
4805,
4902,
393,
1122,
367,
8444,
746,
13490,
1495,
13,
4706,
13812,
29889,
1202,
29918,
23516,
29898,
13,
9651,
525,
489,
29881,
719,
29899,
3389,
742,
13,
9651,
3158,
2433,
8899,
29918,
3009,
742,
13,
9651,
1371,
2433,
13393,
825,
723,
367,
2309,
1728,
2869,
6441,
292,
738,
3461,
29889,
1495,
13,
4706,
736,
13812,
29889,
5510,
29918,
5085,
29898,
19218,
29897,
13,
2
] |
authors/apps/articles/tests/test_tags.py | Tittoh/blog-API | 1 | 73587 | import json
from django.urls import reverse
from rest_framework.test import APITestCase
from rest_framework import status
from authors.apps.authentication.models import User
from authors.apps.authentication.tests.utils import TEST_USER
from django.core import mail
from authors.apps.authentication.views import VerifyAccount
from django.utils.http import urlsafe_base64_encode
from django.utils.encoding import force_bytes
from authors.apps.authentication.utils import generate_token
from rest_framework.test import force_authenticate
from rest_framework.test import APIRequestFactory
from authors.apps.articles.models import Article
user = {
"user": {
"username": "test",
"email": "<EMAIL>",
"password": "<PASSWORD>."
}
}
class TestTags(APITestCase):
"""
This class defines the test suite for the tags of an article.
"""
def setUp(self):
"""Define the test client and other test variables."""
self.article1 = {
"article": {
"title": "How to train your dragon",
"description": "Ever wonder how?",
"body": "You have to believe",
"tagList": ["django-rest", "python"]
}
}
self.bad_tag_list = {
"article": {
"title": "How to train your dragon",
"description": "Ever wonder how?",
"body": "You have to believe",
"tagList": "django-rest, python"
}
}
self.tag_tuple = {
"article": {
"title": "How to train your dragon",
"description": "Ever wonder how?",
"body": "You have to believe",
"tagList": ("django-rest, python")
}
}
self.user = {
"user": {
"username": "test",
"email": "<EMAIL>",
"password": "<PASSWORD>."
}
}
def login_user(self, user=user):
"""
login user
"""
response = self.client.post(
reverse("authentication:login"),
user,
format='json')
response.render()
user = json.loads(response.content)
return user
def create_a_user(self, username='test', email='<EMAIL>',
password='<PASSWORD>.'):
"""
Create a test user
"""
user = User.objects.create_user(username, email, password)
user.save()
return user
def create_article(self):
"""
Create a test article
"""
tags = ["django-rest", "python"]
user = User.objects.get()
article = Article.objects.create(
title="How to train your dragon",
description="Ever wonder how?",
body="You have to believe",
tagList=tags,
author=user.profile)
article.save()
return article
def verify_user(self, user):
"""Verify user"""
token = generate_token.make_token(user)
uid = urlsafe_base64_encode(force_bytes(user.pk))
request = APIRequestFactory().get(
reverse("authentication:verify", args=[uid, token]))
verify_account = VerifyAccount.as_view()
verify_account(request, uidb64=uid, token=token)
return user
#Test cases
def test_tagList_added(self):
"""Test a tagList is added when an article is created"""
user = self.create_a_user()
self.verify_user(user)
auth_user = self.login_user()
user = User.objects.get()
response = self.client.post('/api/articles/',
self.article1,
HTTP_AUTHORIZATION='Bearer ' +
auth_user['user']['token'],
format='json'
)
self.assertIn("django-rest", response.content.decode()),
self.assertIn("python", response.content.decode())
def test_tagList_returned(self):
"""Test api can return a taglist with an article"""
user = self.create_a_user()
self.verify_user(user)
auth_user = self.login_user()
self.client.post('/api/articles/',
self.article1,
HTTP_AUTHORIZATION='Bearer ' +
auth_user['user']['token'],
format='json'
)
response = self.client.get('/api/articles/',
format='json'
)
self.assertIn("django-rest", response.content.decode()),
self.assertIn("python", response.content.decode())
def test_get_tagList(self):
"""
Test api can get a tagList
"""
user = self.create_a_user()
self.verify_user(user)
auth_user = self.login_user()
self.client.post('/api/articles/',
self.article1,
HTTP_AUTHORIZATION='Bearer ' +
auth_user['user']['token'],
format='json'
)
response = self.client.get('/api/tags/',
format='json'
)
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_tagList_object(self):
"""
Test a tagList cannot be a string
"""
user = self.create_a_user()
self.verify_user(user)
auth_user = self.login_user()
response = self.client.post('/api/articles/',
self.bad_tag_list,
HTTP_AUTHORIZATION='Bearer ' +
auth_user['user']['token'],
format='json'
)
self.assertNotIn("django-rest", response.content.decode()),
self.assertNotIn("python", response.content.decode())
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
def test_tagList_data_structure(self):
"""
Test a tagList cannot be a tuple
"""
user = self.create_a_user()
self.verify_user(user)
auth_user = self.login_user()
response = self.client.post('/api/articles/',
self.tag_tuple,
HTTP_AUTHORIZATION='Bearer ' +
auth_user['user']['token'],
format='json'
)
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
| [
1,
1053,
4390,
13,
3166,
9557,
29889,
26045,
1053,
11837,
13,
3166,
1791,
29918,
4468,
29889,
1688,
1053,
12279,
1806,
342,
8259,
13,
3166,
1791,
29918,
4468,
1053,
4660,
13,
3166,
15717,
29889,
13371,
29889,
23055,
29889,
9794,
1053,
4911,
13,
3166,
15717,
29889,
13371,
29889,
23055,
29889,
21150,
29889,
13239,
1053,
17067,
1254,
29918,
11889,
13,
3166,
9557,
29889,
3221,
1053,
10524,
13,
3166,
15717,
29889,
13371,
29889,
23055,
29889,
7406,
1053,
1798,
1598,
10601,
13,
3166,
9557,
29889,
13239,
29889,
1124,
1053,
3142,
11177,
29918,
3188,
29953,
29946,
29918,
12508,
13,
3166,
9557,
29889,
13239,
29889,
22331,
1053,
4889,
29918,
13193,
13,
3166,
15717,
29889,
13371,
29889,
23055,
29889,
13239,
1053,
5706,
29918,
6979,
13,
3166,
1791,
29918,
4468,
29889,
1688,
1053,
4889,
29918,
27218,
403,
13,
3166,
1791,
29918,
4468,
29889,
1688,
1053,
3450,
3089,
5126,
13,
3166,
15717,
29889,
13371,
29889,
18569,
29889,
9794,
1053,
21746,
13,
13,
1792,
353,
426,
13,
1678,
376,
1792,
1115,
426,
13,
4706,
376,
6786,
1115,
376,
1688,
613,
13,
4706,
376,
5269,
1115,
9872,
26862,
6227,
28341,
13,
4706,
376,
5630,
1115,
9872,
25711,
17013,
29958,
1213,
13,
1678,
500,
13,
29913,
13,
13,
1990,
4321,
28089,
29898,
3301,
1806,
342,
8259,
1125,
13,
1678,
9995,
13,
1678,
910,
770,
17645,
278,
1243,
9460,
363,
278,
8282,
310,
385,
4274,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
9995,
3206,
457,
278,
1243,
3132,
322,
916,
1243,
3651,
1213,
15945,
13,
13,
4706,
1583,
29889,
7914,
29896,
353,
426,
13,
9651,
376,
7914,
1115,
426,
13,
18884,
376,
3257,
1115,
376,
5328,
304,
7945,
596,
8338,
265,
613,
13,
18884,
376,
8216,
1115,
376,
29923,
369,
4997,
920,
29973,
613,
13,
18884,
376,
2587,
1115,
376,
3492,
505,
304,
4658,
613,
13,
18884,
376,
4039,
1293,
1115,
6796,
14095,
29899,
5060,
613,
376,
4691,
3108,
13,
9651,
500,
13,
4706,
500,
13,
4706,
1583,
29889,
12313,
29918,
4039,
29918,
1761,
353,
426,
13,
9651,
376,
7914,
1115,
426,
13,
18884,
376,
3257,
1115,
376,
5328,
304,
7945,
596,
8338,
265,
613,
13,
18884,
376,
8216,
1115,
376,
29923,
369,
4997,
920,
29973,
613,
13,
18884,
376,
2587,
1115,
376,
3492,
505,
304,
4658,
613,
13,
18884,
376,
4039,
1293,
1115,
376,
14095,
29899,
5060,
29892,
3017,
29908,
13,
9651,
500,
13,
4706,
500,
13,
4706,
1583,
29889,
4039,
29918,
23583,
353,
426,
13,
9651,
376,
7914,
1115,
426,
13,
18884,
376,
3257,
1115,
376,
5328,
304,
7945,
596,
8338,
265,
613,
13,
18884,
376,
8216,
1115,
376,
29923,
369,
4997,
920,
29973,
613,
13,
18884,
376,
2587,
1115,
376,
3492,
505,
304,
4658,
613,
13,
18884,
376,
4039,
1293,
1115,
4852,
14095,
29899,
5060,
29892,
3017,
1159,
13,
9651,
500,
13,
4706,
500,
13,
4706,
1583,
29889,
1792,
353,
426,
13,
632,
376,
1792,
1115,
426,
13,
462,
376,
6786,
1115,
376,
1688,
613,
13,
462,
376,
5269,
1115,
9872,
26862,
6227,
28341,
13,
462,
376,
5630,
1115,
9872,
25711,
17013,
29958,
1213,
13,
632,
500,
13,
308,
500,
13,
13,
1678,
822,
6464,
29918,
1792,
29898,
1311,
29892,
1404,
29922,
1792,
1125,
13,
4706,
9995,
13,
4706,
6464,
1404,
13,
4706,
9995,
13,
4706,
2933,
353,
1583,
29889,
4645,
29889,
2490,
29898,
13,
9651,
11837,
703,
23055,
29901,
7507,
4968,
13,
9651,
1404,
29892,
13,
9651,
3402,
2433,
3126,
1495,
13,
4706,
2933,
29889,
9482,
580,
13,
4706,
1404,
353,
4390,
29889,
18132,
29898,
5327,
29889,
3051,
29897,
13,
4706,
736,
1404,
13,
13,
1678,
822,
1653,
29918,
29874,
29918,
1792,
29898,
1311,
29892,
8952,
2433,
1688,
742,
4876,
2433,
29966,
26862,
6227,
29958,
742,
13,
462,
418,
4800,
2433,
29966,
25711,
17013,
29958,
6169,
1125,
13,
4706,
9995,
13,
4706,
6204,
263,
1243,
1404,
13,
4706,
9995,
13,
4706,
1404,
353,
4911,
29889,
12650,
29889,
3258,
29918,
1792,
29898,
6786,
29892,
4876,
29892,
4800,
29897,
13,
4706,
1404,
29889,
7620,
580,
13,
4706,
736,
1404,
13,
13,
1678,
822,
1653,
29918,
7914,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
6204,
263,
1243,
4274,
13,
4706,
9995,
13,
4706,
8282,
353,
6796,
14095,
29899,
5060,
613,
376,
4691,
3108,
13,
4706,
1404,
353,
4911,
29889,
12650,
29889,
657,
580,
13,
4706,
4274,
353,
21746,
29889,
12650,
29889,
3258,
29898,
13,
9651,
3611,
543,
5328,
304,
7945,
596,
8338,
265,
613,
13,
9651,
6139,
543,
29923,
369,
4997,
920,
29973,
613,
13,
9651,
3573,
543,
3492,
505,
304,
4658,
613,
13,
9651,
4055,
1293,
29922,
11338,
29892,
13,
9651,
4148,
29922,
1792,
29889,
10185,
29897,
13,
4706,
4274,
29889,
7620,
580,
13,
4706,
736,
4274,
13,
13,
1678,
822,
11539,
29918,
1792,
29898,
1311,
29892,
1404,
1125,
13,
4706,
9995,
6565,
1598,
1404,
15945,
29908,
13,
4706,
5993,
353,
5706,
29918,
6979,
29889,
5675,
29918,
6979,
29898,
1792,
29897,
13,
4706,
318,
333,
353,
3142,
11177,
29918,
3188,
29953,
29946,
29918,
12508,
29898,
10118,
29918,
13193,
29898,
1792,
29889,
20571,
876,
13,
4706,
2009,
353,
3450,
3089,
5126,
2141,
657,
29898,
13,
9651,
11837,
703,
23055,
29901,
27902,
613,
6389,
11759,
5416,
29892,
5993,
12622,
13,
4706,
11539,
29918,
10149,
353,
1798,
1598,
10601,
29889,
294,
29918,
1493,
580,
13,
4706,
11539,
29918,
10149,
29898,
3827,
29892,
318,
333,
29890,
29953,
29946,
29922,
5416,
29892,
5993,
29922,
6979,
29897,
13,
4706,
736,
1404,
13,
13,
1678,
396,
3057,
4251,
13,
1678,
822,
1243,
29918,
4039,
1293,
29918,
23959,
29898,
1311,
1125,
13,
4706,
9995,
3057,
263,
4055,
1293,
338,
2715,
746,
385,
4274,
338,
2825,
15945,
29908,
13,
4706,
1404,
353,
1583,
29889,
3258,
29918,
29874,
29918,
1792,
580,
13,
4706,
1583,
29889,
27902,
29918,
1792,
29898,
1792,
29897,
13,
4706,
4817,
29918,
1792,
353,
1583,
29889,
7507,
29918,
1792,
580,
13,
4706,
1404,
353,
4911,
29889,
12650,
29889,
657,
580,
13,
4706,
2933,
353,
1583,
29889,
4645,
29889,
2490,
11219,
2754,
29914,
18569,
29914,
742,
13,
462,
462,
1678,
1583,
29889,
7914,
29896,
29892,
13,
462,
462,
1678,
7331,
29918,
20656,
29950,
1955,
26664,
8098,
2433,
29933,
799,
261,
525,
718,
13,
462,
462,
1678,
4817,
29918,
1792,
1839,
1792,
16215,
6979,
7464,
13,
462,
462,
1678,
3402,
2433,
3126,
29915,
13,
462,
462,
1678,
1723,
13,
4706,
1583,
29889,
9294,
797,
703,
14095,
29899,
5060,
613,
2933,
29889,
3051,
29889,
13808,
25739,
13,
4706,
1583,
29889,
9294,
797,
703,
4691,
613,
2933,
29889,
3051,
29889,
13808,
3101,
13,
13,
1678,
822,
1243,
29918,
4039,
1293,
29918,
2457,
287,
29898,
1311,
1125,
13,
4706,
9995,
3057,
7882,
508,
736,
263,
4055,
1761,
411,
385,
4274,
15945,
29908,
13,
4706,
1404,
353,
1583,
29889,
3258,
29918,
29874,
29918,
1792,
580,
13,
4706,
1583,
29889,
27902,
29918,
1792,
29898,
1792,
29897,
13,
4706,
4817,
29918,
1792,
353,
1583,
29889,
7507,
29918,
1792,
580,
13,
4706,
1583,
29889,
4645,
29889,
2490,
11219,
2754,
29914,
18569,
29914,
742,
13,
462,
462,
1678,
1583,
29889,
7914,
29896,
29892,
13,
462,
462,
1678,
7331,
29918,
20656,
29950,
1955,
26664,
8098,
2433,
29933,
799,
261,
525,
718,
13,
462,
462,
1678,
4817,
29918,
1792,
1839,
1792,
16215,
6979,
7464,
13,
462,
462,
1678,
3402,
2433,
3126,
29915,
13,
462,
462,
1678,
1723,
13,
4706,
2933,
353,
1583,
29889,
4645,
29889,
657,
11219,
2754,
29914,
18569,
29914,
742,
13,
462,
462,
1678,
3402,
2433,
3126,
29915,
13,
462,
462,
1678,
1723,
13,
4706,
1583,
29889,
9294,
797,
703,
14095,
29899,
5060,
613,
2933,
29889,
3051,
29889,
13808,
25739,
13,
4706,
1583,
29889,
9294,
797,
703,
4691,
613,
2933,
29889,
3051,
29889,
13808,
3101,
13,
13,
1678,
822,
1243,
29918,
657,
29918,
4039,
1293,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
7882,
508,
679,
263,
4055,
1293,
13,
4706,
9995,
13,
13,
4706,
1404,
353,
1583,
29889,
3258,
29918,
29874,
29918,
1792,
580,
13,
4706,
1583,
29889,
27902,
29918,
1792,
29898,
1792,
29897,
13,
4706,
4817,
29918,
1792,
353,
1583,
29889,
7507,
29918,
1792,
580,
13,
4706,
1583,
29889,
4645,
29889,
2490,
11219,
2754,
29914,
18569,
29914,
742,
13,
462,
308,
1583,
29889,
7914,
29896,
29892,
13,
462,
308,
7331,
29918,
20656,
29950,
1955,
26664,
8098,
2433,
29933,
799,
261,
525,
718,
13,
462,
308,
4817,
29918,
1792,
1839,
1792,
16215,
6979,
7464,
13,
462,
308,
3402,
2433,
3126,
29915,
13,
462,
308,
1723,
13,
4706,
2933,
353,
1583,
29889,
4645,
29889,
657,
11219,
2754,
29914,
11338,
29914,
742,
13,
462,
462,
259,
3402,
2433,
3126,
29915,
13,
462,
462,
259,
1723,
13,
4706,
1583,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
4660,
29889,
10493,
29918,
29906,
29900,
29900,
29918,
8949,
29897,
13,
13,
1678,
822,
1243,
29918,
4039,
1293,
29918,
3318,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
263,
4055,
1293,
2609,
367,
263,
1347,
13,
4706,
9995,
13,
13,
4706,
1404,
353,
1583,
29889,
3258,
29918,
29874,
29918,
1792,
580,
13,
4706,
1583,
29889,
27902,
29918,
1792,
29898,
1792,
29897,
13,
4706,
4817,
29918,
1792,
353,
1583,
29889,
7507,
29918,
1792,
580,
13,
4706,
2933,
353,
1583,
29889,
4645,
29889,
2490,
11219,
2754,
29914,
18569,
29914,
742,
13,
462,
308,
1583,
29889,
12313,
29918,
4039,
29918,
1761,
29892,
13,
462,
308,
7331,
29918,
20656,
29950,
1955,
26664,
8098,
2433,
29933,
799,
261,
525,
718,
13,
462,
308,
4817,
29918,
1792,
1839,
1792,
16215,
6979,
7464,
13,
462,
308,
3402,
2433,
3126,
29915,
13,
462,
308,
1723,
13,
4706,
1583,
29889,
9294,
3664,
797,
703,
14095,
29899,
5060,
613,
2933,
29889,
3051,
29889,
13808,
25739,
13,
4706,
1583,
29889,
9294,
3664,
797,
703,
4691,
613,
2933,
29889,
3051,
29889,
13808,
3101,
13,
4706,
1583,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
4660,
29889,
10493,
29918,
29946,
29900,
29900,
29918,
29933,
3035,
29918,
16244,
29897,
13,
13,
1678,
822,
1243,
29918,
4039,
1293,
29918,
1272,
29918,
23905,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
263,
4055,
1293,
2609,
367,
263,
18761,
13,
4706,
9995,
13,
13,
4706,
1404,
353,
1583,
29889,
3258,
29918,
29874,
29918,
1792,
580,
13,
4706,
1583,
29889,
27902,
29918,
1792,
29898,
1792,
29897,
13,
4706,
4817,
29918,
1792,
353,
1583,
29889,
7507,
29918,
1792,
580,
13,
4706,
2933,
353,
1583,
29889,
4645,
29889,
2490,
11219,
2754,
29914,
18569,
29914,
742,
13,
462,
308,
1583,
29889,
4039,
29918,
23583,
29892,
13,
462,
308,
7331,
29918,
20656,
29950,
1955,
26664,
8098,
2433,
29933,
799,
261,
525,
718,
13,
462,
308,
4817,
29918,
1792,
1839,
1792,
16215,
6979,
7464,
13,
462,
308,
3402,
2433,
3126,
29915,
13,
462,
308,
1723,
13,
4706,
1583,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
4660,
29889,
10493,
29918,
29946,
29900,
29900,
29918,
29933,
3035,
29918,
16244,
29897,
13,
2
] |
gpytorch/lazy/non_lazy_tensor.py | Sciguymjm/gpytorch | 0 | 192371 | #!/usr/bin/env python3
import torch
from .. import settings
from ..lazy import LazyTensor
class NonLazyTensor(LazyTensor):
def __init__(self, tsr):
"""
Not a lazy tensor
Args:
- tsr (Tensor: matrix) a Tensor
"""
if not torch.is_tensor(tsr):
raise RuntimeError("NonLazyTensor must take a torch.Tensor; got {}".format(tsr.__class__.__name__))
super(NonLazyTensor, self).__init__(tsr)
self.tensor = tsr
def _matmul(self, rhs):
return torch.matmul(self.tensor, rhs)
def _t_matmul(self, rhs):
return torch.matmul(self.tensor.transpose(-1, -2), rhs)
def _quad_form_derivative(self, left_vecs, right_vecs):
res = left_vecs.matmul(right_vecs.transpose(-1, -2))
return (res,)
def _size(self):
return self.tensor.size()
def _transpose_nonbatch(self):
return NonLazyTensor(self.tensor.transpose(-1, -2))
def _get_indices(self, left_indices, right_indices, *batch_indices):
return self.tensor.__getitem__((*batch_indices, left_indices, right_indices))
def diag(self):
if self.tensor.ndimension() < 3:
return self.tensor.diag()
else:
row_col_iter = torch.arange(0, self.matrix_shape[-1], dtype=torch.long, device=self.device)
return self.tensor[..., row_col_iter, row_col_iter].view(*self.batch_shape, -1)
def evaluate(self):
return self.tensor
def __getitem__(self, index):
# Make sure index is a list
if not isinstance(index, tuple):
index = [index]
else:
index = list(index)
# Handle the ellipsis
# Find the index of the ellipsis
ellipsis_locs = [index for index, item in enumerate(index) if item is Ellipsis]
if settings.debug.on():
if len(ellipsis_locs) > 1:
raise RuntimeError(
"Cannot have multiple ellipsis in a __getitem__ call. LazyTensor {} "
" received index {}.".format(self, index)
)
if len(ellipsis_locs) == 1:
ellipsis_loc = ellipsis_locs[0]
num_to_fill_in = self.ndimension() - (len(index) - 1)
index = index[:ellipsis_loc] + [slice(None, None, None)] * num_to_fill_in + index[ellipsis_loc + 1:]
# Make the index a tuple again
index = tuple(index)
# Perform the __getitem__
res = self.tensor[index]
# Determine if we should return a LazyTensor or a Tensor
if len(index) >= self.ndimension() - 1:
row_index = index[self.ndimension() - 2]
if isinstance(row_index, int) or torch.is_tensor(row_index):
return res
if len(index) == self.ndimension():
col_index = index[self.ndimension() - 1]
if isinstance(col_index, int) or torch.is_tensor(col_index):
return res
return NonLazyTensor(res)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
4842,
305,
13,
3166,
6317,
1053,
6055,
13,
3166,
6317,
433,
1537,
1053,
19575,
29891,
29911,
6073,
13,
13,
13,
1990,
10050,
29931,
24683,
29911,
6073,
29898,
29931,
24683,
29911,
6073,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
18696,
29878,
1125,
13,
4706,
9995,
13,
4706,
2216,
263,
17366,
12489,
13,
13,
4706,
826,
3174,
29901,
13,
4706,
448,
18696,
29878,
313,
29911,
6073,
29901,
4636,
29897,
263,
323,
6073,
13,
4706,
9995,
13,
4706,
565,
451,
4842,
305,
29889,
275,
29918,
20158,
29898,
1372,
29878,
1125,
13,
9651,
12020,
24875,
2392,
703,
12283,
29931,
24683,
29911,
6073,
1818,
2125,
263,
4842,
305,
29889,
29911,
6073,
29936,
2355,
6571,
1642,
4830,
29898,
1372,
29878,
17255,
1990,
1649,
17255,
978,
1649,
876,
13,
13,
4706,
2428,
29898,
12283,
29931,
24683,
29911,
6073,
29892,
1583,
467,
1649,
2344,
12035,
1372,
29878,
29897,
13,
4706,
1583,
29889,
20158,
353,
18696,
29878,
13,
13,
1678,
822,
903,
2922,
16109,
29898,
1311,
29892,
29365,
1125,
13,
4706,
736,
4842,
305,
29889,
2922,
16109,
29898,
1311,
29889,
20158,
29892,
29365,
29897,
13,
13,
1678,
822,
903,
29873,
29918,
2922,
16109,
29898,
1311,
29892,
29365,
1125,
13,
4706,
736,
4842,
305,
29889,
2922,
16109,
29898,
1311,
29889,
20158,
29889,
3286,
4220,
6278,
29896,
29892,
448,
29906,
511,
29365,
29897,
13,
13,
1678,
822,
903,
3425,
29918,
689,
29918,
672,
440,
1230,
29898,
1311,
29892,
2175,
29918,
2003,
29879,
29892,
1492,
29918,
2003,
29879,
1125,
13,
4706,
620,
353,
2175,
29918,
2003,
29879,
29889,
2922,
16109,
29898,
1266,
29918,
2003,
29879,
29889,
3286,
4220,
6278,
29896,
29892,
448,
29906,
876,
13,
4706,
736,
313,
690,
29892,
29897,
13,
13,
1678,
822,
903,
2311,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
20158,
29889,
2311,
580,
13,
13,
1678,
822,
903,
3286,
4220,
29918,
5464,
16175,
29898,
1311,
1125,
13,
4706,
736,
10050,
29931,
24683,
29911,
6073,
29898,
1311,
29889,
20158,
29889,
3286,
4220,
6278,
29896,
29892,
448,
29906,
876,
13,
13,
1678,
822,
903,
657,
29918,
513,
1575,
29898,
1311,
29892,
2175,
29918,
513,
1575,
29892,
1492,
29918,
513,
1575,
29892,
334,
16175,
29918,
513,
1575,
1125,
13,
4706,
736,
1583,
29889,
20158,
17255,
657,
667,
1649,
3552,
29930,
16175,
29918,
513,
1575,
29892,
2175,
29918,
513,
1575,
29892,
1492,
29918,
513,
1575,
876,
13,
13,
1678,
822,
7936,
29898,
1311,
1125,
13,
4706,
565,
1583,
29889,
20158,
29889,
299,
326,
2673,
580,
529,
29871,
29941,
29901,
13,
9651,
736,
1583,
29889,
20158,
29889,
6051,
351,
580,
13,
4706,
1683,
29901,
13,
9651,
1948,
29918,
1054,
29918,
1524,
353,
4842,
305,
29889,
279,
927,
29898,
29900,
29892,
1583,
29889,
5344,
29918,
12181,
14352,
29896,
1402,
26688,
29922,
7345,
305,
29889,
5426,
29892,
4742,
29922,
1311,
29889,
10141,
29897,
13,
9651,
736,
1583,
29889,
20158,
29961,
16361,
1948,
29918,
1054,
29918,
1524,
29892,
1948,
29918,
1054,
29918,
1524,
1822,
1493,
10456,
1311,
29889,
16175,
29918,
12181,
29892,
448,
29896,
29897,
13,
13,
1678,
822,
14707,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
20158,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
2380,
1125,
13,
4706,
396,
8561,
1854,
2380,
338,
263,
1051,
13,
4706,
565,
451,
338,
8758,
29898,
2248,
29892,
18761,
1125,
13,
9651,
2380,
353,
518,
2248,
29962,
13,
4706,
1683,
29901,
13,
9651,
2380,
353,
1051,
29898,
2248,
29897,
13,
13,
4706,
396,
29273,
278,
22434,
567,
275,
13,
4706,
396,
10987,
278,
2380,
310,
278,
22434,
567,
275,
13,
4706,
22434,
567,
275,
29918,
2029,
29879,
353,
518,
2248,
363,
2380,
29892,
2944,
297,
26985,
29898,
2248,
29897,
565,
2944,
338,
26656,
567,
275,
29962,
13,
4706,
565,
6055,
29889,
8382,
29889,
265,
7295,
13,
9651,
565,
7431,
29898,
5481,
567,
275,
29918,
2029,
29879,
29897,
1405,
29871,
29896,
29901,
13,
18884,
12020,
24875,
2392,
29898,
13,
462,
1678,
376,
29089,
505,
2999,
22434,
567,
275,
297,
263,
4770,
657,
667,
1649,
1246,
29889,
19575,
29891,
29911,
6073,
6571,
376,
13,
462,
1678,
376,
4520,
2380,
6571,
1213,
29889,
4830,
29898,
1311,
29892,
2380,
29897,
13,
18884,
1723,
13,
4706,
565,
7431,
29898,
5481,
567,
275,
29918,
2029,
29879,
29897,
1275,
29871,
29896,
29901,
13,
9651,
22434,
567,
275,
29918,
2029,
353,
22434,
567,
275,
29918,
2029,
29879,
29961,
29900,
29962,
13,
9651,
954,
29918,
517,
29918,
5589,
29918,
262,
353,
1583,
29889,
299,
326,
2673,
580,
448,
313,
2435,
29898,
2248,
29897,
448,
29871,
29896,
29897,
13,
9651,
2380,
353,
2380,
7503,
5481,
567,
275,
29918,
2029,
29962,
718,
518,
18337,
29898,
8516,
29892,
6213,
29892,
6213,
4638,
334,
954,
29918,
517,
29918,
5589,
29918,
262,
718,
2380,
29961,
5481,
567,
275,
29918,
2029,
718,
29871,
29896,
17531,
13,
13,
4706,
396,
8561,
278,
2380,
263,
18761,
1449,
13,
4706,
2380,
353,
18761,
29898,
2248,
29897,
13,
13,
4706,
396,
27313,
278,
4770,
657,
667,
1649,
13,
4706,
620,
353,
1583,
29889,
20158,
29961,
2248,
29962,
13,
13,
4706,
396,
5953,
837,
457,
565,
591,
881,
736,
263,
19575,
29891,
29911,
6073,
470,
263,
323,
6073,
13,
4706,
565,
7431,
29898,
2248,
29897,
6736,
1583,
29889,
299,
326,
2673,
580,
448,
29871,
29896,
29901,
13,
9651,
1948,
29918,
2248,
353,
2380,
29961,
1311,
29889,
299,
326,
2673,
580,
448,
29871,
29906,
29962,
13,
9651,
565,
338,
8758,
29898,
798,
29918,
2248,
29892,
938,
29897,
470,
4842,
305,
29889,
275,
29918,
20158,
29898,
798,
29918,
2248,
1125,
13,
18884,
736,
620,
13,
4706,
565,
7431,
29898,
2248,
29897,
1275,
1583,
29889,
299,
326,
2673,
7295,
13,
9651,
784,
29918,
2248,
353,
2380,
29961,
1311,
29889,
299,
326,
2673,
580,
448,
29871,
29896,
29962,
13,
9651,
565,
338,
8758,
29898,
1054,
29918,
2248,
29892,
938,
29897,
470,
4842,
305,
29889,
275,
29918,
20158,
29898,
1054,
29918,
2248,
1125,
13,
18884,
736,
620,
13,
4706,
736,
10050,
29931,
24683,
29911,
6073,
29898,
690,
29897,
13,
2
] |
openbatlib/model.py | fastrockstar/openBatLib | 4 | 173858 | import numpy as np
import numba as nb
from dataclasses import dataclass
from numba import types
from numba.typed import Dict
from numba import njit
import pandas as pd
import time
import datetime
import csv
from openpyxl import load_workbook
from pyModbusTCP.client import ModbusClient
from pyModbusTCP import utils
@dataclass
class Data:
Ppv: np.array
Pbat: np.array
Pperi: np.array
soc: np.array
soc0: int
Pbs0: int
E: dict
class BatModDC(object):
"""Performance Simulation Class for DC-coupled PV-Battery systems
:param parameter: PV battery system parameters
:type parameter: dict
:param d: array containing parameters
:type d: numpy array
:param ppv: normalized DC power output of the PV generator
:type ppv: numpy array
:param pl: AC load power
:type pl: numpy array
:param Pr: Residual power for battery charging
:type Pr: numpy array
:param Prpv: AC residual power
:type Pr: numpy array
:param Ppv: DC power output of the PV generator
:type Ppv: numpy array
:param ppv2ac: Normalized AC output power of the PV2AC conversion pathway to cover the AC power demand
:type ppv2ac: numpy array
:param Ppv2ac_out: Target AC output power of the PV2AC conversion pathway
:type Ppv2ac_out: numpy array
:param dt: time step width in seconds
:type dt: integer
"""
_version = 0.1
def __init__(self, parameter, d, ppv, pl, dt):
"""Constructor method
"""
self.parameter = parameter
self.d = d
self.ppv = ppv
self.pl = pl
self.dt = dt
self.th = False # Start threshold for the recharging of the battery
self.spi = float()
# Initialization and preallocation
self.Real.Pr, self.Real.Prpv, self.Real.Ppv, self.Real.ppv2ac, self.Real.Ppv2ac_out = max_self_consumption(parameter, ppv, pl, pvmod=True)
self.Real.Ppv2ac_out0 = 0
self.Real.Ppv2bat_in0 = 0
self.Real.Pbat = np.zeros_like(self.ppv) # DC power of the battery in W
self.Real.soc = np.zeros_like(self.ppv) # State of charge of the battery
self.Real.soc0 = 0 # State of charge of the battery in the first time step
# Input power of the PV2BAT conversion pathway in W
self.Real.Ppv2bat_in = np.zeros_like(self.ppv)
# Output power of the BAT2AC conversion pathway in W
self.Real.Pbat2ac_out = np.zeros_like(self.ppv)
self.Real.Pbat2ac_out0 = 0
# AC power of the PV-battery system in W
self.Real.Ppvbs = np.zeros_like(self.ppv)
# Additional power consumption of other system components (e.g. AC power meter) in W
self.Real.Pperi = np.ones(self.ppv.size) * self.parameter['P_PERI_AC']
self.Ideal.Ppv = np.maximum(0, self.ppv) * self.parameter['P_PV'] * 1000
self.Ideal.Pr = self.Ideal.Ppv - self.pl
self.Ideal.Pbat = np.zeros_like(self.ppv)
self.Ideal.soc = np.zeros_like(self.ppv)
self.Ideal.Ppv2bat_in = np.zeros_like(self.ppv)
self.Ideal.Ppv2bat_in = np.zeros_like(self.ppv)
self.Ideal.Pbat2ac_out = np.zeros_like(self.ppv)
self.Ideal.Ppvbs = np.zeros_like(self.ppv)
@dataclass
class Real(Data):
Pr : np.array
Prpv : np.array
ppv2ac : np.array
Ppv2ac_out : np.array
Ppv2ac_out0 : int
Ppv2bat_in : np.array
Pbat2ac_out : np.array
Ppvbs : np.array
@dataclass
class Ideal(Real):
def __init__(self):
super().__init__()
def simulation(self, pvmod=True):
"""Manages the Performance Simulation Model for AC-coupled PV-Battery Systems
"""
self.Real.Ppv2ac_out, self.Real.Ppv2bat_in, self.Real.Ppv2bat_in0, self.Real.Pbat2ac_out, self.Real.Pbat2ac_out0, self.Real.Ppvbs, self.Real.Pbat, self.Real.soc, self.Real.soc0 = batmod_dc(
self.d, self.dt, self.Real.soc0, self.Real.soc, self.Real.Pr, self.Real.Prpv, self.Real.Ppv, self.Real.Ppv2bat_in0, self.Real.Ppv2bat_in,
self.Real.Pbat2ac_out0, self.Real.Pbat2ac_out, self.Real.Ppv2ac_out, self.Real.Ppvbs, self.Real.Pbat)
self.Ideal.Pbat, self.Ideal.soc, self.Ideal.soc0 = batmod_dc_ideal(self.d, self.dt, self.Ideal.soc0, self.Ideal.soc, self.Ideal.Pr, self.Ideal.Pbat)
# Define missing parameters
self.Real.Ppv2ac = self.Real.Ppv2ac_out # AC output power of the PV2AC conversion pathway
self.Real.Ppv2bat = self.Real.Ppv2bat_in # DC input power of the PV2BAT conversion pathway
self.Ideal.Ppvbs = self.Ideal.Ppv - np.maximum(0, self.Ideal.Pbat) - (np.minimum(0, self.Ideal.Pbat)) # Realized AC power of the PV-battery system
self.Ideal.Ppv2ac = self.Ideal.Ppv - np.maximum(0, self.Ideal.Pbat) # AC output power of the PV2AC conversion pathway
self.Ideal.Ppv2bat = np.maximum(0, self.Ideal.Pbat) # DC input power of the PV2BAT conversion pathway
print()
def bat_mod_res(self):
"""Function to calculate the power flows and energy sums including curtailment of PV power
"""
self.Real.E = bat_res_mod(self.parameter, self.pl, self.Real.Ppv, self.Real.Pbat,
self.dt, self.Real.Ppv2ac, self.Real.Ppv2bat, self.Real.Ppvbs, self.Real.Pperi)
self.Ideal.E = bat_res_mod_ideal(self.parameter, self.pl, self.Ideal.Ppv, self.Ideal.Pbat,
self.dt, self.Ideal.Ppv2ac, self.Ideal.Ppv2bat, self.Ideal.Ppvbs, self.Ideal.Pperi)
def calculate_spi(self):
self.spi = calculate_spi(_E_real=self.Real.E, _E_ideal=self.Ideal.E)
def get_E(self):
"""Returns the energy sums of the simulation
:return: Energy sums of the simulation in MWh
:rtype: dict
"""
return self.Real.E, self.Ideal.E
def get_soc(self):
"""Returns the state of charge of the battery
:return: state of charge of the battery
:rtype: numpy array
"""
return self.soc
def get_Pbat(self):
"""Returns the DC power of the battery in W
:return: DC power of the battery in W
:rtype: numpy array
"""
return self.Pbat
def get_SPI(self):
return self.spi
class BatModAC(object):
"""Performance Simulation Class for AC-coupled PV-Battery systems
:param parameter: PV battery system parameters
:type parameter: dict
:param d: array containing parameters
:type d: numpy array
:param ppv: normalized DC power output of the PV generator
:type ppv: numpy array
:param pl: AC load power
:type pl: numpy array
:param Pr: AC residual power
:type Pr: numpy array
:param Ppv: DC power output of the PV generator
:type Ppv: numpy array
:param Ppvs: AC power output of the PV inverter taking into account the conversion losses and maximum output power of the PV inverter
:type Ppvs: numpy array
:param Pperi: Additional power consumption of other system components (e.g. AC power meter) in W
:type Pperi: numpy array
:param dt: time step width in seconds
:type dt: integer
"""
_version = '0.1'
def __init__(self, parameter, d, ppv, pl, dt):
"""Constructor method
"""
self.parameter = parameter
self.d = d
self.ppv = ppv
self.pl = pl
self.dt = dt
self.spi = float()
self.th = False # Start threshold for the recharging of the battery
# Initialization and preallocation
self.Real.Pr, self.Real.Ppv, self.Real.Ppvs, self.Real.Pperi = max_self_consumption(parameter, ppv, pl, pvmod=True)
self.Real.Pbat = np.zeros_like(self.ppv) # DC power of the battery in W
self.Real.Pbs = np.zeros_like(self.ppv) # AC power of the battery system in W
self.Real.soc = np.zeros_like(self.ppv) # State of charge of the battery
self.Real.soc0 = 0 # State of charge of the battery in the first time step
self.Real.Pbs0 = 0 # State of the battery storage in the previous time step
self.Ideal.Ppv = np.maximum(0, ppv) * parameter['P_PV'] * 1000
self.Ideal.Pr = self.Ideal.Ppv - pl
self.Ideal.Pbat = np.zeros_like(self.ppv)
self.Ideal.Pbs = np.zeros_like(self.ppv)
self.Ideal.Pbs0 = 0
self.Ideal.soc = np.zeros_like(self.ppv)
self.Ideal.soc0 = 0
self.Ideal.Ppvs = self.Ideal.Ppv
self.Ideal.Pperi = np.zeros_like(self.ppv)
@dataclass
class Real(Data):
Pr : np.array
Ppvs : np.array
Pbs : np.array
@dataclass
class Ideal(Real):
def __init__(self):
super().__init__()
def simulation(self):
"""Manages the Performance Simulation Model for AC-coupled PV-Battery Systems
"""
self.Real.Pbat, self.Real.Pbs, self.Real.soc, self.Real.soc0, self.Real.Pbs0 = batmod_ac(
self.d, self.dt, self.Real.soc0, self.Real.soc, self.Real.Pr, self.Real.Pbs0, self.Real.Pbs, self.Real.Pbat)
self.Ideal.Pbs, self.Ideal.Pbat, self.Ideal.soc0, self.Ideal.soc = batmod_ac_ideal(
self.d, self.dt, self.Ideal.soc0, self.Ideal.soc, self.Ideal.Pr, self.Ideal.Pbat)
def bat_mod_res(self):
"""Function to calculate the power flows and energy sums including curtailment of PV power
"""
self.Real.E = bat_res_mod(
self.parameter, self.pl, self.Real.Ppv, self.Real.Pbat, self.dt, self.Real.Ppvs, self.Real.Pbs, self.Real.Pperi)
self.Ideal.E = bat_res_mod_ideal(
self.parameter, self.pl, self.Ideal.Ppv, self.Ideal.Pbat, self.dt, self.Ideal.Ppvs, self.Ideal.Pbs, self.Ideal.Pperi)
def calculate_spi(self):
self.spi = calculate_spi(_E_real=self.Real.E, _E_ideal=self.Ideal.E)
def get_E(self):
"""Returns the energy sums of the simulation
:return: Energy sums of the simulation in MWh
:rtype: dict
"""
return self.Real.E, self.Ideal.E
def get_soc(self):
"""Returns the state of charge of the battery
:return: state of charge of the battery
:rtype: numpy array
"""
return self.soc
def get_Pbat(self):
"""Returns the DC power of the battery in W
:return: DC power of the battery in W
:rtype: numpy array
"""
return self.Pbat
def get_Pbs(self):
"""Returns the AC power of the battery system in W
:return: AC power of the battery system in W
:rtype: numpy array
"""
return self.Pbs
def get_SPI(self):
return self.spi
class BatModPV(object):
"""Performance Simulation Class for PV-coupled PV-Battery systems
:param parameter: PV battery system parameters
:type parameter: dict
:param d: array containing parameters
:type d: numpy array
:param ppv: normalized DC power output of the PV generator
:type ppv: numpy array
:param pl: AC load power
:type pl: numpy array
:param Pac: Power demand on the AC side
:type Pac: numpy array
:param Ppv: DC power output of the PV generator
:type Ppv: numpy array
:param Pperi: Additional power consumption of other system components (e.g. AC power meter) in W
:type Pperi: numpy array
:param dt: time step width in seconds
:type dt: integer
"""
_version = '0.1'
def __init__(self, parameter, d, ppv, pl, Pac, Ppv, Pperi, dt):
"""Constructor method
"""
self.parameter = parameter
self.d = d
self.ppv = ppv
self.pl = pl
self.Pac = Pac
self.Ppv = Ppv
self.Pperi = Pperi
self.dt = dt
# Initialization and preallocation
self.Pbat = np.zeros_like(self.ppv) # DC power of the battery in W
self.soc = np.zeros_like(self.ppv) # State of charge of the battery
# Output power of the PV2AC conversion pathway in W
self.Ppv2ac_out = np.zeros_like(self.ppv)
# Input power of the PV2BAT conversion pathway in W
self.Ppv2bat_in = np.zeros_like(self.ppv)
self.Ppv2bat_in0 = 0
# Output power of the BAT2PV conversion pathway in W
self.Pbat2pv_out = np.zeros_like(self.ppv)
self.Pbat2pv_out0 = 0
# AC power of the PV-battery system in W
self.Ppvbs = np.zeros_like(self.ppv)
self.simulation()
self.bat_mod_res()
def simulation(self, pvmod=True):
"""Manages the Performance Simulation Model for AC-coupled PV-Battery Systems
"""
self.th = 0 # Start threshold for the recharging of the battery
self.soc0 = 0 # Initial state of charge of the battery in the first time step
# Simulation of the battery system
#start = time.process_time()
self.soc, self.soc0, self.Ppv, self.Ppvbs, self.Pbat, self.Ppv2ac_out, self.Pbat2pv_out, self.Ppv2bat_in = batmod_pv(self.d, self.dt, self.soc0, self.soc, self.Ppv, self.Pac, self.Ppv2bat_in0, self.Ppv2bat_in, self.Ppv2ac_out, self.Pbat2pv_out0, self.Pbat2pv_out, self.Ppvbs, self.Pbat)
#print(time.process_time()-start)
# Define missing parameters
self.Ppv2ac = self.Ppv2ac_out # AC output power of the PV2AC conversion pathway
self.Ppv2bat = self.Ppv2bat_in # DC input power of the PV2BAT conversion pathway
def bat_mod_res(self):
"""Function to calculate the power flows and energy sums including curtailment of PV power
"""
self.E = bat_res_mod(self.parameter, self.pl, self.Ppv, self.Pbat, self.dt, self.Ppv2ac, self.Ppv2bat, self.Ppvbs, self.Pperi)
def get_E(self):
"""Returns the energy sums of the simulation
:return: Energy sums of the simulation in MWh
:rtype: dict
"""
return self.E
def get_soc(self):
"""Returns the state of charge of the battery
:return: state of charge of the battery
:rtype: numpy array
"""
return self.soc
def get_Pbat(self):
"""Returns the DC power of the battery in W
:return: DC power of the battery in W
:rtype: numpy array
"""
return self.Pbat
class ModBus(object):
"""Establishes connection to a battery system via ModBus protocol
:param host: IP address of the host
:type host: string
:param port: Server port of the host
:type port: integer
:param unit_id: Unit-ID of the host
:type unit_id: integer
"""
def __init__(self, host, port, unit_id, input_vals, dt, fname):
"""Constructor method
"""
self.host = host
self.port = port
self.unit_id = unit_id
self.dt = dt
self.input_vals = input_vals
self.fname = fname
self.open_connection()
self.create_csv_file()
self.start_loop()
def open_connection(self):
"""Opens the connection to the host
"""
# Open ModBus connection
try:
self.c = ModbusClient(host=self.host, port=self.port,
unit_id=self.unit_id, auto_open=True, auto_close=True)
except ValueError:
print("Error with host: {}, port: {} or unit-ID: {} params".format(
self.host, self.port, self.unit_id))
def start_loop(self):
"""Starts the writing and reading process
"""
# Transform the array to fit the 1 minute time duration
#self.set_vals = np.repeat(self.input_vals, self.dt * 60)
i = 0
idx = pd.date_range(start=datetime.datetime.now(),
periods=(self.input_vals.size), freq='S')
while i < len(idx):
if datetime.datetime.now().second == idx[i].second:
# Set chrging value
self.set_val = int(self.input_vals[i])
if self.set_val < 0:
# Write negative value to battery charge power (AC) setpoint register
self.c.write_single_register(1024, self.set_val & 0xFFFF)
# Log writing time
self.set_time = datetime.datetime.now()
else:
# Write positive value to battery charge power (AC) setpoint to register
self.c.write_single_register(1024, self.set_val)
# Log writing time
self.set_time = datetime.datetime.now()
try:
# Read total AC power value from register
_P_ac = self.c.read_holding_registers(172, 2)
self.read_time_P_ac = datetime.datetime.now()
except:
print('Could not read register 172!')
try:
# Read actual battery charge/discharge power value from register
_P_bat = self.c.read_holding_registers(582, 1)
self.read_time_P_bat = datetime.datetime.now()
except:
print('Could not read register 582!')
# Load content of two registers into a single float value
zregs = utils.word_list_to_long(_P_ac, big_endian=False)
# Decode and store float value of the AC-power
self.P_ac = utils.decode_ieee(*zregs)
# Store the DC charging power
self.P_bat = np.int16(*_P_bat)
# Read actual soc
self.soc0 = self.read_soc(210)
try:
# Save the values to a csv file
self.save_to_csv()
except:
print('Could not save to csv!')
i += 1
def read_soc(self, reg):
"""Reads the state of charge of the battery
"""
# Load the actual state fo charge of the battery
regs = self.c.read_holding_registers(reg, 2)
# Load content of two registers into a single float value
zregs = utils.word_list_to_long(regs, big_endian=False)
return utils.decode_ieee(*zregs)
def create_csv_file(self):
"""Creates a csv file from set and read values
"""
# Create a new csv-file
with open(self.fname, 'w') as f:
writer = csv.writer(f, dialect='excel')
writer.writerow(['set_time',
'read_time_P_ac',
'read_time_P_bat',
'soc',
'set_value',
'P_ac',
'P_bat'])
def save_to_csv(self):
"""Saves the set and read values to s csv file
"""
# Save the read values to a csv file
with open(self.fname, "a") as f:
wr = csv.writer(f, dialect='excel')
wr.writerow([self.set_time, self.read_time_P_ac, self.read_time_P_bat,
self.soc0, self.set_val, self.P_ac, self.P_bat])
def max_self_consumption(parameter, ppv, pl, pvmod=True, ideal=False):
"""Function for maximizing self consumption
:param parameter: PV battery system parameters
:type parameter: dict
:param ppv: normalized DC power output of the PV generator
:type ppv: numpy array
:param pl: AC load power
:type pl: numpy array
"""
# Maximize self consumption for AC-coupled systems
if parameter['Top'] == 'AC':
# DC power output of the PV generator
if pvmod: # ppv: Normalized DC power output of the PV generator in kW/kWp
if ideal:
Ppv = np.maximum(0, ppv ) * parameter['P_PV'] * 1000
else:
Ppv = np.minimum(ppv * parameter['P_PV'], parameter['P_PV2AC_in']) * 1000
else: # ppv: DC power output of the PV generator in W
if ideal:
Ppv = np.maximum(0, ppv)
else:
Ppv = np.minimum(ppv, parameter['P_PV2AC_in'] * 1000)
# Normalized input power of the PV inverter
ppvinvin = Ppv / parameter['P_PV2AC_in'] / 1000
# AC power output of the PV inverter taking into account the conversion losses and maximum
# output power of the PV inverter
Ppvs = np.minimum(np.maximum(0, Ppv-(parameter['PV2AC_a_in'] * ppvinvin * ppvinvin + parameter['PV2AC_b_in'] * ppvinvin + parameter['PV2AC_c_in'])), parameter['P_PV2AC_out'] * 1000)
# 3.2 Residual power
# Additional power consumption of other system components (e.g. AC power meter) in W
Pperi = np.ones_like(ppv) * parameter['P_PERI_AC']
# Adding the standby consumption of the PV inverter in times without any AC power output of the PV system
# to the additional power consumption
Pperi[Ppvs == 0] += parameter['P_PVINV_AC']
# Residual power
if ideal:
Pr = Ppv - pl
else:
Pr = Ppvs - pl - Pperi
return Pr, Ppv, Ppvs, Pperi
# Maximize self consumption for DC-coupled systems
elif parameter['Top'] == 'DC':
# Initialization and preallocation
Ppv2ac_in_ac = np.zeros_like(ppv)
Ppv = np.empty_like(ppv) # DC power output of the PV generator
if pvmod: # ppv: Normalized DC power output of the PV generator in kW/kWp
Ppv = ppv * parameter['P_PV'] * 1000
else:
Ppv = ppv
# DC power output of the PV generator taking into account the maximum
# DC input power of the PV2AC conversion pathway
Ppv = np.minimum(Ppv, parameter['P_PV2AC_in'] * 1000)
# Residual power
# Power demand on the AC side
Pac = pl + parameter['P_PERI_AC']
# Normalized AC output power of the PV2AC conversion pathway to cover the AC
# power demand
ppv2ac = np.minimum(
Pac, parameter['P_PV2AC_out'] * 1000) / parameter['P_PV2AC_out'] / 1000
# Target DC input power of the PV2AC conversion pathway
Ppv2ac_in_ac = np.minimum(Pac, parameter['P_PV2AC_out'] * 1000) + (
parameter['PV2AC_a_out'] * ppv2ac**2 + parameter['PV2AC_b_out'] * ppv2ac + parameter['PV2AC_c_out'])
# Normalized DC input power of the PV2AC conversion pathway TODO 1
ppv2ac = Ppv / parameter['P_PV2AC_in'] / 1000
# Target AC output power of the PV2AC conversion pathway
Ppv2ac_out = np.maximum(
0, Ppv - (parameter['PV2AC_a_in'] * ppv2ac**2 + parameter['PV2AC_b_in'] * ppv2ac + parameter['PV2AC_c_in']))
# Residual power for battery charging
Prpv = Ppv - Ppv2ac_in_ac
# Residual power for battery discharging
Pr = Ppv2ac_out - Pac
return Pr, Prpv, Ppv, ppv2ac, Ppv2ac_out
# Maximize self consumption for PV-coupled systems
elif parameter['Top'] == 'PV':
# Preallocation
# Pbat = np.zeros_like(ppv) # DC power of the battery in W
# soc = np.zeros_like(ppv) # State of charge of the battery
# Ppv2ac_out = np.zeros_like(ppv) # Output power of the PV2AC conversion pathway in W
# Ppv2bat_in = np.zeros_like(ppv) # Input power of the PV2BAT conversion pathway in W
# Pbat2pv_out = np.zeros_like(ppv) # Output power of the BAT2PV conversion pathway in W
# Ppvbs = np.zeros_like(ppv) # AC power of the PV-battery system in W
Ppv = np.empty_like(ppv) # DC power output of the PV generator
# Additional power consumption of other system components (e.g. AC power meter) in W
Pperi = np.ones_like(ppv) * parameter['P_PERI_AC']
# dt = 1 # Time increment in s
# th = 0 # Start threshold for the recharging of the battery
# soc0 = 0 # State of charge of the battery in the first time step
# DC power output of the PV generator
if pvmod: # ppv: Normalized DC power output of the PV generator in kW/kWp
Ppv = ppv * parameter['P_PV'] * 1000
else: # ppv: DC power output of the PV generator in W
Ppv = ppv
# Power demand on the AC side
Pac = pl + Pperi
return Pac, Ppv, Pperi
@nb.jit(nopython=True)
def batmod_ac(d, _dt, _soc0, _soc, _Pr, _Pbs0, _Pbs, _Pbat):
"""Performance Simulation function for AC-coupled battery systems
:param d: array containing parameters
:type d: numpy array
:param dt: time step width
:type dt: integer
:param soc0: state of charge in the previous time step
:type soc0: float
:param Pr: residual power
:type Pr: numpy array
:param Pbs0: AC-power of the battery system in the previous time step
:type Pbs0: float
:param Pbs: AC-power of the battery syste
:type Pbs: numpy array
:param Pbat: DC-power oof the battery
:type Pbat: numpy array
"""
# Loading of particular variables
_E_BAT = d[0]
_eta_BAT = d[1]
_t_CONSTANT = d[2]
_P_SYS_SOC0_DC = d[3]
_P_SYS_SOC0_AC = d[4]
_P_SYS_SOC1_DC = d[5]
_P_SYS_SOC1_AC = d[6]
_AC2BAT_a_in = d[7]
_AC2BAT_b_in = d[8]
_AC2BAT_c_in = d[9]
_BAT2AC_a_out = d[10]
_BAT2AC_b_out = d[11]
_BAT2AC_c_out = d[12]
_P_AC2BAT_DEV = d[13]
_P_BAT2AC_DEV = d[14]
_P_BAT2AC_out = d[15]
_P_AC2BAT_in = d[16]
_t_DEAD = int(round(d[17]))
_SOC_h = d[18]
_P_AC2BAT_min = _AC2BAT_c_in
_P_BAT2AC_min = _BAT2AC_c_out
# Correction factor to avoid over charge and discharge the battery
corr = 0.1
# Initialization of particular variables
_tde = _t_CONSTANT > 0 # Binary variable to activate the first-order time delay element
# Factor of the first-order time delay element
_ftde = 1 - np.exp(-_dt / _t_CONSTANT)
# First time step with regard to the dead time of the system control
_tstart = np.maximum(2, 1 + _t_DEAD)
_tend = int(_Pr.size)
_th = 0
# Capacity of the battery, conversion from kWh to Wh
_E_BAT *= 1000
# Effiency of the battery in percent
_eta_BAT /= 100
# Check if the dead or settling time can be ignored and set flags accordingly
if _dt >= (3 * _t_CONSTANT) or _tend == 1:
_tstart = 1
T_DEAD = False
else:
T_DEAD = True
if _dt >= _t_DEAD + 3 * _t_CONSTANT:
SETTLING = False
else:
SETTLING = True
for t in range(_tstart - 1, _tend):
# Energy content of the battery in the previous time step
E_b0 = _soc0 * _E_BAT
# Calculate the AC power of the battery system from the residual power
# with regard to the dead time of the system control
if T_DEAD:
P_bs = _Pr[t - _t_DEAD]
else:
P_bs = _Pr[t]
# Check if the battery holds enough unused capacity for charging or discharging
# Estimated amount of energy in Wh that is supplied to or discharged from the storage unit.
E_bs_est = P_bs * _dt / 3600
# Reduce P_bs to avoid over charging of the battery
if E_bs_est > 0 and E_bs_est > (_E_BAT - E_b0):
P_bs = (_E_BAT - E_b0) * 3600 / _dt
# When discharging take the correction factor into account
elif E_bs_est < 0 and np.abs(E_bs_est) > (E_b0):
P_bs = (E_b0 * 3600 / _dt) * (1-corr)
# Adjust the AC power of the battery system due to the stationary
# deviations taking the minimum charging and discharging power into
# account
if P_bs > _P_AC2BAT_min:
P_bs = np.maximum(_P_AC2BAT_min, P_bs + _P_AC2BAT_DEV)
elif P_bs < -_P_BAT2AC_min:
P_bs = np.minimum(-_P_BAT2AC_min, P_bs - _P_BAT2AC_DEV)
else:
P_bs = 0
# Limit the AC power of the battery system to the rated power of the
# battery converter
P_bs = np.maximum(-_P_BAT2AC_out * 1000,
np.minimum(_P_AC2BAT_in * 1000, P_bs))
# Adjust the AC power of the battery system due to the settling time
# (modeled by a first-order time delay element) Hier hat der Schritt vorher eine Null?
# Muss der vorherige Wert mit übergeben werden?
if SETTLING:
if t > 0:
P_bs = _tde * _Pbs[t-1] + _tde * (P_bs - _Pbs[t-1]) * _ftde + P_bs * (not _tde)
else:
P_bs = _tde * _Pbs0 + _tde * (P_bs - _Pbs0) * _ftde + P_bs * (not _tde)
# Decision if the battery should be charged or discharged
if P_bs > 0 and _soc0 < 1 - _th * (1 - _SOC_h):
# The last term th*(1-SOC_h) avoids the alternation between
# charging and standby mode due to the DC power consumption of the
# battery converter when the battery is fully charged. The battery
# will not be recharged until the SOC falls below the SOC-threshold
# (SOC_h) for recharging from PV.
# Normalized AC power of the battery system
p_bs = P_bs / _P_AC2BAT_in / 1000
# DC power of the battery affected by the AC2BAT conversion losses
# of the battery converter
P_bat = np.maximum(
0, P_bs - (_AC2BAT_a_in * p_bs * p_bs + _AC2BAT_b_in * p_bs + _AC2BAT_c_in))
elif P_bs < 0 and _soc0 > 0:
# Normalized AC power of the battery system
p_bs = np.abs(P_bs / _P_BAT2AC_out / 1000)
# DC power of the battery affected by the BAT2AC conversion losses
# of the battery converter
P_bat = P_bs - (_BAT2AC_a_out * p_bs * p_bs +
_BAT2AC_b_out * p_bs + _BAT2AC_c_out)
else: # Neither charging nor discharging of the battery
# Set the DC power of the battery to zero
P_bat = 0
# Decision if the standby mode is active
if P_bat == 0 and _soc0 <= 0: # Standby mode in discharged state
# DC and AC power consumption of the battery converter
P_bat = -np.maximum(0, _P_SYS_SOC0_DC)
P_bs = _P_SYS_SOC0_AC
elif P_bat == 0 and _soc0 > 0: # Standby mode in fully charged state
# DC and AC power consumption of the battery converter
P_bat = -np.maximum(0, _P_SYS_SOC1_DC)
P_bs = _P_SYS_SOC1_AC
# Transfer the realized AC power of the battery system and
# the DC power of the battery
_Pbs0 = P_bs
_Pbs[t] = P_bs
_Pbat[t] = P_bat
# Change the energy content of the battery from Ws to Wh conversion
if P_bat > 0:
E_b = E_b0 + P_bat * np.sqrt(_eta_BAT) * _dt / 3600
elif P_bat < 0:
E_b = E_b0 + P_bat / np.sqrt(_eta_BAT) * _dt / 3600
else:
E_b = E_b0
# Calculate the state of charge of the battery
_soc0 = E_b / (_E_BAT)
_soc[t] = _soc0
# Adjust the hysteresis threshold to avoid alternation
# between charging and standby mode due to the DC power
# consumption of the battery converter.
if _th and _soc[t] > _SOC_h or _soc[t] > 1:
_th = True
else:
_th = False
return _Pbat, _Pbs, _soc, _soc0, _Pbs0
@nb.jit(nopython=True)
def batmod_ac_ideal(d, _dt, _soc0, _soc, _Pr, _Pbat):
_E_BAT = d[0]
for t in range(_Pr.size):
# Energy content of the battery in the previous time step
E_b0 = _soc0 * _E_BAT * 1000
# Calculate the DC power of the battery from the residual power
P_bat = _Pr[t]
# Decision if the battery should be charged or discharged
if P_bat > 0 and _soc0 < 1: # Battery charging
E_b = E_b0 + P_bat * _dt / 3600 # Change the energy content of the battery
elif P_bat < 0 and _soc0 > 0: # Battery discharging
# Change the energy content of the battery
E_b = E_b0 + P_bat * _dt / 3600
else: # Neither charging nor discharging of the battery
# Set the DC power of the battery to zero
P_bat = 0
# No change in the energy content of the battery
E_b = E_b0
# Transfer the realized DC power of the battery
_Pbat[t] = P_bat
# Calculate the state of charge of the battery
_soc0 = E_b / (_E_BAT * 1000)
_soc[t] = _soc0
# Define missing parameters
_Pbs = _Pbat # Realized AC power of the battery system
return _Pbs, _Pbat, _soc0, _soc
@nb.jit(nopython=True)
def batmod_dc(d, _dt, _soc0, _soc, _Pr, _Prpv, _Ppv, _Ppv2bat_in0, _Ppv2bat_in, _Pbat2ac_out0, _Pbat2ac_out, _Ppv2ac_out, _Ppvbs, _Pbat):
"""Performance simulation function for DC-coupled battery systems
:param d: array containing parameters
:type d: numpy array
:param dt: time step width
:type dt: integer
:param soc0: state of charge in the previous time step
:type soc0: float
:param Pr: residual power
:type Pr: numpy array
:param Prpv: residual power of the PV-system
:type Prpv: numpy array
:param Ppv: PV-power
:type Ppv: numpy array
:param Ppv2bat_in0: AC input power of the battery system in the previous time step
:type Ppv2bat_in0: float
:param Ppv2bat_in: AC input power of the battery system
:type Ppv2bat_in: numpy array
:param Pbat2ac_out0: AC output power of the battery system in the previous time step
:type Pbat2ac_out0: float
:param Pbat2ac_out: AC output power of the battery system
:type Pbat2ac_out: numpy array
:param Ppv2ac_out0: AC output power of the PV inverter in the previous time step
:type Ppv2ac_out0: float
:param Ppv2ac_out: AC output power of the PV inverter
:type Ppv2ac_out: numpy array
:param Ppvbs: AC power from the PV system to the battery system
:type Ppvbs: numpy array
:param Pbat: DC power of the battery
:type Pbat: float
"""
_E_BAT = d[0]
_P_PV2AC_in = d[1]
_P_PV2AC_out = d[2]
_P_PV2BAT_in = d[3]
_P_BAT2AC_out = d[4]
_PV2AC_a_in = d[5]
_PV2AC_b_in = d[6]
_PV2AC_c_in = d[7]
_PV2BAT_a_in = d[8]
_PV2BAT_b_in = d[9]
_BAT2AC_a_out = d[10]
_BAT2AC_b_out = d[11]
_BAT2AC_c_out = d[12]
_eta_BAT = d[13]
_SOC_h = d[14]
_P_PV2BAT_DEV = d[15]
_P_BAT2AC_DEV = d[16]
_t_DEAD = int(round(d[17]))
_t_CONSTANT = d[18]
_P_SYS_SOC1_DC = d[19]
_P_SYS_SOC0_AC = d[20]
_P_SYS_SOC0_DC = d[21]
_P_PV2AC_min = _PV2AC_c_in
# Capacity of the battery, conversion from kWh to Wh
_E_BAT *= 1000
# Effiency of the battery in percent
_eta_BAT /= 100
# Initialization of particular variables
# _P_PV2AC_min = _parameter['PV2AC_c_in'] # Minimum input power of the PV2AC conversion pathway
_tde = _t_CONSTANT > 0 # Binary variable to activate the first-order time delay element
# Factor of the first-order time delay element
_ftde = 1 - np.exp(-_dt / _t_CONSTANT)
# First time step with regard to the dead time of the system control
_tstart = np.maximum(2, 1 + _t_DEAD)
_tend = int(_Pr.size)
_th = 0
corr = 0.1
# Check if the dead or settling time can be ignored and set flags accordingly
if _dt >= (3 * _t_CONSTANT) or _tend == 1:
_tstart = 1
T_DEAD = False
else:
T_DEAD = True
if _dt >= _t_DEAD + 3 * _t_CONSTANT:
SETTLING = False
else:
SETTLING = True
for t in range(_tstart - 1, _tend):
# Energy content of the battery in the previous time step
E_b0 = _soc0 * _E_BAT
# Residual power with regard to the dead time of the system control
if T_DEAD:
P_rpv = _Prpv[t - _t_DEAD]
P_r = _Pr[t - _t_DEAD]
else:
P_rpv = _Prpv[t]
P_r = _Pr[t]
# Check if the battery holds enough unused capacity for charging or discharging
# Estimated amount of energy that is supplied to or discharged from the storage unit.
E_bs_rpv = P_rpv * _dt / 3600
E_bs_r = P_r * _dt / 3600
# Reduce P_bs to avoid over charging of the battery
if E_bs_rpv > 0 and E_bs_rpv > (_E_BAT - E_b0):
P_rpv = (_E_BAT - E_b0) * 3600 / _dt
# When discharging take the correction factor into account
elif E_bs_r < 0 and np.abs(E_bs_r) > (E_b0):
P_r = ((E_b0) * 3600 / _dt) * (1-corr)
# Decision if the battery should be charged or discharged
if P_rpv > 0 and _soc0 < 1 - _th * (1 - _SOC_h):
'''
The last term th*(1-SOC_h) avoids the alternation between
charging and standby mode due to the DC power consumption of the
battery converter when the battery is fully charged. The battery
will not be recharged until the SOC falls below the SOC-threshold
(SOC_h) for recharging from PV.
'''
# Charging power
P_pv2bat_in = P_rpv
# Adjust the charging power due to the stationary deviations
P_pv2bat_in = np.maximum(0, P_pv2bat_in + _P_PV2BAT_DEV)
# Limit the charging power to the maximum charging power
P_pv2bat_in = np.minimum(P_pv2bat_in, _P_PV2BAT_in * 1000)
# Adjust the charging power due to the settling time
# (modeled by a first-order time delay element)
if SETTLING:
if t > 0:
P_pv2bat_in = _tde * _Ppv2bat_in[(t-1)] + _tde * (
P_pv2bat_in - _Ppv2bat_in[(t-1)]) * _ftde + P_pv2bat_in * (not _tde)
else:
P_pv2bat_in = _tde * _Ppv2bat_in0 + _tde * \
(P_pv2bat_in - _Ppv2bat_in0) * \
_ftde + P_pv2bat_in * (not _tde)
# Limit the charging power to the current power output of the PV generator
P_pv2bat_in = np.minimum(P_pv2bat_in, _Ppv[t])
# Normalized charging power
ppv2bat = P_pv2bat_in / _P_PV2BAT_in / 1000
# DC power of the battery affected by the PV2BAT conversion losses
# (the idle losses of the PV2BAT conversion pathway are not taken
# into account)
P_bat = np.maximum(
0, P_pv2bat_in - (_PV2BAT_a_in * ppv2bat**2 + _PV2BAT_b_in * ppv2bat))
# Realized DC input power of the PV2AC conversion pathway
P_pv2ac_in = _Ppv[t] - P_pv2bat_in
# Normalized DC input power of the PV2AC conversion pathway
_ppv2ac = P_pv2ac_in / _P_PV2AC_in / 1000
# Realized AC power of the PV-battery system
P_pv2ac_out = np.maximum(
0, P_pv2ac_in - (_PV2AC_a_in * _ppv2ac**2 + _PV2AC_b_in * _ppv2ac + _PV2AC_c_in))
P_pvbs = P_pv2ac_out
# Transfer the final values
_Ppv2ac_out[t] = P_pv2ac_out
_Ppv2bat_in0 = P_pv2bat_in
_Ppv2bat_in[t] = P_pv2bat_in
elif P_rpv < 0 and _soc0 > 0:
# Discharging power
P_bat2ac_out = P_r * -1
# Adjust the discharging power due to the stationary deviations
P_bat2ac_out = np.maximum(0, P_bat2ac_out + _P_BAT2AC_DEV)
# Adjust the discharging power to the maximum discharging power
P_bat2ac_out = np.minimum(P_bat2ac_out, _P_BAT2AC_out * 1000)
# Adjust the discharging power due to the settling time
# (modeled by a first-order time delay element)
if SETTLING:
if t > 0:
P_bat2ac_out = _tde * _Pbat2ac_out[t-1] + _tde * (
P_bat2ac_out - _Pbat2ac_out[t-1]) * _ftde + P_bat2ac_out * (not _tde)
else:
P_bat2ac_out = _tde * _Pbat2ac_out0 + _tde * \
(P_bat2ac_out - _Pbat2ac_out0) * \
_ftde + P_bat2ac_out * (not _tde)
# Limit the discharging power to the maximum AC power output of the PV-battery system
P_bat2ac_out = np.minimum(
_P_PV2AC_out * 1000 - _Ppv2ac_out[t], P_bat2ac_out)
# Normalized discharging power
ppv2bat = P_bat2ac_out / _P_BAT2AC_out / 1000
# DC power of the battery affected by the BAT2AC conversion losses
# (if the idle losses of the PV2AC conversion pathway are covered by
# the PV generator, the idle losses of the BAT2AC conversion pathway
# are not taken into account)
if _Ppv[t] > _P_PV2AC_min:
P_bat = -1 * (P_bat2ac_out + (_BAT2AC_a_out *
ppv2bat**2 + _BAT2AC_b_out * ppv2bat))
else:
P_bat = -1 * (P_bat2ac_out + (_BAT2AC_a_out * ppv2bat **
2 + _BAT2AC_b_out * ppv2bat + _BAT2AC_c_out)) + _Ppv[t]
# Realized AC power of the PV-battery system
P_pvbs = _Ppv2ac_out[t] + P_bat2ac_out
# Transfer the final values
_Pbat2ac_out0 = P_bat2ac_out
_Pbat2ac_out[t] = P_bat2ac_out
else: # Neither charging nor discharging of the battery
# Set the DC power of the battery to zero
P_bat = 0
# Realized AC power of the PV-battery system
P_pvbs = _Ppv2ac_out[t]
# Decision if the standby mode is active
if P_bat == 0 and P_pvbs == 0 and _soc0 <= 0: # Standby mode in discharged state
# DC and AC power consumption of the PV-battery inverter
P_bat = -np.maximum(0, _P_SYS_SOC0_DC)
P_pvbs = -_P_SYS_SOC0_AC
elif P_bat == 0 and P_pvbs > 0 and _soc0 > 0: # Standby mode in fully charged state
# DC power consumption of the PV-battery inverter
P_bat = -np.maximum(0, _P_SYS_SOC1_DC)
# Transfer the realized AC power of the PV-battery system and the DC power of the battery
_Ppvbs[t] = P_pvbs
_Pbat[t] = P_bat
# Change the energy content of the battery Wx to Wh conversion
if P_bat > 0:
E_b = E_b0 + P_bat * np.sqrt(_eta_BAT) * _dt / 3600
elif P_bat < 0:
E_b = E_b0 + P_bat / np.sqrt(_eta_BAT) * _dt / 3600
else:
E_b = E_b0
# Calculate the state of charge of the battery
_soc0 = E_b / _E_BAT
_soc[t] = _soc0
# Adjust the hysteresis threshold to avoid alternation between charging
# and standby mode due to the DC power consumption of the
# PV-battery inverter
if _th and _soc[t] > _SOC_h or _soc[t] > 1:
_th = True
else:
_th = False
return _Ppv2ac_out, _Ppv2bat_in, _Ppv2bat_in0, _Pbat2ac_out, _Pbat2ac_out0, _Ppvbs, _Pbat, _soc, _soc0
@nb.jit(nopython=True)
def batmod_dc_ideal(d, _dt, _soc0, _soc, _Pr, _Pbat):
_E_BAT = d[0]
for t in range(_Pr.size):
# Energy content of the battery in the previous time step
E_b0 = _soc0 * _E_BAT * 1000
P_bat = _Pr[t]
if P_bat > 0 and _soc0 < 1: # Battery charging
# Change the energy content of the battery
E_b = E_b0 + P_bat * _dt / 3600
elif P_bat < 0 and _soc0 > 0: # Battery discharging
# Change the energy content of the battery
E_b = E_b0 + P_bat * _dt / 3600
else: # Neither charging nor discharging of the battery
P_bat = 0
E_b = E_b0
_Pbat[t] = P_bat
_soc0 = E_b / (_E_BAT * 1000)
_soc[t] = _soc0
return _Pbat, _soc, _soc0
@nb.jit(nopython=True)
def batmod_pv(d, _dt, _soc0, _soc, _Ppv, _Pac, _Ppv2bat_in0, _Ppv2bat_in, _Ppv2ac_out, _Pbat2pv_out0, _Pbat2pv_out, _Ppvbs, _Pbat):
"""Performance simulation function for PV-coupled battery systems
:param d: array containing parameters
:type d: numpy array
:param dt: time step width
:type dt: integer
:param soc0: state of charge of the battery in the previous time step
:type soc0: float
:param soc: state of charge of the battery
:type soc: numpy array
:param Pr: residual power
:type Pr: numpy array
:param Ppv: PV-power
:type Ppv: numpy array
:param Pac: AC output power of the PV inverter
:type Pac: numpy array
:param Ppv2bat_in: AC input power of the battery system
:type Ppv2bat_in: numpy array
:param Ppv2bat_in0: AC input power of the battery system in the previous time step
:type Ppv2bat_in0: float
:param Pbat2pv_out0: AC output power of the battery system in the previous time step
:type Pbat2pv_out0: float
:param Pbat2pv_out: AC output power of the battery system
:type Pbat2pv_out: numpy array
:param Ppvbs: AC power from the PV system to the battery system
:type Ppvbs: numpy array
:param Pbat: DC power of the battery
:type Pbat: float
"""
# Initialization of particular variables
_E_BAT = d[0]
_P_PV2AC_in = d[1]
_P_PV2AC_out = d[2]
_P_PV2BAT_in = d[3]
_P_BAT2PV_out = d[4]
_PV2AC_a_in = d[5]
_PV2AC_b_in = d[6]
_PV2AC_c_in = d[7]
_PV2BAT_a_in = d[8]
_PV2BAT_b_in = d[9]
_PV2BAT_c_in = d[10]
_PV2AC_a_out = d[11]
_PV2AC_b_out = d[12]
_PV2AC_c_out = d[13]
_BAT2PV_a_out = d[14]
_BAT2PV_b_out = d[15]
_BAT2PV_c_out = d[16]
_eta_BAT = d[17]
_SOC_h = d[18]
_P_PV2BAT_DEV = d[19]
_P_BAT2AC_DEV = d[20]
_P_SYS_SOC1_DC = d[21]
_P_SYS_SOC0_AC = d[22]
_P_SYS_SOC0_DC = d[23]
_t_DEAD = int(round(d[24]))
_t_CONSTANT = d[25]
# Correction factor to avoid over charge and discharge the battery
corr = 0.1
_P_PV2BAT_min = _PV2BAT_c_in # Minimum DC charging power
_P_BAT2PV_min = _BAT2PV_c_out # Minimum DC discharging power
# Initialization of particular variables
_tde = _t_CONSTANT > 0 # Binary variable to activate the first-order time delay element
# Factor of the first-order time delay element
_ftde = 1 - np.exp(-_dt / _t_CONSTANT)
# First time step with regard to the dead time of the system control
_tstart = np.maximum(2, 1 + _t_DEAD)
_tend = int(_Ppv.size)
_th = 0
_E_BAT *= 1000 # Conversion from W to kW
_eta_BAT /= 100
# Check if the dead or settling time can be ignored and set flags accordingly
if _dt >= (3 * _t_CONSTANT) or _tend == 1:
_tstart = 1
T_DEAD = False
else:
T_DEAD = True
if _dt >= _t_DEAD + 3 * _t_CONSTANT:
SETTLING = False
else:
SETTLING = True
for t in range(_tstart - 1, _tend):
# Energy content of the battery in the previous time step
E_b0 = _soc0 * _E_BAT
# Target AC output power of the PV-battery system to cover the AC power demand
if T_DEAD:
P_pvbs = np.minimum(_Pac[t - _t_DEAD], _P_PV2AC_out * 1000)
else:
P_pvbs = np.minimum(_Pac[t], _P_PV2AC_out * 1000)
# Normalized AC output power of the PV2AC conversion pathway
ppv2ac = P_pvbs / _P_PV2AC_out / 1000
# Target DC input power of the PV2AC conversion pathway
P_pv2ac_in = P_pvbs + (_PV2AC_a_out * ppv2ac **
2 + _PV2AC_b_out * ppv2ac + _PV2AC_c_out)
# Residual power
if T_DEAD:
P_rpv = _Ppv[t - _t_DEAD] - P_pv2ac_in
else:
P_rpv = _Ppv[t] - P_pv2ac_in
# Check if the battery holds enough unused capacity for charging or discharging
# Estimated amount of energy that is supplied to or discharged from the storage unit.
E_bs_rpv = P_rpv * _dt / 3600
# Reduce P_bs to avoid over charging of the battery
if E_bs_rpv > 0 and E_bs_rpv > (_E_BAT - E_b0):
P_rpv = ((_E_BAT - E_b0) * 3600) / _dt
# When charging take the correction factor into account
elif E_bs_rpv < 0 and np.abs(E_bs_rpv) > (E_b0):
P_rpv = ((E_b0) * 3600 / _dt) * (1-corr)
# Decision if the battery should be charged or discharged
if P_rpv > _P_PV2BAT_min and _soc0 < 1 - _th * (1 - _SOC_h):
'''
The last term th*(1-SOC_h) avoids the alternation between
charging and standby mode due to the DC power consumption of the
battery converter when the battery is fully charged. The battery
will not be recharged until the SOC falls below the SOC-threshold
(SOC_h) for recharging from PV.
'''
# Charging power
P_pv2bat_in = P_rpv
# Adjust the charging power due to stationary deviations
P_pv2bat_in = np.maximum(0, P_pv2bat_in + _P_PV2BAT_DEV)
# Limit the charging power to the maximum charging power
P_pv2bat_in = np.minimum(P_pv2bat_in, _P_PV2BAT_in * 1000)
# Adjust the charging power due to the settling time
# (modeled by a first-order time delay element)
if SETTLING:
if t > 0:
P_pv2bat_in = _tde * _Ppv2bat_in[t-1] + _tde * (
P_pv2bat_in - _Ppv2bat_in[t-1]) * _ftde + P_pv2bat_in * (not _tde)
else:
P_pv2bat_in = _tde * _Ppv2bat_in0 + _tde * \
(P_pv2bat_in - _Ppv2bat_in0) * \
_ftde + P_pv2bat_in * (not _tde)
# Limit the charging power to the current power output of the PV generator
P_pv2bat_in = np.minimum(P_pv2bat_in, _Ppv[t])
# Normalized charging power
ppv2bat = P_pv2bat_in / _P_PV2BAT_in / 1000
# DC power of the battery
P_bat = np.maximum(0, P_pv2bat_in - (_PV2BAT_a_in *
ppv2bat**2 + _PV2BAT_b_in * ppv2bat + _PV2BAT_c_in))
# Realized DC input power of the PV2AC conversion pathway
P_pv2ac_in = _Ppv[t] - P_pv2bat_in
# Limit the DC input power of the PV2AC conversion pathway
P_pv2ac_in = np.minimum(P_pv2ac_in, _P_PV2AC_in * 1000)
# Recalculate Ppv(t) with limited PV2AC input power
_Ppv[t] = P_pv2ac_in + P_pv2bat_in
# Normalized DC input power of the PV2AC conversion pathway
ppv2ac = P_pv2ac_in / _P_PV2AC_in / 1000
# Realized AC power of the PV-battery system
P_pv2ac_out = np.maximum(
0, P_pv2ac_in - (_PV2AC_a_in * ppv2ac**2 + _PV2AC_b_in * ppv2ac + _PV2AC_c_in))
P_pvbs = P_pv2ac_out
# Transfer the final values
_Ppv2ac_out[t] = P_pv2ac_out
_Ppv2bat_in0 = P_pv2bat_in
_Ppv2bat_in[t] = P_pv2bat_in
elif P_rpv < -_P_BAT2PV_min and _soc0 > 0:
# Target discharging power of the battery
P_bat2pv_out = np.abs(P_rpv)
# Adjust the discharging power due to the stationary deviations
P_bat2pv_out = np.maximum(0, P_bat2pv_out + _P_BAT2AC_DEV)
# Adjust the discharging power to the maximum discharging power
P_bat2pv_out = np.minimum(P_bat2pv_out, _P_BAT2PV_out * 1000)
# Adjust the discharging power due to the settling time
# (modeled by a first-order time delay element)
if SETTLING:
if t > 0:
P_bat2pv_out = _tde * _Pbat2pv_out[t-1] + _tde * (P_bat2pv_out - _Pbat2pv_out[t-1]) * _ftde + P_bat2pv_out * (not _tde)
else:
P_bat2pv_out = _tde * _Pbat2pv_out0 + _tde * (P_bat2pv_out - _Pbat2pv_out0) * _ftde + P_bat2pv_out * (not _tde)
# Recalculate Ppv(t) with limited PV2AC input power
_Ppv[t] = np.minimum(_P_PV2AC_in * 1000, _Ppv[t])
# Limit the discharging power to the maximum AC power output of the PV-battery system
P_bat2pv_out = np.minimum(_P_PV2AC_in * 1000 - _Ppv[t], P_bat2pv_out)
# Normalized discharging power
pbat2pv = P_bat2pv_out / _P_BAT2PV_out / 1000
# DC power of the battery affected by the BAT2PV conversion losses
P_bat = -1*(P_bat2pv_out+(_BAT2PV_a_out * pbat2pv**2 + _BAT2PV_b_out * pbat2pv + _BAT2PV_c_out))
# Realized DC input power of the PV2AC conversion pathway
P_pv2ac_in = _Ppv[t] + P_bat2pv_out
# Normalized DC input power of the PV2AC conversion pathway
ppv2ac = P_pv2ac_in / _P_PV2AC_in / 1000
# AC power of the PV-battery system
P_pvbs = np.maximum(0, P_pv2ac_in-(_PV2AC_a_in * ppv2ac**2 + _PV2AC_b_in * ppv2ac + _PV2AC_c_in))
P_pv2ac_out = P_pvbs
# Transfer the final values
_Ppv2ac_out[t] = P_pv2ac_out
_Pbat2pv_out0 = P_bat2pv_out
_Pbat2pv_out[t] = P_bat2pv_out
else: # Neither charging nor discharging of the battery
# Set the DC power of the battery to zero
P_bat = 0
# Limit the power output of the PV generator to the maximum input power
# of the PV inverter
_Ppv[t] = np.minimum(_Ppv[t], _P_PV2AC_in * 1000)
# Normalized DC input power of the PV2AC conversion pathway
ppv2ac = _Ppv[t] / _P_PV2AC_in / 1000
# Realized AC power of the PV-battery system
P_pvbs = np.maximum(0, _Ppv[t] - (_PV2AC_a_in * ppv2ac**2 + _PV2AC_b_in * ppv2ac + _PV2AC_c_in))
# Transfer the final values
_Ppv2ac_out[t] = P_pvbs
# Decision if the standby mode is active
if P_bat == 0 and _soc0 <= 0: # Standby mode in discharged state
# DC power consumption of the battery converter
P_bat = -np.maximum(0, _P_SYS_SOC0_DC)
if P_pvbs == 0:
P_pvbs = -_P_SYS_SOC0_AC
elif P_bat == 0 and P_pvbs > 0 and _soc0 > 0: # Standby mode in fully charged state
# DC power consumption of the battery converter
P_bat = -np.maximum(0, _P_SYS_SOC1_DC)
# Transfer the realized AC power of the battery system and
# the DC power of the battery
_Ppvbs[t] = P_pvbs
_Pbat[t] = P_bat
# Change the energy content of the battery Wx to Wh conversio
if P_bat > 0:
E_b = E_b0 + P_bat * np.sqrt(_eta_BAT) * _dt / 3600
elif P_bat < 0:
E_b = E_b0 + P_bat / np.sqrt(_eta_BAT) * _dt / 3600
else:
E_b = E_b0
# Calculate the state of charge of the battery
_soc0 = E_b / (_E_BAT)
_soc[t] = _soc0
# Adjust the hysteresis threshold to avoid alternation
# between charging and standby mode due to the DC power
# consumption of the battery converter.
if _th and _soc[t] > _SOC_h or _soc[t] > 1:
_th = True
else:
_th = False
return _soc, _soc0, _Ppv, _Ppvbs, _Pbat, _Ppv2ac_out, _Pbat2pv_out, _Ppv2bat_in
def bat_res_mod(_parameter, _Pl, _Ppv, _Pbat, _dt, *args):
"""Function for calculating energy sums
:param _parameter: parameter of the system
:type _parameter: dict
:param _Pl: load power
:type _Pl: numpy array
:param _Ppv: output power of the PV generator
:type _Ppv: numpy array
:param _Pbat: DC power of the battery
:type _Pbat: numpy array
:param _dt: time step width
:type _dt: integer
:return: energy sums
:rtype: dict
"""
_E = dict()
if _parameter['Top'] == 'AC': # AC-coupled systems
_Ppvs = args[0] # AC output power of the PV system
_Pbs = args[1] # AC power of the battery system
# Additional power consumption of the other system components
_Pperi = args[2]
elif _parameter['Top'] == 'DC' or _parameter['Top'] == 'PV': # DC- and PV-coupled systems
_Ppv2ac = args[0] # AC output power of the PV2AC conversion pathway
_Ppv2bat_in = args[1] # Input power of the PV2BAT conversion pathway
_Ppvbs = args[2] # AC power of the PV-battery system
# Additional power consumption of the other system components
_Pperi = args[3]
_Ppv2ac_in = _Ppv - _Ppv2bat_in # Input power of the PV2AC conversion pathway
# Total load including the power consumption of the other system components
_Plt = _Pl + _Pperi
# DC input power of the battery (charged)
_Pbatin = np.maximum(0, _Pbat)
# DC output power of the battery (discharged)
_Pbatout = np.minimum(0, _Pbat)
# Maximum PV feed-in power
_P_ac2g_max = _parameter['p_ac2g_max'] * _parameter['P_PV'] * 1000
if _parameter['Top'] == 'AC': # AC-coupled systems
# Residual power without curtailment
_Pr = _Ppvs - _Plt
# AC input power of the battery system
_Pac2bs = np.maximum(0, _Pbs)
# AC output power of the battery system
_Pbs2ac = np.minimum(0, _Pbs)
# Negative residual power (residual load demand)
_Prn = np.minimum(0, _Pr)
# Positive residual power (surplus PV power)
_Prp = np.maximum(0, _Pr)
# Direct use of PV power by the load
_Ppvs2l = np.minimum(_Ppvs, _Plt)
# PV charging power
_Ppvs2bs = np.minimum(_Prp, _Pac2bs)
# Grid charging power
_Pg2bs = np.maximum(_Pac2bs - _Prp, 0)
# Grid supply power of the load
_Pg2l = np.minimum(_Prn - _Pbs2ac, 0)
# Battery supply power of the load
_Pbs2l = np.maximum(_Prn, _Pbs2ac)
# Battery feed-in power
_Pbs2g = np.minimum(_Pbs2ac - _Prn, 0)
# PV feed-in power including curtailment
_Ppvs2g = np.minimum(np.maximum(_Prp - _Pac2bs, 0), _P_ac2g_max)
# Power demand from the grid
_Pg2ac = _Pg2l - _Pg2bs
# Feed-in power to the grid
_Pac2g = _Ppvs2g - _Pbs2g
# Grid power
_Pg = _Pac2g + _Pg2ac
# Curtailed PV power (AC output power)
_Pct = np.maximum(_Prp - _Pac2bs, 0) - _Ppvs2g
# AC output power of the PV system including curtailment
_Ppvs = _Ppvs - _Pct
# Residual power including curtailment
_Pr = _Ppvs - _Plt
# Index for PV curtailment
_idx = np.where(_Pct > 0)[0]
for i in range(len(_idx)):
_tct = _idx[i]
# Normalized output power of the PV inverter
_ppvinvout = _Ppvs[_tct] / _parameter['P_PV2AC_out'] / 1000
# DC output power of the PV generator taking into account the
# conversion and curtailment losses
_Ppv[_tct] = _Ppvs[_tct] + (_parameter['PV2AC_a_out'] * _ppvinvout **
2 + _parameter['PV2AC_b_out'] * _ppvinvout + _parameter['PV2AC_c_out'])
elif _parameter['Top'] == 'DC' or _parameter['Top'] == 'PV': # DC- and PV-coupled systems
# Grid power demand of the PV-battery system
_Pg2pvbs = np.minimum(0, _Ppvbs)
# AC input power of the PV-battery system
_Pac2pvbs = _Pg2pvbs
# AC output power of the PV-battery system
_Ppvbs2ac = np.maximum(0, _Ppvbs)
# Load supply power by the PV-battery system
_Ppvbs2l = np.minimum(_Plt, _Ppvbs2ac)
# Load supply power by the grid
_Pg2l = _Plt - _Ppvbs2l
# Direct use of PV power by the load
_Ppv2l = np.minimum(_Plt, _Ppv2ac)
# PV feed-in power including curtailment
_Ppv2g = np.minimum(_Ppv2ac - _Ppv2l, _P_ac2g_max)
# Curtailed PV power (AC output power)
_Pct = _Ppv2ac - _Ppv2l - _Ppv2g
if np.sum(_Pct) > 0:
# Power of the PV-battery system including curtailment
_Ppvbs = _Ppvbs - _Pct
# AC output power of the PV-battery system including curtailment
_Ppvbs2ac = np.maximum(0, _Ppvbs)
# AC output power of the PV2AC conversion pathway including curtailment
_Ppv2ac = _Ppv2ac - _Pct
# Index for PV curtailment
_idx = np.where(_Pct > 0)[0]
for i in range(len(_idx)):
_tct = _idx[i]
# Specific AC output power of the PV2AC conversion pathway
_ppv2ac = _Ppv2ac[_tct] / _parameter['P_PV2AC_out'] / 1000
# DC input power of the PV2AC conversion pathway including curtailment
_Ppv2ac_in[_tct] = _Ppv2ac[_tct] + (_parameter['PV2AC_a_out'] * _ppv2ac **
2 + _parameter['PV2AC_b_out'] * _ppv2ac + _parameter['PV2AC_c_out'])
# DC output power of the PV generator including curtailment
_Ppv = _Ppv2ac_in + _Ppv2bat_in
# Grid power including curtailment
_Pg = _Ppvbs-_Plt
# Feed-in power to the grid including curtailment
_Pac2g = np.maximum(0, _Pg)
# Power demand from the grid
_Pg2ac = np.minimum(0, _Pg)
# Energy sums in MWH
# Electrical demand including the energy consumption of the other system components
_E['El'] = np.sum(np.abs(_Plt)) * _dt / 3.6e9
# DC output of the PV generator including curtailment
_E['Epv'] = np.sum(np.abs(_Ppv)) * _dt / 3.6e9
# DC input of the battery (charged)
_E['Ebatin'] = np.sum(np.abs(_Pbatin)) * _dt / 3.6e9
# DC output of the battery (discharged)
_E['Ebatout'] = np.sum(np.abs(_Pbatout)) * _dt / 3.6e9
# Grid feed-in
_E['Eac2g'] = np.sum(np.abs(_Pac2g)) * _dt / 3.6e9
# Grid demand
_E['Eg2ac'] = np.sum(np.abs(_Pg2ac)) * _dt / 3.6e9
# Load supply by the grid
_E['Eg2l'] = np.sum(np.abs(_Pg2l)) * _dt / 3.6e9
# Demand of the other system components
_E['Eperi'] = np.sum(np.abs(_Pperi)) * _dt / 3.6e9
# Curtailed PV energy
_E['Ect'] = np.sum(np.abs(_Pct)) * _dt / 3.6e9
if _parameter['Top'] == 'AC': # AC-coupled systems
# AC output of the PV system including curtailment
_E['Epvs'] = np.sum(np.abs(_Ppvs)) * _dt / 3.6e9
# AC input of the battery system
_E['Eac2bs'] = np.sum(np.abs(_Pac2bs)) * _dt / 3.6e9
# AC output of the battery system
_E['Ebs2ac'] = np.sum(np.abs(_Pbs2ac)) * _dt / 3.6e9
# Direct use of PV energy
_E['Epvs2l'] = np.sum(np.abs(_Ppvs2l)) * _dt / 3.6e9
# PV charging
_E['Epvs2bs'] = np.sum(np.abs(_Ppvs2bs)) * _dt / 3.6e9
# Grid charging
_E['Eg2bs'] = np.sum(np.abs(_Pg2bs)) * _dt / 3.6e9
# PV feed-in
_E['Epvs2g'] = np.sum(np.abs(_Ppvs2g)) * _dt / 3.6e9
# Load supply by the battery system
_E['Ebs2l'] = np.sum(np.abs(_Pbs2l)) * _dt / 3.6e9
# Battery feed-in
_E['Ebs2g'] = np.sum(np.abs(_Pbs2g)) * _dt / 3.6e9
elif _parameter['Top'] == 'DC' or _parameter['Top'] == 'PV': # DC- and PV-coupled systems
# Grid demand of the PV-battery system
_E['Eg2pvbs'] = np.sum(np.abs(_Pg2pvbs)) * _dt / 3.6e9
# AC input of the PV-battery system
_E['Eac2pvbs'] = np.sum(np.abs(_Pac2pvbs)) * _dt / 3.6e9
# AC output of the PV-battery system
_E['Epvbs2ac'] = np.sum(np.abs(_Ppvbs2ac)) * _dt / 3.6e9
# Load supply by the PV-battery system
_E['Epvbs2l'] = np.sum(np.abs(_Ppvbs2l)) * _dt / 3.6e9
return _E
def bat_res_mod_ideal(_parameter, _Pl, _Ppv, _Pbat, _dt, *args):
E = dict() # Dictionary to store energy sums
if _parameter['Top'] == 'AC':
Ppvs = args[0] # AC output power of the PV system
Pbs = args[1] # AC power of the battery system
Pperi = args[2] # Additional power consumption of the other system components
elif _parameter['Top'] == 'DC':
Ppv2ac = args[0]
Ppv2bat_in = args[1]
Ppvbs = args[2]
Pperi = args[3]
Ppv2ac_in = _Ppv - Ppv2bat_in
# Additional power consumption of the other system components
Pperi = np.zeros_like(_Ppv)
# Total load including the power consumption of the other system components
Plt = _Pl
# DC input power of the battery (charged)
Pbatin = np.maximum(0, _Pbat)
# DC output power of the battery (discharged)
Pbatout = np.minimum(0, _Pbat)
if _parameter['Top'] == 'AC':
# Grid power
Pg = Ppvs - _Pl - Pbs
# Residual power
Pr = Ppvs - Plt
# AC input power of the battery system
Pac2bs = np.maximum(0, Pbs)
# AC output power of the battery system
Pbs2ac = np.minimum(0, Pbs)
# Negative residual power (residual load demand)
Prn = np.minimum(0, Pr)
# Positive residual power (surplus PV power)
Prp = np.maximum(0, Pr)
# Direct use of PV power by the load
Ppvs2l = np.minimum(Ppvs, Plt)
# PV charging power
Ppvs2bs=np.minimum(Prp, Pac2bs)
# Grid charging power
Pg2bs=np.maximum(Pac2bs - Prp, 0)
# Grid supply power of the load
Pg2l=np.minimum(Prn - Pbs2ac, 0)
# Battery supply power of the load
Pbs2l=np.maximum(Prn, Pbs2ac)
# Battery feed-in power
Pbs2g=np.minimum(Pbs2ac - Prn, 0)
# PV feed-in power
Ppvs2g=np.maximum(Prp - Pac2bs, 0)
elif _parameter['Top'] == 'DC':
# Grid power
Pg = Ppvbs - _Pl
# Grid power demand of the PV-battery system
Pg2pvbs = np.minimum(0, Ppvbs)
# AC input power of the PV-battery system
Pac2pvbs = Pg2pvbs
# AC output power of the PV-battery system
Ppvbs2ac = np.maximum(0, Ppvbs)
# Load supply power by the PV-battery system
Ppvbs2l = np.minimum(_Pl, Ppvbs2ac)
# Load supply power by the grid
Pg2l = (Plt - Ppvbs2l)
# Curtailed PV power (AC output power)
Pct = np.zeros_like(_Ppv)
# Power demand from the grid
Pg2ac = np.minimum(0, Pg)
# Feed-in power to the grid
Pac2g=np.maximum(0, Pg)
# Energy sums
# Electrical demand including the energy consumption of the other system components
E['El'] = np.sum(np.abs(Plt)) / 3.6e9
# DC output of the PV generator including curtailment
E['Epv'] = np.sum(np.abs(_Ppv)) / 3.6e9
# DC input of the battery (charged)
E['Ebatin'] = np.sum(np.abs(Pbatin)) / 3.6e9
# DC output of the battery (discharged)
E['Ebatout'] = np.sum(np.abs(Pbatout)) / 3.6e9
# Grid feed-in
E['Eac2g'] = np.sum(np.abs(Pac2g)) / 3.6e9
# Grid demand
E['Eg2ac'] = np.sum(np.abs(Pg2ac)) / 3.6e9
# Load supply by the grid
E['Eg2l'] = np.sum(np.abs(Pg2l)) / 3.6e9
# Demand of the other system components
E['Eperi'] = np.sum(np.abs(Pperi)) / 3.6e9
# Curtailed PV energy
E['Ect'] = np.sum(np.abs(Pct)) / 3.6e9
if _parameter['Top'] == 'AC':
# AC output of the PV system including curtailment
E['Epvs']=np.sum(np.abs(Ppvs)) / 3.6e9
# AC input of the battery system
E['Eac2bs']=np.sum(np.abs(Pac2bs)) / 3.6e9
# AC output of the battery system
E['Ebs2ac']=np.sum(np.abs(Pbs2ac)) / 3.6e9
# Direct use of PV energy
E['Epvs2l']=np.sum(np.abs(Ppvs2l)) / 3.6e9
# PV charging
E['Epvs2bs']=np.sum(np.abs(Ppvs2bs)) / 3.6e9
# Grid charging
E['Eg2bs']=np.sum(np.abs(Pg2bs)) / 3.6e9
# PV feed-in
E['Epvs2g']=np.sum(np.abs(Ppvs2g)) / 3.6e9
# Load supply by the battery system
E['Ebs2l']=np.sum(np.abs(Pbs2l)) / 3.6e9
# Battery feed-in
E['Ebs2g']=np.sum(np.abs(Pbs2g)) / 3.6e9
elif _parameter['Top'] == 'DC':
# Grid demand of the PV-battery system
E['Eg2pvbs'] = np.sum(np.abs(Pg2pvbs)) / 3.6e9
# AC input of the PV-battery system
E['Eac2pvbs'] = np.sum(np.abs(Pac2pvbs)) / 3.6e9
# AC output of the PV-battery system
E['Epvbs2ac'] = np.sum(np.abs(Ppvbs2ac)) / 3.6e9
# Load supply by the PV-battery system
E['Epvbs2l'] = np.sum(np.abs(Ppvbs2l)) / 3.6e9
return E
def load_parameter(fname, col_name):
"""Loads system parameter from excel file
:param fname: Path to the excel file
:type fname: string
:param col_name: Column to read data from
:type col_name: string
:return: Dictionary holding parameters from the Excel sheet
:rtype: dict
"""
wb = load_workbook(fname, data_only=True)
ws = wb['Data'] # Load Data sheet of excel file
# read keys and values from Excel sheet
keys = (c.value for c in ws['E'][1:])
values = (c.value if c.value != 'ns' else None for c in ws[col_name][1:])
parameter = dict(zip(keys, values))
# deletes entries where key is None
del parameter[None]
# Assign specific parameters
parameter['P_PV2AC_out_PVINV'] = ws[col_name][15].value
parameter['P_PV2AC_out'] = ws[col_name][24].value
parameter['P_AC2BAT_in_DCC'] = ws[col_name][25].value
parameter['P_AC2BAT_in'] = ws[col_name][26].value
parameter['P_BAT2AC_out'] = ws[col_name][27].value
parameter['P_BAT2AC_out_DCC'] = ws[col_name][28].value
# Set refrence case values to boolean
if parameter['ref_1'] == 'yes':
parameter['ref_1'] = True
elif parameter['ref_1'] == 'no':
parameter['ref_1'] = False
if parameter['ref_2'] == 'yes':
parameter['ref_2'] = True
elif parameter['ref_2'] == 'no':
parameter['ref_2'] = False
# Specific parameters of DC-coupled systems
if parameter['Top'] == 'DC':
parameter['P_AC2BAT_in'] = parameter['P_AC2BAT_in_DCC'] # Nominal charging power (AC) in kW
parameter['P_BAT2AC_out'] = parameter['P_BAT2AC_out_DCC']
# Specific parameters of PV inverters and AC-coupled systems
if parameter['Top'] == 'PVINV' or parameter['Top'] == 'AC' and parameter['P_PV2AC_out_PVINV'] is not None:
parameter['P_PV2AC_out'] = parameter['P_PV2AC_out_PVINV']
# Specific parameters of PV-coupled systems
if parameter['Top'] == 'PV':
parameter['P_BAT2PV_in'] = parameter['P_BAT2AC_in']
parameter['P_BAT2AC_out'] = parameter['P_BAT2AC_out_DCC']
# replace 'ns', 'o' and 'c' entries to None
for key, value in parameter.items():
if value == 'ns' or value == 'o' or value == 'c' or value == ' ':
parameter[key] = None
# Convert to kW
convert_to_kw = ['P_PV2AC_in', 'P_PV2AC_out_PVINV','P_PV2AC_out','P_AC2BAT_in_DCC','P_AC2BAT_in','P_BAT2AC_out',
'P_BAT2AC_out_DCC','P_PV2BAT_in','P_BAT2PV_out','P_PV2BAT_out','P_BAT2AC_in']
for par in convert_to_kw:
if parameter[par]:
parameter[par] /= 1000
return parameter
def eta2abc(parameter):
"""Function to calculate the parameters of the power loss functions (quadratic equations) from the path efficiencies
:param parameter: Holds parameters of the system
:type parameter: dict
:return: Dictionary holding parameters from the Excel sheet
:rtype: dict
"""
# PV2AC conversion pathway TODO
if parameter['Top'] == 'DC' or parameter['Top'] == 'PVINV' or parameter['Top'] == 'PV' and parameter['P_PV2AC_out'] is not None or parameter['Top'] == 'AC' and parameter['P_PV2AC_out'] is not None:
# Create variables for the sampling points and corresponding efficiencies TODO
p_pv2ac = np.fromiter((value for key, value in parameter.items() if 'p_PV2AC_' in key and value is not None), float)
eta_pv2ac = np.fromiter((value / 100 for key, value in parameter.items() if 'eta_PV2AC_' in key and value is not None), float)
# Absolute input and output power in W
p_pv2ac_out = parameter['P_PV2AC_out'] * p_pv2ac * 1000
p_pv2ac_in = p_pv2ac_out / eta_pv2ac
# Absolute power loss in W
P_l_pv2ac_in = (1 - eta_pv2ac) * p_pv2ac_in
P_l_pv2ac_out = (1 / eta_pv2ac - 1) * p_pv2ac_out
# Polynomial curve fitting parameters of the power loss functions in W
# Based on input power
p = np.polyfit(p_pv2ac_in / parameter['P_PV2AC_in'] / 1000, P_l_pv2ac_in, 2)
parameter['PV2AC_a_in'] = p[0]
parameter['PV2AC_b_in'] = p[1]
parameter['PV2AC_c_in'] = p[2]
# Based on output power
p = np.polyfit(p_pv2ac, P_l_pv2ac_out, 2)
parameter['PV2AC_a_out'] = p[0]
parameter['PV2AC_b_out'] = p[1]
parameter['PV2AC_c_out'] = p[2]
# PV2BAT conversion pathway
if parameter['Top'] == 'DC' or parameter['Top'] == 'PV':
# Create variables for the sampling points and corresponding efficiencies
p_pv2bat = np.array([value for key, value in parameter.items() if 'p_PV2BAT_' in key])
eta_pv2bat = np.array([value / 100 for key, value in parameter.items() if 'eta_PV2BAT_' in key])
# Create missing variables
# Nominal input power of the PV2BAT conversion pathway of DC-coupled systems
if parameter['P_PV2BAT_in'] is None:
parameter['P_PV2BAT_in'] = parameter['P_PV2BAT_out'] / (parameter['eta_PV2BAT_100'] / 100)
# Absolute input and output power in W
p_pv2bat_out = parameter['P_PV2BAT_out'] * p_pv2bat * 1000
p_pv2bat_in = p_pv2bat_out / eta_pv2bat
# Absolute power loss in W
P_l_pv2bat_in = (1 - eta_pv2bat) * p_pv2bat_in
P_l_pv2bat_out = (1 / eta_pv2bat - 1) * p_pv2bat_out
# Polynomial curve fitting parameters of the power loss functions in W
# Based on input power
p = np.polyfit(p_pv2bat_in / parameter['P_PV2BAT_in'] / 1000, P_l_pv2bat_in, 2)
parameter['PV2BAT_a_in'] = p[0]
parameter['PV2BAT_b_in'] = p[1]
parameter['PV2BAT_c_in'] = p[2]
# Based on output power
p = np.polyfit(p_pv2bat, P_l_pv2bat_out, 2)
parameter['PV2BAT_a_out'] = p[0]
parameter['PV2BAT_b_out'] = p[1]
parameter['PV2BAT_c_out'] = p[2]
# AC2BAT conversion pathway
if parameter['Top'] == 'AC' or parameter['Top'] == 'DC' and parameter['P_AC2BAT_in'] is not None:
# Create variables for the sampling points and corresponding efficiencies TODO
p_ac2bat = np.fromiter((value for key, value in parameter.items() if 'p_AC2BAT_' in key), float)
eta_ac2bat = np.fromiter((value / 100 for key, value in parameter.items() if 'eta_AC2BAT_' in key), float)
# Absolute input and output power in W
p_ac2bat_out = parameter['P_PV2BAT_out'] * p_ac2bat * 1000
p_ac2bat_in = p_ac2bat_out / eta_ac2bat
# Absolute power loss in W
P_l_ac2bat_in = (1 - eta_ac2bat) * p_ac2bat_in
P_l_ac2bat_out = (1 / eta_ac2bat - 1) * p_ac2bat_out
# Polynomial curve fitting parameters of the power loss functions in W
# Based on input power
p = np.polyfit(p_ac2bat_in / parameter['P_AC2BAT_in'] / 1000, P_l_ac2bat_in, 2)
parameter['AC2BAT_a_in'] = p[0]
parameter['AC2BAT_b_in'] = p[1]
parameter['AC2BAT_c_in'] = p[2]
# Based on output power
p = np.polyfit(p_ac2bat, P_l_ac2bat_out, 2)
parameter['AC2BAT_a_out'] = p[0]
parameter['AC2BAT_b_out'] = p[1]
parameter['AC2BAT_c_out'] = p[2]
# BAT2AC conversion pathway
if parameter['Top'] =='AC' or parameter['Top'] =='DC' or parameter['Top'] =='PV' and parameter['P_BAT2AC_out'] is not None:
# Create variables for the sampling points and corresponding efficiencies TODO
p_bat2ac = np.fromiter((value for key, value in parameter.items() if 'p_BAT2AC_' in key), float)
eta_bat2ac = np.fromiter((value / 100 for key, value in parameter.items() if 'eta_BAT2AC_' in key), float)
# Absolute input and output power in W
p_bat2ac_out = parameter['P_BAT2AC_out'] * p_bat2ac * 1000
p_bat2ac_in = p_bat2ac_out / eta_bat2ac
# Absolute power loss in W
P_l_bat2ac_in = (1 - eta_bat2ac) * p_bat2ac_in
P_l_bat2ac_out = (1 / eta_bat2ac - 1) * p_bat2ac_out
# Polynomial curve fitting parameters of the power loss functions in W
# Based on input power
p = np.polyfit(p_bat2ac_in / parameter['P_BAT2AC_in'] / 1000, P_l_bat2ac_in, 2)
parameter['BAT2AC_a_in'] = p[0]
parameter['BAT2AC_b_in'] = p[1]
parameter['BAT2AC_c_in'] = p[2]
# Based on output power
p = np.polyfit(p_bat2ac, P_l_bat2ac_out, 2)
parameter['BAT2AC_a_out'] = p[0]
parameter['BAT2AC_b_out'] = p[1]
parameter['BAT2AC_c_out'] = p[2]
# BAT2PV conversion pathway
if parameter['Top'] =='PV':
# Create variables for the sampling points and corresponding efficiencies TODO
p_bat2pv = np.fromiter((value for key, value in parameter.items() if 'p_BAT2PV_' in key), float)
eta_bat2pv = np.fromiter((value / 100 for key, value in parameter.items() if 'eta_BAT2PV_' in key), float)
# Absolute input and output power in W
p_bat2pv_out = parameter['P_BAT2PV_out'] * p_bat2pv * 1000
p_bat2pv_in = p_bat2pv_out / eta_bat2pv
# Absolute power loss in W
P_l_bat2pv_in = (1 - eta_bat2pv) * p_bat2pv_in
P_l_bat2pv_out = (1 / eta_bat2pv - 1) * p_bat2pv_out
# Polynomial curve fitting parameters of the power loss functions in W
# Based on input power TODO
p = np.polyfit(p_bat2pv_in / parameter['P_BAT2AC_in'] / 1000, P_l_bat2pv_in, 2)
parameter['BAT2PV_a_in'] = p[0]
parameter['BAT2PV_b_in'] = p[1]
parameter['BAT2PV_c_in'] = p[2]
# Based on output power
p = np.polyfit(p_bat2pv, P_l_bat2pv_out, 2)
parameter['BAT2PV_a_out'] = p[0]
parameter['BAT2PV_b_out'] = p[1]
parameter['BAT2PV_c_out'] = p[2]
# Additional parameters
# Mean battery capacity in kWh
try:
parameter['E_BAT'] = (parameter['E_BAT_usable'] / parameter['eta_BAT'] * 100 + parameter['E_BAT_usable']) / 2
except:
parameter['E_BAT'] = None
# Mean stationary deviation of the charging power in W
try:
parameter['P_PV2BAT_DEV'] = parameter['P_PV2BAT_DEV_IMPORT'] - parameter['P_PV2BAT_DEV_EXPORT']
except:
parameter['P_PV2BAT_DEV'] = None
if parameter['Top'] == 'AC':
parameter['P_AC2BAT_DEV'] = parameter['P_PV2BAT_DEV']
# Mean stationary deviation of the discharging power in W
try:
parameter['P_BAT2AC_DEV'] = parameter['P_BAT2AC_DEV_EXPORT'] - parameter['P_BAT2AC_DEV_IMPORT']
except:
parameter['P_BAT2AC_DEV'] = None
# Time constant for the first-order time delay element in s
try:
parameter['t_CONSTANT'] = (parameter['t_SETTLING'] - round(parameter['t_DEAD'])) / 3
except:
parameter['t_CONSTANT'] = None
# Hysteresis threshold for the recharging of the battery
parameter['SOC_h'] = 0.98
# Feed-in power limit in kW/kWp
parameter['p_ac2g_max'] = 0.7
return parameter
def load_ref_case(fname, name):
"""Loads PV power or Load from the reference cases
:param fname: Path to mat file
:type fname: string
:param name: Identifier for PV Power or Load
:type name: string
:return: Returns PV power or load from the reference case
:rtype: numpy array
"""
with open(fname, 'rb') as f:
a = np.load(f)
data = a[name]
return data
def resample_data_frame(df):
"""Function for resampling data frames
:param df: data frame
:type df: pandas data frame
:return: data frame
:rtype: pandas data frame
"""
df_rs = df.resample('15min').mean()
return df_rs
def transform_dict_to_array(parameter):
"""Function for transforming a dict to an numpy array
:param parameter: dict of system parameters
:type parameter: dict
:return: array of system parameters
:rtype: numpy array
"""
if parameter['Top'] == 'AC':
d = np.array(parameter['E_BAT']) # 0
d = np.append(d, parameter['eta_BAT']) # 1
d = np.append(d, parameter['t_CONSTANT']) # 2
d = np.append(d, parameter['P_SYS_SOC0_DC']) # 3
d = np.append(d, parameter['P_SYS_SOC0_AC']) # 4
d = np.append(d, parameter['P_SYS_SOC1_DC']) # 5
d = np.append(d, parameter['P_SYS_SOC1_AC']) # 6
d = np.append(d, parameter['AC2BAT_a_in']) # 7
d = np.append(d, parameter['AC2BAT_b_in']) # 8
d = np.append(d, parameter['AC2BAT_c_in']) # 9
d = np.append(d, parameter['BAT2AC_a_out']) # 10
d = np.append(d, parameter['BAT2AC_b_out']) # 11
d = np.append(d, parameter['BAT2AC_c_out']) # 12
d = np.append(d, parameter['P_AC2BAT_DEV']) # 13
d = np.append(d, parameter['P_BAT2AC_DEV']) # 14
d = np.append(d, parameter['P_BAT2AC_out']) # 15
d = np.append(d, parameter['P_AC2BAT_in']) # 16
d = np.append(d, parameter['t_DEAD']) # 17
d = np.append(d, parameter['SOC_h']) # 18
if parameter['Top'] == 'DC':
d = np.array(parameter['E_BAT']) # 1
d = np.append(d, parameter['P_PV2AC_in']) # 2
d = np.append(d, parameter['P_PV2AC_out']) # 3
d = np.append(d, parameter['P_PV2BAT_in']) # 4
d = np.append(d, parameter['P_BAT2AC_out']) # 5
d = np.append(d, parameter['PV2AC_a_in']) # 6
d = np.append(d, parameter['PV2AC_b_in']) # 7
d = np.append(d, parameter['PV2AC_c_in']) # 8
d = np.append(d, parameter['PV2BAT_a_in']) # 9
d = np.append(d, parameter['PV2BAT_b_in']) # 10
d = np.append(d, parameter['BAT2AC_a_out']) # 11
d = np.append(d, parameter['BAT2AC_b_out']) # 12
d = np.append(d, parameter['BAT2AC_c_out']) # 13
d = np.append(d, parameter['eta_BAT']) # 14
d = np.append(d, parameter['SOC_h']) # 15
d = np.append(d, parameter['P_PV2BAT_DEV']) # 16
d = np.append(d, parameter['P_BAT2AC_DEV']) # 17
d = np.append(d, parameter['t_DEAD']) # 18
d = np.append(d, parameter['t_CONSTANT']) # 19
d = np.append(d, parameter['P_SYS_SOC1_DC']) # 20
d = np.append(d, parameter['P_SYS_SOC0_AC']) # 21
d = np.append(d, parameter['P_SYS_SOC0_DC']) # 22
if parameter['Top'] == 'PV':
d = np.array(parameter['E_BAT'])
d = np.append(d, parameter['P_PV2AC_in'])
d = np.append(d, parameter['P_PV2AC_out'])
d = np.append(d, parameter['P_PV2BAT_in'])
d = np.append(d, parameter['P_BAT2PV_out'])
d = np.append(d, parameter['PV2AC_a_in'])
d = np.append(d, parameter['PV2AC_b_in'])
d = np.append(d, parameter['PV2AC_c_in'])
d = np.append(d, parameter['PV2BAT_a_in'])
d = np.append(d, parameter['PV2BAT_b_in'])
d = np.append(d, parameter['PV2BAT_c_in'])
d = np.append(d, parameter['PV2AC_a_out'])
d = np.append(d, parameter['PV2AC_b_out'])
d = np.append(d, parameter['PV2AC_c_out'])
d = np.append(d, parameter['BAT2PV_a_out'])
d = np.append(d, parameter['BAT2PV_b_out'])
d = np.append(d, parameter['BAT2PV_c_out'])
d = np.append(d, parameter['eta_BAT'])
d = np.append(d, parameter['SOC_h'])
d = np.append(d, parameter['P_PV2BAT_DEV'])
d = np.append(d, parameter['P_BAT2AC_DEV'])
d = np.append(d, parameter['P_SYS_SOC1_DC'])
d = np.append(d, parameter['P_SYS_SOC0_AC'])
d = np.append(d, parameter['P_SYS_SOC0_DC'])
d = np.append(d, parameter['t_DEAD'])
d = np.append(d, parameter['t_CONSTANT'])
return d
def calculate_spi(_E_real, _E_ideal):
# SPI calculation for the reference case:
# Grid electricity price in Euro/kWh
pg2ac = 0.30
# Grid feed-in tariff in Euro/kWh
pac2g = 0.12
# Grid electricity costs without a PV-battery system in Euro/a
Cref = _E_ideal['El'] * pg2ac * 1000
# Net grid electricity costs with the lossless PV-battery system in Euro/a
Cideal = _E_ideal['Eg2ac'] * pg2ac * 1000 - _E_ideal['Eac2g'] * pac2g * 1000
# Net grid electricity costs with the real PV-battery system in Euro/a
Creal = _E_real['Eg2ac'] * pg2ac * 1000 - _E_real['Eac2g'] * pac2g * 1000
# Reduction of the net grid electricity costs by the lossless PV-battery system in Euro/a
dCideal = Cref - Cideal
# Reduction of the net grid electricity costs by the real PV-battery system in Euro/a
dCreal = Cref - Creal
# System Performance Index (SPI)
spi = dCreal / dCideal
return spi
| [
1,
1053,
12655,
408,
7442,
30004,
13,
5215,
954,
2291,
408,
302,
29890,
30004,
13,
3166,
848,
13203,
1053,
848,
1990,
30004,
13,
3166,
954,
2291,
1053,
4072,
30004,
13,
3166,
954,
2291,
29889,
1017,
9795,
1053,
360,
919,
30004,
13,
3166,
954,
2291,
1053,
20199,
277,
30004,
13,
5215,
11701,
408,
10518,
30004,
13,
5215,
931,
30004,
13,
5215,
12865,
30004,
13,
5215,
11799,
30004,
13,
3166,
1722,
2272,
15524,
1053,
2254,
29918,
1287,
2909,
30004,
13,
3166,
11451,
2111,
8262,
29911,
6271,
29889,
4645,
1053,
3382,
8262,
4032,
30004,
13,
3166,
11451,
2111,
8262,
29911,
6271,
1053,
3667,
29879,
30004,
13,
30004,
13,
29992,
1272,
1990,
30004,
13,
1990,
3630,
29901,
30004,
13,
1678,
349,
29886,
29894,
29901,
7442,
29889,
2378,
30004,
13,
1678,
349,
10222,
29901,
7442,
29889,
2378,
30004,
13,
1678,
349,
546,
29875,
29901,
7442,
29889,
2378,
30004,
13,
1678,
17874,
29901,
7442,
29889,
2378,
30004,
13,
1678,
17874,
29900,
29901,
938,
30004,
13,
1678,
349,
5824,
29900,
29901,
938,
30004,
13,
1678,
382,
29901,
9657,
30004,
13,
30004,
13,
30004,
13,
1990,
12579,
2111,
12696,
29898,
3318,
1125,
30004,
13,
1678,
9995,
5894,
13390,
3439,
2785,
4134,
363,
13681,
29899,
16589,
552,
29881,
349,
29963,
29899,
29933,
2620,
29891,
6757,
30004,
13,
30004,
13,
1678,
584,
3207,
3443,
29901,
349,
29963,
16988,
1788,
4128,
30004,
13,
1678,
584,
1853,
3443,
29901,
9657,
30004,
13,
30004,
13,
1678,
584,
3207,
270,
29901,
1409,
6943,
4128,
30004,
13,
1678,
584,
1853,
270,
29901,
12655,
1409,
30004,
13,
1678,
6756,
13,
1678,
584,
3207,
6499,
29894,
29901,
4226,
1891,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
1678,
584,
1853,
6499,
29894,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
715,
29901,
14614,
2254,
3081,
30004,
13,
1678,
584,
1853,
715,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
1588,
29901,
2538,
333,
950,
3081,
363,
16988,
9151,
292,
30004,
13,
1678,
584,
1853,
1588,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
1588,
29886,
29894,
29901,
14614,
10995,
950,
3081,
30004,
13,
1678,
584,
1853,
1588,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29901,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
6499,
29894,
29906,
562,
29901,
21981,
1891,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
304,
4612,
278,
14614,
3081,
9667,
30004,
13,
1678,
584,
1853,
6499,
29894,
29906,
562,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29906,
562,
29918,
449,
29901,
17157,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29906,
562,
29918,
449,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
11636,
29901,
931,
4331,
2920,
297,
6923,
30004,
13,
1678,
584,
1853,
11636,
29901,
6043,
30004,
13,
1678,
9995,
30004,
13,
1678,
903,
3259,
353,
29871,
29900,
29889,
29896,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3443,
29892,
270,
29892,
6499,
29894,
29892,
715,
29892,
11636,
1125,
30004,
13,
4706,
9995,
23770,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
1583,
29889,
15501,
353,
3443,
30004,
13,
4706,
1583,
29889,
29881,
353,
270,
30004,
13,
4706,
1583,
29889,
407,
29894,
353,
6499,
29894,
30004,
13,
4706,
1583,
29889,
572,
353,
715,
30004,
13,
4706,
1583,
29889,
6008,
353,
11636,
30004,
13,
4706,
1583,
29889,
386,
353,
7700,
29871,
396,
7370,
16897,
363,
278,
337,
25389,
292,
310,
278,
16988,
30004,
13,
4706,
1583,
29889,
1028,
29875,
353,
5785,
26471,
13,
30004,
13,
4706,
396,
17250,
2133,
322,
758,
284,
5479,
30004,
13,
4706,
1583,
29889,
21713,
29889,
4040,
29892,
1583,
29889,
21713,
29889,
4040,
29886,
29894,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
21713,
29889,
407,
29894,
29906,
562,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
562,
29918,
449,
353,
4236,
29918,
1311,
29918,
25978,
683,
29898,
15501,
29892,
6499,
29894,
29892,
715,
29892,
282,
29894,
1545,
29922,
5574,
8443,
13,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
562,
29918,
449,
29900,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
353,
29871,
29900,
30004,
13,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
10222,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
29897,
29871,
396,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29879,
542,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
29897,
29871,
396,
4306,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29879,
542,
29900,
353,
29871,
29900,
29871,
396,
4306,
310,
8323,
310,
278,
16988,
297,
278,
937,
931,
4331,
30004,
13,
4706,
396,
10567,
3081,
310,
278,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
297,
399,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
396,
10604,
3081,
310,
278,
350,
1299,
29906,
2477,
11301,
2224,
1582,
297,
399,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
10222,
29906,
562,
29918,
449,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
21713,
29889,
29925,
10222,
29906,
562,
29918,
449,
29900,
353,
29871,
29900,
30004,
13,
4706,
396,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
297,
399,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
5824,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
30004,
13,
4706,
396,
3462,
3245,
3081,
27430,
310,
916,
1788,
7117,
313,
29872,
29889,
29887,
29889,
14614,
3081,
11134,
29897,
297,
399,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
546,
29875,
353,
7442,
29889,
2873,
29898,
1311,
29889,
407,
29894,
29889,
2311,
29897,
334,
1583,
29889,
15501,
1839,
29925,
29918,
13171,
29902,
29918,
2477,
2033,
30004,
13,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
1583,
29889,
407,
29894,
29897,
334,
1583,
29889,
15501,
1839,
29925,
29918,
29925,
29963,
2033,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
4040,
353,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
448,
1583,
29889,
572,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
29906,
562,
29918,
449,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
5824,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
30004,
13,
1678,
732,
1272,
1990,
30004,
13,
1678,
770,
8195,
29898,
1469,
1125,
30004,
13,
4706,
1588,
584,
7442,
29889,
2378,
30004,
13,
4706,
1588,
29886,
29894,
584,
7442,
29889,
2378,
30004,
13,
4706,
6499,
29894,
29906,
562,
584,
7442,
29889,
2378,
30004,
13,
4706,
349,
29886,
29894,
29906,
562,
29918,
449,
584,
7442,
29889,
2378,
30004,
13,
4706,
349,
29886,
29894,
29906,
562,
29918,
449,
29900,
584,
938,
30004,
13,
4706,
349,
29886,
29894,
29906,
10222,
29918,
262,
584,
7442,
29889,
2378,
30004,
13,
4706,
349,
10222,
29906,
562,
29918,
449,
584,
7442,
29889,
2378,
30004,
13,
4706,
349,
29886,
29894,
5824,
584,
7442,
29889,
2378,
30004,
13,
30004,
13,
1678,
732,
1272,
1990,
30004,
13,
1678,
770,
13001,
284,
29898,
21713,
1125,
30004,
13,
4706,
822,
4770,
2344,
12035,
1311,
1125,
30004,
13,
9651,
2428,
2141,
1649,
2344,
1649,
26471,
13,
30004,
13,
1678,
822,
17402,
29898,
1311,
29892,
282,
29894,
1545,
29922,
5574,
1125,
30004,
13,
4706,
9995,
2517,
1179,
278,
23768,
3439,
2785,
8125,
363,
14614,
29899,
16589,
552,
29881,
349,
29963,
29899,
29933,
2620,
29891,
23985,
30004,
13,
4706,
9995,
30004,
13,
462,
462,
462,
462,
462,
462,
462,
462,
462,
462,
9651,
6756,
13,
4706,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
562,
29918,
449,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29892,
1583,
29889,
21713,
29889,
29925,
10222,
29906,
562,
29918,
449,
29892,
1583,
29889,
21713,
29889,
29925,
10222,
29906,
562,
29918,
449,
29900,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
5824,
29892,
1583,
29889,
21713,
29889,
29925,
10222,
29892,
1583,
29889,
21713,
29889,
29879,
542,
29892,
1583,
29889,
21713,
29889,
29879,
542,
29900,
353,
17152,
1545,
29918,
13891,
29898,
30004,
13,
9651,
1583,
29889,
29881,
29892,
1583,
29889,
6008,
29892,
1583,
29889,
21713,
29889,
29879,
542,
29900,
29892,
1583,
29889,
21713,
29889,
29879,
542,
29892,
1583,
29889,
21713,
29889,
4040,
29892,
1583,
29889,
21713,
29889,
4040,
29886,
29894,
29892,
29871,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
11167,
13,
9651,
1583,
29889,
21713,
29889,
29925,
10222,
29906,
562,
29918,
449,
29900,
29892,
1583,
29889,
21713,
29889,
29925,
10222,
29906,
562,
29918,
449,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
562,
29918,
449,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
5824,
29892,
1583,
29889,
21713,
29889,
29925,
10222,
8443,
13,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
29892,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
29892,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
29900,
353,
17152,
1545,
29918,
13891,
29918,
680,
284,
29898,
1311,
29889,
29881,
29892,
1583,
29889,
6008,
29892,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
29900,
29892,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
29892,
1583,
29889,
29902,
311,
284,
29889,
4040,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
8443,
13,
30004,
13,
4706,
396,
22402,
4567,
4128,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
562,
353,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
562,
29918,
449,
29871,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
10222,
353,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29871,
396,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
30004,
13,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
5824,
353,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
448,
7442,
29889,
27525,
398,
29898,
29900,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
29897,
448,
313,
9302,
29889,
1195,
12539,
29898,
29900,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
876,
29871,
396,
8195,
1891,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
29906,
562,
353,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
448,
7442,
29889,
27525,
398,
29898,
29900,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
29897,
29871,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
29906,
10222,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
29897,
29871,
396,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
30004,
13,
30004,
13,
4706,
1596,
26471,
13,
30004,
13,
1678,
822,
17152,
29918,
1545,
29918,
690,
29898,
1311,
1125,
30004,
13,
4706,
9995,
6678,
304,
8147,
278,
3081,
24536,
322,
5864,
25470,
3704,
3151,
18237,
358,
310,
349,
29963,
3081,
30004,
13,
4706,
9995,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29923,
353,
17152,
29918,
690,
29918,
1545,
29898,
1311,
29889,
15501,
29892,
1583,
29889,
572,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
21713,
29889,
29925,
10222,
11167,
13,
462,
462,
29871,
1583,
29889,
6008,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
562,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29906,
10222,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
5824,
29892,
1583,
29889,
21713,
29889,
29925,
546,
29875,
8443,
13,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29923,
353,
17152,
29918,
690,
29918,
1545,
29918,
680,
284,
29898,
1311,
29889,
15501,
29892,
1583,
29889,
572,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
11167,
13,
462,
462,
308,
1583,
29889,
6008,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
29906,
562,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
29906,
10222,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
5824,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
546,
29875,
8443,
13,
30004,
13,
1678,
822,
8147,
29918,
1028,
29875,
29898,
1311,
1125,
30004,
13,
4706,
1583,
29889,
1028,
29875,
353,
8147,
29918,
1028,
29875,
7373,
29923,
29918,
6370,
29922,
1311,
29889,
21713,
29889,
29923,
29892,
903,
29923,
29918,
680,
284,
29922,
1311,
29889,
29902,
311,
284,
29889,
29923,
8443,
13,
30004,
13,
1678,
822,
679,
29918,
29923,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
5864,
25470,
310,
278,
17402,
30004,
13,
30004,
13,
4706,
584,
2457,
29901,
24836,
25470,
310,
278,
17402,
297,
341,
8809,
30004,
13,
4706,
584,
29878,
1853,
29901,
9657,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
21713,
29889,
29923,
29892,
1583,
29889,
29902,
311,
284,
29889,
29923,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
29879,
542,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
30004,
13,
4706,
584,
2457,
29901,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
584,
29878,
1853,
29901,
12655,
1409,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
29879,
542,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
29925,
10222,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
6756,
13,
4706,
584,
2457,
29901,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
584,
29878,
1853,
29901,
12655,
1409,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
29925,
10222,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
29903,
2227,
29898,
1311,
1125,
30004,
13,
4706,
736,
1583,
29889,
1028,
29875,
30004,
13,
30004,
13,
30004,
13,
1990,
12579,
2111,
2477,
29898,
3318,
1125,
30004,
13,
1678,
9995,
5894,
13390,
3439,
2785,
4134,
363,
14614,
29899,
16589,
552,
29881,
349,
29963,
29899,
29933,
2620,
29891,
6757,
30004,
13,
30004,
13,
1678,
584,
3207,
3443,
29901,
349,
29963,
16988,
1788,
4128,
30004,
13,
1678,
584,
1853,
3443,
29901,
9657,
30004,
13,
30004,
13,
1678,
584,
3207,
270,
29901,
1409,
6943,
4128,
30004,
13,
1678,
584,
1853,
270,
29901,
12655,
1409,
30004,
13,
1678,
6756,
13,
1678,
584,
3207,
6499,
29894,
29901,
4226,
1891,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
1678,
584,
1853,
6499,
29894,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
715,
29901,
14614,
2254,
3081,
30004,
13,
1678,
584,
1853,
715,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
1588,
29901,
14614,
10995,
950,
3081,
30004,
13,
1678,
584,
1853,
1588,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29901,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
29886,
4270,
29901,
14614,
3081,
1962,
310,
278,
349,
29963,
297,
13549,
5622,
964,
3633,
278,
11301,
28495,
322,
7472,
1962,
3081,
310,
278,
349,
29963,
297,
13549,
30004,
13,
1678,
584,
1853,
349,
29886,
4270,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
546,
29875,
29901,
3462,
3245,
3081,
27430,
310,
916,
1788,
7117,
313,
29872,
29889,
29887,
29889,
14614,
3081,
11134,
29897,
297,
399,
30004,
13,
1678,
584,
1853,
349,
546,
29875,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
11636,
29901,
931,
4331,
2920,
297,
6923,
30004,
13,
1678,
584,
1853,
11636,
29901,
6043,
30004,
13,
30004,
13,
1678,
9995,
30004,
13,
1678,
903,
3259,
353,
525,
29900,
29889,
29896,
29915,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3443,
29892,
270,
29892,
6499,
29894,
29892,
715,
29892,
11636,
1125,
30004,
13,
4706,
9995,
23770,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
1583,
29889,
15501,
353,
3443,
30004,
13,
4706,
1583,
29889,
29881,
353,
270,
30004,
13,
4706,
1583,
29889,
407,
29894,
353,
6499,
29894,
30004,
13,
4706,
1583,
29889,
572,
353,
715,
30004,
13,
4706,
1583,
29889,
6008,
353,
11636,
30004,
13,
4706,
1583,
29889,
1028,
29875,
353,
5785,
26471,
13,
4706,
1583,
29889,
386,
353,
7700,
29871,
396,
7370,
16897,
363,
278,
337,
25389,
292,
310,
278,
16988,
30004,
13,
30004,
13,
4706,
396,
17250,
2133,
322,
758,
284,
5479,
30004,
13,
30004,
13,
4706,
1583,
29889,
21713,
29889,
4040,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
4270,
29892,
1583,
29889,
21713,
29889,
29925,
546,
29875,
353,
4236,
29918,
1311,
29918,
25978,
683,
29898,
15501,
29892,
6499,
29894,
29892,
715,
29892,
282,
29894,
1545,
29922,
5574,
8443,
13,
4706,
1583,
29889,
21713,
29889,
29925,
10222,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
29897,
29871,
396,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
5824,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
29897,
29871,
396,
14614,
3081,
310,
278,
16988,
1788,
297,
399,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29879,
542,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
29897,
29871,
396,
4306,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29879,
542,
29900,
353,
29871,
29900,
29871,
396,
4306,
310,
8323,
310,
278,
16988,
297,
278,
937,
931,
4331,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29925,
5824,
29900,
353,
29871,
29900,
29871,
396,
4306,
310,
278,
16988,
8635,
297,
278,
3517,
931,
4331,
30004,
13,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
6499,
29894,
29897,
334,
3443,
1839,
29925,
29918,
29925,
29963,
2033,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
4040,
353,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
448,
715,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
5824,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
5824,
29900,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
29900,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
4270,
353,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
546,
29875,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
30004,
13,
1678,
732,
1272,
1990,
30004,
13,
1678,
770,
8195,
29898,
1469,
1125,
30004,
13,
4706,
1588,
1678,
584,
7442,
29889,
2378,
30004,
13,
4706,
349,
29886,
4270,
29871,
584,
7442,
29889,
2378,
30004,
13,
4706,
349,
5824,
259,
584,
7442,
29889,
2378,
30004,
13,
30004,
13,
1678,
732,
1272,
1990,
30004,
13,
1678,
770,
13001,
284,
29898,
21713,
1125,
30004,
13,
4706,
822,
4770,
2344,
12035,
1311,
1125,
30004,
13,
9651,
2428,
2141,
1649,
2344,
1649,
26471,
13,
30004,
13,
1678,
822,
17402,
29898,
1311,
1125,
30004,
13,
30004,
13,
4706,
9995,
2517,
1179,
278,
23768,
3439,
2785,
8125,
363,
14614,
29899,
16589,
552,
29881,
349,
29963,
29899,
29933,
2620,
29891,
23985,
30004,
13,
4706,
9995,
30004,
13,
4706,
6756,
13,
4706,
1583,
29889,
21713,
29889,
29925,
10222,
29892,
1583,
29889,
21713,
29889,
29925,
5824,
29892,
1583,
29889,
21713,
29889,
29879,
542,
29892,
1583,
29889,
21713,
29889,
29879,
542,
29900,
29892,
1583,
29889,
21713,
29889,
29925,
5824,
29900,
353,
17152,
1545,
29918,
562,
29898,
30004,
13,
9651,
1583,
29889,
29881,
29892,
1583,
29889,
6008,
29892,
1583,
29889,
21713,
29889,
29879,
542,
29900,
29892,
1583,
29889,
21713,
29889,
29879,
542,
29892,
1583,
29889,
21713,
29889,
4040,
29892,
1583,
29889,
21713,
29889,
29925,
5824,
29900,
29892,
1583,
29889,
21713,
29889,
29925,
5824,
29892,
1583,
29889,
21713,
29889,
29925,
10222,
8443,
13,
4706,
6756,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29925,
5824,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
29892,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
29900,
29892,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
353,
17152,
1545,
29918,
562,
29918,
680,
284,
29898,
30004,
13,
18884,
1583,
29889,
29881,
29892,
1583,
29889,
6008,
29892,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
29900,
29892,
1583,
29889,
29902,
311,
284,
29889,
29879,
542,
29892,
1583,
29889,
29902,
311,
284,
29889,
4040,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
8443,
13,
30004,
13,
1678,
822,
17152,
29918,
1545,
29918,
690,
29898,
1311,
1125,
30004,
13,
4706,
9995,
6678,
304,
8147,
278,
3081,
24536,
322,
5864,
25470,
3704,
3151,
18237,
358,
310,
349,
29963,
3081,
30004,
13,
4706,
9995,
30004,
13,
4706,
1583,
29889,
21713,
29889,
29923,
353,
17152,
29918,
690,
29918,
1545,
29898,
30004,
13,
9651,
1583,
29889,
15501,
29892,
1583,
29889,
572,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
21713,
29889,
29925,
10222,
29892,
1583,
29889,
6008,
29892,
1583,
29889,
21713,
29889,
29925,
29886,
4270,
29892,
1583,
29889,
21713,
29889,
29925,
5824,
29892,
1583,
29889,
21713,
29889,
29925,
546,
29875,
8443,
13,
30004,
13,
4706,
1583,
29889,
29902,
311,
284,
29889,
29923,
353,
17152,
29918,
690,
29918,
1545,
29918,
680,
284,
29898,
30004,
13,
9651,
1583,
29889,
15501,
29892,
1583,
29889,
572,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
10222,
29892,
1583,
29889,
6008,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
29886,
4270,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
5824,
29892,
1583,
29889,
29902,
311,
284,
29889,
29925,
546,
29875,
8443,
13,
30004,
13,
1678,
822,
8147,
29918,
1028,
29875,
29898,
1311,
1125,
30004,
13,
4706,
1583,
29889,
1028,
29875,
353,
8147,
29918,
1028,
29875,
7373,
29923,
29918,
6370,
29922,
1311,
29889,
21713,
29889,
29923,
29892,
903,
29923,
29918,
680,
284,
29922,
1311,
29889,
29902,
311,
284,
29889,
29923,
8443,
13,
30004,
13,
1678,
822,
679,
29918,
29923,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
5864,
25470,
310,
278,
17402,
30004,
13,
30004,
13,
4706,
584,
2457,
29901,
24836,
25470,
310,
278,
17402,
297,
341,
8809,
30004,
13,
4706,
584,
29878,
1853,
29901,
9657,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
21713,
29889,
29923,
29892,
1583,
29889,
29902,
311,
284,
29889,
29923,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
29879,
542,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
30004,
13,
4706,
584,
2457,
29901,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
584,
29878,
1853,
29901,
12655,
1409,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
29879,
542,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
29925,
10222,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
6756,
13,
4706,
584,
2457,
29901,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
584,
29878,
1853,
29901,
12655,
1409,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
29925,
10222,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
29925,
5824,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
14614,
3081,
310,
278,
16988,
1788,
297,
399,
30004,
13,
4706,
6756,
13,
4706,
584,
2457,
29901,
14614,
3081,
310,
278,
16988,
1788,
297,
399,
30004,
13,
4706,
584,
29878,
1853,
29901,
12655,
1409,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
29925,
5824,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
29903,
2227,
29898,
1311,
1125,
30004,
13,
4706,
736,
1583,
29889,
1028,
29875,
30004,
13,
30004,
13,
30004,
13,
1990,
12579,
2111,
29925,
29963,
29898,
3318,
1125,
30004,
13,
1678,
9995,
5894,
13390,
3439,
2785,
4134,
363,
349,
29963,
29899,
16589,
552,
29881,
349,
29963,
29899,
29933,
2620,
29891,
6757,
30004,
13,
30004,
13,
1678,
584,
3207,
3443,
29901,
349,
29963,
16988,
1788,
4128,
30004,
13,
1678,
584,
1853,
3443,
29901,
9657,
30004,
13,
30004,
13,
1678,
584,
3207,
270,
29901,
1409,
6943,
4128,
30004,
13,
1678,
584,
1853,
270,
29901,
12655,
1409,
30004,
13,
1678,
6756,
13,
1678,
584,
3207,
6499,
29894,
29901,
4226,
1891,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
1678,
584,
1853,
6499,
29894,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
715,
29901,
14614,
2254,
3081,
30004,
13,
1678,
584,
1853,
715,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
9790,
29901,
9206,
9667,
373,
278,
14614,
2625,
30004,
13,
1678,
584,
1853,
9790,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29901,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
546,
29875,
29901,
3462,
3245,
3081,
27430,
310,
916,
1788,
7117,
313,
29872,
29889,
29887,
29889,
14614,
3081,
11134,
29897,
297,
399,
30004,
13,
1678,
584,
1853,
349,
546,
29875,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
11636,
29901,
931,
4331,
2920,
297,
6923,
30004,
13,
1678,
584,
1853,
11636,
29901,
6043,
30004,
13,
1678,
9995,
30004,
13,
1678,
903,
3259,
353,
525,
29900,
29889,
29896,
29915,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3443,
29892,
270,
29892,
6499,
29894,
29892,
715,
29892,
9790,
29892,
349,
29886,
29894,
29892,
349,
546,
29875,
29892,
11636,
1125,
30004,
13,
4706,
9995,
23770,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
1583,
29889,
15501,
353,
3443,
30004,
13,
4706,
1583,
29889,
29881,
353,
270,
30004,
13,
4706,
1583,
29889,
407,
29894,
353,
6499,
29894,
30004,
13,
4706,
1583,
29889,
572,
353,
715,
30004,
13,
4706,
1583,
29889,
29925,
562,
353,
9790,
30004,
13,
4706,
1583,
29889,
29925,
29886,
29894,
353,
349,
29886,
29894,
30004,
13,
4706,
1583,
29889,
29925,
546,
29875,
353,
349,
546,
29875,
30004,
13,
4706,
1583,
29889,
6008,
353,
11636,
30004,
13,
30004,
13,
4706,
396,
17250,
2133,
322,
758,
284,
5479,
30004,
13,
4706,
1583,
29889,
29925,
10222,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
29897,
29871,
396,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
1583,
29889,
29879,
542,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
29897,
29871,
396,
4306,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
396,
10604,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
297,
399,
30004,
13,
4706,
1583,
29889,
29925,
29886,
29894,
29906,
562,
29918,
449,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
396,
10567,
3081,
310,
278,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
297,
399,
30004,
13,
4706,
1583,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
353,
29871,
29900,
30004,
13,
4706,
396,
10604,
3081,
310,
278,
350,
1299,
29906,
29925,
29963,
11301,
2224,
1582,
297,
399,
30004,
13,
4706,
1583,
29889,
29925,
10222,
29906,
29886,
29894,
29918,
449,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
4706,
1583,
29889,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29900,
353,
29871,
29900,
30004,
13,
4706,
396,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
297,
399,
30004,
13,
4706,
1583,
29889,
29925,
29886,
29894,
5824,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
1311,
29889,
407,
29894,
8443,
13,
30004,
13,
4706,
1583,
29889,
3601,
2785,
26471,
13,
30004,
13,
4706,
1583,
29889,
10222,
29918,
1545,
29918,
690,
26471,
13,
30004,
13,
1678,
822,
17402,
29898,
1311,
29892,
282,
29894,
1545,
29922,
5574,
1125,
30004,
13,
4706,
9995,
2517,
1179,
278,
23768,
3439,
2785,
8125,
363,
14614,
29899,
16589,
552,
29881,
349,
29963,
29899,
29933,
2620,
29891,
23985,
30004,
13,
4706,
9995,
30004,
13,
4706,
1583,
29889,
386,
353,
29871,
29900,
29871,
396,
7370,
16897,
363,
278,
337,
25389,
292,
310,
278,
16988,
30004,
13,
4706,
1583,
29889,
29879,
542,
29900,
353,
29871,
29900,
29871,
396,
17250,
2106,
310,
8323,
310,
278,
16988,
297,
278,
937,
931,
4331,
30004,
13,
30004,
13,
4706,
396,
3439,
2785,
310,
278,
16988,
1788,
30004,
13,
4706,
396,
2962,
353,
931,
29889,
5014,
29918,
2230,
26471,
13,
4706,
1583,
29889,
29879,
542,
29892,
1583,
29889,
29879,
542,
29900,
29892,
1583,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
29925,
29886,
29894,
5824,
29892,
1583,
29889,
29925,
10222,
29892,
1583,
29889,
29925,
29886,
29894,
29906,
562,
29918,
449,
29892,
1583,
29889,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29892,
1583,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
353,
17152,
1545,
29918,
29886,
29894,
29898,
1311,
29889,
29881,
29892,
1583,
29889,
6008,
29892,
1583,
29889,
29879,
542,
29900,
29892,
1583,
29889,
29879,
542,
29892,
1583,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
29925,
562,
29892,
1583,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29892,
1583,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29892,
1583,
29889,
29925,
29886,
29894,
29906,
562,
29918,
449,
29892,
1583,
29889,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29900,
29892,
1583,
29889,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29892,
1583,
29889,
29925,
29886,
29894,
5824,
29892,
1583,
29889,
29925,
10222,
8443,
13,
4706,
396,
2158,
29898,
2230,
29889,
5014,
29918,
2230,
580,
29899,
2962,
8443,
13,
4706,
396,
22402,
4567,
4128,
30004,
13,
4706,
1583,
29889,
29925,
29886,
29894,
29906,
562,
353,
1583,
29889,
29925,
29886,
29894,
29906,
562,
29918,
449,
29871,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
4706,
1583,
29889,
29925,
29886,
29894,
29906,
10222,
353,
1583,
29889,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29871,
396,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
30004,
13,
30004,
13,
1678,
822,
17152,
29918,
1545,
29918,
690,
29898,
1311,
1125,
30004,
13,
4706,
9995,
6678,
304,
8147,
278,
3081,
24536,
322,
5864,
25470,
3704,
3151,
18237,
358,
310,
349,
29963,
3081,
30004,
13,
4706,
9995,
30004,
13,
4706,
1583,
29889,
29923,
353,
17152,
29918,
690,
29918,
1545,
29898,
1311,
29889,
15501,
29892,
1583,
29889,
572,
29892,
1583,
29889,
29925,
29886,
29894,
29892,
1583,
29889,
29925,
10222,
29892,
1583,
29889,
6008,
29892,
1583,
29889,
29925,
29886,
29894,
29906,
562,
29892,
1583,
29889,
29925,
29886,
29894,
29906,
10222,
29892,
1583,
29889,
29925,
29886,
29894,
5824,
29892,
1583,
29889,
29925,
546,
29875,
8443,
13,
30004,
13,
1678,
822,
679,
29918,
29923,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
5864,
25470,
310,
278,
17402,
30004,
13,
30004,
13,
4706,
584,
2457,
29901,
24836,
25470,
310,
278,
17402,
297,
341,
8809,
30004,
13,
4706,
584,
29878,
1853,
29901,
9657,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
29923,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
29879,
542,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
30004,
13,
4706,
584,
2457,
29901,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
584,
29878,
1853,
29901,
12655,
1409,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
29879,
542,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
29925,
10222,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11609,
29879,
278,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
6756,
13,
4706,
584,
2457,
29901,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
584,
29878,
1853,
29901,
12655,
1409,
30004,
13,
4706,
9995,
30004,
13,
4706,
736,
1583,
29889,
29925,
10222,
30004,
13,
30004,
13,
30004,
13,
1990,
3382,
16890,
29898,
3318,
1125,
30004,
13,
1678,
9995,
12787,
370,
1674,
267,
3957,
304,
263,
16988,
1788,
3025,
3382,
16890,
9608,
30004,
13,
30004,
13,
1678,
584,
3207,
3495,
29901,
5641,
3211,
310,
278,
3495,
30004,
13,
1678,
584,
1853,
3495,
29901,
1347,
30004,
13,
30004,
13,
1678,
584,
3207,
2011,
29901,
5656,
2011,
310,
278,
3495,
30004,
13,
1678,
584,
1853,
2011,
29901,
6043,
30004,
13,
30004,
13,
1678,
584,
3207,
5190,
29918,
333,
29901,
13223,
29899,
1367,
310,
278,
3495,
30004,
13,
1678,
584,
1853,
5190,
29918,
333,
29901,
6043,
30004,
13,
30004,
13,
1678,
9995,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3495,
29892,
2011,
29892,
5190,
29918,
333,
29892,
1881,
29918,
791,
29879,
29892,
11636,
29892,
285,
978,
1125,
30004,
13,
4706,
9995,
23770,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
1583,
29889,
3069,
353,
3495,
30004,
13,
4706,
1583,
29889,
637,
353,
2011,
30004,
13,
4706,
1583,
29889,
5441,
29918,
333,
353,
5190,
29918,
333,
30004,
13,
4706,
1583,
29889,
6008,
353,
11636,
30004,
13,
4706,
1583,
29889,
2080,
29918,
791,
29879,
353,
1881,
29918,
791,
29879,
30004,
13,
4706,
1583,
29889,
29888,
978,
353,
285,
978,
30004,
13,
4706,
1583,
29889,
3150,
29918,
9965,
26471,
13,
4706,
1583,
29889,
3258,
29918,
7638,
29918,
1445,
26471,
13,
30004,
13,
4706,
1583,
29889,
2962,
29918,
7888,
26471,
13,
30004,
13,
1678,
822,
1722,
29918,
9965,
29898,
1311,
1125,
30004,
13,
4706,
9995,
11746,
575,
278,
3957,
304,
278,
3495,
30004,
13,
4706,
9995,
30004,
13,
4706,
396,
4673,
3382,
16890,
3957,
30004,
13,
4706,
1018,
29901,
30004,
13,
9651,
1583,
29889,
29883,
353,
3382,
8262,
4032,
29898,
3069,
29922,
1311,
29889,
3069,
29892,
2011,
29922,
1311,
29889,
637,
11167,
13,
462,
462,
29871,
5190,
29918,
333,
29922,
1311,
29889,
5441,
29918,
333,
29892,
4469,
29918,
3150,
29922,
5574,
29892,
4469,
29918,
5358,
29922,
5574,
8443,
13,
4706,
5174,
7865,
2392,
29901,
30004,
13,
9651,
1596,
703,
2392,
411,
3495,
29901,
24335,
2011,
29901,
6571,
470,
5190,
29899,
1367,
29901,
6571,
8636,
1642,
4830,
29898,
30004,
13,
18884,
1583,
29889,
3069,
29892,
1583,
29889,
637,
29892,
1583,
29889,
5441,
29918,
333,
876,
30004,
13,
30004,
13,
1678,
822,
1369,
29918,
7888,
29898,
1311,
1125,
30004,
13,
4706,
9995,
4763,
29879,
278,
5007,
322,
5183,
1889,
30004,
13,
4706,
9995,
30004,
13,
4706,
396,
4103,
689,
278,
1409,
304,
6216,
278,
29871,
29896,
11015,
931,
14385,
30004,
13,
4706,
396,
1311,
29889,
842,
29918,
791,
29879,
353,
7442,
29889,
14358,
29898,
1311,
29889,
2080,
29918,
791,
29879,
29892,
1583,
29889,
6008,
334,
29871,
29953,
29900,
8443,
13,
30004,
13,
4706,
474,
353,
29871,
29900,
30004,
13,
4706,
22645,
353,
10518,
29889,
1256,
29918,
3881,
29898,
2962,
29922,
12673,
29889,
12673,
29889,
3707,
3285,
30004,
13,
462,
9651,
23704,
7607,
1311,
29889,
2080,
29918,
791,
29879,
29889,
2311,
511,
3005,
29939,
2433,
29903,
1495,
30004,
13,
4706,
1550,
474,
529,
7431,
29898,
13140,
1125,
30004,
13,
9651,
565,
12865,
29889,
12673,
29889,
3707,
2141,
7496,
1275,
22645,
29961,
29875,
1822,
7496,
29901,
30004,
13,
18884,
396,
3789,
18460,
3460,
995,
30004,
13,
18884,
1583,
29889,
842,
29918,
791,
353,
938,
29898,
1311,
29889,
2080,
29918,
791,
29879,
29961,
29875,
2314,
30004,
13,
18884,
565,
1583,
29889,
842,
29918,
791,
529,
29871,
29900,
29901,
30004,
13,
462,
1678,
396,
14350,
8178,
995,
304,
16988,
8323,
3081,
313,
2477,
29897,
731,
3149,
6036,
30004,
13,
462,
1678,
1583,
29889,
29883,
29889,
3539,
29918,
14369,
29918,
9573,
29898,
29896,
29900,
29906,
29946,
29892,
1583,
29889,
842,
29918,
791,
669,
29871,
29900,
29916,
22098,
8443,
13,
462,
1678,
396,
4522,
5007,
931,
30004,
13,
462,
1678,
1583,
29889,
842,
29918,
2230,
353,
12865,
29889,
12673,
29889,
3707,
26471,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
396,
14350,
6374,
995,
304,
16988,
8323,
3081,
313,
2477,
29897,
731,
3149,
304,
6036,
30004,
13,
462,
1678,
1583,
29889,
29883,
29889,
3539,
29918,
14369,
29918,
9573,
29898,
29896,
29900,
29906,
29946,
29892,
1583,
29889,
842,
29918,
791,
8443,
13,
462,
1678,
396,
4522,
5007,
931,
30004,
13,
462,
1678,
1583,
29889,
842,
29918,
2230,
353,
12865,
29889,
12673,
29889,
3707,
26471,
13,
30004,
13,
18884,
1018,
29901,
30004,
13,
462,
1678,
396,
7523,
3001,
14614,
3081,
995,
515,
6036,
30004,
13,
462,
1678,
903,
29925,
29918,
562,
353,
1583,
29889,
29883,
29889,
949,
29918,
8948,
292,
29918,
9573,
29879,
29898,
29896,
29955,
29906,
29892,
29871,
29906,
8443,
13,
462,
1678,
1583,
29889,
949,
29918,
2230,
29918,
29925,
29918,
562,
353,
12865,
29889,
12673,
29889,
3707,
26471,
13,
18884,
5174,
29901,
30004,
13,
462,
1678,
1596,
877,
23323,
451,
1303,
6036,
29871,
29896,
29955,
29906,
29991,
1495,
30004,
13,
30004,
13,
18884,
1018,
29901,
30004,
13,
462,
1678,
396,
7523,
3935,
16988,
8323,
29914,
29881,
783,
279,
479,
3081,
995,
515,
6036,
30004,
13,
462,
1678,
903,
29925,
29918,
10222,
353,
1583,
29889,
29883,
29889,
949,
29918,
8948,
292,
29918,
9573,
29879,
29898,
29945,
29947,
29906,
29892,
29871,
29896,
8443,
13,
462,
1678,
1583,
29889,
949,
29918,
2230,
29918,
29925,
29918,
10222,
353,
12865,
29889,
12673,
29889,
3707,
26471,
13,
18884,
5174,
29901,
30004,
13,
462,
1678,
1596,
877,
23323,
451,
1303,
6036,
29871,
29945,
29947,
29906,
29991,
1495,
30004,
13,
30004,
13,
18884,
396,
16012,
2793,
310,
1023,
28975,
964,
263,
2323,
5785,
995,
30004,
13,
18884,
503,
1727,
29879,
353,
3667,
29879,
29889,
1742,
29918,
1761,
29918,
517,
29918,
5426,
7373,
29925,
29918,
562,
29892,
4802,
29918,
355,
713,
29922,
8824,
8443,
13,
18884,
396,
897,
401,
322,
3787,
5785,
995,
310,
278,
14614,
29899,
13519,
30004,
13,
18884,
1583,
29889,
29925,
29918,
562,
353,
3667,
29879,
29889,
13808,
29918,
347,
3905,
10456,
29920,
1727,
29879,
8443,
13,
18884,
396,
14491,
278,
13681,
9151,
292,
3081,
30004,
13,
18884,
1583,
29889,
29925,
29918,
10222,
353,
7442,
29889,
524,
29896,
29953,
10456,
29918,
29925,
29918,
10222,
8443,
13,
18884,
396,
7523,
3935,
17874,
30004,
13,
18884,
1583,
29889,
29879,
542,
29900,
353,
1583,
29889,
949,
29918,
29879,
542,
29898,
29906,
29896,
29900,
8443,
13,
30004,
13,
18884,
1018,
29901,
30004,
13,
462,
1678,
396,
16913,
278,
1819,
304,
263,
11799,
934,
30004,
13,
462,
1678,
1583,
29889,
7620,
29918,
517,
29918,
7638,
26471,
13,
18884,
5174,
29901,
30004,
13,
462,
1678,
1596,
877,
23323,
451,
4078,
304,
11799,
29991,
1495,
30004,
13,
30004,
13,
18884,
474,
4619,
29871,
29896,
30004,
13,
30004,
13,
1678,
822,
1303,
29918,
29879,
542,
29898,
1311,
29892,
1072,
1125,
30004,
13,
4706,
9995,
6359,
29879,
278,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
9995,
30004,
13,
4706,
396,
16012,
278,
3935,
2106,
1701,
8323,
310,
278,
16988,
30004,
13,
4706,
1072,
29879,
353,
1583,
29889,
29883,
29889,
949,
29918,
8948,
292,
29918,
9573,
29879,
29898,
1727,
29892,
29871,
29906,
8443,
13,
4706,
396,
16012,
2793,
310,
1023,
28975,
964,
263,
2323,
5785,
995,
30004,
13,
4706,
503,
1727,
29879,
353,
3667,
29879,
29889,
1742,
29918,
1761,
29918,
517,
29918,
5426,
29898,
1727,
29879,
29892,
4802,
29918,
355,
713,
29922,
8824,
8443,
13,
30004,
13,
4706,
736,
3667,
29879,
29889,
13808,
29918,
347,
3905,
10456,
29920,
1727,
29879,
8443,
13,
30004,
13,
1678,
822,
1653,
29918,
7638,
29918,
1445,
29898,
1311,
1125,
30004,
13,
4706,
9995,
9832,
1078,
263,
11799,
934,
515,
731,
322,
1303,
1819,
30004,
13,
4706,
9995,
30004,
13,
4706,
396,
6204,
263,
716,
11799,
29899,
1445,
30004,
13,
4706,
411,
1722,
29898,
1311,
29889,
29888,
978,
29892,
525,
29893,
1495,
408,
285,
29901,
30004,
13,
9651,
9227,
353,
11799,
29889,
13236,
29898,
29888,
29892,
23725,
2433,
24633,
1495,
30004,
13,
9651,
9227,
29889,
13236,
340,
18959,
842,
29918,
2230,
23592,
13,
462,
632,
525,
949,
29918,
2230,
29918,
29925,
29918,
562,
23592,
13,
462,
632,
525,
949,
29918,
2230,
29918,
29925,
29918,
10222,
23592,
13,
462,
632,
525,
29879,
542,
23592,
13,
462,
632,
525,
842,
29918,
1767,
23592,
13,
462,
632,
525,
29925,
29918,
562,
23592,
13,
462,
632,
525,
29925,
29918,
10222,
2033,
8443,
13,
30004,
13,
1678,
822,
4078,
29918,
517,
29918,
7638,
29898,
1311,
1125,
30004,
13,
4706,
9995,
29903,
5989,
278,
731,
322,
1303,
1819,
304,
269,
11799,
934,
30004,
13,
4706,
9995,
30004,
13,
4706,
396,
16913,
278,
1303,
1819,
304,
263,
11799,
934,
30004,
13,
4706,
411,
1722,
29898,
1311,
29889,
29888,
978,
29892,
376,
29874,
1159,
408,
285,
29901,
30004,
13,
9651,
2358,
353,
11799,
29889,
13236,
29898,
29888,
29892,
23725,
2433,
24633,
1495,
30004,
13,
9651,
2358,
29889,
13236,
340,
4197,
1311,
29889,
842,
29918,
2230,
29892,
1583,
29889,
949,
29918,
2230,
29918,
29925,
29918,
562,
29892,
1583,
29889,
949,
29918,
2230,
29918,
29925,
29918,
10222,
11167,
13,
462,
308,
1583,
29889,
29879,
542,
29900,
29892,
1583,
29889,
842,
29918,
791,
29892,
1583,
29889,
29925,
29918,
562,
29892,
1583,
29889,
29925,
29918,
10222,
2314,
30004,
13,
30004,
13,
30004,
13,
1753,
4236,
29918,
1311,
29918,
25978,
683,
29898,
15501,
29892,
6499,
29894,
29892,
715,
29892,
282,
29894,
1545,
29922,
5574,
29892,
10839,
29922,
8824,
1125,
30004,
13,
1678,
9995,
6678,
363,
5256,
5281,
1583,
27430,
30004,
13,
30004,
13,
1678,
584,
3207,
3443,
29901,
349,
29963,
16988,
1788,
4128,
30004,
13,
1678,
584,
1853,
3443,
29901,
9657,
30004,
13,
30004,
13,
1678,
584,
3207,
6499,
29894,
29901,
4226,
1891,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
1678,
584,
1853,
6499,
29894,
29901,
12655,
1409,
30004,
13,
1678,
6756,
13,
1678,
584,
3207,
715,
29901,
14614,
2254,
3081,
30004,
13,
1678,
584,
1853,
715,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
9995,
30004,
13,
1678,
396,
22128,
675,
1583,
27430,
363,
14614,
29899,
16589,
552,
29881,
6757,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
2477,
2396,
30004,
13,
30004,
13,
4706,
396,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
4706,
565,
282,
29894,
1545,
29901,
29871,
396,
6499,
29894,
29901,
21981,
1891,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
297,
26226,
29914,
29895,
29956,
29886,
6756,
13,
9651,
565,
10839,
29901,
30004,
13,
18884,
349,
29886,
29894,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
6499,
29894,
1723,
334,
3443,
1839,
29925,
29918,
29925,
29963,
2033,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
349,
29886,
29894,
353,
7442,
29889,
1195,
12539,
29898,
407,
29894,
334,
3443,
1839,
29925,
29918,
29925,
29963,
7464,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
11287,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
1683,
29901,
29871,
396,
6499,
29894,
29901,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
297,
399,
30004,
13,
9651,
6756,
13,
9651,
565,
10839,
29901,
30004,
13,
18884,
349,
29886,
29894,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
6499,
29894,
8443,
13,
9651,
1683,
29901,
30004,
13,
18884,
349,
29886,
29894,
353,
7442,
29889,
1195,
12539,
29898,
407,
29894,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
2033,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
30004,
13,
4706,
396,
21981,
1891,
1881,
3081,
310,
278,
349,
29963,
297,
13549,
30004,
13,
4706,
6499,
3845,
3845,
353,
349,
29886,
29894,
847,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
2033,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
4706,
396,
14614,
3081,
1962,
310,
278,
349,
29963,
297,
13549,
5622,
964,
3633,
278,
11301,
28495,
322,
7472,
30004,
13,
4706,
396,
1962,
3081,
310,
278,
349,
29963,
297,
13549,
30004,
13,
4706,
349,
29886,
4270,
353,
7442,
29889,
1195,
12539,
29898,
9302,
29889,
27525,
398,
29898,
29900,
29892,
349,
29886,
29894,
17722,
15501,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
2033,
334,
6499,
3845,
3845,
334,
6499,
3845,
3845,
718,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
2033,
334,
6499,
3845,
3845,
718,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
2033,
8243,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
4706,
396,
29871,
29941,
29889,
29906,
2538,
333,
950,
3081,
30004,
13,
30004,
13,
4706,
396,
3462,
3245,
3081,
27430,
310,
916,
1788,
7117,
313,
29872,
29889,
29887,
29889,
14614,
3081,
11134,
29897,
297,
399,
30004,
13,
4706,
349,
546,
29875,
353,
7442,
29889,
2873,
29918,
4561,
29898,
407,
29894,
29897,
334,
3443,
1839,
29925,
29918,
13171,
29902,
29918,
2477,
2033,
30004,
13,
30004,
13,
4706,
396,
18804,
278,
2317,
1609,
27430,
310,
278,
349,
29963,
297,
13549,
297,
3064,
1728,
738,
14614,
3081,
1962,
310,
278,
349,
29963,
1788,
30004,
13,
4706,
396,
304,
278,
5684,
3081,
27430,
30004,
13,
4706,
349,
546,
29875,
29961,
29925,
29886,
4270,
1275,
29871,
29900,
29962,
4619,
3443,
1839,
29925,
29918,
29925,
29963,
1177,
29963,
29918,
2477,
2033,
30004,
13,
30004,
13,
4706,
396,
2538,
333,
950,
3081,
30004,
13,
4706,
565,
10839,
29901,
30004,
13,
9651,
1588,
353,
349,
29886,
29894,
448,
715,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
1588,
353,
349,
29886,
4270,
448,
715,
448,
349,
546,
29875,
30004,
13,
30004,
13,
4706,
736,
1588,
29892,
349,
29886,
29894,
29892,
349,
29886,
4270,
29892,
349,
546,
29875,
30004,
13,
30004,
13,
1678,
396,
22128,
675,
1583,
27430,
363,
13681,
29899,
16589,
552,
29881,
6757,
30004,
13,
1678,
25342,
3443,
1839,
7031,
2033,
1275,
525,
12696,
2396,
30004,
13,
4706,
396,
17250,
2133,
322,
758,
284,
5479,
30004,
13,
4706,
349,
29886,
29894,
29906,
562,
29918,
262,
29918,
562,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
407,
29894,
8443,
13,
4706,
349,
29886,
29894,
353,
7442,
29889,
6310,
29918,
4561,
29898,
407,
29894,
29897,
29871,
396,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
30004,
13,
4706,
565,
282,
29894,
1545,
29901,
29871,
396,
6499,
29894,
29901,
21981,
1891,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
297,
26226,
29914,
29895,
29956,
29886,
30004,
13,
9651,
349,
29886,
29894,
353,
6499,
29894,
334,
3443,
1839,
29925,
29918,
29925,
29963,
2033,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
349,
29886,
29894,
353,
6499,
29894,
30004,
13,
30004,
13,
4706,
396,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
5622,
964,
3633,
278,
7472,
30004,
13,
4706,
396,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
4706,
349,
29886,
29894,
353,
7442,
29889,
1195,
12539,
29898,
29925,
29886,
29894,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
2033,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
4706,
396,
2538,
333,
950,
3081,
30004,
13,
30004,
13,
4706,
396,
9206,
9667,
373,
278,
14614,
2625,
30004,
13,
4706,
9790,
353,
715,
718,
3443,
1839,
29925,
29918,
13171,
29902,
29918,
2477,
2033,
30004,
13,
30004,
13,
4706,
396,
21981,
1891,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
304,
4612,
278,
14614,
30004,
13,
4706,
396,
3081,
9667,
30004,
13,
4706,
6499,
29894,
29906,
562,
353,
7442,
29889,
1195,
12539,
29898,
30004,
13,
9651,
9790,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
334,
29871,
29896,
29900,
29900,
29900,
29897,
847,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
4706,
396,
17157,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
4706,
349,
29886,
29894,
29906,
562,
29918,
262,
29918,
562,
353,
7442,
29889,
1195,
12539,
29898,
29925,
562,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
334,
29871,
29896,
29900,
29900,
29900,
29897,
718,
313,
30004,
13,
9651,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
449,
2033,
334,
6499,
29894,
29906,
562,
1068,
29906,
718,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
449,
2033,
334,
6499,
29894,
29906,
562,
718,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
449,
2033,
8443,
13,
30004,
13,
4706,
396,
21981,
1891,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
14402,
29871,
29896,
30004,
13,
4706,
6499,
29894,
29906,
562,
353,
349,
29886,
29894,
847,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
2033,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
4706,
396,
17157,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
4706,
349,
29886,
29894,
29906,
562,
29918,
449,
353,
7442,
29889,
27525,
398,
29898,
30004,
13,
632,
29900,
29892,
349,
29886,
29894,
448,
313,
15501,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
2033,
334,
6499,
29894,
29906,
562,
1068,
29906,
718,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
2033,
334,
6499,
29894,
29906,
562,
718,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
25901,
30004,
13,
30004,
13,
4706,
396,
2538,
333,
950,
3081,
363,
16988,
9151,
292,
30004,
13,
4706,
1588,
29886,
29894,
353,
349,
29886,
29894,
448,
349,
29886,
29894,
29906,
562,
29918,
262,
29918,
562,
30004,
13,
30004,
13,
4706,
396,
2538,
333,
950,
3081,
363,
16988,
766,
25389,
292,
30004,
13,
4706,
1588,
353,
349,
29886,
29894,
29906,
562,
29918,
449,
448,
9790,
30004,
13,
30004,
13,
4706,
736,
1588,
29892,
1588,
29886,
29894,
29892,
349,
29886,
29894,
29892,
6499,
29894,
29906,
562,
29892,
349,
29886,
29894,
29906,
562,
29918,
449,
30004,
13,
30004,
13,
1678,
396,
22128,
675,
1583,
27430,
363,
349,
29963,
29899,
16589,
552,
29881,
6757,
30004,
13,
1678,
25342,
3443,
1839,
7031,
2033,
1275,
525,
29925,
29963,
2396,
30004,
13,
4706,
396,
4721,
284,
5479,
30004,
13,
4706,
396,
349,
10222,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
407,
29894,
29897,
396,
13681,
3081,
310,
278,
16988,
297,
399,
30004,
13,
4706,
396,
17874,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
407,
29894,
29897,
396,
4306,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
396,
349,
29886,
29894,
29906,
562,
29918,
449,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
407,
29894,
29897,
396,
10604,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
297,
399,
30004,
13,
4706,
396,
349,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
407,
29894,
29897,
396,
10567,
3081,
310,
278,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
297,
399,
30004,
13,
4706,
396,
349,
10222,
29906,
29886,
29894,
29918,
449,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
407,
29894,
29897,
396,
10604,
3081,
310,
278,
350,
1299,
29906,
29925,
29963,
11301,
2224,
1582,
297,
399,
30004,
13,
4706,
396,
349,
29886,
29894,
5824,
353,
7442,
29889,
3298,
359,
29918,
4561,
29898,
407,
29894,
29897,
396,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
297,
399,
30004,
13,
4706,
349,
29886,
29894,
353,
7442,
29889,
6310,
29918,
4561,
29898,
407,
29894,
29897,
29871,
396,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
4706,
396,
3462,
3245,
3081,
27430,
310,
916,
1788,
7117,
313,
29872,
29889,
29887,
29889,
14614,
3081,
11134,
29897,
297,
399,
30004,
13,
4706,
349,
546,
29875,
353,
7442,
29889,
2873,
29918,
4561,
29898,
407,
29894,
29897,
334,
3443,
1839,
29925,
29918,
13171,
29902,
29918,
2477,
2033,
30004,
13,
4706,
396,
11636,
353,
29871,
29896,
396,
5974,
11924,
297,
269,
30004,
13,
4706,
396,
266,
353,
29871,
29900,
396,
7370,
16897,
363,
278,
337,
25389,
292,
310,
278,
16988,
30004,
13,
4706,
396,
17874,
29900,
353,
29871,
29900,
396,
4306,
310,
8323,
310,
278,
16988,
297,
278,
937,
931,
4331,
30004,
13,
30004,
13,
4706,
396,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
4706,
565,
282,
29894,
1545,
29901,
29871,
396,
6499,
29894,
29901,
21981,
1891,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
297,
26226,
29914,
29895,
29956,
29886,
30004,
13,
9651,
349,
29886,
29894,
353,
6499,
29894,
334,
3443,
1839,
29925,
29918,
29925,
29963,
2033,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
4706,
1683,
29901,
29871,
396,
6499,
29894,
29901,
13681,
3081,
1962,
310,
278,
349,
29963,
15299,
297,
399,
30004,
13,
9651,
349,
29886,
29894,
353,
6499,
29894,
30004,
13,
30004,
13,
4706,
396,
9206,
9667,
373,
278,
14614,
2625,
30004,
13,
4706,
9790,
353,
715,
718,
349,
546,
29875,
30004,
13,
30004,
13,
4706,
736,
9790,
29892,
349,
29886,
29894,
29892,
349,
546,
29875,
30004,
13,
30004,
13,
30004,
13,
29992,
9877,
29889,
29926,
277,
29898,
29876,
459,
1656,
29922,
5574,
8443,
13,
1753,
17152,
1545,
29918,
562,
29898,
29881,
29892,
903,
6008,
29892,
903,
29879,
542,
29900,
29892,
903,
29879,
542,
29892,
903,
4040,
29892,
903,
29925,
5824,
29900,
29892,
903,
29925,
5824,
29892,
903,
29925,
10222,
1125,
30004,
13,
1678,
9995,
5894,
13390,
3439,
2785,
740,
363,
14614,
29899,
16589,
552,
29881,
16988,
6757,
30004,
13,
30004,
13,
1678,
584,
3207,
270,
29901,
1409,
6943,
4128,
30004,
13,
1678,
584,
1853,
270,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
11636,
29901,
931,
4331,
2920,
30004,
13,
1678,
584,
1853,
11636,
29901,
6043,
30004,
13,
1678,
584,
3207,
17874,
29900,
29901,
2106,
310,
8323,
297,
278,
3517,
931,
4331,
30004,
13,
1678,
584,
1853,
17874,
29900,
29901,
5785,
30004,
13,
1678,
584,
3207,
1588,
29901,
10995,
950,
3081,
30004,
13,
1678,
584,
1853,
1588,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
349,
5824,
29900,
29901,
14614,
29899,
13519,
310,
278,
16988,
1788,
297,
278,
3517,
931,
4331,
30004,
13,
1678,
584,
1853,
349,
5824,
29900,
29901,
5785,
30004,
13,
1678,
584,
3207,
349,
5824,
29901,
14614,
29899,
13519,
310,
278,
16988,
13107,
29872,
30004,
13,
1678,
584,
1853,
349,
5824,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
349,
10222,
29901,
13681,
29899,
13519,
288,
974,
278,
16988,
30004,
13,
1678,
584,
1853,
349,
10222,
29901,
12655,
1409,
30004,
13,
1678,
9995,
30004,
13,
1678,
396,
4309,
9382,
310,
3153,
3651,
30004,
13,
1678,
903,
29923,
29918,
29933,
1299,
353,
270,
29961,
29900,
29962,
30004,
13,
1678,
903,
1187,
29918,
29933,
1299,
353,
270,
29961,
29896,
29962,
30004,
13,
1678,
903,
29873,
29918,
6007,
1254,
13566,
353,
270,
29961,
29906,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
12696,
353,
270,
29961,
29941,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
2477,
353,
270,
29961,
29946,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
12696,
353,
270,
29961,
29945,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
2477,
353,
270,
29961,
29953,
29962,
30004,
13,
1678,
903,
2477,
29906,
29933,
1299,
29918,
29874,
29918,
262,
353,
270,
29961,
29955,
29962,
30004,
13,
1678,
903,
2477,
29906,
29933,
1299,
29918,
29890,
29918,
262,
353,
270,
29961,
29947,
29962,
30004,
13,
1678,
903,
2477,
29906,
29933,
1299,
29918,
29883,
29918,
262,
353,
270,
29961,
29929,
29962,
30004,
13,
1678,
903,
29933,
1299,
29906,
2477,
29918,
29874,
29918,
449,
353,
270,
29961,
29896,
29900,
29962,
30004,
13,
1678,
903,
29933,
1299,
29906,
2477,
29918,
29890,
29918,
449,
353,
270,
29961,
29896,
29896,
29962,
30004,
13,
1678,
903,
29933,
1299,
29906,
2477,
29918,
29883,
29918,
449,
353,
270,
29961,
29896,
29906,
29962,
30004,
13,
1678,
903,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
2287,
29963,
353,
270,
29961,
29896,
29941,
29962,
30004,
13,
1678,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
353,
270,
29961,
29896,
29946,
29962,
30004,
13,
1678,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
353,
270,
29961,
29896,
29945,
29962,
30004,
13,
1678,
903,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
353,
270,
29961,
29896,
29953,
29962,
30004,
13,
1678,
903,
29873,
29918,
2287,
3035,
353,
938,
29898,
14486,
29898,
29881,
29961,
29896,
29955,
12622,
30004,
13,
1678,
903,
6156,
29907,
29918,
29882,
353,
270,
29961,
29896,
29947,
29962,
30004,
13,
30004,
13,
1678,
903,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
1195,
353,
903,
2477,
29906,
29933,
1299,
29918,
29883,
29918,
262,
30004,
13,
1678,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
1195,
353,
903,
29933,
1299,
29906,
2477,
29918,
29883,
29918,
449,
30004,
13,
30004,
13,
1678,
396,
2994,
276,
428,
7329,
304,
4772,
975,
8323,
322,
766,
23367,
278,
16988,
30004,
13,
1678,
27760,
353,
29871,
29900,
29889,
29896,
30004,
13,
30004,
13,
1678,
396,
17250,
2133,
310,
3153,
3651,
30004,
13,
30004,
13,
1678,
903,
29873,
311,
353,
903,
29873,
29918,
6007,
1254,
13566,
1405,
29871,
29900,
29871,
396,
29479,
2286,
304,
5039,
403,
278,
937,
29899,
2098,
931,
9055,
1543,
30004,
13,
1678,
396,
383,
7168,
310,
278,
937,
29899,
2098,
931,
9055,
1543,
30004,
13,
1678,
903,
615,
311,
353,
29871,
29896,
448,
7442,
29889,
4548,
6278,
29918,
6008,
847,
903,
29873,
29918,
6007,
1254,
13566,
8443,
13,
30004,
13,
1678,
396,
3824,
931,
4331,
411,
4880,
304,
278,
7123,
931,
310,
278,
1788,
2761,
30004,
13,
1678,
903,
29873,
2962,
353,
7442,
29889,
27525,
398,
29898,
29906,
29892,
29871,
29896,
718,
903,
29873,
29918,
2287,
3035,
8443,
13,
1678,
903,
29873,
355,
353,
938,
7373,
4040,
29889,
2311,
8443,
13,
1678,
903,
386,
353,
29871,
29900,
30004,
13,
30004,
13,
1678,
396,
5915,
5946,
310,
278,
16988,
29892,
11301,
515,
413,
8809,
304,
806,
30004,
13,
1678,
903,
29923,
29918,
29933,
1299,
334,
29922,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
1678,
396,
382,
600,
13396,
310,
278,
16988,
297,
10151,
30004,
13,
1678,
903,
1187,
29918,
29933,
1299,
847,
29922,
29871,
29896,
29900,
29900,
30004,
13,
30004,
13,
1678,
396,
5399,
565,
278,
7123,
470,
3604,
1847,
931,
508,
367,
17262,
322,
731,
13449,
16205,
30004,
13,
1678,
565,
903,
6008,
6736,
313,
29941,
334,
903,
29873,
29918,
6007,
1254,
13566,
29897,
470,
903,
29873,
355,
1275,
29871,
29896,
29901,
30004,
13,
4706,
903,
29873,
2962,
353,
29871,
29896,
30004,
13,
4706,
323,
29918,
2287,
3035,
353,
7700,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
323,
29918,
2287,
3035,
353,
5852,
30004,
13,
30004,
13,
1678,
565,
903,
6008,
6736,
903,
29873,
29918,
2287,
3035,
718,
29871,
29941,
334,
903,
29873,
29918,
6007,
1254,
13566,
29901,
30004,
13,
4706,
11368,
14632,
4214,
353,
7700,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
11368,
14632,
4214,
353,
5852,
30004,
13,
30004,
13,
1678,
363,
260,
297,
3464,
7373,
29873,
2962,
448,
29871,
29896,
29892,
903,
29873,
355,
1125,
30004,
13,
30004,
13,
4706,
396,
24836,
2793,
310,
278,
16988,
297,
278,
3517,
931,
4331,
30004,
13,
4706,
382,
29918,
29890,
29900,
353,
903,
29879,
542,
29900,
334,
903,
29923,
29918,
29933,
1299,
30004,
13,
30004,
13,
4706,
396,
20535,
403,
278,
14614,
3081,
310,
278,
16988,
1788,
515,
278,
10995,
950,
3081,
30004,
13,
4706,
396,
411,
4880,
304,
278,
7123,
931,
310,
278,
1788,
2761,
30004,
13,
4706,
565,
323,
29918,
2287,
3035,
29901,
30004,
13,
9651,
349,
29918,
5824,
353,
903,
4040,
29961,
29873,
448,
903,
29873,
29918,
2287,
3035,
29962,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
349,
29918,
5824,
353,
903,
4040,
29961,
29873,
29962,
30004,
13,
30004,
13,
4706,
396,
5399,
565,
278,
16988,
8640,
3307,
443,
3880,
13284,
363,
9151,
292,
470,
766,
25389,
292,
30004,
13,
4706,
396,
2661,
326,
630,
5253,
310,
5864,
297,
806,
393,
338,
19056,
304,
470,
766,
25389,
287,
515,
278,
8635,
5190,
22993,
13,
4706,
382,
29918,
5824,
29918,
342,
353,
349,
29918,
5824,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
30004,
13,
4706,
396,
4367,
24551,
349,
29918,
5824,
304,
4772,
975,
9151,
292,
310,
278,
16988,
30004,
13,
4706,
565,
382,
29918,
5824,
29918,
342,
1405,
29871,
29900,
322,
382,
29918,
5824,
29918,
342,
1405,
9423,
29923,
29918,
29933,
1299,
448,
382,
29918,
29890,
29900,
1125,
30004,
13,
9651,
349,
29918,
5824,
353,
9423,
29923,
29918,
29933,
1299,
448,
382,
29918,
29890,
29900,
29897,
334,
29871,
29941,
29953,
29900,
29900,
847,
903,
6008,
30004,
13,
4706,
396,
1932,
766,
25389,
292,
2125,
278,
26385,
7329,
964,
3633,
30004,
13,
4706,
25342,
382,
29918,
5824,
29918,
342,
529,
29871,
29900,
322,
7442,
29889,
6897,
29898,
29923,
29918,
5824,
29918,
342,
29897,
1405,
313,
29923,
29918,
29890,
29900,
1125,
30004,
13,
9651,
349,
29918,
5824,
353,
313,
29923,
29918,
29890,
29900,
334,
29871,
29941,
29953,
29900,
29900,
847,
903,
6008,
29897,
334,
313,
29896,
29899,
29725,
8443,
13,
30004,
13,
4706,
396,
2087,
5143,
278,
14614,
3081,
310,
278,
16988,
1788,
2861,
304,
278,
5073,
653,
30004,
13,
4706,
396,
29668,
800,
5622,
278,
9212,
9151,
292,
322,
766,
25389,
292,
3081,
964,
30004,
13,
4706,
396,
3633,
30004,
13,
4706,
565,
349,
29918,
5824,
1405,
903,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
1195,
29901,
30004,
13,
9651,
349,
29918,
5824,
353,
7442,
29889,
27525,
398,
7373,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
1195,
29892,
349,
29918,
5824,
718,
903,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
2287,
29963,
8443,
13,
30004,
13,
4706,
25342,
349,
29918,
5824,
529,
448,
29918,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
1195,
29901,
30004,
13,
9651,
349,
29918,
5824,
353,
7442,
29889,
1195,
12539,
6278,
29918,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
1195,
29892,
349,
29918,
5824,
448,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
8443,
13,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
349,
29918,
5824,
353,
29871,
29900,
30004,
13,
30004,
13,
4706,
396,
9628,
277,
278,
14614,
3081,
310,
278,
16988,
1788,
304,
278,
364,
630,
3081,
310,
278,
30004,
13,
4706,
396,
16988,
29105,
30004,
13,
4706,
349,
29918,
5824,
353,
7442,
29889,
27525,
398,
6278,
29918,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
334,
29871,
29896,
29900,
29900,
29900,
11167,
13,
462,
3986,
7442,
29889,
1195,
12539,
7373,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
334,
29871,
29896,
29900,
29900,
29900,
29892,
349,
29918,
5824,
876,
30004,
13,
30004,
13,
4706,
396,
2087,
5143,
278,
14614,
3081,
310,
278,
16988,
1788,
2861,
304,
278,
3604,
1847,
931,
30004,
13,
4706,
396,
313,
8513,
839,
491,
263,
937,
29899,
2098,
931,
9055,
1543,
29897,
12433,
3056,
589,
1102,
12123,
3764,
2276,
2128,
19014,
29973,
30004,
13,
4706,
396,
341,
1558,
589,
3764,
2276,
2231,
399,
814,
1380,
2939,
23475,
3678,
29973,
30004,
13,
4706,
565,
11368,
14632,
4214,
29901,
30004,
13,
9651,
565,
260,
1405,
29871,
29900,
29901,
30004,
13,
18884,
349,
29918,
5824,
353,
903,
29873,
311,
334,
903,
29925,
5824,
29961,
29873,
29899,
29896,
29962,
718,
903,
29873,
311,
334,
313,
29925,
29918,
5824,
448,
903,
29925,
5824,
29961,
29873,
29899,
29896,
2314,
334,
903,
615,
311,
718,
349,
29918,
5824,
334,
313,
1333,
903,
29873,
311,
8443,
13,
9651,
1683,
29901,
30004,
13,
18884,
349,
29918,
5824,
353,
903,
29873,
311,
334,
903,
29925,
5824,
29900,
718,
903,
29873,
311,
334,
313,
29925,
29918,
5824,
448,
903,
29925,
5824,
29900,
29897,
334,
903,
615,
311,
718,
349,
29918,
5824,
334,
313,
1333,
903,
29873,
311,
8443,
13,
30004,
13,
4706,
396,
3826,
2459,
565,
278,
16988,
881,
367,
20139,
470,
766,
25389,
287,
30004,
13,
4706,
565,
349,
29918,
5824,
1405,
29871,
29900,
322,
903,
29879,
542,
29900,
529,
29871,
29896,
448,
903,
386,
334,
313,
29896,
448,
903,
6156,
29907,
29918,
29882,
1125,
30004,
13,
9651,
396,
450,
1833,
1840,
266,
16395,
29896,
29899,
6156,
29907,
29918,
29882,
29897,
4772,
29879,
278,
5136,
362,
1546,
30004,
13,
9651,
396,
9151,
292,
322,
2317,
1609,
4464,
2861,
304,
278,
13681,
3081,
27430,
310,
278,
30004,
13,
9651,
396,
16988,
29105,
746,
278,
16988,
338,
8072,
20139,
29889,
450,
16988,
30004,
13,
9651,
396,
674,
451,
367,
337,
25389,
287,
2745,
278,
7791,
29907,
20074,
2400,
278,
7791,
29907,
29899,
386,
12268,
30004,
13,
9651,
396,
313,
6156,
29907,
29918,
29882,
29897,
363,
337,
25389,
292,
515,
349,
29963,
22993,
13,
30004,
13,
9651,
396,
21981,
1891,
14614,
3081,
310,
278,
16988,
1788,
30004,
13,
9651,
282,
29918,
5824,
353,
349,
29918,
5824,
847,
903,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
9651,
396,
13681,
3081,
310,
278,
16988,
15201,
491,
278,
14614,
29906,
29933,
1299,
11301,
28495,
30004,
13,
9651,
396,
310,
278,
16988,
29105,
30004,
13,
9651,
349,
29918,
10222,
353,
7442,
29889,
27525,
398,
29898,
30004,
13,
462,
29900,
29892,
349,
29918,
5824,
448,
9423,
2477,
29906,
29933,
1299,
29918,
29874,
29918,
262,
334,
282,
29918,
5824,
334,
282,
29918,
5824,
718,
903,
2477,
29906,
29933,
1299,
29918,
29890,
29918,
262,
334,
282,
29918,
5824,
718,
903,
2477,
29906,
29933,
1299,
29918,
29883,
29918,
262,
876,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
5824,
529,
29871,
29900,
322,
903,
29879,
542,
29900,
1405,
29871,
29900,
29901,
30004,
13,
30004,
13,
9651,
396,
21981,
1891,
14614,
3081,
310,
278,
16988,
1788,
30004,
13,
9651,
282,
29918,
5824,
353,
7442,
29889,
6897,
29898,
29925,
29918,
5824,
847,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
847,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
9651,
396,
13681,
3081,
310,
278,
16988,
15201,
491,
278,
350,
1299,
29906,
2477,
11301,
28495,
30004,
13,
9651,
396,
310,
278,
16988,
29105,
30004,
13,
9651,
349,
29918,
10222,
353,
349,
29918,
5824,
448,
9423,
29933,
1299,
29906,
2477,
29918,
29874,
29918,
449,
334,
282,
29918,
5824,
334,
282,
29918,
5824,
718,
30004,
13,
462,
9651,
903,
29933,
1299,
29906,
2477,
29918,
29890,
29918,
449,
334,
282,
29918,
5824,
718,
903,
29933,
1299,
29906,
2477,
29918,
29883,
29918,
449,
8443,
13,
30004,
13,
4706,
1683,
29901,
29871,
396,
2448,
2121,
9151,
292,
3643,
766,
25389,
292,
310,
278,
16988,
30004,
13,
30004,
13,
9651,
396,
3789,
278,
13681,
3081,
310,
278,
16988,
304,
5225,
30004,
13,
9651,
349,
29918,
10222,
353,
29871,
29900,
30004,
13,
30004,
13,
4706,
396,
3826,
2459,
565,
278,
2317,
1609,
4464,
338,
6136,
30004,
13,
4706,
565,
349,
29918,
10222,
1275,
29871,
29900,
322,
903,
29879,
542,
29900,
5277,
29871,
29900,
29901,
29871,
396,
6679,
1609,
4464,
297,
766,
25389,
287,
2106,
30004,
13,
30004,
13,
9651,
396,
13681,
322,
14614,
3081,
27430,
310,
278,
16988,
29105,
30004,
13,
9651,
349,
29918,
10222,
353,
448,
9302,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
12696,
8443,
13,
9651,
349,
29918,
5824,
353,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
2477,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
10222,
1275,
29871,
29900,
322,
903,
29879,
542,
29900,
1405,
29871,
29900,
29901,
29871,
396,
6679,
1609,
4464,
297,
8072,
20139,
2106,
30004,
13,
30004,
13,
9651,
396,
13681,
322,
14614,
3081,
27430,
310,
278,
16988,
29105,
30004,
13,
9651,
349,
29918,
10222,
353,
448,
9302,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
12696,
8443,
13,
9651,
349,
29918,
5824,
353,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
2477,
30004,
13,
30004,
13,
4706,
396,
17934,
278,
16387,
14614,
3081,
310,
278,
16988,
1788,
322,
30004,
13,
4706,
396,
278,
13681,
3081,
310,
278,
16988,
30004,
13,
4706,
903,
29925,
5824,
29900,
353,
349,
29918,
5824,
30004,
13,
4706,
903,
29925,
5824,
29961,
29873,
29962,
353,
349,
29918,
5824,
30004,
13,
4706,
903,
29925,
10222,
29961,
29873,
29962,
353,
349,
29918,
10222,
30004,
13,
30004,
13,
4706,
396,
10726,
278,
5864,
2793,
310,
278,
16988,
515,
399,
29879,
304,
806,
11301,
30004,
13,
4706,
565,
349,
29918,
10222,
1405,
29871,
29900,
29901,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
334,
7442,
29889,
3676,
7373,
1187,
29918,
29933,
1299,
29897,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
10222,
529,
29871,
29900,
29901,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
847,
7442,
29889,
3676,
7373,
1187,
29918,
29933,
1299,
29897,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
30004,
13,
30004,
13,
4706,
396,
20535,
403,
278,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
903,
29879,
542,
29900,
353,
382,
29918,
29890,
847,
9423,
29923,
29918,
29933,
1299,
8443,
13,
4706,
903,
29879,
542,
29961,
29873,
29962,
353,
903,
29879,
542,
29900,
30004,
13,
30004,
13,
4706,
396,
2087,
5143,
278,
298,
858,
261,
6656,
16897,
304,
4772,
5136,
362,
30004,
13,
4706,
396,
1546,
9151,
292,
322,
2317,
1609,
4464,
2861,
304,
278,
13681,
3081,
30004,
13,
4706,
396,
27430,
310,
278,
16988,
29105,
22993,
13,
4706,
565,
903,
386,
322,
903,
29879,
542,
29961,
29873,
29962,
1405,
903,
6156,
29907,
29918,
29882,
470,
903,
29879,
542,
29961,
29873,
29962,
1405,
29871,
29896,
29901,
30004,
13,
9651,
903,
386,
353,
5852,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
903,
386,
353,
7700,
30004,
13,
30004,
13,
1678,
736,
903,
29925,
10222,
29892,
903,
29925,
5824,
29892,
903,
29879,
542,
29892,
903,
29879,
542,
29900,
29892,
903,
29925,
5824,
29900,
30004,
13,
30004,
13,
30004,
13,
29992,
9877,
29889,
29926,
277,
29898,
29876,
459,
1656,
29922,
5574,
8443,
13,
1753,
17152,
1545,
29918,
562,
29918,
680,
284,
29898,
29881,
29892,
903,
6008,
29892,
903,
29879,
542,
29900,
29892,
903,
29879,
542,
29892,
903,
4040,
29892,
903,
29925,
10222,
1125,
30004,
13,
30004,
13,
1678,
903,
29923,
29918,
29933,
1299,
353,
270,
29961,
29900,
29962,
30004,
13,
30004,
13,
1678,
363,
260,
297,
3464,
7373,
4040,
29889,
2311,
1125,
30004,
13,
30004,
13,
4706,
396,
24836,
2793,
310,
278,
16988,
297,
278,
3517,
931,
4331,
30004,
13,
4706,
382,
29918,
29890,
29900,
353,
903,
29879,
542,
29900,
334,
903,
29923,
29918,
29933,
1299,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
4706,
396,
20535,
403,
278,
13681,
3081,
310,
278,
16988,
515,
278,
10995,
950,
3081,
30004,
13,
4706,
349,
29918,
10222,
353,
903,
4040,
29961,
29873,
29962,
30004,
13,
30004,
13,
4706,
396,
3826,
2459,
565,
278,
16988,
881,
367,
20139,
470,
766,
25389,
287,
30004,
13,
4706,
565,
349,
29918,
10222,
1405,
29871,
29900,
322,
903,
29879,
542,
29900,
529,
29871,
29896,
29901,
29871,
396,
350,
2620,
29891,
9151,
292,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
29871,
396,
10726,
278,
5864,
2793,
310,
278,
16988,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
10222,
529,
29871,
29900,
322,
903,
29879,
542,
29900,
1405,
29871,
29900,
29901,
29871,
396,
350,
2620,
29891,
766,
25389,
292,
30004,
13,
30004,
13,
9651,
396,
10726,
278,
5864,
2793,
310,
278,
16988,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
30004,
13,
4706,
1683,
29901,
29871,
396,
2448,
2121,
9151,
292,
3643,
766,
25389,
292,
310,
278,
16988,
30004,
13,
30004,
13,
9651,
396,
3789,
278,
13681,
3081,
310,
278,
16988,
304,
5225,
30004,
13,
9651,
349,
29918,
10222,
353,
29871,
29900,
30004,
13,
30004,
13,
9651,
396,
1939,
1735,
297,
278,
5864,
2793,
310,
278,
16988,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
30004,
13,
30004,
13,
4706,
396,
17934,
278,
16387,
13681,
3081,
310,
278,
16988,
30004,
13,
4706,
903,
29925,
10222,
29961,
29873,
29962,
353,
349,
29918,
10222,
30004,
13,
30004,
13,
4706,
396,
20535,
403,
278,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
903,
29879,
542,
29900,
353,
382,
29918,
29890,
847,
9423,
29923,
29918,
29933,
1299,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
4706,
903,
29879,
542,
29961,
29873,
29962,
353,
903,
29879,
542,
29900,
30004,
13,
30004,
13,
1678,
396,
22402,
4567,
4128,
30004,
13,
30004,
13,
1678,
903,
29925,
5824,
353,
903,
29925,
10222,
29871,
396,
8195,
1891,
14614,
3081,
310,
278,
16988,
1788,
30004,
13,
30004,
13,
1678,
736,
903,
29925,
5824,
29892,
903,
29925,
10222,
29892,
903,
29879,
542,
29900,
29892,
903,
29879,
542,
30004,
13,
30004,
13,
30004,
13,
29992,
9877,
29889,
29926,
277,
29898,
29876,
459,
1656,
29922,
5574,
8443,
13,
1753,
17152,
1545,
29918,
13891,
29898,
29881,
29892,
903,
6008,
29892,
903,
29879,
542,
29900,
29892,
903,
29879,
542,
29892,
903,
4040,
29892,
903,
4040,
29886,
29894,
29892,
29871,
903,
29925,
29886,
29894,
29892,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29892,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29892,
903,
29925,
10222,
29906,
562,
29918,
449,
29900,
29892,
903,
29925,
10222,
29906,
562,
29918,
449,
29892,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29892,
903,
29925,
29886,
29894,
5824,
29892,
903,
29925,
10222,
1125,
30004,
13,
1678,
9995,
5894,
13390,
17402,
740,
363,
13681,
29899,
16589,
552,
29881,
16988,
6757,
30004,
13,
30004,
13,
1678,
584,
3207,
270,
29901,
1409,
6943,
4128,
30004,
13,
1678,
584,
1853,
270,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
11636,
29901,
931,
4331,
2920,
30004,
13,
1678,
584,
1853,
11636,
29901,
6043,
30004,
13,
1678,
584,
3207,
17874,
29900,
29901,
2106,
310,
8323,
297,
278,
3517,
931,
4331,
30004,
13,
1678,
584,
1853,
17874,
29900,
29901,
5785,
30004,
13,
1678,
584,
3207,
1588,
29901,
10995,
950,
3081,
30004,
13,
1678,
584,
1853,
1588,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
1588,
29886,
29894,
29901,
10995,
950,
3081,
310,
278,
349,
29963,
29899,
5205,
30004,
13,
1678,
584,
1853,
1588,
29886,
29894,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29901,
349,
29963,
29899,
13519,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29901,
14614,
1881,
3081,
310,
278,
16988,
1788,
297,
278,
3517,
931,
4331,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29901,
5785,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29906,
10222,
29918,
262,
29901,
14614,
1881,
3081,
310,
278,
16988,
1788,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29906,
10222,
29918,
262,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
349,
10222,
29906,
562,
29918,
449,
29900,
29901,
14614,
1962,
3081,
310,
278,
16988,
1788,
297,
278,
3517,
931,
4331,
30004,
13,
1678,
584,
1853,
349,
10222,
29906,
562,
29918,
449,
29900,
29901,
5785,
30004,
13,
1678,
584,
3207,
349,
10222,
29906,
562,
29918,
449,
29901,
14614,
1962,
3081,
310,
278,
16988,
1788,
30004,
13,
1678,
584,
1853,
349,
10222,
29906,
562,
29918,
449,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29906,
562,
29918,
449,
29900,
29901,
14614,
1962,
3081,
310,
278,
349,
29963,
297,
13549,
297,
278,
3517,
931,
4331,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29906,
562,
29918,
449,
29900,
29901,
5785,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29906,
562,
29918,
449,
29901,
14614,
1962,
3081,
310,
278,
349,
29963,
297,
13549,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29906,
562,
29918,
449,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
5824,
29901,
14614,
3081,
515,
278,
349,
29963,
1788,
304,
278,
16988,
1788,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
5824,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
349,
10222,
29901,
13681,
3081,
310,
278,
16988,
30004,
13,
1678,
584,
1853,
349,
10222,
29901,
5785,
30004,
13,
1678,
9995,
30004,
13,
30004,
13,
1678,
903,
29923,
29918,
29933,
1299,
353,
270,
29961,
29900,
29962,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
353,
270,
29961,
29896,
29962,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
353,
270,
29961,
29906,
29962,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
353,
270,
29961,
29941,
29962,
30004,
13,
1678,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
353,
270,
29961,
29946,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
353,
270,
29961,
29945,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
353,
270,
29961,
29953,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
353,
270,
29961,
29955,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
29933,
1299,
29918,
29874,
29918,
262,
353,
270,
29961,
29947,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
29933,
1299,
29918,
29890,
29918,
262,
353,
270,
29961,
29929,
29962,
30004,
13,
1678,
903,
29933,
1299,
29906,
2477,
29918,
29874,
29918,
449,
353,
270,
29961,
29896,
29900,
29962,
30004,
13,
1678,
903,
29933,
1299,
29906,
2477,
29918,
29890,
29918,
449,
353,
270,
29961,
29896,
29896,
29962,
30004,
13,
1678,
903,
29933,
1299,
29906,
2477,
29918,
29883,
29918,
449,
353,
270,
29961,
29896,
29906,
29962,
30004,
13,
1678,
903,
1187,
29918,
29933,
1299,
353,
270,
29961,
29896,
29941,
29962,
30004,
13,
1678,
903,
6156,
29907,
29918,
29882,
353,
270,
29961,
29896,
29946,
29962,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
353,
270,
29961,
29896,
29945,
29962,
30004,
13,
1678,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
353,
270,
29961,
29896,
29953,
29962,
30004,
13,
1678,
903,
29873,
29918,
2287,
3035,
353,
938,
29898,
14486,
29898,
29881,
29961,
29896,
29955,
12622,
30004,
13,
1678,
903,
29873,
29918,
6007,
1254,
13566,
353,
270,
29961,
29896,
29947,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
12696,
353,
270,
29961,
29896,
29929,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
2477,
353,
270,
29961,
29906,
29900,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
12696,
353,
270,
29961,
29906,
29896,
29962,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
1195,
353,
903,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
30004,
13,
30004,
13,
1678,
396,
5915,
5946,
310,
278,
16988,
29892,
11301,
515,
413,
8809,
304,
806,
30004,
13,
1678,
903,
29923,
29918,
29933,
1299,
334,
29922,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
1678,
396,
382,
600,
13396,
310,
278,
16988,
297,
10151,
30004,
13,
1678,
903,
1187,
29918,
29933,
1299,
847,
29922,
29871,
29896,
29900,
29900,
30004,
13,
30004,
13,
1678,
396,
17250,
2133,
310,
3153,
3651,
30004,
13,
1678,
396,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
1195,
353,
903,
15501,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
2033,
396,
3080,
12539,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
1678,
903,
29873,
311,
353,
903,
29873,
29918,
6007,
1254,
13566,
1405,
29871,
29900,
29871,
396,
29479,
2286,
304,
5039,
403,
278,
937,
29899,
2098,
931,
9055,
1543,
30004,
13,
1678,
396,
383,
7168,
310,
278,
937,
29899,
2098,
931,
9055,
1543,
30004,
13,
1678,
903,
615,
311,
353,
29871,
29896,
448,
7442,
29889,
4548,
6278,
29918,
6008,
847,
903,
29873,
29918,
6007,
1254,
13566,
8443,
13,
1678,
396,
3824,
931,
4331,
411,
4880,
304,
278,
7123,
931,
310,
278,
1788,
2761,
30004,
13,
1678,
903,
29873,
2962,
353,
7442,
29889,
27525,
398,
29898,
29906,
29892,
29871,
29896,
718,
903,
29873,
29918,
2287,
3035,
8443,
13,
1678,
903,
29873,
355,
353,
938,
7373,
4040,
29889,
2311,
8443,
13,
1678,
903,
386,
353,
29871,
29900,
30004,
13,
1678,
27760,
353,
29871,
29900,
29889,
29896,
30004,
13,
30004,
13,
1678,
396,
5399,
565,
278,
7123,
470,
3604,
1847,
931,
508,
367,
17262,
322,
731,
13449,
16205,
30004,
13,
1678,
565,
903,
6008,
6736,
313,
29941,
334,
903,
29873,
29918,
6007,
1254,
13566,
29897,
470,
903,
29873,
355,
1275,
29871,
29896,
29901,
30004,
13,
4706,
903,
29873,
2962,
353,
29871,
29896,
30004,
13,
4706,
323,
29918,
2287,
3035,
353,
7700,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
323,
29918,
2287,
3035,
353,
5852,
30004,
13,
30004,
13,
1678,
565,
903,
6008,
6736,
903,
29873,
29918,
2287,
3035,
718,
29871,
29941,
334,
903,
29873,
29918,
6007,
1254,
13566,
29901,
30004,
13,
4706,
11368,
14632,
4214,
353,
7700,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
11368,
14632,
4214,
353,
5852,
30004,
13,
30004,
13,
1678,
363,
260,
297,
3464,
7373,
29873,
2962,
448,
29871,
29896,
29892,
903,
29873,
355,
1125,
30004,
13,
4706,
396,
24836,
2793,
310,
278,
16988,
297,
278,
3517,
931,
4331,
30004,
13,
4706,
382,
29918,
29890,
29900,
353,
903,
29879,
542,
29900,
334,
903,
29923,
29918,
29933,
1299,
30004,
13,
30004,
13,
4706,
396,
2538,
333,
950,
3081,
411,
4880,
304,
278,
7123,
931,
310,
278,
1788,
2761,
30004,
13,
30004,
13,
4706,
565,
323,
29918,
2287,
3035,
29901,
30004,
13,
9651,
349,
29918,
19080,
29894,
353,
903,
4040,
29886,
29894,
29961,
29873,
448,
903,
29873,
29918,
2287,
3035,
29962,
30004,
13,
9651,
349,
29918,
29878,
353,
903,
4040,
29961,
29873,
448,
903,
29873,
29918,
2287,
3035,
29962,
30004,
13,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
349,
29918,
19080,
29894,
353,
903,
4040,
29886,
29894,
29961,
29873,
29962,
30004,
13,
9651,
349,
29918,
29878,
353,
903,
4040,
29961,
29873,
29962,
30004,
13,
30004,
13,
4706,
396,
5399,
565,
278,
16988,
8640,
3307,
443,
3880,
13284,
363,
9151,
292,
470,
766,
25389,
292,
30004,
13,
4706,
396,
2661,
326,
630,
5253,
310,
5864,
393,
338,
19056,
304,
470,
766,
25389,
287,
515,
278,
8635,
5190,
22993,
13,
4706,
382,
29918,
5824,
29918,
19080,
29894,
353,
349,
29918,
19080,
29894,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
4706,
382,
29918,
5824,
29918,
29878,
353,
349,
29918,
29878,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
4706,
6756,
13,
4706,
396,
4367,
24551,
349,
29918,
5824,
304,
4772,
975,
9151,
292,
310,
278,
16988,
6756,
13,
4706,
565,
382,
29918,
5824,
29918,
19080,
29894,
1405,
29871,
29900,
322,
382,
29918,
5824,
29918,
19080,
29894,
1405,
9423,
29923,
29918,
29933,
1299,
448,
382,
29918,
29890,
29900,
1125,
30004,
13,
9651,
349,
29918,
19080,
29894,
353,
9423,
29923,
29918,
29933,
1299,
448,
382,
29918,
29890,
29900,
29897,
334,
29871,
29941,
29953,
29900,
29900,
847,
903,
6008,
30004,
13,
4706,
396,
1932,
766,
25389,
292,
2125,
278,
26385,
7329,
964,
3633,
30004,
13,
4706,
25342,
382,
29918,
5824,
29918,
29878,
529,
29871,
29900,
322,
7442,
29889,
6897,
29898,
29923,
29918,
5824,
29918,
29878,
29897,
1405,
313,
29923,
29918,
29890,
29900,
1125,
30004,
13,
9651,
349,
29918,
29878,
353,
5135,
29923,
29918,
29890,
29900,
29897,
334,
29871,
29941,
29953,
29900,
29900,
847,
903,
6008,
29897,
334,
313,
29896,
29899,
29725,
8443,
13,
4706,
6756,
13,
4706,
396,
3826,
2459,
565,
278,
16988,
881,
367,
20139,
470,
766,
25389,
287,
30004,
13,
4706,
565,
349,
29918,
19080,
29894,
1405,
29871,
29900,
322,
903,
29879,
542,
29900,
529,
29871,
29896,
448,
903,
386,
334,
313,
29896,
448,
903,
6156,
29907,
29918,
29882,
1125,
30004,
13,
9651,
14550,
30004,
13,
9651,
450,
1833,
1840,
266,
16395,
29896,
29899,
6156,
29907,
29918,
29882,
29897,
4772,
29879,
278,
5136,
362,
1546,
30004,
13,
9651,
9151,
292,
322,
2317,
1609,
4464,
2861,
304,
278,
13681,
3081,
27430,
310,
278,
30004,
13,
9651,
16988,
29105,
746,
278,
16988,
338,
8072,
20139,
29889,
450,
16988,
30004,
13,
9651,
674,
451,
367,
337,
25389,
287,
2745,
278,
7791,
29907,
20074,
2400,
278,
7791,
29907,
29899,
386,
12268,
30004,
13,
9651,
313,
6156,
29907,
29918,
29882,
29897,
363,
337,
25389,
292,
515,
349,
29963,
22993,
13,
9651,
14550,
30004,
13,
9651,
396,
678,
1191,
292,
3081,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
349,
29918,
19080,
29894,
30004,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
9151,
292,
3081,
2861,
304,
278,
5073,
653,
29668,
800,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
718,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
8443,
13,
30004,
13,
9651,
396,
9628,
277,
278,
9151,
292,
3081,
304,
278,
7472,
9151,
292,
3081,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
1195,
12539,
29898,
29925,
29918,
29886,
29894,
29906,
10222,
29918,
262,
29892,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
9151,
292,
3081,
2861,
304,
278,
3604,
1847,
931,
30004,
13,
9651,
396,
313,
8513,
839,
491,
263,
937,
29899,
2098,
931,
9055,
1543,
8443,
13,
9651,
565,
11368,
14632,
4214,
29901,
30004,
13,
18884,
565,
260,
1405,
29871,
29900,
29901,
30004,
13,
462,
1678,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
903,
29873,
311,
334,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
15625,
29873,
29899,
29896,
4638,
718,
903,
29873,
311,
334,
313,
30004,
13,
462,
4706,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
448,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
15625,
29873,
29899,
29896,
29897,
2314,
334,
903,
615,
311,
718,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
334,
313,
1333,
903,
29873,
311,
8443,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
903,
29873,
311,
334,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
718,
903,
29873,
311,
334,
320,
30004,
13,
462,
4706,
313,
29925,
29918,
29886,
29894,
29906,
10222,
29918,
262,
448,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29897,
334,
320,
30004,
13,
462,
4706,
903,
615,
311,
718,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
334,
313,
1333,
903,
29873,
311,
8443,
13,
462,
4706,
6756,
13,
9651,
396,
9628,
277,
278,
9151,
292,
3081,
304,
278,
1857,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
1195,
12539,
29898,
29925,
29918,
29886,
29894,
29906,
10222,
29918,
262,
29892,
903,
29925,
29886,
29894,
29961,
29873,
2314,
30004,
13,
30004,
13,
9651,
396,
21981,
1891,
9151,
292,
3081,
30004,
13,
9651,
6499,
29894,
29906,
10222,
353,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
847,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
9651,
396,
13681,
3081,
310,
278,
16988,
15201,
491,
278,
349,
29963,
29906,
29933,
1299,
11301,
28495,
30004,
13,
9651,
396,
313,
1552,
28132,
28495,
310,
278,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
526,
451,
4586,
30004,
13,
9651,
396,
964,
3633,
8443,
13,
9651,
349,
29918,
10222,
353,
7442,
29889,
27525,
398,
29898,
30004,
13,
462,
29900,
29892,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
448,
9423,
29925,
29963,
29906,
29933,
1299,
29918,
29874,
29918,
262,
334,
6499,
29894,
29906,
10222,
1068,
29906,
718,
903,
29925,
29963,
29906,
29933,
1299,
29918,
29890,
29918,
262,
334,
6499,
29894,
29906,
10222,
876,
30004,
13,
30004,
13,
9651,
396,
8195,
1891,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
353,
903,
29925,
29886,
29894,
29961,
29873,
29962,
448,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
30004,
13,
9651,
396,
21981,
1891,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
9651,
903,
407,
29894,
29906,
562,
353,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
847,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
9651,
396,
8195,
1891,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
562,
29918,
449,
353,
7442,
29889,
27525,
398,
29898,
30004,
13,
462,
29900,
29892,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
448,
9423,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
334,
903,
407,
29894,
29906,
562,
1068,
29906,
718,
903,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
334,
903,
407,
29894,
29906,
562,
718,
903,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
876,
30004,
13,
9651,
349,
29918,
29886,
29894,
5824,
353,
349,
29918,
29886,
29894,
29906,
562,
29918,
449,
30004,
13,
30004,
13,
9651,
396,
17934,
278,
2186,
1819,
30004,
13,
9651,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29961,
29873,
29962,
353,
349,
29918,
29886,
29894,
29906,
562,
29918,
449,
30004,
13,
9651,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
353,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
9651,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29961,
29873,
29962,
353,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
19080,
29894,
529,
29871,
29900,
322,
903,
29879,
542,
29900,
1405,
29871,
29900,
29901,
30004,
13,
30004,
13,
9651,
396,
360,
783,
1191,
292,
3081,
30004,
13,
9651,
349,
29918,
10222,
29906,
562,
29918,
449,
353,
349,
29918,
29878,
334,
448,
29896,
30004,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
766,
25389,
292,
3081,
2861,
304,
278,
5073,
653,
29668,
800,
30004,
13,
9651,
349,
29918,
10222,
29906,
562,
29918,
449,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
349,
29918,
10222,
29906,
562,
29918,
449,
718,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
8443,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
766,
25389,
292,
3081,
304,
278,
7472,
766,
25389,
292,
3081,
30004,
13,
9651,
349,
29918,
10222,
29906,
562,
29918,
449,
353,
7442,
29889,
1195,
12539,
29898,
29925,
29918,
10222,
29906,
562,
29918,
449,
29892,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
766,
25389,
292,
3081,
2861,
304,
278,
3604,
1847,
931,
30004,
13,
9651,
396,
313,
8513,
839,
491,
263,
937,
29899,
2098,
931,
9055,
1543,
8443,
13,
9651,
565,
11368,
14632,
4214,
29901,
30004,
13,
18884,
565,
260,
1405,
29871,
29900,
29901,
30004,
13,
462,
1678,
349,
29918,
10222,
29906,
562,
29918,
449,
353,
903,
29873,
311,
334,
903,
29925,
10222,
29906,
562,
29918,
449,
29961,
29873,
29899,
29896,
29962,
718,
903,
29873,
311,
334,
313,
30004,
13,
462,
4706,
349,
29918,
10222,
29906,
562,
29918,
449,
448,
903,
29925,
10222,
29906,
562,
29918,
449,
29961,
29873,
29899,
29896,
2314,
334,
903,
615,
311,
718,
349,
29918,
10222,
29906,
562,
29918,
449,
334,
313,
1333,
903,
29873,
311,
8443,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
349,
29918,
10222,
29906,
562,
29918,
449,
353,
903,
29873,
311,
334,
903,
29925,
10222,
29906,
562,
29918,
449,
29900,
718,
903,
29873,
311,
334,
320,
30004,
13,
462,
4706,
313,
29925,
29918,
10222,
29906,
562,
29918,
449,
448,
903,
29925,
10222,
29906,
562,
29918,
449,
29900,
29897,
334,
320,
30004,
13,
462,
4706,
903,
615,
311,
718,
349,
29918,
10222,
29906,
562,
29918,
449,
334,
313,
1333,
903,
29873,
311,
8443,
13,
30004,
13,
9651,
396,
9628,
277,
278,
766,
25389,
292,
3081,
304,
278,
7472,
14614,
3081,
1962,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
9651,
349,
29918,
10222,
29906,
562,
29918,
449,
353,
7442,
29889,
1195,
12539,
29898,
30004,
13,
18884,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
334,
29871,
29896,
29900,
29900,
29900,
448,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29961,
29873,
1402,
349,
29918,
10222,
29906,
562,
29918,
449,
8443,
13,
30004,
13,
9651,
396,
21981,
1891,
766,
25389,
292,
3081,
30004,
13,
9651,
6499,
29894,
29906,
10222,
353,
349,
29918,
10222,
29906,
562,
29918,
449,
847,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
9651,
396,
13681,
3081,
310,
278,
16988,
15201,
491,
278,
350,
1299,
29906,
2477,
11301,
28495,
30004,
13,
9651,
396,
313,
361,
278,
28132,
28495,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
526,
10664,
491,
30004,
13,
9651,
396,
278,
349,
29963,
15299,
29892,
278,
28132,
28495,
310,
278,
350,
1299,
29906,
2477,
11301,
2224,
1582,
30004,
13,
9651,
396,
526,
451,
4586,
964,
3633,
8443,
13,
9651,
565,
903,
29925,
29886,
29894,
29961,
29873,
29962,
1405,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
1195,
29901,
30004,
13,
18884,
349,
29918,
10222,
353,
448,
29896,
334,
313,
29925,
29918,
10222,
29906,
562,
29918,
449,
718,
9423,
29933,
1299,
29906,
2477,
29918,
29874,
29918,
449,
334,
30004,
13,
462,
462,
795,
6499,
29894,
29906,
10222,
1068,
29906,
718,
903,
29933,
1299,
29906,
2477,
29918,
29890,
29918,
449,
334,
6499,
29894,
29906,
10222,
876,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
349,
29918,
10222,
353,
448,
29896,
334,
313,
29925,
29918,
10222,
29906,
562,
29918,
449,
718,
9423,
29933,
1299,
29906,
2477,
29918,
29874,
29918,
449,
334,
6499,
29894,
29906,
10222,
3579,
30004,
13,
462,
462,
1669,
29906,
718,
903,
29933,
1299,
29906,
2477,
29918,
29890,
29918,
449,
334,
6499,
29894,
29906,
10222,
718,
903,
29933,
1299,
29906,
2477,
29918,
29883,
29918,
449,
876,
718,
903,
29925,
29886,
29894,
29961,
29873,
29962,
30004,
13,
30004,
13,
9651,
396,
8195,
1891,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
9651,
349,
29918,
29886,
29894,
5824,
353,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29961,
29873,
29962,
718,
349,
29918,
10222,
29906,
562,
29918,
449,
30004,
13,
30004,
13,
9651,
396,
17934,
278,
2186,
1819,
30004,
13,
9651,
903,
29925,
10222,
29906,
562,
29918,
449,
29900,
353,
349,
29918,
10222,
29906,
562,
29918,
449,
30004,
13,
9651,
903,
29925,
10222,
29906,
562,
29918,
449,
29961,
29873,
29962,
353,
349,
29918,
10222,
29906,
562,
29918,
449,
30004,
13,
30004,
13,
4706,
1683,
29901,
29871,
396,
2448,
2121,
9151,
292,
3643,
766,
25389,
292,
310,
278,
16988,
30004,
13,
30004,
13,
9651,
396,
3789,
278,
13681,
3081,
310,
278,
16988,
304,
5225,
30004,
13,
9651,
349,
29918,
10222,
353,
29871,
29900,
30004,
13,
30004,
13,
9651,
396,
8195,
1891,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
9651,
349,
29918,
29886,
29894,
5824,
353,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29961,
29873,
29962,
30004,
13,
30004,
13,
4706,
396,
3826,
2459,
565,
278,
2317,
1609,
4464,
338,
6136,
30004,
13,
4706,
565,
349,
29918,
10222,
1275,
29871,
29900,
322,
349,
29918,
29886,
29894,
5824,
1275,
29871,
29900,
322,
903,
29879,
542,
29900,
5277,
29871,
29900,
29901,
29871,
396,
6679,
1609,
4464,
297,
766,
25389,
287,
2106,
30004,
13,
30004,
13,
9651,
396,
13681,
322,
14614,
3081,
27430,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
297,
13549,
30004,
13,
9651,
349,
29918,
10222,
353,
448,
9302,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
12696,
8443,
13,
9651,
349,
29918,
29886,
29894,
5824,
353,
448,
29918,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
2477,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
10222,
1275,
29871,
29900,
322,
349,
29918,
29886,
29894,
5824,
1405,
29871,
29900,
322,
903,
29879,
542,
29900,
1405,
29871,
29900,
29901,
29871,
396,
6679,
1609,
4464,
297,
8072,
20139,
2106,
30004,
13,
30004,
13,
9651,
396,
13681,
3081,
27430,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
297,
13549,
30004,
13,
9651,
349,
29918,
10222,
353,
448,
9302,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
12696,
8443,
13,
30004,
13,
4706,
396,
17934,
278,
16387,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
322,
278,
13681,
3081,
310,
278,
16988,
30004,
13,
4706,
903,
29925,
29886,
29894,
5824,
29961,
29873,
29962,
353,
349,
29918,
29886,
29894,
5824,
30004,
13,
4706,
903,
29925,
10222,
29961,
29873,
29962,
353,
349,
29918,
10222,
30004,
13,
30004,
13,
4706,
396,
10726,
278,
5864,
2793,
310,
278,
16988,
399,
29916,
304,
806,
11301,
30004,
13,
4706,
565,
349,
29918,
10222,
1405,
29871,
29900,
29901,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
334,
7442,
29889,
3676,
7373,
1187,
29918,
29933,
1299,
29897,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
4706,
25342,
349,
29918,
10222,
529,
29871,
29900,
29901,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
847,
7442,
29889,
3676,
7373,
1187,
29918,
29933,
1299,
29897,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
30004,
13,
30004,
13,
4706,
396,
20535,
403,
278,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
903,
29879,
542,
29900,
353,
382,
29918,
29890,
847,
903,
29923,
29918,
29933,
1299,
30004,
13,
4706,
903,
29879,
542,
29961,
29873,
29962,
353,
903,
29879,
542,
29900,
30004,
13,
30004,
13,
4706,
396,
2087,
5143,
278,
298,
858,
261,
6656,
16897,
304,
4772,
5136,
362,
1546,
9151,
292,
30004,
13,
4706,
396,
322,
2317,
1609,
4464,
2861,
304,
278,
13681,
3081,
27430,
310,
278,
30004,
13,
4706,
396,
349,
29963,
29899,
29890,
2620,
29891,
297,
13549,
30004,
13,
4706,
565,
903,
386,
322,
903,
29879,
542,
29961,
29873,
29962,
1405,
903,
6156,
29907,
29918,
29882,
470,
903,
29879,
542,
29961,
29873,
29962,
1405,
29871,
29896,
29901,
30004,
13,
9651,
903,
386,
353,
5852,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
903,
386,
353,
7700,
30004,
13,
30004,
13,
1678,
736,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29892,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29892,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29892,
903,
29925,
10222,
29906,
562,
29918,
449,
29892,
903,
29925,
10222,
29906,
562,
29918,
449,
29900,
29892,
903,
29925,
29886,
29894,
5824,
29892,
903,
29925,
10222,
29892,
903,
29879,
542,
29892,
903,
29879,
542,
29900,
30004,
13,
30004,
13,
30004,
13,
29992,
9877,
29889,
29926,
277,
29898,
29876,
459,
1656,
29922,
5574,
8443,
13,
1753,
17152,
1545,
29918,
13891,
29918,
680,
284,
29898,
29881,
29892,
903,
6008,
29892,
903,
29879,
542,
29900,
29892,
903,
29879,
542,
29892,
903,
4040,
29892,
903,
29925,
10222,
1125,
30004,
13,
30004,
13,
1678,
903,
29923,
29918,
29933,
1299,
353,
270,
29961,
29900,
29962,
30004,
13,
30004,
13,
1678,
363,
260,
297,
3464,
7373,
4040,
29889,
2311,
1125,
30004,
13,
4706,
396,
24836,
2793,
310,
278,
16988,
297,
278,
3517,
931,
4331,
30004,
13,
4706,
382,
29918,
29890,
29900,
353,
903,
29879,
542,
29900,
334,
903,
29923,
29918,
29933,
1299,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
4706,
349,
29918,
10222,
353,
903,
4040,
29961,
29873,
29962,
30004,
13,
30004,
13,
4706,
565,
349,
29918,
10222,
1405,
29871,
29900,
322,
903,
29879,
542,
29900,
529,
29871,
29896,
29901,
29871,
396,
350,
2620,
29891,
9151,
292,
30004,
13,
9651,
396,
10726,
278,
5864,
2793,
310,
278,
16988,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
10222,
529,
29871,
29900,
322,
903,
29879,
542,
29900,
1405,
29871,
29900,
29901,
29871,
396,
350,
2620,
29891,
766,
25389,
292,
30004,
13,
9651,
396,
10726,
278,
5864,
2793,
310,
278,
16988,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
30004,
13,
4706,
1683,
29901,
29871,
396,
2448,
2121,
9151,
292,
3643,
766,
25389,
292,
310,
278,
16988,
30004,
13,
9651,
349,
29918,
10222,
353,
29871,
29900,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
30004,
13,
30004,
13,
4706,
903,
29925,
10222,
29961,
29873,
29962,
353,
349,
29918,
10222,
30004,
13,
30004,
13,
4706,
903,
29879,
542,
29900,
353,
382,
29918,
29890,
847,
9423,
29923,
29918,
29933,
1299,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
4706,
903,
29879,
542,
29961,
29873,
29962,
353,
903,
29879,
542,
29900,
30004,
13,
30004,
13,
1678,
736,
903,
29925,
10222,
29892,
903,
29879,
542,
29892,
903,
29879,
542,
29900,
30004,
13,
30004,
13,
30004,
13,
29992,
9877,
29889,
29926,
277,
29898,
29876,
459,
1656,
29922,
5574,
8443,
13,
1753,
17152,
1545,
29918,
29886,
29894,
29898,
29881,
29892,
903,
6008,
29892,
903,
29879,
542,
29900,
29892,
903,
29879,
542,
29892,
903,
29925,
29886,
29894,
29892,
903,
29925,
562,
29892,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29892,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29892,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29892,
903,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29900,
29892,
903,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29892,
903,
29925,
29886,
29894,
5824,
29892,
903,
29925,
10222,
1125,
30004,
13,
1678,
9995,
5894,
13390,
17402,
740,
363,
349,
29963,
29899,
16589,
552,
29881,
16988,
6757,
30004,
13,
30004,
13,
1678,
584,
3207,
270,
29901,
1409,
6943,
4128,
30004,
13,
1678,
584,
1853,
270,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
11636,
29901,
931,
4331,
2920,
30004,
13,
1678,
584,
1853,
11636,
29901,
6043,
30004,
13,
30004,
13,
1678,
584,
3207,
17874,
29900,
29901,
2106,
310,
8323,
310,
278,
16988,
297,
278,
3517,
931,
4331,
30004,
13,
1678,
584,
1853,
17874,
29900,
29901,
5785,
30004,
13,
30004,
13,
1678,
584,
3207,
17874,
29901,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
1678,
584,
1853,
17874,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
1588,
29901,
10995,
950,
3081,
30004,
13,
1678,
584,
1853,
1588,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29901,
349,
29963,
29899,
13519,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
9790,
29901,
14614,
1962,
3081,
310,
278,
349,
29963,
297,
13549,
30004,
13,
1678,
584,
1853,
9790,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29906,
10222,
29918,
262,
29901,
14614,
1881,
3081,
310,
278,
16988,
1788,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29906,
10222,
29918,
262,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29901,
14614,
1881,
3081,
310,
278,
16988,
1788,
297,
278,
3517,
931,
4331,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29901,
5785,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
10222,
29906,
29886,
29894,
29918,
449,
29900,
29901,
14614,
1962,
3081,
310,
278,
16988,
1788,
297,
278,
3517,
931,
4331,
30004,
13,
1678,
584,
1853,
349,
10222,
29906,
29886,
29894,
29918,
449,
29900,
29901,
5785,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
10222,
29906,
29886,
29894,
29918,
449,
29901,
14614,
1962,
3081,
310,
278,
16988,
1788,
30004,
13,
1678,
584,
1853,
349,
10222,
29906,
29886,
29894,
29918,
449,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
29886,
29894,
5824,
29901,
14614,
3081,
515,
278,
349,
29963,
1788,
304,
278,
16988,
1788,
30004,
13,
1678,
584,
1853,
349,
29886,
29894,
5824,
29901,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
349,
10222,
29901,
13681,
3081,
310,
278,
16988,
30004,
13,
1678,
584,
1853,
349,
10222,
29901,
5785,
30004,
13,
1678,
9995,
30004,
13,
30004,
13,
1678,
396,
17250,
2133,
310,
3153,
3651,
30004,
13,
30004,
13,
1678,
903,
29923,
29918,
29933,
1299,
353,
270,
29961,
29900,
29962,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
353,
270,
29961,
29896,
29962,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
353,
270,
29961,
29906,
29962,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
353,
270,
29961,
29941,
29962,
30004,
13,
1678,
903,
29925,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
449,
353,
270,
29961,
29946,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
353,
270,
29961,
29945,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
353,
270,
29961,
29953,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
353,
270,
29961,
29955,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
29933,
1299,
29918,
29874,
29918,
262,
353,
270,
29961,
29947,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
29933,
1299,
29918,
29890,
29918,
262,
353,
270,
29961,
29929,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
29933,
1299,
29918,
29883,
29918,
262,
353,
270,
29961,
29896,
29900,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
449,
353,
270,
29961,
29896,
29896,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
449,
353,
270,
29961,
29896,
29906,
29962,
30004,
13,
1678,
903,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
449,
353,
270,
29961,
29896,
29941,
29962,
30004,
13,
1678,
903,
29933,
1299,
29906,
29925,
29963,
29918,
29874,
29918,
449,
353,
270,
29961,
29896,
29946,
29962,
30004,
13,
1678,
903,
29933,
1299,
29906,
29925,
29963,
29918,
29890,
29918,
449,
353,
270,
29961,
29896,
29945,
29962,
30004,
13,
1678,
903,
29933,
1299,
29906,
29925,
29963,
29918,
29883,
29918,
449,
353,
270,
29961,
29896,
29953,
29962,
30004,
13,
1678,
903,
1187,
29918,
29933,
1299,
353,
270,
29961,
29896,
29955,
29962,
30004,
13,
1678,
903,
6156,
29907,
29918,
29882,
353,
270,
29961,
29896,
29947,
29962,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
353,
270,
29961,
29896,
29929,
29962,
30004,
13,
1678,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
353,
270,
29961,
29906,
29900,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
12696,
353,
270,
29961,
29906,
29896,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
2477,
353,
270,
29961,
29906,
29906,
29962,
30004,
13,
1678,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
12696,
353,
270,
29961,
29906,
29941,
29962,
30004,
13,
1678,
903,
29873,
29918,
2287,
3035,
353,
938,
29898,
14486,
29898,
29881,
29961,
29906,
29946,
12622,
30004,
13,
1678,
903,
29873,
29918,
6007,
1254,
13566,
353,
270,
29961,
29906,
29945,
29962,
30004,
13,
30004,
13,
1678,
396,
2994,
276,
428,
7329,
304,
4772,
975,
8323,
322,
766,
23367,
278,
16988,
30004,
13,
1678,
27760,
353,
29871,
29900,
29889,
29896,
30004,
13,
30004,
13,
1678,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
1195,
353,
903,
29925,
29963,
29906,
29933,
1299,
29918,
29883,
29918,
262,
29871,
396,
3080,
12539,
13681,
9151,
292,
3081,
30004,
13,
1678,
903,
29925,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
1195,
353,
903,
29933,
1299,
29906,
29925,
29963,
29918,
29883,
29918,
449,
29871,
396,
3080,
12539,
13681,
766,
25389,
292,
3081,
30004,
13,
30004,
13,
1678,
396,
17250,
2133,
310,
3153,
3651,
30004,
13,
1678,
903,
29873,
311,
353,
903,
29873,
29918,
6007,
1254,
13566,
1405,
29871,
29900,
29871,
396,
29479,
2286,
304,
5039,
403,
278,
937,
29899,
2098,
931,
9055,
1543,
30004,
13,
1678,
396,
383,
7168,
310,
278,
937,
29899,
2098,
931,
9055,
1543,
30004,
13,
1678,
903,
615,
311,
353,
29871,
29896,
448,
7442,
29889,
4548,
6278,
29918,
6008,
847,
903,
29873,
29918,
6007,
1254,
13566,
8443,
13,
1678,
396,
3824,
931,
4331,
411,
4880,
304,
278,
7123,
931,
310,
278,
1788,
2761,
30004,
13,
1678,
903,
29873,
2962,
353,
7442,
29889,
27525,
398,
29898,
29906,
29892,
29871,
29896,
718,
903,
29873,
29918,
2287,
3035,
8443,
13,
1678,
903,
29873,
355,
353,
938,
7373,
29925,
29886,
29894,
29889,
2311,
8443,
13,
1678,
903,
386,
353,
29871,
29900,
30004,
13,
30004,
13,
1678,
903,
29923,
29918,
29933,
1299,
334,
29922,
29871,
29896,
29900,
29900,
29900,
29871,
396,
1281,
3259,
515,
399,
304,
26226,
30004,
13,
30004,
13,
1678,
903,
1187,
29918,
29933,
1299,
847,
29922,
29871,
29896,
29900,
29900,
30004,
13,
30004,
13,
1678,
396,
5399,
565,
278,
7123,
470,
3604,
1847,
931,
508,
367,
17262,
322,
731,
13449,
16205,
30004,
13,
1678,
565,
903,
6008,
6736,
313,
29941,
334,
903,
29873,
29918,
6007,
1254,
13566,
29897,
470,
903,
29873,
355,
1275,
29871,
29896,
29901,
30004,
13,
4706,
903,
29873,
2962,
353,
29871,
29896,
30004,
13,
4706,
323,
29918,
2287,
3035,
353,
7700,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
323,
29918,
2287,
3035,
353,
5852,
30004,
13,
30004,
13,
1678,
565,
903,
6008,
6736,
903,
29873,
29918,
2287,
3035,
718,
29871,
29941,
334,
903,
29873,
29918,
6007,
1254,
13566,
29901,
30004,
13,
4706,
11368,
14632,
4214,
353,
7700,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
11368,
14632,
4214,
353,
5852,
30004,
13,
30004,
13,
1678,
363,
260,
297,
3464,
7373,
29873,
2962,
448,
29871,
29896,
29892,
903,
29873,
355,
1125,
30004,
13,
30004,
13,
4706,
396,
24836,
2793,
310,
278,
16988,
297,
278,
3517,
931,
4331,
30004,
13,
4706,
382,
29918,
29890,
29900,
353,
903,
29879,
542,
29900,
334,
903,
29923,
29918,
29933,
1299,
30004,
13,
30004,
13,
4706,
396,
17157,
14614,
1962,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
304,
4612,
278,
14614,
3081,
9667,
30004,
13,
4706,
565,
323,
29918,
2287,
3035,
29901,
30004,
13,
9651,
349,
29918,
29886,
29894,
5824,
353,
7442,
29889,
1195,
12539,
7373,
29925,
562,
29961,
29873,
448,
903,
29873,
29918,
2287,
3035,
1402,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
4706,
1683,
29901,
30004,
13,
9651,
349,
29918,
29886,
29894,
5824,
353,
7442,
29889,
1195,
12539,
7373,
29925,
562,
29961,
29873,
1402,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
4706,
396,
21981,
1891,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
4706,
6499,
29894,
29906,
562,
353,
349,
29918,
29886,
29894,
5824,
847,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
4706,
396,
17157,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
4706,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
353,
349,
29918,
29886,
29894,
5824,
718,
9423,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
449,
334,
6499,
29894,
29906,
562,
3579,
30004,
13,
462,
18884,
29906,
718,
903,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
449,
334,
6499,
29894,
29906,
562,
718,
903,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
449,
8443,
13,
30004,
13,
4706,
396,
2538,
333,
950,
3081,
30004,
13,
4706,
565,
323,
29918,
2287,
3035,
29901,
30004,
13,
9651,
349,
29918,
19080,
29894,
353,
903,
29925,
29886,
29894,
29961,
29873,
448,
903,
29873,
29918,
2287,
3035,
29962,
448,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
349,
29918,
19080,
29894,
353,
903,
29925,
29886,
29894,
29961,
29873,
29962,
448,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
30004,
13,
30004,
13,
4706,
396,
5399,
565,
278,
16988,
8640,
3307,
443,
3880,
13284,
363,
9151,
292,
470,
766,
25389,
292,
30004,
13,
4706,
396,
2661,
326,
630,
5253,
310,
5864,
393,
338,
19056,
304,
470,
766,
25389,
287,
515,
278,
8635,
5190,
22993,
13,
4706,
382,
29918,
5824,
29918,
19080,
29894,
353,
349,
29918,
19080,
29894,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
4706,
6756,
13,
4706,
396,
4367,
24551,
349,
29918,
5824,
304,
4772,
975,
9151,
292,
310,
278,
16988,
30004,
13,
4706,
565,
382,
29918,
5824,
29918,
19080,
29894,
1405,
29871,
29900,
322,
382,
29918,
5824,
29918,
19080,
29894,
1405,
9423,
29923,
29918,
29933,
1299,
448,
382,
29918,
29890,
29900,
1125,
30004,
13,
9651,
349,
29918,
19080,
29894,
353,
5135,
29918,
29923,
29918,
29933,
1299,
448,
382,
29918,
29890,
29900,
29897,
334,
29871,
29941,
29953,
29900,
29900,
29897,
847,
903,
6008,
30004,
13,
4706,
396,
1932,
9151,
292,
2125,
278,
26385,
7329,
964,
3633,
30004,
13,
4706,
25342,
382,
29918,
5824,
29918,
19080,
29894,
529,
29871,
29900,
322,
7442,
29889,
6897,
29898,
29923,
29918,
5824,
29918,
19080,
29894,
29897,
1405,
313,
29923,
29918,
29890,
29900,
1125,
30004,
13,
9651,
349,
29918,
19080,
29894,
353,
5135,
29923,
29918,
29890,
29900,
29897,
334,
29871,
29941,
29953,
29900,
29900,
847,
903,
6008,
29897,
334,
313,
29896,
29899,
29725,
8443,
13,
4706,
6756,
13,
4706,
396,
3826,
2459,
565,
278,
16988,
881,
367,
20139,
470,
766,
25389,
287,
30004,
13,
4706,
565,
349,
29918,
19080,
29894,
1405,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
1195,
322,
903,
29879,
542,
29900,
529,
29871,
29896,
448,
903,
386,
334,
313,
29896,
448,
903,
6156,
29907,
29918,
29882,
1125,
30004,
13,
9651,
14550,
30004,
13,
9651,
450,
1833,
1840,
266,
16395,
29896,
29899,
6156,
29907,
29918,
29882,
29897,
4772,
29879,
278,
5136,
362,
1546,
30004,
13,
9651,
9151,
292,
322,
2317,
1609,
4464,
2861,
304,
278,
13681,
3081,
27430,
310,
278,
30004,
13,
9651,
16988,
29105,
746,
278,
16988,
338,
8072,
20139,
29889,
450,
16988,
30004,
13,
9651,
674,
451,
367,
337,
25389,
287,
2745,
278,
7791,
29907,
20074,
2400,
278,
7791,
29907,
29899,
386,
12268,
30004,
13,
9651,
313,
6156,
29907,
29918,
29882,
29897,
363,
337,
25389,
292,
515,
349,
29963,
22993,
13,
9651,
14550,
30004,
13,
9651,
396,
678,
1191,
292,
3081,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
349,
29918,
19080,
29894,
30004,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
9151,
292,
3081,
2861,
304,
5073,
653,
29668,
800,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
718,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
8443,
13,
30004,
13,
9651,
396,
9628,
277,
278,
9151,
292,
3081,
304,
278,
7472,
9151,
292,
3081,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
1195,
12539,
29898,
29925,
29918,
29886,
29894,
29906,
10222,
29918,
262,
29892,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
9151,
292,
3081,
2861,
304,
278,
3604,
1847,
931,
30004,
13,
9651,
396,
313,
8513,
839,
491,
263,
937,
29899,
2098,
931,
9055,
1543,
8443,
13,
9651,
565,
11368,
14632,
4214,
29901,
30004,
13,
18884,
565,
260,
1405,
29871,
29900,
29901,
30004,
13,
462,
1678,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
903,
29873,
311,
334,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29961,
29873,
29899,
29896,
29962,
718,
903,
29873,
311,
334,
313,
30004,
13,
462,
4706,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
448,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29961,
29873,
29899,
29896,
2314,
334,
903,
615,
311,
718,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
334,
313,
1333,
903,
29873,
311,
8443,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
903,
29873,
311,
334,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
718,
903,
29873,
311,
334,
320,
30004,
13,
462,
4706,
313,
29925,
29918,
29886,
29894,
29906,
10222,
29918,
262,
448,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
29897,
334,
320,
30004,
13,
462,
4706,
903,
615,
311,
718,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
334,
313,
1333,
903,
29873,
311,
8443,
13,
30004,
13,
9651,
396,
9628,
277,
278,
9151,
292,
3081,
304,
278,
1857,
3081,
1962,
310,
278,
349,
29963,
15299,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
7442,
29889,
1195,
12539,
29898,
29925,
29918,
29886,
29894,
29906,
10222,
29918,
262,
29892,
903,
29925,
29886,
29894,
29961,
29873,
2314,
30004,
13,
30004,
13,
9651,
396,
21981,
1891,
9151,
292,
3081,
30004,
13,
9651,
6499,
29894,
29906,
10222,
353,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
847,
903,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
9651,
396,
13681,
3081,
310,
278,
16988,
30004,
13,
9651,
349,
29918,
10222,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
448,
9423,
29925,
29963,
29906,
29933,
1299,
29918,
29874,
29918,
262,
334,
30004,
13,
462,
462,
462,
6499,
29894,
29906,
10222,
1068,
29906,
718,
903,
29925,
29963,
29906,
29933,
1299,
29918,
29890,
29918,
262,
334,
6499,
29894,
29906,
10222,
718,
903,
29925,
29963,
29906,
29933,
1299,
29918,
29883,
29918,
262,
876,
30004,
13,
30004,
13,
9651,
396,
8195,
1891,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
353,
903,
29925,
29886,
29894,
29961,
29873,
29962,
448,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
30004,
13,
9651,
396,
9628,
277,
278,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
353,
7442,
29889,
1195,
12539,
29898,
29925,
29918,
29886,
29894,
29906,
562,
29918,
262,
29892,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
9651,
396,
3599,
284,
1810,
403,
349,
29886,
29894,
29898,
29873,
29897,
411,
9078,
349,
29963,
29906,
2477,
1881,
3081,
30004,
13,
9651,
903,
29925,
29886,
29894,
29961,
29873,
29962,
353,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
718,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
30004,
13,
9651,
396,
21981,
1891,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
9651,
6499,
29894,
29906,
562,
353,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
847,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
9651,
396,
8195,
1891,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
562,
29918,
449,
353,
7442,
29889,
27525,
398,
29898,
30004,
13,
462,
29900,
29892,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
448,
9423,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
334,
6499,
29894,
29906,
562,
1068,
29906,
718,
903,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
334,
6499,
29894,
29906,
562,
718,
903,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
876,
30004,
13,
9651,
349,
29918,
29886,
29894,
5824,
353,
349,
29918,
29886,
29894,
29906,
562,
29918,
449,
30004,
13,
30004,
13,
9651,
396,
17934,
278,
2186,
1819,
30004,
13,
9651,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29961,
29873,
29962,
353,
349,
29918,
29886,
29894,
29906,
562,
29918,
449,
30004,
13,
9651,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29900,
353,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
9651,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29961,
29873,
29962,
353,
349,
29918,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
19080,
29894,
529,
448,
29918,
29925,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
1195,
322,
903,
29879,
542,
29900,
1405,
29871,
29900,
29901,
30004,
13,
9651,
396,
17157,
766,
25389,
292,
3081,
310,
278,
16988,
30004,
13,
9651,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
353,
7442,
29889,
6897,
29898,
29925,
29918,
19080,
29894,
8443,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
766,
25389,
292,
3081,
2861,
304,
278,
5073,
653,
29668,
800,
30004,
13,
9651,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
718,
903,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
8443,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
766,
25389,
292,
3081,
304,
278,
7472,
766,
25389,
292,
3081,
30004,
13,
9651,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
353,
7442,
29889,
1195,
12539,
29898,
29925,
29918,
10222,
29906,
29886,
29894,
29918,
449,
29892,
903,
29925,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
449,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
9651,
396,
2087,
5143,
278,
766,
25389,
292,
3081,
2861,
304,
278,
3604,
1847,
931,
30004,
13,
9651,
396,
313,
8513,
839,
491,
263,
937,
29899,
2098,
931,
9055,
1543,
8443,
13,
9651,
565,
11368,
14632,
4214,
29901,
30004,
13,
18884,
565,
260,
1405,
29871,
29900,
29901,
30004,
13,
462,
1678,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
353,
903,
29873,
311,
334,
903,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29961,
29873,
29899,
29896,
29962,
718,
903,
29873,
311,
334,
313,
29925,
29918,
10222,
29906,
29886,
29894,
29918,
449,
448,
903,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29961,
29873,
29899,
29896,
2314,
334,
903,
615,
311,
718,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
334,
313,
1333,
903,
29873,
311,
8443,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
353,
903,
29873,
311,
334,
903,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29900,
718,
903,
29873,
311,
334,
313,
29925,
29918,
10222,
29906,
29886,
29894,
29918,
449,
448,
903,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29900,
29897,
334,
903,
615,
311,
718,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
334,
313,
1333,
903,
29873,
311,
8443,
13,
9651,
6756,
13,
9651,
396,
3599,
284,
1810,
403,
349,
29886,
29894,
29898,
29873,
29897,
411,
9078,
349,
29963,
29906,
2477,
1881,
3081,
30004,
13,
9651,
903,
29925,
29886,
29894,
29961,
29873,
29962,
353,
7442,
29889,
1195,
12539,
7373,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
334,
29871,
29896,
29900,
29900,
29900,
29892,
903,
29925,
29886,
29894,
29961,
29873,
2314,
30004,
13,
30004,
13,
9651,
396,
9628,
277,
278,
766,
25389,
292,
3081,
304,
278,
7472,
14614,
3081,
1962,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
9651,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
353,
7442,
29889,
1195,
12539,
7373,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
334,
29871,
29896,
29900,
29900,
29900,
448,
903,
29925,
29886,
29894,
29961,
29873,
1402,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
8443,
13,
30004,
13,
9651,
396,
21981,
1891,
766,
25389,
292,
3081,
30004,
13,
9651,
282,
10222,
29906,
29886,
29894,
353,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
847,
903,
29925,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
449,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
9651,
396,
13681,
3081,
310,
278,
16988,
15201,
491,
278,
350,
1299,
29906,
29925,
29963,
11301,
28495,
30004,
13,
9651,
349,
29918,
10222,
353,
448,
29896,
16395,
29925,
29918,
10222,
29906,
29886,
29894,
29918,
449,
29974,
7373,
29933,
1299,
29906,
29925,
29963,
29918,
29874,
29918,
449,
334,
282,
10222,
29906,
29886,
29894,
1068,
29906,
718,
903,
29933,
1299,
29906,
29925,
29963,
29918,
29890,
29918,
449,
334,
282,
10222,
29906,
29886,
29894,
718,
903,
29933,
1299,
29906,
29925,
29963,
29918,
29883,
29918,
449,
876,
30004,
13,
30004,
13,
9651,
396,
8195,
1891,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
353,
903,
29925,
29886,
29894,
29961,
29873,
29962,
718,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
30004,
13,
30004,
13,
9651,
396,
21981,
1891,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
9651,
6499,
29894,
29906,
562,
353,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
847,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
9651,
396,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
9651,
349,
29918,
29886,
29894,
5824,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
349,
29918,
29886,
29894,
29906,
562,
29918,
262,
29899,
7373,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
334,
6499,
29894,
29906,
562,
1068,
29906,
718,
903,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
334,
6499,
29894,
29906,
562,
718,
903,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
876,
30004,
13,
9651,
349,
29918,
29886,
29894,
29906,
562,
29918,
449,
353,
349,
29918,
29886,
29894,
5824,
30004,
13,
30004,
13,
9651,
396,
17934,
278,
2186,
1819,
30004,
13,
9651,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29961,
29873,
29962,
353,
349,
29918,
29886,
29894,
29906,
562,
29918,
449,
30004,
13,
9651,
903,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29900,
353,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
30004,
13,
9651,
903,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29961,
29873,
29962,
353,
349,
29918,
10222,
29906,
29886,
29894,
29918,
449,
30004,
13,
30004,
13,
4706,
1683,
29901,
29871,
396,
2448,
2121,
9151,
292,
3643,
766,
25389,
292,
310,
278,
16988,
30004,
13,
30004,
13,
9651,
396,
3789,
278,
13681,
3081,
310,
278,
16988,
304,
5225,
30004,
13,
9651,
349,
29918,
10222,
353,
29871,
29900,
30004,
13,
30004,
13,
9651,
396,
9628,
277,
278,
3081,
1962,
310,
278,
349,
29963,
15299,
304,
278,
7472,
1881,
3081,
30004,
13,
9651,
396,
310,
278,
349,
29963,
297,
13549,
30004,
13,
9651,
903,
29925,
29886,
29894,
29961,
29873,
29962,
353,
7442,
29889,
1195,
12539,
7373,
29925,
29886,
29894,
29961,
29873,
1402,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
334,
29871,
29896,
29900,
29900,
29900,
8443,
13,
30004,
13,
9651,
396,
21981,
1891,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
9651,
6499,
29894,
29906,
562,
353,
903,
29925,
29886,
29894,
29961,
29873,
29962,
847,
903,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
9651,
396,
8195,
1891,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
9651,
349,
29918,
29886,
29894,
5824,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29886,
29894,
29961,
29873,
29962,
448,
9423,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
334,
6499,
29894,
29906,
562,
1068,
29906,
718,
903,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
334,
6499,
29894,
29906,
562,
718,
903,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
876,
30004,
13,
30004,
13,
9651,
396,
17934,
278,
2186,
1819,
30004,
13,
9651,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29961,
29873,
29962,
353,
349,
29918,
29886,
29894,
5824,
30004,
13,
30004,
13,
4706,
396,
3826,
2459,
565,
278,
2317,
1609,
4464,
338,
6136,
30004,
13,
4706,
565,
349,
29918,
10222,
1275,
29871,
29900,
322,
903,
29879,
542,
29900,
5277,
29871,
29900,
29901,
29871,
396,
6679,
1609,
4464,
297,
766,
25389,
287,
2106,
30004,
13,
30004,
13,
9651,
396,
13681,
3081,
27430,
310,
278,
16988,
29105,
30004,
13,
9651,
349,
29918,
10222,
353,
448,
9302,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
12696,
8443,
13,
9651,
565,
349,
29918,
29886,
29894,
5824,
1275,
29871,
29900,
29901,
30004,
13,
18884,
349,
29918,
29886,
29894,
5824,
353,
448,
29918,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
2477,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
10222,
1275,
29871,
29900,
322,
349,
29918,
29886,
29894,
5824,
1405,
29871,
29900,
322,
903,
29879,
542,
29900,
1405,
29871,
29900,
29901,
29871,
396,
6679,
1609,
4464,
297,
8072,
20139,
2106,
30004,
13,
30004,
13,
9651,
396,
13681,
3081,
27430,
310,
278,
16988,
29105,
30004,
13,
9651,
349,
29918,
10222,
353,
448,
9302,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
12696,
8443,
13,
30004,
13,
4706,
396,
17934,
278,
16387,
14614,
3081,
310,
278,
16988,
1788,
322,
30004,
13,
4706,
396,
278,
13681,
3081,
310,
278,
16988,
30004,
13,
4706,
903,
29925,
29886,
29894,
5824,
29961,
29873,
29962,
353,
349,
29918,
29886,
29894,
5824,
30004,
13,
4706,
903,
29925,
10222,
29961,
29873,
29962,
353,
349,
29918,
10222,
30004,
13,
30004,
13,
4706,
396,
10726,
278,
5864,
2793,
310,
278,
16988,
399,
29916,
304,
806,
9678,
601,
30004,
13,
4706,
565,
349,
29918,
10222,
1405,
29871,
29900,
29901,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
334,
7442,
29889,
3676,
7373,
1187,
29918,
29933,
1299,
29897,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
30004,
13,
4706,
25342,
349,
29918,
10222,
529,
29871,
29900,
29901,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
718,
349,
29918,
10222,
847,
7442,
29889,
3676,
7373,
1187,
29918,
29933,
1299,
29897,
334,
903,
6008,
847,
29871,
29941,
29953,
29900,
29900,
30004,
13,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
382,
29918,
29890,
353,
382,
29918,
29890,
29900,
30004,
13,
30004,
13,
4706,
396,
20535,
403,
278,
2106,
310,
8323,
310,
278,
16988,
30004,
13,
4706,
903,
29879,
542,
29900,
353,
382,
29918,
29890,
847,
9423,
29923,
29918,
29933,
1299,
8443,
13,
4706,
903,
29879,
542,
29961,
29873,
29962,
353,
903,
29879,
542,
29900,
30004,
13,
30004,
13,
4706,
396,
2087,
5143,
278,
298,
858,
261,
6656,
16897,
304,
4772,
5136,
362,
30004,
13,
4706,
396,
1546,
9151,
292,
322,
2317,
1609,
4464,
2861,
304,
278,
13681,
3081,
30004,
13,
4706,
396,
27430,
310,
278,
16988,
29105,
22993,
13,
4706,
565,
903,
386,
322,
903,
29879,
542,
29961,
29873,
29962,
1405,
903,
6156,
29907,
29918,
29882,
470,
903,
29879,
542,
29961,
29873,
29962,
1405,
29871,
29896,
29901,
30004,
13,
9651,
903,
386,
353,
5852,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
903,
386,
353,
7700,
30004,
13,
30004,
13,
1678,
736,
903,
29879,
542,
29892,
903,
29879,
542,
29900,
29892,
903,
29925,
29886,
29894,
29892,
903,
29925,
29886,
29894,
5824,
29892,
903,
29925,
10222,
29892,
903,
29925,
29886,
29894,
29906,
562,
29918,
449,
29892,
903,
29925,
10222,
29906,
29886,
29894,
29918,
449,
29892,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
30004,
13,
30004,
13,
1753,
17152,
29918,
690,
29918,
1545,
7373,
15501,
29892,
903,
3247,
29892,
903,
29925,
29886,
29894,
29892,
903,
29925,
10222,
29892,
903,
6008,
29892,
334,
5085,
1125,
30004,
13,
1678,
9995,
6678,
363,
25202,
5864,
25470,
30004,
13,
30004,
13,
1678,
584,
3207,
903,
15501,
29901,
3443,
310,
278,
1788,
30004,
13,
1678,
584,
1853,
903,
15501,
29901,
9657,
30004,
13,
1678,
584,
3207,
903,
3247,
29901,
2254,
3081,
30004,
13,
1678,
584,
1853,
903,
3247,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
903,
29925,
29886,
29894,
29901,
1962,
3081,
310,
278,
349,
29963,
15299,
30004,
13,
1678,
584,
1853,
903,
29925,
29886,
29894,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
903,
29925,
10222,
29901,
13681,
3081,
310,
278,
16988,
30004,
13,
1678,
584,
1853,
903,
29925,
10222,
29901,
12655,
1409,
30004,
13,
1678,
584,
3207,
903,
6008,
29901,
931,
4331,
2920,
30004,
13,
1678,
584,
1853,
903,
6008,
29901,
6043,
30004,
13,
1678,
584,
2457,
29901,
5864,
25470,
30004,
13,
1678,
584,
29878,
1853,
29901,
9657,
30004,
13,
1678,
9995,
30004,
13,
1678,
903,
29923,
353,
9657,
26471,
13,
30004,
13,
1678,
565,
903,
15501,
1839,
7031,
2033,
1275,
525,
2477,
2396,
29871,
396,
14614,
29899,
16589,
552,
29881,
6757,
30004,
13,
30004,
13,
4706,
903,
29925,
29886,
4270,
353,
6389,
29961,
29900,
29962,
29871,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
1788,
30004,
13,
4706,
903,
29925,
5824,
353,
6389,
29961,
29896,
29962,
29871,
396,
14614,
3081,
310,
278,
16988,
1788,
30004,
13,
4706,
396,
3462,
3245,
3081,
27430,
310,
278,
916,
1788,
7117,
30004,
13,
4706,
903,
29925,
546,
29875,
353,
6389,
29961,
29906,
29962,
30004,
13,
30004,
13,
1678,
25342,
903,
15501,
1839,
7031,
2033,
1275,
525,
12696,
29915,
470,
903,
15501,
1839,
7031,
2033,
1275,
525,
29925,
29963,
2396,
29871,
396,
13681,
29899,
322,
349,
29963,
29899,
16589,
552,
29881,
6757,
30004,
13,
30004,
13,
4706,
903,
29925,
29886,
29894,
29906,
562,
353,
6389,
29961,
29900,
29962,
29871,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
4706,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
353,
6389,
29961,
29896,
29962,
29871,
396,
10567,
3081,
310,
278,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
30004,
13,
4706,
903,
29925,
29886,
29894,
5824,
353,
6389,
29961,
29906,
29962,
29871,
396,
14614,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
396,
3462,
3245,
3081,
27430,
310,
278,
916,
1788,
7117,
30004,
13,
4706,
903,
29925,
546,
29875,
353,
6389,
29961,
29941,
29962,
30004,
13,
30004,
13,
4706,
903,
29925,
29886,
29894,
29906,
562,
29918,
262,
353,
903,
29925,
29886,
29894,
448,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
29871,
396,
10567,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
30004,
13,
1678,
396,
14990,
2254,
3704,
278,
3081,
27430,
310,
278,
916,
1788,
7117,
30004,
13,
1678,
903,
29925,
1896,
353,
903,
3247,
718,
903,
29925,
546,
29875,
30004,
13,
1678,
396,
13681,
1881,
3081,
310,
278,
16988,
313,
25389,
287,
8443,
13,
1678,
903,
29925,
10222,
262,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
10222,
8443,
13,
1678,
396,
13681,
1962,
3081,
310,
278,
16988,
313,
29881,
783,
1191,
287,
8443,
13,
1678,
903,
29925,
10222,
449,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
903,
29925,
10222,
8443,
13,
1678,
396,
5918,
12539,
349,
29963,
8343,
29899,
262,
3081,
30004,
13,
1678,
903,
29925,
29918,
562,
29906,
29887,
29918,
3317,
353,
903,
15501,
1839,
29886,
29918,
562,
29906,
29887,
29918,
3317,
2033,
334,
903,
15501,
1839,
29925,
29918,
29925,
29963,
2033,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
30004,
13,
1678,
565,
903,
15501,
1839,
7031,
2033,
1275,
525,
2477,
2396,
29871,
396,
14614,
29899,
16589,
552,
29881,
6757,
30004,
13,
30004,
13,
4706,
396,
2538,
333,
950,
3081,
1728,
3151,
18237,
358,
30004,
13,
4706,
903,
4040,
353,
903,
29925,
29886,
4270,
448,
903,
29925,
1896,
30004,
13,
4706,
396,
14614,
1881,
3081,
310,
278,
16988,
1788,
30004,
13,
4706,
903,
29925,
562,
29906,
5824,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
5824,
8443,
13,
4706,
396,
14614,
1962,
3081,
310,
278,
16988,
1788,
30004,
13,
4706,
903,
29925,
5824,
29906,
562,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
903,
29925,
5824,
8443,
13,
4706,
396,
12610,
1230,
10995,
950,
3081,
313,
690,
333,
950,
2254,
9667,
8443,
13,
4706,
903,
4040,
29876,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
903,
4040,
8443,
13,
4706,
396,
10321,
3321,
10995,
950,
3081,
313,
7610,
11242,
349,
29963,
3081,
8443,
13,
4706,
903,
4040,
29886,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
903,
4040,
8443,
13,
4706,
396,
8797,
671,
310,
349,
29963,
3081,
491,
278,
2254,
30004,
13,
4706,
903,
29925,
29886,
4270,
29906,
29880,
353,
7442,
29889,
1195,
12539,
7373,
29925,
29886,
4270,
29892,
903,
29925,
1896,
8443,
13,
4706,
396,
349,
29963,
9151,
292,
3081,
30004,
13,
4706,
903,
29925,
29886,
4270,
29906,
5824,
353,
7442,
29889,
1195,
12539,
7373,
4040,
29886,
29892,
903,
29925,
562,
29906,
5824,
8443,
13,
4706,
396,
11657,
9151,
292,
3081,
30004,
13,
4706,
903,
29925,
29887,
29906,
5824,
353,
7442,
29889,
27525,
398,
7373,
29925,
562,
29906,
5824,
448,
903,
4040,
29886,
29892,
29871,
29900,
8443,
13,
4706,
396,
11657,
11421,
3081,
310,
278,
2254,
30004,
13,
4706,
903,
29925,
29887,
29906,
29880,
353,
7442,
29889,
1195,
12539,
7373,
4040,
29876,
448,
903,
29925,
5824,
29906,
562,
29892,
29871,
29900,
8443,
13,
4706,
396,
350,
2620,
29891,
11421,
3081,
310,
278,
2254,
30004,
13,
4706,
903,
29925,
5824,
29906,
29880,
353,
7442,
29889,
27525,
398,
7373,
4040,
29876,
29892,
903,
29925,
5824,
29906,
562,
8443,
13,
4706,
396,
350,
2620,
29891,
8343,
29899,
262,
3081,
30004,
13,
4706,
903,
29925,
5824,
29906,
29887,
353,
7442,
29889,
1195,
12539,
7373,
29925,
5824,
29906,
562,
448,
903,
4040,
29876,
29892,
29871,
29900,
8443,
13,
4706,
396,
349,
29963,
8343,
29899,
262,
3081,
3704,
3151,
18237,
358,
30004,
13,
4706,
903,
29925,
29886,
4270,
29906,
29887,
353,
7442,
29889,
1195,
12539,
29898,
9302,
29889,
27525,
398,
7373,
4040,
29886,
448,
903,
29925,
562,
29906,
5824,
29892,
29871,
29900,
511,
903,
29925,
29918,
562,
29906,
29887,
29918,
3317,
8443,
13,
4706,
396,
9206,
9667,
515,
278,
6856,
30004,
13,
4706,
903,
29925,
29887,
29906,
562,
353,
903,
29925,
29887,
29906,
29880,
448,
903,
29925,
29887,
29906,
5824,
30004,
13,
4706,
396,
5169,
287,
29899,
262,
3081,
304,
278,
6856,
30004,
13,
4706,
903,
29925,
562,
29906,
29887,
353,
903,
29925,
29886,
4270,
29906,
29887,
448,
903,
29925,
5824,
29906,
29887,
30004,
13,
4706,
396,
11657,
3081,
30004,
13,
4706,
903,
29925,
29887,
353,
903,
29925,
562,
29906,
29887,
718,
903,
29925,
29887,
29906,
562,
30004,
13,
4706,
396,
10837,
941,
2356,
349,
29963,
3081,
313,
2477,
1962,
3081,
8443,
13,
4706,
903,
29925,
312,
353,
7442,
29889,
27525,
398,
7373,
4040,
29886,
448,
903,
29925,
562,
29906,
5824,
29892,
29871,
29900,
29897,
448,
903,
29925,
29886,
4270,
29906,
29887,
30004,
13,
4706,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
1788,
3704,
3151,
18237,
358,
30004,
13,
4706,
903,
29925,
29886,
4270,
353,
903,
29925,
29886,
4270,
448,
903,
29925,
312,
30004,
13,
4706,
396,
2538,
333,
950,
3081,
3704,
3151,
18237,
358,
30004,
13,
4706,
903,
4040,
353,
903,
29925,
29886,
4270,
448,
903,
29925,
1896,
30004,
13,
4706,
396,
11374,
363,
349,
29963,
3151,
18237,
358,
30004,
13,
4706,
903,
13140,
353,
7442,
29889,
3062,
7373,
29925,
312,
1405,
29871,
29900,
9601,
29900,
29962,
30004,
13,
30004,
13,
4706,
363,
474,
297,
3464,
29898,
2435,
7373,
13140,
22164,
30004,
13,
30004,
13,
9651,
903,
29873,
312,
353,
903,
13140,
29961,
29875,
29962,
30004,
13,
9651,
396,
21981,
1891,
1962,
3081,
310,
278,
349,
29963,
297,
13549,
30004,
13,
9651,
903,
407,
3845,
29894,
449,
353,
903,
29925,
29886,
4270,
28513,
29873,
312,
29962,
847,
903,
15501,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
9651,
396,
13681,
1962,
3081,
310,
278,
349,
29963,
15299,
5622,
964,
3633,
278,
30004,
13,
9651,
396,
11301,
322,
3151,
18237,
358,
28495,
30004,
13,
9651,
903,
29925,
29886,
29894,
28513,
29873,
312,
29962,
353,
903,
29925,
29886,
4270,
28513,
29873,
312,
29962,
718,
9423,
15501,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
449,
2033,
334,
903,
407,
3845,
29894,
449,
3579,
30004,
13,
462,
462,
308,
29906,
718,
903,
15501,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
449,
2033,
334,
903,
407,
3845,
29894,
449,
718,
903,
15501,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
449,
2033,
8443,
13,
30004,
13,
1678,
25342,
903,
15501,
1839,
7031,
2033,
1275,
525,
12696,
29915,
470,
903,
15501,
1839,
7031,
2033,
1275,
525,
29925,
29963,
2396,
29871,
396,
13681,
29899,
322,
349,
29963,
29899,
16589,
552,
29881,
6757,
30004,
13,
30004,
13,
4706,
396,
11657,
3081,
9667,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
903,
29925,
29887,
29906,
29886,
29894,
5824,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
903,
29925,
29886,
29894,
5824,
8443,
13,
4706,
396,
14614,
1881,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
903,
29925,
562,
29906,
29886,
29894,
5824,
353,
903,
29925,
29887,
29906,
29886,
29894,
5824,
30004,
13,
4706,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
903,
29925,
29886,
29894,
5824,
29906,
562,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29886,
29894,
5824,
8443,
13,
4706,
396,
16012,
11421,
3081,
491,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
903,
29925,
29886,
29894,
5824,
29906,
29880,
353,
7442,
29889,
1195,
12539,
7373,
29925,
1896,
29892,
903,
29925,
29886,
29894,
5824,
29906,
562,
8443,
13,
4706,
396,
16012,
11421,
3081,
491,
278,
6856,
30004,
13,
4706,
903,
29925,
29887,
29906,
29880,
353,
903,
29925,
1896,
448,
903,
29925,
29886,
29894,
5824,
29906,
29880,
30004,
13,
4706,
396,
8797,
671,
310,
349,
29963,
3081,
491,
278,
2254,
30004,
13,
4706,
903,
29925,
29886,
29894,
29906,
29880,
353,
7442,
29889,
1195,
12539,
7373,
29925,
1896,
29892,
903,
29925,
29886,
29894,
29906,
562,
8443,
13,
4706,
396,
349,
29963,
8343,
29899,
262,
3081,
3704,
3151,
18237,
358,
30004,
13,
4706,
903,
29925,
29886,
29894,
29906,
29887,
353,
7442,
29889,
1195,
12539,
7373,
29925,
29886,
29894,
29906,
562,
448,
903,
29925,
29886,
29894,
29906,
29880,
29892,
903,
29925,
29918,
562,
29906,
29887,
29918,
3317,
8443,
13,
4706,
396,
10837,
941,
2356,
349,
29963,
3081,
313,
2477,
1962,
3081,
8443,
13,
4706,
903,
29925,
312,
353,
903,
29925,
29886,
29894,
29906,
562,
448,
903,
29925,
29886,
29894,
29906,
29880,
448,
903,
29925,
29886,
29894,
29906,
29887,
30004,
13,
30004,
13,
4706,
565,
7442,
29889,
2083,
7373,
29925,
312,
29897,
1405,
29871,
29900,
29901,
30004,
13,
9651,
396,
9206,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
3704,
3151,
18237,
358,
30004,
13,
9651,
903,
29925,
29886,
29894,
5824,
353,
903,
29925,
29886,
29894,
5824,
448,
903,
29925,
312,
30004,
13,
9651,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
3704,
3151,
18237,
358,
30004,
13,
9651,
903,
29925,
29886,
29894,
5824,
29906,
562,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29886,
29894,
5824,
8443,
13,
9651,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
3704,
3151,
18237,
358,
30004,
13,
9651,
903,
29925,
29886,
29894,
29906,
562,
353,
903,
29925,
29886,
29894,
29906,
562,
448,
903,
29925,
312,
30004,
13,
9651,
396,
11374,
363,
349,
29963,
3151,
18237,
358,
30004,
13,
9651,
903,
13140,
353,
7442,
29889,
3062,
7373,
29925,
312,
1405,
29871,
29900,
9601,
29900,
29962,
30004,
13,
30004,
13,
9651,
363,
474,
297,
3464,
29898,
2435,
7373,
13140,
22164,
30004,
13,
30004,
13,
18884,
903,
29873,
312,
353,
903,
13140,
29961,
29875,
29962,
30004,
13,
18884,
396,
21220,
14614,
1962,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
30004,
13,
18884,
903,
407,
29894,
29906,
562,
353,
903,
29925,
29886,
29894,
29906,
562,
28513,
29873,
312,
29962,
847,
903,
15501,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
847,
29871,
29896,
29900,
29900,
29900,
30004,
13,
18884,
396,
13681,
1881,
3081,
310,
278,
349,
29963,
29906,
2477,
11301,
2224,
1582,
3704,
3151,
18237,
358,
30004,
13,
18884,
903,
29925,
29886,
29894,
29906,
562,
29918,
262,
28513,
29873,
312,
29962,
353,
903,
29925,
29886,
29894,
29906,
562,
28513,
29873,
312,
29962,
718,
9423,
15501,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
449,
2033,
334,
903,
407,
29894,
29906,
562,
3579,
30004,
13,
462,
462,
462,
268,
29906,
718,
903,
15501,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
449,
2033,
334,
903,
407,
29894,
29906,
562,
718,
903,
15501,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
449,
2033,
8443,
13,
30004,
13,
9651,
396,
13681,
1962,
3081,
310,
278,
349,
29963,
15299,
3704,
3151,
18237,
358,
30004,
13,
9651,
903,
29925,
29886,
29894,
353,
903,
29925,
29886,
29894,
29906,
562,
29918,
262,
718,
903,
29925,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
30004,
13,
4706,
396,
11657,
3081,
3704,
3151,
18237,
358,
30004,
13,
4706,
903,
29925,
29887,
353,
903,
29925,
29886,
29894,
5824,
29899,
29918,
29925,
1896,
30004,
13,
4706,
396,
5169,
287,
29899,
262,
3081,
304,
278,
6856,
3704,
3151,
18237,
358,
30004,
13,
4706,
903,
29925,
562,
29906,
29887,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
29887,
8443,
13,
4706,
396,
9206,
9667,
515,
278,
6856,
30004,
13,
4706,
903,
29925,
29887,
29906,
562,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
903,
29925,
29887,
8443,
13,
30004,
13,
1678,
396,
24836,
25470,
297,
341,
25039,
30004,
13,
30004,
13,
1678,
396,
10513,
16888,
9667,
3704,
278,
5864,
27430,
310,
278,
916,
1788,
7117,
30004,
13,
1678,
903,
29923,
1839,
6489,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
1896,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
13681,
1962,
310,
278,
349,
29963,
15299,
3704,
3151,
18237,
358,
30004,
13,
1678,
903,
29923,
1839,
29923,
29886,
29894,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29886,
29894,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
13681,
1881,
310,
278,
16988,
313,
25389,
287,
8443,
13,
1678,
903,
29923,
1839,
29923,
10222,
262,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
10222,
262,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
13681,
1962,
310,
278,
16988,
313,
29881,
783,
1191,
287,
8443,
13,
1678,
903,
29923,
1839,
29923,
10222,
449,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
10222,
449,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
11657,
8343,
29899,
262,
30004,
13,
1678,
903,
29923,
1839,
29923,
562,
29906,
29887,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
562,
29906,
29887,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
11657,
9667,
30004,
13,
1678,
903,
29923,
1839,
29923,
29887,
29906,
562,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29887,
29906,
562,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
16012,
11421,
491,
278,
6856,
30004,
13,
1678,
903,
29923,
1839,
29923,
29887,
29906,
29880,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29887,
29906,
29880,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
4432,
392,
310,
278,
916,
1788,
7117,
30004,
13,
1678,
903,
29923,
1839,
29923,
546,
29875,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
546,
29875,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
10837,
941,
2356,
349,
29963,
5864,
30004,
13,
1678,
903,
29923,
1839,
29923,
312,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
312,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
30004,
13,
1678,
565,
903,
15501,
1839,
7031,
2033,
1275,
525,
2477,
2396,
29871,
396,
14614,
29899,
16589,
552,
29881,
6757,
30004,
13,
30004,
13,
4706,
396,
14614,
1962,
310,
278,
349,
29963,
1788,
3704,
3151,
18237,
358,
30004,
13,
4706,
903,
29923,
1839,
29923,
29886,
4270,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29886,
4270,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
14614,
1881,
310,
278,
16988,
1788,
30004,
13,
4706,
903,
29923,
1839,
29923,
562,
29906,
5824,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
562,
29906,
5824,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
14614,
1962,
310,
278,
16988,
1788,
30004,
13,
4706,
903,
29923,
1839,
29923,
5824,
29906,
562,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
5824,
29906,
562,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
8797,
671,
310,
349,
29963,
5864,
30004,
13,
4706,
903,
29923,
1839,
29923,
29886,
4270,
29906,
29880,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29886,
4270,
29906,
29880,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
349,
29963,
9151,
292,
30004,
13,
4706,
903,
29923,
1839,
29923,
29886,
4270,
29906,
5824,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29886,
4270,
29906,
5824,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
11657,
9151,
292,
30004,
13,
4706,
903,
29923,
1839,
29923,
29887,
29906,
5824,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29887,
29906,
5824,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
349,
29963,
8343,
29899,
262,
30004,
13,
4706,
903,
29923,
1839,
29923,
29886,
4270,
29906,
29887,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29886,
4270,
29906,
29887,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
16012,
11421,
491,
278,
16988,
1788,
30004,
13,
4706,
903,
29923,
1839,
29923,
5824,
29906,
29880,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
5824,
29906,
29880,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
350,
2620,
29891,
8343,
29899,
262,
30004,
13,
4706,
903,
29923,
1839,
29923,
5824,
29906,
29887,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
5824,
29906,
29887,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
30004,
13,
1678,
25342,
903,
15501,
1839,
7031,
2033,
1275,
525,
12696,
29915,
470,
903,
15501,
1839,
7031,
2033,
1275,
525,
29925,
29963,
2396,
29871,
396,
13681,
29899,
322,
349,
29963,
29899,
16589,
552,
29881,
6757,
30004,
13,
30004,
13,
4706,
396,
11657,
9667,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
903,
29923,
1839,
29923,
29887,
29906,
29886,
29894,
5824,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29887,
29906,
29886,
29894,
5824,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
14614,
1881,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
903,
29923,
1839,
29923,
562,
29906,
29886,
29894,
5824,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
562,
29906,
29886,
29894,
5824,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
14614,
1962,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
903,
29923,
1839,
29923,
29886,
29894,
5824,
29906,
562,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29886,
29894,
5824,
29906,
562,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
16012,
11421,
491,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
903,
29923,
1839,
29923,
29886,
29894,
5824,
29906,
29880,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29886,
29894,
5824,
29906,
29880,
876,
334,
903,
6008,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
30004,
13,
1678,
736,
903,
29923,
30004,
13,
30004,
13,
30004,
13,
1753,
17152,
29918,
690,
29918,
1545,
29918,
680,
284,
7373,
15501,
29892,
903,
3247,
29892,
903,
29925,
29886,
29894,
29892,
903,
29925,
10222,
29892,
903,
6008,
29892,
334,
5085,
1125,
30004,
13,
1678,
382,
353,
9657,
580,
29871,
396,
13343,
304,
3787,
5864,
25470,
30004,
13,
30004,
13,
1678,
565,
903,
15501,
1839,
7031,
2033,
1275,
525,
2477,
2396,
30004,
13,
4706,
349,
29886,
4270,
353,
6389,
29961,
29900,
29962,
29871,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
1788,
30004,
13,
4706,
349,
5824,
353,
6389,
29961,
29896,
29962,
29871,
396,
14614,
3081,
310,
278,
16988,
1788,
30004,
13,
4706,
349,
546,
29875,
353,
6389,
29961,
29906,
29962,
29871,
396,
3462,
3245,
3081,
27430,
310,
278,
916,
1788,
7117,
30004,
13,
30004,
13,
1678,
25342,
903,
15501,
1839,
7031,
2033,
1275,
525,
12696,
2396,
30004,
13,
4706,
349,
29886,
29894,
29906,
562,
353,
6389,
29961,
29900,
29962,
30004,
13,
4706,
349,
29886,
29894,
29906,
10222,
29918,
262,
353,
6389,
29961,
29896,
29962,
30004,
13,
4706,
349,
29886,
29894,
5824,
353,
6389,
29961,
29906,
29962,
30004,
13,
4706,
349,
546,
29875,
353,
6389,
29961,
29941,
29962,
30004,
13,
4706,
349,
29886,
29894,
29906,
562,
29918,
262,
353,
903,
29925,
29886,
29894,
448,
349,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
30004,
13,
1678,
396,
3462,
3245,
3081,
27430,
310,
278,
916,
1788,
7117,
30004,
13,
1678,
349,
546,
29875,
353,
7442,
29889,
3298,
359,
29918,
4561,
7373,
29925,
29886,
29894,
8443,
13,
1678,
396,
14990,
2254,
3704,
278,
3081,
27430,
310,
278,
916,
1788,
7117,
30004,
13,
1678,
1858,
29873,
353,
903,
3247,
30004,
13,
1678,
396,
13681,
1881,
3081,
310,
278,
16988,
313,
25389,
287,
8443,
13,
1678,
349,
10222,
262,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
903,
29925,
10222,
8443,
13,
1678,
396,
13681,
1962,
3081,
310,
278,
16988,
313,
29881,
783,
1191,
287,
8443,
13,
1678,
349,
10222,
449,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
903,
29925,
10222,
8443,
13,
30004,
13,
1678,
565,
903,
15501,
1839,
7031,
2033,
1275,
525,
2477,
2396,
30004,
13,
4706,
396,
11657,
3081,
30004,
13,
4706,
349,
29887,
353,
349,
29886,
4270,
448,
903,
3247,
448,
349,
5824,
30004,
13,
4706,
396,
2538,
333,
950,
3081,
30004,
13,
4706,
1588,
353,
349,
29886,
4270,
448,
1858,
29873,
30004,
13,
4706,
396,
14614,
1881,
3081,
310,
278,
16988,
1788,
30004,
13,
4706,
9790,
29906,
5824,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
349,
5824,
8443,
13,
4706,
396,
14614,
1962,
3081,
310,
278,
16988,
1788,
30004,
13,
4706,
349,
5824,
29906,
562,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
349,
5824,
8443,
13,
4706,
396,
12610,
1230,
10995,
950,
3081,
313,
690,
333,
950,
2254,
9667,
8443,
13,
4706,
1588,
29876,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
1588,
8443,
13,
4706,
396,
10321,
3321,
10995,
950,
3081,
313,
7610,
11242,
349,
29963,
3081,
8443,
13,
4706,
1588,
29886,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
1588,
8443,
13,
4706,
396,
8797,
671,
310,
349,
29963,
3081,
491,
278,
2254,
30004,
13,
4706,
349,
29886,
4270,
29906,
29880,
353,
7442,
29889,
1195,
12539,
29898,
29925,
29886,
4270,
29892,
1858,
29873,
8443,
13,
4706,
396,
349,
29963,
9151,
292,
3081,
30004,
13,
4706,
349,
29886,
4270,
29906,
5824,
29922,
9302,
29889,
1195,
12539,
29898,
4040,
29886,
29892,
9790,
29906,
5824,
8443,
13,
4706,
396,
11657,
9151,
292,
3081,
30004,
13,
4706,
349,
29887,
29906,
5824,
29922,
9302,
29889,
27525,
398,
29898,
29925,
562,
29906,
5824,
448,
1588,
29886,
29892,
29871,
29900,
8443,
13,
4706,
396,
11657,
11421,
3081,
310,
278,
2254,
30004,
13,
4706,
349,
29887,
29906,
29880,
29922,
9302,
29889,
1195,
12539,
29898,
4040,
29876,
448,
349,
5824,
29906,
562,
29892,
29871,
29900,
8443,
13,
4706,
396,
350,
2620,
29891,
11421,
3081,
310,
278,
2254,
30004,
13,
4706,
349,
5824,
29906,
29880,
29922,
9302,
29889,
27525,
398,
29898,
4040,
29876,
29892,
349,
5824,
29906,
562,
8443,
13,
4706,
396,
350,
2620,
29891,
8343,
29899,
262,
3081,
30004,
13,
4706,
349,
5824,
29906,
29887,
29922,
9302,
29889,
1195,
12539,
29898,
29925,
5824,
29906,
562,
448,
1588,
29876,
29892,
29871,
29900,
8443,
13,
4706,
396,
349,
29963,
8343,
29899,
262,
3081,
30004,
13,
4706,
349,
29886,
4270,
29906,
29887,
29922,
9302,
29889,
27525,
398,
29898,
4040,
29886,
448,
9790,
29906,
5824,
29892,
29871,
29900,
8443,
13,
30004,
13,
1678,
25342,
903,
15501,
1839,
7031,
2033,
1275,
525,
12696,
2396,
30004,
13,
4706,
396,
11657,
3081,
30004,
13,
4706,
349,
29887,
353,
349,
29886,
29894,
5824,
448,
903,
3247,
30004,
13,
4706,
396,
11657,
3081,
9667,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
349,
29887,
29906,
29886,
29894,
5824,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
349,
29886,
29894,
5824,
8443,
13,
4706,
396,
14614,
1881,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
9790,
29906,
29886,
29894,
5824,
353,
349,
29887,
29906,
29886,
29894,
5824,
30004,
13,
4706,
396,
14614,
1962,
3081,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
349,
29886,
29894,
5824,
29906,
562,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
349,
29886,
29894,
5824,
8443,
13,
4706,
396,
16012,
11421,
3081,
491,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
349,
29886,
29894,
5824,
29906,
29880,
353,
7442,
29889,
1195,
12539,
7373,
3247,
29892,
349,
29886,
29894,
5824,
29906,
562,
8443,
13,
4706,
396,
16012,
11421,
3081,
491,
278,
6856,
30004,
13,
4706,
349,
29887,
29906,
29880,
353,
313,
29925,
1896,
448,
349,
29886,
29894,
5824,
29906,
29880,
8443,
13,
30004,
13,
1678,
396,
10837,
941,
2356,
349,
29963,
3081,
313,
2477,
1962,
3081,
8443,
13,
1678,
349,
312,
353,
7442,
29889,
3298,
359,
29918,
4561,
7373,
29925,
29886,
29894,
8443,
13,
1678,
396,
9206,
9667,
515,
278,
6856,
30004,
13,
1678,
349,
29887,
29906,
562,
353,
7442,
29889,
1195,
12539,
29898,
29900,
29892,
349,
29887,
8443,
13,
1678,
396,
5169,
287,
29899,
262,
3081,
304,
278,
6856,
30004,
13,
1678,
9790,
29906,
29887,
29922,
9302,
29889,
27525,
398,
29898,
29900,
29892,
349,
29887,
8443,
13,
30004,
13,
1678,
396,
24836,
25470,
30004,
13,
30004,
13,
1678,
396,
10513,
16888,
9667,
3704,
278,
5864,
27430,
310,
278,
916,
1788,
7117,
30004,
13,
1678,
382,
1839,
6489,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
1896,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
13681,
1962,
310,
278,
349,
29963,
15299,
3704,
3151,
18237,
358,
30004,
13,
1678,
382,
1839,
29923,
29886,
29894,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
7373,
29925,
29886,
29894,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
13681,
1881,
310,
278,
16988,
313,
25389,
287,
8443,
13,
1678,
382,
1839,
29923,
10222,
262,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
10222,
262,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
13681,
1962,
310,
278,
16988,
313,
29881,
783,
1191,
287,
8443,
13,
1678,
382,
1839,
29923,
10222,
449,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
10222,
449,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
11657,
8343,
29899,
262,
30004,
13,
1678,
382,
1839,
29923,
562,
29906,
29887,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
562,
29906,
29887,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
11657,
9667,
30004,
13,
1678,
382,
1839,
29923,
29887,
29906,
562,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29887,
29906,
562,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
16012,
11421,
491,
278,
6856,
30004,
13,
1678,
382,
1839,
29923,
29887,
29906,
29880,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29887,
29906,
29880,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
4432,
392,
310,
278,
916,
1788,
7117,
30004,
13,
1678,
382,
1839,
29923,
546,
29875,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
546,
29875,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
1678,
396,
10837,
941,
2356,
349,
29963,
5864,
30004,
13,
1678,
382,
1839,
29923,
312,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
312,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
30004,
13,
1678,
565,
903,
15501,
1839,
7031,
2033,
1275,
525,
2477,
2396,
30004,
13,
30004,
13,
4706,
396,
14614,
1962,
310,
278,
349,
29963,
1788,
3704,
3151,
18237,
358,
30004,
13,
4706,
382,
1839,
29923,
29886,
4270,
2033,
29922,
9302,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29886,
4270,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
14614,
1881,
310,
278,
16988,
1788,
30004,
13,
4706,
382,
1839,
29923,
562,
29906,
5824,
2033,
29922,
9302,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
562,
29906,
5824,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
14614,
1962,
310,
278,
16988,
1788,
30004,
13,
4706,
382,
1839,
29923,
5824,
29906,
562,
2033,
29922,
9302,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
5824,
29906,
562,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
8797,
671,
310,
349,
29963,
5864,
30004,
13,
4706,
382,
1839,
29923,
29886,
4270,
29906,
29880,
2033,
29922,
9302,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29886,
4270,
29906,
29880,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
349,
29963,
9151,
292,
30004,
13,
4706,
382,
1839,
29923,
29886,
4270,
29906,
5824,
2033,
29922,
9302,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29886,
4270,
29906,
5824,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
11657,
9151,
292,
30004,
13,
4706,
382,
1839,
29923,
29887,
29906,
5824,
2033,
29922,
9302,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29887,
29906,
5824,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
349,
29963,
8343,
29899,
262,
30004,
13,
4706,
382,
1839,
29923,
29886,
4270,
29906,
29887,
2033,
29922,
9302,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29886,
4270,
29906,
29887,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
16012,
11421,
491,
278,
16988,
1788,
30004,
13,
4706,
382,
1839,
29923,
5824,
29906,
29880,
2033,
29922,
9302,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
5824,
29906,
29880,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
350,
2620,
29891,
8343,
29899,
262,
30004,
13,
4706,
382,
1839,
29923,
5824,
29906,
29887,
2033,
29922,
9302,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
5824,
29906,
29887,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
30004,
13,
1678,
25342,
903,
15501,
1839,
7031,
2033,
1275,
525,
12696,
2396,
30004,
13,
4706,
396,
11657,
9667,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
382,
1839,
29923,
29887,
29906,
29886,
29894,
5824,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29887,
29906,
29886,
29894,
5824,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
14614,
1881,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
382,
1839,
29923,
562,
29906,
29886,
29894,
5824,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
562,
29906,
29886,
29894,
5824,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
14614,
1962,
310,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
382,
1839,
29923,
29886,
29894,
5824,
29906,
562,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29886,
29894,
5824,
29906,
562,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
4706,
396,
16012,
11421,
491,
278,
349,
29963,
29899,
29890,
2620,
29891,
1788,
30004,
13,
4706,
382,
1839,
29923,
29886,
29894,
5824,
29906,
29880,
2033,
353,
7442,
29889,
2083,
29898,
9302,
29889,
6897,
29898,
29925,
29886,
29894,
5824,
29906,
29880,
876,
847,
29871,
29941,
29889,
29953,
29872,
29929,
30004,
13,
30004,
13,
1678,
736,
382,
30004,
13,
30004,
13,
30004,
13,
1753,
2254,
29918,
15501,
29898,
29888,
978,
29892,
784,
29918,
978,
1125,
30004,
13,
1678,
9995,
5896,
29879,
1788,
3443,
515,
10616,
934,
30004,
13,
30004,
13,
1678,
584,
3207,
285,
978,
29901,
10802,
304,
278,
10616,
934,
30004,
13,
1678,
584,
1853,
285,
978,
29901,
1347,
30004,
13,
1678,
584,
3207,
784,
29918,
978,
29901,
12481,
304,
1303,
848,
515,
30004,
13,
1678,
584,
1853,
784,
29918,
978,
29901,
1347,
30004,
13,
1678,
584,
2457,
29901,
13343,
13587,
4128,
515,
278,
11388,
9869,
30004,
13,
1678,
584,
29878,
1853,
29901,
9657,
30004,
13,
1678,
9995,
30004,
13,
1678,
6756,
13,
1678,
281,
29890,
353,
2254,
29918,
1287,
2909,
29898,
29888,
978,
29892,
848,
29918,
6194,
29922,
5574,
8443,
13,
1678,
16904,
353,
281,
29890,
1839,
1469,
2033,
396,
16012,
3630,
9869,
310,
10616,
934,
30004,
13,
30004,
13,
1678,
396,
1303,
6611,
322,
1819,
515,
11388,
9869,
30004,
13,
1678,
6611,
353,
313,
29883,
29889,
1767,
363,
274,
297,
16904,
1839,
29923,
2033,
29961,
29896,
29901,
2314,
30004,
13,
1678,
1819,
353,
313,
29883,
29889,
1767,
565,
274,
29889,
1767,
2804,
525,
1983,
29915,
1683,
6213,
363,
274,
297,
16904,
29961,
1054,
29918,
978,
3816,
29896,
29901,
2314,
30004,
13,
1678,
6756,
13,
1678,
3443,
353,
9657,
29898,
7554,
29898,
8149,
29892,
1819,
876,
30004,
13,
30004,
13,
1678,
396,
7374,
267,
9976,
988,
1820,
338,
6213,
30004,
13,
1678,
628,
3443,
29961,
8516,
29962,
30004,
13,
30004,
13,
1678,
396,
4007,
647,
2702,
4128,
30004,
13,
1678,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
29918,
29925,
29963,
1177,
29963,
2033,
353,
16904,
29961,
1054,
29918,
978,
3816,
29896,
29945,
1822,
1767,
30004,
13,
1678,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
353,
16904,
29961,
1054,
29918,
978,
3816,
29906,
29946,
1822,
1767,
30004,
13,
1678,
3443,
1839,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
29918,
29928,
4174,
2033,
353,
16904,
29961,
1054,
29918,
978,
3816,
29906,
29945,
1822,
1767,
30004,
13,
1678,
3443,
1839,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
2033,
353,
16904,
29961,
1054,
29918,
978,
3816,
29906,
29953,
1822,
1767,
30004,
13,
1678,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
2033,
353,
16904,
29961,
1054,
29918,
978,
3816,
29906,
29955,
1822,
1767,
30004,
13,
1678,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
29918,
29928,
4174,
2033,
353,
16904,
29961,
1054,
29918,
978,
3816,
29906,
29947,
1822,
1767,
30004,
13,
30004,
13,
1678,
396,
3789,
337,
1341,
663,
1206,
1819,
304,
7223,
30004,
13,
1678,
565,
3443,
1839,
999,
29918,
29896,
2033,
1275,
525,
3582,
2396,
30004,
13,
4706,
3443,
1839,
999,
29918,
29896,
2033,
353,
5852,
30004,
13,
1678,
25342,
3443,
1839,
999,
29918,
29896,
2033,
1275,
525,
1217,
2396,
30004,
13,
4706,
3443,
1839,
999,
29918,
29896,
2033,
353,
7700,
30004,
13,
1678,
6756,
13,
1678,
565,
3443,
1839,
999,
29918,
29906,
2033,
1275,
525,
3582,
2396,
30004,
13,
4706,
3443,
1839,
999,
29918,
29906,
2033,
353,
5852,
30004,
13,
1678,
25342,
3443,
1839,
999,
29918,
29906,
2033,
1275,
525,
1217,
2396,
30004,
13,
4706,
3443,
1839,
999,
29918,
29906,
2033,
353,
7700,
30004,
13,
30004,
13,
1678,
396,
21220,
4128,
310,
13681,
29899,
16589,
552,
29881,
6757,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
12696,
2396,
30004,
13,
4706,
3443,
1839,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
2033,
353,
3443,
1839,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
29918,
29928,
4174,
2033,
396,
20583,
979,
9151,
292,
3081,
313,
2477,
29897,
297,
26226,
30004,
13,
4706,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
2033,
353,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
29918,
29928,
4174,
2033,
30004,
13,
1678,
6756,
13,
1678,
396,
21220,
4128,
310,
349,
29963,
297,
369,
2153,
322,
14614,
29899,
16589,
552,
29881,
6757,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
29925,
29963,
1177,
29963,
29915,
470,
3443,
1839,
7031,
2033,
1275,
525,
2477,
29915,
322,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
29918,
29925,
29963,
1177,
29963,
2033,
338,
451,
6213,
29901,
30004,
13,
4706,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
353,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
29918,
29925,
29963,
1177,
29963,
2033,
30004,
13,
1678,
6756,
13,
1678,
396,
21220,
4128,
310,
349,
29963,
29899,
16589,
552,
29881,
6757,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
29925,
29963,
2396,
30004,
13,
4706,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
262,
2033,
353,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
262,
2033,
30004,
13,
4706,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
2033,
353,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
29918,
29928,
4174,
2033,
30004,
13,
30004,
13,
1678,
396,
5191,
525,
1983,
742,
525,
29877,
29915,
322,
525,
29883,
29915,
9976,
304,
6213,
30004,
13,
1678,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
7295,
30004,
13,
4706,
565,
995,
1275,
525,
1983,
29915,
470,
995,
1275,
525,
29877,
29915,
470,
995,
1275,
525,
29883,
29915,
470,
995,
1275,
525,
525,
29901,
30004,
13,
9651,
3443,
29961,
1989,
29962,
353,
6213,
30004,
13,
30004,
13,
1678,
396,
14806,
304,
26226,
30004,
13,
1678,
3588,
29918,
517,
29918,
11022,
353,
6024,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
742,
525,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
29918,
29925,
29963,
1177,
29963,
3788,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
3788,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
29918,
29928,
4174,
3788,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
3788,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
23592,
13,
632,
525,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
29918,
29928,
4174,
3788,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
3788,
29925,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
449,
3788,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
449,
3788,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
262,
2033,
30004,
13,
30004,
13,
1678,
363,
610,
297,
3588,
29918,
517,
29918,
11022,
29901,
30004,
13,
4706,
565,
3443,
29961,
862,
5387,
30004,
13,
9651,
3443,
29961,
862,
29962,
847,
29922,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
6756,
13,
1678,
736,
3443,
30004,
13,
30004,
13,
30004,
13,
1753,
634,
29874,
29906,
10736,
29898,
15501,
1125,
30004,
13,
1678,
9995,
6678,
304,
8147,
278,
4128,
310,
278,
3081,
6410,
3168,
313,
3425,
29878,
2454,
10693,
29897,
515,
278,
2224,
6366,
819,
2478,
30004,
13,
30004,
13,
1678,
584,
3207,
3443,
29901,
379,
3361,
4128,
310,
278,
1788,
30004,
13,
1678,
584,
1853,
3443,
29901,
9657,
30004,
13,
1678,
584,
2457,
29901,
13343,
13587,
4128,
515,
278,
11388,
9869,
30004,
13,
1678,
584,
29878,
1853,
29901,
9657,
30004,
13,
1678,
9995,
30004,
13,
1678,
396,
349,
29963,
29906,
2477,
11301,
2224,
1582,
14402,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
12696,
29915,
470,
3443,
1839,
7031,
2033,
1275,
525,
29925,
29963,
1177,
29963,
29915,
470,
3443,
1839,
7031,
2033,
1275,
525,
29925,
29963,
29915,
322,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
338,
451,
6213,
470,
3443,
1839,
7031,
2033,
1275,
525,
2477,
29915,
322,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
338,
451,
6213,
29901,
30004,
13,
4706,
6756,
13,
4706,
396,
6204,
3651,
363,
278,
23460,
3291,
322,
6590,
6366,
819,
2478,
14402,
30004,
13,
4706,
282,
29918,
29886,
29894,
29906,
562,
353,
7442,
29889,
3166,
1524,
3552,
1767,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
29886,
29918,
29925,
29963,
29906,
2477,
29918,
29915,
297,
1820,
322,
995,
338,
451,
6213,
511,
5785,
8443,
13,
4706,
634,
29874,
29918,
29886,
29894,
29906,
562,
353,
7442,
29889,
3166,
1524,
3552,
1767,
847,
29871,
29896,
29900,
29900,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
1187,
29918,
29925,
29963,
29906,
2477,
29918,
29915,
297,
1820,
322,
995,
338,
451,
6213,
511,
5785,
8443,
13,
30004,
13,
4706,
396,
1976,
14977,
1881,
322,
1962,
3081,
297,
399,
30004,
13,
4706,
282,
29918,
29886,
29894,
29906,
562,
29918,
449,
353,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
334,
282,
29918,
29886,
29894,
29906,
562,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
282,
29918,
29886,
29894,
29906,
562,
29918,
262,
353,
282,
29918,
29886,
29894,
29906,
562,
29918,
449,
847,
634,
29874,
29918,
29886,
29894,
29906,
562,
30004,
13,
30004,
13,
4706,
396,
1976,
14977,
3081,
6410,
297,
399,
30004,
13,
4706,
349,
29918,
29880,
29918,
29886,
29894,
29906,
562,
29918,
262,
353,
313,
29896,
448,
634,
29874,
29918,
29886,
29894,
29906,
562,
29897,
334,
282,
29918,
29886,
29894,
29906,
562,
29918,
262,
30004,
13,
4706,
349,
29918,
29880,
29918,
29886,
29894,
29906,
562,
29918,
449,
353,
313,
29896,
847,
634,
29874,
29918,
29886,
29894,
29906,
562,
448,
29871,
29896,
29897,
334,
282,
29918,
29886,
29894,
29906,
562,
29918,
449,
30004,
13,
30004,
13,
4706,
396,
2043,
9222,
11672,
28221,
4128,
310,
278,
3081,
6410,
3168,
297,
399,
30004,
13,
4706,
6756,
13,
4706,
396,
16564,
373,
1881,
3081,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
29886,
29894,
29906,
562,
29918,
262,
847,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
2033,
847,
29871,
29896,
29900,
29900,
29900,
29892,
349,
29918,
29880,
29918,
29886,
29894,
29906,
562,
29918,
262,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
30004,
13,
4706,
396,
16564,
373,
1962,
3081,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
29886,
29894,
29906,
562,
29892,
349,
29918,
29880,
29918,
29886,
29894,
29906,
562,
29918,
449,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
449,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
449,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
449,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
1678,
6756,
13,
1678,
396,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
12696,
29915,
470,
3443,
1839,
7031,
2033,
1275,
525,
29925,
29963,
2396,
30004,
13,
30004,
13,
4706,
396,
6204,
3651,
363,
278,
23460,
3291,
322,
6590,
6366,
819,
2478,
30004,
13,
4706,
282,
29918,
29886,
29894,
29906,
10222,
353,
7442,
29889,
2378,
4197,
1767,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
29886,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
29915,
297,
1820,
2314,
30004,
13,
4706,
634,
29874,
29918,
29886,
29894,
29906,
10222,
353,
7442,
29889,
2378,
4197,
1767,
847,
29871,
29896,
29900,
29900,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
1187,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
29915,
297,
1820,
2314,
30004,
13,
30004,
13,
4706,
396,
6204,
4567,
3651,
30004,
13,
30004,
13,
4706,
396,
20583,
979,
1881,
3081,
310,
278,
349,
29963,
29906,
29933,
1299,
11301,
2224,
1582,
310,
13681,
29899,
16589,
552,
29881,
6757,
30004,
13,
4706,
565,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
2033,
338,
6213,
29901,
30004,
13,
9651,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
2033,
353,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
449,
2033,
847,
313,
15501,
1839,
1187,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
29896,
29900,
29900,
2033,
847,
29871,
29896,
29900,
29900,
8443,
13,
30004,
13,
4706,
396,
1976,
14977,
1881,
322,
1962,
3081,
297,
399,
30004,
13,
4706,
282,
29918,
29886,
29894,
29906,
10222,
29918,
449,
353,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
449,
2033,
334,
282,
29918,
29886,
29894,
29906,
10222,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
282,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
282,
29918,
29886,
29894,
29906,
10222,
29918,
449,
847,
634,
29874,
29918,
29886,
29894,
29906,
10222,
30004,
13,
30004,
13,
4706,
396,
1976,
14977,
3081,
6410,
297,
399,
30004,
13,
4706,
349,
29918,
29880,
29918,
29886,
29894,
29906,
10222,
29918,
262,
353,
313,
29896,
448,
634,
29874,
29918,
29886,
29894,
29906,
10222,
29897,
334,
282,
29918,
29886,
29894,
29906,
10222,
29918,
262,
30004,
13,
4706,
349,
29918,
29880,
29918,
29886,
29894,
29906,
10222,
29918,
449,
353,
313,
29896,
847,
634,
29874,
29918,
29886,
29894,
29906,
10222,
448,
29871,
29896,
29897,
334,
282,
29918,
29886,
29894,
29906,
10222,
29918,
449,
30004,
13,
4706,
6756,
13,
4706,
396,
2043,
9222,
11672,
28221,
4128,
310,
278,
3081,
6410,
3168,
297,
399,
30004,
13,
462,
6756,
13,
4706,
396,
16564,
373,
1881,
3081,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
29886,
29894,
29906,
10222,
29918,
262,
847,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
2033,
847,
29871,
29896,
29900,
29900,
29900,
29892,
349,
29918,
29880,
29918,
29886,
29894,
29906,
10222,
29918,
262,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29874,
29918,
262,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29890,
29918,
262,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29883,
29918,
262,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
30004,
13,
4706,
396,
16564,
373,
1962,
3081,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
29886,
29894,
29906,
10222,
29892,
349,
29918,
29880,
29918,
29886,
29894,
29906,
10222,
29918,
449,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29874,
29918,
449,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29890,
29918,
449,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29883,
29918,
449,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
1678,
6756,
13,
1678,
396,
14614,
29906,
29933,
1299,
11301,
2224,
1582,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
2477,
29915,
470,
3443,
1839,
7031,
2033,
1275,
525,
12696,
29915,
322,
3443,
1839,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
2033,
338,
451,
6213,
29901,
30004,
13,
30004,
13,
4706,
396,
6204,
3651,
363,
278,
23460,
3291,
322,
6590,
6366,
819,
2478,
14402,
30004,
13,
4706,
282,
29918,
562,
29906,
10222,
353,
7442,
29889,
3166,
1524,
3552,
1767,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
29886,
29918,
2477,
29906,
29933,
1299,
29918,
29915,
297,
1820,
511,
5785,
8443,
13,
4706,
634,
29874,
29918,
562,
29906,
10222,
353,
7442,
29889,
3166,
1524,
3552,
1767,
847,
29871,
29896,
29900,
29900,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
1187,
29918,
2477,
29906,
29933,
1299,
29918,
29915,
297,
1820,
511,
5785,
8443,
13,
30004,
13,
4706,
396,
1976,
14977,
1881,
322,
1962,
3081,
297,
399,
30004,
13,
4706,
282,
29918,
562,
29906,
10222,
29918,
449,
353,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
449,
2033,
334,
282,
29918,
562,
29906,
10222,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
282,
29918,
562,
29906,
10222,
29918,
262,
353,
282,
29918,
562,
29906,
10222,
29918,
449,
847,
634,
29874,
29918,
562,
29906,
10222,
30004,
13,
30004,
13,
4706,
396,
1976,
14977,
3081,
6410,
297,
399,
30004,
13,
4706,
349,
29918,
29880,
29918,
562,
29906,
10222,
29918,
262,
353,
313,
29896,
448,
634,
29874,
29918,
562,
29906,
10222,
29897,
334,
282,
29918,
562,
29906,
10222,
29918,
262,
30004,
13,
4706,
349,
29918,
29880,
29918,
562,
29906,
10222,
29918,
449,
353,
313,
29896,
847,
634,
29874,
29918,
562,
29906,
10222,
448,
29871,
29896,
29897,
334,
282,
29918,
562,
29906,
10222,
29918,
449,
30004,
13,
30004,
13,
4706,
396,
2043,
9222,
11672,
28221,
4128,
310,
278,
3081,
6410,
3168,
297,
399,
30004,
13,
4706,
6756,
13,
4706,
396,
16564,
373,
1881,
3081,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
562,
29906,
10222,
29918,
262,
847,
3443,
1839,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
2033,
847,
29871,
29896,
29900,
29900,
29900,
29892,
349,
29918,
29880,
29918,
562,
29906,
10222,
29918,
262,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
2477,
29906,
29933,
1299,
29918,
29874,
29918,
262,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
2477,
29906,
29933,
1299,
29918,
29890,
29918,
262,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
2477,
29906,
29933,
1299,
29918,
29883,
29918,
262,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
30004,
13,
4706,
396,
16564,
373,
1962,
3081,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
562,
29906,
10222,
29892,
349,
29918,
29880,
29918,
562,
29906,
10222,
29918,
449,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
2477,
29906,
29933,
1299,
29918,
29874,
29918,
449,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
2477,
29906,
29933,
1299,
29918,
29890,
29918,
449,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
2477,
29906,
29933,
1299,
29918,
29883,
29918,
449,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
1678,
6756,
13,
1678,
396,
350,
1299,
29906,
2477,
11301,
2224,
1582,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
29915,
2477,
29915,
470,
3443,
1839,
7031,
2033,
1275,
29915,
12696,
29915,
470,
3443,
1839,
7031,
2033,
1275,
29915,
29925,
29963,
29915,
322,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
2033,
338,
451,
6213,
29901,
30004,
13,
30004,
13,
4706,
396,
6204,
3651,
363,
278,
23460,
3291,
322,
6590,
6366,
819,
2478,
14402,
30004,
13,
4706,
282,
29918,
10222,
29906,
562,
353,
7442,
29889,
3166,
1524,
3552,
1767,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
29886,
29918,
29933,
1299,
29906,
2477,
29918,
29915,
297,
1820,
511,
5785,
8443,
13,
4706,
634,
29874,
29918,
10222,
29906,
562,
353,
7442,
29889,
3166,
1524,
3552,
1767,
847,
29871,
29896,
29900,
29900,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
1187,
29918,
29933,
1299,
29906,
2477,
29918,
29915,
297,
1820,
511,
5785,
8443,
13,
30004,
13,
4706,
396,
1976,
14977,
1881,
322,
1962,
3081,
297,
399,
30004,
13,
4706,
282,
29918,
10222,
29906,
562,
29918,
449,
353,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
2033,
334,
282,
29918,
10222,
29906,
562,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
282,
29918,
10222,
29906,
562,
29918,
262,
353,
282,
29918,
10222,
29906,
562,
29918,
449,
847,
634,
29874,
29918,
10222,
29906,
562,
30004,
13,
30004,
13,
4706,
396,
1976,
14977,
3081,
6410,
297,
399,
30004,
13,
4706,
349,
29918,
29880,
29918,
10222,
29906,
562,
29918,
262,
353,
313,
29896,
448,
634,
29874,
29918,
10222,
29906,
562,
29897,
334,
282,
29918,
10222,
29906,
562,
29918,
262,
30004,
13,
4706,
349,
29918,
29880,
29918,
10222,
29906,
562,
29918,
449,
353,
313,
29896,
847,
634,
29874,
29918,
10222,
29906,
562,
448,
29871,
29896,
29897,
334,
282,
29918,
10222,
29906,
562,
29918,
449,
30004,
13,
30004,
13,
4706,
396,
2043,
9222,
11672,
28221,
4128,
310,
278,
3081,
6410,
3168,
297,
399,
30004,
13,
4706,
6756,
13,
4706,
396,
16564,
373,
1881,
3081,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
10222,
29906,
562,
29918,
262,
847,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
262,
2033,
847,
29871,
29896,
29900,
29900,
29900,
29892,
349,
29918,
29880,
29918,
10222,
29906,
562,
29918,
262,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29874,
29918,
262,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29890,
29918,
262,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29883,
29918,
262,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
30004,
13,
4706,
396,
16564,
373,
1962,
3081,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
10222,
29906,
562,
29892,
349,
29918,
29880,
29918,
10222,
29906,
562,
29918,
449,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29874,
29918,
449,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29890,
29918,
449,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29883,
29918,
449,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
1678,
6756,
13,
1678,
396,
350,
1299,
29906,
29925,
29963,
11301,
2224,
1582,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
29915,
29925,
29963,
2396,
30004,
13,
30004,
13,
4706,
396,
6204,
3651,
363,
278,
23460,
3291,
322,
6590,
6366,
819,
2478,
14402,
30004,
13,
4706,
282,
29918,
10222,
29906,
29886,
29894,
353,
7442,
29889,
3166,
1524,
3552,
1767,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
29886,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
29915,
297,
1820,
511,
5785,
8443,
13,
4706,
634,
29874,
29918,
10222,
29906,
29886,
29894,
353,
7442,
29889,
3166,
1524,
3552,
1767,
847,
29871,
29896,
29900,
29900,
363,
1820,
29892,
995,
297,
3443,
29889,
7076,
580,
565,
525,
1187,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
29915,
297,
1820,
511,
5785,
8443,
13,
30004,
13,
4706,
396,
1976,
14977,
1881,
322,
1962,
3081,
297,
399,
30004,
13,
4706,
282,
29918,
10222,
29906,
29886,
29894,
29918,
449,
353,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
449,
2033,
334,
282,
29918,
10222,
29906,
29886,
29894,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
4706,
282,
29918,
10222,
29906,
29886,
29894,
29918,
262,
353,
282,
29918,
10222,
29906,
29886,
29894,
29918,
449,
847,
634,
29874,
29918,
10222,
29906,
29886,
29894,
30004,
13,
30004,
13,
4706,
396,
1976,
14977,
3081,
6410,
297,
399,
30004,
13,
4706,
349,
29918,
29880,
29918,
10222,
29906,
29886,
29894,
29918,
262,
353,
313,
29896,
448,
634,
29874,
29918,
10222,
29906,
29886,
29894,
29897,
334,
282,
29918,
10222,
29906,
29886,
29894,
29918,
262,
30004,
13,
4706,
349,
29918,
29880,
29918,
10222,
29906,
29886,
29894,
29918,
449,
353,
313,
29896,
847,
634,
29874,
29918,
10222,
29906,
29886,
29894,
448,
29871,
29896,
29897,
334,
282,
29918,
10222,
29906,
29886,
29894,
29918,
449,
30004,
13,
30004,
13,
4706,
396,
2043,
9222,
11672,
28221,
4128,
310,
278,
3081,
6410,
3168,
297,
399,
30004,
13,
4706,
6756,
13,
4706,
396,
16564,
373,
1881,
3081,
14402,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
10222,
29906,
29886,
29894,
29918,
262,
847,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
262,
2033,
847,
29871,
29896,
29900,
29900,
29900,
29892,
349,
29918,
29880,
29918,
10222,
29906,
29886,
29894,
29918,
262,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
29933,
1299,
29906,
29925,
29963,
29918,
29874,
29918,
262,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
29933,
1299,
29906,
29925,
29963,
29918,
29890,
29918,
262,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
29933,
1299,
29906,
29925,
29963,
29918,
29883,
29918,
262,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
30004,
13,
4706,
396,
16564,
373,
1962,
3081,
30004,
13,
4706,
282,
353,
7442,
29889,
22678,
9202,
29898,
29886,
29918,
10222,
29906,
29886,
29894,
29892,
349,
29918,
29880,
29918,
10222,
29906,
29886,
29894,
29918,
449,
29892,
29871,
29906,
8443,
13,
4706,
3443,
1839,
29933,
1299,
29906,
29925,
29963,
29918,
29874,
29918,
449,
2033,
353,
282,
29961,
29900,
29962,
30004,
13,
4706,
3443,
1839,
29933,
1299,
29906,
29925,
29963,
29918,
29890,
29918,
449,
2033,
353,
282,
29961,
29896,
29962,
30004,
13,
4706,
3443,
1839,
29933,
1299,
29906,
29925,
29963,
29918,
29883,
29918,
449,
2033,
353,
282,
29961,
29906,
29962,
30004,
13,
1678,
6756,
13,
1678,
396,
3462,
3245,
4128,
30004,
13,
30004,
13,
1678,
396,
16316,
16988,
13284,
297,
413,
8809,
30004,
13,
1678,
1018,
29901,
30004,
13,
4706,
3443,
1839,
29923,
29918,
29933,
1299,
2033,
353,
313,
15501,
1839,
29923,
29918,
29933,
1299,
29918,
27979,
2033,
847,
3443,
1839,
1187,
29918,
29933,
1299,
2033,
334,
29871,
29896,
29900,
29900,
718,
3443,
1839,
29923,
29918,
29933,
1299,
29918,
27979,
11287,
847,
29871,
29906,
30004,
13,
1678,
5174,
29901,
30004,
13,
4706,
3443,
1839,
29923,
29918,
29933,
1299,
2033,
353,
6213,
30004,
13,
30004,
13,
1678,
396,
16316,
5073,
653,
29522,
310,
278,
9151,
292,
3081,
297,
399,
30004,
13,
1678,
1018,
29901,
30004,
13,
4706,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
2033,
353,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
29918,
29902,
3580,
8476,
2033,
448,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
29918,
5746,
15082,
2033,
30004,
13,
1678,
5174,
29901,
30004,
13,
4706,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
2033,
353,
6213,
30004,
13,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
2477,
2396,
30004,
13,
4706,
3443,
1839,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
2287,
29963,
2033,
353,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
2033,
6756,
13,
1678,
6756,
13,
1678,
396,
16316,
5073,
653,
29522,
310,
278,
766,
25389,
292,
3081,
297,
399,
30004,
13,
1678,
1018,
29901,
30004,
13,
4706,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
2033,
353,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
29918,
5746,
15082,
2033,
448,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
29918,
29902,
3580,
8476,
2033,
30004,
13,
1678,
5174,
29901,
30004,
13,
4706,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
2033,
353,
6213,
30004,
13,
1678,
6756,
13,
1678,
396,
5974,
4868,
363,
278,
937,
29899,
2098,
931,
9055,
1543,
297,
269,
30004,
13,
1678,
1018,
29901,
30004,
13,
4706,
3443,
1839,
29873,
29918,
6007,
1254,
13566,
2033,
353,
313,
15501,
1839,
29873,
29918,
10490,
14632,
4214,
2033,
448,
4513,
29898,
15501,
1839,
29873,
29918,
2287,
3035,
25901,
847,
29871,
29941,
30004,
13,
1678,
5174,
29901,
30004,
13,
4706,
3443,
1839,
29873,
29918,
6007,
1254,
13566,
2033,
353,
6213,
30004,
13,
30004,
13,
1678,
396,
379,
858,
261,
6656,
16897,
363,
278,
337,
25389,
292,
310,
278,
16988,
30004,
13,
1678,
3443,
1839,
6156,
29907,
29918,
29882,
2033,
353,
29871,
29900,
29889,
29929,
29947,
30004,
13,
30004,
13,
1678,
396,
5169,
287,
29899,
262,
3081,
4046,
297,
26226,
29914,
29895,
29956,
29886,
30004,
13,
1678,
3443,
1839,
29886,
29918,
562,
29906,
29887,
29918,
3317,
2033,
353,
29871,
29900,
29889,
29955,
30004,
13,
30004,
13,
1678,
736,
3443,
30004,
13,
30004,
13,
30004,
13,
1753,
2254,
29918,
999,
29918,
4878,
29898,
29888,
978,
29892,
1024,
1125,
30004,
13,
1678,
9995,
5896,
29879,
349,
29963,
3081,
470,
16012,
515,
278,
3407,
4251,
30004,
13,
30004,
13,
1678,
584,
3207,
285,
978,
29901,
10802,
304,
1775,
934,
6756,
13,
1678,
584,
1853,
285,
978,
29901,
1347,
30004,
13,
30004,
13,
1678,
584,
3207,
1024,
29901,
20286,
363,
349,
29963,
9206,
470,
16012,
30004,
13,
1678,
584,
1853,
1024,
29901,
1347,
30004,
13,
30004,
13,
1678,
584,
2457,
29901,
16969,
349,
29963,
3081,
470,
2254,
515,
278,
3407,
1206,
30004,
13,
1678,
584,
29878,
1853,
29901,
12655,
1409,
30004,
13,
1678,
9995,
30004,
13,
1678,
411,
1722,
29898,
29888,
978,
29892,
525,
6050,
1495,
408,
285,
29901,
30004,
13,
30004,
13,
4706,
263,
353,
7442,
29889,
1359,
29898,
29888,
8443,
13,
30004,
13,
4706,
848,
353,
263,
29961,
978,
29962,
30004,
13,
1678,
6756,
13,
1678,
736,
848,
30004,
13,
30004,
13,
30004,
13,
1753,
620,
981,
29918,
1272,
29918,
2557,
29898,
2176,
1125,
30004,
13,
1678,
9995,
6678,
363,
620,
314,
10335,
848,
16608,
30004,
13,
30004,
13,
1678,
584,
3207,
4489,
29901,
848,
3515,
30004,
13,
1678,
584,
1853,
4489,
29901,
11701,
848,
3515,
30004,
13,
1678,
584,
2457,
29901,
848,
3515,
30004,
13,
1678,
584,
29878,
1853,
29901,
11701,
848,
3515,
30004,
13,
1678,
9995,
30004,
13,
1678,
4489,
29918,
2288,
353,
4489,
29889,
690,
981,
877,
29896,
29945,
1195,
2824,
12676,
26471,
13,
30004,
13,
1678,
736,
4489,
29918,
2288,
30004,
13,
30004,
13,
30004,
13,
1753,
4327,
29918,
8977,
29918,
517,
29918,
2378,
29898,
15501,
1125,
30004,
13,
1678,
9995,
6678,
363,
4327,
292,
263,
9657,
304,
385,
12655,
1409,
30004,
13,
30004,
13,
1678,
584,
3207,
3443,
29901,
9657,
310,
1788,
4128,
30004,
13,
1678,
584,
1853,
3443,
29901,
9657,
30004,
13,
1678,
584,
2457,
29901,
1409,
310,
1788,
4128,
30004,
13,
1678,
584,
29878,
1853,
29901,
12655,
1409,
30004,
13,
1678,
9995,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
2477,
2396,
30004,
13,
4706,
270,
353,
7442,
29889,
2378,
29898,
15501,
1839,
29923,
29918,
29933,
1299,
11287,
18884,
396,
29871,
29900,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
1187,
29918,
29933,
1299,
11287,
3986,
396,
29871,
29896,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29873,
29918,
6007,
1254,
13566,
11287,
29871,
396,
29871,
29906,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
12696,
11287,
29871,
396,
29871,
29941,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
2477,
11287,
29871,
396,
29871,
29946,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
12696,
11287,
29871,
396,
29871,
29945,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
2477,
11287,
29871,
396,
29871,
29953,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
2477,
29906,
29933,
1299,
29918,
29874,
29918,
262,
11287,
29871,
396,
29871,
29955,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
2477,
29906,
29933,
1299,
29918,
29890,
29918,
262,
11287,
29871,
396,
29871,
29947,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
2477,
29906,
29933,
1299,
29918,
29883,
29918,
262,
11287,
29871,
396,
29871,
29929,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29874,
29918,
449,
11287,
29871,
396,
29871,
29896,
29900,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29890,
29918,
449,
11287,
29871,
396,
29871,
29896,
29896,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29883,
29918,
449,
11287,
29871,
396,
29871,
29896,
29906,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
2287,
29963,
11287,
29871,
396,
29871,
29896,
29941,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
11287,
29871,
396,
29871,
29896,
29946,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
11287,
29871,
396,
29871,
29896,
29945,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
2477,
29906,
29933,
1299,
29918,
262,
11287,
29871,
396,
29871,
29896,
29953,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29873,
29918,
2287,
3035,
11287,
29871,
396,
29871,
29896,
29955,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
6156,
29907,
29918,
29882,
11287,
29871,
396,
29871,
29896,
29947,
30004,
13,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
12696,
2396,
30004,
13,
4706,
270,
353,
7442,
29889,
2378,
29898,
15501,
1839,
29923,
29918,
29933,
1299,
11287,
29871,
396,
29871,
29896,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
11287,
29871,
396,
29871,
29906,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
11287,
29871,
396,
29871,
29941,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
11287,
539,
396,
29871,
29946,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
449,
11287,
539,
396,
29871,
29945,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
11287,
3986,
396,
29871,
29953,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
11287,
965,
396,
29871,
29955,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
11287,
9651,
396,
29871,
29947,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29874,
29918,
262,
11287,
9651,
396,
29871,
29929,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29890,
29918,
262,
11287,
29871,
396,
29871,
29896,
29900,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29874,
29918,
449,
11287,
29871,
396,
29871,
29896,
29896,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29890,
29918,
449,
11287,
29871,
396,
29871,
29896,
29906,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29933,
1299,
29906,
2477,
29918,
29883,
29918,
449,
11287,
29871,
396,
29871,
29896,
29941,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
1187,
29918,
29933,
1299,
11287,
29871,
396,
29871,
29896,
29946,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
6156,
29907,
29918,
29882,
11287,
29871,
396,
29871,
29896,
29945,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
11287,
539,
396,
29871,
29896,
29953,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
11287,
29871,
396,
29871,
29896,
29955,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29873,
29918,
2287,
3035,
11287,
29871,
396,
29871,
29896,
29947,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29873,
29918,
6007,
1254,
13566,
11287,
3986,
396,
29871,
29896,
29929,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
12696,
11287,
29871,
396,
29871,
29906,
29900,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
2477,
11287,
29871,
396,
29871,
29906,
29896,
30004,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
12696,
11287,
29871,
396,
29871,
29906,
29906,
30004,
13,
30004,
13,
1678,
565,
3443,
1839,
7031,
2033,
1275,
525,
29925,
29963,
2396,
30004,
13,
4706,
270,
353,
7442,
29889,
2378,
29898,
15501,
1839,
29923,
29918,
29933,
1299,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
262,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
2477,
29918,
449,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
262,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
29925,
29963,
29918,
449,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
262,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
262,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
262,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29874,
29918,
262,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29890,
29918,
262,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
29933,
1299,
29918,
29883,
29918,
262,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29874,
29918,
449,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29890,
29918,
449,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29963,
29906,
2477,
29918,
29883,
29918,
449,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29933,
1299,
29906,
29925,
29963,
29918,
29874,
29918,
449,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29933,
1299,
29906,
29925,
29963,
29918,
29890,
29918,
449,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29933,
1299,
29906,
29925,
29963,
29918,
29883,
29918,
449,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
1187,
29918,
29933,
1299,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
6156,
29907,
29918,
29882,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29925,
29963,
29906,
29933,
1299,
29918,
2287,
29963,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
29933,
1299,
29906,
2477,
29918,
2287,
29963,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29896,
29918,
12696,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
2477,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29925,
29918,
14816,
29903,
29918,
6156,
29907,
29900,
29918,
12696,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29873,
29918,
2287,
3035,
2033,
8443,
13,
4706,
270,
353,
7442,
29889,
4397,
29898,
29881,
29892,
3443,
1839,
29873,
29918,
6007,
1254,
13566,
2033,
8443,
13,
30004,
13,
1678,
736,
270,
30004,
13,
30004,
13,
30004,
13,
1753,
8147,
29918,
1028,
29875,
7373,
29923,
29918,
6370,
29892,
903,
29923,
29918,
680,
284,
1125,
30004,
13,
1678,
396,
317,
2227,
13944,
363,
278,
3407,
1206,
29901,
30004,
13,
1678,
396,
11657,
12646,
537,
8666,
297,
11652,
29914,
29895,
8809,
30004,
13,
1678,
23822,
29906,
562,
353,
29871,
29900,
29889,
29941,
29900,
30004,
13,
1678,
396,
11657,
8343,
29899,
262,
9913,
2593,
297,
11652,
29914,
29895,
8809,
30004,
13,
1678,
22906,
29906,
29887,
353,
29871,
29900,
29889,
29896,
29906,
30004,
13,
1678,
396,
11657,
12646,
537,
21544,
1728,
263,
349,
29963,
29899,
29890,
2620,
29891,
1788,
297,
11652,
29914,
29874,
30004,
13,
1678,
315,
999,
353,
903,
29923,
29918,
680,
284,
1839,
6489,
2033,
334,
23822,
29906,
562,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
1678,
396,
12670,
6856,
12646,
537,
21544,
411,
278,
6410,
2222,
349,
29963,
29899,
29890,
2620,
29891,
1788,
297,
11652,
29914,
29874,
30004,
13,
1678,
315,
680,
284,
353,
903,
29923,
29918,
680,
284,
1839,
29923,
29887,
29906,
562,
2033,
334,
23822,
29906,
562,
334,
29871,
29896,
29900,
29900,
29900,
448,
903,
29923,
29918,
680,
284,
1839,
29923,
562,
29906,
29887,
2033,
334,
22906,
29906,
29887,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
1678,
396,
12670,
6856,
12646,
537,
21544,
411,
278,
1855,
349,
29963,
29899,
29890,
2620,
29891,
1788,
297,
11652,
29914,
29874,
30004,
13,
1678,
315,
6370,
353,
903,
29923,
29918,
6370,
1839,
29923,
29887,
29906,
562,
2033,
334,
23822,
29906,
562,
334,
29871,
29896,
29900,
29900,
29900,
448,
903,
29923,
29918,
6370,
1839,
29923,
562,
29906,
29887,
2033,
334,
22906,
29906,
29887,
334,
29871,
29896,
29900,
29900,
29900,
30004,
13,
1678,
396,
4367,
29884,
428,
310,
278,
7787,
6856,
12646,
537,
21544,
491,
278,
6410,
2222,
349,
29963,
29899,
29890,
2620,
29891,
1788,
297,
11652,
29914,
29874,
30004,
13,
1678,
270,
29907,
680,
284,
353,
315,
999,
448,
315,
680,
284,
30004,
13,
1678,
396,
4367,
29884,
428,
310,
278,
7787,
6856,
12646,
537,
21544,
491,
278,
1855,
349,
29963,
29899,
29890,
2620,
29891,
1788,
297,
11652,
29914,
29874,
30004,
13,
1678,
270,
29907,
6370,
353,
315,
999,
448,
315,
6370,
30004,
13,
1678,
396,
2184,
23768,
11374,
313,
29903,
2227,
8443,
13,
1678,
805,
29875,
353,
270,
29907,
6370,
847,
270,
29907,
680,
284,
30004,
13,
30004,
13,
1678,
736,
805,
29875,
30004,
13,
30004,
13,
30004,
13,
30004,
13,
2
] |
tests/test_operations.py | HumanCellAtlas/data-store | 46 | 154788 | #!/usr/bin/env python
# coding: utf-8
import io
import os
import sys
import uuid
import json
import argparse
import unittest
import string
import random
import copy
import datetime
import tempfile
from collections import namedtuple
from unittest import mock
from boto3.s3.transfer import TransferConfig
from botocore.exceptions import ClientError
from cloud_blobstore import BlobNotFoundError
pkg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) # noqa
sys.path.insert(0, pkg_root) # noqa
from tests import skip_on_travis
from tests.infra import testmode
from dss.operations import DSSOperationsCommandDispatch
from dss.operations.util import map_bucket_results
from dss.operations import checkout, storage, sync, secrets, lambda_params, iam, events
from dss.operations.lambda_params import get_deployed_lambdas, fix_ssm_variable_prefix
from dss.operations.iam import IAMSEPARATOR
from dss.operations.secrets import SecretsChecker
from dss.logging import configure_test_logging
from dss.config import BucketConfig, Config, Replica, override_bucket_config
from dss.storage.hcablobstore import FileMetadata, compose_blob_key
from dss.util.version import datetime_to_version_format
from tests import CaptureStdout, SwapStdin
from tests.test_bundle import TestBundleApiMixin
from tests.infra import get_env, DSSUploadMixin, TestAuthMixin, DSSAssertMixin
from tests.infra.server import ThreadedLocalServer
def setUpModule():
configure_test_logging()
def random_alphanumeric_string(N=10):
return ''.join(random.choices(string.ascii_uppercase + string.digits, k=N))
@testmode.standalone
class TestOperations(unittest.TestCase):
def test_dispatch(self):
with self.subTest("dispatch without mutually exclusive arguments"):
self._test_dispatch()
with self.subTest("dispatch with mutually exclusive arguments"):
self._test_dispatch(mutually_exclusive=True)
with self.subTest("dispatch with action overrides"):
self._test_dispatch(action_overrides=True)
def _test_dispatch(self, mutually_exclusive=None, action_overrides=False):
dispatch = DSSOperationsCommandDispatch()
target = dispatch.target(
"my_target",
arguments={
"foo": dict(default="george", type=int),
"--argument-a": None,
"--argument-b": dict(default="bar"),
},
mutually_exclusive=(["--argument-a", "--argument-b"] if mutually_exclusive else None)
)
if action_overrides:
@target.action("my_action", arguments={"foo": None, "--bar": dict(default="bars")})
def my_action(argv, args):
self.assertEqual(args.argument_b, "LSDKFJ")
self.assertEqual(args.foo, "24")
self.assertEqual(args.bar, "bars")
else:
@target.action("my_action")
def my_action(argv, args):
self.assertEqual(args.argument_b, "LSDKFJ")
self.assertEqual(args.foo, 24)
dispatch(["my_target", "my_action", "24", "--argument-b", "LSDKFJ"])
def test_map_bucket(self):
with override_bucket_config(BucketConfig.TEST_FIXTURE):
for replica in Replica:
with self.subTest(replica=replica):
handle = Config.get_blobstore_handle(replica)
count_list = 0
for key in handle.list(replica.bucket, prefix="bundles/"):
count_list += 1
def counter(keys):
count = 0
for key in keys:
count += 1
return count
total = 0
for count in map_bucket_results(counter, handle, replica.bucket, "bundles/", 2):
total += count
self.assertGreater(count_list, 0)
self.assertEqual(count_list, total)
def test_repair_blob_metadata(self):
uploader = {Replica.aws: self._put_s3_file, Replica.gcp: self._put_gs_file}
with override_bucket_config(BucketConfig.TEST):
for replica in Replica:
handle = Config.get_blobstore_handle(replica)
key = str(<KEY>())
file_metadata = {
FileMetadata.SHA256: "foo",
FileMetadata.SHA1: "foo",
FileMetadata.S3_ETAG: "foo",
FileMetadata.CRC32C: "foo",
FileMetadata.CONTENT_TYPE: "foo"
}
blob_key = compose_blob_key(file_metadata)
uploader[replica](key, json.dumps(file_metadata).encode("utf-8"), "application/json")
uploader[replica](blob_key, b"123", "bar")
args = argparse.Namespace(keys=[key], entity_type="files", job_id="", replica=replica.name)
with self.subTest("Blob content type repaired", replica=replica):
storage.repair_file_blob_metadata([], args).process_key(key)
self.assertEqual(handle.get_content_type(replica.bucket, blob_key),
file_metadata[FileMetadata.CONTENT_TYPE])
with self.subTest("Should handle arbitrary exceptions", replica=replica):
with mock.patch("dss.operations.storage.StorageOperationHandler.log_error") as log_error:
with mock.patch("dss.config.Config.get_native_handle") as thrower:
thrower.side_effect = Exception()
storage.repair_file_blob_metadata([], args).process_key(key)
log_error.assert_called()
self.assertEqual(log_error.call_args[0][0], "Exception")
with self.subTest("Should handle missing file metadata", replica=replica):
with mock.patch("dss.operations.storage.StorageOperationHandler.log_warning") as log_warning:
storage.repair_file_blob_metadata([], args).process_key("wrong key")
self.assertEqual(log_warning.call_args[0][0], "BlobNotFoundError")
with self.subTest("Should handle missing blob", replica=replica):
with mock.patch("dss.operations.storage.StorageOperationHandler.log_warning") as log_warning:
file_metadata[FileMetadata.SHA256] = "wrong"
uploader[replica](key, json.dumps(file_metadata).encode("utf-8"), "application/json")
storage.repair_file_blob_metadata([], args).process_key(key)
self.assertEqual(log_warning.call_args[0][0], "BlobNotFoundError")
with self.subTest("Should handle corrupt file metadata", replica=replica):
with mock.patch("dss.operations.storage.StorageOperationHandler.log_warning") as log_warning:
uploader[replica](key, b"this is not json", "application/json")
storage.repair_file_blob_metadata([], args).process_key(key)
self.assertEqual(log_warning.call_args[0][0], "JSONDecodeError")
def test_bundle_reference_list(self):
class MockHandler:
mock_file_data = {"uuid": "987",
"version": "987",
"sha256": "256k",
"sha1": "1thing",
"s3-etag": "s34me",
"crc32c": "wthisthis"}
mock_bundle_metadata = {"files": [mock_file_data]}
mock_bundle_key = 'bundles/123.456'
handle = mock.Mock()
def get(self, bucket, key):
return json.dumps(self.mock_bundle_metadata)
for replica in Replica:
with self.subTest("Test Bundle Reference"):
with override_bucket_config(BucketConfig.TEST):
with mock.patch("dss.operations.storage.Config") as mock_handle:
mock_handle.get_blobstore_handle = mock.MagicMock(return_value=MockHandler())
args = argparse.Namespace(keys=[MockHandler.mock_bundle_key],
replica=replica.name,
entity_type='bundles',
job_id="")
res = storage.build_reference_list([], args).process_key(MockHandler.mock_bundle_key)
self.assertIn(MockHandler.mock_bundle_key, res)
self.assertIn(f'files/{MockHandler.mock_file_data["uuid"]}.'
f'{MockHandler.mock_file_data["version"]}',
res)
self.assertIn(compose_blob_key(MockHandler.mock_file_data), res)
def test_update_content_type(self):
TestCase = namedtuple("TestCase", "replica upload size update initial_content_type expected_content_type")
with override_bucket_config(BucketConfig.TEST):
key = f"operations/{uuid.uuid4()}"
large_size = 64 * 1024 * 1024 + 1
tests = [
TestCase(Replica.aws, self._put_s3_file, 1, storage.update_aws_content_type, "a", "b"),
TestCase(Replica.aws, self._put_s3_file, large_size, storage.update_aws_content_type, "a", "b"),
TestCase(Replica.gcp, self._put_gs_file, 1, storage.update_gcp_content_type, "a", "b"),
]
for test in tests:
data = os.urandom(test.size)
with self.subTest(test.replica.name):
handle = Config.get_blobstore_handle(test.replica)
native_handle = Config.get_native_handle(test.replica)
test.upload(key, data, test.initial_content_type)
old_checksum = handle.get_cloud_checksum(test.replica.bucket, key)
test.update(native_handle, test.replica.bucket, key, test.expected_content_type)
self.assertEqual(test.expected_content_type, handle.get_content_type(test.replica.bucket, key))
self.assertEqual(handle.get(test.replica.bucket, key), data)
self.assertEqual(old_checksum, handle.get_cloud_checksum(test.replica.bucket, key))
def test_verify_blob_replication(self):
key = "blobs/alsdjflaskjdf"
from_handle = mock.Mock()
to_handle = mock.Mock()
from_handle.get_size = mock.Mock(return_value=10)
to_handle.get_size = mock.Mock(return_value=10)
with self.subTest("no replication error"):
res = sync.verify_blob_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res, list())
with self.subTest("Unequal size blobs reports error"):
to_handle.get_size = mock.Mock(return_value=11)
res = sync.verify_blob_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res[0].key, key)
self.assertIn("mismatch", res[0].anomaly)
with self.subTest("Missing target blob reports error"):
to_handle.get_size.side_effect = BlobNotFoundError
res = sync.verify_blob_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res[0].key, key)
self.assertIn("missing", res[0].anomaly)
def test_verify_file_replication(self):
key = "blobs/alsdjflaskjdf"
from_handle = mock.Mock()
to_handle = mock.Mock()
file_metadata = json.dumps({'sha256': "", 'sha1': "", 's3-etag': "", 'crc32c': ""})
from_handle.get = mock.Mock(return_value=file_metadata)
to_handle.get = mock.Mock(return_value=file_metadata)
with self.subTest("no replication error"):
with mock.patch("dss.operations.sync.verify_blob_replication") as vbr:
vbr.return_value = list()
res = sync.verify_file_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res, list())
with self.subTest("Unequal file metadata"):
to_handle.get.return_value = "{}"
res = sync.verify_file_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res[0].key, key)
self.assertIn("mismatch", res[0].anomaly)
with self.subTest("Missing file metadata"):
to_handle.get.side_effect = BlobNotFoundError
res = sync.verify_file_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res[0].key, key)
self.assertIn("missing", res[0].anomaly)
def test_verify_bundle_replication(self):
key = "blobs/alsdjflaskjdf"
from_handle = mock.Mock()
to_handle = mock.Mock()
bundle_metadata = json.dumps({
"creator_uid": 8008,
"files": [{"uuid": None, "version": None}]
})
from_handle.get = mock.Mock(return_value=bundle_metadata)
to_handle.get = mock.Mock(return_value=bundle_metadata)
with mock.patch("dss.operations.sync.verify_file_replication") as vfr:
with self.subTest("replication ok"):
vfr.return_value = list()
res = sync.verify_bundle_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res, [])
with self.subTest("replication problem"):
vfr.return_value = [sync.ReplicationAnomaly(key="", anomaly="")]
res = sync.verify_bundle_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res, vfr.return_value)
with self.subTest("Unequal bundle metadata"):
to_handle.get.return_value = "{}"
res = sync.verify_bundle_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res[0].key, key)
self.assertIn("mismatch", res[0].anomaly)
with self.subTest("Missing destination bundle metadata"):
to_handle.get.side_effect = BlobNotFoundError
res = sync.verify_bundle_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res[0].key, key)
self.assertIn("missing on target", res[0].anomaly)
with self.subTest("Missing source bundle metadata"):
from_handle.get.side_effect = BlobNotFoundError
res = sync.verify_bundle_replication(from_handle, to_handle, "", "", key)
self.assertEqual(res[0].key, key)
self.assertIn("missing on source", res[0].anomaly)
def _put_s3_file(self, key, data, content_type="blah", part_size=None):
s3 = Config.get_native_handle(Replica.aws)
with io.BytesIO(data) as fh:
s3.upload_fileobj(Bucket=Replica.aws.bucket,
Key=key,
Fileobj=fh,
ExtraArgs=dict(ContentType=content_type),
Config=TransferConfig(multipart_chunksize=64 * 1024 * 1024))
def _put_gs_file(self, key, data, content_type="blah"):
gs = Config.get_native_handle(Replica.gcp)
gs_bucket = gs.bucket(Replica.gcp.bucket)
gs_blob = gs_bucket.blob(key, chunk_size=1 * 1024 * 1024)
with io.BytesIO(data) as fh:
gs_blob.upload_from_file(fh, content_type="application/octet-stream")
def test_iam_aws_list_policies(self):
def _get_aws_list_policies_kwargs(**kwargs):
# Set default kwarg values, then set any user-specified kwargs
custom_kwargs = dict(
cloud_provider="aws",
group_by=None,
output=None,
force=False,
include_managed=False,
exclude_headers=False,
quiet=True
)
for kw, val in kwargs.items():
custom_kwargs[kw] = val
return custom_kwargs
def _get_fake_policy_document():
"""Utility function to get a fake policy document for mocking the AWS API"""
return {
"Version": "2000-01-01",
"Statement": [
{
"Effect": "Allow",
"Action": ["fakeservice:*"],
"Resource": [
"arn:aws:fakeservice:us-east-1:861229788715:foo:bar*",
"arn:aws:fakeservice:us-east-1:861229788715:foo:bar/baz*",
],
}
],
}
with self.subTest("List AWS policies"):
with mock.patch("dss.operations.iam.iam_client") as iam_client:
# calling list_policies() will call list_aws_policies()
# which will call extract_aws_policies()
# which will call get_paginator("list_policies")
# which will call paginate() to ask for each page,
# and ask for ["Policies"] for the page items,
# and ["PolicyName"] for the items
class MockPaginator(object):
def paginate(self, *args, **kwargs):
# Return a mock page from the mock paginator
return [{"Policies": [{"PolicyName": "fake-policy"}]}]
# Plain call to list_policies
iam_client.get_paginator.return_value = MockPaginator()
with CaptureStdout() as output:
kwargs = _get_aws_list_policies_kwargs()
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn("fake-policy", output)
# Check write to output file
temp_prefix = "dss-test-operations-iam-aws-list-temp-output"
f, fname = tempfile.mkstemp(prefix=temp_prefix)
iam_client.get_paginator.return_value = MockPaginator()
kwargs = _get_aws_list_policies_kwargs(output=fname, force=True)
iam.list_policies([], argparse.Namespace(**kwargs))
with open(fname, "r") as f:
output = f.read()
self.assertIn("fake-policy", output)
# Define utility functions and classes to help test the --group-by flags
def _get_detail_lists(asset_type):
"""Utility function to return a fake user detail list for mocking AWS API"""
if asset_type not in ['users', 'groups', 'roles']:
raise RuntimeError("Error: invalid asset type given, cannot mock AWS API")
user_detail_list = [
{
"UserName": "fake-user-1",
"UserId": random_alphanumeric_string(N=21).upper(),
"AttachedManagedPolicies": [],
"UserPolicyList": [
{
"PolicyName": "fake-policy-attached-to-fake-user-1",
"PolicyDocument": _get_fake_policy_document(),
}
],
}
]
group_detail_list = [
{
"GroupName": "fake-group-1",
"GroupId": random_alphanumeric_string(N=21).upper(),
"AttachedManagedPolicies": [],
"GroupPolicyList": [
{
"PolicyName": "fake-policy-attached-to-fake-group-1",
"PolicyDocument": _get_fake_policy_document(),
}
],
}
]
role_detail_list = [
{
"RoleName": "fake-role-1",
"RoleId": random_alphanumeric_string(N=21).upper(),
"AttachedManagedPolicies": [],
"RolePolicyList": [
{
"PolicyName": "fake-policy-attached-to-fake-role-1",
"PolicyDocument": _get_fake_policy_document(),
}
],
}
]
return {
"GroupDetailList": group_detail_list if asset_type == "groups" else [],
"RoleDetailList": role_detail_list if asset_type == "roles" else [],
"UserDetailList": user_detail_list if asset_type == "users" else [],
}
class MockPaginator_UserPolicies(object):
def paginate(self, *args, **kwargs):
yield _get_detail_lists("users")
class MockPaginator_GroupPolicies(object):
def paginate(self, *args, **kwargs):
yield _get_detail_lists("groups")
class MockPaginator_RolePolicies(object):
def paginate(self, *args, **kwargs):
yield _get_detail_lists("roles")
with self.subTest("List AWS policies grouped by user"):
with mock.patch("dss.operations.iam.iam_client") as iam_client:
# this will call list_aws_user_policies()
# which will call list_aws_policies_grouped()
# which will call get_paginator("get_account_authorization_details")
# (this is what we mock)
# then it calls paginate() to ask for each page,
# which we mock in the mock classes above.
iam_client.get_paginator.return_value = MockPaginator_UserPolicies()
# Plain call to list_policies
with CaptureStdout() as output:
kwargs = _get_aws_list_policies_kwargs(group_by="users")
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn(IAMSEPARATOR.join(["fake-user-1", "fake-policy-attached-to-fake-user-1"]), output)
# Check write to output file
temp_prefix = "dss-test-operations-iam-aws-list-users-temp-output"
f, fname = tempfile.mkstemp(prefix=temp_prefix)
iam_client.get_paginator.return_value = MockPaginator_UserPolicies()
kwargs = _get_aws_list_policies_kwargs(group_by="users", output=fname, force=True)
iam.list_policies([], argparse.Namespace(**kwargs))
with open(fname, "r") as f:
output = f.read()
self.assertIn(
IAMSEPARATOR.join(["fake-user-1", "fake-policy-attached-to-fake-user-1"]), output
)
with self.subTest("List AWS policies grouped by user"):
with mock.patch("dss.operations.iam.iam_client") as iam_client:
# calls list_aws_group_policies
# then list_aws_policies_grouped
# then get_paginator("get_account_authorization_details")
# (this is what we mock)
iam_client.get_paginator.return_value = MockPaginator_GroupPolicies()
# Plain call to list_policies
with CaptureStdout() as output:
kwargs = _get_aws_list_policies_kwargs(group_by="groups")
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn(
IAMSEPARATOR.join(["fake-group-1", "fake-policy-attached-to-fake-group-1"]), output
)
# Check write to output file
temp_prefix = "dss-test-operations-iam-aws-list-groups-temp-output"
f, fname = tempfile.mkstemp(prefix=temp_prefix)
iam_client.get_paginator.return_value = MockPaginator_GroupPolicies()
kwargs = _get_aws_list_policies_kwargs(group_by="groups", output=fname, force=True)
iam.list_policies([], argparse.Namespace(**kwargs))
with open(fname, "r") as f:
output = f.read()
self.assertIn(
IAMSEPARATOR.join(["fake-group-1", "fake-policy-attached-to-fake-group-1"]), output
)
with self.subTest("List AWS policies grouped by role"):
with mock.patch("dss.operations.iam.iam_client") as iam_client:
# calls list_aws_group_policies
# then list_aws_policies_grouped
# then get_paginator("get_account_authorization_details")
# (this is what we mock)
iam_client.get_paginator.return_value = MockPaginator_RolePolicies()
# Plain call to list_policies
with CaptureStdout() as output:
kwargs = _get_aws_list_policies_kwargs(group_by="roles")
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn(
IAMSEPARATOR.join(["fake-role-1", "fake-policy-attached-to-fake-role-1"]), output
)
# Check write to output file
temp_prefix = "dss-test-operations-iam-aws-list-roles-temp-output"
f, fname = tempfile.mkstemp(prefix=temp_prefix)
iam_client.get_paginator.return_value = MockPaginator_RolePolicies()
kwargs = _get_aws_list_policies_kwargs(group_by="roles", output=fname, force=True)
iam.list_policies([], argparse.Namespace(**kwargs))
with open(fname, "r") as f:
output = f.read()
self.assertIn(
IAMSEPARATOR.join(["fake-role-1", "fake-policy-attached-to-fake-role-1"]), output
)
# Make sure we can't overwrite without --force
with self.assertRaises(RuntimeError):
kwargs = _get_aws_list_policies_kwargs(group_by="roles", output=fname, force=False)
iam.list_policies([], argparse.Namespace(**kwargs))
# Test error-handling and exceptions last
with self.subTest("Test exceptions and error-handling for AWS IAM functions in dss-ops"):
with self.assertRaises(RuntimeError):
kwargs = _get_aws_list_policies_kwargs(cloud_provider="invalid-cloud-provider")
iam.list_policies([], argparse.Namespace(**kwargs))
with self.assertRaises(RuntimeError):
kwargs = _get_aws_list_policies_kwargs(group_by="another-invalid-choice")
iam.list_policies([], argparse.Namespace(**kwargs))
def test_iam_fus_list_policies(self):
def _get_fus_list_policies_kwargs(**kwargs):
# Set default kwargs values, then set user-specified kwargs
custom_kwargs = dict(
cloud_provider="fusillade",
group_by=None,
output=None,
force=False,
exclude_headers=False,
include_managed=False,
quiet=True
)
for kw, val in kwargs.items():
custom_kwargs[kw] = val
return custom_kwargs
with self.subTest("Fusillade client"):
with mock.patch("dss.operations.iam.DCPServiceAccountManager") as SAM, \
mock.patch("dss.operations.iam.requests") as req:
# Mock the service account manager so it won't hit the fusillade server
class FakeServiceAcctMgr(object):
def get_authorization_header(self, *args, **kwargs):
return {}
SAM.from_secrets_manager = mock.MagicMock(return_value=FakeServiceAcctMgr())
# Create fake API response (one page)
class FakeResponse(object):
def __init__(self):
self.headers = {}
def raise_for_status(self, *args, **kwargs):
pass
def json(self, *args, **kwargs):
return {"key": "value"}
# Test call_api()
req.get = mock.MagicMock(return_value=FakeResponse())
client = iam.FusilladeClient("testing")
result = client.call_api("/foobar", "key")
self.assertEqual(result, "value")
# Mock paginated responses with and without Link header
class FakePaginatedResponse(object):
def __init__(self):
self.headers = {}
def raise_for_status(self, *args, **kwargs):
pass
def json(self, *args, **kwargs):
return {"key": ["values", "values"]}
class FakePaginatedResponseWithLink(FakePaginatedResponse):
def __init__(self):
self.headers = {"Link": "<https://api.github.com/user/repos?page=3&per_page=100>;"}
# Test paginate()
req.get = mock.MagicMock(side_effect=[FakePaginatedResponseWithLink(), FakePaginatedResponse()])
result = client.paginate("/foobar", "key")
self.assertEqual(result, ["values"] * 4)
def _wrap_policy(policy_doc):
"""Wrap a policy doc the way Fusillade stores/returns them"""
return {"IAMPolicy": policy_doc}
def _repatch_fus_client(fus_client):
"""
Re-patch a mock Fusillade client with the proper responses for no --group-by flag
or for the --group-by users flag.
"""
# When we call list_policies(), which calls list_fus_user_policies(),
# it calls the paginate() method to get a list of all users,
# then the paginate() method twice for each user (once for groups, once for roles),
side_effects = [
[
"<EMAIL>",
"<EMAIL>"
],
["fake-group"], ["fake-role"],
["fake-group-2"], ["fake-role-2"]
]
fus_client().paginate = mock.MagicMock(side_effect=side_effects)
# Once we have called the paginate() methods,
# we call the call_api() method to get IAM policies attached to roles and groups
policy_docs = [
'{"Id": "fake-group-policy"}',
'{"Id": "fake-role-policy"}',
'{"Id": "fake-group-2-policy"}',
'{"Id": "fake-role-2-policy"}',
]
fus_client().call_api = mock.MagicMock(side_effect=[_wrap_policy(doc) for doc in policy_docs])
with self.subTest("List Fusillade policies"):
with mock.patch("dss.operations.iam.FusilladeClient") as fus_client:
# Note: Need to call _repatch_fus_client() before each test
# Plain call to list_fus_policies
with CaptureStdout() as output:
_repatch_fus_client(fus_client)
kwargs = _get_fus_list_policies_kwargs()
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn("fake-group-policy", output)
self.assertIn("fake-role-policy", output)
self.assertIn("fake-group-2-policy", output)
self.assertIn("fake-role-2-policy", output)
# Check exclude headers
with CaptureStdout() as output:
_repatch_fus_client(fus_client)
kwargs = _get_fus_list_policies_kwargs(exclude_headers=True)
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn("fake-group-policy", output)
self.assertIn("fake-role-policy", output)
self.assertIn("fake-group-2-policy", output)
self.assertIn("fake-role-2-policy", output)
# Check write to output file
temp_prefix = "dss-test-operations-iam-fus-list-temp-output"
f, fname = tempfile.mkstemp(prefix=temp_prefix)
_repatch_fus_client(fus_client)
kwargs = _get_fus_list_policies_kwargs(output=fname, force=True)
iam.list_policies([], argparse.Namespace(**kwargs))
with open(fname, "r") as f:
output = f.read()
self.assertIn("fake-group-policy", output)
self.assertIn("fake-role-policy", output)
self.assertIn("fake-group-2-policy", output)
self.assertIn("fake-role-2-policy", output)
with self.subTest("List Fusillade policies grouped by users"):
with mock.patch("dss.operations.iam.FusilladeClient") as fus_client:
# List fusillade policies grouped by user
with CaptureStdout() as output:
_repatch_fus_client(fus_client)
kwargs = _get_fus_list_policies_kwargs(group_by="users")
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-group-policy"
]), output)
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-role-policy"
]), output)
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-group-2-policy"
]), output)
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-role-2-policy"
]), output)
# Check exclude headers
with CaptureStdout() as output:
_repatch_fus_client(fus_client)
kwargs = _get_fus_list_policies_kwargs(group_by="users", exclude_headers=True)
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-group-policy"
]), output)
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-role-policy"
]), output)
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-group-2-policy"
]), output)
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-role-2-policy"
]), output)
# Check write to output file
temp_prefix = "dss-test-operations-iam-fus-list-users-temp-output"
f, fname = tempfile.mkstemp(prefix=temp_prefix)
_repatch_fus_client(fus_client)
kwargs = _get_fus_list_policies_kwargs(group_by="users", output=fname, force=True)
iam.list_policies([], argparse.Namespace(**kwargs))
with open(fname, "r") as f:
output = f.read()
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-group-policy"
]), output)
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-role-policy"
]), output)
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-group-2-policy"
]), output)
self.assertIn(IAMSEPARATOR.join([
"<EMAIL>", "fake-role-2-policy"
]), output)
with self.subTest("List Fusillade policies grouped by groups"):
# We can't use _repatch_fus_client() to repatch,
# since grouping by groups makes different function calls
def _repatch_fus_client_groups(fus_client):
"""Re-patch a mock Fusillade client with the proper responses for using the --group-by groups flag"""
# When we call list_policies(), which calls list_fus_group_policies(),
# it calls paginate() to get all groups,
# then calls paginate() to get roles for each group
responses = [["fake-group", "fake-group-2"], ["fake-role"], ["fake-role-2"]]
fus_client().paginate = mock.MagicMock(side_effect=responses)
# For each role, list_fus_group_policies() calls get_fus_role_attached_policies(),
# which calls call_api() on each role and returns a corresponding policy document
# @chmreid TODO: should this be calling get policy on each group, too? (inline policies)
policy_docs = ['{"Id": "fake-role-policy"}', '{"Id": "fake-role-2-policy"}']
fus_client().call_api = mock.MagicMock(side_effect=[_wrap_policy(doc) for doc in policy_docs])
with mock.patch("dss.operations.iam.FusilladeClient") as fus_client:
# List fusillade policies grouped by groups
with CaptureStdout() as output:
_repatch_fus_client_groups(fus_client)
kwargs = _get_fus_list_policies_kwargs(group_by="groups")
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn(IAMSEPARATOR.join(["fake-group", "fake-role-policy"]), output)
self.assertIn(IAMSEPARATOR.join(["fake-group-2", "fake-role-2-policy"]), output)
# Check exclude headers
with CaptureStdout() as output:
_repatch_fus_client_groups(fus_client)
kwargs = _get_fus_list_policies_kwargs(group_by="groups", exclude_headers=True)
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn(IAMSEPARATOR.join(["fake-group", "fake-role-policy"]), output)
self.assertIn(IAMSEPARATOR.join(["fake-group-2", "fake-role-2-policy"]), output)
# Check write to output file
temp_prefix = "dss-test-operations-iam-fus-list-groups-temp-output"
f, fname = tempfile.mkstemp(prefix=temp_prefix)
_repatch_fus_client_groups(fus_client)
kwargs = _get_fus_list_policies_kwargs(group_by="groups", output=fname, force=True)
iam.list_policies([], argparse.Namespace(**kwargs))
with open(fname, "r") as f:
output = f.read()
self.assertIn(IAMSEPARATOR.join(["fake-group", "fake-role-policy"]), output)
self.assertIn(IAMSEPARATOR.join(["fake-group-2", "fake-role-2-policy"]), output)
with self.subTest("List Fusillade policies grouped by roles"):
# repatch the fusillade client for calling a list of policies grouped by roles
def _repatch_fus_client_roles(fus_client):
"""Re-patch a mock Fusillade client with the proper responses for using the --group-by roles flag"""
# When we call list_policies, which calls list_fus_role_policies(),
# it calls paginate() to get the list of all roles,
side_effects = [["fake-role", "fake-role-2"]]
fus_client().paginate = mock.MagicMock(side_effect=side_effects)
# list_fus_role_policies then calls get_fus_role_attached_policies()
# to get a list of policies attached to the role,
# which calls call_api() for each role returned by the paginate command
policy_docs = ['{"Id": "fake-role-policy"}', '{"Id": "fake-role-2-policy"}']
fus_client().call_api = mock.MagicMock(side_effect=[_wrap_policy(doc) for doc in policy_docs])
with mock.patch("dss.operations.iam.FusilladeClient") as fus_client:
# List fusillade policies grouped by roles
with CaptureStdout() as output:
_repatch_fus_client_roles(fus_client)
kwargs = _get_fus_list_policies_kwargs(group_by="roles")
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn(IAMSEPARATOR.join(["fake-role", "fake-role-policy"]), output)
self.assertIn(IAMSEPARATOR.join(["fake-role-2", "fake-role-2-policy"]), output)
# Check exclude headers
with CaptureStdout() as output:
_repatch_fus_client_roles(fus_client)
kwargs = _get_fus_list_policies_kwargs(group_by="roles", exclude_headers=True)
iam.list_policies([], argparse.Namespace(**kwargs))
self.assertIn(IAMSEPARATOR.join(["fake-role", "fake-role-policy"]), output)
self.assertIn(IAMSEPARATOR.join(["fake-role-2", "fake-role-2-policy"]), output)
# Check write to output file
temp_prefix = "dss-test-operations-iam-list-roles-temp-output"
f, fname = tempfile.mkstemp(prefix=temp_prefix)
_repatch_fus_client_roles(fus_client)
kwargs = _get_fus_list_policies_kwargs(group_by="roles", output=fname, force=True)
iam.list_policies([], argparse.Namespace(**kwargs))
with open(fname, "r") as f:
output = f.read()
self.assertIn(IAMSEPARATOR.join(["fake-role", "fake-role-policy"]), output)
self.assertIn(IAMSEPARATOR.join(["fake-role-2", "fake-role-2-policy"]), output)
def test_iam_aws_list_assets(self):
def _get_aws_list_assets_kwargs(**kwargs):
# Set default kwargs values, then set user-specified kwargs
custom_kwargs = dict(
cloud_provider="aws",
output=None,
force=False,
exclude_headers=False,
)
for kw, val in kwargs.items():
custom_kwargs[kw] = val
return custom_kwargs
with self.subTest("AWS list users"):
with mock.patch("dss.operations.iam.iam_client") as iam_client:
class MockPaginator_Users(object):
def paginate(self, *args, **kwargs):
return [{"Users": [
{"UserName": "<EMAIL>"},
{"UserName": "<EMAIL>"}
]}]
iam_client.get_paginator.return_value = MockPaginator_Users()
with CaptureStdout() as output:
kwargs = _get_aws_list_assets_kwargs()
iam.list_users([], argparse.Namespace(**kwargs))
self.assertIn("<EMAIL>", output)
self.assertIn("<EMAIL>", output)
with self.subTest("AWS list groups"):
with mock.patch("dss.operations.iam.iam_client") as iam_client:
class MockPaginator_Groups(object):
def paginate(self, *args, **kwargs):
return [{"Groups": [{"GroupName": "fake-group-1"}, {"GroupName": "fake-group-2"}]}]
iam_client.get_paginator.return_value = MockPaginator_Groups()
with CaptureStdout() as output:
kwargs = _get_aws_list_assets_kwargs()
iam.list_groups([], argparse.Namespace(**kwargs))
self.assertIn("fake-group-1", output)
self.assertIn("fake-group-2", output)
with self.subTest("AWS list roles"):
with mock.patch("dss.operations.iam.iam_client") as iam_client:
class MockPaginator_Roles(object):
def paginate(self, *args, **kwargs):
return [{"Roles": [{"RoleName": "fake-role-1"}, {"RoleName": "fake-role-2"}]}]
iam_client.get_paginator.return_value = MockPaginator_Roles()
with CaptureStdout() as output:
kwargs = _get_aws_list_assets_kwargs()
iam.list_roles([], argparse.Namespace(**kwargs))
self.assertIn("fake-role-1", output)
self.assertIn("fake-role-2", output)
def test_iam_fus_list_assets(self):
def _get_fus_list_assets_kwargs(**kwargs):
# Set default kwargs values, then set user-specified kwargs
custom_kwargs = dict(
cloud_provider="fusillade",
output=None,
force=False,
exclude_headers=False,
)
for kw, val in kwargs.items():
custom_kwargs[kw] = val
return custom_kwargs
with self.subTest("Fusillade list users"):
with mock.patch("dss.operations.iam.FusilladeClient") as fus_client:
side_effects = [[
"<EMAIL>",
"<EMAIL>"
]]
fus_client().paginate = mock.MagicMock(side_effect=side_effects)
kwargs = _get_fus_list_assets_kwargs()
with CaptureStdout() as output:
iam.list_users([], argparse.Namespace(**kwargs))
self.assertIn("<EMAIL>", output)
self.assertIn("<EMAIL>", output)
with self.subTest("Fusillade list groups"):
with mock.patch("dss.operations.iam.FusilladeClient") as fus_client:
side_effects = [["fake-group-1", "fake-group-2"]]
fus_client().paginate = mock.MagicMock(side_effect=side_effects)
kwargs = _get_fus_list_assets_kwargs()
with CaptureStdout() as output:
iam.list_groups([], argparse.Namespace(**kwargs))
self.assertIn("fake-group-1", output)
self.assertIn("fake-group-2", output)
with self.subTest("Fusillade list roles"):
with mock.patch("dss.operations.iam.FusilladeClient") as fus_client:
side_effects = [["fake-role-1", "fake-role-2"]]
fus_client().paginate = mock.MagicMock(side_effect=side_effects)
kwargs = _get_fus_list_assets_kwargs()
with CaptureStdout() as output:
iam.list_roles([], argparse.Namespace(**kwargs))
self.assertIn("fake-role-1", output)
self.assertIn("fake-role-2", output)
def test_secrets_crud(self):
# CRUD (create read update delete) test procedure:
# - create new secret
# - list secrets and verify new secret shows up
# - get secret value and verify it is correct
# - update secret value
# - get secret value and verify it is correct
# - delete secret
which_stage = os.environ["DSS_DEPLOYMENT_STAGE"]
which_store = os.environ["DSS_SECRETS_STORE"]
secret_name = random_alphanumeric_string()
testvar_name = f"{which_store}/{which_stage}/{secret_name}"
testvar_value = "Hello world!"
testvar_value2 = "Goodbye world!"
unusedvar_name = f"{which_store}/{which_stage}/admin_user_emails"
with self.subTest("Create a new secret"):
# Monkeypatch the secrets manager
with mock.patch("dss.operations.secrets.sm_client") as sm:
# Creating a new variable will first call get, which will not find it
sm.get_secret_value = mock.MagicMock(return_value=None, side_effect=ClientError({}, None))
# Next we will use the create secret command
sm.create_secret = mock.MagicMock(return_value=None)
# Create initial secret value:
# Dry run first
with SwapStdin(testvar_value):
secrets.set_secret(
[],
argparse.Namespace(
secret_name=testvar_name, dry_run=True, infile=None, quiet=True, force=True
),
)
# Provide secret via stdin
with SwapStdin(testvar_value):
secrets.set_secret(
[],
argparse.Namespace(
secret_name=testvar_name, dry_run=False, infile=None, quiet=True, force=True
),
)
# Provide secret via infile
with tempfile.NamedTemporaryFile(prefix='dss-test-operations-new-secret-temp-input', mode='w') as f:
f.write(testvar_value)
secrets.set_secret(
[],
argparse.Namespace(
secret_name=testvar_name, dry_run=False, infile=f.name, force=True, quiet=True
),
)
# Check error-catching with non-existent infile
mf = 'this-file-is-not-here'
with self.assertRaises(RuntimeError):
secrets.set_secret(
[],
argparse.Namespace(
secret_name=testvar_name, dry_run=False, infile=mf, force=True, quiet=True
),
)
with self.subTest("List secrets"):
with mock.patch("dss.operations.secrets.sm_client") as sm:
# Listing secrets requires creating a paginator first,
# so mock what the paginator returns
class MockPaginator(object):
def paginate(self):
# Return a mock page from the mock paginator
return [{"SecretList": [{"Name": testvar_name}, {"Name": unusedvar_name}]}]
sm.get_paginator.return_value = MockPaginator()
# Non-JSON output first
with CaptureStdout() as output:
secrets.list_secrets([], argparse.Namespace(json=False))
self.assertIn(testvar_name, output)
# JSON output
with CaptureStdout() as output:
secrets.list_secrets([], argparse.Namespace(json=True))
all_secrets_output = json.loads("\n".join(output))
self.assertIn(testvar_name, all_secrets_output)
with self.subTest("Get secret value"):
with mock.patch("dss.operations.secrets.sm_client") as sm:
# Requesting the variable will try to get secret value and succeed
sm.get_secret_value.return_value = {"SecretString": testvar_value}
# Now run get secret value in JSON mode and non-JSON mode
# and verify variable name/value is in both.
# New output file
with tempfile.NamedTemporaryFile(prefix='dss-test-operations-get-secret-temp-output', mode='w') as f:
# Try to overwrite outfile without --force
with self.assertRaises(RuntimeError):
secrets.get_secret(
[], argparse.Namespace(secret_name=testvar_name, outfile=f.name, force=False)
)
# Overwrite outfile with --force
secrets.get_secret(
[], argparse.Namespace(secret_name=testvar_name, outfile=f.name, force=True)
)
with open(f.name, 'r') as fr:
file_contents = fr.read()
self.assertIn(testvar_value, file_contents)
# Output secret to stdout
with CaptureStdout() as output:
secrets.get_secret(
[], argparse.Namespace(secret_name=testvar_name, outfile=None, force=False)
)
self.assertIn(testvar_value, "\n".join(output))
with self.subTest("Update existing secret"):
with mock.patch("dss.operations.secrets.sm_client") as sm:
# Updating the variable will try to get secret value and succeed
sm.get_secret_value = mock.MagicMock(return_value={"SecretString": testvar_value})
# Next we will call the update secret command
sm.update_secret = mock.MagicMock(return_value=None)
# Update secret:
# Dry run first
with SwapStdin(testvar_value2):
secrets.set_secret(
[],
argparse.Namespace(
secret_name=testvar_name, dry_run=True, infile=None, force=True, quiet=True
),
)
# Use stdin
with SwapStdin(testvar_value2):
secrets.set_secret(
[],
argparse.Namespace(
secret_name=testvar_name, dry_run=False, infile=None, force=True, quiet=True
),
)
# Use input file
with tempfile.NamedTemporaryFile(prefix='dss-test-operations-update-secret-temp-input', mode='w') as f:
f.write(testvar_value2)
secrets.set_secret(
[],
argparse.Namespace(
secret_name=testvar_name, dry_run=False, infile=f.name, force=True, quiet=True
),
)
with self.subTest("Delete secret"):
with mock.patch("dss.operations.secrets.sm_client") as sm:
# Deleting the variable will try to get secret value and succeed
sm.get_secret_value = mock.MagicMock(return_value={"SecretString": testvar_value})
sm.delete_secret = mock.MagicMock(return_value=None)
# Delete secret
# Dry run first
secrets.del_secret(
[], argparse.Namespace(secret_name=testvar_name, force=True, dry_run=True, quiet=True)
)
# Real thing
secrets.del_secret(
[], argparse.Namespace(secret_name=testvar_name, force=True, dry_run=False, quiet=True)
)
def test_ssmparams_utilities(self):
prefix = f"/{os.environ['DSS_PARAMETER_STORE']}/{os.environ['DSS_DEPLOYMENT_STAGE']}"
gold_var = f"{prefix}/dummy_variable"
var = "dummy_variable"
new_var = fix_ssm_variable_prefix(var)
self.assertEqual(new_var, gold_var)
var = "/dummy_variable"
new_var = fix_ssm_variable_prefix(var)
self.assertEqual(new_var, gold_var)
var = f"{prefix}/dummy_variable"
new_var = fix_ssm_variable_prefix(var)
self.assertEqual(new_var, gold_var)
var = f"{prefix}/dummy_variable/"
new_var = fix_ssm_variable_prefix(var)
self.assertEqual(new_var, gold_var)
def test_ssmparams_crud(self):
# CRUD (create read update delete) test for setting environment variables in SSM param store
testvar_name = random_alphanumeric_string()
testvar_value = "Hello world!"
# Assemble environment to return
old_env = {"DUMMY_VARIABLE": "dummy_value"}
new_env = dict(**old_env)
new_env[testvar_name] = testvar_value
ssm_new_env = self._wrap_ssm_env(new_env)
with self.subTest("Print the SSM environment"):
with mock.patch("dss.operations.lambda_params.ssm_client") as ssm:
# listing params will call ssm.get_parameter to get the entire environment
ssm.get_parameter = mock.MagicMock(return_value=ssm_new_env)
# Now call our params.py module. Output var=value on each line.
with CaptureStdout() as output:
lambda_params.ssm_environment([], argparse.Namespace(json=False))
self.assertIn(f"{testvar_name}={testvar_value}", output)
def test_lambdaparams_crud(self):
# CRUD (create read update delete) test for setting lambda function environment variables
testvar_name = random_alphanumeric_string()
testvar_value = "Hello world!"
testvar_value2 = "Goodbye world!"
# Assemble an old and new environment to return
old_env = {"DUMMY_VARIABLE": "dummy_value"}
new_env = dict(**old_env)
new_env[testvar_name] = testvar_value
ssm_old_env = self._wrap_ssm_env(old_env)
ssm_new_env = self._wrap_ssm_env(new_env)
lam_old_env = self._wrap_lambda_env(old_env)
lam_new_env = self._wrap_lambda_env(new_env)
with self.subTest("Create a new lambda parameter"):
with mock.patch("dss.operations.lambda_params.ssm_client") as ssm, \
mock.patch("dss.operations.lambda_params.lambda_client") as lam:
# If this is not a dry run, lambda_set in params.py
# will update the SSM first, so we mock those first.
# Before we have set the new test variable for the
# first time, we will see the old environment.
ssm.put_parameter = mock.MagicMock(return_value=None)
ssm.get_parameter = mock.MagicMock(return_value=ssm_old_env)
# The lambda_set func in params.py will update lambdas,
# so we mock the calls that those will make too.
lam.get_function = mock.MagicMock(return_value=None)
lam.get_function_configuration = mock.MagicMock(return_value=lam_old_env)
lam.update_function_configuration = mock.MagicMock(return_value=None)
with SwapStdin(testvar_value):
lambda_params.lambda_set(
[], argparse.Namespace(name=testvar_name, dry_run=True, quiet=True)
)
with SwapStdin(testvar_value):
lambda_params.lambda_set(
[], argparse.Namespace(name=testvar_name, dry_run=False, quiet=True)
)
with self.subTest("List lambda parameters"):
with mock.patch("dss.operations.lambda_params.lambda_client") as lam:
# The lambda_list func in params.py calls get_deployed_lambas, which calls lam.get_function()
# using daemon folder names (this function is called only to ensure no exception is thrown)
lam.get_function = mock.MagicMock(return_value=None)
# Next we call get_deployed_lambda_environment(), which calls lam.get_function_configuration
# (this returns the mocked new env vars json)
lam.get_function_configuration = mock.MagicMock(return_value=lam_new_env)
# Used to specify a lambda by name
stage = os.environ["DSS_DEPLOYMENT_STAGE"]
# Non-JSON fmt
with CaptureStdout() as output:
lambda_params.lambda_list([], argparse.Namespace(json=False))
# Check that all deployed lambdas are present
for lambda_name in lambda_params.get_deployed_lambdas(quiet=True):
self.assertIn(f"{lambda_name}", output)
# JSON fmt
with CaptureStdout() as output:
lambda_params.lambda_list([], argparse.Namespace(json=True))
# Check that all deployed lambdas are present
all_lams_output = json.loads("\n".join(output))
for lambda_name in lambda_params.get_deployed_lambdas(quiet=True):
self.assertIn(lambda_name, all_lams_output)
with self.subTest("Get environments of each lambda function"):
with mock.patch("dss.operations.lambda_params.ssm_client") as ssm, \
mock.patch("dss.operations.lambda_params.lambda_client") as lam:
# lambda_environment() function in dss/operations/lambda_params.py calls get_deployed_lambdas()
# (which only does local operations)
# then it calls get_deployed_lambda_environment() on every lambda,
# which calls lambda_client.get_function() (only called to ensure no exception is thrown)
lam.get_function = mock.MagicMock(return_value=None)
# then calls lambda_client.get_function_configuration()
lam.get_function_configuration = mock.MagicMock(return_value=lam_new_env)
# TODO: reduce copypasta
# Non-JSON, no lambda name specified
with CaptureStdout() as output:
lambda_params.lambda_environment([], argparse.Namespace(lambda_name=None, json=False))
# Check that all deployed lambdas are present
output = "\n".join(output)
for lambda_name in lambda_params.get_deployed_lambdas(quiet=True):
self.assertIn(lambda_name, output)
# Non-JSON, lambda name specified
with CaptureStdout() as output:
lambda_params.lambda_environment([], argparse.Namespace(lambda_name=f"dss-{stage}", json=False))
output = "\n".join(output)
self.assertIn(f"dss-{stage}", output)
# JSON, no lambda name specified
with CaptureStdout() as output:
lambda_params.lambda_environment([], argparse.Namespace(lambda_name=None, json=True))
# Check that all deployed lambdas are present
all_lams_output = json.loads("\n".join(output))
for lambda_name in lambda_params.get_deployed_lambdas(quiet=True):
self.assertIn(lambda_name, all_lams_output)
# JSON, lambda name specified
with CaptureStdout() as output:
lambda_params.lambda_environment([], argparse.Namespace(lambda_name=f"dss-{stage}", json=True))
all_lams_output = json.loads("\n".join(output))
self.assertIn(f"dss-{stage}", all_lams_output)
with self.subTest("Update (set) existing lambda parameters"):
with mock.patch("dss.operations.lambda_params.ssm_client") as ssm, \
mock.patch("dss.operations.lambda_params.lambda_client") as lam:
# Mock the same way we did for create new param above.
# First we mock the SSM param store
ssm.get_parameter = mock.MagicMock(return_value=ssm_new_env)
ssm.put_parameter = mock.MagicMock(return_value=None)
# Next we mock the lambda client
lam.get_function = mock.MagicMock(return_value=None)
lam.get_function_configuration = mock.MagicMock(return_value=lam_new_env)
lam.update_function_configuration = mock.MagicMock(return_value=None)
# Dry run then real (mocked) thing
with SwapStdin(testvar_value2):
lambda_params.lambda_set(
[], argparse.Namespace(name=testvar_name, dry_run=True, quiet=True)
)
with SwapStdin(testvar_value2):
lambda_params.lambda_set(
[], argparse.Namespace(name=testvar_name, dry_run=False, quiet=True)
)
with self.subTest("Update lambda environment stored in SSM store under $DSS_DEPLOYMENT_STAGE/environment"):
with mock.patch("dss.operations.lambda_params.ssm_client") as ssm, \
mock.patch("dss.operations.lambda_params.lambda_client") as lam, \
mock.patch("dss.operations.lambda_params.es_client") as es, \
mock.patch("dss.operations.lambda_params.sm_client") as sm, \
mock.patch("dss.operations.lambda_params.set_ssm_environment") as set_ssm:
# If we call lambda_update in dss/operations/lambda_params.py,
# it calls get_local_lambda_environment()
# (local operations only)
# lambda_update() then calls set_ssm_environment(),
# which we mocked above into set_ssm
set_ssm = mock.MagicMock(return_value=None) # noqa
ssm.put_parameter = mock.MagicMock(return_value=None)
# get_elasticsearch_endpoint() calls es.describe_elasticsearch_domain()
es_endpoint_secret = {
"DomainStatus": {
"Endpoint": "this-invalid-es-endpoint-value-comes-from-dss-test-operations"
}
}
es.describe_elasticsearch_domain = mock.MagicMock(
return_value=es_endpoint_secret
)
# get_admin_emails() calls sm.get_secret_value() several times:
# - google service acct secret (json string)
# - admin email secret
# use side_effect when returning multiple values
google_service_acct_secret = json.dumps(
{"client_email": "this-invalid-email-comes-from-dss-test-operations"}
)
admin_email_secret = "this-invalid-email-list-comes-from-dss-test-operations"
# Finally, we call set_ssm_environment
# which calls ssm.put_parameter()
# (mocked above).
# If we also update deployed lambdas:
# get_deployed_lambdas() -> lam_client.get_function()
# get_deployed_lambda_environment() -> lam_client.get_function_configuration()
# set_deployed_lambda_environment() -> lam_client.update_function_configuration()
lam.get_function = mock.MagicMock(return_value=None)
lam.get_function_configuration = mock.MagicMock(return_value=lam_new_env)
lam.update_function_configuration = mock.MagicMock(return_value=None)
# The function sm.get_secret_value() must return things in the right order
# Re-mock it before each call
email_side_effect = [
self._wrap_secret(google_service_acct_secret),
self._wrap_secret(admin_email_secret),
]
# Dry run, then real (mocked) thing
sm.get_secret_value = mock.MagicMock(side_effect=email_side_effect)
lambda_params.lambda_update(
[], argparse.Namespace(update_deployed=False, dry_run=True, force=True, quiet=True)
)
sm.get_secret_value = mock.MagicMock(side_effect=email_side_effect)
lambda_params.lambda_update(
[], argparse.Namespace(update_deployed=False, dry_run=False, force=True, quiet=True)
)
sm.get_secret_value = mock.MagicMock(side_effect=email_side_effect)
lambda_params.lambda_update(
[], argparse.Namespace(update_deployed=True, dry_run=False, force=True, quiet=True)
)
with self.subTest("Unset lambda parameters"):
with mock.patch("dss.operations.lambda_params.ssm_client") as ssm, \
mock.patch("dss.operations.lambda_params.lambda_client") as lam:
# If this is not a dry run, lambda_set in params.py
# will update the SSM first, so we mock those first.
# Before we have set the new test variable for the
# first time, we will see the old environment.
ssm.put_parameter = mock.MagicMock(return_value=None)
# use deepcopy here to prevent delete operation from being permanent
ssm.get_parameter = mock.MagicMock(return_value=copy.deepcopy(ssm_new_env))
# The lambda_set func in params.py will update lambdas,
# so we mock the calls that those will make too.
lam.get_function = mock.MagicMock(return_value=None)
# use side effect here, and copy the environment for each lambda, so that deletes won't be permanent
lam.get_function_configuration = mock.MagicMock(
side_effect=[copy.deepcopy(lam_new_env) for j in get_deployed_lambdas()]
)
lam.update_function_configuration = mock.MagicMock(return_value=None)
lambda_params.lambda_unset([], argparse.Namespace(name=testvar_name, dry_run=True, quiet=True))
lambda_params.lambda_unset([], argparse.Namespace(name=testvar_name, dry_run=False, quiet=True))
def test_events_operations_journal(self):
with self.subTest("Should forward to lambda when `starting_journal_id` is `None`"):
self._test_events_operations_journal(None, 0, 2)
with self.subTest("Should execute journaling when `starting_journal_id` is not `None`"):
self._test_events_operations_journal("blah", 1, 0)
def _test_events_operations_journal(self,
starting_journal_id: str,
expected_journal_flashflood_calls: int,
expected_sqs_messenger_calls: int):
sqs_messenger = mock.MagicMock()
with mock.patch("dss.operations.events.SQSMessenger", return_value=sqs_messenger), \
mock.patch("dss.operations.events.list_new_flashflood_journals"), \
mock.patch("dss.operations.events.journal_flashflood") as journal_flashflood, \
mock.patch("dss.operations.events.monitor_logs"):
args = argparse.Namespace(prefix="pfx",
number_of_events=5,
starting_journal_id=starting_journal_id,
job_id=None)
events.journal([], args)
self.assertEqual(expected_journal_flashflood_calls, len(journal_flashflood.mock_calls))
self.assertEqual(expected_sqs_messenger_calls, len(sqs_messenger.mock_calls))
def _wrap_ssm_env(self, e):
"""
Package up the SSM environment the way AWS returns it.
:param dict e: the dict containing the environment to package up and send to SSM store at
$DSS_DEPLOYMENT_STAGE/environment.
"""
# Value should be serialized JSON
ssm_e = {"Parameter": {"Name": "environment", "Value": json.dumps(e)}}
return ssm_e
def _wrap_lambda_env(self, e):
"""
Package up the lambda environment (a.k.a. function configuration) the way AWS returns it.
:param dict e: the dict containing the lambda function's environment variables
"""
# Value should be a dict (NOT a string)
lam_e = {"Environment": {"Variables": e}}
return lam_e
def _wrap_secret(self, val):
"""
Package up the secret the way AWS returns it.
"""
return {"SecretString": val}
@testmode.integration
class TestOperationsIntegration(TestBundleApiMixin):
@classmethod
def setUpClass(cls):
cls.app = ThreadedLocalServer()
cls.app.start()
@classmethod
def tearDownClass(cls):
cls.app.shutdown()
def setUp(self):
Config.set_config(BucketConfig.TEST)
self.s3_test_bucket = get_env("DSS_S3_BUCKET_TEST")
self.gs_test_bucket = get_env("DSS_GS_BUCKET_TEST")
self.s3_test_fixtures_bucket = get_env("DSS_S3_BUCKET_TEST_FIXTURES")
self.gs_test_fixtures_bucket = get_env("DSS_GS_BUCKET_TEST_FIXTURES")
def test_checkout_operations(self):
with override_bucket_config(BucketConfig.TEST):
for replica, fixture_bucket in [(Replica['aws'],
self.s3_test_fixtures_bucket),
(Replica['gcp'],
self.gs_test_fixtures_bucket)]:
bundle, bundle_uuid = self._create_bundle(replica, fixture_bucket)
args = argparse.Namespace(replica=replica.name, keys=[f'bundles/{bundle_uuid}.{bundle["version"]}'])
checkout_status = checkout.Verify([], args).process_keys()
for key in args.keys:
self.assertIn(key, checkout_status)
checkout.Remove([], args).process_keys()
checkout_status = checkout.Verify([], args).process_keys()
for key in args.keys:
for file in checkout_status[key]:
self.assertIs(False, file['bundle_checkout'])
self.assertIs(False, file['blob_checkout'])
checkout.Add([], args).process_keys()
checkout_status = checkout.Verify([], args).process_keys()
for key in args.keys:
for file in checkout_status[key]:
self.assertIs(True, file['bundle_checkout'])
self.assertIs(True, file['blob_checkout'])
self.delete_bundle(replica, bundle_uuid)
def _create_bundle(self, replica: Replica, fixtures_bucket: str):
schema = replica.storage_schema
bundle_uuid = str(uuid.uuid4())
file_uuid = str(uuid.uuid4())
resp_obj = self.upload_file_wait(
f"{schema}://{fixtures_bucket}/test_good_source_data/0",
replica,
file_uuid,
bundle_uuid=bundle_uuid,
)
file_version = resp_obj.json['version']
bundle_version = datetime_to_version_format(datetime.datetime.utcnow())
resp_obj = self.put_bundle(replica,
bundle_uuid,
[(file_uuid, file_version, "LICENSE")],
bundle_version)
return resp_obj.json, bundle_uuid
@testmode.integration
class TestSecretsChecker(unittest.TestCase):
"""Test the SecretsChecker class defined in dss/operations/secrets.py"""
@skip_on_travis
def test_check_secrets(self):
"""Check that the current stage's secrets conform to expected values"""
secrets.check_secrets([], argparse.Namespace())
@skip_on_travis
def test_custom_stage_secrets(self):
"""
The SecretsChecker should not test stages that are not in the list:
dev, staging, integration, prod.
"""
s = SecretsChecker(stage='somenonsensenamelikeprod')
s.run()
@skip_on_travis
def test_invalid_secrets(self):
"""Check that a ValueError is raised when an unqualified email is stored in a secret."""
s = SecretsChecker(stage='dev')
# Override the email field obtained from terraform
s.email = ['nonsense']
with self.assertRaises(ValueError):
s.run()
if __name__ == '__main__':
unittest.main()
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
5215,
12013,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
318,
5416,
13,
5215,
4390,
13,
5215,
1852,
5510,
13,
5215,
443,
27958,
13,
5215,
1347,
13,
5215,
4036,
13,
5215,
3509,
13,
5215,
12865,
13,
5215,
5694,
1445,
13,
3166,
16250,
1053,
4257,
23583,
13,
3166,
443,
27958,
1053,
11187,
13,
3166,
289,
3747,
29941,
29889,
29879,
29941,
29889,
3286,
571,
1053,
17934,
3991,
13,
3166,
9225,
542,
487,
29889,
11739,
29879,
1053,
12477,
2392,
13,
13,
3166,
9570,
29918,
10054,
8899,
1053,
350,
2127,
17413,
2392,
13,
13,
15865,
29918,
4632,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
359,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
511,
525,
636,
8785,
29871,
396,
694,
25621,
13,
9675,
29889,
2084,
29889,
7851,
29898,
29900,
29892,
282,
9415,
29918,
4632,
29897,
29871,
396,
694,
25621,
13,
13,
3166,
6987,
1053,
14383,
29918,
265,
29918,
3018,
1730,
13,
3166,
6987,
29889,
7192,
336,
1053,
1243,
8513,
13,
3166,
270,
893,
29889,
3372,
800,
1053,
360,
1799,
7094,
800,
6255,
14777,
13,
3166,
270,
893,
29889,
3372,
800,
29889,
4422,
1053,
2910,
29918,
21454,
29918,
9902,
13,
3166,
270,
893,
29889,
3372,
800,
1053,
24808,
29892,
8635,
29892,
16523,
29892,
22183,
1372,
29892,
14013,
29918,
7529,
29892,
474,
314,
29892,
4959,
13,
3166,
270,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
1053,
679,
29918,
16519,
287,
29918,
29880,
1117,
17370,
29892,
2329,
29918,
893,
29885,
29918,
11918,
29918,
13506,
13,
3166,
270,
893,
29889,
3372,
800,
29889,
2829,
1053,
306,
5194,
1660,
16320,
1299,
1955,
13,
3166,
270,
893,
29889,
3372,
800,
29889,
344,
1037,
1372,
1053,
5356,
27487,
5596,
261,
13,
3166,
270,
893,
29889,
21027,
1053,
10822,
29918,
1688,
29918,
21027,
13,
3166,
270,
893,
29889,
2917,
1053,
16281,
300,
3991,
29892,
12782,
29892,
10088,
10123,
29892,
5712,
29918,
21454,
29918,
2917,
13,
3166,
270,
893,
29889,
12925,
29889,
29882,
29883,
370,
2127,
8899,
1053,
3497,
18417,
29892,
27435,
29918,
10054,
29918,
1989,
13,
3166,
270,
893,
29889,
4422,
29889,
3259,
1053,
12865,
29918,
517,
29918,
3259,
29918,
4830,
13,
3166,
6987,
1053,
8868,
545,
855,
29881,
449,
29892,
3925,
481,
855,
24581,
13,
3166,
6987,
29889,
1688,
29918,
16718,
1053,
4321,
9534,
11713,
29924,
861,
262,
13,
3166,
6987,
29889,
7192,
336,
1053,
679,
29918,
6272,
29892,
360,
1799,
17553,
29924,
861,
262,
29892,
4321,
6444,
29924,
861,
262,
29892,
360,
1799,
14697,
29924,
861,
262,
13,
3166,
6987,
29889,
7192,
336,
29889,
2974,
1053,
10480,
287,
7717,
6004,
13,
13,
13,
1753,
731,
3373,
7355,
7295,
13,
1678,
10822,
29918,
1688,
29918,
21027,
580,
13,
13,
1753,
4036,
29918,
284,
16711,
25099,
29918,
1807,
29898,
29940,
29922,
29896,
29900,
1125,
13,
1678,
736,
525,
4286,
7122,
29898,
8172,
29889,
1859,
1575,
29898,
1807,
29889,
294,
18869,
29918,
21064,
4878,
718,
1347,
29889,
7501,
1169,
29892,
413,
29922,
29940,
876,
13,
13,
13,
29992,
1688,
8513,
29889,
1689,
18785,
13,
1990,
4321,
7094,
800,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
13369,
29898,
1311,
1125,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
13369,
1728,
5478,
1474,
29192,
6273,
29908,
1125,
13,
9651,
1583,
3032,
1688,
29918,
13369,
580,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
13369,
411,
5478,
1474,
29192,
6273,
29908,
1125,
13,
9651,
1583,
3032,
1688,
29918,
13369,
29898,
6149,
1474,
29918,
735,
7009,
573,
29922,
5574,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
13369,
411,
3158,
975,
24040,
29908,
1125,
13,
9651,
1583,
3032,
1688,
29918,
13369,
29898,
2467,
29918,
957,
24040,
29922,
5574,
29897,
13,
13,
1678,
822,
903,
1688,
29918,
13369,
29898,
1311,
29892,
5478,
1474,
29918,
735,
7009,
573,
29922,
8516,
29892,
3158,
29918,
957,
24040,
29922,
8824,
1125,
13,
4706,
13916,
353,
360,
1799,
7094,
800,
6255,
14777,
580,
13,
4706,
3646,
353,
13916,
29889,
5182,
29898,
13,
9651,
376,
1357,
29918,
5182,
613,
13,
9651,
6273,
3790,
13,
18884,
376,
5431,
1115,
9657,
29898,
4381,
543,
479,
3890,
613,
1134,
29922,
524,
511,
13,
18884,
376,
489,
23516,
29899,
29874,
1115,
6213,
29892,
13,
18884,
376,
489,
23516,
29899,
29890,
1115,
9657,
29898,
4381,
543,
1646,
4968,
13,
9651,
2981,
13,
9651,
5478,
1474,
29918,
735,
7009,
573,
7607,
3366,
489,
23516,
29899,
29874,
613,
376,
489,
23516,
29899,
29890,
3108,
565,
5478,
1474,
29918,
735,
7009,
573,
1683,
6213,
29897,
13,
4706,
1723,
13,
13,
4706,
565,
3158,
29918,
957,
24040,
29901,
13,
9651,
732,
5182,
29889,
2467,
703,
1357,
29918,
2467,
613,
6273,
3790,
29908,
5431,
1115,
6213,
29892,
376,
489,
1646,
1115,
9657,
29898,
4381,
543,
28408,
1159,
1800,
13,
9651,
822,
590,
29918,
2467,
29898,
19218,
29892,
6389,
1125,
13,
18884,
1583,
29889,
9294,
9843,
29898,
5085,
29889,
23516,
29918,
29890,
29892,
376,
29931,
26912,
29943,
29967,
1159,
13,
18884,
1583,
29889,
9294,
9843,
29898,
5085,
29889,
5431,
29892,
376,
29906,
29946,
1159,
13,
18884,
1583,
29889,
9294,
9843,
29898,
5085,
29889,
1646,
29892,
376,
28408,
1159,
13,
4706,
1683,
29901,
13,
9651,
732,
5182,
29889,
2467,
703,
1357,
29918,
2467,
1159,
13,
9651,
822,
590,
29918,
2467,
29898,
19218,
29892,
6389,
1125,
13,
18884,
1583,
29889,
9294,
9843,
29898,
5085,
29889,
23516,
29918,
29890,
29892,
376,
29931,
26912,
29943,
29967,
1159,
13,
18884,
1583,
29889,
9294,
9843,
29898,
5085,
29889,
5431,
29892,
29871,
29906,
29946,
29897,
13,
13,
4706,
13916,
29898,
3366,
1357,
29918,
5182,
613,
376,
1357,
29918,
2467,
613,
376,
29906,
29946,
613,
376,
489,
23516,
29899,
29890,
613,
376,
29931,
26912,
29943,
29967,
20068,
13,
13,
1678,
822,
1243,
29918,
1958,
29918,
21454,
29898,
1311,
1125,
13,
4706,
411,
5712,
29918,
21454,
29918,
2917,
29898,
29933,
2707,
300,
3991,
29889,
18267,
29918,
3738,
12188,
11499,
1125,
13,
9651,
363,
1634,
10123,
297,
10088,
10123,
29901,
13,
18884,
411,
1583,
29889,
1491,
3057,
29898,
3445,
10123,
29922,
3445,
10123,
1125,
13,
462,
1678,
4386,
353,
12782,
29889,
657,
29918,
10054,
8899,
29918,
8411,
29898,
3445,
10123,
29897,
13,
13,
462,
1678,
2302,
29918,
1761,
353,
29871,
29900,
13,
462,
1678,
363,
1820,
297,
4386,
29889,
1761,
29898,
3445,
10123,
29889,
21454,
29892,
10944,
543,
16293,
793,
12975,
1125,
13,
462,
4706,
2302,
29918,
1761,
4619,
29871,
29896,
13,
13,
462,
1678,
822,
6795,
29898,
8149,
1125,
13,
462,
4706,
2302,
353,
29871,
29900,
13,
462,
4706,
363,
1820,
297,
6611,
29901,
13,
462,
9651,
2302,
4619,
29871,
29896,
13,
462,
4706,
736,
2302,
13,
13,
462,
1678,
3001,
353,
29871,
29900,
13,
462,
1678,
363,
2302,
297,
2910,
29918,
21454,
29918,
9902,
29898,
11808,
29892,
4386,
29892,
1634,
10123,
29889,
21454,
29892,
376,
16293,
793,
29914,
613,
29871,
29906,
1125,
13,
462,
4706,
3001,
4619,
2302,
13,
13,
462,
1678,
1583,
29889,
9294,
25120,
1008,
29898,
2798,
29918,
1761,
29892,
29871,
29900,
29897,
13,
462,
1678,
1583,
29889,
9294,
9843,
29898,
2798,
29918,
1761,
29892,
3001,
29897,
13,
13,
1678,
822,
1243,
29918,
3445,
1466,
29918,
10054,
29918,
19635,
29898,
1311,
1125,
13,
4706,
6441,
261,
353,
426,
5612,
10123,
29889,
10467,
29901,
1583,
3032,
649,
29918,
29879,
29941,
29918,
1445,
29892,
10088,
10123,
29889,
29887,
6814,
29901,
1583,
3032,
649,
29918,
3174,
29918,
1445,
29913,
13,
4706,
411,
5712,
29918,
21454,
29918,
2917,
29898,
29933,
2707,
300,
3991,
29889,
18267,
1125,
13,
9651,
363,
1634,
10123,
297,
10088,
10123,
29901,
13,
18884,
4386,
353,
12782,
29889,
657,
29918,
10054,
8899,
29918,
8411,
29898,
3445,
10123,
29897,
13,
18884,
1820,
353,
851,
29898,
29966,
10818,
29958,
3101,
13,
18884,
934,
29918,
19635,
353,
426,
13,
462,
1678,
3497,
18417,
29889,
23498,
29906,
29945,
29953,
29901,
376,
5431,
613,
13,
462,
1678,
3497,
18417,
29889,
23498,
29896,
29901,
376,
5431,
613,
13,
462,
1678,
3497,
18417,
29889,
29903,
29941,
29918,
2544,
10051,
29901,
376,
5431,
613,
13,
462,
1678,
3497,
18417,
29889,
29907,
10363,
29941,
29906,
29907,
29901,
376,
5431,
613,
13,
462,
1678,
3497,
18417,
29889,
22412,
3919,
29918,
11116,
29901,
376,
5431,
29908,
13,
18884,
500,
13,
18884,
23755,
29918,
1989,
353,
27435,
29918,
10054,
29918,
1989,
29898,
1445,
29918,
19635,
29897,
13,
18884,
6441,
261,
29961,
3445,
10123,
850,
1989,
29892,
4390,
29889,
29881,
17204,
29898,
1445,
29918,
19635,
467,
12508,
703,
9420,
29899,
29947,
4968,
376,
6214,
29914,
3126,
1159,
13,
18884,
6441,
261,
29961,
3445,
10123,
850,
10054,
29918,
1989,
29892,
289,
29908,
29896,
29906,
29941,
613,
376,
1646,
1159,
13,
18884,
6389,
353,
1852,
5510,
29889,
23335,
29898,
8149,
11759,
1989,
1402,
7855,
29918,
1853,
543,
5325,
613,
4982,
29918,
333,
543,
613,
1634,
10123,
29922,
3445,
10123,
29889,
978,
29897,
13,
13,
18884,
411,
1583,
29889,
1491,
3057,
703,
29933,
2127,
2793,
1134,
1634,
29874,
2859,
613,
1634,
10123,
29922,
3445,
10123,
1125,
13,
462,
1678,
8635,
29889,
3445,
1466,
29918,
1445,
29918,
10054,
29918,
19635,
4197,
1402,
6389,
467,
5014,
29918,
1989,
29898,
1989,
29897,
13,
462,
1678,
1583,
29889,
9294,
9843,
29898,
8411,
29889,
657,
29918,
3051,
29918,
1853,
29898,
3445,
10123,
29889,
21454,
29892,
23755,
29918,
1989,
511,
13,
462,
462,
268,
934,
29918,
19635,
29961,
2283,
18417,
29889,
22412,
3919,
29918,
11116,
2314,
13,
13,
18884,
411,
1583,
29889,
1491,
3057,
703,
26857,
4386,
11472,
15283,
613,
1634,
10123,
29922,
3445,
10123,
1125,
13,
462,
1678,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
12925,
29889,
10486,
10925,
4598,
29889,
1188,
29918,
2704,
1159,
408,
1480,
29918,
2704,
29901,
13,
462,
4706,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
2917,
29889,
3991,
29889,
657,
29918,
11487,
29918,
8411,
1159,
408,
20961,
556,
29901,
13,
462,
9651,
20961,
556,
29889,
2975,
29918,
15987,
353,
8960,
580,
13,
462,
9651,
8635,
29889,
3445,
1466,
29918,
1445,
29918,
10054,
29918,
19635,
4197,
1402,
6389,
467,
5014,
29918,
1989,
29898,
1989,
29897,
13,
462,
9651,
1480,
29918,
2704,
29889,
9294,
29918,
13998,
580,
13,
462,
9651,
1583,
29889,
9294,
9843,
29898,
1188,
29918,
2704,
29889,
4804,
29918,
5085,
29961,
29900,
3816,
29900,
1402,
376,
2451,
1159,
13,
13,
18884,
411,
1583,
29889,
1491,
3057,
703,
26857,
4386,
4567,
934,
15562,
613,
1634,
10123,
29922,
3445,
10123,
1125,
13,
462,
1678,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
12925,
29889,
10486,
10925,
4598,
29889,
1188,
29918,
27392,
1159,
408,
1480,
29918,
27392,
29901,
13,
462,
4706,
8635,
29889,
3445,
1466,
29918,
1445,
29918,
10054,
29918,
19635,
4197,
1402,
6389,
467,
5014,
29918,
1989,
703,
15866,
549,
1820,
1159,
13,
462,
4706,
1583,
29889,
9294,
9843,
29898,
1188,
29918,
27392,
29889,
4804,
29918,
5085,
29961,
29900,
3816,
29900,
1402,
376,
29933,
2127,
17413,
2392,
1159,
13,
13,
18884,
411,
1583,
29889,
1491,
3057,
703,
26857,
4386,
4567,
23755,
613,
1634,
10123,
29922,
3445,
10123,
1125,
13,
462,
1678,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
12925,
29889,
10486,
10925,
4598,
29889,
1188,
29918,
27392,
1159,
408,
1480,
29918,
27392,
29901,
13,
462,
4706,
934,
29918,
19635,
29961,
2283,
18417,
29889,
23498,
29906,
29945,
29953,
29962,
353,
376,
15866,
549,
29908,
13,
462,
4706,
6441,
261,
29961,
3445,
10123,
850,
1989,
29892,
4390,
29889,
29881,
17204,
29898,
1445,
29918,
19635,
467,
12508,
703,
9420,
29899,
29947,
4968,
376,
6214,
29914,
3126,
1159,
13,
462,
4706,
8635,
29889,
3445,
1466,
29918,
1445,
29918,
10054,
29918,
19635,
4197,
1402,
6389,
467,
5014,
29918,
1989,
29898,
1989,
29897,
13,
462,
4706,
1583,
29889,
9294,
9843,
29898,
1188,
29918,
27392,
29889,
4804,
29918,
5085,
29961,
29900,
3816,
29900,
1402,
376,
29933,
2127,
17413,
2392,
1159,
13,
13,
18884,
411,
1583,
29889,
1491,
3057,
703,
26857,
4386,
1034,
6685,
934,
15562,
613,
1634,
10123,
29922,
3445,
10123,
1125,
13,
462,
1678,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
12925,
29889,
10486,
10925,
4598,
29889,
1188,
29918,
27392,
1159,
408,
1480,
29918,
27392,
29901,
13,
462,
4706,
6441,
261,
29961,
3445,
10123,
850,
1989,
29892,
289,
29908,
1366,
338,
451,
4390,
613,
376,
6214,
29914,
3126,
1159,
13,
462,
4706,
8635,
29889,
3445,
1466,
29918,
1445,
29918,
10054,
29918,
19635,
4197,
1402,
6389,
467,
5014,
29918,
1989,
29898,
1989,
29897,
13,
462,
4706,
1583,
29889,
9294,
9843,
29898,
1188,
29918,
27392,
29889,
4804,
29918,
5085,
29961,
29900,
3816,
29900,
1402,
376,
7249,
2772,
401,
2392,
1159,
13,
13,
1678,
822,
1243,
29918,
16718,
29918,
5679,
29918,
1761,
29898,
1311,
1125,
13,
4706,
770,
26297,
4598,
29901,
13,
9651,
11187,
29918,
1445,
29918,
1272,
353,
8853,
25118,
1115,
376,
29929,
29947,
29955,
613,
13,
462,
795,
376,
3259,
1115,
376,
29929,
29947,
29955,
613,
13,
462,
795,
376,
17051,
29906,
29945,
29953,
1115,
376,
29906,
29945,
29953,
29895,
613,
13,
462,
795,
376,
17051,
29896,
1115,
376,
29896,
1918,
613,
13,
462,
795,
376,
29879,
29941,
29899,
300,
351,
1115,
376,
29879,
29941,
29946,
1004,
613,
13,
462,
795,
376,
29883,
2214,
29941,
29906,
29883,
1115,
376,
29893,
1366,
1366,
9092,
13,
9651,
11187,
29918,
16718,
29918,
19635,
353,
8853,
5325,
1115,
518,
17640,
29918,
1445,
29918,
1272,
12258,
13,
9651,
11187,
29918,
16718,
29918,
1989,
353,
525,
16293,
793,
29914,
29896,
29906,
29941,
29889,
29946,
29945,
29953,
29915,
13,
9651,
4386,
353,
11187,
29889,
18680,
580,
13,
13,
9651,
822,
679,
29898,
1311,
29892,
20968,
29892,
1820,
1125,
13,
18884,
736,
4390,
29889,
29881,
17204,
29898,
1311,
29889,
17640,
29918,
16718,
29918,
19635,
29897,
13,
13,
4706,
363,
1634,
10123,
297,
10088,
10123,
29901,
13,
9651,
411,
1583,
29889,
1491,
3057,
703,
3057,
24470,
12105,
29908,
1125,
13,
18884,
411,
5712,
29918,
21454,
29918,
2917,
29898,
29933,
2707,
300,
3991,
29889,
18267,
1125,
13,
462,
1678,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
12925,
29889,
3991,
1159,
408,
11187,
29918,
8411,
29901,
13,
462,
4706,
11187,
29918,
8411,
29889,
657,
29918,
10054,
8899,
29918,
8411,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
18680,
4598,
3101,
13,
462,
4706,
6389,
353,
1852,
5510,
29889,
23335,
29898,
8149,
11759,
18680,
4598,
29889,
17640,
29918,
16718,
29918,
1989,
1402,
13,
462,
462,
462,
29871,
1634,
10123,
29922,
3445,
10123,
29889,
978,
29892,
13,
462,
462,
462,
29871,
7855,
29918,
1853,
2433,
16293,
793,
742,
13,
462,
462,
462,
29871,
4982,
29918,
333,
543,
1159,
13,
462,
4706,
620,
353,
8635,
29889,
4282,
29918,
5679,
29918,
1761,
4197,
1402,
6389,
467,
5014,
29918,
1989,
29898,
18680,
4598,
29889,
17640,
29918,
16718,
29918,
1989,
29897,
13,
462,
4706,
1583,
29889,
9294,
797,
29898,
18680,
4598,
29889,
17640,
29918,
16718,
29918,
1989,
29892,
620,
29897,
13,
462,
4706,
1583,
29889,
9294,
797,
29898,
29888,
29915,
5325,
19248,
18680,
4598,
29889,
17640,
29918,
1445,
29918,
1272,
3366,
25118,
3108,
1836,
29915,
13,
462,
462,
418,
285,
29915,
29912,
18680,
4598,
29889,
17640,
29918,
1445,
29918,
1272,
3366,
3259,
3108,
29913,
742,
13,
462,
462,
418,
620,
29897,
13,
462,
4706,
1583,
29889,
9294,
797,
29898,
19438,
29918,
10054,
29918,
1989,
29898,
18680,
4598,
29889,
17640,
29918,
1445,
29918,
1272,
511,
620,
29897,
13,
13,
1678,
822,
1243,
29918,
5504,
29918,
3051,
29918,
1853,
29898,
1311,
1125,
13,
4706,
4321,
8259,
353,
4257,
23583,
703,
3057,
8259,
613,
376,
3445,
10123,
6441,
2159,
2767,
2847,
29918,
3051,
29918,
1853,
3806,
29918,
3051,
29918,
1853,
1159,
13,
4706,
411,
5712,
29918,
21454,
29918,
2917,
29898,
29933,
2707,
300,
3991,
29889,
18267,
1125,
13,
9651,
1820,
353,
285,
29908,
3372,
800,
19248,
25118,
29889,
25118,
29946,
580,
5038,
13,
9651,
2919,
29918,
2311,
353,
29871,
29953,
29946,
334,
29871,
29896,
29900,
29906,
29946,
334,
29871,
29896,
29900,
29906,
29946,
718,
29871,
29896,
13,
9651,
6987,
353,
518,
13,
18884,
4321,
8259,
29898,
5612,
10123,
29889,
10467,
29892,
1583,
3032,
649,
29918,
29879,
29941,
29918,
1445,
29892,
29871,
29896,
29892,
8635,
29889,
5504,
29918,
10467,
29918,
3051,
29918,
1853,
29892,
376,
29874,
613,
376,
29890,
4968,
13,
18884,
4321,
8259,
29898,
5612,
10123,
29889,
10467,
29892,
1583,
3032,
649,
29918,
29879,
29941,
29918,
1445,
29892,
2919,
29918,
2311,
29892,
8635,
29889,
5504,
29918,
10467,
29918,
3051,
29918,
1853,
29892,
376,
29874,
613,
376,
29890,
4968,
13,
18884,
4321,
8259,
29898,
5612,
10123,
29889,
29887,
6814,
29892,
1583,
3032,
649,
29918,
3174,
29918,
1445,
29892,
29871,
29896,
29892,
8635,
29889,
5504,
29918,
29887,
6814,
29918,
3051,
29918,
1853,
29892,
376,
29874,
613,
376,
29890,
4968,
13,
9651,
4514,
13,
9651,
363,
1243,
297,
6987,
29901,
13,
18884,
848,
353,
2897,
29889,
332,
2685,
29898,
1688,
29889,
2311,
29897,
13,
18884,
411,
1583,
29889,
1491,
3057,
29898,
1688,
29889,
3445,
10123,
29889,
978,
1125,
13,
462,
1678,
4386,
353,
12782,
29889,
657,
29918,
10054,
8899,
29918,
8411,
29898,
1688,
29889,
3445,
10123,
29897,
13,
462,
1678,
7531,
29918,
8411,
353,
12782,
29889,
657,
29918,
11487,
29918,
8411,
29898,
1688,
29889,
3445,
10123,
29897,
13,
462,
1678,
1243,
29889,
9009,
29898,
1989,
29892,
848,
29892,
1243,
29889,
11228,
29918,
3051,
29918,
1853,
29897,
13,
462,
1678,
2030,
29918,
3198,
2083,
353,
4386,
29889,
657,
29918,
9274,
29918,
3198,
2083,
29898,
1688,
29889,
3445,
10123,
29889,
21454,
29892,
1820,
29897,
13,
462,
1678,
1243,
29889,
5504,
29898,
11487,
29918,
8411,
29892,
1243,
29889,
3445,
10123,
29889,
21454,
29892,
1820,
29892,
1243,
29889,
9684,
29918,
3051,
29918,
1853,
29897,
13,
462,
1678,
1583,
29889,
9294,
9843,
29898,
1688,
29889,
9684,
29918,
3051,
29918,
1853,
29892,
4386,
29889,
657,
29918,
3051,
29918,
1853,
29898,
1688,
29889,
3445,
10123,
29889,
21454,
29892,
1820,
876,
13,
462,
1678,
1583,
29889,
9294,
9843,
29898,
8411,
29889,
657,
29898,
1688,
29889,
3445,
10123,
29889,
21454,
29892,
1820,
511,
848,
29897,
13,
462,
1678,
1583,
29889,
9294,
9843,
29898,
1025,
29918,
3198,
2083,
29892,
4386,
29889,
657,
29918,
9274,
29918,
3198,
2083,
29898,
1688,
29889,
3445,
10123,
29889,
21454,
29892,
1820,
876,
13,
13,
1678,
822,
1243,
29918,
27902,
29918,
10054,
29918,
3445,
1414,
29898,
1311,
1125,
13,
4706,
1820,
353,
376,
10054,
29879,
29914,
1338,
19776,
1579,
1278,
29926,
2176,
29908,
13,
4706,
515,
29918,
8411,
353,
11187,
29889,
18680,
580,
13,
4706,
304,
29918,
8411,
353,
11187,
29889,
18680,
580,
13,
4706,
515,
29918,
8411,
29889,
657,
29918,
2311,
353,
11187,
29889,
18680,
29898,
2457,
29918,
1767,
29922,
29896,
29900,
29897,
13,
4706,
304,
29918,
8411,
29889,
657,
29918,
2311,
353,
11187,
29889,
18680,
29898,
2457,
29918,
1767,
29922,
29896,
29900,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1217,
1634,
1414,
1059,
29908,
1125,
13,
9651,
620,
353,
16523,
29889,
27902,
29918,
10054,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
690,
29892,
1051,
3101,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
29965,
484,
15380,
2159,
23755,
29879,
13676,
1059,
29908,
1125,
13,
9651,
304,
29918,
8411,
29889,
657,
29918,
2311,
353,
11187,
29889,
18680,
29898,
2457,
29918,
1767,
29922,
29896,
29896,
29897,
13,
9651,
620,
353,
16523,
29889,
27902,
29918,
10054,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
690,
29961,
29900,
1822,
1989,
29892,
1820,
29897,
13,
9651,
1583,
29889,
9294,
797,
703,
29885,
1608,
905,
613,
620,
29961,
29900,
1822,
273,
290,
14997,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
18552,
292,
3646,
23755,
13676,
1059,
29908,
1125,
13,
9651,
304,
29918,
8411,
29889,
657,
29918,
2311,
29889,
2975,
29918,
15987,
353,
350,
2127,
17413,
2392,
13,
9651,
620,
353,
16523,
29889,
27902,
29918,
10054,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
690,
29961,
29900,
1822,
1989,
29892,
1820,
29897,
13,
9651,
1583,
29889,
9294,
797,
703,
27259,
613,
620,
29961,
29900,
1822,
273,
290,
14997,
29897,
13,
13,
1678,
822,
1243,
29918,
27902,
29918,
1445,
29918,
3445,
1414,
29898,
1311,
1125,
13,
4706,
1820,
353,
376,
10054,
29879,
29914,
1338,
19776,
1579,
1278,
29926,
2176,
29908,
13,
4706,
515,
29918,
8411,
353,
11187,
29889,
18680,
580,
13,
4706,
304,
29918,
8411,
353,
11187,
29889,
18680,
580,
13,
4706,
934,
29918,
19635,
353,
4390,
29889,
29881,
17204,
3319,
29915,
17051,
29906,
29945,
29953,
2396,
12633,
525,
17051,
29896,
2396,
12633,
525,
29879,
29941,
29899,
300,
351,
2396,
12633,
525,
29883,
2214,
29941,
29906,
29883,
2396,
5124,
1800,
13,
4706,
515,
29918,
8411,
29889,
657,
353,
11187,
29889,
18680,
29898,
2457,
29918,
1767,
29922,
1445,
29918,
19635,
29897,
13,
4706,
304,
29918,
8411,
29889,
657,
353,
11187,
29889,
18680,
29898,
2457,
29918,
1767,
29922,
1445,
29918,
19635,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1217,
1634,
1414,
1059,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
16593,
29889,
27902,
29918,
10054,
29918,
3445,
1414,
1159,
408,
325,
1182,
29901,
13,
18884,
325,
1182,
29889,
2457,
29918,
1767,
353,
1051,
580,
13,
18884,
620,
353,
16523,
29889,
27902,
29918,
1445,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
18884,
1583,
29889,
9294,
9843,
29898,
690,
29892,
1051,
3101,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
29965,
484,
15380,
934,
15562,
29908,
1125,
13,
9651,
304,
29918,
8411,
29889,
657,
29889,
2457,
29918,
1767,
353,
29850,
5038,
13,
9651,
620,
353,
16523,
29889,
27902,
29918,
1445,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
690,
29961,
29900,
1822,
1989,
29892,
1820,
29897,
13,
9651,
1583,
29889,
9294,
797,
703,
29885,
1608,
905,
613,
620,
29961,
29900,
1822,
273,
290,
14997,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
18552,
292,
934,
15562,
29908,
1125,
13,
9651,
304,
29918,
8411,
29889,
657,
29889,
2975,
29918,
15987,
353,
350,
2127,
17413,
2392,
13,
9651,
620,
353,
16523,
29889,
27902,
29918,
1445,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
690,
29961,
29900,
1822,
1989,
29892,
1820,
29897,
13,
9651,
1583,
29889,
9294,
797,
703,
27259,
613,
620,
29961,
29900,
1822,
273,
290,
14997,
29897,
13,
13,
1678,
822,
1243,
29918,
27902,
29918,
16718,
29918,
3445,
1414,
29898,
1311,
1125,
13,
4706,
1820,
353,
376,
10054,
29879,
29914,
1338,
19776,
1579,
1278,
29926,
2176,
29908,
13,
4706,
515,
29918,
8411,
353,
11187,
29889,
18680,
580,
13,
4706,
304,
29918,
8411,
353,
11187,
29889,
18680,
580,
13,
4706,
11846,
29918,
19635,
353,
4390,
29889,
29881,
17204,
3319,
13,
9651,
376,
1037,
1061,
29918,
5416,
1115,
29871,
29947,
29900,
29900,
29947,
29892,
13,
9651,
376,
5325,
1115,
518,
6377,
25118,
1115,
6213,
29892,
376,
3259,
1115,
6213,
6525,
13,
4706,
5615,
13,
4706,
515,
29918,
8411,
29889,
657,
353,
11187,
29889,
18680,
29898,
2457,
29918,
1767,
29922,
16718,
29918,
19635,
29897,
13,
4706,
304,
29918,
8411,
29889,
657,
353,
11187,
29889,
18680,
29898,
2457,
29918,
1767,
29922,
16718,
29918,
19635,
29897,
13,
13,
4706,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
16593,
29889,
27902,
29918,
1445,
29918,
3445,
1414,
1159,
408,
325,
1341,
29901,
13,
9651,
411,
1583,
29889,
1491,
3057,
703,
3445,
1414,
3431,
29908,
1125,
13,
18884,
325,
1341,
29889,
2457,
29918,
1767,
353,
1051,
580,
13,
18884,
620,
353,
16523,
29889,
27902,
29918,
16718,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
18884,
1583,
29889,
9294,
9843,
29898,
690,
29892,
518,
2314,
13,
13,
9651,
411,
1583,
29889,
1491,
3057,
703,
3445,
1414,
1108,
29908,
1125,
13,
18884,
325,
1341,
29889,
2457,
29918,
1767,
353,
518,
16593,
29889,
5612,
1414,
2744,
290,
14997,
29898,
1989,
543,
613,
29342,
14997,
543,
13531,
13,
18884,
620,
353,
16523,
29889,
27902,
29918,
16718,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
18884,
1583,
29889,
9294,
9843,
29898,
690,
29892,
325,
1341,
29889,
2457,
29918,
1767,
29897,
13,
13,
9651,
411,
1583,
29889,
1491,
3057,
703,
29965,
484,
15380,
11846,
15562,
29908,
1125,
13,
18884,
304,
29918,
8411,
29889,
657,
29889,
2457,
29918,
1767,
353,
29850,
5038,
13,
18884,
620,
353,
16523,
29889,
27902,
29918,
16718,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
18884,
1583,
29889,
9294,
9843,
29898,
690,
29961,
29900,
1822,
1989,
29892,
1820,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29885,
1608,
905,
613,
620,
29961,
29900,
1822,
273,
290,
14997,
29897,
13,
13,
9651,
411,
1583,
29889,
1491,
3057,
703,
18552,
292,
12551,
11846,
15562,
29908,
1125,
13,
18884,
304,
29918,
8411,
29889,
657,
29889,
2975,
29918,
15987,
353,
350,
2127,
17413,
2392,
13,
18884,
620,
353,
16523,
29889,
27902,
29918,
16718,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
18884,
1583,
29889,
9294,
9843,
29898,
690,
29961,
29900,
1822,
1989,
29892,
1820,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
27259,
373,
3646,
613,
620,
29961,
29900,
1822,
273,
290,
14997,
29897,
13,
13,
9651,
411,
1583,
29889,
1491,
3057,
703,
18552,
292,
2752,
11846,
15562,
29908,
1125,
13,
18884,
515,
29918,
8411,
29889,
657,
29889,
2975,
29918,
15987,
353,
350,
2127,
17413,
2392,
13,
18884,
620,
353,
16523,
29889,
27902,
29918,
16718,
29918,
3445,
1414,
29898,
3166,
29918,
8411,
29892,
304,
29918,
8411,
29892,
12633,
12633,
1820,
29897,
13,
18884,
1583,
29889,
9294,
9843,
29898,
690,
29961,
29900,
1822,
1989,
29892,
1820,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
27259,
373,
2752,
613,
620,
29961,
29900,
1822,
273,
290,
14997,
29897,
13,
13,
1678,
822,
903,
649,
29918,
29879,
29941,
29918,
1445,
29898,
1311,
29892,
1820,
29892,
848,
29892,
2793,
29918,
1853,
543,
29844,
613,
760,
29918,
2311,
29922,
8516,
1125,
13,
4706,
269,
29941,
353,
12782,
29889,
657,
29918,
11487,
29918,
8411,
29898,
5612,
10123,
29889,
10467,
29897,
13,
4706,
411,
12013,
29889,
11207,
5971,
29898,
1272,
29897,
408,
285,
29882,
29901,
13,
9651,
269,
29941,
29889,
9009,
29918,
1445,
5415,
29898,
29933,
2707,
300,
29922,
5612,
10123,
29889,
10467,
29889,
21454,
29892,
13,
462,
795,
7670,
29922,
1989,
29892,
13,
462,
795,
3497,
5415,
29922,
29888,
29882,
29892,
13,
462,
795,
7338,
336,
7883,
29922,
8977,
29898,
3916,
1542,
29922,
3051,
29918,
1853,
511,
13,
462,
795,
12782,
29922,
4300,
571,
3991,
29898,
18056,
442,
29918,
305,
18801,
675,
29922,
29953,
29946,
334,
29871,
29896,
29900,
29906,
29946,
334,
29871,
29896,
29900,
29906,
29946,
876,
13,
13,
1678,
822,
903,
649,
29918,
3174,
29918,
1445,
29898,
1311,
29892,
1820,
29892,
848,
29892,
2793,
29918,
1853,
543,
29844,
29908,
1125,
13,
4706,
330,
29879,
353,
12782,
29889,
657,
29918,
11487,
29918,
8411,
29898,
5612,
10123,
29889,
29887,
6814,
29897,
13,
4706,
330,
29879,
29918,
21454,
353,
330,
29879,
29889,
21454,
29898,
5612,
10123,
29889,
29887,
6814,
29889,
21454,
29897,
13,
4706,
330,
29879,
29918,
10054,
353,
330,
29879,
29918,
21454,
29889,
10054,
29898,
1989,
29892,
19875,
29918,
2311,
29922,
29896,
334,
29871,
29896,
29900,
29906,
29946,
334,
29871,
29896,
29900,
29906,
29946,
29897,
13,
4706,
411,
12013,
29889,
11207,
5971,
29898,
1272,
29897,
408,
285,
29882,
29901,
13,
9651,
330,
29879,
29918,
10054,
29889,
9009,
29918,
3166,
29918,
1445,
29898,
29888,
29882,
29892,
2793,
29918,
1853,
543,
6214,
29914,
20082,
300,
29899,
5461,
1159,
13,
13,
1678,
822,
1243,
29918,
2829,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29898,
1311,
1125,
13,
13,
4706,
822,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
1068,
19290,
1125,
13,
9651,
396,
3789,
2322,
9049,
1191,
1819,
29892,
769,
731,
738,
1404,
29899,
6550,
2164,
9049,
5085,
13,
9651,
2888,
29918,
19290,
353,
9657,
29898,
13,
18884,
9570,
29918,
18121,
543,
10467,
613,
13,
18884,
2318,
29918,
1609,
29922,
8516,
29892,
13,
18884,
1962,
29922,
8516,
29892,
13,
18884,
4889,
29922,
8824,
29892,
13,
18884,
3160,
29918,
25240,
29922,
8824,
29892,
13,
18884,
19060,
29918,
13662,
29922,
8824,
29892,
13,
18884,
11813,
29922,
5574,
13,
9651,
1723,
13,
9651,
363,
9049,
29892,
659,
297,
9049,
5085,
29889,
7076,
7295,
13,
18884,
2888,
29918,
19290,
29961,
11022,
29962,
353,
659,
13,
9651,
736,
2888,
29918,
19290,
13,
13,
4706,
822,
903,
657,
29918,
29888,
1296,
29918,
22197,
29918,
3225,
7295,
13,
9651,
9995,
7270,
537,
740,
304,
679,
263,
25713,
8898,
1842,
363,
11187,
292,
278,
15540,
3450,
15945,
29908,
13,
9651,
736,
426,
13,
18884,
376,
6594,
1115,
376,
29906,
29900,
29900,
29900,
29899,
29900,
29896,
29899,
29900,
29896,
613,
13,
18884,
376,
14473,
1115,
518,
13,
462,
1678,
426,
13,
462,
4706,
376,
13971,
1115,
376,
15930,
613,
13,
462,
4706,
376,
4276,
1115,
6796,
29888,
6926,
261,
1087,
29901,
29930,
12436,
13,
462,
4706,
376,
6848,
1115,
518,
13,
462,
9651,
376,
2753,
29901,
10467,
29901,
29888,
6926,
261,
1087,
29901,
375,
29899,
23027,
29899,
29896,
29901,
29947,
29953,
29896,
29906,
29906,
29929,
29955,
29947,
29947,
29955,
29896,
29945,
29901,
5431,
29901,
1646,
29930,
613,
13,
462,
9651,
376,
2753,
29901,
10467,
29901,
29888,
6926,
261,
1087,
29901,
375,
29899,
23027,
29899,
29896,
29901,
29947,
29953,
29896,
29906,
29906,
29929,
29955,
29947,
29947,
29955,
29896,
29945,
29901,
5431,
29901,
1646,
29914,
27975,
29930,
613,
13,
462,
4706,
21251,
13,
462,
1678,
500,
13,
18884,
21251,
13,
9651,
500,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
15540,
24833,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
2829,
29918,
4645,
1159,
408,
474,
314,
29918,
4645,
29901,
13,
18884,
396,
5432,
1051,
29918,
3733,
293,
583,
580,
674,
1246,
1051,
29918,
10467,
29918,
3733,
293,
583,
580,
13,
18884,
396,
607,
674,
1246,
6597,
29918,
10467,
29918,
3733,
293,
583,
580,
13,
18884,
396,
607,
674,
1246,
679,
29918,
13573,
262,
1061,
703,
1761,
29918,
3733,
293,
583,
1159,
13,
18884,
396,
607,
674,
1246,
10203,
16976,
580,
304,
2244,
363,
1269,
1813,
29892,
13,
18884,
396,
322,
2244,
363,
6796,
7713,
293,
583,
3108,
363,
278,
1813,
4452,
29892,
13,
18884,
396,
322,
6796,
15644,
1170,
3108,
363,
278,
4452,
13,
18884,
770,
26297,
29925,
26584,
1061,
29898,
3318,
1125,
13,
462,
1678,
822,
10203,
16976,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
462,
4706,
396,
7106,
263,
11187,
1813,
515,
278,
11187,
10203,
262,
1061,
13,
462,
4706,
736,
518,
6377,
7713,
293,
583,
1115,
518,
6377,
15644,
1170,
1115,
376,
29888,
1296,
29899,
22197,
29908,
6525,
6525,
13,
13,
18884,
396,
349,
7420,
1246,
304,
1051,
29918,
3733,
293,
583,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
580,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
580,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
22197,
613,
1962,
29897,
13,
13,
18884,
396,
5399,
2436,
304,
1962,
934,
13,
18884,
5694,
29918,
13506,
353,
376,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
2829,
29899,
10467,
29899,
1761,
29899,
7382,
29899,
4905,
29908,
13,
18884,
285,
29892,
285,
978,
353,
5694,
1445,
29889,
11256,
303,
3451,
29898,
13506,
29922,
7382,
29918,
13506,
29897,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
580,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
4905,
29922,
29888,
978,
29892,
4889,
29922,
5574,
29897,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
411,
1722,
29898,
29888,
978,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
462,
1678,
1962,
353,
285,
29889,
949,
580,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
22197,
613,
1962,
29897,
13,
13,
4706,
396,
22402,
19725,
3168,
322,
4413,
304,
1371,
1243,
278,
1192,
2972,
29899,
1609,
13449,
13,
4706,
822,
903,
657,
29918,
16432,
29918,
21513,
29898,
24129,
29918,
1853,
1125,
13,
9651,
9995,
7270,
537,
740,
304,
736,
263,
25713,
1404,
9493,
1051,
363,
11187,
292,
15540,
3450,
15945,
29908,
13,
9651,
565,
24342,
29918,
1853,
451,
297,
6024,
7193,
742,
525,
13155,
742,
525,
307,
793,
2033,
29901,
13,
18884,
12020,
24875,
2392,
703,
2392,
29901,
8340,
24342,
1134,
2183,
29892,
2609,
11187,
15540,
3450,
1159,
13,
13,
9651,
1404,
29918,
16432,
29918,
1761,
353,
518,
13,
18884,
426,
13,
462,
1678,
376,
28129,
1115,
376,
29888,
1296,
29899,
1792,
29899,
29896,
613,
13,
462,
1678,
376,
2659,
1204,
1115,
4036,
29918,
284,
16711,
25099,
29918,
1807,
29898,
29940,
29922,
29906,
29896,
467,
21064,
3285,
13,
462,
1678,
376,
4165,
3791,
26542,
7713,
293,
583,
1115,
19997,
13,
462,
1678,
376,
2659,
15644,
1293,
1115,
518,
13,
462,
4706,
426,
13,
462,
9651,
376,
15644,
1170,
1115,
376,
29888,
1296,
29899,
22197,
29899,
1131,
3791,
29899,
517,
29899,
29888,
1296,
29899,
1792,
29899,
29896,
613,
13,
462,
9651,
376,
15644,
6268,
1115,
903,
657,
29918,
29888,
1296,
29918,
22197,
29918,
3225,
3285,
13,
462,
4706,
500,
13,
462,
1678,
21251,
13,
18884,
500,
13,
9651,
4514,
13,
13,
9651,
2318,
29918,
16432,
29918,
1761,
353,
518,
13,
18884,
426,
13,
462,
1678,
376,
4782,
1170,
1115,
376,
29888,
1296,
29899,
2972,
29899,
29896,
613,
13,
462,
1678,
376,
4782,
1204,
1115,
4036,
29918,
284,
16711,
25099,
29918,
1807,
29898,
29940,
29922,
29906,
29896,
467,
21064,
3285,
13,
462,
1678,
376,
4165,
3791,
26542,
7713,
293,
583,
1115,
19997,
13,
462,
1678,
376,
4782,
15644,
1293,
1115,
518,
13,
462,
4706,
426,
13,
462,
9651,
376,
15644,
1170,
1115,
376,
29888,
1296,
29899,
22197,
29899,
1131,
3791,
29899,
517,
29899,
29888,
1296,
29899,
2972,
29899,
29896,
613,
13,
462,
9651,
376,
15644,
6268,
1115,
903,
657,
29918,
29888,
1296,
29918,
22197,
29918,
3225,
3285,
13,
462,
4706,
500,
13,
462,
1678,
21251,
13,
18884,
500,
13,
9651,
4514,
13,
13,
9651,
6297,
29918,
16432,
29918,
1761,
353,
518,
13,
18884,
426,
13,
462,
1678,
376,
16727,
1170,
1115,
376,
29888,
1296,
29899,
12154,
29899,
29896,
613,
13,
462,
1678,
376,
16727,
1204,
1115,
4036,
29918,
284,
16711,
25099,
29918,
1807,
29898,
29940,
29922,
29906,
29896,
467,
21064,
3285,
13,
462,
1678,
376,
4165,
3791,
26542,
7713,
293,
583,
1115,
19997,
13,
462,
1678,
376,
16727,
15644,
1293,
1115,
518,
13,
462,
4706,
426,
13,
462,
9651,
376,
15644,
1170,
1115,
376,
29888,
1296,
29899,
22197,
29899,
1131,
3791,
29899,
517,
29899,
29888,
1296,
29899,
12154,
29899,
29896,
613,
13,
462,
9651,
376,
15644,
6268,
1115,
903,
657,
29918,
29888,
1296,
29918,
22197,
29918,
3225,
3285,
13,
462,
4706,
500,
13,
462,
1678,
21251,
13,
18884,
500,
13,
9651,
4514,
13,
13,
9651,
736,
426,
13,
18884,
376,
4782,
16570,
1293,
1115,
2318,
29918,
16432,
29918,
1761,
565,
24342,
29918,
1853,
1275,
376,
13155,
29908,
1683,
19997,
13,
18884,
376,
16727,
16570,
1293,
1115,
6297,
29918,
16432,
29918,
1761,
565,
24342,
29918,
1853,
1275,
376,
307,
793,
29908,
1683,
19997,
13,
18884,
376,
2659,
16570,
1293,
1115,
1404,
29918,
16432,
29918,
1761,
565,
24342,
29918,
1853,
1275,
376,
7193,
29908,
1683,
19997,
13,
9651,
500,
13,
13,
4706,
770,
26297,
29925,
26584,
1061,
29918,
2659,
7713,
293,
583,
29898,
3318,
1125,
13,
9651,
822,
10203,
16976,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
18884,
7709,
903,
657,
29918,
16432,
29918,
21513,
703,
7193,
1159,
13,
13,
4706,
770,
26297,
29925,
26584,
1061,
29918,
4782,
7713,
293,
583,
29898,
3318,
1125,
13,
9651,
822,
10203,
16976,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
18884,
7709,
903,
657,
29918,
16432,
29918,
21513,
703,
13155,
1159,
13,
13,
4706,
770,
26297,
29925,
26584,
1061,
29918,
16727,
7713,
293,
583,
29898,
3318,
1125,
13,
9651,
822,
10203,
16976,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
18884,
7709,
903,
657,
29918,
16432,
29918,
21513,
703,
307,
793,
1159,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
15540,
24833,
27831,
491,
1404,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
2829,
29918,
4645,
1159,
408,
474,
314,
29918,
4645,
29901,
13,
18884,
396,
445,
674,
1246,
1051,
29918,
10467,
29918,
1792,
29918,
3733,
293,
583,
580,
13,
18884,
396,
607,
674,
1246,
1051,
29918,
10467,
29918,
3733,
293,
583,
29918,
2972,
287,
580,
13,
18884,
396,
607,
674,
1246,
679,
29918,
13573,
262,
1061,
703,
657,
29918,
10149,
29918,
8921,
2133,
29918,
14144,
1159,
13,
18884,
396,
313,
1366,
338,
825,
591,
11187,
29897,
13,
18884,
396,
769,
372,
5717,
10203,
16976,
580,
304,
2244,
363,
1269,
1813,
29892,
13,
18884,
396,
607,
591,
11187,
297,
278,
11187,
4413,
2038,
29889,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
29918,
2659,
7713,
293,
583,
580,
13,
13,
18884,
396,
349,
7420,
1246,
304,
1051,
29918,
3733,
293,
583,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
7193,
1159,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
1792,
29899,
29896,
613,
376,
29888,
1296,
29899,
22197,
29899,
1131,
3791,
29899,
517,
29899,
29888,
1296,
29899,
1792,
29899,
29896,
3108,
511,
1962,
29897,
13,
13,
18884,
396,
5399,
2436,
304,
1962,
934,
13,
18884,
5694,
29918,
13506,
353,
376,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
2829,
29899,
10467,
29899,
1761,
29899,
7193,
29899,
7382,
29899,
4905,
29908,
13,
18884,
285,
29892,
285,
978,
353,
5694,
1445,
29889,
11256,
303,
3451,
29898,
13506,
29922,
7382,
29918,
13506,
29897,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
29918,
2659,
7713,
293,
583,
580,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
7193,
613,
1962,
29922,
29888,
978,
29892,
4889,
29922,
5574,
29897,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
411,
1722,
29898,
29888,
978,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
462,
1678,
1962,
353,
285,
29889,
949,
580,
13,
18884,
1583,
29889,
9294,
797,
29898,
13,
462,
1678,
306,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
1792,
29899,
29896,
613,
376,
29888,
1296,
29899,
22197,
29899,
1131,
3791,
29899,
517,
29899,
29888,
1296,
29899,
1792,
29899,
29896,
3108,
511,
1962,
13,
18884,
1723,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
15540,
24833,
27831,
491,
1404,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
2829,
29918,
4645,
1159,
408,
474,
314,
29918,
4645,
29901,
13,
18884,
396,
5717,
1051,
29918,
10467,
29918,
2972,
29918,
3733,
293,
583,
13,
18884,
396,
769,
1051,
29918,
10467,
29918,
3733,
293,
583,
29918,
2972,
287,
13,
18884,
396,
769,
679,
29918,
13573,
262,
1061,
703,
657,
29918,
10149,
29918,
8921,
2133,
29918,
14144,
1159,
13,
18884,
396,
313,
1366,
338,
825,
591,
11187,
29897,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
29918,
4782,
7713,
293,
583,
580,
13,
13,
18884,
396,
349,
7420,
1246,
304,
1051,
29918,
3733,
293,
583,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
13155,
1159,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
13,
462,
1678,
306,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
2972,
29899,
29896,
613,
376,
29888,
1296,
29899,
22197,
29899,
1131,
3791,
29899,
517,
29899,
29888,
1296,
29899,
2972,
29899,
29896,
3108,
511,
1962,
13,
18884,
1723,
13,
13,
18884,
396,
5399,
2436,
304,
1962,
934,
13,
18884,
5694,
29918,
13506,
353,
376,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
2829,
29899,
10467,
29899,
1761,
29899,
13155,
29899,
7382,
29899,
4905,
29908,
13,
18884,
285,
29892,
285,
978,
353,
5694,
1445,
29889,
11256,
303,
3451,
29898,
13506,
29922,
7382,
29918,
13506,
29897,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
29918,
4782,
7713,
293,
583,
580,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
13155,
613,
1962,
29922,
29888,
978,
29892,
4889,
29922,
5574,
29897,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
411,
1722,
29898,
29888,
978,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
462,
1678,
1962,
353,
285,
29889,
949,
580,
13,
18884,
1583,
29889,
9294,
797,
29898,
13,
462,
1678,
306,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
2972,
29899,
29896,
613,
376,
29888,
1296,
29899,
22197,
29899,
1131,
3791,
29899,
517,
29899,
29888,
1296,
29899,
2972,
29899,
29896,
3108,
511,
1962,
13,
18884,
1723,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
15540,
24833,
27831,
491,
6297,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
2829,
29918,
4645,
1159,
408,
474,
314,
29918,
4645,
29901,
13,
18884,
396,
5717,
1051,
29918,
10467,
29918,
2972,
29918,
3733,
293,
583,
13,
18884,
396,
769,
1051,
29918,
10467,
29918,
3733,
293,
583,
29918,
2972,
287,
13,
18884,
396,
769,
679,
29918,
13573,
262,
1061,
703,
657,
29918,
10149,
29918,
8921,
2133,
29918,
14144,
1159,
13,
18884,
396,
313,
1366,
338,
825,
591,
11187,
29897,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
29918,
16727,
7713,
293,
583,
580,
13,
13,
18884,
396,
349,
7420,
1246,
304,
1051,
29918,
3733,
293,
583,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
307,
793,
1159,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
13,
462,
1678,
306,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
12154,
29899,
29896,
613,
376,
29888,
1296,
29899,
22197,
29899,
1131,
3791,
29899,
517,
29899,
29888,
1296,
29899,
12154,
29899,
29896,
3108,
511,
1962,
13,
18884,
1723,
13,
13,
18884,
396,
5399,
2436,
304,
1962,
934,
13,
18884,
5694,
29918,
13506,
353,
376,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
2829,
29899,
10467,
29899,
1761,
29899,
307,
793,
29899,
7382,
29899,
4905,
29908,
13,
18884,
285,
29892,
285,
978,
353,
5694,
1445,
29889,
11256,
303,
3451,
29898,
13506,
29922,
7382,
29918,
13506,
29897,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
29918,
16727,
7713,
293,
583,
580,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
307,
793,
613,
1962,
29922,
29888,
978,
29892,
4889,
29922,
5574,
29897,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
411,
1722,
29898,
29888,
978,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
462,
1678,
1962,
353,
285,
29889,
949,
580,
13,
18884,
1583,
29889,
9294,
797,
29898,
13,
462,
1678,
306,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
12154,
29899,
29896,
613,
376,
29888,
1296,
29899,
22197,
29899,
1131,
3791,
29899,
517,
29899,
29888,
1296,
29899,
12154,
29899,
29896,
3108,
511,
1962,
13,
18884,
1723,
13,
13,
18884,
396,
8561,
1854,
591,
508,
29915,
29873,
26556,
1728,
1192,
10118,
13,
18884,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
7944,
2392,
1125,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
307,
793,
613,
1962,
29922,
29888,
978,
29892,
4889,
29922,
8824,
29897,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
13,
4706,
396,
4321,
1059,
29899,
3179,
1847,
322,
15283,
1833,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
3057,
15283,
322,
1059,
29899,
3179,
1847,
363,
15540,
306,
5194,
3168,
297,
270,
893,
29899,
3554,
29908,
1125,
13,
13,
9651,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
7944,
2392,
1125,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
9274,
29918,
18121,
543,
20965,
29899,
9274,
29899,
18121,
1159,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
13,
9651,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
7944,
2392,
1125,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
23327,
29899,
20965,
29899,
16957,
1159,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
13,
1678,
822,
1243,
29918,
2829,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29898,
1311,
1125,
13,
13,
4706,
822,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
1068,
19290,
1125,
13,
9651,
396,
3789,
2322,
9049,
5085,
1819,
29892,
769,
731,
1404,
29899,
6550,
2164,
9049,
5085,
13,
9651,
2888,
29918,
19290,
353,
9657,
29898,
13,
18884,
9570,
29918,
18121,
543,
29888,
375,
2911,
311,
613,
13,
18884,
2318,
29918,
1609,
29922,
8516,
29892,
13,
18884,
1962,
29922,
8516,
29892,
13,
18884,
4889,
29922,
8824,
29892,
13,
18884,
19060,
29918,
13662,
29922,
8824,
29892,
13,
18884,
3160,
29918,
25240,
29922,
8824,
29892,
13,
18884,
11813,
29922,
5574,
13,
9651,
1723,
13,
9651,
363,
9049,
29892,
659,
297,
9049,
5085,
29889,
7076,
7295,
13,
18884,
2888,
29918,
19290,
29961,
11022,
29962,
353,
659,
13,
9651,
736,
2888,
29918,
19290,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
29943,
375,
2911,
311,
3132,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
29928,
6271,
3170,
10601,
3260,
1159,
408,
317,
5194,
29892,
320,
13,
462,
1678,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
24830,
1159,
408,
12428,
29901,
13,
13,
18884,
396,
26297,
278,
2669,
3633,
8455,
577,
372,
2113,
29915,
29873,
7124,
278,
16451,
2911,
311,
1923,
13,
18884,
770,
383,
1296,
3170,
10644,
312,
29924,
629,
29898,
3318,
1125,
13,
13,
462,
1678,
822,
679,
29918,
8921,
2133,
29918,
6672,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
462,
4706,
736,
6571,
13,
13,
18884,
317,
5194,
29889,
3166,
29918,
344,
1037,
1372,
29918,
12847,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
29943,
1296,
3170,
10644,
312,
29924,
629,
3101,
13,
13,
18884,
396,
6204,
25713,
3450,
2933,
313,
650,
1813,
29897,
13,
18884,
770,
383,
1296,
5103,
29898,
3318,
1125,
13,
13,
462,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
462,
4706,
1583,
29889,
13662,
353,
6571,
13,
13,
462,
1678,
822,
12020,
29918,
1454,
29918,
4882,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
462,
4706,
1209,
13,
13,
462,
1678,
822,
4390,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
462,
4706,
736,
8853,
1989,
1115,
376,
1767,
9092,
13,
13,
18884,
396,
4321,
1246,
29918,
2754,
580,
13,
18884,
12428,
29889,
657,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
29943,
1296,
5103,
3101,
13,
18884,
3132,
353,
474,
314,
29889,
29943,
375,
2911,
311,
4032,
703,
13424,
1159,
13,
18884,
1121,
353,
3132,
29889,
4804,
29918,
2754,
11974,
1181,
22872,
613,
376,
1989,
1159,
13,
18884,
1583,
29889,
9294,
9843,
29898,
2914,
29892,
376,
1767,
1159,
13,
13,
18884,
396,
26297,
10203,
262,
630,
20890,
411,
322,
1728,
6645,
4839,
13,
18884,
770,
383,
1296,
29925,
26584,
630,
5103,
29898,
3318,
1125,
13,
13,
462,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
462,
4706,
1583,
29889,
13662,
353,
6571,
13,
13,
462,
1678,
822,
12020,
29918,
1454,
29918,
4882,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
462,
4706,
1209,
13,
13,
462,
1678,
822,
4390,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
462,
4706,
736,
8853,
1989,
1115,
6796,
5975,
613,
376,
5975,
3108,
29913,
13,
13,
18884,
770,
383,
1296,
29925,
26584,
630,
5103,
3047,
6595,
29898,
29943,
1296,
29925,
26584,
630,
5103,
1125,
13,
13,
462,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
462,
4706,
1583,
29889,
13662,
353,
8853,
6595,
1115,
9872,
991,
597,
2754,
29889,
3292,
29889,
510,
29914,
1792,
29914,
276,
1066,
29973,
3488,
29922,
29941,
29987,
546,
29918,
3488,
29922,
29896,
29900,
29900,
25867,
9092,
13,
13,
18884,
396,
4321,
10203,
16976,
580,
13,
18884,
12428,
29889,
657,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
11759,
29943,
1296,
29925,
26584,
630,
5103,
3047,
6595,
3285,
383,
1296,
29925,
26584,
630,
5103,
580,
2314,
13,
18884,
1121,
353,
3132,
29889,
13573,
16976,
11974,
1181,
22872,
613,
376,
1989,
1159,
13,
18884,
1583,
29889,
9294,
9843,
29898,
2914,
29892,
6796,
5975,
3108,
334,
29871,
29946,
29897,
13,
13,
4706,
822,
903,
6312,
29918,
22197,
29898,
22197,
29918,
1514,
1125,
13,
9651,
9995,
29956,
2390,
263,
8898,
1574,
278,
982,
383,
375,
2911,
311,
14422,
29914,
18280,
963,
15945,
29908,
13,
9651,
736,
8853,
10764,
3580,
324,
4245,
1115,
8898,
29918,
1514,
29913,
13,
13,
4706,
822,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29898,
29888,
375,
29918,
4645,
1125,
13,
9651,
9995,
13,
9651,
830,
29899,
5041,
263,
11187,
383,
375,
2911,
311,
3132,
411,
278,
1571,
20890,
363,
694,
1192,
2972,
29899,
1609,
7353,
13,
9651,
470,
363,
278,
1192,
2972,
29899,
1609,
4160,
7353,
29889,
13,
9651,
9995,
13,
9651,
396,
1932,
591,
1246,
1051,
29918,
3733,
293,
583,
3285,
607,
5717,
1051,
29918,
29888,
375,
29918,
1792,
29918,
3733,
293,
583,
3285,
13,
9651,
396,
372,
5717,
278,
10203,
16976,
580,
1158,
304,
679,
263,
1051,
310,
599,
4160,
29892,
13,
9651,
396,
769,
278,
10203,
16976,
580,
1158,
8951,
363,
1269,
1404,
313,
10646,
363,
6471,
29892,
2748,
363,
16178,
511,
13,
9651,
2625,
29918,
15987,
29879,
353,
518,
13,
18884,
518,
13,
462,
1678,
9872,
26862,
6227,
28341,
13,
462,
1678,
9872,
26862,
6227,
11903,
13,
18884,
21251,
13,
18884,
6796,
29888,
1296,
29899,
2972,
12436,
6796,
29888,
1296,
29899,
12154,
12436,
13,
18884,
6796,
29888,
1296,
29899,
2972,
29899,
29906,
12436,
6796,
29888,
1296,
29899,
12154,
29899,
29906,
3108,
13,
9651,
4514,
13,
9651,
16451,
29918,
4645,
2141,
13573,
16976,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
29922,
2975,
29918,
15987,
29879,
29897,
13,
13,
9651,
396,
9038,
591,
505,
2000,
278,
10203,
16976,
580,
3519,
29892,
13,
9651,
396,
591,
1246,
278,
1246,
29918,
2754,
580,
1158,
304,
679,
306,
5194,
24833,
10959,
304,
16178,
322,
6471,
13,
9651,
8898,
29918,
2640,
353,
518,
13,
18884,
525,
6377,
1204,
1115,
376,
29888,
1296,
29899,
2972,
29899,
22197,
9092,
742,
13,
18884,
525,
6377,
1204,
1115,
376,
29888,
1296,
29899,
12154,
29899,
22197,
9092,
742,
13,
18884,
525,
6377,
1204,
1115,
376,
29888,
1296,
29899,
2972,
29899,
29906,
29899,
22197,
9092,
742,
13,
18884,
525,
6377,
1204,
1115,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
9092,
742,
13,
9651,
4514,
13,
9651,
16451,
29918,
4645,
2141,
4804,
29918,
2754,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
11759,
29918,
6312,
29918,
22197,
29898,
1514,
29897,
363,
1574,
297,
8898,
29918,
2640,
2314,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
383,
375,
2911,
311,
24833,
29908,
1125,
13,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
29943,
375,
2911,
311,
4032,
1159,
408,
16451,
29918,
4645,
29901,
13,
18884,
396,
3940,
29901,
20768,
304,
1246,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
580,
1434,
1269,
1243,
13,
13,
18884,
396,
349,
7420,
1246,
304,
1051,
29918,
29888,
375,
29918,
3733,
293,
583,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29898,
29888,
375,
29918,
4645,
29897,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
580,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
22197,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
22197,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
29906,
29899,
22197,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
613,
1962,
29897,
13,
13,
18884,
396,
5399,
19060,
9066,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29898,
29888,
375,
29918,
4645,
29897,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
735,
2325,
29918,
13662,
29922,
5574,
29897,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
22197,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
22197,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
29906,
29899,
22197,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
613,
1962,
29897,
13,
13,
18884,
396,
5399,
2436,
304,
1962,
934,
13,
18884,
5694,
29918,
13506,
353,
376,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
2829,
29899,
29888,
375,
29899,
1761,
29899,
7382,
29899,
4905,
29908,
13,
18884,
285,
29892,
285,
978,
353,
5694,
1445,
29889,
11256,
303,
3451,
29898,
13506,
29922,
7382,
29918,
13506,
29897,
13,
18884,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29898,
29888,
375,
29918,
4645,
29897,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
4905,
29922,
29888,
978,
29892,
4889,
29922,
5574,
29897,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
411,
1722,
29898,
29888,
978,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
462,
1678,
1962,
353,
285,
29889,
949,
580,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
22197,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
22197,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
29906,
29899,
22197,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
613,
1962,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
383,
375,
2911,
311,
24833,
27831,
491,
4160,
29908,
1125,
13,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
29943,
375,
2911,
311,
4032,
1159,
408,
16451,
29918,
4645,
29901,
13,
13,
18884,
396,
2391,
16451,
2911,
311,
24833,
27831,
491,
1404,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29898,
29888,
375,
29918,
4645,
29897,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
7193,
1159,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
2972,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
12154,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
2972,
29899,
29906,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
13,
18884,
396,
5399,
19060,
9066,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29898,
29888,
375,
29918,
4645,
29897,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
7193,
613,
19060,
29918,
13662,
29922,
5574,
29897,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
2972,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
12154,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
2972,
29899,
29906,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
13,
18884,
396,
5399,
2436,
304,
1962,
934,
13,
18884,
5694,
29918,
13506,
353,
376,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
2829,
29899,
29888,
375,
29899,
1761,
29899,
7193,
29899,
7382,
29899,
4905,
29908,
13,
18884,
285,
29892,
285,
978,
353,
5694,
1445,
29889,
11256,
303,
3451,
29898,
13506,
29922,
7382,
29918,
13506,
29897,
13,
18884,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29898,
29888,
375,
29918,
4645,
29897,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
7193,
613,
1962,
29922,
29888,
978,
29892,
4889,
29922,
5574,
29897,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
411,
1722,
29898,
29888,
978,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
462,
1678,
1962,
353,
285,
29889,
949,
580,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
2972,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
12154,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
2972,
29899,
29906,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
4197,
13,
462,
1678,
9872,
26862,
6227,
28341,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
29908,
13,
18884,
4514,
511,
1962,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
383,
375,
2911,
311,
24833,
27831,
491,
6471,
29908,
1125,
13,
13,
9651,
396,
1334,
508,
29915,
29873,
671,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
580,
304,
1634,
905,
29892,
13,
9651,
396,
1951,
27270,
491,
6471,
3732,
1422,
740,
5717,
13,
9651,
822,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29918,
13155,
29898,
29888,
375,
29918,
4645,
1125,
13,
18884,
9995,
1123,
29899,
5041,
263,
11187,
383,
375,
2911,
311,
3132,
411,
278,
1571,
20890,
363,
773,
278,
1192,
2972,
29899,
1609,
6471,
7353,
15945,
29908,
13,
18884,
396,
1932,
591,
1246,
1051,
29918,
3733,
293,
583,
3285,
607,
5717,
1051,
29918,
29888,
375,
29918,
2972,
29918,
3733,
293,
583,
3285,
13,
18884,
396,
372,
5717,
10203,
16976,
580,
304,
679,
599,
6471,
29892,
13,
18884,
396,
769,
5717,
10203,
16976,
580,
304,
679,
16178,
363,
1269,
2318,
13,
18884,
20890,
353,
518,
3366,
29888,
1296,
29899,
2972,
613,
376,
29888,
1296,
29899,
2972,
29899,
29906,
12436,
6796,
29888,
1296,
29899,
12154,
12436,
6796,
29888,
1296,
29899,
12154,
29899,
29906,
3108,
29962,
13,
18884,
16451,
29918,
4645,
2141,
13573,
16976,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
29922,
26679,
267,
29897,
13,
13,
18884,
396,
1152,
1269,
6297,
29892,
1051,
29918,
29888,
375,
29918,
2972,
29918,
3733,
293,
583,
580,
5717,
679,
29918,
29888,
375,
29918,
12154,
29918,
1131,
3791,
29918,
3733,
293,
583,
3285,
13,
18884,
396,
607,
5717,
1246,
29918,
2754,
580,
373,
1269,
6297,
322,
3639,
263,
6590,
8898,
1842,
13,
18884,
396,
732,
305,
29885,
276,
333,
14402,
29901,
881,
445,
367,
5432,
679,
8898,
373,
1269,
2318,
29892,
2086,
29973,
313,
14764,
24833,
29897,
13,
18884,
8898,
29918,
2640,
353,
6024,
6377,
1204,
1115,
376,
29888,
1296,
29899,
12154,
29899,
22197,
9092,
742,
525,
6377,
1204,
1115,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
9092,
2033,
13,
18884,
16451,
29918,
4645,
2141,
4804,
29918,
2754,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
11759,
29918,
6312,
29918,
22197,
29898,
1514,
29897,
363,
1574,
297,
8898,
29918,
2640,
2314,
13,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
29943,
375,
2911,
311,
4032,
1159,
408,
16451,
29918,
4645,
29901,
13,
13,
18884,
396,
2391,
16451,
2911,
311,
24833,
27831,
491,
6471,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29918,
13155,
29898,
29888,
375,
29918,
4645,
29897,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
13155,
1159,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
2972,
613,
376,
29888,
1296,
29899,
12154,
29899,
22197,
3108,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
2972,
29899,
29906,
613,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
3108,
511,
1962,
29897,
13,
13,
18884,
396,
5399,
19060,
9066,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29918,
13155,
29898,
29888,
375,
29918,
4645,
29897,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
13155,
613,
19060,
29918,
13662,
29922,
5574,
29897,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
2972,
613,
376,
29888,
1296,
29899,
12154,
29899,
22197,
3108,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
2972,
29899,
29906,
613,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
3108,
511,
1962,
29897,
13,
13,
18884,
396,
5399,
2436,
304,
1962,
934,
13,
18884,
5694,
29918,
13506,
353,
376,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
2829,
29899,
29888,
375,
29899,
1761,
29899,
13155,
29899,
7382,
29899,
4905,
29908,
13,
18884,
285,
29892,
285,
978,
353,
5694,
1445,
29889,
11256,
303,
3451,
29898,
13506,
29922,
7382,
29918,
13506,
29897,
13,
18884,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29918,
13155,
29898,
29888,
375,
29918,
4645,
29897,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
13155,
613,
1962,
29922,
29888,
978,
29892,
4889,
29922,
5574,
29897,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
411,
1722,
29898,
29888,
978,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
462,
1678,
1962,
353,
285,
29889,
949,
580,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
2972,
613,
376,
29888,
1296,
29899,
12154,
29899,
22197,
3108,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
2972,
29899,
29906,
613,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
3108,
511,
1962,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
383,
375,
2911,
311,
24833,
27831,
491,
16178,
29908,
1125,
13,
13,
9651,
396,
1634,
905,
278,
16451,
2911,
311,
3132,
363,
5432,
263,
1051,
310,
24833,
27831,
491,
16178,
13,
9651,
822,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29918,
307,
793,
29898,
29888,
375,
29918,
4645,
1125,
13,
18884,
9995,
1123,
29899,
5041,
263,
11187,
383,
375,
2911,
311,
3132,
411,
278,
1571,
20890,
363,
773,
278,
1192,
2972,
29899,
1609,
16178,
7353,
15945,
29908,
13,
18884,
396,
1932,
591,
1246,
1051,
29918,
3733,
293,
583,
29892,
607,
5717,
1051,
29918,
29888,
375,
29918,
12154,
29918,
3733,
293,
583,
3285,
13,
18884,
396,
372,
5717,
10203,
16976,
580,
304,
679,
278,
1051,
310,
599,
16178,
29892,
13,
18884,
2625,
29918,
15987,
29879,
353,
518,
3366,
29888,
1296,
29899,
12154,
613,
376,
29888,
1296,
29899,
12154,
29899,
29906,
3108,
29962,
13,
18884,
16451,
29918,
4645,
2141,
13573,
16976,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
29922,
2975,
29918,
15987,
29879,
29897,
13,
13,
18884,
396,
1051,
29918,
29888,
375,
29918,
12154,
29918,
3733,
293,
583,
769,
5717,
679,
29918,
29888,
375,
29918,
12154,
29918,
1131,
3791,
29918,
3733,
293,
583,
580,
13,
18884,
396,
304,
679,
263,
1051,
310,
24833,
10959,
304,
278,
6297,
29892,
13,
18884,
396,
607,
5717,
1246,
29918,
2754,
580,
363,
1269,
6297,
4133,
491,
278,
10203,
16976,
1899,
13,
18884,
8898,
29918,
2640,
353,
6024,
6377,
1204,
1115,
376,
29888,
1296,
29899,
12154,
29899,
22197,
9092,
742,
525,
6377,
1204,
1115,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
9092,
2033,
13,
18884,
16451,
29918,
4645,
2141,
4804,
29918,
2754,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
11759,
29918,
6312,
29918,
22197,
29898,
1514,
29897,
363,
1574,
297,
8898,
29918,
2640,
2314,
13,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
29943,
375,
2911,
311,
4032,
1159,
408,
16451,
29918,
4645,
29901,
13,
13,
18884,
396,
2391,
16451,
2911,
311,
24833,
27831,
491,
16178,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29918,
307,
793,
29898,
29888,
375,
29918,
4645,
29897,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
307,
793,
1159,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
12154,
613,
376,
29888,
1296,
29899,
12154,
29899,
22197,
3108,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
12154,
29899,
29906,
613,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
3108,
511,
1962,
29897,
13,
13,
18884,
396,
5399,
19060,
9066,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29918,
307,
793,
29898,
29888,
375,
29918,
4645,
29897,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
307,
793,
613,
19060,
29918,
13662,
29922,
5574,
29897,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
12154,
613,
376,
29888,
1296,
29899,
12154,
29899,
22197,
3108,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
12154,
29899,
29906,
613,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
3108,
511,
1962,
29897,
13,
13,
18884,
396,
5399,
2436,
304,
1962,
934,
13,
18884,
5694,
29918,
13506,
353,
376,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
2829,
29899,
1761,
29899,
307,
793,
29899,
7382,
29899,
4905,
29908,
13,
18884,
285,
29892,
285,
978,
353,
5694,
1445,
29889,
11256,
303,
3451,
29898,
13506,
29922,
7382,
29918,
13506,
29897,
13,
18884,
903,
3445,
905,
29918,
29888,
375,
29918,
4645,
29918,
307,
793,
29898,
29888,
375,
29918,
4645,
29897,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
3733,
293,
583,
29918,
19290,
29898,
2972,
29918,
1609,
543,
307,
793,
613,
1962,
29922,
29888,
978,
29892,
4889,
29922,
5574,
29897,
13,
18884,
474,
314,
29889,
1761,
29918,
3733,
293,
583,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
411,
1722,
29898,
29888,
978,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
462,
1678,
1962,
353,
285,
29889,
949,
580,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
12154,
613,
376,
29888,
1296,
29899,
12154,
29899,
22197,
3108,
511,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29902,
5194,
1660,
16320,
1299,
1955,
29889,
7122,
29898,
3366,
29888,
1296,
29899,
12154,
29899,
29906,
613,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29899,
22197,
3108,
511,
1962,
29897,
13,
13,
1678,
822,
1243,
29918,
2829,
29918,
10467,
29918,
1761,
29918,
16596,
29898,
1311,
1125,
13,
13,
4706,
822,
903,
657,
29918,
10467,
29918,
1761,
29918,
16596,
29918,
19290,
29898,
1068,
19290,
1125,
13,
9651,
396,
3789,
2322,
9049,
5085,
1819,
29892,
769,
731,
1404,
29899,
6550,
2164,
9049,
5085,
13,
9651,
2888,
29918,
19290,
353,
9657,
29898,
13,
18884,
9570,
29918,
18121,
543,
10467,
613,
13,
18884,
1962,
29922,
8516,
29892,
13,
18884,
4889,
29922,
8824,
29892,
13,
18884,
19060,
29918,
13662,
29922,
8824,
29892,
13,
9651,
1723,
13,
9651,
363,
9049,
29892,
659,
297,
9049,
5085,
29889,
7076,
7295,
13,
18884,
2888,
29918,
19290,
29961,
11022,
29962,
353,
659,
13,
9651,
736,
2888,
29918,
19290,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
29909,
7811,
1051,
4160,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
2829,
29918,
4645,
1159,
408,
474,
314,
29918,
4645,
29901,
13,
18884,
770,
26297,
29925,
26584,
1061,
29918,
5959,
29898,
3318,
1125,
13,
462,
1678,
822,
10203,
16976,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
462,
4706,
736,
518,
6377,
5959,
1115,
518,
13,
462,
9651,
8853,
28129,
1115,
9872,
26862,
6227,
29958,
10758,
13,
462,
9651,
8853,
28129,
1115,
9872,
26862,
6227,
29958,
9092,
13,
462,
4706,
4514,
6525,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
29918,
5959,
580,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
16596,
29918,
19290,
580,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
7193,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
28945,
26862,
6227,
28341,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
28945,
26862,
6227,
28341,
1962,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
29909,
7811,
1051,
6471,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
2829,
29918,
4645,
1159,
408,
474,
314,
29918,
4645,
29901,
13,
18884,
770,
26297,
29925,
26584,
1061,
29918,
24020,
29898,
3318,
1125,
13,
462,
1678,
822,
10203,
16976,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
462,
4706,
736,
518,
6377,
24020,
1115,
518,
6377,
4782,
1170,
1115,
376,
29888,
1296,
29899,
2972,
29899,
29896,
10758,
8853,
4782,
1170,
1115,
376,
29888,
1296,
29899,
2972,
29899,
29906,
29908,
6525,
6525,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
29918,
24020,
580,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
16596,
29918,
19290,
580,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
13155,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
29896,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
29906,
613,
1962,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
29909,
7811,
1051,
16178,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
2829,
29918,
4645,
1159,
408,
474,
314,
29918,
4645,
29901,
13,
18884,
770,
26297,
29925,
26584,
1061,
29918,
29934,
6544,
29898,
3318,
1125,
13,
462,
1678,
822,
10203,
16976,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
462,
4706,
736,
518,
6377,
29934,
6544,
1115,
518,
6377,
16727,
1170,
1115,
376,
29888,
1296,
29899,
12154,
29899,
29896,
10758,
8853,
16727,
1170,
1115,
376,
29888,
1296,
29899,
12154,
29899,
29906,
29908,
6525,
6525,
13,
18884,
474,
314,
29918,
4645,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
29918,
29934,
6544,
580,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
9049,
5085,
353,
903,
657,
29918,
10467,
29918,
1761,
29918,
16596,
29918,
19290,
580,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
307,
793,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
29896,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
29906,
613,
1962,
29897,
13,
13,
1678,
822,
1243,
29918,
2829,
29918,
29888,
375,
29918,
1761,
29918,
16596,
29898,
1311,
1125,
13,
13,
4706,
822,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
16596,
29918,
19290,
29898,
1068,
19290,
1125,
13,
9651,
396,
3789,
2322,
9049,
5085,
1819,
29892,
769,
731,
1404,
29899,
6550,
2164,
9049,
5085,
13,
9651,
2888,
29918,
19290,
353,
9657,
29898,
13,
18884,
9570,
29918,
18121,
543,
29888,
375,
2911,
311,
613,
13,
18884,
1962,
29922,
8516,
29892,
13,
18884,
4889,
29922,
8824,
29892,
13,
18884,
19060,
29918,
13662,
29922,
8824,
29892,
13,
9651,
1723,
13,
9651,
363,
9049,
29892,
659,
297,
9049,
5085,
29889,
7076,
7295,
13,
18884,
2888,
29918,
19290,
29961,
11022,
29962,
353,
659,
13,
9651,
736,
2888,
29918,
19290,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
29943,
375,
2911,
311,
1051,
4160,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
29943,
375,
2911,
311,
4032,
1159,
408,
16451,
29918,
4645,
29901,
13,
18884,
2625,
29918,
15987,
29879,
353,
5519,
13,
462,
1678,
9872,
26862,
6227,
28341,
13,
462,
1678,
9872,
26862,
6227,
11903,
13,
18884,
29588,
13,
18884,
16451,
29918,
4645,
2141,
13573,
16976,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
29922,
2975,
29918,
15987,
29879,
29897,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
16596,
29918,
19290,
580,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
7193,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
28945,
26862,
6227,
28341,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
28945,
26862,
6227,
28341,
1962,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
29943,
375,
2911,
311,
1051,
6471,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
29943,
375,
2911,
311,
4032,
1159,
408,
16451,
29918,
4645,
29901,
13,
18884,
2625,
29918,
15987,
29879,
353,
518,
3366,
29888,
1296,
29899,
2972,
29899,
29896,
613,
376,
29888,
1296,
29899,
2972,
29899,
29906,
3108,
29962,
13,
18884,
16451,
29918,
4645,
2141,
13573,
16976,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
29922,
2975,
29918,
15987,
29879,
29897,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
16596,
29918,
19290,
580,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
13155,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
29896,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
2972,
29899,
29906,
613,
1962,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
29943,
375,
2911,
311,
1051,
16178,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2829,
29889,
29943,
375,
2911,
311,
4032,
1159,
408,
16451,
29918,
4645,
29901,
13,
18884,
2625,
29918,
15987,
29879,
353,
518,
3366,
29888,
1296,
29899,
12154,
29899,
29896,
613,
376,
29888,
1296,
29899,
12154,
29899,
29906,
3108,
29962,
13,
18884,
16451,
29918,
4645,
2141,
13573,
16976,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
29922,
2975,
29918,
15987,
29879,
29897,
13,
18884,
9049,
5085,
353,
903,
657,
29918,
29888,
375,
29918,
1761,
29918,
16596,
29918,
19290,
580,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
474,
314,
29889,
1761,
29918,
307,
793,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
1068,
19290,
876,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
29896,
613,
1962,
29897,
13,
18884,
1583,
29889,
9294,
797,
703,
29888,
1296,
29899,
12154,
29899,
29906,
613,
1962,
29897,
13,
13,
1678,
822,
1243,
29918,
344,
1037,
1372,
29918,
7283,
566,
29898,
1311,
1125,
13,
4706,
396,
15600,
15789,
313,
3258,
1303,
2767,
5217,
29897,
1243,
8792,
29901,
13,
4706,
396,
448,
1653,
716,
7035,
13,
4706,
396,
448,
1051,
22183,
1372,
322,
11539,
716,
7035,
3697,
701,
13,
4706,
396,
448,
679,
7035,
995,
322,
11539,
372,
338,
1959,
13,
4706,
396,
448,
2767,
7035,
995,
13,
4706,
396,
448,
679,
7035,
995,
322,
11539,
372,
338,
1959,
13,
4706,
396,
448,
5217,
7035,
13,
4706,
607,
29918,
19190,
353,
2897,
29889,
21813,
3366,
29928,
1799,
29918,
2287,
29925,
3927,
29979,
13780,
29918,
1254,
10461,
3108,
13,
4706,
607,
29918,
8899,
353,
2897,
29889,
21813,
3366,
29928,
1799,
29918,
1660,
22245,
9375,
29918,
1254,
29949,
1525,
3108,
13,
13,
4706,
7035,
29918,
978,
353,
4036,
29918,
284,
16711,
25099,
29918,
1807,
580,
13,
4706,
1243,
1707,
29918,
978,
353,
285,
29908,
29912,
4716,
29918,
8899,
6822,
29912,
4716,
29918,
19190,
6822,
29912,
19024,
29918,
978,
5038,
13,
4706,
1243,
1707,
29918,
1767,
353,
376,
10994,
3186,
3850,
13,
4706,
1243,
1707,
29918,
1767,
29906,
353,
376,
18420,
26966,
3186,
3850,
13,
13,
4706,
443,
3880,
1707,
29918,
978,
353,
285,
29908,
29912,
4716,
29918,
8899,
6822,
29912,
4716,
29918,
19190,
6822,
6406,
29918,
1792,
29918,
331,
2234,
29908,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
4391,
263,
716,
7035,
29908,
1125,
13,
9651,
396,
2598,
446,
1478,
905,
278,
22183,
1372,
8455,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
344,
1037,
1372,
29889,
3844,
29918,
4645,
1159,
408,
1560,
29901,
13,
18884,
396,
26221,
263,
716,
2286,
674,
937,
1246,
679,
29892,
607,
674,
451,
1284,
372,
13,
18884,
1560,
29889,
657,
29918,
19024,
29918,
1767,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29892,
2625,
29918,
15987,
29922,
4032,
2392,
3319,
1118,
6213,
876,
13,
18884,
396,
8084,
591,
674,
671,
278,
1653,
7035,
1899,
13,
18884,
1560,
29889,
3258,
29918,
19024,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
13,
18884,
396,
6204,
2847,
7035,
995,
29901,
13,
18884,
396,
360,
719,
1065,
937,
13,
18884,
411,
3925,
481,
855,
24581,
29898,
1688,
1707,
29918,
1767,
1125,
13,
462,
1678,
22183,
1372,
29889,
842,
29918,
19024,
29898,
13,
462,
4706,
19997,
13,
462,
4706,
1852,
5510,
29889,
23335,
29898,
13,
462,
9651,
7035,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
5574,
29892,
297,
1445,
29922,
8516,
29892,
11813,
29922,
5574,
29892,
4889,
29922,
5574,
13,
462,
4706,
10353,
13,
462,
1678,
1723,
13,
13,
18884,
396,
9133,
680,
7035,
3025,
3659,
262,
13,
18884,
411,
3925,
481,
855,
24581,
29898,
1688,
1707,
29918,
1767,
1125,
13,
462,
1678,
22183,
1372,
29889,
842,
29918,
19024,
29898,
13,
462,
4706,
19997,
13,
462,
4706,
1852,
5510,
29889,
23335,
29898,
13,
462,
9651,
7035,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
297,
1445,
29922,
8516,
29892,
11813,
29922,
5574,
29892,
4889,
29922,
5574,
13,
462,
4706,
10353,
13,
462,
1678,
1723,
13,
13,
18884,
396,
9133,
680,
7035,
3025,
297,
1445,
13,
18884,
411,
5694,
1445,
29889,
22175,
5776,
1971,
653,
2283,
29898,
13506,
2433,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
1482,
29899,
19024,
29899,
7382,
29899,
2080,
742,
4464,
2433,
29893,
1495,
408,
285,
29901,
13,
462,
1678,
285,
29889,
3539,
29898,
1688,
1707,
29918,
1767,
29897,
13,
462,
1678,
22183,
1372,
29889,
842,
29918,
19024,
29898,
13,
462,
4706,
19997,
13,
462,
4706,
1852,
5510,
29889,
23335,
29898,
13,
462,
9651,
7035,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
297,
1445,
29922,
29888,
29889,
978,
29892,
4889,
29922,
5574,
29892,
11813,
29922,
5574,
13,
462,
4706,
10353,
13,
462,
1678,
1723,
13,
13,
18884,
396,
5399,
1059,
29899,
12510,
292,
411,
1661,
29899,
735,
9696,
297,
1445,
13,
18884,
286,
29888,
353,
525,
1366,
29899,
1445,
29899,
275,
29899,
1333,
29899,
4150,
29915,
13,
18884,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
7944,
2392,
1125,
13,
462,
1678,
22183,
1372,
29889,
842,
29918,
19024,
29898,
13,
462,
4706,
19997,
13,
462,
4706,
1852,
5510,
29889,
23335,
29898,
13,
462,
9651,
7035,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
297,
1445,
29922,
29885,
29888,
29892,
4889,
29922,
5574,
29892,
11813,
29922,
5574,
13,
462,
4706,
10353,
13,
462,
1678,
1723,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
22183,
1372,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
344,
1037,
1372,
29889,
3844,
29918,
4645,
1159,
408,
1560,
29901,
13,
18884,
396,
2391,
292,
22183,
1372,
6858,
4969,
263,
10203,
262,
1061,
937,
29892,
13,
18884,
396,
577,
11187,
825,
278,
10203,
262,
1061,
3639,
13,
18884,
770,
26297,
29925,
26584,
1061,
29898,
3318,
1125,
13,
462,
1678,
822,
10203,
16976,
29898,
1311,
1125,
13,
462,
4706,
396,
7106,
263,
11187,
1813,
515,
278,
11187,
10203,
262,
1061,
13,
462,
4706,
736,
518,
6377,
28459,
1293,
1115,
518,
6377,
1170,
1115,
1243,
1707,
29918,
978,
1118,
8853,
1170,
1115,
443,
3880,
1707,
29918,
978,
6525,
6525,
13,
18884,
1560,
29889,
657,
29918,
13573,
262,
1061,
29889,
2457,
29918,
1767,
353,
26297,
29925,
26584,
1061,
580,
13,
13,
18884,
396,
10050,
29899,
7249,
1962,
937,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
22183,
1372,
29889,
1761,
29918,
344,
1037,
1372,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
3126,
29922,
8824,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
1688,
1707,
29918,
978,
29892,
1962,
29897,
13,
13,
18884,
396,
4663,
1962,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
22183,
1372,
29889,
1761,
29918,
344,
1037,
1372,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
3126,
29922,
5574,
876,
13,
18884,
599,
29918,
344,
1037,
1372,
29918,
4905,
353,
4390,
29889,
18132,
14182,
29876,
1642,
7122,
29898,
4905,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
1688,
1707,
29918,
978,
29892,
599,
29918,
344,
1037,
1372,
29918,
4905,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
2577,
7035,
995,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
344,
1037,
1372,
29889,
3844,
29918,
4645,
1159,
408,
1560,
29901,
13,
18884,
396,
10729,
292,
278,
2286,
674,
1018,
304,
679,
7035,
995,
322,
9269,
13,
18884,
1560,
29889,
657,
29918,
19024,
29918,
1767,
29889,
2457,
29918,
1767,
353,
8853,
28459,
1231,
1115,
1243,
1707,
29918,
1767,
29913,
13,
18884,
396,
2567,
1065,
679,
7035,
995,
297,
4663,
4464,
322,
1661,
29899,
7249,
4464,
13,
18884,
396,
322,
11539,
2286,
1024,
29914,
1767,
338,
297,
1716,
29889,
13,
13,
18884,
396,
1570,
1962,
934,
13,
18884,
411,
5694,
1445,
29889,
22175,
5776,
1971,
653,
2283,
29898,
13506,
2433,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
657,
29899,
19024,
29899,
7382,
29899,
4905,
742,
4464,
2433,
29893,
1495,
408,
285,
29901,
13,
462,
1678,
396,
3967,
304,
26556,
714,
1445,
1728,
1192,
10118,
13,
462,
1678,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
7944,
2392,
1125,
13,
462,
4706,
22183,
1372,
29889,
657,
29918,
19024,
29898,
13,
462,
9651,
19997,
1852,
5510,
29889,
23335,
29898,
19024,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
714,
1445,
29922,
29888,
29889,
978,
29892,
4889,
29922,
8824,
29897,
13,
462,
4706,
1723,
13,
13,
462,
1678,
396,
6811,
3539,
714,
1445,
411,
1192,
10118,
13,
462,
1678,
22183,
1372,
29889,
657,
29918,
19024,
29898,
13,
462,
4706,
19997,
1852,
5510,
29889,
23335,
29898,
19024,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
714,
1445,
29922,
29888,
29889,
978,
29892,
4889,
29922,
5574,
29897,
13,
462,
1678,
1723,
13,
462,
1678,
411,
1722,
29898,
29888,
29889,
978,
29892,
525,
29878,
1495,
408,
1424,
29901,
13,
462,
4706,
934,
29918,
10853,
353,
1424,
29889,
949,
580,
13,
462,
1678,
1583,
29889,
9294,
797,
29898,
1688,
1707,
29918,
1767,
29892,
934,
29918,
10853,
29897,
13,
13,
18884,
396,
10604,
7035,
304,
27591,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
22183,
1372,
29889,
657,
29918,
19024,
29898,
13,
462,
4706,
19997,
1852,
5510,
29889,
23335,
29898,
19024,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
714,
1445,
29922,
8516,
29892,
4889,
29922,
8824,
29897,
13,
462,
1678,
1723,
13,
18884,
1583,
29889,
9294,
797,
29898,
1688,
1707,
29918,
1767,
29892,
6634,
29876,
1642,
7122,
29898,
4905,
876,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
6422,
5923,
7035,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
344,
1037,
1372,
29889,
3844,
29918,
4645,
1159,
408,
1560,
29901,
13,
18884,
396,
5020,
26747,
278,
2286,
674,
1018,
304,
679,
7035,
995,
322,
9269,
13,
18884,
1560,
29889,
657,
29918,
19024,
29918,
1767,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
3790,
29908,
28459,
1231,
1115,
1243,
1707,
29918,
1767,
1800,
13,
18884,
396,
8084,
591,
674,
1246,
278,
2767,
7035,
1899,
13,
18884,
1560,
29889,
5504,
29918,
19024,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
13,
18884,
396,
10318,
7035,
29901,
13,
18884,
396,
360,
719,
1065,
937,
13,
18884,
411,
3925,
481,
855,
24581,
29898,
1688,
1707,
29918,
1767,
29906,
1125,
13,
462,
1678,
22183,
1372,
29889,
842,
29918,
19024,
29898,
13,
462,
4706,
19997,
13,
462,
4706,
1852,
5510,
29889,
23335,
29898,
13,
462,
9651,
7035,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
5574,
29892,
297,
1445,
29922,
8516,
29892,
4889,
29922,
5574,
29892,
11813,
29922,
5574,
13,
462,
4706,
10353,
13,
462,
1678,
1723,
13,
13,
18884,
396,
4803,
3659,
262,
13,
18884,
411,
3925,
481,
855,
24581,
29898,
1688,
1707,
29918,
1767,
29906,
1125,
13,
462,
1678,
22183,
1372,
29889,
842,
29918,
19024,
29898,
13,
462,
4706,
19997,
13,
462,
4706,
1852,
5510,
29889,
23335,
29898,
13,
462,
9651,
7035,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
297,
1445,
29922,
8516,
29892,
4889,
29922,
5574,
29892,
11813,
29922,
5574,
13,
462,
4706,
10353,
13,
462,
1678,
1723,
13,
13,
18884,
396,
4803,
1881,
934,
13,
18884,
411,
5694,
1445,
29889,
22175,
5776,
1971,
653,
2283,
29898,
13506,
2433,
29881,
893,
29899,
1688,
29899,
3372,
800,
29899,
5504,
29899,
19024,
29899,
7382,
29899,
2080,
742,
4464,
2433,
29893,
1495,
408,
285,
29901,
13,
462,
1678,
285,
29889,
3539,
29898,
1688,
1707,
29918,
1767,
29906,
29897,
13,
462,
1678,
22183,
1372,
29889,
842,
29918,
19024,
29898,
13,
462,
4706,
19997,
13,
462,
4706,
1852,
5510,
29889,
23335,
29898,
13,
462,
9651,
7035,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
297,
1445,
29922,
29888,
29889,
978,
29892,
4889,
29922,
5574,
29892,
11813,
29922,
5574,
13,
462,
4706,
10353,
13,
462,
1678,
1723,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
12498,
7035,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
344,
1037,
1372,
29889,
3844,
29918,
4645,
1159,
408,
1560,
29901,
13,
18884,
396,
897,
1026,
292,
278,
2286,
674,
1018,
304,
679,
7035,
995,
322,
9269,
13,
18884,
1560,
29889,
657,
29918,
19024,
29918,
1767,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
3790,
29908,
28459,
1231,
1115,
1243,
1707,
29918,
1767,
1800,
13,
18884,
1560,
29889,
8143,
29918,
19024,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
13,
18884,
396,
21267,
7035,
13,
18884,
396,
360,
719,
1065,
937,
13,
18884,
22183,
1372,
29889,
6144,
29918,
19024,
29898,
13,
462,
1678,
19997,
1852,
5510,
29889,
23335,
29898,
19024,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
4889,
29922,
5574,
29892,
15589,
29918,
3389,
29922,
5574,
29892,
11813,
29922,
5574,
29897,
13,
18884,
1723,
13,
13,
18884,
396,
8195,
2655,
13,
18884,
22183,
1372,
29889,
6144,
29918,
19024,
29898,
13,
462,
1678,
19997,
1852,
5510,
29889,
23335,
29898,
19024,
29918,
978,
29922,
1688,
1707,
29918,
978,
29892,
4889,
29922,
5574,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
11813,
29922,
5574,
29897,
13,
18884,
1723,
13,
13,
1678,
822,
1243,
29918,
893,
29885,
7529,
29918,
4422,
1907,
29898,
1311,
1125,
13,
4706,
10944,
353,
285,
29908,
19248,
359,
29889,
21813,
1839,
29928,
1799,
29918,
16320,
25797,
4945,
29918,
1254,
29949,
1525,
2033,
6822,
29912,
359,
29889,
21813,
1839,
29928,
1799,
29918,
2287,
29925,
3927,
29979,
13780,
29918,
1254,
10461,
2033,
5038,
13,
4706,
7684,
29918,
1707,
353,
285,
29908,
29912,
13506,
6822,
29881,
11770,
29918,
11918,
29908,
13,
13,
4706,
722,
353,
376,
29881,
11770,
29918,
11918,
29908,
13,
4706,
716,
29918,
1707,
353,
2329,
29918,
893,
29885,
29918,
11918,
29918,
13506,
29898,
1707,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1482,
29918,
1707,
29892,
7684,
29918,
1707,
29897,
13,
13,
4706,
722,
353,
5591,
29881,
11770,
29918,
11918,
29908,
13,
4706,
716,
29918,
1707,
353,
2329,
29918,
893,
29885,
29918,
11918,
29918,
13506,
29898,
1707,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1482,
29918,
1707,
29892,
7684,
29918,
1707,
29897,
13,
13,
4706,
722,
353,
285,
29908,
29912,
13506,
6822,
29881,
11770,
29918,
11918,
29908,
13,
4706,
716,
29918,
1707,
353,
2329,
29918,
893,
29885,
29918,
11918,
29918,
13506,
29898,
1707,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1482,
29918,
1707,
29892,
7684,
29918,
1707,
29897,
13,
13,
4706,
722,
353,
285,
29908,
29912,
13506,
6822,
29881,
11770,
29918,
11918,
12975,
13,
4706,
716,
29918,
1707,
353,
2329,
29918,
893,
29885,
29918,
11918,
29918,
13506,
29898,
1707,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1482,
29918,
1707,
29892,
7684,
29918,
1707,
29897,
13,
13,
1678,
822,
1243,
29918,
893,
29885,
7529,
29918,
7283,
566,
29898,
1311,
1125,
13,
4706,
396,
15600,
15789,
313,
3258,
1303,
2767,
5217,
29897,
1243,
363,
4444,
5177,
3651,
297,
5886,
29924,
1828,
3787,
13,
4706,
1243,
1707,
29918,
978,
353,
4036,
29918,
284,
16711,
25099,
29918,
1807,
580,
13,
4706,
1243,
1707,
29918,
1767,
353,
376,
10994,
3186,
3850,
13,
13,
4706,
396,
4007,
6967,
5177,
304,
736,
13,
4706,
2030,
29918,
6272,
353,
8853,
29928,
5005,
17870,
29918,
26865,
29902,
6181,
1115,
376,
29881,
11770,
29918,
1767,
9092,
13,
4706,
716,
29918,
6272,
353,
9657,
29898,
1068,
1025,
29918,
6272,
29897,
13,
4706,
716,
29918,
6272,
29961,
1688,
1707,
29918,
978,
29962,
353,
1243,
1707,
29918,
1767,
13,
4706,
269,
3844,
29918,
1482,
29918,
6272,
353,
1583,
3032,
6312,
29918,
893,
29885,
29918,
6272,
29898,
1482,
29918,
6272,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
11816,
278,
5886,
29924,
5177,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
893,
29885,
29918,
4645,
1159,
408,
269,
3844,
29901,
13,
18884,
396,
18028,
8636,
674,
1246,
269,
3844,
29889,
657,
29918,
15501,
304,
679,
278,
4152,
5177,
13,
18884,
269,
3844,
29889,
657,
29918,
15501,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
893,
29885,
29918,
1482,
29918,
6272,
29897,
13,
13,
18884,
396,
2567,
1246,
1749,
8636,
29889,
2272,
3883,
29889,
10604,
722,
29922,
1767,
373,
1269,
1196,
29889,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
14013,
29918,
7529,
29889,
893,
29885,
29918,
20944,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
3126,
29922,
8824,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
29888,
29908,
29912,
1688,
1707,
29918,
978,
29913,
3790,
1688,
1707,
29918,
1767,
17671,
1962,
29897,
13,
13,
1678,
822,
1243,
29918,
29880,
1117,
29881,
481,
279,
2232,
29918,
7283,
566,
29898,
1311,
1125,
13,
4706,
396,
15600,
15789,
313,
3258,
1303,
2767,
5217,
29897,
1243,
363,
4444,
14013,
740,
5177,
3651,
13,
4706,
1243,
1707,
29918,
978,
353,
4036,
29918,
284,
16711,
25099,
29918,
1807,
580,
13,
4706,
1243,
1707,
29918,
1767,
353,
376,
10994,
3186,
3850,
13,
4706,
1243,
1707,
29918,
1767,
29906,
353,
376,
18420,
26966,
3186,
3850,
13,
13,
4706,
396,
4007,
6967,
385,
2030,
322,
716,
5177,
304,
736,
13,
4706,
2030,
29918,
6272,
353,
8853,
29928,
5005,
17870,
29918,
26865,
29902,
6181,
1115,
376,
29881,
11770,
29918,
1767,
9092,
13,
4706,
716,
29918,
6272,
353,
9657,
29898,
1068,
1025,
29918,
6272,
29897,
13,
4706,
716,
29918,
6272,
29961,
1688,
1707,
29918,
978,
29962,
353,
1243,
1707,
29918,
1767,
13,
13,
4706,
269,
3844,
29918,
1025,
29918,
6272,
353,
1583,
3032,
6312,
29918,
893,
29885,
29918,
6272,
29898,
1025,
29918,
6272,
29897,
13,
4706,
269,
3844,
29918,
1482,
29918,
6272,
353,
1583,
3032,
6312,
29918,
893,
29885,
29918,
6272,
29898,
1482,
29918,
6272,
29897,
13,
13,
4706,
301,
314,
29918,
1025,
29918,
6272,
353,
1583,
3032,
6312,
29918,
2892,
29918,
6272,
29898,
1025,
29918,
6272,
29897,
13,
4706,
301,
314,
29918,
1482,
29918,
6272,
353,
1583,
3032,
6312,
29918,
2892,
29918,
6272,
29898,
1482,
29918,
6272,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
4391,
263,
716,
14013,
3443,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
893,
29885,
29918,
4645,
1159,
408,
269,
3844,
29892,
320,
13,
462,
1678,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
2892,
29918,
4645,
1159,
408,
301,
314,
29901,
13,
13,
18884,
396,
960,
445,
338,
451,
263,
15589,
1065,
29892,
14013,
29918,
842,
297,
8636,
29889,
2272,
13,
18884,
396,
674,
2767,
278,
5886,
29924,
937,
29892,
577,
591,
11187,
1906,
937,
29889,
13,
18884,
396,
10949,
591,
505,
731,
278,
716,
1243,
2286,
363,
278,
13,
18884,
396,
937,
931,
29892,
591,
674,
1074,
278,
2030,
5177,
29889,
13,
18884,
269,
3844,
29889,
649,
29918,
15501,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
18884,
269,
3844,
29889,
657,
29918,
15501,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
893,
29885,
29918,
1025,
29918,
6272,
29897,
13,
13,
18884,
396,
450,
14013,
29918,
842,
3653,
297,
8636,
29889,
2272,
674,
2767,
301,
1117,
17370,
29892,
13,
18884,
396,
577,
591,
11187,
278,
5717,
393,
1906,
674,
1207,
2086,
29889,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
5288,
29918,
1025,
29918,
6272,
29897,
13,
18884,
301,
314,
29889,
5504,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
13,
18884,
411,
3925,
481,
855,
24581,
29898,
1688,
1707,
29918,
1767,
1125,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
842,
29898,
13,
462,
4706,
19997,
1852,
5510,
29889,
23335,
29898,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
5574,
29892,
11813,
29922,
5574,
29897,
13,
462,
1678,
1723,
13,
13,
18884,
411,
3925,
481,
855,
24581,
29898,
1688,
1707,
29918,
1767,
1125,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
842,
29898,
13,
462,
4706,
19997,
1852,
5510,
29889,
23335,
29898,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
11813,
29922,
5574,
29897,
13,
462,
1678,
1723,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
1293,
14013,
4128,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
2892,
29918,
4645,
1159,
408,
301,
314,
29901,
13,
18884,
396,
450,
14013,
29918,
1761,
3653,
297,
8636,
29889,
2272,
5717,
679,
29918,
16519,
287,
29918,
29880,
1117,
294,
29892,
607,
5717,
301,
314,
29889,
657,
29918,
2220,
580,
13,
18884,
396,
773,
1146,
9857,
4138,
2983,
313,
1366,
740,
338,
2000,
871,
304,
9801,
694,
3682,
338,
12005,
29897,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
18884,
396,
8084,
591,
1246,
679,
29918,
16519,
287,
29918,
2892,
29918,
20944,
3285,
607,
5717,
301,
314,
29889,
657,
29918,
2220,
29918,
13305,
13,
18884,
396,
313,
1366,
3639,
278,
11187,
287,
716,
8829,
24987,
4390,
29897,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
5288,
29918,
1482,
29918,
6272,
29897,
13,
18884,
396,
501,
8485,
304,
6084,
263,
14013,
491,
1024,
13,
18884,
7408,
353,
2897,
29889,
21813,
3366,
29928,
1799,
29918,
2287,
29925,
3927,
29979,
13780,
29918,
1254,
10461,
3108,
13,
13,
18884,
396,
10050,
29899,
7249,
19200,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
1761,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
3126,
29922,
8824,
876,
13,
18884,
396,
5399,
393,
599,
21168,
301,
1117,
17370,
526,
2198,
13,
18884,
363,
14013,
29918,
978,
297,
14013,
29918,
7529,
29889,
657,
29918,
16519,
287,
29918,
29880,
1117,
17370,
29898,
339,
2035,
29922,
5574,
1125,
13,
462,
1678,
1583,
29889,
9294,
797,
29898,
29888,
29908,
29912,
2892,
29918,
978,
17671,
1962,
29897,
13,
13,
18884,
396,
4663,
19200,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
1761,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
3126,
29922,
5574,
876,
13,
18884,
396,
5399,
393,
599,
21168,
301,
1117,
17370,
526,
2198,
13,
18884,
599,
29918,
29880,
2232,
29918,
4905,
353,
4390,
29889,
18132,
14182,
29876,
1642,
7122,
29898,
4905,
876,
13,
18884,
363,
14013,
29918,
978,
297,
14013,
29918,
7529,
29889,
657,
29918,
16519,
287,
29918,
29880,
1117,
17370,
29898,
339,
2035,
29922,
5574,
1125,
13,
462,
1678,
1583,
29889,
9294,
797,
29898,
2892,
29918,
978,
29892,
599,
29918,
29880,
2232,
29918,
4905,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
2577,
23136,
310,
1269,
14013,
740,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
893,
29885,
29918,
4645,
1159,
408,
269,
3844,
29892,
320,
13,
462,
1678,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
2892,
29918,
4645,
1159,
408,
301,
314,
29901,
13,
13,
18884,
396,
14013,
29918,
20944,
580,
740,
297,
270,
893,
29914,
3372,
800,
29914,
2892,
29918,
7529,
29889,
2272,
5717,
679,
29918,
16519,
287,
29918,
29880,
1117,
17370,
580,
13,
18884,
396,
259,
313,
4716,
871,
947,
1887,
6931,
29897,
13,
18884,
396,
769,
372,
5717,
679,
29918,
16519,
287,
29918,
2892,
29918,
20944,
580,
373,
1432,
14013,
29892,
13,
18884,
396,
259,
607,
5717,
14013,
29918,
4645,
29889,
657,
29918,
2220,
580,
313,
6194,
2000,
304,
9801,
694,
3682,
338,
12005,
29897,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
18884,
396,
259,
769,
5717,
14013,
29918,
4645,
29889,
657,
29918,
2220,
29918,
13305,
580,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
5288,
29918,
1482,
29918,
6272,
29897,
13,
13,
18884,
396,
14402,
29901,
10032,
5614,
1478,
5427,
13,
13,
18884,
396,
10050,
29899,
7249,
29892,
694,
14013,
1024,
6790,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
20944,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
2892,
29918,
978,
29922,
8516,
29892,
4390,
29922,
8824,
876,
13,
18884,
396,
5399,
393,
599,
21168,
301,
1117,
17370,
526,
2198,
13,
18884,
1962,
353,
6634,
29876,
1642,
7122,
29898,
4905,
29897,
13,
18884,
363,
14013,
29918,
978,
297,
14013,
29918,
7529,
29889,
657,
29918,
16519,
287,
29918,
29880,
1117,
17370,
29898,
339,
2035,
29922,
5574,
1125,
13,
462,
1678,
1583,
29889,
9294,
797,
29898,
2892,
29918,
978,
29892,
1962,
29897,
13,
13,
18884,
396,
10050,
29899,
7249,
29892,
14013,
1024,
6790,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
20944,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
2892,
29918,
978,
29922,
29888,
29908,
29881,
893,
29899,
29912,
19190,
17671,
4390,
29922,
8824,
876,
13,
18884,
1962,
353,
6634,
29876,
1642,
7122,
29898,
4905,
29897,
13,
18884,
1583,
29889,
9294,
797,
29898,
29888,
29908,
29881,
893,
29899,
29912,
19190,
17671,
1962,
29897,
13,
13,
18884,
396,
4663,
29892,
694,
14013,
1024,
6790,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
20944,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
2892,
29918,
978,
29922,
8516,
29892,
4390,
29922,
5574,
876,
13,
18884,
396,
5399,
393,
599,
21168,
301,
1117,
17370,
526,
2198,
13,
18884,
599,
29918,
29880,
2232,
29918,
4905,
353,
4390,
29889,
18132,
14182,
29876,
1642,
7122,
29898,
4905,
876,
13,
18884,
363,
14013,
29918,
978,
297,
14013,
29918,
7529,
29889,
657,
29918,
16519,
287,
29918,
29880,
1117,
17370,
29898,
339,
2035,
29922,
5574,
1125,
13,
462,
1678,
1583,
29889,
9294,
797,
29898,
2892,
29918,
978,
29892,
599,
29918,
29880,
2232,
29918,
4905,
29897,
13,
13,
18884,
396,
4663,
29892,
14013,
1024,
6790,
13,
18884,
411,
8868,
545,
855,
29881,
449,
580,
408,
1962,
29901,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
20944,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
2892,
29918,
978,
29922,
29888,
29908,
29881,
893,
29899,
29912,
19190,
17671,
4390,
29922,
5574,
876,
13,
18884,
599,
29918,
29880,
2232,
29918,
4905,
353,
4390,
29889,
18132,
14182,
29876,
1642,
7122,
29898,
4905,
876,
13,
18884,
1583,
29889,
9294,
797,
29898,
29888,
29908,
29881,
893,
29899,
29912,
19190,
17671,
599,
29918,
29880,
2232,
29918,
4905,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
6422,
313,
842,
29897,
5923,
14013,
4128,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
893,
29885,
29918,
4645,
1159,
408,
269,
3844,
29892,
320,
13,
462,
1678,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
2892,
29918,
4645,
1159,
408,
301,
314,
29901,
13,
18884,
396,
26297,
278,
1021,
982,
591,
1258,
363,
1653,
716,
1828,
2038,
29889,
13,
18884,
396,
3824,
591,
11187,
278,
5886,
29924,
1828,
3787,
13,
18884,
269,
3844,
29889,
657,
29918,
15501,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
893,
29885,
29918,
1482,
29918,
6272,
29897,
13,
18884,
269,
3844,
29889,
649,
29918,
15501,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
18884,
396,
8084,
591,
11187,
278,
14013,
3132,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
5288,
29918,
1482,
29918,
6272,
29897,
13,
18884,
301,
314,
29889,
5504,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
13,
18884,
396,
360,
719,
1065,
769,
1855,
313,
17640,
287,
29897,
2655,
13,
18884,
411,
3925,
481,
855,
24581,
29898,
1688,
1707,
29918,
1767,
29906,
1125,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
842,
29898,
13,
462,
4706,
19997,
1852,
5510,
29889,
23335,
29898,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
5574,
29892,
11813,
29922,
5574,
29897,
13,
462,
1678,
1723,
13,
18884,
411,
3925,
481,
855,
24581,
29898,
1688,
1707,
29918,
1767,
29906,
1125,
13,
462,
1678,
14013,
29918,
7529,
29889,
2892,
29918,
842,
29898,
13,
462,
4706,
19997,
1852,
5510,
29889,
23335,
29898,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
11813,
29922,
5574,
29897,
13,
462,
1678,
1723,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
6422,
14013,
5177,
6087,
297,
5886,
29924,
3787,
1090,
395,
29928,
1799,
29918,
2287,
29925,
3927,
29979,
13780,
29918,
1254,
10461,
29914,
20944,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
893,
29885,
29918,
4645,
1159,
408,
269,
3844,
29892,
320,
13,
462,
1678,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
2892,
29918,
4645,
1159,
408,
301,
314,
29892,
320,
13,
462,
1678,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
267,
29918,
4645,
1159,
408,
831,
29892,
320,
13,
462,
1678,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
3844,
29918,
4645,
1159,
408,
1560,
29892,
320,
13,
462,
1678,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
842,
29918,
893,
29885,
29918,
20944,
1159,
408,
731,
29918,
893,
29885,
29901,
13,
18884,
396,
960,
591,
1246,
14013,
29918,
5504,
297,
270,
893,
29914,
3372,
800,
29914,
2892,
29918,
7529,
29889,
2272,
29892,
13,
18884,
396,
259,
372,
5717,
679,
29918,
2997,
29918,
2892,
29918,
20944,
580,
13,
18884,
396,
259,
313,
2997,
6931,
871,
29897,
13,
18884,
396,
14013,
29918,
5504,
580,
769,
5717,
731,
29918,
893,
29885,
29918,
20944,
3285,
13,
18884,
396,
259,
607,
591,
11187,
287,
2038,
964,
731,
29918,
893,
29885,
13,
18884,
731,
29918,
893,
29885,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
396,
694,
25621,
13,
13,
18884,
269,
3844,
29889,
649,
29918,
15501,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
13,
18884,
396,
679,
29918,
295,
20291,
29918,
29734,
580,
5717,
831,
29889,
2783,
29581,
29918,
295,
20291,
29918,
7247,
580,
13,
18884,
831,
29918,
29734,
29918,
19024,
353,
426,
13,
462,
1678,
376,
15951,
5709,
1115,
426,
13,
462,
4706,
376,
25602,
1115,
376,
1366,
29899,
20965,
29899,
267,
29899,
29734,
29899,
1767,
29899,
26807,
29899,
3166,
29899,
29881,
893,
29899,
1688,
29899,
3372,
800,
29908,
13,
462,
1678,
500,
13,
18884,
500,
13,
18884,
831,
29889,
2783,
29581,
29918,
295,
20291,
29918,
7247,
353,
11187,
29889,
19095,
293,
18680,
29898,
13,
462,
1678,
736,
29918,
1767,
29922,
267,
29918,
29734,
29918,
19024,
13,
18884,
1723,
13,
13,
18884,
396,
679,
29918,
6406,
29918,
331,
2234,
580,
5717,
1560,
29889,
657,
29918,
19024,
29918,
1767,
580,
3196,
3064,
29901,
13,
18884,
396,
448,
5386,
2669,
1274,
312,
7035,
313,
3126,
1347,
29897,
13,
18884,
396,
448,
4113,
4876,
7035,
13,
18884,
396,
671,
2625,
29918,
15987,
746,
7863,
2999,
1819,
13,
18884,
5386,
29918,
5509,
29918,
562,
312,
29918,
19024,
353,
4390,
29889,
29881,
17204,
29898,
13,
462,
1678,
8853,
4645,
29918,
5269,
1115,
376,
1366,
29899,
20965,
29899,
5269,
29899,
26807,
29899,
3166,
29899,
29881,
893,
29899,
1688,
29899,
3372,
800,
9092,
13,
18884,
1723,
13,
18884,
4113,
29918,
5269,
29918,
19024,
353,
376,
1366,
29899,
20965,
29899,
5269,
29899,
1761,
29899,
26807,
29899,
3166,
29899,
29881,
893,
29899,
1688,
29899,
3372,
800,
29908,
13,
13,
18884,
396,
9788,
29892,
591,
1246,
731,
29918,
893,
29885,
29918,
20944,
13,
18884,
396,
607,
5717,
269,
3844,
29889,
649,
29918,
15501,
580,
13,
18884,
396,
313,
17640,
287,
2038,
467,
13,
13,
18884,
396,
960,
591,
884,
2767,
21168,
301,
1117,
17370,
29901,
13,
18884,
396,
679,
29918,
16519,
287,
29918,
29880,
1117,
17370,
580,
1599,
301,
314,
29918,
4645,
29889,
657,
29918,
2220,
580,
13,
18884,
396,
679,
29918,
16519,
287,
29918,
2892,
29918,
20944,
580,
1599,
301,
314,
29918,
4645,
29889,
657,
29918,
2220,
29918,
13305,
580,
13,
18884,
396,
731,
29918,
16519,
287,
29918,
2892,
29918,
20944,
580,
1599,
301,
314,
29918,
4645,
29889,
5504,
29918,
2220,
29918,
13305,
580,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
5288,
29918,
1482,
29918,
6272,
29897,
13,
18884,
301,
314,
29889,
5504,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
13,
18884,
396,
450,
740,
1560,
29889,
657,
29918,
19024,
29918,
1767,
580,
1818,
736,
2712,
297,
278,
1492,
1797,
13,
18884,
396,
830,
29899,
17640,
372,
1434,
1269,
1246,
13,
18884,
4876,
29918,
2975,
29918,
15987,
353,
518,
13,
462,
1678,
1583,
3032,
6312,
29918,
19024,
29898,
3608,
29918,
5509,
29918,
562,
312,
29918,
19024,
511,
13,
462,
1678,
1583,
3032,
6312,
29918,
19024,
29898,
6406,
29918,
5269,
29918,
19024,
511,
13,
18884,
4514,
13,
13,
18884,
396,
360,
719,
1065,
29892,
769,
1855,
313,
17640,
287,
29897,
2655,
13,
18884,
1560,
29889,
657,
29918,
19024,
29918,
1767,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
29922,
5269,
29918,
2975,
29918,
15987,
29897,
13,
18884,
14013,
29918,
7529,
29889,
2892,
29918,
5504,
29898,
13,
462,
1678,
19997,
1852,
5510,
29889,
23335,
29898,
5504,
29918,
16519,
287,
29922,
8824,
29892,
15589,
29918,
3389,
29922,
5574,
29892,
4889,
29922,
5574,
29892,
11813,
29922,
5574,
29897,
13,
18884,
1723,
13,
18884,
1560,
29889,
657,
29918,
19024,
29918,
1767,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
29922,
5269,
29918,
2975,
29918,
15987,
29897,
13,
18884,
14013,
29918,
7529,
29889,
2892,
29918,
5504,
29898,
13,
462,
1678,
19997,
1852,
5510,
29889,
23335,
29898,
5504,
29918,
16519,
287,
29922,
8824,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
4889,
29922,
5574,
29892,
11813,
29922,
5574,
29897,
13,
18884,
1723,
13,
18884,
1560,
29889,
657,
29918,
19024,
29918,
1767,
353,
11187,
29889,
19095,
293,
18680,
29898,
2975,
29918,
15987,
29922,
5269,
29918,
2975,
29918,
15987,
29897,
13,
18884,
14013,
29918,
7529,
29889,
2892,
29918,
5504,
29898,
13,
462,
1678,
19997,
1852,
5510,
29889,
23335,
29898,
5504,
29918,
16519,
287,
29922,
5574,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
4889,
29922,
5574,
29892,
11813,
29922,
5574,
29897,
13,
18884,
1723,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
2525,
842,
14013,
4128,
29908,
1125,
13,
9651,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
893,
29885,
29918,
4645,
1159,
408,
269,
3844,
29892,
320,
13,
462,
1678,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
2892,
29918,
7529,
29889,
2892,
29918,
4645,
1159,
408,
301,
314,
29901,
13,
18884,
396,
960,
445,
338,
451,
263,
15589,
1065,
29892,
14013,
29918,
842,
297,
8636,
29889,
2272,
13,
18884,
396,
674,
2767,
278,
5886,
29924,
937,
29892,
577,
591,
11187,
1906,
937,
29889,
13,
18884,
396,
10949,
591,
505,
731,
278,
716,
1243,
2286,
363,
278,
13,
18884,
396,
937,
931,
29892,
591,
674,
1074,
278,
2030,
5177,
29889,
13,
18884,
269,
3844,
29889,
649,
29918,
15501,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
18884,
396,
671,
6483,
8552,
1244,
304,
5557,
5217,
5858,
515,
1641,
17667,
13,
18884,
269,
3844,
29889,
657,
29918,
15501,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8552,
29889,
24535,
8552,
29898,
893,
29885,
29918,
1482,
29918,
6272,
876,
13,
13,
18884,
396,
450,
14013,
29918,
842,
3653,
297,
8636,
29889,
2272,
674,
2767,
301,
1117,
17370,
29892,
13,
18884,
396,
577,
591,
11187,
278,
5717,
393,
1906,
674,
1207,
2086,
29889,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
18884,
396,
671,
2625,
2779,
1244,
29892,
322,
3509,
278,
5177,
363,
1269,
14013,
29892,
577,
393,
7374,
267,
2113,
29915,
29873,
367,
17667,
13,
18884,
301,
314,
29889,
657,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
13,
462,
1678,
2625,
29918,
15987,
11759,
8552,
29889,
24535,
8552,
29898,
5288,
29918,
1482,
29918,
6272,
29897,
363,
432,
297,
679,
29918,
16519,
287,
29918,
29880,
1117,
17370,
580,
29962,
13,
18884,
1723,
13,
18884,
301,
314,
29889,
5504,
29918,
2220,
29918,
13305,
353,
11187,
29889,
19095,
293,
18680,
29898,
2457,
29918,
1767,
29922,
8516,
29897,
13,
13,
18884,
14013,
29918,
7529,
29889,
2892,
29918,
348,
842,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
5574,
29892,
11813,
29922,
5574,
876,
13,
18884,
14013,
29918,
7529,
29889,
2892,
29918,
348,
842,
4197,
1402,
1852,
5510,
29889,
23335,
29898,
978,
29922,
1688,
1707,
29918,
978,
29892,
15589,
29918,
3389,
29922,
8824,
29892,
11813,
29922,
5574,
876,
13,
13,
1678,
822,
1243,
29918,
13604,
29918,
3372,
800,
29918,
29926,
4659,
29898,
1311,
1125,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
26857,
6375,
304,
14013,
746,
421,
2962,
292,
29918,
29926,
4659,
29918,
333,
29952,
338,
421,
8516,
29952,
29908,
1125,
13,
9651,
1583,
3032,
1688,
29918,
13604,
29918,
3372,
800,
29918,
29926,
4659,
29898,
8516,
29892,
29871,
29900,
29892,
29871,
29906,
29897,
13,
13,
4706,
411,
1583,
29889,
1491,
3057,
703,
26857,
6222,
8955,
292,
746,
421,
2962,
292,
29918,
29926,
4659,
29918,
333,
29952,
338,
451,
421,
8516,
29952,
29908,
1125,
13,
9651,
1583,
3032,
1688,
29918,
13604,
29918,
3372,
800,
29918,
29926,
4659,
703,
29844,
613,
29871,
29896,
29892,
29871,
29900,
29897,
13,
13,
1678,
822,
903,
1688,
29918,
13604,
29918,
3372,
800,
29918,
29926,
4659,
29898,
1311,
29892,
13,
462,
462,
4706,
6257,
29918,
29926,
4659,
29918,
333,
29901,
851,
29892,
13,
462,
462,
4706,
3806,
29918,
29926,
4659,
29918,
28041,
29888,
417,
397,
29918,
29883,
4293,
29901,
938,
29892,
13,
462,
462,
4706,
3806,
29918,
3044,
29879,
29918,
29885,
9957,
914,
29918,
29883,
4293,
29901,
938,
1125,
13,
4706,
18074,
29879,
29918,
29885,
9957,
914,
353,
11187,
29889,
19095,
293,
18680,
580,
13,
4706,
411,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
13604,
29889,
29903,
29984,
17061,
9957,
914,
613,
736,
29918,
1767,
29922,
3044,
29879,
29918,
29885,
9957,
914,
511,
320,
13,
18884,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
13604,
29889,
1761,
29918,
1482,
29918,
28041,
29888,
417,
397,
29918,
29926,
2905,
1338,
4968,
320,
13,
18884,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
13604,
29889,
29926,
4659,
29918,
28041,
29888,
417,
397,
1159,
408,
8955,
29918,
28041,
29888,
417,
397,
29892,
320,
13,
18884,
11187,
29889,
5041,
703,
29881,
893,
29889,
3372,
800,
29889,
13604,
29889,
3712,
2105,
29918,
20756,
29908,
1125,
13,
9651,
6389,
353,
1852,
5510,
29889,
23335,
29898,
13506,
543,
7810,
29916,
613,
13,
462,
462,
418,
1353,
29918,
974,
29918,
13604,
29922,
29945,
29892,
13,
462,
462,
418,
6257,
29918,
29926,
4659,
29918,
333,
29922,
2962,
292,
29918,
29926,
4659,
29918,
333,
29892,
13,
462,
462,
418,
4982,
29918,
333,
29922,
8516,
29897,
13,
9651,
4959,
29889,
29926,
4659,
4197,
1402,
6389,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
9684,
29918,
29926,
4659,
29918,
28041,
29888,
417,
397,
29918,
29883,
4293,
29892,
7431,
29898,
29926,
4659,
29918,
28041,
29888,
417,
397,
29889,
17640,
29918,
29883,
4293,
876,
13,
9651,
1583,
29889,
9294,
9843,
29898,
9684,
29918,
3044,
29879,
29918,
29885,
9957,
914,
29918,
29883,
4293,
29892,
7431,
29898,
3044,
29879,
29918,
29885,
9957,
914,
29889,
17640,
29918,
29883,
4293,
876,
13,
13,
1678,
822,
903,
6312,
29918,
893,
29885,
29918,
6272,
29898,
1311,
29892,
321,
1125,
13,
4706,
9995,
13,
4706,
22029,
701,
278,
5886,
29924,
5177,
278,
982,
15540,
3639,
372,
29889,
13,
4706,
584,
3207,
9657,
321,
29901,
278,
9657,
6943,
278,
5177,
304,
3577,
701,
322,
3638,
304,
5886,
29924,
3787,
472,
13,
9651,
395,
29928,
1799,
29918,
2287,
29925,
3927,
29979,
13780,
29918,
1254,
10461,
29914,
20944,
29889,
13,
4706,
9995,
13,
4706,
396,
7865,
881,
367,
7797,
1891,
4663,
13,
4706,
269,
3844,
29918,
29872,
353,
8853,
9329,
1115,
8853,
1170,
1115,
376,
20944,
613,
376,
1917,
1115,
4390,
29889,
29881,
17204,
29898,
29872,
21345,
13,
4706,
736,
269,
3844,
29918,
29872,
13,
13,
1678,
822,
903,
6312,
29918,
2892,
29918,
6272,
29898,
1311,
29892,
321,
1125,
13,
4706,
9995,
13,
4706,
22029,
701,
278,
14013,
5177,
313,
29874,
29889,
29895,
29889,
29874,
29889,
740,
5285,
29897,
278,
982,
15540,
3639,
372,
29889,
13,
4706,
584,
3207,
9657,
321,
29901,
278,
9657,
6943,
278,
14013,
740,
29915,
29879,
5177,
3651,
13,
4706,
9995,
13,
4706,
396,
7865,
881,
367,
263,
9657,
313,
12256,
263,
1347,
29897,
13,
4706,
301,
314,
29918,
29872,
353,
8853,
18649,
1115,
8853,
10444,
1849,
1115,
321,
930,
13,
4706,
736,
301,
314,
29918,
29872,
13,
13,
1678,
822,
903,
6312,
29918,
19024,
29898,
1311,
29892,
659,
1125,
13,
4706,
9995,
13,
4706,
22029,
701,
278,
7035,
278,
982,
15540,
3639,
372,
29889,
13,
4706,
9995,
13,
4706,
736,
8853,
28459,
1231,
1115,
659,
29913,
13,
13,
13,
29992,
1688,
8513,
29889,
27925,
13,
1990,
4321,
7094,
800,
23573,
362,
29898,
3057,
9534,
11713,
29924,
861,
262,
1125,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
731,
3373,
2385,
29898,
25932,
1125,
13,
4706,
1067,
29879,
29889,
932,
353,
10480,
287,
7717,
6004,
580,
13,
4706,
1067,
29879,
29889,
932,
29889,
2962,
580,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
734,
279,
6767,
2385,
29898,
25932,
1125,
13,
4706,
1067,
29879,
29889,
932,
29889,
845,
329,
3204,
580,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
12782,
29889,
842,
29918,
2917,
29898,
29933,
2707,
300,
3991,
29889,
18267,
29897,
13,
4706,
1583,
29889,
29879,
29941,
29918,
1688,
29918,
21454,
353,
679,
29918,
6272,
703,
29928,
1799,
29918,
29903,
29941,
29918,
7838,
7077,
2544,
29918,
18267,
1159,
13,
4706,
1583,
29889,
3174,
29918,
1688,
29918,
21454,
353,
679,
29918,
6272,
703,
29928,
1799,
29918,
10749,
29918,
7838,
7077,
2544,
29918,
18267,
1159,
13,
4706,
1583,
29889,
29879,
29941,
29918,
1688,
29918,
7241,
486,
1973,
29918,
21454,
353,
679,
29918,
6272,
703,
29928,
1799,
29918,
29903,
29941,
29918,
7838,
7077,
2544,
29918,
18267,
29918,
3738,
12188,
11499,
29903,
1159,
13,
4706,
1583,
29889,
3174,
29918,
1688,
29918,
7241,
486,
1973,
29918,
21454,
353,
679,
29918,
6272,
703,
29928,
1799,
29918,
10749,
29918,
7838,
7077,
2544,
29918,
18267,
29918,
3738,
12188,
11499,
29903,
1159,
13,
13,
1678,
822,
1243,
29918,
3198,
449,
29918,
3372,
800,
29898,
1311,
1125,
13,
4706,
411,
5712,
29918,
21454,
29918,
2917,
29898,
29933,
2707,
300,
3991,
29889,
18267,
1125,
13,
9651,
363,
1634,
10123,
29892,
5713,
15546,
29918,
21454,
297,
17288,
5612,
10123,
1839,
10467,
7464,
13,
462,
462,
632,
1583,
29889,
29879,
29941,
29918,
1688,
29918,
7241,
486,
1973,
29918,
21454,
511,
13,
462,
462,
9651,
313,
5612,
10123,
1839,
29887,
6814,
7464,
13,
462,
462,
632,
1583,
29889,
3174,
29918,
1688,
29918,
7241,
486,
1973,
29918,
21454,
4638,
29901,
13,
18884,
11846,
29892,
11846,
29918,
25118,
353,
1583,
3032,
3258,
29918,
16718,
29898,
3445,
10123,
29892,
5713,
15546,
29918,
21454,
29897,
13,
18884,
6389,
353,
1852,
5510,
29889,
23335,
29898,
3445,
10123,
29922,
3445,
10123,
29889,
978,
29892,
6611,
11759,
29888,
29915,
16293,
793,
19248,
16718,
29918,
25118,
1836,
29912,
16718,
3366,
3259,
3108,
29913,
11287,
13,
18884,
24808,
29918,
4882,
353,
24808,
29889,
6565,
1598,
4197,
1402,
6389,
467,
5014,
29918,
8149,
580,
13,
18884,
363,
1820,
297,
6389,
29889,
8149,
29901,
13,
462,
1678,
1583,
29889,
9294,
797,
29898,
1989,
29892,
24808,
29918,
4882,
29897,
13,
18884,
24808,
29889,
15941,
4197,
1402,
6389,
467,
5014,
29918,
8149,
580,
13,
18884,
24808,
29918,
4882,
353,
24808,
29889,
6565,
1598,
4197,
1402,
6389,
467,
5014,
29918,
8149,
580,
13,
18884,
363,
1820,
297,
6389,
29889,
8149,
29901,
13,
462,
1678,
363,
934,
297,
24808,
29918,
4882,
29961,
1989,
5387,
13,
462,
4706,
1583,
29889,
9294,
3624,
29898,
8824,
29892,
934,
1839,
16718,
29918,
3198,
449,
11287,
13,
462,
4706,
1583,
29889,
9294,
3624,
29898,
8824,
29892,
934,
1839,
10054,
29918,
3198,
449,
11287,
13,
18884,
24808,
29889,
2528,
4197,
1402,
6389,
467,
5014,
29918,
8149,
580,
13,
18884,
24808,
29918,
4882,
353,
24808,
29889,
6565,
1598,
4197,
1402,
6389,
467,
5014,
29918,
8149,
580,
13,
18884,
363,
1820,
297,
6389,
29889,
8149,
29901,
13,
462,
1678,
363,
934,
297,
24808,
29918,
4882,
29961,
1989,
5387,
13,
462,
4706,
1583,
29889,
9294,
3624,
29898,
5574,
29892,
934,
1839,
16718,
29918,
3198,
449,
11287,
13,
462,
4706,
1583,
29889,
9294,
3624,
29898,
5574,
29892,
934,
1839,
10054,
29918,
3198,
449,
11287,
13,
18884,
1583,
29889,
8143,
29918,
16718,
29898,
3445,
10123,
29892,
11846,
29918,
25118,
29897,
13,
13,
1678,
822,
903,
3258,
29918,
16718,
29898,
1311,
29892,
1634,
10123,
29901,
10088,
10123,
29892,
5713,
486,
1973,
29918,
21454,
29901,
851,
1125,
13,
4706,
10938,
353,
1634,
10123,
29889,
12925,
29918,
11010,
13,
4706,
11846,
29918,
25118,
353,
851,
29898,
25118,
29889,
25118,
29946,
3101,
13,
4706,
934,
29918,
25118,
353,
851,
29898,
25118,
29889,
25118,
29946,
3101,
13,
4706,
4613,
29918,
5415,
353,
1583,
29889,
9009,
29918,
1445,
29918,
10685,
29898,
13,
9651,
285,
29908,
29912,
11010,
29913,
597,
29912,
7241,
486,
1973,
29918,
21454,
6822,
1688,
29918,
16773,
29918,
4993,
29918,
1272,
29914,
29900,
613,
13,
9651,
1634,
10123,
29892,
13,
9651,
934,
29918,
25118,
29892,
13,
9651,
11846,
29918,
25118,
29922,
16718,
29918,
25118,
29892,
13,
4706,
1723,
13,
4706,
934,
29918,
3259,
353,
4613,
29918,
5415,
29889,
3126,
1839,
3259,
2033,
13,
4706,
11846,
29918,
3259,
353,
12865,
29918,
517,
29918,
3259,
29918,
4830,
29898,
12673,
29889,
12673,
29889,
329,
29883,
3707,
3101,
13,
4706,
4613,
29918,
5415,
353,
1583,
29889,
649,
29918,
16718,
29898,
3445,
10123,
29892,
13,
462,
462,
259,
11846,
29918,
25118,
29892,
13,
462,
462,
259,
17288,
1445,
29918,
25118,
29892,
934,
29918,
3259,
29892,
376,
27888,
1430,
1660,
1159,
1402,
13,
462,
462,
259,
11846,
29918,
3259,
29897,
13,
4706,
736,
4613,
29918,
5415,
29889,
3126,
29892,
11846,
29918,
25118,
13,
13,
13,
29992,
1688,
8513,
29889,
27925,
13,
1990,
4321,
7898,
27487,
5596,
261,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
9995,
3057,
278,
5356,
27487,
5596,
261,
770,
3342,
297,
270,
893,
29914,
3372,
800,
29914,
344,
1037,
1372,
29889,
2272,
15945,
29908,
13,
1678,
732,
11014,
29918,
265,
29918,
3018,
1730,
13,
1678,
822,
1243,
29918,
3198,
29918,
344,
1037,
1372,
29898,
1311,
1125,
13,
4706,
9995,
5596,
393,
278,
1857,
7408,
29915,
29879,
22183,
1372,
14670,
304,
3806,
1819,
15945,
29908,
13,
4706,
22183,
1372,
29889,
3198,
29918,
344,
1037,
1372,
4197,
1402,
1852,
5510,
29889,
23335,
3101,
13,
13,
1678,
732,
11014,
29918,
265,
29918,
3018,
1730,
13,
1678,
822,
1243,
29918,
6341,
29918,
19190,
29918,
344,
1037,
1372,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
450,
5356,
27487,
5596,
261,
881,
451,
1243,
22950,
393,
526,
451,
297,
278,
1051,
29901,
13,
4706,
2906,
29892,
380,
6751,
29892,
13465,
29892,
11859,
29889,
13,
4706,
9995,
13,
4706,
269,
353,
5356,
27487,
5596,
261,
29898,
19190,
2433,
29879,
2770,
787,
14762,
314,
5037,
446,
10633,
1495,
13,
4706,
269,
29889,
3389,
580,
13,
13,
1678,
732,
11014,
29918,
265,
29918,
3018,
1730,
13,
1678,
822,
1243,
29918,
20965,
29918,
344,
1037,
1372,
29898,
1311,
1125,
13,
4706,
9995,
5596,
393,
263,
7865,
2392,
338,
10425,
746,
385,
443,
15380,
2164,
4876,
338,
6087,
297,
263,
7035,
1213,
15945,
13,
4706,
269,
353,
5356,
27487,
5596,
261,
29898,
19190,
2433,
3359,
1495,
13,
4706,
396,
6811,
2426,
278,
4876,
1746,
7625,
515,
15087,
689,
13,
4706,
269,
29889,
5269,
353,
6024,
29876,
787,
1947,
2033,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
1125,
13,
9651,
269,
29889,
3389,
580,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
tests/test_handlers_item_builder.py | MacHu-GWU/afwf_aws_tools-project | 6 | 59329 | <reponame>MacHu-GWU/afwf_aws_tools-project<filename>tests/test_handlers_item_builder.py
# -*- coding: utf-8 -*-
import pytest
from workflow.workflow3 import Workflow3
from aws_tools.handlers.item_builder import item_builders
class TestItemBuilders:
wf = Workflow3()
def setup_method(self):
self.wf = Workflow3()
def test_select_aws_profile_as_default(self):
item_builders.select_aws_profile_as_default(
wf=self.wf,
aws_profile_list=["a", "b", "c"],
set_default_aws_profile_handler_id="handler_id"
)
def test_select_aws_profile_for_mfa(self):
item_builders.select_aws_profile_for_mfa(
wf=self.wf,
aws_profile_list=["a", "b", "c"],
execute_mfa_auth_handler_id="handler_id"
)
def test_set_aws_profile_as_aws_tools_default(self):
item_builders.set_aws_profile_as_aws_tools_default(
wf=self.wf,
aws_profile_list=["a", "b", "c"],
set_aws_profile_as_aws_tools_default_handler_id="handler_id"
)
if __name__ == "__main__":
import os
basename = os.path.basename(__file__)
pytest.main([basename, "-s", "--tb=native"])
| [
1,
529,
276,
1112,
420,
29958,
15735,
29950,
29884,
29899,
29954,
29956,
29965,
29914,
2142,
29893,
29888,
29918,
10467,
29918,
8504,
29899,
4836,
29966,
9507,
29958,
21150,
29914,
1688,
29918,
3179,
9306,
29918,
667,
29918,
16409,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
11451,
1688,
13,
3166,
27321,
29889,
1287,
1731,
29941,
1053,
5244,
1731,
29941,
13,
3166,
25879,
29918,
8504,
29889,
3179,
9306,
29889,
667,
29918,
16409,
1053,
2944,
29918,
4282,
414,
13,
13,
13,
1990,
4321,
2001,
8893,
414,
29901,
13,
1678,
281,
29888,
353,
5244,
1731,
29941,
580,
13,
13,
1678,
822,
6230,
29918,
5696,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29893,
29888,
353,
5244,
1731,
29941,
580,
13,
13,
1678,
822,
1243,
29918,
2622,
29918,
10467,
29918,
10185,
29918,
294,
29918,
4381,
29898,
1311,
1125,
13,
4706,
2944,
29918,
4282,
414,
29889,
2622,
29918,
10467,
29918,
10185,
29918,
294,
29918,
4381,
29898,
13,
9651,
281,
29888,
29922,
1311,
29889,
29893,
29888,
29892,
13,
9651,
25879,
29918,
10185,
29918,
1761,
29922,
3366,
29874,
613,
376,
29890,
613,
376,
29883,
12436,
13,
9651,
731,
29918,
4381,
29918,
10467,
29918,
10185,
29918,
13789,
29918,
333,
543,
13789,
29918,
333,
29908,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
2622,
29918,
10467,
29918,
10185,
29918,
1454,
29918,
29885,
5444,
29898,
1311,
1125,
13,
4706,
2944,
29918,
4282,
414,
29889,
2622,
29918,
10467,
29918,
10185,
29918,
1454,
29918,
29885,
5444,
29898,
13,
9651,
281,
29888,
29922,
1311,
29889,
29893,
29888,
29892,
13,
9651,
25879,
29918,
10185,
29918,
1761,
29922,
3366,
29874,
613,
376,
29890,
613,
376,
29883,
12436,
13,
9651,
6222,
29918,
29885,
5444,
29918,
5150,
29918,
13789,
29918,
333,
543,
13789,
29918,
333,
29908,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
842,
29918,
10467,
29918,
10185,
29918,
294,
29918,
10467,
29918,
8504,
29918,
4381,
29898,
1311,
1125,
13,
4706,
2944,
29918,
4282,
414,
29889,
842,
29918,
10467,
29918,
10185,
29918,
294,
29918,
10467,
29918,
8504,
29918,
4381,
29898,
13,
9651,
281,
29888,
29922,
1311,
29889,
29893,
29888,
29892,
13,
9651,
25879,
29918,
10185,
29918,
1761,
29922,
3366,
29874,
613,
376,
29890,
613,
376,
29883,
12436,
13,
9651,
731,
29918,
10467,
29918,
10185,
29918,
294,
29918,
10467,
29918,
8504,
29918,
4381,
29918,
13789,
29918,
333,
543,
13789,
29918,
333,
29908,
13,
4706,
1723,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1053,
2897,
13,
13,
1678,
2362,
3871,
353,
2897,
29889,
2084,
29889,
6500,
3871,
22168,
1445,
1649,
29897,
13,
1678,
11451,
1688,
29889,
3396,
4197,
6500,
3871,
29892,
11663,
29879,
613,
376,
489,
22625,
29922,
11487,
20068,
13,
2
] |
kirppuauth/urls.py | Glowieh/kirppu | 0 | 156190 | <filename>kirppuauth/urls.py
from django.conf.urls import patterns, include, url
urlpatterns = patterns('kirppuauth.views',
url(r'^addclerk$', 'register_clerk', name='kirppu_register_clerk'),
)
| [
1,
529,
9507,
29958,
14166,
407,
29884,
5150,
29914,
26045,
29889,
2272,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
15038,
29892,
3160,
29892,
3142,
13,
13,
2271,
11037,
29879,
353,
15038,
877,
14166,
407,
29884,
5150,
29889,
7406,
742,
13,
1678,
3142,
29898,
29878,
29915,
29985,
1202,
695,
5968,
29938,
742,
525,
9573,
29918,
695,
5968,
742,
1024,
2433,
14166,
407,
29884,
29918,
9573,
29918,
695,
5968,
5477,
13,
29897,
13,
2
] |
praw_memories/prawdebug.py | elnuno/praw_memories | 1 | 50951 | """Debugging facilities for PRAW-based projects."""
import datetime
import json
import logging
import time
import praw
import prawcore
| [
1,
9995,
11862,
3460,
23330,
363,
349,
4717,
29956,
29899,
6707,
9279,
1213,
15945,
13,
13,
5215,
12865,
13,
5215,
4390,
13,
5215,
12183,
13,
5215,
931,
13,
13,
5215,
20467,
13,
5215,
20467,
3221,
13,
2
] |
Intro_to_Recommendation_Systems/api.py | NunoEdgarGFlowHub/sciblog_support | 668 | 174503 | import cherrypy
from paste.translogger import TransLogger
from flask import Flask, request, abort, jsonify, make_response
import json
import os
from utils import decode_string
from DeepRecommender.reco_encoder.data import input_layer_api, input_layer
from DeepRecommender.reco_encoder.model import model
import torch
from torch.autograd import Variable
from parameters import *
# app
app = Flask(__name__)
BAD_REQUEST = 400
STATUS_OK = 200
NOT_FOUND = 404
SERVER_ERROR = 500
@app.errorhandler(BAD_REQUEST)
def bad_request(error):
return make_response(jsonify({'error': 'Bad request'}), BAD_REQUEST)
@app.errorhandler(NOT_FOUND)
def not_found(error):
return make_response(jsonify({'error': 'Not found'}), NOT_FOUND)
@app.errorhandler(SERVER_ERROR)
def server_error(error):
return make_response(jsonify({'error': 'Server Internal Error'}), SERVER_ERROR)
def run_server():
# Enable WSGI access logging via Paste
app_logged = TransLogger(app)
# Mount the WSGI callable object (app) on the root directory
cherrypy.tree.graft(app_logged, '/')
# Set the configuration of the web server
cherrypy.config.update({
'engine.autoreload_on': True,
'log.screen': True,
'log.access_file': 'access.log',
'log.error_file': "cherrypy.log",
'server.socket_port': 5000,
'server.socket_host': '0.0.0.0',
'server.thread_pool': 50, # 10 is default
})
# Start the CherryPy WSGI web server
cherrypy.engine.start()
cherrypy.engine.block()
def load_model_weights(model_architecture, weights_path):
if os.path.isfile(weights_path):
cherrypy.log("CHERRYPYLOG Loading model from: {}".format(weights_path))
model_architecture.load_state_dict(torch.load(weights_path))
else:
raise ValueError("Path not found {}".format(weights_path))
def load_recommender(vector_dim, hidden, activation, dropout, weights_path):
rencoder_api = model.AutoEncoder(layer_sizes=[vector_dim] + [int(l) for l in hidden.split(',')],
nl_type=activation,
is_constrained=False,
dp_drop_prob=dropout,
last_layer_activations=False)
load_model_weights(rencoder_api, weights_path)
rencoder_api.eval()
rencoder_api = rencoder_api.cuda()
return rencoder_api
def load_train_data(data_dir):
params = dict()
params['batch_size'] = 1
params['data_dir'] = data_dir
params['major'] = 'users'
params['itemIdInd'] = 1
params['userIdInd'] = 0
cherrypy.log("CHERRYPYLOG Loading training data")
data_layer = input_layer.UserItemRecDataProvider(params=params)
return data_layer
def manage_query(dict_query, data_layer):
params = dict()
params['batch_size'] = 1
params['data_dict'] = dict_query
params['major'] = 'users'
params['itemIdInd'] = 1
params['userIdInd'] = 0
data_api = input_layer_api.UserItemRecDataProviderAPI(params=params,
user_id_map=data_layer.userIdMap,
item_id_map=data_layer.itemIdMap)
cherrypy.log("CHERRYPYLOG Input data: {}".format(data_api.data))
data_api.src_data = data_layer.data
return data_api
def evaluate_model(rencoder_api, data_api):
result = dict()
for i, ((out, src), major_ind) in enumerate(data_api.iterate_one_epoch_eval(for_inf=True)):
inputs = Variable(src.cuda().to_dense())
targets_np = out.to_dense().numpy()[0, :]
non_zeros = targets_np.nonzero()[0].tolist()
outputs = rencoder_api(inputs).cpu().data.numpy()[0, :]
for ind in non_zeros:
result[ind] = outputs[ind]
return result
@app.route("/")
def index():
return "Yeah, yeah, I highly recommend it"
@app.route("/recommend", methods=['POST'])
def recommend():
if not request.is_json:
abort(BAD_REQUEST)
dict_query = request.get_json()
dict_query = dict((decode_string(k), decode_string(v)) for k, v in dict_query.items())
data_api = manage_query(dict_query, data_layer)
result = evaluate_model(rencoder_api, data_api)
cherrypy.log("CHERRYPYLOG Result: {}".format(result))
result = dict((str(k), str(v)) for k,v in result.items())
return make_response(jsonify(result), STATUS_OK)
#Load data and model as global variables
data_layer = load_train_data(TRAIN)
rencoder_api = load_recommender(data_layer.vector_dim, HIDDEN, ACTIVATION, DROPOUT, MODEL_PATH)
if __name__ == "__main__":
run_server()
| [
1,
1053,
14954,
719,
2272,
13,
3166,
11417,
29889,
3286,
21707,
1053,
4103,
16363,
13,
3166,
29784,
1053,
2379,
1278,
29892,
2009,
29892,
27450,
29892,
4390,
1598,
29892,
1207,
29918,
5327,
13,
5215,
4390,
13,
5215,
2897,
13,
3166,
3667,
29879,
1053,
21822,
29918,
1807,
13,
3166,
21784,
1123,
2055,
1581,
29889,
276,
1111,
29918,
3977,
6119,
29889,
1272,
1053,
1881,
29918,
13148,
29918,
2754,
29892,
1881,
29918,
13148,
13,
3166,
21784,
1123,
2055,
1581,
29889,
276,
1111,
29918,
3977,
6119,
29889,
4299,
1053,
1904,
13,
5215,
4842,
305,
13,
3166,
4842,
305,
29889,
1300,
468,
3665,
1053,
28736,
29871,
13,
3166,
4128,
1053,
334,
13,
13,
13,
29937,
623,
13,
932,
353,
2379,
1278,
22168,
978,
1649,
29897,
13,
29933,
3035,
29918,
16244,
353,
29871,
29946,
29900,
29900,
13,
27047,
29918,
8949,
353,
29871,
29906,
29900,
29900,
13,
12256,
29918,
5800,
18783,
353,
29871,
29946,
29900,
29946,
13,
18603,
29918,
11432,
353,
29871,
29945,
29900,
29900,
13,
13,
13,
29992,
932,
29889,
2704,
13789,
29898,
29933,
3035,
29918,
16244,
29897,
13,
1753,
4319,
29918,
3827,
29898,
2704,
1125,
13,
1678,
736,
1207,
29918,
5327,
29898,
3126,
1598,
3319,
29915,
2704,
2396,
525,
22050,
2009,
29915,
9594,
350,
3035,
29918,
16244,
29897,
13,
13,
13,
29992,
932,
29889,
2704,
13789,
29898,
12256,
29918,
5800,
18783,
29897,
13,
1753,
451,
29918,
11940,
29898,
2704,
1125,
13,
1678,
736,
1207,
29918,
5327,
29898,
3126,
1598,
3319,
29915,
2704,
2396,
525,
3664,
1476,
29915,
9594,
6058,
29918,
5800,
18783,
29897,
13,
13,
13,
29992,
932,
29889,
2704,
13789,
29898,
18603,
29918,
11432,
29897,
13,
1753,
1923,
29918,
2704,
29898,
2704,
1125,
13,
1678,
736,
1207,
29918,
5327,
29898,
3126,
1598,
3319,
29915,
2704,
2396,
525,
6004,
512,
1890,
4829,
29915,
9594,
26996,
5348,
29918,
11432,
29897,
13,
13,
13,
1753,
1065,
29918,
2974,
7295,
13,
1678,
396,
1174,
519,
399,
26016,
29902,
2130,
12183,
3025,
349,
4350,
13,
1678,
623,
29918,
1188,
3192,
353,
4103,
16363,
29898,
932,
29897,
13,
13,
1678,
396,
8040,
278,
399,
26016,
29902,
1246,
519,
1203,
313,
932,
29897,
373,
278,
3876,
3884,
13,
1678,
14954,
719,
2272,
29889,
8336,
29889,
3874,
615,
29898,
932,
29918,
1188,
3192,
29892,
8207,
1495,
13,
13,
1678,
396,
3789,
278,
5285,
310,
278,
1856,
1923,
13,
1678,
14954,
719,
2272,
29889,
2917,
29889,
5504,
3319,
13,
4706,
525,
10599,
29889,
8309,
7078,
328,
29918,
265,
2396,
5852,
29892,
13,
4706,
525,
1188,
29889,
10525,
2396,
5852,
29892,
13,
4706,
525,
1188,
29889,
5943,
29918,
1445,
2396,
525,
5943,
29889,
1188,
742,
13,
4706,
525,
1188,
29889,
2704,
29918,
1445,
2396,
376,
4630,
719,
2272,
29889,
1188,
613,
13,
4706,
525,
2974,
29889,
11514,
29918,
637,
2396,
29871,
29945,
29900,
29900,
29900,
29892,
13,
4706,
525,
2974,
29889,
11514,
29918,
3069,
2396,
525,
29900,
29889,
29900,
29889,
29900,
29889,
29900,
742,
13,
4706,
525,
2974,
29889,
7097,
29918,
10109,
2396,
29871,
29945,
29900,
29892,
396,
29871,
29896,
29900,
338,
2322,
13,
1678,
5615,
13,
13,
1678,
396,
7370,
278,
23816,
719,
19737,
399,
26016,
29902,
1856,
1923,
13,
1678,
14954,
719,
2272,
29889,
10599,
29889,
2962,
580,
13,
1678,
14954,
719,
2272,
29889,
10599,
29889,
1271,
580,
13,
13,
13,
1753,
2254,
29918,
4299,
29918,
705,
5861,
29898,
4299,
29918,
25428,
29892,
18177,
29918,
2084,
1125,
13,
1678,
565,
2897,
29889,
2084,
29889,
275,
1445,
29898,
705,
5861,
29918,
2084,
1125,
13,
4706,
14954,
719,
2272,
29889,
1188,
703,
3210,
1001,
13207,
20055,
14480,
4309,
9382,
1904,
515,
29901,
6571,
1642,
4830,
29898,
705,
5861,
29918,
2084,
876,
13,
4706,
1904,
29918,
25428,
29889,
1359,
29918,
3859,
29918,
8977,
29898,
7345,
305,
29889,
1359,
29898,
705,
5861,
29918,
2084,
876,
13,
1678,
1683,
29901,
13,
4706,
12020,
7865,
2392,
703,
2605,
451,
1476,
6571,
1642,
4830,
29898,
705,
5861,
29918,
2084,
876,
13,
13,
308,
13,
1753,
2254,
29918,
276,
2055,
1581,
29898,
8111,
29918,
6229,
29892,
7934,
29892,
26229,
29892,
5768,
449,
29892,
18177,
29918,
2084,
1125,
13,
13,
1678,
364,
3977,
6119,
29918,
2754,
353,
1904,
29889,
12300,
8566,
6119,
29898,
13148,
29918,
29879,
7093,
11759,
8111,
29918,
6229,
29962,
718,
518,
524,
29898,
29880,
29897,
363,
301,
297,
7934,
29889,
5451,
29317,
1495,
1402,
13,
462,
1669,
302,
29880,
29918,
1853,
29922,
11236,
362,
29892,
13,
462,
1669,
338,
29918,
3075,
22042,
29922,
8824,
29892,
13,
462,
1669,
270,
29886,
29918,
8865,
29918,
22795,
29922,
8865,
449,
29892,
13,
462,
1669,
1833,
29918,
13148,
29918,
11236,
800,
29922,
8824,
29897,
13,
1678,
2254,
29918,
4299,
29918,
705,
5861,
29898,
1267,
29883,
6119,
29918,
2754,
29892,
18177,
29918,
2084,
29897,
29871,
13,
1678,
364,
3977,
6119,
29918,
2754,
29889,
14513,
580,
13,
1678,
364,
3977,
6119,
29918,
2754,
353,
364,
3977,
6119,
29918,
2754,
29889,
29883,
6191,
580,
13,
1678,
736,
364,
3977,
6119,
29918,
2754,
13,
13,
308,
13,
1753,
2254,
29918,
14968,
29918,
1272,
29898,
1272,
29918,
3972,
1125,
268,
13,
1678,
8636,
353,
9657,
580,
13,
1678,
8636,
1839,
16175,
29918,
2311,
2033,
353,
29871,
29896,
13,
1678,
8636,
1839,
1272,
29918,
3972,
2033,
353,
29871,
848,
29918,
3972,
13,
1678,
8636,
1839,
21355,
2033,
353,
525,
7193,
29915,
13,
1678,
8636,
1839,
667,
1204,
2568,
2033,
353,
29871,
29896,
13,
1678,
8636,
1839,
29721,
2568,
2033,
353,
29871,
29900,
13,
1678,
14954,
719,
2272,
29889,
1188,
703,
3210,
1001,
13207,
20055,
14480,
4309,
9382,
6694,
848,
1159,
13,
1678,
848,
29918,
13148,
353,
1881,
29918,
13148,
29889,
2659,
2001,
4789,
1469,
6980,
29898,
7529,
29922,
7529,
29897,
13,
1678,
736,
848,
29918,
13148,
13,
13,
13,
1753,
10933,
29918,
1972,
29898,
8977,
29918,
1972,
29892,
848,
29918,
13148,
1125,
13,
1678,
8636,
353,
9657,
580,
13,
1678,
8636,
1839,
16175,
29918,
2311,
2033,
353,
29871,
29896,
13,
1678,
8636,
1839,
1272,
29918,
8977,
2033,
353,
29871,
9657,
29918,
1972,
13,
1678,
8636,
1839,
21355,
2033,
353,
525,
7193,
29915,
13,
1678,
8636,
1839,
667,
1204,
2568,
2033,
353,
29871,
29896,
13,
1678,
8636,
1839,
29721,
2568,
2033,
353,
29871,
29900,
13,
1678,
848,
29918,
2754,
353,
1881,
29918,
13148,
29918,
2754,
29889,
2659,
2001,
4789,
1469,
6980,
8787,
29898,
7529,
29922,
7529,
29892,
13,
462,
462,
462,
4706,
1404,
29918,
333,
29918,
1958,
29922,
1272,
29918,
13148,
29889,
29721,
3388,
29892,
13,
462,
462,
462,
4706,
2944,
29918,
333,
29918,
1958,
29922,
1272,
29918,
13148,
29889,
667,
1204,
3388,
29897,
13,
1678,
14954,
719,
2272,
29889,
1188,
703,
3210,
1001,
13207,
20055,
14480,
10567,
848,
29901,
6571,
1642,
4830,
29898,
1272,
29918,
2754,
29889,
1272,
876,
13,
1678,
848,
29918,
2754,
29889,
4351,
29918,
1272,
353,
848,
29918,
13148,
29889,
1272,
13,
1678,
736,
848,
29918,
2754,
13,
13,
13,
1753,
14707,
29918,
4299,
29898,
1267,
29883,
6119,
29918,
2754,
29892,
848,
29918,
2754,
1125,
1678,
13,
1678,
1121,
353,
9657,
580,
13,
1678,
363,
474,
29892,
5135,
449,
29892,
4765,
511,
4655,
29918,
513,
29897,
297,
26985,
29898,
1272,
29918,
2754,
29889,
1524,
403,
29918,
650,
29918,
1022,
2878,
29918,
14513,
29898,
1454,
29918,
7192,
29922,
5574,
22164,
13,
4706,
10970,
353,
28736,
29898,
4351,
29889,
29883,
6191,
2141,
517,
29918,
1145,
344,
3101,
13,
4706,
22525,
29918,
9302,
353,
714,
29889,
517,
29918,
1145,
344,
2141,
23749,
580,
29961,
29900,
29892,
584,
29962,
13,
4706,
1661,
29918,
3298,
359,
353,
22525,
29918,
9302,
29889,
5464,
9171,
580,
29961,
29900,
1822,
25027,
391,
580,
29871,
13,
4706,
14391,
353,
364,
3977,
6119,
29918,
2754,
29898,
2080,
29879,
467,
21970,
2141,
1272,
29889,
23749,
580,
29961,
29900,
29892,
584,
29962,
13,
4706,
363,
1399,
297,
1661,
29918,
3298,
359,
29901,
13,
9651,
1121,
29961,
513,
29962,
353,
14391,
29961,
513,
29962,
13,
1678,
736,
1121,
13,
13,
268,
13,
29992,
932,
29889,
13134,
11974,
1159,
13,
1753,
2380,
7295,
13,
1678,
736,
376,
29979,
29872,
801,
29892,
21915,
29892,
306,
10712,
6907,
372,
29908,
13,
13,
13,
29992,
932,
29889,
13134,
11974,
276,
2055,
355,
613,
3519,
29922,
1839,
5438,
11287,
13,
1753,
6907,
7295,
13,
1678,
565,
451,
2009,
29889,
275,
29918,
3126,
29901,
13,
4706,
27450,
29898,
29933,
3035,
29918,
16244,
29897,
13,
1678,
9657,
29918,
1972,
353,
2009,
29889,
657,
29918,
3126,
580,
13,
1678,
9657,
29918,
1972,
353,
9657,
3552,
13808,
29918,
1807,
29898,
29895,
511,
21822,
29918,
1807,
29898,
29894,
876,
363,
413,
29892,
325,
297,
9657,
29918,
1972,
29889,
7076,
3101,
13,
1678,
848,
29918,
2754,
353,
10933,
29918,
1972,
29898,
8977,
29918,
1972,
29892,
848,
29918,
13148,
29897,
13,
1678,
1121,
353,
14707,
29918,
4299,
29898,
1267,
29883,
6119,
29918,
2754,
29892,
848,
29918,
2754,
29897,
13,
1678,
14954,
719,
2272,
29889,
1188,
703,
3210,
1001,
13207,
20055,
14480,
7867,
29901,
6571,
1642,
4830,
29898,
2914,
876,
13,
1678,
1121,
353,
9657,
3552,
710,
29898,
29895,
511,
851,
29898,
29894,
876,
363,
413,
29892,
29894,
297,
1121,
29889,
7076,
3101,
13,
1678,
736,
1207,
29918,
5327,
29898,
3126,
1598,
29898,
2914,
511,
6850,
1299,
3308,
29918,
8949,
29897,
13,
13,
259,
13,
29937,
5896,
848,
322,
1904,
408,
5534,
3651,
13,
1272,
29918,
13148,
353,
2254,
29918,
14968,
29918,
1272,
29898,
29911,
4717,
1177,
29897,
13,
1267,
29883,
6119,
29918,
2754,
353,
2254,
29918,
276,
2055,
1581,
29898,
1272,
29918,
13148,
29889,
8111,
29918,
6229,
29892,
379,
1367,
29928,
1430,
29892,
319,
1783,
5667,
8098,
29892,
360,
29366,
12015,
29892,
16999,
2287,
29931,
29918,
10145,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1065,
29918,
2974,
580,
13,
268,
13,
268,
2
] |
downstream/tinypersons/tests/test_onnx/__init__.py | bwconrad/solo-learn | 326 | 174461 | <filename>downstream/tinypersons/tests/test_onnx/__init__.py
from .utils import ort_validate
__all__ = ['ort_validate']
| [
1,
529,
9507,
29958,
3204,
5461,
29914,
29873,
262,
1478,
414,
787,
29914,
21150,
29914,
1688,
29918,
3409,
29916,
29914,
1649,
2344,
26914,
2272,
13,
3166,
869,
13239,
1053,
20289,
29918,
15480,
13,
13,
1649,
497,
1649,
353,
6024,
441,
29918,
15480,
2033,
13,
2
] |
access_restricted/tests/test_fields_get.py | trojikman/access-addons | 0 | 91915 | from odoo.tests.common import TransactionCase, tagged
from odoo.addons.base.models.res_users import name_selection_groups
@tagged("at_install", "post_install")
class TestFieldsGet(TransactionCase):
def test_base(self):
demo_user = self.env.ref("base.user_demo")
group_erp_manager = self.env.ref("base.group_erp_manager")
group_system = self.env.ref("base.group_system")
demo_user.write({"groups_id": [(3, group_system.id)]})
group_system.write({"users": [(3, demo_user.id)]})
demo_user.write({"groups_id": [(4, group_erp_manager.id)]})
view_users_form = self.env.ref("base.view_users_form")
res = (
self.env["res.users"]
.with_user(demo_user)
.with_context({"uid": demo_user.id})
.load_views([[view_users_form.id, "form"]])
)
sel_groups = name_selection_groups([group_erp_manager.id])
res = self.env["res.users"].with_user(demo_user).fields_get()
self.assertTrue(res.get(sel_groups))
demo_user.write({"groups_id": [(4, group_system.id)]})
sel_groups = name_selection_groups([group_erp_manager.id, group_system.id])
res = self.env["res.users"].with_user(demo_user).fields_get()
self.assertTrue(res.get(sel_groups))
| [
1,
515,
288,
1867,
29877,
29889,
21150,
29889,
9435,
1053,
4103,
2467,
8259,
29892,
4055,
3192,
13,
13,
3166,
288,
1867,
29877,
29889,
1202,
787,
29889,
3188,
29889,
9794,
29889,
690,
29918,
7193,
1053,
1024,
29918,
21731,
29918,
13155,
13,
13,
13,
29992,
4039,
3192,
703,
271,
29918,
6252,
613,
376,
2490,
29918,
6252,
1159,
13,
1990,
4321,
14256,
2577,
29898,
12460,
8259,
1125,
13,
1678,
822,
1243,
29918,
3188,
29898,
1311,
1125,
13,
4706,
13455,
29918,
1792,
353,
1583,
29889,
6272,
29889,
999,
703,
3188,
29889,
1792,
29918,
17482,
1159,
13,
4706,
2318,
29918,
261,
29886,
29918,
12847,
353,
1583,
29889,
6272,
29889,
999,
703,
3188,
29889,
2972,
29918,
261,
29886,
29918,
12847,
1159,
13,
4706,
2318,
29918,
5205,
353,
1583,
29889,
6272,
29889,
999,
703,
3188,
29889,
2972,
29918,
5205,
1159,
13,
13,
4706,
13455,
29918,
1792,
29889,
3539,
3319,
29908,
13155,
29918,
333,
1115,
17288,
29941,
29892,
2318,
29918,
5205,
29889,
333,
4638,
1800,
13,
4706,
2318,
29918,
5205,
29889,
3539,
3319,
29908,
7193,
1115,
17288,
29941,
29892,
13455,
29918,
1792,
29889,
333,
4638,
1800,
13,
4706,
13455,
29918,
1792,
29889,
3539,
3319,
29908,
13155,
29918,
333,
1115,
17288,
29946,
29892,
2318,
29918,
261,
29886,
29918,
12847,
29889,
333,
4638,
1800,
13,
13,
4706,
1776,
29918,
7193,
29918,
689,
353,
1583,
29889,
6272,
29889,
999,
703,
3188,
29889,
1493,
29918,
7193,
29918,
689,
1159,
13,
4706,
620,
353,
313,
13,
9651,
1583,
29889,
6272,
3366,
690,
29889,
7193,
3108,
13,
9651,
869,
2541,
29918,
1792,
29898,
17482,
29918,
1792,
29897,
13,
9651,
869,
2541,
29918,
4703,
3319,
29908,
5416,
1115,
13455,
29918,
1792,
29889,
333,
1800,
13,
9651,
869,
1359,
29918,
7406,
4197,
29961,
1493,
29918,
7193,
29918,
689,
29889,
333,
29892,
376,
689,
3108,
2314,
13,
4706,
1723,
13,
13,
4706,
5535,
29918,
13155,
353,
1024,
29918,
21731,
29918,
13155,
4197,
2972,
29918,
261,
29886,
29918,
12847,
29889,
333,
2314,
13,
4706,
620,
353,
1583,
29889,
6272,
3366,
690,
29889,
7193,
16862,
2541,
29918,
1792,
29898,
17482,
29918,
1792,
467,
9621,
29918,
657,
580,
13,
4706,
1583,
29889,
9294,
5574,
29898,
690,
29889,
657,
29898,
2838,
29918,
13155,
876,
13,
13,
4706,
13455,
29918,
1792,
29889,
3539,
3319,
29908,
13155,
29918,
333,
1115,
17288,
29946,
29892,
2318,
29918,
5205,
29889,
333,
4638,
1800,
13,
13,
4706,
5535,
29918,
13155,
353,
1024,
29918,
21731,
29918,
13155,
4197,
2972,
29918,
261,
29886,
29918,
12847,
29889,
333,
29892,
2318,
29918,
5205,
29889,
333,
2314,
13,
4706,
620,
353,
1583,
29889,
6272,
3366,
690,
29889,
7193,
16862,
2541,
29918,
1792,
29898,
17482,
29918,
1792,
467,
9621,
29918,
657,
580,
13,
4706,
1583,
29889,
9294,
5574,
29898,
690,
29889,
657,
29898,
2838,
29918,
13155,
876,
13,
2
] |
tests/tools/test_rm.py | Vikash-Kothary/aem-cmd-python | 2 | 147959 | # coding: utf-8
from mock import patch
from httmock import urlmatch, HTTMock
from nose.tools import eq_
from acmd import tool_repo, Server
from test_utils.compat import StringIO
@urlmatch(netloc='localhost:4502', method='DELETE')
def service_rm(url, request):
return {
'content': '',
'status_code': 204
}
@patch('sys.stdout', new_callable=StringIO)
@patch('sys.stderr', new_callable=StringIO)
def test_rm(stderr, stdout):
with HTTMock(service_rm):
tool = tool_repo.get_tool('rm')
server = Server('localhost')
status = tool.execute(server, ['rm', '/content/path/node'])
eq_(0, status)
eq_('/content/path/node\n', stdout.getvalue())
@patch('sys.stdout', new_callable=StringIO)
@patch('sys.stderr', new_callable=StringIO)
@patch('sys.stdin', new=StringIO('/content/path/node\n'))
def test_rm_stdin(stderr, stdout):
with HTTMock(service_rm):
tool = tool_repo.get_tool('rm')
server = Server('localhost')
status = tool.execute(server, ['rm'])
eq_(0, status)
eq_('/content/path/node\n', stdout.getvalue())
| [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
3166,
11187,
1053,
13261,
13,
3166,
1143,
17640,
1053,
3142,
4352,
29892,
3154,
29911,
18680,
13,
3166,
26414,
29889,
8504,
1053,
11594,
29918,
13,
13,
3166,
1274,
3487,
1053,
5780,
29918,
20095,
29892,
5656,
13,
13,
3166,
1243,
29918,
13239,
29889,
12667,
1053,
1714,
5971,
13,
13,
29992,
2271,
4352,
29898,
1212,
2029,
2433,
7640,
29901,
29946,
29945,
29900,
29906,
742,
1158,
2433,
2287,
18476,
1495,
13,
1753,
2669,
29918,
1758,
29898,
2271,
29892,
2009,
1125,
13,
1678,
736,
426,
13,
4706,
525,
3051,
2396,
15516,
13,
4706,
525,
4882,
29918,
401,
2396,
29871,
29906,
29900,
29946,
13,
1678,
500,
13,
13,
13,
29992,
5041,
877,
9675,
29889,
25393,
742,
716,
29918,
4804,
519,
29922,
1231,
5971,
29897,
13,
29992,
5041,
877,
9675,
29889,
303,
20405,
742,
716,
29918,
4804,
519,
29922,
1231,
5971,
29897,
13,
1753,
1243,
29918,
1758,
29898,
303,
20405,
29892,
27591,
1125,
13,
1678,
411,
3154,
29911,
18680,
29898,
5509,
29918,
1758,
1125,
13,
4706,
5780,
353,
5780,
29918,
20095,
29889,
657,
29918,
10154,
877,
1758,
1495,
13,
4706,
1923,
353,
5656,
877,
7640,
1495,
13,
4706,
4660,
353,
5780,
29889,
7978,
29898,
2974,
29892,
6024,
1758,
742,
8207,
3051,
29914,
2084,
29914,
3177,
11287,
13,
4706,
11594,
23538,
29900,
29892,
4660,
29897,
13,
4706,
11594,
29918,
11219,
3051,
29914,
2084,
29914,
3177,
29905,
29876,
742,
27591,
29889,
657,
1767,
3101,
13,
13,
13,
29992,
5041,
877,
9675,
29889,
25393,
742,
716,
29918,
4804,
519,
29922,
1231,
5971,
29897,
13,
29992,
5041,
877,
9675,
29889,
303,
20405,
742,
716,
29918,
4804,
519,
29922,
1231,
5971,
29897,
13,
29992,
5041,
877,
9675,
29889,
4172,
262,
742,
716,
29922,
1231,
5971,
11219,
3051,
29914,
2084,
29914,
3177,
29905,
29876,
8785,
13,
1753,
1243,
29918,
1758,
29918,
4172,
262,
29898,
303,
20405,
29892,
27591,
1125,
13,
1678,
411,
3154,
29911,
18680,
29898,
5509,
29918,
1758,
1125,
13,
4706,
5780,
353,
5780,
29918,
20095,
29889,
657,
29918,
10154,
877,
1758,
1495,
13,
4706,
1923,
353,
5656,
877,
7640,
1495,
13,
4706,
4660,
353,
5780,
29889,
7978,
29898,
2974,
29892,
6024,
1758,
11287,
13,
4706,
11594,
23538,
29900,
29892,
4660,
29897,
13,
4706,
11594,
29918,
11219,
3051,
29914,
2084,
29914,
3177,
29905,
29876,
742,
27591,
29889,
657,
1767,
3101,
13,
2
] |
data_visualizer.py | austinmdillow/natural-selection-simulator | 0 | 94648 | from environment import Environment
from species import Species
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg') # <-- THIS MAKES IT FAST!
class DataVisualizer():
def __init__(self, env):
self.environments = [env]
plt.ion()
plt.show()
print("Init of Data Visualizer complete")
def plotPopulations(self):
plt.clf()
plt.plot(self.environments[0].population_log[Species.Rabbit])
#plt.draw()
plt.pause(0.0001)
| [
1,
515,
5177,
1053,
16738,
13,
3166,
6606,
1053,
21807,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
22889,
13,
2922,
17357,
29889,
1509,
877,
29911,
29895,
29909,
1505,
1495,
396,
529,
489,
3446,
3235,
14861,
29968,
2890,
13315,
13515,
1254,
29991,
13,
1990,
3630,
16227,
3950,
7295,
13,
29871,
822,
4770,
2344,
12035,
1311,
29892,
8829,
1125,
13,
1678,
1583,
29889,
21813,
1860,
353,
518,
6272,
29962,
13,
1678,
14770,
29889,
291,
580,
13,
1678,
14770,
29889,
4294,
580,
13,
1678,
1596,
703,
6644,
310,
3630,
9249,
3950,
4866,
1159,
13,
13,
29871,
822,
6492,
12310,
8250,
29898,
1311,
1125,
13,
1678,
14770,
29889,
695,
29888,
580,
13,
1678,
14770,
29889,
5317,
29898,
1311,
29889,
21813,
1860,
29961,
29900,
1822,
7323,
2785,
29918,
1188,
29961,
10649,
2478,
29889,
29934,
370,
2966,
2314,
13,
1678,
396,
572,
29873,
29889,
4012,
580,
13,
1678,
14770,
29889,
29886,
1071,
29898,
29900,
29889,
29900,
29900,
29900,
29896,
29897,
13,
268,
2
] |
lk_lambdex/traceback_.py | likianta/lk-lambdex | 0 | 67171 | from textwrap import dedent
from textwrap import indent
def format_exception(
direct_caller_frame,
lambdex_definition_place,
traceback_obj,
source_code_block,
) -> str:
# caller: see `.main.lambdex.<vars:code>.<code_template>.<except_clause>`.
def _show_place(filename, lineno):
return '{}:{}'.format(filename, lineno)
# pycharm console font color: https://blog.csdn.net/mouday/article/details
# /79152994
return dedent('''
An error is raised when executing lambda function within lk-lambdex.
Here's the detailed infomation:
Lambdex definition start:
{lambdex_definition_place_head}
Lambdex definition body:
{lambdex_definition_place_body}
\033[37m{source_lines}\033[0m
-> value: \033[36m{value}\033[0m
-> error: \033[31m{error_info}!\033[0m
Direct caller:
{direct_caller_place}
''').format(
lambdex_definition_place_head=_show_place(
lambdex_definition_place[0],
lambdex_definition_place[1],
),
lambdex_definition_place_body=_show_place(
lambdex_definition_place[0],
lambdex_definition_place[1] + traceback_obj.tb_lineno - 6,
),
source_lines=_traceback_source_lines(
source_code_block,
lineno=traceback_obj.tb_lineno - 6,
indentation=12
),
value={k: v for k, v in traceback_obj.tb_frame.f_locals.items()
if k not in ('e', 'sys', 'somefunc')},
error_info=_pretty_error(
text=traceback_obj.tb_frame.f_locals['e'].__repr__(),
indentation=8 + 10
# (8 + 10): 8 is the indentation of '-> error', 10 is the string
# length of '-> error: ', (8 + 10) is made for aligning the
# succeeding lines to look more pretty.
),
direct_caller_place=_show_place(
direct_caller_frame.f_code.co_filename,
direct_caller_frame.f_lineno
),
).strip()
def _traceback_source_lines(
source_code_block,
lineno, charno=-1, indentation=0,
extend_lineno_range=True, lineno_range=3
) -> str:
if extend_lineno_range:
temp = []
while lineno >= 0 and len(temp) < lineno_range:
line = source_code_block[lineno]
if line.strip():
temp.append(line)
lineno -= 1
source_lines = dedent('\n'.join(reversed(temp)))
else:
source_lines = source_code_block[lineno].strip()
if charno == -1:
return indent(source_lines, ' ' * indentation).lstrip()
else:
return indent(source_lines, ' ' * indentation).lstrip() + '\n' \
+ ' ' * indentation + ' ' * charno + '^'
def _pretty_error(text: str, indentation: int):
if '\\n' not in text:
return text
lines = text.split('\\n')
return '\n'.join(
(
lines[0],
indent(dedent('\n'.join(lines[1:])), ' ' * indentation)
)
)
| [
1,
515,
1426,
6312,
1053,
28262,
296,
13,
3166,
1426,
6312,
1053,
29536,
13,
13,
13,
1753,
3402,
29918,
11739,
29898,
13,
4706,
1513,
29918,
4804,
261,
29918,
2557,
29892,
13,
4706,
301,
1117,
1390,
29918,
16553,
29918,
6689,
29892,
13,
4706,
9637,
1627,
29918,
5415,
29892,
13,
4706,
2752,
29918,
401,
29918,
1271,
29892,
13,
29897,
1599,
851,
29901,
13,
1678,
396,
24959,
29901,
1074,
5050,
3396,
29889,
29880,
1117,
1390,
19423,
16908,
29901,
401,
15513,
29966,
401,
29918,
6886,
15513,
29966,
19499,
29918,
16398,
1509,
29958,
1412,
13,
268,
13,
1678,
822,
903,
4294,
29918,
6689,
29898,
9507,
29892,
6276,
8154,
1125,
13,
4706,
736,
22372,
6177,
8875,
4286,
4830,
29898,
9507,
29892,
6276,
8154,
29897,
13,
268,
13,
1678,
396,
282,
3376,
2817,
2991,
4079,
2927,
29901,
2045,
597,
7312,
29889,
2395,
5200,
29889,
1212,
29914,
29885,
2736,
388,
29914,
7914,
29914,
14144,
13,
1678,
396,
259,
847,
29955,
29929,
29896,
29945,
29906,
29929,
29929,
29946,
13,
1678,
736,
28262,
296,
877,
4907,
13,
4706,
530,
1059,
338,
10425,
746,
14012,
14013,
740,
2629,
301,
29895,
29899,
29880,
1117,
1390,
29889,
13,
4706,
2266,
29915,
29879,
278,
13173,
3041,
290,
362,
29901,
13,
9651,
26832,
1390,
5023,
1369,
29901,
13,
18884,
426,
29880,
1117,
1390,
29918,
16553,
29918,
6689,
29918,
2813,
29913,
13,
9651,
26832,
1390,
5023,
3573,
29901,
13,
18884,
426,
29880,
1117,
1390,
29918,
16553,
29918,
6689,
29918,
2587,
29913,
13,
462,
1678,
320,
29900,
29941,
29941,
29961,
29941,
29955,
29885,
29912,
4993,
29918,
9012,
1012,
29900,
29941,
29941,
29961,
29900,
29885,
13,
18884,
1599,
995,
29901,
320,
29900,
29941,
29941,
29961,
29941,
29953,
29885,
29912,
1767,
1012,
29900,
29941,
29941,
29961,
29900,
29885,
13,
18884,
1599,
1059,
29901,
320,
29900,
29941,
29941,
29961,
29941,
29896,
29885,
29912,
2704,
29918,
3888,
29913,
9903,
29900,
29941,
29941,
29961,
29900,
29885,
13,
9651,
8797,
24959,
29901,
13,
18884,
426,
11851,
29918,
4804,
261,
29918,
6689,
29913,
13,
1678,
6629,
2824,
4830,
29898,
13,
4706,
301,
1117,
1390,
29918,
16553,
29918,
6689,
29918,
2813,
29922,
29918,
4294,
29918,
6689,
29898,
13,
9651,
301,
1117,
1390,
29918,
16553,
29918,
6689,
29961,
29900,
1402,
13,
9651,
301,
1117,
1390,
29918,
16553,
29918,
6689,
29961,
29896,
1402,
13,
4706,
10353,
13,
4706,
301,
1117,
1390,
29918,
16553,
29918,
6689,
29918,
2587,
29922,
29918,
4294,
29918,
6689,
29898,
13,
9651,
301,
1117,
1390,
29918,
16553,
29918,
6689,
29961,
29900,
1402,
13,
9651,
301,
1117,
1390,
29918,
16553,
29918,
6689,
29961,
29896,
29962,
718,
9637,
1627,
29918,
5415,
29889,
22625,
29918,
1915,
8154,
448,
29871,
29953,
29892,
13,
4706,
10353,
13,
4706,
2752,
29918,
9012,
29922,
29918,
15003,
1627,
29918,
4993,
29918,
9012,
29898,
13,
9651,
2752,
29918,
401,
29918,
1271,
29892,
13,
9651,
6276,
8154,
29922,
15003,
1627,
29918,
5415,
29889,
22625,
29918,
1915,
8154,
448,
29871,
29953,
29892,
13,
9651,
1399,
9233,
29922,
29896,
29906,
13,
4706,
10353,
13,
4706,
995,
3790,
29895,
29901,
325,
363,
413,
29892,
325,
297,
9637,
1627,
29918,
5415,
29889,
22625,
29918,
2557,
29889,
29888,
29918,
2997,
29879,
29889,
7076,
580,
13,
1669,
565,
413,
451,
297,
6702,
29872,
742,
525,
9675,
742,
525,
5372,
9891,
1495,
1118,
13,
4706,
1059,
29918,
3888,
29922,
29918,
1457,
4349,
29918,
2704,
29898,
13,
9651,
1426,
29922,
15003,
1627,
29918,
5415,
29889,
22625,
29918,
2557,
29889,
29888,
29918,
2997,
29879,
1839,
29872,
13359,
1649,
276,
558,
1649,
3285,
13,
9651,
1399,
9233,
29922,
29947,
718,
29871,
29896,
29900,
13,
9651,
396,
259,
313,
29947,
718,
29871,
29896,
29900,
1125,
29871,
29947,
338,
278,
1399,
9233,
310,
525,
976,
1059,
742,
29871,
29896,
29900,
338,
278,
1347,
13,
9651,
396,
539,
3309,
310,
525,
976,
1059,
29901,
13420,
313,
29947,
718,
29871,
29896,
29900,
29897,
338,
1754,
363,
7595,
292,
278,
13,
9651,
396,
539,
9269,
292,
3454,
304,
1106,
901,
5051,
29889,
13,
4706,
10353,
13,
4706,
1513,
29918,
4804,
261,
29918,
6689,
29922,
29918,
4294,
29918,
6689,
29898,
13,
9651,
1513,
29918,
4804,
261,
29918,
2557,
29889,
29888,
29918,
401,
29889,
1111,
29918,
9507,
29892,
13,
9651,
1513,
29918,
4804,
261,
29918,
2557,
29889,
29888,
29918,
1915,
8154,
13,
4706,
10353,
13,
1678,
13742,
17010,
580,
13,
13,
13,
1753,
903,
15003,
1627,
29918,
4993,
29918,
9012,
29898,
13,
4706,
2752,
29918,
401,
29918,
1271,
29892,
13,
4706,
6276,
8154,
29892,
1373,
1217,
10457,
29896,
29892,
1399,
9233,
29922,
29900,
29892,
13,
4706,
10985,
29918,
1915,
8154,
29918,
3881,
29922,
5574,
29892,
6276,
8154,
29918,
3881,
29922,
29941,
13,
29897,
1599,
851,
29901,
13,
1678,
565,
10985,
29918,
1915,
8154,
29918,
3881,
29901,
13,
4706,
5694,
353,
5159,
13,
4706,
1550,
6276,
8154,
6736,
29871,
29900,
322,
7431,
29898,
7382,
29897,
529,
6276,
8154,
29918,
3881,
29901,
13,
9651,
1196,
353,
2752,
29918,
401,
29918,
1271,
29961,
1915,
8154,
29962,
13,
9651,
565,
1196,
29889,
17010,
7295,
13,
18884,
5694,
29889,
4397,
29898,
1220,
29897,
13,
9651,
6276,
8154,
22361,
29871,
29896,
13,
4706,
2752,
29918,
9012,
353,
28262,
296,
28909,
29876,
4286,
7122,
29898,
276,
874,
287,
29898,
7382,
4961,
13,
1678,
1683,
29901,
13,
4706,
2752,
29918,
9012,
353,
2752,
29918,
401,
29918,
1271,
29961,
1915,
8154,
1822,
17010,
580,
13,
268,
13,
1678,
565,
1373,
1217,
1275,
448,
29896,
29901,
13,
4706,
736,
29536,
29898,
4993,
29918,
9012,
29892,
525,
525,
334,
1399,
9233,
467,
29880,
17010,
580,
13,
1678,
1683,
29901,
13,
4706,
736,
29536,
29898,
4993,
29918,
9012,
29892,
525,
525,
334,
1399,
9233,
467,
29880,
17010,
580,
718,
11297,
29876,
29915,
320,
13,
1669,
718,
525,
525,
334,
1399,
9233,
718,
525,
525,
334,
1373,
1217,
718,
525,
29985,
29915,
13,
13,
13,
1753,
903,
1457,
4349,
29918,
2704,
29898,
726,
29901,
851,
29892,
1399,
9233,
29901,
938,
1125,
13,
1678,
565,
525,
1966,
29876,
29915,
451,
297,
1426,
29901,
13,
4706,
736,
1426,
13,
268,
13,
1678,
3454,
353,
1426,
29889,
5451,
877,
1966,
29876,
1495,
13,
1678,
736,
11297,
29876,
4286,
7122,
29898,
13,
4706,
313,
13,
9651,
3454,
29961,
29900,
1402,
13,
9651,
29536,
29898,
7176,
296,
28909,
29876,
4286,
7122,
29898,
9012,
29961,
29896,
29901,
2314,
511,
525,
525,
334,
1399,
9233,
29897,
13,
4706,
1723,
13,
1678,
1723,
13,
2
] |
potok/tabular/utils.py | ksetherg/Chereda | 1 | 90531 | <filename>potok/tabular/utils.py
import scipy.stats as sst
import numpy as np
import pandas as pd
from potok.tabular import TabularData
class SyntheticData:
def __init__(self,
problem='regression',
pdf_train=sst.norm(loc=-1, scale=2),
pdf_test=sst.norm(loc=1, scale=3),
seed=None):
assert problem in ['regression', 'classification']
self.problem = problem
self.pdf_train = pdf_train
self.pdf_test = pdf_test
self.seed = seed
def _create_sample_(self, pdf, size):
x = pdf.rvs(size=size, random_state=self.seed)
if self.problem == 'regression':
y = 2*x + 1
if self.problem == 'classification':
y = (x > np.mean(x)).astype(int)
df = pd.DataFrame({'X': x, 'Target': y}, index=list(range(size)))
return df
def create_train(self, size=10):
df_train = self._create_sample_(self.pdf_train, size)
return TabularData(df_train, target=['Target'])
def create_test(self, size=10):
data_test = self._create_sample_(self.pdf_test, size)
return TabularData(data_test, target=['Target'])
| [
1,
529,
9507,
29958,
17765,
554,
29914,
9456,
29914,
13239,
29889,
2272,
13,
5215,
4560,
2272,
29889,
16202,
408,
269,
303,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
13,
3166,
3104,
554,
29889,
9456,
1053,
11090,
1070,
1469,
13,
13,
13,
1990,
10829,
386,
7492,
1469,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
13,
462,
1108,
2433,
276,
11476,
742,
13,
462,
13552,
29918,
14968,
29922,
29879,
303,
29889,
12324,
29898,
2029,
10457,
29896,
29892,
6287,
29922,
29906,
511,
13,
462,
13552,
29918,
1688,
29922,
29879,
303,
29889,
12324,
29898,
2029,
29922,
29896,
29892,
6287,
29922,
29941,
511,
13,
462,
16717,
29922,
8516,
1125,
13,
13,
4706,
4974,
1108,
297,
6024,
276,
11476,
742,
525,
1990,
2450,
2033,
13,
4706,
1583,
29889,
17199,
353,
1108,
13,
13,
4706,
1583,
29889,
5140,
29918,
14968,
353,
13552,
29918,
14968,
13,
4706,
1583,
29889,
5140,
29918,
1688,
353,
13552,
29918,
1688,
13,
4706,
1583,
29889,
26776,
353,
16717,
13,
13,
1678,
822,
903,
3258,
29918,
11249,
23538,
1311,
29892,
13552,
29892,
2159,
1125,
13,
4706,
921,
353,
13552,
29889,
29878,
4270,
29898,
2311,
29922,
2311,
29892,
4036,
29918,
3859,
29922,
1311,
29889,
26776,
29897,
13,
4706,
565,
1583,
29889,
17199,
1275,
525,
276,
11476,
2396,
13,
9651,
343,
353,
29871,
29906,
29930,
29916,
718,
29871,
29896,
13,
4706,
565,
1583,
29889,
17199,
1275,
525,
1990,
2450,
2396,
13,
9651,
343,
353,
313,
29916,
1405,
7442,
29889,
12676,
29898,
29916,
8106,
579,
668,
29898,
524,
29897,
13,
13,
4706,
4489,
353,
10518,
29889,
17271,
3319,
29915,
29990,
2396,
921,
29892,
525,
8667,
2396,
343,
1118,
2380,
29922,
1761,
29898,
3881,
29898,
2311,
4961,
13,
4706,
736,
4489,
13,
13,
1678,
822,
1653,
29918,
14968,
29898,
1311,
29892,
2159,
29922,
29896,
29900,
1125,
13,
4706,
4489,
29918,
14968,
353,
1583,
3032,
3258,
29918,
11249,
23538,
1311,
29889,
5140,
29918,
14968,
29892,
2159,
29897,
13,
4706,
736,
11090,
1070,
1469,
29898,
2176,
29918,
14968,
29892,
3646,
29922,
1839,
8667,
11287,
13,
13,
1678,
822,
1653,
29918,
1688,
29898,
1311,
29892,
2159,
29922,
29896,
29900,
1125,
13,
4706,
848,
29918,
1688,
353,
1583,
3032,
3258,
29918,
11249,
23538,
1311,
29889,
5140,
29918,
1688,
29892,
2159,
29897,
13,
4706,
736,
11090,
1070,
1469,
29898,
1272,
29918,
1688,
29892,
3646,
29922,
1839,
8667,
11287,
13,
2
] |
idfield/fields.py | lis-space/django-idfield | 0 | 55106 | <gh_stars>0
from django.db import models
import random
class IDField(models.Field):
def __init__(self, alphabet=None, readable=False, *args, **kwargs):
self.max_length = kwargs.get('max_length', 10)
self.readable = readable
self.alphabet = alphabet
if not self.alphabet:
if self.readable:
self.alphabet = "ABCDEFGHJKMNPQRSTUVWXYZ23456789"
else:
self.alphabet = "abcdefghijklmnopqrstuvwxyz0123456789"
super(IDField, self).__init__(*args, **kwargs)
def db_type(self, connection):
return 'char({})'.format(self.max_length)
def pre_save(self, model_instance, add):
value = super(IDField, self).pre_save(model_instance, add)
if not value:
value = ''
for i in range(0, self.max_length): value += random.choice(self.alphabet)
setattr(model_instance, self.attname, value)
return value
def formfield(self, **kwargs):
return super(IDField, self).formfield(**kwargs)
def deconstruct(self):
return super(IDField, self).deconstruct()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
5215,
4036,
13,
13,
13,
1990,
3553,
3073,
29898,
9794,
29889,
3073,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
22968,
29922,
8516,
29892,
19909,
29922,
8824,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
3317,
29918,
2848,
353,
9049,
5085,
29889,
657,
877,
3317,
29918,
2848,
742,
29871,
29896,
29900,
29897,
13,
4706,
1583,
29889,
949,
519,
353,
19909,
13,
4706,
1583,
29889,
284,
17416,
353,
22968,
13,
4706,
565,
451,
1583,
29889,
284,
17416,
29901,
13,
9651,
565,
1583,
29889,
949,
519,
29901,
13,
18884,
1583,
29889,
284,
17416,
353,
376,
19658,
24405,
29954,
29950,
29967,
29968,
29924,
25500,
29984,
29934,
1254,
29965,
29963,
29956,
18454,
29999,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29908,
13,
9651,
1683,
29901,
13,
18884,
1583,
29889,
284,
17416,
353,
376,
10736,
1753,
12443,
823,
6321,
23521,
459,
29939,
29878,
303,
4090,
29893,
20230,
29900,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29908,
13,
4706,
2428,
29898,
1367,
3073,
29892,
1583,
467,
1649,
2344,
1649,
10456,
5085,
29892,
3579,
19290,
29897,
13,
13,
1678,
822,
4833,
29918,
1853,
29898,
1311,
29892,
3957,
1125,
13,
4706,
736,
525,
3090,
3319,
1800,
4286,
4830,
29898,
1311,
29889,
3317,
29918,
2848,
29897,
13,
13,
1678,
822,
758,
29918,
7620,
29898,
1311,
29892,
1904,
29918,
8758,
29892,
788,
1125,
13,
4706,
995,
353,
2428,
29898,
1367,
3073,
29892,
1583,
467,
1457,
29918,
7620,
29898,
4299,
29918,
8758,
29892,
788,
29897,
13,
4706,
565,
451,
995,
29901,
13,
9651,
995,
353,
6629,
13,
9651,
363,
474,
297,
3464,
29898,
29900,
29892,
1583,
29889,
3317,
29918,
2848,
1125,
995,
4619,
4036,
29889,
16957,
29898,
1311,
29889,
284,
17416,
29897,
13,
9651,
731,
5552,
29898,
4299,
29918,
8758,
29892,
1583,
29889,
1131,
978,
29892,
995,
29897,
13,
4706,
736,
995,
13,
13,
1678,
822,
883,
2671,
29898,
1311,
29892,
3579,
19290,
1125,
13,
4706,
736,
2428,
29898,
1367,
3073,
29892,
1583,
467,
689,
2671,
29898,
1068,
19290,
29897,
13,
13,
1678,
822,
316,
11433,
29898,
1311,
1125,
13,
4706,
736,
2428,
29898,
1367,
3073,
29892,
1583,
467,
311,
11433,
580,
13,
2
] |
docs/streammarker_connected_sensor/streammarker_connected_sensor_reader.py | urlgrey/streammarker-collector | 0 | 96035 | #!/usr/bin/python
import os
import httplib
import serial
import re
import json
ser = serial.Serial('/dev/ttyAMA0', 9600)
headers = {"Content-type": "application/json",
"Accept": "application/json"}
if 'STREAMMARKER_API_KEY' in os.environ:
headers["X-API-KEY"] = os.environ['STREAMMARKER_API_KEY']
r_unwanted = re.compile("[\n\r]")
while True:
try:
msg = ser.readline()
msg = r_unwanted.sub("", msg)
readings = msg.split(',')
body = json.dumps({"timestamp": 0,"relay_id": "3AC91DEC-B0DD-4DB5-B56D-7682B7C9B28C","status": "ok","sensors": [{"id":"31E541A7-815A-4527-88FC-CEA39808FCAC","readings": [{"timestamp": 0,"measurements": [{"name":"soil_moisture_1","value": float(readings[0]),"unit":"VWC"}, {"name":"soil_temperature_1","value": float(readings[1]),"unit":"Celsius"}]}]}]})
print body
except KeyboardInterrupt:
break
except: # catch-all
e = sys.exc_info()[0]
print(e)
ser.close() | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
13,
5215,
2897,
13,
5215,
1732,
1982,
13,
5215,
7797,
13,
5215,
337,
13,
5215,
4390,
13,
13,
643,
353,
7797,
29889,
9125,
11219,
3359,
29914,
4349,
29909,
1529,
29900,
742,
29871,
29929,
29953,
29900,
29900,
29897,
13,
13,
13662,
353,
8853,
3916,
29899,
1853,
1115,
376,
6214,
29914,
3126,
613,
13,
965,
376,
23965,
1115,
376,
6214,
29914,
3126,
9092,
13,
361,
525,
1254,
1525,
5194,
1529,
29934,
29968,
1001,
29918,
8787,
29918,
10818,
29915,
297,
2897,
29889,
21813,
29901,
13,
29871,
9066,
3366,
29990,
29899,
8787,
29899,
10818,
3108,
353,
2897,
29889,
21813,
1839,
1254,
1525,
5194,
1529,
29934,
29968,
1001,
29918,
8787,
29918,
10818,
2033,
13,
13,
29878,
29918,
348,
29893,
9714,
353,
337,
29889,
12198,
703,
7110,
29876,
29905,
29878,
29962,
1159,
13,
8000,
5852,
29901,
13,
1678,
1018,
29901,
13,
4706,
10191,
353,
724,
29889,
949,
1220,
580,
13,
4706,
10191,
353,
364,
29918,
348,
29893,
9714,
29889,
1491,
703,
613,
10191,
29897,
13,
4706,
1303,
886,
353,
10191,
29889,
5451,
29317,
1495,
13,
4706,
3573,
353,
4390,
29889,
29881,
17204,
3319,
29908,
16394,
1115,
29871,
29900,
1699,
2674,
388,
29918,
333,
1115,
376,
29941,
2477,
29929,
29896,
2287,
29907,
29899,
29933,
29900,
7858,
29899,
29946,
4051,
29945,
29899,
29933,
29945,
29953,
29928,
29899,
29955,
29953,
29947,
29906,
29933,
29955,
29907,
29929,
29933,
29906,
29947,
29907,
3284,
4882,
1115,
376,
554,
3284,
23149,
943,
1115,
518,
6377,
333,
4710,
29941,
29896,
29923,
29945,
29946,
29896,
29909,
29955,
29899,
29947,
29896,
29945,
29909,
29899,
29946,
29945,
29906,
29955,
29899,
29947,
29947,
8610,
29899,
4741,
29909,
29941,
29929,
29947,
29900,
29947,
8610,
2477,
3284,
949,
886,
1115,
518,
6377,
16394,
1115,
29871,
29900,
1699,
26658,
1860,
1115,
518,
6377,
978,
4710,
578,
309,
29918,
4346,
391,
545,
29918,
29896,
3284,
1767,
1115,
5785,
29898,
949,
886,
29961,
29900,
11724,
29908,
5441,
4710,
29963,
29956,
29907,
10758,
8853,
978,
4710,
578,
309,
29918,
12863,
1535,
29918,
29896,
3284,
1767,
1115,
5785,
29898,
949,
886,
29961,
29896,
11724,
29908,
5441,
4710,
29907,
295,
1039,
375,
29908,
6525,
6525,
6525,
1800,
13,
4706,
1596,
3573,
13,
13,
1678,
5174,
7670,
3377,
4074,
6685,
29901,
13,
4706,
2867,
13,
1678,
5174,
29901,
396,
4380,
29899,
497,
13,
4706,
321,
353,
10876,
29889,
735,
29883,
29918,
3888,
580,
29961,
29900,
29962,
13,
4706,
1596,
29898,
29872,
29897,
13,
13,
643,
29889,
5358,
580,
2
] |
examples/04_sweep_wind_directions.py | ElieKadoche/floris | 0 | 12814 | # Copyright 2022 NREL
# 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.
# See https://floris.readthedocs.io for documentation
import matplotlib.pyplot as plt
import numpy as np
from floris.tools import FlorisInterface
from floris.tools.visualization import visualize_cut_plane
"""
04_sweep_wind_directions
This example demonstrates vectorization of wind direction.
A vector of wind directions is passed to the intialize function
and the powers of the two simulated turbines is computed for all
wind directions in one call
The power of both turbines for each wind direction is then plotted
"""
# Instantiate FLORIS using either the GCH or CC model
fi = FlorisInterface("inputs/gch.yaml") # GCH model matched to the default "legacy_gauss" of V2
# fi = FlorisInterface("inputs/cc.yaml") # New CumulativeCurl model
# Define a two turbine farm
D = 126.
layout_x = np.array([0, D*6])
layout_y = [0, 0]
fi.reinitialize(layout = [layout_x, layout_y])
# Sweep wind speeds but keep wind direction fixed
wd_array = np.arange(250,291,1.)
fi.reinitialize(wind_directions=wd_array)
# Define a matrix of yaw angles to be all 0
# Note that yaw angles is now specified as a matrix whose dimesions are
# wd/ws/turbine
num_wd = len(wd_array) # Number of wind directions
num_ws = 1 # Number of wind speeds
num_turbine = len(layout_x) # Number of turbines
yaw_angles = np.zeros((num_wd, num_ws, num_turbine))
# Calculate
fi.calculate_wake(yaw_angles=yaw_angles)
# Collect the turbine powers
turbine_powers = fi.get_turbine_powers() / 1E3 # In kW
# Pull out the power values per turbine
pow_t0 = turbine_powers[:,:,0].flatten()
pow_t1 = turbine_powers[:,:,1].flatten()
# Plot
fig, ax = plt.subplots()
ax.plot(wd_array,pow_t0,color='k',label='Upstream Turbine')
ax.plot(wd_array,pow_t1,color='r',label='Downstream Turbine')
ax.grid(True)
ax.legend()
ax.set_xlabel('Wind Direction (deg)')
ax.set_ylabel('Power (kW)')
plt.show()
| [
1,
396,
14187,
1266,
29871,
29906,
29900,
29906,
29906,
405,
1525,
29931,
13,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
366,
1122,
451,
13,
29937,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
887,
1122,
4017,
263,
3509,
310,
13,
29937,
278,
19245,
472,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
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,
399,
1806,
8187,
2692,
13,
29937,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
2823,
278,
13,
29937,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
27028,
1090,
13,
29937,
278,
19245,
29889,
13,
13,
29937,
2823,
2045,
597,
1579,
29367,
29889,
949,
386,
287,
12332,
29889,
601,
363,
5106,
13,
13,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
23729,
275,
29889,
8504,
1053,
6953,
275,
10448,
13,
3166,
23729,
275,
29889,
8504,
29889,
20119,
2133,
1053,
7604,
675,
29918,
7582,
29918,
22116,
13,
13,
13,
15945,
29908,
13,
29900,
29946,
29918,
29879,
705,
1022,
29918,
14800,
29918,
20146,
1953,
13,
13,
4013,
1342,
9004,
1078,
4608,
2133,
310,
8805,
5305,
29889,
259,
13,
29909,
4608,
310,
8805,
18112,
338,
4502,
304,
278,
938,
6646,
740,
29871,
13,
392,
278,
10801,
310,
278,
1023,
1027,
7964,
7013,
29890,
1475,
338,
15712,
363,
599,
13,
14800,
18112,
297,
697,
1246,
13,
13,
1576,
3081,
310,
1716,
7013,
29890,
1475,
363,
1269,
8805,
5305,
338,
769,
715,
15048,
13,
13,
15945,
29908,
13,
13,
29937,
2799,
3656,
403,
383,
29931,
1955,
3235,
773,
2845,
278,
402,
3210,
470,
19178,
1904,
13,
7241,
353,
6953,
275,
10448,
703,
2080,
29879,
29914,
29887,
305,
29889,
25162,
1159,
396,
402,
3210,
1904,
19228,
304,
278,
2322,
376,
1397,
4135,
29918,
29887,
11214,
29908,
310,
478,
29906,
13,
29937,
5713,
353,
6953,
275,
10448,
703,
2080,
29879,
29914,
617,
29889,
25162,
1159,
396,
1570,
315,
398,
28524,
29907,
2271,
1904,
13,
13,
29937,
22402,
263,
1023,
7013,
26062,
17888,
13,
29928,
353,
29871,
29896,
29906,
29953,
29889,
13,
2680,
29918,
29916,
353,
7442,
29889,
2378,
4197,
29900,
29892,
360,
29930,
29953,
2314,
13,
2680,
29918,
29891,
353,
518,
29900,
29892,
29871,
29900,
29962,
13,
7241,
29889,
276,
24926,
29898,
2680,
353,
518,
2680,
29918,
29916,
29892,
5912,
29918,
29891,
2314,
13,
13,
29937,
317,
705,
1022,
8805,
961,
5779,
541,
3013,
8805,
5305,
4343,
13,
9970,
29918,
2378,
353,
7442,
29889,
279,
927,
29898,
29906,
29945,
29900,
29892,
29906,
29929,
29896,
29892,
29896,
1846,
13,
7241,
29889,
276,
24926,
29898,
14800,
29918,
20146,
1953,
29922,
9970,
29918,
2378,
29897,
13,
13,
29937,
22402,
263,
4636,
310,
343,
1450,
23619,
304,
367,
599,
29871,
29900,
13,
29937,
3940,
393,
343,
1450,
23619,
338,
1286,
6790,
408,
263,
4636,
5069,
270,
1355,
1080,
526,
13,
29937,
281,
29881,
29914,
5652,
29914,
29873,
9265,
457,
13,
1949,
29918,
9970,
353,
7431,
29898,
9970,
29918,
2378,
29897,
396,
9681,
310,
8805,
18112,
13,
1949,
29918,
5652,
353,
29871,
29896,
396,
9681,
310,
8805,
961,
5779,
13,
1949,
29918,
29873,
9265,
457,
353,
7431,
29898,
2680,
29918,
29916,
29897,
396,
29871,
9681,
310,
7013,
29890,
1475,
13,
29891,
1450,
29918,
19536,
353,
7442,
29889,
3298,
359,
3552,
1949,
29918,
9970,
29892,
954,
29918,
5652,
29892,
954,
29918,
29873,
9265,
457,
876,
29871,
13,
13,
29937,
20535,
403,
13,
7241,
29889,
15807,
403,
29918,
29893,
1296,
29898,
29891,
1450,
29918,
19536,
29922,
29891,
1450,
29918,
19536,
29897,
13,
13,
29937,
24930,
278,
7013,
26062,
10801,
13,
29873,
9265,
457,
29918,
12248,
414,
353,
5713,
29889,
657,
29918,
29873,
9265,
457,
29918,
12248,
414,
580,
847,
29871,
29896,
29923,
29941,
396,
512,
26226,
13,
13,
29937,
349,
913,
714,
278,
3081,
1819,
639,
7013,
26062,
13,
12248,
29918,
29873,
29900,
353,
7013,
26062,
29918,
12248,
414,
7503,
29892,
29901,
29892,
29900,
1822,
1579,
8606,
580,
13,
12248,
29918,
29873,
29896,
353,
7013,
26062,
29918,
12248,
414,
7503,
29892,
29901,
29892,
29896,
1822,
1579,
8606,
580,
13,
13,
29937,
18399,
13,
1003,
29892,
4853,
353,
14770,
29889,
1491,
26762,
580,
13,
1165,
29889,
5317,
29898,
9970,
29918,
2378,
29892,
12248,
29918,
29873,
29900,
29892,
2780,
2433,
29895,
742,
1643,
2433,
3373,
5461,
5383,
26062,
1495,
13,
1165,
29889,
5317,
29898,
9970,
29918,
2378,
29892,
12248,
29918,
29873,
29896,
29892,
2780,
2433,
29878,
742,
1643,
2433,
6767,
5461,
5383,
26062,
1495,
13,
1165,
29889,
7720,
29898,
5574,
29897,
13,
1165,
29889,
26172,
580,
13,
1165,
29889,
842,
29918,
29916,
1643,
877,
29956,
513,
360,
8684,
313,
12163,
29897,
1495,
13,
1165,
29889,
842,
29918,
29891,
1643,
877,
21472,
313,
29895,
29956,
29897,
1495,
13,
572,
29873,
29889,
4294,
580,
13,
2
] |
learnMongo/mongoInsert.py | huobingli/pyAlgorithm | 0 | 24764 | import pymongo
from bson.objectid import ObjectId
# mongo 增加
def main():
client = pymongo.MongoClient(host='172.16.17.32', port=27017)
db = client.test
collection = db.students
# 插入一条数据
student = {
'id': '20170101',
'name': 'Kevin',
'age': 20,
'gender': 'male'
}
# 每条数据其实都有一个 _id 属性来唯一标识。
# 如果没有显式指明该属性,MongoDB 会自动产生一个 ObjectId 类型的 _id 属性。
# insert() 方法会在执行后返回_id 值。
result = collection.insert(student)
print(result)
# 插入多条数据
student1 = {
'id': '20170101',
'name': 'Jordan',
'age': 20,
'gender': 'male'
}
student2 = {
'id': '20170202',
'name': 'Mike',
'age': 20,
'gender': 'male'
}
# 这里用列表方式传入
# 返回结果也是列表方式
result = collection.insert([student1, student2])
print(result)
# pymongo 官方不推荐使用insert
# 推荐使用 insert_one 和 insert_many 插入一条或者多条记录
student = {
'id': '20170101',
'name': 'Jordan',
'age': 20,
'gender': 'male'
}
result = collection.insert_one(student)
print(result)
print(result.inserted_id)
student1 = {
'id': '20170101',
'name': 'Jordan',
'age': 20,
'gender': 'male'
}
student2 = {
'id': '20170202',
'name': 'Mike',
'age': 20,
'gender': 'male'
}
result = collection.insert_many([student1, student2])
print(result)
print(result.inserted_ids)
if __name__ == '__main__':
main() | [
1,
1053,
282,
962,
7443,
13,
13,
3166,
289,
1100,
29889,
3318,
333,
1053,
4669,
1204,
13,
13,
29937,
19476,
29871,
232,
165,
161,
30666,
13,
13,
1753,
1667,
7295,
13,
1678,
3132,
353,
282,
962,
7443,
29889,
29924,
7443,
4032,
29898,
3069,
2433,
29896,
29955,
29906,
29889,
29896,
29953,
29889,
29896,
29955,
29889,
29941,
29906,
742,
2011,
29922,
29906,
29955,
29900,
29896,
29955,
29897,
13,
1678,
4833,
353,
3132,
29889,
1688,
13,
1678,
4333,
353,
4833,
29889,
18082,
1237,
13,
13,
1678,
396,
29871,
233,
146,
149,
30752,
30287,
31217,
30354,
30763,
13,
1678,
8368,
353,
426,
13,
4706,
525,
333,
2396,
525,
29906,
29900,
29896,
29955,
29900,
29896,
29900,
29896,
742,
13,
4706,
525,
978,
2396,
525,
9598,
3845,
742,
13,
4706,
525,
482,
2396,
29871,
29906,
29900,
29892,
13,
4706,
525,
26098,
2396,
525,
19202,
29915,
13,
1678,
500,
13,
13,
1678,
396,
29871,
31951,
31217,
30354,
30763,
31149,
31195,
30769,
30417,
30287,
30502,
903,
333,
29871,
31360,
30952,
30805,
232,
151,
178,
30287,
31062,
235,
178,
137,
30267,
13,
1678,
396,
29871,
30847,
30801,
31423,
30417,
31542,
30607,
31084,
30592,
31751,
31360,
30952,
30214,
29924,
7443,
4051,
29871,
30437,
30688,
30846,
231,
189,
170,
30486,
30287,
30502,
4669,
1204,
29871,
30832,
30883,
30210,
903,
333,
29871,
31360,
30952,
30267,
13,
1678,
396,
4635,
580,
29871,
30525,
30545,
30437,
30505,
233,
140,
170,
30448,
30822,
31086,
30742,
29918,
333,
29871,
30959,
30267,
29871,
13,
1678,
1121,
353,
4333,
29889,
7851,
29898,
18945,
29897,
13,
1678,
1596,
29898,
2914,
29897,
29871,
13,
13,
1678,
396,
29871,
233,
146,
149,
30752,
30923,
31217,
30354,
30763,
13,
1678,
8368,
29896,
353,
426,
13,
4706,
525,
333,
2396,
525,
29906,
29900,
29896,
29955,
29900,
29896,
29900,
29896,
742,
13,
4706,
525,
978,
2396,
525,
29967,
536,
273,
742,
13,
4706,
525,
482,
2396,
29871,
29906,
29900,
29892,
13,
4706,
525,
26098,
2396,
525,
19202,
29915,
13,
1678,
500,
13,
13,
1678,
8368,
29906,
353,
426,
13,
4706,
525,
333,
2396,
525,
29906,
29900,
29896,
29955,
29900,
29906,
29900,
29906,
742,
13,
4706,
525,
978,
2396,
525,
29924,
9345,
742,
13,
4706,
525,
482,
2396,
29871,
29906,
29900,
29892,
13,
4706,
525,
26098,
2396,
525,
19202,
29915,
13,
1678,
500,
13,
13,
1678,
396,
29871,
30810,
30755,
30406,
31025,
30746,
30525,
30607,
31471,
30752,
13,
1678,
396,
29871,
31086,
30742,
31320,
30801,
30953,
30392,
31025,
30746,
30525,
30607,
13,
1678,
1121,
353,
4333,
29889,
7851,
4197,
18945,
29896,
29892,
8368,
29906,
2314,
13,
1678,
1596,
29898,
2914,
29897,
13,
13,
1678,
396,
282,
962,
7443,
29871,
31694,
30525,
30413,
233,
145,
171,
235,
144,
147,
30785,
30406,
7851,
13,
1678,
396,
29871,
233,
145,
171,
235,
144,
147,
30785,
30406,
4635,
29918,
650,
29871,
30503,
4635,
29918,
13011,
29871,
233,
146,
149,
30752,
30287,
31217,
31391,
30767,
30923,
31217,
31410,
31283,
13,
1678,
8368,
353,
426,
13,
4706,
525,
333,
2396,
525,
29906,
29900,
29896,
29955,
29900,
29896,
29900,
29896,
742,
13,
4706,
525,
978,
2396,
525,
29967,
536,
273,
742,
13,
4706,
525,
482,
2396,
29871,
29906,
29900,
29892,
13,
4706,
525,
26098,
2396,
525,
19202,
29915,
13,
1678,
500,
13,
13,
1678,
1121,
353,
4333,
29889,
7851,
29918,
650,
29898,
18945,
29897,
13,
1678,
1596,
29898,
2914,
29897,
13,
1678,
1596,
29898,
2914,
29889,
7851,
287,
29918,
333,
29897,
13,
13,
1678,
8368,
29896,
353,
426,
13,
4706,
525,
333,
2396,
525,
29906,
29900,
29896,
29955,
29900,
29896,
29900,
29896,
742,
13,
4706,
525,
978,
2396,
525,
29967,
536,
273,
742,
13,
4706,
525,
482,
2396,
29871,
29906,
29900,
29892,
13,
4706,
525,
26098,
2396,
525,
19202,
29915,
13,
1678,
500,
13,
13,
1678,
8368,
29906,
353,
426,
13,
4706,
525,
333,
2396,
525,
29906,
29900,
29896,
29955,
29900,
29906,
29900,
29906,
742,
13,
4706,
525,
978,
2396,
525,
29924,
9345,
742,
13,
4706,
525,
482,
2396,
29871,
29906,
29900,
29892,
13,
4706,
525,
26098,
2396,
525,
19202,
29915,
13,
1678,
500,
13,
13,
1678,
1121,
353,
4333,
29889,
7851,
29918,
13011,
4197,
18945,
29896,
29892,
8368,
29906,
2314,
13,
1678,
1596,
29898,
2914,
29897,
13,
1678,
1596,
29898,
2914,
29889,
7851,
287,
29918,
4841,
29897,
13,
13,
268,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
2
] |
cpgan_data.py | basilevh/object-discovery-cp-gan | 14 | 18657 | # <NAME>, March 2020
# Common code for PyTorch implementation of Copy-Pasting GAN
import copy
import itertools
import matplotlib.pyplot as plt
import numpy as np
import os, platform, time
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
from PIL import Image, ImageDraw
from torch.utils.data import Dataset
from tqdm import tqdm
def read_image_robust(img_path, monochromatic=False):
''' Returns an image that meets conditions along with a success flag, in order to avoid crashing. '''
try:
# image = plt.imread(img_path).copy()
image = np.array(Image.open(img_path)).copy() # always uint8
success = True
if np.any(np.array(image.strides) < 0):
success = False # still negative stride
elif not(monochromatic) and (image.ndim != 3 or image.shape[2] != 3):
success = False # not RGB
elif monochromatic:
# width, height = image.shape[1], image.shape[0]
# image = np.broadcast_to(x[:, :, np.newaxis], (height, width, 3))
image = image[:, :, np.newaxis] # one channel <=> only one ground truth
except IOError:
# Probably corrupt file
image = None
success = False
return image, success
def paint_squares(image, noisy=False, channels=10):
'''
Paints one or more squares at random locations to create an artificial foreground image.
Generates multiple associated ground truth masks; one per object.
'''
width, height = image.shape[1], image.shape[0]
image = image.copy() # do not overwrite background
object_count = np.random.randint(1, 5) # [1, 4] inclusive
masks = np.zeros((height, width, channels), dtype=np.uint8)
for i in range(object_count):
sq_w, sq_h = 9, 9
x1 = np.random.randint(0, width - sq_w + 1)
y1 = np.random.randint(0, height - sq_h + 1)
x2 = x1 + sq_w
y2 = y1 + sq_h
masks[y1:y2, x1:x2, i] = 255
if not(noisy):
# Pick one fixed (not necessarily saturated) color for the whole square
clr = np.random.randint(0, 256, 3)
image[y1:y2, x1:x2] = clr
else:
# Pick a random fully saturated (extremal) color for every pixel
image[y1:y2, x1:x2] = np.random.choice([0, 255], (sq_h, sq_w, 3))
return image, masks, object_count
def create_random_gfake_mask(width, height):
''' See Appendix D. '''
x0, y0 = np.random.rand(2) * 0.8 + 0.1
num_verts = np.random.randint(4, 7)
# TODO possible improvement: allow up to more vertices?
# TODO possible improvement: encourage convex (currently many "sharp" objects)
radii = np.random.rand(num_verts) * 0.4 + 0.1
# radii = np.random.rand(num_verts) * 0.8 + 0.2 # TODO: not very clear from paper
angles = np.sort(np.random.rand(num_verts)) * 2.0 * np.pi
poly_polar = list(zip(radii, angles))
poly_cart = [(int(width * (x0 + r * np.cos(a)) / 1),
int(height * (y0 + r * np.sin(a)) / 1)) for (r, a) in poly_polar]
# poly_cart = [(x1, y1), (x2, y2), ...]
img = Image.new('L', (width, height), 0)
ImageDraw.Draw(img).polygon(poly_cart, outline=1, fill=255)
mask = np.array(img, dtype='uint8')
assert(mask.shape == (height, width))
return mask
def apply_border_zero(masks):
ndim = len(masks.shape)
if ndim == 2:
masks[0, :] = 0
masks[-1, :] = 0
masks[:, 0] = 0
masks[:, -1] = 0
elif ndim == 3:
masks[:, 0, :] = 0
masks[:, -1, :] = 0
masks[:, :, 0] = 0
masks[:, :, -1] = 0
elif ndim == 4:
masks[:, :, 0, :] = 0
masks[:, :, -1, :] = 0
masks[:, :, :, 0] = 0
masks[:, :, :, -1] = 0
else:
raise Exception('Mask has too many dimensions')
return masks
def copy_paste(fores, masks, backs, border_zero=True):
# TODO possible improvement: poisson blending
# if hard_thres > 0:
# used_masks = (masks > hard_thres).float() # force binary
# else:
used_masks = masks.clone()
# Border zeroing implemented in April 2020
if border_zero:
used_masks = apply_border_zero(used_masks)
return used_masks * fores + (1.0 - used_masks) * backs
class MyCopyPasteDataset(Dataset):
'''
Custom dataset class with foreground, background, and optional mask folders as image sources.
Only one object may appear per image, since the object count is not kept track of.
Returns irrelevant foreground anti-shortcuts as well. Enforces color (RGB) images.
'''
def __init__(self, fore_dir, back_dir, mask_dir=None, rand_horz_flip=True, post_resize=-1, center_crop=False):
self.fore_dir = fore_dir
self.back_dir = back_dir
self.rand_horz_flip = rand_horz_flip
if post_resize <= 0:
self.post_tf = transforms.ToTensor() # converts [0, 255] to [0.0, 1.0]
elif center_crop:
# Resize + square center crop
self.post_tf = transforms.Compose([
transforms.ToPILImage(),
transforms.Resize(post_resize),
transforms.CenterCrop(post_resize),
transforms.ToTensor()
])
else:
# Resize both dimensions, possibly distorting the images
self.post_tf = transforms.Compose([
transforms.ToPILImage(),
transforms.Resize((post_resize, post_resize)),
transforms.ToTensor()
])
self.has_masks = (mask_dir is not None)
# Load all file paths; file names must be the same across all 2 or 3 given directories
# self.all_fore_files = []
# self.all_mask_files = []
# self.all_back_files = []
# for fn in os.listdir(fore_dir):
# fore_fp = os.path.join(fore_dir, fn)
# if os.path.isfile(fore_fp):
# back_fp = os.path.join(back_dir, fn)
# assert(os.path.isfile(back_fp))
# self.all_fore_files.append(fore_fp)
# self.all_back_files.append(back_fp)
# if self.has_masks:
# mask_fp = os.path.join(mask_dir, fn)
# assert(os.path.isfile(mask_fp))
# self.all_mask_files.append(mask_fp)
# Load all file paths; file names must be the same across foreground and segmentation masks
self.all_fore_files = []
self.all_mask_files = []
self.all_back_files = []
for fn in os.listdir(fore_dir):
fore_fp = os.path.join(fore_dir, fn)
self.all_fore_files.append(fore_fp)
if self.has_masks:
mask_fp_jpg = os.path.join(mask_dir, fn[:-4] + '.jpg')
mask_fp_png = os.path.join(mask_dir, fn[:-4] + '.png')
if os.path.isfile(mask_fp_jpg):
self.all_mask_files.append(mask_fp_jpg)
elif os.path.isfile(mask_fp_png):
self.all_mask_files.append(mask_fp_png)
else:
raise Exception('No matching mask file found for ' + fore_fp)
for fn in os.listdir(back_dir):
back_fp = os.path.join(back_dir, fn)
self.all_back_files.append(back_fp)
self.fore_count = len(self.all_fore_files)
self.back_count = len(self.all_back_files)
print('Image file count: ' + str(self.fore_count) + ' foreground, ' + str(self.back_count) + ' background, has masks: ' + str(self.has_masks))
def __len__(self):
return self.fore_count
def __getitem__(self, idx):
# Force randomness (especially if num_workers > 0)
np.random.seed(idx + int((time.time() * 654321) % 123456))
# Read random pair of images from file system
success = False
while not(success):
file_idx = np.random.choice(self.fore_count)
fp = self.all_fore_files[file_idx]
fore, success = read_image_robust(fp)
if not(success):
continue
if self.has_masks:
fp = self.all_mask_files[file_idx]
mask, success = read_image_robust(fp, monochromatic=True)
assert(success) # must match fore
# mask = ((mask > 0) * 255.0).astype('uint8') # convert soft masks to hard
else:
mask = None
# Read random background image
success = False
while not(success):
file_idx2 = np.random.choice(self.back_count)
fp = self.all_back_files[file_idx2]
back, success = read_image_robust(fp)
# Read irrelevant foreground image
success = False
while not(success):
file_idx3 = np.random.choice(self.fore_count)
if file_idx3 == file_idx:
continue # try again, cannot pick same image
fp = self.all_fore_files[file_idx3]
irrel, success = read_image_robust(fp)
# Transform foregrounds (+ masks) and backgrounds
# NOTE: identical random choices must be made for some images
if self.rand_horz_flip:
if np.random.rand() < 0.5:
fore = fore[:, ::-1, :].copy()
if self.has_masks:
mask = mask[:, ::-1, :].copy()
if np.random.rand() < 0.5:
irrel = irrel[:, ::-1, :].copy()
if np.random.rand() < 0.5:
back = back[:, ::-1, :].copy()
fore = self.post_tf(fore)
irrel = self.post_tf(irrel)
back = self.post_tf(back)
if self.has_masks:
mask = self.post_tf(mask)
# Verify sizes
assert(fore.shape[1:] == irrel.shape[1:])
assert(fore.shape[1:] == back.shape[1:])
if self.has_masks:
assert(fore.shape[1:] == mask.shape[1:])
# Create grounded fake mask and composite
width, height = fore.shape[2], fore.shape[1] # fore is (C, H, W)
gfake_mask = self.post_tf(create_random_gfake_mask(width, height))
comp_gfake = copy_paste(fore, gfake_mask, back)
# Construct dictionary; object count is unknown
result = {'fore': fore, 'back': back, 'irrel': irrel, 'object_cnt': 1, 'gfake_mask': gfake_mask, 'comp_gfake': comp_gfake}
if self.has_masks:
result['mask'] = mask # don't set None, otherwise crash
return result
class MySquaresDataset(Dataset):
'''
Custom dataset class with just a collection of background images as source.
One or more artificial objects are painted to create a foreground, keeping track of object count.
Returns irrelevant foreground anti-shortcuts as well. Enforces color (RGB) images.
'''
def __init__(self, back_dir, rand_horz_flip=True, noisy=False, max_objects=10):
self.back_dir = back_dir
self.rand_horz_flip = rand_horz_flip
self.post_tf = transforms.ToTensor() # converts [0, 255] to [0.0, 1.0]
self.noisy = noisy
self.max_objects = max_objects
# Load all file paths; file names must be the same across all 2 or 3 given directories
self.all_back_files = []
for fn in os.listdir(back_dir):
back_fp = os.path.join(back_dir, fn)
self.all_back_files.append(back_fp)
self.file_count = len(self.all_back_files)
print('Image file count: ' + str(self.file_count) + ', noisy: ' + str(self.noisy) + ', max objects: ' + str(self.max_objects))
def __len__(self):
return self.file_count
def __getitem__(self, idx):
# Read a random triplet (relevant + background + irrelevant) of non-overlapping backgrounds from file system
success = False
while not(success):
file_idx = np.random.choice(self.file_count)
fp = self.all_back_files[file_idx]
fore, success = read_image_robust(fp)
success = False
while not(success):
file_idx2 = np.random.choice(self.file_count)
if file_idx2 == file_idx:
continue # try again, cannot pick same image
fp = self.all_back_files[file_idx2]
back, success = read_image_robust(fp)
success = False
while not(success):
file_idx3 = np.random.choice(self.file_count)
if file_idx3 == file_idx or file_idx3 == file_idx2:
continue # try again, cannot pick same image
fp = self.all_back_files[file_idx3]
irrel, success = read_image_robust(fp)
# Create corresponding foregrounds and masks; leave actual background unchanged
fore, masks, object_cnt = paint_squares(fore, noisy=self.noisy, channels=self.max_objects)
irrel, _, _ = paint_squares(irrel, noisy=self.noisy, channels=self.max_objects)
# Transform foregrounds (+ masks) and backgrounds
# NOTE: identical random choices must be made for some images
if self.rand_horz_flip:
if np.random.rand() < 0.5:
fore = fore[:, ::-1, :].copy()
masks = masks[:, ::-1, :].copy()
if np.random.rand() < 0.5:
irrel = irrel[:, ::-1, :].copy()
if np.random.rand() < 0.5:
back = back[:, ::-1, :].copy()
fore = self.post_tf(fore)
masks = self.post_tf(masks)
irrel = self.post_tf(irrel)
back = self.post_tf(back)
# Create grounded fake mask and composite
width, height = fore.shape[2], fore.shape[1] # fore is (C, H, W)
gfake_mask = self.post_tf(create_random_gfake_mask(width, height))
comp_gfake = copy_paste(fore, gfake_mask, back)
# Construct dictionary
result = {'fore': fore, 'back': back, 'irrel': irrel, 'mask': masks, 'object_cnt': object_cnt, 'gfake_mask': gfake_mask, 'comp_gfake': comp_gfake}
return result
| [
1,
396,
529,
5813,
10202,
4779,
29871,
29906,
29900,
29906,
29900,
13,
29937,
13103,
775,
363,
10772,
29911,
25350,
5314,
310,
14187,
29899,
29925,
579,
292,
402,
2190,
13,
13,
5215,
3509,
13,
5215,
4256,
8504,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
12655,
408,
7442,
13,
5215,
2897,
29892,
7481,
29892,
931,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
5215,
4842,
305,
29889,
15755,
29889,
2220,
284,
408,
383,
13,
5215,
4842,
305,
4924,
13,
5215,
4842,
305,
4924,
29889,
9067,
29879,
408,
4327,
29879,
13,
3166,
349,
6227,
1053,
7084,
29892,
7084,
8537,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
13373,
24541,
13,
3166,
260,
29939,
18933,
1053,
260,
29939,
18933,
13,
13,
13,
1753,
1303,
29918,
3027,
29918,
13716,
504,
29898,
2492,
29918,
2084,
29892,
1601,
2878,
456,
2454,
29922,
8824,
1125,
13,
1678,
14550,
16969,
385,
1967,
393,
28103,
5855,
3412,
411,
263,
2551,
7353,
29892,
297,
1797,
304,
4772,
8095,
292,
29889,
14550,
13,
1678,
1018,
29901,
13,
4706,
396,
1967,
353,
14770,
29889,
326,
949,
29898,
2492,
29918,
2084,
467,
8552,
580,
13,
4706,
1967,
353,
7442,
29889,
2378,
29898,
2940,
29889,
3150,
29898,
2492,
29918,
2084,
8106,
8552,
580,
396,
2337,
13122,
29947,
13,
4706,
2551,
353,
5852,
13,
4706,
565,
7442,
29889,
1384,
29898,
9302,
29889,
2378,
29898,
3027,
29889,
710,
2247,
29897,
529,
29871,
29900,
1125,
13,
9651,
2551,
353,
7700,
396,
1603,
8178,
380,
2426,
13,
4706,
25342,
451,
29898,
3712,
2878,
456,
2454,
29897,
322,
313,
3027,
29889,
299,
326,
2804,
29871,
29941,
470,
1967,
29889,
12181,
29961,
29906,
29962,
2804,
29871,
29941,
1125,
13,
9651,
2551,
353,
7700,
396,
451,
390,
7210,
13,
4706,
25342,
1601,
2878,
456,
2454,
29901,
13,
4706,
396,
268,
2920,
29892,
3171,
353,
1967,
29889,
12181,
29961,
29896,
1402,
1967,
29889,
12181,
29961,
29900,
29962,
13,
4706,
396,
268,
1967,
353,
7442,
29889,
6729,
328,
4384,
29918,
517,
29898,
29916,
7503,
29892,
584,
29892,
7442,
29889,
1482,
8990,
1402,
313,
3545,
29892,
2920,
29892,
29871,
29941,
876,
13,
9651,
1967,
353,
1967,
7503,
29892,
584,
29892,
7442,
29889,
1482,
8990,
29962,
396,
697,
8242,
529,
4261,
871,
697,
5962,
8760,
13,
13,
1678,
5174,
10663,
2392,
29901,
13,
4706,
396,
21606,
1034,
6685,
934,
13,
4706,
1967,
353,
6213,
13,
4706,
2551,
353,
7700,
13,
13,
1678,
736,
1967,
29892,
2551,
13,
13,
13,
1753,
10675,
29918,
26613,
5114,
29898,
3027,
29892,
694,
13344,
29922,
8824,
29892,
18196,
29922,
29896,
29900,
1125,
13,
1678,
14550,
13,
1678,
349,
475,
1372,
697,
470,
901,
25256,
472,
4036,
14354,
304,
1653,
385,
23116,
363,
18128,
1967,
29889,
13,
1678,
3251,
1078,
2999,
6942,
5962,
8760,
11105,
29879,
29936,
697,
639,
1203,
29889,
13,
1678,
14550,
13,
1678,
2920,
29892,
3171,
353,
1967,
29889,
12181,
29961,
29896,
1402,
1967,
29889,
12181,
29961,
29900,
29962,
13,
1678,
1967,
353,
1967,
29889,
8552,
580,
396,
437,
451,
26556,
3239,
13,
1678,
1203,
29918,
2798,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
29896,
29892,
29871,
29945,
29897,
396,
518,
29896,
29892,
29871,
29946,
29962,
20978,
573,
13,
1678,
11105,
29879,
353,
7442,
29889,
3298,
359,
3552,
3545,
29892,
2920,
29892,
18196,
511,
26688,
29922,
9302,
29889,
13470,
29947,
29897,
13,
1678,
363,
474,
297,
3464,
29898,
3318,
29918,
2798,
1125,
13,
4706,
18074,
29918,
29893,
29892,
18074,
29918,
29882,
353,
29871,
29929,
29892,
29871,
29929,
13,
4706,
921,
29896,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
29900,
29892,
2920,
448,
18074,
29918,
29893,
718,
29871,
29896,
29897,
13,
4706,
343,
29896,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
29900,
29892,
3171,
448,
18074,
29918,
29882,
718,
29871,
29896,
29897,
13,
4706,
921,
29906,
353,
921,
29896,
718,
18074,
29918,
29893,
13,
4706,
343,
29906,
353,
343,
29896,
718,
18074,
29918,
29882,
13,
4706,
11105,
29879,
29961,
29891,
29896,
29901,
29891,
29906,
29892,
921,
29896,
29901,
29916,
29906,
29892,
474,
29962,
353,
29871,
29906,
29945,
29945,
13,
13,
4706,
565,
451,
29898,
1217,
13344,
1125,
13,
9651,
396,
23868,
697,
4343,
313,
1333,
12695,
269,
1337,
630,
29897,
2927,
363,
278,
3353,
6862,
13,
9651,
1067,
29878,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
29900,
29892,
29871,
29906,
29945,
29953,
29892,
29871,
29941,
29897,
13,
9651,
1967,
29961,
29891,
29896,
29901,
29891,
29906,
29892,
921,
29896,
29901,
29916,
29906,
29962,
353,
1067,
29878,
13,
13,
4706,
1683,
29901,
13,
9651,
396,
23868,
263,
4036,
8072,
269,
1337,
630,
313,
1062,
1745,
284,
29897,
2927,
363,
1432,
15526,
13,
9651,
1967,
29961,
29891,
29896,
29901,
29891,
29906,
29892,
921,
29896,
29901,
29916,
29906,
29962,
353,
7442,
29889,
8172,
29889,
16957,
4197,
29900,
29892,
29871,
29906,
29945,
29945,
1402,
313,
3044,
29918,
29882,
29892,
18074,
29918,
29893,
29892,
29871,
29941,
876,
13,
13,
1678,
736,
1967,
29892,
11105,
29879,
29892,
1203,
29918,
2798,
13,
13,
13,
1753,
1653,
29918,
8172,
29918,
29887,
29888,
1296,
29918,
13168,
29898,
2103,
29892,
3171,
1125,
13,
1678,
14550,
2823,
22871,
861,
360,
29889,
14550,
13,
1678,
921,
29900,
29892,
343,
29900,
353,
7442,
29889,
8172,
29889,
9502,
29898,
29906,
29897,
334,
29871,
29900,
29889,
29947,
718,
29871,
29900,
29889,
29896,
13,
1678,
954,
29918,
369,
1372,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
29946,
29892,
29871,
29955,
29897,
13,
1678,
396,
14402,
1950,
20414,
29901,
2758,
701,
304,
901,
13791,
29973,
13,
1678,
396,
14402,
1950,
20414,
29901,
13731,
6617,
18635,
313,
3784,
368,
1784,
376,
22064,
29908,
3618,
29897,
13,
1678,
2971,
2236,
353,
7442,
29889,
8172,
29889,
9502,
29898,
1949,
29918,
369,
1372,
29897,
334,
29871,
29900,
29889,
29946,
718,
29871,
29900,
29889,
29896,
13,
1678,
396,
2971,
2236,
353,
7442,
29889,
8172,
29889,
9502,
29898,
1949,
29918,
369,
1372,
29897,
334,
29871,
29900,
29889,
29947,
718,
29871,
29900,
29889,
29906,
396,
14402,
29901,
451,
1407,
2821,
515,
5650,
13,
1678,
23619,
353,
7442,
29889,
6605,
29898,
9302,
29889,
8172,
29889,
9502,
29898,
1949,
29918,
369,
1372,
876,
334,
29871,
29906,
29889,
29900,
334,
7442,
29889,
1631,
13,
1678,
15680,
29918,
3733,
279,
353,
1051,
29898,
7554,
29898,
3665,
2236,
29892,
23619,
876,
13,
1678,
15680,
29918,
13823,
353,
17288,
524,
29898,
2103,
334,
313,
29916,
29900,
718,
364,
334,
7442,
29889,
3944,
29898,
29874,
876,
847,
29871,
29896,
511,
13,
462,
29871,
938,
29898,
3545,
334,
313,
29891,
29900,
718,
364,
334,
7442,
29889,
5223,
29898,
29874,
876,
847,
29871,
29896,
876,
363,
313,
29878,
29892,
263,
29897,
297,
15680,
29918,
3733,
279,
29962,
13,
1678,
396,
15680,
29918,
13823,
353,
17288,
29916,
29896,
29892,
343,
29896,
511,
313,
29916,
29906,
29892,
343,
29906,
511,
2023,
29962,
13,
1678,
10153,
353,
7084,
29889,
1482,
877,
29931,
742,
313,
2103,
29892,
3171,
511,
29871,
29900,
29897,
13,
1678,
7084,
8537,
29889,
8537,
29898,
2492,
467,
3733,
17125,
29898,
22678,
29918,
13823,
29892,
27887,
29922,
29896,
29892,
5445,
29922,
29906,
29945,
29945,
29897,
13,
1678,
11105,
353,
7442,
29889,
2378,
29898,
2492,
29892,
26688,
2433,
13470,
29947,
1495,
13,
1678,
4974,
29898,
13168,
29889,
12181,
1275,
313,
3545,
29892,
2920,
876,
13,
1678,
736,
11105,
13,
13,
13,
1753,
3394,
29918,
11466,
29918,
9171,
29898,
13168,
29879,
1125,
13,
268,
299,
326,
353,
7431,
29898,
13168,
29879,
29889,
12181,
29897,
13,
1678,
565,
29871,
299,
326,
1275,
29871,
29906,
29901,
13,
4706,
11105,
29879,
29961,
29900,
29892,
584,
29962,
353,
29871,
29900,
13,
4706,
11105,
29879,
14352,
29896,
29892,
584,
29962,
353,
29871,
29900,
13,
4706,
11105,
29879,
7503,
29892,
29871,
29900,
29962,
353,
29871,
29900,
13,
4706,
11105,
29879,
7503,
29892,
448,
29896,
29962,
353,
29871,
29900,
13,
1678,
25342,
29871,
299,
326,
1275,
29871,
29941,
29901,
13,
4706,
11105,
29879,
7503,
29892,
29871,
29900,
29892,
584,
29962,
353,
29871,
29900,
13,
4706,
11105,
29879,
7503,
29892,
448,
29896,
29892,
584,
29962,
353,
29871,
29900,
13,
4706,
11105,
29879,
7503,
29892,
584,
29892,
29871,
29900,
29962,
353,
29871,
29900,
13,
4706,
11105,
29879,
7503,
29892,
584,
29892,
448,
29896,
29962,
353,
29871,
29900,
13,
1678,
25342,
29871,
299,
326,
1275,
29871,
29946,
29901,
13,
4706,
11105,
29879,
7503,
29892,
584,
29892,
29871,
29900,
29892,
584,
29962,
353,
29871,
29900,
13,
4706,
11105,
29879,
7503,
29892,
584,
29892,
448,
29896,
29892,
584,
29962,
353,
29871,
29900,
13,
4706,
11105,
29879,
7503,
29892,
584,
29892,
584,
29892,
29871,
29900,
29962,
353,
29871,
29900,
13,
4706,
11105,
29879,
7503,
29892,
584,
29892,
584,
29892,
448,
29896,
29962,
353,
29871,
29900,
13,
1678,
1683,
29901,
13,
4706,
12020,
8960,
877,
19832,
756,
2086,
1784,
13391,
1495,
13,
1678,
736,
11105,
29879,
13,
13,
13,
1753,
3509,
29918,
16179,
29898,
1454,
267,
29892,
11105,
29879,
29892,
1250,
29879,
29892,
5139,
29918,
9171,
29922,
5574,
1125,
13,
1678,
396,
14402,
1950,
20414,
29901,
772,
17387,
1999,
2548,
13,
29937,
268,
565,
2898,
29918,
386,
690,
1405,
29871,
29900,
29901,
13,
29937,
308,
1304,
29918,
13168,
29879,
353,
313,
13168,
29879,
1405,
2898,
29918,
386,
690,
467,
7411,
580,
396,
4889,
7581,
13,
29937,
268,
1683,
29901,
13,
1678,
1304,
29918,
13168,
29879,
353,
11105,
29879,
29889,
16513,
580,
13,
13,
1678,
396,
20830,
5225,
292,
8762,
297,
3786,
29871,
29906,
29900,
29906,
29900,
13,
1678,
565,
5139,
29918,
9171,
29901,
13,
4706,
1304,
29918,
13168,
29879,
353,
3394,
29918,
11466,
29918,
9171,
29898,
3880,
29918,
13168,
29879,
29897,
13,
13,
1678,
736,
1304,
29918,
13168,
29879,
334,
363,
267,
718,
313,
29896,
29889,
29900,
448,
1304,
29918,
13168,
29879,
29897,
334,
1250,
29879,
13,
13,
13,
1990,
1619,
11882,
29925,
4350,
16390,
24541,
29898,
16390,
24541,
1125,
13,
1678,
14550,
13,
1678,
8701,
8783,
770,
411,
363,
18128,
29892,
3239,
29892,
322,
13136,
11105,
16495,
408,
1967,
8974,
29889,
13,
1678,
9333,
697,
1203,
1122,
2615,
639,
1967,
29892,
1951,
278,
1203,
2302,
338,
451,
8126,
5702,
310,
29889,
13,
1678,
16969,
28190,
363,
18128,
9418,
29899,
12759,
7582,
29879,
408,
1532,
29889,
1174,
1454,
778,
2927,
313,
28212,
29897,
4558,
29889,
13,
1678,
14550,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
26839,
29918,
3972,
29892,
1250,
29918,
3972,
29892,
11105,
29918,
3972,
29922,
8516,
29892,
20088,
29918,
2015,
29920,
29918,
29888,
3466,
29922,
5574,
29892,
1400,
29918,
21476,
10457,
29896,
29892,
4818,
29918,
29883,
1336,
29922,
8824,
1125,
13,
4706,
1583,
29889,
1079,
29918,
3972,
353,
26839,
29918,
3972,
13,
4706,
1583,
29889,
1627,
29918,
3972,
353,
1250,
29918,
3972,
13,
4706,
1583,
29889,
9502,
29918,
2015,
29920,
29918,
29888,
3466,
353,
20088,
29918,
2015,
29920,
29918,
29888,
3466,
13,
4706,
565,
1400,
29918,
21476,
5277,
29871,
29900,
29901,
13,
9651,
1583,
29889,
2490,
29918,
13264,
353,
4327,
29879,
29889,
1762,
29911,
6073,
580,
396,
29436,
518,
29900,
29892,
29871,
29906,
29945,
29945,
29962,
304,
518,
29900,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29962,
13,
4706,
25342,
4818,
29918,
29883,
1336,
29901,
13,
9651,
396,
2538,
675,
718,
6862,
4818,
274,
1336,
13,
9651,
1583,
29889,
2490,
29918,
13264,
353,
4327,
29879,
29889,
1523,
4220,
4197,
13,
18884,
4327,
29879,
29889,
1762,
2227,
29931,
2940,
3285,
13,
18884,
4327,
29879,
29889,
1666,
675,
29898,
2490,
29918,
21476,
511,
13,
18884,
4327,
29879,
29889,
13409,
29907,
1336,
29898,
2490,
29918,
21476,
511,
13,
18884,
4327,
29879,
29889,
1762,
29911,
6073,
580,
13,
632,
2314,
13,
4706,
1683,
29901,
13,
9651,
396,
2538,
675,
1716,
13391,
29892,
10075,
1320,
441,
292,
278,
4558,
13,
9651,
1583,
29889,
2490,
29918,
13264,
353,
4327,
29879,
29889,
1523,
4220,
4197,
13,
18884,
4327,
29879,
29889,
1762,
2227,
29931,
2940,
3285,
13,
18884,
4327,
29879,
29889,
1666,
675,
3552,
2490,
29918,
21476,
29892,
1400,
29918,
21476,
8243,
13,
18884,
4327,
29879,
29889,
1762,
29911,
6073,
580,
13,
632,
2314,
13,
4706,
1583,
29889,
5349,
29918,
13168,
29879,
353,
313,
13168,
29918,
3972,
338,
451,
6213,
29897,
13,
13,
4706,
396,
16012,
599,
934,
10898,
29936,
934,
2983,
1818,
367,
278,
1021,
4822,
599,
29871,
29906,
470,
29871,
29941,
2183,
17525,
13,
4706,
396,
1583,
29889,
497,
29918,
1079,
29918,
5325,
353,
5159,
13,
4706,
396,
1583,
29889,
497,
29918,
13168,
29918,
5325,
353,
5159,
13,
4706,
396,
1583,
29889,
497,
29918,
1627,
29918,
5325,
353,
5159,
13,
4706,
396,
363,
7876,
297,
2897,
29889,
1761,
3972,
29898,
1079,
29918,
3972,
1125,
13,
4706,
396,
268,
26839,
29918,
18091,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1079,
29918,
3972,
29892,
7876,
29897,
13,
4706,
396,
268,
565,
2897,
29889,
2084,
29889,
275,
1445,
29898,
1079,
29918,
18091,
1125,
13,
4706,
396,
308,
1250,
29918,
18091,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1627,
29918,
3972,
29892,
7876,
29897,
13,
4706,
396,
308,
4974,
29898,
359,
29889,
2084,
29889,
275,
1445,
29898,
1627,
29918,
18091,
876,
13,
4706,
396,
308,
1583,
29889,
497,
29918,
1079,
29918,
5325,
29889,
4397,
29898,
1079,
29918,
18091,
29897,
13,
4706,
396,
308,
1583,
29889,
497,
29918,
1627,
29918,
5325,
29889,
4397,
29898,
1627,
29918,
18091,
29897,
13,
4706,
396,
308,
565,
1583,
29889,
5349,
29918,
13168,
29879,
29901,
13,
4706,
396,
632,
11105,
29918,
18091,
353,
2897,
29889,
2084,
29889,
7122,
29898,
13168,
29918,
3972,
29892,
7876,
29897,
13,
4706,
396,
632,
4974,
29898,
359,
29889,
2084,
29889,
275,
1445,
29898,
13168,
29918,
18091,
876,
13,
4706,
396,
632,
1583,
29889,
497,
29918,
13168,
29918,
5325,
29889,
4397,
29898,
13168,
29918,
18091,
29897,
13,
13,
4706,
396,
16012,
599,
934,
10898,
29936,
934,
2983,
1818,
367,
278,
1021,
4822,
363,
18128,
322,
10768,
362,
11105,
29879,
13,
4706,
1583,
29889,
497,
29918,
1079,
29918,
5325,
353,
5159,
13,
4706,
1583,
29889,
497,
29918,
13168,
29918,
5325,
353,
5159,
13,
4706,
1583,
29889,
497,
29918,
1627,
29918,
5325,
353,
5159,
13,
13,
4706,
363,
7876,
297,
2897,
29889,
1761,
3972,
29898,
1079,
29918,
3972,
1125,
13,
9651,
26839,
29918,
18091,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1079,
29918,
3972,
29892,
7876,
29897,
13,
9651,
1583,
29889,
497,
29918,
1079,
29918,
5325,
29889,
4397,
29898,
1079,
29918,
18091,
29897,
13,
9651,
565,
1583,
29889,
5349,
29918,
13168,
29879,
29901,
13,
18884,
11105,
29918,
18091,
29918,
6173,
353,
2897,
29889,
2084,
29889,
7122,
29898,
13168,
29918,
3972,
29892,
7876,
7503,
29899,
29946,
29962,
718,
15300,
6173,
1495,
13,
18884,
11105,
29918,
18091,
29918,
2732,
353,
2897,
29889,
2084,
29889,
7122,
29898,
13168,
29918,
3972,
29892,
7876,
7503,
29899,
29946,
29962,
718,
15300,
2732,
1495,
13,
18884,
565,
2897,
29889,
2084,
29889,
275,
1445,
29898,
13168,
29918,
18091,
29918,
6173,
1125,
13,
462,
1678,
1583,
29889,
497,
29918,
13168,
29918,
5325,
29889,
4397,
29898,
13168,
29918,
18091,
29918,
6173,
29897,
13,
18884,
25342,
2897,
29889,
2084,
29889,
275,
1445,
29898,
13168,
29918,
18091,
29918,
2732,
1125,
13,
462,
1678,
1583,
29889,
497,
29918,
13168,
29918,
5325,
29889,
4397,
29898,
13168,
29918,
18091,
29918,
2732,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
12020,
8960,
877,
3782,
9686,
11105,
934,
1476,
363,
525,
718,
26839,
29918,
18091,
29897,
13,
13,
4706,
363,
7876,
297,
2897,
29889,
1761,
3972,
29898,
1627,
29918,
3972,
1125,
13,
9651,
1250,
29918,
18091,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1627,
29918,
3972,
29892,
7876,
29897,
13,
9651,
1583,
29889,
497,
29918,
1627,
29918,
5325,
29889,
4397,
29898,
1627,
29918,
18091,
29897,
13,
308,
13,
4706,
1583,
29889,
1079,
29918,
2798,
353,
7431,
29898,
1311,
29889,
497,
29918,
1079,
29918,
5325,
29897,
13,
4706,
1583,
29889,
1627,
29918,
2798,
353,
7431,
29898,
1311,
29889,
497,
29918,
1627,
29918,
5325,
29897,
13,
4706,
1596,
877,
2940,
934,
2302,
29901,
525,
718,
851,
29898,
1311,
29889,
1079,
29918,
2798,
29897,
718,
525,
363,
18128,
29892,
525,
718,
851,
29898,
1311,
29889,
1627,
29918,
2798,
29897,
718,
525,
3239,
29892,
756,
11105,
29879,
29901,
525,
718,
851,
29898,
1311,
29889,
5349,
29918,
13168,
29879,
876,
13,
632,
13,
13,
1678,
822,
4770,
2435,
12035,
1311,
1125,
13,
4706,
736,
1583,
29889,
1079,
29918,
2798,
13,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
22645,
1125,
13,
4706,
396,
11004,
4036,
2264,
313,
267,
25009,
565,
954,
29918,
1287,
414,
1405,
29871,
29900,
29897,
13,
4706,
7442,
29889,
8172,
29889,
26776,
29898,
13140,
718,
938,
3552,
2230,
29889,
2230,
580,
334,
29871,
29953,
29945,
29946,
29941,
29906,
29896,
29897,
1273,
29871,
29896,
29906,
29941,
29946,
29945,
29953,
876,
13,
13,
4706,
396,
7523,
4036,
5101,
310,
4558,
515,
934,
1788,
13,
4706,
2551,
353,
7700,
13,
4706,
1550,
451,
29898,
8698,
1125,
13,
9651,
934,
29918,
13140,
353,
7442,
29889,
8172,
29889,
16957,
29898,
1311,
29889,
1079,
29918,
2798,
29897,
13,
9651,
285,
29886,
353,
1583,
29889,
497,
29918,
1079,
29918,
5325,
29961,
1445,
29918,
13140,
29962,
13,
9651,
26839,
29892,
2551,
353,
1303,
29918,
3027,
29918,
13716,
504,
29898,
18091,
29897,
13,
9651,
565,
451,
29898,
8698,
1125,
13,
18884,
6773,
13,
9651,
565,
1583,
29889,
5349,
29918,
13168,
29879,
29901,
13,
18884,
285,
29886,
353,
1583,
29889,
497,
29918,
13168,
29918,
5325,
29961,
1445,
29918,
13140,
29962,
13,
18884,
11105,
29892,
2551,
353,
1303,
29918,
3027,
29918,
13716,
504,
29898,
18091,
29892,
1601,
2878,
456,
2454,
29922,
5574,
29897,
13,
18884,
4974,
29898,
8698,
29897,
396,
1818,
1993,
26839,
13,
18884,
396,
11105,
353,
5135,
13168,
1405,
29871,
29900,
29897,
334,
29871,
29906,
29945,
29945,
29889,
29900,
467,
579,
668,
877,
13470,
29947,
1495,
396,
3588,
4964,
11105,
29879,
304,
2898,
13,
9651,
1683,
29901,
13,
18884,
11105,
353,
6213,
13,
462,
13,
9651,
396,
7523,
4036,
3239,
1967,
13,
4706,
2551,
353,
7700,
13,
4706,
1550,
451,
29898,
8698,
1125,
13,
9651,
934,
29918,
13140,
29906,
353,
7442,
29889,
8172,
29889,
16957,
29898,
1311,
29889,
1627,
29918,
2798,
29897,
13,
9651,
285,
29886,
353,
1583,
29889,
497,
29918,
1627,
29918,
5325,
29961,
1445,
29918,
13140,
29906,
29962,
13,
9651,
1250,
29892,
2551,
353,
1303,
29918,
3027,
29918,
13716,
504,
29898,
18091,
29897,
13,
13,
4706,
396,
7523,
28190,
363,
18128,
1967,
13,
4706,
2551,
353,
7700,
13,
4706,
1550,
451,
29898,
8698,
1125,
13,
9651,
934,
29918,
13140,
29941,
353,
7442,
29889,
8172,
29889,
16957,
29898,
1311,
29889,
1079,
29918,
2798,
29897,
13,
9651,
565,
934,
29918,
13140,
29941,
1275,
934,
29918,
13140,
29901,
13,
18884,
6773,
396,
1018,
1449,
29892,
2609,
5839,
1021,
1967,
13,
9651,
285,
29886,
353,
1583,
29889,
497,
29918,
1079,
29918,
5325,
29961,
1445,
29918,
13140,
29941,
29962,
13,
9651,
3805,
2674,
29892,
2551,
353,
1303,
29918,
3027,
29918,
13716,
504,
29898,
18091,
29897,
13,
632,
13,
4706,
396,
4103,
689,
363,
4872,
3885,
20532,
11105,
29879,
29897,
322,
3239,
29879,
13,
4706,
396,
6058,
29923,
29901,
13557,
4036,
19995,
1818,
367,
1754,
363,
777,
4558,
13,
4706,
565,
1583,
29889,
9502,
29918,
2015,
29920,
29918,
29888,
3466,
29901,
13,
9651,
565,
7442,
29889,
8172,
29889,
9502,
580,
529,
29871,
29900,
29889,
29945,
29901,
13,
18884,
26839,
353,
26839,
7503,
29892,
4761,
29899,
29896,
29892,
584,
1822,
8552,
580,
13,
18884,
565,
1583,
29889,
5349,
29918,
13168,
29879,
29901,
13,
462,
1678,
11105,
353,
11105,
7503,
29892,
4761,
29899,
29896,
29892,
584,
1822,
8552,
580,
13,
9651,
565,
7442,
29889,
8172,
29889,
9502,
580,
529,
29871,
29900,
29889,
29945,
29901,
13,
18884,
3805,
2674,
353,
3805,
2674,
7503,
29892,
4761,
29899,
29896,
29892,
584,
1822,
8552,
580,
13,
9651,
565,
7442,
29889,
8172,
29889,
9502,
580,
529,
29871,
29900,
29889,
29945,
29901,
13,
18884,
1250,
353,
1250,
7503,
29892,
4761,
29899,
29896,
29892,
584,
1822,
8552,
580,
13,
4706,
26839,
353,
1583,
29889,
2490,
29918,
13264,
29898,
1079,
29897,
13,
4706,
3805,
2674,
353,
1583,
29889,
2490,
29918,
13264,
29898,
381,
2674,
29897,
13,
4706,
1250,
353,
1583,
29889,
2490,
29918,
13264,
29898,
1627,
29897,
13,
4706,
565,
1583,
29889,
5349,
29918,
13168,
29879,
29901,
13,
9651,
11105,
353,
1583,
29889,
2490,
29918,
13264,
29898,
13168,
29897,
13,
13,
4706,
396,
1798,
1598,
15786,
13,
4706,
4974,
29898,
1079,
29889,
12181,
29961,
29896,
17531,
1275,
3805,
2674,
29889,
12181,
29961,
29896,
29901,
2314,
13,
4706,
4974,
29898,
1079,
29889,
12181,
29961,
29896,
17531,
1275,
1250,
29889,
12181,
29961,
29896,
29901,
2314,
13,
4706,
565,
1583,
29889,
5349,
29918,
13168,
29879,
29901,
13,
9651,
4974,
29898,
1079,
29889,
12181,
29961,
29896,
17531,
1275,
11105,
29889,
12181,
29961,
29896,
29901,
2314,
13,
13,
4706,
396,
6204,
5962,
287,
25713,
11105,
322,
20842,
13,
4706,
2920,
29892,
3171,
353,
26839,
29889,
12181,
29961,
29906,
1402,
26839,
29889,
12181,
29961,
29896,
29962,
396,
26839,
338,
313,
29907,
29892,
379,
29892,
399,
29897,
13,
4706,
330,
29888,
1296,
29918,
13168,
353,
1583,
29889,
2490,
29918,
13264,
29898,
3258,
29918,
8172,
29918,
29887,
29888,
1296,
29918,
13168,
29898,
2103,
29892,
3171,
876,
13,
4706,
752,
29918,
29887,
29888,
1296,
353,
3509,
29918,
16179,
29898,
1079,
29892,
330,
29888,
1296,
29918,
13168,
29892,
1250,
29897,
13,
13,
4706,
396,
1281,
4984,
8600,
29936,
1203,
2302,
338,
9815,
13,
4706,
1121,
353,
11117,
1079,
2396,
26839,
29892,
525,
1627,
2396,
1250,
29892,
525,
381,
2674,
2396,
3805,
2674,
29892,
525,
3318,
29918,
20047,
2396,
29871,
29896,
29892,
525,
29887,
29888,
1296,
29918,
13168,
2396,
330,
29888,
1296,
29918,
13168,
29892,
525,
2388,
29918,
29887,
29888,
1296,
2396,
752,
29918,
29887,
29888,
1296,
29913,
13,
4706,
565,
1583,
29889,
5349,
29918,
13168,
29879,
29901,
13,
9651,
1121,
1839,
13168,
2033,
353,
11105,
396,
1016,
29915,
29873,
731,
6213,
29892,
6467,
8095,
13,
13,
4706,
736,
1121,
13,
13,
13,
1990,
1619,
29903,
339,
5114,
16390,
24541,
29898,
16390,
24541,
1125,
13,
1678,
14550,
13,
1678,
8701,
8783,
770,
411,
925,
263,
4333,
310,
3239,
4558,
408,
2752,
29889,
13,
1678,
3118,
470,
901,
23116,
3618,
526,
23139,
304,
1653,
263,
363,
18128,
29892,
12515,
5702,
310,
1203,
2302,
29889,
13,
1678,
16969,
28190,
363,
18128,
9418,
29899,
12759,
7582,
29879,
408,
1532,
29889,
1174,
1454,
778,
2927,
313,
28212,
29897,
4558,
29889,
13,
1678,
14550,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1250,
29918,
3972,
29892,
20088,
29918,
2015,
29920,
29918,
29888,
3466,
29922,
5574,
29892,
694,
13344,
29922,
8824,
29892,
4236,
29918,
12650,
29922,
29896,
29900,
1125,
13,
4706,
1583,
29889,
1627,
29918,
3972,
353,
1250,
29918,
3972,
13,
4706,
1583,
29889,
9502,
29918,
2015,
29920,
29918,
29888,
3466,
353,
20088,
29918,
2015,
29920,
29918,
29888,
3466,
13,
4706,
1583,
29889,
2490,
29918,
13264,
353,
4327,
29879,
29889,
1762,
29911,
6073,
580,
396,
29436,
518,
29900,
29892,
29871,
29906,
29945,
29945,
29962,
304,
518,
29900,
29889,
29900,
29892,
29871,
29896,
29889,
29900,
29962,
13,
4706,
1583,
29889,
1217,
13344,
353,
694,
13344,
13,
4706,
1583,
29889,
3317,
29918,
12650,
353,
4236,
29918,
12650,
13,
13,
4706,
396,
16012,
599,
934,
10898,
29936,
934,
2983,
1818,
367,
278,
1021,
4822,
599,
29871,
29906,
470,
29871,
29941,
2183,
17525,
13,
4706,
1583,
29889,
497,
29918,
1627,
29918,
5325,
353,
5159,
13,
4706,
363,
7876,
297,
2897,
29889,
1761,
3972,
29898,
1627,
29918,
3972,
1125,
13,
9651,
1250,
29918,
18091,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1627,
29918,
3972,
29892,
7876,
29897,
13,
9651,
1583,
29889,
497,
29918,
1627,
29918,
5325,
29889,
4397,
29898,
1627,
29918,
18091,
29897,
13,
4706,
1583,
29889,
1445,
29918,
2798,
353,
7431,
29898,
1311,
29889,
497,
29918,
1627,
29918,
5325,
29897,
13,
13,
4706,
1596,
877,
2940,
934,
2302,
29901,
525,
718,
851,
29898,
1311,
29889,
1445,
29918,
2798,
29897,
718,
13420,
694,
13344,
29901,
525,
718,
851,
29898,
1311,
29889,
1217,
13344,
29897,
718,
13420,
4236,
3618,
29901,
525,
718,
851,
29898,
1311,
29889,
3317,
29918,
12650,
876,
13,
632,
13,
13,
1678,
822,
4770,
2435,
12035,
1311,
1125,
13,
4706,
736,
1583,
29889,
1445,
29918,
2798,
13,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
22645,
1125,
13,
4706,
396,
7523,
263,
4036,
21954,
29873,
313,
276,
6591,
718,
3239,
718,
28190,
29897,
310,
1661,
29899,
957,
433,
3262,
3239,
29879,
515,
934,
1788,
13,
4706,
2551,
353,
7700,
13,
4706,
1550,
451,
29898,
8698,
1125,
13,
9651,
934,
29918,
13140,
353,
7442,
29889,
8172,
29889,
16957,
29898,
1311,
29889,
1445,
29918,
2798,
29897,
13,
9651,
285,
29886,
353,
1583,
29889,
497,
29918,
1627,
29918,
5325,
29961,
1445,
29918,
13140,
29962,
13,
9651,
26839,
29892,
2551,
353,
1303,
29918,
3027,
29918,
13716,
504,
29898,
18091,
29897,
13,
4706,
2551,
353,
7700,
13,
4706,
1550,
451,
29898,
8698,
1125,
13,
9651,
934,
29918,
13140,
29906,
353,
7442,
29889,
8172,
29889,
16957,
29898,
1311,
29889,
1445,
29918,
2798,
29897,
13,
9651,
565,
934,
29918,
13140,
29906,
1275,
934,
29918,
13140,
29901,
13,
18884,
6773,
396,
1018,
1449,
29892,
2609,
5839,
1021,
1967,
13,
9651,
285,
29886,
353,
1583,
29889,
497,
29918,
1627,
29918,
5325,
29961,
1445,
29918,
13140,
29906,
29962,
13,
9651,
1250,
29892,
2551,
353,
1303,
29918,
3027,
29918,
13716,
504,
29898,
18091,
29897,
13,
4706,
2551,
353,
7700,
13,
4706,
1550,
451,
29898,
8698,
1125,
13,
9651,
934,
29918,
13140,
29941,
353,
7442,
29889,
8172,
29889,
16957,
29898,
1311,
29889,
1445,
29918,
2798,
29897,
13,
9651,
565,
934,
29918,
13140,
29941,
1275,
934,
29918,
13140,
470,
934,
29918,
13140,
29941,
1275,
934,
29918,
13140,
29906,
29901,
13,
18884,
6773,
396,
1018,
1449,
29892,
2609,
5839,
1021,
1967,
13,
9651,
285,
29886,
353,
1583,
29889,
497,
29918,
1627,
29918,
5325,
29961,
1445,
29918,
13140,
29941,
29962,
13,
9651,
3805,
2674,
29892,
2551,
353,
1303,
29918,
3027,
29918,
13716,
504,
29898,
18091,
29897,
13,
13,
4706,
396,
6204,
6590,
363,
4872,
3885,
322,
11105,
29879,
29936,
5967,
3935,
3239,
443,
15033,
13,
4706,
26839,
29892,
11105,
29879,
29892,
1203,
29918,
20047,
353,
10675,
29918,
26613,
5114,
29898,
1079,
29892,
694,
13344,
29922,
1311,
29889,
1217,
13344,
29892,
18196,
29922,
1311,
29889,
3317,
29918,
12650,
29897,
13,
4706,
3805,
2674,
29892,
17117,
903,
353,
10675,
29918,
26613,
5114,
29898,
381,
2674,
29892,
694,
13344,
29922,
1311,
29889,
1217,
13344,
29892,
18196,
29922,
1311,
29889,
3317,
29918,
12650,
29897,
13,
632,
13,
4706,
396,
4103,
689,
363,
4872,
3885,
20532,
11105,
29879,
29897,
322,
3239,
29879,
13,
4706,
396,
6058,
29923,
29901,
13557,
4036,
19995,
1818,
367,
1754,
363,
777,
4558,
13,
4706,
565,
1583,
29889,
9502,
29918,
2015,
29920,
29918,
29888,
3466,
29901,
13,
9651,
565,
7442,
29889,
8172,
29889,
9502,
580,
529,
29871,
29900,
29889,
29945,
29901,
13,
18884,
26839,
353,
26839,
7503,
29892,
4761,
29899,
29896,
29892,
584,
1822,
8552,
580,
13,
18884,
11105,
29879,
353,
11105,
29879,
7503,
29892,
4761,
29899,
29896,
29892,
584,
1822,
8552,
580,
13,
9651,
565,
7442,
29889,
8172,
29889,
9502,
580,
529,
29871,
29900,
29889,
29945,
29901,
13,
18884,
3805,
2674,
353,
3805,
2674,
7503,
29892,
4761,
29899,
29896,
29892,
584,
1822,
8552,
580,
13,
9651,
565,
7442,
29889,
8172,
29889,
9502,
580,
529,
29871,
29900,
29889,
29945,
29901,
13,
18884,
1250,
353,
1250,
7503,
29892,
4761,
29899,
29896,
29892,
584,
1822,
8552,
580,
13,
4706,
26839,
353,
1583,
29889,
2490,
29918,
13264,
29898,
1079,
29897,
13,
4706,
11105,
29879,
353,
1583,
29889,
2490,
29918,
13264,
29898,
13168,
29879,
29897,
13,
4706,
3805,
2674,
353,
1583,
29889,
2490,
29918,
13264,
29898,
381,
2674,
29897,
13,
4706,
1250,
353,
1583,
29889,
2490,
29918,
13264,
29898,
1627,
29897,
13,
13,
4706,
396,
6204,
5962,
287,
25713,
11105,
322,
20842,
13,
4706,
2920,
29892,
3171,
353,
26839,
29889,
12181,
29961,
29906,
1402,
26839,
29889,
12181,
29961,
29896,
29962,
396,
26839,
338,
313,
29907,
29892,
379,
29892,
399,
29897,
13,
4706,
330,
29888,
1296,
29918,
13168,
353,
1583,
29889,
2490,
29918,
13264,
29898,
3258,
29918,
8172,
29918,
29887,
29888,
1296,
29918,
13168,
29898,
2103,
29892,
3171,
876,
13,
4706,
752,
29918,
29887,
29888,
1296,
353,
3509,
29918,
16179,
29898,
1079,
29892,
330,
29888,
1296,
29918,
13168,
29892,
1250,
29897,
13,
13,
4706,
396,
1281,
4984,
8600,
13,
4706,
1121,
353,
11117,
1079,
2396,
26839,
29892,
525,
1627,
2396,
1250,
29892,
525,
381,
2674,
2396,
3805,
2674,
29892,
525,
13168,
2396,
11105,
29879,
29892,
525,
3318,
29918,
20047,
2396,
1203,
29918,
20047,
29892,
525,
29887,
29888,
1296,
29918,
13168,
2396,
330,
29888,
1296,
29918,
13168,
29892,
525,
2388,
29918,
29887,
29888,
1296,
2396,
752,
29918,
29887,
29888,
1296,
29913,
13,
4706,
736,
1121,
13,
2
] |
dpx2ffv1/test.py | DerouineauNicolas/dpx_to_ffv1 | 0 | 1605438 | <reponame>DerouineauNicolas/dpx_to_ffv1<filename>dpx2ffv1/test.py<gh_stars>0
from unittest import TestCase
from dpx2ffv1.dpx2ffv1 import dpx2ffv1
class TestJoke(TestCase):
def test_main_function(self):
out = dpx2ffv1('./test/', 'out.mkv', 24)
assert(out == 0)
if __name__ == '__main__':
unittest.main() | [
1,
529,
276,
1112,
420,
29958,
15383,
283,
457,
585,
29940,
5283,
294,
29914,
29881,
1756,
29918,
517,
29918,
600,
29894,
29896,
29966,
9507,
29958,
29881,
1756,
29906,
600,
29894,
29896,
29914,
1688,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
443,
27958,
1053,
4321,
8259,
13,
3166,
270,
1756,
29906,
600,
29894,
29896,
29889,
29881,
1756,
29906,
600,
29894,
29896,
1053,
270,
1756,
29906,
600,
29894,
29896,
13,
13,
1990,
4321,
29967,
6946,
29898,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
3396,
29918,
2220,
29898,
1311,
1125,
13,
4706,
714,
353,
270,
1756,
29906,
600,
29894,
29896,
877,
6904,
1688,
29914,
742,
525,
449,
29889,
11256,
29894,
742,
29871,
29906,
29946,
29897,
13,
4706,
4974,
29898,
449,
1275,
29871,
29900,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
443,
27958,
29889,
3396,
580,
2
] |
RSA_keys.py | davarbri/jpegForensics | 0 | 59093 | <filename>RSA_keys.py
# !/usr/bin/python3
# RSA_keys.py
# <NAME>
# January 2022
# usage: python RSA_keys.py <bitslenght>
# --------------------------------------------
# The script generates a public and private
# RSA key pair of the desired length.
# Only 1024, 2048 and 4096 bits are possible
# --------------------------------------------
import sys
from Crypto.PublicKey import RSA
def main():
# possible key length in bits
valid_length_keys = [1024,2048,4096]
try:
length = int(sys.argv[1])
if (length in valid_length_keys):
generate_key(length)
else:
print("That was no valid length")
except ValueError:
print("Oops! That was no valid input. Try again...")
def generate_key(length):
print("[] Generating", length, "bits RSA key pair...")
key = RSA.generate(length)
# Private key
private_key = key.export_key()
try:
file_out = open("private.pem", "wb")
file_out.write(private_key)
print(" [+] Private keyring file written...")
except IOError:
msg = "Unable to create Private Key File, private.pem, on disk"
print(msg)
finally:
file_out.close()
# Public key
public_key = key.publickey().export_key()
try:
file_out = open("public.pem", "wb")
file_out.write(public_key)
print(" [+] Public keyring file written...")
except IOError:
msg = "Unable to create Public Key File, public.pem, on disk"
print(msg)
finally:
file_out.close()
if __name__ == "__main__":
if len(sys.argv) != 2:
print("usage: python RSA_keys.py <bitslenght>")
else:
main() | [
1,
529,
9507,
29958,
29934,
8132,
29918,
8149,
29889,
2272,
13,
29937,
1738,
29914,
4855,
29914,
2109,
29914,
4691,
29941,
30004,
13,
29937,
390,
8132,
29918,
8149,
29889,
2272,
30004,
13,
29937,
529,
5813,
3238,
13,
29937,
5490,
29871,
29906,
29900,
29906,
29906,
30004,
13,
29937,
8744,
29901,
3017,
390,
8132,
29918,
8149,
29889,
2272,
529,
14836,
29880,
996,
400,
3238,
13,
29937,
448,
2683,
2683,
1378,
5634,
30004,
13,
29937,
450,
2471,
16785,
263,
970,
322,
2024,
6756,
13,
29937,
390,
8132,
1820,
5101,
310,
278,
7429,
3309,
22993,
13,
29937,
9333,
259,
29896,
29900,
29906,
29946,
29892,
29871,
29906,
29900,
29946,
29947,
322,
29871,
29946,
29900,
29929,
29953,
9978,
526,
1950,
30004,
13,
29937,
448,
2683,
2683,
1378,
5634,
30004,
13,
30004,
13,
30004,
13,
5215,
10876,
30004,
13,
3166,
315,
17929,
29889,
19858,
2558,
1053,
390,
8132,
30004,
13,
30004,
13,
1753,
1667,
7295,
30004,
13,
1678,
396,
1950,
1820,
3309,
297,
9978,
30004,
13,
1678,
2854,
29918,
2848,
29918,
8149,
353,
518,
29896,
29900,
29906,
29946,
29892,
29906,
29900,
29946,
29947,
29892,
29946,
29900,
29929,
29953,
29962,
30004,
13,
1678,
1018,
29901,
30004,
13,
4706,
3309,
353,
938,
29898,
9675,
29889,
19218,
29961,
29896,
2314,
30004,
13,
4706,
565,
313,
2848,
297,
2854,
29918,
2848,
29918,
8149,
1125,
30004,
13,
9651,
5706,
29918,
1989,
29898,
2848,
29897,
539,
6756,
13,
4706,
1683,
29901,
30004,
13,
9651,
1596,
703,
7058,
471,
694,
2854,
3309,
1159,
30004,
13,
1678,
5174,
7865,
2392,
29901,
30004,
13,
4706,
1596,
703,
29949,
3554,
29991,
2193,
471,
694,
2854,
1881,
29889,
3967,
1449,
856,
1159,
30004,
13,
30004,
13,
418,
6756,
13,
1753,
5706,
29918,
1989,
29898,
2848,
1125,
30004,
13,
1678,
1596,
703,
2636,
3251,
1218,
613,
3309,
29892,
376,
14836,
390,
8132,
1820,
5101,
856,
1159,
30004,
13,
1678,
1820,
353,
390,
8132,
29889,
17158,
29898,
2848,
8443,
13,
4706,
6756,
13,
1678,
396,
12230,
1820,
30004,
13,
1678,
2024,
29918,
1989,
353,
1820,
29889,
15843,
29918,
1989,
26471,
13,
1678,
1018,
29901,
30004,
13,
4706,
934,
29918,
449,
353,
1722,
703,
9053,
29889,
29886,
331,
613,
376,
29893,
29890,
1159,
30004,
13,
4706,
934,
29918,
449,
29889,
3539,
29898,
9053,
29918,
1989,
8443,
13,
4706,
1596,
703,
1678,
518,
29974,
29962,
12230,
1820,
5393,
934,
3971,
856,
1159,
30004,
13,
1678,
5174,
10663,
2392,
29901,
30004,
13,
4706,
10191,
353,
376,
2525,
519,
304,
1653,
12230,
7670,
3497,
29892,
2024,
29889,
29886,
331,
29892,
373,
8086,
19451,
13,
4706,
1596,
29898,
7645,
8443,
13,
1678,
7146,
29901,
30004,
13,
4706,
934,
29918,
449,
29889,
5358,
26471,
13,
30004,
13,
1678,
396,
5236,
1820,
30004,
13,
1678,
970,
29918,
1989,
353,
1820,
29889,
3597,
1989,
2141,
15843,
29918,
1989,
26471,
13,
1678,
1018,
29901,
30004,
13,
4706,
934,
29918,
449,
353,
1722,
703,
3597,
29889,
29886,
331,
613,
376,
29893,
29890,
1159,
30004,
13,
4706,
934,
29918,
449,
29889,
3539,
29898,
3597,
29918,
1989,
8443,
13,
4706,
1596,
703,
1678,
518,
29974,
29962,
5236,
1820,
5393,
934,
3971,
856,
1159,
30004,
13,
1678,
5174,
10663,
2392,
29901,
30004,
13,
4706,
10191,
353,
376,
2525,
519,
304,
1653,
5236,
7670,
3497,
29892,
970,
29889,
29886,
331,
29892,
373,
8086,
19451,
13,
4706,
1596,
29898,
7645,
8443,
13,
1678,
7146,
29901,
30004,
13,
4706,
934,
29918,
449,
29889,
5358,
26471,
13,
30004,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
30004,
13,
1678,
565,
7431,
29898,
9675,
29889,
19218,
29897,
2804,
29871,
29906,
29901,
30004,
13,
4706,
1596,
703,
21125,
29901,
3017,
390,
8132,
29918,
8149,
29889,
2272,
529,
14836,
29880,
996,
400,
29958,
1159,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
1667,
580,
2
] |
test/test_vlan_group.py | nrfta/python-netbox-client | 0 | 16388 | <filename>test/test_vlan_group.py
# coding: utf-8
"""
NetBox API
API to access NetBox # noqa: E501
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import netbox_client
from netbox_client.models.vlan_group import VLANGroup # noqa: E501
from netbox_client.rest import ApiException
class TestVLANGroup(unittest.TestCase):
"""VLANGroup unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testVLANGroup(self):
"""Test VLANGroup"""
# FIXME: construct object with mandatory attributes with example values
# model = netbox_client.models.vlan_group.VLANGroup() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| [
1,
529,
9507,
29958,
1688,
29914,
1688,
29918,
29894,
6468,
29918,
2972,
29889,
2272,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
15945,
29908,
13,
1678,
12670,
3313,
3450,
13,
13,
1678,
3450,
304,
2130,
12670,
3313,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
13,
13,
1678,
4673,
8787,
1580,
1873,
29901,
29871,
29906,
29889,
29947,
13,
268,
13,
1678,
3251,
630,
491,
29901,
2045,
597,
3292,
29889,
510,
29914,
2774,
9921,
29899,
2754,
29914,
2774,
9921,
29899,
401,
1885,
29889,
5559,
13,
15945,
29908,
13,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
13,
5215,
443,
27958,
13,
13,
5215,
7787,
1884,
29918,
4645,
13,
3166,
7787,
1884,
29918,
4645,
29889,
9794,
29889,
29894,
6468,
29918,
2972,
1053,
478,
29931,
2190,
4782,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
13,
3166,
7787,
1884,
29918,
4645,
29889,
5060,
1053,
29749,
2451,
13,
13,
13,
1990,
4321,
29963,
29931,
2190,
4782,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
9995,
29963,
29931,
2190,
4782,
5190,
1243,
19281,
29879,
15945,
29908,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
822,
1243,
29963,
29931,
2190,
4782,
29898,
1311,
1125,
13,
4706,
9995,
3057,
478,
29931,
2190,
4782,
15945,
29908,
13,
4706,
396,
383,
6415,
2303,
29901,
3386,
1203,
411,
9619,
7606,
8393,
411,
1342,
1819,
13,
4706,
396,
1904,
353,
7787,
1884,
29918,
4645,
29889,
9794,
29889,
29894,
6468,
29918,
2972,
29889,
29963,
29931,
2190,
4782,
580,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
13,
4706,
1209,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
Linked List/ListNode.py | paulpatault/Algorithmic | 0 | 154208 | <gh_stars>0
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
def __repr__(self):
node = self
output = ""
while node != None:
output += str(node.val)
output += " "
node = node.next
return output
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
1990,
2391,
4247,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
921,
1125,
13,
4706,
1583,
29889,
791,
353,
921,
13,
4706,
1583,
29889,
4622,
353,
6213,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
2943,
353,
1583,
13,
4706,
1962,
353,
5124,
13,
4706,
1550,
2943,
2804,
6213,
29901,
13,
9651,
1962,
4619,
851,
29898,
3177,
29889,
791,
29897,
13,
9651,
1962,
4619,
376,
376,
13,
9651,
2943,
353,
2943,
29889,
4622,
13,
4706,
736,
1962,
13,
2
] |
project/repository/user.py | tobiasaditya/fastapi-blog | 0 | 21890 | from typing import List
from fastapi import APIRouter
from fastapi.params import Depends
from fastapi import HTTPException, status
from sqlalchemy.orm.session import Session
from project import schema, models, database, hashing
router = APIRouter(
prefix="/user",
tags=['Users']
)
@router.post('/new')
def create_user(request:schema.User, db:Session = Depends(database.get_db)):
hashed_pass = hashing.get_password_hash(request.password)
new_user = models.User(name = request.name,username = request.username, password = hashed_pass)
db.add(new_user)
db.commit()
db.refresh(new_user)
return request
@router.get('/find', response_model= List[schema.showUser])
def show_user_all(db:Session=Depends(database.get_db)):
all_users = db.query(models.User).all()
return all_users
@router.get('/find/{id}',response_model= schema.showUser)
def show_user_id(id:int, db:Session = Depends(database.get_db)):
selected_project = db.query(models.User).filter(models.User.id == id).first()
if not selected_project:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND,detail=f"User {id} not found.")
return selected_project
# @router.put('/{id}')
# def update_project_id(id:int,request:schema.Project,db:Session = Depends(database.get_db)):
# #Search for projects' id
# selected_project = db.query(models.Project).filter(models.Project.id == id)
# if not selected_project.first():
# raise HTTPException(status_code=status.HTTP_404_NOT_FOUND,detail=f"Project {id} not found.")
# selected_project.update(dict(request))
# return {'status':f'project {id} updated'}
# @router.delete('/{id}')
# def delete_project_id(id:int,db:Session = Depends(database.get_db)):
# selected_project = db.query(models.Project).filter(models.Project.id == id).first()
# if not selected_project:
# raise HTTPException(status_code=status.HTTP_404_NOT_FOUND,detail=f"Project {id} not found.")
# db.delete(selected_project)
# db.commit()
# return {'status':f'delete project_id {id} successful'}
| [
1,
515,
19229,
1053,
2391,
13,
3166,
5172,
2754,
1053,
3450,
23971,
13,
3166,
5172,
2754,
29889,
7529,
1053,
10034,
1975,
13,
3166,
5172,
2754,
1053,
7331,
2451,
29892,
4660,
13,
3166,
4576,
284,
305,
6764,
29889,
555,
29889,
7924,
1053,
16441,
13,
3166,
2060,
1053,
10938,
29892,
4733,
29892,
2566,
29892,
756,
2790,
13,
13,
15140,
353,
3450,
23971,
29898,
13,
1678,
10944,
13802,
1792,
613,
13,
1678,
8282,
29922,
1839,
5959,
2033,
13,
29897,
13,
13,
29992,
15140,
29889,
2490,
11219,
1482,
1495,
13,
1753,
1653,
29918,
1792,
29898,
3827,
29901,
11010,
29889,
2659,
29892,
4833,
29901,
7317,
353,
10034,
1975,
29898,
9803,
29889,
657,
29918,
2585,
22164,
13,
1678,
6608,
287,
29918,
3364,
353,
756,
2790,
29889,
657,
29918,
5630,
29918,
8568,
29898,
3827,
29889,
5630,
29897,
13,
1678,
716,
29918,
1792,
353,
4733,
29889,
2659,
29898,
978,
353,
2009,
29889,
978,
29892,
6786,
353,
2009,
29889,
6786,
29892,
4800,
353,
6608,
287,
29918,
3364,
29897,
13,
1678,
4833,
29889,
1202,
29898,
1482,
29918,
1792,
29897,
13,
1678,
4833,
29889,
15060,
580,
13,
1678,
4833,
29889,
22379,
29898,
1482,
29918,
1792,
29897,
13,
1678,
736,
2009,
13,
13,
29992,
15140,
29889,
657,
11219,
2886,
742,
2933,
29918,
4299,
29922,
2391,
29961,
11010,
29889,
4294,
2659,
2314,
13,
1753,
1510,
29918,
1792,
29918,
497,
29898,
2585,
29901,
7317,
29922,
8498,
1975,
29898,
9803,
29889,
657,
29918,
2585,
22164,
13,
1678,
599,
29918,
7193,
353,
4833,
29889,
1972,
29898,
9794,
29889,
2659,
467,
497,
580,
13,
1678,
736,
599,
29918,
7193,
13,
13,
29992,
15140,
29889,
657,
11219,
2886,
19248,
333,
29913,
742,
5327,
29918,
4299,
29922,
10938,
29889,
4294,
2659,
29897,
13,
1753,
1510,
29918,
1792,
29918,
333,
29898,
333,
29901,
524,
29892,
4833,
29901,
7317,
353,
10034,
1975,
29898,
9803,
29889,
657,
29918,
2585,
22164,
13,
1678,
4629,
29918,
4836,
353,
4833,
29889,
1972,
29898,
9794,
29889,
2659,
467,
4572,
29898,
9794,
29889,
2659,
29889,
333,
1275,
1178,
467,
4102,
580,
13,
13,
1678,
565,
451,
4629,
29918,
4836,
29901,
13,
4706,
12020,
7331,
2451,
29898,
4882,
29918,
401,
29922,
4882,
29889,
10493,
29918,
29946,
29900,
29946,
29918,
12256,
29918,
5800,
18783,
29892,
16432,
29922,
29888,
29908,
2659,
426,
333,
29913,
451,
1476,
23157,
13,
13,
1678,
736,
4629,
29918,
4836,
13,
13,
29937,
732,
15140,
29889,
649,
11219,
29912,
333,
29913,
1495,
13,
29937,
822,
2767,
29918,
4836,
29918,
333,
29898,
333,
29901,
524,
29892,
3827,
29901,
11010,
29889,
7653,
29892,
2585,
29901,
7317,
353,
10034,
1975,
29898,
9803,
29889,
657,
29918,
2585,
22164,
13,
29937,
268,
396,
7974,
363,
9279,
29915,
1178,
13,
29937,
268,
4629,
29918,
4836,
353,
4833,
29889,
1972,
29898,
9794,
29889,
7653,
467,
4572,
29898,
9794,
29889,
7653,
29889,
333,
1275,
1178,
29897,
13,
13,
29937,
268,
565,
451,
4629,
29918,
4836,
29889,
4102,
7295,
13,
29937,
308,
12020,
7331,
2451,
29898,
4882,
29918,
401,
29922,
4882,
29889,
10493,
29918,
29946,
29900,
29946,
29918,
12256,
29918,
5800,
18783,
29892,
16432,
29922,
29888,
29908,
7653,
426,
333,
29913,
451,
1476,
23157,
13,
13,
13,
29937,
268,
4629,
29918,
4836,
29889,
5504,
29898,
8977,
29898,
3827,
876,
13,
13,
29937,
268,
736,
11117,
4882,
2396,
29888,
29915,
4836,
426,
333,
29913,
4784,
10827,
13,
13,
13,
13,
29937,
732,
15140,
29889,
8143,
11219,
29912,
333,
29913,
1495,
13,
29937,
822,
5217,
29918,
4836,
29918,
333,
29898,
333,
29901,
524,
29892,
2585,
29901,
7317,
353,
10034,
1975,
29898,
9803,
29889,
657,
29918,
2585,
22164,
13,
29937,
268,
4629,
29918,
4836,
353,
4833,
29889,
1972,
29898,
9794,
29889,
7653,
467,
4572,
29898,
9794,
29889,
7653,
29889,
333,
1275,
1178,
467,
4102,
580,
13,
13,
29937,
268,
565,
451,
4629,
29918,
4836,
29901,
13,
29937,
308,
12020,
7331,
2451,
29898,
4882,
29918,
401,
29922,
4882,
29889,
10493,
29918,
29946,
29900,
29946,
29918,
12256,
29918,
5800,
18783,
29892,
16432,
29922,
29888,
29908,
7653,
426,
333,
29913,
451,
1476,
23157,
13,
13,
29937,
268,
4833,
29889,
8143,
29898,
8391,
29918,
4836,
29897,
13,
29937,
268,
4833,
29889,
15060,
580,
13,
13,
29937,
268,
736,
11117,
4882,
2396,
29888,
29915,
8143,
2060,
29918,
333,
426,
333,
29913,
9150,
10827,
13,
13,
2
] |
test_mersenne.py | Crulzor/algorithms-python-intro-ex | 0 | 26134 | <reponame>Crulzor/algorithms-python-intro-ex<filename>test_mersenne.py
from mersenne import generatePotentialMP, isPrime
def test_generatePotentialMP():
assert(generatePotentialMP(2) == 3)
assert(generatePotentialMP(1) ==1)
def test_isPrime():
assert(isPrime(7))
assert(isPrime(2))
assert(isPrime(3))
assert(isPrime(4) == False) | [
1,
529,
276,
1112,
420,
29958,
20647,
352,
29015,
29914,
9564,
12404,
29899,
4691,
29899,
23333,
29899,
735,
29966,
9507,
29958,
1688,
29918,
13269,
4584,
29889,
2272,
13,
3166,
286,
414,
4584,
1053,
5706,
29925,
327,
2556,
3580,
29892,
338,
4040,
603,
13,
13,
1753,
1243,
29918,
17158,
29925,
327,
2556,
3580,
7295,
13,
1678,
4974,
29898,
17158,
29925,
327,
2556,
3580,
29898,
29906,
29897,
1275,
29871,
29941,
29897,
13,
1678,
4974,
29898,
17158,
29925,
327,
2556,
3580,
29898,
29896,
29897,
1275,
29896,
29897,
13,
13,
1753,
1243,
29918,
275,
4040,
603,
7295,
13,
1678,
4974,
29898,
275,
4040,
603,
29898,
29955,
876,
13,
1678,
4974,
29898,
275,
4040,
603,
29898,
29906,
876,
13,
1678,
4974,
29898,
275,
4040,
603,
29898,
29941,
876,
13,
1678,
4974,
29898,
275,
4040,
603,
29898,
29946,
29897,
1275,
7700,
29897,
2
] |
tests/test_files/kwonly_arg_annotated.py | misteraverin/flake8-annotations-coverage | 29 | 159131 | <reponame>misteraverin/flake8-annotations-coverage
def foo():
pass
def bar(*args, kwonly_arg: str = None):
pass
| [
1,
529,
276,
1112,
420,
29958,
29885,
1531,
12483,
262,
29914,
29888,
433,
446,
29947,
29899,
6735,
800,
29899,
11911,
482,
13,
1753,
7953,
7295,
13,
1678,
1209,
13,
13,
13,
1753,
2594,
10456,
5085,
29892,
9049,
6194,
29918,
1191,
29901,
851,
353,
6213,
1125,
13,
1678,
1209,
13,
2
] |
setup.py | NoamNol/gematriapy | 1 | 96771 | <reponame>NoamNol/gematriapy
import setuptools
import gematriapy
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="gematriapy",
version=gematriapy.__version__,
author="<NAME>",
author_email="<EMAIL>",
description=gematriapy.__doc__,
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/NoamNol/gematriapy",
packages=['gematriapy'],
license="MIT",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
'Development Status :: 4 - Beta',
],
keywords="hebrew gematria gematriapy",
python_requires='>=3.7',
)
| [
1,
529,
276,
1112,
420,
29958,
3782,
314,
29940,
324,
29914,
29887,
4579,
374,
27580,
13,
5215,
731,
21245,
8789,
13,
5215,
330,
4579,
374,
27580,
13,
13,
2541,
1722,
703,
16310,
2303,
29889,
3487,
613,
376,
29878,
613,
8025,
543,
9420,
29899,
29947,
1159,
408,
285,
29882,
29901,
13,
1678,
1472,
29918,
8216,
353,
285,
29882,
29889,
949,
580,
13,
13,
842,
21245,
8789,
29889,
14669,
29898,
13,
1678,
1024,
543,
29887,
4579,
374,
27580,
613,
13,
1678,
1873,
29922,
29887,
4579,
374,
27580,
17255,
3259,
1649,
29892,
13,
1678,
4148,
543,
29966,
5813,
28341,
13,
1678,
4148,
29918,
5269,
543,
29966,
26862,
6227,
28341,
13,
1678,
6139,
29922,
29887,
4579,
374,
27580,
17255,
1514,
1649,
29892,
13,
1678,
1472,
29918,
8216,
29922,
5426,
29918,
8216,
29892,
13,
1678,
1472,
29918,
8216,
29918,
3051,
29918,
1853,
543,
726,
29914,
3502,
3204,
613,
13,
1678,
3142,
543,
991,
597,
3292,
29889,
510,
29914,
3782,
314,
29940,
324,
29914,
29887,
4579,
374,
27580,
613,
13,
1678,
9741,
29922,
1839,
29887,
4579,
374,
27580,
7464,
13,
1678,
19405,
543,
26349,
613,
13,
1678,
770,
14903,
11759,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
613,
13,
4706,
376,
29931,
293,
1947,
4761,
438,
5425,
28268,
1490,
4761,
341,
1806,
19245,
613,
13,
4706,
376,
7094,
1218,
2184,
4761,
6570,
25266,
613,
13,
4706,
525,
21956,
358,
16034,
4761,
29871,
29946,
448,
350,
1187,
742,
13,
1678,
21251,
13,
1678,
29361,
543,
354,
1030,
29893,
330,
4579,
2849,
330,
4579,
374,
27580,
613,
13,
1678,
3017,
29918,
276,
339,
2658,
2433,
18572,
29941,
29889,
29955,
742,
13,
29897,
13,
2
] |
upcfcardsearch/c106.py | ProfessorSean/Kasutamaiza | 0 | 192069 | <filename>upcfcardsearch/c106.py
import discord
from discord.ext import commands
from discord.utils import get
class c106(commands.Cog, name="c106"):
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name='Golden_Statue_in_the_Sky', aliases=['c106'])
async def example_embed(self, ctx):
embed = discord.Embed(title='Golden Statue in the Sky',
color=0xA086B7)
embed.set_thumbnail(url='https://www.duelingbook.com/images/custom-pics/2300000/2321563.jpg')
embed.add_field(name='Status (Archetype)', value='Casual:3/Tournament:3', inline=True)
embed.add_field(name='Type (Attribute)', value='Rock/Fusion (LIGHT)', inline=False)
embed.add_field(name='Level (ATK/DEF)', value='8 (1000/3500)', inline=False)
embed.add_field(name='Monster Effect', value='1 Fairy monster + 1 Rock monster', inline=False)
embed.set_footer(text='Set Code: ANCF')
await ctx.send(embed=embed)
def setup(bot: commands.Bot):
bot.add_cog(c106(bot)) | [
1,
529,
9507,
29958,
786,
6854,
7543,
4478,
29914,
29883,
29896,
29900,
29953,
29889,
2272,
13,
5215,
2313,
536,
13,
3166,
2313,
536,
29889,
1062,
1053,
8260,
13,
3166,
2313,
536,
29889,
13239,
1053,
679,
13,
13,
1990,
274,
29896,
29900,
29953,
29898,
26381,
29889,
29907,
468,
29892,
1024,
543,
29883,
29896,
29900,
29953,
29908,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
9225,
29901,
8260,
29889,
29933,
327,
1125,
13,
4706,
1583,
29889,
7451,
353,
9225,
13,
1678,
732,
26381,
29889,
6519,
29898,
978,
2433,
29954,
1025,
264,
29918,
9513,
434,
29918,
262,
29918,
1552,
29918,
29903,
3459,
742,
14430,
2129,
29922,
1839,
29883,
29896,
29900,
29953,
11287,
13,
1678,
7465,
822,
1342,
29918,
17987,
29898,
1311,
29892,
12893,
1125,
13,
4706,
8297,
353,
2313,
536,
29889,
6026,
2580,
29898,
3257,
2433,
29954,
1025,
264,
6666,
434,
297,
278,
16572,
742,
13,
462,
795,
2927,
29922,
29900,
29916,
29909,
29900,
29947,
29953,
29933,
29955,
29897,
13,
4706,
8297,
29889,
842,
29918,
386,
21145,
29898,
2271,
2433,
991,
597,
1636,
29889,
700,
14067,
2909,
29889,
510,
29914,
8346,
29914,
6341,
29899,
29886,
1199,
29914,
29906,
29941,
29900,
29900,
29900,
29900,
29900,
29914,
29906,
29941,
29906,
29896,
29945,
29953,
29941,
29889,
6173,
1495,
13,
13,
4706,
8297,
29889,
1202,
29918,
2671,
29898,
978,
2433,
5709,
313,
13197,
300,
668,
29897,
742,
995,
2433,
29907,
294,
950,
29901,
29941,
29914,
29911,
2905,
1166,
29901,
29941,
742,
10583,
29922,
5574,
29897,
13,
4706,
8297,
29889,
1202,
29918,
2671,
29898,
978,
2433,
1542,
313,
6708,
29897,
742,
995,
2433,
29934,
1698,
29914,
29943,
3958,
313,
5265,
29954,
3912,
29897,
742,
10583,
29922,
8824,
29897,
13,
4706,
8297,
29889,
1202,
29918,
2671,
29898,
978,
2433,
10108,
313,
1299,
29968,
29914,
24405,
29897,
742,
995,
2433,
29947,
313,
29896,
29900,
29900,
29900,
29914,
29941,
29945,
29900,
29900,
29897,
742,
10583,
29922,
8824,
29897,
13,
4706,
8297,
29889,
1202,
29918,
2671,
29898,
978,
2433,
7185,
2475,
26475,
742,
995,
2433,
29896,
13822,
29891,
1601,
2475,
718,
29871,
29896,
8027,
1601,
2475,
742,
10583,
29922,
8824,
29897,
13,
4706,
8297,
29889,
842,
29918,
21720,
29898,
726,
2433,
2697,
5920,
29901,
13764,
9207,
1495,
13,
13,
4706,
7272,
12893,
29889,
6717,
29898,
17987,
29922,
17987,
29897,
13,
13,
1753,
6230,
29898,
7451,
29901,
8260,
29889,
29933,
327,
1125,
13,
1678,
9225,
29889,
1202,
29918,
29883,
468,
29898,
29883,
29896,
29900,
29953,
29898,
7451,
876,
2
] |
backoffice/views.py | chervaliery/tv_show_fetcher | 0 | 1600272 | from django.http import HttpResponse
from models import *
from utils import fetch_show, get_show
# Create your views here.
def home(request):
return HttpResponse("Bonjour monde!")
| [
1,
515,
9557,
29889,
1124,
1053,
9056,
5103,
13,
13,
3166,
4733,
1053,
334,
13,
3166,
3667,
29879,
1053,
6699,
29918,
4294,
29892,
679,
29918,
4294,
13,
13,
29937,
6204,
596,
8386,
1244,
29889,
13,
13,
13,
1753,
3271,
29898,
3827,
1125,
13,
1678,
736,
9056,
5103,
703,
29933,
265,
29926,
473,
9122,
29991,
1159,
13,
2
] |
tnia/viewing/napari_helper.py | True-North-Intelligent-Algorithms/tnia-python | 3 | 104456 | import napari
def show_image(im, title, viewer=None, label=False):
""" convenience helper function to show image in Napari
Args:
im (numpy array): image to show
title (string): title of image
viewer (napari instance, optional): pre-existing Napari
label (bool, optional): True if a label
Returns:
[napari instance]: a Napari instance
"""
if viewer==None:
viewer = napari.Viewer()
if label==False:
viewer.add_image(im,name=title)
else:
viewer.add_labels(im,name=title)
return viewer
def show_image_and_label(im, label, title, viewer=None):
"""[summary]
Args:
im (numpy array): image to show
label (numpy integer array): labels to show
title (string): title of image
viewer (napari instance, optional): pre-existing Napari
Returns:
[napari instance]: a Napari instance
"""
viewer = show_image(im, title, viewer, False)
show_image(label, title+' label', viewer, True)
return viewer | [
1,
1053,
9709,
1306,
13,
13,
1753,
1510,
29918,
3027,
29898,
326,
29892,
3611,
29892,
6316,
556,
29922,
8516,
29892,
3858,
29922,
8824,
1125,
13,
1678,
9995,
29703,
16876,
740,
304,
1510,
1967,
297,
8344,
1306,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
527,
313,
23749,
1409,
1125,
29871,
1967,
304,
1510,
13,
4706,
3611,
313,
1807,
1125,
3611,
310,
1967,
13,
4706,
6316,
556,
313,
8971,
1306,
2777,
29892,
13136,
1125,
758,
29899,
735,
15423,
8344,
1306,
13,
4706,
3858,
313,
11227,
29892,
13136,
1125,
5852,
565,
263,
3858,
13,
13,
1678,
16969,
29901,
13,
4706,
518,
8971,
1306,
2777,
5387,
263,
8344,
1306,
2777,
13,
1678,
9995,
13,
1678,
565,
6316,
556,
1360,
8516,
29901,
13,
4706,
6316,
556,
353,
9709,
1306,
29889,
29963,
15580,
580,
13,
268,
13,
1678,
565,
3858,
1360,
8824,
29901,
13,
4706,
6316,
556,
29889,
1202,
29918,
3027,
29898,
326,
29892,
978,
29922,
3257,
29897,
13,
1678,
1683,
29901,
13,
4706,
6316,
556,
29889,
1202,
29918,
21134,
29898,
326,
29892,
978,
29922,
3257,
29897,
13,
13,
1678,
736,
6316,
556,
13,
13,
1753,
1510,
29918,
3027,
29918,
392,
29918,
1643,
29898,
326,
29892,
3858,
29892,
3611,
29892,
6316,
556,
29922,
8516,
1125,
13,
1678,
9995,
29961,
7727,
29962,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
527,
313,
23749,
1409,
1125,
29871,
1967,
304,
1510,
13,
4706,
3858,
313,
23749,
6043,
1409,
1125,
11073,
304,
1510,
13,
4706,
3611,
313,
1807,
1125,
3611,
310,
1967,
13,
4706,
6316,
556,
313,
8971,
1306,
2777,
29892,
13136,
1125,
758,
29899,
735,
15423,
8344,
1306,
13,
13,
1678,
16969,
29901,
13,
4706,
518,
8971,
1306,
2777,
5387,
263,
8344,
1306,
2777,
13,
1678,
9995,
13,
1678,
6316,
556,
353,
1510,
29918,
3027,
29898,
326,
29892,
3611,
29892,
6316,
556,
29892,
7700,
29897,
13,
1678,
1510,
29918,
3027,
29898,
1643,
29892,
3611,
23097,
3858,
742,
6316,
556,
29892,
5852,
29897,
13,
13,
1678,
736,
6316,
556,
2
] |
time_calculator.py | yashvarshney003/Time-Calculator-Freecodecamp | 0 | 192439 | <filename>time_calculator.py
def add_time(start, duration, day=None):
time, period = start.split()
initial_period = period
hr_start, min_start = time.split(':')
hr_duration, min_duration = duration.split(':')
min_new = int(min_start) + int(min_duration)
hr_new = int(hr_start) + int(hr_duration)
periods_later = 0
days_later = 0
DAYS_OF_WEEK = [
"Saturday",
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
]
if min_new > 59:
min_new -= 60
hr_new += 1
hr_new_period = hr_new
while hr_new > 12:
hr_new -= 12
while hr_new_period > 11:
hr_new_period -= 12
period = "PM" if period == "AM" else "AM"
periods_later += 1
if periods_later % 2 != 0:
if initial_period == "PM":
periods_later += 1
else:
periods_later -= 1
days_later = periods_later / 2
new_time = f"{hr_new}:{str(min_new).zfill(2)} {period}"
if day:
day_index = DAYS_OF_WEEK.index(day.title())
new_day_index = int((day_index + days_later) % 7)
new_time += f", {DAYS_OF_WEEK[new_day_index]}"
if days_later == 1:
new_time += " (next day)"
if days_later > 1:
new_time += f" ({int(days_later)} days later)"
return new_time | [
1,
529,
9507,
29958,
2230,
29918,
15807,
1061,
29889,
2272,
13,
1753,
788,
29918,
2230,
29898,
2962,
29892,
14385,
29892,
2462,
29922,
8516,
1125,
13,
29871,
931,
29892,
3785,
353,
1369,
29889,
5451,
580,
13,
29871,
2847,
29918,
19145,
353,
3785,
13,
259,
13,
29871,
22157,
29918,
2962,
29892,
1375,
29918,
2962,
353,
931,
29889,
5451,
877,
29901,
1495,
13,
29871,
22157,
29918,
19708,
29892,
1375,
29918,
19708,
353,
14385,
29889,
5451,
877,
29901,
1495,
13,
13,
29871,
1375,
29918,
1482,
353,
938,
29898,
1195,
29918,
2962,
29897,
718,
938,
29898,
1195,
29918,
19708,
29897,
13,
29871,
22157,
29918,
1482,
353,
938,
29898,
1092,
29918,
2962,
29897,
718,
938,
29898,
1092,
29918,
19708,
29897,
13,
13,
29871,
23704,
29918,
29880,
1008,
353,
29871,
29900,
13,
29871,
3841,
29918,
29880,
1008,
353,
29871,
29900,
13,
13,
29871,
21330,
21554,
29918,
9800,
29918,
8851,
29923,
29968,
353,
518,
13,
1678,
376,
29903,
20510,
613,
13,
1678,
376,
29903,
870,
388,
613,
13,
1678,
376,
29924,
898,
388,
613,
13,
1678,
376,
29911,
1041,
3250,
613,
13,
1678,
376,
29956,
287,
4515,
3250,
613,
13,
1678,
376,
1349,
1295,
3250,
613,
13,
1678,
376,
29943,
2429,
388,
29908,
13,
1678,
4514,
13,
13,
29871,
565,
1375,
29918,
1482,
1405,
29871,
29945,
29929,
29901,
13,
1678,
1375,
29918,
1482,
22361,
29871,
29953,
29900,
13,
1678,
22157,
29918,
1482,
4619,
29871,
29896,
13,
13,
29871,
22157,
29918,
1482,
29918,
19145,
353,
22157,
29918,
1482,
13,
13,
29871,
1550,
22157,
29918,
1482,
1405,
29871,
29896,
29906,
29901,
13,
1678,
22157,
29918,
1482,
22361,
29871,
29896,
29906,
13,
13,
29871,
1550,
22157,
29918,
1482,
29918,
19145,
1405,
29871,
29896,
29896,
29901,
259,
13,
1678,
22157,
29918,
1482,
29918,
19145,
22361,
29871,
29896,
29906,
13,
1678,
3785,
353,
376,
13427,
29908,
565,
3785,
1275,
376,
5194,
29908,
1683,
376,
5194,
29908,
13,
1678,
23704,
29918,
29880,
1008,
4619,
29871,
29896,
13,
13,
29871,
565,
23704,
29918,
29880,
1008,
1273,
29871,
29906,
2804,
29871,
29900,
29901,
13,
1678,
565,
2847,
29918,
19145,
1275,
376,
13427,
1115,
13,
418,
23704,
29918,
29880,
1008,
4619,
29871,
29896,
13,
1678,
1683,
29901,
13,
418,
23704,
29918,
29880,
1008,
22361,
29871,
29896,
13,
13,
29871,
3841,
29918,
29880,
1008,
353,
23704,
29918,
29880,
1008,
847,
29871,
29906,
13,
13,
29871,
716,
29918,
2230,
353,
285,
29908,
29912,
1092,
29918,
1482,
6177,
29912,
710,
29898,
1195,
29918,
1482,
467,
29920,
5589,
29898,
29906,
2915,
426,
19145,
5038,
13,
13,
29871,
565,
2462,
29901,
13,
1678,
2462,
29918,
2248,
353,
21330,
21554,
29918,
9800,
29918,
8851,
29923,
29968,
29889,
2248,
29898,
3250,
29889,
3257,
3101,
13,
1678,
716,
29918,
3250,
29918,
2248,
353,
938,
3552,
3250,
29918,
2248,
718,
3841,
29918,
29880,
1008,
29897,
1273,
29871,
29955,
29897,
13,
1678,
716,
29918,
2230,
4619,
285,
613,
426,
7698,
21554,
29918,
9800,
29918,
8851,
29923,
29968,
29961,
1482,
29918,
3250,
29918,
2248,
29962,
5038,
29871,
13,
13,
29871,
565,
3841,
29918,
29880,
1008,
1275,
29871,
29896,
29901,
13,
1678,
716,
29918,
2230,
4619,
376,
313,
4622,
2462,
5513,
13,
13,
29871,
565,
3841,
29918,
29880,
1008,
1405,
29871,
29896,
29901,
13,
1678,
716,
29918,
2230,
4619,
285,
29908,
21313,
524,
29898,
16700,
29918,
29880,
1008,
2915,
3841,
2678,
5513,
13,
13,
29871,
736,
716,
29918,
2230,
2
] |
boto-python-workshop/01_list_objects.py | shy950521/ecs-samples | 28 | 186798 | <reponame>shy950521/ecs-samples<gh_stars>10-100
'''
Same stuff as 00_getting_started. If you've pasted all this into your python interpreter already, you can
skip past this.
'''
from boto.s3.connection import S3Connection, OrdinaryCallingFormat
from boto.s3.key import Key
from boto.s3.prefix import Prefix
host = "object.ecstestdrive.com"
port = 443
secure = port == 9021 or port == 443
access_key_id = 'user1'
secret_key = ''
debug_level = 2
calling_format = OrdinaryCallingFormat()
s3 = S3Connection(aws_access_key_id=access_key_id, aws_secret_access_key=secret_key, is_secure=secure, port=port,
host=host, debug=debug_level,
calling_format=calling_format)
bucket_name = "mybucket"
bucket = s3.create_bucket(bucket_name)
'''
Create a bunch of keys to test with.
'''
key_names = ["20151102/account-12345/bill.xml",
"20151102/account-12345/bill.pdf",
"20151102/account-12345/bill.html",
"20151102/account-55555/bill.xml",
"20151102/account-55555/bill.pdf",
"20151102/account-55555/bill.html",
"20151102/account-77777/bill.xml",
"20151102/account-77777/bill.pdf",
"20151102/account-77777/bill.html",
"20151103/account-11111/bill.xml",
"20151103/account-11111/bill.pdf",
"20151103/account-11111/bill.html",
"20151103/account-11122/bill.xml",
"20151103/account-11122/bill.pdf",
"20151103/account-11122/bill.html",
"20151103/account-11133/bill.xml",
"20151103/account-11133/bill.pdf",
"20151103/account-11133/bill.html",
"20141103/account-11111/bill.xml",
"20141103/account-11111/bill.pdf",
"20141103/account-11111/bill.html",
"20141103/account-11122/bill.xml",
"20141103/account-11122/bill.pdf",
"20141103/account-11122/bill.html",
"20141103/account-11133/bill.xml",
"20141103/account-11133/bill.pdf",
"20141103/account-11133/bill.html"]
for key_name in key_names:
key = bucket.new_key(key_name)
key.set_contents_from_string("data for key %s" % key_name, {"content-type": "text/plain"})
def bucket_list():
"""
Start a loop to experiment with bucket listing.
"""
running = True
while running:
prefix = raw_input("Prefix: ")
delimiter = raw_input("Delimiter: ")
marker = raw_input("Marker: ")
results = bucket.list(prefix, delimiter, marker)
print "%30s %10s %s" % ("LastModified", "Size", "Key")
print "------------------------------ ---------- ------------------------------------------"
for result in results:
if type(result) is Key:
print "%30s %10d %s" % (result.last_modified, result.size, result.name)
if type(result) is Prefix:
print "%30s %10s %s" % ("", "(PREFIX)", result.name)
again = raw_input("Again? (y/n) ")
running = again == "y"
bucket_list()
| [
1,
529,
276,
1112,
420,
29958,
845,
29891,
29929,
29945,
29900,
29945,
29906,
29896,
29914,
687,
29879,
29899,
27736,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
12008,
13,
29903,
420,
6433,
408,
29871,
29900,
29900,
29918,
29264,
29918,
2962,
287,
29889,
29871,
960,
366,
29915,
345,
4940,
287,
599,
445,
964,
596,
3017,
26997,
2307,
29892,
366,
508,
13,
11014,
4940,
445,
29889,
13,
12008,
13,
3166,
289,
3747,
29889,
29879,
29941,
29889,
9965,
1053,
317,
29941,
5350,
29892,
16557,
3821,
5594,
292,
5809,
13,
3166,
289,
3747,
29889,
29879,
29941,
29889,
1989,
1053,
7670,
13,
3166,
289,
3747,
29889,
29879,
29941,
29889,
13506,
1053,
349,
9569,
13,
13,
3069,
353,
376,
3318,
29889,
687,
303,
342,
21594,
29889,
510,
29908,
13,
637,
353,
29871,
29946,
29946,
29941,
13,
24216,
353,
2011,
1275,
29871,
29929,
29900,
29906,
29896,
470,
2011,
1275,
29871,
29946,
29946,
29941,
13,
5943,
29918,
1989,
29918,
333,
353,
525,
1792,
29896,
29915,
13,
19024,
29918,
1989,
353,
6629,
13,
8382,
29918,
5563,
353,
29871,
29906,
13,
4804,
292,
29918,
4830,
353,
16557,
3821,
5594,
292,
5809,
580,
13,
29879,
29941,
353,
317,
29941,
5350,
29898,
10467,
29918,
5943,
29918,
1989,
29918,
333,
29922,
5943,
29918,
1989,
29918,
333,
29892,
25879,
29918,
19024,
29918,
5943,
29918,
1989,
29922,
19024,
29918,
1989,
29892,
338,
29918,
24216,
29922,
24216,
29892,
2011,
29922,
637,
29892,
13,
462,
29871,
3495,
29922,
3069,
29892,
4744,
29922,
8382,
29918,
5563,
29892,
13,
462,
29871,
5432,
29918,
4830,
29922,
4804,
292,
29918,
4830,
29897,
13,
13,
21454,
29918,
978,
353,
376,
1357,
21454,
29908,
13,
21454,
353,
269,
29941,
29889,
3258,
29918,
21454,
29898,
21454,
29918,
978,
29897,
13,
13,
12008,
13,
4391,
263,
14928,
310,
6611,
304,
1243,
411,
29889,
13,
12008,
13,
1989,
29918,
7039,
353,
6796,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29906,
29914,
10149,
29899,
29896,
29906,
29941,
29946,
29945,
29914,
29890,
453,
29889,
3134,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29906,
29914,
10149,
29899,
29896,
29906,
29941,
29946,
29945,
29914,
29890,
453,
29889,
5140,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29906,
29914,
10149,
29899,
29896,
29906,
29941,
29946,
29945,
29914,
29890,
453,
29889,
1420,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29906,
29914,
10149,
29899,
29945,
29945,
29945,
29945,
29945,
29914,
29890,
453,
29889,
3134,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29906,
29914,
10149,
29899,
29945,
29945,
29945,
29945,
29945,
29914,
29890,
453,
29889,
5140,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29906,
29914,
10149,
29899,
29945,
29945,
29945,
29945,
29945,
29914,
29890,
453,
29889,
1420,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29906,
29914,
10149,
29899,
29955,
29955,
29955,
29955,
29955,
29914,
29890,
453,
29889,
3134,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29906,
29914,
10149,
29899,
29955,
29955,
29955,
29955,
29955,
29914,
29890,
453,
29889,
5140,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29906,
29914,
10149,
29899,
29955,
29955,
29955,
29955,
29955,
29914,
29890,
453,
29889,
1420,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29896,
29896,
29914,
29890,
453,
29889,
3134,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29896,
29896,
29914,
29890,
453,
29889,
5140,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29896,
29896,
29914,
29890,
453,
29889,
1420,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29906,
29906,
29914,
29890,
453,
29889,
3134,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29906,
29906,
29914,
29890,
453,
29889,
5140,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29906,
29906,
29914,
29890,
453,
29889,
1420,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29941,
29941,
29914,
29890,
453,
29889,
3134,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29941,
29941,
29914,
29890,
453,
29889,
5140,
613,
13,
632,
376,
29906,
29900,
29896,
29945,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29941,
29941,
29914,
29890,
453,
29889,
1420,
613,
13,
632,
376,
29906,
29900,
29896,
29946,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29896,
29896,
29914,
29890,
453,
29889,
3134,
613,
13,
632,
376,
29906,
29900,
29896,
29946,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29896,
29896,
29914,
29890,
453,
29889,
5140,
613,
13,
632,
376,
29906,
29900,
29896,
29946,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29896,
29896,
29914,
29890,
453,
29889,
1420,
613,
13,
632,
376,
29906,
29900,
29896,
29946,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29906,
29906,
29914,
29890,
453,
29889,
3134,
613,
13,
632,
376,
29906,
29900,
29896,
29946,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29906,
29906,
29914,
29890,
453,
29889,
5140,
613,
13,
632,
376,
29906,
29900,
29896,
29946,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29906,
29906,
29914,
29890,
453,
29889,
1420,
613,
13,
632,
376,
29906,
29900,
29896,
29946,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29941,
29941,
29914,
29890,
453,
29889,
3134,
613,
13,
632,
376,
29906,
29900,
29896,
29946,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29941,
29941,
29914,
29890,
453,
29889,
5140,
613,
13,
632,
376,
29906,
29900,
29896,
29946,
29896,
29896,
29900,
29941,
29914,
10149,
29899,
29896,
29896,
29896,
29941,
29941,
29914,
29890,
453,
29889,
1420,
3108,
13,
13,
1454,
1820,
29918,
978,
297,
1820,
29918,
7039,
29901,
13,
1678,
1820,
353,
20968,
29889,
1482,
29918,
1989,
29898,
1989,
29918,
978,
29897,
13,
1678,
1820,
29889,
842,
29918,
10853,
29918,
3166,
29918,
1807,
703,
1272,
363,
1820,
1273,
29879,
29908,
1273,
1820,
29918,
978,
29892,
8853,
3051,
29899,
1853,
1115,
376,
726,
29914,
24595,
29908,
1800,
13,
13,
13,
1753,
20968,
29918,
1761,
7295,
13,
1678,
9995,
13,
1678,
7370,
263,
2425,
304,
7639,
411,
20968,
18028,
29889,
13,
1678,
9995,
13,
1678,
2734,
353,
5852,
13,
1678,
1550,
2734,
29901,
13,
4706,
10944,
353,
10650,
29918,
2080,
703,
23095,
29901,
16521,
13,
4706,
28552,
353,
10650,
29918,
2080,
703,
13157,
19657,
29901,
16521,
13,
4706,
17456,
353,
10650,
29918,
2080,
703,
24619,
29901,
16521,
13,
4706,
2582,
353,
20968,
29889,
1761,
29898,
13506,
29892,
28552,
29892,
17456,
29897,
13,
4706,
1596,
11860,
29941,
29900,
29879,
1273,
29896,
29900,
29879,
1273,
29879,
29908,
1273,
4852,
8897,
2111,
2164,
613,
376,
3505,
613,
376,
2558,
1159,
13,
4706,
1596,
376,
2683,
9072,
489,
448,
1378,
29899,
448,
2683,
2683,
1378,
29899,
29908,
13,
4706,
363,
1121,
297,
2582,
29901,
13,
9651,
565,
1134,
29898,
2914,
29897,
338,
7670,
29901,
13,
18884,
1596,
11860,
29941,
29900,
29879,
1273,
29896,
29900,
29881,
1273,
29879,
29908,
1273,
313,
2914,
29889,
4230,
29918,
1545,
2164,
29892,
1121,
29889,
2311,
29892,
1121,
29889,
978,
29897,
13,
9651,
565,
1134,
29898,
2914,
29897,
338,
349,
9569,
29901,
13,
18884,
1596,
11860,
29941,
29900,
29879,
1273,
29896,
29900,
29879,
1273,
29879,
29908,
1273,
4852,
613,
18227,
15094,
25634,
19123,
1121,
29889,
978,
29897,
13,
4706,
1449,
353,
10650,
29918,
2080,
703,
14769,
475,
29973,
313,
29891,
29914,
29876,
29897,
16521,
13,
4706,
2734,
353,
1449,
1275,
376,
29891,
29908,
13,
13,
21454,
29918,
1761,
580,
13,
2
] |
auxiliary/auxiliary.py | amageh/respy-tut | 0 | 76491 | <reponame>amageh/respy-tut
"""This file contains auxiliary function that we use throughout the respy tutorial."""
import matplotlib.pyplot as plt
import pandas as pd
def plot_fishing_grounds(df):
"""Plot choice shares for observables example."""
fig, ax = plt.subplots(1, 2, figsize=(10, 4))
for i, observable in enumerate(["rich", "poor"]):
df.query("Fishing_Grounds == @observable").groupby(
"Period"
).Choice.value_counts(normalize=True,).unstack().plot.bar(
width=0.4, stacked=True, rot=0, legend=False, ax=ax[i]
)
ax[i].set_title("Fishing grounds: " + observable, pad=10)
ax[i].xaxis.label.set_visible(False)
plt.legend(loc="lower center", bbox_to_anchor=(-0.15, -0.3), ncol=2)
plt.suptitle("Robinson's choices by period", y=1.05)
plt.show()
def plot_choice_shares(df, friday=False):
"""Plot choice shares."""
if friday:
color = ["C0", "C2", "C1"]
choices = 3
else:
color = ["C0", "C1"]
choices = 2
fig, ax = plt.subplots()
df.groupby("Period").Choice.value_counts(normalize=True).unstack().plot.bar(
stacked=True, ax=ax, color=color
)
plt.xticks(rotation="horizontal")
plt.legend(loc="lower center", bbox_to_anchor=(0.5, -0.275), ncol=choices)
plt.show()
plt.close()
def plot_choice_prob_and_exp_level(df):
"""Plot choices and experience levels."""
fig, axs = plt.subplots(1, 2, figsize=(10, 4))
(
df.groupby("Period")
.Choice.value_counts(normalize=True)
.unstack()
.plot.bar(ax=axs[0], stacked=True, rot=0, title="Choice Probabilities")
)
(
df.groupby("Period")
.Experience_Fishing.value_counts(normalize=True)
.unstack()
.plot.bar(
ax=axs[1],
stacked=True,
rot=0,
title="Share of Experience Level per Period",
cmap="Blues",
)
)
axs[0].legend(loc="lower center", bbox_to_anchor=(0.5, -0.4), ncol=2)
axs[1].legend(loc="right", bbox_to_anchor=(1.3, 0.5), ncol=1, title="Experience")
plt.show()
def plot_choice_prob(df):
"""Plot choices."""
fig, ax = plt.subplots()
df.groupby("Period").Choice.value_counts(normalize=True).unstack().plot.bar(
stacked=True, ax=ax
)
plt.xticks(rotation="horizontal")
plt.legend(loc="lower center", bbox_to_anchor=(0.5, -0.275), ncol=2)
plt.show()
plt.close()
def plot_choices_kw(example="1994"):
"""Plot models from Keane and Wolpin (1994,1997,2000)."""
if example == "1994":
fig, ax = plt.subplots(1, 3, figsize=(15, 5))
models = ["kw_94_one", "kw_94_two", "kw_94_three"]
if example == "1997":
fig, ax = plt.subplots(1, 2, figsize=(15, 5))
models = ["kw_97_basic", "kw_97_extended"]
for i, model in enumerate(models):
df = pd.read_pickle(f"data/choices_{model}.pkl")
df.plot(
alpha=0.8,
stacked=True,
ax=ax[i],
legend=False,
kind="area",
rot=0,
title=f"Example model: {model}",
linewidth=0,
)
df.plot(stacked=True, ax=ax[i], legend=False, color="white", linewidth=1, rot=0)
ax[i].margins(x=0)
ax[i].spines["right"].set_visible(False)
ax[i].spines["top"].set_visible(False)
handles, labels = plt.gca().get_legend_handles_labels()
by_label = dict(zip(labels, handles))
if len(ax) % 2 == 1:
move_left = -0.7
else:
move_left = -0.2
plt.legend(
by_label.values(),
by_label.keys(),
loc="lower center",
ncol=len(df.columns),
bbox_to_anchor=(move_left, -0.25),
fontsize=12,
)
plt.show()
def plot_kw_97_comparison():
"""Plot comparison of KW 97 models and observed data."""
models = ["kw_97_obs", "kw_97_basic", "kw_97_extended"]
colors = ["tab:blue", "tab:orange", "tab:green", "tab:red", "tab:purple"]
data = {}
for model in models:
df = pd.read_pickle(f"data/choices_{model}.pkl")
data[model] = df
fig, ax = plt.subplots(2, 3, figsize=(15, 9))
ax = ax.ravel()
for i, (choice, color) in enumerate(zip(df.columns, colors)):
ax[i].plot(
data["kw_97_obs"][choice], linestyle="dashed", color="k", label="Observed"
)
ax[i].plot(
data["kw_97_basic"][choice],
linestyle="dotted",
alpha=0.8,
color=color,
label="kw_97_basic",
)
ax[i].plot(
data["kw_97_extended"][choice],
color=color,
alpha=0.8,
label="kw_97_extended",
)
ax[i].set_title(choice.capitalize().replace("_", " "))
ax[i].set_xlabel("Period")
ax[4].legend(
loc="lower center", ncol=5, bbox_to_anchor=(-0.3, -0.3), fontsize=12,
)
fig.delaxes(ax[5])
plt.show()
| [
1,
529,
276,
1112,
420,
29958,
314,
482,
29882,
29914,
690,
2272,
29899,
29873,
329,
13,
15945,
29908,
4013,
934,
3743,
29587,
653,
740,
393,
591,
671,
10106,
278,
620,
2272,
9673,
1213,
15945,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
11701,
408,
10518,
13,
13,
13,
1753,
6492,
29918,
29888,
14424,
29918,
2057,
29879,
29898,
2176,
1125,
13,
1678,
9995,
20867,
7348,
29358,
363,
5820,
1849,
1342,
1213,
15945,
13,
1678,
2537,
29892,
4853,
353,
14770,
29889,
1491,
26762,
29898,
29896,
29892,
29871,
29906,
29892,
2537,
2311,
7607,
29896,
29900,
29892,
29871,
29946,
876,
13,
13,
1678,
363,
474,
29892,
25209,
297,
26985,
29898,
3366,
4018,
613,
376,
1129,
272,
3108,
1125,
13,
4706,
4489,
29889,
1972,
703,
29943,
14424,
29918,
3338,
3885,
1275,
732,
711,
12114,
2564,
27789,
29898,
13,
9651,
376,
29853,
29908,
13,
4706,
13742,
29620,
29889,
1767,
29918,
2798,
29879,
29898,
8945,
675,
29922,
5574,
29892,
467,
348,
1429,
2141,
5317,
29889,
1646,
29898,
13,
9651,
2920,
29922,
29900,
29889,
29946,
29892,
5096,
287,
29922,
5574,
29892,
5731,
29922,
29900,
29892,
15983,
29922,
8824,
29892,
4853,
29922,
1165,
29961,
29875,
29962,
13,
4706,
1723,
13,
4706,
4853,
29961,
29875,
1822,
842,
29918,
3257,
703,
29943,
14424,
25502,
29901,
376,
718,
25209,
29892,
17132,
29922,
29896,
29900,
29897,
13,
4706,
4853,
29961,
29875,
1822,
29916,
8990,
29889,
1643,
29889,
842,
29918,
12872,
29898,
8824,
29897,
13,
13,
1678,
14770,
29889,
26172,
29898,
2029,
543,
13609,
4818,
613,
289,
1884,
29918,
517,
29918,
25367,
29922,
6278,
29900,
29889,
29896,
29945,
29892,
448,
29900,
29889,
29941,
511,
302,
1054,
29922,
29906,
29897,
13,
1678,
14770,
29889,
2146,
415,
1740,
703,
21860,
26803,
29915,
29879,
19995,
491,
3785,
613,
343,
29922,
29896,
29889,
29900,
29945,
29897,
13,
13,
1678,
14770,
29889,
4294,
580,
13,
13,
13,
1753,
6492,
29918,
16957,
29918,
845,
5114,
29898,
2176,
29892,
1424,
22394,
29922,
8824,
1125,
13,
1678,
9995,
20867,
7348,
29358,
1213,
15945,
13,
1678,
565,
1424,
22394,
29901,
13,
4706,
2927,
353,
6796,
29907,
29900,
613,
376,
29907,
29906,
613,
376,
29907,
29896,
3108,
13,
4706,
19995,
353,
29871,
29941,
13,
1678,
1683,
29901,
13,
4706,
2927,
353,
6796,
29907,
29900,
613,
376,
29907,
29896,
3108,
13,
4706,
19995,
353,
29871,
29906,
13,
13,
1678,
2537,
29892,
4853,
353,
14770,
29889,
1491,
26762,
580,
13,
13,
1678,
4489,
29889,
27789,
703,
29853,
2564,
29620,
29889,
1767,
29918,
2798,
29879,
29898,
8945,
675,
29922,
5574,
467,
348,
1429,
2141,
5317,
29889,
1646,
29898,
13,
4706,
5096,
287,
29922,
5574,
29892,
4853,
29922,
1165,
29892,
2927,
29922,
2780,
13,
1678,
1723,
13,
13,
1678,
14770,
29889,
486,
7358,
29898,
5450,
362,
543,
22672,
1159,
13,
13,
1678,
14770,
29889,
26172,
29898,
2029,
543,
13609,
4818,
613,
289,
1884,
29918,
517,
29918,
25367,
7607,
29900,
29889,
29945,
29892,
448,
29900,
29889,
29906,
29955,
29945,
511,
302,
1054,
29922,
1859,
1575,
29897,
13,
13,
1678,
14770,
29889,
4294,
580,
13,
1678,
14770,
29889,
5358,
580,
13,
13,
13,
1753,
6492,
29918,
16957,
29918,
22795,
29918,
392,
29918,
4548,
29918,
5563,
29898,
2176,
1125,
13,
1678,
9995,
20867,
19995,
322,
7271,
11174,
1213,
15945,
13,
1678,
2537,
29892,
4853,
29879,
353,
14770,
29889,
1491,
26762,
29898,
29896,
29892,
29871,
29906,
29892,
2537,
2311,
7607,
29896,
29900,
29892,
29871,
29946,
876,
13,
13,
1678,
313,
13,
4706,
4489,
29889,
27789,
703,
29853,
1159,
13,
4706,
869,
29620,
29889,
1767,
29918,
2798,
29879,
29898,
8945,
675,
29922,
5574,
29897,
13,
4706,
869,
348,
1429,
580,
13,
4706,
869,
5317,
29889,
1646,
29898,
1165,
29922,
1165,
29879,
29961,
29900,
1402,
5096,
287,
29922,
5574,
29892,
5731,
29922,
29900,
29892,
3611,
543,
29620,
1019,
29890,
11614,
1159,
13,
1678,
1723,
13,
13,
1678,
313,
13,
4706,
4489,
29889,
27789,
703,
29853,
1159,
13,
4706,
869,
1252,
546,
5597,
29918,
29943,
14424,
29889,
1767,
29918,
2798,
29879,
29898,
8945,
675,
29922,
5574,
29897,
13,
4706,
869,
348,
1429,
580,
13,
4706,
869,
5317,
29889,
1646,
29898,
13,
9651,
4853,
29922,
1165,
29879,
29961,
29896,
1402,
13,
9651,
5096,
287,
29922,
5574,
29892,
13,
9651,
5731,
29922,
29900,
29892,
13,
9651,
3611,
543,
2713,
598,
310,
28224,
5597,
21597,
639,
29498,
613,
13,
9651,
274,
1958,
543,
10358,
1041,
613,
13,
4706,
1723,
13,
1678,
1723,
13,
13,
1678,
4853,
29879,
29961,
29900,
1822,
26172,
29898,
2029,
543,
13609,
4818,
613,
289,
1884,
29918,
517,
29918,
25367,
7607,
29900,
29889,
29945,
29892,
448,
29900,
29889,
29946,
511,
302,
1054,
29922,
29906,
29897,
13,
1678,
4853,
29879,
29961,
29896,
1822,
26172,
29898,
2029,
543,
1266,
613,
289,
1884,
29918,
517,
29918,
25367,
7607,
29896,
29889,
29941,
29892,
29871,
29900,
29889,
29945,
511,
302,
1054,
29922,
29896,
29892,
3611,
543,
1252,
546,
5597,
1159,
13,
13,
1678,
14770,
29889,
4294,
580,
13,
13,
13,
1753,
6492,
29918,
16957,
29918,
22795,
29898,
2176,
1125,
13,
1678,
9995,
20867,
19995,
1213,
15945,
13,
1678,
2537,
29892,
4853,
353,
14770,
29889,
1491,
26762,
580,
13,
13,
1678,
4489,
29889,
27789,
703,
29853,
2564,
29620,
29889,
1767,
29918,
2798,
29879,
29898,
8945,
675,
29922,
5574,
467,
348,
1429,
2141,
5317,
29889,
1646,
29898,
13,
4706,
5096,
287,
29922,
5574,
29892,
4853,
29922,
1165,
13,
1678,
1723,
13,
13,
1678,
14770,
29889,
486,
7358,
29898,
5450,
362,
543,
22672,
1159,
13,
13,
1678,
14770,
29889,
26172,
29898,
2029,
543,
13609,
4818,
613,
289,
1884,
29918,
517,
29918,
25367,
7607,
29900,
29889,
29945,
29892,
448,
29900,
29889,
29906,
29955,
29945,
511,
302,
1054,
29922,
29906,
29897,
13,
13,
1678,
14770,
29889,
4294,
580,
13,
1678,
14770,
29889,
5358,
580,
13,
13,
13,
1753,
6492,
29918,
1859,
1575,
29918,
11022,
29898,
4773,
543,
29896,
29929,
29929,
29946,
29908,
1125,
13,
1678,
9995,
20867,
4733,
515,
4813,
1662,
322,
11902,
12687,
313,
29896,
29929,
29929,
29946,
29892,
29896,
29929,
29929,
29955,
29892,
29906,
29900,
29900,
29900,
467,
15945,
29908,
13,
1678,
565,
1342,
1275,
376,
29896,
29929,
29929,
29946,
1115,
13,
4706,
2537,
29892,
4853,
353,
14770,
29889,
1491,
26762,
29898,
29896,
29892,
29871,
29941,
29892,
2537,
2311,
7607,
29896,
29945,
29892,
29871,
29945,
876,
13,
4706,
4733,
353,
6796,
11022,
29918,
29929,
29946,
29918,
650,
613,
376,
11022,
29918,
29929,
29946,
29918,
10184,
613,
376,
11022,
29918,
29929,
29946,
29918,
17536,
3108,
13,
13,
1678,
565,
1342,
1275,
376,
29896,
29929,
29929,
29955,
1115,
13,
4706,
2537,
29892,
4853,
353,
14770,
29889,
1491,
26762,
29898,
29896,
29892,
29871,
29906,
29892,
2537,
2311,
7607,
29896,
29945,
29892,
29871,
29945,
876,
13,
4706,
4733,
353,
6796,
11022,
29918,
29929,
29955,
29918,
16121,
613,
376,
11022,
29918,
29929,
29955,
29918,
1062,
2760,
3108,
13,
13,
1678,
363,
474,
29892,
1904,
297,
26985,
29898,
9794,
1125,
13,
4706,
4489,
353,
10518,
29889,
949,
29918,
23945,
280,
29898,
29888,
29908,
1272,
29914,
1859,
1575,
648,
4299,
1836,
29886,
6321,
1159,
13,
4706,
4489,
29889,
5317,
29898,
13,
9651,
15595,
29922,
29900,
29889,
29947,
29892,
13,
9651,
5096,
287,
29922,
5574,
29892,
13,
9651,
4853,
29922,
1165,
29961,
29875,
1402,
13,
9651,
15983,
29922,
8824,
29892,
13,
9651,
2924,
543,
6203,
613,
13,
9651,
5731,
29922,
29900,
29892,
13,
9651,
3611,
29922,
29888,
29908,
14023,
1904,
29901,
426,
4299,
17671,
13,
9651,
1196,
2103,
29922,
29900,
29892,
13,
4706,
1723,
13,
4706,
4489,
29889,
5317,
29898,
1429,
287,
29922,
5574,
29892,
4853,
29922,
1165,
29961,
29875,
1402,
15983,
29922,
8824,
29892,
2927,
543,
10921,
613,
1196,
2103,
29922,
29896,
29892,
5731,
29922,
29900,
29897,
13,
4706,
4853,
29961,
29875,
1822,
29885,
1191,
1144,
29898,
29916,
29922,
29900,
29897,
13,
4706,
4853,
29961,
29875,
1822,
1028,
1475,
3366,
1266,
16862,
842,
29918,
12872,
29898,
8824,
29897,
13,
4706,
4853,
29961,
29875,
1822,
1028,
1475,
3366,
3332,
16862,
842,
29918,
12872,
29898,
8824,
29897,
13,
13,
4706,
17766,
29892,
11073,
353,
14770,
29889,
29887,
1113,
2141,
657,
29918,
26172,
29918,
3179,
793,
29918,
21134,
580,
13,
4706,
491,
29918,
1643,
353,
9657,
29898,
7554,
29898,
21134,
29892,
17766,
876,
13,
4706,
565,
7431,
29898,
1165,
29897,
1273,
29871,
29906,
1275,
29871,
29896,
29901,
13,
9651,
4337,
29918,
1563,
353,
448,
29900,
29889,
29955,
13,
4706,
1683,
29901,
13,
9651,
4337,
29918,
1563,
353,
448,
29900,
29889,
29906,
13,
4706,
14770,
29889,
26172,
29898,
13,
9651,
491,
29918,
1643,
29889,
5975,
3285,
13,
9651,
491,
29918,
1643,
29889,
8149,
3285,
13,
9651,
1180,
543,
13609,
4818,
613,
13,
9651,
302,
1054,
29922,
2435,
29898,
2176,
29889,
13099,
511,
13,
9651,
289,
1884,
29918,
517,
29918,
25367,
7607,
11631,
29918,
1563,
29892,
448,
29900,
29889,
29906,
29945,
511,
13,
9651,
4079,
2311,
29922,
29896,
29906,
29892,
13,
4706,
1723,
13,
1678,
14770,
29889,
4294,
580,
13,
13,
13,
1753,
6492,
29918,
11022,
29918,
29929,
29955,
29918,
510,
20941,
7295,
13,
1678,
9995,
20867,
10230,
310,
476,
29956,
29871,
29929,
29955,
4733,
322,
8900,
848,
1213,
15945,
13,
1678,
4733,
353,
6796,
11022,
29918,
29929,
29955,
29918,
26290,
613,
376,
11022,
29918,
29929,
29955,
29918,
16121,
613,
376,
11022,
29918,
29929,
29955,
29918,
1062,
2760,
3108,
13,
1678,
11955,
353,
6796,
3891,
29901,
9539,
613,
376,
3891,
29901,
272,
927,
613,
376,
3891,
29901,
12692,
613,
376,
3891,
29901,
1127,
613,
376,
3891,
29901,
15503,
552,
3108,
13,
1678,
848,
353,
6571,
13,
1678,
363,
1904,
297,
4733,
29901,
13,
4706,
4489,
353,
10518,
29889,
949,
29918,
23945,
280,
29898,
29888,
29908,
1272,
29914,
1859,
1575,
648,
4299,
1836,
29886,
6321,
1159,
13,
4706,
848,
29961,
4299,
29962,
353,
4489,
13,
1678,
2537,
29892,
4853,
353,
14770,
29889,
1491,
26762,
29898,
29906,
29892,
29871,
29941,
29892,
2537,
2311,
7607,
29896,
29945,
29892,
29871,
29929,
876,
13,
1678,
4853,
353,
4853,
29889,
336,
955,
580,
13,
1678,
363,
474,
29892,
313,
16957,
29892,
2927,
29897,
297,
26985,
29898,
7554,
29898,
2176,
29889,
13099,
29892,
11955,
22164,
13,
4706,
4853,
29961,
29875,
1822,
5317,
29898,
13,
9651,
848,
3366,
11022,
29918,
29929,
29955,
29918,
26290,
3108,
29961,
16957,
1402,
6276,
342,
1508,
543,
14592,
287,
613,
2927,
543,
29895,
613,
3858,
543,
6039,
643,
1490,
29908,
13,
4706,
1723,
13,
4706,
4853,
29961,
29875,
1822,
5317,
29898,
13,
9651,
848,
3366,
11022,
29918,
29929,
29955,
29918,
16121,
3108,
29961,
16957,
1402,
13,
9651,
6276,
342,
1508,
543,
29881,
15048,
613,
13,
9651,
15595,
29922,
29900,
29889,
29947,
29892,
13,
9651,
2927,
29922,
2780,
29892,
13,
9651,
3858,
543,
11022,
29918,
29929,
29955,
29918,
16121,
613,
13,
4706,
1723,
13,
4706,
4853,
29961,
29875,
1822,
5317,
29898,
13,
9651,
848,
3366,
11022,
29918,
29929,
29955,
29918,
1062,
2760,
3108,
29961,
16957,
1402,
13,
9651,
2927,
29922,
2780,
29892,
13,
9651,
15595,
29922,
29900,
29889,
29947,
29892,
13,
9651,
3858,
543,
11022,
29918,
29929,
29955,
29918,
1062,
2760,
613,
13,
4706,
1723,
13,
4706,
4853,
29961,
29875,
1822,
842,
29918,
3257,
29898,
16957,
29889,
5030,
2410,
675,
2141,
6506,
703,
29918,
613,
376,
376,
876,
13,
4706,
4853,
29961,
29875,
1822,
842,
29918,
29916,
1643,
703,
29853,
1159,
13,
1678,
4853,
29961,
29946,
1822,
26172,
29898,
13,
4706,
1180,
543,
13609,
4818,
613,
302,
1054,
29922,
29945,
29892,
289,
1884,
29918,
517,
29918,
25367,
29922,
6278,
29900,
29889,
29941,
29892,
448,
29900,
29889,
29941,
511,
4079,
2311,
29922,
29896,
29906,
29892,
13,
1678,
1723,
13,
1678,
2537,
29889,
6144,
1165,
267,
29898,
1165,
29961,
29945,
2314,
13,
1678,
14770,
29889,
4294,
580,
13,
2
] |
monitor/rotation.py | UWCubeSat/bairing | 0 | 116388 | import serial
import struct
import time
import numpy as np
from ahrs.filters import Madgwick
from cube import CubeRenderer
sync = b'\xEF\xBE\xAD\xDE'
def reset(ser):
ser.write(sync)
ser.write(b'\x01\x00')
ser.write(b'\x00')
def begin(ser):
ser.write(sync)
ser.write(b'\x03\x00')
ser.write(b'\x10')
ser.write(b'\x32\0x00') # 50 ms period
def receive(ser):
recognized = False
pattern = [ 0, 0, 0, 0 ]
while not recognized:
pattern.append(ser.read(1)) # sync pattern
pattern.pop(0)
recognized = True
for i in range(0, 4):
recognized = recognized and (pattern[i] == sync[i:i+1])
rcvd = ser.read(2)
len = struct.unpack('<H', rcvd)[0] # packet length
cmd = ser.read(1)
data = ser.read(len - 1)
return [cmd, data]
def main():
connecting = True
while connecting:
try:
ser = serial.Serial('COM4')
connecting = False
except serial.serialutil.SerialException:
print("Connection to COM4 timed out, retrying...")
reset(ser)
print("resetting")
time.sleep(3)
begin(ser)
# q_last = np.array([0.7071, -0.7071, 0.0, 0.0])
q_last = np.array([1., 0., 0., 0.])
madgwick = Madgwick(Dt = 0.05, q0 = q_last)
renderer = CubeRenderer()
while True:
[cmd, data] = receive(ser)
if cmd == b'\x10':
raw = struct.unpack('<fffffffff', data) # 3 float vectors, 9 floats
mag = raw[0:3]
acc = raw[3:6]
gyro = raw[6:9]
# q_last = madgwick.updateMARG(q_last, gyr=gyro, acc=acc, mag=mag)
q_last = madgwick.updateIMU(q_last, gyr=gyro, acc=acc)
print(q_last)
renderer.render(q_last)
if __name__ == '__main__':
main() | [
1,
1053,
7797,
13,
5215,
2281,
13,
5215,
931,
13,
5215,
12655,
408,
7442,
13,
3166,
263,
1092,
29879,
29889,
26705,
1053,
4104,
29887,
6669,
13,
3166,
28704,
1053,
315,
4003,
21323,
13,
13,
16593,
353,
289,
12764,
29916,
29638,
29905,
29916,
15349,
29905,
29916,
3035,
29905,
29916,
2287,
29915,
13,
13,
1753,
10092,
29898,
643,
1125,
13,
29871,
724,
29889,
3539,
29898,
16593,
29897,
13,
29871,
724,
29889,
3539,
29898,
29890,
12764,
29916,
29900,
29896,
29905,
29916,
29900,
29900,
1495,
13,
29871,
724,
29889,
3539,
29898,
29890,
12764,
29916,
29900,
29900,
1495,
13,
13,
1753,
3380,
29898,
643,
1125,
13,
29871,
724,
29889,
3539,
29898,
16593,
29897,
13,
29871,
724,
29889,
3539,
29898,
29890,
12764,
29916,
29900,
29941,
29905,
29916,
29900,
29900,
1495,
13,
29871,
724,
29889,
3539,
29898,
29890,
12764,
29916,
29896,
29900,
1495,
13,
29871,
724,
29889,
3539,
29898,
29890,
12764,
29916,
29941,
29906,
29905,
29900,
29916,
29900,
29900,
1495,
29871,
396,
29871,
29945,
29900,
10887,
3785,
13,
259,
13,
1753,
7150,
29898,
643,
1125,
13,
29871,
14831,
353,
7700,
13,
29871,
4766,
353,
518,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
4514,
13,
29871,
1550,
451,
14831,
29901,
13,
1678,
4766,
29889,
4397,
29898,
643,
29889,
949,
29898,
29896,
876,
29871,
396,
16523,
4766,
13,
1678,
4766,
29889,
7323,
29898,
29900,
29897,
13,
268,
13,
1678,
14831,
353,
5852,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
29871,
29946,
1125,
13,
418,
14831,
353,
14831,
322,
313,
11037,
29961,
29875,
29962,
1275,
16523,
29961,
29875,
29901,
29875,
29974,
29896,
2314,
13,
13,
29871,
364,
11023,
29881,
353,
724,
29889,
949,
29898,
29906,
29897,
13,
29871,
7431,
353,
2281,
29889,
348,
4058,
877,
29966,
29950,
742,
364,
11023,
29881,
9601,
29900,
29962,
29871,
396,
18203,
3309,
13,
259,
13,
29871,
9920,
353,
724,
29889,
949,
29898,
29896,
29897,
13,
13,
29871,
848,
353,
724,
29889,
949,
29898,
2435,
448,
29871,
29896,
29897,
13,
259,
13,
29871,
736,
518,
9006,
29892,
848,
29962,
13,
268,
13,
1753,
1667,
7295,
13,
29871,
16791,
353,
5852,
13,
29871,
1550,
16791,
29901,
13,
1678,
1018,
29901,
13,
418,
724,
353,
7797,
29889,
9125,
877,
19795,
29946,
1495,
13,
418,
16791,
353,
7700,
13,
1678,
5174,
7797,
29889,
15550,
4422,
29889,
9125,
2451,
29901,
13,
418,
1596,
703,
5350,
304,
23353,
29946,
5335,
287,
714,
29892,
337,
2202,
292,
856,
1159,
13,
259,
13,
29871,
10092,
29898,
643,
29897,
13,
29871,
1596,
703,
12071,
1259,
1159,
13,
13,
29871,
931,
29889,
17059,
29898,
29941,
29897,
13,
259,
13,
29871,
3380,
29898,
643,
29897,
13,
13,
29871,
396,
3855,
29918,
4230,
353,
7442,
29889,
2378,
4197,
29900,
29889,
29955,
29900,
29955,
29896,
29892,
448,
29900,
29889,
29955,
29900,
29955,
29896,
29892,
29871,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
2314,
13,
29871,
3855,
29918,
4230,
353,
7442,
29889,
2378,
4197,
29896,
1696,
29871,
29900,
1696,
29871,
29900,
1696,
29871,
29900,
29889,
2314,
13,
29871,
10395,
29887,
6669,
353,
4104,
29887,
6669,
29898,
29928,
29873,
353,
29871,
29900,
29889,
29900,
29945,
29892,
3855,
29900,
353,
3855,
29918,
4230,
29897,
13,
259,
13,
29871,
4050,
261,
353,
315,
4003,
21323,
580,
13,
259,
13,
29871,
1550,
5852,
29901,
13,
1678,
518,
9006,
29892,
848,
29962,
353,
7150,
29898,
643,
29897,
13,
1678,
565,
9920,
1275,
289,
12764,
29916,
29896,
29900,
2396,
13,
418,
10650,
353,
2281,
29889,
348,
4058,
877,
29966,
17156,
17156,
29888,
742,
848,
29897,
29871,
396,
29871,
29941,
5785,
12047,
29892,
29871,
29929,
5685,
1446,
13,
418,
2320,
353,
10650,
29961,
29900,
29901,
29941,
29962,
13,
418,
1035,
353,
10650,
29961,
29941,
29901,
29953,
29962,
13,
418,
10966,
307,
353,
10650,
29961,
29953,
29901,
29929,
29962,
13,
539,
13,
418,
396,
3855,
29918,
4230,
353,
10395,
29887,
6669,
29889,
5504,
1529,
29934,
29954,
29898,
29939,
29918,
4230,
29892,
330,
4316,
29922,
1927,
307,
29892,
1035,
29922,
5753,
29892,
2320,
29922,
11082,
29897,
13,
418,
3855,
29918,
4230,
353,
10395,
29887,
6669,
29889,
5504,
7833,
29965,
29898,
29939,
29918,
4230,
29892,
330,
4316,
29922,
1927,
307,
29892,
1035,
29922,
5753,
29897,
13,
418,
1596,
29898,
29939,
29918,
4230,
29897,
13,
418,
4050,
261,
29889,
9482,
29898,
29939,
29918,
4230,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
29871,
1667,
580,
2
] |
src/train.py | saikrishnaklu/Kaggle_Categorical_Feature_Encoding-Challenge_II | 1 | 103442 | from __future__ import print_function
import os
from sklearn import preprocessing
from sklearn import ensemble
from sklearn.metrics import accuracy_score,roc_auc_score
import pandas as pd
import joblib
import numpy as np
#import dispatcher
folds={
0:[1,2,3,4],
1:[0,2,3,4],
2:[1,0,3,4],
3:[1,2,0,4],
4:[1,2,3,0],
}
TRAINING="input/train_folds.csv"
TEST="input/test.csv"
FOLD=2
MODEL="randomforest"
MODEL2="logisticregression"
""" TRAINING=os.getenv(['TRAINING'])
TEST=os.getenv(['TEST'])
FOLD=os.getenv(['FOLD'])
MODEL=os.getenv(['MODEL']) """
MODELS={
"randomforest":ensemble.RandomForestClassifier(n_estimators=200,n_jobs=-1,verbose=2),
"extratreesclassfier":ensemble.ExtraTreesClassifier(n_estimators=200,n_jobs=-1,verbose=2)
}
if __name__=="__main__":
df_train_main=pd.read_csv(TRAINING)
df_test=pd.read_csv(TEST)
df_train=df_train_main[df_train_main.kfold.isin(folds.get(FOLD))].reset_index(drop=True)
df_val=df_train[df_train_main.kfold==0].reset_index(drop=True)
df_y_train=df_train.target.values
df_y_val=df_val.target.values
df_train=df_train.drop(['id','target','kfold'],axis=1)
df_val=df_val.drop(['id','target','kfold'],axis=1)
df_val=df_val[df_train.columns]
label_encoders={}
for c in df_train.columns:
label_encoder=preprocessing.LabelEncoder()
label_encoder.fit(df_train[c].values.tolist()+df_val[c].values.tolist()+df_test[c].values.tolist())
onehot_encoder=preprocessing.OneHotEncoder()
df_train.loc[:,c]=label_encoder.transform(df_train[c].values.tolist())
df_val.loc[:,c]=label_encoder.transform(df_val[c].values.tolist())
label_encoders[c]=label_encoder
model=MODELS[MODEL]
model.fit(df_train,df_y_train)
pred=model.predict_proba(df_val)[:,1]
pred2=model.predict(df_val)
print(roc_auc_score(df_y_val,pred))
print(accuracy_score(df_y_val,pred2))
joblib.dump(label_encoders,f"models/{MODEL}_{FOLD}_label_encoder.pkl")
joblib.dump(model,f"models/{MODEL}_{FOLD}.pkl")
joblib.dump(df_train.columns,f"models/{MODEL}_{FOLD}_columns.pkl")
| [
1,
515,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
2897,
13,
3166,
2071,
19668,
1053,
758,
19170,
13,
3166,
2071,
19668,
1053,
21285,
13,
3166,
2071,
19668,
29889,
2527,
10817,
1053,
13600,
29918,
13628,
29892,
10198,
29918,
14766,
29918,
13628,
13,
5215,
11701,
408,
10518,
13,
5215,
4982,
1982,
13,
5215,
12655,
408,
7442,
13,
29937,
5215,
13916,
261,
13,
13,
29888,
3361,
3790,
13,
268,
29900,
10834,
29896,
29892,
29906,
29892,
29941,
29892,
29946,
1402,
13,
268,
29896,
10834,
29900,
29892,
29906,
29892,
29941,
29892,
29946,
1402,
13,
268,
29906,
10834,
29896,
29892,
29900,
29892,
29941,
29892,
29946,
1402,
13,
268,
29941,
10834,
29896,
29892,
29906,
29892,
29900,
29892,
29946,
1402,
13,
268,
29946,
10834,
29896,
29892,
29906,
29892,
29941,
29892,
29900,
1402,
13,
29913,
13,
13,
13,
29911,
4717,
1177,
4214,
543,
2080,
29914,
14968,
29918,
29888,
3361,
29889,
7638,
29908,
13,
18267,
543,
2080,
29914,
1688,
29889,
7638,
29908,
13,
29943,
5607,
29928,
29922,
29906,
13,
20387,
29931,
543,
8172,
1454,
342,
29908,
13,
20387,
29931,
29906,
543,
1188,
4695,
276,
11476,
29908,
13,
15945,
29908,
323,
4717,
1177,
4214,
29922,
359,
29889,
657,
6272,
18959,
29911,
4717,
1177,
4214,
11287,
13,
18267,
29922,
359,
29889,
657,
6272,
18959,
18267,
11287,
13,
29943,
5607,
29928,
29922,
359,
29889,
657,
6272,
18959,
29943,
5607,
29928,
11287,
13,
20387,
29931,
29922,
359,
29889,
657,
6272,
18959,
20387,
29931,
11287,
9995,
13,
20387,
8547,
3790,
13,
1678,
376,
8172,
1454,
342,
1115,
24031,
29889,
17875,
2831,
342,
2385,
3709,
29898,
29876,
29918,
342,
326,
4097,
29922,
29906,
29900,
29900,
29892,
29876,
29918,
9057,
29879,
10457,
29896,
29892,
369,
15828,
29922,
29906,
511,
13,
1678,
376,
1062,
3605,
11003,
1990,
29888,
631,
1115,
24031,
29889,
18126,
29911,
11003,
2385,
3709,
29898,
29876,
29918,
342,
326,
4097,
29922,
29906,
29900,
29900,
29892,
29876,
29918,
9057,
29879,
10457,
29896,
29892,
369,
15828,
29922,
29906,
29897,
13,
29913,
13,
13,
361,
4770,
978,
1649,
26359,
1649,
3396,
1649,
1115,
13,
1678,
4489,
29918,
14968,
29918,
3396,
29922,
15926,
29889,
949,
29918,
7638,
29898,
29911,
4717,
1177,
4214,
29897,
13,
1678,
4489,
29918,
1688,
29922,
15926,
29889,
949,
29918,
7638,
29898,
18267,
29897,
13,
268,
13,
1678,
4489,
29918,
14968,
29922,
2176,
29918,
14968,
29918,
3396,
29961,
2176,
29918,
14968,
29918,
3396,
29889,
29895,
8771,
29889,
275,
262,
29898,
29888,
3361,
29889,
657,
29898,
29943,
5607,
29928,
876,
1822,
12071,
29918,
2248,
29898,
8865,
29922,
5574,
29897,
13,
268,
13,
1678,
4489,
29918,
791,
29922,
2176,
29918,
14968,
29961,
2176,
29918,
14968,
29918,
3396,
29889,
29895,
8771,
1360,
29900,
1822,
12071,
29918,
2248,
29898,
8865,
29922,
5574,
29897,
13,
268,
13,
13,
1678,
4489,
29918,
29891,
29918,
14968,
29922,
2176,
29918,
14968,
29889,
5182,
29889,
5975,
13,
1678,
4489,
29918,
29891,
29918,
791,
29922,
2176,
29918,
791,
29889,
5182,
29889,
5975,
13,
268,
13,
1678,
4489,
29918,
14968,
29922,
2176,
29918,
14968,
29889,
8865,
18959,
333,
3788,
5182,
3788,
29895,
8771,
7464,
8990,
29922,
29896,
29897,
13,
1678,
4489,
29918,
791,
29922,
2176,
29918,
791,
29889,
8865,
18959,
333,
3788,
5182,
3788,
29895,
8771,
7464,
8990,
29922,
29896,
29897,
13,
268,
13,
1678,
4489,
29918,
791,
29922,
2176,
29918,
791,
29961,
2176,
29918,
14968,
29889,
13099,
29962,
13,
268,
13,
1678,
3858,
29918,
3977,
397,
414,
3790,
29913,
13,
1678,
363,
274,
297,
4489,
29918,
14968,
29889,
13099,
29901,
13,
4706,
3858,
29918,
3977,
6119,
29922,
1457,
19170,
29889,
4775,
8566,
6119,
580,
13,
4706,
3858,
29918,
3977,
6119,
29889,
9202,
29898,
2176,
29918,
14968,
29961,
29883,
1822,
5975,
29889,
25027,
391,
580,
29974,
2176,
29918,
791,
29961,
29883,
1822,
5975,
29889,
25027,
391,
580,
29974,
2176,
29918,
1688,
29961,
29883,
1822,
5975,
29889,
25027,
391,
3101,
13,
4706,
697,
8711,
29918,
3977,
6119,
29922,
1457,
19170,
29889,
6716,
28917,
8566,
6119,
580,
13,
4706,
4489,
29918,
14968,
29889,
2029,
7503,
29892,
29883,
13192,
1643,
29918,
3977,
6119,
29889,
9067,
29898,
2176,
29918,
14968,
29961,
29883,
1822,
5975,
29889,
25027,
391,
3101,
13,
4706,
4489,
29918,
791,
29889,
2029,
7503,
29892,
29883,
13192,
1643,
29918,
3977,
6119,
29889,
9067,
29898,
2176,
29918,
791,
29961,
29883,
1822,
5975,
29889,
25027,
391,
3101,
13,
4706,
3858,
29918,
3977,
397,
414,
29961,
29883,
13192,
1643,
29918,
3977,
6119,
259,
13,
4299,
29922,
20387,
8547,
29961,
20387,
29931,
29962,
13,
4299,
29889,
9202,
29898,
2176,
29918,
14968,
29892,
2176,
29918,
29891,
29918,
14968,
29897,
13,
11965,
29922,
4299,
29889,
27711,
29918,
771,
2291,
29898,
2176,
29918,
791,
29897,
7503,
29892,
29896,
29962,
13,
11965,
29906,
29922,
4299,
29889,
27711,
29898,
2176,
29918,
791,
29897,
13,
2158,
29898,
10198,
29918,
14766,
29918,
13628,
29898,
2176,
29918,
29891,
29918,
791,
29892,
11965,
876,
13,
2158,
29898,
562,
2764,
4135,
29918,
13628,
29898,
2176,
29918,
29891,
29918,
791,
29892,
11965,
29906,
876,
13,
13,
9057,
1982,
29889,
15070,
29898,
1643,
29918,
3977,
397,
414,
29892,
29888,
29908,
9794,
19248,
20387,
29931,
3227,
29943,
5607,
29928,
2403,
1643,
29918,
3977,
6119,
29889,
29886,
6321,
1159,
13,
9057,
1982,
29889,
15070,
29898,
4299,
29892,
29888,
29908,
9794,
19248,
20387,
29931,
3227,
29943,
5607,
29928,
1836,
29886,
6321,
1159,
13,
9057,
1982,
29889,
15070,
29898,
2176,
29918,
14968,
29889,
13099,
29892,
29888,
29908,
9794,
19248,
20387,
29931,
3227,
29943,
5607,
29928,
2403,
13099,
29889,
29886,
6321,
1159,
13,
2
] |
notebooks/__code/_utilities/array.py | mabrahamdevops/python_notebooks | 0 | 128582 | <reponame>mabrahamdevops/python_notebooks
import numpy as np
def exclude_y_value_when_error_is_nan(axis, error_axis):
axis_cleaned = []
error_axis_cleaned = []
for _x, _error in zip(axis, error_axis):
if (_x == "None") or (_error == "None") or (_x is None) or (_error is None):
axis_cleaned.append(np.NaN)
error_axis_cleaned.append(np.NaN)
else:
axis_cleaned.append(np.float(_x))
error_axis_cleaned.append(np.float(_error))
return axis_cleaned, error_axis_cleaned
def check_size(x_axis=None, y_axis=None):
size_x = len(x_axis)
size_y = len(y_axis)
min_len = np.min([size_x, size_y])
return x_axis[:min_len], y_axis[:min_len]
def get_n_random_int_of_max_value_m(n=1, max=10):
list_random = np.random.random(n) * max
list_random_int = [np.int(_value) for _value in list_random]
return list_random_int
def reject_outliers(array=None):
if len(array) < 3:
return array
new_array = [_value
for _value in array
if (not (_value == np.min(array)))
and (not (_value == np.max(array)))]
return new_array
def reject_n_outliers(array=None, n=1):
set_array = list(array)
set_array.sort()
return set_array[n: -n]
def find_nearest_index(array, value):
idx = (np.abs(np.array(array) - value)).argmin()
return idx
def get_closest_index(array=None, value=None):
idx = (np.abs(np.array(array) - value)).argmin()
return idx
def get_nearest_index(array=None, value=None):
return get_closest_index(array=array, value=value)
| [
1,
529,
276,
1112,
420,
29958,
29885,
370,
22084,
3359,
3554,
29914,
4691,
29918,
1333,
19273,
29879,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1753,
19060,
29918,
29891,
29918,
1767,
29918,
8256,
29918,
2704,
29918,
275,
29918,
13707,
29898,
8990,
29892,
1059,
29918,
8990,
1125,
13,
1678,
9685,
29918,
14941,
287,
353,
5159,
13,
1678,
1059,
29918,
8990,
29918,
14941,
287,
353,
5159,
13,
13,
1678,
363,
903,
29916,
29892,
903,
2704,
297,
14319,
29898,
8990,
29892,
1059,
29918,
8990,
1125,
13,
4706,
565,
9423,
29916,
1275,
376,
8516,
1159,
470,
9423,
2704,
1275,
376,
8516,
1159,
470,
9423,
29916,
338,
6213,
29897,
470,
9423,
2704,
338,
6213,
1125,
13,
9651,
9685,
29918,
14941,
287,
29889,
4397,
29898,
9302,
29889,
19377,
29897,
13,
9651,
1059,
29918,
8990,
29918,
14941,
287,
29889,
4397,
29898,
9302,
29889,
19377,
29897,
13,
4706,
1683,
29901,
13,
9651,
9685,
29918,
14941,
287,
29889,
4397,
29898,
9302,
29889,
7411,
7373,
29916,
876,
13,
9651,
1059,
29918,
8990,
29918,
14941,
287,
29889,
4397,
29898,
9302,
29889,
7411,
7373,
2704,
876,
13,
13,
1678,
736,
9685,
29918,
14941,
287,
29892,
1059,
29918,
8990,
29918,
14941,
287,
13,
13,
13,
1753,
1423,
29918,
2311,
29898,
29916,
29918,
8990,
29922,
8516,
29892,
343,
29918,
8990,
29922,
8516,
1125,
13,
1678,
2159,
29918,
29916,
353,
7431,
29898,
29916,
29918,
8990,
29897,
13,
1678,
2159,
29918,
29891,
353,
7431,
29898,
29891,
29918,
8990,
29897,
13,
1678,
1375,
29918,
2435,
353,
7442,
29889,
1195,
4197,
2311,
29918,
29916,
29892,
2159,
29918,
29891,
2314,
13,
1678,
736,
921,
29918,
8990,
7503,
1195,
29918,
2435,
1402,
343,
29918,
8990,
7503,
1195,
29918,
2435,
29962,
13,
13,
13,
1753,
679,
29918,
29876,
29918,
8172,
29918,
524,
29918,
974,
29918,
3317,
29918,
1767,
29918,
29885,
29898,
29876,
29922,
29896,
29892,
4236,
29922,
29896,
29900,
1125,
13,
1678,
1051,
29918,
8172,
353,
7442,
29889,
8172,
29889,
8172,
29898,
29876,
29897,
334,
4236,
13,
1678,
1051,
29918,
8172,
29918,
524,
353,
518,
9302,
29889,
524,
7373,
1767,
29897,
363,
903,
1767,
297,
1051,
29918,
8172,
29962,
13,
1678,
736,
1051,
29918,
8172,
29918,
524,
13,
13,
13,
1753,
12560,
29918,
449,
27801,
29898,
2378,
29922,
8516,
1125,
13,
1678,
565,
7431,
29898,
2378,
29897,
529,
29871,
29941,
29901,
13,
4706,
736,
1409,
13,
13,
1678,
716,
29918,
2378,
353,
23160,
1767,
13,
462,
363,
903,
1767,
297,
1409,
13,
462,
565,
313,
1333,
9423,
1767,
1275,
7442,
29889,
1195,
29898,
2378,
4961,
13,
462,
322,
313,
1333,
9423,
1767,
1275,
7442,
29889,
3317,
29898,
2378,
876,
4638,
13,
1678,
736,
716,
29918,
2378,
13,
13,
13,
1753,
12560,
29918,
29876,
29918,
449,
27801,
29898,
2378,
29922,
8516,
29892,
302,
29922,
29896,
1125,
13,
1678,
731,
29918,
2378,
353,
1051,
29898,
2378,
29897,
13,
1678,
731,
29918,
2378,
29889,
6605,
580,
13,
1678,
736,
731,
29918,
2378,
29961,
29876,
29901,
448,
29876,
29962,
13,
13,
13,
1753,
1284,
29918,
28502,
342,
29918,
2248,
29898,
2378,
29892,
995,
1125,
13,
1678,
22645,
353,
313,
9302,
29889,
6897,
29898,
9302,
29889,
2378,
29898,
2378,
29897,
448,
995,
8106,
1191,
1195,
580,
13,
1678,
736,
22645,
13,
13,
13,
1753,
679,
29918,
11291,
342,
29918,
2248,
29898,
2378,
29922,
8516,
29892,
995,
29922,
8516,
1125,
13,
1678,
22645,
353,
313,
9302,
29889,
6897,
29898,
9302,
29889,
2378,
29898,
2378,
29897,
448,
995,
8106,
1191,
1195,
580,
13,
1678,
736,
22645,
13,
13,
13,
1753,
679,
29918,
28502,
342,
29918,
2248,
29898,
2378,
29922,
8516,
29892,
995,
29922,
8516,
1125,
13,
1678,
736,
679,
29918,
11291,
342,
29918,
2248,
29898,
2378,
29922,
2378,
29892,
995,
29922,
1767,
29897,
13,
2
] |
chapter_3/ex_3-10.py | akshaymoharir/PythonCrashCourse | 0 | 62899 | <reponame>akshaymoharir/PythonCrashCourse<filename>chapter_3/ex_3-10.py
## Python Crash Course
# Exercise 3.10: Every Function:
# Think of something you could store in a list.
# For example, you could make a list of mountains, rivers, countries, cities, languages, or any- thing else you’d like.
# Write a program that creates a list containing these items and then uses each function introduced in this chapter at least once .
def main():
print("Skipping this exercise since this is redundant exercise to use previously used functions again.")
if __name__ == '__main__':
main()
| [
1,
529,
276,
1112,
420,
29958,
557,
845,
388,
29885,
1148,
279,
381,
29914,
11980,
20647,
1161,
29907,
10242,
29966,
9507,
29958,
27349,
29918,
29941,
29914,
735,
29918,
29941,
29899,
29896,
29900,
29889,
2272,
13,
13,
2277,
5132,
6781,
1161,
6325,
344,
13,
13,
29937,
1222,
6269,
895,
29871,
29941,
29889,
29896,
29900,
29901,
7569,
6680,
29901,
259,
13,
29937,
18884,
25086,
310,
1554,
366,
1033,
3787,
297,
263,
1051,
29889,
29871,
13,
29937,
18884,
1152,
1342,
29892,
366,
1033,
1207,
263,
1051,
310,
19223,
29892,
27515,
29892,
10916,
29892,
14368,
29892,
10276,
29892,
470,
738,
29899,
2655,
1683,
366,
30010,
29881,
763,
29889,
29871,
13,
29937,
18884,
14350,
263,
1824,
393,
10017,
263,
1051,
6943,
1438,
4452,
322,
769,
3913,
1269,
740,
9129,
297,
445,
16385,
472,
3203,
2748,
869,
259,
13,
632,
13,
13,
1753,
1667,
7295,
13,
268,
13,
1678,
1596,
703,
29903,
1984,
3262,
445,
15058,
1951,
445,
338,
28005,
15058,
304,
671,
9251,
1304,
3168,
1449,
23157,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
13,
2
] |
fred_crawler.py | Tyromancer/economics.py | 0 | 46646 | # Usage:
# Find and download fred series data
# then find the specific data on yyyy-mm-dd
import requests # used for downloading text files from FRED
import os # used for removing temporary text files
# Usage : download series data in the form of text file and extract data on given date
# param:
# series: the series number
# year : target year. Format: 4 digit YYYY
# month : target month. Format: 2 digit MM
# day : target day. Format: 2 digit DD
def fred_crawler(series, year, month, day):
r = requests.get('https://fred.stlouisfed.org/data/' + series + '.txt')
fname = series + 'txt'
with open(fname, 'wb') as f:
f.write(r.content)
with open(fname, 'r', encoding='utf-8') as f:
lines = f.readlines()
data_file = dict()
for line in lines:
if not line[0].isdigit():
continue
else:
temp = line.rstrip().split()
data_file[temp[0]] = temp[1]
if len(month) == 1:
month = '0' + mm
if len(day) == 1:
day = '0' + day
date = year + '-' + month + '-' + day
# print('The result is: {}'.format(data_file[date]))
print("{} {}: {}".format(series.upper(), date, data_file[date]))
os.remove(fname)
if __name__ == "__main__":
query = input('Please enter the series ID ==> ').upper()
yyyy = input('Year == > ')
mm = input('Month ==> ')
dd = input('Day ==> ')
fred_crawler(query, yyyy, mm, dd)
| [
1,
396,
10783,
482,
29901,
13,
29937,
10987,
322,
5142,
285,
1127,
3652,
848,
13,
29937,
769,
1284,
278,
2702,
848,
373,
343,
8071,
29891,
29899,
4317,
29899,
1289,
13,
13,
5215,
7274,
29871,
396,
1304,
363,
28536,
1426,
2066,
515,
383,
19386,
13,
5215,
2897,
4706,
396,
1304,
363,
11077,
13201,
1426,
2066,
13,
13,
13,
29937,
10783,
482,
584,
5142,
3652,
848,
297,
278,
883,
310,
1426,
934,
322,
6597,
848,
373,
2183,
2635,
13,
29937,
1828,
29901,
13,
29937,
308,
3652,
29901,
278,
3652,
1353,
13,
29937,
308,
1629,
29871,
584,
3646,
1629,
29889,
19191,
29901,
29871,
29946,
13615,
612,
14995,
29979,
13,
29937,
308,
4098,
584,
3646,
4098,
29889,
19191,
29901,
29871,
29906,
13615,
28880,
13,
29937,
308,
2462,
259,
584,
3646,
2462,
29889,
29871,
19191,
29901,
259,
29906,
13615,
360,
29928,
13,
1753,
285,
1127,
29918,
29883,
1610,
1358,
29898,
13757,
29892,
1629,
29892,
4098,
29892,
2462,
1125,
13,
12,
29878,
353,
7274,
29889,
657,
877,
991,
597,
18447,
29889,
303,
23581,
4492,
287,
29889,
990,
29914,
1272,
22208,
718,
3652,
718,
15300,
3945,
1495,
13,
12,
29888,
978,
353,
3652,
718,
525,
3945,
29915,
13,
13,
12,
2541,
1722,
29898,
29888,
978,
29892,
525,
29893,
29890,
1495,
408,
285,
29901,
13,
12,
12,
29888,
29889,
3539,
29898,
29878,
29889,
3051,
29897,
13,
13,
12,
2541,
1722,
29898,
29888,
978,
29892,
525,
29878,
742,
8025,
2433,
9420,
29899,
29947,
1495,
408,
285,
29901,
13,
12,
12,
9012,
353,
285,
29889,
949,
9012,
580,
13,
13,
12,
12,
1272,
29918,
1445,
353,
9657,
580,
13,
12,
12,
1454,
1196,
297,
3454,
29901,
13,
12,
12,
12,
361,
451,
1196,
29961,
29900,
1822,
275,
26204,
7295,
13,
12,
12,
12,
12,
19878,
13,
12,
12,
12,
2870,
29901,
13,
12,
12,
12,
12,
7382,
353,
1196,
29889,
29878,
17010,
2141,
5451,
580,
13,
12,
12,
12,
12,
1272,
29918,
1445,
29961,
7382,
29961,
29900,
5262,
353,
5694,
29961,
29896,
29962,
13,
13,
12,
361,
7431,
29898,
10874,
29897,
1275,
29871,
29896,
29901,
13,
12,
12,
10874,
353,
525,
29900,
29915,
718,
5654,
13,
13,
12,
361,
7431,
29898,
3250,
29897,
1275,
29871,
29896,
29901,
13,
12,
12,
3250,
353,
525,
29900,
29915,
718,
2462,
13,
13,
12,
1256,
353,
1629,
718,
17411,
29915,
718,
4098,
718,
17411,
29915,
718,
2462,
13,
12,
29937,
1596,
877,
1576,
1121,
338,
29901,
6571,
4286,
4830,
29898,
1272,
29918,
1445,
29961,
1256,
12622,
13,
12,
2158,
703,
8875,
426,
6177,
6571,
1642,
4830,
29898,
13757,
29889,
21064,
3285,
2635,
29892,
848,
29918,
1445,
29961,
1256,
12622,
13,
12,
359,
29889,
5992,
29898,
29888,
978,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
12,
1972,
353,
1881,
877,
12148,
3896,
278,
3652,
3553,
25230,
525,
467,
21064,
580,
13,
12,
18855,
353,
1881,
877,
12883,
1275,
1405,
25710,
13,
12,
4317,
353,
1881,
877,
13953,
25230,
25710,
13,
12,
1289,
353,
1881,
877,
12742,
25230,
25710,
13,
13,
12,
18447,
29918,
29883,
1610,
1358,
29898,
1972,
29892,
343,
8071,
29891,
29892,
5654,
29892,
24488,
29897,
13,
2
] |
pyscf/nao/test/test_0003_na2_nao.py | robert-anderson/pyscf | 3 | 6101 | <filename>pyscf/nao/test/test_0003_na2_nao.py
# Copyright 2014-2018 The PySCF Developers. 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 __future__ import print_function
import unittest
from pyscf.nao.m_siesta_utils import get_siesta_command, get_pseudo
class KnowValues(unittest.TestCase):
def test_siesta2sv_df(self):
import subprocess
import os
siesta_fdf = """
xml.write .true.
PAO.EnergyShift 100 meV
%block ChemicalSpeciesLabel
1 11 Na
%endblock ChemicalSpeciesLabel
NumberOfAtoms 2
NumberOfSpecies 1
%block AtomicCoordinatesAndAtomicSpecies
0.77573521 0.00000000 0.00000000 1
-0.77573521 0.00000000 0.00000000 1
%endblock AtomicCoordinatesAndAtomicSpecies
MD.NumCGsteps 0
COOP.Write .true.
WriteDenchar .true.
"""
label = 'siesta'
fi = open(label+'.fdf', 'w')
print(siesta_fdf, file=fi)
fi.close()
for sp in ['Na']:
try:
os.remove(sp+'.psf')
except :
pass
try:
pppath = get_pseudo(sp)
except:
print('get_pseudo( '+sp+' ) is not working--> skip siesta run' )
return
os.symlink(pppath, sp+'.psf')
errorcode = subprocess.call(get_siesta_command(label), shell=True)
if errorcode: raise RuntimeError('siesta returned an error: {0}'.format(errorcode))
# run test system_vars
from pyscf.nao import mf
sv = mf(label=label)
self.assertEqual(sv.norbs, 10)
self.assertTrue( sv.diag_check() )
self.assertTrue( sv.overlap_check())
if __name__ == "__main__": unittest.main()
| [
1,
529,
9507,
29958,
29886,
952,
6854,
29914,
1056,
29877,
29914,
1688,
29914,
1688,
29918,
29900,
29900,
29900,
29941,
29918,
1056,
29906,
29918,
1056,
29877,
29889,
2272,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29946,
29899,
29906,
29900,
29896,
29947,
450,
10772,
7187,
29943,
10682,
414,
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,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
443,
27958,
13,
3166,
282,
952,
6854,
29889,
1056,
29877,
29889,
29885,
29918,
1039,
4405,
29918,
13239,
1053,
679,
29918,
1039,
4405,
29918,
6519,
29892,
679,
29918,
27358,
5333,
13,
13,
1990,
19320,
9065,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
259,
13,
29871,
822,
1243,
29918,
1039,
4405,
29906,
4501,
29918,
2176,
29898,
1311,
1125,
13,
1678,
1053,
1014,
5014,
13,
1678,
1053,
2897,
13,
13,
1678,
1354,
4405,
29918,
29888,
2176,
353,
9995,
13,
1678,
4903,
29889,
3539,
462,
29871,
869,
3009,
29889,
13,
1678,
17687,
29949,
29889,
29923,
1089,
1927,
29657,
632,
29896,
29900,
29900,
592,
29963,
13,
1678,
1273,
1271,
12677,
936,
10649,
2478,
4775,
13,
418,
29896,
259,
29896,
29896,
29871,
4465,
13,
1678,
1273,
355,
1271,
12677,
936,
10649,
2478,
4775,
13,
268,
13,
1678,
9681,
2776,
4178,
4835,
4706,
29906,
13,
1678,
9681,
2776,
10649,
2478,
418,
29896,
13,
1678,
1273,
1271,
2180,
25426,
7967,
24266,
2855,
4178,
25426,
10649,
2478,
13,
308,
29900,
29889,
29955,
29955,
29945,
29955,
29941,
29945,
29906,
29896,
268,
29900,
29889,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
268,
29900,
29889,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
1678,
29896,
13,
539,
448,
29900,
29889,
29955,
29955,
29945,
29955,
29941,
29945,
29906,
29896,
268,
29900,
29889,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
268,
29900,
29889,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
1678,
29896,
13,
1678,
1273,
355,
1271,
2180,
25426,
7967,
24266,
2855,
4178,
25426,
10649,
2478,
13,
268,
13,
1678,
20672,
29889,
8009,
11135,
24530,
1669,
29900,
13,
1678,
4810,
4590,
29889,
6113,
462,
869,
3009,
29889,
13,
1678,
14350,
29315,
3090,
1669,
869,
3009,
29889,
13,
1678,
9995,
13,
1678,
3858,
353,
525,
1039,
4405,
29915,
13,
1678,
5713,
353,
1722,
29898,
1643,
29974,
4286,
29888,
2176,
742,
525,
29893,
1495,
13,
1678,
1596,
29898,
1039,
4405,
29918,
29888,
2176,
29892,
934,
29922,
7241,
29897,
13,
1678,
5713,
29889,
5358,
580,
13,
1678,
363,
805,
297,
6024,
13695,
2033,
29901,
29871,
13,
418,
1018,
29901,
13,
4706,
2897,
29889,
5992,
29898,
1028,
29974,
4286,
567,
29888,
1495,
13,
418,
5174,
584,
13,
4706,
1209,
13,
418,
1018,
29901,
13,
4706,
282,
407,
493,
353,
679,
29918,
27358,
5333,
29898,
1028,
29897,
13,
418,
5174,
29901,
13,
4706,
1596,
877,
657,
29918,
27358,
5333,
29898,
525,
29974,
1028,
23097,
1723,
338,
451,
1985,
15110,
14383,
1354,
4405,
1065,
29915,
1723,
13,
4706,
736,
13,
418,
2897,
29889,
29879,
21053,
682,
29898,
407,
2084,
29892,
805,
29974,
4286,
567,
29888,
1495,
13,
1678,
1059,
401,
353,
1014,
5014,
29889,
4804,
29898,
657,
29918,
1039,
4405,
29918,
6519,
29898,
1643,
511,
6473,
29922,
5574,
29897,
13,
1678,
565,
1059,
401,
29901,
12020,
24875,
2392,
877,
1039,
4405,
4133,
385,
1059,
29901,
426,
29900,
29913,
4286,
4830,
29898,
2704,
401,
876,
13,
13,
1678,
396,
1065,
1243,
1788,
29918,
16908,
13,
1678,
515,
282,
952,
6854,
29889,
1056,
29877,
1053,
286,
29888,
13,
1678,
3731,
29871,
353,
286,
29888,
29898,
1643,
29922,
1643,
29897,
13,
1678,
1583,
29889,
9294,
9843,
29898,
4501,
29889,
15459,
5824,
29892,
29871,
29896,
29900,
29897,
13,
1678,
1583,
29889,
9294,
5574,
29898,
3731,
29889,
6051,
351,
29918,
3198,
580,
1723,
13,
1678,
1583,
29889,
9294,
5574,
29898,
3731,
29889,
957,
6984,
29918,
3198,
3101,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
443,
27958,
29889,
3396,
580,
13,
2
] |
scripts/add_probs.py | sharmaeklavya2/ekuOJ | 10 | 109871 | """
This module has functions which syncs problems data in database with data in OJ_data
"""
import os
FILE_PATH = os.path.abspath(__file__)
BASE_DIR = os.path.dirname(os.path.dirname(FILE_PATH))
import sys
if BASE_DIR not in sys.path:
sys.path.append(BASE_DIR)
import json
def add_prob(prob_path, contest=None):
pcode = os.path.basename(prob_path)
if contest==None:
ccode = os.path.basename(os.path.dirname(prob_path))
contest = Contest.objects.get_or_create(ccode=ccode)[0]
(problem, created) = Problem.objects.get_or_create(pcode=pcode, contest=contest)
title_path = os.path.join(prob_path, "title.txt")
data_path = os.path.join(prob_path, "data.json")
try:
problem.title = open(title_path).read().strip()
except FileNotFoundError:
pass
try:
prob_data = json.load(open(data_path))
problem.source_lim = prob_data.get("source_lim", None)
problem.time_lim_s = prob_data.get("time_lim_s", None)
problem.mem_lim_k = prob_data.get("mem_lim_k", None)
problem.output_lim_k = prob_data.get("output_lim_k", None)
except FileNotFoundError:
pass
except ValueError as e:
print("The following error was encountered while reading", os.path.join(ccode, pcode, "data.json")+".", "The file has been ignored.")
print(e)
problem.save()
return created
def add_contest(contest_path):
# create contest object in db
ccode = os.path.basename(contest_path)
(contest, created) = Contest.objects.get_or_create(ccode=ccode)
title_path = os.path.join(contest_path, "title.txt")
try:
contest.title = open(title_path).read().strip()
except FileNotFoundError:
pass
contest.save()
# add problems to db
pcodes = os.listdir(contest_path)
for pcode in pcodes:
prob_path = os.path.join(contest_path, pcode)
add_prob(prob_path, contest)
return created
FILE_NAME = os.path.basename(FILE_PATH)
if __name__=="__main__":
USAGE_STR = "usage: python3 " + FILE_NAME + " <contest_codes>"
else:
USAGE_STR = "No contests specified"
CONTESTS_DIR_PATH = os.path.join(BASE_DIR, "OJ_data", "contests")
import sys
def main(*args):
if len(args)==0:
print(USAGE_STR, file=sys.stderr)
else:
for ccode in args:
contest_path = os.path.join(CONTESTS_DIR_PATH, ccode)
created = add_contest(contest_path)
if created:
print("Added contest", ccode)
else:
print("Updated contest", ccode)
if __name__=="__main__":
# set up django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project_conf.settings")
print("Setting up Django ...", flush=True, end='')
import django
django.setup()
print(" done")
from main.models import Problem, Contest
if __name__=="__main__":
main(*(sys.argv[1:]))
| [
1,
9995,
13,
4013,
3883,
756,
3168,
607,
5222,
2395,
4828,
848,
297,
2566,
411,
848,
297,
438,
29967,
29918,
1272,
13,
15945,
29908,
13,
13,
5215,
2897,
13,
7724,
29918,
10145,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
22168,
1445,
1649,
29897,
13,
25416,
29918,
9464,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
25721,
29898,
7724,
29918,
10145,
876,
13,
5215,
10876,
13,
361,
350,
8127,
29918,
9464,
451,
297,
10876,
29889,
2084,
29901,
13,
12,
9675,
29889,
2084,
29889,
4397,
29898,
25416,
29918,
9464,
29897,
13,
13,
5215,
4390,
13,
13,
1753,
788,
29918,
22795,
29898,
22795,
29918,
2084,
29892,
17793,
29922,
8516,
1125,
13,
12,
29886,
401,
353,
2897,
29889,
2084,
29889,
6500,
3871,
29898,
22795,
29918,
2084,
29897,
13,
12,
361,
17793,
1360,
8516,
29901,
13,
12,
12,
29883,
401,
353,
2897,
29889,
2084,
29889,
6500,
3871,
29898,
359,
29889,
2084,
29889,
25721,
29898,
22795,
29918,
2084,
876,
13,
12,
12,
1285,
342,
353,
2866,
342,
29889,
12650,
29889,
657,
29918,
272,
29918,
3258,
29898,
29883,
401,
29922,
29883,
401,
9601,
29900,
29962,
13,
12,
29898,
17199,
29892,
2825,
29897,
353,
11583,
29889,
12650,
29889,
657,
29918,
272,
29918,
3258,
29898,
29886,
401,
29922,
29886,
401,
29892,
17793,
29922,
1285,
342,
29897,
13,
12,
3257,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
22795,
29918,
2084,
29892,
376,
3257,
29889,
3945,
1159,
13,
12,
1272,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
22795,
29918,
2084,
29892,
376,
1272,
29889,
3126,
1159,
13,
12,
2202,
29901,
13,
12,
12,
17199,
29889,
3257,
353,
1722,
29898,
3257,
29918,
2084,
467,
949,
2141,
17010,
580,
13,
12,
19499,
3497,
17413,
2392,
29901,
13,
12,
12,
3364,
13,
12,
2202,
29901,
13,
12,
12,
22795,
29918,
1272,
353,
4390,
29889,
1359,
29898,
3150,
29898,
1272,
29918,
2084,
876,
13,
12,
12,
17199,
29889,
4993,
29918,
2576,
353,
2070,
29918,
1272,
29889,
657,
703,
4993,
29918,
2576,
613,
6213,
29897,
13,
12,
12,
17199,
29889,
2230,
29918,
2576,
29918,
29879,
353,
2070,
29918,
1272,
29889,
657,
703,
2230,
29918,
2576,
29918,
29879,
613,
6213,
29897,
13,
12,
12,
17199,
29889,
6954,
29918,
2576,
29918,
29895,
353,
2070,
29918,
1272,
29889,
657,
703,
6954,
29918,
2576,
29918,
29895,
613,
6213,
29897,
13,
12,
12,
17199,
29889,
4905,
29918,
2576,
29918,
29895,
353,
2070,
29918,
1272,
29889,
657,
703,
4905,
29918,
2576,
29918,
29895,
613,
6213,
29897,
13,
12,
19499,
3497,
17413,
2392,
29901,
13,
12,
12,
3364,
13,
12,
19499,
7865,
2392,
408,
321,
29901,
13,
12,
12,
2158,
703,
1576,
1494,
1059,
471,
18169,
1550,
5183,
613,
2897,
29889,
2084,
29889,
7122,
29898,
29883,
401,
29892,
282,
401,
29892,
376,
1272,
29889,
3126,
1159,
29974,
1642,
613,
376,
1576,
934,
756,
1063,
17262,
23157,
13,
12,
12,
2158,
29898,
29872,
29897,
13,
12,
17199,
29889,
7620,
580,
13,
12,
2457,
2825,
13,
13,
1753,
788,
29918,
1285,
342,
29898,
1285,
342,
29918,
2084,
1125,
13,
12,
29937,
1653,
17793,
1203,
297,
4833,
13,
12,
29883,
401,
353,
2897,
29889,
2084,
29889,
6500,
3871,
29898,
1285,
342,
29918,
2084,
29897,
13,
12,
29898,
1285,
342,
29892,
2825,
29897,
353,
2866,
342,
29889,
12650,
29889,
657,
29918,
272,
29918,
3258,
29898,
29883,
401,
29922,
29883,
401,
29897,
13,
12,
3257,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1285,
342,
29918,
2084,
29892,
376,
3257,
29889,
3945,
1159,
13,
12,
2202,
29901,
13,
12,
12,
1285,
342,
29889,
3257,
353,
1722,
29898,
3257,
29918,
2084,
467,
949,
2141,
17010,
580,
13,
12,
19499,
3497,
17413,
2392,
29901,
13,
12,
12,
3364,
13,
12,
1285,
342,
29889,
7620,
580,
13,
13,
12,
29937,
788,
4828,
304,
4833,
13,
12,
6739,
2631,
353,
2897,
29889,
1761,
3972,
29898,
1285,
342,
29918,
2084,
29897,
13,
12,
1454,
282,
401,
297,
282,
18137,
29901,
13,
12,
12,
22795,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1285,
342,
29918,
2084,
29892,
282,
401,
29897,
13,
12,
12,
1202,
29918,
22795,
29898,
22795,
29918,
2084,
29892,
17793,
29897,
13,
12,
2457,
2825,
13,
13,
7724,
29918,
5813,
353,
2897,
29889,
2084,
29889,
6500,
3871,
29898,
7724,
29918,
10145,
29897,
13,
361,
4770,
978,
1649,
26359,
1649,
3396,
1649,
1115,
13,
12,
3308,
10461,
29918,
10810,
353,
376,
21125,
29901,
3017,
29941,
376,
718,
24080,
29918,
5813,
718,
376,
529,
1285,
342,
29918,
18137,
11903,
13,
2870,
29901,
13,
12,
3308,
10461,
29918,
10810,
353,
376,
3782,
640,
9197,
6790,
29908,
13,
6007,
18267,
29903,
29918,
9464,
29918,
10145,
353,
2897,
29889,
2084,
29889,
7122,
29898,
25416,
29918,
9464,
29892,
376,
29949,
29967,
29918,
1272,
613,
376,
1285,
9197,
1159,
13,
13,
5215,
10876,
13,
13,
1753,
1667,
10456,
5085,
1125,
13,
12,
361,
7431,
29898,
5085,
29897,
1360,
29900,
29901,
13,
12,
12,
2158,
29898,
3308,
10461,
29918,
10810,
29892,
934,
29922,
9675,
29889,
303,
20405,
29897,
13,
12,
2870,
29901,
13,
12,
12,
1454,
274,
401,
297,
6389,
29901,
13,
12,
12,
12,
1285,
342,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
6007,
18267,
29903,
29918,
9464,
29918,
10145,
29892,
274,
401,
29897,
13,
12,
12,
12,
11600,
353,
788,
29918,
1285,
342,
29898,
1285,
342,
29918,
2084,
29897,
13,
12,
12,
12,
361,
2825,
29901,
13,
12,
12,
12,
12,
2158,
703,
2528,
287,
17793,
613,
274,
401,
29897,
13,
12,
12,
12,
2870,
29901,
13,
12,
12,
12,
12,
2158,
703,
29248,
17793,
613,
274,
401,
29897,
13,
13,
361,
4770,
978,
1649,
26359,
1649,
3396,
1649,
1115,
13,
12,
29937,
731,
701,
9557,
13,
12,
359,
29889,
21813,
29889,
842,
4381,
703,
29928,
29967,
2190,
17080,
29918,
10490,
29911,
4214,
29903,
29918,
6720,
14849,
1307,
613,
376,
4836,
29918,
5527,
29889,
11027,
1159,
13,
12,
2158,
703,
29020,
701,
15337,
2023,
613,
28371,
29922,
5574,
29892,
1095,
2433,
1495,
13,
12,
5215,
9557,
13,
12,
14095,
29889,
14669,
580,
13,
12,
2158,
703,
2309,
1159,
13,
13,
3166,
1667,
29889,
9794,
1053,
11583,
29892,
2866,
342,
13,
13,
361,
4770,
978,
1649,
26359,
1649,
3396,
1649,
1115,
13,
12,
3396,
10456,
29898,
9675,
29889,
19218,
29961,
29896,
29901,
12622,
13,
2
] |
hydrobox/geostat/variogram.py | VForWaTer/hydrobox | 4 | 183855 | <filename>hydrobox/geostat/variogram.py
import numpy as np
import skgstat as skg
import gstools as gs
from hydrobox.geostat import typing
from hydrobox.plotting import plot_function_loader
def variogram(
coordinates: np.ndarray,
values: np.ndarray,
estimator: typing.Estimator = 'matheron',
model: typing.Model = 'spherical',
dist_func: typing.DistFunc = 'euclidean',
bin_func: typing.BinFunc = 'even',
fit_method: typing.FitMethod = 'trf',
fit_sigma: typing.FitSigma = None,
use_nugget: bool = False,
maxlag: typing.Maxlag = None,
n_lags: typing.Union[int, None] = 10,
return_type: typing.Literal['object', 'describe', 'plot', 'distance_difference', 'location_trend', 'scattergram'] = 'object',
**kwargs
) -> skg.Variogram:
"""
Uses scikit-gstat to estimate a Variogram.
Refer to the :class:`Variogram <skgstat.Variogram>` class
to learn about the different Parameters.
Parameters
----------
return_type : str
Specify how the Variogram instance should be returned. Object will
return the actual instance. 'describe' is the dictionary output
generated by the class, which is serializable. All other options
return the different plot types
Returns
-------
variogram : skgstat.Variogram
If the return type is `'object'`
plot : plotly.Figure, matplotlib.pyplot.Figure
If the return type is one of the plots
description : dict
If the return type is `'describe'`
"""
# create the variogram
v = skg.Variogram(
coordinates=coordinates,
values=values,
estimator=estimator,
model=model,
dist_func=dist_func,
bin_func=bin_func,
fit_method=fit_method,
fit_sigma=fit_sigma,
use_nugget=use_nugget,
maxlag=maxlag,
n_lags=n_lags,
**kwargs
)
if return_type == 'object':
return v
elif return_type == 'describe':
return v.describe(short=False, flat=False)
# otherwise create a plot
pfunc = plot_function_loader('variogram')
fig = pfunc(
func_args=dict(
variogram=v,
plot_type=return_type
),
plot_args=kwargs
)
return fig
| [
1,
529,
9507,
29958,
29882,
11279,
1884,
29914,
479,
520,
271,
29914,
5927,
13342,
29889,
2272,
13,
5215,
12655,
408,
7442,
13,
5215,
2071,
29887,
6112,
408,
2071,
29887,
13,
5215,
330,
303,
8789,
408,
330,
29879,
13,
13,
3166,
17546,
1884,
29889,
479,
520,
271,
1053,
19229,
13,
3166,
17546,
1884,
29889,
5317,
1259,
1053,
6492,
29918,
2220,
29918,
12657,
13,
13,
13,
1753,
1197,
13342,
29898,
13,
1678,
10350,
29901,
7442,
29889,
299,
2378,
29892,
13,
1678,
1819,
29901,
7442,
29889,
299,
2378,
29892,
13,
1678,
4844,
1061,
29901,
19229,
29889,
12787,
326,
1061,
353,
525,
755,
261,
265,
742,
13,
1678,
1904,
29901,
19229,
29889,
3195,
353,
525,
29879,
8096,
936,
742,
13,
1678,
1320,
29918,
9891,
29901,
19229,
29889,
13398,
14400,
353,
525,
29872,
27511,
742,
13,
1678,
9016,
29918,
9891,
29901,
19229,
29889,
29933,
262,
14400,
353,
525,
11884,
742,
13,
1678,
6216,
29918,
5696,
29901,
19229,
29889,
29943,
277,
4062,
353,
525,
509,
29888,
742,
13,
1678,
6216,
29918,
3754,
29901,
19229,
29889,
29943,
277,
10142,
353,
6213,
29892,
13,
1678,
671,
29918,
29876,
688,
657,
29901,
6120,
353,
7700,
29892,
13,
1678,
4236,
3110,
29901,
19229,
29889,
7976,
3110,
353,
6213,
29892,
13,
1678,
302,
29918,
29880,
810,
29901,
19229,
29889,
19986,
29961,
524,
29892,
6213,
29962,
353,
29871,
29896,
29900,
29892,
13,
1678,
736,
29918,
1853,
29901,
19229,
29889,
24938,
284,
1839,
3318,
742,
525,
2783,
29581,
742,
525,
5317,
742,
525,
19244,
29918,
29881,
17678,
742,
525,
5479,
29918,
509,
355,
742,
525,
1557,
2620,
1393,
2033,
353,
525,
3318,
742,
13,
1678,
3579,
19290,
13,
29897,
1599,
2071,
29887,
29889,
10444,
13342,
29901,
13,
1678,
9995,
13,
1678,
10783,
267,
4560,
7354,
29899,
29887,
6112,
304,
12678,
263,
9586,
13342,
29889,
29871,
13,
1678,
4118,
304,
278,
584,
1990,
18078,
10444,
13342,
529,
808,
29887,
6112,
29889,
10444,
13342,
13885,
770,
13,
1678,
304,
5110,
1048,
278,
1422,
12662,
2699,
29889,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
736,
29918,
1853,
584,
851,
13,
4706,
12048,
1598,
920,
278,
9586,
13342,
2777,
881,
367,
4133,
29889,
4669,
674,
13,
4706,
736,
278,
3935,
2777,
29889,
525,
2783,
29581,
29915,
338,
278,
8600,
1962,
13,
4706,
5759,
491,
278,
770,
29892,
607,
338,
7797,
13902,
29889,
2178,
916,
3987,
13,
4706,
736,
278,
1422,
6492,
4072,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
1197,
13342,
584,
2071,
29887,
6112,
29889,
10444,
13342,
13,
4706,
960,
278,
736,
1134,
338,
16218,
3318,
11120,
13,
1678,
6492,
584,
6492,
368,
29889,
13080,
545,
29892,
22889,
29889,
2272,
5317,
29889,
13080,
545,
13,
4706,
960,
278,
736,
1134,
338,
697,
310,
278,
24580,
13,
1678,
6139,
584,
9657,
13,
4706,
960,
278,
736,
1134,
338,
16218,
2783,
29581,
11120,
13,
13,
1678,
9995,
13,
1678,
396,
1653,
278,
1197,
13342,
13,
1678,
325,
353,
2071,
29887,
29889,
10444,
13342,
29898,
13,
4706,
10350,
29922,
1111,
24266,
29892,
13,
4706,
1819,
29922,
5975,
29892,
13,
4706,
4844,
1061,
29922,
342,
326,
1061,
29892,
13,
4706,
1904,
29922,
4299,
29892,
13,
4706,
1320,
29918,
9891,
29922,
5721,
29918,
9891,
29892,
13,
4706,
9016,
29918,
9891,
29922,
2109,
29918,
9891,
29892,
13,
4706,
6216,
29918,
5696,
29922,
9202,
29918,
5696,
29892,
13,
4706,
6216,
29918,
3754,
29922,
9202,
29918,
3754,
29892,
13,
4706,
671,
29918,
29876,
688,
657,
29922,
1509,
29918,
29876,
688,
657,
29892,
13,
4706,
4236,
3110,
29922,
3317,
3110,
29892,
13,
4706,
302,
29918,
29880,
810,
29922,
29876,
29918,
29880,
810,
29892,
13,
4706,
3579,
19290,
13,
1678,
1723,
13,
13,
1678,
565,
736,
29918,
1853,
1275,
525,
3318,
2396,
13,
4706,
736,
325,
13,
1678,
25342,
736,
29918,
1853,
1275,
525,
2783,
29581,
2396,
13,
4706,
736,
325,
29889,
2783,
29581,
29898,
12759,
29922,
8824,
29892,
12151,
29922,
8824,
29897,
13,
268,
13,
1678,
396,
6467,
1653,
263,
6492,
13,
1678,
282,
9891,
353,
6492,
29918,
2220,
29918,
12657,
877,
5927,
13342,
1495,
13,
1678,
2537,
353,
282,
9891,
29898,
13,
4706,
3653,
29918,
5085,
29922,
8977,
29898,
13,
9651,
1197,
13342,
29922,
29894,
29892,
13,
9651,
6492,
29918,
1853,
29922,
2457,
29918,
1853,
13,
4706,
10353,
29871,
13,
4706,
6492,
29918,
5085,
29922,
19290,
13,
1678,
1723,
13,
1678,
736,
2537,
13,
13,
13,
2
] |
seeds/plugins/action/StopOnConvergence.py | briandconnelly/seeds | 11 | 146974 | <reponame>briandconnelly/seeds
# -*- coding: utf-8 -*-
""" Stop the experiment when the number of existing Cell types in the
population drops below a threshold. This allows experiments to end earlier
than the configured number if epochs have passed or experiments to not specify
the total number of epochs to observe. This is accomplished by calling the
Experiment's end method.
"""
__author__ = "<NAME> <<EMAIL>>"
__credits__ = "<NAME>"
from seeds.Action import *
from seeds.Plugin import *
from seeds.SEEDSError import *
class StopOnConvergence(Action, Plugin):
""" Stop the experiment when the number of exisiting cell types in the
population drops below the configured threshold.
Configuration is done in the [StopOnConvergence] section
Configuration Options:
epoch_start
The epoch at which to start executing (default: 0)
epoch_end
The epoch at which to stop executing (default: end of experiment)
frequency
The frequency (epochs) at which to execute (default: 1)
priority
The priority of this action. Actions with higher priority get run
first. (default: 0)
threshold
The number of cell types at or below which to stop the experiment
(default: 0)
Configuration Example:
[StopOnConvergence]
threshold = 2
epoch_start = 0
epoch_end = 100
frequency = 1
priority = 0
"""
__name__ = "StopOnConvergence"
__version__ = (1,0)
__author__ = "<NAME> <<EMAIL>>"
__credits__ = "<NAME>"
__description__ = "Stop the experiment when the number of existiing cell types in the population falls below the given threshold"
__type__ = 4
__requirements__ = []
def __init__(self, experiment, label=None):
"""Initialize the StopOnConvergence Action"""
super(StopOnConvergence, self).__init__(experiment,
name="StopOnConvergence",
label=label)
self.threshold = self.experiment.config.getint(self.config_section, 'threshold', 0)
self.epoch_start = self.experiment.config.getint(self.config_section, 'epoch_start', 0)
self.epoch_end = self.experiment.config.getint(self.config_section, 'epoch_end',
default=self.experiment.config.getint('Experiment', 'epochs', default=-1))
self.frequency = self.experiment.config.getint(self.config_section, 'frequency', 1)
self.priority = self.experiment.config.getint(self.config_section, 'priority', 0)
if self.threshold < 0:
raise ConfigurationError("StopOnConvergence: threshold value must be at least 0")
def update(self):
"""Execute the Action"""
if self.skip_update():
return
converged = True
num_active_types = 0
for tcount in self.experiment.data['population']['type_count']:
if tcount > 0:
num_active_types += 1
if num_active_types >= self.threshold:
converged = False
if converged:
self.experiment.end()
| [
1,
529,
276,
1112,
420,
29958,
29890,
374,
392,
535,
9139,
368,
29914,
344,
5779,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
22303,
278,
7639,
746,
278,
1353,
310,
5923,
19413,
4072,
297,
278,
13,
7323,
2785,
4441,
567,
2400,
263,
16897,
29889,
29871,
910,
6511,
15729,
304,
1095,
8859,
13,
27603,
278,
13252,
1353,
565,
21502,
12168,
505,
4502,
470,
15729,
304,
451,
6084,
13,
1552,
3001,
1353,
310,
21502,
12168,
304,
14111,
29889,
29871,
910,
338,
24799,
491,
5432,
278,
13,
1252,
15362,
29915,
29879,
1095,
1158,
29889,
13,
13,
15945,
29908,
13,
13,
1649,
8921,
1649,
353,
9872,
5813,
29958,
3532,
26862,
6227,
6778,
29908,
13,
1649,
11944,
1169,
1649,
353,
9872,
5813,
11903,
13,
13,
3166,
409,
5779,
29889,
4276,
1053,
334,
13,
3166,
409,
5779,
29889,
16288,
1053,
334,
13,
3166,
409,
5779,
29889,
1660,
3352,
29173,
1053,
334,
13,
13,
13,
1990,
22303,
2951,
1168,
369,
10238,
29898,
4276,
29892,
1858,
3851,
1125,
13,
1678,
9995,
22303,
278,
7639,
746,
278,
1353,
310,
429,
275,
11407,
3038,
4072,
297,
278,
13,
1678,
4665,
4441,
567,
2400,
278,
13252,
16897,
29889,
13,
13,
1678,
20999,
338,
2309,
297,
278,
518,
16329,
2951,
1168,
369,
10238,
29962,
4004,
13,
13,
1678,
20999,
25186,
29901,
13,
13,
1678,
21502,
305,
29918,
2962,
13,
4706,
450,
21502,
305,
472,
607,
304,
1369,
14012,
313,
4381,
29901,
29871,
29900,
29897,
13,
1678,
21502,
305,
29918,
355,
13,
4706,
450,
21502,
305,
472,
607,
304,
5040,
14012,
313,
4381,
29901,
1095,
310,
7639,
29897,
13,
1678,
10868,
13,
4706,
450,
10868,
313,
1022,
2878,
29879,
29897,
472,
607,
304,
6222,
313,
4381,
29901,
29871,
29896,
29897,
13,
1678,
20136,
13,
4706,
450,
20136,
310,
445,
3158,
29889,
29871,
319,
1953,
411,
6133,
20136,
679,
1065,
13,
4706,
937,
29889,
29871,
313,
4381,
29901,
29871,
29900,
29897,
13,
1678,
16897,
13,
4706,
450,
1353,
310,
3038,
4072,
472,
470,
2400,
607,
304,
5040,
278,
7639,
13,
4706,
313,
4381,
29901,
29871,
29900,
29897,
13,
13,
13,
1678,
20999,
8741,
29901,
13,
13,
1678,
518,
16329,
2951,
1168,
369,
10238,
29962,
13,
1678,
16897,
353,
29871,
29906,
13,
1678,
21502,
305,
29918,
2962,
353,
29871,
29900,
13,
1678,
21502,
305,
29918,
355,
353,
29871,
29896,
29900,
29900,
13,
1678,
10868,
353,
29871,
29896,
13,
1678,
20136,
353,
29871,
29900,
13,
13,
1678,
9995,
13,
13,
1678,
4770,
978,
1649,
353,
376,
16329,
2951,
1168,
369,
10238,
29908,
13,
1678,
4770,
3259,
1649,
353,
313,
29896,
29892,
29900,
29897,
13,
1678,
4770,
8921,
1649,
353,
9872,
5813,
29958,
3532,
26862,
6227,
6778,
29908,
13,
1678,
4770,
11944,
1169,
1649,
353,
9872,
5813,
11903,
13,
1678,
4770,
8216,
1649,
353,
376,
16329,
278,
7639,
746,
278,
1353,
310,
1863,
29875,
292,
3038,
4072,
297,
278,
4665,
20074,
2400,
278,
2183,
16897,
29908,
13,
1678,
4770,
1853,
1649,
353,
29871,
29946,
308,
13,
1678,
4770,
12277,
1860,
1649,
353,
5159,
29871,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
7639,
29892,
3858,
29922,
8516,
1125,
13,
4706,
9995,
6644,
6646,
278,
22303,
2951,
1168,
369,
10238,
9123,
15945,
29908,
13,
13,
4706,
2428,
29898,
16329,
2951,
1168,
369,
10238,
29892,
1583,
467,
1649,
2344,
12035,
735,
15362,
29892,
13,
462,
462,
18884,
1024,
543,
16329,
2951,
1168,
369,
10238,
613,
13,
462,
462,
18884,
3858,
29922,
1643,
29897,
13,
13,
4706,
1583,
29889,
386,
12268,
353,
1583,
29889,
735,
15362,
29889,
2917,
29889,
657,
524,
29898,
1311,
29889,
2917,
29918,
2042,
29892,
525,
386,
12268,
742,
29871,
29900,
29897,
13,
4706,
1583,
29889,
1022,
2878,
29918,
2962,
353,
1583,
29889,
735,
15362,
29889,
2917,
29889,
657,
524,
29898,
1311,
29889,
2917,
29918,
2042,
29892,
525,
1022,
2878,
29918,
2962,
742,
29871,
29900,
29897,
13,
4706,
1583,
29889,
1022,
2878,
29918,
355,
353,
1583,
29889,
735,
15362,
29889,
2917,
29889,
657,
524,
29898,
1311,
29889,
2917,
29918,
2042,
29892,
525,
1022,
2878,
29918,
355,
742,
13,
462,
462,
462,
29871,
2322,
29922,
1311,
29889,
735,
15362,
29889,
2917,
29889,
657,
524,
877,
1252,
15362,
742,
525,
1022,
2878,
29879,
742,
2322,
10457,
29896,
876,
13,
4706,
1583,
29889,
10745,
23860,
353,
1583,
29889,
735,
15362,
29889,
2917,
29889,
657,
524,
29898,
1311,
29889,
2917,
29918,
2042,
29892,
525,
10745,
23860,
742,
29871,
29896,
29897,
13,
4706,
1583,
29889,
29886,
21766,
353,
1583,
29889,
735,
15362,
29889,
2917,
29889,
657,
524,
29898,
1311,
29889,
2917,
29918,
2042,
29892,
525,
29886,
21766,
742,
29871,
29900,
29897,
13,
13,
4706,
565,
1583,
29889,
386,
12268,
529,
29871,
29900,
29901,
13,
9651,
12020,
20999,
2392,
703,
16329,
2951,
1168,
369,
10238,
29901,
16897,
995,
1818,
367,
472,
3203,
29871,
29900,
1159,
13,
13,
1678,
822,
2767,
29898,
1311,
1125,
13,
4706,
9995,
12296,
278,
9123,
15945,
29908,
13,
4706,
565,
1583,
29889,
11014,
29918,
5504,
7295,
13,
12,
4706,
736,
13,
13,
4706,
5486,
3192,
353,
5852,
13,
13,
4706,
954,
29918,
4925,
29918,
8768,
353,
29871,
29900,
13,
4706,
363,
260,
2798,
297,
1583,
29889,
735,
15362,
29889,
1272,
1839,
7323,
2785,
16215,
1853,
29918,
2798,
2033,
29901,
13,
9651,
565,
260,
2798,
1405,
29871,
29900,
29901,
13,
18884,
954,
29918,
4925,
29918,
8768,
4619,
29871,
29896,
13,
13,
4706,
565,
954,
29918,
4925,
29918,
8768,
6736,
1583,
29889,
386,
12268,
29901,
13,
9651,
5486,
3192,
353,
7700,
13,
13,
4706,
565,
5486,
3192,
29901,
13,
9651,
1583,
29889,
735,
15362,
29889,
355,
580,
13,
2
] |
examples/chanlun/feature/03/ex_setup_commands.py | garywangiam02/vnpy | 0 | 67069 | # coding=utf-8
from pytdx.parser.base import BaseParser
from pytdx.helper import get_datetime, get_volume, get_price
from collections import OrderedDict
import struct
class ExSetupCmd1(BaseParser):
def setup(self):
# self.send_pkg = bytearray.fromhex("01 01 48 65 00 01 52 00 52 00 54 24 1f 32 c6 e5"
# "d5 3d fb 41 1f 32 c6 e5 d5 3d fb 41 1f 32 c6 e5"
# "d5 3d fb 41 1f 32 c6 e5 d5 3d fb 41 1f 32 c6 e5"
# "d5 3d fb 41 1f 32 c6 e5 d5 3d fb 41 1f 32 c6 e5"
# "d5 3d fb 41 1f 32 c6 e5 d5 3d fb 41 cc e1 6d ff"
# "d5 ba 3f b8 cb c5 7a 05 4f 77 48 ea")
self.send_pkg = bytearray.fromhex("01 01 48 65 00 01 52 00 52 00 54 24"
"FC F0 0E 92 F3 C8 37 83 1F 32 C6 E5 D5 3D FB 41 CD 9C"
"F2 07 FC D0 3C F6 F2 F7 A4 77 47 83 1D 59 9D CC 1F 91"
"D5 55 82 DC 09 07 EE 29 DD FE 4C 28 1F 32 C6 E5 D5 3D"
"FB 41 1F 32 C6 E5 D5 3D FB 41 F3 43 87 E6 68 A9 2A A3"
"70 11 E4 9C D2 6E B0 1A")
def parseResponse(self, body_buf):
pass
| [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
13,
3166,
11451,
1594,
29916,
29889,
16680,
29889,
3188,
1053,
7399,
11726,
13,
3166,
11451,
1594,
29916,
29889,
20907,
1053,
679,
29918,
12673,
29892,
679,
29918,
24623,
29892,
679,
29918,
9175,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
5215,
2281,
13,
13,
13,
1990,
1222,
26947,
23651,
29896,
29898,
5160,
11726,
1125,
13,
13,
1678,
822,
6230,
29898,
1311,
1125,
13,
4706,
396,
1583,
29889,
6717,
29918,
15865,
353,
7023,
2378,
29889,
3166,
20970,
703,
29900,
29896,
29871,
29900,
29896,
29871,
29946,
29947,
29871,
29953,
29945,
29871,
29900,
29900,
29871,
29900,
29896,
29871,
29945,
29906,
29871,
29900,
29900,
29871,
29945,
29906,
29871,
29900,
29900,
29871,
29945,
29946,
29871,
29906,
29946,
29871,
29896,
29888,
29871,
29941,
29906,
274,
29953,
321,
29945,
29908,
13,
4706,
396,
462,
462,
268,
376,
29881,
29945,
29871,
29941,
29881,
285,
29890,
29871,
29946,
29896,
29871,
29896,
29888,
29871,
29941,
29906,
274,
29953,
321,
29945,
270,
29945,
29871,
29941,
29881,
285,
29890,
29871,
29946,
29896,
29871,
29896,
29888,
29871,
29941,
29906,
274,
29953,
321,
29945,
29908,
13,
4706,
396,
462,
462,
268,
376,
29881,
29945,
29871,
29941,
29881,
285,
29890,
29871,
29946,
29896,
29871,
29896,
29888,
29871,
29941,
29906,
274,
29953,
321,
29945,
270,
29945,
29871,
29941,
29881,
285,
29890,
29871,
29946,
29896,
29871,
29896,
29888,
29871,
29941,
29906,
274,
29953,
321,
29945,
29908,
13,
4706,
396,
462,
462,
268,
376,
29881,
29945,
29871,
29941,
29881,
285,
29890,
29871,
29946,
29896,
29871,
29896,
29888,
29871,
29941,
29906,
274,
29953,
321,
29945,
270,
29945,
29871,
29941,
29881,
285,
29890,
29871,
29946,
29896,
29871,
29896,
29888,
29871,
29941,
29906,
274,
29953,
321,
29945,
29908,
13,
4706,
396,
462,
462,
268,
376,
29881,
29945,
29871,
29941,
29881,
285,
29890,
29871,
29946,
29896,
29871,
29896,
29888,
29871,
29941,
29906,
274,
29953,
321,
29945,
270,
29945,
29871,
29941,
29881,
285,
29890,
29871,
29946,
29896,
21759,
321,
29896,
29871,
29953,
29881,
14336,
29908,
13,
4706,
396,
462,
462,
268,
376,
29881,
29945,
9922,
29871,
29941,
29888,
289,
29947,
26324,
274,
29945,
29871,
29955,
29874,
29871,
29900,
29945,
29871,
29946,
29888,
29871,
29955,
29955,
29871,
29946,
29947,
321,
29874,
1159,
13,
4706,
1583,
29889,
6717,
29918,
15865,
353,
7023,
2378,
29889,
3166,
20970,
703,
29900,
29896,
29871,
29900,
29896,
29871,
29946,
29947,
29871,
29953,
29945,
29871,
29900,
29900,
29871,
29900,
29896,
29871,
29945,
29906,
29871,
29900,
29900,
29871,
29945,
29906,
29871,
29900,
29900,
29871,
29945,
29946,
29871,
29906,
29946,
29908,
13,
462,
462,
3986,
376,
8610,
383,
29900,
29871,
29900,
29923,
29871,
29929,
29906,
383,
29941,
315,
29947,
29871,
29941,
29955,
29871,
29947,
29941,
29871,
29896,
29943,
29871,
29941,
29906,
315,
29953,
382,
29945,
360,
29945,
29871,
29941,
29928,
28816,
29871,
29946,
29896,
7307,
29871,
29929,
29907,
29908,
13,
462,
462,
3986,
376,
29943,
29906,
29871,
29900,
29955,
7992,
360,
29900,
29871,
29941,
29907,
383,
29953,
383,
29906,
383,
29955,
319,
29946,
29871,
29955,
29955,
29871,
29946,
29955,
29871,
29947,
29941,
29871,
29896,
29928,
29871,
29945,
29929,
29871,
29929,
29928,
19178,
29871,
29896,
29943,
29871,
29929,
29896,
29908,
13,
462,
462,
3986,
376,
29928,
29945,
29871,
29945,
29945,
29871,
29947,
29906,
13681,
29871,
29900,
29929,
29871,
29900,
29955,
382,
29923,
29871,
29906,
29929,
360,
29928,
383,
29923,
29871,
29946,
29907,
29871,
29906,
29947,
29871,
29896,
29943,
29871,
29941,
29906,
315,
29953,
382,
29945,
360,
29945,
29871,
29941,
29928,
29908,
13,
462,
462,
3986,
376,
18426,
29871,
29946,
29896,
29871,
29896,
29943,
29871,
29941,
29906,
315,
29953,
382,
29945,
360,
29945,
29871,
29941,
29928,
28816,
29871,
29946,
29896,
383,
29941,
29871,
29946,
29941,
29871,
29947,
29955,
382,
29953,
29871,
29953,
29947,
319,
29929,
29871,
29906,
29909,
319,
29941,
29908,
13,
462,
462,
3986,
376,
29955,
29900,
29871,
29896,
29896,
382,
29946,
29871,
29929,
29907,
360,
29906,
29871,
29953,
29923,
350,
29900,
29871,
29896,
29909,
1159,
13,
1678,
822,
6088,
5103,
29898,
1311,
29892,
3573,
29918,
9721,
1125,
13,
4706,
1209,
13,
2
] |
asyncupbankapi/models/__init__.py | unchartedshark/async-up-bank-api | 1 | 95562 | <gh_stars>1-10
"""Typed python client for interacting with Up's banking API."""
from asyncupbankapi.models.accounts import Account, Accounts
from asyncupbankapi.models.categories import Category, Categories
from asyncupbankapi.models.tags import Tags
from asyncupbankapi.models.transactions import Transaction, Transactions
from asyncupbankapi.models.utility import Ping
from asyncupbankapi.models.webhooks import Webhook, WebhookEvent, WebhookLogs, Webhooks
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
24933,
287,
3017,
3132,
363,
16254,
292,
411,
5020,
29915,
29879,
9124,
292,
3450,
1213,
15945,
30004,
13,
3166,
7465,
786,
9157,
2754,
29889,
9794,
29889,
10149,
29879,
1053,
16535,
29892,
16535,
29879,
30004,
13,
3166,
7465,
786,
9157,
2754,
29889,
9794,
29889,
20683,
1053,
17943,
29892,
315,
14404,
30004,
13,
3166,
7465,
786,
9157,
2754,
29889,
9794,
29889,
11338,
1053,
917,
30004,
13,
3166,
7465,
786,
9157,
2754,
29889,
9794,
29889,
3286,
7387,
1053,
4103,
2467,
29892,
4103,
7387,
30004,
13,
3166,
7465,
786,
9157,
2754,
29889,
9794,
29889,
329,
1793,
1053,
349,
292,
30004,
13,
3166,
7465,
786,
9157,
2754,
29889,
9794,
29889,
2676,
1251,
12117,
1053,
2563,
20849,
29892,
2563,
20849,
2624,
29892,
2563,
20849,
3403,
29879,
29892,
2563,
1251,
12117,
30004,
13,
2
] |
hikari/api/special_endpoints.py | patchwork-systems/hikari | 0 | 195915 | <reponame>patchwork-systems/hikari
# -*- coding: utf-8 -*-
# cython: language_level=3
# Copyright (c) 2020 Nekokatt
# Copyright (c) 2021-present davfsa
#
# 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.
"""Special additional endpoints used by the REST API."""
from __future__ import annotations
__all__: typing.List[str] = [
"ActionRowBuilder",
"ButtonBuilder",
"CommandBuilder",
"SlashCommandBuilder",
"ContextMenuCommandBuilder",
"ComponentBuilder",
"TypingIndicator",
"GuildBuilder",
"InteractionAutocompleteBuilder",
"InteractionDeferredBuilder",
"InteractionResponseBuilder",
"InteractionMessageBuilder",
"InteractiveButtonBuilder",
"LinkButtonBuilder",
"SelectMenuBuilder",
"SelectOptionBuilder",
]
import abc
import typing
from hikari import undefined
if typing.TYPE_CHECKING:
import types
from hikari import channels
from hikari import colors
from hikari import commands
from hikari import embeds as embeds_
from hikari import emojis
from hikari import files
from hikari import guilds
from hikari import messages
from hikari import permissions as permissions_
from hikari import snowflakes
from hikari import users
from hikari import voices
from hikari.api import entity_factory as entity_factory_
from hikari.interactions import base_interactions
from hikari.internal import data_binding
from hikari.internal import time
_T = typing.TypeVar("_T")
_SelectMenuBuilderT = typing.TypeVar("_SelectMenuBuilderT", bound="SelectMenuBuilder[typing.Any]")
_ContainerT = typing.TypeVar("_ContainerT")
class TypingIndicator(abc.ABC):
"""Result type of `hikari.api.rest.RESTClient.trigger_typing`.
This is an object that can either be awaited like a coroutine to trigger
the typing indicator once, or an async context manager to keep triggering
the typing indicator repeatedly until the context finishes.
!!! note
This is a helper class that is used by `hikari.api.rest.RESTClient`.
You should only ever need to use instances of this class that are
produced by that API.
"""
__slots__: typing.Sequence[str] = ()
@abc.abstractmethod
def __await__(self) -> typing.Generator[None, typing.Any, None]:
...
@abc.abstractmethod
async def __aenter__(self) -> None:
...
@abc.abstractmethod
async def __aexit__(
self,
exception_type: typing.Type[BaseException],
exception: BaseException,
exception_traceback: types.TracebackType,
) -> None:
...
class GuildBuilder(abc.ABC):
"""Result type of `hikari.api.rest.RESTClient.guild_builder`.
This is used to create a guild in a tidy way using the HTTP API, since
the logic behind creating a guild on an API level is somewhat confusing
and detailed.
!!! note
This is a helper class that is used by `hikari.api.rest.RESTClient`.
You should only ever need to use instances of this class that are
produced by that API, thus, any details about the constructor are
omitted from the following examples for brevity.
Examples
--------
Creating an empty guild.
```py
guild = await rest.guild_builder("My Server!").create()
```
Creating a guild with an icon
```py
from hikari.files import WebResourceStream
guild_builder = rest.guild_builder("My Server!")
guild_builder.icon = WebResourceStream("cat.png", "http://...")
guild = await guild_builder.create()
```
Adding roles to your guild.
```py
from hikari.permissions import Permissions
guild_builder = rest.guild_builder("My Server!")
everyone_role_id = guild_builder.add_role("@everyone")
admin_role_id = guild_builder.add_role("Admins", permissions=Permissions.ADMINISTRATOR)
await guild_builder.create()
```
!!! warning
The first role must always be the `@everyone` role.
!!! note
If you call `add_role`, the default roles provided by discord will
be created. This also applies to the `add_` functions for
text channels/voice channels/categories.
!!! note
Functions that return a `hikari.snowflakes.Snowflake` do
**not** provide the final ID that the object will have once the
API call is made. The returned IDs are only able to be used to
re-reference particular objects while building the guild format.
This is provided to allow creation of channels within categories,
and to provide permission overwrites.
Adding a text channel to your guild.
```py
guild_builder = rest.guild_builder("My Server!")
category_id = guild_builder.add_category("My safe place")
channel_id = guild_builder.add_text_channel("general", parent_id=category_id)
await guild_builder.create()
```
"""
__slots__: typing.Sequence[str] = ()
@property
@abc.abstractmethod
def name(self) -> str:
"""Name of the guild to create.
Returns
-------
builtins.str
The guild name.
"""
@property
@abc.abstractmethod
def default_message_notifications(self) -> undefined.UndefinedOr[guilds.GuildMessageNotificationsLevel]:
"""Default message notification level that can be overwritten.
If not overridden, this will use the Discord default level.
Returns
-------
hikari.undefined.UndefinedOr[hikari.guilds.GuildMessageNotificationsLevel]
The default message notification level, if overwritten.
""" # noqa: D401 - Imperative mood
@default_message_notifications.setter
def default_message_notifications(
self, default_message_notifications: undefined.UndefinedOr[guilds.GuildMessageNotificationsLevel], /
) -> None:
raise NotImplementedError
@property
@abc.abstractmethod
def explicit_content_filter_level(self) -> undefined.UndefinedOr[guilds.GuildExplicitContentFilterLevel]:
"""Explicit content filter level that can be overwritten.
If not overridden, this will use the Discord default level.
Returns
-------
hikari.undefined.UndefinedOr[hikari.guilds.GuildExplicitContentFilterLevel]
The explicit content filter level, if overwritten.
"""
@explicit_content_filter_level.setter
def explicit_content_filter_level(
self, explicit_content_filter_level: undefined.UndefinedOr[guilds.GuildExplicitContentFilterLevel], /
) -> None:
raise NotImplementedError
@property
@abc.abstractmethod
def icon(self) -> undefined.UndefinedOr[files.Resourceish]:
"""Guild icon to use that can be overwritten.
If not overridden, the guild will not have an icon.
Returns
-------
hikari.undefined.UndefinedOr[hikari.files.Resourceish]
The guild icon to use, if overwritten.
"""
@icon.setter
def icon(self, icon: undefined.UndefinedOr[files.Resourceish], /) -> None:
raise NotImplementedError
@property
@abc.abstractmethod
def verification_level(self) -> undefined.UndefinedOr[typing.Union[guilds.GuildVerificationLevel, int]]:
"""Verification level required to join the guild that can be overwritten.
If not overridden, the guild will use the default verification level for
Returns
-------
hikari.undefined.UndefinedOr[typing.Union[hikari.guilds.GuildVerificationLevel, builtins.int]]
The verification level required to join the guild, if overwritten.
"""
@verification_level.setter
def verification_level(
self, verification_level: undefined.UndefinedOr[typing.Union[guilds.GuildVerificationLevel, int]], /
) -> None:
raise NotImplementedError
@abc.abstractmethod
async def create(self) -> guilds.RESTGuild:
"""Send the request to Discord to create the guild.
The application user will be added to this guild as soon as it is
created. All IDs that were provided when building this guild will
become invalid and will be replaced with real IDs.
Returns
-------
hikari.guilds.RESTGuild
The created guild.
Raises
------
hikari.errors.BadRequestError
If any values set in the guild builder are invalid.
hikari.errors.UnauthorizedError
If you are unauthorized to make the request (invalid/missing token).
hikari.errors.ForbiddenError
If you are already in 10 guilds.
hikari.errors.InternalServerError
If an internal error occurs on Discord while handling the request.
"""
@abc.abstractmethod
def add_role(
self,
name: str,
/,
*,
permissions: undefined.UndefinedOr[permissions_.Permissions] = undefined.UNDEFINED,
color: undefined.UndefinedOr[colors.Colorish] = undefined.UNDEFINED,
colour: undefined.UndefinedOr[colors.Colorish] = undefined.UNDEFINED,
hoist: undefined.UndefinedOr[bool] = undefined.UNDEFINED,
mentionable: undefined.UndefinedOr[bool] = undefined.UNDEFINED,
position: undefined.UndefinedOr[int] = undefined.UNDEFINED,
) -> snowflakes.Snowflake:
"""Create a role.
!!! warning
The first role you create must always be the `@everyone` role.
Parameters
----------
name : builtins.str
The role's name.
Other Parameters
----------------
permissions : hikari.undefined.UndefinedOr[hikari.permissions.Permissions]
If provided, the permissions for the role.
color : hikari.undefined.UndefinedOr[hikari.colors.Colorish]
If provided, the role's color.
colour : hikari.undefined.UndefinedOr[hikari.colors.Colorish]
An alias for `color`.
hoist : hikari.undefined.UndefinedOr[builtins.bool]
If provided, whether to hoist the role.
mentionable : hikari.undefined.UndefinedOr[builtins.bool]
If provided, whether to make the role mentionable.
reason : hikari.undefined.UndefinedOr[builtins.str]
If provided, the reason that will be recorded in the audit logs.
Maximum of 512 characters.
Returns
-------
hikari.snowflakes.Snowflake
The dummy ID for this role that can be used temporarily to refer
to this object while designing the guild layout.
When the guild is created, this will be replaced with a different
ID.
Raises
------
builtins.ValueError
If you are defining the first role, but did not name it `@everyone`.
builtins.TypeError
If you specify both `color` and `colour` together or if you try to
specify `color`, `colour`, `hoisted`, `mentionable` or `position` for
the `@everyone` role.
"""
@abc.abstractmethod
def add_category(
self,
name: str,
/,
*,
position: undefined.UndefinedOr[int] = undefined.UNDEFINED,
permission_overwrites: undefined.UndefinedOr[
typing.Collection[channels.PermissionOverwrite]
] = undefined.UNDEFINED,
) -> snowflakes.Snowflake:
"""Create a category channel.
Parameters
----------
name : builtins.str
The channels name. Must be between 2 and 1000 characters.
Other Parameters
----------------
position : hikari.undefined.UndefinedOr[builtins.int]
If provided, the position of the category.
permission_overwrites : hikari.undefined.UndefinedOr[typing.Sequence[hikari.channels.PermissionOverwrite]]
If provided, the permission overwrites for the category.
Returns
-------
hikari.snowflakes.Snowflake
The dummy ID for this channel that can be used temporarily to refer
to this object while designing the guild layout.
When the guild is created, this will be replaced with a different
ID.
""" # noqa: E501 - Line too long
@abc.abstractmethod
def add_text_channel(
self,
name: str,
/,
*,
parent_id: undefined.UndefinedOr[snowflakes.Snowflake] = undefined.UNDEFINED,
topic: undefined.UndefinedOr[str] = undefined.UNDEFINED,
rate_limit_per_user: undefined.UndefinedOr[time.Intervalish] = undefined.UNDEFINED,
position: undefined.UndefinedOr[int] = undefined.UNDEFINED,
permission_overwrites: undefined.UndefinedOr[
typing.Collection[channels.PermissionOverwrite]
] = undefined.UNDEFINED,
nsfw: undefined.UndefinedOr[bool] = undefined.UNDEFINED,
) -> snowflakes.Snowflake:
"""Create a text channel.
Parameters
----------
name : builtins.str
The channels name. Must be between 2 and 1000 characters.
Other Parameters
----------------
position : hikari.undefined.UndefinedOr[builtins.int]
If provided, the position of the channel (relative to the
category, if any).
topic : hikari.undefined.UndefinedOr[builtins.str]
If provided, the channels topic. Maximum 1024 characters.
nsfw : hikari.undefined.UndefinedOr[builtins.bool]
If provided, whether to mark the channel as NSFW.
rate_limit_per_user : hikari.undefined.UndefinedOr[builtins.int]
If provided, the amount of seconds a user has to wait
before being able to send another message in the channel.
Maximum 21600 seconds.
permission_overwrites : hikari.undefined.UndefinedOr[typing.Sequence[hikari.channels.PermissionOverwrite]]
If provided, the permission overwrites for the channel.
category : hikari.undefined.UndefinedOr[hikari.snowflakes.SnowflakeishOr[hikari.channels.GuildCategory]]
The category to create the channel under. This may be the
object or the ID of an existing category.
Returns
-------
hikari.snowflakes.Snowflake
The dummy ID for this channel that can be used temporarily to refer
to this object while designing the guild layout.
When the guild is created, this will be replaced with a different
ID.
""" # noqa: E501 - Line too long
@abc.abstractmethod
def add_voice_channel(
self,
name: str,
/,
*,
parent_id: undefined.UndefinedOr[snowflakes.Snowflake] = undefined.UNDEFINED,
bitrate: undefined.UndefinedOr[int] = undefined.UNDEFINED,
video_quality_mode: undefined.UndefinedOr[typing.Union[channels.VideoQualityMode, int]] = undefined.UNDEFINED,
position: undefined.UndefinedOr[int] = undefined.UNDEFINED,
permission_overwrites: undefined.UndefinedOr[
typing.Collection[channels.PermissionOverwrite]
] = undefined.UNDEFINED,
region: undefined.UndefinedNoneOr[typing.Union[voices.VoiceRegion, str]],
user_limit: undefined.UndefinedOr[int] = undefined.UNDEFINED,
) -> snowflakes.Snowflake:
"""Create a voice channel.
Parameters
----------
name : builtins.str
The channels name. Must be between 2 and 1000 characters.
Other Parameters
----------------
position : hikari.undefined.UndefinedOr[builtins.int]
If provided, the position of the channel (relative to the
category, if any).
user_limit : hikari.undefined.UndefinedOr[builtins.int]
If provided, the maximum users in the channel at once.
Must be between 0 and 99 with 0 meaning no limit.
bitrate : hikari.undefined.UndefinedOr[builtins.int]
If provided, the bitrate for the channel. Must be
between 8000 and 96000 or 8000 and 128000 for VIP
servers.
video_quality_mode: hikari.undefined.UndefinedOr[typing.Union[hikari.channels.VideoQualityMode, builtins.int]]
If provided, the new video quality mode for the channel.
permission_overwrites : hikari.undefined.UndefinedOr[typing.Sequence[hikari.channels.PermissionOverwrite]]
If provided, the permission overwrites for the channel.
region : hikari.undefined.UndefinedOr[typing.Union[hikari.voices.VoiceRegion, builtins.str]]
If provided, the voice region to for this channel. Passing
`builtins.None` here will set it to "auto" mode where the used
region will be decided based on the first person who connects to it
when it's empty.
category : hikari.undefined.UndefinedOr[hikari.snowflakes.SnowflakeishOr[hikari.channels.GuildCategory]]
The category to create the channel under. This may be the
object or the ID of an existing category.
Returns
-------
hikari.snowflakes.Snowflake
The dummy ID for this channel that can be used temporarily to refer
to this object while designing the guild layout.
When the guild is created, this will be replaced with a different
ID.
""" # noqa: E501 - Line too long
@abc.abstractmethod
def add_stage_channel(
self,
name: str,
/,
*,
parent_id: undefined.UndefinedOr[snowflakes.Snowflake] = undefined.UNDEFINED,
bitrate: undefined.UndefinedOr[int] = undefined.UNDEFINED,
position: undefined.UndefinedOr[int] = undefined.UNDEFINED,
permission_overwrites: undefined.UndefinedOr[
typing.Collection[channels.PermissionOverwrite]
] = undefined.UNDEFINED,
region: undefined.UndefinedNoneOr[typing.Union[voices.VoiceRegion, str]],
user_limit: undefined.UndefinedOr[int] = undefined.UNDEFINED,
) -> snowflakes.Snowflake:
"""Create a stage channel.
Parameters
----------
name : builtins.str
The channels name. Must be between 2 and 1000 characters.
Other Parameters
----------------
position : hikari.undefined.UndefinedOr[builtins.int]
If provided, the position of the channel (relative to the
category, if any).
user_limit : hikari.undefined.UndefinedOr[builtins.int]
If provided, the maximum users in the channel at once.
Must be between 0 and 99 with 0 meaning no limit.
bitrate : hikari.undefined.UndefinedOr[builtins.int]
If provided, the bitrate for the channel. Must be
between 8000 and 96000 or 8000 and 128000 for VIP
servers.
permission_overwrites : hikari.undefined.UndefinedOr[typing.Sequence[hikari.channels.PermissionOverwrite]]
If provided, the permission overwrites for the channel.
region : hikari.undefined.UndefinedOr[typing.Union[hikari.voices.VoiceRegion, builtins.str]]
If provided, the voice region to for this channel. Passing
`builtins.None` here will set it to "auto" mode where the used
region will be decided based on the first person who connects to it
when it's empty.
category : hikari.undefined.UndefinedOr[hikari.snowflakes.SnowflakeishOr[hikari.channels.GuildCategory]]
The category to create the channel under. This may be the
object or the ID of an existing category.
Returns
-------
hikari.snowflakes.Snowflake
The dummy ID for this channel that can be used temporarily to refer
to this object while designing the guild layout.
When the guild is created, this will be replaced with a different
ID.
"""
class InteractionResponseBuilder(abc.ABC):
"""Base class for all interaction response builders used in the interaction server."""
@property
@abc.abstractmethod
def type(self) -> typing.Union[int, base_interactions.ResponseType]:
"""Return the type of this response.
Returns
-------
typing.Union[builtins.int, hikari.interactions.base_interactions.ResponseType]
The type of response this is.
"""
@abc.abstractmethod
def build(self, entity_factory: entity_factory_.EntityFactory, /) -> data_binding.JSONObject:
"""Build a JSON object from this builder.
Parameters
----------
entity_factory : hikari.api.entity_factory.EntityFactory
The entity factory to use to serialize entities within this builder.
Returns
-------
hikari.internal.data_binding.JSONObject
The built json object representation of this builder.
"""
class InteractionDeferredBuilder(InteractionResponseBuilder, abc.ABC):
"""Interface of a deferred message interaction response builder."""
__slots__: typing.Sequence[str] = ()
@property
@abc.abstractmethod
def type(self) -> base_interactions.DeferredResponseTypesT:
"""Return the type of this response.
Returns
-------
hikari.interactions.base_interactions.DeferredResponseTypesT
The type of response this is.
"""
@property
@abc.abstractmethod
def flags(self) -> typing.Union[undefined.UndefinedType, int, messages.MessageFlag]:
"""Message flags this response should have.
!!! note
As of writing the only message flag which can be set here is
`hikari.messages.MessageFlag.EPHEMERAL`.
Returns
-------
typing.Union[hikari.undefined.UndefinedType, builtins.int, hikari.messages.MessageFlag]
The message flags this response should have if set else
`hikari.undefined.UNDEFINED`.
"""
@abc.abstractmethod
def set_flags(self: _T, flags: typing.Union[undefined.UndefinedType, int, messages.MessageFlag], /) -> _T:
"""Set message flags for this response.
!!! note
As of writing, the only message flag which can be set is EPHEMERAL.
Parameters
----------
flags : typing.Union[hikari.undefined.UndefinedType, builtins.int, hikari.messages.MessageFlag]
The message flags to set for this response.
Returns
-------
InteractionMessageBuilder
Object of this builder.
"""
class InteractionAutocompleteBuilder(InteractionResponseBuilder, abc.ABC):
"""Interface of an autocomplete interaction response builder."""
__slots__: typing.Sequence[str] = ()
@property
@abc.abstractmethod
def choices(self) -> typing.Sequence[commands.CommandChoice]:
"""Return autocomplete choices."""
@abc.abstractmethod
def set_choices(self: _T, choices: typing.Sequence[commands.CommandChoice], /) -> _T:
"""Set autocomplete choices.
Returns
-------
InteractionAutocompleteBuilder
Object of this builder.
"""
class InteractionMessageBuilder(InteractionResponseBuilder, abc.ABC):
"""Interface of an interaction message response builder used within REST servers.
This can be returned by the listener registered to
`hikari.api.interaction_server.InteractionServer` as a response to the interaction
create.
"""
__slots__: typing.Sequence[str] = ()
# Required fields
@property
@abc.abstractmethod
def type(self) -> base_interactions.MessageResponseTypesT:
"""Return the type of this response.
Returns
-------
hikari.interactions.base_interactions.MessageResponseTypesT
The type of response this is.
"""
# Extendable fields
@property
@abc.abstractmethod
def components(self) -> typing.Sequence[ComponentBuilder]:
"""Sequence of up to 5 component builders to send in this response."""
@property
@abc.abstractmethod
def embeds(self) -> typing.Sequence[embeds_.Embed]:
"""Sequence of up to 10 of the embeds included in this response.
Returns
-------
typing.Sequence[hikari.embeds.Embed]
A sequence of up to 10 of the embeds included in this response.
"""
# Settable fields
@property
@abc.abstractmethod
def content(self) -> undefined.UndefinedOr[str]:
"""Response's message content.
Returns
-------
hikari.undefined.UndefinedOr[builtins.str]
The response's message content, if set.
"""
@property
@abc.abstractmethod
def flags(self) -> typing.Union[undefined.UndefinedType, int, messages.MessageFlag]:
"""Message flags this response should have.
!!! note
As of writing the only message flag which can be set here is
`hikari.messages.MessageFlag.EPHEMERAL`.
Returns
-------
typing.Union[hikari.undefined.UndefinedType, builtins.int, hikari.messages.MessageFlag]
The message flags this response should have if set else
`hikari.undefined.UNDEFINED`.
"""
@property
@abc.abstractmethod
def is_tts(self) -> undefined.UndefinedOr[bool]:
"""Whether this response's content should be treated as text-to-speech.
Returns
-------
builtins.bool
Whether this response's content should be treated as text-to-speech.
If left as `hikari.undefined.UNDEFINED` then this will be disabled.
"""
@property
@abc.abstractmethod
def mentions_everyone(self) -> undefined.UndefinedOr[bool]:
"""Whether @everyone and @here mentions should be enabled for this response.
Returns
-------
hikari.undefined.UndefinedOr[builtins.bool]
Whether @everyone mentions should be enabled for this response.
If left as `hikari.undefined.UNDEFINED` then they will be disabled.
"""
@property
@abc.abstractmethod
def role_mentions(
self,
) -> undefined.UndefinedOr[typing.Union[snowflakes.SnowflakeishSequence[guilds.PartialRole], bool]]:
"""Whether and what role mentions should be enabled for this response.
Returns
-------
hikari.undefined.UndefinedOr[typing.Union[hikari.snowflakes.SnowflakeishSequence[hikari.users.PartialUser], builtins.bool]]
Either a sequence of object/IDs of the roles mentions should be enabled for,
`builtins.False` or `hikari.undefined.UNDEFINED` to disallow any role
mentions or `True` to allow all role mentions.
""" # noqa: E501 - Line too long
@property
@abc.abstractmethod
def user_mentions(
self,
) -> undefined.UndefinedOr[typing.Union[snowflakes.SnowflakeishSequence[users.PartialUser], bool]]:
"""Whether and what user mentions should be enabled for this response.
Returns
-------
hikari.undefined.UndefinedOr[typing.Union[hikari.snowflakes.SnowflakeishSequence[hikari.users.PartialUser], builtins.bool]]
Either a sequence of object/IDs of the users mentions should be enabled for,
`builtins.False` or `hikari.undefined.UNDEFINED` to disallow any user
mentions or `True` to allow all user mentions.
""" # noqa: E501 - Line too long
@abc.abstractmethod
def add_component(self: _T, component: ComponentBuilder, /) -> _T:
"""Add a component to this response.
Parameters
----------
component : ComponentBuilder
The component builder to add to this response.
Returns
-------
InteractionMessageBuilder
Object of this builder.
"""
@abc.abstractmethod
def add_embed(self: _T, embed: embeds_.Embed, /) -> _T:
"""Add an embed to this response.
Parameters
----------
embed : hikari.embeds.Embed
Object of the embed to add to this response.
Returns
-------
InteractionMessageBuilder
Object of this builder.
"""
@abc.abstractmethod
def set_content(self: _T, content: undefined.UndefinedOr[str], /) -> _T:
"""Set the response's message content.
Parameters
----------
content : hikari.undefined.UndefinedOr[builtins.str]
The message content to set for this response.
Returns
-------
InteractionMessageBuilder
Object of this builder.
"""
@abc.abstractmethod
def set_flags(self: _T, flags: typing.Union[undefined.UndefinedType, int, messages.MessageFlag], /) -> _T:
"""Set message flags for this response.
!!! note
As of writing, the only message flag which can be set is EPHEMERAL.
Parameters
----------
flags : typing.Union[hikari.undefined.UndefinedType, builtins.int, hikari.messages.MessageFlag]
The message flags to set for this response.
Returns
-------
InteractionMessageBuilder
Object of this builder.
"""
@abc.abstractmethod
def set_tts(self: _T, tts: undefined.UndefinedOr[bool], /) -> _T:
"""Set whether this response should trigger text-to-speech processing.
Parameters
----------
tts : Whether this response should trigger text-to-speech processing.
Returns
-------
InteractionMessageBuilder
Object of this builder.
"""
@abc.abstractmethod
def set_mentions_everyone(self: _T, mentions: undefined.UndefinedOr[bool] = undefined.UNDEFINED, /) -> _T:
"""Set whether this response should be able to mention @everyone/@here.
Parameters
----------
mentions : hikari.undefined.UndefinedOr[builtins.bool]
Whether this response should be able to mention @everyone/@here.
Returns
-------
InteractionMessageBuilder
Object of this builder.
"""
@abc.abstractmethod
def set_role_mentions(
self: _T,
mentions: undefined.UndefinedOr[
typing.Union[snowflakes.SnowflakeishSequence[guilds.PartialRole], bool]
] = undefined.UNDEFINED,
/,
) -> _T:
"""Set whether and what role mentions should be possible for this response.
Parameters
----------
mentions : hikari.undefined.UndefinedOr[typing.Union[hikari.snowflakes.SnowflakeishSequence[hikari.users.PartialUser], builtins.bool]]
Either a sequence of object/IDs of the roles mentions should be enabled for,
`builtins.False` or `hikari.undefined.UNDEFINED` to disallow any role
mentions or `True` to allow all role mentions.
Returns
-------
InteractionMessageBuilder
Object of this builder.
""" # noqa: E501 - Line too long
@abc.abstractmethod
def set_user_mentions(
self: _T,
mentions: undefined.UndefinedOr[
typing.Union[snowflakes.SnowflakeishSequence[users.PartialUser], bool]
] = undefined.UNDEFINED,
/,
) -> _T:
"""Set whether and what user mentions should be possible for this response.
Parameters
----------
mentions: hikari.undefined.UndefinedOr[typing.Union[hikari.snowflakes.SnowflakeishSequence[hikari.users.PartialUser], builtins.bool]]
Either a sequence of object/IDs of the users mentions should be enabled for,
`builtins.False` or `hikari.undefined.UNDEFINED` to disallow any user
mentions or `True` to allow all user mentions.
Returns
-------
InteractionMessageBuilder
Object of this builder.
""" # noqa: E501 - Line too long
class CommandBuilder(abc.ABC):
"""Interface of a command builder used when bulk creating commands over REST."""
__slots__: typing.Sequence[str] = ()
@property
@abc.abstractmethod
def name(self) -> str:
r"""Name to set for this command.
!!! warning
This should match the regex `^[\w-]{1,32}$` in Unicode mode
and must be lowercase.
Returns
-------
builtins.str
The name to set for this command.
"""
@property
@abc.abstractmethod
def type(self) -> undefined.UndefinedOr[commands.CommandType]:
"""Return the type of this command.
Returns
-------
hikari.commands.CommandType
The type of this command.
"""
@property
@abc.abstractmethod
def id(self) -> undefined.UndefinedOr[snowflakes.Snowflake]:
"""ID of this command.
Returns
-------
hikari.undefined.UndefinedOr[hikari.snowflakes.Snowflake]
The ID of this command if set.
"""
@property
@abc.abstractmethod
def default_permission(self) -> undefined.UndefinedOr[bool]:
"""Whether the command should be enabled by default (without any permissions).
Defaults to `builtins.bool`.
Returns
-------
undefined.UndefinedOr[builtins.bool]
Whether the command should be enabled by default (without any permissions).
"""
@abc.abstractmethod
def set_id(self: _T, id_: undefined.UndefinedOr[snowflakes.Snowflakeish], /) -> _T:
"""Set the ID of this command.
Parameters
----------
id_ : hikari.undefined.UndefinedOr[hikari.snowflakes.Snowflake]
The ID to set for this command.
Returns
-------
CommandBuilder
Object of this command builder.
"""
@abc.abstractmethod
def set_default_permission(self: _T, state: undefined.UndefinedOr[bool], /) -> _T:
"""Whether this command should be enabled by default (without any permissions).
Parameters
----------
state : hikari.undefined.UndefinedOr[builtins.bool]
Whether this command should be enabled by default.
Returns
-------
CommandBuilder
Object of this command builder for chained calls.
"""
@abc.abstractmethod
def build(self, entity_factory: entity_factory_.EntityFactory, /) -> data_binding.JSONObject:
"""Build a JSON object from this builder.
Parameters
----------
entity_factory : hikari.api.entity_factory.EntityFactory
The entity factory to use to serialize entities within this builder.
Returns
-------
hikari.internal.data_binding.JSONObject
The built json object representation of this builder.
"""
class SlashCommandBuilder(CommandBuilder):
"""SlashCommandBuilder."""
@property
@abc.abstractmethod
def description(self) -> str:
"""Return the description to set for this command.
!!! warning
This should be inclusively between 1-100 characters in length.
Returns
-------
builtins.str
The description to set for this command.
"""
@property
@abc.abstractmethod
def options(self) -> typing.Sequence[commands.CommandOption]:
"""Sequence of up to 25 of the options set for this command.
Returns
-------
typing.Sequence[hikari.commands.CommandOption]
A sequence of up to 25 of the options set for this command.
"""
@abc.abstractmethod
def add_option(self: _T, option: commands.CommandOption) -> _T:
"""Add an option to this command.
!!! note
A command can have up to 25 options.
Parameters
----------
option : hikari.commands.CommandOption
The option to add to this command.
Returns
-------
CommandBuilder
Object of this command builder.
"""
class ContextMenuCommandBuilder(CommandBuilder):
"""ContextMenuCommandBuilder."""
class ComponentBuilder(abc.ABC):
"""Base class for all component builder classes."""
__slots__: typing.Sequence[str] = ()
@abc.abstractmethod
def build(self) -> data_binding.JSONObject:
"""Build a JSON object from this builder.
Returns
-------
hikari.internal.data_binding.JSONObject
The built json object representation of this builder.
"""
class ButtonBuilder(ComponentBuilder, abc.ABC, typing.Generic[_ContainerT]):
"""Builder class for a message button component."""
__slots__: typing.Sequence[str] = ()
@property
@abc.abstractmethod
def style(self) -> typing.Union[messages.ButtonStyle, int]:
"""Button's style.
Returns
-------
typing.Union[builtins.int, hikari.messages.ButtonStyle]
The button's style.
"""
@property
@abc.abstractmethod
def emoji(self) -> typing.Union[snowflakes.Snowflakeish, emojis.Emoji, str, undefined.UndefinedType]:
"""Emoji which should appear on this button.
Returns
-------
typing.Union[hikari.snowflakes.Snowflakeish, hikari.emojis.Emoji, builtins.str, hikari.undefined.UndefinedType]
Object or ID or raw string of the emoji which should be displayed
on this button if set.
"""
@property
@abc.abstractmethod
def label(self) -> undefined.UndefinedOr[str]:
"""Text label which should appear on this button.
!!! note
The text label to that should appear on this button. This may be
up to 80 characters long.
Returns
-------
hikari.undefined.UndefinedOr[builtins.str]
Text label which should appear on this button.
"""
@property
@abc.abstractmethod
def is_disabled(self) -> bool:
"""Whether the button should be marked as disabled.
!!! note
Defaults to `builtins.False`.
Returns
-------
builtins.bool
Whether the button should be marked as disabled.
"""
@abc.abstractmethod
def set_emoji(
self: _T, emoji: typing.Union[snowflakes.Snowflakeish, emojis.Emoji, str, undefined.UndefinedType], /
) -> _T:
"""Set the emoji to display on this button.
Parameters
----------
emoji : typing.Union[hikari.snowflakes.Snowflakeish, hikari.emojis.Emoji, builtins.str, hikari.undefined.UndefinedType]
Object, ID or raw string of the emoji which should be displayed on
this button.
Returns
-------
ButtonBuilder
The builder object to enable chained calls.
""" # noqa E501 - Line too long
@abc.abstractmethod
def set_label(self: _T, label: undefined.UndefinedOr[str], /) -> _T:
"""Set the text label which should be displayed on this button.
Parameters
----------
label : hikari.undefined.UndefinedOr[builtins.str]
The text label to show on this button.
This may be up to 80 characters long.
Returns
-------
ButtonBuilder
The builder object to enable chained calls.
"""
@abc.abstractmethod
def set_is_disabled(self: _T, state: bool, /) -> _T:
"""Set whether this button should be disabled.
Parameters
----------
state : bool
Whether this button should be disabled.
Returns
-------
ButtonBuilder
The builder object to enable chained calls.
"""
@abc.abstractmethod
def add_to_container(self) -> _ContainerT:
"""Add this button to the container component it belongs to.
This is used as the finalising call during chained calls.
Returns
-------
_ContainerT
The container component that owns this button.
"""
class LinkButtonBuilder(ButtonBuilder[_ContainerT], abc.ABC):
"""Builder interface for link buttons."""
@property
@abc.abstractmethod
def url(self) -> str:
"""Url this button should link to when pressed.
Returns
-------
builtins.str
Url this button should link to when pressed.
"""
class InteractiveButtonBuilder(ButtonBuilder[_ContainerT], abc.ABC):
"""Builder interface for interactive buttons."""
@property
@abc.abstractmethod
def custom_id(self) -> str:
"""Developer set custom ID used for identifying interactions with this button.
Returns
-------
builtins.str
Developer set custom ID used for identifying interactions with this button.
"""
class SelectOptionBuilder(ComponentBuilder, abc.ABC, typing.Generic[_SelectMenuBuilderT]):
"""Builder class for select menu options."""
__slots__: typing.Sequence[str] = ()
@property
@abc.abstractmethod
def label(self) -> str:
"""User-facing name of the option, max 100 characters.
Returns
-------
builtins.str
User-facing name of the option.
"""
@property
@abc.abstractmethod
def value(self) -> str:
"""Developer-defined value of the option, max 100 characters.
Returns
-------
builtins.str
Developer-defined value of the option.
"""
@property
@abc.abstractmethod
def description(self) -> undefined.UndefinedOr[str]:
"""Return the description of the option, max 100 characters.
Returns
-------
hikari.undefined.UndefinedOr[builtins.str]
Description of the option, if set.
"""
@property
@abc.abstractmethod
def emoji(self) -> typing.Union[snowflakes.Snowflakeish, emojis.Emoji, str, undefined.UndefinedType]:
"""Emoji which should appear on this option.
Returns
-------
typing.Union[hikari.snowflakes.Snowflakeish, hikari.emojis.Emoji, builtins.str, hikari.undefined.UndefinedType]
Object or ID or raw string of the emoji which should be displayed
on this option if set.
"""
@property
@abc.abstractmethod
def is_default(self) -> bool:
"""Whether this option should be marked as selected by default.
Defaults to `builtins.False`.
Returns
-------
builtins.bool
Whether this option should be marked as selected by default.
"""
@abc.abstractmethod
def set_description(self: _T, value: undefined.UndefinedOr[str], /) -> _T:
"""Set the option's description.
Parameters
----------
value : hikari.undefined.UndefinedOr[builtins.str]
Description to set for this option. This can be up to 100 characters
long.
Returns
-------
SelectOptionBuilder
The builder object to enable chained calls.
"""
@abc.abstractmethod
def set_emoji(
self: _T, emoji: typing.Union[snowflakes.Snowflakeish, emojis.Emoji, str, undefined.UndefinedType], /
) -> _T:
"""Set the emoji to display on this option.
Parameters
----------
emoji : typing.Union[hikari.snowflakes.Snowflakeish, hikari.emojis.Emoji, builtins.str, hikari.undefined.UndefinedType]
Object, ID or raw string of the emoji which should be displayed on
this option.
Returns
-------
SelectOptionBuilder
The builder object to enable chained calls.
""" # noqa E501 - Line too long
@abc.abstractmethod
def set_is_default(self: _T, state: bool, /) -> _T:
"""Set whether this option should be selected by default.
Parameters
----------
state : builtins.bool
Whether this option should be selected by default.
Returns
-------
SelectOptionBuilder
The builder object to enable chained calls.
"""
@abc.abstractmethod
def add_to_menu(self) -> _SelectMenuBuilderT:
"""Add this option to the menu component it belongs to.
This is used as the finalising call during chained calls.
Returns
-------
_SelectMenuBuilderT
The menu component that owns this button.
"""
class SelectMenuBuilder(ComponentBuilder, abc.ABC, typing.Generic[_ContainerT]):
"""Builder class for select menu options."""
__slots__: typing.Sequence[str] = ()
@property
@abc.abstractmethod
def custom_id(self) -> str:
"""Developer set custom ID used for identifying interactions with this menu.
Returns
-------
builtins.str
Developer set custom ID used for identifying interactions with this menu.
"""
@property
@abc.abstractmethod
def is_disabled(self) -> bool:
"""Whether the select menu should be marked as disabled.
!!! note
Defaults to `builtins.False`.
Returns
-------
builtins.bool
Whether the select menu should be marked as disabled.
"""
@property
@abc.abstractmethod
def options(self: _SelectMenuBuilderT) -> typing.Sequence[SelectOptionBuilder[_SelectMenuBuilderT]]:
"""Sequence of the options set for this select menu.
Returns
-------
typing.Sequence[SelectOptionBuilder[Self]]
Sequence of the options set for this select menu.
"""
@property
@abc.abstractmethod
def placeholder(self) -> undefined.UndefinedOr[str]:
"""Return the placeholder text to display when no options are selected.
Returns
-------
hikari.undefined.UndefinedOr[builtins.str]
Placeholder text to display when no options are selected, if defined.
"""
@property
@abc.abstractmethod
def min_values(self) -> int:
"""Minimum number of options which must be chosen.
Defaults to 1.
Must be less than or equal to `SelectMenuBuilder.max_values` and greater
than or equal to 0.
Returns
-------
builtins.str
Minimum number of options which must be chosen.
"""
@property
@abc.abstractmethod
def max_values(self) -> int:
"""Maximum number of options which can be chosen.
Defaults to 1.
Must be greater than or equal to `SelectMenuBuilder.min_values` and
less than or equal to 25.
Returns
-------
builtins.str
Maximum number of options which can be chosen.
"""
@abc.abstractmethod
def add_option(self: _SelectMenuBuilderT, label: str, value: str, /) -> SelectOptionBuilder[_SelectMenuBuilderT]:
"""Add an option to this menu.
Parameters
----------
label : builtins.str
The user-facing name of this option, max 100 characters.
value : builtins.str
The developer defined value of this option, max 100 characters.
Returns
-------
SelectOptionBuilder[Self]
Option builder object.
This should be finalised by calling `SelectOptionBuilder.add_to_menu`.
"""
@abc.abstractmethod
def set_is_disabled(self: _T, state: bool, /) -> _T:
"""Set whether this option is disabled.
Defaults to `builtins.False`.
Parameters
----------
state : builtins.bool
Whether this option is disabled.
Returns
-------
SelectMenuBuilder
The builder object to enable chained calls.
"""
@abc.abstractmethod
def set_placeholder(self: _T, value: undefined.UndefinedOr[str], /) -> _T:
"""Set place-holder text to be shown when no option is selected.
Parameters
----------
value : hikari.undefined.UndefinedOr[builtins.str]
Place-holder text to be displayed when no option is selected.
Max 100 characters.
Returns
-------
SelectMenuBuilder
The builder object to enable chained calls.
"""
@abc.abstractmethod
def set_min_values(self: _T, value: int, /) -> _T:
"""Set the minimum amount of options which need to be selected for this menu.
!!! note
This defaults to 1 if not set and must be greater than or equal to 0
and less than or equal to `SelectMenuBuilder.max_values`.
Parameters
----------
value : builtins.int
The minimum amount of options which need to be selected for this menu.
Returns
-------
SelectMenuBuilder
The builder object to enable chained calls.
"""
@abc.abstractmethod
def set_max_values(self: _T, value: int, /) -> _T:
"""Set the maximum amount of options which can be selected for this menu.
!!! note
This defaults to 1 if not set and must be less than or equal to 25
and greater than or equal to `SelectMenuBuilder.min_values`.
Parameters
----------
value : builtins.int
The maximum amount of options which can selected for this menu.
Returns
-------
SelectMenuBuilder
The builder object to enable chained calls.
"""
@abc.abstractmethod
def add_to_container(self) -> _ContainerT:
"""Finalise this builder by adding it to its parent container component.
Returns
-------
_ContainerT
The parent container component builder.
"""
class ActionRowBuilder(ComponentBuilder, abc.ABC):
"""Builder class for action row components."""
__slots__: typing.Sequence[str] = ()
@property
@abc.abstractmethod
def components(self) -> typing.Sequence[ComponentBuilder]:
"""Sequence of the component builders registered within this action row.
Returns
-------
typing.Sequence[ComponentBuilder]
Sequence of the component builders registered within this action row.
"""
@abc.abstractmethod
def add_component(
self: _T,
component: ComponentBuilder,
/,
) -> _T:
"""Add a component to this action row builder.
!!! warning
It is generally better to use `ActionRowBuilder.add_button`
and `ActionRowBuilder.add_select_menu` to add your
component to the builder. Those methods utilize this one.
Parameters
----------
component : ComponentBuilder
The component builder to add to the action row.
Returns
-------
ActionRowBuilder
The builder object to enable chained calls.
"""
@typing.overload
@abc.abstractmethod
def add_button(
self: _T, style: messages.InteractiveButtonTypesT, custom_id: str, /
) -> InteractiveButtonBuilder[_T]:
...
@typing.overload
@abc.abstractmethod
def add_button(self: _T, style: typing.Literal[messages.ButtonStyle.LINK, 5], url: str, /) -> LinkButtonBuilder[_T]:
...
@typing.overload
@abc.abstractmethod
def add_button(
self: _T, style: typing.Union[int, messages.ButtonStyle], url_or_custom_id: str, /
) -> typing.Union[LinkButtonBuilder[_T], InteractiveButtonBuilder[_T]]:
...
@abc.abstractmethod
def add_button(
self: _T, style: typing.Union[int, messages.ButtonStyle], url_or_custom_id: str, /
) -> typing.Union[LinkButtonBuilder[_T], InteractiveButtonBuilder[_T]]:
"""Add a button component to this action row builder.
Parameters
----------
style : typing.Union[builtins.int, hikari.messages.ButtonStyle]
The button's style.
url_or_custom_id : builtins.str
For interactive button styles this is a developer-defined custom
identifier used to identify which button triggered component interactions.
For Link button styles this is the URL the link button should redirect
to.
Returns
-------
typing.Union[LinkButtonBuilder[Self], InteractiveButtonBuilder[Self]]
Button builder object.
`ButtonBuilder.add_to_container` should be called to finalise the
button.
"""
@abc.abstractmethod
def add_select_menu(self: _T, custom_id: str, /) -> SelectMenuBuilder[_T]:
"""Add a select menu component to this action row builder.
Parameters
----------
custom_id : builtins.str
A developer-defined custom identifier used to identify which menu
triggered component interactions.
Returns
-------
SelectMenuBuilder[Self]
Select menu builder object.
`SelectMenuBuilder.add_to_container` should be called to finalise the
button.
"""
| [
1,
529,
276,
1112,
420,
29958,
5041,
1287,
29899,
5205,
29879,
29914,
29882,
638,
1306,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
274,
1656,
29901,
4086,
29918,
5563,
29922,
29941,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29900,
405,
1416,
554,
1131,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29896,
29899,
6338,
13260,
29888,
4977,
13,
29937,
13,
29937,
20894,
2333,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,
263,
3509,
13,
29937,
310,
445,
7047,
322,
6942,
5106,
2066,
313,
1552,
376,
6295,
14093,
4968,
304,
5376,
13,
29937,
297,
278,
18540,
1728,
24345,
29892,
3704,
1728,
29485,
278,
10462,
13,
29937,
304,
671,
29892,
3509,
29892,
6623,
29892,
10366,
29892,
9805,
29892,
1320,
2666,
29892,
269,
803,
1947,
29892,
322,
29914,
272,
19417,
13,
29937,
14591,
310,
278,
18540,
29892,
322,
304,
14257,
12407,
304,
6029,
278,
18540,
338,
13,
29937,
15252,
3276,
304,
437,
577,
29892,
4967,
304,
278,
1494,
5855,
29901,
13,
29937,
13,
29937,
450,
2038,
3509,
1266,
8369,
322,
445,
10751,
8369,
4091,
367,
5134,
297,
599,
13,
29937,
14591,
470,
23228,
2011,
1080,
310,
278,
18540,
29889,
13,
29937,
13,
29937,
6093,
7791,
7818,
12982,
1525,
8519,
13756,
13044,
3352,
376,
3289,
8519,
613,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29979,
8079,
13764,
29979,
476,
22255,
29892,
8528,
15094,
1799,
6323,
13,
29937,
306,
3580,
5265,
3352,
29892,
2672,
6154,
15789,
4214,
350,
2692,
6058,
27848,
3352,
7495,
6093,
399,
1718,
29934,
13566,
29059,
8079,
341,
1001,
3210,
13566,
2882,
6227,
11937,
29892,
13,
29937,
383,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
5300,
405,
1164,
1177,
15860,
1177,
1692,
13780,
29889,
2672,
11698,
382,
29963,
3919,
24972,
9818,
6093,
13,
29937,
26524,
29950,
24125,
6323,
315,
4590,
29979,
22789,
3912,
379,
5607,
8032,
29903,
20700,
17705,
6181,
15842,
13764,
29979,
315,
4375,
7833,
29892,
21330,
1529,
1692,
29903,
6323,
438,
29911,
4448,
13,
29937,
17705,
2882,
6227,
11937,
29892,
12317,
2544,
4448,
2672,
13764,
319,
9838,
8079,
8707,
29911,
4717,
1783,
29892,
323,
8476,
6323,
438,
29911,
4448,
22119,
1660,
29892,
9033,
3235,
4214,
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,
15945,
29908,
24780,
5684,
1095,
9748,
1304,
491,
278,
16759,
3450,
1213,
15945,
13,
3166,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
1649,
497,
1649,
29901,
19229,
29889,
1293,
29961,
710,
29962,
353,
518,
13,
1678,
376,
4276,
4301,
5627,
613,
13,
1678,
376,
3125,
5627,
613,
13,
1678,
376,
6255,
5627,
613,
13,
1678,
376,
16973,
1161,
6255,
5627,
613,
13,
1678,
376,
2677,
6823,
6255,
5627,
613,
13,
1678,
376,
5308,
5627,
613,
13,
1678,
376,
24933,
292,
28013,
613,
13,
1678,
376,
9485,
789,
5627,
613,
13,
1678,
376,
4074,
2467,
12300,
8835,
5627,
613,
13,
1678,
376,
4074,
2467,
2772,
14373,
5627,
613,
13,
1678,
376,
4074,
2467,
5103,
5627,
613,
13,
1678,
376,
4074,
2467,
3728,
5627,
613,
13,
1678,
376,
4074,
4925,
3125,
5627,
613,
13,
1678,
376,
6595,
3125,
5627,
613,
13,
1678,
376,
3549,
6823,
5627,
613,
13,
1678,
376,
3549,
8375,
5627,
613,
13,
29962,
13,
13,
5215,
25638,
13,
5215,
19229,
13,
13,
3166,
298,
638,
1306,
1053,
7580,
13,
13,
361,
19229,
29889,
11116,
29918,
3210,
16658,
4214,
29901,
13,
1678,
1053,
4072,
13,
13,
1678,
515,
298,
638,
1306,
1053,
18196,
13,
1678,
515,
298,
638,
1306,
1053,
11955,
13,
1678,
515,
298,
638,
1306,
1053,
8260,
13,
1678,
515,
298,
638,
1306,
1053,
8297,
29879,
408,
8297,
29879,
29918,
13,
1678,
515,
298,
638,
1306,
1053,
953,
3848,
275,
13,
1678,
515,
298,
638,
1306,
1053,
2066,
13,
1678,
515,
298,
638,
1306,
1053,
1410,
789,
29879,
13,
1678,
515,
298,
638,
1306,
1053,
7191,
13,
1678,
515,
298,
638,
1306,
1053,
11239,
408,
11239,
29918,
13,
1678,
515,
298,
638,
1306,
1053,
15007,
29888,
433,
10794,
13,
1678,
515,
298,
638,
1306,
1053,
4160,
13,
1678,
515,
298,
638,
1306,
1053,
28848,
13,
1678,
515,
298,
638,
1306,
29889,
2754,
1053,
7855,
29918,
14399,
408,
7855,
29918,
14399,
29918,
13,
1678,
515,
298,
638,
1306,
29889,
1639,
7387,
1053,
2967,
29918,
1639,
7387,
13,
1678,
515,
298,
638,
1306,
29889,
7564,
1053,
848,
29918,
19672,
13,
1678,
515,
298,
638,
1306,
29889,
7564,
1053,
931,
13,
13,
1678,
903,
29911,
353,
19229,
29889,
1542,
9037,
703,
29918,
29911,
1159,
13,
13,
29918,
3549,
6823,
5627,
29911,
353,
19229,
29889,
1542,
9037,
703,
29918,
3549,
6823,
5627,
29911,
613,
3216,
543,
3549,
6823,
5627,
29961,
1017,
15702,
29889,
10773,
29962,
1159,
13,
29918,
7895,
29911,
353,
19229,
29889,
1542,
9037,
703,
29918,
7895,
29911,
1159,
13,
13,
13,
1990,
14213,
292,
28013,
29898,
10736,
29889,
19658,
1125,
13,
1678,
9995,
3591,
1134,
310,
421,
29882,
638,
1306,
29889,
2754,
29889,
5060,
29889,
1525,
1254,
4032,
29889,
21001,
29918,
1017,
15702,
1412,
13,
13,
1678,
910,
338,
385,
1203,
393,
508,
2845,
367,
7272,
287,
763,
263,
1034,
449,
457,
304,
7135,
13,
1678,
278,
19229,
27717,
2748,
29892,
470,
385,
7465,
3030,
8455,
304,
3013,
7135,
292,
13,
1678,
278,
19229,
27717,
28424,
2745,
278,
3030,
8341,
267,
29889,
13,
13,
1678,
1738,
6824,
4443,
13,
4706,
910,
338,
263,
16876,
770,
393,
338,
1304,
491,
421,
29882,
638,
1306,
29889,
2754,
29889,
5060,
29889,
1525,
1254,
4032,
1412,
13,
4706,
887,
881,
871,
3926,
817,
304,
671,
8871,
310,
445,
770,
393,
526,
13,
4706,
7371,
491,
393,
3450,
29889,
13,
1678,
9995,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
4770,
20675,
12035,
1311,
29897,
1599,
19229,
29889,
21575,
29961,
8516,
29892,
19229,
29889,
10773,
29892,
6213,
5387,
13,
4706,
2023,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
7465,
822,
4770,
29874,
5893,
12035,
1311,
29897,
1599,
6213,
29901,
13,
4706,
2023,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
7465,
822,
4770,
29874,
13322,
12035,
13,
4706,
1583,
29892,
13,
4706,
3682,
29918,
1853,
29901,
19229,
29889,
1542,
29961,
5160,
2451,
1402,
13,
4706,
3682,
29901,
7399,
2451,
29892,
13,
4706,
3682,
29918,
15003,
1627,
29901,
4072,
29889,
11591,
1627,
1542,
29892,
13,
1678,
1723,
1599,
6213,
29901,
13,
4706,
2023,
13,
13,
13,
1990,
2088,
789,
5627,
29898,
10736,
29889,
19658,
1125,
13,
1678,
9995,
3591,
1134,
310,
421,
29882,
638,
1306,
29889,
2754,
29889,
5060,
29889,
1525,
1254,
4032,
29889,
2543,
789,
29918,
16409,
1412,
13,
13,
1678,
910,
338,
1304,
304,
1653,
263,
1410,
789,
297,
263,
10668,
29891,
982,
773,
278,
7331,
3450,
29892,
1951,
13,
1678,
278,
5900,
5742,
4969,
263,
1410,
789,
373,
385,
3450,
3233,
338,
10579,
16051,
13,
1678,
322,
13173,
29889,
13,
13,
1678,
1738,
6824,
4443,
13,
4706,
910,
338,
263,
16876,
770,
393,
338,
1304,
491,
421,
29882,
638,
1306,
29889,
2754,
29889,
5060,
29889,
1525,
1254,
4032,
1412,
13,
4706,
887,
881,
871,
3926,
817,
304,
671,
8871,
310,
445,
770,
393,
526,
13,
4706,
7371,
491,
393,
3450,
29892,
4550,
29892,
738,
4902,
1048,
278,
5823,
526,
13,
4706,
25811,
515,
278,
1494,
6455,
363,
2078,
17037,
29889,
13,
13,
1678,
1222,
9422,
13,
1678,
448,
26589,
13,
1678,
26221,
385,
4069,
1410,
789,
29889,
13,
13,
1678,
7521,
2272,
13,
1678,
1410,
789,
353,
7272,
1791,
29889,
2543,
789,
29918,
16409,
703,
3421,
5656,
29991,
2564,
3258,
580,
13,
1678,
7521,
13,
13,
1678,
26221,
263,
1410,
789,
411,
385,
9849,
13,
13,
1678,
7521,
2272,
13,
1678,
515,
298,
638,
1306,
29889,
5325,
1053,
2563,
6848,
3835,
13,
13,
1678,
1410,
789,
29918,
16409,
353,
1791,
29889,
2543,
789,
29918,
16409,
703,
3421,
5656,
29991,
1159,
13,
1678,
1410,
789,
29918,
16409,
29889,
4144,
353,
2563,
6848,
3835,
703,
4117,
29889,
2732,
613,
376,
1124,
597,
856,
1159,
13,
1678,
1410,
789,
353,
7272,
1410,
789,
29918,
16409,
29889,
3258,
580,
13,
1678,
7521,
13,
13,
1678,
18804,
16178,
304,
596,
1410,
789,
29889,
13,
13,
1678,
7521,
2272,
13,
1678,
515,
298,
638,
1306,
29889,
17858,
6847,
1053,
20894,
6847,
13,
13,
1678,
1410,
789,
29918,
16409,
353,
1791,
29889,
2543,
789,
29918,
16409,
703,
3421,
5656,
29991,
1159,
13,
13,
1678,
14332,
29918,
12154,
29918,
333,
353,
1410,
789,
29918,
16409,
29889,
1202,
29918,
12154,
29475,
17991,
650,
1159,
13,
1678,
4113,
29918,
12154,
29918,
333,
353,
1410,
789,
29918,
16409,
29889,
1202,
29918,
12154,
703,
3253,
29885,
1144,
613,
11239,
29922,
15737,
6847,
29889,
3035,
16173,
9047,
29934,
1299,
1955,
29897,
13,
13,
1678,
7272,
1410,
789,
29918,
16409,
29889,
3258,
580,
13,
1678,
7521,
13,
13,
1678,
1738,
6824,
9177,
13,
4706,
450,
937,
6297,
1818,
2337,
367,
278,
11159,
17991,
650,
29952,
6297,
29889,
13,
13,
1678,
1738,
6824,
4443,
13,
4706,
960,
366,
1246,
421,
1202,
29918,
12154,
1673,
278,
2322,
16178,
4944,
491,
2313,
536,
674,
13,
4706,
367,
2825,
29889,
910,
884,
16058,
304,
278,
421,
1202,
29918,
29952,
3168,
363,
13,
4706,
1426,
18196,
29914,
14917,
18196,
29914,
20683,
29889,
13,
13,
1678,
1738,
6824,
4443,
13,
4706,
6680,
29879,
393,
736,
263,
421,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29952,
437,
13,
4706,
3579,
1333,
1068,
3867,
278,
2186,
3553,
393,
278,
1203,
674,
505,
2748,
278,
13,
4706,
3450,
1246,
338,
1754,
29889,
450,
4133,
23481,
526,
871,
2221,
304,
367,
1304,
304,
13,
4706,
337,
29899,
5679,
3153,
3618,
1550,
5214,
278,
1410,
789,
3402,
29889,
13,
13,
4706,
910,
338,
4944,
304,
2758,
11265,
310,
18196,
2629,
13997,
29892,
13,
4706,
322,
304,
3867,
10751,
975,
8231,
267,
29889,
13,
13,
1678,
18804,
263,
1426,
8242,
304,
596,
1410,
789,
29889,
13,
13,
1678,
7521,
2272,
13,
1678,
1410,
789,
29918,
16409,
353,
1791,
29889,
2543,
789,
29918,
16409,
703,
3421,
5656,
29991,
1159,
13,
13,
1678,
7663,
29918,
333,
353,
1410,
789,
29918,
16409,
29889,
1202,
29918,
7320,
703,
3421,
9109,
2058,
1159,
13,
1678,
8242,
29918,
333,
353,
1410,
789,
29918,
16409,
29889,
1202,
29918,
726,
29918,
12719,
703,
17492,
613,
3847,
29918,
333,
29922,
7320,
29918,
333,
29897,
13,
13,
1678,
7272,
1410,
789,
29918,
16409,
29889,
3258,
580,
13,
1678,
7521,
13,
1678,
9995,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1024,
29898,
1311,
29897,
1599,
851,
29901,
13,
4706,
9995,
1170,
310,
278,
1410,
789,
304,
1653,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
450,
1410,
789,
1024,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
2322,
29918,
4906,
29918,
1333,
8232,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
2543,
789,
29879,
29889,
9485,
789,
3728,
3664,
8232,
10108,
5387,
13,
4706,
9995,
4592,
2643,
12519,
3233,
393,
508,
367,
975,
17625,
29889,
13,
13,
4706,
960,
451,
20831,
1145,
29892,
445,
674,
671,
278,
8565,
536,
2322,
3233,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
2543,
789,
29879,
29889,
9485,
789,
3728,
3664,
8232,
10108,
29962,
13,
9651,
450,
2322,
2643,
12519,
3233,
29892,
565,
975,
17625,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
29901,
360,
29946,
29900,
29896,
448,
12607,
1230,
286,
2092,
13,
13,
1678,
732,
4381,
29918,
4906,
29918,
1333,
8232,
29889,
842,
357,
13,
1678,
822,
2322,
29918,
4906,
29918,
1333,
8232,
29898,
13,
4706,
1583,
29892,
2322,
29918,
4906,
29918,
1333,
8232,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
2543,
789,
29879,
29889,
9485,
789,
3728,
3664,
8232,
10108,
1402,
847,
13,
1678,
1723,
1599,
6213,
29901,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
6261,
29918,
3051,
29918,
4572,
29918,
5563,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
2543,
789,
29879,
29889,
9485,
789,
9544,
4019,
3916,
5072,
10108,
5387,
13,
4706,
9995,
9544,
4019,
2793,
4175,
3233,
393,
508,
367,
975,
17625,
29889,
13,
13,
4706,
960,
451,
20831,
1145,
29892,
445,
674,
671,
278,
8565,
536,
2322,
3233,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
2543,
789,
29879,
29889,
9485,
789,
9544,
4019,
3916,
5072,
10108,
29962,
13,
9651,
450,
6261,
2793,
4175,
3233,
29892,
565,
975,
17625,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
4548,
4019,
29918,
3051,
29918,
4572,
29918,
5563,
29889,
842,
357,
13,
1678,
822,
6261,
29918,
3051,
29918,
4572,
29918,
5563,
29898,
13,
4706,
1583,
29892,
6261,
29918,
3051,
29918,
4572,
29918,
5563,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
2543,
789,
29879,
29889,
9485,
789,
9544,
4019,
3916,
5072,
10108,
1402,
847,
13,
1678,
1723,
1599,
6213,
29901,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
9849,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
5325,
29889,
6848,
728,
5387,
13,
4706,
9995,
9485,
789,
9849,
304,
671,
393,
508,
367,
975,
17625,
29889,
13,
13,
4706,
960,
451,
20831,
1145,
29892,
278,
1410,
789,
674,
451,
505,
385,
9849,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
5325,
29889,
6848,
728,
29962,
13,
9651,
450,
1410,
789,
9849,
304,
671,
29892,
565,
975,
17625,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
4144,
29889,
842,
357,
13,
1678,
822,
9849,
29898,
1311,
29892,
9849,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
5325,
29889,
6848,
728,
1402,
847,
29897,
1599,
6213,
29901,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1147,
2450,
29918,
5563,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
2543,
789,
29879,
29889,
9485,
789,
6565,
2450,
10108,
29892,
938,
5262,
29901,
13,
4706,
9995,
6565,
2450,
3233,
3734,
304,
5988,
278,
1410,
789,
393,
508,
367,
975,
17625,
29889,
13,
13,
4706,
960,
451,
20831,
1145,
29892,
278,
1410,
789,
674,
671,
278,
2322,
1147,
2450,
3233,
363,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29882,
638,
1306,
29889,
2543,
789,
29879,
29889,
9485,
789,
6565,
2450,
10108,
29892,
4240,
1144,
29889,
524,
5262,
13,
9651,
450,
1147,
2450,
3233,
3734,
304,
5988,
278,
1410,
789,
29892,
565,
975,
17625,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
369,
2450,
29918,
5563,
29889,
842,
357,
13,
1678,
822,
1147,
2450,
29918,
5563,
29898,
13,
4706,
1583,
29892,
1147,
2450,
29918,
5563,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
2543,
789,
29879,
29889,
9485,
789,
6565,
2450,
10108,
29892,
938,
20526,
847,
13,
1678,
1723,
1599,
6213,
29901,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
7465,
822,
1653,
29898,
1311,
29897,
1599,
1410,
789,
29879,
29889,
1525,
1254,
9485,
789,
29901,
13,
4706,
9995,
12600,
278,
2009,
304,
8565,
536,
304,
1653,
278,
1410,
789,
29889,
13,
13,
4706,
450,
2280,
1404,
674,
367,
2715,
304,
445,
1410,
789,
408,
4720,
408,
372,
338,
13,
4706,
2825,
29889,
2178,
23481,
393,
892,
4944,
746,
5214,
445,
1410,
789,
674,
13,
4706,
4953,
8340,
322,
674,
367,
8611,
411,
1855,
23481,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
2543,
789,
29879,
29889,
1525,
1254,
9485,
789,
13,
9651,
450,
2825,
1410,
789,
29889,
13,
13,
4706,
390,
1759,
267,
13,
4706,
448,
23648,
13,
4706,
298,
638,
1306,
29889,
12523,
29889,
22050,
3089,
2392,
13,
9651,
960,
738,
1819,
731,
297,
278,
1410,
789,
12856,
526,
8340,
29889,
13,
4706,
298,
638,
1306,
29889,
12523,
29889,
29965,
1056,
329,
2015,
1891,
2392,
13,
9651,
960,
366,
526,
1185,
329,
2015,
1891,
304,
1207,
278,
2009,
313,
20965,
29914,
27259,
5993,
467,
13,
4706,
298,
638,
1306,
29889,
12523,
29889,
2831,
29890,
4215,
2392,
13,
9651,
960,
366,
526,
2307,
297,
29871,
29896,
29900,
1410,
789,
29879,
29889,
13,
4706,
298,
638,
1306,
29889,
12523,
29889,
16491,
6004,
2392,
13,
9651,
960,
385,
7463,
1059,
10008,
373,
8565,
536,
1550,
11415,
278,
2009,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
12154,
29898,
13,
4706,
1583,
29892,
13,
4706,
1024,
29901,
851,
29892,
13,
4706,
847,
29892,
13,
4706,
334,
29892,
13,
4706,
11239,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
17858,
6847,
5396,
15737,
6847,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
2927,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
27703,
29889,
3306,
728,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
12384,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
27703,
29889,
3306,
728,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
5089,
391,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
11227,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
3585,
519,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
11227,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
2602,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
524,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
1678,
1723,
1599,
15007,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29901,
13,
4706,
9995,
4391,
263,
6297,
29889,
13,
13,
4706,
1738,
6824,
9177,
13,
9651,
450,
937,
6297,
366,
1653,
1818,
2337,
367,
278,
11159,
17991,
650,
29952,
6297,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
1024,
584,
4240,
1144,
29889,
710,
13,
9651,
450,
6297,
29915,
29879,
1024,
29889,
13,
13,
4706,
5901,
12662,
2699,
13,
4706,
448,
9072,
5634,
13,
4706,
11239,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
17858,
6847,
29889,
15737,
6847,
29962,
13,
9651,
960,
4944,
29892,
278,
11239,
363,
278,
6297,
29889,
13,
4706,
2927,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
27703,
29889,
3306,
728,
29962,
13,
9651,
960,
4944,
29892,
278,
6297,
29915,
29879,
2927,
29889,
13,
4706,
12384,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
27703,
29889,
3306,
728,
29962,
13,
9651,
530,
13995,
363,
421,
2780,
1412,
13,
4706,
5089,
391,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
11227,
29962,
13,
9651,
960,
4944,
29892,
3692,
304,
5089,
391,
278,
6297,
29889,
13,
4706,
3585,
519,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
11227,
29962,
13,
9651,
960,
4944,
29892,
3692,
304,
1207,
278,
6297,
3585,
519,
29889,
13,
4706,
2769,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
960,
4944,
29892,
278,
2769,
393,
674,
367,
10478,
297,
278,
12990,
277,
10748,
29889,
13,
9651,
5918,
12539,
310,
29871,
29945,
29896,
29906,
4890,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
13,
9651,
450,
20254,
3553,
363,
445,
6297,
393,
508,
367,
1304,
5382,
6275,
304,
2737,
13,
9651,
304,
445,
1203,
1550,
2874,
292,
278,
1410,
789,
5912,
29889,
13,
13,
9651,
1932,
278,
1410,
789,
338,
2825,
29892,
445,
674,
367,
8611,
411,
263,
1422,
13,
9651,
3553,
29889,
13,
13,
4706,
390,
1759,
267,
13,
4706,
448,
23648,
13,
4706,
4240,
1144,
29889,
1917,
2392,
13,
9651,
960,
366,
526,
16184,
278,
937,
6297,
29892,
541,
1258,
451,
1024,
372,
11159,
17991,
650,
1412,
13,
4706,
4240,
1144,
29889,
1542,
2392,
13,
9651,
960,
366,
6084,
1716,
421,
2780,
29952,
322,
421,
1054,
473,
29952,
4208,
470,
565,
366,
1018,
304,
13,
9651,
6084,
421,
2780,
1673,
421,
1054,
473,
1673,
421,
1251,
12652,
1673,
421,
358,
291,
519,
29952,
470,
421,
3283,
29952,
363,
13,
9651,
278,
11159,
17991,
650,
29952,
6297,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
7320,
29898,
13,
4706,
1583,
29892,
13,
4706,
1024,
29901,
851,
29892,
13,
4706,
847,
29892,
13,
4706,
334,
29892,
13,
4706,
2602,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
524,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
10751,
29918,
957,
8231,
267,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
13,
9651,
19229,
29889,
7196,
29961,
305,
12629,
29889,
27293,
3563,
3539,
29962,
13,
4706,
4514,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
1678,
1723,
1599,
15007,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29901,
13,
4706,
9995,
4391,
263,
7663,
8242,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
1024,
584,
4240,
1144,
29889,
710,
13,
9651,
450,
18196,
1024,
29889,
19928,
367,
1546,
29871,
29906,
322,
29871,
29896,
29900,
29900,
29900,
4890,
29889,
13,
13,
4706,
5901,
12662,
2699,
13,
4706,
448,
9072,
5634,
13,
4706,
2602,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
524,
29962,
13,
9651,
960,
4944,
29892,
278,
2602,
310,
278,
7663,
29889,
13,
4706,
10751,
29918,
957,
8231,
267,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
20529,
29961,
29882,
638,
1306,
29889,
305,
12629,
29889,
27293,
3563,
3539,
5262,
13,
9651,
960,
4944,
29892,
278,
10751,
975,
8231,
267,
363,
278,
7663,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
13,
9651,
450,
20254,
3553,
363,
445,
8242,
393,
508,
367,
1304,
5382,
6275,
304,
2737,
13,
9651,
304,
445,
1203,
1550,
2874,
292,
278,
1410,
789,
5912,
29889,
13,
13,
9651,
1932,
278,
1410,
789,
338,
2825,
29892,
445,
674,
367,
8611,
411,
263,
1422,
13,
9651,
3553,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
448,
7407,
2086,
1472,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
726,
29918,
12719,
29898,
13,
4706,
1583,
29892,
13,
4706,
1024,
29901,
851,
29892,
13,
4706,
847,
29892,
13,
4706,
334,
29892,
13,
4706,
3847,
29918,
333,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
11261,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
710,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
6554,
29918,
13400,
29918,
546,
29918,
1792,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
2230,
29889,
12506,
728,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
2602,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
524,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
10751,
29918,
957,
8231,
267,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
13,
9651,
19229,
29889,
7196,
29961,
305,
12629,
29889,
27293,
3563,
3539,
29962,
13,
4706,
4514,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
302,
4668,
29893,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
11227,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
1678,
1723,
1599,
15007,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29901,
13,
4706,
9995,
4391,
263,
1426,
8242,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
1024,
584,
4240,
1144,
29889,
710,
13,
9651,
450,
18196,
1024,
29889,
19928,
367,
1546,
29871,
29906,
322,
29871,
29896,
29900,
29900,
29900,
4890,
29889,
13,
13,
4706,
5901,
12662,
2699,
13,
4706,
448,
9072,
5634,
13,
4706,
2602,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
524,
29962,
13,
9651,
960,
4944,
29892,
278,
2602,
310,
278,
8242,
313,
22925,
304,
278,
13,
9651,
7663,
29892,
565,
738,
467,
13,
4706,
11261,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
960,
4944,
29892,
278,
18196,
11261,
29889,
5918,
12539,
29871,
29896,
29900,
29906,
29946,
4890,
29889,
13,
4706,
302,
4668,
29893,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
11227,
29962,
13,
9651,
960,
4944,
29892,
3692,
304,
2791,
278,
8242,
408,
3865,
29943,
29956,
29889,
13,
4706,
6554,
29918,
13400,
29918,
546,
29918,
1792,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
524,
29962,
13,
9651,
960,
4944,
29892,
278,
5253,
310,
6923,
263,
1404,
756,
304,
4480,
13,
9651,
1434,
1641,
2221,
304,
3638,
1790,
2643,
297,
278,
8242,
29889,
13,
9651,
5918,
12539,
29871,
29906,
29896,
29953,
29900,
29900,
6923,
29889,
13,
4706,
10751,
29918,
957,
8231,
267,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
20529,
29961,
29882,
638,
1306,
29889,
305,
12629,
29889,
27293,
3563,
3539,
5262,
13,
9651,
960,
4944,
29892,
278,
10751,
975,
8231,
267,
363,
278,
8242,
29889,
13,
4706,
7663,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
2816,
29961,
29882,
638,
1306,
29889,
305,
12629,
29889,
9485,
789,
10900,
5262,
13,
9651,
450,
7663,
304,
1653,
278,
8242,
1090,
29889,
910,
1122,
367,
278,
13,
9651,
1203,
470,
278,
3553,
310,
385,
5923,
7663,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
13,
9651,
450,
20254,
3553,
363,
445,
8242,
393,
508,
367,
1304,
5382,
6275,
304,
2737,
13,
9651,
304,
445,
1203,
1550,
2874,
292,
278,
1410,
789,
5912,
29889,
13,
13,
9651,
1932,
278,
1410,
789,
338,
2825,
29892,
445,
674,
367,
8611,
411,
263,
1422,
13,
9651,
3553,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
448,
7407,
2086,
1472,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
14917,
29918,
12719,
29898,
13,
4706,
1583,
29892,
13,
4706,
1024,
29901,
851,
29892,
13,
4706,
847,
29892,
13,
4706,
334,
29892,
13,
4706,
3847,
29918,
333,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
2586,
10492,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
524,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
4863,
29918,
29567,
29918,
8513,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
305,
12629,
29889,
15167,
24399,
537,
6818,
29892,
938,
5262,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
2602,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
524,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
10751,
29918,
957,
8231,
267,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
13,
9651,
19229,
29889,
7196,
29961,
305,
12629,
29889,
27293,
3563,
3539,
29962,
13,
4706,
4514,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
5120,
29901,
7580,
29889,
25263,
5598,
8516,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
1365,
1575,
29889,
29963,
29877,
625,
18457,
29892,
851,
20526,
13,
4706,
1404,
29918,
13400,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
524,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
1678,
1723,
1599,
15007,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29901,
13,
4706,
9995,
4391,
263,
7314,
8242,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
1024,
584,
4240,
1144,
29889,
710,
13,
9651,
450,
18196,
1024,
29889,
19928,
367,
1546,
29871,
29906,
322,
29871,
29896,
29900,
29900,
29900,
4890,
29889,
13,
13,
4706,
5901,
12662,
2699,
13,
4706,
448,
9072,
5634,
13,
4706,
2602,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
524,
29962,
13,
9651,
960,
4944,
29892,
278,
2602,
310,
278,
8242,
313,
22925,
304,
278,
13,
9651,
7663,
29892,
565,
738,
467,
13,
4706,
1404,
29918,
13400,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
524,
29962,
13,
9651,
960,
4944,
29892,
278,
7472,
4160,
297,
278,
8242,
472,
2748,
29889,
13,
9651,
19928,
367,
1546,
29871,
29900,
322,
29871,
29929,
29929,
411,
29871,
29900,
6593,
694,
4046,
29889,
13,
4706,
2586,
10492,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
524,
29962,
13,
9651,
960,
4944,
29892,
278,
2586,
10492,
363,
278,
8242,
29889,
19928,
367,
13,
9651,
1546,
29871,
29947,
29900,
29900,
29900,
322,
29871,
29929,
29953,
29900,
29900,
29900,
470,
29871,
29947,
29900,
29900,
29900,
322,
29871,
29896,
29906,
29947,
29900,
29900,
29900,
363,
5473,
29925,
13,
9651,
12424,
29889,
13,
4706,
4863,
29918,
29567,
29918,
8513,
29901,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29882,
638,
1306,
29889,
305,
12629,
29889,
15167,
24399,
537,
6818,
29892,
4240,
1144,
29889,
524,
5262,
13,
9651,
960,
4944,
29892,
278,
716,
4863,
11029,
4464,
363,
278,
8242,
29889,
13,
4706,
10751,
29918,
957,
8231,
267,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
20529,
29961,
29882,
638,
1306,
29889,
305,
12629,
29889,
27293,
3563,
3539,
5262,
13,
9651,
960,
4944,
29892,
278,
10751,
975,
8231,
267,
363,
278,
8242,
29889,
13,
4706,
5120,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29882,
638,
1306,
29889,
1365,
1575,
29889,
29963,
29877,
625,
18457,
29892,
4240,
1144,
29889,
710,
5262,
13,
632,
960,
4944,
29892,
278,
7314,
5120,
304,
363,
445,
8242,
29889,
6978,
292,
13,
632,
421,
16145,
1144,
29889,
8516,
29952,
1244,
674,
731,
372,
304,
376,
6921,
29908,
4464,
988,
278,
1304,
13,
632,
5120,
674,
367,
8459,
2729,
373,
278,
937,
2022,
1058,
4511,
29879,
304,
372,
13,
632,
746,
372,
29915,
29879,
4069,
29889,
13,
4706,
7663,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
2816,
29961,
29882,
638,
1306,
29889,
305,
12629,
29889,
9485,
789,
10900,
5262,
13,
9651,
450,
7663,
304,
1653,
278,
8242,
1090,
29889,
910,
1122,
367,
278,
13,
9651,
1203,
470,
278,
3553,
310,
385,
5923,
7663,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
13,
9651,
450,
20254,
3553,
363,
445,
8242,
393,
508,
367,
1304,
5382,
6275,
304,
2737,
13,
9651,
304,
445,
1203,
1550,
2874,
292,
278,
1410,
789,
5912,
29889,
13,
13,
9651,
1932,
278,
1410,
789,
338,
2825,
29892,
445,
674,
367,
8611,
411,
263,
1422,
13,
9651,
3553,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
448,
7407,
2086,
1472,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
19190,
29918,
12719,
29898,
13,
4706,
1583,
29892,
13,
4706,
1024,
29901,
851,
29892,
13,
4706,
847,
29892,
13,
4706,
334,
29892,
13,
4706,
3847,
29918,
333,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
2586,
10492,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
524,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
2602,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
524,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
10751,
29918,
957,
8231,
267,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
13,
9651,
19229,
29889,
7196,
29961,
305,
12629,
29889,
27293,
3563,
3539,
29962,
13,
4706,
4514,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
5120,
29901,
7580,
29889,
25263,
5598,
8516,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
1365,
1575,
29889,
29963,
29877,
625,
18457,
29892,
851,
20526,
13,
4706,
1404,
29918,
13400,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
524,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
1678,
1723,
1599,
15007,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29901,
13,
4706,
9995,
4391,
263,
7408,
8242,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
1024,
584,
4240,
1144,
29889,
710,
13,
9651,
450,
18196,
1024,
29889,
19928,
367,
1546,
29871,
29906,
322,
29871,
29896,
29900,
29900,
29900,
4890,
29889,
13,
13,
4706,
5901,
12662,
2699,
13,
4706,
448,
9072,
5634,
13,
4706,
2602,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
524,
29962,
13,
9651,
960,
4944,
29892,
278,
2602,
310,
278,
8242,
313,
22925,
304,
278,
13,
9651,
7663,
29892,
565,
738,
467,
13,
4706,
1404,
29918,
13400,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
524,
29962,
13,
9651,
960,
4944,
29892,
278,
7472,
4160,
297,
278,
8242,
472,
2748,
29889,
13,
9651,
19928,
367,
1546,
29871,
29900,
322,
29871,
29929,
29929,
411,
29871,
29900,
6593,
694,
4046,
29889,
13,
4706,
2586,
10492,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
524,
29962,
13,
9651,
960,
4944,
29892,
278,
2586,
10492,
363,
278,
8242,
29889,
19928,
367,
13,
9651,
1546,
29871,
29947,
29900,
29900,
29900,
322,
29871,
29929,
29953,
29900,
29900,
29900,
470,
29871,
29947,
29900,
29900,
29900,
322,
29871,
29896,
29906,
29947,
29900,
29900,
29900,
363,
5473,
29925,
13,
9651,
12424,
29889,
13,
4706,
10751,
29918,
957,
8231,
267,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
20529,
29961,
29882,
638,
1306,
29889,
305,
12629,
29889,
27293,
3563,
3539,
5262,
13,
9651,
960,
4944,
29892,
278,
10751,
975,
8231,
267,
363,
278,
8242,
29889,
13,
4706,
5120,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29882,
638,
1306,
29889,
1365,
1575,
29889,
29963,
29877,
625,
18457,
29892,
4240,
1144,
29889,
710,
5262,
13,
632,
960,
4944,
29892,
278,
7314,
5120,
304,
363,
445,
8242,
29889,
6978,
292,
13,
632,
421,
16145,
1144,
29889,
8516,
29952,
1244,
674,
731,
372,
304,
376,
6921,
29908,
4464,
988,
278,
1304,
13,
632,
5120,
674,
367,
8459,
2729,
373,
278,
937,
2022,
1058,
4511,
29879,
304,
372,
13,
632,
746,
372,
29915,
29879,
4069,
29889,
13,
4706,
7663,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
2816,
29961,
29882,
638,
1306,
29889,
305,
12629,
29889,
9485,
789,
10900,
5262,
13,
9651,
450,
7663,
304,
1653,
278,
8242,
1090,
29889,
910,
1122,
367,
278,
13,
9651,
1203,
470,
278,
3553,
310,
385,
5923,
7663,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
13,
9651,
450,
20254,
3553,
363,
445,
8242,
393,
508,
367,
1304,
5382,
6275,
304,
2737,
13,
9651,
304,
445,
1203,
1550,
2874,
292,
278,
1410,
789,
5912,
29889,
13,
13,
9651,
1932,
278,
1410,
789,
338,
2825,
29892,
445,
674,
367,
8611,
411,
263,
1422,
13,
9651,
3553,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
4124,
2467,
5103,
5627,
29898,
10736,
29889,
19658,
1125,
13,
1678,
9995,
5160,
770,
363,
599,
14881,
2933,
2048,
414,
1304,
297,
278,
14881,
1923,
1213,
15945,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1134,
29898,
1311,
29897,
1599,
19229,
29889,
19986,
29961,
524,
29892,
2967,
29918,
1639,
7387,
29889,
5103,
1542,
5387,
13,
4706,
9995,
11609,
278,
1134,
310,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
19986,
29961,
16145,
1144,
29889,
524,
29892,
298,
638,
1306,
29889,
1639,
7387,
29889,
3188,
29918,
1639,
7387,
29889,
5103,
1542,
29962,
13,
9651,
450,
1134,
310,
2933,
445,
338,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
2048,
29898,
1311,
29892,
7855,
29918,
14399,
29901,
7855,
29918,
14399,
5396,
6691,
5126,
29892,
847,
29897,
1599,
848,
29918,
19672,
29889,
7249,
2061,
29901,
13,
4706,
9995,
8893,
263,
4663,
1203,
515,
445,
12856,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
7855,
29918,
14399,
584,
298,
638,
1306,
29889,
2754,
29889,
10041,
29918,
14399,
29889,
6691,
5126,
13,
9651,
450,
7855,
12529,
304,
671,
304,
28755,
16212,
2629,
445,
12856,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
7564,
29889,
1272,
29918,
19672,
29889,
7249,
2061,
13,
9651,
450,
4240,
4390,
1203,
8954,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
4124,
2467,
2772,
14373,
5627,
29898,
4074,
2467,
5103,
5627,
29892,
25638,
29889,
19658,
1125,
13,
1678,
9995,
10448,
310,
263,
316,
14373,
2643,
14881,
2933,
12856,
1213,
15945,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1134,
29898,
1311,
29897,
1599,
2967,
29918,
1639,
7387,
29889,
2772,
14373,
5103,
10562,
29911,
29901,
13,
4706,
9995,
11609,
278,
1134,
310,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
1639,
7387,
29889,
3188,
29918,
1639,
7387,
29889,
2772,
14373,
5103,
10562,
29911,
13,
9651,
450,
1134,
310,
2933,
445,
338,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
13449,
29898,
1311,
29897,
1599,
19229,
29889,
19986,
29961,
15955,
29889,
25263,
5598,
1542,
29892,
938,
29892,
7191,
29889,
3728,
21979,
5387,
13,
4706,
9995,
3728,
13449,
445,
2933,
881,
505,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
1094,
310,
5007,
278,
871,
2643,
7353,
607,
508,
367,
731,
1244,
338,
13,
9651,
421,
29882,
638,
1306,
29889,
19158,
29889,
3728,
21979,
29889,
15488,
9606,
29924,
1001,
1964,
1412,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
19986,
29961,
29882,
638,
1306,
29889,
15955,
29889,
25263,
5598,
1542,
29892,
4240,
1144,
29889,
524,
29892,
298,
638,
1306,
29889,
19158,
29889,
3728,
21979,
29962,
13,
9651,
450,
2643,
13449,
445,
2933,
881,
505,
565,
731,
1683,
13,
9651,
421,
29882,
638,
1306,
29889,
15955,
29889,
3904,
24405,
1177,
3352,
1412,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
15764,
29898,
1311,
29901,
903,
29911,
29892,
13449,
29901,
19229,
29889,
19986,
29961,
15955,
29889,
25263,
5598,
1542,
29892,
938,
29892,
7191,
29889,
3728,
21979,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
2643,
13449,
363,
445,
2933,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
1094,
310,
5007,
29892,
278,
871,
2643,
7353,
607,
508,
367,
731,
338,
16502,
9606,
29924,
1001,
1964,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
13449,
584,
19229,
29889,
19986,
29961,
29882,
638,
1306,
29889,
15955,
29889,
25263,
5598,
1542,
29892,
4240,
1144,
29889,
524,
29892,
298,
638,
1306,
29889,
19158,
29889,
3728,
21979,
29962,
13,
9651,
450,
2643,
13449,
304,
731,
363,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
3728,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
4124,
2467,
12300,
8835,
5627,
29898,
4074,
2467,
5103,
5627,
29892,
25638,
29889,
19658,
1125,
13,
1678,
9995,
10448,
310,
385,
4469,
8835,
14881,
2933,
12856,
1213,
15945,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
19995,
29898,
1311,
29897,
1599,
19229,
29889,
20529,
29961,
26381,
29889,
6255,
29620,
5387,
13,
4706,
9995,
11609,
4469,
8835,
19995,
1213,
15945,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
1859,
1575,
29898,
1311,
29901,
903,
29911,
29892,
19995,
29901,
19229,
29889,
20529,
29961,
26381,
29889,
6255,
29620,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
4469,
8835,
19995,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
12300,
8835,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
4124,
2467,
3728,
5627,
29898,
4074,
2467,
5103,
5627,
29892,
25638,
29889,
19658,
1125,
13,
1678,
9995,
10448,
310,
385,
14881,
2643,
2933,
12856,
1304,
2629,
16759,
12424,
29889,
13,
13,
1678,
910,
508,
367,
4133,
491,
278,
13254,
15443,
304,
13,
1678,
421,
29882,
638,
1306,
29889,
2754,
29889,
1639,
2467,
29918,
2974,
29889,
4074,
2467,
6004,
29952,
408,
263,
2933,
304,
278,
14881,
13,
1678,
1653,
29889,
13,
1678,
9995,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
396,
830,
5958,
4235,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1134,
29898,
1311,
29897,
1599,
2967,
29918,
1639,
7387,
29889,
3728,
5103,
10562,
29911,
29901,
13,
4706,
9995,
11609,
278,
1134,
310,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
1639,
7387,
29889,
3188,
29918,
1639,
7387,
29889,
3728,
5103,
10562,
29911,
13,
9651,
450,
1134,
310,
2933,
445,
338,
29889,
13,
4706,
9995,
13,
13,
1678,
396,
7338,
355,
519,
4235,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
7117,
29898,
1311,
29897,
1599,
19229,
29889,
20529,
29961,
5308,
5627,
5387,
13,
4706,
9995,
20529,
310,
701,
304,
29871,
29945,
4163,
2048,
414,
304,
3638,
297,
445,
2933,
1213,
15945,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
8297,
29879,
29898,
1311,
29897,
1599,
19229,
29889,
20529,
29961,
1590,
5779,
5396,
6026,
2580,
5387,
13,
4706,
9995,
20529,
310,
701,
304,
29871,
29896,
29900,
310,
278,
8297,
29879,
5134,
297,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
20529,
29961,
29882,
638,
1306,
29889,
1590,
5779,
29889,
6026,
2580,
29962,
13,
9651,
319,
5665,
310,
701,
304,
29871,
29896,
29900,
310,
278,
8297,
29879,
5134,
297,
445,
2933,
29889,
13,
4706,
9995,
13,
13,
1678,
396,
317,
1803,
519,
4235,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
2793,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
710,
5387,
13,
4706,
9995,
5103,
29915,
29879,
2643,
2793,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
450,
2933,
29915,
29879,
2643,
2793,
29892,
565,
731,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
13449,
29898,
1311,
29897,
1599,
19229,
29889,
19986,
29961,
15955,
29889,
25263,
5598,
1542,
29892,
938,
29892,
7191,
29889,
3728,
21979,
5387,
13,
4706,
9995,
3728,
13449,
445,
2933,
881,
505,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
1094,
310,
5007,
278,
871,
2643,
7353,
607,
508,
367,
731,
1244,
338,
13,
9651,
421,
29882,
638,
1306,
29889,
19158,
29889,
3728,
21979,
29889,
15488,
9606,
29924,
1001,
1964,
1412,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
19986,
29961,
29882,
638,
1306,
29889,
15955,
29889,
25263,
5598,
1542,
29892,
4240,
1144,
29889,
524,
29892,
298,
638,
1306,
29889,
19158,
29889,
3728,
21979,
29962,
13,
9651,
450,
2643,
13449,
445,
2933,
881,
505,
565,
731,
1683,
13,
9651,
421,
29882,
638,
1306,
29889,
15955,
29889,
3904,
24405,
1177,
3352,
1412,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
338,
29918,
698,
29879,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
11227,
5387,
13,
4706,
9995,
8809,
1979,
445,
2933,
29915,
29879,
2793,
881,
367,
14914,
408,
1426,
29899,
517,
29899,
5965,
5309,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
11227,
13,
9651,
26460,
445,
2933,
29915,
29879,
2793,
881,
367,
14914,
408,
1426,
29899,
517,
29899,
5965,
5309,
29889,
13,
9651,
960,
2175,
408,
421,
29882,
638,
1306,
29889,
15955,
29889,
3904,
24405,
1177,
3352,
29952,
769,
445,
674,
367,
12708,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
26649,
29918,
17991,
650,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
11227,
5387,
13,
4706,
9995,
8809,
1979,
732,
17991,
650,
322,
732,
4150,
26649,
881,
367,
9615,
363,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
11227,
29962,
13,
9651,
26460,
732,
17991,
650,
26649,
881,
367,
9615,
363,
445,
2933,
29889,
13,
9651,
960,
2175,
408,
421,
29882,
638,
1306,
29889,
15955,
29889,
3904,
24405,
1177,
3352,
29952,
769,
896,
674,
367,
12708,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
6297,
29918,
358,
1080,
29898,
13,
4706,
1583,
29892,
13,
1678,
1723,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
20529,
29961,
2543,
789,
29879,
29889,
7439,
616,
16727,
1402,
6120,
5262,
29901,
13,
4706,
9995,
8809,
1979,
322,
825,
6297,
26649,
881,
367,
9615,
363,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
20529,
29961,
29882,
638,
1306,
29889,
7193,
29889,
7439,
616,
2659,
1402,
4240,
1144,
29889,
11227,
5262,
13,
9651,
20370,
263,
5665,
310,
1203,
29914,
1367,
29879,
310,
278,
16178,
26649,
881,
367,
9615,
363,
29892,
13,
9651,
421,
16145,
1144,
29889,
8824,
29952,
470,
421,
29882,
638,
1306,
29889,
15955,
29889,
3904,
24405,
1177,
3352,
29952,
304,
766,
9536,
738,
6297,
13,
9651,
26649,
470,
421,
5574,
29952,
304,
2758,
599,
6297,
26649,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
448,
7407,
2086,
1472,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1404,
29918,
358,
1080,
29898,
13,
4706,
1583,
29892,
13,
1678,
1723,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
20529,
29961,
7193,
29889,
7439,
616,
2659,
1402,
6120,
5262,
29901,
13,
4706,
9995,
8809,
1979,
322,
825,
1404,
26649,
881,
367,
9615,
363,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
20529,
29961,
29882,
638,
1306,
29889,
7193,
29889,
7439,
616,
2659,
1402,
4240,
1144,
29889,
11227,
5262,
13,
9651,
20370,
263,
5665,
310,
1203,
29914,
1367,
29879,
310,
278,
4160,
26649,
881,
367,
9615,
363,
29892,
13,
9651,
421,
16145,
1144,
29889,
8824,
29952,
470,
421,
29882,
638,
1306,
29889,
15955,
29889,
3904,
24405,
1177,
3352,
29952,
304,
766,
9536,
738,
1404,
13,
9651,
26649,
470,
421,
5574,
29952,
304,
2758,
599,
1404,
26649,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
448,
7407,
2086,
1472,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
9700,
29898,
1311,
29901,
903,
29911,
29892,
4163,
29901,
15924,
5627,
29892,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2528,
263,
4163,
304,
445,
2933,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
4163,
584,
15924,
5627,
13,
9651,
450,
4163,
12856,
304,
788,
304,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
3728,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
17987,
29898,
1311,
29901,
903,
29911,
29892,
8297,
29901,
8297,
29879,
5396,
6026,
2580,
29892,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2528,
385,
8297,
304,
445,
2933,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
8297,
584,
298,
638,
1306,
29889,
1590,
5779,
29889,
6026,
2580,
13,
9651,
4669,
310,
278,
8297,
304,
788,
304,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
3728,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
3051,
29898,
1311,
29901,
903,
29911,
29892,
2793,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
710,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
278,
2933,
29915,
29879,
2643,
2793,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
2793,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
450,
2643,
2793,
304,
731,
363,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
3728,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
15764,
29898,
1311,
29901,
903,
29911,
29892,
13449,
29901,
19229,
29889,
19986,
29961,
15955,
29889,
25263,
5598,
1542,
29892,
938,
29892,
7191,
29889,
3728,
21979,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
2643,
13449,
363,
445,
2933,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
1094,
310,
5007,
29892,
278,
871,
2643,
7353,
607,
508,
367,
731,
338,
16502,
9606,
29924,
1001,
1964,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
13449,
584,
19229,
29889,
19986,
29961,
29882,
638,
1306,
29889,
15955,
29889,
25263,
5598,
1542,
29892,
4240,
1144,
29889,
524,
29892,
298,
638,
1306,
29889,
19158,
29889,
3728,
21979,
29962,
13,
9651,
450,
2643,
13449,
304,
731,
363,
445,
2933,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
3728,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
698,
29879,
29898,
1311,
29901,
903,
29911,
29892,
260,
1372,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
11227,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
3692,
445,
2933,
881,
7135,
1426,
29899,
517,
29899,
5965,
5309,
9068,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
260,
1372,
584,
26460,
445,
2933,
881,
7135,
1426,
29899,
517,
29899,
5965,
5309,
9068,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
3728,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
358,
1080,
29918,
17991,
650,
29898,
1311,
29901,
903,
29911,
29892,
26649,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
11227,
29962,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
3692,
445,
2933,
881,
367,
2221,
304,
3585,
732,
17991,
650,
29368,
4150,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
26649,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
11227,
29962,
13,
9651,
26460,
445,
2933,
881,
367,
2221,
304,
3585,
732,
17991,
650,
29368,
4150,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
3728,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
12154,
29918,
358,
1080,
29898,
13,
4706,
1583,
29901,
903,
29911,
29892,
13,
4706,
26649,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
13,
9651,
19229,
29889,
19986,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
20529,
29961,
2543,
789,
29879,
29889,
7439,
616,
16727,
1402,
6120,
29962,
13,
4706,
4514,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
847,
29892,
13,
1678,
1723,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
3692,
322,
825,
6297,
26649,
881,
367,
1950,
363,
445,
2933,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
26649,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
20529,
29961,
29882,
638,
1306,
29889,
7193,
29889,
7439,
616,
2659,
1402,
4240,
1144,
29889,
11227,
5262,
13,
9651,
20370,
263,
5665,
310,
1203,
29914,
1367,
29879,
310,
278,
16178,
26649,
881,
367,
9615,
363,
29892,
13,
9651,
421,
16145,
1144,
29889,
8824,
29952,
470,
421,
29882,
638,
1306,
29889,
15955,
29889,
3904,
24405,
1177,
3352,
29952,
304,
766,
9536,
738,
6297,
13,
9651,
26649,
470,
421,
5574,
29952,
304,
2758,
599,
6297,
26649,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
3728,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
448,
7407,
2086,
1472,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
1792,
29918,
358,
1080,
29898,
13,
4706,
1583,
29901,
903,
29911,
29892,
13,
4706,
26649,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
13,
9651,
19229,
29889,
19986,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
20529,
29961,
7193,
29889,
7439,
616,
2659,
1402,
6120,
29962,
13,
4706,
4514,
353,
7580,
29889,
3904,
24405,
1177,
3352,
29892,
13,
4706,
847,
29892,
13,
1678,
1723,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
3692,
322,
825,
1404,
26649,
881,
367,
1950,
363,
445,
2933,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
26649,
29901,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
1017,
15702,
29889,
19986,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
20529,
29961,
29882,
638,
1306,
29889,
7193,
29889,
7439,
616,
2659,
1402,
4240,
1144,
29889,
11227,
5262,
13,
9651,
20370,
263,
5665,
310,
1203,
29914,
1367,
29879,
310,
278,
4160,
26649,
881,
367,
9615,
363,
29892,
13,
9651,
421,
16145,
1144,
29889,
8824,
29952,
470,
421,
29882,
638,
1306,
29889,
15955,
29889,
3904,
24405,
1177,
3352,
29952,
304,
766,
9536,
738,
1404,
13,
9651,
26649,
470,
421,
5574,
29952,
304,
2758,
599,
1404,
26649,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4124,
2467,
3728,
5627,
13,
9651,
4669,
310,
445,
12856,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
29901,
382,
29945,
29900,
29896,
448,
7407,
2086,
1472,
13,
13,
13,
1990,
10516,
5627,
29898,
10736,
29889,
19658,
1125,
13,
1678,
9995,
10448,
310,
263,
1899,
12856,
1304,
746,
21610,
4969,
8260,
975,
16759,
1213,
15945,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1024,
29898,
1311,
29897,
1599,
851,
29901,
13,
4706,
364,
15945,
29908,
1170,
304,
731,
363,
445,
1899,
29889,
13,
13,
4706,
1738,
6824,
9177,
13,
9651,
910,
881,
1993,
278,
6528,
421,
29985,
7110,
29893,
29899,
3199,
29896,
29892,
29941,
29906,
1042,
29952,
297,
23862,
4464,
13,
9651,
322,
1818,
367,
5224,
4878,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
450,
1024,
304,
731,
363,
445,
1899,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1134,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
26381,
29889,
6255,
1542,
5387,
13,
4706,
9995,
11609,
278,
1134,
310,
445,
1899,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
26381,
29889,
6255,
1542,
13,
9651,
450,
1134,
310,
445,
1899,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1178,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
5387,
13,
4706,
9995,
1367,
310,
445,
1899,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29962,
13,
9651,
450,
3553,
310,
445,
1899,
565,
731,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
2322,
29918,
16074,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
11227,
5387,
13,
4706,
9995,
8809,
1979,
278,
1899,
881,
367,
9615,
491,
2322,
313,
14037,
738,
11239,
467,
13,
13,
4706,
13109,
29879,
304,
421,
16145,
1144,
29889,
11227,
1412,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7580,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
11227,
29962,
13,
9651,
26460,
278,
1899,
881,
367,
9615,
491,
2322,
313,
14037,
738,
11239,
467,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
333,
29898,
1311,
29901,
903,
29911,
29892,
1178,
29918,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
278,
3553,
310,
445,
1899,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
1178,
29918,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
29962,
13,
9651,
450,
3553,
304,
731,
363,
445,
1899,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
10516,
5627,
13,
9651,
4669,
310,
445,
1899,
12856,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
4381,
29918,
16074,
29898,
1311,
29901,
903,
29911,
29892,
2106,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
11227,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
8809,
1979,
445,
1899,
881,
367,
9615,
491,
2322,
313,
14037,
738,
11239,
467,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
2106,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
11227,
29962,
13,
9651,
26460,
445,
1899,
881,
367,
9615,
491,
2322,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
10516,
5627,
13,
9651,
4669,
310,
445,
1899,
12856,
363,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
2048,
29898,
1311,
29892,
7855,
29918,
14399,
29901,
7855,
29918,
14399,
5396,
6691,
5126,
29892,
847,
29897,
1599,
848,
29918,
19672,
29889,
7249,
2061,
29901,
13,
4706,
9995,
8893,
263,
4663,
1203,
515,
445,
12856,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
7855,
29918,
14399,
584,
298,
638,
1306,
29889,
2754,
29889,
10041,
29918,
14399,
29889,
6691,
5126,
13,
9651,
450,
7855,
12529,
304,
671,
304,
28755,
16212,
2629,
445,
12856,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
7564,
29889,
1272,
29918,
19672,
29889,
7249,
2061,
13,
9651,
450,
4240,
4390,
1203,
8954,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
14866,
1161,
6255,
5627,
29898,
6255,
5627,
1125,
13,
1678,
9995,
16973,
1161,
6255,
5627,
1213,
15945,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
6139,
29898,
1311,
29897,
1599,
851,
29901,
13,
4706,
9995,
11609,
278,
6139,
304,
731,
363,
445,
1899,
29889,
13,
13,
4706,
1738,
6824,
9177,
13,
9651,
910,
881,
367,
20978,
3598,
1546,
29871,
29896,
29899,
29896,
29900,
29900,
4890,
297,
3309,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
450,
6139,
304,
731,
363,
445,
1899,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
3987,
29898,
1311,
29897,
1599,
19229,
29889,
20529,
29961,
26381,
29889,
6255,
8375,
5387,
13,
4706,
9995,
20529,
310,
701,
304,
29871,
29906,
29945,
310,
278,
3987,
731,
363,
445,
1899,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
20529,
29961,
29882,
638,
1306,
29889,
26381,
29889,
6255,
8375,
29962,
13,
9651,
319,
5665,
310,
701,
304,
29871,
29906,
29945,
310,
278,
3987,
731,
363,
445,
1899,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
3385,
29898,
1311,
29901,
903,
29911,
29892,
2984,
29901,
8260,
29889,
6255,
8375,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2528,
385,
2984,
304,
445,
1899,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
319,
1899,
508,
505,
701,
304,
29871,
29906,
29945,
3987,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
2984,
584,
298,
638,
1306,
29889,
26381,
29889,
6255,
8375,
13,
9651,
450,
2984,
304,
788,
304,
445,
1899,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
10516,
5627,
13,
9651,
4669,
310,
445,
1899,
12856,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
15228,
6823,
6255,
5627,
29898,
6255,
5627,
1125,
13,
1678,
9995,
2677,
6823,
6255,
5627,
1213,
15945,
13,
13,
13,
1990,
15924,
5627,
29898,
10736,
29889,
19658,
1125,
13,
1678,
9995,
5160,
770,
363,
599,
4163,
12856,
4413,
1213,
15945,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
2048,
29898,
1311,
29897,
1599,
848,
29918,
19672,
29889,
7249,
2061,
29901,
13,
4706,
9995,
8893,
263,
4663,
1203,
515,
445,
12856,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
7564,
29889,
1272,
29918,
19672,
29889,
7249,
2061,
13,
9651,
450,
4240,
4390,
1203,
8954,
310,
445,
12856,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
11025,
5627,
29898,
5308,
5627,
29892,
25638,
29889,
19658,
29892,
19229,
29889,
15809,
28513,
7895,
29911,
29962,
1125,
13,
1678,
9995,
5627,
770,
363,
263,
2643,
2826,
4163,
1213,
15945,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
3114,
29898,
1311,
29897,
1599,
19229,
29889,
19986,
29961,
19158,
29889,
3125,
5568,
29892,
938,
5387,
13,
4706,
9995,
3125,
29915,
29879,
3114,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
19986,
29961,
16145,
1144,
29889,
524,
29892,
298,
638,
1306,
29889,
19158,
29889,
3125,
5568,
29962,
13,
9651,
450,
2826,
29915,
29879,
3114,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
953,
29877,
2397,
29898,
1311,
29897,
1599,
19229,
29889,
19986,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
29892,
953,
3848,
275,
29889,
29923,
4346,
2397,
29892,
851,
29892,
7580,
29889,
25263,
5598,
1542,
5387,
13,
4706,
9995,
29923,
4346,
2397,
607,
881,
2615,
373,
445,
2826,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
19986,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
29892,
298,
638,
1306,
29889,
331,
3848,
275,
29889,
29923,
4346,
2397,
29892,
4240,
1144,
29889,
710,
29892,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
1542,
29962,
13,
9651,
4669,
470,
3553,
470,
10650,
1347,
310,
278,
953,
29877,
2397,
607,
881,
367,
8833,
13,
9651,
373,
445,
2826,
565,
731,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
3858,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
710,
5387,
13,
4706,
9995,
1626,
3858,
607,
881,
2615,
373,
445,
2826,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
450,
1426,
3858,
304,
393,
881,
2615,
373,
445,
2826,
29889,
910,
1122,
367,
13,
9651,
701,
304,
29871,
29947,
29900,
4890,
1472,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
3992,
3858,
607,
881,
2615,
373,
445,
2826,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
338,
29918,
18279,
29898,
1311,
29897,
1599,
6120,
29901,
13,
4706,
9995,
8809,
1979,
278,
2826,
881,
367,
10902,
408,
12708,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
13109,
29879,
304,
421,
16145,
1144,
29889,
8824,
1412,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
11227,
13,
9651,
26460,
278,
2826,
881,
367,
10902,
408,
12708,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
15810,
2397,
29898,
13,
4706,
1583,
29901,
903,
29911,
29892,
953,
29877,
2397,
29901,
19229,
29889,
19986,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
29892,
953,
3848,
275,
29889,
29923,
4346,
2397,
29892,
851,
29892,
7580,
29889,
25263,
5598,
1542,
1402,
847,
13,
1678,
1723,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
278,
953,
29877,
2397,
304,
2479,
373,
445,
2826,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
953,
29877,
2397,
584,
19229,
29889,
19986,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
29892,
298,
638,
1306,
29889,
331,
3848,
275,
29889,
29923,
4346,
2397,
29892,
4240,
1144,
29889,
710,
29892,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
1542,
29962,
13,
9651,
4669,
29892,
3553,
470,
10650,
1347,
310,
278,
953,
29877,
2397,
607,
881,
367,
8833,
373,
13,
9651,
445,
2826,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
11025,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
382,
29945,
29900,
29896,
448,
7407,
2086,
1472,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
1643,
29898,
1311,
29901,
903,
29911,
29892,
3858,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
710,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
278,
1426,
3858,
607,
881,
367,
8833,
373,
445,
2826,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
3858,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
450,
1426,
3858,
304,
1510,
373,
445,
2826,
29889,
13,
13,
9651,
910,
1122,
367,
701,
304,
29871,
29947,
29900,
4890,
1472,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
11025,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
275,
29918,
18279,
29898,
1311,
29901,
903,
29911,
29892,
2106,
29901,
6120,
29892,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
3692,
445,
2826,
881,
367,
12708,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
2106,
584,
6120,
13,
9651,
26460,
445,
2826,
881,
367,
12708,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
11025,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
517,
29918,
7611,
29898,
1311,
29897,
1599,
903,
7895,
29911,
29901,
13,
4706,
9995,
2528,
445,
2826,
304,
278,
5639,
4163,
372,
14393,
304,
29889,
13,
13,
4706,
910,
338,
1304,
408,
278,
2186,
5921,
1246,
2645,
521,
7114,
5717,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
903,
7895,
29911,
13,
9651,
450,
5639,
4163,
393,
1914,
29879,
445,
2826,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
6645,
3125,
5627,
29898,
3125,
5627,
28513,
7895,
29911,
1402,
25638,
29889,
19658,
1125,
13,
1678,
9995,
5627,
5067,
363,
1544,
9828,
1213,
15945,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
3142,
29898,
1311,
29897,
1599,
851,
29901,
13,
4706,
9995,
5983,
445,
2826,
881,
1544,
304,
746,
15385,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
501,
2096,
445,
2826,
881,
1544,
304,
746,
15385,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
4124,
4925,
3125,
5627,
29898,
3125,
5627,
28513,
7895,
29911,
1402,
25638,
29889,
19658,
1125,
13,
1678,
9995,
5627,
5067,
363,
28923,
9828,
1213,
15945,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
2888,
29918,
333,
29898,
1311,
29897,
1599,
851,
29901,
13,
4706,
9995,
21956,
261,
731,
2888,
3553,
1304,
363,
2893,
9215,
22060,
411,
445,
2826,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
10682,
261,
731,
2888,
3553,
1304,
363,
2893,
9215,
22060,
411,
445,
2826,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
7605,
8375,
5627,
29898,
5308,
5627,
29892,
25638,
29889,
19658,
29892,
19229,
29889,
15809,
28513,
3549,
6823,
5627,
29911,
29962,
1125,
13,
1678,
9995,
5627,
770,
363,
1831,
6143,
3987,
1213,
15945,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
3858,
29898,
1311,
29897,
1599,
851,
29901,
13,
4706,
9995,
2659,
29899,
29888,
9390,
1024,
310,
278,
2984,
29892,
4236,
29871,
29896,
29900,
29900,
4890,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
4911,
29899,
29888,
9390,
1024,
310,
278,
2984,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
995,
29898,
1311,
29897,
1599,
851,
29901,
13,
4706,
9995,
21956,
261,
29899,
12119,
995,
310,
278,
2984,
29892,
4236,
29871,
29896,
29900,
29900,
4890,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
10682,
261,
29899,
12119,
995,
310,
278,
2984,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
6139,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
710,
5387,
13,
4706,
9995,
11609,
278,
6139,
310,
278,
2984,
29892,
4236,
29871,
29896,
29900,
29900,
4890,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
12953,
310,
278,
2984,
29892,
565,
731,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
953,
29877,
2397,
29898,
1311,
29897,
1599,
19229,
29889,
19986,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
29892,
953,
3848,
275,
29889,
29923,
4346,
2397,
29892,
851,
29892,
7580,
29889,
25263,
5598,
1542,
5387,
13,
4706,
9995,
29923,
4346,
2397,
607,
881,
2615,
373,
445,
2984,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
19986,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
29892,
298,
638,
1306,
29889,
331,
3848,
275,
29889,
29923,
4346,
2397,
29892,
4240,
1144,
29889,
710,
29892,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
1542,
29962,
13,
9651,
4669,
470,
3553,
470,
10650,
1347,
310,
278,
953,
29877,
2397,
607,
881,
367,
8833,
13,
9651,
373,
445,
2984,
565,
731,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
338,
29918,
4381,
29898,
1311,
29897,
1599,
6120,
29901,
13,
4706,
9995,
8809,
1979,
445,
2984,
881,
367,
10902,
408,
4629,
491,
2322,
29889,
13,
13,
4706,
13109,
29879,
304,
421,
16145,
1144,
29889,
8824,
1412,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
11227,
13,
9651,
26460,
445,
2984,
881,
367,
10902,
408,
4629,
491,
2322,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
8216,
29898,
1311,
29901,
903,
29911,
29892,
995,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
710,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
278,
2984,
29915,
29879,
6139,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
995,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
12953,
304,
731,
363,
445,
2984,
29889,
910,
508,
367,
701,
304,
29871,
29896,
29900,
29900,
4890,
13,
9651,
1472,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7605,
8375,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
15810,
2397,
29898,
13,
4706,
1583,
29901,
903,
29911,
29892,
953,
29877,
2397,
29901,
19229,
29889,
19986,
29961,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
29892,
953,
3848,
275,
29889,
29923,
4346,
2397,
29892,
851,
29892,
7580,
29889,
25263,
5598,
1542,
1402,
847,
13,
1678,
1723,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
278,
953,
29877,
2397,
304,
2479,
373,
445,
2984,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
953,
29877,
2397,
584,
19229,
29889,
19986,
29961,
29882,
638,
1306,
29889,
29879,
3707,
29888,
433,
10794,
29889,
29903,
3707,
29888,
433,
446,
728,
29892,
298,
638,
1306,
29889,
331,
3848,
275,
29889,
29923,
4346,
2397,
29892,
4240,
1144,
29889,
710,
29892,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
1542,
29962,
13,
9651,
4669,
29892,
3553,
470,
10650,
1347,
310,
278,
953,
29877,
2397,
607,
881,
367,
8833,
373,
13,
9651,
445,
2984,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7605,
8375,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
29871,
396,
694,
25621,
382,
29945,
29900,
29896,
448,
7407,
2086,
1472,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
275,
29918,
4381,
29898,
1311,
29901,
903,
29911,
29892,
2106,
29901,
6120,
29892,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
3692,
445,
2984,
881,
367,
4629,
491,
2322,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
2106,
584,
4240,
1144,
29889,
11227,
13,
9651,
26460,
445,
2984,
881,
367,
4629,
491,
2322,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7605,
8375,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
517,
29918,
6510,
29898,
1311,
29897,
1599,
903,
3549,
6823,
5627,
29911,
29901,
13,
4706,
9995,
2528,
445,
2984,
304,
278,
6143,
4163,
372,
14393,
304,
29889,
13,
13,
4706,
910,
338,
1304,
408,
278,
2186,
5921,
1246,
2645,
521,
7114,
5717,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
903,
3549,
6823,
5627,
29911,
13,
9651,
450,
6143,
4163,
393,
1914,
29879,
445,
2826,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
7605,
6823,
5627,
29898,
5308,
5627,
29892,
25638,
29889,
19658,
29892,
19229,
29889,
15809,
28513,
7895,
29911,
29962,
1125,
13,
1678,
9995,
5627,
770,
363,
1831,
6143,
3987,
1213,
15945,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
2888,
29918,
333,
29898,
1311,
29897,
1599,
851,
29901,
13,
4706,
9995,
21956,
261,
731,
2888,
3553,
1304,
363,
2893,
9215,
22060,
411,
445,
6143,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
10682,
261,
731,
2888,
3553,
1304,
363,
2893,
9215,
22060,
411,
445,
6143,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
338,
29918,
18279,
29898,
1311,
29897,
1599,
6120,
29901,
13,
4706,
9995,
8809,
1979,
278,
1831,
6143,
881,
367,
10902,
408,
12708,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
13109,
29879,
304,
421,
16145,
1144,
29889,
8824,
1412,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
11227,
13,
9651,
26460,
278,
1831,
6143,
881,
367,
10902,
408,
12708,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
3987,
29898,
1311,
29901,
903,
3549,
6823,
5627,
29911,
29897,
1599,
19229,
29889,
20529,
29961,
3549,
8375,
5627,
28513,
3549,
6823,
5627,
29911,
5262,
29901,
13,
4706,
9995,
20529,
310,
278,
3987,
731,
363,
445,
1831,
6143,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
20529,
29961,
3549,
8375,
5627,
29961,
24313,
5262,
13,
9651,
922,
3910,
310,
278,
3987,
731,
363,
445,
1831,
6143,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
12983,
29898,
1311,
29897,
1599,
7580,
29889,
25263,
5598,
2816,
29961,
710,
5387,
13,
4706,
9995,
11609,
278,
12983,
1426,
304,
2479,
746,
694,
3987,
526,
4629,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
15484,
7694,
1426,
304,
2479,
746,
694,
3987,
526,
4629,
29892,
565,
3342,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
1375,
29918,
5975,
29898,
1311,
29897,
1599,
938,
29901,
13,
4706,
9995,
8140,
12539,
1353,
310,
3987,
607,
1818,
367,
10434,
29889,
13,
13,
4706,
13109,
29879,
304,
29871,
29896,
29889,
13,
4706,
19928,
367,
3109,
1135,
470,
5186,
304,
421,
3549,
6823,
5627,
29889,
3317,
29918,
5975,
29952,
322,
7621,
13,
4706,
1135,
470,
5186,
304,
29871,
29900,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
3080,
12539,
1353,
310,
3987,
607,
1818,
367,
10434,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
4236,
29918,
5975,
29898,
1311,
29897,
1599,
938,
29901,
13,
4706,
9995,
7976,
12539,
1353,
310,
3987,
607,
508,
367,
10434,
29889,
13,
13,
4706,
13109,
29879,
304,
29871,
29896,
29889,
13,
4706,
19928,
367,
7621,
1135,
470,
5186,
304,
421,
3549,
6823,
5627,
29889,
1195,
29918,
5975,
29952,
322,
13,
4706,
3109,
1135,
470,
5186,
304,
29871,
29906,
29945,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
4240,
1144,
29889,
710,
13,
9651,
5918,
12539,
1353,
310,
3987,
607,
508,
367,
10434,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
3385,
29898,
1311,
29901,
903,
3549,
6823,
5627,
29911,
29892,
3858,
29901,
851,
29892,
995,
29901,
851,
29892,
847,
29897,
1599,
7605,
8375,
5627,
28513,
3549,
6823,
5627,
29911,
5387,
13,
4706,
9995,
2528,
385,
2984,
304,
445,
6143,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
3858,
584,
4240,
1144,
29889,
710,
13,
9651,
450,
1404,
29899,
29888,
9390,
1024,
310,
445,
2984,
29892,
4236,
29871,
29896,
29900,
29900,
4890,
29889,
13,
4706,
995,
584,
4240,
1144,
29889,
710,
13,
9651,
450,
13897,
3342,
995,
310,
445,
2984,
29892,
4236,
29871,
29896,
29900,
29900,
4890,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7605,
8375,
5627,
29961,
24313,
29962,
13,
9651,
10831,
12856,
1203,
29889,
13,
9651,
910,
881,
367,
2186,
3368,
491,
5432,
421,
3549,
8375,
5627,
29889,
1202,
29918,
517,
29918,
6510,
1412,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
275,
29918,
18279,
29898,
1311,
29901,
903,
29911,
29892,
2106,
29901,
6120,
29892,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
3692,
445,
2984,
338,
12708,
29889,
13,
13,
4706,
13109,
29879,
304,
421,
16145,
1144,
29889,
8824,
1412,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
2106,
584,
4240,
1144,
29889,
11227,
13,
9651,
26460,
445,
2984,
338,
12708,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7605,
6823,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
27074,
29898,
1311,
29901,
903,
29911,
29892,
995,
29901,
7580,
29889,
25263,
5598,
2816,
29961,
710,
1402,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
2058,
29899,
7694,
1426,
304,
367,
4318,
746,
694,
2984,
338,
4629,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
995,
584,
298,
638,
1306,
29889,
15955,
29889,
25263,
5598,
2816,
29961,
16145,
1144,
29889,
710,
29962,
13,
9651,
15484,
29899,
7694,
1426,
304,
367,
8833,
746,
694,
2984,
338,
4629,
29889,
13,
9651,
5918,
29871,
29896,
29900,
29900,
4890,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7605,
6823,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
1195,
29918,
5975,
29898,
1311,
29901,
903,
29911,
29892,
995,
29901,
938,
29892,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
278,
9212,
5253,
310,
3987,
607,
817,
304,
367,
4629,
363,
445,
6143,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
910,
21274,
304,
29871,
29896,
565,
451,
731,
322,
1818,
367,
7621,
1135,
470,
5186,
304,
29871,
29900,
13,
9651,
322,
3109,
1135,
470,
5186,
304,
421,
3549,
6823,
5627,
29889,
3317,
29918,
5975,
1412,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
995,
584,
4240,
1144,
29889,
524,
13,
9651,
450,
9212,
5253,
310,
3987,
607,
817,
304,
367,
4629,
363,
445,
6143,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7605,
6823,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
731,
29918,
3317,
29918,
5975,
29898,
1311,
29901,
903,
29911,
29892,
995,
29901,
938,
29892,
847,
29897,
1599,
903,
29911,
29901,
13,
4706,
9995,
2697,
278,
7472,
5253,
310,
3987,
607,
508,
367,
4629,
363,
445,
6143,
29889,
13,
13,
4706,
1738,
6824,
4443,
13,
9651,
910,
21274,
304,
29871,
29896,
565,
451,
731,
322,
1818,
367,
3109,
1135,
470,
5186,
304,
29871,
29906,
29945,
13,
9651,
322,
7621,
1135,
470,
5186,
304,
421,
3549,
6823,
5627,
29889,
1195,
29918,
5975,
1412,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
995,
584,
4240,
1144,
29889,
524,
13,
9651,
450,
7472,
5253,
310,
3987,
607,
508,
4629,
363,
445,
6143,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7605,
6823,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
517,
29918,
7611,
29898,
1311,
29897,
1599,
903,
7895,
29911,
29901,
13,
4706,
9995,
15790,
895,
445,
12856,
491,
4417,
372,
304,
967,
3847,
5639,
4163,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
903,
7895,
29911,
13,
9651,
450,
3847,
5639,
4163,
12856,
29889,
13,
4706,
9995,
13,
13,
13,
1990,
9123,
4301,
5627,
29898,
5308,
5627,
29892,
25638,
29889,
19658,
1125,
13,
1678,
9995,
5627,
770,
363,
3158,
1948,
7117,
1213,
15945,
13,
13,
1678,
4770,
2536,
1862,
1649,
29901,
19229,
29889,
20529,
29961,
710,
29962,
353,
3861,
13,
13,
1678,
732,
6799,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
7117,
29898,
1311,
29897,
1599,
19229,
29889,
20529,
29961,
5308,
5627,
5387,
13,
4706,
9995,
20529,
310,
278,
4163,
2048,
414,
15443,
2629,
445,
3158,
1948,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
20529,
29961,
5308,
5627,
29962,
13,
9651,
922,
3910,
310,
278,
4163,
2048,
414,
15443,
2629,
445,
3158,
1948,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
9700,
29898,
13,
4706,
1583,
29901,
903,
29911,
29892,
13,
4706,
4163,
29901,
15924,
5627,
29892,
13,
4706,
847,
29892,
13,
1678,
1723,
1599,
903,
29911,
29901,
13,
4706,
9995,
2528,
263,
4163,
304,
445,
3158,
1948,
12856,
29889,
13,
13,
4706,
1738,
6824,
9177,
13,
9651,
739,
338,
6892,
2253,
304,
671,
421,
4276,
4301,
5627,
29889,
1202,
29918,
3092,
29952,
13,
9651,
322,
421,
4276,
4301,
5627,
29889,
1202,
29918,
2622,
29918,
6510,
29952,
304,
788,
596,
13,
9651,
4163,
304,
278,
12856,
29889,
16025,
3519,
3667,
675,
445,
697,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
4163,
584,
15924,
5627,
13,
9651,
450,
4163,
12856,
304,
788,
304,
278,
3158,
1948,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
9123,
4301,
5627,
13,
9651,
450,
12856,
1203,
304,
9025,
521,
7114,
5717,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
1017,
15702,
29889,
957,
1359,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
3092,
29898,
13,
4706,
1583,
29901,
903,
29911,
29892,
3114,
29901,
7191,
29889,
4074,
4925,
3125,
10562,
29911,
29892,
2888,
29918,
333,
29901,
851,
29892,
847,
13,
1678,
1723,
1599,
4124,
4925,
3125,
5627,
28513,
29911,
5387,
13,
4706,
2023,
13,
13,
1678,
732,
1017,
15702,
29889,
957,
1359,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
3092,
29898,
1311,
29901,
903,
29911,
29892,
3114,
29901,
19229,
29889,
24938,
284,
29961,
19158,
29889,
3125,
5568,
29889,
23714,
29968,
29892,
29871,
29945,
1402,
3142,
29901,
851,
29892,
847,
29897,
1599,
6645,
3125,
5627,
28513,
29911,
5387,
13,
4706,
2023,
13,
13,
1678,
732,
1017,
15702,
29889,
957,
1359,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
3092,
29898,
13,
4706,
1583,
29901,
903,
29911,
29892,
3114,
29901,
19229,
29889,
19986,
29961,
524,
29892,
7191,
29889,
3125,
5568,
1402,
3142,
29918,
272,
29918,
6341,
29918,
333,
29901,
851,
29892,
847,
13,
1678,
1723,
1599,
19229,
29889,
19986,
29961,
6595,
3125,
5627,
28513,
29911,
1402,
4124,
4925,
3125,
5627,
28513,
29911,
5262,
29901,
13,
4706,
2023,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
3092,
29898,
13,
4706,
1583,
29901,
903,
29911,
29892,
3114,
29901,
19229,
29889,
19986,
29961,
524,
29892,
7191,
29889,
3125,
5568,
1402,
3142,
29918,
272,
29918,
6341,
29918,
333,
29901,
851,
29892,
847,
13,
1678,
1723,
1599,
19229,
29889,
19986,
29961,
6595,
3125,
5627,
28513,
29911,
1402,
4124,
4925,
3125,
5627,
28513,
29911,
5262,
29901,
13,
4706,
9995,
2528,
263,
2826,
4163,
304,
445,
3158,
1948,
12856,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
3114,
584,
19229,
29889,
19986,
29961,
16145,
1144,
29889,
524,
29892,
298,
638,
1306,
29889,
19158,
29889,
3125,
5568,
29962,
13,
9651,
450,
2826,
29915,
29879,
3114,
29889,
13,
4706,
3142,
29918,
272,
29918,
6341,
29918,
333,
584,
4240,
1144,
29889,
710,
13,
9651,
1152,
28923,
2826,
11949,
445,
338,
263,
13897,
29899,
12119,
2888,
13,
9651,
15882,
1304,
304,
12439,
607,
2826,
19799,
4163,
22060,
29889,
13,
13,
9651,
1152,
6645,
2826,
11949,
445,
338,
278,
3988,
278,
1544,
2826,
881,
6684,
13,
9651,
304,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
19229,
29889,
19986,
29961,
6595,
3125,
5627,
29961,
24313,
1402,
4124,
4925,
3125,
5627,
29961,
24313,
5262,
13,
9651,
11025,
12856,
1203,
29889,
13,
9651,
421,
3125,
5627,
29889,
1202,
29918,
517,
29918,
7611,
29952,
881,
367,
2000,
304,
2186,
895,
278,
13,
9651,
2826,
29889,
13,
4706,
9995,
13,
13,
1678,
732,
10736,
29889,
16595,
5696,
13,
1678,
822,
788,
29918,
2622,
29918,
6510,
29898,
1311,
29901,
903,
29911,
29892,
2888,
29918,
333,
29901,
851,
29892,
847,
29897,
1599,
7605,
6823,
5627,
28513,
29911,
5387,
13,
4706,
9995,
2528,
263,
1831,
6143,
4163,
304,
445,
3158,
1948,
12856,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
2888,
29918,
333,
584,
4240,
1144,
29889,
710,
13,
9651,
319,
13897,
29899,
12119,
2888,
15882,
1304,
304,
12439,
607,
6143,
13,
9651,
19799,
4163,
22060,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
7605,
6823,
5627,
29961,
24313,
29962,
13,
9651,
7605,
6143,
12856,
1203,
29889,
13,
9651,
421,
3549,
6823,
5627,
29889,
1202,
29918,
517,
29918,
7611,
29952,
881,
367,
2000,
304,
2186,
895,
278,
13,
9651,
2826,
29889,
13,
4706,
9995,
13,
2
] |
demo/mislabelled_data_demo.py | bottydim/dginn | 0 | 1615850 | <reponame>bottydim/dginn<gh_stars>0
if __name__ == '__main__':
import tensorflow as tf
tf.compat.v1.enable_eager_execution()
from aggregator_utils import get_count_aggregators, uncertainty_pred, compute_dg
from core import *
from dataset_utils import filter_dataset
from mnist_loader import load_mnist, get_mnist_model
"""
Things to try:
- Dependency graph computation approach (dg_relevance)
- Aggregation approach + similarity to aggregator
- Number of aggregator samples
- Depth of the model
"""
def main():
# Load dataset
train_x, train_y, test_x, test_y = load_mnist()
# Filter out subset of classes
selected_classes = [0, 1, 2, 3]
train_x, train_y = filter_dataset((train_x, train_y), selected_classes)
test_x, test_y = filter_dataset((test_x, test_y), selected_classes)
# Create model
model = get_mnist_model(train_x, train_y)
# Obtain subset of incorrectly labelled training points
preds = np.argmax(model.predict(train_x), axis=1)
# @Dima union of array & Iterable got boolean?
incorrects = np.nonzero(preds != train_y)[0]
incorrect_samples, incorrect_labels = train_x[incorrects], train_y[incorrects]
incorrect_samples, incorrect_labels = incorrect_samples[:100], incorrect_labels[:100]
# Select random set of samples
n_mislabelled = 100
indices = np.random.choice(train_x.shape[0], n_mislabelled, replace=False)
random_x, random_y = train_x[indices], train_y[indices]
# Combine two sets of samples
combined_x, combined_y = np.concatenate((incorrect_samples, random_x), axis=0), \
np.concatenate((incorrect_labels, random_y), axis=0)
print("# samples: ", combined_x.shape[0])
# Get sample aggregators
aggregators = get_count_aggregators(train_x, train_y, model, 100)
sim_scores = {}
agg_labels = {}
compute_fx = Activations_Computer(model=model, agg_data_points=True)
for i, sample in enumerate(combined_x):
sample = np.expand_dims(sample, axis=0)
dg = compute_dg(sample,compute_fx)
pred_label, sim_score = uncertainty_pred(dg, aggregators)
agg_labels[i] = False
sim_scores[i] = sim_score
y_pred = np.argmax(model.predict(sample), axis=1)
# TODO: remove after testing
# Temporary printing information
if pred_label == combined_y[i]:
agg_labels[i] = True
print("correct sample ", i)
if pred_label != y_pred:
print("disagreement ", i, " predicted: ", pred_label, " model: ", y_pred)
# Sort samples by similarity
sorted_keys = sorted(sim_scores, key=sim_scores.get)
print(sorted_keys)
labels = [agg_labels[i] for i in sorted_keys]
scores = [sim_scores[i] for i in sorted_keys]
print(labels)
print(scores)
# Count how many mislabelled samples are in the second half of the sorted keys
# (i.e. have high similarity)
n_incorrect = len(incorrect_labels)
mislabelled = sum([1 for key in sorted_keys[n_incorrect:] if key >= n_incorrect])
print("Mislabelled: ", mislabelled)
return sorted_keys
if __name__ == '__main__':
main()
"""
Observations:
1) High certainty corresponds to higher chance of a correct prediction
2) Mislabelled samples have higher certainty than misclassified ones (though difference is not pronounced enough)
3) Sometimes, uncertainty gives correct estimate, whilst the model does not
""" | [
1,
529,
276,
1112,
420,
29958,
7451,
1017,
6229,
29914,
20726,
2559,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1053,
26110,
408,
15886,
13,
1678,
15886,
29889,
12667,
29889,
29894,
29896,
29889,
12007,
29918,
29872,
1875,
29918,
22256,
580,
13,
3166,
11404,
1061,
29918,
13239,
1053,
679,
29918,
2798,
29918,
26193,
4097,
29892,
25812,
29918,
11965,
29892,
10272,
29918,
20726,
13,
3166,
7136,
1053,
334,
13,
3166,
8783,
29918,
13239,
1053,
4175,
29918,
24713,
13,
3166,
28597,
391,
29918,
12657,
1053,
2254,
29918,
23521,
391,
29892,
679,
29918,
23521,
391,
29918,
4299,
13,
13,
15945,
29908,
13,
1349,
886,
304,
1018,
29901,
13,
1678,
448,
10034,
5197,
3983,
16287,
2948,
313,
20726,
29918,
276,
2608,
749,
29897,
13,
1678,
448,
319,
26127,
362,
2948,
718,
29501,
304,
11404,
1061,
13,
1678,
448,
9681,
310,
11404,
1061,
11916,
13,
1678,
448,
10034,
386,
310,
278,
1904,
13,
15945,
29908,
13,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
396,
16012,
8783,
13,
1678,
7945,
29918,
29916,
29892,
7945,
29918,
29891,
29892,
1243,
29918,
29916,
29892,
1243,
29918,
29891,
353,
2254,
29918,
23521,
391,
580,
13,
13,
1678,
396,
19916,
714,
11306,
310,
4413,
13,
1678,
4629,
29918,
13203,
353,
518,
29900,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
1678,
7945,
29918,
29916,
29892,
7945,
29918,
29891,
353,
4175,
29918,
24713,
3552,
14968,
29918,
29916,
29892,
7945,
29918,
29891,
511,
4629,
29918,
13203,
29897,
13,
1678,
1243,
29918,
29916,
29892,
1243,
29918,
29891,
353,
4175,
29918,
24713,
3552,
1688,
29918,
29916,
29892,
1243,
29918,
29891,
511,
4629,
29918,
13203,
29897,
13,
13,
1678,
396,
6204,
1904,
13,
1678,
1904,
353,
679,
29918,
23521,
391,
29918,
4299,
29898,
14968,
29918,
29916,
29892,
7945,
29918,
29891,
29897,
13,
13,
1678,
396,
4250,
2408,
11306,
310,
29676,
3858,
839,
6694,
3291,
13,
1678,
4450,
29879,
353,
7442,
29889,
1191,
3317,
29898,
4299,
29889,
27711,
29898,
14968,
29918,
29916,
511,
9685,
29922,
29896,
29897,
13,
1678,
396,
732,
29928,
2946,
9833,
310,
1409,
669,
20504,
519,
2355,
7223,
29973,
13,
1678,
10240,
29879,
353,
7442,
29889,
5464,
9171,
29898,
11965,
29879,
2804,
7945,
29918,
29891,
9601,
29900,
29962,
13,
1678,
10240,
29918,
27736,
29892,
10240,
29918,
21134,
353,
7945,
29918,
29916,
29961,
262,
15728,
29879,
1402,
7945,
29918,
29891,
29961,
262,
15728,
29879,
29962,
13,
1678,
10240,
29918,
27736,
29892,
10240,
29918,
21134,
353,
10240,
29918,
27736,
7503,
29896,
29900,
29900,
1402,
10240,
29918,
21134,
7503,
29896,
29900,
29900,
29962,
13,
13,
1678,
396,
7605,
4036,
731,
310,
11916,
13,
1678,
302,
29918,
26737,
1643,
839,
353,
29871,
29896,
29900,
29900,
13,
1678,
16285,
353,
7442,
29889,
8172,
29889,
16957,
29898,
14968,
29918,
29916,
29889,
12181,
29961,
29900,
1402,
302,
29918,
26737,
1643,
839,
29892,
5191,
29922,
8824,
29897,
13,
1678,
4036,
29918,
29916,
29892,
4036,
29918,
29891,
353,
7945,
29918,
29916,
29961,
513,
1575,
1402,
7945,
29918,
29891,
29961,
513,
1575,
29962,
13,
13,
1678,
396,
422,
26062,
1023,
6166,
310,
11916,
13,
1678,
12420,
29918,
29916,
29892,
12420,
29918,
29891,
353,
7442,
29889,
535,
29883,
2579,
403,
3552,
262,
15728,
29918,
27736,
29892,
4036,
29918,
29916,
511,
9685,
29922,
29900,
511,
320,
13,
462,
632,
7442,
29889,
535,
29883,
2579,
403,
3552,
262,
15728,
29918,
21134,
29892,
4036,
29918,
29891,
511,
9685,
29922,
29900,
29897,
13,
13,
1678,
1596,
14822,
11916,
29901,
9162,
12420,
29918,
29916,
29889,
12181,
29961,
29900,
2314,
13,
13,
1678,
396,
3617,
4559,
11404,
4097,
13,
1678,
11404,
4097,
353,
679,
29918,
2798,
29918,
26193,
4097,
29898,
14968,
29918,
29916,
29892,
7945,
29918,
29891,
29892,
1904,
29892,
29871,
29896,
29900,
29900,
29897,
13,
13,
1678,
1027,
29918,
1557,
2361,
353,
6571,
13,
1678,
946,
29887,
29918,
21134,
353,
6571,
13,
1678,
10272,
29918,
11093,
353,
21775,
800,
29918,
20606,
261,
29898,
4299,
29922,
4299,
29892,
946,
29887,
29918,
1272,
29918,
9748,
29922,
5574,
29897,
13,
1678,
363,
474,
29892,
4559,
297,
26985,
29898,
17743,
1312,
29918,
29916,
1125,
13,
13,
4706,
4559,
353,
7442,
29889,
18837,
29918,
6229,
29879,
29898,
11249,
29892,
9685,
29922,
29900,
29897,
13,
4706,
270,
29887,
353,
10272,
29918,
20726,
29898,
11249,
29892,
26017,
29918,
11093,
29897,
13,
4706,
4450,
29918,
1643,
29892,
1027,
29918,
13628,
353,
25812,
29918,
11965,
29898,
20726,
29892,
11404,
4097,
29897,
13,
13,
4706,
946,
29887,
29918,
21134,
29961,
29875,
29962,
353,
7700,
13,
4706,
1027,
29918,
1557,
2361,
29961,
29875,
29962,
353,
1027,
29918,
13628,
13,
13,
4706,
343,
29918,
11965,
353,
7442,
29889,
1191,
3317,
29898,
4299,
29889,
27711,
29898,
11249,
511,
9685,
29922,
29896,
29897,
13,
13,
13,
13,
4706,
396,
14402,
29901,
3349,
1156,
6724,
13,
4706,
396,
6789,
1971,
653,
14010,
2472,
13,
4706,
565,
4450,
29918,
1643,
1275,
12420,
29918,
29891,
29961,
29875,
5387,
13,
13,
9651,
946,
29887,
29918,
21134,
29961,
29875,
29962,
353,
5852,
13,
13,
9651,
1596,
703,
15728,
4559,
9162,
474,
29897,
13,
13,
9651,
565,
4450,
29918,
1643,
2804,
343,
29918,
11965,
29901,
13,
18884,
1596,
703,
2218,
351,
276,
882,
9162,
474,
29892,
376,
25383,
29901,
9162,
4450,
29918,
1643,
29892,
376,
1904,
29901,
9162,
343,
29918,
11965,
29897,
13,
13,
13,
1678,
396,
20025,
11916,
491,
29501,
13,
1678,
12705,
29918,
8149,
353,
12705,
29898,
3601,
29918,
1557,
2361,
29892,
1820,
29922,
3601,
29918,
1557,
2361,
29889,
657,
29897,
13,
1678,
1596,
29898,
24582,
29918,
8149,
29897,
13,
13,
1678,
11073,
353,
518,
16170,
29918,
21134,
29961,
29875,
29962,
363,
474,
297,
12705,
29918,
8149,
29962,
13,
1678,
19435,
353,
518,
3601,
29918,
1557,
2361,
29961,
29875,
29962,
363,
474,
297,
12705,
29918,
8149,
29962,
13,
1678,
1596,
29898,
21134,
29897,
13,
1678,
1596,
29898,
1557,
2361,
29897,
13,
13,
13,
1678,
396,
3917,
920,
1784,
3984,
1643,
839,
11916,
526,
297,
278,
1473,
4203,
310,
278,
12705,
6611,
13,
1678,
396,
313,
29875,
29889,
29872,
29889,
505,
1880,
29501,
29897,
13,
1678,
302,
29918,
262,
15728,
353,
7431,
29898,
262,
15728,
29918,
21134,
29897,
13,
1678,
3984,
1643,
839,
353,
2533,
4197,
29896,
363,
1820,
297,
12705,
29918,
8149,
29961,
29876,
29918,
262,
15728,
17531,
565,
1820,
6736,
302,
29918,
262,
15728,
2314,
13,
1678,
1596,
703,
29924,
275,
1643,
839,
29901,
9162,
3984,
1643,
839,
29897,
13,
13,
1678,
736,
12705,
29918,
8149,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
13,
15945,
29908,
13,
13,
6039,
2140,
800,
29901,
13,
268,
29896,
29897,
5057,
3058,
1017,
16161,
304,
6133,
8825,
310,
263,
1959,
18988,
13,
268,
29906,
29897,
20929,
1643,
839,
11916,
505,
6133,
3058,
1017,
1135,
3984,
1990,
2164,
6743,
313,
3592,
4328,
338,
451,
11504,
20979,
3307,
29897,
13,
268,
29941,
29897,
18512,
29892,
25812,
4076,
1959,
12678,
29892,
21109,
278,
1904,
947,
451,
268,
13,
13,
13,
15945,
29908,
2
] |
tools/pycocoEval.py | Manthata/hrnet | 80 | 171187 | import matplotlib.pyplot as plt
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
import numpy as np
import skimage.io as io
import ipdb;pdb=ipdb.set_trace
from collections import OrderedDict
# markdown format output
def _print_name_value(name_value, full_arch_name):
names = name_value.keys()
values = name_value.values()
num_values = len(name_value)
print(
'| Arch ' +
' '.join(['| {}'.format(name) for name in names]) +
' |'
)
print('|---' * (num_values+1) + '|')
if len(full_arch_name) > 15:
full_arch_name = full_arch_name[:8] + '...'
print(
'| ' + full_arch_name + ' ' +
' '.join(['| {:.3f}'.format(value) for value in values]) +
' |'
)
gt_anns = 'data/coco/annotations/person_keypoints_val2017.json'
# dt_anns = '/home/xyliu/2D_pose/deep-high-resolution-net.pytorch/person_keypoints.json'
dt_anns = '/home/xyliu/2D_pose/simple-pose-estimation/person_keypoints.json'
annType = 'keypoints'
cocoGt=COCO(gt_anns)
cocoDt=cocoGt.loadRes(dt_anns)
cocoEval = COCOeval(cocoGt,cocoDt,annType)
cocoEval.evaluate()
cocoEval.accumulate()
cocoEval.summarize()
stats_names = ['AP', 'Ap .5', 'AP .75', 'AP (M)', 'AP (L)', 'AR', 'AR .5', 'AR .75', 'AR (M)', 'AR (L)']
info_str = []
for ind, name in enumerate(stats_names):
info_str.append((name, cocoEval.stats[ind]))
name_values = OrderedDict(info_str)
model_name = 'openpose'
if isinstance(name_values, list):
for name_value in name_values:
_print_name_value(name_value, model_name)
else:
_print_name_value(name_values, model_name)
| [
1,
1053,
22889,
29889,
2272,
5317,
408,
14770,
13,
3166,
282,
11078,
542,
327,
8789,
29889,
29883,
6235,
1053,
4810,
3217,
13,
3166,
282,
11078,
542,
327,
8789,
29889,
29883,
6235,
14513,
1053,
4810,
3217,
14513,
13,
5215,
12655,
408,
7442,
13,
5215,
2071,
3027,
29889,
601,
408,
12013,
13,
5215,
10377,
2585,
29936,
29886,
2585,
29922,
666,
2585,
29889,
842,
29918,
15003,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
13,
29937,
2791,
3204,
3402,
1962,
13,
1753,
903,
2158,
29918,
978,
29918,
1767,
29898,
978,
29918,
1767,
29892,
2989,
29918,
1279,
29918,
978,
1125,
13,
1678,
2983,
353,
1024,
29918,
1767,
29889,
8149,
580,
13,
1678,
1819,
353,
1024,
29918,
1767,
29889,
5975,
580,
13,
1678,
954,
29918,
5975,
353,
7431,
29898,
978,
29918,
1767,
29897,
13,
1678,
1596,
29898,
13,
4706,
525,
29989,
2595,
525,
718,
13,
4706,
525,
15300,
7122,
18959,
29989,
6571,
4286,
4830,
29898,
978,
29897,
363,
1024,
297,
2983,
2314,
718,
13,
4706,
525,
891,
29915,
13,
1678,
1723,
13,
1678,
1596,
877,
29989,
5634,
29915,
334,
313,
1949,
29918,
5975,
29974,
29896,
29897,
718,
525,
29989,
1495,
13,
13,
1678,
565,
7431,
29898,
8159,
29918,
1279,
29918,
978,
29897,
1405,
29871,
29896,
29945,
29901,
13,
4706,
2989,
29918,
1279,
29918,
978,
353,
2989,
29918,
1279,
29918,
978,
7503,
29947,
29962,
718,
525,
856,
29915,
13,
1678,
1596,
29898,
13,
4706,
525,
29989,
525,
718,
2989,
29918,
1279,
29918,
978,
718,
525,
525,
718,
13,
4706,
525,
15300,
7122,
18959,
29989,
12365,
29889,
29941,
29888,
29913,
4286,
4830,
29898,
1767,
29897,
363,
995,
297,
1819,
2314,
718,
13,
308,
525,
891,
29915,
13,
1678,
1723,
13,
13,
4141,
29918,
812,
29879,
353,
525,
1272,
29914,
29883,
6235,
29914,
6735,
800,
29914,
10532,
29918,
1989,
9748,
29918,
791,
29906,
29900,
29896,
29955,
29889,
3126,
29915,
13,
29937,
29871,
11636,
29918,
812,
29879,
353,
8207,
5184,
29914,
3594,
492,
29884,
29914,
29906,
29928,
29918,
4220,
29914,
24535,
29899,
9812,
29899,
9778,
918,
29899,
1212,
29889,
2272,
7345,
305,
29914,
10532,
29918,
1989,
9748,
29889,
3126,
29915,
13,
6008,
29918,
812,
29879,
353,
8207,
5184,
29914,
3594,
492,
29884,
29914,
29906,
29928,
29918,
4220,
29914,
12857,
29899,
4220,
29899,
342,
7715,
29914,
10532,
29918,
1989,
9748,
29889,
3126,
29915,
13,
13,
812,
1542,
353,
525,
1989,
9748,
29915,
13,
29883,
6235,
29954,
29873,
29922,
3217,
3217,
29898,
4141,
29918,
812,
29879,
29897,
13,
29883,
6235,
29928,
29873,
29922,
29883,
6235,
29954,
29873,
29889,
1359,
1666,
29898,
6008,
29918,
812,
29879,
29897,
13,
13,
29883,
6235,
29923,
791,
353,
4810,
3217,
14513,
29898,
29883,
6235,
29954,
29873,
29892,
29883,
6235,
29928,
29873,
29892,
812,
1542,
29897,
13,
29883,
6235,
29923,
791,
29889,
24219,
403,
580,
13,
29883,
6235,
29923,
791,
29889,
5753,
398,
5987,
580,
13,
29883,
6235,
29923,
791,
29889,
2083,
3034,
675,
580,
13,
16202,
29918,
7039,
353,
6024,
3301,
742,
525,
17396,
869,
29945,
742,
525,
3301,
869,
29955,
29945,
742,
525,
3301,
313,
29924,
29897,
742,
525,
3301,
313,
29931,
29897,
742,
525,
1718,
742,
525,
1718,
869,
29945,
742,
525,
1718,
869,
29955,
29945,
742,
525,
1718,
313,
29924,
29897,
742,
525,
1718,
313,
29931,
29897,
2033,
13,
13,
3888,
29918,
710,
353,
5159,
13,
1454,
1399,
29892,
1024,
297,
26985,
29898,
16202,
29918,
7039,
1125,
13,
1678,
5235,
29918,
710,
29889,
4397,
3552,
978,
29892,
274,
6235,
29923,
791,
29889,
16202,
29961,
513,
12622,
13,
13,
978,
29918,
5975,
353,
8170,
287,
21533,
29898,
3888,
29918,
710,
29897,
13,
4299,
29918,
978,
353,
525,
3150,
4220,
29915,
13,
13,
361,
338,
8758,
29898,
978,
29918,
5975,
29892,
1051,
1125,
13,
1678,
363,
1024,
29918,
1767,
297,
1024,
29918,
5975,
29901,
13,
4706,
903,
2158,
29918,
978,
29918,
1767,
29898,
978,
29918,
1767,
29892,
1904,
29918,
978,
29897,
13,
2870,
29901,
13,
1678,
903,
2158,
29918,
978,
29918,
1767,
29898,
978,
29918,
5975,
29892,
1904,
29918,
978,
29897,
13,
2
] |
image_classification/token_labeling/tlt/models/lvvit.py | AK391/UniFormer | 367 | 89498 | <reponame>AK391/UniFormer<filename>image_classification/token_labeling/tlt/models/lvvit.py
import torch
import torch.nn as nn
from timm.models.helpers import load_pretrained
from timm.models.registry import register_model
from timm.models.layers import trunc_normal_
from timm.models.resnet import resnet26d, resnet50d, resnet101d
import numpy as np
from .layers import *
def _cfg(url='', **kwargs):
return {
'url': url,
'num_classes': 1000, 'input_size': (3, 224, 224), 'pool_size': None,
'crop_pct': .9, 'interpolation': 'bicubic',
'mean': (0.485, 0.456, 0.406), 'std': (0.229, 0.224, 0.225),
'classifier': 'head',
**kwargs
}
default_cfgs = {
'LV_ViT_Tiny': _cfg(),
'LV_ViT': _cfg(),
'LV_ViT_Medium': _cfg(crop_pct=1.0),
'LV_ViT_Large': _cfg(crop_pct=1.0),
}
def get_block(block_type, **kargs):
if block_type=='mha':
# multi-head attention block
return MHABlock(**kargs)
elif block_type=='ffn':
# feed forward block
return FFNBlock(**kargs)
elif block_type=='tr':
# transformer block
return Block(**kargs)
def rand_bbox(size, lam):
W = size[2]
H = size[3]
cut_rat = np.sqrt(1. - lam)
cut_w = np.int(W * cut_rat)
cut_h = np.int(H * cut_rat)
# uniform
cx = np.random.randint(W)
cy = np.random.randint(H)
bbx1 = np.clip(cx - cut_w // 2, 0, W)
bby1 = np.clip(cy - cut_h // 2, 0, H)
bbx2 = np.clip(cx + cut_w // 2, 0, W)
bby2 = np.clip(cy + cut_h // 2, 0, H)
return bbx1, bby1, bbx2, bby2
def get_dpr(drop_path_rate,depth,drop_path_decay='linear'):
if drop_path_decay=='linear':
# linear dpr decay
dpr = [x.item() for x in torch.linspace(0, drop_path_rate, depth)] # stochastic depth decay rule
elif drop_path_decay=='fix':
# use fixed dpr
dpr= [drop_path_rate]*depth
else:
# use predefined drop_path_rate list
assert len(drop_path_rate)==depth
dpr=drop_path_rate
return dpr
class LV_ViT(nn.Module):
""" Vision Transformer with tricks
Arguements:
p_emb: different conv based position embedding (default: 4 layer conv)
skip_lam: residual scalar for skip connection (default: 1.0)
order: which order of layers will be used (default: None, will override depth if given)
mix_token: use mix token augmentation for batch of tokens (default: False)
return_dense: whether to return feature of all tokens with an additional aux_head (default: False)
"""
def __init__(self, img_size=224, patch_size=16, in_chans=3, num_classes=1000, embed_dim=768, depth=12,
num_heads=12, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop_rate=0., attn_drop_rate=0.,
drop_path_rate=0., drop_path_decay='linear', hybrid_backbone=None, norm_layer=nn.LayerNorm, p_emb='4_2', head_dim = None,
skip_lam = 1.0,order=None, mix_token=False, return_dense=False):
super().__init__()
self.num_classes = num_classes
self.num_features = self.embed_dim = embed_dim # num_features for consistency with other models
self.output_dim = embed_dim if num_classes==0 else num_classes
if hybrid_backbone is not None:
self.patch_embed = HybridEmbed(
hybrid_backbone, img_size=img_size, in_chans=in_chans, embed_dim=embed_dim)
else:
if p_emb=='4_2':
patch_embed_fn = PatchEmbed4_2
elif p_emb=='4_2_128':
patch_embed_fn = PatchEmbed4_2_128
else:
patch_embed_fn = PatchEmbedNaive
self.patch_embed = patch_embed_fn(img_size=img_size, patch_size=patch_size, in_chans=in_chans, embed_dim=embed_dim)
num_patches = self.patch_embed.num_patches
self.cls_token = nn.Parameter(torch.zeros(1, 1, embed_dim))
self.pos_embed = nn.Parameter(torch.zeros(1, num_patches + 1, embed_dim))
self.pos_drop = nn.Dropout(p=drop_rate)
if order is None:
dpr=get_dpr(drop_path_rate, depth, drop_path_decay)
self.blocks = nn.ModuleList([
Block(
dim=embed_dim, num_heads=num_heads, head_dim=head_dim, mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, qk_scale=qk_scale,
drop=drop_rate, attn_drop=attn_drop_rate, drop_path=dpr[i], norm_layer=norm_layer, skip_lam=skip_lam)
for i in range(depth)])
else:
# use given order to sequentially generate modules
dpr=get_dpr(drop_path_rate, len(order), drop_path_decay)
self.blocks = nn.ModuleList([
get_block(order[i],
dim=embed_dim, num_heads=num_heads, head_dim=head_dim, mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, qk_scale=qk_scale,
drop=drop_rate, attn_drop=attn_drop_rate, drop_path=dpr[i], norm_layer=norm_layer, skip_lam=skip_lam)
for i in range(len(order))])
self.norm = norm_layer(embed_dim)
self.head = nn.Linear(embed_dim, num_classes) if num_classes > 0 else nn.Identity()
self.return_dense=return_dense
self.mix_token=mix_token
if return_dense:
self.aux_head=nn.Linear(embed_dim, num_classes) if num_classes > 0 else nn.Identity()
if mix_token:
self.beta = 1.0
assert return_dense, "always return all features when mixtoken is enabled"
trunc_normal_(self.pos_embed, std=.02)
trunc_normal_(self.cls_token, std=.02)
self.apply(self._init_weights)
def _init_weights(self, m):
if isinstance(m, nn.Linear):
trunc_normal_(m.weight, std=.02)
if isinstance(m, nn.Linear) and m.bias is not None:
nn.init.constant_(m.bias, 0)
elif isinstance(m, GroupLinear):
trunc_normal_(m.group_weight, std=.02)
if isinstance(m, GroupLinear) and m.group_bias is not None:
nn.init.constant_(m.group_bias, 0)
elif isinstance(m, nn.LayerNorm):
nn.init.constant_(m.bias, 0)
nn.init.constant_(m.weight, 1.0)
@torch.jit.ignore
def no_weight_decay(self):
return {'pos_embed', 'cls_token'}
def get_classifier(self):
return self.head
def reset_classifier(self, num_classes, global_pool=''):
self.num_classes = num_classes
self.head = nn.Linear(self.embed_dim, num_classes) if num_classes > 0 else nn.Identity()
def forward_embeddings(self,x):
x = self.patch_embed(x)
return x
def forward_tokens(self, x):
B = x.shape[0]
cls_tokens = self.cls_token.expand(B, -1, -1)
x = torch.cat((cls_tokens, x), dim=1)
x = x + self.pos_embed
x = self.pos_drop(x)
for blk in self.blocks:
x = blk(x)
x = self.norm(x)
return x
def forward_features(self,x):
# simple forward to obtain feature map (without mixtoken)
x = self.forward_embeddings(x)
x = x.flatten(2).transpose(1, 2)
x = self.forward_tokens(x)
return x
def forward(self, x):
x = self.forward_embeddings(x)
# token level mixtoken augmentation
if self.mix_token and self.training:
lam = np.random.beta(self.beta, self.beta)
patch_h, patch_w = x.shape[2],x.shape[3]
bbx1, bby1, bbx2, bby2 = rand_bbox(x.size(), lam)
temp_x = x.clone()
temp_x[:, :, bbx1:bbx2, bby1:bby2] = x.flip(0)[:, :, bbx1:bbx2, bby1:bby2]
x = temp_x
else:
bbx1, bby1, bbx2, bby2 = 0,0,0,0
x = x.flatten(2).transpose(1, 2)
x = self.forward_tokens(x)
x_cls = self.head(x[:,0])
if self.return_dense:
x_aux = self.aux_head(x[:,1:])
if not self.training:
return x_cls+0.5*x_aux.max(1)[0]
# recover the mixed part
if self.mix_token and self.training:
x_aux = x_aux.reshape(x_aux.shape[0],patch_h, patch_w,x_aux.shape[-1])
temp_x = x_aux.clone()
temp_x[:, bbx1:bbx2, bby1:bby2, :] = x_aux.flip(0)[:, bbx1:bbx2, bby1:bby2, :]
x_aux = temp_x
x_aux = x_aux.reshape(x_aux.shape[0],patch_h*patch_w,x_aux.shape[-1])
return x_cls, x_aux, (bbx1, bby1, bbx2, bby2)
return x_cls
@register_model
def vit(pretrained=False, **kwargs):
model = LV_ViT(patch_size=16, embed_dim=384, depth=16, num_heads=6, mlp_ratio=3.,
p_emb=1, **kwargs)
model.default_cfg = default_cfgs['LV_ViT']
return model
@register_model
def lvvit(pretrained=False, **kwargs):
model = LV_ViT(patch_size=16, embed_dim=384, depth=16, num_heads=6, mlp_ratio=3.,
p_emb='4_2',skip_lam=2., **kwargs)
model.default_cfg = default_cfgs['LV_ViT']
return model
@register_model
def lvvit_s(pretrained=False, **kwargs):
model = LV_ViT(patch_size=16, embed_dim=384, depth=16, num_heads=6, mlp_ratio=3.,
p_emb='4_2',skip_lam=2., return_dense=True,mix_token=True, **kwargs)
model.default_cfg = default_cfgs['LV_ViT']
return model
@register_model
def lvvit_m(pretrained=False, **kwargs):
model = LV_ViT(patch_size=16, embed_dim=512, depth=20, num_heads=8, mlp_ratio=3.,
p_emb='4_2',skip_lam=2., return_dense=True,mix_token=True, **kwargs)
model.default_cfg = default_cfgs['LV_ViT_Medium']
return model
@register_model
def lvvit_l(pretrained=False, **kwargs):
order = ['tr']*24 # this will override depth, can also be set as None
model = LV_ViT(patch_size=16, embed_dim=768,depth=24, num_heads=12, mlp_ratio=3.,
p_emb='4_2_128',skip_lam=3., return_dense=True,mix_token=True, order=order, **kwargs)
model.default_cfg = default_cfgs['LV_ViT_Large']
return model
| [
1,
529,
276,
1112,
420,
29958,
22311,
29941,
29929,
29896,
29914,
8110,
2500,
261,
29966,
9507,
29958,
3027,
29918,
1990,
2450,
29914,
6979,
29918,
1643,
292,
29914,
29873,
1896,
29914,
9794,
29914,
28463,
29894,
277,
29889,
2272,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
13,
3166,
5335,
29885,
29889,
9794,
29889,
3952,
6774,
1053,
2254,
29918,
1457,
3018,
1312,
13,
3166,
5335,
29885,
29889,
9794,
29889,
1727,
6020,
1053,
6036,
29918,
4299,
13,
3166,
5335,
29885,
29889,
9794,
29889,
29277,
1053,
21022,
29918,
8945,
29918,
13,
3166,
5335,
29885,
29889,
9794,
29889,
690,
1212,
1053,
620,
1212,
29906,
29953,
29881,
29892,
620,
1212,
29945,
29900,
29881,
29892,
620,
1212,
29896,
29900,
29896,
29881,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
869,
29277,
1053,
334,
13,
13,
13,
13,
1753,
903,
16859,
29898,
2271,
2433,
742,
3579,
19290,
1125,
13,
1678,
736,
426,
13,
4706,
525,
2271,
2396,
3142,
29892,
13,
4706,
525,
1949,
29918,
13203,
2396,
29871,
29896,
29900,
29900,
29900,
29892,
525,
2080,
29918,
2311,
2396,
313,
29941,
29892,
29871,
29906,
29906,
29946,
29892,
29871,
29906,
29906,
29946,
511,
525,
10109,
29918,
2311,
2396,
6213,
29892,
13,
4706,
525,
29883,
1336,
29918,
29886,
312,
2396,
869,
29929,
29892,
525,
1639,
3733,
362,
2396,
525,
29890,
293,
431,
293,
742,
13,
4706,
525,
12676,
2396,
313,
29900,
29889,
29946,
29947,
29945,
29892,
29871,
29900,
29889,
29946,
29945,
29953,
29892,
29871,
29900,
29889,
29946,
29900,
29953,
511,
525,
4172,
2396,
313,
29900,
29889,
29906,
29906,
29929,
29892,
29871,
29900,
29889,
29906,
29906,
29946,
29892,
29871,
29900,
29889,
29906,
29906,
29945,
511,
13,
4706,
525,
1990,
3709,
2396,
525,
2813,
742,
13,
4706,
3579,
19290,
13,
1678,
500,
13,
13,
4381,
29918,
6854,
3174,
353,
426,
13,
1678,
525,
29931,
29963,
29918,
29963,
29875,
29911,
29918,
29911,
4901,
2396,
903,
16859,
3285,
13,
1678,
525,
29931,
29963,
29918,
29963,
29875,
29911,
2396,
903,
16859,
3285,
13,
1678,
525,
29931,
29963,
29918,
29963,
29875,
29911,
29918,
19302,
1974,
2396,
903,
16859,
29898,
29883,
1336,
29918,
29886,
312,
29922,
29896,
29889,
29900,
511,
13,
1678,
525,
29931,
29963,
29918,
29963,
29875,
29911,
29918,
24105,
479,
2396,
903,
16859,
29898,
29883,
1336,
29918,
29886,
312,
29922,
29896,
29889,
29900,
511,
13,
29913,
13,
13,
1753,
679,
29918,
1271,
29898,
1271,
29918,
1853,
29892,
3579,
29895,
5085,
1125,
13,
1678,
565,
2908,
29918,
1853,
1360,
29915,
29885,
2350,
2396,
13,
4706,
396,
2473,
29899,
2813,
8570,
2908,
13,
4706,
736,
341,
29950,
2882,
908,
29898,
1068,
29895,
5085,
29897,
13,
1678,
25342,
2908,
29918,
1853,
1360,
29915,
600,
29876,
2396,
13,
4706,
396,
8343,
6375,
2908,
13,
4706,
736,
21379,
29940,
7445,
29898,
1068,
29895,
5085,
29897,
13,
1678,
25342,
2908,
29918,
1853,
1360,
29915,
509,
2396,
13,
4706,
396,
4327,
261,
2908,
13,
4706,
736,
15658,
29898,
1068,
29895,
5085,
29897,
13,
13,
13,
1753,
20088,
29918,
29890,
1884,
29898,
2311,
29892,
301,
314,
1125,
13,
1678,
399,
353,
2159,
29961,
29906,
29962,
13,
1678,
379,
353,
2159,
29961,
29941,
29962,
13,
1678,
5700,
29918,
3605,
353,
7442,
29889,
3676,
29898,
29896,
29889,
448,
301,
314,
29897,
13,
1678,
5700,
29918,
29893,
353,
7442,
29889,
524,
29898,
29956,
334,
5700,
29918,
3605,
29897,
13,
1678,
5700,
29918,
29882,
353,
7442,
29889,
524,
29898,
29950,
334,
5700,
29918,
3605,
29897,
13,
13,
1678,
396,
9090,
13,
1678,
28232,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
29956,
29897,
13,
1678,
5094,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
29950,
29897,
13,
13,
1678,
289,
29890,
29916,
29896,
353,
7442,
29889,
24049,
29898,
18904,
448,
5700,
29918,
29893,
849,
29871,
29906,
29892,
29871,
29900,
29892,
399,
29897,
13,
1678,
289,
1609,
29896,
353,
7442,
29889,
24049,
29898,
1270,
448,
5700,
29918,
29882,
849,
29871,
29906,
29892,
29871,
29900,
29892,
379,
29897,
13,
1678,
289,
29890,
29916,
29906,
353,
7442,
29889,
24049,
29898,
18904,
718,
5700,
29918,
29893,
849,
29871,
29906,
29892,
29871,
29900,
29892,
399,
29897,
13,
1678,
289,
1609,
29906,
353,
7442,
29889,
24049,
29898,
1270,
718,
5700,
29918,
29882,
849,
29871,
29906,
29892,
29871,
29900,
29892,
379,
29897,
13,
13,
1678,
736,
289,
29890,
29916,
29896,
29892,
289,
1609,
29896,
29892,
289,
29890,
29916,
29906,
29892,
289,
1609,
29906,
13,
13,
13,
1753,
679,
29918,
29881,
558,
29898,
8865,
29918,
2084,
29918,
10492,
29892,
19488,
29892,
8865,
29918,
2084,
29918,
7099,
388,
2433,
10660,
29374,
13,
1678,
565,
5768,
29918,
2084,
29918,
7099,
388,
1360,
29915,
10660,
2396,
13,
4706,
396,
5608,
270,
558,
20228,
13,
4706,
270,
558,
353,
518,
29916,
29889,
667,
580,
363,
921,
297,
4842,
305,
29889,
1915,
3493,
29898,
29900,
29892,
5768,
29918,
2084,
29918,
10492,
29892,
10809,
4638,
29871,
396,
380,
28225,
10809,
20228,
5751,
13,
1678,
25342,
5768,
29918,
2084,
29918,
7099,
388,
1360,
29915,
5878,
2396,
13,
4706,
396,
671,
4343,
270,
558,
13,
4706,
270,
558,
29922,
518,
8865,
29918,
2084,
29918,
10492,
14178,
19488,
13,
1678,
1683,
29901,
13,
4706,
396,
671,
758,
12119,
5768,
29918,
2084,
29918,
10492,
1051,
13,
4706,
4974,
7431,
29898,
8865,
29918,
2084,
29918,
10492,
29897,
1360,
19488,
13,
4706,
270,
558,
29922,
8865,
29918,
2084,
29918,
10492,
13,
1678,
736,
270,
558,
13,
13,
13,
1990,
365,
29963,
29918,
29963,
29875,
29911,
29898,
15755,
29889,
7355,
1125,
13,
1678,
9995,
478,
2459,
4103,
24784,
411,
534,
7358,
13,
1678,
826,
2543,
4110,
29901,
13,
4706,
282,
29918,
1590,
29901,
1422,
7602,
2729,
2602,
23655,
313,
4381,
29901,
29871,
29946,
7546,
7602,
29897,
13,
4706,
14383,
29918,
5288,
29901,
10995,
950,
17336,
363,
14383,
3957,
313,
4381,
29901,
29871,
29896,
29889,
29900,
29897,
13,
4706,
1797,
29901,
607,
1797,
310,
15359,
674,
367,
1304,
313,
4381,
29901,
6213,
29892,
674,
5712,
10809,
565,
2183,
29897,
13,
4706,
6837,
29918,
6979,
29901,
671,
6837,
5993,
18765,
362,
363,
9853,
310,
18897,
313,
4381,
29901,
7700,
29897,
13,
4706,
736,
29918,
1145,
344,
29901,
3692,
304,
736,
4682,
310,
599,
18897,
411,
385,
5684,
3479,
29918,
2813,
313,
4381,
29901,
7700,
29897,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
10153,
29918,
2311,
29922,
29906,
29906,
29946,
29892,
13261,
29918,
2311,
29922,
29896,
29953,
29892,
297,
29918,
305,
550,
29922,
29941,
29892,
954,
29918,
13203,
29922,
29896,
29900,
29900,
29900,
29892,
8297,
29918,
6229,
29922,
29955,
29953,
29947,
29892,
10809,
29922,
29896,
29906,
29892,
13,
462,
954,
29918,
2813,
29879,
29922,
29896,
29906,
29892,
286,
22833,
29918,
3605,
601,
29922,
29946,
1696,
3855,
27049,
29918,
29890,
3173,
29922,
8824,
29892,
3855,
29895,
29918,
7052,
29922,
8516,
29892,
5768,
29918,
10492,
29922,
29900,
1696,
1098,
29876,
29918,
8865,
29918,
10492,
29922,
29900,
1696,
13,
462,
5768,
29918,
2084,
29918,
10492,
29922,
29900,
1696,
5768,
29918,
2084,
29918,
7099,
388,
2433,
10660,
742,
7498,
19515,
29918,
1627,
15933,
29922,
8516,
29892,
6056,
29918,
13148,
29922,
15755,
29889,
14420,
29940,
555,
29892,
282,
29918,
1590,
2433,
29946,
29918,
29906,
742,
2343,
29918,
6229,
353,
6213,
29892,
13,
462,
14383,
29918,
5288,
353,
29871,
29896,
29889,
29900,
29892,
2098,
29922,
8516,
29892,
6837,
29918,
6979,
29922,
8824,
29892,
736,
29918,
1145,
344,
29922,
8824,
1125,
13,
4706,
2428,
2141,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
1949,
29918,
13203,
353,
954,
29918,
13203,
13,
4706,
1583,
29889,
1949,
29918,
22100,
353,
1583,
29889,
17987,
29918,
6229,
353,
8297,
29918,
6229,
29871,
396,
954,
29918,
22100,
363,
5718,
3819,
411,
916,
4733,
13,
4706,
1583,
29889,
4905,
29918,
6229,
353,
8297,
29918,
6229,
565,
954,
29918,
13203,
1360,
29900,
1683,
954,
29918,
13203,
13,
4706,
565,
7498,
19515,
29918,
1627,
15933,
338,
451,
6213,
29901,
13,
9651,
1583,
29889,
5041,
29918,
17987,
353,
9665,
19515,
6026,
2580,
29898,
13,
18884,
7498,
19515,
29918,
1627,
15933,
29892,
10153,
29918,
2311,
29922,
2492,
29918,
2311,
29892,
297,
29918,
305,
550,
29922,
262,
29918,
305,
550,
29892,
8297,
29918,
6229,
29922,
17987,
29918,
6229,
29897,
13,
4706,
1683,
29901,
13,
9651,
565,
282,
29918,
1590,
1360,
29915,
29946,
29918,
29906,
2396,
13,
18884,
13261,
29918,
17987,
29918,
9144,
353,
349,
905,
6026,
2580,
29946,
29918,
29906,
13,
9651,
25342,
282,
29918,
1590,
1360,
29915,
29946,
29918,
29906,
29918,
29896,
29906,
29947,
2396,
13,
18884,
13261,
29918,
17987,
29918,
9144,
353,
349,
905,
6026,
2580,
29946,
29918,
29906,
29918,
29896,
29906,
29947,
13,
9651,
1683,
29901,
13,
18884,
13261,
29918,
17987,
29918,
9144,
353,
349,
905,
6026,
2580,
13695,
573,
13,
13,
9651,
1583,
29889,
5041,
29918,
17987,
353,
13261,
29918,
17987,
29918,
9144,
29898,
2492,
29918,
2311,
29922,
2492,
29918,
2311,
29892,
13261,
29918,
2311,
29922,
5041,
29918,
2311,
29892,
297,
29918,
305,
550,
29922,
262,
29918,
305,
550,
29892,
8297,
29918,
6229,
29922,
17987,
29918,
6229,
29897,
13,
13,
4706,
954,
29918,
5041,
267,
353,
1583,
29889,
5041,
29918,
17987,
29889,
1949,
29918,
5041,
267,
13,
13,
4706,
1583,
29889,
25932,
29918,
6979,
353,
302,
29876,
29889,
9329,
29898,
7345,
305,
29889,
3298,
359,
29898,
29896,
29892,
29871,
29896,
29892,
8297,
29918,
6229,
876,
13,
4706,
1583,
29889,
1066,
29918,
17987,
353,
302,
29876,
29889,
9329,
29898,
7345,
305,
29889,
3298,
359,
29898,
29896,
29892,
954,
29918,
5041,
267,
718,
29871,
29896,
29892,
8297,
29918,
6229,
876,
13,
4706,
1583,
29889,
1066,
29918,
8865,
353,
302,
29876,
29889,
15063,
449,
29898,
29886,
29922,
8865,
29918,
10492,
29897,
13,
13,
4706,
565,
1797,
338,
6213,
29901,
13,
9651,
270,
558,
29922,
657,
29918,
29881,
558,
29898,
8865,
29918,
2084,
29918,
10492,
29892,
10809,
29892,
5768,
29918,
2084,
29918,
7099,
388,
29897,
13,
9651,
1583,
29889,
1271,
29879,
353,
302,
29876,
29889,
7355,
1293,
4197,
13,
18884,
15658,
29898,
13,
462,
1678,
3964,
29922,
17987,
29918,
6229,
29892,
954,
29918,
2813,
29879,
29922,
1949,
29918,
2813,
29879,
29892,
2343,
29918,
6229,
29922,
2813,
29918,
6229,
29892,
286,
22833,
29918,
3605,
601,
29922,
828,
29886,
29918,
3605,
601,
29892,
3855,
27049,
29918,
29890,
3173,
29922,
29939,
27049,
29918,
29890,
3173,
29892,
3855,
29895,
29918,
7052,
29922,
29939,
29895,
29918,
7052,
29892,
13,
462,
1678,
5768,
29922,
8865,
29918,
10492,
29892,
1098,
29876,
29918,
8865,
29922,
1131,
29876,
29918,
8865,
29918,
10492,
29892,
5768,
29918,
2084,
29922,
29881,
558,
29961,
29875,
1402,
6056,
29918,
13148,
29922,
12324,
29918,
13148,
29892,
14383,
29918,
5288,
29922,
11014,
29918,
5288,
29897,
13,
18884,
363,
474,
297,
3464,
29898,
19488,
29897,
2314,
13,
4706,
1683,
29901,
13,
9651,
396,
671,
2183,
1797,
304,
8617,
9247,
5706,
10585,
13,
9651,
270,
558,
29922,
657,
29918,
29881,
558,
29898,
8865,
29918,
2084,
29918,
10492,
29892,
7431,
29898,
2098,
511,
5768,
29918,
2084,
29918,
7099,
388,
29897,
13,
9651,
1583,
29889,
1271,
29879,
353,
302,
29876,
29889,
7355,
1293,
4197,
13,
18884,
679,
29918,
1271,
29898,
2098,
29961,
29875,
1402,
13,
462,
1678,
3964,
29922,
17987,
29918,
6229,
29892,
954,
29918,
2813,
29879,
29922,
1949,
29918,
2813,
29879,
29892,
2343,
29918,
6229,
29922,
2813,
29918,
6229,
29892,
286,
22833,
29918,
3605,
601,
29922,
828,
29886,
29918,
3605,
601,
29892,
3855,
27049,
29918,
29890,
3173,
29922,
29939,
27049,
29918,
29890,
3173,
29892,
3855,
29895,
29918,
7052,
29922,
29939,
29895,
29918,
7052,
29892,
13,
462,
1678,
5768,
29922,
8865,
29918,
10492,
29892,
1098,
29876,
29918,
8865,
29922,
1131,
29876,
29918,
8865,
29918,
10492,
29892,
5768,
29918,
2084,
29922,
29881,
558,
29961,
29875,
1402,
6056,
29918,
13148,
29922,
12324,
29918,
13148,
29892,
14383,
29918,
5288,
29922,
11014,
29918,
5288,
29897,
13,
18884,
363,
474,
297,
3464,
29898,
2435,
29898,
2098,
876,
2314,
13,
13,
4706,
1583,
29889,
12324,
353,
6056,
29918,
13148,
29898,
17987,
29918,
6229,
29897,
13,
4706,
1583,
29889,
2813,
353,
302,
29876,
29889,
12697,
29898,
17987,
29918,
6229,
29892,
954,
29918,
13203,
29897,
565,
954,
29918,
13203,
1405,
29871,
29900,
1683,
302,
29876,
29889,
18415,
580,
13,
308,
13,
4706,
1583,
29889,
2457,
29918,
1145,
344,
29922,
2457,
29918,
1145,
344,
13,
4706,
1583,
29889,
28084,
29918,
6979,
29922,
28084,
29918,
6979,
13,
13,
4706,
565,
736,
29918,
1145,
344,
29901,
13,
9651,
1583,
29889,
2993,
29918,
2813,
29922,
15755,
29889,
12697,
29898,
17987,
29918,
6229,
29892,
954,
29918,
13203,
29897,
565,
954,
29918,
13203,
1405,
29871,
29900,
1683,
302,
29876,
29889,
18415,
580,
13,
4706,
565,
6837,
29918,
6979,
29901,
13,
9651,
1583,
29889,
3571,
353,
29871,
29896,
29889,
29900,
13,
9651,
4974,
736,
29918,
1145,
344,
29892,
376,
21936,
736,
599,
5680,
746,
3737,
486,
4476,
338,
9615,
29908,
13,
13,
4706,
21022,
29918,
8945,
23538,
1311,
29889,
1066,
29918,
17987,
29892,
3659,
21098,
29900,
29906,
29897,
13,
4706,
21022,
29918,
8945,
23538,
1311,
29889,
25932,
29918,
6979,
29892,
3659,
21098,
29900,
29906,
29897,
13,
4706,
1583,
29889,
7302,
29898,
1311,
3032,
2344,
29918,
705,
5861,
29897,
13,
13,
1678,
822,
903,
2344,
29918,
705,
5861,
29898,
1311,
29892,
286,
1125,
13,
4706,
565,
338,
8758,
29898,
29885,
29892,
302,
29876,
29889,
12697,
1125,
13,
9651,
21022,
29918,
8945,
23538,
29885,
29889,
7915,
29892,
3659,
21098,
29900,
29906,
29897,
13,
9651,
565,
338,
8758,
29898,
29885,
29892,
302,
29876,
29889,
12697,
29897,
322,
286,
29889,
29890,
3173,
338,
451,
6213,
29901,
13,
18884,
302,
29876,
29889,
2344,
29889,
23362,
23538,
29885,
29889,
29890,
3173,
29892,
29871,
29900,
29897,
13,
4706,
25342,
338,
8758,
29898,
29885,
29892,
6431,
12697,
1125,
13,
9651,
21022,
29918,
8945,
23538,
29885,
29889,
2972,
29918,
7915,
29892,
3659,
21098,
29900,
29906,
29897,
13,
9651,
565,
338,
8758,
29898,
29885,
29892,
6431,
12697,
29897,
322,
286,
29889,
2972,
29918,
29890,
3173,
338,
451,
6213,
29901,
13,
18884,
302,
29876,
29889,
2344,
29889,
23362,
23538,
29885,
29889,
2972,
29918,
29890,
3173,
29892,
29871,
29900,
29897,
13,
4706,
25342,
338,
8758,
29898,
29885,
29892,
302,
29876,
29889,
14420,
29940,
555,
1125,
13,
9651,
302,
29876,
29889,
2344,
29889,
23362,
23538,
29885,
29889,
29890,
3173,
29892,
29871,
29900,
29897,
13,
9651,
302,
29876,
29889,
2344,
29889,
23362,
23538,
29885,
29889,
7915,
29892,
29871,
29896,
29889,
29900,
29897,
13,
13,
1678,
732,
7345,
305,
29889,
29926,
277,
29889,
17281,
13,
1678,
822,
694,
29918,
7915,
29918,
7099,
388,
29898,
1311,
1125,
13,
4706,
736,
11117,
1066,
29918,
17987,
742,
525,
25932,
29918,
6979,
10827,
13,
13,
1678,
822,
679,
29918,
1990,
3709,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
2813,
13,
13,
1678,
822,
10092,
29918,
1990,
3709,
29898,
1311,
29892,
954,
29918,
13203,
29892,
5534,
29918,
10109,
2433,
29374,
13,
4706,
1583,
29889,
1949,
29918,
13203,
353,
954,
29918,
13203,
13,
4706,
1583,
29889,
2813,
353,
302,
29876,
29889,
12697,
29898,
1311,
29889,
17987,
29918,
6229,
29892,
954,
29918,
13203,
29897,
565,
954,
29918,
13203,
1405,
29871,
29900,
1683,
302,
29876,
29889,
18415,
580,
13,
268,
13,
1678,
822,
6375,
29918,
17987,
29881,
886,
29898,
1311,
29892,
29916,
1125,
13,
4706,
921,
353,
1583,
29889,
5041,
29918,
17987,
29898,
29916,
29897,
13,
4706,
736,
921,
13,
1678,
822,
6375,
29918,
517,
12360,
29898,
1311,
29892,
921,
1125,
13,
4706,
350,
353,
921,
29889,
12181,
29961,
29900,
29962,
13,
4706,
1067,
29879,
29918,
517,
12360,
353,
1583,
29889,
25932,
29918,
6979,
29889,
18837,
29898,
29933,
29892,
448,
29896,
29892,
448,
29896,
29897,
13,
4706,
921,
353,
4842,
305,
29889,
4117,
3552,
25932,
29918,
517,
12360,
29892,
921,
511,
3964,
29922,
29896,
29897,
13,
4706,
921,
353,
921,
718,
1583,
29889,
1066,
29918,
17987,
13,
4706,
921,
353,
1583,
29889,
1066,
29918,
8865,
29898,
29916,
29897,
13,
4706,
363,
1999,
29895,
297,
1583,
29889,
1271,
29879,
29901,
13,
9651,
921,
353,
1999,
29895,
29898,
29916,
29897,
13,
4706,
921,
353,
1583,
29889,
12324,
29898,
29916,
29897,
13,
4706,
736,
921,
13,
13,
1678,
822,
6375,
29918,
22100,
29898,
1311,
29892,
29916,
1125,
13,
4706,
396,
2560,
6375,
304,
4017,
4682,
2910,
313,
14037,
3737,
486,
4476,
29897,
13,
4706,
921,
353,
1583,
29889,
11333,
29918,
17987,
29881,
886,
29898,
29916,
29897,
13,
4706,
921,
353,
921,
29889,
1579,
8606,
29898,
29906,
467,
3286,
4220,
29898,
29896,
29892,
29871,
29906,
29897,
13,
4706,
921,
353,
1583,
29889,
11333,
29918,
517,
12360,
29898,
29916,
29897,
13,
4706,
736,
921,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
4706,
921,
353,
1583,
29889,
11333,
29918,
17987,
29881,
886,
29898,
29916,
29897,
13,
13,
4706,
396,
5993,
3233,
3737,
486,
4476,
18765,
362,
29871,
13,
4706,
565,
1583,
29889,
28084,
29918,
6979,
322,
1583,
29889,
26495,
29901,
13,
9651,
301,
314,
353,
7442,
29889,
8172,
29889,
3571,
29898,
1311,
29889,
3571,
29892,
1583,
29889,
3571,
29897,
13,
9651,
13261,
29918,
29882,
29892,
13261,
29918,
29893,
353,
921,
29889,
12181,
29961,
29906,
1402,
29916,
29889,
12181,
29961,
29941,
29962,
13,
9651,
289,
29890,
29916,
29896,
29892,
289,
1609,
29896,
29892,
289,
29890,
29916,
29906,
29892,
289,
1609,
29906,
353,
20088,
29918,
29890,
1884,
29898,
29916,
29889,
2311,
3285,
301,
314,
29897,
13,
9651,
5694,
29918,
29916,
353,
921,
29889,
16513,
580,
13,
9651,
5694,
29918,
29916,
7503,
29892,
584,
29892,
289,
29890,
29916,
29896,
29901,
1327,
29916,
29906,
29892,
289,
1609,
29896,
29901,
1327,
29891,
29906,
29962,
353,
921,
29889,
29888,
3466,
29898,
29900,
29897,
7503,
29892,
584,
29892,
289,
29890,
29916,
29896,
29901,
1327,
29916,
29906,
29892,
289,
1609,
29896,
29901,
1327,
29891,
29906,
29962,
13,
9651,
921,
353,
5694,
29918,
29916,
13,
4706,
1683,
29901,
13,
9651,
289,
29890,
29916,
29896,
29892,
289,
1609,
29896,
29892,
289,
29890,
29916,
29906,
29892,
289,
1609,
29906,
353,
29871,
29900,
29892,
29900,
29892,
29900,
29892,
29900,
13,
13,
4706,
921,
353,
921,
29889,
1579,
8606,
29898,
29906,
467,
3286,
4220,
29898,
29896,
29892,
29871,
29906,
29897,
13,
4706,
921,
353,
1583,
29889,
11333,
29918,
517,
12360,
29898,
29916,
29897,
13,
4706,
921,
29918,
25932,
353,
1583,
29889,
2813,
29898,
29916,
7503,
29892,
29900,
2314,
13,
13,
13,
4706,
565,
1583,
29889,
2457,
29918,
1145,
344,
29901,
13,
9651,
921,
29918,
2993,
353,
1583,
29889,
2993,
29918,
2813,
29898,
29916,
7503,
29892,
29896,
29901,
2314,
13,
9651,
565,
451,
1583,
29889,
26495,
29901,
13,
18884,
736,
921,
29918,
25932,
29974,
29900,
29889,
29945,
29930,
29916,
29918,
2993,
29889,
3317,
29898,
29896,
9601,
29900,
29962,
13,
13,
9651,
396,
9792,
278,
12849,
760,
13,
9651,
565,
1583,
29889,
28084,
29918,
6979,
322,
1583,
29889,
26495,
29901,
13,
18884,
921,
29918,
2993,
353,
921,
29918,
2993,
29889,
690,
14443,
29898,
29916,
29918,
2993,
29889,
12181,
29961,
29900,
1402,
5041,
29918,
29882,
29892,
13261,
29918,
29893,
29892,
29916,
29918,
2993,
29889,
12181,
14352,
29896,
2314,
13,
18884,
5694,
29918,
29916,
353,
921,
29918,
2993,
29889,
16513,
580,
13,
18884,
5694,
29918,
29916,
7503,
29892,
289,
29890,
29916,
29896,
29901,
1327,
29916,
29906,
29892,
289,
1609,
29896,
29901,
1327,
29891,
29906,
29892,
584,
29962,
353,
921,
29918,
2993,
29889,
29888,
3466,
29898,
29900,
29897,
7503,
29892,
289,
29890,
29916,
29896,
29901,
1327,
29916,
29906,
29892,
289,
1609,
29896,
29901,
1327,
29891,
29906,
29892,
584,
29962,
13,
18884,
921,
29918,
2993,
353,
5694,
29918,
29916,
13,
18884,
921,
29918,
2993,
353,
921,
29918,
2993,
29889,
690,
14443,
29898,
29916,
29918,
2993,
29889,
12181,
29961,
29900,
1402,
5041,
29918,
29882,
29930,
5041,
29918,
29893,
29892,
29916,
29918,
2993,
29889,
12181,
14352,
29896,
2314,
13,
13,
9651,
736,
921,
29918,
25932,
29892,
921,
29918,
2993,
29892,
313,
1327,
29916,
29896,
29892,
289,
1609,
29896,
29892,
289,
29890,
29916,
29906,
29892,
289,
1609,
29906,
29897,
13,
4706,
736,
921,
29918,
25932,
13,
13,
29992,
9573,
29918,
4299,
13,
1753,
13901,
29898,
1457,
3018,
1312,
29922,
8824,
29892,
3579,
19290,
1125,
13,
1678,
1904,
353,
365,
29963,
29918,
29963,
29875,
29911,
29898,
5041,
29918,
2311,
29922,
29896,
29953,
29892,
8297,
29918,
6229,
29922,
29941,
29947,
29946,
29892,
10809,
29922,
29896,
29953,
29892,
954,
29918,
2813,
29879,
29922,
29953,
29892,
286,
22833,
29918,
3605,
601,
29922,
29941,
1696,
13,
4706,
282,
29918,
1590,
29922,
29896,
29892,
3579,
19290,
29897,
13,
1678,
1904,
29889,
4381,
29918,
16859,
353,
2322,
29918,
6854,
3174,
1839,
29931,
29963,
29918,
29963,
29875,
29911,
2033,
13,
1678,
736,
1904,
13,
13,
13,
29992,
9573,
29918,
4299,
13,
1753,
301,
29894,
29894,
277,
29898,
1457,
3018,
1312,
29922,
8824,
29892,
3579,
19290,
1125,
13,
1678,
1904,
353,
365,
29963,
29918,
29963,
29875,
29911,
29898,
5041,
29918,
2311,
29922,
29896,
29953,
29892,
8297,
29918,
6229,
29922,
29941,
29947,
29946,
29892,
10809,
29922,
29896,
29953,
29892,
954,
29918,
2813,
29879,
29922,
29953,
29892,
286,
22833,
29918,
3605,
601,
29922,
29941,
1696,
13,
4706,
282,
29918,
1590,
2433,
29946,
29918,
29906,
742,
11014,
29918,
5288,
29922,
29906,
1696,
3579,
19290,
29897,
13,
1678,
1904,
29889,
4381,
29918,
16859,
353,
2322,
29918,
6854,
3174,
1839,
29931,
29963,
29918,
29963,
29875,
29911,
2033,
13,
1678,
736,
1904,
13,
13,
29992,
9573,
29918,
4299,
13,
1753,
301,
29894,
29894,
277,
29918,
29879,
29898,
1457,
3018,
1312,
29922,
8824,
29892,
3579,
19290,
1125,
13,
1678,
1904,
353,
365,
29963,
29918,
29963,
29875,
29911,
29898,
5041,
29918,
2311,
29922,
29896,
29953,
29892,
8297,
29918,
6229,
29922,
29941,
29947,
29946,
29892,
10809,
29922,
29896,
29953,
29892,
954,
29918,
2813,
29879,
29922,
29953,
29892,
286,
22833,
29918,
3605,
601,
29922,
29941,
1696,
13,
4706,
282,
29918,
1590,
2433,
29946,
29918,
29906,
742,
11014,
29918,
5288,
29922,
29906,
1696,
736,
29918,
1145,
344,
29922,
5574,
29892,
28084,
29918,
6979,
29922,
5574,
29892,
3579,
19290,
29897,
13,
1678,
1904,
29889,
4381,
29918,
16859,
353,
2322,
29918,
6854,
3174,
1839,
29931,
29963,
29918,
29963,
29875,
29911,
2033,
13,
1678,
736,
1904,
13,
13,
29992,
9573,
29918,
4299,
13,
1753,
301,
29894,
29894,
277,
29918,
29885,
29898,
1457,
3018,
1312,
29922,
8824,
29892,
3579,
19290,
1125,
13,
1678,
1904,
353,
365,
29963,
29918,
29963,
29875,
29911,
29898,
5041,
29918,
2311,
29922,
29896,
29953,
29892,
8297,
29918,
6229,
29922,
29945,
29896,
29906,
29892,
10809,
29922,
29906,
29900,
29892,
954,
29918,
2813,
29879,
29922,
29947,
29892,
286,
22833,
29918,
3605,
601,
29922,
29941,
1696,
13,
4706,
282,
29918,
1590,
2433,
29946,
29918,
29906,
742,
11014,
29918,
5288,
29922,
29906,
1696,
736,
29918,
1145,
344,
29922,
5574,
29892,
28084,
29918,
6979,
29922,
5574,
29892,
3579,
19290,
29897,
13,
1678,
1904,
29889,
4381,
29918,
16859,
353,
2322,
29918,
6854,
3174,
1839,
29931,
29963,
29918,
29963,
29875,
29911,
29918,
19302,
1974,
2033,
13,
1678,
736,
1904,
13,
13,
13,
29992,
9573,
29918,
4299,
13,
1753,
301,
29894,
29894,
277,
29918,
29880,
29898,
1457,
3018,
1312,
29922,
8824,
29892,
3579,
19290,
1125,
13,
1678,
1797,
353,
6024,
509,
2033,
29930,
29906,
29946,
396,
445,
674,
5712,
10809,
29892,
508,
884,
367,
731,
408,
6213,
13,
1678,
1904,
353,
365,
29963,
29918,
29963,
29875,
29911,
29898,
5041,
29918,
2311,
29922,
29896,
29953,
29892,
8297,
29918,
6229,
29922,
29955,
29953,
29947,
29892,
19488,
29922,
29906,
29946,
29892,
954,
29918,
2813,
29879,
29922,
29896,
29906,
29892,
286,
22833,
29918,
3605,
601,
29922,
29941,
1696,
13,
4706,
282,
29918,
1590,
2433,
29946,
29918,
29906,
29918,
29896,
29906,
29947,
742,
11014,
29918,
5288,
29922,
29941,
1696,
736,
29918,
1145,
344,
29922,
5574,
29892,
28084,
29918,
6979,
29922,
5574,
29892,
1797,
29922,
2098,
29892,
3579,
19290,
29897,
13,
1678,
1904,
29889,
4381,
29918,
16859,
353,
2322,
29918,
6854,
3174,
1839,
29931,
29963,
29918,
29963,
29875,
29911,
29918,
24105,
479,
2033,
13,
1678,
736,
1904,
13,
2
] |
gputools/denoise/denoise_filter2.py | VolkerH/gputools | 0 | 119149 | <reponame>VolkerH/gputools<gh_stars>0
"""
A collection of some denoising algorithms in 2d
MW, 2014
"""
from __future__ import print_function, unicode_literals, absolute_import, division
import numpy as np
import subprocess
import logging
logger = logging.getLogger(__name__)
def bilateral(data, fSize, sigma, sigma_x = 10., dev= None):
"""bilateral filter """
if dev is None:
dev = imgtools.__DEFAULT_OPENCL_DEVICE__
if dev is None:
raise ValueError("no OpenCLDevice found...")
dtype = data.dtype.type
dtypes_kernels = {np.float32:"run2d_float",
np.uint16:"run2d_short"}
if not dtype in dtypes_kernels:
logger.error("data type %s not supported yet, casting to float:"%dtype,list(dtypes_kernels.keys()))
return
img = dev.createImage_like(data)
buf = dev.createBuffer(data.size,dtype = dtype)
dev.writeImage(img,data)
proc = OCLProcessor(dev,absPath("kernels/bilateral.cl"))
proc.runKernel(dtypes_kernels[dtype],img.shape,None,img,buf,
np.int32(img.shape[0]),np.int32(img.shape[1]),
np.int32(fSize),np.float32(sigma_x),np.float32(sigma))
return dev.readBuffer(buf,dtype=dtype).reshape(data.shape)
def test_bilateral():
from imgtools import test_images, calcPSNR
data = test_images.lena()
data = 100.*data/np.amax(data)
y = data + np.random.normal(0,20,data.shape)
y = y.astype(np.float32)
outs = [calcPSNR(data,bilateral(y,2,sigs)) for sigs in np.linspace(1.,200,20)]
return outs
# def bilateralBuffer(clDev, data, fSize, sigmaX, sigmaP):
# clProc = OCLProcessor(clDev,absPath("kernels/bilateral.cl"))
# clBufIn = clDev.createBuffer(data.size, mem_flag = cl.mem_flags.READ_ONLY)
# clBufOut = clDev.createBuffer(data.size)
# clDev.writeBuffer(clBufIn,data.astype(np.uint16))
# clProc.runKernel("run2dBuf",data.shape[::-1],None,clBufIn,clBufOut,
# np.int32(data.shape[1]),np.int32(data.shape[0]),
# np.int32(fSize),np.float32(sigmaX),np.float32(sigmaP))
# return clDev.readBuffer(clBufOut).reshape(data.shape)
# def bilateralAdapt(clDev, data, sensor, fSize, sigmaX, fac):
# clProc = OCLProcessor(clDev, absPath("kernels/bilateralAdapt.cl"))
# clImg = clDev.createImage(data.shape[::-1])
# clImgSensor = clDev.createImage(sensor.shape[::-1])
# clBuf = clDev.createBuffer(data.size)
# clDev.writeImage(clImg,data.astype(np.uint16))
# clDev.writeImage(clImgSensor,sensor.astype(np.uint16))
# clProc.runKernel("run2d",clImg.shape,None,clImg,clImgSensor,clBuf,
# np.int32(clImg.shape[0]),np.int32(clImg.shape[1]),
# np.int32(fSize),np.float32(sigmaX),np.float32(fac))
# return clDev.readBuffer(clBuf).reshape(data.shape)
# def nlMeansShared(clDev, data, fSize, bSize, sigma):
# locSize = 16
# clProc = OCLProcessor(clDev,absPath("kernels/nlmeans.cl"),options=["-D FS=%d -D BS=%d -D GS=%d"%(fSize,bSize,locSize)])
# clImg = clDev.createImage(data.shape[::-1])
# clBuf = clDev.createBuffer(data.size)
# clDev.writeImage(clImg,data.astype(np.uint16))
# clProc.runKernel("run2d_SHARED",clImg.shape,(locSize,locSize),clImg,clBuf,
# np.int32(clImg.shape[0]),np.int32(clImg.shape[1]),np.float32(sigma))
# return clDev.readBuffer(clBuf).reshape(data.shape)
def nlm(data, fSize, bSize, sigma, dev = None, proc = None):
if dev is None:
dev = imgtools.__DEFAULT_OPENCL_DEVICE__
if dev is None:
raise ValueError("no OpenCLDevice found...")
dtype = data.dtype.type
dtypes_kernels = {np.float32:"run2d_float",
np.uint16:"run2d_short"}
if not dtype in dtypes_kernels:
logger.error("data type %s not supported yet, please convert to:"%dtype,list(dtypes_kernels.keys()))
return
img = dev.createImage_like(data)
buf = dev.createBuffer(data.size,dtype = dtype)
dev.writeImage(img,data)
if proc is None:
proc = OCLProcessor(dev,absPath("kernels/nlmeans.cl"))
proc.runKernel(dtypes_kernels[dtype],img.shape,None,img,buf,
np.int32(img.shape[0]),np.int32(img.shape[1]),
np.int32(fSize), np.int32(bSize),np.float32(sigma)).wait()
return dev.readBuffer(buf,dtype=dtype).reshape(data.shape)
def nlm_fast(data,FS,BS,sigma,dev = None, proc = None):
"""for noise level (and FS,BS = 2,3) of sigma_0, choose sigma = 1.5*sigma_0
"""
if dev is None:
dev = imgtools.__DEFAULT_OPENCL_DEVICE__
if dev is None:
raise ValueError("no OpenCLDevice found...")
if proc is None:
proc = OCLProcessor(dev,absPath("kernels/nlm_fast.cl"),options="-D FS=%i -D BS=%i"%(FS,BS))
img = dev.createImage_like(data)
distImg = dev.createImage_like(data)
distImg = dev.createImage_like(data, mem_flags = "READ_WRITE")
tmpImg = dev.createImage_like(data, mem_flags = "READ_WRITE")
tmpImg2 = dev.createImage_like(data, mem_flags = "READ_WRITE")
accBuf = dev.createBuffer(data.size,
mem_flags = cl.mem_flags.READ_WRITE,
dtype = np.float32)
weightBuf = dev.createBuffer(data.size,
mem_flags = cl.mem_flags.READ_WRITE,
dtype = np.float32)
dev.writeImage(img,data);
dev.writeBuffer(weightBuf,np.zeros_like(data,dtype=np.float32));
for dx in range(BS+1):
for dy in range(-BS,BS+1):
proc.runKernel("dist",img.shape,None,img,tmpImg,np.int32(dx),np.int32(dy))
proc.runKernel("convolve",img.shape,None,tmpImg,tmpImg2,np.int32(1))
proc.runKernel("convolve",img.shape,None,tmpImg2,distImg,np.int32(2))
proc.runKernel("computePlus",img.shape,None,img,distImg,accBuf,weightBuf,
np.int32(img.shape[0]),np.int32(img.shape[1]),
np.int32(dx),np.int32(dy),np.float32(sigma))
if any([dx,dy]):
proc.runKernel("computeMinus",img.shape,None,img,distImg,accBuf,weightBuf,
np.int32(img.shape[0]),np.int32(img.shape[1]),
np.int32(dx),np.int32(dy),np.float32(sigma))
acc = dev.readBuffer(accBuf,dtype=np.float32).reshape(data.shape)
weights = dev.readBuffer(weightBuf,dtype=np.float32).reshape(data.shape)
return acc/weights
def test_nlm():
from imgtools import test_images, calcPSNR
data = test_images.lena()
data = 100.*data/np.amax(data)
y = data + np.random.normal(0,20,data.shape)
y = y.astype(np.float32)
out = nlm(y,2,3,25.)
sigs = np.linspace(2,70,10)
outs = [calcPSNR(data,nlm(y,2,3,s)) for s in sigs]
print("nlm: sig_max = %s" %sigs[np.argmax(outs)])
return outs
def test_nlm_fast():
from imgtools import test_images, calcPSNR
data = test_images.lena()
data = 100.*data/np.amax(data)
y = data + np.random.normal(0,20,data.shape)
y = y.astype(np.float32)
out = nlm_fast(y,2,3,5.)
sigs = np.linspace(3,70,30)
outs = [calcPSNR(data,nlm_fast(y,2,3,s)) for s in sigs]
bests = []
for s0 in np.linspace(2,20,10):
y = data + np.random.normal(0,s0,data.shape)
y = y.astype(np.float32)
ind=np.argmax([calcPSNR(data,nlm_fast(y,2,3,s)) for s in sigs])
print(ind)
bests.append([s0,sigs[ind]])
print("nlm fast: sig_max = %s" %sigs[np.argmax(outs)])
return bests
# def nlMeansBuffer(clDev, data, fSize, bSize, sigma):
# clProc = OCLProcessor(clDev,absPath("kernels/nlmeans.cl"))
# clBufIn = clDev.createBuffer(data.size, mem_flag = cl.mem_flags.READ_ONLY)
# clBufOut = clDev.createBuffer(data.size)
# clDev.writeBuffer(clBufIn,data.astype(np.uint16))
# clProc.runKernel("run2dBuf",(data.size,1),None,clBufIn,clBufOut,
# np.int32(data.shape[1]),np.int32(data.shape[0]),
# np.int32(fSize), np.int32(bSize),np.float32(sigma))
# return clDev.readBuffer(clBufOut).reshape(data.shape)
# def nlMeansPrefetch(clDev, data, fSize, bSize, sigma):
# clProc = OCLProcessor(clDev,absPath("kernels/nlmeans.cl"),options=["-D FS=%d -D BS=%d"%(fSize,bSize)])
# clImg = clDev.createImage(data.shape[::-1])
# clBuf = clDev.createBuffer(data.size)
# clDev.writeImage(clImg,data.astype(np.uint16))
# clProc.runKernel("run2d_FIXED",clImg.shape,None,clImg,clBuf,
# np.int32(clImg.shape[0]),np.int32(clImg.shape[1]),np.float32(sigma))
# return clDev.readBuffer(clBuf).reshape(data.shape)
# def nlMeansProjected(clDev, data, fSize, bSize, sigma, proc = None):
# clImg = clDev.createImage(data.shape[::-1])
# patchImg = clDev.createImage(data.shape[::-1], mem_flags = cl.mem_flags.READ_WRITE, channel_order = cl.channel_order.RGBA, channel_type=cl.channel_type.FLOAT)
# clBuf = clDev.createBuffer(data.size)
# if proc ==None:
# proc = OCLProcessor(clDev,absPath("kernels/patch_kernel.cl"))
# clDev.writeImage(clImg,data.astype(np.uint16))
# proc.runKernel("project4",clImg.shape,None,clImg,patchImg,
# np.int32(clImg.shape[0]),np.int32(clImg.shape[1]),np.int32(fSize))
# proc.runKernel("nlm2dProject",clImg.shape,None,clImg,patchImg,clBuf,
# np.int32(clImg.shape[0]),np.int32(clImg.shape[1]),
# np.int32(fSize), np.int32(bSize),np.float32(sigma))
# return clDev.readBuffer(clBuf).reshape(data.shape)
# def nlMeansProjected2(clDev, data, fSize, bSize, sigma, proc = None):
# clImg = clDev.createImage(data.shape[::-1])
# patchImg = clDev.createImage(data.shape[::-1], mem_flags = cl.mem_flags.READ_WRITE, channel_order = cl.channel_order.RGBA, channel_type=cl.channel_type.FLOAT)
# clBuf = clDev.createBuffer(data.size)
# if proc ==None:
# proc = OCLProcessor(clDev,absPath("kernels/nlmeans_projected.cl"))
# clDev.writeImage(clImg,data.astype(np.uint16))
# from time import time
# t = time()
# proc.runKernel("project4",clImg.shape,None,clImg,patchImg,
# np.int32(clImg.shape[0]),np.int32(clImg.shape[1]),np.int32(fSize))
# proc.runKernel("nlm2dProject",clImg.shape,None,clImg,patchImg,clBuf,
# np.int32(clImg.shape[0]),np.int32(clImg.shape[1]),
# np.int32(fSize), np.int32(bSize),np.float32(sigma))
# out= clDev.readBuffer(clBuf).reshape(data.shape)
# print time()-t ,"second"
# return out
# def nlMeansProjectedSensor(clDev, data, sensor, fSize, bSize, sigma, proc = None):
# clImg = clDev.createImage(data.shape[::-1])
# patchImg = clDev.createImage(data.shape[::-1], mem_flags = cl.mem_flags.READ_WRITE, channel_order = cl.channel_order.RGBA, channel_type=cl.channel_type.FLOAT)
# sensorImg = clDev.createImage(data.shape[::-1], mem_flags = cl.mem_flags.READ_WRITE, channel_order = cl.channel_order.R, channel_type=cl.channel_type.FLOAT)
# clBuf = clDev.createBuffer(data.size)
# if proc ==None:
# proc = OCLProcessor(clDev,absPath("kernels/patch_kernel.cl"))
# clDev.writeImage(clImg,data.astype(np.uint16))
# clDev.writeImage(sensorImg,sensor.astype(np.float32))
# proc.runKernel("project4",clImg.shape,None,clImg,patchImg,
# np.int32(clImg.shape[0]),np.int32(clImg.shape[1]),np.int32(fSize))
# proc.runKernel("nlm2dProjectSensor",clImg.shape,None,clImg,patchImg,sensorImg,clBuf,
# np.int32(clImg.shape[0]),np.int32(clImg.shape[1]),
# np.int32(fSize), np.int32(bSize),np.float32(sigma))
# return clDev.readBuffer(clBuf).reshape(data.shape)
def bm3d(data,sigma):
from scipy.misc import imsave, imread
# meanData = np.mean(data)
fName = "0123456789_TMP.png"
imsave(fName,data)
subprocess.call([os.path.join(os.path.dirname(__file__),
"cxx_code/bm3d/bm3d"),fName,str(sigma),fName], stdout=subprocess.PIPE)
out = imread(fName)
return out
# return out*(1.*meanData/np.mean(out))
def dct_denoising(data,sigma):
from scipy.misc import imsave, imread
meanData = np.mean(data)
fName = "0123456789_TMP.png"
imsave(fName,data)
subprocess.call([os.path.join(os.path.dirname(__file__),
"cxx_code/dct/demo_DCTdenoising"),fName,str(sigma),fName])
out = imread(fName)
return out*(1.*meanData/np.mean(out))
def roundUp(n,k):
#rounds to the next number divisible by k
return np.int(np.ceil(1.*n/k)*k)
def roundDown(n,k):
#rounds to the next number divisible by k
return np.int(np.floor(1.*n/k)*k)
def dct_8x8(data,sigma,dev = None, proc=None):
if dev is None:
dev = imgtools.__DEFAULT_OPENCL_DEVICE__
if dev is None:
raise ValueError("no OpenCLDevice found...")
if not proc:
proc = OCLProcessor(dev,absPath("kernels/dct_8x8.cl"))
src = dev.createImage(data.shape[::-1],channel_type = cl.channel_type.FLOAT,mem_flags = cl.mem_flags.READ_ONLY)
acc = dev.createBuffer(roundUp(data.shape[0],8)*roundUp(data.shape[1],8),dtype=np.float32)
dst = dev.createImage(data.shape[::-1],channel_type = cl.channel_type.FLOAT,mem_flags = cl.mem_flags.WRITE_ONLY)
dev.writeImage(src,data.astype(np.float32))
astride = roundDown(dst.width,8)
for j in range(8):
for i in range(8):
proc.runKernel("dct_denoise_8x8_r",(roundDown(src.width-i,8),roundDown(src.height-j,8)),(8,8),
src,acc, np.float32(sigma),np.int32(i),np.int32(j),np.int32(astride),np.int32(i==0 and j==0))
proc.runKernel("dct_denoise_normalise_r",(roundDown(src.width,8),roundDown(src.height,8)),(8,8),
acc, dst,np.int32(astride))
out = dev.readBuffer(acc,dtype=np.float32)
return np.maximum(0,dev.readImage(dst,dtype=np.float32)).astype(data.dtype)
def test_dct():
from imgtools import test_images, calcPSNR
data = test_images.lena()
data = 100.*data/np.amax(data)
y = data + np.random.normal(0,20,data.shape)
y = y.astype(np.float32)
out = dct_8x8(y,60)
outs = [calcPSNR(data,dct_8x8(y,s)) for s in np.linspace(10,60,20)]
return out
def test_filter():
from functools import partial
import time
data = np.random.uniform(0,1,[2**8,2**8]).astype(np.float32)
print("running on image shape : {} \n\n".format(data.shape))
fs = {
"bilateral":lambda:bilateral(data,3,10,10),
"nlMeans":lambda:nlm_fast(data,3,7,10),
# "nlMeans S":lambda:nlMeansShared(clDev,data,3,7,10),
# "nlMeans P":lambda:nlMeansProjected(clDev,data,3,7,10),
"bm3d ":lambda:bm3d(data,10),
"dct ":lambda:dct_denoising(data,10),
"dct_8x8 ":lambda:dct_8x8(data,10),
# "nlMeans prefetched":lambda:nlMeansPrefetch(clDev,data,3,5,10),
#"nlMeans test":lambda:nlMeansTest(clDev,data,3,5,10),
}
t = time.time()
for f in fs.keys:
fs[f]()
print("%s \t: \t %.2f s"%(f,time.time()-t))
t = time.time()
if __name__ == '__main__':
test_filter()
# out1 = test_bilateral()
# out = test_nlm_fast()
# out3 = test_nlm()
# out4 = test_dct()
# test_filter()
# from SpimUtils import test_images
# data0 = test_images.lena()
# y = np.maximum(0,1.*data0+np.random.normal(0,20,data0.shape)).astype(np.uint16)
# dev = OCLDevice()
# out = nlMeansProjected2(dev,y,3,4,35)
| [
1,
529,
276,
1112,
420,
29958,
13072,
3946,
29950,
29914,
29887,
649,
8789,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
29909,
4333,
310,
777,
972,
29877,
5921,
14009,
297,
29871,
29906,
29881,
13,
13,
25365,
29892,
29871,
29906,
29900,
29896,
29946,
13,
15945,
29908,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
29892,
29104,
29918,
20889,
1338,
29892,
8380,
29918,
5215,
29892,
8542,
13,
5215,
12655,
408,
7442,
13,
5215,
1014,
5014,
13,
5215,
12183,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
13,
1753,
13181,
1008,
284,
29898,
1272,
29892,
285,
3505,
29892,
269,
2934,
29892,
269,
2934,
29918,
29916,
353,
29871,
29896,
29900,
1696,
2906,
29922,
6213,
1125,
13,
1678,
9995,
18152,
1008,
284,
4175,
9995,
13,
13,
1678,
565,
2906,
338,
6213,
29901,
13,
4706,
2906,
353,
10153,
8504,
17255,
23397,
29918,
4590,
1430,
6154,
29918,
2287,
19059,
1649,
13,
13,
1678,
565,
2906,
338,
6213,
29901,
13,
4706,
12020,
7865,
2392,
703,
1217,
4673,
6154,
11501,
1476,
856,
1159,
13,
13,
1678,
26688,
353,
848,
29889,
29881,
1853,
29889,
1853,
13,
1678,
270,
8768,
29918,
22178,
1379,
353,
426,
9302,
29889,
7411,
29941,
29906,
6160,
3389,
29906,
29881,
29918,
7411,
613,
13,
462,
4706,
7442,
29889,
13470,
29896,
29953,
6160,
3389,
29906,
29881,
29918,
12759,
9092,
13,
13,
1678,
565,
451,
26688,
297,
270,
8768,
29918,
22178,
1379,
29901,
13,
4706,
17927,
29889,
2704,
703,
1272,
1134,
1273,
29879,
451,
6969,
3447,
29892,
23013,
304,
5785,
6160,
29995,
29881,
1853,
29892,
1761,
29898,
29881,
8768,
29918,
22178,
1379,
29889,
8149,
22130,
13,
4706,
736,
13,
13,
13,
1678,
10153,
353,
2906,
29889,
3258,
2940,
29918,
4561,
29898,
1272,
29897,
13,
1678,
18392,
353,
2906,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29892,
29881,
1853,
353,
26688,
29897,
13,
1678,
2906,
29889,
3539,
2940,
29898,
2492,
29892,
1272,
29897,
13,
13,
13,
1678,
9580,
353,
438,
6154,
18689,
29898,
3359,
29892,
6897,
2605,
703,
22178,
1379,
29914,
18152,
1008,
284,
29889,
695,
5783,
13,
13,
13,
1678,
9580,
29889,
3389,
29968,
5851,
29898,
29881,
8768,
29918,
22178,
1379,
29961,
29881,
1853,
1402,
2492,
29889,
12181,
29892,
8516,
29892,
2492,
29892,
9721,
29892,
13,
462,
268,
7442,
29889,
524,
29941,
29906,
29898,
2492,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
2492,
29889,
12181,
29961,
29896,
11724,
13,
462,
268,
7442,
29889,
524,
29941,
29906,
29898,
29888,
3505,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
29918,
29916,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
876,
13,
13,
13,
1678,
736,
2906,
29889,
949,
7701,
29898,
9721,
29892,
29881,
1853,
29922,
29881,
1853,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
13,
13,
1753,
1243,
29918,
18152,
1008,
284,
7295,
13,
1678,
515,
10153,
8504,
1053,
1243,
29918,
8346,
29892,
22235,
7024,
16514,
13,
13,
1678,
848,
353,
1243,
29918,
8346,
29889,
29880,
2386,
580,
13,
1678,
848,
353,
29871,
29896,
29900,
29900,
5575,
1272,
29914,
9302,
29889,
314,
1165,
29898,
1272,
29897,
13,
1678,
343,
353,
848,
718,
7442,
29889,
8172,
29889,
8945,
29898,
29900,
29892,
29906,
29900,
29892,
1272,
29889,
12181,
29897,
13,
1678,
343,
353,
343,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
29897,
13,
13,
1678,
714,
29879,
29871,
353,
518,
28667,
7024,
16514,
29898,
1272,
29892,
18152,
1008,
284,
29898,
29891,
29892,
29906,
29892,
18816,
29879,
876,
363,
4365,
29879,
297,
7442,
29889,
1915,
3493,
29898,
29896,
1696,
29906,
29900,
29900,
29892,
29906,
29900,
4638,
13,
13,
1678,
736,
714,
29879,
13,
13,
13,
13,
13,
29937,
822,
13181,
1008,
284,
7701,
29898,
695,
16618,
29892,
848,
29892,
285,
3505,
29892,
269,
2934,
29990,
29892,
269,
2934,
29925,
1125,
13,
29937,
268,
1067,
27893,
353,
438,
6154,
18689,
29898,
695,
16618,
29892,
6897,
2605,
703,
22178,
1379,
29914,
18152,
1008,
284,
29889,
695,
5783,
13,
13,
29937,
268,
1067,
29933,
1137,
797,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29892,
2626,
29918,
15581,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16310,
29918,
1164,
16786,
29897,
13,
29937,
268,
1067,
29933,
1137,
3744,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29897,
13,
29937,
268,
1067,
16618,
29889,
3539,
7701,
29898,
695,
29933,
1137,
797,
29892,
1272,
29889,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
876,
13,
13,
29937,
268,
1067,
27893,
29889,
3389,
29968,
5851,
703,
3389,
29906,
29881,
29933,
1137,
613,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
1402,
8516,
29892,
695,
29933,
1137,
797,
29892,
695,
29933,
1137,
3744,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
1272,
29889,
12181,
29961,
29896,
11724,
9302,
29889,
524,
29941,
29906,
29898,
1272,
29889,
12181,
29961,
29900,
11724,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
29888,
3505,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
29990,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
29925,
876,
13,
13,
29937,
268,
736,
1067,
16618,
29889,
949,
7701,
29898,
695,
29933,
1137,
3744,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
13,
29937,
822,
13181,
1008,
284,
29909,
1388,
415,
29898,
695,
16618,
29892,
848,
29892,
23530,
29892,
285,
3505,
29892,
269,
2934,
29990,
29892,
4024,
1125,
13,
29937,
268,
1067,
27893,
353,
438,
6154,
18689,
29898,
695,
16618,
29892,
6425,
2605,
703,
22178,
1379,
29914,
18152,
1008,
284,
29909,
1388,
415,
29889,
695,
5783,
13,
13,
29937,
268,
1067,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
2314,
13,
29937,
268,
1067,
25518,
29903,
6073,
353,
1067,
16618,
29889,
3258,
2940,
29898,
29879,
6073,
29889,
12181,
29961,
1057,
29899,
29896,
2314,
13,
13,
29937,
268,
1067,
29933,
1137,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29897,
13,
29937,
268,
1067,
16618,
29889,
3539,
2940,
29898,
695,
25518,
29892,
1272,
29889,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
876,
13,
13,
29937,
268,
1067,
16618,
29889,
3539,
2940,
29898,
695,
25518,
29903,
6073,
29892,
29879,
6073,
29889,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
876,
13,
13,
29937,
268,
1067,
27893,
29889,
3389,
29968,
5851,
703,
3389,
29906,
29881,
613,
695,
25518,
29889,
12181,
29892,
8516,
29892,
695,
25518,
29892,
695,
25518,
29903,
6073,
29892,
695,
29933,
1137,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29896,
11724,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
29888,
3505,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
29990,
511,
9302,
29889,
7411,
29941,
29906,
29898,
17470,
876,
13,
13,
29937,
268,
736,
1067,
16618,
29889,
949,
7701,
29898,
695,
29933,
1137,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
13,
13,
29937,
822,
302,
29880,
6816,
550,
21741,
29898,
695,
16618,
29892,
848,
29892,
285,
3505,
29892,
289,
3505,
29892,
269,
2934,
1125,
13,
29937,
268,
1180,
3505,
353,
29871,
29896,
29953,
13,
13,
29937,
268,
1067,
27893,
353,
438,
6154,
18689,
29898,
695,
16618,
29892,
6897,
2605,
703,
22178,
1379,
29914,
12938,
1004,
550,
29889,
695,
4968,
6768,
29922,
3366,
29899,
29928,
383,
29903,
16328,
29881,
448,
29928,
350,
29903,
16328,
29881,
448,
29928,
402,
29903,
16328,
29881,
29908,
29995,
29898,
29888,
3505,
29892,
29890,
3505,
29892,
2029,
3505,
29897,
2314,
13,
13,
13,
29937,
268,
1067,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
2314,
13,
29937,
268,
1067,
29933,
1137,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29897,
13,
29937,
268,
1067,
16618,
29889,
3539,
2940,
29898,
695,
25518,
29892,
1272,
29889,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
876,
13,
13,
29937,
268,
1067,
27893,
29889,
3389,
29968,
5851,
703,
3389,
29906,
29881,
29918,
23498,
19386,
613,
695,
25518,
29889,
12181,
22657,
2029,
3505,
29892,
2029,
3505,
511,
695,
25518,
29892,
695,
29933,
1137,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29896,
11724,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
876,
13,
13,
29937,
268,
736,
1067,
16618,
29889,
949,
7701,
29898,
695,
29933,
1137,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
13,
1753,
302,
21457,
29898,
1272,
29892,
285,
3505,
29892,
289,
3505,
29892,
269,
2934,
29892,
2906,
353,
6213,
29892,
9580,
353,
6213,
1125,
13,
13,
1678,
565,
2906,
338,
6213,
29901,
13,
4706,
2906,
353,
10153,
8504,
17255,
23397,
29918,
4590,
1430,
6154,
29918,
2287,
19059,
1649,
13,
13,
1678,
565,
2906,
338,
6213,
29901,
13,
4706,
12020,
7865,
2392,
703,
1217,
4673,
6154,
11501,
1476,
856,
1159,
13,
13,
1678,
26688,
353,
848,
29889,
29881,
1853,
29889,
1853,
13,
1678,
270,
8768,
29918,
22178,
1379,
353,
426,
9302,
29889,
7411,
29941,
29906,
6160,
3389,
29906,
29881,
29918,
7411,
613,
13,
462,
4706,
7442,
29889,
13470,
29896,
29953,
6160,
3389,
29906,
29881,
29918,
12759,
9092,
13,
13,
1678,
565,
451,
26688,
297,
270,
8768,
29918,
22178,
1379,
29901,
13,
4706,
17927,
29889,
2704,
703,
1272,
1134,
1273,
29879,
451,
6969,
3447,
29892,
3113,
3588,
304,
6160,
29995,
29881,
1853,
29892,
1761,
29898,
29881,
8768,
29918,
22178,
1379,
29889,
8149,
22130,
13,
4706,
736,
13,
13,
13,
1678,
10153,
353,
2906,
29889,
3258,
2940,
29918,
4561,
29898,
1272,
29897,
13,
1678,
18392,
353,
2906,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29892,
29881,
1853,
353,
26688,
29897,
13,
1678,
2906,
29889,
3539,
2940,
29898,
2492,
29892,
1272,
29897,
13,
13,
13,
1678,
565,
9580,
338,
6213,
29901,
13,
4706,
9580,
353,
438,
6154,
18689,
29898,
3359,
29892,
6897,
2605,
703,
22178,
1379,
29914,
12938,
1004,
550,
29889,
695,
5783,
13,
13,
13,
1678,
9580,
29889,
3389,
29968,
5851,
29898,
29881,
8768,
29918,
22178,
1379,
29961,
29881,
1853,
1402,
2492,
29889,
12181,
29892,
8516,
29892,
2492,
29892,
9721,
29892,
13,
462,
268,
7442,
29889,
524,
29941,
29906,
29898,
2492,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
2492,
29889,
12181,
29961,
29896,
11724,
13,
462,
268,
7442,
29889,
524,
29941,
29906,
29898,
29888,
3505,
511,
7442,
29889,
524,
29941,
29906,
29898,
29890,
3505,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
8106,
10685,
580,
13,
13,
1678,
736,
2906,
29889,
949,
7701,
29898,
9721,
29892,
29881,
1853,
29922,
29881,
1853,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
13,
1753,
302,
21457,
29918,
11255,
29898,
1272,
29892,
9998,
29892,
9851,
29892,
3754,
29892,
3359,
353,
6213,
29892,
9580,
353,
6213,
1125,
13,
1678,
9995,
1454,
11462,
3233,
313,
392,
383,
29903,
29892,
9851,
353,
29871,
29906,
29892,
29941,
29897,
310,
269,
2934,
29918,
29900,
29892,
6755,
269,
2934,
353,
29871,
29896,
29889,
29945,
29930,
3754,
29918,
29900,
13,
1678,
9995,
13,
13,
1678,
565,
2906,
338,
6213,
29901,
13,
4706,
2906,
353,
10153,
8504,
17255,
23397,
29918,
4590,
1430,
6154,
29918,
2287,
19059,
1649,
13,
13,
1678,
565,
2906,
338,
6213,
29901,
13,
4706,
12020,
7865,
2392,
703,
1217,
4673,
6154,
11501,
1476,
856,
1159,
13,
13,
1678,
565,
9580,
338,
6213,
29901,
13,
4706,
9580,
353,
438,
6154,
18689,
29898,
3359,
29892,
6897,
2605,
703,
22178,
1379,
29914,
12938,
29885,
29918,
11255,
29889,
695,
4968,
6768,
543,
29899,
29928,
383,
29903,
16328,
29875,
448,
29928,
350,
29903,
16328,
29875,
29908,
29995,
29898,
9998,
29892,
9851,
876,
13,
13,
1678,
10153,
353,
2906,
29889,
3258,
2940,
29918,
4561,
29898,
1272,
29897,
13,
13,
1678,
1320,
25518,
353,
2906,
29889,
3258,
2940,
29918,
4561,
29898,
1272,
29897,
13,
13,
1678,
1320,
25518,
353,
2906,
29889,
3258,
2940,
29918,
4561,
29898,
1272,
29892,
2626,
29918,
15764,
353,
376,
16310,
29918,
16365,
1159,
13,
1678,
13128,
25518,
353,
2906,
29889,
3258,
2940,
29918,
4561,
29898,
1272,
29892,
2626,
29918,
15764,
353,
376,
16310,
29918,
16365,
1159,
13,
1678,
13128,
25518,
29906,
353,
2906,
29889,
3258,
2940,
29918,
4561,
29898,
1272,
29892,
2626,
29918,
15764,
353,
376,
16310,
29918,
16365,
1159,
13,
13,
1678,
1035,
29933,
1137,
353,
2906,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29892,
13,
462,
632,
2626,
29918,
15764,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16310,
29918,
16365,
29892,
13,
462,
632,
26688,
353,
7442,
29889,
7411,
29941,
29906,
29897,
13,
13,
1678,
7688,
29933,
1137,
353,
2906,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29892,
13,
462,
632,
2626,
29918,
15764,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16310,
29918,
16365,
29892,
13,
462,
632,
26688,
353,
7442,
29889,
7411,
29941,
29906,
29897,
13,
13,
13,
1678,
2906,
29889,
3539,
2940,
29898,
2492,
29892,
1272,
416,
13,
1678,
2906,
29889,
3539,
7701,
29898,
7915,
29933,
1137,
29892,
9302,
29889,
3298,
359,
29918,
4561,
29898,
1272,
29892,
29881,
1853,
29922,
9302,
29889,
7411,
29941,
29906,
2483,
13,
13,
1678,
363,
15414,
297,
3464,
29898,
9851,
29974,
29896,
1125,
13,
4706,
363,
13475,
297,
3464,
6278,
9851,
29892,
9851,
29974,
29896,
1125,
13,
18884,
9580,
29889,
3389,
29968,
5851,
703,
5721,
613,
2492,
29889,
12181,
29892,
8516,
29892,
2492,
29892,
7050,
25518,
29892,
9302,
29889,
524,
29941,
29906,
29898,
8235,
511,
9302,
29889,
524,
29941,
29906,
29898,
4518,
876,
13,
18884,
9580,
29889,
3389,
29968,
5851,
703,
535,
1555,
345,
613,
2492,
29889,
12181,
29892,
8516,
29892,
7050,
25518,
29892,
7050,
25518,
29906,
29892,
9302,
29889,
524,
29941,
29906,
29898,
29896,
876,
13,
18884,
9580,
29889,
3389,
29968,
5851,
703,
535,
1555,
345,
613,
2492,
29889,
12181,
29892,
8516,
29892,
7050,
25518,
29906,
29892,
5721,
25518,
29892,
9302,
29889,
524,
29941,
29906,
29898,
29906,
876,
13,
13,
18884,
9580,
29889,
3389,
29968,
5851,
703,
26017,
29575,
613,
2492,
29889,
12181,
29892,
8516,
29892,
2492,
29892,
5721,
25518,
29892,
5753,
29933,
1137,
29892,
7915,
29933,
1137,
29892,
13,
462,
1669,
7442,
29889,
524,
29941,
29906,
29898,
2492,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
2492,
29889,
12181,
29961,
29896,
11724,
13,
462,
1669,
7442,
29889,
524,
29941,
29906,
29898,
8235,
511,
9302,
29889,
524,
29941,
29906,
29898,
4518,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
876,
13,
13,
18884,
565,
738,
4197,
8235,
29892,
4518,
29962,
1125,
13,
462,
1678,
9580,
29889,
3389,
29968,
5851,
703,
26017,
8140,
375,
613,
2492,
29889,
12181,
29892,
8516,
29892,
2492,
29892,
5721,
25518,
29892,
5753,
29933,
1137,
29892,
7915,
29933,
1137,
29892,
13,
462,
1669,
7442,
29889,
524,
29941,
29906,
29898,
2492,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
2492,
29889,
12181,
29961,
29896,
11724,
13,
462,
1669,
7442,
29889,
524,
29941,
29906,
29898,
8235,
511,
9302,
29889,
524,
29941,
29906,
29898,
4518,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
876,
13,
13,
1678,
1035,
29871,
353,
2906,
29889,
949,
7701,
29898,
5753,
29933,
1137,
29892,
29881,
1853,
29922,
9302,
29889,
7411,
29941,
29906,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
1678,
18177,
29871,
353,
2906,
29889,
949,
7701,
29898,
7915,
29933,
1137,
29892,
29881,
1853,
29922,
9302,
29889,
7411,
29941,
29906,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
1678,
736,
1035,
29914,
705,
5861,
13,
13,
13,
1753,
1243,
29918,
12938,
29885,
7295,
13,
1678,
515,
10153,
8504,
1053,
1243,
29918,
8346,
29892,
22235,
7024,
16514,
13,
13,
1678,
848,
353,
1243,
29918,
8346,
29889,
29880,
2386,
580,
13,
1678,
848,
353,
29871,
29896,
29900,
29900,
5575,
1272,
29914,
9302,
29889,
314,
1165,
29898,
1272,
29897,
13,
1678,
343,
353,
848,
718,
7442,
29889,
8172,
29889,
8945,
29898,
29900,
29892,
29906,
29900,
29892,
1272,
29889,
12181,
29897,
13,
1678,
343,
353,
343,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
29897,
13,
13,
1678,
714,
353,
302,
21457,
29898,
29891,
29892,
29906,
29892,
29941,
29892,
29906,
29945,
1846,
13,
1678,
4365,
29879,
353,
7442,
29889,
1915,
3493,
29898,
29906,
29892,
29955,
29900,
29892,
29896,
29900,
29897,
13,
13,
1678,
714,
29879,
29871,
353,
518,
28667,
7024,
16514,
29898,
1272,
29892,
12938,
29885,
29898,
29891,
29892,
29906,
29892,
29941,
29892,
29879,
876,
363,
269,
297,
4365,
29879,
29962,
13,
1678,
1596,
703,
12938,
29885,
29901,
4365,
29918,
3317,
353,
1273,
29879,
29908,
1273,
18816,
29879,
29961,
9302,
29889,
1191,
3317,
29898,
17718,
29897,
2314,
13,
13,
1678,
736,
714,
29879,
13,
13,
13,
1753,
1243,
29918,
12938,
29885,
29918,
11255,
7295,
13,
1678,
515,
10153,
8504,
1053,
1243,
29918,
8346,
29892,
22235,
7024,
16514,
13,
13,
1678,
848,
353,
1243,
29918,
8346,
29889,
29880,
2386,
580,
13,
1678,
848,
353,
29871,
29896,
29900,
29900,
5575,
1272,
29914,
9302,
29889,
314,
1165,
29898,
1272,
29897,
13,
1678,
343,
353,
848,
718,
7442,
29889,
8172,
29889,
8945,
29898,
29900,
29892,
29906,
29900,
29892,
1272,
29889,
12181,
29897,
13,
1678,
343,
353,
343,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
29897,
13,
13,
1678,
714,
353,
302,
21457,
29918,
11255,
29898,
29891,
29892,
29906,
29892,
29941,
29892,
29945,
1846,
13,
1678,
4365,
29879,
353,
7442,
29889,
1915,
3493,
29898,
29941,
29892,
29955,
29900,
29892,
29941,
29900,
29897,
13,
1678,
714,
29879,
29871,
353,
518,
28667,
7024,
16514,
29898,
1272,
29892,
12938,
29885,
29918,
11255,
29898,
29891,
29892,
29906,
29892,
29941,
29892,
29879,
876,
363,
269,
297,
4365,
29879,
29962,
13,
13,
13,
1678,
1900,
29879,
353,
5159,
13,
1678,
363,
269,
29900,
297,
7442,
29889,
1915,
3493,
29898,
29906,
29892,
29906,
29900,
29892,
29896,
29900,
1125,
13,
4706,
343,
353,
848,
718,
7442,
29889,
8172,
29889,
8945,
29898,
29900,
29892,
29879,
29900,
29892,
1272,
29889,
12181,
29897,
13,
4706,
343,
353,
343,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
29897,
13,
4706,
1399,
29922,
9302,
29889,
1191,
3317,
4197,
28667,
7024,
16514,
29898,
1272,
29892,
12938,
29885,
29918,
11255,
29898,
29891,
29892,
29906,
29892,
29941,
29892,
29879,
876,
363,
269,
297,
4365,
29879,
2314,
13,
4706,
1596,
29898,
513,
29897,
13,
4706,
1900,
29879,
29889,
4397,
4197,
29879,
29900,
29892,
18816,
29879,
29961,
513,
24960,
13,
13,
1678,
1596,
703,
12938,
29885,
5172,
29901,
4365,
29918,
3317,
353,
1273,
29879,
29908,
1273,
18816,
29879,
29961,
9302,
29889,
1191,
3317,
29898,
17718,
29897,
2314,
13,
1678,
736,
1900,
29879,
13,
13,
13,
13,
13,
13,
29937,
822,
302,
29880,
6816,
550,
7701,
29898,
695,
16618,
29892,
848,
29892,
285,
3505,
29892,
289,
3505,
29892,
269,
2934,
1125,
13,
29937,
268,
1067,
27893,
353,
438,
6154,
18689,
29898,
695,
16618,
29892,
6897,
2605,
703,
22178,
1379,
29914,
12938,
1004,
550,
29889,
695,
5783,
13,
13,
29937,
268,
1067,
29933,
1137,
797,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29892,
2626,
29918,
15581,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16310,
29918,
1164,
16786,
29897,
13,
29937,
268,
1067,
29933,
1137,
3744,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29897,
13,
29937,
268,
1067,
16618,
29889,
3539,
7701,
29898,
695,
29933,
1137,
797,
29892,
1272,
29889,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
876,
13,
13,
13,
29937,
268,
1067,
27893,
29889,
3389,
29968,
5851,
703,
3389,
29906,
29881,
29933,
1137,
613,
29898,
1272,
29889,
2311,
29892,
29896,
511,
8516,
29892,
695,
29933,
1137,
797,
29892,
695,
29933,
1137,
3744,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
1272,
29889,
12181,
29961,
29896,
11724,
9302,
29889,
524,
29941,
29906,
29898,
1272,
29889,
12181,
29961,
29900,
11724,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
29888,
3505,
511,
7442,
29889,
524,
29941,
29906,
29898,
29890,
3505,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
876,
13,
13,
29937,
268,
736,
1067,
16618,
29889,
949,
7701,
29898,
695,
29933,
1137,
3744,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
13,
13,
29937,
822,
302,
29880,
6816,
550,
29925,
999,
3486,
29898,
695,
16618,
29892,
848,
29892,
285,
3505,
29892,
289,
3505,
29892,
269,
2934,
1125,
13,
29937,
268,
1067,
27893,
353,
438,
6154,
18689,
29898,
695,
16618,
29892,
6897,
2605,
703,
22178,
1379,
29914,
12938,
1004,
550,
29889,
695,
4968,
6768,
29922,
3366,
29899,
29928,
383,
29903,
16328,
29881,
448,
29928,
350,
29903,
16328,
29881,
29908,
29995,
29898,
29888,
3505,
29892,
29890,
3505,
29897,
2314,
13,
13,
29937,
268,
1067,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
2314,
13,
29937,
268,
1067,
29933,
1137,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29897,
13,
29937,
268,
1067,
16618,
29889,
3539,
2940,
29898,
695,
25518,
29892,
1272,
29889,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
876,
13,
13,
13,
29937,
268,
1067,
27893,
29889,
3389,
29968,
5851,
703,
3389,
29906,
29881,
29918,
25634,
3352,
613,
695,
25518,
29889,
12181,
29892,
8516,
29892,
695,
25518,
29892,
695,
29933,
1137,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29896,
11724,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
876,
13,
13,
29937,
268,
736,
1067,
16618,
29889,
949,
7701,
29898,
695,
29933,
1137,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
13,
29937,
822,
302,
29880,
6816,
550,
7653,
287,
29898,
695,
16618,
29892,
848,
29892,
285,
3505,
29892,
289,
3505,
29892,
269,
2934,
29892,
9580,
353,
6213,
1125,
13,
13,
29937,
268,
1067,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
2314,
13,
13,
29937,
268,
13261,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
1402,
2626,
29918,
15764,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16310,
29918,
16365,
29892,
8242,
29918,
2098,
353,
1067,
29889,
12719,
29918,
2098,
29889,
29934,
29954,
5688,
29892,
8242,
29918,
1853,
29922,
695,
29889,
12719,
29918,
1853,
29889,
29943,
3927,
1299,
29897,
13,
13,
29937,
268,
1067,
29933,
1137,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29897,
13,
13,
29937,
268,
565,
9580,
1275,
8516,
29901,
13,
29937,
308,
9580,
353,
438,
6154,
18689,
29898,
695,
16618,
29892,
6897,
2605,
703,
22178,
1379,
29914,
5041,
29918,
17460,
29889,
695,
5783,
13,
13,
29937,
268,
1067,
16618,
29889,
3539,
2940,
29898,
695,
25518,
29892,
1272,
29889,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
876,
13,
13,
13,
29937,
268,
9580,
29889,
3389,
29968,
5851,
703,
4836,
29946,
613,
695,
25518,
29889,
12181,
29892,
8516,
29892,
695,
25518,
29892,
5041,
25518,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29896,
11724,
9302,
29889,
524,
29941,
29906,
29898,
29888,
3505,
876,
13,
13,
13,
29937,
268,
9580,
29889,
3389,
29968,
5851,
703,
12938,
29885,
29906,
29881,
7653,
613,
695,
25518,
29889,
12181,
29892,
8516,
29892,
695,
25518,
29892,
5041,
25518,
29892,
695,
29933,
1137,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29896,
11724,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
29888,
3505,
511,
7442,
29889,
524,
29941,
29906,
29898,
29890,
3505,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
876,
13,
13,
29937,
268,
736,
1067,
16618,
29889,
949,
7701,
29898,
695,
29933,
1137,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
13,
29937,
822,
302,
29880,
6816,
550,
7653,
287,
29906,
29898,
695,
16618,
29892,
848,
29892,
285,
3505,
29892,
289,
3505,
29892,
269,
2934,
29892,
9580,
353,
6213,
1125,
13,
13,
29937,
268,
1067,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
2314,
13,
13,
29937,
268,
13261,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
1402,
2626,
29918,
15764,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16310,
29918,
16365,
29892,
8242,
29918,
2098,
353,
1067,
29889,
12719,
29918,
2098,
29889,
29934,
29954,
5688,
29892,
8242,
29918,
1853,
29922,
695,
29889,
12719,
29918,
1853,
29889,
29943,
3927,
1299,
29897,
13,
13,
29937,
268,
1067,
29933,
1137,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29897,
13,
13,
29937,
268,
565,
9580,
1275,
8516,
29901,
13,
29937,
308,
9580,
353,
438,
6154,
18689,
29898,
695,
16618,
29892,
6897,
2605,
703,
22178,
1379,
29914,
12938,
1004,
550,
29918,
4836,
287,
29889,
695,
5783,
13,
13,
29937,
268,
1067,
16618,
29889,
3539,
2940,
29898,
695,
25518,
29892,
1272,
29889,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
876,
13,
13,
29937,
268,
515,
931,
1053,
931,
13,
13,
29937,
268,
260,
353,
931,
580,
13,
13,
29937,
268,
9580,
29889,
3389,
29968,
5851,
703,
4836,
29946,
613,
695,
25518,
29889,
12181,
29892,
8516,
29892,
695,
25518,
29892,
5041,
25518,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29896,
11724,
9302,
29889,
524,
29941,
29906,
29898,
29888,
3505,
876,
13,
13,
13,
29937,
268,
9580,
29889,
3389,
29968,
5851,
703,
12938,
29885,
29906,
29881,
7653,
613,
695,
25518,
29889,
12181,
29892,
8516,
29892,
695,
25518,
29892,
5041,
25518,
29892,
695,
29933,
1137,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29896,
11724,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
29888,
3505,
511,
7442,
29889,
524,
29941,
29906,
29898,
29890,
3505,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
876,
13,
13,
29937,
268,
714,
29922,
1067,
16618,
29889,
949,
7701,
29898,
695,
29933,
1137,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
29937,
268,
1596,
931,
580,
29899,
29873,
29871,
1699,
7496,
29908,
13,
29937,
268,
736,
714,
13,
13,
13,
13,
29937,
822,
302,
29880,
6816,
550,
7653,
287,
29903,
6073,
29898,
695,
16618,
29892,
848,
29892,
23530,
29892,
285,
3505,
29892,
289,
3505,
29892,
269,
2934,
29892,
9580,
353,
6213,
1125,
13,
13,
29937,
268,
1067,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
2314,
13,
13,
29937,
268,
13261,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
1402,
2626,
29918,
15764,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16310,
29918,
16365,
29892,
8242,
29918,
2098,
353,
1067,
29889,
12719,
29918,
2098,
29889,
29934,
29954,
5688,
29892,
8242,
29918,
1853,
29922,
695,
29889,
12719,
29918,
1853,
29889,
29943,
3927,
1299,
29897,
13,
13,
29937,
268,
23530,
25518,
353,
1067,
16618,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
1402,
2626,
29918,
15764,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16310,
29918,
16365,
29892,
8242,
29918,
2098,
353,
1067,
29889,
12719,
29918,
2098,
29889,
29934,
29892,
8242,
29918,
1853,
29922,
695,
29889,
12719,
29918,
1853,
29889,
29943,
3927,
1299,
29897,
13,
13,
29937,
268,
1067,
29933,
1137,
353,
1067,
16618,
29889,
3258,
7701,
29898,
1272,
29889,
2311,
29897,
13,
13,
13,
29937,
268,
565,
9580,
1275,
8516,
29901,
13,
29937,
308,
9580,
353,
438,
6154,
18689,
29898,
695,
16618,
29892,
6897,
2605,
703,
22178,
1379,
29914,
5041,
29918,
17460,
29889,
695,
5783,
13,
13,
29937,
268,
1067,
16618,
29889,
3539,
2940,
29898,
695,
25518,
29892,
1272,
29889,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
876,
13,
13,
29937,
268,
1067,
16618,
29889,
3539,
2940,
29898,
29879,
6073,
25518,
29892,
29879,
6073,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
876,
13,
13,
13,
29937,
268,
9580,
29889,
3389,
29968,
5851,
703,
4836,
29946,
613,
695,
25518,
29889,
12181,
29892,
8516,
29892,
695,
25518,
29892,
5041,
25518,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29896,
11724,
9302,
29889,
524,
29941,
29906,
29898,
29888,
3505,
876,
13,
13,
13,
29937,
268,
9580,
29889,
3389,
29968,
5851,
703,
12938,
29885,
29906,
29881,
7653,
29903,
6073,
613,
695,
25518,
29889,
12181,
29892,
8516,
29892,
695,
25518,
29892,
5041,
25518,
29892,
29879,
6073,
25518,
29892,
695,
29933,
1137,
29892,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29900,
11724,
9302,
29889,
524,
29941,
29906,
29898,
695,
25518,
29889,
12181,
29961,
29896,
11724,
13,
29937,
462,
418,
7442,
29889,
524,
29941,
29906,
29898,
29888,
3505,
511,
7442,
29889,
524,
29941,
29906,
29898,
29890,
3505,
511,
9302,
29889,
7411,
29941,
29906,
29898,
3754,
876,
13,
13,
29937,
268,
736,
1067,
16618,
29889,
949,
7701,
29898,
695,
29933,
1137,
467,
690,
14443,
29898,
1272,
29889,
12181,
29897,
13,
13,
13,
13,
13,
1753,
289,
29885,
29941,
29881,
29898,
1272,
29892,
3754,
1125,
13,
1678,
515,
4560,
2272,
29889,
29885,
10669,
1053,
527,
7620,
29892,
527,
949,
13,
13,
1678,
396,
2099,
1469,
353,
7442,
29889,
12676,
29898,
1272,
29897,
13,
1678,
285,
1170,
353,
376,
29900,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29918,
29911,
3580,
29889,
2732,
29908,
13,
1678,
527,
7620,
29898,
29888,
1170,
29892,
1272,
29897,
13,
1678,
1014,
5014,
29889,
4804,
4197,
359,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
511,
13,
462,
539,
376,
29883,
4419,
29918,
401,
29914,
5838,
29941,
29881,
29914,
5838,
29941,
29881,
4968,
29888,
1170,
29892,
710,
29898,
3754,
511,
29888,
1170,
1402,
27591,
29922,
1491,
5014,
29889,
2227,
4162,
29897,
13,
1678,
714,
353,
527,
949,
29898,
29888,
1170,
29897,
13,
1678,
736,
714,
13,
1678,
396,
736,
714,
16395,
29896,
5575,
12676,
1469,
29914,
9302,
29889,
12676,
29898,
449,
876,
13,
13,
13,
1753,
270,
312,
29918,
1145,
29877,
5921,
29898,
1272,
29892,
3754,
1125,
13,
1678,
515,
4560,
2272,
29889,
29885,
10669,
1053,
527,
7620,
29892,
527,
949,
13,
13,
1678,
2099,
1469,
353,
7442,
29889,
12676,
29898,
1272,
29897,
13,
1678,
285,
1170,
353,
376,
29900,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29918,
29911,
3580,
29889,
2732,
29908,
13,
1678,
527,
7620,
29898,
29888,
1170,
29892,
1272,
29897,
13,
1678,
1014,
5014,
29889,
4804,
4197,
359,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
511,
13,
462,
539,
376,
29883,
4419,
29918,
401,
29914,
29881,
312,
29914,
17482,
29918,
29928,
1783,
1145,
29877,
5921,
4968,
29888,
1170,
29892,
710,
29898,
3754,
511,
29888,
1170,
2314,
13,
1678,
714,
353,
527,
949,
29898,
29888,
1170,
29897,
13,
1678,
736,
714,
16395,
29896,
5575,
12676,
1469,
29914,
9302,
29889,
12676,
29898,
449,
876,
13,
13,
13,
13,
13,
1753,
4513,
3373,
29898,
29876,
29892,
29895,
1125,
13,
1678,
396,
29878,
3885,
304,
278,
2446,
1353,
8572,
1821,
491,
413,
13,
1678,
736,
7442,
29889,
524,
29898,
9302,
29889,
27696,
29898,
29896,
5575,
29876,
29914,
29895,
11877,
29895,
29897,
13,
13,
1753,
4513,
6767,
29898,
29876,
29892,
29895,
1125,
13,
1678,
396,
29878,
3885,
304,
278,
2446,
1353,
8572,
1821,
491,
413,
13,
1678,
736,
7442,
29889,
524,
29898,
9302,
29889,
14939,
29898,
29896,
5575,
29876,
29914,
29895,
11877,
29895,
29897,
13,
13,
13,
1753,
270,
312,
29918,
29947,
29916,
29947,
29898,
1272,
29892,
3754,
29892,
3359,
353,
6213,
29892,
9580,
29922,
8516,
1125,
13,
13,
1678,
565,
2906,
338,
6213,
29901,
13,
4706,
2906,
353,
10153,
8504,
17255,
23397,
29918,
4590,
1430,
6154,
29918,
2287,
19059,
1649,
13,
13,
1678,
565,
2906,
338,
6213,
29901,
13,
4706,
12020,
7865,
2392,
703,
1217,
4673,
6154,
11501,
1476,
856,
1159,
13,
13,
1678,
565,
451,
9580,
29901,
13,
4706,
9580,
353,
438,
6154,
18689,
29898,
3359,
29892,
6897,
2605,
703,
22178,
1379,
29914,
29881,
312,
29918,
29947,
29916,
29947,
29889,
695,
5783,
13,
13,
13,
1678,
4765,
353,
2906,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
1402,
12719,
29918,
1853,
353,
1067,
29889,
12719,
29918,
1853,
29889,
29943,
3927,
1299,
29892,
6954,
29918,
15764,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16310,
29918,
1164,
16786,
29897,
13,
1678,
1035,
353,
2906,
29889,
3258,
7701,
29898,
14486,
3373,
29898,
1272,
29889,
12181,
29961,
29900,
1402,
29947,
11877,
14486,
3373,
29898,
1272,
29889,
12181,
29961,
29896,
1402,
29947,
511,
29881,
1853,
29922,
9302,
29889,
7411,
29941,
29906,
29897,
13,
1678,
29743,
353,
2906,
29889,
3258,
2940,
29898,
1272,
29889,
12181,
29961,
1057,
29899,
29896,
1402,
12719,
29918,
1853,
353,
1067,
29889,
12719,
29918,
1853,
29889,
29943,
3927,
1299,
29892,
6954,
29918,
15764,
353,
1067,
29889,
6954,
29918,
15764,
29889,
16365,
29918,
1164,
16786,
29897,
13,
13,
1678,
2906,
29889,
3539,
2940,
29898,
4351,
29892,
1272,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
876,
13,
1678,
8717,
2426,
353,
4513,
6767,
29898,
22992,
29889,
2103,
29892,
29947,
29897,
13,
13,
1678,
363,
432,
297,
3464,
29898,
29947,
1125,
13,
9651,
363,
474,
297,
3464,
29898,
29947,
1125,
13,
18884,
9580,
29889,
3389,
29968,
5851,
703,
29881,
312,
29918,
1145,
29877,
895,
29918,
29947,
29916,
29947,
29918,
29878,
613,
29898,
14486,
6767,
29898,
4351,
29889,
2103,
29899,
29875,
29892,
29947,
511,
14486,
6767,
29898,
4351,
29889,
3545,
29899,
29926,
29892,
29947,
8243,
29898,
29947,
29892,
29947,
511,
13,
462,
1669,
4765,
29892,
5753,
29892,
7442,
29889,
7411,
29941,
29906,
29898,
3754,
511,
9302,
29889,
524,
29941,
29906,
29898,
29875,
511,
9302,
29889,
524,
29941,
29906,
29898,
29926,
511,
9302,
29889,
524,
29941,
29906,
29898,
579,
2426,
511,
9302,
29889,
524,
29941,
29906,
29898,
29875,
1360,
29900,
322,
432,
1360,
29900,
876,
13,
13,
1678,
9580,
29889,
3389,
29968,
5851,
703,
29881,
312,
29918,
1145,
29877,
895,
29918,
8945,
895,
29918,
29878,
613,
29898,
14486,
6767,
29898,
4351,
29889,
2103,
29892,
29947,
511,
14486,
6767,
29898,
4351,
29889,
3545,
29892,
29947,
8243,
29898,
29947,
29892,
29947,
511,
13,
462,
1669,
1035,
29892,
29743,
29892,
9302,
29889,
524,
29941,
29906,
29898,
579,
2426,
876,
13,
13,
13,
1678,
714,
353,
2906,
29889,
949,
7701,
29898,
5753,
29892,
29881,
1853,
29922,
9302,
29889,
7411,
29941,
29906,
29897,
13,
1678,
736,
7442,
29889,
27525,
398,
29898,
29900,
29892,
3359,
29889,
949,
2940,
29898,
22992,
29892,
29881,
1853,
29922,
9302,
29889,
7411,
29941,
29906,
8106,
579,
668,
29898,
1272,
29889,
29881,
1853,
29897,
13,
13,
1753,
1243,
29918,
29881,
312,
7295,
13,
1678,
515,
10153,
8504,
1053,
1243,
29918,
8346,
29892,
22235,
7024,
16514,
13,
13,
1678,
848,
353,
1243,
29918,
8346,
29889,
29880,
2386,
580,
13,
1678,
848,
353,
29871,
29896,
29900,
29900,
5575,
1272,
29914,
9302,
29889,
314,
1165,
29898,
1272,
29897,
13,
1678,
343,
353,
848,
718,
7442,
29889,
8172,
29889,
8945,
29898,
29900,
29892,
29906,
29900,
29892,
1272,
29889,
12181,
29897,
13,
1678,
343,
353,
343,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
29897,
13,
13,
1678,
714,
353,
270,
312,
29918,
29947,
29916,
29947,
29898,
29891,
29892,
29953,
29900,
29897,
13,
1678,
714,
29879,
29871,
353,
518,
28667,
7024,
16514,
29898,
1272,
29892,
29881,
312,
29918,
29947,
29916,
29947,
29898,
29891,
29892,
29879,
876,
363,
269,
297,
7442,
29889,
1915,
3493,
29898,
29896,
29900,
29892,
29953,
29900,
29892,
29906,
29900,
4638,
13,
1678,
736,
714,
13,
13,
13,
1753,
1243,
29918,
4572,
7295,
13,
1678,
515,
2090,
312,
8789,
1053,
7687,
13,
1678,
1053,
931,
13,
13,
1678,
848,
353,
7442,
29889,
8172,
29889,
29590,
29898,
29900,
29892,
29896,
17094,
29906,
1068,
29947,
29892,
29906,
1068,
29947,
14664,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
29897,
13,
13,
1678,
1596,
703,
21094,
373,
1967,
8267,
584,
6571,
320,
29876,
29905,
29876,
1642,
4830,
29898,
1272,
29889,
12181,
876,
13,
13,
1678,
18920,
353,
426,
13,
4706,
376,
18152,
1008,
284,
1115,
2892,
29901,
18152,
1008,
284,
29898,
1272,
29892,
29941,
29892,
29896,
29900,
29892,
29896,
29900,
511,
13,
4706,
376,
12938,
6816,
550,
1115,
2892,
29901,
12938,
29885,
29918,
11255,
29898,
1272,
29892,
29941,
29892,
29955,
29892,
29896,
29900,
511,
13,
4706,
396,
376,
12938,
6816,
550,
317,
1115,
2892,
29901,
12938,
6816,
550,
21741,
29898,
695,
16618,
29892,
1272,
29892,
29941,
29892,
29955,
29892,
29896,
29900,
511,
13,
4706,
396,
376,
12938,
6816,
550,
349,
1115,
2892,
29901,
12938,
6816,
550,
7653,
287,
29898,
695,
16618,
29892,
1272,
29892,
29941,
29892,
29955,
29892,
29896,
29900,
511,
13,
4706,
376,
5838,
29941,
29881,
1678,
29242,
2892,
29901,
5838,
29941,
29881,
29898,
1272,
29892,
29896,
29900,
511,
13,
4706,
376,
29881,
312,
1678,
29242,
2892,
29901,
29881,
312,
29918,
1145,
29877,
5921,
29898,
1272,
29892,
29896,
29900,
511,
13,
4706,
376,
29881,
312,
29918,
29947,
29916,
29947,
29242,
2892,
29901,
29881,
312,
29918,
29947,
29916,
29947,
29898,
1272,
29892,
29896,
29900,
511,
13,
13,
1678,
396,
376,
12938,
6816,
550,
758,
9155,
287,
1115,
2892,
29901,
12938,
6816,
550,
29925,
999,
3486,
29898,
695,
16618,
29892,
1272,
29892,
29941,
29892,
29945,
29892,
29896,
29900,
511,
13,
3986,
396,
29908,
12938,
6816,
550,
1243,
1115,
2892,
29901,
12938,
6816,
550,
3057,
29898,
695,
16618,
29892,
1272,
29892,
29941,
29892,
29945,
29892,
29896,
29900,
511,
13,
3986,
500,
13,
13,
1678,
260,
353,
931,
29889,
2230,
580,
13,
1678,
363,
285,
297,
18920,
29889,
8149,
29901,
13,
4706,
18920,
29961,
29888,
29962,
580,
13,
4706,
1596,
11702,
29879,
320,
29873,
29901,
320,
29873,
18695,
29906,
29888,
269,
29908,
29995,
29898,
29888,
29892,
2230,
29889,
2230,
580,
29899,
29873,
876,
13,
4706,
260,
353,
931,
29889,
2230,
580,
13,
13,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
1678,
1243,
29918,
4572,
580,
13,
13,
13,
1678,
396,
714,
29896,
29871,
353,
1243,
29918,
18152,
1008,
284,
580,
13,
13,
1678,
396,
714,
29871,
353,
1243,
29918,
12938,
29885,
29918,
11255,
580,
13,
13,
1678,
396,
714,
29941,
29871,
353,
1243,
29918,
12938,
29885,
580,
13,
13,
1678,
396,
714,
29946,
29871,
353,
1243,
29918,
29881,
312,
580,
13,
13,
13,
13,
1678,
396,
1678,
1243,
29918,
4572,
580,
13,
13,
1678,
396,
515,
1706,
326,
12177,
1053,
1243,
29918,
8346,
13,
13,
1678,
396,
848,
29900,
353,
1243,
29918,
8346,
29889,
29880,
2386,
580,
13,
13,
1678,
396,
343,
353,
7442,
29889,
27525,
398,
29898,
29900,
29892,
29896,
5575,
1272,
29900,
29974,
9302,
29889,
8172,
29889,
8945,
29898,
29900,
29892,
29906,
29900,
29892,
1272,
29900,
29889,
12181,
8106,
579,
668,
29898,
9302,
29889,
13470,
29896,
29953,
29897,
13,
13,
13,
1678,
396,
2906,
353,
438,
6154,
11501,
580,
13,
13,
1678,
396,
714,
353,
302,
29880,
6816,
550,
7653,
287,
29906,
29898,
3359,
29892,
29891,
29892,
29941,
29892,
29946,
29892,
29941,
29945,
29897,
13,
2
] |
tests/strategies/base.py | lycantropos/clipping | 4 | 47439 | from fractions import Fraction
from functools import partial
from hypothesis import strategies
MAX_NUMBER = 10 ** 10
MIN_NUMBER = -MAX_NUMBER
coordinates_strategies_factories = {
float: partial(strategies.floats,
allow_nan=False,
allow_infinity=False),
Fraction: partial(strategies.fractions,
max_denominator=MAX_NUMBER),
int: strategies.integers,
}
coordinates_strategies = strategies.sampled_from(
[factory(MIN_NUMBER, MAX_NUMBER)
for factory in coordinates_strategies_factories.values()])
| [
1,
515,
5227,
1953,
1053,
7347,
428,
13,
3166,
2090,
312,
8789,
1053,
7687,
13,
13,
3166,
20051,
1053,
16650,
583,
13,
13,
12648,
29918,
23207,
353,
29871,
29896,
29900,
3579,
29871,
29896,
29900,
13,
16173,
29918,
23207,
353,
448,
12648,
29918,
23207,
13,
1111,
24266,
29918,
710,
1845,
583,
29918,
17028,
3842,
353,
426,
13,
1678,
5785,
29901,
7687,
29898,
710,
1845,
583,
29889,
29888,
417,
1446,
29892,
13,
462,
259,
2758,
29918,
13707,
29922,
8824,
29892,
13,
462,
259,
2758,
29918,
262,
4951,
537,
29922,
8824,
511,
13,
1678,
7347,
428,
29901,
7687,
29898,
710,
1845,
583,
29889,
20910,
1953,
29892,
13,
462,
418,
4236,
29918,
1145,
5817,
1061,
29922,
12648,
29918,
23207,
511,
13,
1678,
938,
29901,
16650,
583,
29889,
6693,
5743,
29892,
13,
29913,
13,
1111,
24266,
29918,
710,
1845,
583,
353,
16650,
583,
29889,
11249,
29881,
29918,
3166,
29898,
13,
4706,
518,
14399,
29898,
16173,
29918,
23207,
29892,
18134,
29918,
23207,
29897,
13,
308,
363,
12529,
297,
10350,
29918,
710,
1845,
583,
29918,
17028,
3842,
29889,
5975,
580,
2314,
13,
2
] |
speech_to_text_azure.py | jaykasundra2/Speech_To_Text | 0 | 180496 | # Convert the differnt audio formats into .wav format
import subprocess, os
os.chdir(r'D:\STT\src')
# audio file formats are converted using ffmpeg tool
# set the path where the executable (.exe) file is located
# download ffmpeg build from https://ffmpeg.zeranoe.com/builds/ and place it in your project folder
# ffmpeg source code is available at https://www.ffmpeg.org/download.html
FFMPEG_PATH = r'D:\STT\ffmpeg\bin\ffmpeg'
import glob
# Below is the folder structure for audio files. Multiple speakers each having individual folder of his/her recordings
# recordings
# - speaker 1
# - speaker 2
# - ...
# set the path where audio files are located
folder_path = r'..\data\recordings'
for speaker_folder in glob.glob(folder_path + "/*"):
speaker = speaker_folder.split("\\")[-1]
print(speaker)
for file in glob.glob(speaker_folder + "/*"):
file_name = file.split("\\")[-1].split(".")[0]
# output file name
output_file_name = folder_path + '\\' + speaker + '_' + file_name + '.wav'
print(output_file_name)
# ffmpeg command to convert the audio file format
command = [FFMPEG_PATH, '-i', file,output_file_name]
subprocess.call(command)
################### All files converted to .wav fomrat #########################
################### Generate transcript from this audio files ##################
import time
import azure.cognitiveservices.speech as speechsdk
# configure API keys and service region
speech_key, service_region = "53f0b034226a41c18e8ab5639604b74f", "centralindia"
# configure speechadk object
speech_config = speechsdk.SpeechConfig(subscription=speech_key, region=service_region)
# create an empty output
output = ""
def combine_text(evt):
""" this function will combine the transcript that is generated by multiple utterances/sentences
from a audio file"""
global output
output = output + evt.result.text
print(evt.result.text)
def speech_recognize_continuous_from_file():
"""performs continuous speech recognition with input from an audio file"""
done = False
def stop_cb(evt):
"""callback that stops continuous recognition upon receiving an event `evt`"""
speech_recognizer.stop_continuous_recognition()
nonlocal done
done = True
speech_recognizer.recognized.connect(lambda evt: combine_text(evt))
speech_recognizer.session_stopped.connect(stop_cb)
speech_recognizer.canceled.connect(stop_cb)
# Start continuous speech recognition
speech_recognizer.start_continuous_recognition()
while not done:
time.sleep(.5)
# get a list of files that have the extension wav
filelist = filter(lambda f: f.split('.')[-1] in ['wav'], os.listdir(folder_path))
filelist = sorted(filelist)
# generate transcript for each file
for file in filelist:
audio_config = speechsdk.audio.AudioConfig(filename=folder_path+"\\"+file)
speech_recognizer = speechsdk.SpeechRecognizer(speech_config=speech_config, audio_config=audio_config)
speech_recognize_continuous_from_file()
# save the transcript to a text file
f= open(r'..\data\recordings\\'+file.split(".")[0] +".txt","w+")
f.write(output)
f.close()
# reset the output to blank for next file
output = ""
| [
1,
396,
14806,
278,
1163,
593,
10348,
21971,
964,
869,
29893,
485,
3402,
29871,
13,
5215,
1014,
5014,
29892,
2897,
13,
359,
29889,
305,
3972,
29898,
29878,
29915,
29928,
3583,
1254,
29911,
29905,
4351,
1495,
29871,
13,
13,
29937,
10348,
934,
21971,
526,
11543,
773,
14336,
20856,
5780,
13,
29937,
731,
278,
2224,
988,
278,
16813,
14544,
8097,
29897,
934,
338,
5982,
13,
29937,
5142,
14336,
20856,
2048,
515,
2045,
597,
600,
20856,
29889,
3298,
1562,
29872,
29889,
510,
29914,
4282,
29879,
29914,
322,
2058,
372,
297,
596,
2060,
4138,
13,
29937,
14336,
20856,
2752,
775,
338,
3625,
472,
2045,
597,
1636,
29889,
600,
20856,
29889,
990,
29914,
10382,
29889,
1420,
13,
4198,
3580,
11787,
29918,
10145,
353,
364,
29915,
29928,
3583,
1254,
29911,
29905,
600,
20856,
29905,
2109,
29905,
600,
20856,
29915,
13,
13,
5215,
13149,
13,
13,
29937,
13866,
338,
278,
4138,
3829,
363,
10348,
2066,
29889,
26905,
7726,
414,
1269,
2534,
5375,
4138,
310,
670,
29914,
2276,
2407,
886,
13,
29937,
2407,
886,
13,
29937,
259,
448,
25657,
29871,
29896,
13,
29937,
259,
448,
25657,
29871,
29906,
13,
29937,
259,
448,
2023,
13,
13,
29937,
731,
278,
2224,
988,
10348,
2066,
526,
5982,
13,
12083,
29918,
2084,
353,
364,
29915,
636,
29905,
1272,
29905,
11651,
886,
29915,
13,
1454,
25657,
29918,
12083,
297,
13149,
29889,
23705,
29898,
12083,
29918,
2084,
718,
376,
5515,
29908,
1125,
13,
1678,
25657,
353,
25657,
29918,
12083,
29889,
5451,
703,
1966,
1159,
14352,
29896,
29962,
13,
1678,
1596,
29898,
5965,
5790,
29897,
13,
1678,
363,
934,
297,
13149,
29889,
23705,
29898,
5965,
5790,
29918,
12083,
718,
376,
5515,
29908,
1125,
308,
13,
4706,
934,
29918,
978,
353,
934,
29889,
5451,
703,
1966,
1159,
14352,
29896,
1822,
5451,
17350,
1159,
29961,
29900,
29962,
308,
13,
4706,
396,
1962,
934,
1024,
13,
4706,
1962,
29918,
1445,
29918,
978,
353,
4138,
29918,
2084,
718,
525,
1966,
29915,
718,
25657,
718,
22868,
29915,
718,
934,
29918,
978,
718,
15300,
29893,
485,
29915,
462,
13,
4706,
1596,
29898,
4905,
29918,
1445,
29918,
978,
29897,
308,
13,
4706,
396,
14336,
20856,
1899,
304,
3588,
278,
10348,
934,
3402,
13,
4706,
1899,
353,
518,
4198,
3580,
11787,
29918,
10145,
29892,
17411,
29875,
742,
934,
29892,
4905,
29918,
1445,
29918,
978,
29962,
13,
4706,
1014,
5014,
29889,
4804,
29898,
6519,
29897,
13,
308,
13,
13383,
2277,
29937,
2178,
2066,
11543,
304,
869,
29893,
485,
285,
290,
3605,
835,
13383,
4136,
2277,
13,
13,
13383,
2277,
29937,
3251,
403,
1301,
924,
515,
445,
10348,
2066,
835,
7346,
4136,
2277,
29937,
13,
5215,
931,
13,
5215,
15699,
29889,
29883,
3811,
277,
3145,
6972,
1575,
29889,
5965,
5309,
408,
12032,
15348,
13,
13,
29937,
10822,
3450,
6611,
322,
2669,
5120,
13,
5965,
5309,
29918,
1989,
29892,
2669,
29918,
12803,
353,
376,
29945,
29941,
29888,
29900,
29890,
29900,
29941,
29946,
29906,
29906,
29953,
29874,
29946,
29896,
29883,
29896,
29947,
29872,
29947,
370,
29945,
29953,
29941,
29929,
29953,
29900,
29946,
29890,
29955,
29946,
29888,
613,
376,
25171,
513,
423,
29908,
13,
29937,
10822,
12032,
328,
29895,
1203,
13,
5965,
5309,
29918,
2917,
353,
12032,
15348,
29889,
10649,
5309,
3991,
29898,
1491,
22371,
29922,
5965,
5309,
29918,
1989,
29892,
5120,
29922,
5509,
29918,
12803,
29897,
13,
13,
29937,
1653,
385,
4069,
1962,
29871,
13,
4905,
353,
5124,
13,
13,
1753,
14405,
29918,
726,
29898,
5750,
29873,
1125,
4706,
13,
1678,
9995,
445,
740,
674,
14405,
278,
1301,
924,
393,
338,
5759,
491,
2999,
14401,
2925,
29914,
18616,
2063,
29871,
13,
1678,
515,
263,
10348,
934,
15945,
29908,
13,
1678,
5534,
1962,
13,
1678,
1962,
353,
1962,
718,
3415,
29873,
29889,
2914,
29889,
726,
13,
1678,
1596,
29898,
5750,
29873,
29889,
2914,
29889,
726,
29897,
13,
13,
1753,
12032,
29918,
29423,
675,
29918,
20621,
681,
29918,
3166,
29918,
1445,
7295,
13,
1678,
9995,
546,
9514,
9126,
12032,
19679,
411,
1881,
515,
385,
10348,
934,
15945,
29908,
13,
1678,
2309,
353,
7700,
13,
13,
1678,
822,
5040,
29918,
10702,
29898,
5750,
29873,
1125,
13,
4706,
9995,
14035,
393,
17726,
9126,
19679,
2501,
13442,
385,
1741,
421,
5750,
29873,
29952,
15945,
29908,
308,
13,
4706,
12032,
29918,
29423,
3950,
29889,
9847,
29918,
20621,
681,
29918,
29423,
654,
580,
13,
4706,
1661,
2997,
2309,
13,
4706,
2309,
353,
5852,
13,
13,
1678,
12032,
29918,
29423,
3950,
29889,
29423,
1891,
29889,
6915,
29898,
2892,
3415,
29873,
29901,
14405,
29918,
726,
29898,
5750,
29873,
876,
268,
13,
1678,
12032,
29918,
29423,
3950,
29889,
7924,
29918,
7864,
2986,
29889,
6915,
29898,
9847,
29918,
10702,
29897,
13,
1678,
12032,
29918,
29423,
3950,
29889,
29883,
749,
839,
29889,
6915,
29898,
9847,
29918,
10702,
29897,
13,
1678,
396,
7370,
9126,
12032,
19679,
13,
1678,
12032,
29918,
29423,
3950,
29889,
2962,
29918,
20621,
681,
29918,
29423,
654,
580,
13,
1678,
1550,
451,
2309,
29901,
13,
4706,
931,
29889,
17059,
11891,
29945,
29897,
13,
13,
29937,
679,
263,
1051,
310,
2066,
393,
505,
278,
6081,
281,
485,
13,
1445,
1761,
353,
4175,
29898,
2892,
285,
29901,
285,
29889,
5451,
12839,
1495,
14352,
29896,
29962,
297,
6024,
29893,
485,
7464,
2897,
29889,
1761,
3972,
29898,
12083,
29918,
2084,
876,
13,
1445,
1761,
353,
12705,
29898,
1445,
1761,
29897,
268,
13,
29937,
5706,
1301,
924,
363,
1269,
934,
13,
1454,
934,
297,
934,
1761,
29901,
13,
1678,
10348,
29918,
2917,
353,
12032,
15348,
29889,
18494,
29889,
17111,
3991,
29898,
9507,
29922,
12083,
29918,
2084,
13578,
1966,
17969,
1445,
29897,
268,
13,
1678,
12032,
29918,
29423,
3950,
353,
12032,
15348,
29889,
10649,
5309,
27475,
29898,
5965,
5309,
29918,
2917,
29922,
5965,
5309,
29918,
2917,
29892,
10348,
29918,
2917,
29922,
18494,
29918,
2917,
29897,
13,
1678,
12032,
29918,
29423,
675,
29918,
20621,
681,
29918,
3166,
29918,
1445,
580,
13,
1678,
396,
4078,
278,
1301,
924,
304,
263,
1426,
934,
13,
1678,
285,
29922,
1722,
29898,
29878,
29915,
636,
29905,
1272,
29905,
11651,
886,
1966,
18717,
1445,
29889,
5451,
17350,
1159,
29961,
29900,
29962,
718,
1642,
3945,
3284,
29893,
29974,
1159,
13,
1678,
285,
29889,
3539,
29898,
4905,
29897,
13,
1678,
285,
29889,
5358,
580,
29871,
13,
1678,
396,
10092,
278,
1962,
304,
9654,
363,
2446,
934,
13,
1678,
1962,
353,
5124,
13,
2
] |
shop/admin.py | Zadigo/mycommerce | 0 | 162772 | from django.contrib import admin
from jsonschema import ValidationError
from shop.models import (Image, Like, Product, Video,
Wishlist)
import random
from shop.utils import create_product_slug
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
list_display = ['name', 'color', 'category', 'unit_price', 'active']
filter_horizontal = ['images']
list_filter = ['active']
date_hiearchy = 'created_on'
search_fields = ['name', 'slug']
fieldsets = [
['General', {'fields': ['name', 'sku']}],
['Variant', {'fields': ['color', 'category']}],
['Media', {'fields': ['images', 'video']}],
['Pricing', {'fields': ['unit_price', 'sale_value', 'sale_price', 'on_sale']}],
['Other', {'fields': ['display_new', 'active', 'slug']}]
]
actions = ['activate', 'deactivate', 'download_csv', 'copy_products', 'create_default_sizes']
def activate(self, request, queryset):
queryset.update(active=True)
def deactivate(self, request, queryset):
queryset.update(active=False)
def download_csv(self, request, queryset):
queryset = None
def copy_products(self, request, queryset):
new_products = []
for product in queryset:
new_name = f"{product.name}{random.randrange(1, 999)}"
slug = create_product_slug(new_name, product.color)
new_products.append(Product(name=new_name, color=product.color, category=product.category, unit_price=product.unit_price, slug=slug))
Product.objects.bulk_create(new_products)
def create_default_sizes(self, request, queryset):
"""For selected products, create three basic
sizes XS, S and M which are generally the
average size for clothes"""
sizes = ['XS', 'S', 'M']
for product in queryset:
for size in sizes:
try:
product.size_set.create(product=product, name=size, availability=False)
except ValidationError:
# If the size already exists for a given
# product, just fail silently
pass
self.message_user(request, f'Created default sizes for {len(queryset)} products')
@admin.register(Image)
class ImageAdmin(admin.ModelAdmin):
list_display = ['name', 'original', 'created_on', 'is_main_image']
date_hiearchy = 'created_on'
search_fields = ['name', 'original']
list_filter = ['is_main_image']
@admin.register(Video)
class VideoAdmin(admin.ModelAdmin):
list_display = ['name', 'content']
search_fields = ['name']
# @admin.register(AdditionalVariant)
# class AdditionalVariantAdmin(admin.ModelAdmin):
# list_display = ['reference', 'in_stock', 'active']
# list_filter = ['active', 'in_stock']
@admin.register(Wishlist)
class WishlistAdmin(admin.ModelAdmin):
list_display = ['user', 'name', 'created_on']
date_hiearchy = 'created_on'
@admin.register(Like)
class LikeAdmin(admin.ModelAdmin):
list_display = ['user', 'created_on']
search_fields = ['products__name']
date_hiearchy = 'created_on'
| [
1,
515,
9557,
29889,
21570,
1053,
4113,
13,
3166,
6965,
787,
305,
2603,
1053,
15758,
362,
2392,
13,
13,
3166,
18296,
29889,
9794,
1053,
313,
2940,
29892,
8502,
29892,
10969,
29892,
13987,
29892,
13,
462,
308,
399,
728,
1761,
29897,
13,
5215,
4036,
13,
13,
3166,
18296,
29889,
13239,
1053,
1653,
29918,
4704,
29918,
29517,
13,
13,
29992,
6406,
29889,
9573,
29898,
7566,
29897,
13,
1990,
10969,
12754,
29898,
6406,
29889,
3195,
12754,
1125,
13,
1678,
1051,
29918,
4990,
353,
6024,
978,
742,
525,
2780,
742,
525,
7320,
742,
525,
5441,
29918,
9175,
742,
525,
4925,
2033,
13,
1678,
4175,
29918,
22672,
353,
6024,
8346,
2033,
13,
1678,
1051,
29918,
4572,
353,
6024,
4925,
2033,
13,
1678,
2635,
29918,
29882,
347,
12040,
353,
525,
11600,
29918,
265,
29915,
13,
1678,
2740,
29918,
9621,
353,
6024,
978,
742,
525,
29517,
2033,
13,
1678,
1746,
7224,
353,
518,
13,
4706,
6024,
15263,
742,
11117,
9621,
2396,
6024,
978,
742,
525,
18181,
2033,
29913,
1402,
13,
4706,
6024,
10444,
424,
742,
11117,
9621,
2396,
6024,
2780,
742,
525,
7320,
2033,
29913,
1402,
13,
4706,
6024,
10572,
742,
11117,
9621,
2396,
6024,
8346,
742,
525,
9641,
2033,
29913,
1402,
13,
4706,
6024,
29925,
2200,
292,
742,
11117,
9621,
2396,
6024,
5441,
29918,
9175,
742,
525,
29879,
744,
29918,
1767,
742,
525,
29879,
744,
29918,
9175,
742,
525,
265,
29918,
29879,
744,
2033,
29913,
1402,
13,
4706,
6024,
16107,
742,
11117,
9621,
2396,
6024,
4990,
29918,
1482,
742,
525,
4925,
742,
525,
29517,
2033,
6525,
13,
1678,
4514,
13,
1678,
8820,
353,
6024,
11236,
403,
742,
525,
311,
11236,
403,
742,
525,
10382,
29918,
7638,
742,
525,
8552,
29918,
14456,
742,
525,
3258,
29918,
4381,
29918,
29879,
7093,
2033,
13,
268,
13,
1678,
822,
5039,
403,
29898,
1311,
29892,
2009,
29892,
2346,
842,
1125,
13,
4706,
2346,
842,
29889,
5504,
29898,
4925,
29922,
5574,
29897,
13,
268,
13,
1678,
822,
316,
11236,
403,
29898,
1311,
29892,
2009,
29892,
2346,
842,
1125,
13,
4706,
2346,
842,
29889,
5504,
29898,
4925,
29922,
8824,
29897,
13,
308,
13,
1678,
822,
5142,
29918,
7638,
29898,
1311,
29892,
2009,
29892,
2346,
842,
1125,
13,
4706,
2346,
842,
353,
6213,
13,
308,
13,
1678,
822,
3509,
29918,
14456,
29898,
1311,
29892,
2009,
29892,
2346,
842,
1125,
13,
4706,
716,
29918,
14456,
353,
5159,
13,
4706,
363,
3234,
297,
2346,
842,
29901,
13,
9651,
716,
29918,
978,
353,
285,
29908,
29912,
4704,
29889,
978,
1157,
8172,
29889,
9502,
3881,
29898,
29896,
29892,
29871,
29929,
29929,
29929,
2915,
29908,
13,
9651,
2243,
688,
353,
1653,
29918,
4704,
29918,
29517,
29898,
1482,
29918,
978,
29892,
3234,
29889,
2780,
29897,
13,
9651,
716,
29918,
14456,
29889,
4397,
29898,
7566,
29898,
978,
29922,
1482,
29918,
978,
29892,
2927,
29922,
4704,
29889,
2780,
29892,
7663,
29922,
4704,
29889,
7320,
29892,
5190,
29918,
9175,
29922,
4704,
29889,
5441,
29918,
9175,
29892,
2243,
688,
29922,
29517,
876,
13,
4706,
10969,
29889,
12650,
29889,
8645,
29895,
29918,
3258,
29898,
1482,
29918,
14456,
29897,
13,
308,
13,
1678,
822,
1653,
29918,
4381,
29918,
29879,
7093,
29898,
1311,
29892,
2009,
29892,
2346,
842,
1125,
13,
4706,
9995,
2831,
4629,
9316,
29892,
1653,
2211,
6996,
13,
4706,
15786,
1060,
29903,
29892,
317,
322,
341,
607,
526,
6892,
278,
13,
4706,
6588,
2159,
363,
22095,
15945,
29908,
13,
4706,
15786,
353,
6024,
29990,
29903,
742,
525,
29903,
742,
525,
29924,
2033,
13,
4706,
363,
3234,
297,
2346,
842,
29901,
13,
9651,
363,
2159,
297,
15786,
29901,
13,
18884,
1018,
29901,
13,
462,
1678,
3234,
29889,
2311,
29918,
842,
29889,
3258,
29898,
4704,
29922,
4704,
29892,
1024,
29922,
2311,
29892,
20847,
3097,
29922,
8824,
29897,
13,
18884,
5174,
15758,
362,
2392,
29901,
13,
462,
1678,
396,
960,
278,
2159,
2307,
4864,
363,
263,
2183,
13,
462,
1678,
396,
3234,
29892,
925,
4418,
4047,
2705,
13,
462,
1678,
1209,
13,
4706,
1583,
29889,
4906,
29918,
1792,
29898,
3827,
29892,
285,
29915,
20399,
2322,
15786,
363,
426,
2435,
29898,
1972,
842,
2915,
9316,
1495,
13,
13,
13,
29992,
6406,
29889,
9573,
29898,
2940,
29897,
13,
1990,
7084,
12754,
29898,
6406,
29889,
3195,
12754,
1125,
13,
1678,
1051,
29918,
4990,
353,
6024,
978,
742,
525,
13492,
742,
525,
11600,
29918,
265,
742,
525,
275,
29918,
3396,
29918,
3027,
2033,
13,
1678,
2635,
29918,
29882,
347,
12040,
353,
525,
11600,
29918,
265,
29915,
13,
1678,
2740,
29918,
9621,
353,
6024,
978,
742,
525,
13492,
2033,
13,
1678,
1051,
29918,
4572,
353,
6024,
275,
29918,
3396,
29918,
3027,
2033,
13,
268,
13,
13,
29992,
6406,
29889,
9573,
29898,
15167,
29897,
13,
1990,
13987,
12754,
29898,
6406,
29889,
3195,
12754,
1125,
13,
1678,
1051,
29918,
4990,
353,
6024,
978,
742,
525,
3051,
2033,
13,
1678,
2740,
29918,
9621,
353,
6024,
978,
2033,
13,
13,
13,
29937,
732,
6406,
29889,
9573,
29898,
2528,
3245,
10444,
424,
29897,
13,
29937,
770,
3462,
3245,
10444,
424,
12754,
29898,
6406,
29889,
3195,
12754,
1125,
13,
29937,
268,
1051,
29918,
4990,
353,
6024,
5679,
742,
525,
262,
29918,
17712,
742,
525,
4925,
2033,
13,
29937,
268,
1051,
29918,
4572,
353,
6024,
4925,
742,
525,
262,
29918,
17712,
2033,
13,
268,
13,
13,
29992,
6406,
29889,
9573,
29898,
29956,
728,
1761,
29897,
13,
1990,
399,
728,
1761,
12754,
29898,
6406,
29889,
3195,
12754,
1125,
13,
1678,
1051,
29918,
4990,
353,
6024,
1792,
742,
525,
978,
742,
525,
11600,
29918,
265,
2033,
13,
1678,
2635,
29918,
29882,
347,
12040,
353,
525,
11600,
29918,
265,
29915,
13,
13,
13,
29992,
6406,
29889,
9573,
29898,
27552,
29897,
13,
1990,
8502,
12754,
29898,
6406,
29889,
3195,
12754,
1125,
13,
1678,
1051,
29918,
4990,
353,
6024,
1792,
742,
525,
11600,
29918,
265,
2033,
13,
1678,
2740,
29918,
9621,
353,
6024,
14456,
1649,
978,
2033,
13,
1678,
2635,
29918,
29882,
347,
12040,
353,
525,
11600,
29918,
265,
29915,
13,
2
] |
src/custom_layers.py | iamsoroush/TensorflowCPM | 0 | 148692 | import tensorflow.keras as tfk
class InstanceNorm(tfk.layers.Layer):
"""Instance normalization layer.
Normalizes the activations of the previous layer at each step,
i.e. applies a transformation that maintains the mean activation
of each feature map for each instance in batch close to 0 and the standard
deviation close to 1.
Args:
axis: Integer, the axis that should be normalized
(typically the features axis).
For instance, after a `Conv1D` layer with
`data_format="channels_last"`,
set `axis=-1` in `InstanceNorm`.
Setting `axis=None` will normalize all values in each
instance of the batch.
Axis 0 is the batch dimension. `axis` cannot be set to 0 to avoid errors.
epsilon: Small float added to variance to avoid dividing by zero.
Input shape: Arbitrary. Use the keyword argument `input_shape`
(tuple of integers, does not include the samples axis)
when using this layer as the first layer in a Sequential model.
Output shape: Same shape as input.
References:
- [Instance Normalization: The Missing Ingredient for Fast Stylization](
https://arxiv.org/abs/1607.08022)
"""
def __init__(self,
axis=-1,
epsilon=1e-3,
mean=0,
stddev=1,
**kwargs):
self.supports_masking = True
self.axis = axis
self.epsilon = epsilon
self.mean = mean
self.stddev = stddev
super(InstanceNorm, self).__init__(**kwargs)
def build(self, input_shape):
ndim = len(input_shape)
if self.axis == 0:
raise ValueError('Axis cannot be zero')
if (self.axis is not None) and (ndim == 2):
raise ValueError('Cannot specify axis for rank 1 tensor')
self.input_spec = tfk.layers.InputSpec(ndim=ndim)
super(InstanceNorm, self).build(input_shape)
def call(self, inputs):
input_shape = tfk.backend.int_shape(inputs)
reduction_axes = list(range(0, len(input_shape)))
if self.axis is not None:
del reduction_axes[self.axis]
del reduction_axes[0]
mean = tfk.backend.mean(inputs, reduction_axes, keepdims=True)
stddev = tfk.backend.std(inputs, reduction_axes, keepdims=True) + self.epsilon
normed = (inputs - mean + self.mean) / stddev * self.stddev
return normed
def get_config(self):
config = {
'axis': self.axis,
'epsilon': self.epsilon,
}
base_config = super(InstanceNorm, self).get_config()
return dict(list(base_config.items()) + list(config.items())) | [
1,
1053,
26110,
29889,
3946,
294,
408,
15886,
29895,
13,
13,
13,
1990,
2799,
749,
29940,
555,
29898,
13264,
29895,
29889,
29277,
29889,
14420,
1125,
13,
1678,
9995,
4998,
4226,
2133,
7546,
29889,
13,
13,
1678,
21981,
7093,
278,
5039,
800,
310,
278,
3517,
7546,
472,
1269,
4331,
29892,
13,
1678,
474,
29889,
29872,
29889,
16058,
263,
13852,
393,
7344,
29879,
278,
2099,
26229,
13,
1678,
310,
1269,
4682,
2910,
363,
1269,
2777,
297,
9853,
3802,
304,
29871,
29900,
322,
278,
3918,
13,
1678,
29522,
3802,
304,
29871,
29896,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
9685,
29901,
8102,
29892,
278,
9685,
393,
881,
367,
4226,
1891,
13,
9651,
313,
22449,
1711,
278,
5680,
9685,
467,
13,
9651,
1152,
2777,
29892,
1156,
263,
421,
1168,
29894,
29896,
29928,
29952,
7546,
411,
13,
9651,
421,
1272,
29918,
4830,
543,
305,
12629,
29918,
4230,
29908,
1673,
13,
9651,
731,
421,
8990,
10457,
29896,
29952,
297,
421,
4998,
29940,
555,
1412,
13,
9651,
21605,
421,
8990,
29922,
8516,
29952,
674,
4226,
675,
599,
1819,
297,
1269,
13,
9651,
2777,
310,
278,
9853,
29889,
13,
9651,
319,
11497,
29871,
29900,
338,
278,
9853,
9927,
29889,
421,
8990,
29952,
2609,
367,
731,
304,
29871,
29900,
304,
4772,
4436,
29889,
13,
4706,
321,
3232,
29901,
18285,
5785,
2715,
304,
20162,
304,
4772,
1933,
4821,
491,
5225,
29889,
13,
4706,
10567,
8267,
29901,
826,
8844,
653,
29889,
4803,
278,
13553,
2980,
421,
2080,
29918,
12181,
29952,
13,
9651,
313,
23583,
310,
11920,
29892,
947,
451,
3160,
278,
11916,
9685,
29897,
13,
9651,
746,
773,
445,
7546,
408,
278,
937,
7546,
297,
263,
922,
339,
2556,
1904,
29889,
13,
4706,
10604,
8267,
29901,
19491,
8267,
408,
1881,
29889,
13,
13,
1678,
28318,
29901,
13,
4706,
448,
518,
4998,
21981,
2133,
29901,
450,
4750,
292,
22607,
1127,
993,
363,
23786,
624,
2904,
2133,
850,
13,
4706,
2045,
597,
279,
26560,
29889,
990,
29914,
6897,
29914,
29896,
29953,
29900,
29955,
29889,
29900,
29947,
29900,
29906,
29906,
29897,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
13,
462,
9685,
10457,
29896,
29892,
13,
462,
321,
3232,
29922,
29896,
29872,
29899,
29941,
29892,
13,
462,
2099,
29922,
29900,
29892,
13,
462,
3659,
3359,
29922,
29896,
29892,
13,
462,
3579,
19290,
1125,
13,
4706,
1583,
29889,
5924,
29879,
29918,
13168,
292,
353,
5852,
13,
4706,
1583,
29889,
8990,
353,
9685,
13,
4706,
1583,
29889,
5463,
353,
321,
3232,
13,
4706,
1583,
29889,
12676,
353,
2099,
13,
4706,
1583,
29889,
4172,
3359,
353,
3659,
3359,
13,
4706,
2428,
29898,
4998,
29940,
555,
29892,
1583,
467,
1649,
2344,
12035,
1068,
19290,
29897,
13,
13,
1678,
822,
2048,
29898,
1311,
29892,
1881,
29918,
12181,
1125,
13,
308,
299,
326,
353,
7431,
29898,
2080,
29918,
12181,
29897,
13,
4706,
565,
1583,
29889,
8990,
1275,
29871,
29900,
29901,
13,
9651,
12020,
7865,
2392,
877,
16070,
2609,
367,
5225,
1495,
13,
13,
4706,
565,
313,
1311,
29889,
8990,
338,
451,
6213,
29897,
322,
313,
299,
326,
1275,
29871,
29906,
1125,
13,
9651,
12020,
7865,
2392,
877,
29089,
6084,
9685,
363,
7115,
29871,
29896,
12489,
1495,
13,
13,
4706,
1583,
29889,
2080,
29918,
6550,
353,
15886,
29895,
29889,
29277,
29889,
4290,
10299,
29898,
299,
326,
29922,
299,
326,
29897,
13,
4706,
2428,
29898,
4998,
29940,
555,
29892,
1583,
467,
4282,
29898,
2080,
29918,
12181,
29897,
13,
13,
1678,
822,
1246,
29898,
1311,
29892,
10970,
1125,
13,
4706,
1881,
29918,
12181,
353,
15886,
29895,
29889,
27852,
29889,
524,
29918,
12181,
29898,
2080,
29879,
29897,
13,
4706,
20376,
29918,
1165,
267,
353,
1051,
29898,
3881,
29898,
29900,
29892,
7431,
29898,
2080,
29918,
12181,
4961,
13,
13,
4706,
565,
1583,
29889,
8990,
338,
451,
6213,
29901,
13,
9651,
628,
20376,
29918,
1165,
267,
29961,
1311,
29889,
8990,
29962,
13,
13,
4706,
628,
20376,
29918,
1165,
267,
29961,
29900,
29962,
13,
13,
4706,
2099,
353,
15886,
29895,
29889,
27852,
29889,
12676,
29898,
2080,
29879,
29892,
20376,
29918,
1165,
267,
29892,
3013,
6229,
29879,
29922,
5574,
29897,
13,
4706,
3659,
3359,
353,
15886,
29895,
29889,
27852,
29889,
4172,
29898,
2080,
29879,
29892,
20376,
29918,
1165,
267,
29892,
3013,
6229,
29879,
29922,
5574,
29897,
718,
1583,
29889,
5463,
13,
4706,
6056,
287,
353,
313,
2080,
29879,
448,
2099,
718,
1583,
29889,
12676,
29897,
847,
3659,
3359,
334,
1583,
29889,
4172,
3359,
13,
4706,
736,
6056,
287,
13,
13,
1678,
822,
679,
29918,
2917,
29898,
1311,
1125,
13,
4706,
2295,
353,
426,
13,
9651,
525,
8990,
2396,
1583,
29889,
8990,
29892,
13,
9651,
525,
5463,
2396,
1583,
29889,
5463,
29892,
13,
4706,
500,
13,
4706,
2967,
29918,
2917,
353,
2428,
29898,
4998,
29940,
555,
29892,
1583,
467,
657,
29918,
2917,
580,
13,
4706,
736,
9657,
29898,
1761,
29898,
3188,
29918,
2917,
29889,
7076,
3101,
718,
1051,
29898,
2917,
29889,
7076,
22130,
2
] |
contextual-multimodal-fusion/create_data.py | ggzhang0071/multimodal-deep-learning | 0 | 146637 | <reponame>ggzhang0071/multimodal-deep-learning<gh_stars>0
## Credits: https://github.com/SenticNet/contextual-utterance-level-multimodal-sentiment-analysis ##
## Authors: <NAME>, <NAME> ##
## Modified for Python 3.5 ##
import numpy as np, pandas as pd
from collections import defaultdict
import pickle
from sklearn import preprocessing
min_max_scaler = preprocessing.MinMaxScaler()
np.random.seed(17)
pre_data = np.asarray(pd.read_csv("./data/transcripts.csv" , header=None))
train = pd.read_csv("./data/text_train.csv", header=None)
test = pd.read_csv("./data/text_test.csv", header=None)
train = np.asarray(train)
test = np.asarray(test)
train_index = np.asarray(train[:,0], dtype = 'int')
test_index = np.asarray(test[:,0], dtype = 'int')
def main(name):
path = "./data/"+name+"/"+name
print(path)
train_video_mapping=defaultdict(list)
train_video_mapping_index=defaultdict(list)
test_video_mapping=defaultdict(list)
test_video_mapping_index=defaultdict(list)
data_train = np.asarray(pd.read_csv(path+"_train0.csv", header=None))
data_test = np.asarray(pd.read_csv(path+"_test0.csv", header=None))
for i in range(train_index.shape[0]):
train_video_mapping[pre_data[train_index[i]][0].rsplit("_",1)[0] ].append(train_index[i])
train_video_mapping_index[pre_data[train_index[i]][0].rsplit("_",1)[0] ].append( int(pre_data[train_index[i]][0].rsplit("_",1)[1]) )
for i in range(test_index.shape[0]):
test_video_mapping[pre_data[test_index[i]][0].rsplit("_",1)[0] ].append(test_index[i])
test_video_mapping_index[pre_data[test_index[i]][0].rsplit("_",1)[0] ].append( int(pre_data[test_index[i]][0].rsplit("_",1)[1]) )
train_indices = dict((c, i) for i, c in enumerate(train_index))
test_indices = dict((c, i) for i, c in enumerate(test_index))
max_len = 0
for key,value in train_video_mapping.items():
max_len = max(max_len , len(value))
for key,value in test_video_mapping.items():
max_len = max(max_len, len(value))
pad = np.asarray([0 for i in range(data_train[0][:-1].shape[0])])
print ("Mapping train")
train_data_X =[]
train_data_Y =[]
train_length =[]
for key,value in train_video_mapping.items():
lst = np.column_stack((train_video_mapping_index[key],value) )
ind = np.asarray(sorted(lst,key=lambda x: x[0]))
lst_X, lst_Y=[],[]
ctr=0;
for i in range(ind.shape[0]):
ctr+=1
#lst_X.append(preprocessing.scale( min_max_scaler.fit_transform(data_train[train_indices[ind[i,1]]][:-1])))
lst_X.append(data_train[train_indices[ind[i,1]]][:-1])
lst_Y.append(data_train[train_indices[ind[i,1]]][-1])
train_length.append(ctr)
for i in range(ctr, max_len):
lst_X.append(pad)
lst_Y.append(0) #dummy label
train_data_X.append(lst_X)
train_data_Y.append(lst_Y)
test_data_X =[]
test_data_Y =[]
test_length =[]
print ("Mapping test")
for key,value in test_video_mapping.items():
lst = np.column_stack((test_video_mapping_index[key],value) )
ind = np.asarray(sorted(lst,key=lambda x: x[0]))
lst_X, lst_Y=[],[]
ctr=0
for i in range(ind.shape[0]):
ctr+=1
#lst_X.append(preprocessing.scale( min_max_scaler.transform(data_test[test_indices[ind[i,1]]][:-1])))
lst_X.append(data_test[test_indices[ind[i,1]]][:-1])
lst_Y.append(data_test[test_indices[ind[i,1]]][-1])
test_length.append(ctr)
for i in range(ctr, max_len):
lst_X.append(pad)
lst_Y.append(0) #dummy label
test_data_X.append(np.asarray(lst_X))
test_data_Y.append(np.asarray(lst_Y))
train_data_X = np.asarray(train_data_X)
test_data_X = np.asarray(test_data_X)
print (train_data_X.shape, test_data_X.shape,len(train_length), len(test_length))
print ("Dumping data")
with open('./input/'+name+'.pickle', 'wb') as handle:
pickle.dump((train_data_X, np.asarray(train_data_Y), test_data_X, np.asarray(test_data_Y), max_len ,train_length, test_length), handle, protocol=pickle.HIGHEST_PROTOCOL)
if __name__ == "__main__":
names = ['text','audio','video']
for nm in names:
main(nm) | [
1,
529,
276,
1112,
420,
29958,
1505,
29920,
11895,
29900,
29900,
29955,
29896,
29914,
4713,
326,
397,
284,
29899,
24535,
29899,
21891,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
2277,
24596,
1169,
29901,
2045,
597,
3292,
29889,
510,
29914,
29903,
4173,
6779,
29914,
4703,
950,
29899,
6463,
749,
29899,
5563,
29899,
4713,
326,
397,
284,
29899,
18616,
2073,
29899,
15916,
444,
13,
2277,
13189,
943,
29901,
529,
5813,
10202,
529,
5813,
29958,
444,
13,
2277,
3382,
2164,
363,
5132,
29871,
29941,
29889,
29945,
444,
13,
13,
5215,
12655,
408,
7442,
29892,
11701,
408,
10518,
13,
3166,
16250,
1053,
2322,
8977,
13,
5215,
5839,
280,
13,
3166,
2071,
19668,
1053,
758,
19170,
13,
1195,
29918,
3317,
29918,
19529,
261,
353,
758,
19170,
29889,
8140,
7976,
29636,
261,
580,
13,
13,
13,
9302,
29889,
8172,
29889,
26776,
29898,
29896,
29955,
29897,
13,
13,
1457,
29918,
1272,
353,
7442,
29889,
294,
2378,
29898,
15926,
29889,
949,
29918,
7638,
703,
6904,
1272,
29914,
3286,
924,
29879,
29889,
7638,
29908,
1919,
4839,
29922,
8516,
876,
13,
13,
14968,
353,
10518,
29889,
949,
29918,
7638,
703,
6904,
1272,
29914,
726,
29918,
14968,
29889,
7638,
613,
4839,
29922,
8516,
29897,
13,
1688,
353,
10518,
29889,
949,
29918,
7638,
703,
6904,
1272,
29914,
726,
29918,
1688,
29889,
7638,
613,
4839,
29922,
8516,
29897,
13,
14968,
353,
7442,
29889,
294,
2378,
29898,
14968,
29897,
13,
1688,
353,
7442,
29889,
294,
2378,
29898,
1688,
29897,
13,
14968,
29918,
2248,
353,
7442,
29889,
294,
2378,
29898,
14968,
7503,
29892,
29900,
1402,
26688,
353,
525,
524,
1495,
13,
1688,
29918,
2248,
353,
7442,
29889,
294,
2378,
29898,
1688,
7503,
29892,
29900,
1402,
26688,
353,
525,
524,
1495,
13,
13,
13,
13,
1753,
1667,
29898,
978,
1125,
13,
13,
1678,
2224,
353,
376,
6904,
1272,
12975,
29974,
978,
13578,
12975,
29974,
978,
13,
1678,
1596,
29898,
2084,
29897,
13,
1678,
7945,
29918,
9641,
29918,
20698,
29922,
4381,
8977,
29898,
1761,
29897,
13,
1678,
7945,
29918,
9641,
29918,
20698,
29918,
2248,
29922,
4381,
8977,
29898,
1761,
29897,
13,
1678,
1243,
29918,
9641,
29918,
20698,
29922,
4381,
8977,
29898,
1761,
29897,
13,
1678,
1243,
29918,
9641,
29918,
20698,
29918,
2248,
29922,
4381,
8977,
29898,
1761,
29897,
13,
13,
1678,
848,
29918,
14968,
353,
7442,
29889,
294,
2378,
29898,
15926,
29889,
949,
29918,
7638,
29898,
2084,
13578,
29918,
14968,
29900,
29889,
7638,
613,
4839,
29922,
8516,
876,
13,
1678,
848,
29918,
1688,
353,
7442,
29889,
294,
2378,
29898,
15926,
29889,
949,
29918,
7638,
29898,
2084,
13578,
29918,
1688,
29900,
29889,
7638,
613,
4839,
29922,
8516,
876,
13,
13,
1678,
363,
474,
297,
3464,
29898,
14968,
29918,
2248,
29889,
12181,
29961,
29900,
29962,
1125,
13,
4706,
7945,
29918,
9641,
29918,
20698,
29961,
1457,
29918,
1272,
29961,
14968,
29918,
2248,
29961,
29875,
29962,
3816,
29900,
1822,
2288,
2830,
703,
29918,
613,
29896,
9601,
29900,
29962,
29871,
1822,
4397,
29898,
14968,
29918,
2248,
29961,
29875,
2314,
13,
4706,
7945,
29918,
9641,
29918,
20698,
29918,
2248,
29961,
1457,
29918,
1272,
29961,
14968,
29918,
2248,
29961,
29875,
29962,
3816,
29900,
1822,
2288,
2830,
703,
29918,
613,
29896,
9601,
29900,
29962,
29871,
1822,
4397,
29898,
938,
29898,
1457,
29918,
1272,
29961,
14968,
29918,
2248,
29961,
29875,
29962,
3816,
29900,
1822,
2288,
2830,
703,
29918,
613,
29896,
9601,
29896,
2314,
1723,
13,
13,
1678,
363,
474,
297,
3464,
29898,
1688,
29918,
2248,
29889,
12181,
29961,
29900,
29962,
1125,
13,
4706,
1243,
29918,
9641,
29918,
20698,
29961,
1457,
29918,
1272,
29961,
1688,
29918,
2248,
29961,
29875,
29962,
3816,
29900,
1822,
2288,
2830,
703,
29918,
613,
29896,
9601,
29900,
29962,
29871,
1822,
4397,
29898,
1688,
29918,
2248,
29961,
29875,
2314,
13,
4706,
1243,
29918,
9641,
29918,
20698,
29918,
2248,
29961,
1457,
29918,
1272,
29961,
1688,
29918,
2248,
29961,
29875,
29962,
3816,
29900,
1822,
2288,
2830,
703,
29918,
613,
29896,
9601,
29900,
29962,
29871,
1822,
4397,
29898,
938,
29898,
1457,
29918,
1272,
29961,
1688,
29918,
2248,
29961,
29875,
29962,
3816,
29900,
1822,
2288,
2830,
703,
29918,
613,
29896,
9601,
29896,
2314,
1723,
13,
13,
1678,
7945,
29918,
513,
1575,
353,
9657,
3552,
29883,
29892,
474,
29897,
363,
474,
29892,
274,
297,
26985,
29898,
14968,
29918,
2248,
876,
13,
1678,
1243,
29918,
513,
1575,
353,
9657,
3552,
29883,
29892,
474,
29897,
363,
474,
29892,
274,
297,
26985,
29898,
1688,
29918,
2248,
876,
13,
13,
1678,
4236,
29918,
2435,
353,
29871,
29900,
13,
1678,
363,
1820,
29892,
1767,
297,
7945,
29918,
9641,
29918,
20698,
29889,
7076,
7295,
13,
4706,
4236,
29918,
2435,
353,
4236,
29898,
3317,
29918,
2435,
1919,
7431,
29898,
1767,
876,
13,
1678,
363,
1820,
29892,
1767,
297,
1243,
29918,
9641,
29918,
20698,
29889,
7076,
7295,
13,
4706,
4236,
29918,
2435,
353,
4236,
29898,
3317,
29918,
2435,
29892,
7431,
29898,
1767,
876,
13,
13,
1678,
17132,
353,
7442,
29889,
294,
2378,
4197,
29900,
363,
474,
297,
3464,
29898,
1272,
29918,
14968,
29961,
29900,
3816,
13018,
29896,
1822,
12181,
29961,
29900,
2314,
2314,
13,
13,
1678,
1596,
4852,
15845,
7945,
1159,
13,
13,
1678,
7945,
29918,
1272,
29918,
29990,
353,
2636,
13,
1678,
7945,
29918,
1272,
29918,
29979,
353,
2636,
13,
1678,
7945,
29918,
2848,
353,
2636,
13,
1678,
363,
1820,
29892,
1767,
297,
7945,
29918,
9641,
29918,
20698,
29889,
7076,
7295,
13,
13,
308,
13,
4706,
24471,
353,
7442,
29889,
4914,
29918,
1429,
3552,
14968,
29918,
9641,
29918,
20698,
29918,
2248,
29961,
1989,
1402,
1767,
29897,
29871,
1723,
13,
4706,
1399,
353,
7442,
29889,
294,
2378,
29898,
24582,
29898,
20155,
29892,
1989,
29922,
2892,
921,
29901,
921,
29961,
29900,
12622,
13,
13,
13,
4706,
24471,
29918,
29990,
29892,
24471,
29918,
29979,
11759,
1402,
2636,
13,
4706,
274,
509,
29922,
29900,
29936,
13,
4706,
363,
474,
297,
3464,
29898,
513,
29889,
12181,
29961,
29900,
29962,
1125,
13,
9651,
274,
509,
23661,
29896,
13,
9651,
396,
20155,
29918,
29990,
29889,
4397,
29898,
1457,
19170,
29889,
7052,
29898,
1375,
29918,
3317,
29918,
19529,
261,
29889,
9202,
29918,
9067,
29898,
1272,
29918,
14968,
29961,
14968,
29918,
513,
1575,
29961,
513,
29961,
29875,
29892,
29896,
5262,
3816,
13018,
29896,
29962,
4961,
13,
9651,
24471,
29918,
29990,
29889,
4397,
29898,
1272,
29918,
14968,
29961,
14968,
29918,
513,
1575,
29961,
513,
29961,
29875,
29892,
29896,
5262,
3816,
13018,
29896,
2314,
13,
9651,
24471,
29918,
29979,
29889,
4397,
29898,
1272,
29918,
14968,
29961,
14968,
29918,
513,
1575,
29961,
513,
29961,
29875,
29892,
29896,
5262,
3816,
29899,
29896,
2314,
13,
4706,
7945,
29918,
2848,
29889,
4397,
29898,
9988,
29897,
13,
4706,
363,
474,
297,
3464,
29898,
9988,
29892,
4236,
29918,
2435,
1125,
13,
9651,
24471,
29918,
29990,
29889,
4397,
29898,
8305,
29897,
13,
9651,
24471,
29918,
29979,
29889,
4397,
29898,
29900,
29897,
396,
29881,
11770,
3858,
13,
308,
13,
4706,
7945,
29918,
1272,
29918,
29990,
29889,
4397,
29898,
20155,
29918,
29990,
29897,
13,
4706,
7945,
29918,
1272,
29918,
29979,
29889,
4397,
29898,
20155,
29918,
29979,
29897,
13,
268,
13,
13,
1678,
1243,
29918,
1272,
29918,
29990,
353,
2636,
13,
1678,
1243,
29918,
1272,
29918,
29979,
353,
2636,
13,
1678,
1243,
29918,
2848,
353,
2636,
13,
13,
1678,
1596,
4852,
15845,
1243,
1159,
13,
13,
1678,
363,
1820,
29892,
1767,
297,
1243,
29918,
9641,
29918,
20698,
29889,
7076,
7295,
13,
13,
4706,
24471,
353,
7442,
29889,
4914,
29918,
1429,
3552,
1688,
29918,
9641,
29918,
20698,
29918,
2248,
29961,
1989,
1402,
1767,
29897,
29871,
1723,
13,
4706,
1399,
353,
7442,
29889,
294,
2378,
29898,
24582,
29898,
20155,
29892,
1989,
29922,
2892,
921,
29901,
921,
29961,
29900,
12622,
13,
13,
4706,
24471,
29918,
29990,
29892,
24471,
29918,
29979,
11759,
1402,
2636,
13,
4706,
274,
509,
29922,
29900,
13,
4706,
363,
474,
297,
3464,
29898,
513,
29889,
12181,
29961,
29900,
29962,
1125,
13,
9651,
274,
509,
23661,
29896,
13,
9651,
396,
20155,
29918,
29990,
29889,
4397,
29898,
1457,
19170,
29889,
7052,
29898,
1375,
29918,
3317,
29918,
19529,
261,
29889,
9067,
29898,
1272,
29918,
1688,
29961,
1688,
29918,
513,
1575,
29961,
513,
29961,
29875,
29892,
29896,
5262,
3816,
13018,
29896,
29962,
4961,
13,
9651,
24471,
29918,
29990,
29889,
4397,
29898,
1272,
29918,
1688,
29961,
1688,
29918,
513,
1575,
29961,
513,
29961,
29875,
29892,
29896,
5262,
3816,
13018,
29896,
2314,
13,
9651,
24471,
29918,
29979,
29889,
4397,
29898,
1272,
29918,
1688,
29961,
1688,
29918,
513,
1575,
29961,
513,
29961,
29875,
29892,
29896,
5262,
3816,
29899,
29896,
2314,
13,
4706,
1243,
29918,
2848,
29889,
4397,
29898,
9988,
29897,
13,
4706,
363,
474,
297,
3464,
29898,
9988,
29892,
4236,
29918,
2435,
1125,
13,
9651,
24471,
29918,
29990,
29889,
4397,
29898,
8305,
29897,
13,
9651,
24471,
29918,
29979,
29889,
4397,
29898,
29900,
29897,
396,
29881,
11770,
3858,
13,
13,
4706,
1243,
29918,
1272,
29918,
29990,
29889,
4397,
29898,
9302,
29889,
294,
2378,
29898,
20155,
29918,
29990,
876,
13,
4706,
1243,
29918,
1272,
29918,
29979,
29889,
4397,
29898,
9302,
29889,
294,
2378,
29898,
20155,
29918,
29979,
876,
13,
13,
1678,
7945,
29918,
1272,
29918,
29990,
353,
7442,
29889,
294,
2378,
29898,
14968,
29918,
1272,
29918,
29990,
29897,
13,
1678,
1243,
29918,
1272,
29918,
29990,
353,
7442,
29889,
294,
2378,
29898,
1688,
29918,
1272,
29918,
29990,
29897,
13,
1678,
1596,
313,
14968,
29918,
1272,
29918,
29990,
29889,
12181,
29892,
1243,
29918,
1272,
29918,
29990,
29889,
12181,
29892,
2435,
29898,
14968,
29918,
2848,
511,
7431,
29898,
1688,
29918,
2848,
876,
13,
13,
1678,
1596,
4852,
29928,
3427,
292,
848,
1159,
13,
1678,
411,
1722,
877,
6904,
2080,
29914,
18717,
978,
29974,
4286,
23945,
280,
742,
525,
29893,
29890,
1495,
408,
4386,
29901,
13,
4706,
5839,
280,
29889,
15070,
3552,
14968,
29918,
1272,
29918,
29990,
29892,
29871,
7442,
29889,
294,
2378,
29898,
14968,
29918,
1272,
29918,
29979,
511,
1243,
29918,
1272,
29918,
29990,
29892,
7442,
29889,
294,
2378,
29898,
1688,
29918,
1272,
29918,
29979,
511,
4236,
29918,
2435,
1919,
14968,
29918,
2848,
29892,
1243,
29918,
2848,
511,
4386,
29892,
9608,
29922,
23945,
280,
29889,
29950,
6259,
9606,
1254,
29918,
8618,
4986,
15032,
29897,
13,
13,
13,
13,
268,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
13,
1678,
2983,
353,
6024,
726,
3788,
18494,
3788,
9641,
2033,
13,
1678,
363,
302,
29885,
297,
2983,
29901,
13,
4706,
1667,
29898,
22882,
29897,
2
] |
ifaces/management/__init__.py | RossBrunton/RThing | 0 | 164825 | <filename>ifaces/management/__init__.py
"""Management modules for ifaces"""
| [
1,
529,
9507,
29958,
361,
3302,
29914,
21895,
29914,
1649,
2344,
26914,
2272,
13,
15945,
29908,
27107,
10585,
363,
565,
3302,
15945,
29908,
13,
2
] |
tests/test_calc.py | aldencolerain/rxtouchtoggle | 0 | 107868 | # test add function
def test_example():
assert True
| [
1,
396,
1243,
788,
740,
13,
1753,
1243,
29918,
4773,
7295,
13,
1678,
4974,
5852,
13,
2
] |
tests/test_unit/test_md2po2md/test_md2po2md_cli.py | mondeja/md2po | 0 | 84747 | <filename>tests/test_unit/test_md2po2md/test_md2po2md_cli.py
"""Tests for ``md2po2md`` CLI"""
import os
import pytest
from mdpo.md2po2md.__main__ import run
@pytest.mark.parametrize('output_arg', ('-o', '--output'))
@pytest.mark.parametrize('langs_arg', ('-l', '--lang'))
@pytest.mark.parametrize('all_langs_in_same_arg', (True, False))
@pytest.mark.parametrize(
(
'langs',
'input_paths_glob',
'output',
'input_files_content',
'expected_result',
),
(
pytest.param(
['es'],
'README.md',
'locale/{lang}',
{'README.md': 'Foo\n\nBar\n'},
{
'locale/es/README.md.po': (
'#\nmsgid ""\nmsgstr ""\n\nmsgid "Foo"\nmsgstr ""\n\n'
'msgid "Bar"\nmsgstr ""\n'
),
'locale/es/README.md': 'Foo\n\nBar\n',
},
id='es-locale/{lang}',
),
pytest.param(
('es', 'fr'),
'README.md',
'locale/{lang}',
{'README.md': 'Foo\n\nBar\n'},
{
'locale/es/README.md.po': (
'#\nmsgid ""\nmsgstr ""\n\nmsgid "Foo"\nmsgstr ""\n\n'
'msgid "Bar"\nmsgstr ""\n'
),
'locale/es/README.md': 'Foo\n\nBar\n',
'locale/fr/README.md.po': (
'#\nmsgid ""\nmsgstr ""\n\nmsgid "Foo"\nmsgstr ""\n\n'
'msgid "Bar"\nmsgstr ""\n'
),
'locale/fr/README.md': 'Foo\n\nBar\n',
},
id='README-es,fr-locale/{lang}',
),
pytest.param(
('es',),
'README.md',
'locale/',
{},
ValueError,
id='es-locale/-ValueError',
),
pytest.param(
('es',),
'README.md',
'locale/{lang}/{basename}',
{'README.md': 'Foo\n\nBar\n'},
{
'locale/es/README.po': (
'#\nmsgid ""\nmsgstr ""\n\nmsgid "Foo"\nmsgstr ""\n\n'
'msgid "Bar"\nmsgstr ""\n'
),
'locale/es/README': 'Foo\n\nBar\n',
},
id='es-locale/{lang}/{basename}',
),
pytest.param(
['es'],
'README.md',
'{lang}/{basename}',
{'README.md': 'Foo\n\nBar\n'},
{
'es/README.po': (
'#\nmsgid ""\nmsgstr ""\n\nmsgid "Foo"\nmsgstr ""\n\n'
'msgid "Bar"\nmsgstr ""\n'
),
'es/README': 'Foo\n\nBar\n',
},
id='es-{lang}/{basename}',
),
pytest.param(
['es'],
'README.md',
'{lang}',
{'README.md': 'Foo\n\nBar\n'},
{
'es/README.md.po': (
'#\nmsgid ""\nmsgstr ""\n\nmsgid "Foo"\nmsgstr ""\n\n'
'msgid "Bar"\nmsgstr ""\n'
),
'es/README.md': 'Foo\n\nBar\n',
},
id='es-{lang}',
),
pytest.param(
['es'],
'[s-m]',
'{lang}/{basename}',
{},
ValueError,
id='invalid-glob-ValueError',
),
pytest.param(
['es'],
'foobar*',
'{lang}/{basename}',
{},
FileNotFoundError,
id='no-files-matching-input-glob',
),
pytest.param(
('es', 'fr', 'de_DE'),
'README.md',
'locale/{lang}',
{'README.md': 'Foo\n\nBar\n'},
{
'locale/es/README.md.po': (
'#\nmsgid ""\nmsgstr ""\n\nmsgid "Foo"\nmsgstr ""\n\n'
'msgid "Bar"\nmsgstr ""\n'
),
'locale/es/README.md': 'Foo\n\nBar\n',
'locale/fr/README.md.po': (
'#\nmsgid ""\nmsgstr ""\n\nmsgid "Foo"\nmsgstr ""\n\n'
'msgid "Bar"\nmsgstr ""\n'
),
'locale/fr/README.md': 'Foo\n\nBar\n',
'locale/de_DE/README.md.po': (
'#\nmsgid ""\nmsgstr ""\n\nmsgid "Foo"\nmsgstr ""\n\n'
'msgid "Bar"\nmsgstr ""\n'
),
'locale/de_DE/README.md': 'Foo\n\nBar\n',
},
id='README-es,fr-locale/{lang}',
),
),
)
def test_md2po2md_arguments(
output_arg,
langs_arg,
all_langs_in_same_arg,
langs,
input_paths_glob,
output,
input_files_content,
expected_result, # {files: contents} or error
tmp_dir,
maybe_raises,
):
with tmp_dir(input_files_content) as filesdir:
# run md2po2md
cmd = [
os.path.join(filesdir, input_paths_glob),
output_arg,
os.path.join(filesdir, output),
]
# if all languages are passed in the same `--lang`/`-l` argument
if all_langs_in_same_arg:
cmd.extend([langs_arg, *langs])
else:
for lang in langs:
cmd.extend([langs_arg, lang])
cmd.append('--no-location')
with maybe_raises(expected_result):
run(cmd)
# Check number of files
expected_number_of_files = (
len(expected_result) + len(input_files_content)
)
n_files = 0
for root, dirs, files in os.walk(filesdir, topdown=False):
n_files += len(files)
assert n_files == expected_number_of_files
# Check expected content
for relpath, content in expected_result.items():
filepath = os.path.join(filesdir, relpath)
with open(filepath) as f:
assert f.read() == content
| [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
5441,
29914,
1688,
29918,
3487,
29906,
1129,
29906,
3487,
29914,
1688,
29918,
3487,
29906,
1129,
29906,
3487,
29918,
11303,
29889,
2272,
13,
15945,
29908,
24376,
363,
4954,
3487,
29906,
1129,
29906,
3487,
16159,
24492,
15945,
29908,
13,
13,
5215,
2897,
13,
13,
5215,
11451,
1688,
13,
13,
3166,
22821,
1129,
29889,
3487,
29906,
1129,
29906,
3487,
17255,
3396,
1649,
1053,
1065,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
4905,
29918,
1191,
742,
6702,
29899,
29877,
742,
525,
489,
4905,
8785,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
3893,
29879,
29918,
1191,
742,
6702,
29899,
29880,
742,
525,
489,
3893,
8785,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
497,
29918,
3893,
29879,
29918,
262,
29918,
17642,
29918,
1191,
742,
313,
5574,
29892,
7700,
876,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
29898,
13,
1678,
313,
13,
4706,
525,
3893,
29879,
742,
13,
4706,
525,
2080,
29918,
24772,
29918,
23705,
742,
13,
4706,
525,
4905,
742,
13,
4706,
525,
2080,
29918,
5325,
29918,
3051,
742,
13,
4706,
525,
9684,
29918,
2914,
742,
13,
1678,
10353,
13,
1678,
313,
13,
4706,
11451,
1688,
29889,
3207,
29898,
13,
9651,
6024,
267,
7464,
13,
9651,
525,
16310,
2303,
29889,
3487,
742,
13,
9651,
525,
23337,
19248,
3893,
29913,
742,
13,
9651,
11117,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
16675,
13,
9651,
426,
13,
18884,
525,
23337,
29914,
267,
29914,
16310,
2303,
29889,
3487,
29889,
1129,
2396,
313,
13,
462,
1678,
16321,
29905,
29876,
7645,
333,
5124,
29905,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
7645,
333,
376,
14016,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
29915,
13,
462,
1678,
525,
7645,
333,
376,
4297,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29915,
13,
18884,
10353,
13,
18884,
525,
23337,
29914,
267,
29914,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
742,
13,
9651,
2981,
13,
9651,
1178,
2433,
267,
29899,
23337,
19248,
3893,
29913,
742,
13,
4706,
10353,
13,
4706,
11451,
1688,
29889,
3207,
29898,
13,
9651,
6702,
267,
742,
525,
1341,
5477,
13,
9651,
525,
16310,
2303,
29889,
3487,
742,
13,
9651,
525,
23337,
19248,
3893,
29913,
742,
13,
9651,
11117,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
16675,
13,
9651,
426,
13,
18884,
525,
23337,
29914,
267,
29914,
16310,
2303,
29889,
3487,
29889,
1129,
2396,
313,
13,
462,
1678,
16321,
29905,
29876,
7645,
333,
5124,
29905,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
7645,
333,
376,
14016,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
29915,
13,
462,
1678,
525,
7645,
333,
376,
4297,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29915,
13,
18884,
10353,
13,
18884,
525,
23337,
29914,
267,
29914,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
742,
13,
18884,
525,
23337,
29914,
1341,
29914,
16310,
2303,
29889,
3487,
29889,
1129,
2396,
313,
13,
462,
1678,
16321,
29905,
29876,
7645,
333,
5124,
29905,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
7645,
333,
376,
14016,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
29915,
13,
462,
1678,
525,
7645,
333,
376,
4297,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29915,
13,
18884,
10353,
13,
18884,
525,
23337,
29914,
1341,
29914,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
742,
13,
9651,
2981,
13,
9651,
1178,
2433,
16310,
2303,
29899,
267,
29892,
1341,
29899,
23337,
19248,
3893,
29913,
742,
13,
4706,
10353,
13,
4706,
11451,
1688,
29889,
3207,
29898,
13,
9651,
6702,
267,
742,
511,
13,
9651,
525,
16310,
2303,
29889,
3487,
742,
13,
9651,
525,
23337,
29914,
742,
13,
9651,
24335,
13,
9651,
7865,
2392,
29892,
13,
9651,
1178,
2433,
267,
29899,
23337,
24028,
1917,
2392,
742,
13,
4706,
10353,
13,
4706,
11451,
1688,
29889,
3207,
29898,
13,
9651,
6702,
267,
742,
511,
13,
9651,
525,
16310,
2303,
29889,
3487,
742,
13,
9651,
525,
23337,
19248,
3893,
6822,
29912,
6500,
3871,
29913,
742,
13,
9651,
11117,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
16675,
13,
9651,
426,
13,
18884,
525,
23337,
29914,
267,
29914,
16310,
2303,
29889,
1129,
2396,
313,
13,
462,
1678,
16321,
29905,
29876,
7645,
333,
5124,
29905,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
7645,
333,
376,
14016,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
29915,
13,
462,
1678,
525,
7645,
333,
376,
4297,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29915,
13,
18884,
10353,
13,
18884,
525,
23337,
29914,
267,
29914,
16310,
2303,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
742,
13,
9651,
2981,
13,
9651,
1178,
2433,
267,
29899,
23337,
19248,
3893,
6822,
29912,
6500,
3871,
29913,
742,
13,
4706,
10353,
13,
4706,
11451,
1688,
29889,
3207,
29898,
13,
9651,
6024,
267,
7464,
13,
9651,
525,
16310,
2303,
29889,
3487,
742,
13,
9651,
22372,
3893,
6822,
29912,
6500,
3871,
29913,
742,
13,
9651,
11117,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
16675,
13,
9651,
426,
13,
18884,
525,
267,
29914,
16310,
2303,
29889,
1129,
2396,
313,
13,
462,
1678,
16321,
29905,
29876,
7645,
333,
5124,
29905,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
7645,
333,
376,
14016,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
29915,
13,
462,
1678,
525,
7645,
333,
376,
4297,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29915,
13,
18884,
10353,
13,
18884,
525,
267,
29914,
16310,
2303,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
742,
13,
9651,
2981,
13,
9651,
1178,
2433,
267,
29899,
29912,
3893,
6822,
29912,
6500,
3871,
29913,
742,
13,
4706,
10353,
13,
4706,
11451,
1688,
29889,
3207,
29898,
13,
9651,
6024,
267,
7464,
13,
9651,
525,
16310,
2303,
29889,
3487,
742,
13,
9651,
22372,
3893,
29913,
742,
13,
9651,
11117,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
16675,
13,
9651,
426,
13,
18884,
525,
267,
29914,
16310,
2303,
29889,
3487,
29889,
1129,
2396,
313,
13,
462,
1678,
16321,
29905,
29876,
7645,
333,
5124,
29905,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
7645,
333,
376,
14016,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
29915,
13,
462,
1678,
525,
7645,
333,
376,
4297,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29915,
13,
18884,
10353,
13,
18884,
525,
267,
29914,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
742,
13,
9651,
2981,
13,
9651,
1178,
2433,
267,
29899,
29912,
3893,
29913,
742,
13,
4706,
10353,
13,
4706,
11451,
1688,
29889,
3207,
29898,
13,
9651,
6024,
267,
7464,
13,
9651,
525,
29961,
29879,
29899,
29885,
29962,
742,
13,
9651,
22372,
3893,
6822,
29912,
6500,
3871,
29913,
742,
13,
9651,
24335,
13,
9651,
7865,
2392,
29892,
13,
9651,
1178,
2433,
20965,
29899,
23705,
29899,
1917,
2392,
742,
13,
4706,
10353,
13,
4706,
11451,
1688,
29889,
3207,
29898,
13,
9651,
6024,
267,
7464,
13,
9651,
525,
1181,
22872,
29930,
742,
13,
9651,
22372,
3893,
6822,
29912,
6500,
3871,
29913,
742,
13,
9651,
24335,
13,
9651,
3497,
17413,
2392,
29892,
13,
9651,
1178,
2433,
1217,
29899,
5325,
29899,
4352,
292,
29899,
2080,
29899,
23705,
742,
13,
4706,
10353,
13,
4706,
11451,
1688,
29889,
3207,
29898,
13,
9651,
6702,
267,
742,
525,
1341,
742,
525,
311,
29918,
2287,
5477,
13,
9651,
525,
16310,
2303,
29889,
3487,
742,
13,
9651,
525,
23337,
19248,
3893,
29913,
742,
13,
9651,
11117,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
16675,
13,
9651,
426,
13,
18884,
525,
23337,
29914,
267,
29914,
16310,
2303,
29889,
3487,
29889,
1129,
2396,
313,
13,
462,
1678,
16321,
29905,
29876,
7645,
333,
5124,
29905,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
7645,
333,
376,
14016,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
29915,
13,
462,
1678,
525,
7645,
333,
376,
4297,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29915,
13,
18884,
10353,
13,
18884,
525,
23337,
29914,
267,
29914,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
742,
13,
18884,
525,
23337,
29914,
1341,
29914,
16310,
2303,
29889,
3487,
29889,
1129,
2396,
313,
13,
462,
1678,
16321,
29905,
29876,
7645,
333,
5124,
29905,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
7645,
333,
376,
14016,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
29915,
13,
462,
1678,
525,
7645,
333,
376,
4297,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29915,
13,
18884,
10353,
13,
18884,
525,
23337,
29914,
1341,
29914,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
742,
13,
18884,
525,
23337,
29914,
311,
29918,
2287,
29914,
16310,
2303,
29889,
3487,
29889,
1129,
2396,
313,
13,
462,
1678,
16321,
29905,
29876,
7645,
333,
5124,
29905,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
7645,
333,
376,
14016,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29905,
29876,
29915,
13,
462,
1678,
525,
7645,
333,
376,
4297,
26732,
29876,
7645,
710,
5124,
29905,
29876,
29915,
13,
18884,
10353,
13,
18884,
525,
23337,
29914,
311,
29918,
2287,
29914,
16310,
2303,
29889,
3487,
2396,
525,
14016,
29905,
29876,
29905,
29876,
4297,
29905,
29876,
742,
13,
9651,
2981,
13,
9651,
1178,
2433,
16310,
2303,
29899,
267,
29892,
1341,
29899,
23337,
19248,
3893,
29913,
742,
13,
4706,
10353,
13,
1678,
10353,
13,
29897,
13,
1753,
1243,
29918,
3487,
29906,
1129,
29906,
3487,
29918,
25699,
29898,
13,
1678,
1962,
29918,
1191,
29892,
13,
1678,
6361,
29879,
29918,
1191,
29892,
13,
1678,
599,
29918,
3893,
29879,
29918,
262,
29918,
17642,
29918,
1191,
29892,
13,
1678,
6361,
29879,
29892,
13,
1678,
1881,
29918,
24772,
29918,
23705,
29892,
13,
1678,
1962,
29892,
13,
1678,
1881,
29918,
5325,
29918,
3051,
29892,
13,
1678,
3806,
29918,
2914,
29892,
29871,
396,
426,
5325,
29901,
8118,
29913,
470,
1059,
13,
1678,
13128,
29918,
3972,
29892,
13,
1678,
5505,
29918,
336,
4637,
29892,
13,
1125,
13,
1678,
411,
13128,
29918,
3972,
29898,
2080,
29918,
5325,
29918,
3051,
29897,
408,
2066,
3972,
29901,
13,
4706,
396,
1065,
22821,
29906,
1129,
29906,
3487,
13,
4706,
9920,
353,
518,
13,
9651,
2897,
29889,
2084,
29889,
7122,
29898,
5325,
3972,
29892,
1881,
29918,
24772,
29918,
23705,
511,
13,
9651,
1962,
29918,
1191,
29892,
13,
9651,
2897,
29889,
2084,
29889,
7122,
29898,
5325,
3972,
29892,
1962,
511,
13,
4706,
4514,
13,
13,
4706,
396,
565,
599,
10276,
526,
4502,
297,
278,
1021,
22974,
3893,
29952,
16527,
29899,
29880,
29952,
2980,
13,
4706,
565,
599,
29918,
3893,
29879,
29918,
262,
29918,
17642,
29918,
1191,
29901,
13,
9651,
9920,
29889,
21843,
4197,
3893,
29879,
29918,
1191,
29892,
334,
3893,
29879,
2314,
13,
4706,
1683,
29901,
13,
9651,
363,
6361,
297,
6361,
29879,
29901,
13,
18884,
9920,
29889,
21843,
4197,
3893,
29879,
29918,
1191,
29892,
6361,
2314,
13,
13,
4706,
9920,
29889,
4397,
877,
489,
1217,
29899,
5479,
1495,
13,
13,
4706,
411,
5505,
29918,
336,
4637,
29898,
9684,
29918,
2914,
1125,
13,
9651,
1065,
29898,
9006,
29897,
13,
13,
9651,
396,
5399,
1353,
310,
2066,
13,
9651,
3806,
29918,
4537,
29918,
974,
29918,
5325,
353,
313,
13,
18884,
7431,
29898,
9684,
29918,
2914,
29897,
718,
7431,
29898,
2080,
29918,
5325,
29918,
3051,
29897,
13,
9651,
1723,
13,
9651,
302,
29918,
5325,
353,
29871,
29900,
13,
9651,
363,
3876,
29892,
4516,
29879,
29892,
2066,
297,
2897,
29889,
20919,
29898,
5325,
3972,
29892,
2246,
3204,
29922,
8824,
1125,
13,
18884,
302,
29918,
5325,
4619,
7431,
29898,
5325,
29897,
13,
9651,
4974,
302,
29918,
5325,
1275,
3806,
29918,
4537,
29918,
974,
29918,
5325,
13,
13,
9651,
396,
5399,
3806,
2793,
13,
9651,
363,
1104,
2084,
29892,
2793,
297,
3806,
29918,
2914,
29889,
7076,
7295,
13,
18884,
934,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
5325,
3972,
29892,
1104,
2084,
29897,
13,
18884,
411,
1722,
29898,
1445,
2084,
29897,
408,
285,
29901,
13,
462,
1678,
4974,
285,
29889,
949,
580,
1275,
2793,
13,
2
] |
pyslowloris/__main__.py | goasdsdkai/daas | 75 | 129362 | """
MIT License
Copyright (c) 2017 <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 argparse
import sys
from pyslowloris import HostAddress, SlowLorisAttack
def _parse_args() -> dict:
parser = argparse.ArgumentParser(
add_help=True,
description="Asynchronous Python implementation of SlowLoris attack"
)
parser.add_argument(
"-u", "--url", action="store", type=str, required=True,
help="Link to a web server (http://google.com) - str"
)
# 247 is magic number to prevent OSError: [Errno 24] Too many open files
parser.add_argument(
"-c", "--connection-count", default=247, action="store", type=int,
help="Count of active connections (default value is 247) - int"
)
parser.add_argument(
"-s", "--silent", action='store_true',
help="Ignore all of the errors [pure attack mode] - bool"
)
# TODO(mkrivich): add support of this flag
# parser.add_argument(
# "-v", "--verbose", action='store_false',
# help="Produce more logs - bool"
# )
if len(sys.argv) == 1:
parser.print_help()
sys.exit(-1)
result = {}
args = parser.parse_args()
if args.url:
try:
result["address"] = HostAddress.from_url(args.url)
except Exception:
parser.print_help()
sys.exit(-1)
if not (0 < args.connection_count <= 300):
parser.print_help()
sys.exit(-1)
result["connections_count"] = args.connection_count
result["silent"] = args.silent
return result
def _run(target: HostAddress, connections_count: int, silent: bool) -> None:
print("Attack info:")
print(f"\tTarget: {str(target)}({target.ip_address})")
print(f"\tConnection count: {connections_count}")
print(f"\tMode (silent): {silent}")
loris = SlowLorisAttack(target, connections_count, silent=silent)
loris.start()
def main():
args = _parse_args()
# Sending requests until Ctrl+C is pressed
try:
_run(args["address"], args["connections_count"], args["silent"])
except KeyboardInterrupt:
sys.exit(0)
except Exception as ex:
print(ex)
| [
1,
9995,
13,
26349,
19245,
13,
13,
11882,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
529,
5813,
29958,
13,
13,
27293,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,
263,
3509,
13,
974,
445,
7047,
322,
6942,
5106,
2066,
313,
1552,
376,
6295,
14093,
4968,
304,
5376,
13,
262,
278,
18540,
1728,
24345,
29892,
3704,
1728,
29485,
278,
10462,
13,
517,
671,
29892,
3509,
29892,
6623,
29892,
10366,
29892,
9805,
29892,
1320,
2666,
29892,
269,
803,
1947,
29892,
322,
29914,
272,
19417,
13,
9708,
583,
310,
278,
18540,
29892,
322,
304,
14257,
12407,
304,
6029,
278,
18540,
338,
13,
29888,
595,
3276,
304,
437,
577,
29892,
4967,
304,
278,
1494,
5855,
29901,
13,
13,
1576,
2038,
3509,
1266,
8369,
322,
445,
10751,
8369,
4091,
367,
5134,
297,
599,
13,
9708,
583,
470,
23228,
2011,
1080,
310,
278,
18540,
29889,
13,
13,
28350,
7791,
7818,
12982,
1525,
8519,
13756,
13044,
3352,
376,
3289,
8519,
613,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29979,
8079,
13764,
29979,
476,
22255,
29892,
8528,
15094,
1799,
6323,
13,
29902,
3580,
5265,
3352,
29892,
2672,
6154,
15789,
4214,
350,
2692,
6058,
27848,
3352,
7495,
6093,
399,
1718,
29934,
13566,
29059,
8079,
341,
1001,
3210,
13566,
2882,
6227,
11937,
29892,
13,
29943,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
5300,
405,
1164,
1177,
15860,
1177,
1692,
13780,
29889,
2672,
11698,
382,
29963,
3919,
24972,
9818,
6093,
13,
20656,
29950,
24125,
6323,
315,
4590,
29979,
22789,
3912,
379,
5607,
8032,
29903,
20700,
17705,
6181,
15842,
13764,
29979,
315,
4375,
7833,
29892,
21330,
1529,
1692,
29903,
6323,
438,
29911,
4448,
13,
5265,
2882,
6227,
11937,
29892,
12317,
2544,
4448,
2672,
13764,
319,
9838,
8079,
8707,
29911,
4717,
1783,
29892,
323,
8476,
6323,
438,
29911,
4448,
22119,
1660,
29892,
9033,
3235,
4214,
3895,
29892,
13,
12015,
8079,
6323,
2672,
8707,
8186,
9838,
22659,
6093,
7791,
7818,
12982,
1525,
6323,
6093,
501,
1660,
6323,
438,
29911,
4448,
5012,
1964,
4214,
29903,
2672,
6093,
13,
6156,
7818,
12982,
1525,
29889,
13,
15945,
29908,
13,
5215,
1852,
5510,
13,
5215,
10876,
13,
13,
3166,
282,
952,
677,
5095,
275,
1053,
16956,
7061,
29892,
317,
677,
29931,
29367,
4165,
547,
13,
13,
13,
1753,
903,
5510,
29918,
5085,
580,
1599,
9657,
29901,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
13,
4706,
788,
29918,
8477,
29922,
5574,
29892,
13,
4706,
6139,
543,
2887,
15374,
5132,
5314,
310,
317,
677,
29931,
29367,
5337,
29908,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
11663,
29884,
613,
376,
489,
2271,
613,
3158,
543,
8899,
613,
1134,
29922,
710,
29892,
3734,
29922,
5574,
29892,
13,
4706,
1371,
543,
6595,
304,
263,
1856,
1923,
313,
1124,
597,
3608,
29889,
510,
29897,
448,
851,
29908,
13,
1678,
1723,
13,
1678,
396,
29871,
29906,
29946,
29955,
338,
15709,
1353,
304,
5557,
438,
29173,
29901,
518,
19212,
1217,
29871,
29906,
29946,
29962,
1763,
29877,
1784,
1722,
2066,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
11663,
29883,
613,
376,
489,
9965,
29899,
2798,
613,
2322,
29922,
29906,
29946,
29955,
29892,
3158,
543,
8899,
613,
1134,
29922,
524,
29892,
13,
4706,
1371,
543,
3981,
310,
6136,
12368,
313,
4381,
995,
338,
29871,
29906,
29946,
29955,
29897,
448,
938,
29908,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
11663,
29879,
613,
376,
489,
25590,
296,
613,
3158,
2433,
8899,
29918,
3009,
742,
13,
4706,
1371,
543,
23805,
599,
310,
278,
4436,
518,
29886,
545,
5337,
4464,
29962,
448,
6120,
29908,
13,
1678,
1723,
13,
13,
1678,
396,
14402,
29898,
11256,
1150,
436,
1125,
788,
2304,
310,
445,
7353,
13,
1678,
396,
13812,
29889,
1202,
29918,
23516,
29898,
13,
1678,
396,
268,
11663,
29894,
613,
376,
489,
369,
15828,
613,
3158,
2433,
8899,
29918,
4541,
742,
13,
1678,
396,
268,
1371,
543,
23665,
346,
901,
10748,
448,
6120,
29908,
13,
1678,
396,
1723,
13,
13,
1678,
565,
7431,
29898,
9675,
29889,
19218,
29897,
1275,
29871,
29896,
29901,
13,
4706,
13812,
29889,
2158,
29918,
8477,
580,
13,
4706,
10876,
29889,
13322,
6278,
29896,
29897,
13,
13,
1678,
1121,
353,
6571,
13,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
1678,
565,
6389,
29889,
2271,
29901,
13,
4706,
1018,
29901,
13,
9651,
1121,
3366,
7328,
3108,
353,
16956,
7061,
29889,
3166,
29918,
2271,
29898,
5085,
29889,
2271,
29897,
13,
4706,
5174,
8960,
29901,
13,
9651,
13812,
29889,
2158,
29918,
8477,
580,
13,
9651,
10876,
29889,
13322,
6278,
29896,
29897,
13,
1678,
565,
451,
313,
29900,
529,
6389,
29889,
9965,
29918,
2798,
5277,
29871,
29941,
29900,
29900,
1125,
13,
4706,
13812,
29889,
2158,
29918,
8477,
580,
13,
4706,
10876,
29889,
13322,
6278,
29896,
29897,
13,
1678,
1121,
3366,
11958,
1953,
29918,
2798,
3108,
353,
6389,
29889,
9965,
29918,
2798,
13,
1678,
1121,
3366,
25590,
296,
3108,
353,
6389,
29889,
25590,
296,
13,
13,
1678,
736,
1121,
13,
13,
13,
1753,
903,
3389,
29898,
5182,
29901,
16956,
7061,
29892,
12368,
29918,
2798,
29901,
938,
29892,
17436,
29901,
6120,
29897,
1599,
6213,
29901,
13,
1678,
1596,
703,
4165,
547,
5235,
29901,
1159,
13,
1678,
1596,
29898,
29888,
26732,
29873,
8667,
29901,
426,
710,
29898,
5182,
22302,
29912,
5182,
29889,
666,
29918,
7328,
1800,
1159,
13,
1678,
1596,
29898,
29888,
26732,
29873,
5350,
2302,
29901,
426,
11958,
1953,
29918,
2798,
27195,
13,
1678,
1596,
29898,
29888,
26732,
29873,
6818,
313,
25590,
296,
1125,
426,
25590,
296,
27195,
13,
1678,
301,
29367,
353,
317,
677,
29931,
29367,
4165,
547,
29898,
5182,
29892,
12368,
29918,
2798,
29892,
17436,
29922,
25590,
296,
29897,
13,
1678,
301,
29367,
29889,
2962,
580,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
6389,
353,
903,
5510,
29918,
5085,
580,
13,
1678,
396,
317,
2548,
7274,
2745,
315,
11742,
29974,
29907,
338,
15385,
13,
1678,
1018,
29901,
13,
4706,
903,
3389,
29898,
5085,
3366,
7328,
12436,
6389,
3366,
11958,
1953,
29918,
2798,
12436,
6389,
3366,
25590,
296,
20068,
13,
1678,
5174,
7670,
3377,
4074,
6685,
29901,
13,
4706,
10876,
29889,
13322,
29898,
29900,
29897,
13,
1678,
5174,
8960,
408,
429,
29901,
13,
4706,
1596,
29898,
735,
29897,
13,
2
] |
project/handler/type/request.py | SnackChain/SnackPi | 0 | 72748 | <reponame>SnackChain/SnackPi<filename>project/handler/type/request.py
import requests
from handler.type.handler import AbstractInstructionHandler
from handler.operation.client import OperationClient
class RequestInstruction():
def __init__(self, url, method, headers = None, parameters = None, request_source = None, response_source = None):
self.http_request = HTTPRequest(url, method, headers, parameters)
self.request_source = request_source
self.response_source = response_source
class HTTPRequest():
def __init__(self, url, method, headers = None, parameters = None):
self.url = url
self.headers = headers
self.parameters = parameters
self.method = method
def is_get(self):
if self.method == 'GET':
return True
else:
return False
def is_post(self):
if self.method == 'GET':
return True
else:
return False
class Network():
def do_request(self, request: HTTPRequest):
parameters = {}
headers = {}
if request.parameters:
parameters = request.parameters
if request.headers:
headers = request.headers
if request.is_get():
response = requests.get(request.url)
return self.json(response)
elif request.is_post():
response = requests.post(
request.url,
params = parameters,
headers = headers
)
return self.verify(response)
def json(self, response):
if response.status_code == requests.codes.ok:
return response.json()
else:
print("Request failed")
class RequestHandler(AbstractInstructionHandler):
def handle(self, instruction, parameter_provider):
if instruction.type == "request":
payload = instruction.payload
request_instruction = RequestInstruction(**payload)
network = Network()
json = network.do_request(request_instruction.http_request)
if json is None:
print("error")
return
#Get values based on the paths from json response
for parameter_source in request_instruction.response_source:
value = json
for key in parameter_source:
value = value[key]
parameter_provider.store_value(value)
else:
super().handle(request) | [
1,
529,
276,
1112,
420,
29958,
29903,
29876,
547,
14688,
29914,
29903,
29876,
547,
12197,
29966,
9507,
29958,
4836,
29914,
13789,
29914,
1853,
29914,
3827,
29889,
2272,
13,
5215,
7274,
13,
3166,
7834,
29889,
1853,
29889,
13789,
1053,
25513,
3379,
4080,
4598,
13,
3166,
7834,
29889,
16453,
29889,
4645,
1053,
20462,
4032,
13,
13,
1990,
10729,
3379,
4080,
7295,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
3142,
29892,
1158,
29892,
9066,
353,
6213,
29892,
4128,
353,
6213,
29892,
2009,
29918,
4993,
353,
6213,
29892,
2933,
29918,
4993,
353,
6213,
1125,
13,
12,
12,
1311,
29889,
1124,
29918,
3827,
353,
7331,
3089,
29898,
2271,
29892,
1158,
29892,
9066,
29892,
4128,
29897,
13,
12,
12,
1311,
29889,
3827,
29918,
4993,
353,
2009,
29918,
4993,
13,
12,
12,
1311,
29889,
5327,
29918,
4993,
353,
2933,
29918,
4993,
13,
13,
1990,
7331,
3089,
7295,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
3142,
29892,
1158,
29892,
9066,
353,
6213,
29892,
4128,
353,
6213,
1125,
13,
12,
12,
1311,
29889,
2271,
353,
3142,
13,
12,
12,
1311,
29889,
13662,
353,
9066,
13,
12,
12,
1311,
29889,
16744,
353,
4128,
13,
12,
12,
1311,
29889,
5696,
353,
1158,
13,
13,
12,
1753,
338,
29918,
657,
29898,
1311,
1125,
13,
12,
12,
361,
1583,
29889,
5696,
1275,
525,
7194,
2396,
13,
12,
12,
12,
2457,
5852,
13,
12,
12,
2870,
29901,
13,
12,
12,
12,
2457,
7700,
13,
13,
12,
1753,
338,
29918,
2490,
29898,
1311,
1125,
13,
12,
12,
361,
1583,
29889,
5696,
1275,
525,
7194,
2396,
13,
12,
12,
12,
2457,
5852,
13,
12,
12,
2870,
29901,
13,
12,
12,
12,
2457,
7700,
13,
13,
1990,
8527,
7295,
13,
12,
1753,
437,
29918,
3827,
29898,
1311,
29892,
2009,
29901,
7331,
3089,
1125,
13,
12,
12,
16744,
353,
6571,
13,
12,
12,
13662,
353,
6571,
13,
12,
12,
361,
2009,
29889,
16744,
29901,
13,
12,
12,
12,
16744,
353,
2009,
29889,
16744,
13,
12,
12,
361,
2009,
29889,
13662,
29901,
13,
12,
12,
12,
13662,
353,
2009,
29889,
13662,
13,
12,
12,
361,
2009,
29889,
275,
29918,
657,
7295,
13,
12,
12,
12,
5327,
353,
7274,
29889,
657,
29898,
3827,
29889,
2271,
29897,
13,
12,
12,
12,
2457,
1583,
29889,
3126,
29898,
5327,
29897,
13,
12,
12,
23681,
2009,
29889,
275,
29918,
2490,
7295,
13,
12,
12,
12,
5327,
353,
7274,
29889,
2490,
29898,
13,
12,
12,
12,
12,
3827,
29889,
2271,
29892,
13,
12,
12,
12,
12,
7529,
353,
4128,
29892,
13,
12,
12,
12,
12,
13662,
353,
9066,
13,
12,
12,
12,
12,
29897,
13,
12,
12,
12,
2457,
1583,
29889,
27902,
29898,
5327,
29897,
13,
12,
12,
13,
13,
12,
1753,
4390,
29898,
1311,
29892,
2933,
1125,
13,
12,
12,
361,
2933,
29889,
4882,
29918,
401,
1275,
7274,
29889,
18137,
29889,
554,
29901,
13,
12,
12,
12,
2457,
2933,
29889,
3126,
580,
13,
12,
12,
2870,
29901,
13,
12,
12,
12,
2158,
703,
3089,
5229,
1159,
13,
13,
1990,
10729,
4598,
29898,
9118,
3379,
4080,
4598,
1125,
13,
13,
12,
1753,
4386,
29898,
1311,
29892,
15278,
29892,
3443,
29918,
18121,
1125,
13,
12,
12,
361,
15278,
29889,
1853,
1275,
376,
3827,
1115,
13,
12,
12,
12,
23813,
353,
15278,
29889,
23813,
13,
12,
12,
12,
3827,
29918,
2611,
4080,
353,
10729,
3379,
4080,
29898,
1068,
23813,
29897,
13,
12,
12,
12,
11618,
353,
8527,
580,
13,
12,
12,
12,
3126,
353,
3564,
29889,
1867,
29918,
3827,
29898,
3827,
29918,
2611,
4080,
29889,
1124,
29918,
3827,
29897,
13,
13,
12,
12,
12,
361,
4390,
338,
6213,
29901,
13,
12,
12,
12,
12,
2158,
703,
2704,
1159,
13,
12,
12,
12,
12,
2457,
13,
13,
12,
12,
12,
29937,
2577,
1819,
2729,
373,
278,
10898,
515,
4390,
2933,
13,
12,
12,
12,
1454,
3443,
29918,
4993,
297,
2009,
29918,
2611,
4080,
29889,
5327,
29918,
4993,
29901,
13,
12,
12,
12,
12,
1767,
353,
4390,
13,
12,
12,
12,
12,
1454,
1820,
297,
3443,
29918,
4993,
29901,
13,
12,
12,
12,
12,
12,
1767,
353,
995,
29961,
1989,
29962,
13,
12,
12,
12,
12,
15501,
29918,
18121,
29889,
8899,
29918,
1767,
29898,
1767,
29897,
13,
12,
12,
2870,
29901,
13,
12,
12,
12,
9136,
2141,
8411,
29898,
3827,
29897,
2
] |
asynchronous_qiwi/models/QIWIWallet/master_m/list_qvc.py | LexLuthorReal/asynchronous_qiwi | 3 | 20624 | <reponame>LexLuthorReal/asynchronous_qiwi<filename>asynchronous_qiwi/models/QIWIWallet/master_m/list_qvc.py
from loguru import logger
import datetime
from pydantic.fields import ModelField
from typing import Optional, List, Union, Any
from ....utils.tools.str_datetime import convert
from pydantic import BaseModel, Field, validator, ValidationError
from ....data_types.QIWIWallet.list_qvc import ReleasedCardStatus, CardType, CardAlias
class AmountData(BaseModel):
"""Object: \"AmountData\""""
amount: float = Field(..., alias="amount")
currency: str = Field(..., alias="currency")
class Requisites(BaseModel):
name: str = Field(..., alias="name")
value: str = Field(..., alias="value")
class Details(BaseModel):
info: str = Field(..., alias="info")
description: str = Field(..., alias="description")
tariff_link: str = Field(..., alias="tariffLink")
offer_link: str = Field(..., alias="offerLink")
features: List[Any] = Field(..., alias="features")
requisites: List[Union[Requisites]] = Field(..., alias="requisites")
class Info(BaseModel):
id: int = Field(..., alias="id")
name: str = Field(..., alias="name")
alias: Union[str, CardAlias] = Field(..., alias="alias")
price: AmountData = Field(..., alias="price")
period: str = Field(..., alias="period")
type: Union[str, CardAlias] = Field(..., alias="type")
details: Details = Field(..., alias="details")
@validator("alias")
def alias_type(cls, alias: Union[str, CardAlias], field: ModelField) -> CardAlias:
if isinstance(alias, str):
try:
alias = CardAlias(alias)
except KeyError as e:
logger.warning(f"[VALIDATION CONVERT] {field.name.upper()}: " + str(e))
else:
return alias
elif isinstance(alias, CardAlias):
return alias
raise ValidationError(model=Info)
@validator("type")
def card_type_type(cls, card_type: Union[str, CardAlias], field: ModelField) -> CardAlias:
if isinstance(card_type, str):
try:
card_type = CardAlias[card_type]
except KeyError as e:
logger.warning(f"[VALIDATION CONVERT] {field.name.upper()}: " + str(e))
else:
return card_type
elif isinstance(card_type, CardAlias):
return card_type
raise ValidationError(model=Info)
class QVX(BaseModel):
id: int = Field(..., alias="id")
masked_pan: str = Field(..., alias="maskedPan")
status: Optional[Union[str, ReleasedCardStatus]] = Field(..., alias="status")
card_expire: Optional[Union[str, datetime.datetime]] = Field(..., alias="cardExpire")
card_type: Optional[Union[str, CardType]] = Field(..., alias="cardType")
card_alias: str = Field(..., alias="cardAlias")
card_limit: Optional[str] = Field(..., alias="cardLimit")
activated: Optional[Union[str, datetime.datetime]] = Field(..., alias="activated")
sms_resended: Optional[Union[str, datetime.datetime]] = Field(..., alias="smsResended")
post_number: Optional[str] = Field(..., alias="postNumber")
blocked_date: Optional[Union[str, datetime.datetime]] = Field(..., alias="blockedDate")
full_pan: Optional[str] = Field(..., alias="fullPan")
card_id: int = Field(..., alias="cardId")
txn_id: str = Field(..., alias="txnId")
card_expire_month: str = Field(..., alias="cardExpireMonth")
card_expire_year: str = Field(..., alias="cardExpireYear")
@validator('status')
def status_types(cls, status: Union[str, ReleasedCardStatus], field: ModelField) -> ReleasedCardStatus:
if isinstance(status, str):
try:
status = ReleasedCardStatus[status]
except KeyError as e:
logger.warning(f"[VALIDATION CONVERT] {field.name.upper()}: " + str(e))
else:
return status
elif isinstance(status, ReleasedCardStatus):
return status
raise ValidationError(model=QVX)
@validator('card_expire')
def card_expire_datetime(cls, card_expire: Optional[Union[str, datetime.datetime]],
field: ModelField) -> Optional[datetime.datetime]:
if isinstance(card_expire, str):
card_expire = convert(value=card_expire, validator_name=field.name.upper(), alert=False)
return card_expire
elif isinstance(card_expire, datetime.datetime):
return card_expire
elif card_expire is None:
return card_expire
raise ValidationError(model=QVX)
@validator('card_type')
def card_types(cls, card_type: Union[str, CardType], field: ModelField) -> CardType:
if isinstance(card_type, str):
try:
card_type = CardType[card_type]
except KeyError as e:
logger.warning(f"[VALIDATION CONVERT] {field.name.upper()}: " + str(e))
else:
return card_type
elif isinstance(card_type, CardType):
return card_type
raise ValidationError(model=QVX)
@validator('activated')
def activated_datetime(cls, activated: Optional[Union[str, datetime.datetime]],
field: ModelField) -> Optional[datetime.datetime]:
if isinstance(activated, str):
activated = convert(value=activated, validator_name=field.name.upper(), alert=False)
return activated
elif isinstance(activated, datetime.datetime):
return activated
elif activated is None:
return activated
raise ValidationError(model=QVX)
@validator('sms_resended')
def sms_resended_datetime(cls, sms_resended: Optional[Union[str, datetime.datetime]],
field: ModelField) -> Optional[datetime.datetime]:
if isinstance(sms_resended, str):
sms_resended = convert(value=sms_resended, validator_name=field.name.upper(), alert=False)
return sms_resended
elif isinstance(sms_resended, datetime.datetime):
return sms_resended
elif sms_resended is None:
return sms_resended
raise ValidationError(model=QVX)
@validator('blocked_date')
def blocked_date_datetime(cls, blocked_date: Optional[Union[str, datetime.datetime]],
field: ModelField) -> Optional[datetime.datetime]:
if isinstance(blocked_date, str):
blocked_date = convert(value=blocked_date, validator_name=field.name.upper(), alert=False)
return blocked_date
elif isinstance(blocked_date, datetime.datetime):
return blocked_date
elif blocked_date is None:
return blocked_date
raise ValidationError(model=QVX)
class ListCard(BaseModel):
qvx: QVX = Field(..., alias="qvx")
balance: Optional[AmountData] = Field(..., alias="balance")
info: Info = Field(..., alias="info")
features: List[Any] = Field(..., alias="features")
class ListCardMaster(BaseModel):
data: List[Union[ListCard]] = Field(..., alias="data")
| [
1,
529,
276,
1112,
420,
29958,
29931,
735,
29931,
329,
2015,
21713,
29914,
294,
15374,
29918,
26461,
4353,
29966,
9507,
29958,
294,
15374,
29918,
26461,
4353,
29914,
9794,
29914,
29984,
29902,
22119,
29956,
284,
1026,
29914,
6207,
29918,
29885,
29914,
1761,
29918,
29939,
7071,
29889,
2272,
13,
3166,
1480,
20144,
1053,
17927,
13,
5215,
12865,
13,
3166,
282,
2941,
7716,
29889,
9621,
1053,
8125,
3073,
13,
3166,
19229,
1053,
28379,
29892,
2391,
29892,
7761,
29892,
3139,
13,
3166,
13035,
13239,
29889,
8504,
29889,
710,
29918,
12673,
1053,
3588,
13,
3166,
282,
2941,
7716,
1053,
7399,
3195,
29892,
8989,
29892,
2854,
1061,
29892,
15758,
362,
2392,
13,
3166,
13035,
1272,
29918,
8768,
29889,
29984,
29902,
22119,
29956,
284,
1026,
29889,
1761,
29918,
29939,
7071,
1053,
830,
4611,
13200,
5709,
29892,
9160,
1542,
29892,
9160,
29909,
18849,
13,
13,
13,
1990,
1913,
792,
1469,
29898,
5160,
3195,
1125,
13,
1678,
9995,
2061,
29901,
13218,
18087,
1469,
5931,
15945,
29908,
13,
13,
1678,
5253,
29901,
5785,
353,
8989,
29898,
16361,
13995,
543,
14506,
1159,
13,
1678,
27550,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
26095,
1159,
13,
13,
13,
1990,
830,
7680,
3246,
29898,
5160,
3195,
1125,
13,
1678,
1024,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
978,
1159,
13,
1678,
995,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
1767,
1159,
13,
13,
13,
1990,
25577,
29898,
5160,
3195,
1125,
13,
1678,
5235,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
3888,
1159,
13,
1678,
6139,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
8216,
1159,
13,
1678,
9913,
2593,
29918,
2324,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
12637,
2593,
6595,
1159,
13,
1678,
5957,
29918,
2324,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
974,
571,
6595,
1159,
13,
1678,
5680,
29901,
2391,
29961,
10773,
29962,
353,
8989,
29898,
16361,
13995,
543,
22100,
1159,
13,
1678,
5054,
275,
3246,
29901,
2391,
29961,
19986,
29961,
1123,
7680,
3246,
5262,
353,
8989,
29898,
16361,
13995,
543,
276,
7680,
3246,
1159,
13,
13,
13,
1990,
22140,
29898,
5160,
3195,
1125,
13,
1678,
1178,
29901,
938,
353,
8989,
29898,
16361,
13995,
543,
333,
1159,
13,
1678,
1024,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
978,
1159,
13,
1678,
13995,
29901,
7761,
29961,
710,
29892,
9160,
29909,
18849,
29962,
353,
8989,
29898,
16361,
13995,
543,
19973,
1159,
13,
1678,
8666,
29901,
1913,
792,
1469,
353,
8989,
29898,
16361,
13995,
543,
9175,
1159,
13,
1678,
3785,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
19145,
1159,
13,
1678,
1134,
29901,
7761,
29961,
710,
29892,
9160,
29909,
18849,
29962,
353,
8989,
29898,
16361,
13995,
543,
1853,
1159,
13,
1678,
4902,
29901,
25577,
353,
8989,
29898,
16361,
13995,
543,
14144,
1159,
13,
13,
1678,
732,
3084,
1061,
703,
19973,
1159,
13,
1678,
822,
13995,
29918,
1853,
29898,
25932,
29892,
13995,
29901,
7761,
29961,
710,
29892,
9160,
29909,
18849,
1402,
1746,
29901,
8125,
3073,
29897,
1599,
9160,
29909,
18849,
29901,
13,
4706,
565,
338,
8758,
29898,
19973,
29892,
851,
1125,
13,
9651,
1018,
29901,
13,
18884,
13995,
353,
9160,
29909,
18849,
29898,
19973,
29897,
13,
9651,
5174,
7670,
2392,
408,
321,
29901,
13,
18884,
17927,
29889,
27392,
29898,
29888,
29908,
29961,
26707,
8098,
8707,
5348,
29911,
29962,
426,
2671,
29889,
978,
29889,
21064,
580,
6177,
376,
718,
851,
29898,
29872,
876,
13,
9651,
1683,
29901,
13,
18884,
736,
13995,
13,
4706,
25342,
338,
8758,
29898,
19973,
29892,
9160,
29909,
18849,
1125,
13,
9651,
736,
13995,
13,
4706,
12020,
15758,
362,
2392,
29898,
4299,
29922,
3401,
29897,
13,
13,
1678,
732,
3084,
1061,
703,
1853,
1159,
13,
1678,
822,
5881,
29918,
1853,
29918,
1853,
29898,
25932,
29892,
5881,
29918,
1853,
29901,
7761,
29961,
710,
29892,
9160,
29909,
18849,
1402,
1746,
29901,
8125,
3073,
29897,
1599,
9160,
29909,
18849,
29901,
13,
4706,
565,
338,
8758,
29898,
7543,
29918,
1853,
29892,
851,
1125,
13,
9651,
1018,
29901,
13,
18884,
5881,
29918,
1853,
353,
9160,
29909,
18849,
29961,
7543,
29918,
1853,
29962,
13,
9651,
5174,
7670,
2392,
408,
321,
29901,
13,
18884,
17927,
29889,
27392,
29898,
29888,
29908,
29961,
26707,
8098,
8707,
5348,
29911,
29962,
426,
2671,
29889,
978,
29889,
21064,
580,
6177,
376,
718,
851,
29898,
29872,
876,
13,
9651,
1683,
29901,
13,
18884,
736,
5881,
29918,
1853,
13,
4706,
25342,
338,
8758,
29898,
7543,
29918,
1853,
29892,
9160,
29909,
18849,
1125,
13,
9651,
736,
5881,
29918,
1853,
13,
4706,
12020,
15758,
362,
2392,
29898,
4299,
29922,
3401,
29897,
13,
13,
13,
1990,
660,
29963,
29990,
29898,
5160,
3195,
1125,
13,
1678,
1178,
29901,
938,
353,
8989,
29898,
16361,
13995,
543,
333,
1159,
13,
1678,
11105,
287,
29918,
8357,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
13168,
287,
23684,
1159,
13,
1678,
4660,
29901,
28379,
29961,
19986,
29961,
710,
29892,
830,
4611,
13200,
5709,
5262,
353,
8989,
29898,
16361,
13995,
543,
4882,
1159,
13,
1678,
5881,
29918,
4548,
533,
29901,
28379,
29961,
19986,
29961,
710,
29892,
12865,
29889,
12673,
5262,
353,
8989,
29898,
16361,
13995,
543,
7543,
9544,
533,
1159,
13,
1678,
5881,
29918,
1853,
29901,
28379,
29961,
19986,
29961,
710,
29892,
9160,
1542,
5262,
353,
8989,
29898,
16361,
13995,
543,
7543,
1542,
1159,
13,
1678,
5881,
29918,
19973,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
7543,
29909,
18849,
1159,
13,
1678,
5881,
29918,
13400,
29901,
28379,
29961,
710,
29962,
353,
8989,
29898,
16361,
13995,
543,
7543,
24445,
1159,
13,
1678,
5039,
630,
29901,
28379,
29961,
19986,
29961,
710,
29892,
12865,
29889,
12673,
5262,
353,
8989,
29898,
16361,
13995,
543,
11236,
630,
1159,
13,
1678,
269,
1516,
29918,
690,
2760,
29901,
28379,
29961,
19986,
29961,
710,
29892,
12865,
29889,
12673,
5262,
353,
8989,
29898,
16361,
13995,
543,
29879,
1516,
1666,
2760,
1159,
13,
1678,
1400,
29918,
4537,
29901,
28379,
29961,
710,
29962,
353,
8989,
29898,
16361,
13995,
543,
2490,
4557,
1159,
13,
1678,
24370,
29918,
1256,
29901,
28379,
29961,
19986,
29961,
710,
29892,
12865,
29889,
12673,
5262,
353,
8989,
29898,
16361,
13995,
543,
1271,
287,
2539,
1159,
13,
1678,
2989,
29918,
8357,
29901,
28379,
29961,
710,
29962,
353,
8989,
29898,
16361,
13995,
543,
8159,
23684,
1159,
13,
1678,
5881,
29918,
333,
29901,
938,
353,
8989,
29898,
16361,
13995,
543,
7543,
1204,
1159,
13,
1678,
25568,
29876,
29918,
333,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
7508,
29876,
1204,
1159,
13,
1678,
5881,
29918,
4548,
533,
29918,
10874,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
7543,
9544,
533,
13953,
1159,
13,
1678,
5881,
29918,
4548,
533,
29918,
6360,
29901,
851,
353,
8989,
29898,
16361,
13995,
543,
7543,
9544,
533,
12883,
1159,
13,
13,
1678,
732,
3084,
1061,
877,
4882,
1495,
13,
1678,
822,
4660,
29918,
8768,
29898,
25932,
29892,
4660,
29901,
7761,
29961,
710,
29892,
830,
4611,
13200,
5709,
1402,
1746,
29901,
8125,
3073,
29897,
1599,
830,
4611,
13200,
5709,
29901,
13,
4706,
565,
338,
8758,
29898,
4882,
29892,
851,
1125,
13,
9651,
1018,
29901,
13,
18884,
4660,
353,
830,
4611,
13200,
5709,
29961,
4882,
29962,
13,
9651,
5174,
7670,
2392,
408,
321,
29901,
13,
18884,
17927,
29889,
27392,
29898,
29888,
29908,
29961,
26707,
8098,
8707,
5348,
29911,
29962,
426,
2671,
29889,
978,
29889,
21064,
580,
6177,
376,
718,
851,
29898,
29872,
876,
13,
9651,
1683,
29901,
13,
18884,
736,
4660,
13,
4706,
25342,
338,
8758,
29898,
4882,
29892,
830,
4611,
13200,
5709,
1125,
13,
9651,
736,
4660,
13,
4706,
12020,
15758,
362,
2392,
29898,
4299,
29922,
29984,
29963,
29990,
29897,
13,
13,
1678,
732,
3084,
1061,
877,
7543,
29918,
4548,
533,
1495,
13,
1678,
822,
5881,
29918,
4548,
533,
29918,
12673,
29898,
25932,
29892,
5881,
29918,
4548,
533,
29901,
28379,
29961,
19986,
29961,
710,
29892,
12865,
29889,
12673,
20526,
13,
462,
632,
1746,
29901,
8125,
3073,
29897,
1599,
28379,
29961,
12673,
29889,
12673,
5387,
13,
4706,
565,
338,
8758,
29898,
7543,
29918,
4548,
533,
29892,
851,
1125,
13,
9651,
5881,
29918,
4548,
533,
353,
3588,
29898,
1767,
29922,
7543,
29918,
4548,
533,
29892,
2854,
1061,
29918,
978,
29922,
2671,
29889,
978,
29889,
21064,
3285,
6655,
29922,
8824,
29897,
13,
9651,
736,
5881,
29918,
4548,
533,
13,
4706,
25342,
338,
8758,
29898,
7543,
29918,
4548,
533,
29892,
12865,
29889,
12673,
1125,
13,
9651,
736,
5881,
29918,
4548,
533,
13,
4706,
25342,
5881,
29918,
4548,
533,
338,
6213,
29901,
13,
9651,
736,
5881,
29918,
4548,
533,
13,
4706,
12020,
15758,
362,
2392,
29898,
4299,
29922,
29984,
29963,
29990,
29897,
13,
13,
1678,
732,
3084,
1061,
877,
7543,
29918,
1853,
1495,
13,
1678,
822,
5881,
29918,
8768,
29898,
25932,
29892,
5881,
29918,
1853,
29901,
7761,
29961,
710,
29892,
9160,
1542,
1402,
1746,
29901,
8125,
3073,
29897,
1599,
9160,
1542,
29901,
13,
4706,
565,
338,
8758,
29898,
7543,
29918,
1853,
29892,
851,
1125,
13,
9651,
1018,
29901,
13,
18884,
5881,
29918,
1853,
353,
9160,
1542,
29961,
7543,
29918,
1853,
29962,
13,
9651,
5174,
7670,
2392,
408,
321,
29901,
13,
18884,
17927,
29889,
27392,
29898,
29888,
29908,
29961,
26707,
8098,
8707,
5348,
29911,
29962,
426,
2671,
29889,
978,
29889,
21064,
580,
6177,
376,
718,
851,
29898,
29872,
876,
13,
9651,
1683,
29901,
13,
18884,
736,
5881,
29918,
1853,
13,
4706,
25342,
338,
8758,
29898,
7543,
29918,
1853,
29892,
9160,
1542,
1125,
13,
9651,
736,
5881,
29918,
1853,
13,
4706,
12020,
15758,
362,
2392,
29898,
4299,
29922,
29984,
29963,
29990,
29897,
13,
13,
1678,
732,
3084,
1061,
877,
11236,
630,
1495,
13,
1678,
822,
5039,
630,
29918,
12673,
29898,
25932,
29892,
5039,
630,
29901,
28379,
29961,
19986,
29961,
710,
29892,
12865,
29889,
12673,
20526,
13,
462,
965,
1746,
29901,
8125,
3073,
29897,
1599,
28379,
29961,
12673,
29889,
12673,
5387,
13,
4706,
565,
338,
8758,
29898,
11236,
630,
29892,
851,
1125,
13,
9651,
5039,
630,
353,
3588,
29898,
1767,
29922,
11236,
630,
29892,
2854,
1061,
29918,
978,
29922,
2671,
29889,
978,
29889,
21064,
3285,
6655,
29922,
8824,
29897,
13,
9651,
736,
5039,
630,
13,
4706,
25342,
338,
8758,
29898,
11236,
630,
29892,
12865,
29889,
12673,
1125,
13,
9651,
736,
5039,
630,
13,
4706,
25342,
5039,
630,
338,
6213,
29901,
13,
9651,
736,
5039,
630,
13,
4706,
12020,
15758,
362,
2392,
29898,
4299,
29922,
29984,
29963,
29990,
29897,
13,
13,
1678,
732,
3084,
1061,
877,
29879,
1516,
29918,
690,
2760,
1495,
13,
1678,
822,
269,
1516,
29918,
690,
2760,
29918,
12673,
29898,
25932,
29892,
269,
1516,
29918,
690,
2760,
29901,
28379,
29961,
19986,
29961,
710,
29892,
12865,
29889,
12673,
20526,
13,
462,
795,
1746,
29901,
8125,
3073,
29897,
1599,
28379,
29961,
12673,
29889,
12673,
5387,
13,
4706,
565,
338,
8758,
29898,
29879,
1516,
29918,
690,
2760,
29892,
851,
1125,
13,
9651,
269,
1516,
29918,
690,
2760,
353,
3588,
29898,
1767,
29922,
29879,
1516,
29918,
690,
2760,
29892,
2854,
1061,
29918,
978,
29922,
2671,
29889,
978,
29889,
21064,
3285,
6655,
29922,
8824,
29897,
13,
9651,
736,
269,
1516,
29918,
690,
2760,
13,
4706,
25342,
338,
8758,
29898,
29879,
1516,
29918,
690,
2760,
29892,
12865,
29889,
12673,
1125,
13,
9651,
736,
269,
1516,
29918,
690,
2760,
13,
4706,
25342,
269,
1516,
29918,
690,
2760,
338,
6213,
29901,
13,
9651,
736,
269,
1516,
29918,
690,
2760,
13,
4706,
12020,
15758,
362,
2392,
29898,
4299,
29922,
29984,
29963,
29990,
29897,
13,
13,
1678,
732,
3084,
1061,
877,
1271,
287,
29918,
1256,
1495,
13,
1678,
822,
24370,
29918,
1256,
29918,
12673,
29898,
25932,
29892,
24370,
29918,
1256,
29901,
28379,
29961,
19986,
29961,
710,
29892,
12865,
29889,
12673,
20526,
13,
462,
795,
1746,
29901,
8125,
3073,
29897,
1599,
28379,
29961,
12673,
29889,
12673,
5387,
13,
4706,
565,
338,
8758,
29898,
1271,
287,
29918,
1256,
29892,
851,
1125,
13,
9651,
24370,
29918,
1256,
353,
3588,
29898,
1767,
29922,
1271,
287,
29918,
1256,
29892,
2854,
1061,
29918,
978,
29922,
2671,
29889,
978,
29889,
21064,
3285,
6655,
29922,
8824,
29897,
13,
9651,
736,
24370,
29918,
1256,
13,
4706,
25342,
338,
8758,
29898,
1271,
287,
29918,
1256,
29892,
12865,
29889,
12673,
1125,
13,
9651,
736,
24370,
29918,
1256,
13,
4706,
25342,
24370,
29918,
1256,
338,
6213,
29901,
13,
9651,
736,
24370,
29918,
1256,
13,
4706,
12020,
15758,
362,
2392,
29898,
4299,
29922,
29984,
29963,
29990,
29897,
13,
13,
13,
1990,
2391,
13200,
29898,
5160,
3195,
1125,
13,
1678,
3855,
29894,
29916,
29901,
660,
29963,
29990,
353,
8989,
29898,
16361,
13995,
543,
29939,
29894,
29916,
1159,
13,
1678,
17346,
29901,
28379,
29961,
18087,
1469,
29962,
353,
8989,
29898,
16361,
13995,
543,
5521,
749,
1159,
13,
1678,
5235,
29901,
22140,
353,
8989,
29898,
16361,
13995,
543,
3888,
1159,
13,
1678,
5680,
29901,
2391,
29961,
10773,
29962,
353,
8989,
29898,
16361,
13995,
543,
22100,
1159,
13,
13,
13,
1990,
2391,
13200,
19203,
29898,
5160,
3195,
1125,
13,
1678,
848,
29901,
2391,
29961,
19986,
29961,
1293,
13200,
5262,
353,
8989,
29898,
16361,
13995,
543,
1272,
1159,
13,
2
] |
kg.py | Jie-Yuan/BaiduAI-sdk | 0 | 182771 | <filename>kg.py<gh_stars>0
import json
import urllib
import requests
import json
import urllib
import requests
class BaiDuNLP(object):
def __init__(self, api_key='<KEY>', secret_key='<KEY>'):
self.access_token = None
self._get_access_token(api_key, secret_key)
def predict(self, text, api_url):
"""
api_url = 'https://aip.baidubce.com/rpc/2.0/kg/v1/cognitive/entity_annotation?charset=UTF-8&access_token='
api = BaiDuNLP()
api.predict('周杰伦', api_url)
"""
url = api_url + self.access_token
# the input is json format
input_text = {'data': text}
input_text = json.dumps(input_text)
r = requests.post(url, data=input_text, headers={'Content-Type': 'application/json'})
return r.json()
def _get_access_token(self, api_key, secret_key):
host = f'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id={api_key}&client_secret={secret_key}'
request = urllib.request.Request(host)
request.add_header('Content-Type', 'application/json; charset=UTF-8')
response = urllib.request.urlopen(request)
content = response.read()
self.access_token = json.loads(content)['access_token']
| [
1,
529,
9507,
29958,
9415,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
4390,
13,
5215,
3142,
1982,
13,
13,
5215,
7274,
13,
13,
13,
5215,
4390,
13,
5215,
3142,
1982,
13,
13,
5215,
7274,
13,
13,
13,
1990,
350,
1794,
29928,
29884,
29940,
13208,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
7882,
29918,
1989,
2433,
29966,
10818,
29958,
742,
7035,
29918,
1989,
2433,
29966,
10818,
16299,
1125,
13,
4706,
1583,
29889,
5943,
29918,
6979,
353,
6213,
13,
4706,
1583,
3032,
657,
29918,
5943,
29918,
6979,
29898,
2754,
29918,
1989,
29892,
7035,
29918,
1989,
29897,
13,
13,
1678,
822,
8500,
29898,
1311,
29892,
1426,
29892,
7882,
29918,
2271,
1125,
13,
4706,
9995,
13,
4706,
7882,
29918,
2271,
353,
525,
991,
597,
29874,
666,
29889,
2291,
333,
431,
346,
29889,
510,
29914,
29878,
6739,
29914,
29906,
29889,
29900,
29914,
9415,
29914,
29894,
29896,
29914,
29883,
3811,
3321,
29914,
10041,
29918,
18317,
29973,
3090,
842,
29922,
10496,
29899,
29947,
29987,
5943,
29918,
6979,
2433,
13,
4706,
7882,
353,
350,
1794,
29928,
29884,
29940,
13208,
580,
13,
4706,
7882,
29889,
27711,
877,
31109,
233,
160,
179,
231,
191,
169,
742,
7882,
29918,
2271,
29897,
13,
4706,
9995,
13,
4706,
3142,
353,
7882,
29918,
2271,
718,
1583,
29889,
5943,
29918,
6979,
13,
308,
13,
4706,
396,
278,
1881,
338,
4390,
3402,
13,
4706,
1881,
29918,
726,
353,
11117,
1272,
2396,
1426,
29913,
13,
4706,
1881,
29918,
726,
353,
4390,
29889,
29881,
17204,
29898,
2080,
29918,
726,
29897,
13,
308,
13,
4706,
364,
353,
7274,
29889,
2490,
29898,
2271,
29892,
848,
29922,
2080,
29918,
726,
29892,
9066,
3790,
29915,
3916,
29899,
1542,
2396,
525,
6214,
29914,
3126,
29915,
1800,
13,
4706,
736,
364,
29889,
3126,
580,
13,
13,
1678,
822,
903,
657,
29918,
5943,
29918,
6979,
29898,
1311,
29892,
7882,
29918,
1989,
29892,
7035,
29918,
1989,
1125,
13,
4706,
3495,
353,
285,
29915,
991,
597,
29874,
666,
29889,
2291,
333,
431,
346,
29889,
510,
29914,
23106,
29914,
29906,
29889,
29900,
29914,
6979,
29973,
629,
424,
29918,
1853,
29922,
4645,
29918,
11944,
9409,
29987,
4645,
29918,
333,
3790,
2754,
29918,
1989,
15704,
4645,
29918,
19024,
3790,
19024,
29918,
1989,
10162,
13,
4706,
2009,
353,
3142,
1982,
29889,
3827,
29889,
3089,
29898,
3069,
29897,
13,
4706,
2009,
29889,
1202,
29918,
6672,
877,
3916,
29899,
1542,
742,
525,
6214,
29914,
3126,
29936,
17425,
29922,
10496,
29899,
29947,
1495,
13,
4706,
2933,
353,
3142,
1982,
29889,
3827,
29889,
332,
417,
2238,
29898,
3827,
29897,
13,
4706,
2793,
353,
2933,
29889,
949,
580,
13,
4706,
1583,
29889,
5943,
29918,
6979,
353,
4390,
29889,
18132,
29898,
3051,
29897,
1839,
5943,
29918,
6979,
2033,
13,
2
] |
flir_lepton_auxiliary/scripts/produce_dataset.py | angetria/flir_lepton_rpi2 | 15 | 85046 | #!usr/bin/python
import sys
# The area of interest(pixels) to find the mean temperature
x1 = 52
x2 = 54
y1 = 18
y2 = 20
# The area of neutral pixels to find the mean temperature
x3 = 66
x4 = 68
y3 = 6
y4 = 8
# Make the dataset from raw pixel flir-lepton images.
try:
dataset = open("dataset.iemb","w")
except IOError:
print "dataset file could not be made"
sys.exit()
# Process each image raw data for all images
for i in range(20,51):
# The flir-lepton images to be read.
fileName = \
"Input your flir-lepton images full path"\
+ str(i) + ".iemb"
try:
data = open(fileName, "r")
except IOError:
print "No file was found"
sys.exit()
#counter = 0
signal_val = []
with open(fileName, "r") as file:
for line in file:
#counter = counter + 1
signal_val.append(line)
temp = signal_val[0].split()
# To read specific pixel(x,y) must give : gimp gives inverted x,y coords
# average = the average temperature of the point of interest
# av = the average temperature of a neutral area
average = 0
av = 0
if i < 51:
for x in range(x1,x2):
for y in range(y1,y2):
# for raw data images
a = y * 80 + x
average = average + int(temp[a])
# Find in the other array whats going on in pixel values
for x in range(x3,x4):
for y in range(y3,y4):
b = y * 80 + x
av = av + int(temp[b])
average = average / 4
av = av / 4
# If we check second area
#else:
#for x in range(24,26):
#temp = signal_val[x].split()
#for y in range(42,44):
#a = int(temp[y])
#average = average + a
#Find in the other array whats going on in pix values
#for x in range(10,12):
#temp = signal_val[x].split()
#for y in range(65,67):
#a = int(temp[y])
#av = av + a
#average = average / 4
#av = av / 4
# Make the file with our own standards, for even numbers of rows place
# the raw pixel values, for odd the degree's.
degree = str(i) + "\n"
raw = str(average) + "\n"
dataset.write(raw)
dataset.write(degree)
print "The average of image", i ,"=",average
print "The av of image", i ,"=",av
data.close()
dataset.close()
| [
1,
396,
29991,
4855,
29914,
2109,
29914,
4691,
13,
13,
5215,
10876,
13,
13,
29937,
450,
4038,
310,
4066,
29898,
29886,
861,
1379,
29897,
304,
1284,
278,
2099,
10430,
13,
29916,
29896,
353,
29871,
29945,
29906,
13,
29916,
29906,
353,
29871,
29945,
29946,
13,
29891,
29896,
353,
29871,
29896,
29947,
13,
29891,
29906,
353,
29871,
29906,
29900,
13,
13,
29937,
450,
4038,
310,
21104,
17036,
304,
1284,
278,
2099,
10430,
13,
29916,
29941,
353,
29871,
29953,
29953,
13,
29916,
29946,
353,
29871,
29953,
29947,
13,
29891,
29941,
353,
29871,
29953,
13,
29891,
29946,
353,
29871,
29947,
13,
13,
29937,
8561,
278,
8783,
515,
10650,
15526,
1652,
381,
29899,
280,
12533,
4558,
29889,
13,
2202,
29901,
13,
1678,
8783,
353,
1722,
703,
24713,
29889,
29875,
1590,
3284,
29893,
1159,
13,
19499,
10663,
2392,
29901,
13,
268,
1596,
376,
24713,
934,
1033,
451,
367,
1754,
29908,
13,
1678,
10876,
29889,
13322,
580,
13,
13,
29937,
10554,
1269,
1967,
10650,
848,
363,
599,
4558,
13,
1454,
474,
297,
3464,
29898,
29906,
29900,
29892,
29945,
29896,
1125,
13,
13,
1678,
396,
450,
1652,
381,
29899,
280,
12533,
4558,
304,
367,
1303,
29889,
13,
1678,
29729,
353,
320,
13,
4706,
376,
4290,
596,
1652,
381,
29899,
280,
12533,
4558,
2989,
2224,
26732,
13,
4706,
718,
851,
29898,
29875,
29897,
718,
11393,
29875,
1590,
29908,
13,
13,
1678,
1018,
29901,
13,
4706,
848,
353,
1722,
29898,
28926,
29892,
376,
29878,
1159,
13,
1678,
5174,
10663,
2392,
29901,
13,
4706,
1596,
376,
3782,
934,
471,
1476,
29908,
13,
4706,
10876,
29889,
13322,
580,
13,
13,
1678,
396,
11808,
353,
29871,
29900,
13,
1678,
7182,
29918,
791,
353,
5159,
13,
13,
1678,
411,
29871,
1722,
29898,
28926,
29892,
376,
29878,
1159,
408,
934,
29901,
13,
4706,
363,
1196,
297,
934,
29901,
13,
9651,
396,
11808,
353,
6795,
718,
29871,
29896,
13,
9651,
7182,
29918,
791,
29889,
4397,
29898,
1220,
29897,
13,
9651,
5694,
353,
7182,
29918,
791,
29961,
29900,
1822,
5451,
580,
13,
13,
13,
29937,
1763,
1303,
2702,
15526,
29898,
29916,
29892,
29891,
29897,
1818,
2367,
584,
330,
6574,
4076,
21292,
287,
921,
29892,
29891,
1302,
4339,
13,
29937,
6588,
353,
278,
6588,
10430,
310,
278,
1298,
310,
4066,
13,
29937,
1029,
353,
278,
6588,
10430,
310,
263,
21104,
4038,
13,
13,
1678,
6588,
353,
29871,
29900,
13,
1678,
1029,
353,
29871,
29900,
13,
1678,
565,
474,
529,
29871,
29945,
29896,
29901,
13,
4706,
363,
921,
297,
3464,
29898,
29916,
29896,
29892,
29916,
29906,
1125,
13,
9651,
363,
343,
297,
3464,
29898,
29891,
29896,
29892,
29891,
29906,
1125,
13,
1669,
396,
363,
10650,
848,
4558,
13,
1669,
263,
353,
343,
334,
29871,
29947,
29900,
718,
921,
13,
1669,
6588,
353,
6588,
718,
938,
29898,
7382,
29961,
29874,
2314,
13,
13,
4706,
396,
10987,
297,
278,
916,
1409,
825,
29879,
2675,
373,
297,
15526,
1819,
13,
4706,
363,
921,
297,
3464,
29898,
29916,
29941,
29892,
29916,
29946,
1125,
13,
9651,
363,
343,
297,
3464,
29898,
29891,
29941,
29892,
29891,
29946,
1125,
13,
18884,
289,
353,
343,
334,
29871,
29947,
29900,
718,
921,
13,
18884,
1029,
353,
1029,
718,
938,
29898,
7382,
29961,
29890,
2314,
13,
13,
4706,
6588,
353,
6588,
847,
29871,
29946,
13,
4706,
1029,
353,
1029,
847,
29871,
29946,
13,
13,
1678,
396,
960,
591,
1423,
1473,
4038,
13,
1678,
396,
2870,
29901,
13,
4706,
396,
1454,
921,
297,
3464,
29898,
29906,
29946,
29892,
29906,
29953,
1125,
13,
9651,
396,
7382,
353,
7182,
29918,
791,
29961,
29916,
1822,
5451,
580,
13,
9651,
396,
1454,
343,
297,
3464,
29898,
29946,
29906,
29892,
29946,
29946,
1125,
13,
1669,
396,
29874,
353,
938,
29898,
7382,
29961,
29891,
2314,
13,
1669,
396,
12483,
482,
353,
6588,
718,
263,
13,
13,
4706,
396,
12542,
297,
278,
916,
1409,
825,
29879,
2675,
373,
297,
9277,
1819,
13,
4706,
396,
1454,
921,
297,
3464,
29898,
29896,
29900,
29892,
29896,
29906,
1125,
13,
9651,
396,
7382,
353,
7182,
29918,
791,
29961,
29916,
1822,
5451,
580,
13,
9651,
396,
1454,
343,
297,
3464,
29898,
29953,
29945,
29892,
29953,
29955,
1125,
13,
18884,
396,
29874,
353,
938,
29898,
7382,
29961,
29891,
2314,
13,
18884,
396,
485,
353,
1029,
718,
263,
13,
13,
4706,
396,
12483,
482,
353,
6588,
847,
29871,
29946,
13,
4706,
396,
485,
353,
1029,
847,
29871,
29946,
13,
13,
1678,
396,
8561,
278,
934,
411,
1749,
1914,
20801,
29892,
363,
1584,
3694,
310,
4206,
2058,
13,
1678,
396,
278,
10650,
15526,
1819,
29892,
363,
7736,
278,
7426,
29915,
29879,
29889,
13,
1678,
7426,
353,
851,
29898,
29875,
29897,
718,
6634,
29876,
29908,
13,
1678,
10650,
353,
851,
29898,
12483,
482,
29897,
718,
6634,
29876,
29908,
13,
13,
1678,
8783,
29889,
3539,
29898,
1610,
29897,
13,
1678,
8783,
29889,
3539,
29898,
12163,
929,
29897,
13,
13,
1678,
1596,
376,
1576,
6588,
310,
1967,
613,
474,
29871,
1699,
543,
29892,
12483,
482,
13,
13,
1678,
1596,
376,
1576,
1029,
310,
1967,
613,
474,
29871,
1699,
543,
29892,
485,
13,
13,
1272,
29889,
5358,
580,
13,
24713,
29889,
5358,
580,
13,
2
] |
aasaan/utils/datedeux.py | deepakkt/aasaan | 0 | 117147 | '''Copyright 2017, Deepak
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
'''
from datetime import date, datetime
from functools import partial
import re
class DateDeux(date):
def pydate(self):
return date(self.year, self.month, self.day)
@classmethod
def fromisodate(self, isodatestr):
try:
return DateDeux(*(map(int, isodatestr.split('-'))))
except:
return None
@classmethod
def frompydate(self, pydate_object):
return DateDeux(pydate_object.year, pydate_object.month, pydate_object.day)
def monthstart(self):
return DateDeux(self.year, self.month, 1)
def monthend(self):
return DateDeux.fromordinal(DateDeux(self.year, self.month + 1, 1).toordinal() - 1)
def yearend(self):
return DateDeux(self.year, 12, 31)
def yearstart(self):
return DateDeux(self.year, 1, 1)
def dayname(self):
return ['Monday', 'Tuesday', 'Wednesday',
'Thursday', 'Friday', 'Saturday', 'Sunday'][self.weekday()]
def dayname_short(self):
return self.dayname()[:3]
def monthname(self):
return ['', 'January', 'February', 'March', 'April', 'May', 'June',
'July', 'August', 'September', 'October',
'November', 'December'][self.month]
def monthname_short(self):
return self.monthname()[:3]
def dateformat(self, format):
def _format_as_int(number, length):
if length < len(str(number)):
return str(number)[-length:]
format = "%%0%dd" % length
return format % number
def _format_month(*args):
return self.monthname_short()
def _re_match(matchstring, regex):
return re.findall(regex, matchstring)[0]
matches = list(map(partial(_re_match, format), ['y+', 'm+', 'd+']))
result = format[:]
result = result.replace(matches[0], _format_as_int(self.year, len(matches[0])))
result = result.replace(matches[2], _format_as_int(self.day, len(matches[2])))
_month_func = _format_month if len(matches[1]) == 3 else _format_as_int
result = result.replace(matches[1], _month_func(self.month, len(matches[1])))
return result
def yearcalendar(self):
_start = DateDeux(self.year, 1, 1)
_end = DateDeux(self.year, 12, 31)
diff = _end.toordinal() - _start.toordinal() + 1
return (_start + x for x in range(0, diff))
def monthcalendar(self):
_start = self.monthstart()
_end = self.monthend()
diff = _end.toordinal() - _start.toordinal() + 1
return (_start + x for x in range(0, diff))
def __add__(self, numdays):
return DateDeux.fromordinal(self.toordinal() + numdays)
def __sub__(self, numdays):
try:
return self.toordinal() - numdays.toordinal()
except AttributeError:
return DateDeux.fromordinal(self.toordinal() - numdays)
def __iter__(self):
return iter((self.year, self.month, self.day))
| [
1,
14550,
11882,
1266,
29871,
29906,
29900,
29896,
29955,
29892,
21784,
557,
13,
13,
9039,
391,
3224,
322,
671,
297,
2752,
322,
7581,
7190,
29892,
411,
470,
1728,
21733,
29892,
526,
21905,
4944,
393,
278,
1494,
5855,
526,
1539,
29901,
13,
13,
29896,
29889,
4367,
391,
3224,
29879,
310,
2752,
775,
1818,
11551,
278,
2038,
3509,
1266,
8369,
29892,
445,
1051,
310,
5855,
322,
278,
1494,
2313,
433,
4193,
29889,
13,
13,
29906,
29889,
4367,
391,
3224,
29879,
297,
7581,
883,
1818,
18532,
278,
2038,
3509,
1266,
8369,
29892,
445,
1051,
310,
5855,
322,
278,
1494,
2313,
433,
4193,
297,
278,
5106,
322,
29914,
272,
916,
17279,
4944,
411,
278,
4978,
29889,
13,
13,
29941,
29889,
2448,
2121,
278,
1024,
310,
278,
3509,
1266,
19464,
3643,
278,
2983,
310,
967,
17737,
29560,
1122,
367,
1304,
304,
1095,
272,
344,
470,
27391,
9316,
10723,
515,
445,
7047,
1728,
2702,
7536,
3971,
10751,
29889,
13,
13,
4690,
3235,
7791,
7818,
12982,
1525,
8519,
13756,
13044,
3352,
6770,
6093,
315,
4590,
29979,
22789,
3912,
379,
5607,
8032,
29903,
5300,
8707,
29911,
3960,
29933,
2692,
24125,
376,
3289,
8519,
29908,
5300,
13764,
29979,
8528,
15094,
1799,
6323,
306,
3580,
5265,
3352,
399,
1718,
29934,
13566,
29059,
29892,
2672,
6154,
15789,
4214,
29892,
350,
2692,
6058,
27848,
3352,
7495,
29892,
6093,
306,
3580,
5265,
3352,
399,
1718,
29934,
13566,
29059,
8079,
341,
1001,
3210,
13566,
2882,
6227,
11937,
5300,
383,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
319,
1525,
28657,
13875,
8890,
29928,
29889,
2672,
11698,
382,
29963,
3919,
24972,
9818,
6093,
315,
4590,
29979,
22789,
3912,
379,
5607,
8032,
6323,
8707,
29911,
3960,
29933,
2692,
24125,
20700,
17705,
6181,
15842,
13764,
29979,
22471,
26282,
29892,
2672,
4571,
26282,
29892,
2672,
29907,
1367,
3919,
1964,
29892,
317,
4162,
8426,
1964,
29892,
8528,
29923,
3580,
29931,
19926,
29892,
6323,
8707,
1660,
13356,
3919,
25758,
21330,
1529,
1692,
29903,
313,
1177,
6154,
15789,
4214,
29892,
350,
2692,
6058,
27848,
3352,
7495,
29892,
13756,
29907,
11499,
13780,
8079,
27092,
1254,
1806,
26027,
21947,
29949,
8452,
6323,
26996,
29963,
2965,
2890,
29936,
11247,
1799,
8079,
501,
1660,
29892,
360,
8254,
29892,
6323,
13756,
29943,
1806,
29903,
29936,
6323,
350,
3308,
8895,
1799,
2672,
4945,
29934,
4897,
29911,
2725,
29897,
29832,
8851,
5348,
12766,
17171,
29928,
5300,
6732,
13764,
29979,
6093,
18929,
8079,
17705,
2882,
6227,
11937,
29892,
12317,
2544,
4448,
2672,
8707,
29911,
4717,
1783,
29892,
6850,
3960,
1783,
17705,
2882,
6227,
11937,
29892,
6323,
323,
8476,
313,
1177,
6154,
15789,
4214,
405,
11787,
5265,
24647,
4741,
6323,
438,
29911,
4448,
22119,
1660,
29897,
9033,
3235,
4214,
2672,
13764,
29979,
399,
29909,
29979,
19474,
8079,
6093,
501,
1660,
8079,
3446,
3235,
7791,
7818,
12982,
1525,
29892,
382,
29963,
1430,
10762,
11033,
18118,
1660,
29928,
8079,
6093,
21521,
1799,
8979,
6227,
11937,
8079,
20134,
3210,
21330,
1529,
1692,
29889,
13,
12008,
13,
13,
3166,
12865,
1053,
2635,
29892,
12865,
13,
3166,
2090,
312,
8789,
1053,
7687,
13,
5215,
337,
13,
13,
1990,
4712,
2772,
1314,
29898,
1256,
1125,
13,
1678,
822,
11451,
1256,
29898,
1311,
1125,
13,
4706,
736,
2635,
29898,
1311,
29889,
6360,
29892,
1583,
29889,
10874,
29892,
1583,
29889,
3250,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
515,
275,
397,
403,
29898,
1311,
29892,
338,
397,
271,
16444,
1125,
13,
4706,
1018,
29901,
13,
9651,
736,
4712,
2772,
1314,
10456,
29898,
1958,
29898,
524,
29892,
338,
397,
271,
16444,
29889,
5451,
877,
29899,
8785,
876,
13,
4706,
5174,
29901,
13,
9651,
736,
6213,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
515,
2272,
1256,
29898,
1311,
29892,
11451,
1256,
29918,
3318,
1125,
13,
4706,
736,
4712,
2772,
1314,
29898,
2272,
1256,
29918,
3318,
29889,
6360,
29892,
11451,
1256,
29918,
3318,
29889,
10874,
29892,
11451,
1256,
29918,
3318,
29889,
3250,
29897,
632,
13,
13,
1678,
822,
4098,
2962,
29898,
1311,
1125,
13,
4706,
736,
4712,
2772,
1314,
29898,
1311,
29889,
6360,
29892,
1583,
29889,
10874,
29892,
29871,
29896,
29897,
13,
13,
1678,
822,
4098,
355,
29898,
1311,
1125,
13,
4706,
736,
4712,
2772,
1314,
29889,
3166,
536,
979,
29898,
2539,
2772,
1314,
29898,
1311,
29889,
6360,
29892,
1583,
29889,
10874,
718,
29871,
29896,
29892,
29871,
29896,
467,
517,
536,
979,
580,
448,
29871,
29896,
29897,
13,
13,
1678,
822,
1629,
355,
29898,
1311,
1125,
13,
4706,
736,
4712,
2772,
1314,
29898,
1311,
29889,
6360,
29892,
29871,
29896,
29906,
29892,
29871,
29941,
29896,
29897,
13,
13,
1678,
822,
1629,
2962,
29898,
1311,
1125,
13,
4706,
736,
4712,
2772,
1314,
29898,
1311,
29889,
6360,
29892,
29871,
29896,
29892,
29871,
29896,
29897,
13,
13,
1678,
822,
2462,
978,
29898,
1311,
1125,
13,
4706,
736,
6024,
29924,
898,
388,
742,
525,
29911,
1041,
3250,
742,
525,
29956,
287,
4515,
3250,
742,
13,
18884,
525,
1349,
1295,
3250,
742,
525,
29943,
2429,
388,
742,
525,
29903,
20510,
742,
525,
29903,
870,
388,
2033,
29961,
1311,
29889,
18448,
3250,
580,
29962,
13,
13,
1678,
822,
2462,
978,
29918,
12759,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
3250,
978,
580,
7503,
29941,
29962,
13,
13,
1678,
822,
4098,
978,
29898,
1311,
1125,
13,
4706,
736,
6024,
742,
525,
29967,
15623,
653,
742,
525,
29943,
3205,
653,
742,
525,
29924,
1279,
742,
525,
29909,
3193,
742,
525,
12703,
742,
525,
29967,
1540,
742,
13,
18884,
525,
29967,
11850,
742,
525,
26197,
742,
525,
2008,
3266,
742,
525,
25375,
4950,
742,
29871,
13,
18884,
525,
25363,
1096,
742,
525,
6185,
1096,
2033,
29961,
1311,
29889,
10874,
29962,
13,
13,
1678,
822,
4098,
978,
29918,
12759,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
10874,
978,
580,
7503,
29941,
29962,
13,
13,
1678,
822,
2635,
4830,
29898,
1311,
29892,
3402,
1125,
13,
4706,
822,
903,
4830,
29918,
294,
29918,
524,
29898,
4537,
29892,
3309,
1125,
13,
9651,
565,
3309,
529,
7431,
29898,
710,
29898,
4537,
22164,
13,
18884,
736,
851,
29898,
4537,
9601,
29899,
2848,
17531,
13,
13,
9651,
3402,
353,
376,
7686,
29900,
29995,
1289,
29908,
1273,
3309,
13,
9651,
736,
3402,
1273,
1353,
13,
13,
4706,
822,
903,
4830,
29918,
10874,
10456,
5085,
1125,
13,
9651,
736,
1583,
29889,
10874,
978,
29918,
12759,
580,
13,
13,
4706,
822,
903,
276,
29918,
4352,
29898,
4352,
1807,
29892,
6528,
1125,
13,
9651,
736,
337,
29889,
2886,
497,
29898,
13087,
29892,
1993,
1807,
9601,
29900,
29962,
13,
13,
4706,
7087,
353,
1051,
29898,
1958,
29898,
3846,
7373,
276,
29918,
4352,
29892,
3402,
511,
6024,
29891,
29974,
742,
525,
29885,
29974,
742,
525,
29881,
29974,
25901,
13,
13,
4706,
1121,
353,
3402,
7503,
29962,
13,
4706,
1121,
353,
1121,
29889,
6506,
29898,
20317,
29961,
29900,
1402,
903,
4830,
29918,
294,
29918,
524,
29898,
1311,
29889,
6360,
29892,
7431,
29898,
20317,
29961,
29900,
29962,
4961,
13,
4706,
1121,
353,
1121,
29889,
6506,
29898,
20317,
29961,
29906,
1402,
903,
4830,
29918,
294,
29918,
524,
29898,
1311,
29889,
3250,
29892,
7431,
29898,
20317,
29961,
29906,
29962,
4961,
13,
4706,
903,
10874,
29918,
9891,
353,
903,
4830,
29918,
10874,
565,
7431,
29898,
20317,
29961,
29896,
2314,
1275,
29871,
29941,
1683,
903,
4830,
29918,
294,
29918,
524,
13,
4706,
1121,
353,
1121,
29889,
6506,
29898,
20317,
29961,
29896,
1402,
903,
10874,
29918,
9891,
29898,
1311,
29889,
10874,
29892,
7431,
29898,
20317,
29961,
29896,
29962,
4961,
13,
4706,
736,
1121,
13,
13,
1678,
822,
1629,
23392,
29898,
1311,
1125,
13,
4706,
903,
2962,
353,
4712,
2772,
1314,
29898,
1311,
29889,
6360,
29892,
29871,
29896,
29892,
29871,
29896,
29897,
13,
4706,
903,
355,
353,
4712,
2772,
1314,
29898,
1311,
29889,
6360,
29892,
29871,
29896,
29906,
29892,
29871,
29941,
29896,
29897,
13,
13,
4706,
2923,
353,
903,
355,
29889,
517,
536,
979,
580,
448,
903,
2962,
29889,
517,
536,
979,
580,
718,
29871,
29896,
13,
4706,
736,
9423,
2962,
718,
921,
363,
921,
297,
3464,
29898,
29900,
29892,
2923,
876,
13,
13,
1678,
822,
4098,
23392,
29898,
1311,
1125,
13,
4706,
903,
2962,
353,
1583,
29889,
10874,
2962,
580,
13,
4706,
903,
355,
353,
1583,
29889,
10874,
355,
580,
13,
13,
4706,
2923,
353,
903,
355,
29889,
517,
536,
979,
580,
448,
903,
2962,
29889,
517,
536,
979,
580,
718,
29871,
29896,
13,
4706,
736,
9423,
2962,
718,
921,
363,
921,
297,
3464,
29898,
29900,
29892,
2923,
876,
13,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
954,
16700,
1125,
13,
4706,
736,
4712,
2772,
1314,
29889,
3166,
536,
979,
29898,
1311,
29889,
517,
536,
979,
580,
718,
954,
16700,
29897,
13,
13,
1678,
822,
4770,
1491,
12035,
1311,
29892,
954,
16700,
1125,
13,
4706,
1018,
29901,
13,
9651,
736,
1583,
29889,
517,
536,
979,
580,
448,
954,
16700,
29889,
517,
536,
979,
580,
13,
4706,
5174,
23833,
2392,
29901,
13,
9651,
736,
4712,
2772,
1314,
29889,
3166,
536,
979,
29898,
1311,
29889,
517,
536,
979,
580,
448,
954,
16700,
29897,
13,
13,
1678,
822,
4770,
1524,
12035,
1311,
1125,
13,
4706,
736,
4256,
3552,
1311,
29889,
6360,
29892,
1583,
29889,
10874,
29892,
1583,
29889,
3250,
876,
13,
2
] |
hexrd/ui/color_map_editor.py | HEXRD/hexrdgui | 13 | 199875 | import copy
from matplotlib import cm
import matplotlib.colors
import numpy as np
import hexrd.ui.constants
from hexrd.ui.brightness_contrast_editor import BrightnessContrastEditor
from hexrd.ui.hexrd_config import HexrdConfig
from hexrd.ui.ui_loader import UiLoader
from hexrd.ui.utils import block_signals
class ColorMapEditor:
def __init__(self, image_object, parent=None):
# The image_object can be any object with the following functions:
# 1. set_cmap: a function to set the cmap on the image
# 2. set_norm: a function to set the norm on the image
self.image_object = image_object
loader = UiLoader()
self.ui = loader.load_file('color_map_editor.ui', parent)
self.bounds = (0, 16384)
self._data = None
self.bc_editor = None
self.load_cmaps()
self.setup_connections()
@property
def data(self):
return self._data
@data.setter
def data(self, v):
self._data = v
self.update_bc_enable_state()
if self.bc_editor:
self.bc_editor.data = v
self.update_bc_editor()
def load_cmaps(self):
cmaps = sorted(i[:-2] for i in dir(cm) if i.endswith('_r'))
self.ui.color_map.addItems(cmaps)
# Set the combobox to be the default
self.ui.color_map.setCurrentText(hexrd.ui.constants.DEFAULT_CMAP)
def setup_connections(self):
self.ui.bc_editor_button.pressed.connect(self.bc_editor_button_pressed)
self.ui.minimum.valueChanged.connect(self.range_edited)
self.ui.maximum.valueChanged.connect(self.range_edited)
self.ui.color_map.currentIndexChanged.connect(self.update_cmap)
self.ui.reverse.toggled.connect(self.update_cmap)
self.ui.show_under.toggled.connect(self.update_cmap)
self.ui.show_over.toggled.connect(self.update_cmap)
self.ui.log_scale.toggled.connect(self.update_norm)
def range_edited(self):
self.update_bc_editor()
self.update_mins_and_maxes()
self.update_norm()
def update_bc_enable_state(self):
has_data = self.data is not None
self.ui.bc_editor_button.setEnabled(has_data)
def bc_editor_button_pressed(self):
if self.bc_editor:
self.bc_editor.ui.reject()
bc = self.bc_editor = BrightnessContrastEditor(self.ui)
bc.data = self.data
bc.edited.connect(self.bc_editor_modified)
bc.reset.connect(self.reset_range)
bc.ui.finished.connect(self.remove_bc_editor)
# Hide overlays while the BC editor is open
self._bc_previous_show_overlays = HexrdConfig().show_overlays
if self._bc_previous_show_overlays:
HexrdConfig().show_overlays = False
HexrdConfig().active_material_modified.emit()
self.update_bc_editor()
self.bc_editor.ui.show()
def update_bc_editor(self):
if not self.bc_editor:
return
widgets = (self.ui.minimum, self.ui.maximum)
new_range = [x.value() for x in widgets]
with block_signals(self.bc_editor):
self.bc_editor.ui_range = new_range
def remove_bc_editor(self):
self.bc_editor = None
if self._bc_previous_show_overlays and not HexrdConfig().show_overlays:
# Show the overlays again
HexrdConfig().show_overlays = True
HexrdConfig().active_material_modified.emit()
def bc_editor_modified(self):
with block_signals(self.ui.minimum, self.ui.maximum):
self.ui.minimum.setValue(self.bc_editor.ui_min)
self.ui.maximum.setValue(self.bc_editor.ui_max)
self.range_edited()
def update_mins_and_maxes(self):
# We can't do this in PySide2 for some reason:
# self.ui.maximum.valueChanged.connect(self.ui.minimum.setMaximum)
# self.ui.minimum.valueChanged.connect(self.ui.maximum.setMinimum)
self.ui.maximum.setMinimum(self.ui.minimum.value())
self.ui.minimum.setMaximum(self.ui.maximum.value())
def block_updates(self, blocked):
self.updates_blocked = blocked
def update_bounds(self, data):
if hasattr(self, 'updates_blocked') and self.updates_blocked:
# We don't want to adjust the bounds
return
bounds = self.percentile_range(data)
self.ui.minimum.setValue(bounds[0])
self.ui.minimum.setToolTip('Min: ' + str(bounds[0]))
self.ui.maximum.setValue(bounds[1])
self.ui.maximum.setToolTip('Max: ' + str(bounds[1]))
self.bounds = bounds
self.data = data
@staticmethod
def percentile_range(data, low=69.0, high=99.9):
if isinstance(data, dict):
values = data.values()
elif not isinstance(data, (list, tuple)):
values = [data]
l = min([np.nanpercentile(v, low) for v in values])
h = min([np.nanpercentile(v, high) for v in values])
if h - l < 5:
h = l + 5
return l, h
def reset_range(self):
if hasattr(self, 'updates_blocked') and self.updates_blocked:
# We don't want to adjust the range
return
if self.ui.minimum.maximum() < self.bounds[0]:
# Make sure we can actually set the value...
self.ui.minimum.setMaximum(self.bounds[0])
self.ui.minimum.setValue(self.bounds[0])
self.ui.maximum.setValue(self.bounds[1])
def update_cmap(self):
# Get the Colormap object from the name
cmap = cm.get_cmap(self.ui.color_map.currentText())
if self.ui.reverse.isChecked():
cmap = cmap.reversed()
# For set_under() and set_over(), we don't want to edit the
# original color map, so make a copy
cmap = copy.copy(cmap)
if self.ui.show_under.isChecked():
cmap.set_under('b')
if self.ui.show_over.isChecked():
cmap.set_over('r')
self.image_object.set_cmap(cmap)
def update_norm(self):
min = self.ui.minimum.value()
max = self.ui.maximum.value()
if self.ui.log_scale.isChecked():
# The min cannot be 0 here, or this will raise an exception
# For some reason, if it is less than 1.e-7, for some datasets,
# matplotlib will round it to 0, and then raise an exception.
# Thus, keep it at 1.e-7 for now.
min = 1.e-7 if min < 1.e-7 else min
norm = matplotlib.colors.LogNorm(vmin=min, vmax=max)
else:
norm = matplotlib.colors.Normalize(vmin=min, vmax=max)
self.image_object.set_norm(norm)
| [
1,
1053,
3509,
13,
13,
3166,
22889,
1053,
7477,
13,
5215,
22889,
29889,
27703,
13,
13,
5215,
12655,
408,
7442,
13,
13,
5215,
15090,
5499,
29889,
1481,
29889,
3075,
1934,
13,
3166,
15090,
5499,
29889,
1481,
29889,
1182,
523,
2264,
29918,
9996,
579,
29918,
15204,
1053,
29258,
2264,
1168,
509,
579,
15280,
13,
3166,
15090,
5499,
29889,
1481,
29889,
20970,
5499,
29918,
2917,
1053,
379,
735,
5499,
3991,
13,
3166,
15090,
5499,
29889,
1481,
29889,
1481,
29918,
12657,
1053,
501,
29875,
10036,
13,
3166,
15090,
5499,
29889,
1481,
29889,
13239,
1053,
2908,
29918,
4530,
1338,
13,
13,
13,
1990,
9159,
3388,
15280,
29901,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1967,
29918,
3318,
29892,
3847,
29922,
8516,
1125,
13,
4706,
396,
450,
1967,
29918,
3318,
508,
367,
738,
1203,
411,
278,
1494,
3168,
29901,
13,
4706,
396,
29871,
29896,
29889,
731,
29918,
29883,
1958,
29901,
263,
740,
304,
731,
278,
274,
1958,
373,
278,
1967,
13,
4706,
396,
29871,
29906,
29889,
731,
29918,
12324,
29901,
263,
740,
304,
731,
278,
6056,
373,
278,
1967,
13,
13,
4706,
1583,
29889,
3027,
29918,
3318,
353,
1967,
29918,
3318,
13,
13,
4706,
23466,
353,
501,
29875,
10036,
580,
13,
4706,
1583,
29889,
1481,
353,
23466,
29889,
1359,
29918,
1445,
877,
2780,
29918,
1958,
29918,
15204,
29889,
1481,
742,
3847,
29897,
13,
13,
4706,
1583,
29889,
23687,
353,
313,
29900,
29892,
29871,
29896,
29953,
29941,
29947,
29946,
29897,
13,
4706,
1583,
3032,
1272,
353,
6213,
13,
13,
4706,
1583,
29889,
12328,
29918,
15204,
353,
6213,
13,
13,
4706,
1583,
29889,
1359,
29918,
29883,
10339,
580,
13,
13,
4706,
1583,
29889,
14669,
29918,
11958,
1953,
580,
13,
13,
1678,
732,
6799,
13,
1678,
822,
848,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
1272,
13,
13,
1678,
732,
1272,
29889,
842,
357,
13,
1678,
822,
848,
29898,
1311,
29892,
325,
1125,
13,
4706,
1583,
3032,
1272,
353,
325,
13,
4706,
1583,
29889,
5504,
29918,
12328,
29918,
12007,
29918,
3859,
580,
13,
13,
4706,
565,
1583,
29889,
12328,
29918,
15204,
29901,
13,
9651,
1583,
29889,
12328,
29918,
15204,
29889,
1272,
353,
325,
13,
9651,
1583,
29889,
5504,
29918,
12328,
29918,
15204,
580,
13,
13,
1678,
822,
2254,
29918,
29883,
10339,
29898,
1311,
1125,
13,
4706,
274,
10339,
353,
12705,
29898,
29875,
7503,
29899,
29906,
29962,
363,
474,
297,
4516,
29898,
4912,
29897,
565,
474,
29889,
1975,
2541,
877,
29918,
29878,
8785,
13,
4706,
1583,
29889,
1481,
29889,
2780,
29918,
1958,
29889,
1202,
6913,
29898,
29883,
10339,
29897,
13,
13,
4706,
396,
3789,
278,
4145,
23518,
304,
367,
278,
2322,
13,
4706,
1583,
29889,
1481,
29889,
2780,
29918,
1958,
29889,
842,
7583,
1626,
29898,
20970,
5499,
29889,
1481,
29889,
3075,
1934,
29889,
23397,
29918,
29907,
23827,
29897,
13,
13,
1678,
822,
6230,
29918,
11958,
1953,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1481,
29889,
12328,
29918,
15204,
29918,
3092,
29889,
13120,
29889,
6915,
29898,
1311,
29889,
12328,
29918,
15204,
29918,
3092,
29918,
13120,
29897,
13,
13,
4706,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
1767,
7590,
29889,
6915,
29898,
1311,
29889,
3881,
29918,
287,
1573,
29897,
13,
4706,
1583,
29889,
1481,
29889,
27525,
398,
29889,
1767,
7590,
29889,
6915,
29898,
1311,
29889,
3881,
29918,
287,
1573,
29897,
13,
13,
4706,
1583,
29889,
1481,
29889,
2780,
29918,
1958,
29889,
3784,
3220,
7590,
29889,
6915,
29898,
1311,
29889,
5504,
29918,
29883,
1958,
29897,
13,
4706,
1583,
29889,
1481,
29889,
24244,
29889,
29873,
468,
29887,
839,
29889,
6915,
29898,
1311,
29889,
5504,
29918,
29883,
1958,
29897,
13,
4706,
1583,
29889,
1481,
29889,
4294,
29918,
5062,
29889,
29873,
468,
29887,
839,
29889,
6915,
29898,
1311,
29889,
5504,
29918,
29883,
1958,
29897,
13,
4706,
1583,
29889,
1481,
29889,
4294,
29918,
957,
29889,
29873,
468,
29887,
839,
29889,
6915,
29898,
1311,
29889,
5504,
29918,
29883,
1958,
29897,
13,
13,
4706,
1583,
29889,
1481,
29889,
1188,
29918,
7052,
29889,
29873,
468,
29887,
839,
29889,
6915,
29898,
1311,
29889,
5504,
29918,
12324,
29897,
13,
13,
1678,
822,
3464,
29918,
287,
1573,
29898,
1311,
1125,
13,
4706,
1583,
29889,
5504,
29918,
12328,
29918,
15204,
580,
13,
4706,
1583,
29889,
5504,
29918,
29885,
1144,
29918,
392,
29918,
3317,
267,
580,
13,
4706,
1583,
29889,
5504,
29918,
12324,
580,
13,
13,
1678,
822,
2767,
29918,
12328,
29918,
12007,
29918,
3859,
29898,
1311,
1125,
13,
4706,
756,
29918,
1272,
353,
1583,
29889,
1272,
338,
451,
6213,
13,
4706,
1583,
29889,
1481,
29889,
12328,
29918,
15204,
29918,
3092,
29889,
842,
10861,
29898,
5349,
29918,
1272,
29897,
13,
13,
1678,
822,
289,
29883,
29918,
15204,
29918,
3092,
29918,
13120,
29898,
1311,
1125,
13,
4706,
565,
1583,
29889,
12328,
29918,
15204,
29901,
13,
9651,
1583,
29889,
12328,
29918,
15204,
29889,
1481,
29889,
276,
622,
580,
13,
13,
4706,
289,
29883,
353,
1583,
29889,
12328,
29918,
15204,
353,
29258,
2264,
1168,
509,
579,
15280,
29898,
1311,
29889,
1481,
29897,
13,
4706,
289,
29883,
29889,
1272,
353,
1583,
29889,
1272,
13,
4706,
289,
29883,
29889,
287,
1573,
29889,
6915,
29898,
1311,
29889,
12328,
29918,
15204,
29918,
1545,
2164,
29897,
13,
4706,
289,
29883,
29889,
12071,
29889,
6915,
29898,
1311,
29889,
12071,
29918,
3881,
29897,
13,
4706,
289,
29883,
29889,
1481,
29889,
4951,
3276,
29889,
6915,
29898,
1311,
29889,
5992,
29918,
12328,
29918,
15204,
29897,
13,
13,
4706,
396,
379,
680,
975,
29880,
1036,
1550,
278,
17403,
6920,
338,
1722,
13,
4706,
1583,
3032,
12328,
29918,
24957,
29918,
4294,
29918,
957,
29880,
1036,
353,
379,
735,
5499,
3991,
2141,
4294,
29918,
957,
29880,
1036,
13,
4706,
565,
1583,
3032,
12328,
29918,
24957,
29918,
4294,
29918,
957,
29880,
1036,
29901,
13,
9651,
379,
735,
5499,
3991,
2141,
4294,
29918,
957,
29880,
1036,
353,
7700,
13,
9651,
379,
735,
5499,
3991,
2141,
4925,
29918,
15388,
29918,
1545,
2164,
29889,
21976,
580,
13,
13,
4706,
1583,
29889,
5504,
29918,
12328,
29918,
15204,
580,
13,
13,
4706,
1583,
29889,
12328,
29918,
15204,
29889,
1481,
29889,
4294,
580,
13,
13,
1678,
822,
2767,
29918,
12328,
29918,
15204,
29898,
1311,
1125,
13,
4706,
565,
451,
1583,
29889,
12328,
29918,
15204,
29901,
13,
9651,
736,
13,
13,
4706,
11109,
29879,
353,
313,
1311,
29889,
1481,
29889,
1195,
12539,
29892,
1583,
29889,
1481,
29889,
27525,
398,
29897,
13,
4706,
716,
29918,
3881,
353,
518,
29916,
29889,
1767,
580,
363,
921,
297,
11109,
29879,
29962,
13,
4706,
411,
2908,
29918,
4530,
1338,
29898,
1311,
29889,
12328,
29918,
15204,
1125,
13,
9651,
1583,
29889,
12328,
29918,
15204,
29889,
1481,
29918,
3881,
353,
716,
29918,
3881,
13,
13,
1678,
822,
3349,
29918,
12328,
29918,
15204,
29898,
1311,
1125,
13,
4706,
1583,
29889,
12328,
29918,
15204,
353,
6213,
13,
13,
4706,
565,
1583,
3032,
12328,
29918,
24957,
29918,
4294,
29918,
957,
29880,
1036,
322,
451,
379,
735,
5499,
3991,
2141,
4294,
29918,
957,
29880,
1036,
29901,
13,
9651,
396,
7704,
278,
975,
29880,
1036,
1449,
13,
9651,
379,
735,
5499,
3991,
2141,
4294,
29918,
957,
29880,
1036,
353,
5852,
13,
9651,
379,
735,
5499,
3991,
2141,
4925,
29918,
15388,
29918,
1545,
2164,
29889,
21976,
580,
13,
13,
1678,
822,
289,
29883,
29918,
15204,
29918,
1545,
2164,
29898,
1311,
1125,
13,
4706,
411,
2908,
29918,
4530,
1338,
29898,
1311,
29889,
1481,
29889,
1195,
12539,
29892,
1583,
29889,
1481,
29889,
27525,
398,
1125,
13,
9651,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
842,
1917,
29898,
1311,
29889,
12328,
29918,
15204,
29889,
1481,
29918,
1195,
29897,
13,
9651,
1583,
29889,
1481,
29889,
27525,
398,
29889,
842,
1917,
29898,
1311,
29889,
12328,
29918,
15204,
29889,
1481,
29918,
3317,
29897,
13,
9651,
1583,
29889,
3881,
29918,
287,
1573,
580,
13,
13,
1678,
822,
2767,
29918,
29885,
1144,
29918,
392,
29918,
3317,
267,
29898,
1311,
1125,
13,
4706,
396,
1334,
508,
29915,
29873,
437,
445,
297,
10772,
23908,
29906,
363,
777,
2769,
29901,
13,
4706,
396,
1583,
29889,
1481,
29889,
27525,
398,
29889,
1767,
7590,
29889,
6915,
29898,
1311,
29889,
1481,
29889,
1195,
12539,
29889,
842,
7976,
12539,
29897,
13,
4706,
396,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
1767,
7590,
29889,
6915,
29898,
1311,
29889,
1481,
29889,
27525,
398,
29889,
842,
8140,
12539,
29897,
13,
4706,
1583,
29889,
1481,
29889,
27525,
398,
29889,
842,
8140,
12539,
29898,
1311,
29889,
1481,
29889,
1195,
12539,
29889,
1767,
3101,
13,
4706,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
842,
7976,
12539,
29898,
1311,
29889,
1481,
29889,
27525,
398,
29889,
1767,
3101,
13,
13,
1678,
822,
2908,
29918,
786,
15190,
29898,
1311,
29892,
24370,
1125,
13,
4706,
1583,
29889,
786,
15190,
29918,
1271,
287,
353,
24370,
13,
13,
1678,
822,
2767,
29918,
23687,
29898,
1311,
29892,
848,
1125,
13,
4706,
565,
756,
5552,
29898,
1311,
29892,
525,
786,
15190,
29918,
1271,
287,
1495,
322,
1583,
29889,
786,
15190,
29918,
1271,
287,
29901,
13,
9651,
396,
1334,
1016,
29915,
29873,
864,
304,
10365,
278,
13451,
13,
9651,
736,
13,
13,
4706,
13451,
353,
1583,
29889,
25376,
488,
29918,
3881,
29898,
1272,
29897,
13,
4706,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
842,
1917,
29898,
23687,
29961,
29900,
2314,
13,
4706,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
842,
12229,
29911,
666,
877,
8140,
29901,
525,
718,
851,
29898,
23687,
29961,
29900,
12622,
13,
4706,
1583,
29889,
1481,
29889,
27525,
398,
29889,
842,
1917,
29898,
23687,
29961,
29896,
2314,
13,
4706,
1583,
29889,
1481,
29889,
27525,
398,
29889,
842,
12229,
29911,
666,
877,
7976,
29901,
525,
718,
851,
29898,
23687,
29961,
29896,
12622,
13,
13,
4706,
1583,
29889,
23687,
353,
13451,
13,
4706,
1583,
29889,
1272,
353,
848,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
10151,
488,
29918,
3881,
29898,
1272,
29892,
4482,
29922,
29953,
29929,
29889,
29900,
29892,
1880,
29922,
29929,
29929,
29889,
29929,
1125,
13,
4706,
565,
338,
8758,
29898,
1272,
29892,
9657,
1125,
13,
9651,
1819,
353,
848,
29889,
5975,
580,
13,
4706,
25342,
451,
338,
8758,
29898,
1272,
29892,
313,
1761,
29892,
18761,
22164,
13,
9651,
1819,
353,
518,
1272,
29962,
13,
13,
4706,
301,
353,
1375,
4197,
9302,
29889,
13707,
25376,
488,
29898,
29894,
29892,
4482,
29897,
363,
325,
297,
1819,
2314,
13,
4706,
298,
353,
1375,
4197,
9302,
29889,
13707,
25376,
488,
29898,
29894,
29892,
1880,
29897,
363,
325,
297,
1819,
2314,
13,
13,
4706,
565,
298,
448,
301,
529,
29871,
29945,
29901,
13,
9651,
298,
353,
301,
718,
29871,
29945,
13,
13,
4706,
736,
301,
29892,
298,
13,
13,
1678,
822,
10092,
29918,
3881,
29898,
1311,
1125,
13,
4706,
565,
756,
5552,
29898,
1311,
29892,
525,
786,
15190,
29918,
1271,
287,
1495,
322,
1583,
29889,
786,
15190,
29918,
1271,
287,
29901,
13,
9651,
396,
1334,
1016,
29915,
29873,
864,
304,
10365,
278,
3464,
13,
9651,
736,
13,
13,
4706,
565,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
27525,
398,
580,
529,
1583,
29889,
23687,
29961,
29900,
5387,
13,
9651,
396,
8561,
1854,
591,
508,
2869,
731,
278,
995,
856,
13,
9651,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
842,
7976,
12539,
29898,
1311,
29889,
23687,
29961,
29900,
2314,
13,
13,
4706,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
842,
1917,
29898,
1311,
29889,
23687,
29961,
29900,
2314,
13,
4706,
1583,
29889,
1481,
29889,
27525,
398,
29889,
842,
1917,
29898,
1311,
29889,
23687,
29961,
29896,
2314,
13,
13,
1678,
822,
2767,
29918,
29883,
1958,
29898,
1311,
1125,
13,
4706,
396,
3617,
278,
1530,
555,
481,
1203,
515,
278,
1024,
13,
4706,
274,
1958,
353,
7477,
29889,
657,
29918,
29883,
1958,
29898,
1311,
29889,
1481,
29889,
2780,
29918,
1958,
29889,
3784,
1626,
3101,
13,
13,
4706,
565,
1583,
29889,
1481,
29889,
24244,
29889,
275,
17817,
7295,
13,
9651,
274,
1958,
353,
274,
1958,
29889,
276,
874,
287,
580,
13,
13,
4706,
396,
1152,
731,
29918,
5062,
580,
322,
731,
29918,
957,
3285,
591,
1016,
29915,
29873,
864,
304,
3863,
278,
13,
4706,
396,
2441,
2927,
2910,
29892,
577,
1207,
263,
3509,
13,
4706,
274,
1958,
353,
3509,
29889,
8552,
29898,
29883,
1958,
29897,
13,
13,
4706,
565,
1583,
29889,
1481,
29889,
4294,
29918,
5062,
29889,
275,
17817,
7295,
13,
9651,
274,
1958,
29889,
842,
29918,
5062,
877,
29890,
1495,
13,
13,
4706,
565,
1583,
29889,
1481,
29889,
4294,
29918,
957,
29889,
275,
17817,
7295,
13,
9651,
274,
1958,
29889,
842,
29918,
957,
877,
29878,
1495,
13,
13,
4706,
1583,
29889,
3027,
29918,
3318,
29889,
842,
29918,
29883,
1958,
29898,
29883,
1958,
29897,
13,
13,
1678,
822,
2767,
29918,
12324,
29898,
1311,
1125,
13,
4706,
1375,
353,
1583,
29889,
1481,
29889,
1195,
12539,
29889,
1767,
580,
13,
4706,
4236,
353,
1583,
29889,
1481,
29889,
27525,
398,
29889,
1767,
580,
13,
13,
4706,
565,
1583,
29889,
1481,
29889,
1188,
29918,
7052,
29889,
275,
17817,
7295,
13,
9651,
396,
450,
1375,
2609,
367,
29871,
29900,
1244,
29892,
470,
445,
674,
12020,
385,
3682,
13,
9651,
396,
1152,
777,
2769,
29892,
565,
372,
338,
3109,
1135,
29871,
29896,
29889,
29872,
29899,
29955,
29892,
363,
777,
20035,
29892,
13,
9651,
396,
22889,
674,
4513,
372,
304,
29871,
29900,
29892,
322,
769,
12020,
385,
3682,
29889,
13,
9651,
396,
6549,
29892,
3013,
372,
472,
29871,
29896,
29889,
29872,
29899,
29955,
363,
1286,
29889,
13,
9651,
1375,
353,
29871,
29896,
29889,
29872,
29899,
29955,
565,
1375,
529,
29871,
29896,
29889,
29872,
29899,
29955,
1683,
1375,
13,
9651,
6056,
353,
22889,
29889,
27703,
29889,
3403,
29940,
555,
29898,
29894,
1195,
29922,
1195,
29892,
325,
3317,
29922,
3317,
29897,
13,
4706,
1683,
29901,
13,
9651,
6056,
353,
22889,
29889,
27703,
29889,
19077,
675,
29898,
29894,
1195,
29922,
1195,
29892,
325,
3317,
29922,
3317,
29897,
13,
13,
4706,
1583,
29889,
3027,
29918,
3318,
29889,
842,
29918,
12324,
29898,
12324,
29897,
13,
2
] |
Domotique/Temperature Fablab/temperature.py | LaFabrickMassy/Projet-Fablab | 0 | 53332 | import board
import adafruit_ahtx0
from datetime import datetime
html_dir = "/var/www/html/temp"
data_fname = "temperature.csv"
html_fname = "index.html"
sensor = adafruit_ahtx0.AHTx0(board.I2C())
temp = sensor.temperature
hum = sensor.relative_humidity
now = datetime.now()
# open data file
history = []
with open(html_dir + "/" + data_fname, "r") as f:
for l in f.readlines():
fields = l.split(";")
dt = datetime.strptime(fields[0], "%d/%m/%y %H:%M")
data = [dt, float(fields[1]), float(fields[2])]
history.append(data)
history.append([now, temp, hum])
t_data = []
h_data = []
dt_data= []
for h in history:
t_data.append("{:.1f}".format(h[1]))
h_data.append("{:.1f}".format(h[2]))
dt_data.append(h[0].strftime("'%Y-%m-%d %H:%m'"))
with open(html_dir + "/" + data_fname, "a") as f:
dt = now.strftime("%d/%m/%y %H:%M")
f.write("{};{};{}\n".format(dt, temp, hum))
head="""<html>
<head>
<title>Temperature</title>
</head>
<body>\n"""
body1 = """
<div id="plotly-chart"></div>
<script type=\"text/javascript\" src=\"./plotly-latest.min.js\"></script>
<script type=\"text/javascript\" >
var temp = {
x: ["""
body2="],\n y: ["
body3="""],
name: 'temperature',
type: 'scatter'
};
var hum = {
x: ["""
body4="],\n y: ["
body5="""],
yaxis: 'y2',
name: 'humidity',
type: 'scatter'
};
var data = [temp, hum];
var layout = {
title: 'Double Y Axis Example',
yaxis: {title: 'Temperature'},
yaxis2: {
title: 'Humidity',
overlaying: 'y',
side: 'right'
}
};
Plotly.newPlot('plotly-chart', data, layout);
</script>
"""
tail="</body></html>\n"
with open(html_dir + "/" + html_fname, "w") as f:
f.write(head)
f.write(body1)
f.write(",".join(dt_data))
f.write(body2)
f.write(",".join(t_data))
f.write(body3)
f.write(",".join(dt_data))
f.write(body4)
f.write(",".join(h_data))
f.write(body5)
f.write(tail)
| [
1,
1053,
7613,
13,
5215,
594,
2142,
9216,
29918,
29874,
400,
29916,
29900,
13,
3166,
12865,
1053,
12865,
13,
13,
1420,
29918,
3972,
353,
5591,
1707,
29914,
1636,
29914,
1420,
29914,
7382,
29908,
13,
1272,
29918,
29888,
978,
353,
376,
12863,
1535,
29889,
7638,
29908,
13,
1420,
29918,
29888,
978,
353,
376,
2248,
29889,
1420,
29908,
13,
13,
29879,
6073,
353,
594,
2142,
9216,
29918,
29874,
400,
29916,
29900,
29889,
29909,
3912,
29916,
29900,
29898,
3377,
29889,
29902,
29906,
29907,
3101,
13,
13,
7382,
353,
23530,
29889,
12863,
1535,
13,
16063,
29871,
353,
23530,
29889,
22925,
29918,
16063,
333,
537,
13,
3707,
353,
12865,
29889,
3707,
580,
13,
13,
29937,
1722,
848,
934,
13,
18434,
353,
5159,
13,
13,
2541,
1722,
29898,
1420,
29918,
3972,
718,
5591,
29908,
718,
848,
29918,
29888,
978,
29892,
376,
29878,
1159,
408,
285,
29901,
13,
12,
1454,
301,
297,
285,
29889,
949,
9012,
7295,
13,
12,
12,
9621,
353,
301,
29889,
5451,
703,
29936,
1159,
13,
12,
12,
6008,
353,
12865,
29889,
710,
415,
603,
29898,
9621,
29961,
29900,
1402,
11860,
29881,
22584,
29885,
22584,
29891,
1273,
29950,
16664,
29924,
1159,
13,
12,
12,
1272,
353,
518,
6008,
29892,
5785,
29898,
9621,
29961,
29896,
11724,
5785,
29898,
9621,
29961,
29906,
2314,
29962,
13,
12,
12,
18434,
29889,
4397,
29898,
1272,
29897,
13,
13,
18434,
29889,
4397,
4197,
3707,
29892,
5694,
29892,
3165,
2314,
13,
13,
29873,
29918,
1272,
353,
5159,
13,
29882,
29918,
1272,
353,
5159,
13,
6008,
29918,
1272,
29922,
5159,
13,
13,
1454,
298,
297,
4955,
29901,
13,
12,
29873,
29918,
1272,
29889,
4397,
703,
25641,
29889,
29896,
29888,
29913,
1642,
4830,
29898,
29882,
29961,
29896,
12622,
13,
12,
29882,
29918,
1272,
29889,
4397,
703,
25641,
29889,
29896,
29888,
29913,
1642,
4830,
29898,
29882,
29961,
29906,
12622,
13,
12,
6008,
29918,
1272,
29889,
4397,
29898,
29882,
29961,
29900,
1822,
710,
615,
603,
703,
29915,
29995,
29979,
19222,
29885,
19222,
29881,
1273,
29950,
16664,
29885,
29915,
5783,
13,
13,
2541,
1722,
29898,
1420,
29918,
3972,
718,
5591,
29908,
718,
848,
29918,
29888,
978,
29892,
376,
29874,
1159,
408,
285,
29901,
13,
12,
6008,
353,
1286,
29889,
710,
615,
603,
11702,
29881,
22584,
29885,
22584,
29891,
1273,
29950,
16664,
29924,
1159,
13,
12,
29888,
29889,
3539,
703,
29912,
3400,
29912,
3400,
29912,
1012,
29876,
1642,
4830,
29898,
6008,
29892,
5694,
29892,
3165,
876,
13,
13,
2813,
13776,
29908,
29966,
1420,
29958,
13,
29966,
2813,
29958,
13,
29966,
3257,
29958,
5776,
546,
1535,
829,
3257,
29958,
13,
829,
2813,
29958,
13,
29966,
2587,
14247,
29876,
15945,
29908,
13,
2587,
29896,
353,
9995,
13,
29966,
4563,
1178,
543,
5317,
368,
29899,
15425,
5319,
4563,
29958,
13,
29966,
2154,
1134,
14672,
726,
29914,
7729,
5931,
4765,
2013,
1642,
29914,
5317,
368,
29899,
12333,
29889,
1195,
29889,
1315,
29905,
5319,
2154,
29958,
13,
29966,
2154,
1134,
14672,
726,
29914,
7729,
5931,
1405,
13,
1707,
5694,
353,
426,
13,
29871,
921,
29901,
6796,
15945,
13,
2587,
29906,
543,
1402,
29905,
29876,
29871,
343,
29901,
6796,
13,
2587,
29941,
13776,
12436,
13,
29871,
1024,
29901,
525,
12863,
1535,
742,
13,
29871,
1134,
29901,
525,
1557,
2620,
29915,
13,
3400,
13,
13,
1707,
3165,
353,
426,
13,
29871,
921,
29901,
6796,
15945,
13,
2587,
29946,
543,
1402,
29905,
29876,
29871,
343,
29901,
6796,
13,
2587,
29945,
13776,
12436,
13,
29871,
343,
8990,
29901,
525,
29891,
29906,
742,
13,
29871,
1024,
29901,
525,
16063,
333,
537,
742,
13,
29871,
1134,
29901,
525,
1557,
2620,
29915,
13,
3400,
13,
13,
1707,
848,
353,
518,
7382,
29892,
3165,
1385,
13,
13,
1707,
5912,
353,
426,
13,
29871,
3611,
29901,
525,
11843,
612,
319,
11497,
8741,
742,
13,
29871,
343,
8990,
29901,
426,
3257,
29901,
525,
5776,
546,
1535,
16675,
13,
29871,
343,
8990,
29906,
29901,
426,
13,
1678,
3611,
29901,
525,
29950,
398,
333,
537,
742,
13,
1678,
27292,
292,
29901,
525,
29891,
742,
13,
1678,
2625,
29901,
525,
1266,
29915,
13,
29871,
500,
13,
3400,
13,
13,
20867,
368,
29889,
1482,
20867,
877,
5317,
368,
29899,
15425,
742,
848,
29892,
5912,
416,
13,
829,
2154,
29958,
13,
15945,
29908,
13,
13,
18237,
543,
829,
2587,
2565,
1420,
14247,
29876,
29908,
13,
13,
2541,
1722,
29898,
1420,
29918,
3972,
718,
5591,
29908,
718,
3472,
29918,
29888,
978,
29892,
376,
29893,
1159,
408,
285,
29901,
13,
12,
29888,
29889,
3539,
29898,
2813,
29897,
13,
12,
29888,
29889,
3539,
29898,
2587,
29896,
29897,
13,
12,
29888,
29889,
3539,
28165,
1642,
7122,
29898,
6008,
29918,
1272,
876,
13,
12,
29888,
29889,
3539,
29898,
2587,
29906,
29897,
13,
12,
29888,
29889,
3539,
28165,
1642,
7122,
29898,
29873,
29918,
1272,
876,
13,
12,
29888,
29889,
3539,
29898,
2587,
29941,
29897,
13,
12,
29888,
29889,
3539,
28165,
1642,
7122,
29898,
6008,
29918,
1272,
876,
13,
12,
29888,
29889,
3539,
29898,
2587,
29946,
29897,
13,
12,
29888,
29889,
3539,
28165,
1642,
7122,
29898,
29882,
29918,
1272,
876,
13,
12,
29888,
29889,
3539,
29898,
2587,
29945,
29897,
13,
12,
29888,
29889,
3539,
29898,
18237,
29897,
13,
13,
12,
12,
13,
2
] |
pandas/main.py | monishshah18/python-cp-cheatsheet | 140 | 14032 | <gh_stars>100-1000
"""
Summarize a column total cases column and total deaths column
Country by country data in columns, sum up and match global totals
"""
import csv
import pandas
pandas.set_option("display.max_rows", None, "display.max_columns", None)
col_list = ["Total Cases", "Country/ Other", "Total Deaths", "# 9/27/2020"]
df = pandas.read_csv("covidmilliondead.csv", usecols=col_list, thousands=',')
totalCases, totalDeaths = 0,0
for idx, cases,deaths in zip(df["# 9/27/2020"], df["Total Cases"], df["Total Deaths"]):
if idx > 0:
totalCases += cases
if deaths > 0:
totalDeaths += deaths
for idx, country, cases, deaths in zip(df["# 9/27/2020"], df["Country/ Other"], df["Total Cases"], df["Total Deaths"]):
if idx > 0:
print("\n",country)
print("Cases : ", cases, "/", totalCases, " %", "{:.5%}".format(cases/totalCases))
if deaths > 0:
print("Deaths : ", int(deaths), "/", totalDeaths, " %", "{:.5%}".format(deaths/totalDeaths))
print("")
print("Total Cases")
print(totalCases)
print("Total Deaths")
print(totalDeaths) | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
15945,
29908,
13,
11139,
3034,
675,
263,
1897,
3001,
4251,
1897,
322,
3001,
4892,
29879,
1897,
29871,
13,
20779,
491,
4234,
848,
297,
4341,
29892,
2533,
701,
322,
1993,
5534,
2025,
1338,
13,
15945,
29908,
13,
5215,
11799,
29871,
13,
5215,
11701,
13,
13,
15112,
29889,
842,
29918,
3385,
703,
4990,
29889,
3317,
29918,
5727,
613,
6213,
29892,
376,
4990,
29889,
3317,
29918,
13099,
613,
6213,
29897,
13,
1054,
29918,
1761,
353,
6796,
11536,
315,
2129,
613,
376,
20779,
29914,
5901,
613,
376,
11536,
14450,
29879,
613,
12305,
29871,
29929,
29914,
29906,
29955,
29914,
29906,
29900,
29906,
29900,
3108,
13,
2176,
353,
11701,
29889,
949,
29918,
7638,
703,
24542,
333,
19958,
291,
311,
328,
29889,
7638,
613,
671,
22724,
29922,
1054,
29918,
1761,
29892,
17202,
29922,
742,
1495,
13,
13,
7827,
29907,
2129,
29892,
3001,
2772,
493,
29879,
353,
29871,
29900,
29892,
29900,
13,
13,
1454,
22645,
29892,
29871,
4251,
29892,
311,
493,
29879,
297,
14319,
29898,
2176,
3366,
29937,
29871,
29929,
29914,
29906,
29955,
29914,
29906,
29900,
29906,
29900,
12436,
4489,
3366,
11536,
315,
2129,
12436,
4489,
3366,
11536,
14450,
29879,
3108,
1125,
13,
1678,
565,
22645,
1405,
29871,
29900,
29901,
13,
4706,
3001,
29907,
2129,
4619,
4251,
29871,
13,
4706,
565,
4892,
29879,
1405,
29871,
29900,
29901,
13,
9651,
3001,
2772,
493,
29879,
4619,
4892,
29879,
13,
13,
1454,
22645,
29892,
4234,
29892,
4251,
29892,
4892,
29879,
297,
14319,
29898,
2176,
3366,
29937,
29871,
29929,
29914,
29906,
29955,
29914,
29906,
29900,
29906,
29900,
12436,
4489,
3366,
20779,
29914,
5901,
12436,
4489,
3366,
11536,
315,
2129,
12436,
4489,
3366,
11536,
14450,
29879,
3108,
1125,
13,
1678,
565,
22645,
1405,
29871,
29900,
29901,
13,
4706,
1596,
14182,
29876,
613,
13509,
29897,
13,
4706,
1596,
703,
29907,
2129,
584,
9162,
4251,
29892,
5591,
613,
3001,
29907,
2129,
29892,
376,
1273,
613,
376,
25641,
29889,
29945,
29995,
29913,
1642,
4830,
29898,
11436,
29914,
7827,
29907,
2129,
876,
13,
4706,
565,
4892,
29879,
1405,
29871,
29900,
29901,
13,
9651,
1596,
703,
2772,
493,
29879,
584,
9162,
938,
29898,
311,
493,
29879,
511,
5591,
613,
3001,
2772,
493,
29879,
29892,
376,
1273,
613,
376,
25641,
29889,
29945,
29995,
29913,
1642,
4830,
29898,
311,
493,
29879,
29914,
7827,
2772,
493,
29879,
876,
13,
13,
2158,
703,
1159,
13,
2158,
703,
11536,
315,
2129,
1159,
13,
2158,
29898,
7827,
29907,
2129,
29897,
13,
13,
2158,
703,
11536,
14450,
29879,
1159,
13,
2158,
29898,
7827,
2772,
493,
29879,
29897,
2
] |
apps/restaccount/resources.py | solatis/microservices | 38 | 24420 | import json
import falcon
import time
import uuid
import requests
from apps.database import init_db, db_session
from apps.models import Account
from apps.restaccount.logging import logging
logger = logging.getLogger(__name__)
from decouple import config
ES_HOST = config('EVENTSTORE_HOST', default='eventstore')
ES_PORT = config('EVENTSTORE_PORT', default=2113, cast=int)
stream_url = 'http://{}:{}/streams/accounts'.format(ES_HOST, ES_PORT)
content_header = { 'Content-Type': 'application/vnd.eventstore.events+json' }
logger.info('stream_url: {}'.format(stream_url))
def get_account(account_id):
return Account.query.get(account_id)
class BalanceResource(object):
def on_get(self, req, resp, account_id):
init_db()
doc = db_session.query(Account).get(account_id)
db_session.close()
if doc is None:
raise falcon.HTTPBadRequest('Balance missing', 'Deposit money to start using an account')
else:
# Create a JSON representation of the resource
resp.body = json.dumps(doc.as_dict(), ensure_ascii=False)
# The following line can be omitted because 200 is the default
# status returned by the framework, but it is included here to
# illustrate how this may be overridden as needed.
resp.status = falcon.HTTP_200
class DepositResource(object):
def on_post(self, req, resp):
body = req.stream.read()
doc = json.loads(body.decode('utf-8'))
logger.info('doc: {}'.format(doc))
payload = [
{
"eventId": str(uuid.uuid1()),
"eventType": "created-deposit",
"data": doc
}
]
logger.info("payload: {}".format(payload))
r = requests.post(stream_url, data=str(payload), headers=content_header)
resp.status = falcon.HTTP_200
class TransferResource(object):
def on_post(self, req, resp):
body = req.stream.read()
doc = json.loads(body.decode('utf-8'))
acc = get_account(doc['account_id'])
payload = [
{
"eventId": str(uuid.uuid1()),
"eventType": "created-transfer",
"data": doc
}
]
if acc is None:
raise falcon.HTTPBadRequest('Account missing', 'You must deposit into an account before transfering')
if acc.balance < doc['amount']:
raise falcon.HTTPBadRequest('Insufficient funds', 'Account balance {} less than transfer amount {}'.format(acc.balance, doc['amount']))
else:
logger.info("payload: {}".format(payload))
r = requests.post(stream_url, data=str(payload), headers=content_header)
resp.status = falcon.HTTP_200 | [
1,
1053,
4390,
13,
5215,
11092,
535,
13,
5215,
931,
13,
5215,
318,
5416,
13,
5215,
7274,
13,
3166,
11446,
29889,
9803,
1053,
2069,
29918,
2585,
29892,
4833,
29918,
7924,
13,
3166,
11446,
29889,
9794,
1053,
16535,
13,
13,
3166,
11446,
29889,
5060,
10149,
29889,
21027,
1053,
12183,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
3166,
1602,
283,
552,
1053,
2295,
13,
13,
2890,
29918,
20832,
353,
2295,
877,
22240,
3919,
1254,
29949,
1525,
29918,
20832,
742,
2322,
2433,
3696,
8899,
1495,
13,
2890,
29918,
15082,
353,
2295,
877,
22240,
3919,
1254,
29949,
1525,
29918,
15082,
742,
2322,
29922,
29906,
29896,
29896,
29941,
29892,
4320,
29922,
524,
29897,
13,
13,
5461,
29918,
2271,
353,
525,
1124,
597,
29912,
6177,
29912,
6822,
5461,
29879,
29914,
10149,
29879,
4286,
4830,
29898,
2890,
29918,
20832,
29892,
17956,
29918,
15082,
29897,
13,
3051,
29918,
6672,
353,
426,
525,
3916,
29899,
1542,
2396,
525,
6214,
29914,
29894,
299,
29889,
3696,
8899,
29889,
13604,
29974,
3126,
29915,
500,
13,
13,
21707,
29889,
3888,
877,
5461,
29918,
2271,
29901,
6571,
4286,
4830,
29898,
5461,
29918,
2271,
876,
13,
13,
1753,
679,
29918,
10149,
29898,
10149,
29918,
333,
1125,
13,
1678,
736,
16535,
29889,
1972,
29889,
657,
29898,
10149,
29918,
333,
29897,
13,
13,
1990,
7392,
749,
6848,
29898,
3318,
1125,
13,
13,
1678,
822,
373,
29918,
657,
29898,
1311,
29892,
12428,
29892,
4613,
29892,
3633,
29918,
333,
1125,
13,
4706,
2069,
29918,
2585,
580,
13,
4706,
1574,
353,
4833,
29918,
7924,
29889,
1972,
29898,
10601,
467,
657,
29898,
10149,
29918,
333,
29897,
13,
4706,
4833,
29918,
7924,
29889,
5358,
580,
13,
13,
4706,
565,
1574,
338,
6213,
29901,
13,
9651,
12020,
11092,
535,
29889,
10493,
22050,
3089,
877,
22031,
749,
4567,
742,
525,
8498,
359,
277,
6909,
304,
1369,
773,
385,
3633,
1495,
13,
4706,
1683,
29901,
13,
9651,
396,
6204,
263,
4663,
8954,
310,
278,
6503,
13,
9651,
4613,
29889,
2587,
353,
4390,
29889,
29881,
17204,
29898,
1514,
29889,
294,
29918,
8977,
3285,
9801,
29918,
294,
18869,
29922,
8824,
29897,
13,
9651,
396,
450,
1494,
1196,
508,
367,
25811,
1363,
29871,
29906,
29900,
29900,
338,
278,
2322,
13,
9651,
396,
4660,
4133,
491,
278,
6890,
29892,
541,
372,
338,
5134,
1244,
304,
13,
9651,
396,
28475,
920,
445,
1122,
367,
20831,
1145,
408,
4312,
29889,
13,
9651,
4613,
29889,
4882,
353,
11092,
535,
29889,
10493,
29918,
29906,
29900,
29900,
13,
13,
1990,
897,
1066,
277,
6848,
29898,
3318,
1125,
13,
13,
1678,
822,
373,
29918,
2490,
29898,
1311,
29892,
12428,
29892,
4613,
1125,
13,
4706,
3573,
353,
12428,
29889,
5461,
29889,
949,
580,
13,
4706,
1574,
353,
4390,
29889,
18132,
29898,
2587,
29889,
13808,
877,
9420,
29899,
29947,
8785,
13,
13,
4706,
17927,
29889,
3888,
877,
1514,
29901,
6571,
4286,
4830,
29898,
1514,
876,
13,
308,
13,
4706,
20092,
353,
518,
13,
3986,
426,
13,
9651,
376,
3696,
1204,
1115,
851,
29898,
25118,
29889,
25118,
29896,
25739,
13,
9651,
376,
3696,
1542,
1115,
376,
11600,
29899,
311,
1066,
277,
613,
13,
9651,
376,
1272,
1115,
1574,
13,
3986,
500,
13,
4706,
4514,
13,
13,
4706,
17927,
29889,
3888,
703,
23813,
29901,
6571,
1642,
4830,
29898,
23813,
876,
13,
13,
4706,
364,
353,
7274,
29889,
2490,
29898,
5461,
29918,
2271,
29892,
848,
29922,
710,
29898,
23813,
511,
9066,
29922,
3051,
29918,
6672,
29897,
13,
13,
4706,
4613,
29889,
4882,
353,
11092,
535,
29889,
10493,
29918,
29906,
29900,
29900,
13,
13,
1990,
17934,
6848,
29898,
3318,
1125,
13,
13,
1678,
822,
373,
29918,
2490,
29898,
1311,
29892,
12428,
29892,
4613,
1125,
13,
4706,
3573,
353,
12428,
29889,
5461,
29889,
949,
580,
13,
4706,
1574,
353,
4390,
29889,
18132,
29898,
2587,
29889,
13808,
877,
9420,
29899,
29947,
8785,
13,
13,
4706,
1035,
353,
679,
29918,
10149,
29898,
1514,
1839,
10149,
29918,
333,
11287,
13,
308,
13,
4706,
20092,
353,
518,
13,
3986,
426,
13,
9651,
376,
3696,
1204,
1115,
851,
29898,
25118,
29889,
25118,
29896,
25739,
13,
9651,
376,
3696,
1542,
1115,
376,
11600,
29899,
3286,
571,
613,
13,
9651,
376,
1272,
1115,
1574,
13,
3986,
500,
13,
4706,
4514,
13,
13,
4706,
565,
1035,
338,
6213,
29901,
13,
9651,
12020,
11092,
535,
29889,
10493,
22050,
3089,
877,
10601,
4567,
742,
525,
3492,
1818,
19754,
277,
964,
385,
3633,
1434,
6782,
292,
1495,
13,
4706,
565,
1035,
29889,
5521,
749,
529,
1574,
1839,
14506,
2033,
29901,
13,
9651,
12020,
11092,
535,
29889,
10493,
22050,
3089,
877,
797,
2146,
4543,
29199,
742,
525,
10601,
17346,
6571,
3109,
1135,
6782,
5253,
6571,
4286,
4830,
29898,
5753,
29889,
5521,
749,
29892,
1574,
1839,
14506,
25901,
13,
4706,
1683,
29901,
13,
9651,
17927,
29889,
3888,
703,
23813,
29901,
6571,
1642,
4830,
29898,
23813,
876,
13,
9651,
364,
353,
7274,
29889,
2490,
29898,
5461,
29918,
2271,
29892,
848,
29922,
710,
29898,
23813,
511,
9066,
29922,
3051,
29918,
6672,
29897,
13,
9651,
4613,
29889,
4882,
353,
11092,
535,
29889,
10493,
29918,
29906,
29900,
29900,
2
] |
secondtest/2012/2gauss-seidel.py | JoaoCostaIFG/MNUM | 1 | 1613988 | <reponame>JoaoCostaIFG/MNUM
#!/usr/bin/env python3
# CHECKED
# The answers on the pdf were wrong, except for the first value of x1
# (I believe mine are right because I get the same results when using old, correct. code)
# a)
n = 4 # matrix order
A = [[4.9, -1, -1, 1], [-1, 4.8, 1, -1], [-1, 2, 4.8, -1], [2, -1, -1, 4.8]]
b = [1, -1, -1, 0]
x0 = [0, 0, 0, 0]
x = [0, 0, 0, 0]
for k in range(2):
for i in range(n):
x[i] = b[i]
for j in range(i):
x[i] -= A[i][j] * x[j]
for j in range(i+1, n):
x[i] -= A[i][j] * x0[j]
x[i] /= A[i][i]
# if doing more than 1 iteration, copy method is very important
# (see python's soft and hard copies)
x0 = x.copy()
print(x)
# b)
# The process converges because the absolute value of each element on the main
# diagonal of the matrix ([4.8, 4.8, 4.8, 4.8]) is greater than or equal to (diagonally dominant)
# the sum of the absolute values of all other elements in their respective lines:
# i=1 4.8 > 3
# i=2 4.8 > 3
# i=3 4.8 > 4
# i=4 4.8 > 4
| [
1,
529,
276,
1112,
420,
29958,
10844,
6241,
29907,
16233,
6545,
29954,
29914,
29924,
13967,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
29937,
23557,
3352,
13,
29937,
450,
6089,
373,
278,
13552,
892,
2743,
29892,
5174,
363,
278,
937,
995,
310,
921,
29896,
13,
29937,
313,
29902,
4658,
7903,
526,
1492,
1363,
306,
679,
278,
1021,
2582,
746,
773,
2030,
29892,
1959,
29889,
775,
29897,
13,
13,
29937,
263,
29897,
13,
29876,
353,
29871,
29946,
29871,
396,
4636,
1797,
13,
29909,
353,
5519,
29946,
29889,
29929,
29892,
448,
29896,
29892,
448,
29896,
29892,
29871,
29896,
1402,
21069,
29896,
29892,
29871,
29946,
29889,
29947,
29892,
29871,
29896,
29892,
448,
29896,
1402,
21069,
29896,
29892,
29871,
29906,
29892,
29871,
29946,
29889,
29947,
29892,
448,
29896,
1402,
518,
29906,
29892,
448,
29896,
29892,
448,
29896,
29892,
29871,
29946,
29889,
29947,
5262,
13,
29890,
353,
518,
29896,
29892,
448,
29896,
29892,
448,
29896,
29892,
29871,
29900,
29962,
13,
13,
29916,
29900,
353,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29962,
13,
29916,
353,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29962,
13,
13,
1454,
413,
297,
3464,
29898,
29906,
1125,
13,
1678,
363,
474,
297,
3464,
29898,
29876,
1125,
13,
4706,
921,
29961,
29875,
29962,
353,
289,
29961,
29875,
29962,
13,
4706,
363,
432,
297,
3464,
29898,
29875,
1125,
13,
9651,
921,
29961,
29875,
29962,
22361,
319,
29961,
29875,
3816,
29926,
29962,
334,
921,
29961,
29926,
29962,
13,
13,
4706,
363,
432,
297,
3464,
29898,
29875,
29974,
29896,
29892,
302,
1125,
13,
9651,
921,
29961,
29875,
29962,
22361,
319,
29961,
29875,
3816,
29926,
29962,
334,
921,
29900,
29961,
29926,
29962,
13,
13,
4706,
921,
29961,
29875,
29962,
847,
29922,
319,
29961,
29875,
3816,
29875,
29962,
13,
13,
1678,
396,
565,
2599,
901,
1135,
29871,
29896,
12541,
29892,
3509,
1158,
338,
1407,
4100,
13,
1678,
396,
313,
4149,
3017,
29915,
29879,
4964,
322,
2898,
14591,
29897,
13,
1678,
921,
29900,
353,
921,
29889,
8552,
580,
13,
1678,
1596,
29898,
29916,
29897,
13,
13,
13,
29937,
289,
29897,
13,
29937,
450,
1889,
24144,
1363,
278,
8380,
995,
310,
1269,
1543,
373,
278,
1667,
13,
29937,
19640,
310,
278,
4636,
9310,
29946,
29889,
29947,
29892,
29871,
29946,
29889,
29947,
29892,
29871,
29946,
29889,
29947,
29892,
29871,
29946,
29889,
29947,
2314,
338,
7621,
1135,
470,
5186,
304,
313,
6051,
12841,
635,
28526,
29897,
13,
29937,
278,
2533,
310,
278,
8380,
1819,
310,
599,
916,
3161,
297,
1009,
18067,
3454,
29901,
13,
29937,
474,
29922,
29896,
1678,
29946,
29889,
29947,
1405,
29871,
29941,
13,
29937,
474,
29922,
29906,
1678,
29946,
29889,
29947,
1405,
29871,
29941,
13,
29937,
474,
29922,
29941,
1678,
29946,
29889,
29947,
1405,
29871,
29946,
13,
29937,
474,
29922,
29946,
1678,
29946,
29889,
29947,
1405,
29871,
29946,
13,
2
] |
compile.py | Eleyvie/wreck | 1 | 134519 | <reponame>Eleyvie/wreck<filename>compile.py
WRECK_VERSION = '1.0.1'
# DONE:
# new command line parameter: `test`. WRECK will compile the module but won't save anything on disk. Essentially a syntax check.
# PLANNED:
# local variable lifetime check (paranoia mode)
# trace local declaration in all conditional branches
# dialogs: dead ends, inaccessible dialogs
# QUESTIONABLE:
# scripts: detect number of arguments and check all call_script calls
# RESCHEDULED FOR 2.0:
# change behavior on fatal errors wherever possible: remember, assume, continue compilation, don't export, report
# improve globals visibility for modules and plugins
# syntax expected datatype check where appropriate
# operation parameters expected datatype check
# automatically update module.ini when necessary (num_hints parameter for starters)
# check for missing/undeclared scenes in SceneObj folder
# WILL NOT BE IMPLEMENTED:
# check for missing meshes in CommonRes and Resource folder - they're inside brf files, would need brf parser for that
import sys
if (sys.version_info[0] != 2) or (sys.version_info[1] < 6):
exit("\nYou're running Python version {0}.{1}.{2}.\nW.R.E.C.K. requires Python version 2.6.x or 2.7.x to run!\n".format(*sys.version_info[0:3]))
sys.dont_write_bytecode = True
from time import time as gettime
from os import makedirs
from traceback import extract_tb
# Color support
if 'bw' in sys.argv:
COLORAMA = ('', '', '', '', '', '', '', '')
else:
try:
import colorama
colorama.init()
COLORAMA = ('\x1b[0m', '\x1b[31m', '\x1b[32m', '\x1b[33m', '\x1b[34m', '\x1b[35m', '\x1b[36m', '\x1b[37m')
except:
COLORAMA = ('', '', '', '', '', '', '', '')
from compiler import *
write_id_files = "ID_%s.py" # Where the compiler will write new iteration ID-files.
show_performance_data = False # Set to true to display compiler performance data by default.
export_filename = '%s.txt' # How to name export files (only used for some debugging purposes).
WRECK.time_started = gettime()
print
print '{2}*** Warband Refined & Enhanced Compiler Kit (W.R.E.C.K.) version {version!s} ***{0}'.format(*COLORAMA, version = WRECK_VERSION)
print 'Please report errors, problems and suggestions at {5}http://lav.lomskih.net/wreck/{0}'.format(*COLORAMA)
print
try:
# +-----------------------------------------------------------------------------------------------
# /
# +
# |
print 'Loading module...',
try:
# Info module and plugins
WRECK.current_module = 'info'
from module_info import *
WRECK.destination = export_dir.rstrip('/')
globals().update(WRECK.syntax_extensions)
globals().update(WRECK.plugin_globals)
# Optional modules
WRECK.current_module = 'item_modifiers'
try:
from module_item_modifiers import *
except ImportError:
#from defaults.module_item_modifiers import *
item_modifiers = DEFAULT_ITEM_MODIFIERS
WRECK.generate_item_modifiers = False
generate_imod_constants_for_backwards_compatibility(item_modifiers)
WRECK.current_module = 'ui_strings'
try:
from module_ui_strings import *
except ImportError:
ui_strings = []
WRECK.generate_ui_strings = False
WRECK.current_module = 'user_hints'
try:
from module_user_hints import *
except ImportError:
user_hints = []
WRECK.generate_user_hints = False
# Required modules
WRECK.current_module = 'skills'
from module_skills import *
generate_skill_constants_for_backwards_compatibility(skills)
WRECK.current_module = 'animations'
from module_animations import *
WRECK.current_module = 'factions'
from module_factions import *
WRECK.current_module = 'game_menus'
from module_game_menus import *
WRECK.current_module = 'info_pages'
from module_info_pages import *
WRECK.current_module = 'meshes'
from module_meshes import *
WRECK.current_module = 'mission_templates'
from module_mission_templates import *
WRECK.current_module = 'tracks'
from module_music import *
WRECK.current_module = 'particle_systems'
from module_particle_systems import *
WRECK.current_module = 'postfx_params'
from module_postfx import *
WRECK.current_module = 'quests'
from module_quests import *
WRECK.current_module = 'scene_props'
from module_scene_props import *
WRECK.current_module = 'scenes'
from module_scenes import *
WRECK.current_module = 'scripts'
from module_scripts import *
WRECK.current_module = 'simple_triggers'
from module_simple_triggers import *
WRECK.current_module = 'sounds'
from module_sounds import *
WRECK.current_module = 'strings'
from module_strings import *
WRECK.current_module = 'tableaus'
from module_tableau_materials import *
WRECK.current_module = 'triggers'
from module_triggers import *
WRECK.current_module = 'items'
from module_items import *
WRECK.current_module = 'map_icons'
from module_map_icons import *
WRECK.current_module = 'skins'
from module_skins import *
WRECK.current_module = 'presentations'
from module_presentations import *
WRECK.current_module = 'troops'
from module_troops import *
WRECK.current_module = 'party_templates'
from module_party_templates import *
WRECK.current_module = 'parties'
from module_parties import *
WRECK.current_module = 'dialogs'
from module_dialogs import *
WRECK.current_module = None
except Exception, e:
print '{1}FAILED.\nMODULE `{module!s}` ERROR:\n{error!s}{0}'.format(*COLORAMA, module = WRECK.current_module, error = (e.formatted() if isinstance(e, MSException) else formatted_exception()))
if isinstance(e, TypeError) and (('object is not callable' in e.message) or ('indices must be integers' in e.message)):
exc_type, exc_value, exc_traceback = sys.exc_info()
error_info = extract_tb(exc_traceback)[-1]
print '{6} Compiler hint: this error is typically caused by a missing comma.\n Please check that tuples are followed by commas in `{path!s}` above line {line}:\n\n {5}{code!s}{0}'.format(*COLORAMA, path = path_split(error_info[0])[1], line = error_info[1], code = error_info[3])
WRECK.time_loaded = gettime()
raise MSException()
print '{2}DONE.{0}'.format(*COLORAMA)
WRECK.time_loaded = gettime()
# |
# +
# \
# +===============================================================================================
# /
# +
# |
print 'Loading plugins...',
try:
# Check plugin requirements
prereq_errors = []
for plugin, required_by in WRECK.requirements.iteritems():
if plugin not in WRECK.plugins:
prereq_errors.append('Plugin %s not imported but required by %s.' % (plugin, ', '.join(required_by)))
if prereq_errors:
raise MSException('\r\n'.join(prereq_errors))
# Process data injections
glob = get_globals()
for plugin in WRECK.plugins:
for parser in parsers.iterkeys():
if hasattr(glob[plugin], parser):
glob[parser].extend(getattr(glob[plugin], parser))
injections = getattr(glob[plugin], 'injection', None)
if injections:
for inj_name, inj_elements in injections.iteritems():
WRECK.injections.setdefault(inj_name, []).extend(inj_elements)
#WRECK.warnings.append('Injection: %d elements for `%s` in `%s`' % (len(inj_elements), inj_name, plugin))
except Exception, e:
print '{1}FAILED.\nPLUGIN `{module!s}` ERROR:\n{error!s}{0}'.format(*COLORAMA, module = plugin, error = (e.formatted() if isinstance(e, MSException) else formatted_exception()))
WRECK.time_plugins = gettime()
raise MSException()
print '{2}DONE.{0}'.format(*COLORAMA)
WRECK.time_plugins = gettime()
# |
# +
# \
# +===============================================================================================
# /
# +
# |
print 'Checking module syntax...',
try:
for entity_name, entity_def in parsers.iteritems():
WRECK.current_module = entity_name
get_globals()[entity_name] = check_syntax(get_globals()[entity_name], [entity_def['parser']], entity_def.get('uid', 0))
WRECK.current_module = None
except Exception, e:
print '{1}FAILED.\nMODULE `{module!s}` ERROR:\n{error!s}{0}'.format(*COLORAMA, module = entity_name, error = (e.formatted() if isinstance(e, MSException) else formatted_exception()))
WRECK.time_syntax = gettime()
raise MSException()
print '{2}DONE.{0}'.format(*COLORAMA)
WRECK.time_syntax = gettime()
WRECK.anim[7] = animations
WRECK.fac[7] = factions
WRECK.ip[7] = info_pages
WRECK.imod[7] = item_modifiers
WRECK.itm[7] = items
WRECK.icon[7] = map_icons
WRECK.mnu[7] = game_menus
WRECK.mesh[7] = meshes
WRECK.mt[7] = mission_templates
WRECK.track[7] = tracks
WRECK.psys[7] = particle_systems
WRECK.p[7] = parties
WRECK.pt[7] = party_templates
WRECK.pfx[7] = postfx_params
WRECK.prsnt[7] = presentations
WRECK.qst[7] = quests
WRECK.spr[7] = scene_props
WRECK.scn[7] = scenes
WRECK.script[7] = scripts
WRECK.skl[7] = skills
WRECK.snd[7] = sounds
WRECK.s[7] = strings
WRECK.tableau[7] = tableaus
WRECK.trp[7] = troops
# |
# +
# \
# +===============================================================================================
# /
# +
# |
print 'Allocating identifiers...',
try:
allocate_global_variables()
allocate_quick_strings()
calculate_identifiers(animations, anim)
calculate_identifiers(factions, fac)
calculate_identifiers(info_pages, ip)
calculate_identifiers(item_modifiers, imod, imodbit)
calculate_identifiers(items, itm)
calculate_identifiers(map_icons, icon)
calculate_identifiers(game_menus, mnu)
calculate_identifiers(meshes, mesh)
calculate_identifiers(mission_templates, mt)
calculate_identifiers(tracks, track)
calculate_identifiers(particle_systems, psys)
calculate_identifiers(parties, p)
calculate_identifiers(party_templates, pt)
calculate_identifiers(postfx_params, pfx)
calculate_identifiers(presentations, prsnt)
calculate_identifiers(quests, qst)
calculate_identifiers(scene_props, spr)
calculate_identifiers(scenes, scn)
calculate_identifiers(scripts, script)
calculate_identifiers(skills, skl)
calculate_identifiers(sounds, snd)
calculate_identifiers(strings, s)
calculate_identifiers(tableaus, tableau)
calculate_identifiers(troops, trp)
undefined = undefined_identifiers()
if undefined: raise MSException('undeclared identifiers found in module source:\n * %s' % ('\n * '.join(['%s (referenced by \'%s\')' % (name, '\', \''.join(refs)) for name, refs in undefined])))
except Exception, e:
print '{1}FAILED.'.format(*COLORAMA)
if isinstance(e, MSException):
print 'MODULE ERROR:\n{error!s}{0}'.format(*COLORAMA, error = e.formatted())
else:
print 'COMPILER INTERNAL ERROR:\n{error!s}{0}'.format(*COLORAMA, error = formatted_exception())
WRECK.time_identifiers = gettime()
raise MSException()
print '{2}DONE.{0}'.format(*COLORAMA)
WRECK.time_identifiers = gettime()
# |
# +
# \
# +===============================================================================================
# /
# +
# |
print 'Compiling module...',
try:
stage = 0
# Pre-processing (note that all entity-level injections are already done but script-level injections are not).
glob = get_globals()
preprocess_entities_internal(glob)
stage = 1
for plugin in WRECK.plugins:
processor = getattr(glob[plugin], 'preprocess_entities', None)
if processor:
try: processor(glob)
except Exception, e: raise MSException('Error in %r pre-processor script.' % plugin, formatted_exception())
# Compiling...
stage = 2
for entity_name, entity_def in parsers.iteritems():
stage = 3
entities = get_globals()[entity_name]
stage = 4
for index in xrange(len(entities)):
entities[index] = entity_def['processor'](entities[index], index)
stage = 5
setattr(WRECK, entity_name, entity_def['aggregator'](entities))
# Post-processing (plugins are NOT allowed to do anything here as we are dealing with already compiled code)
stage = 6
postprocess_entities()
except Exception, e:
print '{1}FAILED.'.format(*COLORAMA)
if isinstance(e, MSException):
if stage == 0:
print 'COMPILER PREPROCESSOR ERROR:\n{error!s}{0}'.format(*COLORAMA, error = e.formatted())
if stage == 1:
print 'PLUGIN {module!s} PREPROCESSOR ERROR:\n{error!s}{0}'.format(*COLORAMA, module = plugin, error = e.formatted())
elif stage == 3:
print 'MODULE {module!s} ENTITY #{index} COMPILATION ERROR:\n{error!s}{0}'.format(*COLORAMA, module = entity_name, index = index, error = e.formatted())
elif stage == 4:
print 'MODULE {module!s} AGGREGATOR ERROR:\n{error!s}{0}'.format(*COLORAMA, module = entity_name, error = e.formatted())
elif stage == 5:
print 'COMPILER POSTPROCESSOR ERROR:\n{error!s}{0}'.format(*COLORAMA, error = e.formatted())
else:
print 'COMPILER INTERNAL ERROR:\n{error!s}{0}'.format(*COLORAMA, error = formatted_exception())
WRECK.time_compile = gettime()
raise MSException()
print '{2}DONE.{0}'.format(*COLORAMA)
WRECK.time_compile = gettime()
# |
# +
# \
# +===============================================================================================
# /
# +
# |
print 'Exporting module...',
export_done = True # Success
export = {
'animations': export_filename % 'actions',
'dialogs': export_filename % 'conversation',
'dialog_states': export_filename % 'dialog_states',
'factions': export_filename % 'factions',
'game_menus': export_filename % 'menus',
'info_pages': export_filename % 'info_pages',
'items': export_filename % 'item_kinds1',
'map_icons': export_filename % 'map_icons',
'meshes': export_filename % 'meshes',
'mission_templates': export_filename % 'mission_templates',
'tracks': export_filename % 'music',
'particle_systems': export_filename % 'particle_systems',
'parties': export_filename % 'parties',
'party_templates': export_filename % 'party_templates',
'postfx_params': export_filename % 'postfx',
'presentations': export_filename % 'presentations',
'quests': export_filename % 'quests',
'scene_props': export_filename % 'scene_props',
'scenes': export_filename % 'scenes',
'scripts': export_filename % 'scripts',
'simple_triggers': export_filename % 'simple_triggers',
'skills': export_filename % 'skills',
'skins': export_filename % 'skins',
'sounds': export_filename % 'sounds',
'strings': export_filename % 'strings',
'tableaus': export_filename % 'tableau_materials',
'triggers': export_filename % 'triggers',
'troops': export_filename % 'troops',
'variables': export_filename % 'variables',
'quick_strings': export_filename % 'quick_strings',
}
if WRECK.generate_item_modifiers: export['item_modifiers'] = 'Data/item_modifiers.txt'
if WRECK.generate_ui_strings: export['ui_strings'] = 'Languages/en/ui.csv'
if WRECK.generate_user_hints: export['user_hints'] = 'Languages/en/hints.csv'
try:
if 'test' in sys.argv: raise MSException()
for entity_name, filename in export.iteritems():
contents = getattr(WRECK, entity_name)
if contents is None:
#print 'Module %s has no changes, skipping export.' % entity_name
continue
#print 'Exporting module %s...' % entity_name
filename = path_split(filename.replace('\\', '/'))
folder = ('%s/%s' % (WRECK.destination, filename[0])) if filename[0] else WRECK.destination
if filename[0] and not(path_exists(folder)): makedirs(folder)
with open('%s/%s' % (folder, filename[1]), 'w+b') as f: f.write(contents)
except MSException:
export_done = False # Skipped.
write_id_files = None # Override any value that was there.
except Exception, e:
print '{1}FAILED.\nCOMPILER INTERNAL ERROR WHILE WRECKING {module!s}:\n{error!s}{0}'.format(*COLORAMA, module = entity_name, error = formatted_exception())
WRECK.time_export = gettime()
raise MSException()
if write_id_files is not None:
export = {
'animations': (WRECK.anim, 'anim_'),
'factions': (WRECK.fac, 'fac_'),
'info_pages': (WRECK.ip, 'ip_'),
'items': (WRECK.itm, 'itm_'),
'map_icons': (WRECK.icon, 'icon_'),
'menus': (WRECK.mnu, 'mnu_'),
'meshes': (WRECK.mesh, 'mesh_'),
'mission_templates': (WRECK.mt, 'mt_'),
'music': (WRECK.track, 'track_'),
'particle_systems': (WRECK.psys, 'psys_'),
'parties': (WRECK.p, 'p_'),
'party_templates': (WRECK.pt, 'pt_'),
'postfx_params': (WRECK.pfx, 'pfx_'),
'presentations': (WRECK.prsnt, 'prsnt_'),
'quests': (WRECK.qst, 'qst_'),
'scene_props': (WRECK.spr, 'spr_'),
'scenes': (WRECK.scn, 'scn_'),
'scripts': (WRECK.script, 'script_'),
'skills': (WRECK.skl, 'skl_'),
'sounds': (WRECK.snd, 'snd_'),
'strings': (WRECK.s, 'str_'),
'tableau_materials': (WRECK.tableau, 'tableau_'),
'troops': (WRECK.trp, 'trp_'),
}
try:
for entity_name, (entity, prefix) in export.iteritems():
contents = '\n'.join(['%s%s = %d' % (prefix, ref, index) for ref, index in sorted(map(lambda i:(i[0],int(i[1]&0xFFFFFFFF)), entity[0].iteritems()), lambda x,y:cmp(x[1],y[1]))])
with open(write_id_files % entity_name, 'w+b') as f:
f.write(contents)
f.write('\n')
except Exception, e:
print '{1}FAILED.\nCOMPILER INTERNAL ERROR WHILE WRECKING {module!s}:\n{error!s}{0}'.format(*COLORAMA, module = write_id_files % entity_name, error = formatted_exception())
WRECK.time_export = gettime()
raise MSException()
if export_done:
print '{2}DONE.{0}'.format(*COLORAMA)
WRECK.time_export = gettime()
else:
print '{3}SKIPPED.{0}'.format(*COLORAMA)
# |
# +
# \
# +-----------------------------------------------------------------------------------------------
except MSException:
WRECK.successful = False
print
if WRECK.successful:
print '{2}COMPILATION SUCCESSFUL.{0}\n'.format(*COLORAMA)
else:
print '{1}COMPILATION FAILED.{0}\n'.format(*COLORAMA)
error_reporting_level = 3
if 'silent' in sys.argv: error_reporting_level = 0
if ('error' in sys.argv) or ('errors' in sys.argv): error_reporting_level = 1
if ('error' in sys.argv) or ('warnings' in sys.argv): error_reporting_level = 2
if ('notice' in sys.argv) or ('notices' in sys.argv): error_reporting_level = 3
if WRECK.errors and (error_reporting_level > 0):
print 'The following errors were generated during compilation:{1}\n '.format(*COLORAMA),
print '\n '.join(WRECK.errors)
print '{0}'.format(*COLORAMA)
if WRECK.warnings and (error_reporting_level > 1):
print 'The following warnings were generated during compilation:{3}\n '.format(*COLORAMA),
print '\n '.join(WRECK.warnings)
print '{0}'.format(*COLORAMA)
if WRECK.notices and (error_reporting_level > 2):
print 'The following notifications were generated during compilation:{6}\n '.format(*COLORAMA),
print '\n '.join(WRECK.notices)
print '{0}'.format(*COLORAMA)
if show_performance_data and WRECK.time_loaded:
print 'Displaying W.R.E.C.K. performance information.'
print 'Use {5}show_performance_data = False{0} directive in {5}module_info.py{0} file to disable.'.format(*COLORAMA)
print
if WRECK.time_loaded: print ' %.03f sec spent to load module data.' % (WRECK.time_loaded - WRECK.time_started)
if WRECK.time_plugins: print ' %.03f sec spent to load plugins.' % (WRECK.time_plugins - WRECK.time_loaded)
if WRECK.time_syntax: print ' %.03f sec spent to check module syntax.' % (WRECK.time_syntax - WRECK.time_plugins)
if WRECK.time_identifiers: print ' %.03f sec spent to allocate identifiers.' % (WRECK.time_identifiers - WRECK.time_syntax)
if WRECK.time_compile: print ' %.03f sec spent to compile module.' % (WRECK.time_compile - WRECK.time_identifiers)
if WRECK.time_export: print ' %.03f sec spent to export module.' % (WRECK.time_export - WRECK.time_compile)
print
print ' >>> %.03f sec total time spent. <<<' % (gettime() - WRECK.time_started)
print
if 'wait' in sys.argv: raw_input('Press Enter to finish>')
| [
1,
529,
276,
1112,
420,
29958,
29923,
2330,
25965,
29914,
29893,
18217,
29966,
9507,
29958,
12198,
29889,
2272,
13,
29956,
1525,
7077,
29918,
16358,
353,
525,
29896,
29889,
29900,
29889,
29896,
29915,
30004,
13,
30004,
13,
29937,
360,
12413,
29901,
30004,
13,
29937,
716,
1899,
1196,
3443,
29901,
421,
1688,
1412,
399,
1525,
7077,
674,
6633,
278,
3883,
541,
2113,
29915,
29873,
4078,
3099,
373,
8086,
29889,
11044,
9247,
263,
5877,
1423,
22993,
13,
30004,
13,
29937,
16507,
2190,
29940,
3352,
29901,
30004,
13,
29937,
1887,
2286,
25423,
1423,
313,
862,
1562,
423,
4464,
8443,
13,
29937,
9637,
1887,
12029,
297,
599,
15047,
14202,
30004,
13,
29937,
7928,
29879,
29901,
7123,
10614,
29892,
297,
5943,
1821,
7928,
29879,
30004,
13,
30004,
13,
29937,
660,
4462,
1254,
2725,
6181,
29901,
30004,
13,
29937,
12078,
29901,
6459,
1353,
310,
6273,
322,
1423,
599,
1246,
29918,
2154,
5717,
30004,
13,
30004,
13,
29937,
390,
2890,
3210,
3352,
29965,
20566,
15842,
29871,
29906,
29889,
29900,
29901,
30004,
13,
29937,
1735,
6030,
373,
18409,
4436,
29693,
1950,
29901,
6456,
29892,
5251,
29892,
6773,
14835,
29892,
1016,
29915,
29873,
5609,
29892,
3461,
30004,
13,
29937,
11157,
13149,
1338,
26401,
363,
10585,
322,
18224,
30004,
13,
29937,
5877,
3806,
1418,
23179,
1423,
988,
8210,
30004,
13,
29937,
5858,
4128,
3806,
1418,
23179,
1423,
30004,
13,
29937,
6336,
2767,
3883,
29889,
2172,
746,
5181,
313,
1949,
29918,
29882,
9466,
3443,
363,
5810,
2153,
8443,
13,
29937,
1423,
363,
4567,
29914,
870,
687,
433,
1127,
20407,
297,
2522,
1600,
9930,
4138,
30004,
13,
30004,
13,
29937,
399,
24071,
6058,
20700,
306,
3580,
1307,
13780,
3352,
29901,
30004,
13,
29937,
1423,
363,
4567,
4883,
13244,
297,
13103,
1666,
322,
18981,
4138,
448,
896,
29915,
276,
2768,
1506,
29888,
2066,
29892,
723,
817,
1506,
29888,
13812,
363,
393,
30004,
13,
30004,
13,
5215,
10876,
30004,
13,
361,
313,
9675,
29889,
3259,
29918,
3888,
29961,
29900,
29962,
2804,
29871,
29906,
29897,
470,
313,
9675,
29889,
3259,
29918,
3888,
29961,
29896,
29962,
529,
29871,
29953,
1125,
30004,
13,
12,
13322,
14182,
29876,
3492,
29915,
276,
2734,
5132,
1873,
426,
29900,
1836,
29912,
29896,
1836,
29912,
29906,
1836,
29905,
29876,
29956,
29889,
29934,
29889,
29923,
29889,
29907,
29889,
29968,
29889,
6858,
5132,
1873,
29871,
29906,
29889,
29953,
29889,
29916,
470,
29871,
29906,
29889,
29955,
29889,
29916,
304,
1065,
9903,
29876,
1642,
4830,
10456,
9675,
29889,
3259,
29918,
3888,
29961,
29900,
29901,
29941,
12622,
30004,
13,
9675,
29889,
29881,
609,
29918,
3539,
29918,
10389,
401,
353,
5852,
30004,
13,
30004,
13,
3166,
931,
1053,
931,
408,
679,
2230,
30004,
13,
3166,
2897,
1053,
2136,
287,
12935,
30004,
13,
30004,
13,
3166,
9637,
1627,
1053,
6597,
29918,
22625,
30004,
13,
30004,
13,
29937,
9159,
2304,
30004,
13,
361,
525,
29890,
29893,
29915,
297,
10876,
29889,
19218,
29901,
30004,
13,
12,
15032,
1955,
29909,
1529,
353,
6702,
742,
15516,
15516,
15516,
15516,
15516,
15516,
27255,
30004,
13,
2870,
29901,
30004,
13,
12,
2202,
29901,
30004,
13,
12,
12,
5215,
2927,
3304,
30004,
13,
12,
12,
2780,
3304,
29889,
2344,
26471,
13,
12,
12,
15032,
1955,
29909,
1529,
353,
6702,
29905,
29916,
29896,
29890,
29961,
29900,
29885,
742,
11297,
29916,
29896,
29890,
29961,
29941,
29896,
29885,
742,
11297,
29916,
29896,
29890,
29961,
29941,
29906,
29885,
742,
11297,
29916,
29896,
29890,
29961,
29941,
29941,
29885,
742,
11297,
29916,
29896,
29890,
29961,
29941,
29946,
29885,
742,
11297,
29916,
29896,
29890,
29961,
29941,
29945,
29885,
742,
11297,
29916,
29896,
29890,
29961,
29941,
29953,
29885,
742,
11297,
29916,
29896,
29890,
29961,
29941,
29955,
29885,
1495,
30004,
13,
12,
19499,
29901,
30004,
13,
12,
12,
15032,
1955,
29909,
1529,
353,
6702,
742,
15516,
15516,
15516,
15516,
15516,
15516,
27255,
30004,
13,
30004,
13,
30004,
13,
3166,
6516,
1053,
334,
30004,
13,
30004,
13,
30004,
13,
30004,
13,
3539,
29918,
333,
29918,
5325,
353,
376,
1367,
29918,
29995,
29879,
29889,
2272,
29908,
396,
6804,
278,
6516,
674,
2436,
716,
12541,
3553,
29899,
5325,
22993,
13,
4294,
29918,
546,
13390,
29918,
1272,
353,
7700,
396,
3789,
304,
1565,
304,
2479,
6516,
4180,
848,
491,
2322,
22993,
13,
15843,
29918,
9507,
353,
14210,
29879,
29889,
3945,
29915,
396,
1128,
304,
1024,
5609,
2066,
313,
6194,
1304,
363,
777,
13490,
11976,
467,
30004,
13,
30004,
13,
29956,
1525,
7077,
29889,
2230,
29918,
2962,
287,
353,
679,
2230,
26471,
13,
30004,
13,
30004,
13,
2158,
30004,
13,
2158,
22372,
29906,
29913,
17435,
3362,
4980,
9897,
1312,
669,
1174,
29308,
3831,
3955,
26240,
313,
29956,
29889,
29934,
29889,
29923,
29889,
29907,
29889,
29968,
1846,
1873,
426,
3259,
29991,
29879,
29913,
18610,
29912,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
1873,
353,
399,
1525,
7077,
29918,
16358,
8443,
13,
2158,
525,
12148,
3461,
4436,
29892,
4828,
322,
10529,
472,
426,
29945,
29913,
1124,
597,
4112,
29889,
29880,
290,
26896,
29889,
1212,
29914,
29893,
18217,
19248,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
2158,
30004,
13,
30004,
13,
2202,
29901,
30004,
13,
30004,
13,
29937,
259,
718,
2683,
2683,
2683,
2683,
2683,
9072,
5634,
30004,
13,
29937,
29871,
847,
30004,
13,
29937,
718,
30004,
13,
29937,
891,
30004,
13,
30004,
13,
12,
2158,
525,
23456,
3883,
856,
23592,
13,
30004,
13,
12,
2202,
29901,
30004,
13,
30004,
13,
12,
12,
29937,
22140,
3883,
322,
18224,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
3888,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
3888,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
23848,
353,
5609,
29918,
3972,
29889,
29878,
17010,
11219,
1495,
30004,
13,
12,
12,
23705,
1338,
2141,
5504,
29898,
29956,
1525,
7077,
29889,
29562,
29918,
24299,
8443,
13,
12,
12,
23705,
1338,
2141,
5504,
29898,
29956,
1525,
7077,
29889,
8582,
29918,
23705,
1338,
8443,
13,
30004,
13,
12,
12,
29937,
28379,
10585,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
667,
29918,
1545,
14903,
29915,
30004,
13,
12,
12,
2202,
29901,
30004,
13,
12,
12,
12,
3166,
3883,
29918,
667,
29918,
1545,
14903,
1053,
334,
30004,
13,
12,
12,
19499,
16032,
2392,
29901,
30004,
13,
12,
12,
12,
29937,
3166,
21274,
29889,
5453,
29918,
667,
29918,
1545,
14903,
1053,
334,
30004,
13,
12,
12,
12,
667,
29918,
1545,
14903,
353,
22236,
29918,
9094,
29924,
29918,
6720,
4571,
3738,
23598,
30004,
13,
12,
12,
12,
29956,
1525,
7077,
29889,
17158,
29918,
667,
29918,
1545,
14903,
353,
7700,
30004,
13,
12,
12,
17158,
29918,
326,
397,
29918,
3075,
1934,
29918,
1454,
29918,
1627,
2935,
29918,
12667,
4127,
29898,
667,
29918,
1545,
14903,
8443,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
1481,
29918,
19651,
29915,
30004,
13,
12,
12,
2202,
29901,
30004,
13,
12,
12,
12,
3166,
3883,
29918,
1481,
29918,
19651,
1053,
334,
30004,
13,
12,
12,
19499,
16032,
2392,
29901,
30004,
13,
12,
12,
12,
1481,
29918,
19651,
353,
5159,
30004,
13,
12,
12,
12,
29956,
1525,
7077,
29889,
17158,
29918,
1481,
29918,
19651,
353,
7700,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
1792,
29918,
29882,
9466,
29915,
30004,
13,
12,
12,
2202,
29901,
30004,
13,
12,
12,
12,
3166,
3883,
29918,
1792,
29918,
29882,
9466,
1053,
334,
30004,
13,
12,
12,
19499,
16032,
2392,
29901,
30004,
13,
12,
12,
12,
1792,
29918,
29882,
9466,
353,
5159,
30004,
13,
12,
12,
12,
29956,
1525,
7077,
29889,
17158,
29918,
1792,
29918,
29882,
9466,
353,
7700,
30004,
13,
30004,
13,
12,
12,
29937,
830,
5958,
10585,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
808,
6090,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
808,
6090,
1053,
334,
30004,
13,
12,
12,
17158,
29918,
808,
453,
29918,
3075,
1934,
29918,
1454,
29918,
1627,
2935,
29918,
12667,
4127,
29898,
808,
6090,
8443,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
11576,
800,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
11576,
800,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
5444,
1953,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
5444,
1953,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
11802,
29918,
1527,
375,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
11802,
29918,
1527,
375,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
3888,
29918,
12292,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
3888,
29918,
12292,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
4467,
13244,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
4467,
13244,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
6737,
29918,
20943,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
6737,
29918,
20943,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
3018,
4684,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
23596,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
1595,
2512,
29918,
5205,
29879,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
1595,
2512,
29918,
5205,
29879,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
2490,
11093,
29918,
7529,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
2490,
11093,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
1119,
29879,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
1119,
29879,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
24645,
29918,
11030,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
24645,
29918,
11030,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
1557,
25487,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
1557,
25487,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
16713,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
16713,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
12857,
29918,
509,
335,
5743,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
12857,
29918,
509,
335,
5743,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
29879,
3885,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
29879,
3885,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
19651,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
19651,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
2371,
1485,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
2371,
585,
29918,
15388,
29879,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
509,
335,
5743,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
509,
335,
5743,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
7076,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
7076,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
1958,
29918,
27078,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
1958,
29918,
27078,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
808,
1144,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
808,
1144,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
6338,
800,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
6338,
800,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
29873,
307,
3554,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
29873,
307,
3554,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
22633,
29918,
20943,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
22633,
29918,
20943,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
1595,
583,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
1595,
583,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
525,
15901,
29879,
29915,
30004,
13,
12,
12,
3166,
3883,
29918,
15901,
29879,
1053,
334,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
6213,
30004,
13,
30004,
13,
12,
19499,
8960,
29892,
321,
29901,
30004,
13,
12,
12,
2158,
22372,
29896,
29913,
4519,
29902,
20566,
7790,
29876,
6720,
14849,
1307,
23230,
5453,
29991,
29879,
10114,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
3883,
353,
399,
1525,
7077,
29889,
3784,
29918,
5453,
29892,
1059,
353,
313,
29872,
29889,
689,
19667,
580,
565,
338,
8758,
29898,
29872,
29892,
10888,
2451,
29897,
1683,
20917,
29918,
11739,
22130,
30004,
13,
12,
12,
361,
338,
8758,
29898,
29872,
29892,
20948,
29897,
322,
313,
877,
3318,
338,
451,
1246,
519,
29915,
297,
321,
29889,
4906,
29897,
470,
6702,
513,
1575,
1818,
367,
11920,
29915,
297,
321,
29889,
4906,
22164,
30004,
13,
12,
12,
12,
735,
29883,
29918,
1853,
29892,
5566,
29918,
1767,
29892,
5566,
29918,
15003,
1627,
353,
10876,
29889,
735,
29883,
29918,
3888,
26471,
13,
12,
12,
12,
2704,
29918,
3888,
353,
6597,
29918,
22625,
29898,
735,
29883,
29918,
15003,
1627,
9601,
29899,
29896,
29962,
30004,
13,
12,
12,
12,
2158,
22372,
29953,
29913,
29871,
3831,
3955,
13182,
29901,
445,
1059,
338,
12234,
8581,
491,
263,
4567,
16694,
7790,
29876,
29871,
3529,
1423,
393,
5291,
2701,
526,
5643,
491,
844,
294,
297,
23230,
2084,
29991,
29879,
10114,
2038,
1196,
426,
1220,
29913,
3583,
29876,
29905,
29876,
1678,
426,
29945,
1157,
401,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
2224,
353,
2224,
29918,
5451,
29898,
2704,
29918,
3888,
29961,
29900,
2314,
29961,
29896,
1402,
1196,
353,
1059,
29918,
3888,
29961,
29896,
1402,
775,
353,
1059,
29918,
3888,
29961,
29941,
2314,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
2230,
29918,
15638,
353,
679,
2230,
26471,
13,
12,
12,
22692,
10888,
2451,
26471,
13,
12,
2158,
22372,
29906,
29913,
29928,
12413,
29889,
29912,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
12,
29956,
1525,
7077,
29889,
2230,
29918,
15638,
353,
679,
2230,
26471,
13,
30004,
13,
29937,
891,
30004,
13,
29937,
718,
30004,
13,
29937,
29871,
320,
30004,
13,
29937,
259,
718,
9166,
9166,
9166,
9166,
9166,
4936,
2751,
25512,
30004,
13,
29937,
29871,
847,
30004,
13,
29937,
718,
30004,
13,
29937,
891,
30004,
13,
30004,
13,
12,
2158,
525,
23456,
18224,
856,
23592,
13,
30004,
13,
12,
2202,
29901,
30004,
13,
12,
12,
29937,
5399,
7079,
11780,
30004,
13,
12,
12,
558,
406,
29939,
29918,
12523,
353,
5159,
30004,
13,
12,
12,
1454,
7079,
29892,
3734,
29918,
1609,
297,
399,
1525,
7077,
29889,
12277,
1860,
29889,
1524,
7076,
7295,
30004,
13,
12,
12,
12,
361,
7079,
451,
297,
399,
1525,
7077,
29889,
12800,
29901,
30004,
13,
12,
12,
12,
12,
558,
406,
29939,
29918,
12523,
29889,
4397,
877,
16288,
1273,
29879,
451,
19673,
541,
3734,
491,
1273,
29879,
6169,
1273,
313,
8582,
29892,
13420,
15300,
7122,
29898,
12403,
29918,
1609,
4961,
30004,
13,
12,
12,
361,
544,
406,
29939,
29918,
12523,
29901,
30004,
13,
12,
12,
12,
22692,
10888,
2451,
28909,
29878,
29905,
29876,
4286,
7122,
29898,
558,
406,
29939,
29918,
12523,
876,
30004,
13,
12,
12,
29937,
10554,
848,
297,
24247,
30004,
13,
12,
12,
23705,
353,
679,
29918,
23705,
1338,
26471,
13,
12,
12,
1454,
7079,
297,
399,
1525,
7077,
29889,
12800,
29901,
30004,
13,
12,
12,
12,
1454,
13812,
297,
610,
4253,
29889,
1524,
8149,
7295,
30004,
13,
12,
12,
12,
12,
361,
756,
5552,
29898,
23705,
29961,
8582,
1402,
13812,
1125,
30004,
13,
12,
12,
12,
12,
12,
23705,
29961,
16680,
1822,
21843,
29898,
657,
5552,
29898,
23705,
29961,
8582,
1402,
13812,
876,
30004,
13,
12,
12,
12,
262,
24247,
353,
679,
5552,
29898,
23705,
29961,
8582,
1402,
525,
262,
6929,
742,
6213,
8443,
13,
12,
12,
12,
361,
297,
24247,
29901,
30004,
13,
12,
12,
12,
12,
1454,
10899,
29918,
978,
29892,
10899,
29918,
17664,
297,
297,
24247,
29889,
1524,
7076,
7295,
30004,
13,
12,
12,
12,
12,
12,
29956,
1525,
7077,
29889,
262,
24247,
29889,
842,
4381,
29898,
262,
29926,
29918,
978,
29892,
5159,
467,
21843,
29898,
262,
29926,
29918,
17664,
8443,
13,
12,
12,
12,
12,
12,
29937,
29956,
1525,
7077,
29889,
25442,
886,
29889,
4397,
877,
797,
6929,
29901,
1273,
29881,
3161,
363,
22570,
29879,
29952,
297,
22570,
29879,
20497,
1273,
313,
2435,
29898,
262,
29926,
29918,
17664,
511,
10899,
29918,
978,
29892,
7079,
876,
30004,
13,
12,
19499,
8960,
29892,
321,
29901,
30004,
13,
12,
12,
2158,
22372,
29896,
29913,
4519,
29902,
20566,
7790,
29876,
7390,
23338,
1177,
23230,
5453,
29991,
29879,
10114,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
3883,
353,
7079,
29892,
1059,
353,
313,
29872,
29889,
689,
19667,
580,
565,
338,
8758,
29898,
29872,
29892,
10888,
2451,
29897,
1683,
20917,
29918,
11739,
22130,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
2230,
29918,
12800,
353,
679,
2230,
26471,
13,
12,
12,
22692,
10888,
2451,
26471,
13,
12,
2158,
22372,
29906,
29913,
29928,
12413,
29889,
29912,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
12,
29956,
1525,
7077,
29889,
2230,
29918,
12800,
353,
679,
2230,
26471,
13,
30004,
13,
29937,
891,
30004,
13,
29937,
718,
30004,
13,
29937,
29871,
320,
30004,
13,
29937,
259,
718,
9166,
9166,
9166,
9166,
9166,
4936,
2751,
25512,
30004,
13,
29937,
29871,
847,
30004,
13,
29937,
718,
30004,
13,
29937,
891,
30004,
13,
30004,
13,
12,
2158,
525,
5596,
292,
3883,
5877,
856,
23592,
13,
30004,
13,
12,
2202,
29901,
30004,
13,
12,
12,
1454,
7855,
29918,
978,
29892,
7855,
29918,
1753,
297,
610,
4253,
29889,
1524,
7076,
7295,
30004,
13,
12,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
7855,
29918,
978,
30004,
13,
12,
12,
12,
657,
29918,
23705,
1338,
580,
29961,
10041,
29918,
978,
29962,
353,
1423,
29918,
29562,
29898,
657,
29918,
23705,
1338,
580,
29961,
10041,
29918,
978,
1402,
518,
10041,
29918,
1753,
1839,
16680,
2033,
1402,
7855,
29918,
1753,
29889,
657,
877,
5416,
742,
29871,
29900,
876,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
3784,
29918,
5453,
353,
6213,
30004,
13,
12,
19499,
8960,
29892,
321,
29901,
30004,
13,
12,
12,
2158,
22372,
29896,
29913,
4519,
29902,
20566,
7790,
29876,
6720,
14849,
1307,
23230,
5453,
29991,
29879,
10114,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
3883,
353,
7855,
29918,
978,
29892,
1059,
353,
313,
29872,
29889,
689,
19667,
580,
565,
338,
8758,
29898,
29872,
29892,
10888,
2451,
29897,
1683,
20917,
29918,
11739,
22130,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
2230,
29918,
29562,
353,
679,
2230,
26471,
13,
12,
12,
22692,
10888,
2451,
26471,
13,
12,
2158,
22372,
29906,
29913,
29928,
12413,
29889,
29912,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
12,
29956,
1525,
7077,
29889,
2230,
29918,
29562,
353,
679,
2230,
26471,
13,
30004,
13,
12,
29956,
1525,
7077,
29889,
11576,
29961,
29955,
29962,
353,
3778,
800,
30004,
13,
12,
29956,
1525,
7077,
29889,
17470,
29961,
29955,
29962,
353,
2258,
1953,
30004,
13,
12,
29956,
1525,
7077,
29889,
666,
29961,
29955,
29962,
353,
5235,
29918,
12292,
30004,
13,
12,
29956,
1525,
7077,
29889,
326,
397,
29961,
29955,
29962,
353,
2944,
29918,
1545,
14903,
30004,
13,
12,
29956,
1525,
7077,
29889,
277,
29885,
29961,
29955,
29962,
353,
4452,
30004,
13,
12,
29956,
1525,
7077,
29889,
4144,
29961,
29955,
29962,
353,
2910,
29918,
27078,
30004,
13,
12,
29956,
1525,
7077,
29889,
29885,
3433,
29961,
29955,
29962,
353,
3748,
29918,
1527,
375,
30004,
13,
12,
29956,
1525,
7077,
29889,
4467,
29882,
29961,
29955,
29962,
353,
4883,
13244,
30004,
13,
12,
29956,
1525,
7077,
29889,
4378,
29961,
29955,
29962,
353,
10655,
29918,
20943,
30004,
13,
12,
29956,
1525,
7077,
29889,
11294,
29961,
29955,
29962,
353,
16257,
30004,
13,
12,
29956,
1525,
7077,
29889,
567,
952,
29961,
29955,
29962,
353,
16445,
29918,
5205,
29879,
30004,
13,
12,
29956,
1525,
7077,
29889,
29886,
29961,
29955,
29962,
353,
13973,
30004,
13,
12,
29956,
1525,
7077,
29889,
415,
29961,
29955,
29962,
353,
6263,
29918,
20943,
30004,
13,
12,
29956,
1525,
7077,
29889,
7810,
29916,
29961,
29955,
29962,
353,
1400,
11093,
29918,
7529,
30004,
13,
12,
29956,
1525,
7077,
29889,
558,
29879,
593,
29961,
29955,
29962,
353,
2198,
800,
30004,
13,
12,
29956,
1525,
7077,
29889,
29939,
303,
29961,
29955,
29962,
353,
439,
9197,
30004,
13,
12,
29956,
1525,
7077,
29889,
15099,
29961,
29955,
29962,
353,
9088,
29918,
11030,
30004,
13,
12,
29956,
1525,
7077,
29889,
1557,
29876,
29961,
29955,
29962,
353,
20407,
30004,
13,
12,
29956,
1525,
7077,
29889,
2154,
29961,
29955,
29962,
353,
12078,
30004,
13,
12,
29956,
1525,
7077,
29889,
808,
29880,
29961,
29955,
29962,
353,
25078,
30004,
13,
12,
29956,
1525,
7077,
29889,
29879,
299,
29961,
29955,
29962,
353,
10083,
30004,
13,
12,
29956,
1525,
7077,
29889,
29879,
29961,
29955,
29962,
353,
6031,
30004,
13,
12,
29956,
1525,
7077,
29889,
2371,
585,
29961,
29955,
29962,
353,
1591,
1485,
30004,
13,
12,
29956,
1525,
7077,
29889,
509,
29886,
29961,
29955,
29962,
353,
13230,
30004,
13,
30004,
13,
29937,
891,
30004,
13,
29937,
718,
30004,
13,
29937,
29871,
320,
30004,
13,
29937,
259,
718,
9166,
9166,
9166,
9166,
9166,
4936,
2751,
25512,
30004,
13,
29937,
29871,
847,
30004,
13,
29937,
718,
30004,
13,
29937,
891,
30004,
13,
30004,
13,
12,
2158,
525,
2499,
2029,
1218,
2893,
14903,
856,
23592,
13,
30004,
13,
12,
2202,
29901,
30004,
13,
12,
12,
15956,
403,
29918,
10945,
29918,
20897,
26471,
13,
12,
12,
15956,
403,
29918,
24561,
29918,
19651,
26471,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
11576,
800,
29892,
3778,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
5444,
1953,
29892,
4024,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
3888,
29918,
12292,
29892,
10377,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
667,
29918,
1545,
14903,
29892,
527,
397,
29892,
527,
397,
2966,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
7076,
29892,
372,
29885,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
1958,
29918,
27078,
29892,
9849,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
11802,
29918,
1527,
375,
29892,
286,
3433,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
4467,
13244,
29892,
27716,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
6737,
29918,
20943,
29892,
286,
29873,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
3018,
4684,
29892,
5702,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
1595,
2512,
29918,
5205,
29879,
29892,
6529,
952,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
1595,
583,
29892,
282,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
22633,
29918,
20943,
29892,
19592,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
2490,
11093,
29918,
7529,
29892,
282,
11093,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
6338,
800,
29892,
544,
29879,
593,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
1119,
29879,
29892,
3855,
303,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
24645,
29918,
11030,
29892,
7689,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
1557,
25487,
29892,
885,
29876,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
16713,
29892,
2471,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
808,
6090,
29892,
2071,
29880,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
29879,
3885,
29892,
269,
299,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
19651,
29892,
269,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
2371,
1485,
29892,
1591,
585,
8443,
13,
12,
12,
15807,
403,
29918,
1693,
14903,
29898,
29873,
307,
3554,
29892,
534,
29886,
8443,
13,
12,
12,
15955,
353,
7580,
29918,
1693,
14903,
26471,
13,
12,
12,
361,
7580,
29901,
12020,
10888,
2451,
877,
870,
687,
433,
1127,
2893,
14903,
1476,
297,
3883,
2752,
3583,
29876,
334,
1273,
29879,
29915,
1273,
6702,
29905,
29876,
334,
15300,
7122,
18959,
29995,
29879,
313,
20275,
9223,
491,
320,
29915,
29995,
29879,
29905,
1495,
29915,
1273,
313,
978,
29892,
11297,
742,
320,
29915,
4286,
7122,
29898,
24539,
876,
363,
1024,
29892,
2143,
29879,
297,
7580,
29962,
4961,
30004,
13,
12,
19499,
8960,
29892,
321,
29901,
30004,
13,
12,
12,
2158,
22372,
29896,
29913,
4519,
29902,
20566,
29889,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
12,
12,
361,
338,
8758,
29898,
29872,
29892,
10888,
2451,
1125,
30004,
13,
12,
12,
12,
2158,
525,
6720,
14849,
1307,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
1059,
353,
321,
29889,
689,
19667,
3101,
30004,
13,
12,
12,
2870,
29901,
30004,
13,
12,
12,
12,
2158,
525,
19795,
2227,
29931,
1001,
2672,
4945,
29940,
1964,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
1059,
353,
20917,
29918,
11739,
3101,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
2230,
29918,
1693,
14903,
353,
679,
2230,
26471,
13,
12,
12,
22692,
10888,
2451,
26471,
13,
12,
2158,
22372,
29906,
29913,
29928,
12413,
29889,
29912,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
12,
29956,
1525,
7077,
29889,
2230,
29918,
1693,
14903,
353,
679,
2230,
26471,
13,
30004,
13,
29937,
891,
30004,
13,
29937,
718,
30004,
13,
29937,
29871,
320,
30004,
13,
29937,
259,
718,
9166,
9166,
9166,
9166,
9166,
4936,
2751,
25512,
30004,
13,
29937,
29871,
847,
30004,
13,
29937,
718,
30004,
13,
29937,
891,
30004,
13,
30004,
13,
12,
2158,
525,
6843,
6504,
3883,
856,
23592,
13,
30004,
13,
12,
2202,
29901,
30004,
13,
12,
12,
19190,
353,
29871,
29900,
30004,
13,
12,
12,
29937,
4721,
29899,
19170,
313,
6812,
393,
599,
7855,
29899,
5563,
297,
24247,
526,
2307,
2309,
541,
2471,
29899,
5563,
297,
24247,
526,
451,
467,
30004,
13,
12,
12,
23705,
353,
679,
29918,
23705,
1338,
26471,
13,
12,
12,
1457,
5014,
29918,
296,
1907,
29918,
7564,
29898,
23705,
8443,
13,
12,
12,
19190,
353,
29871,
29896,
30004,
13,
12,
12,
1454,
7079,
297,
399,
1525,
7077,
29889,
12800,
29901,
30004,
13,
12,
12,
12,
26482,
353,
679,
5552,
29898,
23705,
29961,
8582,
1402,
525,
1457,
5014,
29918,
296,
1907,
742,
6213,
8443,
13,
12,
12,
12,
361,
21433,
29901,
30004,
13,
12,
12,
12,
12,
2202,
29901,
21433,
29898,
23705,
8443,
13,
12,
12,
12,
12,
19499,
8960,
29892,
321,
29901,
12020,
10888,
2451,
877,
2392,
297,
1273,
29878,
758,
29899,
26482,
2471,
6169,
1273,
7079,
29892,
20917,
29918,
11739,
3101,
30004,
13,
12,
12,
29937,
3831,
6504,
856,
30004,
13,
12,
12,
19190,
353,
29871,
29906,
30004,
13,
12,
12,
1454,
7855,
29918,
978,
29892,
7855,
29918,
1753,
297,
610,
4253,
29889,
1524,
7076,
7295,
30004,
13,
12,
12,
12,
19190,
353,
29871,
29941,
30004,
13,
12,
12,
12,
296,
1907,
353,
679,
29918,
23705,
1338,
580,
29961,
10041,
29918,
978,
29962,
30004,
13,
12,
12,
12,
19190,
353,
29871,
29946,
30004,
13,
12,
12,
12,
1454,
2380,
297,
921,
3881,
29898,
2435,
29898,
296,
1907,
22164,
30004,
13,
12,
12,
12,
12,
296,
1907,
29961,
2248,
29962,
353,
7855,
29918,
1753,
1839,
26482,
29915,
850,
296,
1907,
29961,
2248,
1402,
2380,
8443,
13,
12,
12,
12,
19190,
353,
29871,
29945,
30004,
13,
12,
12,
12,
842,
5552,
29898,
29956,
1525,
7077,
29892,
7855,
29918,
978,
29892,
7855,
29918,
1753,
1839,
26193,
1061,
29915,
850,
296,
1907,
876,
30004,
13,
12,
12,
29937,
4918,
29899,
19170,
313,
12800,
526,
6058,
6068,
304,
437,
3099,
1244,
408,
591,
526,
16743,
411,
2307,
13126,
775,
8443,
13,
12,
12,
19190,
353,
29871,
29953,
30004,
13,
12,
12,
2490,
5014,
29918,
296,
1907,
26471,
13,
12,
19499,
8960,
29892,
321,
29901,
30004,
13,
12,
12,
2158,
22372,
29896,
29913,
4519,
29902,
20566,
29889,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
12,
12,
361,
338,
8758,
29898,
29872,
29892,
10888,
2451,
1125,
30004,
13,
12,
12,
12,
361,
7408,
1275,
29871,
29900,
29901,
30004,
13,
12,
12,
12,
12,
2158,
525,
19795,
2227,
29931,
1001,
349,
1525,
8618,
23524,
1955,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
1059,
353,
321,
29889,
689,
19667,
3101,
30004,
13,
12,
12,
12,
361,
7408,
1275,
29871,
29896,
29901,
30004,
13,
12,
12,
12,
12,
2158,
525,
7390,
23338,
1177,
426,
5453,
29991,
29879,
29913,
349,
1525,
8618,
23524,
1955,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
3883,
353,
7079,
29892,
1059,
353,
321,
29889,
689,
19667,
3101,
30004,
13,
12,
12,
12,
23681,
7408,
1275,
29871,
29941,
29901,
30004,
13,
12,
12,
12,
12,
2158,
525,
6720,
14849,
1307,
426,
5453,
29991,
29879,
29913,
12524,
29911,
11937,
24037,
2248,
29913,
23353,
2227,
29931,
8098,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
3883,
353,
7855,
29918,
978,
29892,
2380,
353,
2380,
29892,
1059,
353,
321,
29889,
689,
19667,
3101,
30004,
13,
12,
12,
12,
23681,
7408,
1275,
29871,
29946,
29901,
30004,
13,
12,
12,
12,
12,
2158,
525,
6720,
14849,
1307,
426,
5453,
29991,
29879,
29913,
16369,
29954,
18166,
1299,
1955,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
3883,
353,
7855,
29918,
978,
29892,
1059,
353,
321,
29889,
689,
19667,
3101,
30004,
13,
12,
12,
12,
23681,
7408,
1275,
29871,
29945,
29901,
30004,
13,
12,
12,
12,
12,
2158,
525,
19795,
2227,
29931,
1001,
11971,
8618,
23524,
1955,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
1059,
353,
321,
29889,
689,
19667,
3101,
30004,
13,
12,
12,
2870,
29901,
30004,
13,
12,
12,
12,
2158,
525,
19795,
2227,
29931,
1001,
2672,
4945,
29940,
1964,
14431,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
1059,
353,
20917,
29918,
11739,
3101,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
2230,
29918,
12198,
353,
679,
2230,
26471,
13,
12,
12,
22692,
10888,
2451,
26471,
13,
12,
2158,
22372,
29906,
29913,
29928,
12413,
29889,
29912,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
12,
29956,
1525,
7077,
29889,
2230,
29918,
12198,
353,
679,
2230,
26471,
13,
30004,
13,
29937,
891,
30004,
13,
29937,
718,
30004,
13,
29937,
29871,
320,
30004,
13,
29937,
259,
718,
9166,
9166,
9166,
9166,
9166,
4936,
2751,
25512,
30004,
13,
29937,
29871,
847,
30004,
13,
29937,
718,
30004,
13,
29937,
891,
30004,
13,
30004,
13,
12,
2158,
525,
26382,
292,
3883,
856,
23592,
13,
30004,
13,
12,
15843,
29918,
15091,
353,
5852,
396,
21397,
30004,
13,
30004,
13,
12,
15843,
353,
3336,
13,
12,
12,
29915,
11576,
800,
2396,
5609,
29918,
9507,
1273,
525,
7387,
23592,
13,
12,
12,
29915,
15901,
29879,
2396,
5609,
29918,
9507,
1273,
525,
535,
874,
362,
23592,
13,
12,
12,
29915,
15901,
29918,
28631,
2396,
5609,
29918,
9507,
1273,
525,
15901,
29918,
28631,
23592,
13,
12,
12,
29915,
5444,
1953,
2396,
5609,
29918,
9507,
1273,
525,
5444,
1953,
23592,
13,
12,
12,
29915,
11802,
29918,
1527,
375,
2396,
5609,
29918,
9507,
1273,
525,
1527,
375,
23592,
13,
12,
12,
29915,
3888,
29918,
12292,
2396,
5609,
29918,
9507,
1273,
525,
3888,
29918,
12292,
23592,
13,
12,
12,
29915,
7076,
2396,
5609,
29918,
9507,
1273,
525,
667,
29918,
29895,
12772,
29896,
23592,
13,
12,
12,
29915,
1958,
29918,
27078,
2396,
5609,
29918,
9507,
1273,
525,
1958,
29918,
27078,
23592,
13,
12,
12,
29915,
4467,
13244,
2396,
5609,
29918,
9507,
1273,
525,
4467,
13244,
23592,
13,
12,
12,
29915,
6737,
29918,
20943,
2396,
5609,
29918,
9507,
1273,
525,
6737,
29918,
20943,
23592,
13,
12,
12,
29915,
3018,
4684,
2396,
5609,
29918,
9507,
1273,
525,
23596,
23592,
13,
12,
12,
29915,
1595,
2512,
29918,
5205,
29879,
2396,
5609,
29918,
9507,
1273,
525,
1595,
2512,
29918,
5205,
29879,
23592,
13,
12,
12,
29915,
1595,
583,
2396,
5609,
29918,
9507,
1273,
525,
1595,
583,
23592,
13,
12,
12,
29915,
22633,
29918,
20943,
2396,
5609,
29918,
9507,
1273,
525,
22633,
29918,
20943,
23592,
13,
12,
12,
29915,
2490,
11093,
29918,
7529,
2396,
5609,
29918,
9507,
1273,
525,
2490,
11093,
23592,
13,
12,
12,
29915,
6338,
800,
2396,
5609,
29918,
9507,
1273,
525,
6338,
800,
23592,
13,
12,
12,
29915,
1119,
29879,
2396,
5609,
29918,
9507,
1273,
525,
1119,
29879,
23592,
13,
12,
12,
29915,
24645,
29918,
11030,
2396,
5609,
29918,
9507,
1273,
525,
24645,
29918,
11030,
23592,
13,
12,
12,
29915,
1557,
25487,
2396,
5609,
29918,
9507,
1273,
525,
1557,
25487,
23592,
13,
12,
12,
29915,
16713,
2396,
5609,
29918,
9507,
1273,
525,
16713,
23592,
13,
12,
12,
29915,
12857,
29918,
509,
335,
5743,
2396,
5609,
29918,
9507,
1273,
525,
12857,
29918,
509,
335,
5743,
23592,
13,
12,
12,
29915,
808,
6090,
2396,
5609,
29918,
9507,
1273,
525,
808,
6090,
23592,
13,
12,
12,
29915,
808,
1144,
2396,
5609,
29918,
9507,
1273,
525,
808,
1144,
23592,
13,
12,
12,
29915,
29879,
3885,
2396,
5609,
29918,
9507,
1273,
525,
29879,
3885,
23592,
13,
12,
12,
29915,
19651,
2396,
5609,
29918,
9507,
1273,
525,
19651,
23592,
13,
12,
12,
29915,
2371,
1485,
2396,
5609,
29918,
9507,
1273,
525,
2371,
585,
29918,
15388,
29879,
23592,
13,
12,
12,
29915,
509,
335,
5743,
2396,
5609,
29918,
9507,
1273,
525,
509,
335,
5743,
23592,
13,
12,
12,
29915,
29873,
307,
3554,
2396,
5609,
29918,
9507,
1273,
525,
29873,
307,
3554,
23592,
13,
12,
12,
29915,
20897,
2396,
5609,
29918,
9507,
1273,
525,
20897,
23592,
13,
12,
12,
29915,
24561,
29918,
19651,
2396,
5609,
29918,
9507,
1273,
525,
24561,
29918,
19651,
23592,
13,
12,
8117,
13,
12,
361,
399,
1525,
7077,
29889,
17158,
29918,
667,
29918,
1545,
14903,
29901,
5609,
1839,
667,
29918,
1545,
14903,
2033,
353,
525,
1469,
29914,
667,
29918,
1545,
14903,
29889,
3945,
29915,
30004,
13,
12,
361,
399,
1525,
7077,
29889,
17158,
29918,
1481,
29918,
19651,
29901,
5609,
1839,
1481,
29918,
19651,
2033,
353,
525,
29931,
8737,
29914,
264,
29914,
1481,
29889,
7638,
29915,
30004,
13,
12,
361,
399,
1525,
7077,
29889,
17158,
29918,
1792,
29918,
29882,
9466,
29901,
5609,
1839,
1792,
29918,
29882,
9466,
2033,
353,
525,
29931,
8737,
29914,
264,
29914,
29882,
9466,
29889,
7638,
29915,
30004,
13,
30004,
13,
12,
2202,
29901,
30004,
13,
12,
12,
361,
525,
1688,
29915,
297,
10876,
29889,
19218,
29901,
12020,
10888,
2451,
26471,
13,
12,
12,
1454,
7855,
29918,
978,
29892,
10422,
297,
5609,
29889,
1524,
7076,
7295,
30004,
13,
12,
12,
12,
10853,
353,
679,
5552,
29898,
29956,
1525,
7077,
29892,
7855,
29918,
978,
8443,
13,
12,
12,
12,
361,
8118,
338,
6213,
29901,
30004,
13,
12,
12,
12,
12,
29937,
2158,
525,
7355,
1273,
29879,
756,
694,
3620,
29892,
14993,
3262,
5609,
6169,
1273,
7855,
29918,
978,
30004,
13,
12,
12,
12,
12,
19878,
30004,
13,
12,
12,
12,
29937,
2158,
525,
26382,
292,
3883,
1273,
29879,
856,
29915,
1273,
7855,
29918,
978,
30004,
13,
12,
12,
12,
9507,
353,
2224,
29918,
5451,
29898,
9507,
29889,
6506,
877,
1966,
742,
8207,
8785,
30004,
13,
12,
12,
12,
12083,
353,
6702,
29995,
29879,
22584,
29879,
29915,
1273,
313,
29956,
1525,
7077,
29889,
23848,
29892,
10422,
29961,
29900,
12622,
565,
10422,
29961,
29900,
29962,
1683,
399,
1525,
7077,
29889,
23848,
30004,
13,
12,
12,
12,
361,
10422,
29961,
29900,
29962,
322,
451,
29898,
2084,
29918,
9933,
29898,
12083,
22164,
2136,
287,
12935,
29898,
12083,
8443,
13,
12,
12,
12,
2541,
1722,
877,
29995,
29879,
22584,
29879,
29915,
1273,
313,
12083,
29892,
10422,
29961,
29896,
11724,
525,
29893,
29974,
29890,
1495,
408,
285,
29901,
285,
29889,
3539,
29898,
10853,
8443,
13,
12,
19499,
10888,
2451,
29901,
30004,
13,
12,
12,
15843,
29918,
15091,
353,
7700,
396,
28551,
2986,
22993,
13,
12,
12,
3539,
29918,
333,
29918,
5325,
353,
6213,
396,
6811,
2426,
738,
995,
393,
471,
727,
22993,
13,
12,
19499,
8960,
29892,
321,
29901,
30004,
13,
12,
12,
2158,
22372,
29896,
29913,
4519,
29902,
20566,
7790,
29876,
19795,
2227,
29931,
1001,
2672,
4945,
29940,
1964,
14431,
12317,
29902,
1307,
399,
1525,
7077,
4214,
426,
5453,
29991,
29879,
29913,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
3883,
353,
7855,
29918,
978,
29892,
1059,
353,
20917,
29918,
11739,
3101,
30004,
13,
12,
12,
29956,
1525,
7077,
29889,
2230,
29918,
15843,
353,
679,
2230,
26471,
13,
12,
12,
22692,
10888,
2451,
26471,
13,
30004,
13,
12,
361,
2436,
29918,
333,
29918,
5325,
338,
451,
6213,
29901,
30004,
13,
12,
12,
15843,
353,
3336,
13,
12,
12,
12,
29915,
11576,
800,
2396,
313,
29956,
1525,
7077,
29889,
11576,
29892,
525,
11576,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
5444,
1953,
2396,
313,
29956,
1525,
7077,
29889,
17470,
29892,
525,
17470,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
3888,
29918,
12292,
2396,
313,
29956,
1525,
7077,
29889,
666,
29892,
525,
666,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
7076,
2396,
313,
29956,
1525,
7077,
29889,
277,
29885,
29892,
525,
277,
29885,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
1958,
29918,
27078,
2396,
313,
29956,
1525,
7077,
29889,
4144,
29892,
525,
4144,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
1527,
375,
2396,
313,
29956,
1525,
7077,
29889,
29885,
3433,
29892,
525,
29885,
3433,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
4467,
13244,
2396,
313,
29956,
1525,
7077,
29889,
4467,
29882,
29892,
525,
4467,
29882,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
6737,
29918,
20943,
2396,
313,
29956,
1525,
7077,
29889,
4378,
29892,
525,
4378,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
23596,
2396,
313,
29956,
1525,
7077,
29889,
11294,
29892,
525,
11294,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
1595,
2512,
29918,
5205,
29879,
2396,
313,
29956,
1525,
7077,
29889,
567,
952,
29892,
525,
567,
952,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
1595,
583,
2396,
313,
29956,
1525,
7077,
29889,
29886,
29892,
525,
29886,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
22633,
29918,
20943,
2396,
313,
29956,
1525,
7077,
29889,
415,
29892,
525,
415,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
2490,
11093,
29918,
7529,
2396,
313,
29956,
1525,
7077,
29889,
7810,
29916,
29892,
525,
7810,
29916,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
6338,
800,
2396,
313,
29956,
1525,
7077,
29889,
558,
29879,
593,
29892,
525,
558,
29879,
593,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
1119,
29879,
2396,
313,
29956,
1525,
7077,
29889,
29939,
303,
29892,
525,
29939,
303,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
24645,
29918,
11030,
2396,
313,
29956,
1525,
7077,
29889,
15099,
29892,
525,
15099,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
1557,
25487,
2396,
313,
29956,
1525,
7077,
29889,
1557,
29876,
29892,
525,
1557,
29876,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
16713,
2396,
313,
29956,
1525,
7077,
29889,
2154,
29892,
525,
2154,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
808,
6090,
2396,
313,
29956,
1525,
7077,
29889,
808,
29880,
29892,
525,
808,
29880,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
29879,
3885,
2396,
313,
29956,
1525,
7077,
29889,
29879,
299,
29892,
525,
29879,
299,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
19651,
2396,
313,
29956,
1525,
7077,
29889,
29879,
29892,
525,
710,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
2371,
585,
29918,
15388,
29879,
2396,
313,
29956,
1525,
7077,
29889,
2371,
585,
29892,
525,
2371,
585,
29918,
5477,
30004,
13,
12,
12,
12,
29915,
29873,
307,
3554,
2396,
313,
29956,
1525,
7077,
29889,
509,
29886,
29892,
525,
509,
29886,
29918,
5477,
30004,
13,
12,
12,
8117,
13,
12,
12,
2202,
29901,
30004,
13,
12,
12,
12,
1454,
7855,
29918,
978,
29892,
313,
10041,
29892,
10944,
29897,
297,
5609,
29889,
1524,
7076,
7295,
30004,
13,
12,
12,
12,
12,
10853,
353,
11297,
29876,
4286,
7122,
18959,
29995,
29879,
29995,
29879,
353,
1273,
29881,
29915,
1273,
313,
13506,
29892,
2143,
29892,
2380,
29897,
363,
2143,
29892,
2380,
297,
12705,
29898,
1958,
29898,
2892,
474,
5919,
29875,
29961,
29900,
1402,
524,
29898,
29875,
29961,
29896,
29962,
29987,
29900,
29916,
22098,
22098,
8243,
7855,
29961,
29900,
1822,
1524,
7076,
25739,
14013,
921,
29892,
29891,
29901,
21058,
29898,
29916,
29961,
29896,
1402,
29891,
29961,
29896,
12622,
2314,
30004,
13,
12,
12,
12,
12,
2541,
1722,
29898,
3539,
29918,
333,
29918,
5325,
1273,
7855,
29918,
978,
29892,
525,
29893,
29974,
29890,
1495,
408,
285,
29901,
30004,
13,
12,
12,
12,
12,
12,
29888,
29889,
3539,
29898,
10853,
8443,
13,
12,
12,
12,
12,
12,
29888,
29889,
3539,
28909,
29876,
1495,
30004,
13,
12,
12,
19499,
8960,
29892,
321,
29901,
30004,
13,
12,
12,
12,
2158,
22372,
29896,
29913,
4519,
29902,
20566,
7790,
29876,
19795,
2227,
29931,
1001,
2672,
4945,
29940,
1964,
14431,
12317,
29902,
1307,
399,
1525,
7077,
4214,
426,
5453,
29991,
29879,
29913,
3583,
29876,
29912,
2704,
29991,
29879,
1157,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
29892,
3883,
353,
2436,
29918,
333,
29918,
5325,
1273,
7855,
29918,
978,
29892,
1059,
353,
20917,
29918,
11739,
3101,
30004,
13,
12,
12,
12,
29956,
1525,
7077,
29889,
2230,
29918,
15843,
353,
679,
2230,
26471,
13,
12,
12,
12,
22692,
10888,
2451,
26471,
13,
30004,
13,
12,
361,
5609,
29918,
15091,
29901,
30004,
13,
12,
12,
2158,
22372,
29906,
29913,
29928,
12413,
29889,
29912,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
12,
12,
29956,
1525,
7077,
29889,
2230,
29918,
15843,
353,
679,
2230,
26471,
13,
12,
2870,
29901,
30004,
13,
12,
12,
2158,
22372,
29941,
29913,
16033,
5690,
29925,
3352,
29889,
29912,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
30004,
13,
29937,
891,
30004,
13,
29937,
718,
30004,
13,
29937,
29871,
320,
30004,
13,
29937,
259,
718,
2683,
2683,
2683,
2683,
2683,
9072,
5634,
30004,
13,
30004,
13,
30004,
13,
19499,
10888,
2451,
29901,
30004,
13,
12,
29956,
1525,
7077,
29889,
8698,
1319,
353,
7700,
30004,
13,
30004,
13,
2158,
30004,
13,
361,
399,
1525,
7077,
29889,
8698,
1319,
29901,
30004,
13,
12,
2158,
22372,
29906,
29913,
19795,
2227,
29931,
8098,
20134,
26925,
29943,
13309,
29889,
29912,
29900,
1012,
29876,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
2870,
29901,
30004,
13,
12,
2158,
22372,
29896,
29913,
19795,
2227,
29931,
8098,
13515,
29902,
20566,
29889,
29912,
29900,
1012,
29876,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
30004,
13,
2704,
29918,
12276,
292,
29918,
5563,
353,
29871,
29941,
30004,
13,
361,
525,
25590,
296,
29915,
297,
10876,
29889,
19218,
29901,
1059,
29918,
12276,
292,
29918,
5563,
353,
29871,
29900,
30004,
13,
361,
6702,
2704,
29915,
297,
10876,
29889,
19218,
29897,
470,
6702,
12523,
29915,
297,
10876,
29889,
19218,
1125,
1059,
29918,
12276,
292,
29918,
5563,
353,
29871,
29896,
30004,
13,
361,
6702,
2704,
29915,
297,
10876,
29889,
19218,
29897,
470,
6702,
25442,
886,
29915,
297,
10876,
29889,
19218,
1125,
1059,
29918,
12276,
292,
29918,
5563,
353,
29871,
29906,
30004,
13,
361,
6702,
1333,
625,
29915,
297,
10876,
29889,
19218,
29897,
470,
6702,
1333,
1575,
29915,
297,
10876,
29889,
19218,
1125,
1059,
29918,
12276,
292,
29918,
5563,
353,
29871,
29941,
30004,
13,
30004,
13,
361,
399,
1525,
7077,
29889,
12523,
322,
313,
2704,
29918,
12276,
292,
29918,
5563,
1405,
29871,
29900,
1125,
30004,
13,
12,
2158,
525,
1576,
1494,
4436,
892,
5759,
2645,
14835,
26254,
29896,
1012,
29876,
15300,
4830,
10456,
15032,
1955,
29909,
1529,
511,
30004,
13,
12,
2158,
11297,
29876,
29871,
15300,
7122,
29898,
29956,
1525,
7077,
29889,
12523,
8443,
13,
12,
2158,
22372,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
361,
399,
1525,
7077,
29889,
25442,
886,
322,
313,
2704,
29918,
12276,
292,
29918,
5563,
1405,
29871,
29896,
1125,
30004,
13,
12,
2158,
525,
1576,
1494,
18116,
892,
5759,
2645,
14835,
26254,
29941,
1012,
29876,
15300,
4830,
10456,
15032,
1955,
29909,
1529,
511,
30004,
13,
12,
2158,
11297,
29876,
29871,
15300,
7122,
29898,
29956,
1525,
7077,
29889,
25442,
886,
8443,
13,
12,
2158,
22372,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
361,
399,
1525,
7077,
29889,
1333,
1575,
322,
313,
2704,
29918,
12276,
292,
29918,
5563,
1405,
29871,
29906,
1125,
30004,
13,
12,
2158,
525,
1576,
1494,
25913,
892,
5759,
2645,
14835,
26254,
29953,
1012,
29876,
15300,
4830,
10456,
15032,
1955,
29909,
1529,
511,
30004,
13,
12,
2158,
11297,
29876,
29871,
15300,
7122,
29898,
29956,
1525,
7077,
29889,
1333,
1575,
8443,
13,
12,
2158,
22372,
29900,
29913,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
361,
1510,
29918,
546,
13390,
29918,
1272,
322,
399,
1525,
7077,
29889,
2230,
29918,
15638,
29901,
30004,
13,
12,
2158,
525,
9323,
292,
399,
29889,
29934,
29889,
29923,
29889,
29907,
29889,
29968,
29889,
4180,
2472,
6169,
30004,
13,
12,
2158,
525,
11403,
426,
29945,
29913,
4294,
29918,
546,
13390,
29918,
1272,
353,
7700,
29912,
29900,
29913,
17041,
297,
426,
29945,
29913,
5453,
29918,
3888,
29889,
2272,
29912,
29900,
29913,
934,
304,
11262,
29889,
4286,
4830,
10456,
15032,
1955,
29909,
1529,
8443,
13,
12,
2158,
30004,
13,
12,
361,
399,
1525,
7077,
29889,
2230,
29918,
15638,
29901,
418,
1596,
525,
1678,
18695,
29900,
29941,
29888,
5226,
10398,
304,
2254,
3883,
848,
6169,
1273,
313,
29956,
1525,
7077,
29889,
2230,
29918,
15638,
448,
399,
1525,
7077,
29889,
2230,
29918,
2962,
287,
8443,
13,
12,
361,
399,
1525,
7077,
29889,
2230,
29918,
12800,
29901,
268,
1596,
525,
1678,
18695,
29900,
29941,
29888,
5226,
10398,
304,
2254,
18224,
6169,
1273,
313,
29956,
1525,
7077,
29889,
2230,
29918,
12800,
448,
399,
1525,
7077,
29889,
2230,
29918,
15638,
8443,
13,
12,
361,
399,
1525,
7077,
29889,
2230,
29918,
29562,
29901,
418,
1596,
525,
1678,
18695,
29900,
29941,
29888,
5226,
10398,
304,
1423,
3883,
5877,
6169,
1273,
313,
29956,
1525,
7077,
29889,
2230,
29918,
29562,
448,
399,
1525,
7077,
29889,
2230,
29918,
12800,
8443,
13,
12,
361,
399,
1525,
7077,
29889,
2230,
29918,
1693,
14903,
29901,
1596,
525,
1678,
18695,
29900,
29941,
29888,
5226,
10398,
304,
23632,
2893,
14903,
6169,
1273,
313,
29956,
1525,
7077,
29889,
2230,
29918,
1693,
14903,
448,
399,
1525,
7077,
29889,
2230,
29918,
29562,
8443,
13,
12,
361,
399,
1525,
7077,
29889,
2230,
29918,
12198,
29901,
268,
1596,
525,
1678,
18695,
29900,
29941,
29888,
5226,
10398,
304,
6633,
3883,
6169,
1273,
313,
29956,
1525,
7077,
29889,
2230,
29918,
12198,
448,
399,
1525,
7077,
29889,
2230,
29918,
1693,
14903,
8443,
13,
12,
361,
399,
1525,
7077,
29889,
2230,
29918,
15843,
29901,
418,
1596,
525,
1678,
18695,
29900,
29941,
29888,
5226,
10398,
304,
5609,
3883,
6169,
1273,
313,
29956,
1525,
7077,
29889,
2230,
29918,
15843,
448,
399,
1525,
7077,
29889,
2230,
29918,
12198,
8443,
13,
12,
2158,
30004,
13,
12,
2158,
525,
1678,
8653,
18695,
29900,
29941,
29888,
5226,
3001,
931,
10398,
29889,
3532,
26717,
1273,
313,
657,
2230,
580,
448,
399,
1525,
7077,
29889,
2230,
29918,
2962,
287,
8443,
13,
12,
2158,
30004,
13,
361,
525,
10685,
29915,
297,
10876,
29889,
19218,
29901,
10650,
29918,
2080,
877,
10923,
9041,
304,
8341,
29958,
1495,
30004,
13,
2
] |
mmtbx/bulk_solvent/f_model_all_scales.py | dperl-sol/cctbx_project | 155 | 22809 | <reponame>dperl-sol/cctbx_project
from __future__ import absolute_import, division, print_function
from cctbx.array_family import flex
from cctbx import adptbx
from mmtbx import bulk_solvent
from cctbx.array_family import flex
from cctbx import adptbx
import mmtbx
from libtbx import group_args
import mmtbx.arrays
import mmtbx.bulk_solvent.scaler
from libtbx.test_utils import approx_equal
from libtbx.math_utils import ifloor, iceil
import mmtbx.f_model
import mmtbx.bulk_solvent.bulk_solvent_and_scaling as bss
from six.moves import zip, range
class run(mmtbx.f_model.manager):
"""
This is a very specialized routine to perform complex protocols of updating
all scales of fmodel, including case of twininng, presence of H and lileky
more. Inside it pretends to be fmodel proper (done by dictionary updates
before and after - any better ideas of how to do it nicer are welcome!).
"""
def __init__(self,
fmodel,
apply_back_trace,
remove_outliers,
fast,
params,
refine_hd_scattering,
log):
### Must be first thing here
self.__dict__.update(fmodel.__dict__)
# From this point on: self = fmodel
###
russ = self.compute(apply_back_trace = apply_back_trace, remove_outliers =
remove_outliers, fast = fast, params = params,
refine_hd_scattering = refine_hd_scattering, log = log)
### Must be next to last...
fmodel.__dict__.update(self.__dict__)
### ...and this one is last
self.russ = russ
def compute(self, apply_back_trace, remove_outliers, fast,
params, refine_hd_scattering, log):
assert [self.arrays.core_twin, self.twin_law].count(None) in [0,2]
self.show(prefix = "start", log = log)
self.reset_all_scales()
self.show(prefix = "re-set all scales", log = log)
if(remove_outliers and not self.twinned()):
for iii in range(5):
self.remove_outliers(use_model = False, log = None) # XXX
self.show(prefix = "remove outliers", log = log)
result = None
if(self.twinned()):
for cycle in range(2):
if(log is not None): print("cycle %d:"%cycle, file=log)
self.update_twin_fraction()
self.show(prefix = "update twin fraction", log = log)
result = self.update_solvent_and_scale_twin(log = log,
refine_hd_scattering = refine_hd_scattering)
else:
result = self.update_solvent_and_scale_2(
fast = fast,
params = params,
apply_back_trace = apply_back_trace,
refine_hd_scattering = refine_hd_scattering,
log = log)
#XXX if(remove_outliers and not self.twinned()):
#XXX self.remove_outliers(use_model = True, log = None) # XXX
if(remove_outliers and not self.twinned()):
for iii in range(5):
self.remove_outliers(use_model = True, log = None) # XXX
self.show(prefix = "remove outliers", log = log)
return result
def reset_all_scales(self):
size = self.f_obs().data().size()
zero_c = flex.complex_double(size,0)
zero_d = flex.double(size,0)
one_d = flex.double(size,1)
f_part1_twin = self.f_calc_twin()
f_part2_twin = self.f_calc_twin()
if(f_part1_twin is not None):
f_part1_twin = self.f_calc_twin().array(data=zero_c)
f_part2_twin = self.f_calc_twin().array(data=zero_c)
self.update_core(
f_part1 = self.f_calc().array(data=zero_c),
f_part2 = self.f_calc().array(data=zero_c),
f_part1_twin = f_part1_twin,
f_part2_twin = f_part2_twin,
k_isotropic = one_d,
k_anisotropic = one_d,
k_mask = [zero_d]*len(self.k_masks()))
def show(self, prefix, log, r=None):
if(log is None): return
if(r is None): r = self.r_all()
m = "%24s: r(all,work,free)=%6.4f %6.4f %6.4f n_refl.: %d"%(prefix, r,
self.r_work(), self.r_free(), self.f_obs().data().size())
if(not self.twinned()):
print(m, file=log)
else:
print(m+" twin_fraction=%4.2f"%self.twin_fraction, file=log)
def need_to_refine_hd_scattering_contribution(self):
if(self.xray_structure is None): return False
refine_hd_scattering = True
hd_selection = self.xray_structure.hd_selection()
occ_h_all_zero = self.xray_structure.select(
hd_selection).scatterers().extract_occupancies().all_eq(0.0) # riding H
if(self.xray_structure.guess_scattering_type_neutron() or
hd_selection.count(True)==0 or
not occ_h_all_zero):
refine_hd_scattering = False
return refine_hd_scattering
def update_solvent_and_scale_2(self, fast, params, apply_back_trace,
refine_hd_scattering, log):
if(params is None): params = bss.master_params.extract()
if(self.xray_structure is not None):
# Figure out Fcalc and Fmask based on presence of H
hd_selection = self.xray_structure.hd_selection()
xrs_no_h = self.xray_structure.select(~hd_selection)
xrs_h = self.xray_structure.select(hd_selection)
# Create data container for scalers. If H scattering is refined then it is
# assumed that self.f_calc() does not contain H contribution at all.
fmodel_kbu = mmtbx.f_model.manager_kbu(
f_obs = self.f_obs(),
f_calc = self.f_calc(),
f_masks = self.f_masks(),
ss = self.ss)
# Compute k_total and k_mask using one of the two methods (anal or min).
# Note: this intentionally ignores previously existing f_part1 and f_part2.
#
k_sol, b_sol, b_cart, b_adj = [None,]*4
if(fast): # analytical
assert len(fmodel_kbu.f_masks)==1
result = mmtbx.bulk_solvent.scaler.run_simple(
fmodel_kbu = fmodel_kbu,
r_free_flags = self.r_free_flags(),
bulk_solvent = params.bulk_solvent,
aniso_scale = params.anisotropic_scaling,
bin_selections = self.bin_selections)
r_all_from_scaler = result.r_all() # must be here, before apply_back_trace
else: # using minimization: exp solvent and scale model (k_sol,b_sol,b_cart)
result = bss.bulk_solvent_and_scales(
fmodel_kbu = fmodel_kbu,
params = params)
k_sol, b_sol, b_cart = result.k_sols(), result.b_sols(), result.b_cart()
r_all_from_scaler = result.r_all() # must be here, before apply_back_trace
if(apply_back_trace and len(fmodel_kbu.f_masks)==1 and
self.xray_structure is not None):
o = result.apply_back_trace_of_overall_exp_scale_matrix(
xray_structure = self.xray_structure)
b_adj = o.b_adj
if(not fast): b_sol, b_cart = [o.b_sol], o.b_cart
self.update_xray_structure(
xray_structure = o.xray_structure,
update_f_calc = True)
fmodel_kbu = fmodel_kbu.update(f_calc = self.f_calc())
self.show(prefix = "overall B=%s to atoms"%str("%7.2f"%o.b_adj).strip(),
log = log)
# Update self with new arrays so that H correction knows current R factor.
# If no H to account for, then this is the final result.
k_masks = result.k_masks()
k_anisotropic = result.k_anisotropic()
k_isotropic = result.k_isotropic()
self.update_core(
k_mask = k_masks,
k_anisotropic = k_anisotropic,
k_isotropic = k_isotropic)
self.show(prefix = "bulk-solvent and scaling", log = log)
# Consistency check
if(not apply_back_trace):
assert approx_equal(self.r_all(), r_all_from_scaler)
# Add contribution from H (if present and riding). This goes to f_part2.
kh, bh = 0, 0
if(refine_hd_scattering and
self.need_to_refine_hd_scattering_contribution()):
# Obsolete previous contribution f_part2
f_part2 = fmodel_kbu.f_calc.array(data=fmodel_kbu.f_calc.data()*0)
self.update_core(f_part2 = f_part2)
xrs_h = xrs_h.set_occupancies(value=1).set_b_iso(value = 0)
f_h = self.compute_f_calc(xray_structure = xrs_h)
# Accumulate all mask contributions: Fcalc_atoms+Fbulk_1+...+Fbulk_N
data = fmodel_kbu.f_calc.data()
for k_mask_, f_mask_ in zip(k_masks, fmodel_kbu.f_masks):
data = data + k_mask_*f_mask_.data()
f_calc_plus_f_bulk_no_scales = fmodel_kbu.f_calc.array(data = data)
# Consistency check
assert approx_equal(self.f_model().data(),
f_calc_plus_f_bulk_no_scales.data()*k_isotropic*k_anisotropic)
assert approx_equal(self.f_model_no_scales().data(),
f_calc_plus_f_bulk_no_scales.data())
#
# Compute contribution from H (F_H)
#
# Coarse sampling
b_mean = flex.mean(xrs_no_h.extract_u_iso_or_u_equiv())*adptbx.u_as_b(1.)
b_min = int(max(0,b_mean)*0.5)
b_max = int(b_mean*1.5)
sc = 1000.
kr=[i/sc for i in range(ifloor(0*sc), iceil(1.5*sc)+1, int(0.1*sc))]
br=[i/sc for i in range(ifloor(b_min*sc), iceil(b_max*sc)+1, int(5.*sc))]
o = bulk_solvent.k_sol_b_sol_k_anisotropic_scaler_twin(
f_obs = fmodel_kbu.f_obs.data(),
f_calc = f_calc_plus_f_bulk_no_scales.data(),
f_mask = f_h.data(),
k_total = k_isotropic*k_anisotropic,
ss = fmodel_kbu.ss,
k_sol_range = flex.double(kr),
b_sol_range = flex.double(br),
r_ref = self.r_work())
if(o.updated()):
f_part2 = f_h.array(data = o.k_mask()*f_h.data())
kh, bh = o.k_sol(), o.b_sol()
self.show(prefix = "add H (%4.2f, %6.2f)"%(kh, bh), log = log, r=o.r())
# Fine sampling
k_min = max(0,o.k_sol()-0.1)
k_max = o.k_sol()+0.1
b_min = max(0,o.b_sol()-5.)
b_max = o.b_sol()+5.
kr=[i/sc for i in range(ifloor(k_min*sc),iceil(k_max*sc)+1,int(0.01*sc))]
br=[i/sc for i in range(ifloor(b_min*sc),iceil(b_max*sc)+1,int(1.*sc))]
o = bulk_solvent.k_sol_b_sol_k_anisotropic_scaler_twin(
f_obs = fmodel_kbu.f_obs.data(),
f_calc = f_calc_plus_f_bulk_no_scales.data(),
f_mask = f_h.data(),
k_total = k_isotropic*k_anisotropic,
ss = fmodel_kbu.ss,
k_sol_range = flex.double(kr),
b_sol_range = flex.double(br),
r_ref = o.r())
if(o.updated()):
f_part2 = f_h.array(data = o.k_mask()*f_h.data())
kh, bh = o.k_sol(), o.b_sol()
self.show(prefix = "add H (%4.2f, %6.2f)"%(kh, bh), log = log, r=o.r())
# THIS HELPS if fast=true is used, see how it works in reality
#
if(fast):
fmodel_kbu_ = mmtbx.f_model.manager_kbu(
f_obs = self.f_obs(),
f_calc = f_calc_plus_f_bulk_no_scales,
f_masks = [f_part2],
ss = self.ss)
result = mmtbx.bulk_solvent.scaler.run_simple(
fmodel_kbu = fmodel_kbu_,
r_free_flags = self.r_free_flags(),
bulk_solvent = params.bulk_solvent,
aniso_scale = params.anisotropic_scaling,
bin_selections = self.bin_selections)
f_part2 = f_part2.array(data = result.core.k_mask()*f_part2.data())
k_isotropic = result.core.k_isotropic*result.core.k_isotropic_exp
k_anisotropic = result.core.k_anisotropic
# Update self with final scales
self.update_core(
k_mask = k_masks,
k_anisotropic = k_anisotropic,
k_isotropic = k_isotropic,
f_part2 = f_part2)
# Make sure what came out of scaling matches what self thinks it really is
# It must match at least up to 1.e-6.
self.show(prefix = "add H (%4.2f, %6.2f)"%(kh, bh), log = log)
if(fast):
assert approx_equal(result.r_work(), self.r_work(), 1.e-4)
else:
assert approx_equal(self.r_all(), o.r()), [self.r_all(), o.r()]
return group_args(
k_sol = k_sol,
b_sol = b_sol,
b_cart = b_cart,
k_h = kh,
b_h = bh,
b_adj = b_adj)
def update_solvent_and_scale_twin(self, refine_hd_scattering, log):
if(not self.twinned()): return
assert len(self.f_masks()) == 1
# Re-set all scales to unit or zero
self.show(prefix = "update scales twin start", log = log)
self.reset_all_scales()
self.show(prefix = "reset f_part, k_(total,mask)", log = log)
f_calc_data = self.f_calc().data()
f_calc_data_twin = self.f_calc_twin().data()
# Initial trial set
sc = 1000.
ksr = [i/sc for i in range(ifloor(0*sc), iceil(0.6*sc)+1, int(0.05*sc))]
bsr = [i/sc for i in range(ifloor(0*sc), iceil(150.*sc)+1, int(10.*sc))]
o_kbu_sol = bulk_solvent.k_sol_b_sol_k_anisotropic_scaler_twin(
f_obs = self.f_obs().data(),
f_calc_1 = f_calc_data,
f_calc_2 = f_calc_data_twin,
f_mask_1 = self.arrays.core.f_masks[0].data(),
f_mask_2 = self.arrays.core_twin.f_masks[0].data(),
ss = self.ss,
twin_fraction = self.twin_fraction,
k_sol_range = flex.double(ksr),
b_sol_range = flex.double(bsr),
miller_indices = self.f_obs().indices(), #XXX ??? What about twin-related?
unit_cell = self.f_obs().unit_cell(),
r_ref = self.r_all())
if(o_kbu_sol.updated()):
self.update(
k_mask = o_kbu_sol.k_mask(),
k_anisotropic = o_kbu_sol.k_anisotropic())
# Second (finer) trial set
k_min = max(o_kbu_sol.k_sol()-0.05, 0)
k_max = min(o_kbu_sol.k_sol()+0.05, 0.6)
ksr = [i/sc for i in range(ifloor(k_min*sc), iceil(k_max*sc)+1, int(0.01*sc))]
b_min = max(o_kbu_sol.b_sol()-10, 0)
b_max = min(o_kbu_sol.b_sol()+10, 150)
bsr = [i/sc for i in range(ifloor(b_min*sc), iceil(b_max*sc)+1, int(1.*sc))]
o_kbu_sol = bulk_solvent.k_sol_b_sol_k_anisotropic_scaler_twin(
f_obs = self.f_obs().data(),
f_calc_1 = f_calc_data,
f_calc_2 = f_calc_data_twin,
f_mask_1 = self.arrays.core.f_masks[0].data(),
f_mask_2 = self.arrays.core_twin.f_masks[0].data(),
ss = self.ss,
twin_fraction = self.twin_fraction,
k_sol_range = flex.double(ksr),
b_sol_range = flex.double(bsr),
miller_indices = self.f_obs().indices(), #XXX ??? What about twin-related?
unit_cell = self.f_obs().unit_cell(),
r_ref = o_kbu_sol.r())
if(o_kbu_sol.updated()):
self.update(
k_mask = o_kbu_sol.k_mask(),
k_anisotropic = o_kbu_sol.k_anisotropic())
# Disable due to rare failures. Technically they should always match. But
# since different routines are used tiny disagreements are possible.
# See examples in : /net/anaconda/raid1/afonine/work/bugs/twin_refinement
#assert approx_equal(self.r_all(), o_kbu_sol.r(), 1.e-5)
##############
# use apply_back_trace in if below
if(self.xray_structure is not None):
o = mmtbx.bulk_solvent.scaler.tmp(
xray_structure = self.xray_structure,
k_anisotropic = o_kbu_sol.k_anisotropic(),
k_masks = [o_kbu_sol.k_mask()],
ss = self.ss)
self.update_xray_structure(
xray_structure = o.xray_structure,
update_f_calc = True)
#############
self.update(
k_mask = o.k_masks,
k_anisotropic = o.k_anisotropic)
self.show(prefix = "bulk-solvent and scaling", log = log)
#
# Add contribution from H (if present and riding). This goes to f_part2.
#
kh, bh = 0, 0
if(refine_hd_scattering and
self.need_to_refine_hd_scattering_contribution()):
hd_selection = self.xray_structure.hd_selection()
xrs_no_h = self.xray_structure.select(~hd_selection)
xrs_h = self.xray_structure.select(hd_selection)
# Accumulate all mask contributions: Fcalc_atoms+Fbulk_1+...+Fbulk_N
data = self.f_calc().data()+self.f_masks()[0].data()*self.k_masks()[0]
f_calc_plus_f_bulk_no_scales = self.f_calc().array(data = data)
data = self.f_calc_twin().data()+\
self.f_masks_twin()[0].data()*self.k_masks_twin()[0]
f_calc_plus_f_bulk_no_scales_twin = self.f_calc_twin().array(data = data)
# Initial FH contribution
xrs_h = xrs_h.set_occupancies(value=1).set_b_iso(value = 0)
f_h = self.compute_f_calc(xray_structure = xrs_h)
f_h_twin = self.compute_f_calc(xray_structure = xrs_h,
miller_array = self.f_calc_twin())
# Coarse sampling
b_mean = flex.mean(xrs_no_h.extract_u_iso_or_u_equiv())*adptbx.u_as_b(1.)
b_min = int(max(0,b_mean)*0.5)
b_max = int(b_mean*1.5)
sc = 1000.
kr=[i/sc for i in range(ifloor(0*sc), iceil(1.5*sc)+1, int(0.1*sc))]
br=[i/sc for i in range(ifloor(b_min*sc), iceil(b_max*sc)+1, int(5.*sc))]
obj = bulk_solvent.k_sol_b_sol_k_anisotropic_scaler_twin(
f_obs = self.f_obs().data(),
f_calc_1 = f_calc_plus_f_bulk_no_scales.data(),
f_calc_2 = f_calc_plus_f_bulk_no_scales_twin.data(),
f_mask_1 = f_h.data(),
f_mask_2 = f_h_twin.data(),
ss = self.ss,
twin_fraction = self.twin_fraction,
k_sol_range = flex.double(kr),
b_sol_range = flex.double(br),
miller_indices = self.f_obs().indices(), # XXX What about twin-related?
unit_cell = self.f_obs().unit_cell(),
r_ref = self.r_work())
if(obj.updated()):
f_part2 = f_h.array( data = obj.k_mask()*f_h.data())
f_part2_twin = f_h_twin.array(data = obj.k_mask()*f_h_twin.data())
kh, bh = obj.k_sol(), obj.b_sol()
# Fine sampling
k_min = max(0,obj.k_sol()-0.1)
k_max = obj.k_sol()+0.1
b_min = max(0,obj.b_sol()-5.)
b_max = obj.b_sol()+5.
kr=[i/sc for i in range(ifloor(k_min*sc),iceil(k_max*sc)+1,int(0.01*sc))]
br=[i/sc for i in range(ifloor(b_min*sc),iceil(b_max*sc)+1,int(5.*sc))]
obj = bulk_solvent.k_sol_b_sol_k_anisotropic_scaler_twin(
f_obs = self.f_obs().data(),
f_calc_1 = f_calc_plus_f_bulk_no_scales.data(),
f_calc_2 = f_calc_plus_f_bulk_no_scales_twin.data(),
f_mask_1 = f_h.data(),
f_mask_2 = f_h_twin.data(),
ss = self.ss,
twin_fraction = self.twin_fraction,
k_sol_range = flex.double(kr),
b_sol_range = flex.double(br),
miller_indices = self.f_obs().indices(), # XXX What about twin-related?
unit_cell = self.f_obs().unit_cell(),
r_ref = obj.r())
if(obj.updated()):
f_part2 = f_h.array( data = obj.k_mask()*f_h.data())
f_part2_twin = f_h_twin.array(data = obj.k_mask()*f_h_twin.data())
kh, bh = obj.k_sol(), obj.b_sol()
self.update_core(
f_part2 = f_part2,
f_part2_twin = f_part2_twin,
k_anisotropic = obj.k_anisotropic())
self.show(prefix = "add H (%4.2f, %6.2f)"%(kh, bh), log = log)
b_cart = adptbx.u_as_b(adptbx.u_star_as_u_cart(
self.f_obs().unit_cell(), o_kbu_sol.u_star()))
return group_args(
k_sol = o_kbu_sol.k_sol(),
b_sol = o_kbu_sol.b_sol(),
b_cart = b_cart,
k_h = kh,
b_h = bh)
| [
1,
529,
276,
1112,
420,
29958,
29881,
22032,
29899,
2929,
29914,
29883,
312,
29890,
29916,
29918,
4836,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
13,
3166,
274,
312,
29890,
29916,
29889,
2378,
29918,
11922,
1053,
8525,
13,
3166,
274,
312,
29890,
29916,
1053,
594,
415,
29890,
29916,
13,
3166,
286,
4378,
29890,
29916,
1053,
21610,
29918,
2929,
794,
13,
3166,
274,
312,
29890,
29916,
29889,
2378,
29918,
11922,
1053,
8525,
13,
3166,
274,
312,
29890,
29916,
1053,
594,
415,
29890,
29916,
13,
5215,
286,
4378,
29890,
29916,
13,
3166,
619,
3116,
29890,
29916,
1053,
2318,
29918,
5085,
13,
5215,
286,
4378,
29890,
29916,
29889,
2378,
29879,
13,
5215,
286,
4378,
29890,
29916,
29889,
8645,
29895,
29918,
2929,
794,
29889,
19529,
261,
13,
3166,
619,
3116,
29890,
29916,
29889,
1688,
29918,
13239,
1053,
2134,
29916,
29918,
11745,
13,
3166,
619,
3116,
29890,
29916,
29889,
755,
29918,
13239,
1053,
565,
10102,
29892,
14890,
309,
13,
5215,
286,
4378,
29890,
29916,
29889,
29888,
29918,
4299,
13,
5215,
286,
4378,
29890,
29916,
29889,
8645,
29895,
29918,
2929,
794,
29889,
8645,
29895,
29918,
2929,
794,
29918,
392,
29918,
19529,
292,
408,
289,
893,
13,
3166,
4832,
29889,
13529,
267,
1053,
14319,
29892,
3464,
13,
13,
1990,
1065,
29898,
4317,
22625,
29916,
29889,
29888,
29918,
4299,
29889,
12847,
1125,
13,
29871,
9995,
13,
29871,
910,
338,
263,
1407,
4266,
1891,
26529,
304,
2189,
4280,
9608,
29879,
310,
13271,
13,
29871,
599,
23431,
310,
285,
4299,
29892,
3704,
1206,
310,
3252,
262,
262,
865,
29892,
10122,
310,
379,
322,
301,
488,
3459,
13,
29871,
901,
29889,
22804,
372,
14794,
1975,
304,
367,
285,
4299,
1571,
313,
15091,
491,
8600,
11217,
13,
29871,
1434,
322,
1156,
448,
738,
2253,
7014,
310,
920,
304,
437,
372,
16588,
261,
526,
12853,
29991,
467,
13,
29871,
9995,
13,
13,
29871,
822,
4770,
2344,
12035,
1311,
29892,
13,
1669,
285,
4299,
29892,
13,
1669,
3394,
29918,
1627,
29918,
15003,
29892,
13,
1669,
3349,
29918,
449,
27801,
29892,
13,
1669,
5172,
29892,
13,
1669,
8636,
29892,
13,
1669,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
29892,
13,
1669,
1480,
1125,
13,
1678,
835,
19928,
367,
937,
2655,
1244,
13,
1678,
1583,
17255,
8977,
26914,
5504,
29898,
29888,
4299,
17255,
8977,
1649,
29897,
13,
1678,
396,
3645,
445,
1298,
373,
29901,
1583,
353,
285,
4299,
13,
1678,
835,
13,
1678,
17626,
353,
1583,
29889,
26017,
29898,
7302,
29918,
1627,
29918,
15003,
353,
3394,
29918,
1627,
29918,
15003,
29892,
3349,
29918,
449,
27801,
353,
13,
418,
3349,
29918,
449,
27801,
29892,
5172,
353,
5172,
29892,
8636,
353,
8636,
29892,
13,
418,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
353,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
29892,
1480,
353,
1480,
29897,
13,
1678,
835,
19928,
367,
2446,
304,
1833,
856,
13,
1678,
285,
4299,
17255,
8977,
26914,
5504,
29898,
1311,
17255,
8977,
1649,
29897,
13,
1678,
835,
2023,
392,
445,
697,
338,
1833,
13,
1678,
1583,
29889,
29878,
1558,
353,
17626,
13,
13,
29871,
822,
10272,
29898,
1311,
29892,
3394,
29918,
1627,
29918,
15003,
29892,
3349,
29918,
449,
27801,
29892,
5172,
29892,
13,
795,
8636,
29892,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
29892,
1480,
1125,
13,
1678,
4974,
518,
1311,
29889,
2378,
29879,
29889,
3221,
29918,
29873,
5080,
29892,
1583,
29889,
29873,
5080,
29918,
10653,
1822,
2798,
29898,
8516,
29897,
297,
518,
29900,
29892,
29906,
29962,
13,
1678,
1583,
29889,
4294,
29898,
13506,
353,
376,
2962,
613,
1480,
353,
1480,
29897,
13,
1678,
1583,
29889,
12071,
29918,
497,
29918,
19529,
267,
580,
13,
1678,
1583,
29889,
4294,
29898,
13506,
353,
376,
276,
29899,
842,
599,
23431,
613,
1480,
353,
1480,
29897,
13,
1678,
565,
29898,
5992,
29918,
449,
27801,
322,
451,
1583,
29889,
7516,
27464,
580,
1125,
13,
418,
363,
474,
2236,
297,
3464,
29898,
29945,
1125,
13,
4706,
1583,
29889,
5992,
29918,
449,
27801,
29898,
1509,
29918,
4299,
353,
7700,
29892,
1480,
353,
6213,
29897,
396,
22615,
13,
418,
1583,
29889,
4294,
29898,
13506,
353,
376,
5992,
714,
27801,
613,
1480,
353,
1480,
29897,
13,
1678,
1121,
353,
6213,
13,
1678,
565,
29898,
1311,
29889,
7516,
27464,
580,
1125,
13,
418,
363,
11412,
297,
3464,
29898,
29906,
1125,
13,
4706,
565,
29898,
1188,
338,
451,
6213,
1125,
1596,
703,
23090,
1273,
29881,
6160,
29995,
23090,
29892,
934,
29922,
1188,
29897,
13,
4706,
1583,
29889,
5504,
29918,
29873,
5080,
29918,
29888,
13857,
580,
13,
4706,
1583,
29889,
4294,
29898,
13506,
353,
376,
5504,
3252,
262,
15958,
613,
1480,
353,
1480,
29897,
13,
4706,
1121,
353,
1583,
29889,
5504,
29918,
2929,
794,
29918,
392,
29918,
7052,
29918,
29873,
5080,
29898,
1188,
353,
1480,
29892,
13,
3986,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
353,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
29897,
13,
1678,
1683,
29901,
13,
418,
1121,
353,
1583,
29889,
5504,
29918,
2929,
794,
29918,
392,
29918,
7052,
29918,
29906,
29898,
13,
4706,
5172,
462,
353,
5172,
29892,
13,
4706,
8636,
1669,
353,
8636,
29892,
13,
4706,
3394,
29918,
1627,
29918,
15003,
268,
353,
3394,
29918,
1627,
29918,
15003,
29892,
13,
4706,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
353,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
29892,
13,
4706,
1480,
462,
29871,
353,
1480,
29897,
13,
1678,
396,
22791,
565,
29898,
5992,
29918,
449,
27801,
322,
451,
1583,
29889,
7516,
27464,
580,
1125,
13,
1678,
396,
22791,
259,
1583,
29889,
5992,
29918,
449,
27801,
29898,
1509,
29918,
4299,
353,
5852,
29892,
1480,
353,
6213,
29897,
396,
22615,
13,
1678,
565,
29898,
5992,
29918,
449,
27801,
322,
451,
1583,
29889,
7516,
27464,
580,
1125,
13,
418,
363,
474,
2236,
297,
3464,
29898,
29945,
1125,
13,
4706,
1583,
29889,
5992,
29918,
449,
27801,
29898,
1509,
29918,
4299,
353,
5852,
29892,
1480,
353,
6213,
29897,
396,
22615,
13,
418,
1583,
29889,
4294,
29898,
13506,
353,
376,
5992,
714,
27801,
613,
1480,
353,
1480,
29897,
13,
1678,
736,
1121,
13,
13,
29871,
822,
10092,
29918,
497,
29918,
19529,
267,
29898,
1311,
1125,
13,
1678,
2159,
353,
1583,
29889,
29888,
29918,
26290,
2141,
1272,
2141,
2311,
580,
13,
1678,
5225,
29918,
29883,
353,
8525,
29889,
19676,
29918,
8896,
29898,
2311,
29892,
29900,
29897,
13,
1678,
5225,
29918,
29881,
353,
8525,
29889,
8896,
29898,
2311,
29892,
29900,
29897,
13,
1678,
697,
29918,
29881,
29871,
353,
8525,
29889,
8896,
29898,
2311,
29892,
29896,
29897,
13,
1678,
285,
29918,
1595,
29896,
29918,
29873,
5080,
353,
1583,
29889,
29888,
29918,
28667,
29918,
29873,
5080,
580,
13,
1678,
285,
29918,
1595,
29906,
29918,
29873,
5080,
353,
1583,
29889,
29888,
29918,
28667,
29918,
29873,
5080,
580,
13,
1678,
565,
29898,
29888,
29918,
1595,
29896,
29918,
29873,
5080,
338,
451,
6213,
1125,
13,
418,
285,
29918,
1595,
29896,
29918,
29873,
5080,
353,
1583,
29889,
29888,
29918,
28667,
29918,
29873,
5080,
2141,
2378,
29898,
1272,
29922,
9171,
29918,
29883,
29897,
13,
418,
285,
29918,
1595,
29906,
29918,
29873,
5080,
353,
1583,
29889,
29888,
29918,
28667,
29918,
29873,
5080,
2141,
2378,
29898,
1272,
29922,
9171,
29918,
29883,
29897,
13,
1678,
1583,
29889,
5504,
29918,
3221,
29898,
13,
418,
285,
29918,
1595,
29896,
539,
353,
1583,
29889,
29888,
29918,
28667,
2141,
2378,
29898,
1272,
29922,
9171,
29918,
29883,
511,
13,
418,
285,
29918,
1595,
29906,
539,
353,
1583,
29889,
29888,
29918,
28667,
2141,
2378,
29898,
1272,
29922,
9171,
29918,
29883,
511,
13,
418,
285,
29918,
1595,
29896,
29918,
29873,
5080,
29871,
353,
285,
29918,
1595,
29896,
29918,
29873,
5080,
29892,
13,
418,
285,
29918,
1595,
29906,
29918,
29873,
5080,
29871,
353,
285,
29918,
1595,
29906,
29918,
29873,
5080,
29892,
13,
418,
413,
29918,
275,
28467,
293,
259,
353,
697,
29918,
29881,
29892,
13,
418,
413,
29918,
273,
275,
28467,
293,
353,
697,
29918,
29881,
29892,
13,
418,
413,
29918,
13168,
4706,
353,
518,
9171,
29918,
29881,
14178,
2435,
29898,
1311,
29889,
29895,
29918,
13168,
29879,
22130,
13,
13,
29871,
822,
1510,
29898,
1311,
29892,
10944,
29892,
1480,
29892,
364,
29922,
8516,
1125,
13,
1678,
565,
29898,
1188,
338,
6213,
1125,
736,
13,
1678,
565,
29898,
29878,
338,
6213,
1125,
364,
353,
1583,
29889,
29878,
29918,
497,
580,
13,
1678,
286,
353,
11860,
29906,
29946,
29879,
29901,
364,
29898,
497,
29892,
1287,
29892,
9021,
3892,
29995,
29953,
29889,
29946,
29888,
1273,
29953,
29889,
29946,
29888,
1273,
29953,
29889,
29946,
29888,
302,
29918,
999,
29880,
4898,
1273,
29881,
29908,
29995,
29898,
13506,
29892,
364,
29892,
13,
418,
1583,
29889,
29878,
29918,
1287,
3285,
1583,
29889,
29878,
29918,
9021,
3285,
1583,
29889,
29888,
29918,
26290,
2141,
1272,
2141,
2311,
3101,
13,
1678,
565,
29898,
1333,
1583,
29889,
7516,
27464,
580,
1125,
13,
418,
1596,
29898,
29885,
29892,
934,
29922,
1188,
29897,
13,
1678,
1683,
29901,
13,
418,
1596,
29898,
29885,
13578,
3252,
262,
29918,
29888,
13857,
16328,
29946,
29889,
29906,
29888,
29908,
29995,
1311,
29889,
29873,
5080,
29918,
29888,
13857,
29892,
934,
29922,
1188,
29897,
13,
13,
29871,
822,
817,
29918,
517,
29918,
999,
457,
29918,
16440,
29918,
1557,
2620,
292,
29918,
1285,
3224,
29898,
1311,
1125,
13,
1678,
565,
29898,
1311,
29889,
29916,
764,
29918,
23905,
338,
6213,
1125,
736,
7700,
13,
1678,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
353,
5852,
13,
1678,
298,
29881,
29918,
21731,
353,
1583,
29889,
29916,
764,
29918,
23905,
29889,
16440,
29918,
21731,
580,
13,
1678,
2179,
29918,
29882,
29918,
497,
29918,
9171,
353,
1583,
29889,
29916,
764,
29918,
23905,
29889,
2622,
29898,
13,
418,
298,
29881,
29918,
21731,
467,
1557,
2620,
414,
2141,
21111,
29918,
16770,
273,
2478,
2141,
497,
29918,
1837,
29898,
29900,
29889,
29900,
29897,
396,
364,
4821,
379,
13,
1678,
565,
29898,
1311,
29889,
29916,
764,
29918,
23905,
29889,
2543,
404,
29918,
1557,
2620,
292,
29918,
1853,
29918,
17821,
1617,
580,
470,
13,
539,
298,
29881,
29918,
21731,
29889,
2798,
29898,
5574,
29897,
1360,
29900,
470,
13,
539,
451,
2179,
29918,
29882,
29918,
497,
29918,
9171,
1125,
13,
418,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
353,
7700,
13,
1678,
736,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
13,
13,
29871,
822,
2767,
29918,
2929,
794,
29918,
392,
29918,
7052,
29918,
29906,
29898,
1311,
29892,
5172,
29892,
8636,
29892,
3394,
29918,
1627,
29918,
15003,
29892,
13,
462,
462,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
29892,
1480,
1125,
13,
1678,
565,
29898,
7529,
338,
6213,
1125,
8636,
353,
289,
893,
29889,
6207,
29918,
7529,
29889,
21111,
580,
13,
1678,
565,
29898,
1311,
29889,
29916,
764,
29918,
23905,
338,
451,
6213,
1125,
13,
418,
396,
11479,
714,
383,
28667,
322,
383,
13168,
2729,
373,
10122,
310,
379,
13,
418,
298,
29881,
29918,
21731,
353,
1583,
29889,
29916,
764,
29918,
23905,
29889,
16440,
29918,
21731,
580,
13,
418,
921,
2288,
29918,
1217,
29918,
29882,
353,
1583,
29889,
29916,
764,
29918,
23905,
29889,
2622,
29898,
30022,
16440,
29918,
21731,
29897,
13,
418,
921,
2288,
29918,
29882,
1678,
353,
1583,
29889,
29916,
764,
29918,
23905,
29889,
2622,
29898,
16440,
29918,
21731,
29897,
13,
1678,
396,
6204,
848,
5639,
363,
8716,
414,
29889,
960,
379,
14801,
292,
338,
2143,
1312,
769,
372,
338,
13,
1678,
396,
12023,
393,
1583,
29889,
29888,
29918,
28667,
580,
947,
451,
1712,
379,
11896,
472,
599,
29889,
13,
1678,
285,
4299,
29918,
29895,
2423,
353,
286,
4378,
29890,
29916,
29889,
29888,
29918,
4299,
29889,
12847,
29918,
29895,
2423,
29898,
13,
418,
285,
29918,
26290,
259,
353,
1583,
29889,
29888,
29918,
26290,
3285,
13,
418,
285,
29918,
28667,
29871,
353,
1583,
29889,
29888,
29918,
28667,
3285,
13,
418,
285,
29918,
13168,
29879,
353,
1583,
29889,
29888,
29918,
13168,
29879,
3285,
13,
418,
17971,
418,
353,
1583,
29889,
893,
29897,
13,
1678,
396,
11796,
29872,
413,
29918,
7827,
322,
413,
29918,
13168,
773,
697,
310,
278,
1023,
3519,
313,
7054,
470,
1375,
467,
13,
1678,
396,
3940,
29901,
445,
16392,
635,
5330,
2361,
9251,
5923,
285,
29918,
1595,
29896,
322,
285,
29918,
1595,
29906,
29889,
13,
1678,
396,
13,
1678,
413,
29918,
2929,
29892,
289,
29918,
2929,
29892,
289,
29918,
13823,
29892,
289,
29918,
26859,
353,
518,
8516,
29892,
14178,
29946,
13,
1678,
565,
29898,
11255,
1125,
396,
16114,
936,
13,
418,
4974,
7431,
29898,
29888,
4299,
29918,
29895,
2423,
29889,
29888,
29918,
13168,
29879,
29897,
1360,
29896,
13,
418,
1121,
353,
286,
4378,
29890,
29916,
29889,
8645,
29895,
29918,
2929,
794,
29889,
19529,
261,
29889,
3389,
29918,
12857,
29898,
13,
4706,
285,
4299,
29918,
29895,
2423,
268,
353,
285,
4299,
29918,
29895,
2423,
29892,
13,
4706,
364,
29918,
9021,
29918,
15764,
259,
353,
1583,
29889,
29878,
29918,
9021,
29918,
15764,
3285,
13,
4706,
21610,
29918,
2929,
794,
259,
353,
8636,
29889,
8645,
29895,
29918,
2929,
794,
29892,
13,
4706,
385,
10718,
29918,
7052,
1678,
353,
8636,
29889,
273,
275,
28467,
293,
29918,
19529,
292,
29892,
13,
4706,
9016,
29918,
344,
5942,
353,
1583,
29889,
2109,
29918,
344,
5942,
29897,
13,
418,
364,
29918,
497,
29918,
3166,
29918,
19529,
261,
353,
1121,
29889,
29878,
29918,
497,
580,
396,
1818,
367,
1244,
29892,
1434,
3394,
29918,
1627,
29918,
15003,
13,
1678,
1683,
29901,
396,
773,
6260,
2133,
29901,
1518,
899,
794,
322,
6287,
1904,
313,
29895,
29918,
2929,
29892,
29890,
29918,
2929,
29892,
29890,
29918,
13823,
29897,
13,
418,
1121,
353,
289,
893,
29889,
8645,
29895,
29918,
2929,
794,
29918,
392,
29918,
19529,
267,
29898,
13,
4706,
285,
4299,
29918,
29895,
2423,
353,
285,
4299,
29918,
29895,
2423,
29892,
13,
4706,
8636,
268,
353,
8636,
29897,
13,
418,
413,
29918,
2929,
29892,
289,
29918,
2929,
29892,
289,
29918,
13823,
353,
1121,
29889,
29895,
29918,
2929,
29879,
3285,
1121,
29889,
29890,
29918,
2929,
29879,
3285,
1121,
29889,
29890,
29918,
13823,
580,
13,
418,
364,
29918,
497,
29918,
3166,
29918,
19529,
261,
353,
1121,
29889,
29878,
29918,
497,
580,
396,
1818,
367,
1244,
29892,
1434,
3394,
29918,
1627,
29918,
15003,
13,
1678,
565,
29898,
7302,
29918,
1627,
29918,
15003,
322,
7431,
29898,
29888,
4299,
29918,
29895,
2423,
29889,
29888,
29918,
13168,
29879,
29897,
1360,
29896,
322,
13,
539,
1583,
29889,
29916,
764,
29918,
23905,
338,
451,
6213,
1125,
13,
418,
288,
353,
1121,
29889,
7302,
29918,
1627,
29918,
15003,
29918,
974,
29918,
957,
497,
29918,
4548,
29918,
7052,
29918,
5344,
29898,
13,
4706,
921,
764,
29918,
23905,
353,
1583,
29889,
29916,
764,
29918,
23905,
29897,
13,
418,
289,
29918,
26859,
353,
288,
29889,
29890,
29918,
26859,
13,
418,
565,
29898,
1333,
5172,
1125,
289,
29918,
2929,
29892,
289,
29918,
13823,
353,
518,
29877,
29889,
29890,
29918,
2929,
1402,
288,
29889,
29890,
29918,
13823,
13,
418,
1583,
29889,
5504,
29918,
29916,
764,
29918,
23905,
29898,
13,
4706,
921,
764,
29918,
23905,
353,
288,
29889,
29916,
764,
29918,
23905,
29892,
13,
4706,
2767,
29918,
29888,
29918,
28667,
29871,
353,
5852,
29897,
13,
418,
285,
4299,
29918,
29895,
2423,
353,
285,
4299,
29918,
29895,
2423,
29889,
5504,
29898,
29888,
29918,
28667,
353,
1583,
29889,
29888,
29918,
28667,
3101,
13,
418,
1583,
29889,
4294,
29898,
13506,
353,
376,
957,
497,
350,
16328,
29879,
304,
28422,
29908,
29995,
710,
11702,
29955,
29889,
29906,
29888,
29908,
29995,
29877,
29889,
29890,
29918,
26859,
467,
17010,
3285,
13,
4706,
1480,
353,
1480,
29897,
13,
1678,
396,
10318,
1583,
411,
716,
7049,
577,
393,
379,
26385,
9906,
1857,
390,
7329,
29889,
13,
1678,
396,
960,
694,
379,
304,
3633,
363,
29892,
769,
445,
338,
278,
2186,
1121,
29889,
13,
1678,
413,
29918,
13168,
29879,
539,
353,
1121,
29889,
29895,
29918,
13168,
29879,
580,
13,
1678,
413,
29918,
273,
275,
28467,
293,
353,
1121,
29889,
29895,
29918,
273,
275,
28467,
293,
580,
13,
1678,
413,
29918,
275,
28467,
293,
259,
353,
1121,
29889,
29895,
29918,
275,
28467,
293,
580,
13,
1678,
1583,
29889,
5504,
29918,
3221,
29898,
13,
418,
413,
29918,
13168,
4706,
353,
413,
29918,
13168,
29879,
29892,
13,
418,
413,
29918,
273,
275,
28467,
293,
353,
413,
29918,
273,
275,
28467,
293,
29892,
13,
418,
413,
29918,
275,
28467,
293,
259,
353,
413,
29918,
275,
28467,
293,
29897,
13,
1678,
1583,
29889,
4294,
29898,
13506,
353,
376,
8645,
29895,
29899,
2929,
794,
322,
21640,
613,
1480,
353,
1480,
29897,
13,
1678,
396,
2138,
391,
3819,
1423,
13,
1678,
565,
29898,
1333,
3394,
29918,
1627,
29918,
15003,
1125,
13,
418,
4974,
2134,
29916,
29918,
11745,
29898,
1311,
29889,
29878,
29918,
497,
3285,
364,
29918,
497,
29918,
3166,
29918,
19529,
261,
29897,
13,
1678,
396,
3462,
11896,
515,
379,
313,
361,
2198,
322,
364,
4821,
467,
910,
5771,
304,
285,
29918,
1595,
29906,
29889,
13,
1678,
413,
29882,
29892,
289,
29882,
353,
29871,
29900,
29892,
29871,
29900,
13,
1678,
565,
29898,
999,
457,
29918,
16440,
29918,
1557,
2620,
292,
322,
13,
539,
1583,
29889,
26180,
29918,
517,
29918,
999,
457,
29918,
16440,
29918,
1557,
2620,
292,
29918,
1285,
3224,
580,
1125,
13,
418,
396,
4250,
2170,
371,
3517,
11896,
285,
29918,
1595,
29906,
13,
418,
285,
29918,
1595,
29906,
353,
285,
4299,
29918,
29895,
2423,
29889,
29888,
29918,
28667,
29889,
2378,
29898,
1272,
29922,
29888,
4299,
29918,
29895,
2423,
29889,
29888,
29918,
28667,
29889,
1272,
580,
29930,
29900,
29897,
13,
418,
1583,
29889,
5504,
29918,
3221,
29898,
29888,
29918,
1595,
29906,
353,
285,
29918,
1595,
29906,
29897,
13,
418,
921,
2288,
29918,
29882,
353,
921,
2288,
29918,
29882,
29889,
842,
29918,
16770,
273,
2478,
29898,
1767,
29922,
29896,
467,
842,
29918,
29890,
29918,
10718,
29898,
1767,
353,
29871,
29900,
29897,
13,
418,
285,
29918,
29882,
353,
1583,
29889,
26017,
29918,
29888,
29918,
28667,
29898,
29916,
764,
29918,
23905,
353,
921,
2288,
29918,
29882,
29897,
13,
418,
396,
4831,
398,
5987,
599,
11105,
20706,
29901,
383,
28667,
29918,
271,
4835,
29974,
29943,
8645,
29895,
29918,
29896,
29974,
856,
29974,
29943,
8645,
29895,
29918,
29940,
13,
418,
848,
353,
285,
4299,
29918,
29895,
2423,
29889,
29888,
29918,
28667,
29889,
1272,
580,
13,
418,
363,
413,
29918,
13168,
3383,
285,
29918,
13168,
29918,
297,
14319,
29898,
29895,
29918,
13168,
29879,
29892,
285,
4299,
29918,
29895,
2423,
29889,
29888,
29918,
13168,
29879,
1125,
13,
4706,
848,
353,
848,
718,
413,
29918,
13168,
24563,
29888,
29918,
13168,
5396,
1272,
580,
13,
418,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
353,
285,
4299,
29918,
29895,
2423,
29889,
29888,
29918,
28667,
29889,
2378,
29898,
1272,
353,
848,
29897,
13,
418,
396,
2138,
391,
3819,
1423,
13,
418,
4974,
2134,
29916,
29918,
11745,
29898,
1311,
29889,
29888,
29918,
4299,
2141,
1272,
3285,
13,
4706,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29889,
1272,
580,
29930,
29895,
29918,
275,
28467,
293,
29930,
29895,
29918,
273,
275,
28467,
293,
29897,
13,
418,
4974,
2134,
29916,
29918,
11745,
29898,
1311,
29889,
29888,
29918,
4299,
29918,
1217,
29918,
19529,
267,
2141,
1272,
3285,
13,
4706,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29889,
1272,
3101,
13,
418,
396,
13,
418,
396,
11796,
29872,
11896,
515,
379,
313,
29943,
29918,
29950,
29897,
13,
418,
396,
13,
418,
396,
3189,
7989,
23460,
13,
418,
289,
29918,
12676,
353,
8525,
29889,
12676,
29898,
29916,
2288,
29918,
1217,
29918,
29882,
29889,
21111,
29918,
29884,
29918,
10718,
29918,
272,
29918,
29884,
29918,
9402,
3101,
29930,
328,
415,
29890,
29916,
29889,
29884,
29918,
294,
29918,
29890,
29898,
29896,
1846,
13,
418,
289,
29918,
1195,
353,
938,
29898,
3317,
29898,
29900,
29892,
29890,
29918,
12676,
11877,
29900,
29889,
29945,
29897,
13,
418,
289,
29918,
3317,
353,
938,
29898,
29890,
29918,
12676,
29930,
29896,
29889,
29945,
29897,
13,
418,
885,
353,
29871,
29896,
29900,
29900,
29900,
29889,
13,
418,
12920,
11759,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29900,
29930,
1557,
511,
14890,
309,
29898,
29896,
29889,
29945,
29930,
1557,
7240,
29896,
29892,
938,
29898,
29900,
29889,
29896,
29930,
1557,
28166,
13,
418,
1506,
11759,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29890,
29918,
1195,
29930,
1557,
511,
14890,
309,
29898,
29890,
29918,
3317,
29930,
1557,
7240,
29896,
29892,
938,
29898,
29945,
5575,
1557,
28166,
13,
418,
288,
353,
21610,
29918,
2929,
794,
29889,
29895,
29918,
2929,
29918,
29890,
29918,
2929,
29918,
29895,
29918,
273,
275,
28467,
293,
29918,
19529,
261,
29918,
29873,
5080,
29898,
13,
4706,
285,
29918,
26290,
539,
353,
285,
4299,
29918,
29895,
2423,
29889,
29888,
29918,
26290,
29889,
1272,
3285,
13,
4706,
285,
29918,
28667,
418,
353,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29889,
1272,
3285,
13,
4706,
285,
29918,
13168,
418,
353,
285,
29918,
29882,
29889,
1272,
3285,
13,
4706,
413,
29918,
7827,
268,
353,
413,
29918,
275,
28467,
293,
29930,
29895,
29918,
273,
275,
28467,
293,
29892,
13,
4706,
17971,
3986,
353,
285,
4299,
29918,
29895,
2423,
29889,
893,
29892,
13,
4706,
413,
29918,
2929,
29918,
3881,
353,
8525,
29889,
8896,
29898,
12748,
511,
13,
4706,
289,
29918,
2929,
29918,
3881,
353,
8525,
29889,
8896,
29898,
1182,
511,
13,
4706,
364,
29918,
999,
539,
353,
1583,
29889,
29878,
29918,
1287,
3101,
13,
418,
565,
29898,
29877,
29889,
21402,
580,
1125,
13,
4706,
285,
29918,
1595,
29906,
353,
285,
29918,
29882,
29889,
2378,
29898,
1272,
353,
288,
29889,
29895,
29918,
13168,
580,
29930,
29888,
29918,
29882,
29889,
1272,
3101,
13,
4706,
413,
29882,
29892,
289,
29882,
353,
288,
29889,
29895,
29918,
2929,
3285,
288,
29889,
29890,
29918,
2929,
580,
13,
4706,
1583,
29889,
4294,
29898,
13506,
353,
376,
1202,
379,
313,
29995,
29946,
29889,
29906,
29888,
29892,
1273,
29953,
29889,
29906,
29888,
5513,
29995,
29898,
15339,
29892,
289,
29882,
511,
1480,
353,
1480,
29892,
364,
29922,
29877,
29889,
29878,
3101,
13,
418,
396,
28896,
23460,
13,
418,
413,
29918,
1195,
353,
4236,
29898,
29900,
29892,
29877,
29889,
29895,
29918,
2929,
580,
29899,
29900,
29889,
29896,
29897,
13,
418,
413,
29918,
3317,
353,
288,
29889,
29895,
29918,
2929,
580,
29974,
29900,
29889,
29896,
13,
418,
289,
29918,
1195,
353,
4236,
29898,
29900,
29892,
29877,
29889,
29890,
29918,
2929,
580,
29899,
29945,
1846,
13,
418,
289,
29918,
3317,
353,
288,
29889,
29890,
29918,
2929,
580,
29974,
29945,
29889,
13,
418,
12920,
11759,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29895,
29918,
1195,
29930,
1557,
511,
625,
309,
29898,
29895,
29918,
3317,
29930,
1557,
7240,
29896,
29892,
524,
29898,
29900,
29889,
29900,
29896,
29930,
1557,
28166,
13,
418,
1506,
11759,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29890,
29918,
1195,
29930,
1557,
511,
625,
309,
29898,
29890,
29918,
3317,
29930,
1557,
7240,
29896,
29892,
524,
29898,
29896,
5575,
1557,
28166,
13,
418,
288,
353,
21610,
29918,
2929,
794,
29889,
29895,
29918,
2929,
29918,
29890,
29918,
2929,
29918,
29895,
29918,
273,
275,
28467,
293,
29918,
19529,
261,
29918,
29873,
5080,
29898,
13,
4706,
285,
29918,
26290,
539,
353,
285,
4299,
29918,
29895,
2423,
29889,
29888,
29918,
26290,
29889,
1272,
3285,
13,
4706,
285,
29918,
28667,
418,
353,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29889,
1272,
3285,
13,
4706,
285,
29918,
13168,
418,
353,
285,
29918,
29882,
29889,
1272,
3285,
13,
4706,
413,
29918,
7827,
268,
353,
413,
29918,
275,
28467,
293,
29930,
29895,
29918,
273,
275,
28467,
293,
29892,
13,
4706,
17971,
3986,
353,
285,
4299,
29918,
29895,
2423,
29889,
893,
29892,
13,
4706,
413,
29918,
2929,
29918,
3881,
353,
8525,
29889,
8896,
29898,
12748,
511,
13,
4706,
289,
29918,
2929,
29918,
3881,
353,
8525,
29889,
8896,
29898,
1182,
511,
13,
4706,
364,
29918,
999,
539,
353,
288,
29889,
29878,
3101,
13,
418,
565,
29898,
29877,
29889,
21402,
580,
1125,
13,
4706,
285,
29918,
1595,
29906,
353,
285,
29918,
29882,
29889,
2378,
29898,
1272,
353,
288,
29889,
29895,
29918,
13168,
580,
29930,
29888,
29918,
29882,
29889,
1272,
3101,
13,
4706,
413,
29882,
29892,
289,
29882,
353,
288,
29889,
29895,
29918,
2929,
3285,
288,
29889,
29890,
29918,
2929,
580,
13,
4706,
1583,
29889,
4294,
29898,
13506,
353,
376,
1202,
379,
313,
29995,
29946,
29889,
29906,
29888,
29892,
1273,
29953,
29889,
29906,
29888,
5513,
29995,
29898,
15339,
29892,
289,
29882,
511,
1480,
353,
1480,
29892,
364,
29922,
29877,
29889,
29878,
3101,
13,
418,
396,
3446,
3235,
379,
6670,
7024,
565,
5172,
29922,
3009,
338,
1304,
29892,
1074,
920,
372,
1736,
297,
16832,
13,
418,
396,
13,
418,
565,
29898,
11255,
1125,
13,
4706,
285,
4299,
29918,
29895,
2423,
29918,
353,
286,
4378,
29890,
29916,
29889,
29888,
29918,
4299,
29889,
12847,
29918,
29895,
2423,
29898,
13,
3986,
285,
29918,
26290,
259,
353,
1583,
29889,
29888,
29918,
26290,
3285,
13,
3986,
285,
29918,
28667,
29871,
353,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29892,
13,
3986,
285,
29918,
13168,
29879,
353,
518,
29888,
29918,
1595,
29906,
1402,
13,
3986,
17971,
418,
353,
1583,
29889,
893,
29897,
13,
4706,
1121,
353,
286,
4378,
29890,
29916,
29889,
8645,
29895,
29918,
2929,
794,
29889,
19529,
261,
29889,
3389,
29918,
12857,
29898,
13,
3986,
285,
4299,
29918,
29895,
2423,
268,
353,
285,
4299,
29918,
29895,
2423,
3383,
13,
3986,
364,
29918,
9021,
29918,
15764,
259,
353,
1583,
29889,
29878,
29918,
9021,
29918,
15764,
3285,
13,
3986,
21610,
29918,
2929,
794,
259,
353,
8636,
29889,
8645,
29895,
29918,
2929,
794,
29892,
13,
3986,
385,
10718,
29918,
7052,
1678,
353,
8636,
29889,
273,
275,
28467,
293,
29918,
19529,
292,
29892,
13,
3986,
9016,
29918,
344,
5942,
353,
1583,
29889,
2109,
29918,
344,
5942,
29897,
13,
4706,
285,
29918,
1595,
29906,
353,
285,
29918,
1595,
29906,
29889,
2378,
29898,
1272,
353,
1121,
29889,
3221,
29889,
29895,
29918,
13168,
580,
29930,
29888,
29918,
1595,
29906,
29889,
1272,
3101,
13,
4706,
413,
29918,
275,
28467,
293,
259,
353,
1121,
29889,
3221,
29889,
29895,
29918,
275,
28467,
293,
29930,
2914,
29889,
3221,
29889,
29895,
29918,
275,
28467,
293,
29918,
4548,
13,
4706,
413,
29918,
273,
275,
28467,
293,
353,
1121,
29889,
3221,
29889,
29895,
29918,
273,
275,
28467,
293,
13,
418,
396,
10318,
1583,
411,
2186,
23431,
13,
418,
1583,
29889,
5504,
29918,
3221,
29898,
13,
4706,
413,
29918,
13168,
4706,
353,
413,
29918,
13168,
29879,
29892,
13,
4706,
413,
29918,
273,
275,
28467,
293,
353,
413,
29918,
273,
275,
28467,
293,
29892,
13,
4706,
413,
29918,
275,
28467,
293,
259,
353,
413,
29918,
275,
28467,
293,
29892,
13,
4706,
285,
29918,
1595,
29906,
539,
353,
285,
29918,
1595,
29906,
29897,
13,
418,
396,
8561,
1854,
825,
2996,
714,
310,
21640,
7087,
825,
1583,
22405,
372,
2289,
338,
13,
418,
396,
739,
1818,
1993,
472,
3203,
701,
304,
29871,
29896,
29889,
29872,
29899,
29953,
29889,
13,
418,
1583,
29889,
4294,
29898,
13506,
353,
376,
1202,
379,
313,
29995,
29946,
29889,
29906,
29888,
29892,
1273,
29953,
29889,
29906,
29888,
5513,
29995,
29898,
15339,
29892,
289,
29882,
511,
1480,
353,
1480,
29897,
13,
418,
565,
29898,
11255,
1125,
13,
4706,
4974,
2134,
29916,
29918,
11745,
29898,
2914,
29889,
29878,
29918,
1287,
3285,
1583,
29889,
29878,
29918,
1287,
3285,
29871,
29896,
29889,
29872,
29899,
29946,
29897,
13,
418,
1683,
29901,
13,
4706,
4974,
2134,
29916,
29918,
11745,
29898,
1311,
29889,
29878,
29918,
497,
3285,
288,
29889,
29878,
25739,
518,
1311,
29889,
29878,
29918,
497,
3285,
288,
29889,
29878,
580,
29962,
13,
1678,
736,
2318,
29918,
5085,
29898,
13,
418,
413,
29918,
2929,
29871,
353,
413,
29918,
2929,
29892,
13,
418,
289,
29918,
2929,
29871,
353,
289,
29918,
2929,
29892,
13,
418,
289,
29918,
13823,
353,
289,
29918,
13823,
29892,
13,
418,
413,
29918,
29882,
1678,
353,
413,
29882,
29892,
13,
418,
289,
29918,
29882,
1678,
353,
289,
29882,
29892,
13,
418,
289,
29918,
26859,
29871,
353,
289,
29918,
26859,
29897,
13,
13,
29871,
822,
2767,
29918,
2929,
794,
29918,
392,
29918,
7052,
29918,
29873,
5080,
29898,
1311,
29892,
2143,
457,
29918,
16440,
29918,
1557,
2620,
292,
29892,
1480,
1125,
13,
1678,
565,
29898,
1333,
1583,
29889,
7516,
27464,
580,
1125,
736,
13,
1678,
4974,
7431,
29898,
1311,
29889,
29888,
29918,
13168,
29879,
3101,
1275,
29871,
29896,
13,
1678,
396,
830,
29899,
842,
599,
23431,
304,
5190,
470,
5225,
13,
1678,
1583,
29889,
4294,
29898,
13506,
353,
376,
5504,
23431,
3252,
262,
1369,
613,
1480,
353,
1480,
29897,
13,
1678,
1583,
29889,
12071,
29918,
497,
29918,
19529,
267,
580,
13,
1678,
1583,
29889,
4294,
29898,
13506,
353,
376,
12071,
285,
29918,
1595,
29892,
413,
23538,
7827,
29892,
13168,
19123,
1480,
353,
1480,
29897,
13,
1678,
285,
29918,
28667,
29918,
1272,
418,
353,
1583,
29889,
29888,
29918,
28667,
2141,
1272,
580,
13,
1678,
285,
29918,
28667,
29918,
1272,
29918,
29873,
5080,
353,
1583,
29889,
29888,
29918,
28667,
29918,
29873,
5080,
2141,
1272,
580,
13,
1678,
396,
17250,
14260,
731,
13,
1678,
885,
353,
29871,
29896,
29900,
29900,
29900,
29889,
13,
1678,
413,
21935,
353,
518,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29900,
29930,
1557,
511,
14890,
309,
29898,
29900,
29889,
29953,
29930,
1557,
7240,
29896,
29892,
29871,
938,
29898,
29900,
29889,
29900,
29945,
29930,
1557,
28166,
13,
1678,
289,
21935,
353,
518,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29900,
29930,
1557,
511,
14890,
309,
29898,
29896,
29945,
29900,
5575,
1557,
7240,
29896,
29892,
938,
29898,
29896,
29900,
5575,
1557,
28166,
13,
1678,
288,
29918,
29895,
2423,
29918,
2929,
353,
21610,
29918,
2929,
794,
29889,
29895,
29918,
2929,
29918,
29890,
29918,
2929,
29918,
29895,
29918,
273,
275,
28467,
293,
29918,
19529,
261,
29918,
29873,
5080,
29898,
13,
418,
285,
29918,
26290,
3986,
353,
1583,
29889,
29888,
29918,
26290,
2141,
1272,
3285,
13,
418,
285,
29918,
28667,
29918,
29896,
539,
353,
285,
29918,
28667,
29918,
1272,
29892,
13,
418,
285,
29918,
28667,
29918,
29906,
539,
353,
285,
29918,
28667,
29918,
1272,
29918,
29873,
5080,
29892,
13,
418,
285,
29918,
13168,
29918,
29896,
539,
353,
1583,
29889,
2378,
29879,
29889,
3221,
29889,
29888,
29918,
13168,
29879,
29961,
29900,
1822,
1272,
3285,
13,
418,
285,
29918,
13168,
29918,
29906,
539,
353,
1583,
29889,
2378,
29879,
29889,
3221,
29918,
29873,
5080,
29889,
29888,
29918,
13168,
29879,
29961,
29900,
1822,
1272,
3285,
13,
418,
17971,
632,
353,
1583,
29889,
893,
29892,
13,
418,
3252,
262,
29918,
29888,
13857,
29871,
353,
1583,
29889,
29873,
5080,
29918,
29888,
13857,
29892,
13,
418,
413,
29918,
2929,
29918,
3881,
1678,
353,
8525,
29889,
8896,
29898,
2039,
29878,
511,
13,
418,
289,
29918,
2929,
29918,
3881,
1678,
353,
8525,
29889,
8896,
29898,
5824,
29878,
511,
13,
418,
3533,
261,
29918,
513,
1575,
353,
1583,
29889,
29888,
29918,
26290,
2141,
513,
1575,
3285,
396,
22791,
1577,
8773,
1724,
1048,
3252,
262,
29899,
12817,
29973,
13,
418,
5190,
29918,
3729,
418,
353,
1583,
29889,
29888,
29918,
26290,
2141,
5441,
29918,
3729,
3285,
13,
418,
364,
29918,
999,
3986,
353,
1583,
29889,
29878,
29918,
497,
3101,
13,
1678,
565,
29898,
29877,
29918,
29895,
2423,
29918,
2929,
29889,
21402,
580,
1125,
13,
418,
1583,
29889,
5504,
29898,
13,
4706,
413,
29918,
13168,
4706,
353,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29895,
29918,
13168,
3285,
13,
4706,
413,
29918,
273,
275,
28467,
293,
353,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29895,
29918,
273,
275,
28467,
293,
3101,
13,
1678,
396,
6440,
313,
4951,
261,
29897,
14260,
731,
13,
1678,
413,
29918,
1195,
353,
4236,
29898,
29877,
29918,
29895,
2423,
29918,
2929,
29889,
29895,
29918,
2929,
580,
29899,
29900,
29889,
29900,
29945,
29892,
29871,
29900,
29897,
13,
1678,
413,
29918,
3317,
353,
1375,
29898,
29877,
29918,
29895,
2423,
29918,
2929,
29889,
29895,
29918,
2929,
580,
29974,
29900,
29889,
29900,
29945,
29892,
29871,
29900,
29889,
29953,
29897,
13,
1678,
413,
21935,
353,
518,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29895,
29918,
1195,
29930,
1557,
511,
14890,
309,
29898,
29895,
29918,
3317,
29930,
1557,
7240,
29896,
29892,
938,
29898,
29900,
29889,
29900,
29896,
29930,
1557,
28166,
13,
1678,
289,
29918,
1195,
353,
4236,
29898,
29877,
29918,
29895,
2423,
29918,
2929,
29889,
29890,
29918,
2929,
580,
29899,
29896,
29900,
29892,
29871,
29900,
29897,
13,
1678,
289,
29918,
3317,
353,
1375,
29898,
29877,
29918,
29895,
2423,
29918,
2929,
29889,
29890,
29918,
2929,
580,
29974,
29896,
29900,
29892,
29871,
29896,
29945,
29900,
29897,
13,
1678,
289,
21935,
353,
518,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29890,
29918,
1195,
29930,
1557,
511,
14890,
309,
29898,
29890,
29918,
3317,
29930,
1557,
7240,
29896,
29892,
938,
29898,
29896,
5575,
1557,
28166,
13,
1678,
288,
29918,
29895,
2423,
29918,
2929,
353,
21610,
29918,
2929,
794,
29889,
29895,
29918,
2929,
29918,
29890,
29918,
2929,
29918,
29895,
29918,
273,
275,
28467,
293,
29918,
19529,
261,
29918,
29873,
5080,
29898,
13,
418,
285,
29918,
26290,
3986,
353,
1583,
29889,
29888,
29918,
26290,
2141,
1272,
3285,
13,
418,
285,
29918,
28667,
29918,
29896,
539,
353,
285,
29918,
28667,
29918,
1272,
29892,
13,
418,
285,
29918,
28667,
29918,
29906,
539,
353,
285,
29918,
28667,
29918,
1272,
29918,
29873,
5080,
29892,
13,
418,
285,
29918,
13168,
29918,
29896,
539,
353,
1583,
29889,
2378,
29879,
29889,
3221,
29889,
29888,
29918,
13168,
29879,
29961,
29900,
1822,
1272,
3285,
13,
418,
285,
29918,
13168,
29918,
29906,
539,
353,
1583,
29889,
2378,
29879,
29889,
3221,
29918,
29873,
5080,
29889,
29888,
29918,
13168,
29879,
29961,
29900,
1822,
1272,
3285,
13,
418,
17971,
632,
353,
1583,
29889,
893,
29892,
13,
418,
3252,
262,
29918,
29888,
13857,
29871,
353,
1583,
29889,
29873,
5080,
29918,
29888,
13857,
29892,
13,
418,
413,
29918,
2929,
29918,
3881,
1678,
353,
8525,
29889,
8896,
29898,
2039,
29878,
511,
13,
418,
289,
29918,
2929,
29918,
3881,
1678,
353,
8525,
29889,
8896,
29898,
5824,
29878,
511,
13,
418,
3533,
261,
29918,
513,
1575,
353,
1583,
29889,
29888,
29918,
26290,
2141,
513,
1575,
3285,
396,
22791,
1577,
8773,
1724,
1048,
3252,
262,
29899,
12817,
29973,
13,
418,
5190,
29918,
3729,
418,
353,
1583,
29889,
29888,
29918,
26290,
2141,
5441,
29918,
3729,
3285,
13,
418,
364,
29918,
999,
3986,
353,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29878,
3101,
13,
1678,
565,
29898,
29877,
29918,
29895,
2423,
29918,
2929,
29889,
21402,
580,
1125,
13,
418,
1583,
29889,
5504,
29898,
13,
4706,
413,
29918,
13168,
4706,
353,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29895,
29918,
13168,
3285,
13,
4706,
413,
29918,
273,
275,
28467,
293,
353,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29895,
29918,
273,
275,
28467,
293,
3101,
13,
418,
396,
3295,
519,
2861,
304,
10812,
4418,
1973,
29889,
8364,
1711,
896,
881,
2337,
1993,
29889,
1205,
13,
418,
396,
1951,
1422,
6745,
1475,
526,
1304,
21577,
22941,
276,
4110,
526,
1950,
29889,
13,
418,
396,
2823,
6455,
297,
584,
847,
1212,
29914,
1648,
18050,
29914,
12240,
29896,
29914,
2142,
265,
457,
29914,
1287,
29914,
6152,
29879,
29914,
29873,
5080,
29918,
999,
262,
882,
13,
418,
396,
9294,
2134,
29916,
29918,
11745,
29898,
1311,
29889,
29878,
29918,
497,
3285,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29878,
3285,
29871,
29896,
29889,
29872,
29899,
29945,
29897,
13,
418,
835,
7346,
2277,
29937,
13,
418,
396,
671,
3394,
29918,
1627,
29918,
15003,
297,
565,
2400,
13,
418,
565,
29898,
1311,
29889,
29916,
764,
29918,
23905,
338,
451,
6213,
1125,
13,
4706,
288,
353,
286,
4378,
29890,
29916,
29889,
8645,
29895,
29918,
2929,
794,
29889,
19529,
261,
29889,
7050,
29898,
13,
3986,
921,
764,
29918,
23905,
353,
1583,
29889,
29916,
764,
29918,
23905,
29892,
13,
3986,
413,
29918,
273,
275,
28467,
293,
29871,
353,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29895,
29918,
273,
275,
28467,
293,
3285,
13,
3986,
413,
29918,
13168,
29879,
4706,
353,
518,
29877,
29918,
29895,
2423,
29918,
2929,
29889,
29895,
29918,
13168,
580,
1402,
13,
3986,
17971,
632,
353,
1583,
29889,
893,
29897,
13,
4706,
1583,
29889,
5504,
29918,
29916,
764,
29918,
23905,
29898,
13,
3986,
921,
764,
29918,
23905,
353,
288,
29889,
29916,
764,
29918,
23905,
29892,
13,
3986,
2767,
29918,
29888,
29918,
28667,
29871,
353,
5852,
29897,
13,
418,
835,
7346,
2277,
13,
4706,
1583,
29889,
5504,
29898,
13,
3986,
413,
29918,
13168,
4706,
353,
288,
29889,
29895,
29918,
13168,
29879,
29892,
13,
3986,
413,
29918,
273,
275,
28467,
293,
353,
288,
29889,
29895,
29918,
273,
275,
28467,
293,
29897,
13,
13,
1678,
1583,
29889,
4294,
29898,
13506,
353,
376,
8645,
29895,
29899,
2929,
794,
322,
21640,
613,
1480,
353,
1480,
29897,
13,
1678,
396,
13,
1678,
396,
3462,
11896,
515,
379,
313,
361,
2198,
322,
364,
4821,
467,
910,
5771,
304,
285,
29918,
1595,
29906,
29889,
13,
1678,
396,
13,
1678,
413,
29882,
29892,
289,
29882,
353,
29871,
29900,
29892,
29871,
29900,
13,
1678,
565,
29898,
999,
457,
29918,
16440,
29918,
1557,
2620,
292,
322,
13,
539,
1583,
29889,
26180,
29918,
517,
29918,
999,
457,
29918,
16440,
29918,
1557,
2620,
292,
29918,
1285,
3224,
580,
1125,
13,
418,
298,
29881,
29918,
21731,
353,
1583,
29889,
29916,
764,
29918,
23905,
29889,
16440,
29918,
21731,
580,
13,
418,
921,
2288,
29918,
1217,
29918,
29882,
353,
1583,
29889,
29916,
764,
29918,
23905,
29889,
2622,
29898,
30022,
16440,
29918,
21731,
29897,
13,
418,
921,
2288,
29918,
29882,
1678,
353,
1583,
29889,
29916,
764,
29918,
23905,
29889,
2622,
29898,
16440,
29918,
21731,
29897,
13,
418,
396,
4831,
398,
5987,
599,
11105,
20706,
29901,
383,
28667,
29918,
271,
4835,
29974,
29943,
8645,
29895,
29918,
29896,
29974,
856,
29974,
29943,
8645,
29895,
29918,
29940,
13,
418,
848,
353,
1583,
29889,
29888,
29918,
28667,
2141,
1272,
580,
29974,
1311,
29889,
29888,
29918,
13168,
29879,
580,
29961,
29900,
1822,
1272,
580,
29930,
1311,
29889,
29895,
29918,
13168,
29879,
580,
29961,
29900,
29962,
13,
418,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
353,
1583,
29889,
29888,
29918,
28667,
2141,
2378,
29898,
1272,
353,
848,
29897,
13,
418,
848,
353,
1583,
29889,
29888,
29918,
28667,
29918,
29873,
5080,
2141,
1272,
580,
3124,
13,
4706,
1583,
29889,
29888,
29918,
13168,
29879,
29918,
29873,
5080,
580,
29961,
29900,
1822,
1272,
580,
29930,
1311,
29889,
29895,
29918,
13168,
29879,
29918,
29873,
5080,
580,
29961,
29900,
29962,
13,
418,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29918,
29873,
5080,
353,
1583,
29889,
29888,
29918,
28667,
29918,
29873,
5080,
2141,
2378,
29898,
1272,
353,
848,
29897,
13,
418,
396,
17250,
383,
29950,
11896,
13,
418,
921,
2288,
29918,
29882,
353,
921,
2288,
29918,
29882,
29889,
842,
29918,
16770,
273,
2478,
29898,
1767,
29922,
29896,
467,
842,
29918,
29890,
29918,
10718,
29898,
1767,
353,
29871,
29900,
29897,
13,
418,
285,
29918,
29882,
353,
1583,
29889,
26017,
29918,
29888,
29918,
28667,
29898,
29916,
764,
29918,
23905,
353,
921,
2288,
29918,
29882,
29897,
13,
418,
285,
29918,
29882,
29918,
29873,
5080,
353,
1583,
29889,
26017,
29918,
29888,
29918,
28667,
29898,
29916,
764,
29918,
23905,
353,
921,
2288,
29918,
29882,
29892,
13,
4706,
3533,
261,
29918,
2378,
353,
1583,
29889,
29888,
29918,
28667,
29918,
29873,
5080,
3101,
13,
418,
396,
3189,
7989,
23460,
13,
418,
289,
29918,
12676,
353,
8525,
29889,
12676,
29898,
29916,
2288,
29918,
1217,
29918,
29882,
29889,
21111,
29918,
29884,
29918,
10718,
29918,
272,
29918,
29884,
29918,
9402,
3101,
29930,
328,
415,
29890,
29916,
29889,
29884,
29918,
294,
29918,
29890,
29898,
29896,
1846,
13,
418,
289,
29918,
1195,
353,
938,
29898,
3317,
29898,
29900,
29892,
29890,
29918,
12676,
11877,
29900,
29889,
29945,
29897,
13,
418,
289,
29918,
3317,
353,
938,
29898,
29890,
29918,
12676,
29930,
29896,
29889,
29945,
29897,
13,
418,
885,
353,
29871,
29896,
29900,
29900,
29900,
29889,
13,
418,
12920,
11759,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29900,
29930,
1557,
511,
14890,
309,
29898,
29896,
29889,
29945,
29930,
1557,
7240,
29896,
29892,
938,
29898,
29900,
29889,
29896,
29930,
1557,
28166,
13,
418,
1506,
11759,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29890,
29918,
1195,
29930,
1557,
511,
14890,
309,
29898,
29890,
29918,
3317,
29930,
1557,
7240,
29896,
29892,
938,
29898,
29945,
5575,
1557,
28166,
13,
418,
5446,
353,
21610,
29918,
2929,
794,
29889,
29895,
29918,
2929,
29918,
29890,
29918,
2929,
29918,
29895,
29918,
273,
275,
28467,
293,
29918,
19529,
261,
29918,
29873,
5080,
29898,
13,
4706,
285,
29918,
26290,
3986,
353,
1583,
29889,
29888,
29918,
26290,
2141,
1272,
3285,
13,
4706,
285,
29918,
28667,
29918,
29896,
539,
353,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29889,
1272,
3285,
13,
4706,
285,
29918,
28667,
29918,
29906,
539,
353,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29918,
29873,
5080,
29889,
1272,
3285,
13,
4706,
285,
29918,
13168,
29918,
29896,
539,
353,
285,
29918,
29882,
29889,
1272,
3285,
13,
4706,
285,
29918,
13168,
29918,
29906,
539,
353,
285,
29918,
29882,
29918,
29873,
5080,
29889,
1272,
3285,
13,
4706,
17971,
632,
353,
1583,
29889,
893,
29892,
13,
4706,
3252,
262,
29918,
29888,
13857,
29871,
353,
1583,
29889,
29873,
5080,
29918,
29888,
13857,
29892,
13,
4706,
413,
29918,
2929,
29918,
3881,
1678,
353,
8525,
29889,
8896,
29898,
12748,
511,
13,
4706,
289,
29918,
2929,
29918,
3881,
1678,
353,
8525,
29889,
8896,
29898,
1182,
511,
13,
4706,
3533,
261,
29918,
513,
1575,
353,
1583,
29889,
29888,
29918,
26290,
2141,
513,
1575,
3285,
396,
22615,
1724,
1048,
3252,
262,
29899,
12817,
29973,
13,
4706,
5190,
29918,
3729,
418,
353,
1583,
29889,
29888,
29918,
26290,
2141,
5441,
29918,
3729,
3285,
13,
4706,
364,
29918,
999,
3986,
353,
1583,
29889,
29878,
29918,
1287,
3101,
13,
418,
565,
29898,
5415,
29889,
21402,
580,
1125,
13,
4706,
285,
29918,
1595,
29906,
418,
353,
285,
29918,
29882,
29889,
2378,
29898,
268,
848,
353,
5446,
29889,
29895,
29918,
13168,
580,
29930,
29888,
29918,
29882,
29889,
1272,
3101,
13,
4706,
285,
29918,
1595,
29906,
29918,
29873,
5080,
353,
285,
29918,
29882,
29918,
29873,
5080,
29889,
2378,
29898,
1272,
353,
5446,
29889,
29895,
29918,
13168,
580,
29930,
29888,
29918,
29882,
29918,
29873,
5080,
29889,
1272,
3101,
13,
4706,
413,
29882,
29892,
289,
29882,
353,
5446,
29889,
29895,
29918,
2929,
3285,
5446,
29889,
29890,
29918,
2929,
580,
13,
418,
396,
28896,
23460,
13,
418,
413,
29918,
1195,
353,
4236,
29898,
29900,
29892,
5415,
29889,
29895,
29918,
2929,
580,
29899,
29900,
29889,
29896,
29897,
13,
418,
413,
29918,
3317,
353,
5446,
29889,
29895,
29918,
2929,
580,
29974,
29900,
29889,
29896,
13,
418,
289,
29918,
1195,
353,
4236,
29898,
29900,
29892,
5415,
29889,
29890,
29918,
2929,
580,
29899,
29945,
1846,
13,
418,
289,
29918,
3317,
353,
5446,
29889,
29890,
29918,
2929,
580,
29974,
29945,
29889,
13,
418,
12920,
11759,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29895,
29918,
1195,
29930,
1557,
511,
625,
309,
29898,
29895,
29918,
3317,
29930,
1557,
7240,
29896,
29892,
524,
29898,
29900,
29889,
29900,
29896,
29930,
1557,
28166,
13,
418,
1506,
11759,
29875,
29914,
1557,
363,
474,
297,
3464,
29898,
361,
10102,
29898,
29890,
29918,
1195,
29930,
1557,
511,
625,
309,
29898,
29890,
29918,
3317,
29930,
1557,
7240,
29896,
29892,
524,
29898,
29945,
5575,
1557,
28166,
13,
418,
5446,
353,
21610,
29918,
2929,
794,
29889,
29895,
29918,
2929,
29918,
29890,
29918,
2929,
29918,
29895,
29918,
273,
275,
28467,
293,
29918,
19529,
261,
29918,
29873,
5080,
29898,
13,
4706,
285,
29918,
26290,
3986,
353,
1583,
29889,
29888,
29918,
26290,
2141,
1272,
3285,
13,
4706,
285,
29918,
28667,
29918,
29896,
539,
353,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29889,
1272,
3285,
13,
4706,
285,
29918,
28667,
29918,
29906,
539,
353,
285,
29918,
28667,
29918,
11242,
29918,
29888,
29918,
8645,
29895,
29918,
1217,
29918,
19529,
267,
29918,
29873,
5080,
29889,
1272,
3285,
13,
4706,
285,
29918,
13168,
29918,
29896,
539,
353,
285,
29918,
29882,
29889,
1272,
3285,
13,
4706,
285,
29918,
13168,
29918,
29906,
539,
353,
285,
29918,
29882,
29918,
29873,
5080,
29889,
1272,
3285,
13,
4706,
17971,
632,
353,
1583,
29889,
893,
29892,
13,
4706,
3252,
262,
29918,
29888,
13857,
29871,
353,
1583,
29889,
29873,
5080,
29918,
29888,
13857,
29892,
13,
4706,
413,
29918,
2929,
29918,
3881,
1678,
353,
8525,
29889,
8896,
29898,
12748,
511,
13,
4706,
289,
29918,
2929,
29918,
3881,
1678,
353,
8525,
29889,
8896,
29898,
1182,
511,
13,
4706,
3533,
261,
29918,
513,
1575,
353,
1583,
29889,
29888,
29918,
26290,
2141,
513,
1575,
3285,
396,
22615,
1724,
1048,
3252,
262,
29899,
12817,
29973,
13,
4706,
5190,
29918,
3729,
418,
353,
1583,
29889,
29888,
29918,
26290,
2141,
5441,
29918,
3729,
3285,
13,
4706,
364,
29918,
999,
3986,
353,
5446,
29889,
29878,
3101,
13,
418,
565,
29898,
5415,
29889,
21402,
580,
1125,
13,
4706,
285,
29918,
1595,
29906,
418,
353,
285,
29918,
29882,
29889,
2378,
29898,
268,
848,
353,
5446,
29889,
29895,
29918,
13168,
580,
29930,
29888,
29918,
29882,
29889,
1272,
3101,
13,
4706,
285,
29918,
1595,
29906,
29918,
29873,
5080,
353,
285,
29918,
29882,
29918,
29873,
5080,
29889,
2378,
29898,
1272,
353,
5446,
29889,
29895,
29918,
13168,
580,
29930,
29888,
29918,
29882,
29918,
29873,
5080,
29889,
1272,
3101,
13,
4706,
413,
29882,
29892,
289,
29882,
353,
5446,
29889,
29895,
29918,
2929,
3285,
5446,
29889,
29890,
29918,
2929,
580,
13,
418,
1583,
29889,
5504,
29918,
3221,
29898,
13,
4706,
285,
29918,
1595,
29906,
539,
353,
285,
29918,
1595,
29906,
29892,
13,
4706,
285,
29918,
1595,
29906,
29918,
29873,
5080,
29871,
353,
285,
29918,
1595,
29906,
29918,
29873,
5080,
29892,
13,
4706,
413,
29918,
273,
275,
28467,
293,
353,
5446,
29889,
29895,
29918,
273,
275,
28467,
293,
3101,
13,
418,
1583,
29889,
4294,
29898,
13506,
353,
376,
1202,
379,
313,
29995,
29946,
29889,
29906,
29888,
29892,
1273,
29953,
29889,
29906,
29888,
5513,
29995,
29898,
15339,
29892,
289,
29882,
511,
1480,
353,
1480,
29897,
13,
1678,
289,
29918,
13823,
353,
594,
415,
29890,
29916,
29889,
29884,
29918,
294,
29918,
29890,
29898,
328,
415,
29890,
29916,
29889,
29884,
29918,
8508,
29918,
294,
29918,
29884,
29918,
13823,
29898,
13,
462,
632,
1583,
29889,
29888,
29918,
26290,
2141,
5441,
29918,
3729,
3285,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29884,
29918,
8508,
22130,
13,
1678,
736,
2318,
29918,
5085,
29898,
13,
418,
413,
29918,
2929,
29871,
353,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29895,
29918,
2929,
3285,
13,
418,
289,
29918,
2929,
29871,
353,
288,
29918,
29895,
2423,
29918,
2929,
29889,
29890,
29918,
2929,
3285,
13,
418,
289,
29918,
13823,
353,
289,
29918,
13823,
29892,
13,
418,
413,
29918,
29882,
1678,
353,
413,
29882,
29892,
13,
418,
289,
29918,
29882,
1678,
353,
289,
29882,
29897,
13,
2
] |
codeswiftr/app_stats/apps.py | bogdan-veliscu/dev-portfolio-website | 0 | 111728 | from django.apps import AppConfig
class AppStatsConfig(AppConfig):
name = 'app_stats'
| [
1,
515,
9557,
29889,
13371,
1053,
2401,
3991,
13,
13,
13,
1990,
2401,
25060,
3991,
29898,
2052,
3991,
1125,
13,
1678,
1024,
353,
525,
932,
29918,
16202,
29915,
13,
2
] |
fbExceptionMeansSocketShutdown.py | SkyLined/mTCPIPConnection | 1 | 1609623 | import socket;
def fbExceptionMeansSocketShutdown(oException):
return (
(oException.__class__ == socket.error and oException.errno in [
0x274A # WSAESHUTDOWN
])
); | [
1,
1053,
9909,
29936,
13,
13,
1753,
285,
29890,
2451,
6816,
550,
11373,
2713,
329,
3204,
29898,
29877,
2451,
1125,
13,
29871,
736,
313,
13,
1678,
313,
29877,
2451,
17255,
1990,
1649,
1275,
9909,
29889,
2704,
322,
288,
2451,
29889,
3127,
1217,
297,
518,
13,
539,
29900,
29916,
29906,
29955,
29946,
29909,
396,
399,
8132,
2890,
29950,
2692,
3970,
16048,
13,
268,
2314,
13,
29871,
3482,
2
] |
apps/cc_cms/admin.py | FreeOurKnowledge/old_platform | 11 | 164027 | <filename>apps/cc_cms/admin.py
from django_summernote.admin import SummernoteModelAdmin
from .models import Page, ColumnsSection, Content, DynamicText
class PageAdmin(SummernoteModelAdmin):
summernote_fields = '__all__'
def register_cms(admin_site):
admin_site.register(Page, PageAdmin)
admin_site.register(ColumnsSection, PageAdmin)
admin_site.register(Content, PageAdmin)
admin_site.register(DynamicText, PageAdmin)
| [
1,
529,
9507,
29958,
13371,
29914,
617,
29918,
29883,
1516,
29914,
6406,
29889,
2272,
13,
3166,
9557,
29918,
2083,
29885,
824,
866,
29889,
6406,
1053,
6991,
29885,
824,
866,
3195,
12754,
13,
3166,
869,
9794,
1053,
9305,
29892,
12481,
29879,
13438,
29892,
10576,
29892,
27747,
1626,
13,
13,
13,
1990,
9305,
12754,
29898,
11139,
29885,
824,
866,
3195,
12754,
1125,
13,
1678,
22792,
824,
866,
29918,
9621,
353,
525,
1649,
497,
1649,
29915,
13,
13,
13,
1753,
6036,
29918,
29883,
1516,
29898,
6406,
29918,
2746,
1125,
13,
1678,
4113,
29918,
2746,
29889,
9573,
29898,
5074,
29892,
9305,
12754,
29897,
13,
1678,
4113,
29918,
2746,
29889,
9573,
29898,
14289,
13438,
29892,
9305,
12754,
29897,
13,
1678,
4113,
29918,
2746,
29889,
9573,
29898,
3916,
29892,
9305,
12754,
29897,
13,
1678,
4113,
29918,
2746,
29889,
9573,
29898,
24001,
1626,
29892,
9305,
12754,
29897,
13,
2
] |
pylib/gna/bundles/parameters_yaml_v01.py | gnafit/gna | 5 | 117794 | <gh_stars>1-10
"""Parameters_yaml v01 bundle
Based on: parameters_v03
Implements a set of parameters.
New features include:
- [v01] read data from yaml file
"""
from load import ROOT as R
from gna.bundle.bundle import *
import numpy as np
from gna import constructors as C
import yaml
class parameters_yaml_v01(TransformationBundle):
covmat, corrmat = None, None
def __init__(self, *args, **kwargs):
self._par_container = []
TransformationBundle.__init__(self, *args, **kwargs)
self.check_nidx_dim(1, 1, 'major')
self.load_data()
def load_data(self):
if not 'data' in self.cfg:
raise Exception('Should provide data file')
try:
with open(self.cfg.data, 'r') as stream:
data = self.data = yaml.load(stream, Loader=yaml.Loader)
except:
raise Exception('Unable to load input data file: '+self.cfg.data)
for name in ('values', 'names', 'mode'):
if not name in data:
raise Exception('Input file {} misses field {}'.format(self.cfg.data, name))
# if ('correlations' in data or 'uncertainties' in data) and 'covariance' in data:
# raise Exception('Conflicting fields in data: correlations/uncertainties and covariance')
for field in ('values', 'uncertainties', 'correlations'): #, 'covariance'
if field in data:
data[field] = np.asanyarray(data[field])
if 'correlations' in data:
if self.cfg.get('verbose', 0)>1:
print('Correlation matrix')
print(self.data['correlations'], )
@staticmethod
def _provides(cfg):
sepunc = cfg.get('separate_uncertainty', None)
if sepunc:
return (cfg.parameter, sepunc), ()
else:
return (cfg.parameter,), ()
def define_variables(self):
from gna.parameters import covariance_helpers as ch
self._par_container = []
separate_uncertainty = self.cfg.get('separate_uncertainty', False)
parname = self.cfg.parameter
labelfmt = self.cfg.get('label', '')
data = self.data
values = data['values']
names = data['names']
unc = data['uncertainties']
mode = data['mode']
if mode=='percent':
relunc = unc/100.
unc = values*relunc
elif mode=='relative':
relunc = unc
unc = values*relunc
elif mode=='absolute':
relunc = unc/values
else:
raise Exception('Invalid uncertainty mode: '+mode)
for it_minor in self.nidx_minor:
container = []
for it_major in self.nidx_major:
major_values, = it_major.current_values()
if not major_values in names:
raise Exception('Variable {} is not in the list'.format(major_values))
data_idx = names.index(major_values)
it=it_major+it_minor
label = it.current_format(labelfmt) if labelfmt else ''
if separate_uncertainty:
uncpar = self.reqparameter(separate_uncertainty, it, central=1.0, sigma=relunc[data_idx],
label=label+' (norm)')
par = self.reqparameter(parname, it, central=values[data_idx], fixed=True, label=label)
container.append(uncpar)
else:
par = self.reqparameter(parname, it, central=values[data_idx], sigma=unc[data_idx], label=label)
container.append(par)
if self.cfg.get("objectize"):
trans=par.transformations.value
trans.setLabel(label)
self.set_output(parname, it, trans.single())
self._par_container.append(container)
if 'correlations' in self.data:
cormat = self.data['correlations']
self._checkmatrix(cormat, container, is_correlation=True)
cormat = self.filter_matrix(cormat, container)
if cormat is not None:
ch.covariate_pars(container, cormat)
# elif 'covariance' in self.cfg:
# self._load_covariance_matrix()
def build(self):
pass
def filter_matrix(self, mat, par_container):
npars = len(par_container)
if npars==1:
# No correlations possible
return None
dim = mat.shape[0]
if npars==dim:
# no reduction needed
return mat
# Remove unnecessary rows and columns from the matrix
names = [par.name() for par in par_container]
for i, name in enumerate(reversed(self.data['names'])):
if name in names:
continue
i=dim-i-1
mat = np.delete(mat, i, 0)
mat = np.delete(mat, i, 1)
return mat
# def _load_covariance_matrix(self):
# filename = self.cfg.get('covariance', None)
# assert filename
# covmat = np.loadtxt(filename)
# if self.cfg.get('verbose', 0)>1:
# print('Load covariance matrix from %s:'%filename)
# print(covmat)
# sigma_inv=np.diag(covmat.diagonal()**-0.5)
# corrmat = np.matmul(np.matmul(sigma_inv, covmat), sigma_inv)
# if self.cfg.get('verbose', 0)>1:
# print('Compute correlation matrix from:')
# print(corrmat)
# self._checkmatrix(covmat, is_correlation=False)
# self.covmat = covmat
# self.corrmat = corrmat
# for par, sigma2 in zip(self._par_container, covmat.diagonal()):
# par.setSigma(sigma2**0.5)
# from gna.parameters import covariance_helpers as ch
# ch.covariate_pars(self._par_container, corrmat)
def _checkmatrix(self, mat, par_container, is_correlation):
if mat.shape[0]!=mat.shape[1]:
raise Exception('Non square matrix provided:', mat.shape[0], mat.shape[1])
if len(par_container)>mat.shape[0]:
raise Exception('Unable to set correlation to %i parameters with %ix%i matrix'%(len(par_container, mat.shape[0], mat.shape[1])))
mmin, mmax = mat.min(), mat.max()
if mmin<-1-1.e-12 or mmax>1.0+1.e-12:
raise Exception('Invalid min/max correlation values:', mmin, mmax)
diag = mat.diagonal()
if is_correlation:
ones = diag==1.0
if not ones.all():
raise Exception('There are values !=1 on the diagonal (d-1): ', diag[~ones]-1.0)
else:
if (diag<0).any():
raise Exception('Covariance matrix contains values below zero')
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
13,
15945,
29908,
11507,
29918,
25162,
325,
29900,
29896,
11846,
13,
29933,
1463,
373,
29901,
4128,
29918,
29894,
29900,
29941,
13,
13,
1888,
9711,
263,
731,
310,
4128,
29889,
13,
4373,
5680,
3160,
29901,
13,
1678,
448,
518,
29894,
29900,
29896,
29962,
1303,
848,
515,
343,
8807,
934,
13,
15945,
29908,
13,
13,
3166,
2254,
1053,
16641,
2891,
408,
390,
13,
3166,
330,
1056,
29889,
16718,
29889,
16718,
1053,
334,
13,
5215,
12655,
408,
7442,
13,
3166,
330,
1056,
1053,
3386,
943,
408,
315,
13,
5215,
343,
8807,
13,
13,
1990,
4128,
29918,
25162,
29918,
29894,
29900,
29896,
29898,
4300,
5404,
9534,
1125,
13,
1678,
18838,
2922,
29892,
1034,
1758,
271,
353,
6213,
29892,
6213,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
1583,
3032,
862,
29918,
7611,
353,
5159,
13,
4706,
4103,
5404,
9534,
17255,
2344,
12035,
1311,
29892,
334,
5085,
29892,
3579,
19290,
29897,
13,
13,
4706,
1583,
29889,
3198,
29918,
29876,
13140,
29918,
6229,
29898,
29896,
29892,
29871,
29896,
29892,
525,
21355,
1495,
13,
4706,
1583,
29889,
1359,
29918,
1272,
580,
13,
13,
1678,
822,
2254,
29918,
1272,
29898,
1311,
1125,
13,
4706,
565,
451,
525,
1272,
29915,
297,
1583,
29889,
16859,
29901,
13,
9651,
12020,
8960,
877,
26857,
3867,
848,
934,
1495,
13,
13,
4706,
1018,
29901,
13,
9651,
411,
1722,
29898,
1311,
29889,
16859,
29889,
1272,
29892,
525,
29878,
1495,
408,
4840,
29901,
13,
18884,
848,
353,
1583,
29889,
1272,
353,
343,
8807,
29889,
1359,
29898,
5461,
29892,
4309,
1664,
29922,
25162,
29889,
10036,
29897,
13,
4706,
5174,
29901,
13,
9651,
12020,
8960,
877,
2525,
519,
304,
2254,
1881,
848,
934,
29901,
525,
29974,
1311,
29889,
16859,
29889,
1272,
29897,
13,
13,
4706,
363,
1024,
297,
6702,
5975,
742,
525,
7039,
742,
525,
8513,
29374,
13,
9651,
565,
451,
1024,
297,
848,
29901,
13,
18884,
12020,
8960,
877,
4290,
934,
6571,
3052,
267,
1746,
6571,
4286,
4830,
29898,
1311,
29889,
16859,
29889,
1272,
29892,
1024,
876,
13,
13,
4706,
396,
565,
6702,
2616,
2674,
800,
29915,
297,
848,
470,
525,
4661,
814,
2365,
583,
29915,
297,
848,
29897,
322,
525,
24542,
279,
8837,
29915,
297,
848,
29901,
13,
9651,
396,
12020,
8960,
877,
16376,
506,
1259,
4235,
297,
848,
29901,
8855,
800,
29914,
4661,
814,
2365,
583,
322,
18838,
279,
8837,
1495,
13,
13,
4706,
363,
1746,
297,
6702,
5975,
742,
525,
4661,
814,
2365,
583,
742,
525,
2616,
2674,
800,
29374,
396,
29892,
525,
24542,
279,
8837,
29915,
13,
9651,
565,
1746,
297,
848,
29901,
13,
18884,
848,
29961,
2671,
29962,
353,
7442,
29889,
294,
1384,
2378,
29898,
1272,
29961,
2671,
2314,
13,
13,
4706,
565,
525,
2616,
2674,
800,
29915,
297,
848,
29901,
13,
9651,
565,
1583,
29889,
16859,
29889,
657,
877,
369,
15828,
742,
29871,
29900,
15410,
29896,
29901,
13,
18884,
1596,
877,
12521,
23445,
4636,
1495,
13,
18884,
1596,
29898,
1311,
29889,
1272,
1839,
2616,
2674,
800,
7464,
1723,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
903,
16123,
2247,
29898,
16859,
1125,
13,
4706,
16345,
4661,
353,
274,
16434,
29889,
657,
877,
25048,
403,
29918,
4661,
13946,
1017,
742,
6213,
29897,
13,
4706,
565,
16345,
4661,
29901,
13,
9651,
736,
313,
16859,
29889,
15501,
29892,
16345,
4661,
511,
3861,
13,
4706,
1683,
29901,
13,
9651,
736,
313,
16859,
29889,
15501,
29892,
511,
3861,
13,
13,
1678,
822,
4529,
29918,
20897,
29898,
1311,
1125,
13,
4706,
515,
330,
1056,
29889,
16744,
1053,
18838,
279,
8837,
29918,
3952,
6774,
408,
521,
13,
13,
4706,
1583,
3032,
862,
29918,
7611,
353,
5159,
13,
4706,
5004,
29918,
4661,
13946,
1017,
353,
1583,
29889,
16859,
29889,
657,
877,
25048,
403,
29918,
4661,
13946,
1017,
742,
7700,
29897,
13,
4706,
610,
978,
353,
1583,
29889,
16859,
29889,
15501,
13,
4706,
9775,
761,
4378,
353,
1583,
29889,
16859,
29889,
657,
877,
1643,
742,
27255,
13,
13,
4706,
848,
353,
1583,
29889,
1272,
13,
4706,
1819,
353,
848,
1839,
5975,
2033,
13,
4706,
2983,
353,
848,
1839,
7039,
2033,
13,
4706,
443,
29883,
353,
848,
1839,
4661,
814,
2365,
583,
2033,
13,
4706,
4464,
353,
848,
1839,
8513,
2033,
13,
4706,
565,
4464,
1360,
29915,
25376,
2396,
13,
9651,
1104,
4661,
353,
443,
29883,
29914,
29896,
29900,
29900,
29889,
13,
9651,
443,
29883,
353,
1819,
29930,
2674,
4661,
13,
4706,
25342,
4464,
1360,
29915,
22925,
2396,
13,
9651,
1104,
4661,
353,
443,
29883,
13,
9651,
443,
29883,
353,
1819,
29930,
2674,
4661,
13,
4706,
25342,
4464,
1360,
29915,
23552,
2396,
13,
9651,
1104,
4661,
353,
443,
29883,
29914,
5975,
13,
4706,
1683,
29901,
13,
9651,
12020,
8960,
877,
13919,
25812,
4464,
29901,
525,
29974,
8513,
29897,
13,
13,
4706,
363,
372,
29918,
1195,
272,
297,
1583,
29889,
29876,
13140,
29918,
1195,
272,
29901,
13,
9651,
5639,
353,
5159,
13,
13,
9651,
363,
372,
29918,
21355,
297,
1583,
29889,
29876,
13140,
29918,
21355,
29901,
13,
18884,
4655,
29918,
5975,
29892,
353,
372,
29918,
21355,
29889,
3784,
29918,
5975,
580,
13,
18884,
565,
451,
4655,
29918,
5975,
297,
2983,
29901,
13,
462,
1678,
12020,
8960,
877,
16174,
6571,
338,
451,
297,
278,
1051,
4286,
4830,
29898,
21355,
29918,
5975,
876,
13,
18884,
848,
29918,
13140,
353,
2983,
29889,
2248,
29898,
21355,
29918,
5975,
29897,
13,
13,
18884,
372,
29922,
277,
29918,
21355,
29974,
277,
29918,
1195,
272,
13,
18884,
3858,
353,
372,
29889,
3784,
29918,
4830,
29898,
8205,
761,
4378,
29897,
565,
9775,
761,
4378,
1683,
6629,
13,
13,
18884,
565,
5004,
29918,
4661,
13946,
1017,
29901,
13,
462,
1678,
443,
29883,
862,
353,
1583,
29889,
7971,
15501,
29898,
25048,
403,
29918,
4661,
13946,
1017,
29892,
372,
29892,
6555,
29922,
29896,
29889,
29900,
29892,
269,
2934,
29922,
2674,
4661,
29961,
1272,
29918,
13140,
1402,
13,
462,
462,
1669,
3858,
29922,
1643,
23097,
313,
12324,
29897,
1495,
13,
462,
1678,
610,
353,
1583,
29889,
7971,
15501,
29898,
862,
978,
29892,
372,
29892,
6555,
29922,
5975,
29961,
1272,
29918,
13140,
1402,
4343,
29922,
5574,
29892,
3858,
29922,
1643,
29897,
13,
462,
1678,
5639,
29889,
4397,
29898,
4661,
862,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
610,
353,
1583,
29889,
7971,
15501,
29898,
862,
978,
29892,
372,
29892,
6555,
29922,
5975,
29961,
1272,
29918,
13140,
1402,
269,
2934,
29922,
4661,
29961,
1272,
29918,
13140,
1402,
3858,
29922,
1643,
29897,
13,
462,
1678,
5639,
29889,
4397,
29898,
862,
29897,
13,
13,
18884,
565,
1583,
29889,
16859,
29889,
657,
703,
3318,
675,
29908,
1125,
13,
462,
1678,
1301,
29922,
862,
29889,
9067,
800,
29889,
1767,
13,
462,
1678,
1301,
29889,
842,
4775,
29898,
1643,
29897,
13,
462,
1678,
1583,
29889,
842,
29918,
4905,
29898,
862,
978,
29892,
372,
29892,
1301,
29889,
14369,
3101,
13,
13,
9651,
1583,
3032,
862,
29918,
7611,
29889,
4397,
29898,
7611,
29897,
13,
13,
9651,
565,
525,
2616,
2674,
800,
29915,
297,
1583,
29889,
1272,
29901,
13,
18884,
274,
555,
271,
353,
1583,
29889,
1272,
1839,
2616,
2674,
800,
2033,
13,
18884,
1583,
3032,
3198,
5344,
29898,
29883,
555,
271,
29892,
5639,
29892,
338,
29918,
2616,
23445,
29922,
5574,
29897,
13,
18884,
274,
555,
271,
353,
1583,
29889,
4572,
29918,
5344,
29898,
29883,
555,
271,
29892,
5639,
29897,
13,
13,
18884,
565,
274,
555,
271,
338,
451,
6213,
29901,
13,
462,
1678,
521,
29889,
24542,
1306,
403,
29918,
862,
29879,
29898,
7611,
29892,
274,
555,
271,
29897,
13,
4706,
396,
25342,
525,
24542,
279,
8837,
29915,
297,
1583,
29889,
16859,
29901,
13,
9651,
396,
1583,
3032,
1359,
29918,
24542,
279,
8837,
29918,
5344,
580,
13,
13,
1678,
822,
2048,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
822,
4175,
29918,
5344,
29898,
1311,
29892,
1775,
29892,
610,
29918,
7611,
1125,
13,
4706,
302,
862,
29879,
353,
7431,
29898,
862,
29918,
7611,
29897,
13,
4706,
565,
302,
862,
29879,
1360,
29896,
29901,
13,
9651,
396,
1939,
8855,
800,
1950,
13,
9651,
736,
6213,
13,
13,
4706,
3964,
259,
353,
1775,
29889,
12181,
29961,
29900,
29962,
13,
4706,
565,
302,
862,
29879,
1360,
6229,
29901,
13,
9651,
396,
694,
20376,
4312,
13,
9651,
736,
1775,
13,
13,
4706,
396,
15154,
19039,
4206,
322,
4341,
515,
278,
4636,
13,
4706,
2983,
353,
518,
862,
29889,
978,
580,
363,
610,
297,
610,
29918,
7611,
29962,
13,
4706,
363,
474,
29892,
1024,
297,
26985,
29898,
276,
874,
287,
29898,
1311,
29889,
1272,
1839,
7039,
2033,
22164,
13,
9651,
565,
1024,
297,
2983,
29901,
13,
18884,
6773,
13,
13,
9651,
474,
29922,
6229,
29899,
29875,
29899,
29896,
13,
9651,
1775,
353,
7442,
29889,
8143,
29898,
2922,
29892,
474,
29892,
29871,
29900,
29897,
13,
9651,
1775,
353,
7442,
29889,
8143,
29898,
2922,
29892,
474,
29892,
29871,
29896,
29897,
13,
13,
4706,
736,
1775,
13,
13,
1678,
396,
822,
903,
1359,
29918,
24542,
279,
8837,
29918,
5344,
29898,
1311,
1125,
13,
4706,
396,
10422,
353,
1583,
29889,
16859,
29889,
657,
877,
24542,
279,
8837,
742,
6213,
29897,
13,
4706,
396,
4974,
10422,
13,
13,
4706,
396,
18838,
2922,
353,
7442,
29889,
1359,
3945,
29898,
9507,
29897,
13,
4706,
396,
565,
1583,
29889,
16859,
29889,
657,
877,
369,
15828,
742,
29871,
29900,
15410,
29896,
29901,
13,
9651,
396,
1596,
877,
5896,
18838,
279,
8837,
4636,
515,
1273,
29879,
11283,
29995,
9507,
29897,
13,
9651,
396,
1596,
29898,
24542,
2922,
29897,
13,
13,
4706,
396,
269,
2934,
29918,
11569,
29922,
9302,
29889,
6051,
351,
29898,
24542,
2922,
29889,
6051,
351,
7177,
580,
1068,
29899,
29900,
29889,
29945,
29897,
13,
4706,
396,
1034,
1758,
271,
353,
7442,
29889,
2922,
16109,
29898,
9302,
29889,
2922,
16109,
29898,
3754,
29918,
11569,
29892,
18838,
2922,
511,
269,
2934,
29918,
11569,
29897,
13,
13,
4706,
396,
565,
1583,
29889,
16859,
29889,
657,
877,
369,
15828,
742,
29871,
29900,
15410,
29896,
29901,
13,
9651,
396,
1596,
877,
20606,
29872,
19869,
4636,
515,
29901,
1495,
13,
9651,
396,
1596,
29898,
2616,
1758,
271,
29897,
13,
13,
4706,
396,
1583,
3032,
3198,
5344,
29898,
24542,
2922,
29892,
338,
29918,
2616,
23445,
29922,
8824,
29897,
13,
13,
4706,
396,
1583,
29889,
24542,
2922,
353,
18838,
2922,
13,
4706,
396,
1583,
29889,
2616,
1758,
271,
353,
1034,
1758,
271,
13,
13,
4706,
396,
363,
610,
29892,
269,
2934,
29906,
297,
14319,
29898,
1311,
3032,
862,
29918,
7611,
29892,
18838,
2922,
29889,
6051,
351,
7177,
580,
1125,
13,
9651,
396,
610,
29889,
842,
10142,
29898,
3754,
29906,
1068,
29900,
29889,
29945,
29897,
13,
13,
4706,
396,
515,
330,
1056,
29889,
16744,
1053,
18838,
279,
8837,
29918,
3952,
6774,
408,
521,
13,
4706,
396,
521,
29889,
24542,
1306,
403,
29918,
862,
29879,
29898,
1311,
3032,
862,
29918,
7611,
29892,
1034,
1758,
271,
29897,
13,
13,
1678,
822,
903,
3198,
5344,
29898,
1311,
29892,
1775,
29892,
610,
29918,
7611,
29892,
338,
29918,
2616,
23445,
1125,
13,
4706,
565,
1775,
29889,
12181,
29961,
29900,
29962,
19216,
2922,
29889,
12181,
29961,
29896,
5387,
13,
9651,
12020,
8960,
877,
12283,
6862,
4636,
4944,
29901,
742,
1775,
29889,
12181,
29961,
29900,
1402,
1775,
29889,
12181,
29961,
29896,
2314,
13,
13,
4706,
565,
7431,
29898,
862,
29918,
7611,
15410,
2922,
29889,
12181,
29961,
29900,
5387,
13,
9651,
12020,
8960,
877,
2525,
519,
304,
731,
19869,
304,
1273,
29875,
4128,
411,
1273,
861,
29995,
29875,
4636,
29915,
29995,
29898,
2435,
29898,
862,
29918,
7611,
29892,
1775,
29889,
12181,
29961,
29900,
1402,
1775,
29889,
12181,
29961,
29896,
29962,
4961,
13,
13,
4706,
286,
1195,
29892,
286,
3317,
353,
1775,
29889,
1195,
3285,
1775,
29889,
3317,
580,
13,
4706,
565,
286,
1195,
16406,
29896,
29899,
29896,
29889,
29872,
29899,
29896,
29906,
470,
286,
3317,
29958,
29896,
29889,
29900,
29974,
29896,
29889,
29872,
29899,
29896,
29906,
29901,
13,
9651,
12020,
8960,
877,
13919,
1375,
29914,
3317,
19869,
1819,
29901,
742,
286,
1195,
29892,
286,
3317,
29897,
13,
13,
4706,
7936,
353,
1775,
29889,
6051,
351,
7177,
580,
13,
13,
4706,
565,
338,
29918,
2616,
23445,
29901,
13,
9651,
6743,
353,
7936,
1360,
29896,
29889,
29900,
13,
9651,
565,
451,
6743,
29889,
497,
7295,
13,
18884,
12020,
8960,
877,
8439,
526,
1819,
2804,
29896,
373,
278,
19640,
313,
29881,
29899,
29896,
1125,
13420,
7936,
29961,
30022,
2873,
29962,
29899,
29896,
29889,
29900,
29897,
13,
4706,
1683,
29901,
13,
9651,
565,
313,
6051,
351,
29966,
29900,
467,
1384,
7295,
13,
18884,
12020,
8960,
877,
29907,
586,
279,
8837,
4636,
3743,
1819,
2400,
5225,
1495,
13,
2
] |
LeetCode/HashTable/204. Count Primes.py | thehanemperor/LeetCode | 0 | 169713 | # EASY
# find all multiples less than n
# ex Input 6
# arr = [1:True, 2:True ,3:True ,4:True ,5:True ]
# start from 2, mark 2*2, 2*3, 2*4 ... False
# Time O(N^2) Space O(N)
class Solution:
def countPrimes(self, n: int) -> int:
arr = [1 for _ in range(n)]
count = 0
for i in range(2,n):
j = 2
while arr[i] and i*j < n:
arr[i*j] = 0
j += 1
for i in range(2,n):
if arr[i]:
count+= 1
return count
| [
1,
396,
382,
3289,
29979,
29871,
13,
29937,
1284,
599,
2473,
2701,
3109,
1135,
302,
29871,
13,
29937,
268,
429,
29871,
10567,
29871,
29953,
13,
29937,
632,
3948,
353,
518,
29896,
29901,
5574,
29892,
29871,
29906,
29901,
5574,
1919,
29941,
29901,
5574,
1919,
29946,
29901,
5574,
1919,
29945,
29901,
5574,
4514,
13,
29937,
632,
1369,
515,
29871,
29906,
29892,
2791,
29871,
29906,
29930,
29906,
29892,
29871,
29906,
29930,
29941,
29892,
29871,
29906,
29930,
29946,
2023,
7700,
29871,
13,
13,
29937,
5974,
438,
29898,
29940,
29985,
29906,
29897,
14121,
438,
29898,
29940,
29897,
13,
13,
13,
1990,
24380,
29901,
13,
1678,
822,
2302,
4040,
1355,
29898,
1311,
29892,
302,
29901,
938,
29897,
1599,
938,
29901,
13,
4706,
3948,
353,
518,
29896,
363,
903,
297,
3464,
29898,
29876,
4638,
13,
4706,
2302,
353,
29871,
29900,
13,
4706,
363,
474,
297,
3464,
29898,
29906,
29892,
29876,
1125,
13,
9651,
432,
353,
29871,
29906,
13,
632,
13,
9651,
1550,
3948,
29961,
29875,
29962,
322,
474,
29930,
29926,
529,
302,
29901,
13,
18884,
3948,
29961,
29875,
29930,
29926,
29962,
353,
29871,
29900,
13,
18884,
432,
4619,
29871,
29896,
13,
462,
268,
13,
4706,
363,
474,
297,
3464,
29898,
29906,
29892,
29876,
1125,
13,
9651,
565,
3948,
29961,
29875,
5387,
13,
18884,
2302,
23661,
29871,
29896,
13,
462,
13,
4706,
736,
2302,
13,
2
] |
simulation/model/blocks/order.py | fladdimir/csa-simulation-based-sc-forecast | 2 | 40082 | import logging
from casymda.blocks.entity import Entity
from simpy.core import Environment
class Order(Entity):
def __init__(self, env: Environment, name: str):
super().__init__(env, name)
self._time_of_acceptance = -1
self._initial_eta = -1
self._eta = -1
self._ready_at = -1
self._sop_at = -1
self._finished_at = -1
@property
def time_of_acceptance(self):
return self._time_of_acceptance
@time_of_acceptance.setter
def time_of_acceptance(self, value):
self._time_of_acceptance = value
update(
self.name,
"time_of_acceptance",
self._time_of_acceptance,
self.env.now,
self,
)
@property
def initial_eta(self):
return self._initial_eta
@initial_eta.setter
def initial_eta(self, value):
self._initial_eta = value
update(self.name, "initial_eta", self._initial_eta, self.env.now, self)
@property
def eta(self):
return self._eta
@eta.setter
def eta(self, value):
self._eta = value
update(self.name, "eta", self._eta, self.env.now, self)
@property
def ready_at(self):
return self._ready_at
@ready_at.setter
def ready_at(self, value):
self._ready_at = value
update(self.name, "ready_at", self._ready_at, self.env.now, self)
@property
def sop_at(self):
return self._sop_at
@sop_at.setter
def sop_at(self, value):
self._sop_at = value
update(self.name, "sop_at", self._sop_at, self.env.now, self)
@property
def finished_at(self):
return self._finished_at
@finished_at.setter
def finished_at(self, value):
self._finished_at = value
update(self.name, "finished_at", self._finished_at, self.env.now, self)
def update(name: str, attribute: str, value: float, t: float, order: Order):
# (replaced by actual callback during emulation initialization)
logging.info(
f"order update - name: {name}, attribute: {attribute}, value: {value}, t: {t}"
)
| [
1,
1053,
12183,
13,
13,
3166,
3209,
962,
1388,
29889,
1271,
29879,
29889,
10041,
1053,
14945,
13,
3166,
1027,
2272,
29889,
3221,
1053,
16738,
13,
13,
13,
1990,
8170,
29898,
6691,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
8829,
29901,
16738,
29892,
1024,
29901,
851,
1125,
13,
4706,
2428,
2141,
1649,
2344,
12035,
6272,
29892,
1024,
29897,
13,
13,
4706,
1583,
3032,
2230,
29918,
974,
29918,
16044,
749,
353,
448,
29896,
13,
4706,
1583,
3032,
11228,
29918,
1187,
353,
448,
29896,
13,
4706,
1583,
3032,
1187,
353,
448,
29896,
13,
4706,
1583,
3032,
2040,
29918,
271,
353,
448,
29896,
13,
4706,
1583,
3032,
29879,
459,
29918,
271,
353,
448,
29896,
13,
4706,
1583,
3032,
4951,
3276,
29918,
271,
353,
448,
29896,
13,
13,
1678,
732,
6799,
13,
1678,
822,
931,
29918,
974,
29918,
16044,
749,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
2230,
29918,
974,
29918,
16044,
749,
13,
13,
1678,
732,
2230,
29918,
974,
29918,
16044,
749,
29889,
842,
357,
13,
1678,
822,
931,
29918,
974,
29918,
16044,
749,
29898,
1311,
29892,
995,
1125,
13,
4706,
1583,
3032,
2230,
29918,
974,
29918,
16044,
749,
353,
995,
13,
4706,
2767,
29898,
13,
9651,
1583,
29889,
978,
29892,
13,
9651,
376,
2230,
29918,
974,
29918,
16044,
749,
613,
13,
9651,
1583,
3032,
2230,
29918,
974,
29918,
16044,
749,
29892,
13,
9651,
1583,
29889,
6272,
29889,
3707,
29892,
13,
9651,
1583,
29892,
13,
4706,
1723,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2847,
29918,
1187,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
11228,
29918,
1187,
13,
13,
1678,
732,
11228,
29918,
1187,
29889,
842,
357,
13,
1678,
822,
2847,
29918,
1187,
29898,
1311,
29892,
995,
1125,
13,
4706,
1583,
3032,
11228,
29918,
1187,
353,
995,
13,
4706,
2767,
29898,
1311,
29889,
978,
29892,
376,
11228,
29918,
1187,
613,
1583,
3032,
11228,
29918,
1187,
29892,
1583,
29889,
6272,
29889,
3707,
29892,
1583,
29897,
13,
13,
1678,
732,
6799,
13,
1678,
822,
634,
29874,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
1187,
13,
13,
1678,
732,
1187,
29889,
842,
357,
13,
1678,
822,
634,
29874,
29898,
1311,
29892,
995,
1125,
13,
4706,
1583,
3032,
1187,
353,
995,
13,
4706,
2767,
29898,
1311,
29889,
978,
29892,
376,
1187,
613,
1583,
3032,
1187,
29892,
1583,
29889,
6272,
29889,
3707,
29892,
1583,
29897,
13,
13,
1678,
732,
6799,
13,
1678,
822,
7960,
29918,
271,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
2040,
29918,
271,
13,
13,
1678,
732,
2040,
29918,
271,
29889,
842,
357,
13,
1678,
822,
7960,
29918,
271,
29898,
1311,
29892,
995,
1125,
13,
4706,
1583,
3032,
2040,
29918,
271,
353,
995,
13,
4706,
2767,
29898,
1311,
29889,
978,
29892,
376,
2040,
29918,
271,
613,
1583,
3032,
2040,
29918,
271,
29892,
1583,
29889,
6272,
29889,
3707,
29892,
1583,
29897,
13,
13,
1678,
732,
6799,
13,
1678,
822,
12103,
29918,
271,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
29879,
459,
29918,
271,
13,
13,
1678,
732,
29879,
459,
29918,
271,
29889,
842,
357,
13,
1678,
822,
12103,
29918,
271,
29898,
1311,
29892,
995,
1125,
13,
4706,
1583,
3032,
29879,
459,
29918,
271,
353,
995,
13,
4706,
2767,
29898,
1311,
29889,
978,
29892,
376,
29879,
459,
29918,
271,
613,
1583,
3032,
29879,
459,
29918,
271,
29892,
1583,
29889,
6272,
29889,
3707,
29892,
1583,
29897,
13,
13,
1678,
732,
6799,
13,
1678,
822,
7743,
29918,
271,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
4951,
3276,
29918,
271,
13,
13,
1678,
732,
4951,
3276,
29918,
271,
29889,
842,
357,
13,
1678,
822,
7743,
29918,
271,
29898,
1311,
29892,
995,
1125,
13,
4706,
1583,
3032,
4951,
3276,
29918,
271,
353,
995,
13,
4706,
2767,
29898,
1311,
29889,
978,
29892,
376,
4951,
3276,
29918,
271,
613,
1583,
3032,
4951,
3276,
29918,
271,
29892,
1583,
29889,
6272,
29889,
3707,
29892,
1583,
29897,
13,
13,
13,
1753,
2767,
29898,
978,
29901,
851,
29892,
5352,
29901,
851,
29892,
995,
29901,
5785,
29892,
260,
29901,
5785,
29892,
1797,
29901,
8170,
1125,
13,
1678,
396,
313,
3445,
433,
1133,
491,
3935,
6939,
2645,
953,
2785,
17865,
29897,
13,
1678,
12183,
29889,
3888,
29898,
13,
4706,
285,
29908,
2098,
2767,
448,
1024,
29901,
426,
978,
1118,
5352,
29901,
426,
12715,
1118,
995,
29901,
426,
1767,
1118,
260,
29901,
426,
29873,
5038,
13,
1678,
1723,
13,
2
] |
main_a2c.py | WeiChengTseng/DL_final_project | 7 | 143661 | <reponame>WeiChengTseng/DL_final_project<filename>main_a2c.py
import argparse
import torch
import torch.optim as optim
import os
# from baselines.common.vec_env.subproc_vec_env import SubprocVecEnv
# from baselines.common.vec_env.vec_frame_stack import VecFrameStack
from a2c.models import AtariCNN, A2C, A2CLarge
# from a2c.envs import make_env, RenderSubprocVecEnv
from a2c.train_multi import train
from env_exp import SocTwoEnv
parser = argparse.ArgumentParser(description='A2C (Advantage Actor-Critic)')
parser.add_argument('--env_path',
type=str,
default='./env/macos/SoccerTwosFast.app',
help='path to the environment binary')
parser.add_argument('--render',
type=bool,
default=False,
help='whether to render enviroment')
parser.add_argument('--reward_shaping',
type=bool,
default=False,
help='whether to use reward shaping')
parser.add_argument('--num-workers',
type=int,
default=16,
help='number of parallel workers')
parser.add_argument('--rollout-steps',
type=int,
default=300,
help='steps per rollout')
parser.add_argument('--total-steps',
type=int,
default=int(4e7),
help='total number of steps to train for')
parser.add_argument('--lr', type=float, default=1e-3, help='learning rate')
parser.add_argument('--gamma',
type=float,
default=0.99,
help='gamma parameter for GAE')
parser.add_argument('--lambd',
type=float,
default=1.00,
help='lambda parameter for GAE')
parser.add_argument('--value_coeff',
type=float,
default=0.5,
help='value loss coeffecient')
parser.add_argument('--entropy_coeff',
type=float,
default=0.01,
help='entropy loss coeffecient')
parser.add_argument('--grad_norm_limit',
type=float,
default=40.,
help='gradient norm clipping threshold')
args = parser.parse_args()
# env_path = './env/macos/SoccerTwosFast.app'
env = SocTwoEnv(args.env_path, worker_id=0, train_mode=True, render=args.render)
os.environ["CUDA_VISIBLE_DEVICES"]="0"
device = torch.device(
"cuda:0" if torch.cuda.is_available()else "cpu")
print(device)
# policy_striker, policy_goalie = A2C(7).to(device), A2C(5).to(device)
policy_striker, policy_goalie = A2CLarge(7).to(device), A2CLarge(5).to(device)
optim_striker = optim.Adam(policy_striker.parameters(), lr=args.lr)
optim_goalie = optim.Adam(policy_goalie.parameters(), lr=args.lr)
train(args, policy_striker, policy_goalie, optim_striker, optim_goalie, env,
device, args.reward_shaping)
| [
1,
529,
276,
1112,
420,
29958,
4806,
29875,
1451,
996,
29911,
29879,
996,
29914,
19558,
29918,
8394,
29918,
4836,
29966,
9507,
29958,
3396,
29918,
29874,
29906,
29883,
29889,
2272,
13,
5215,
1852,
5510,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
20640,
408,
5994,
13,
5215,
2897,
13,
13,
29937,
515,
2362,
24210,
29889,
9435,
29889,
2003,
29918,
6272,
29889,
1491,
15439,
29918,
2003,
29918,
6272,
1053,
3323,
15439,
25987,
21745,
13,
29937,
515,
2362,
24210,
29889,
9435,
29889,
2003,
29918,
6272,
29889,
2003,
29918,
2557,
29918,
1429,
1053,
26393,
4308,
7264,
13,
13,
3166,
263,
29906,
29883,
29889,
9794,
1053,
2180,
1306,
29907,
10262,
29892,
319,
29906,
29907,
29892,
319,
29906,
6154,
279,
479,
13,
29937,
515,
263,
29906,
29883,
29889,
264,
4270,
1053,
1207,
29918,
6272,
29892,
26000,
4035,
15439,
25987,
21745,
13,
3166,
263,
29906,
29883,
29889,
14968,
29918,
9910,
1053,
7945,
13,
13,
3166,
8829,
29918,
4548,
1053,
28239,
13985,
21745,
13,
13,
16680,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
2433,
29909,
29906,
29907,
313,
3253,
29894,
8501,
319,
2801,
29899,
29907,
768,
293,
29897,
1495,
13,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
6272,
29918,
2084,
742,
13,
462,
1678,
1134,
29922,
710,
29892,
13,
462,
1678,
2322,
2433,
6904,
6272,
29914,
8628,
359,
29914,
29903,
11953,
27418,
359,
29943,
579,
29889,
932,
742,
13,
462,
1678,
1371,
2433,
2084,
304,
278,
5177,
7581,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
9482,
742,
13,
462,
1678,
1134,
29922,
11227,
29892,
13,
462,
1678,
2322,
29922,
8824,
29892,
13,
462,
1678,
1371,
2433,
1332,
1979,
304,
4050,
427,
2405,
2932,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
276,
1328,
29918,
845,
21430,
742,
13,
462,
1678,
1134,
29922,
11227,
29892,
13,
462,
1678,
2322,
29922,
8824,
29892,
13,
462,
1678,
1371,
2433,
1332,
1979,
304,
671,
20751,
528,
21430,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
1949,
29899,
1287,
414,
742,
13,
462,
1678,
1134,
29922,
524,
29892,
13,
462,
1678,
2322,
29922,
29896,
29953,
29892,
13,
462,
1678,
1371,
2433,
4537,
310,
8943,
17162,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
1245,
449,
29899,
24530,
742,
13,
462,
1678,
1134,
29922,
524,
29892,
13,
462,
1678,
2322,
29922,
29941,
29900,
29900,
29892,
13,
462,
1678,
1371,
2433,
24530,
639,
9679,
449,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
7827,
29899,
24530,
742,
13,
462,
1678,
1134,
29922,
524,
29892,
13,
462,
1678,
2322,
29922,
524,
29898,
29946,
29872,
29955,
511,
13,
462,
1678,
1371,
2433,
7827,
1353,
310,
6576,
304,
7945,
363,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
29212,
742,
1134,
29922,
7411,
29892,
2322,
29922,
29896,
29872,
29899,
29941,
29892,
1371,
2433,
21891,
6554,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
4283,
742,
13,
462,
1678,
1134,
29922,
7411,
29892,
13,
462,
1678,
2322,
29922,
29900,
29889,
29929,
29929,
29892,
13,
462,
1678,
1371,
2433,
4283,
3443,
363,
402,
16036,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
29880,
1117,
29881,
742,
13,
462,
1678,
1134,
29922,
7411,
29892,
13,
462,
1678,
2322,
29922,
29896,
29889,
29900,
29900,
29892,
13,
462,
1678,
1371,
2433,
2892,
3443,
363,
402,
16036,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
1767,
29918,
1111,
12352,
742,
13,
462,
1678,
1134,
29922,
7411,
29892,
13,
462,
1678,
2322,
29922,
29900,
29889,
29945,
29892,
13,
462,
1678,
1371,
2433,
1767,
6410,
1302,
12352,
29872,
15566,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
296,
14441,
29918,
1111,
12352,
742,
13,
462,
1678,
1134,
29922,
7411,
29892,
13,
462,
1678,
2322,
29922,
29900,
29889,
29900,
29896,
29892,
13,
462,
1678,
1371,
2433,
296,
14441,
6410,
1302,
12352,
29872,
15566,
1495,
13,
16680,
29889,
1202,
29918,
23516,
877,
489,
5105,
29918,
12324,
29918,
13400,
742,
13,
462,
1678,
1134,
29922,
7411,
29892,
13,
462,
1678,
2322,
29922,
29946,
29900,
1696,
13,
462,
1678,
1371,
2433,
24970,
6056,
9335,
3262,
16897,
1495,
13,
13,
5085,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
29937,
8829,
29918,
2084,
353,
19283,
6272,
29914,
8628,
359,
29914,
29903,
11953,
27418,
359,
29943,
579,
29889,
932,
29915,
13,
6272,
353,
28239,
13985,
21745,
29898,
5085,
29889,
6272,
29918,
2084,
29892,
15645,
29918,
333,
29922,
29900,
29892,
7945,
29918,
8513,
29922,
5574,
29892,
4050,
29922,
5085,
29889,
9482,
29897,
13,
13,
359,
29889,
21813,
3366,
29907,
29965,
7698,
29918,
28607,
8979,
1307,
29918,
2287,
29963,
2965,
2890,
3108,
543,
29900,
29908,
13,
10141,
353,
4842,
305,
29889,
10141,
29898,
13,
1678,
376,
29883,
6191,
29901,
29900,
29908,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
580,
2870,
376,
21970,
1159,
13,
2158,
29898,
10141,
29897,
13,
13,
29937,
8898,
29918,
303,
374,
3946,
29892,
8898,
29918,
28111,
347,
353,
319,
29906,
29907,
29898,
29955,
467,
517,
29898,
10141,
511,
319,
29906,
29907,
29898,
29945,
467,
517,
29898,
10141,
29897,
13,
22197,
29918,
303,
374,
3946,
29892,
8898,
29918,
28111,
347,
353,
319,
29906,
6154,
279,
479,
29898,
29955,
467,
517,
29898,
10141,
511,
319,
29906,
6154,
279,
479,
29898,
29945,
467,
517,
29898,
10141,
29897,
13,
13,
20640,
29918,
303,
374,
3946,
353,
5994,
29889,
3253,
314,
29898,
22197,
29918,
303,
374,
3946,
29889,
16744,
3285,
301,
29878,
29922,
5085,
29889,
29212,
29897,
13,
20640,
29918,
28111,
347,
353,
5994,
29889,
3253,
314,
29898,
22197,
29918,
28111,
347,
29889,
16744,
3285,
301,
29878,
29922,
5085,
29889,
29212,
29897,
13,
13,
14968,
29898,
5085,
29892,
8898,
29918,
303,
374,
3946,
29892,
8898,
29918,
28111,
347,
29892,
5994,
29918,
303,
374,
3946,
29892,
5994,
29918,
28111,
347,
29892,
8829,
29892,
13,
418,
4742,
29892,
6389,
29889,
276,
1328,
29918,
845,
21430,
29897,
13,
2
] |
code/micropython/robotling_lib/driver/lsm303.py | teuler/robotling2 | 6 | 1616475 | # ----------------------------------------------------------------------------
# lsm303.py
# Class for LSM303 accelerometer/magnetometer driver
#
# The MIT License (MIT)
# Copyright (c) 2018-19 <NAME>
# 2018-09-13, v1
# 2018-10-26, bug fix sequence of magnetometer values from I2C call is x,z,y
#
# Based on the CircuitPython driver:
# https://github.com/adafruit/Adafruit_CircuitPython_LSM303
#
# The MIT License (MIT)
# Copyright (c) 2017 <NAME> for Adafruit Industries
#
# 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 time
from micropython import const
from robotling_lib.misc.helpers import timed_function
try:
import struct
except ImportError:
import ustruct as struct
__version__ = "0.1.0.0"
CHIP_NAME = "lsm303"
CHAN_COUNT = const(1)
# pylint: disable=bad-whitespace
_ADDRESS_ACCEL = const(0x19) # (0x32 >> 1) // 0011001x
_ADDRESS_MAG = const(0x1E) # (0x3C >> 1) // 0011110x
_ID = const(0xD4) # (0b11010100)
# Accelerometer registers
_REG_ACCEL_CTRL_REG1_A = const(0x20)
_REG_ACCEL_CTRL_REG2_A = const(0x21)
_REG_ACCEL_CTRL_REG3_A = const(0x22)
_REG_ACCEL_CTRL_REG4_A = const(0x23)
_REG_ACCEL_CTRL_REG5_A = const(0x24)
_REG_ACCEL_CTRL_REG6_A = const(0x25)
_REG_ACCEL_REFERENCE_A = const(0x26)
_REG_ACCEL_STATUS_REG_A = const(0x27)
_REG_ACCEL_OUT_X_L_A = const(0x28)
_REG_ACCEL_OUT_X_H_A = const(0x29)
_REG_ACCEL_OUT_Y_L_A = const(0x2A)
_REG_ACCEL_OUT_Y_H_A = const(0x2B)
_REG_ACCEL_OUT_Z_L_A = const(0x2C)
_REG_ACCEL_OUT_Z_H_A = const(0x2D)
_REG_ACCEL_FIFO_CTRL_REG_A = const(0x2E)
_REG_ACCEL_FIFO_SRC_REG_A = const(0x2F)
_REG_ACCEL_INT1_CFG_A = const(0x30)
_REG_ACCEL_INT1_SOURCE_A = const(0x31)
_REG_ACCEL_INT1_THS_A = const(0x32)
_REG_ACCEL_INT1_DURATION_A = const(0x33)
_REG_ACCEL_INT2_CFG_A = const(0x34)
_REG_ACCEL_INT2_SOURCE_A = const(0x35)
_REG_ACCEL_INT2_THS_A = const(0x36)
_REG_ACCEL_INT2_DURATION_A = const(0x37)
_REG_ACCEL_CLICK_CFG_A = const(0x38)
_REG_ACCEL_CLICK_SRC_A = const(0x39)
_REG_ACCEL_CLICK_THS_A = const(0x3A)
_REG_ACCEL_TIME_LIMIT_A = const(0x3B)
_REG_ACCEL_TIME_LATENCY_A = const(0x3C)
_REG_ACCEL_TIME_WINDOW_A = const(0x3D)
# Magnetometer registers
_REG_MAG_CRA_REG_M = const(0x00)
_REG_MAG_CRB_REG_M = const(0x01)
_REG_MAG_MR_REG_M = const(0x02)
_REG_MAG_OUT_X_H_M = const(0x03)
_REG_MAG_OUT_X_L_M = const(0x04)
_REG_MAG_OUT_Z_H_M = const(0x05)
_REG_MAG_OUT_Z_L_M = const(0x06)
_REG_MAG_OUT_Y_H_M = const(0x07)
_REG_MAG_OUT_Y_L_M = const(0x08)
_REG_MAG_SR_REG_Mg = const(0x09)
_REG_MAG_IRA_REG_M = const(0x0A)
_REG_MAG_IRB_REG_M = const(0x0B)
_REG_MAG_IRC_REG_M = const(0x0C)
_REG_MAG_TEMP_OUT_H_M = const(0x31)
_REG_MAG_TEMP_OUT_L_M = const(0x32)
# Magnetometer gains
MAGGAIN_1_3 = const(0x20) # +/- 1.3
MAGGAIN_1_9 = const(0x40) # +/- 1.9
MAGGAIN_2_5 = const(0x60) # +/- 2.5
MAGGAIN_4_0 = const(0x80) # +/- 4.0
MAGGAIN_4_7 = const(0xA0) # +/- 4.7
MAGGAIN_5_6 = const(0xC0) # +/- 5.6
MAGGAIN_8_1 = const(0xE0) # +/- 8.1
# Magentometer rates
MAGRATE_0_7 = const(0x00) # 0.75 Hz
MAGRATE_1_5 = const(0x01) # 1.5 Hz
MAGRATE_3_0 = const(0x62) # 3.0 Hz
MAGRATE_7_5 = const(0x03) # 7.5 Hz
MAGRATE_15 = const(0x04) # 15 Hz
MAGRATE_30 = const(0x05) # 30 Hz
MAGRATE_75 = const(0x06) # 75 Hz
MAGRATE_220 = const(0x07) # 200 Hz
# Conversion constants
_LSM303ACCEL_MG_LSB = 16704.0
_GRAVITY_STANDARD = 9.80665 # Earth's gravity in m/s^2
_GAUSS_TO_MICROTESLA = 100.0 # Gauss to micro-Tesla multiplier
_GAUSS_TO_NANOTESLA = 100000.0 # Gauss to nano-Tesla multiplier
# ----------------------------------------------------------------------------
class LSM303(object):
"""Driver for LSM303 magnetometer/accelerometer."""
def __init__(self, i2c):
""" Requires already initialized I2C bus instance.
"""
self._i2c = i2c
self._isReady = False
addrList = self._i2c.deviceAddrList
if (_ADDRESS_ACCEL in addrList) and (_ADDRESS_MAG in addrList):
# Enable accelerometer and magnetometer
self._write_u8(_ADDRESS_ACCEL, _REG_ACCEL_CTRL_REG1_A, 0x27)
self._write_u8(_ADDRESS_MAG, _REG_MAG_MR_REG_M, 0x00)
# Some initial parameters
self._lsm303mag_gauss_lsb_xy = 1100.0
self._lsm303mag_gauss_lsb_z = 980.0
self._mag_gain = MAGGAIN_1_3
self._mag_rate = MAGRATE_0_7
self._isReady = True
print("[{0:>12}] {1:35} ({2}): {3}"
.format(CHIP_NAME, "Magnetometer/accelerometer", __version__,
"ok" if self._isReady else "NOT FOUND"))
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#@timed_function
@property
def raw_accelerometer(self):
""" The raw accelerometer sensor values.
A 3-tuple of X, Y, Z axis values that are 16-bit signed integers.
"""
buf = bytearray(6)
self._read_bytes(_ADDRESS_ACCEL, _REG_ACCEL_OUT_X_L_A | 0x80, buf)
return struct.unpack_from('<hhh', buf[0:6])
@property
def accelerometer(self):
""" The processed accelerometer sensor values.
A 3-tuple of X, Y, Z axis values in meters per second squared that are
signed floats.
"""
raw_accel_data = self.raw_accelerometer
return [n /_LSM303ACCEL_MG_LSB *_GRAVITY_STANDARD for n in raw_accel_data]
@property
def raw_magnetometer(self):
""" The raw magnetometer sensor values.
A 3-tuple of X, Y, Z axis values that are 16-bit signed integers.
"""
buf = bytearray(6)
self._read_bytes(_ADDRESS_MAG, _REG_MAG_OUT_X_H_M, buf)
x, z, y = struct.unpack_from('>hhh', buf[0:6])
return (x, y, z)
@property
def magnetometer(self):
""" The processed magnetometer sensor values.
A 3-tuple of X, Y, Z axis values in microteslas that are signed
floats.
"""
mag_x, mag_y, mag_z = self.raw_magnetometer
return (mag_x /self._lsm303mag_gauss_lsb_xy *_GAUSS_TO_MICROTESLA,
mag_y /self._lsm303mag_gauss_lsb_xy *_GAUSS_TO_MICROTESLA,
mag_z /self._lsm303mag_gauss_lsb_z *_GAUSS_TO_MICROTESLA)
@property
def magnetometer_nT(self):
""" The processed magnetometer sensor values.
A 3-tuple of X, Y, Z axis values in nanotesla that are signed
floats.
"""
mag_x, mag_y, mag_z = self.raw_magnetometer
return (mag_x /self._lsm303mag_gauss_lsb_xy *_GAUSS_TO_NANOTESLA,
mag_y /self._lsm303mag_gauss_lsb_xy *_GAUSS_TO_NANOTESLA,
mag_z /self._lsm303mag_gauss_lsb_z *_GAUSS_TO_NANOTESLA)
@property
def mag_gain(self):
""" The magnetometer's gain.
"""
return self._mag_gain
@mag_gain.setter
def mag_gain(self, value):
assert value in (MAGGAIN_1_3, MAGGAIN_1_9, MAGGAIN_2_5, MAGGAIN_4_0,
MAGGAIN_4_7, MAGGAIN_5_6, MAGGAIN_8_1)
self._mag_gain = value
self._write_u8(_ADDRESS_MAG, _REG_MAG_CRB_REG_M, value)
if self._mag_gain == MAGGAIN_1_3:
self._lsm303mag_gauss_lsb_xy = 1100.0
self._lsm303mag_gauss_lsb_z = 980.0
elif self._mag_gain == MAGGAIN_1_9:
self._lsm303mag_gauss_lsb_xy = 855.0
self._lsm303mag_gauss_lsb_z = 760.0
elif self._mag_gain == MAGGAIN_2_5:
self._lsm303mag_gauss_lsb_xy = 670.0
self._lsm303mag_gauss_lsb_z = 600.0
elif self._mag_gain == MAGGAIN_4_0:
self._lsm303mag_gauss_lsb_xy = 450.0
self._lsm303mag_gauss_lsb_z = 400.0
elif self._mag_gain == MAGGAIN_4_7:
self._lsm303mag_gauss_lsb_xy = 400.0
self._lsm303mag_gauss_lsb_z = 355.0
elif self._mag_gain == MAGGAIN_5_6:
self._lsm303mag_gauss_lsb_xy = 330.0
self._lsm303mag_gauss_lsb_z = 295.0
elif self._mag_gain == MAGGAIN_8_1:
self._lsm303mag_gauss_lsb_xy = 230.0
self._lsm303mag_gauss_lsb_z = 205.0
@property
def mag_rate(self):
""" The magnetometer update rate.
"""
return self._mag_rate
@mag_rate.setter
def mag_rate(self, value):
assert value in (MAGRATE_0_7, MAGRATE_1_5, MAGRATE_3_0, MAGRATE_7_5,
MAGRATE_15, MAGRATE_30, MAGRATE_75, MAGRATE_220)
self._mag_rate = value
reg_m = ((value & 0x07) << 2) & 0xff
self._write_u8(_ADDRESS_MAG, _REG_MAG_CRA_REG_M, reg_m)
@property
def is_ready(self):
return self._isReady
@property
def channel_Count(self):
return CHAN_COUNT
@property
def name(self):
return CHIP_NAME
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def _write_u8(self, i2cAddr, regAddr, val):
buf = bytearray(2)
buf[0] = regAddr & 0xff
buf[1] = val & 0xff
self._i2c.writeto(i2cAddr, buf)
def _read_bytes(self, i2cAddr, regAddr, buf):
cmd = bytearray(1)
cmd[0] = regAddr & 0xff
self._i2c.writeto(i2cAddr, cmd, False)
self._i2c.readfrom_into(i2cAddr, buf)
# ----------------------------------------------------------------------------
| [
1,
396,
448,
2683,
2683,
2683,
2683,
1378,
5634,
13,
29937,
301,
3844,
29941,
29900,
29941,
29889,
2272,
13,
29937,
4134,
363,
365,
17061,
29941,
29900,
29941,
15592,
8328,
29914,
11082,
1212,
8328,
7156,
13,
29937,
13,
29937,
450,
341,
1806,
19245,
313,
26349,
29897,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
29899,
29896,
29929,
529,
5813,
29958,
13,
29937,
29871,
29906,
29900,
29896,
29947,
29899,
29900,
29929,
29899,
29896,
29941,
29892,
325,
29896,
13,
29937,
29871,
29906,
29900,
29896,
29947,
29899,
29896,
29900,
29899,
29906,
29953,
29892,
6494,
2329,
5665,
310,
10710,
8328,
1819,
515,
306,
29906,
29907,
1246,
338,
921,
29892,
29920,
29892,
29891,
13,
29937,
13,
29937,
16564,
373,
278,
12594,
3121,
11980,
7156,
29901,
13,
29937,
2045,
597,
3292,
29889,
510,
29914,
1114,
29888,
9216,
29914,
29909,
1388,
29888,
9216,
29918,
23495,
3121,
11980,
29918,
8547,
29924,
29941,
29900,
29941,
13,
29937,
13,
29937,
450,
341,
1806,
19245,
313,
26349,
29897,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
529,
5813,
29958,
363,
23255,
29888,
9216,
12157,
2722,
13,
29937,
13,
29937,
20894,
2333,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,
263,
3509,
13,
29937,
310,
445,
7047,
322,
6942,
5106,
2066,
313,
1552,
376,
6295,
14093,
4968,
304,
5376,
13,
29937,
297,
278,
18540,
1728,
24345,
29892,
3704,
1728,
29485,
278,
10462,
13,
29937,
304,
671,
29892,
3509,
29892,
6623,
29892,
10366,
29892,
9805,
29892,
1320,
2666,
29892,
269,
803,
1947,
29892,
322,
29914,
272,
19417,
13,
29937,
14591,
310,
278,
18540,
29892,
322,
304,
14257,
12407,
304,
6029,
278,
18540,
338,
13,
29937,
15252,
3276,
304,
437,
577,
29892,
4967,
304,
278,
1494,
5855,
29901,
13,
29937,
13,
29937,
450,
2038,
3509,
1266,
8369,
322,
445,
10751,
8369,
4091,
367,
5134,
297,
13,
29937,
599,
14591,
470,
23228,
2011,
1080,
310,
278,
18540,
29889,
13,
29937,
13,
29937,
6093,
7791,
7818,
12982,
1525,
8519,
13756,
13044,
3352,
376,
3289,
8519,
613,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29979,
8079,
13764,
29979,
476,
22255,
29892,
8528,
15094,
1799,
6323,
13,
29937,
306,
3580,
5265,
3352,
29892,
2672,
6154,
15789,
4214,
350,
2692,
6058,
27848,
3352,
7495,
6093,
399,
1718,
29934,
13566,
29059,
8079,
341,
1001,
3210,
13566,
2882,
6227,
11937,
29892,
13,
29937,
383,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
5300,
405,
1164,
1177,
15860,
1177,
1692,
13780,
29889,
2672,
11698,
382,
29963,
3919,
24972,
9818,
6093,
13,
29937,
26524,
29950,
24125,
6323,
315,
4590,
29979,
22789,
3912,
379,
5607,
8032,
29903,
20700,
17705,
6181,
15842,
13764,
29979,
315,
4375,
7833,
29892,
21330,
1529,
1692,
29903,
6323,
438,
29911,
4448,
13,
29937,
17705,
2882,
6227,
11937,
29892,
12317,
2544,
4448,
2672,
13764,
319,
9838,
8079,
8707,
29911,
4717,
1783,
29892,
323,
8476,
6323,
438,
29911,
4448,
22119,
1660,
29892,
9033,
3235,
4214,
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,
13,
29937,
6093,
7791,
7818,
12982,
1525,
29889,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
5634,
13,
5215,
931,
13,
3166,
20710,
1336,
1656,
1053,
1040,
13,
3166,
19964,
1847,
29918,
1982,
29889,
29885,
10669,
29889,
3952,
6774,
1053,
5335,
287,
29918,
2220,
13,
13,
2202,
29901,
13,
29871,
1053,
2281,
13,
19499,
16032,
2392,
29901,
13,
29871,
1053,
318,
4984,
408,
2281,
13,
13,
1649,
3259,
1649,
353,
376,
29900,
29889,
29896,
29889,
29900,
29889,
29900,
29908,
13,
3210,
5690,
29918,
5813,
259,
353,
376,
3137,
29885,
29941,
29900,
29941,
29908,
13,
3210,
2190,
29918,
18736,
29871,
353,
1040,
29898,
29896,
29897,
13,
13,
29937,
282,
2904,
524,
29901,
11262,
29922,
12313,
29899,
1332,
3246,
3535,
13,
29918,
17744,
26785,
29918,
2477,
4741,
29931,
632,
353,
1040,
29898,
29900,
29916,
29896,
29929,
29897,
29871,
396,
313,
29900,
29916,
29941,
29906,
5099,
29871,
29896,
29897,
539,
849,
29871,
29900,
29900,
29896,
29896,
29900,
29900,
29896,
29916,
13,
29918,
17744,
26785,
29918,
1529,
29954,
1669,
353,
1040,
29898,
29900,
29916,
29896,
29923,
29897,
29871,
396,
313,
29900,
29916,
29941,
29907,
5099,
29871,
29896,
29897,
539,
849,
29871,
29900,
29900,
29896,
29896,
29896,
29896,
29900,
29916,
13,
29918,
1367,
462,
4706,
353,
1040,
29898,
29900,
29916,
29928,
29946,
29897,
29871,
396,
313,
29900,
29890,
29896,
29896,
29900,
29896,
29900,
29896,
29900,
29900,
29897,
13,
13,
29937,
4831,
7367,
8328,
28975,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
1783,
2241,
29918,
18166,
29896,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29906,
29900,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
1783,
2241,
29918,
18166,
29906,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29906,
29896,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
1783,
2241,
29918,
18166,
29941,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29906,
29906,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
1783,
2241,
29918,
18166,
29946,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29906,
29941,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
1783,
2241,
29918,
18166,
29945,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29906,
29946,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
1783,
2241,
29918,
18166,
29953,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29906,
29945,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
25866,
1001,
1430,
4741,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29906,
29953,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
27047,
29918,
18166,
29918,
29909,
1678,
353,
1040,
29898,
29900,
29916,
29906,
29955,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
12015,
29918,
29990,
29918,
29931,
29918,
29909,
539,
353,
1040,
29898,
29900,
29916,
29906,
29947,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
12015,
29918,
29990,
29918,
29950,
29918,
29909,
539,
353,
1040,
29898,
29900,
29916,
29906,
29929,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
12015,
29918,
29979,
29918,
29931,
29918,
29909,
539,
353,
1040,
29898,
29900,
29916,
29906,
29909,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
12015,
29918,
29979,
29918,
29950,
29918,
29909,
539,
353,
1040,
29898,
29900,
29916,
29906,
29933,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
12015,
29918,
29999,
29918,
29931,
29918,
29909,
539,
353,
1040,
29898,
29900,
29916,
29906,
29907,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
12015,
29918,
29999,
29918,
29950,
29918,
29909,
539,
353,
1040,
29898,
29900,
29916,
29906,
29928,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
3738,
5800,
29918,
1783,
2241,
29918,
18166,
29918,
29909,
353,
1040,
29898,
29900,
29916,
29906,
29923,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
3738,
5800,
29918,
29903,
10363,
29918,
18166,
29918,
29909,
29871,
353,
1040,
29898,
29900,
29916,
29906,
29943,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
10192,
29896,
29918,
9207,
29954,
29918,
29909,
418,
353,
1040,
29898,
29900,
29916,
29941,
29900,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
10192,
29896,
29918,
27839,
4741,
29918,
29909,
259,
353,
1040,
29898,
29900,
29916,
29941,
29896,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
10192,
29896,
29918,
4690,
29903,
29918,
29909,
418,
353,
1040,
29898,
29900,
29916,
29941,
29906,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
10192,
29896,
29918,
29928,
4574,
8098,
29918,
29909,
353,
1040,
29898,
29900,
29916,
29941,
29941,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
10192,
29906,
29918,
9207,
29954,
29918,
29909,
418,
353,
1040,
29898,
29900,
29916,
29941,
29946,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
10192,
29906,
29918,
27839,
4741,
29918,
29909,
259,
353,
1040,
29898,
29900,
29916,
29941,
29945,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
10192,
29906,
29918,
4690,
29903,
29918,
29909,
418,
353,
1040,
29898,
29900,
29916,
29941,
29953,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
10192,
29906,
29918,
29928,
4574,
8098,
29918,
29909,
353,
1040,
29898,
29900,
29916,
29941,
29955,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
6154,
2965,
29968,
29918,
9207,
29954,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29941,
29947,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
6154,
2965,
29968,
29918,
29903,
10363,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29941,
29929,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
6154,
2965,
29968,
29918,
4690,
29903,
29918,
29909,
268,
353,
1040,
29898,
29900,
29916,
29941,
29909,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
15307,
29918,
5265,
26349,
29918,
29909,
1678,
353,
1040,
29898,
29900,
29916,
29941,
29933,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
15307,
29918,
29931,
1299,
1430,
29907,
29979,
29918,
29909,
29871,
353,
1040,
29898,
29900,
29916,
29941,
29907,
29897,
13,
29918,
18166,
29918,
2477,
4741,
29931,
29918,
15307,
29918,
25152,
3970,
29956,
29918,
29909,
259,
353,
1040,
29898,
29900,
29916,
29941,
29928,
29897,
13,
13,
29937,
3561,
1212,
8328,
28975,
13,
29918,
18166,
29918,
1529,
29954,
29918,
29907,
4717,
29918,
18166,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29900,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
11341,
29933,
29918,
18166,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29896,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
21055,
29918,
18166,
29918,
29924,
3986,
353,
1040,
29898,
29900,
29916,
29900,
29906,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
12015,
29918,
29990,
29918,
29950,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29941,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
12015,
29918,
29990,
29918,
29931,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29946,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
12015,
29918,
29999,
29918,
29950,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29945,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
12015,
29918,
29999,
29918,
29931,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29953,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
12015,
29918,
29979,
29918,
29950,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29955,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
12015,
29918,
29979,
29918,
29931,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29947,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
14098,
29918,
18166,
29918,
29924,
29887,
308,
353,
1040,
29898,
29900,
29916,
29900,
29929,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
29902,
4717,
29918,
18166,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29909,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
8193,
29933,
29918,
18166,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29933,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
8193,
29907,
29918,
18166,
29918,
29924,
308,
353,
1040,
29898,
29900,
29916,
29900,
29907,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
4330,
3580,
29918,
12015,
29918,
29950,
29918,
29924,
418,
353,
1040,
29898,
29900,
29916,
29941,
29896,
29897,
13,
29918,
18166,
29918,
1529,
29954,
29918,
4330,
3580,
29918,
12015,
29918,
29931,
29918,
29924,
418,
353,
1040,
29898,
29900,
29916,
29941,
29906,
29897,
13,
13,
29937,
3561,
1212,
8328,
330,
2708,
13,
1529,
29954,
12739,
1177,
29918,
29896,
29918,
29941,
18884,
353,
1040,
29898,
29900,
29916,
29906,
29900,
29897,
29871,
396,
718,
24028,
29871,
29896,
29889,
29941,
13,
1529,
29954,
12739,
1177,
29918,
29896,
29918,
29929,
18884,
353,
1040,
29898,
29900,
29916,
29946,
29900,
29897,
29871,
396,
718,
24028,
29871,
29896,
29889,
29929,
13,
1529,
29954,
12739,
1177,
29918,
29906,
29918,
29945,
18884,
353,
1040,
29898,
29900,
29916,
29953,
29900,
29897,
29871,
396,
718,
24028,
29871,
29906,
29889,
29945,
13,
1529,
29954,
12739,
1177,
29918,
29946,
29918,
29900,
18884,
353,
1040,
29898,
29900,
29916,
29947,
29900,
29897,
29871,
396,
718,
24028,
29871,
29946,
29889,
29900,
13,
1529,
29954,
12739,
1177,
29918,
29946,
29918,
29955,
18884,
353,
1040,
29898,
29900,
29916,
29909,
29900,
29897,
29871,
396,
718,
24028,
29871,
29946,
29889,
29955,
13,
1529,
29954,
12739,
1177,
29918,
29945,
29918,
29953,
18884,
353,
1040,
29898,
29900,
29916,
29907,
29900,
29897,
29871,
396,
718,
24028,
29871,
29945,
29889,
29953,
13,
1529,
29954,
12739,
1177,
29918,
29947,
29918,
29896,
18884,
353,
1040,
29898,
29900,
29916,
29923,
29900,
29897,
29871,
396,
718,
24028,
29871,
29947,
29889,
29896,
13,
13,
29937,
3561,
296,
8328,
19257,
13,
1529,
14345,
3040,
29918,
29900,
29918,
29955,
18884,
353,
1040,
29898,
29900,
29916,
29900,
29900,
29897,
29871,
396,
29871,
29900,
29889,
29955,
29945,
379,
29920,
13,
1529,
14345,
3040,
29918,
29896,
29918,
29945,
18884,
353,
1040,
29898,
29900,
29916,
29900,
29896,
29897,
29871,
396,
29871,
29896,
29889,
29945,
379,
29920,
13,
1529,
14345,
3040,
29918,
29941,
29918,
29900,
18884,
353,
1040,
29898,
29900,
29916,
29953,
29906,
29897,
29871,
396,
29871,
29941,
29889,
29900,
379,
29920,
13,
1529,
14345,
3040,
29918,
29955,
29918,
29945,
18884,
353,
1040,
29898,
29900,
29916,
29900,
29941,
29897,
29871,
396,
29871,
29955,
29889,
29945,
379,
29920,
13,
1529,
14345,
3040,
29918,
29896,
29945,
462,
353,
1040,
29898,
29900,
29916,
29900,
29946,
29897,
29871,
396,
29871,
29896,
29945,
379,
29920,
13,
1529,
14345,
3040,
29918,
29941,
29900,
462,
353,
1040,
29898,
29900,
29916,
29900,
29945,
29897,
29871,
396,
29871,
29941,
29900,
379,
29920,
13,
1529,
14345,
3040,
29918,
29955,
29945,
462,
353,
1040,
29898,
29900,
29916,
29900,
29953,
29897,
29871,
396,
29871,
29955,
29945,
379,
29920,
13,
1529,
14345,
3040,
29918,
29906,
29906,
29900,
18884,
353,
1040,
29898,
29900,
29916,
29900,
29955,
29897,
29871,
396,
29871,
29906,
29900,
29900,
379,
29920,
13,
13,
29937,
1281,
3259,
17727,
13,
29918,
8547,
29924,
29941,
29900,
29941,
2477,
4741,
29931,
29918,
29924,
29954,
29918,
29931,
1744,
4706,
353,
29871,
29896,
29953,
29955,
29900,
29946,
29889,
29900,
13,
29918,
29954,
4717,
29963,
11937,
29918,
1254,
9468,
17011,
3986,
353,
29871,
29929,
29889,
29947,
29900,
29953,
29953,
29945,
418,
396,
11563,
29915,
29879,
20953,
297,
286,
29914,
29879,
29985,
29906,
13,
29918,
12739,
29965,
1799,
29918,
4986,
29918,
29924,
2965,
1672,
29911,
2890,
4375,
539,
353,
29871,
29896,
29900,
29900,
29889,
29900,
4706,
396,
402,
11214,
304,
9200,
29899,
29911,
267,
433,
6674,
4926,
13,
29918,
12739,
29965,
1799,
29918,
4986,
29918,
29940,
2190,
2891,
2890,
4375,
4706,
353,
29871,
29896,
29900,
29900,
29900,
29900,
29900,
29889,
29900,
268,
396,
402,
11214,
304,
302,
1562,
29899,
29911,
267,
433,
6674,
4926,
13,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
5634,
13,
1990,
365,
17061,
29941,
29900,
29941,
29898,
3318,
1125,
13,
29871,
9995,
12376,
363,
365,
17061,
29941,
29900,
29941,
10710,
8328,
29914,
562,
2242,
261,
8328,
1213,
15945,
13,
13,
29871,
822,
4770,
2344,
12035,
1311,
29892,
474,
29906,
29883,
1125,
13,
1678,
9995,
830,
339,
2658,
2307,
16601,
306,
29906,
29907,
3593,
2777,
29889,
13,
1678,
9995,
13,
1678,
1583,
3032,
29875,
29906,
29883,
353,
474,
29906,
29883,
13,
1678,
1583,
3032,
275,
28181,
353,
7700,
13,
13,
1678,
28915,
1293,
353,
1583,
3032,
29875,
29906,
29883,
29889,
10141,
2528,
29878,
1293,
13,
1678,
565,
9423,
17744,
26785,
29918,
2477,
4741,
29931,
297,
28915,
1293,
29897,
322,
9423,
17744,
26785,
29918,
1529,
29954,
297,
28915,
1293,
1125,
13,
418,
396,
1174,
519,
29871,
15592,
8328,
322,
10710,
8328,
13,
418,
1583,
3032,
3539,
29918,
29884,
29947,
7373,
17744,
26785,
29918,
2477,
4741,
29931,
29892,
903,
18166,
29918,
2477,
4741,
29931,
29918,
1783,
2241,
29918,
18166,
29896,
29918,
29909,
29892,
29871,
29900,
29916,
29906,
29955,
29897,
13,
418,
1583,
3032,
3539,
29918,
29884,
29947,
7373,
17744,
26785,
29918,
1529,
29954,
29892,
903,
18166,
29918,
1529,
29954,
29918,
21055,
29918,
18166,
29918,
29924,
29892,
29871,
29900,
29916,
29900,
29900,
29897,
13,
13,
418,
396,
3834,
2847,
4128,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
353,
29871,
29896,
29896,
29900,
29900,
29889,
29900,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
353,
29871,
29929,
29947,
29900,
29889,
29900,
13,
418,
1583,
3032,
11082,
29918,
29887,
475,
353,
341,
10051,
12739,
1177,
29918,
29896,
29918,
29941,
13,
418,
1583,
3032,
11082,
29918,
10492,
353,
341,
10051,
29934,
3040,
29918,
29900,
29918,
29955,
13,
418,
1583,
3032,
275,
28181,
29871,
353,
5852,
13,
13,
1678,
1596,
703,
19660,
29900,
29901,
29958,
29896,
29906,
6525,
426,
29896,
29901,
29941,
29945,
29913,
21313,
29906,
29913,
1125,
426,
29941,
5038,
13,
3986,
869,
4830,
29898,
3210,
5690,
29918,
5813,
29892,
376,
19095,
1212,
8328,
29914,
562,
2242,
261,
8328,
613,
4770,
3259,
1649,
29892,
13,
462,
29871,
376,
554,
29908,
565,
1583,
3032,
275,
28181,
1683,
376,
12256,
18322,
18783,
5783,
13,
13,
29871,
396,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
13,
29871,
396,
29992,
9346,
287,
29918,
2220,
13,
29871,
732,
6799,
13,
29871,
822,
10650,
29918,
562,
2242,
261,
8328,
29898,
1311,
1125,
13,
1678,
9995,
450,
10650,
15592,
8328,
23530,
1819,
29889,
13,
4706,
319,
29871,
29941,
29899,
23583,
310,
1060,
29892,
612,
29892,
796,
9685,
1819,
393,
526,
29871,
29896,
29953,
29899,
2966,
8794,
11920,
29889,
13,
1678,
9995,
13,
1678,
18392,
353,
7023,
2378,
29898,
29953,
29897,
13,
1678,
1583,
3032,
949,
29918,
13193,
7373,
17744,
26785,
29918,
2477,
4741,
29931,
29892,
903,
18166,
29918,
2477,
4741,
29931,
29918,
12015,
29918,
29990,
29918,
29931,
29918,
29909,
891,
29871,
29900,
29916,
29947,
29900,
29892,
18392,
29897,
13,
1678,
736,
2281,
29889,
348,
4058,
29918,
3166,
877,
29966,
25446,
29882,
742,
18392,
29961,
29900,
29901,
29953,
2314,
13,
13,
29871,
732,
6799,
13,
29871,
822,
15592,
8328,
29898,
1311,
1125,
13,
1678,
9995,
450,
19356,
15592,
8328,
23530,
1819,
29889,
13,
4706,
319,
29871,
29941,
29899,
23583,
310,
1060,
29892,
612,
29892,
796,
9685,
1819,
297,
27881,
639,
1473,
10674,
1965,
393,
526,
13,
4706,
8794,
5685,
1446,
29889,
13,
1678,
9995,
13,
1678,
10650,
29918,
562,
2242,
29918,
1272,
353,
1583,
29889,
1610,
29918,
562,
2242,
261,
8328,
13,
1678,
736,
518,
29876,
847,
29918,
8547,
29924,
29941,
29900,
29941,
2477,
4741,
29931,
29918,
29924,
29954,
29918,
29931,
1744,
334,
29918,
29954,
4717,
29963,
11937,
29918,
1254,
9468,
17011,
363,
302,
297,
10650,
29918,
562,
2242,
29918,
1272,
29962,
13,
13,
29871,
732,
6799,
13,
29871,
822,
10650,
29918,
11082,
1212,
8328,
29898,
1311,
1125,
13,
1678,
9995,
450,
10650,
10710,
8328,
23530,
1819,
29889,
13,
4706,
319,
29871,
29941,
29899,
23583,
310,
1060,
29892,
612,
29892,
796,
9685,
1819,
393,
526,
29871,
29896,
29953,
29899,
2966,
8794,
11920,
29889,
13,
1678,
9995,
13,
1678,
18392,
353,
7023,
2378,
29898,
29953,
29897,
13,
1678,
1583,
3032,
949,
29918,
13193,
7373,
17744,
26785,
29918,
1529,
29954,
29892,
903,
18166,
29918,
1529,
29954,
29918,
12015,
29918,
29990,
29918,
29950,
29918,
29924,
29892,
18392,
29897,
13,
1678,
921,
29892,
503,
29892,
343,
353,
2281,
29889,
348,
4058,
29918,
3166,
877,
29958,
25446,
29882,
742,
18392,
29961,
29900,
29901,
29953,
2314,
13,
1678,
736,
313,
29916,
29892,
343,
29892,
503,
29897,
13,
13,
29871,
732,
6799,
13,
29871,
822,
10710,
8328,
29898,
1311,
1125,
13,
1678,
9995,
450,
19356,
10710,
8328,
23530,
1819,
29889,
13,
4706,
319,
29871,
29941,
29899,
23583,
310,
1060,
29892,
612,
29892,
796,
9685,
1819,
297,
9200,
2167,
3333,
393,
526,
8794,
13,
4706,
5685,
1446,
29889,
13,
1678,
9995,
13,
1678,
2320,
29918,
29916,
29892,
2320,
29918,
29891,
29892,
2320,
29918,
29920,
353,
1583,
29889,
1610,
29918,
11082,
1212,
8328,
13,
1678,
736,
313,
11082,
29918,
29916,
847,
1311,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
334,
29918,
12739,
29965,
1799,
29918,
4986,
29918,
29924,
2965,
1672,
29911,
2890,
4375,
29892,
13,
9651,
2320,
29918,
29891,
847,
1311,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
334,
29918,
12739,
29965,
1799,
29918,
4986,
29918,
29924,
2965,
1672,
29911,
2890,
4375,
29892,
13,
9651,
2320,
29918,
29920,
847,
1311,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
29871,
334,
29918,
12739,
29965,
1799,
29918,
4986,
29918,
29924,
2965,
1672,
29911,
2890,
4375,
29897,
13,
13,
29871,
732,
6799,
13,
29871,
822,
10710,
8328,
29918,
29876,
29911,
29898,
1311,
1125,
13,
1678,
9995,
450,
19356,
10710,
8328,
23530,
1819,
29889,
13,
4706,
319,
29871,
29941,
29899,
23583,
310,
1060,
29892,
612,
29892,
796,
9685,
1819,
297,
23432,
4769,
433,
393,
526,
8794,
13,
4706,
5685,
1446,
29889,
13,
1678,
9995,
13,
1678,
2320,
29918,
29916,
29892,
2320,
29918,
29891,
29892,
2320,
29918,
29920,
353,
1583,
29889,
1610,
29918,
11082,
1212,
8328,
13,
1678,
736,
313,
11082,
29918,
29916,
847,
1311,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
334,
29918,
12739,
29965,
1799,
29918,
4986,
29918,
29940,
2190,
2891,
2890,
4375,
29892,
13,
9651,
2320,
29918,
29891,
847,
1311,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
334,
29918,
12739,
29965,
1799,
29918,
4986,
29918,
29940,
2190,
2891,
2890,
4375,
29892,
13,
9651,
2320,
29918,
29920,
847,
1311,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
29871,
334,
29918,
12739,
29965,
1799,
29918,
4986,
29918,
29940,
2190,
2891,
2890,
4375,
29897,
13,
13,
29871,
732,
6799,
13,
29871,
822,
2320,
29918,
29887,
475,
29898,
1311,
1125,
13,
1678,
9995,
450,
10710,
8328,
29915,
29879,
11581,
29889,
13,
1678,
9995,
13,
1678,
736,
1583,
3032,
11082,
29918,
29887,
475,
13,
13,
29871,
732,
11082,
29918,
29887,
475,
29889,
842,
357,
13,
29871,
822,
2320,
29918,
29887,
475,
29898,
1311,
29892,
995,
1125,
13,
1678,
4974,
995,
297,
313,
1529,
29954,
12739,
1177,
29918,
29896,
29918,
29941,
29892,
341,
10051,
12739,
1177,
29918,
29896,
29918,
29929,
29892,
341,
10051,
12739,
1177,
29918,
29906,
29918,
29945,
29892,
341,
10051,
12739,
1177,
29918,
29946,
29918,
29900,
29892,
13,
462,
268,
341,
10051,
12739,
1177,
29918,
29946,
29918,
29955,
29892,
341,
10051,
12739,
1177,
29918,
29945,
29918,
29953,
29892,
341,
10051,
12739,
1177,
29918,
29947,
29918,
29896,
29897,
13,
1678,
1583,
3032,
11082,
29918,
29887,
475,
353,
995,
13,
1678,
1583,
3032,
3539,
29918,
29884,
29947,
7373,
17744,
26785,
29918,
1529,
29954,
29892,
903,
18166,
29918,
1529,
29954,
29918,
11341,
29933,
29918,
18166,
29918,
29924,
29892,
995,
29897,
13,
1678,
565,
1583,
3032,
11082,
29918,
29887,
475,
1275,
341,
10051,
12739,
1177,
29918,
29896,
29918,
29941,
29901,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
353,
29871,
29896,
29896,
29900,
29900,
29889,
29900,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
29871,
353,
29871,
29929,
29947,
29900,
29889,
29900,
13,
1678,
25342,
1583,
3032,
11082,
29918,
29887,
475,
1275,
341,
10051,
12739,
1177,
29918,
29896,
29918,
29929,
29901,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
353,
29871,
29947,
29945,
29945,
29889,
29900,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
29871,
353,
29871,
29955,
29953,
29900,
29889,
29900,
13,
1678,
25342,
1583,
3032,
11082,
29918,
29887,
475,
1275,
341,
10051,
12739,
1177,
29918,
29906,
29918,
29945,
29901,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
353,
29871,
29953,
29955,
29900,
29889,
29900,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
29871,
353,
29871,
29953,
29900,
29900,
29889,
29900,
13,
1678,
25342,
1583,
3032,
11082,
29918,
29887,
475,
1275,
341,
10051,
12739,
1177,
29918,
29946,
29918,
29900,
29901,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
353,
29871,
29946,
29945,
29900,
29889,
29900,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
29871,
353,
29871,
29946,
29900,
29900,
29889,
29900,
13,
1678,
25342,
1583,
3032,
11082,
29918,
29887,
475,
1275,
341,
10051,
12739,
1177,
29918,
29946,
29918,
29955,
29901,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
353,
29871,
29946,
29900,
29900,
29889,
29900,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
29871,
353,
29871,
29941,
29945,
29945,
29889,
29900,
13,
1678,
25342,
1583,
3032,
11082,
29918,
29887,
475,
1275,
341,
10051,
12739,
1177,
29918,
29945,
29918,
29953,
29901,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
353,
29871,
29941,
29941,
29900,
29889,
29900,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
29871,
353,
29871,
29906,
29929,
29945,
29889,
29900,
13,
1678,
25342,
1583,
3032,
11082,
29918,
29887,
475,
1275,
341,
10051,
12739,
1177,
29918,
29947,
29918,
29896,
29901,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
3594,
353,
29871,
29906,
29941,
29900,
29889,
29900,
13,
418,
1583,
3032,
3137,
29885,
29941,
29900,
29941,
11082,
29918,
29887,
11214,
29918,
3137,
29890,
29918,
29920,
29871,
353,
29871,
29906,
29900,
29945,
29889,
29900,
13,
13,
29871,
732,
6799,
13,
29871,
822,
2320,
29918,
10492,
29898,
1311,
1125,
13,
1678,
9995,
450,
10710,
8328,
2767,
6554,
29889,
13,
1678,
9995,
13,
1678,
736,
1583,
3032,
11082,
29918,
10492,
13,
13,
29871,
732,
11082,
29918,
10492,
29889,
842,
357,
13,
29871,
822,
2320,
29918,
10492,
29898,
1311,
29892,
995,
1125,
13,
1678,
4974,
995,
297,
313,
1529,
14345,
3040,
29918,
29900,
29918,
29955,
29892,
341,
10051,
29934,
3040,
29918,
29896,
29918,
29945,
29892,
341,
10051,
29934,
3040,
29918,
29941,
29918,
29900,
29892,
341,
10051,
29934,
3040,
29918,
29955,
29918,
29945,
29892,
13,
462,
268,
341,
10051,
29934,
3040,
29918,
29896,
29945,
29892,
341,
10051,
29934,
3040,
29918,
29941,
29900,
29892,
341,
10051,
29934,
3040,
29918,
29955,
29945,
29892,
341,
10051,
29934,
3040,
29918,
29906,
29906,
29900,
29897,
13,
1678,
1583,
3032,
11082,
29918,
10492,
353,
995,
13,
1678,
1072,
29918,
29885,
353,
5135,
1767,
669,
29871,
29900,
29916,
29900,
29955,
29897,
3532,
29871,
29906,
29897,
669,
29871,
29900,
29916,
600,
13,
1678,
1583,
3032,
3539,
29918,
29884,
29947,
7373,
17744,
26785,
29918,
1529,
29954,
29892,
903,
18166,
29918,
1529,
29954,
29918,
29907,
4717,
29918,
18166,
29918,
29924,
29892,
1072,
29918,
29885,
29897,
13,
13,
29871,
732,
6799,
13,
29871,
822,
338,
29918,
2040,
29898,
1311,
1125,
13,
1678,
736,
1583,
3032,
275,
28181,
13,
13,
29871,
732,
6799,
13,
29871,
822,
8242,
29918,
3981,
29898,
1311,
1125,
13,
1678,
736,
5868,
2190,
29918,
18736,
13,
13,
29871,
732,
6799,
13,
29871,
822,
1024,
29898,
1311,
1125,
13,
1678,
736,
5868,
5690,
29918,
5813,
13,
13,
29871,
396,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
448,
13,
29871,
822,
903,
3539,
29918,
29884,
29947,
29898,
1311,
29892,
474,
29906,
29883,
2528,
29878,
29892,
1072,
2528,
29878,
29892,
659,
1125,
13,
1678,
18392,
1678,
353,
7023,
2378,
29898,
29906,
29897,
13,
1678,
18392,
29961,
29900,
29962,
353,
1072,
2528,
29878,
669,
29871,
29900,
29916,
600,
13,
1678,
18392,
29961,
29896,
29962,
353,
659,
669,
29871,
29900,
29916,
600,
13,
1678,
1583,
3032,
29875,
29906,
29883,
29889,
8231,
10896,
29898,
29875,
29906,
29883,
2528,
29878,
29892,
18392,
29897,
13,
13,
29871,
822,
903,
949,
29918,
13193,
29898,
1311,
29892,
474,
29906,
29883,
2528,
29878,
29892,
1072,
2528,
29878,
29892,
18392,
1125,
13,
1678,
9920,
1678,
353,
7023,
2378,
29898,
29896,
29897,
13,
1678,
9920,
29961,
29900,
29962,
353,
1072,
2528,
29878,
669,
29871,
29900,
29916,
600,
13,
1678,
1583,
3032,
29875,
29906,
29883,
29889,
8231,
10896,
29898,
29875,
29906,
29883,
2528,
29878,
29892,
9920,
29892,
7700,
29897,
13,
1678,
1583,
3032,
29875,
29906,
29883,
29889,
949,
3166,
29918,
8941,
29898,
29875,
29906,
29883,
2528,
29878,
29892,
18392,
29897,
13,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
5634,
13,
2
] |
pythonProject/q46.py | Babur171/python | 0 | 154520 | string = "blackEyes"
s = {string: (string[::2], string[1::2])}
print(s)
| [
1,
1347,
353,
376,
8517,
29923,
3582,
29908,
13,
29879,
353,
426,
1807,
29901,
313,
1807,
29961,
1057,
29906,
1402,
1347,
29961,
29896,
1057,
29906,
2314,
29913,
13,
2158,
29898,
29879,
29897,
13,
2
] |
attention_to_gif/visualizer.py | valayDave/attention_to_gif | 0 | 124692 | <filename>attention_to_gif/visualizer.py
# importing matplot lib
import matplotlib.pyplot as plt
import numpy as np
import torch
# importig movie py libraries
from moviepy.editor import VideoClip
from moviepy.video.io.bindings import mplfig_to_npimage
class AttentionVisualizer:
"""
Creates a GIF of the transition of attention weights across the layers.
layer_wise_attention_weights : Tensor : (num_layers,batch_size,num_heads,seq_len_x,seq_len_y)
x_label_toks : labels for indices in the sequence.
y_label_toks : labels for indices in the sequence.
title_message: Message to print in the video/Gif
chosen_head : int : a particular to head to visualise attention for.
If None: Attention is a summed for all heads at a layer
seq_len_x_lim : constrain the size of of head in the x dimension
seq_len_y_lim : constrain the size of of head in the y dimension
"""
def __init__(self,\
layer_wise_attention_weights:torch.Tensor,
seq_len_x_lim=None,
seq_len_y_lim=None,
chosen_item=0,
chosen_head=None,
x_label_toks=[],
y_label_toks=[],
fig_size=(10,10),
title_message='',
) -> None:
#()
self.num_layers, self.batch_size , self.num_attention_heads , seq_len_x,seq_len_y = layer_wise_attention_weights.size()
# Doing this ensure that it work.
self.seq_len_x_lim = seq_len_x_lim
self.seq_len_y_lim = seq_len_y_lim
self.chosen_item=chosen_item
self.layer_wise_attention_weights = layer_wise_attention_weights
self.fig, self.ax = None,None
self.fig_size=fig_size
self.x_label_toks = x_label_toks
self.y_label_toks = y_label_toks
self.title_message = title_message
self.chosen_head = chosen_head
# self.fig.colorbar()
def get_attention_values(self,layer,chosen_head=None):
if chosen_head is not None:
conv_arr = self.layer_wise_attention_weights[int(layer)][self.chosen_item][chosen_head].cpu().numpy()
else:
conv_arr = self.layer_wise_attention_weights[int(layer)][self.chosen_item].sum(dim=0).cpu().numpy()
if self.seq_len_x_lim is not None:
conv_arr= conv_arr[:,:self.seq_len_x_lim]
if self.seq_len_y_lim is not None:
conv_arr= conv_arr[:self.seq_len_y_lim]
return conv_arr
def __call__(self,t):
# clear
if self.fig is None:
self.fig, self.ax = plt.subplots(figsize=self.fig_size)
if len(self.ax.images) > 0:
self.ax.images[-1].colorbar.remove()
self.ax.clear()
conv_arr = self.get_attention_values(t,chosen_head=self.chosen_head)
cax = self.ax.matshow(conv_arr,origin='lower', cmap='viridis',aspect='auto')
# self.y_label_toks
self.fig.colorbar(cax,ax=self.ax)
if len(self.x_label_toks) > 0:
self.ax.set_xticks([i for i in range(len(self.x_label_toks))])
self.ax.set_xticklabels(self.x_label_toks,)
if len(self.y_label_toks) > 0:
self.ax.set_yticks([len(self.y_label_toks)-i-1 for i in range(len(self.y_label_toks))])
self.ax.set_yticklabels(self.y_label_toks)
default_title = f" Attention At Layer : {int(t)} \n"
if self.chosen_head is not None:
default_title = f" Attention At Layer : {int(t)} And Head : {self.chosen_head}\n"
if self.title_message is '':
self.ax.set_title(default_title)
else:
self.ax.set_title(f"{self.title_message}\n {default_title}")
return mplfig_to_npimage(self.fig)
def save_visualisation(self,viz_name='attention_viz.gif',fps=20):
animation = VideoClip(make_frame=self,duration=self.num_layers)
animation.write_gif(viz_name,fps=fps)
def show_visualisation(self,viz_name='attention_viz.gif',fps = 20, loop = False, autoplay = False):
# animation = VideoClip(self, duration = self.num_layers)
animation = VideoClip(make_frame=self,duration=self.num_layers)
animation.ipython_display(fps =fps ,loop=loop,autoplay=autoplay)
def create_single_plot(self, fig_size=(10,10)):
fig,axes = plt.subplots(nrows=self.num_layers, ncols=self.num_attention_heads,figsize=fig_size)
for lidx,layerax in enumerate(axes):
for hidx,headax in enumerate(layerax):
conv_arr = self.get_attention_values(lidx,chosen_head=hidx)
cax = headax.matshow(conv_arr,origin='lower', cmap='viridis',aspect='auto')
fig.colorbar(cax,ax=headax)
if len(self.x_label_toks) > 0:
headax.set_xticks([i for i in range(len(self.x_label_toks))])
headax.set_xticklabels(self.x_label_toks,)
if len(self.y_label_toks) > 0:
headax.set_yticks([len(self.y_label_toks)-i-1 for i in range(len(self.y_label_toks))])
headax.set_yticklabels(self.y_label_toks)
default_title = f" Attention At Layer : {int(lidx)} And Head : {hidx}\n"
headax.set_title(default_title)
return fig | [
1,
529,
9507,
29958,
1131,
2509,
29918,
517,
29918,
18660,
29914,
20119,
3950,
29889,
2272,
13,
29937,
28348,
1775,
5317,
4303,
29871,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
29871,
13,
5215,
12655,
408,
7442,
29871,
13,
5215,
4842,
305,
13,
29937,
1053,
335,
14064,
11451,
9562,
29871,
13,
3166,
14064,
2272,
29889,
15204,
1053,
13987,
29907,
3466,
29871,
13,
3166,
14064,
2272,
29889,
9641,
29889,
601,
29889,
5355,
886,
1053,
286,
572,
1003,
29918,
517,
29918,
9302,
3027,
29871,
13,
13,
1990,
6212,
2509,
16227,
3950,
29901,
13,
1678,
9995,
13,
1678,
6760,
1078,
263,
402,
6545,
310,
278,
9558,
310,
8570,
18177,
4822,
278,
15359,
29889,
29871,
13,
1678,
7546,
29918,
3538,
29918,
1131,
2509,
29918,
705,
5861,
584,
323,
6073,
584,
313,
1949,
29918,
29277,
29892,
16175,
29918,
2311,
29892,
1949,
29918,
2813,
29879,
29892,
11762,
29918,
2435,
29918,
29916,
29892,
11762,
29918,
2435,
29918,
29891,
29897,
13,
1678,
921,
29918,
1643,
29918,
517,
2039,
584,
11073,
363,
16285,
297,
278,
5665,
29889,
13,
1678,
343,
29918,
1643,
29918,
517,
2039,
584,
11073,
363,
16285,
297,
278,
5665,
29889,
13,
1678,
3611,
29918,
4906,
29901,
7777,
304,
1596,
297,
278,
4863,
29914,
29954,
361,
13,
1678,
10434,
29918,
2813,
584,
938,
584,
263,
3153,
304,
2343,
304,
7604,
895,
8570,
363,
29889,
29871,
13,
795,
960,
6213,
29901,
6212,
2509,
338,
263,
2533,
2168,
363,
599,
15883,
472,
263,
7546,
13,
1678,
19359,
29918,
2435,
29918,
29916,
29918,
2576,
584,
1040,
6038,
278,
2159,
310,
310,
2343,
297,
278,
921,
9927,
29871,
13,
1678,
19359,
29918,
2435,
29918,
29891,
29918,
2576,
584,
1040,
6038,
278,
2159,
310,
310,
2343,
297,
278,
343,
9927,
29871,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
2053,
13,
18884,
7546,
29918,
3538,
29918,
1131,
2509,
29918,
705,
5861,
29901,
7345,
305,
29889,
29911,
6073,
29892,
13,
18884,
19359,
29918,
2435,
29918,
29916,
29918,
2576,
29922,
8516,
29892,
13,
18884,
19359,
29918,
2435,
29918,
29891,
29918,
2576,
29922,
8516,
29892,
13,
18884,
10434,
29918,
667,
29922,
29900,
29892,
13,
18884,
10434,
29918,
2813,
29922,
8516,
29892,
13,
18884,
921,
29918,
1643,
29918,
517,
2039,
11759,
1402,
13,
18884,
343,
29918,
1643,
29918,
517,
2039,
11759,
1402,
13,
18884,
2537,
29918,
2311,
7607,
29896,
29900,
29892,
29896,
29900,
511,
13,
18884,
3611,
29918,
4906,
2433,
742,
13,
18884,
1723,
1599,
6213,
29901,
13,
4706,
396,
580,
13,
4706,
1583,
29889,
1949,
29918,
29277,
29892,
1583,
29889,
16175,
29918,
2311,
1919,
1583,
29889,
1949,
29918,
1131,
2509,
29918,
2813,
29879,
1919,
19359,
29918,
2435,
29918,
29916,
29892,
11762,
29918,
2435,
29918,
29891,
353,
7546,
29918,
3538,
29918,
1131,
2509,
29918,
705,
5861,
29889,
2311,
580,
13,
4706,
396,
1938,
292,
445,
9801,
393,
372,
664,
29889,
13,
4706,
1583,
29889,
11762,
29918,
2435,
29918,
29916,
29918,
2576,
353,
19359,
29918,
2435,
29918,
29916,
29918,
2576,
13,
4706,
1583,
29889,
11762,
29918,
2435,
29918,
29891,
29918,
2576,
29871,
353,
19359,
29918,
2435,
29918,
29891,
29918,
2576,
13,
4706,
1583,
29889,
305,
7749,
29918,
667,
29922,
305,
7749,
29918,
667,
13,
4706,
1583,
29889,
13148,
29918,
3538,
29918,
1131,
2509,
29918,
705,
5861,
353,
7546,
29918,
3538,
29918,
1131,
2509,
29918,
705,
5861,
13,
4706,
1583,
29889,
1003,
29892,
1583,
29889,
1165,
353,
6213,
29892,
8516,
13,
4706,
1583,
29889,
1003,
29918,
2311,
29922,
1003,
29918,
2311,
13,
4706,
1583,
29889,
29916,
29918,
1643,
29918,
517,
2039,
353,
921,
29918,
1643,
29918,
517,
2039,
13,
4706,
1583,
29889,
29891,
29918,
1643,
29918,
517,
2039,
353,
343,
29918,
1643,
29918,
517,
2039,
13,
4706,
1583,
29889,
3257,
29918,
4906,
353,
3611,
29918,
4906,
13,
4706,
1583,
29889,
305,
7749,
29918,
2813,
353,
10434,
29918,
2813,
13,
4706,
396,
1583,
29889,
1003,
29889,
2780,
1646,
580,
13,
268,
13,
1678,
822,
679,
29918,
1131,
2509,
29918,
5975,
29898,
1311,
29892,
13148,
29892,
305,
7749,
29918,
2813,
29922,
8516,
1125,
13,
418,
565,
10434,
29918,
2813,
338,
451,
6213,
29901,
13,
4706,
7602,
29918,
2749,
353,
1583,
29889,
13148,
29918,
3538,
29918,
1131,
2509,
29918,
705,
5861,
29961,
524,
29898,
13148,
29897,
3816,
1311,
29889,
305,
7749,
29918,
667,
3816,
305,
7749,
29918,
2813,
1822,
21970,
2141,
23749,
580,
13,
418,
1683,
29901,
13,
4706,
7602,
29918,
2749,
353,
1583,
29889,
13148,
29918,
3538,
29918,
1131,
2509,
29918,
705,
5861,
29961,
524,
29898,
13148,
29897,
3816,
1311,
29889,
305,
7749,
29918,
667,
1822,
2083,
29898,
6229,
29922,
29900,
467,
21970,
2141,
23749,
580,
13,
418,
565,
1583,
29889,
11762,
29918,
2435,
29918,
29916,
29918,
2576,
338,
451,
6213,
29901,
13,
3986,
7602,
29918,
2749,
29922,
7602,
29918,
2749,
7503,
29892,
29901,
1311,
29889,
11762,
29918,
2435,
29918,
29916,
29918,
2576,
29962,
13,
418,
565,
1583,
29889,
11762,
29918,
2435,
29918,
29891,
29918,
2576,
338,
451,
6213,
29901,
13,
3986,
7602,
29918,
2749,
29922,
7602,
29918,
2749,
7503,
1311,
29889,
11762,
29918,
2435,
29918,
29891,
29918,
2576,
29962,
13,
539,
13,
418,
736,
7602,
29918,
2749,
13,
13,
268,
13,
1678,
822,
4770,
4804,
12035,
1311,
29892,
29873,
1125,
13,
4706,
396,
2821,
29871,
13,
4706,
565,
1583,
29889,
1003,
338,
6213,
29901,
13,
3986,
1583,
29889,
1003,
29892,
1583,
29889,
1165,
353,
14770,
29889,
1491,
26762,
29898,
1003,
2311,
29922,
1311,
29889,
1003,
29918,
2311,
29897,
13,
965,
13,
4706,
565,
7431,
29898,
1311,
29889,
1165,
29889,
8346,
29897,
1405,
29871,
29900,
29901,
13,
3986,
1583,
29889,
1165,
29889,
8346,
14352,
29896,
1822,
2780,
1646,
29889,
5992,
580,
13,
4706,
1583,
29889,
1165,
29889,
8551,
580,
13,
13,
4706,
7602,
29918,
2749,
353,
1583,
29889,
657,
29918,
1131,
2509,
29918,
5975,
29898,
29873,
29892,
305,
7749,
29918,
2813,
29922,
1311,
29889,
305,
7749,
29918,
2813,
29897,
13,
4706,
274,
1165,
353,
1583,
29889,
1165,
29889,
2922,
4294,
29898,
20580,
29918,
2749,
29892,
12574,
2433,
13609,
742,
274,
1958,
2433,
2405,
333,
275,
742,
294,
1103,
2433,
6921,
1495,
13,
4706,
396,
1583,
29889,
29891,
29918,
1643,
29918,
517,
2039,
13,
4706,
1583,
29889,
1003,
29889,
2780,
1646,
29898,
1113,
29916,
29892,
1165,
29922,
1311,
29889,
1165,
29897,
13,
308,
13,
4706,
565,
7431,
29898,
1311,
29889,
29916,
29918,
1643,
29918,
517,
2039,
29897,
1405,
29871,
29900,
29901,
13,
9651,
1583,
29889,
1165,
29889,
842,
29918,
486,
7358,
4197,
29875,
363,
474,
297,
3464,
29898,
2435,
29898,
1311,
29889,
29916,
29918,
1643,
29918,
517,
2039,
876,
2314,
13,
9651,
1583,
29889,
1165,
29889,
842,
29918,
486,
860,
21134,
29898,
1311,
29889,
29916,
29918,
1643,
29918,
517,
2039,
29892,
29897,
13,
13,
4706,
565,
7431,
29898,
1311,
29889,
29891,
29918,
1643,
29918,
517,
2039,
29897,
1405,
29871,
29900,
29901,
13,
9651,
1583,
29889,
1165,
29889,
842,
29918,
3637,
7358,
4197,
2435,
29898,
1311,
29889,
29891,
29918,
1643,
29918,
517,
2039,
6817,
29875,
29899,
29896,
363,
474,
297,
3464,
29898,
2435,
29898,
1311,
29889,
29891,
29918,
1643,
29918,
517,
2039,
876,
2314,
13,
9651,
1583,
29889,
1165,
29889,
842,
29918,
3637,
860,
21134,
29898,
1311,
29889,
29891,
29918,
1643,
29918,
517,
2039,
29897,
13,
13,
4706,
2322,
29918,
3257,
353,
285,
29908,
6212,
2509,
2180,
365,
2747,
584,
426,
524,
29898,
29873,
2915,
320,
29876,
29908,
13,
4706,
565,
1583,
29889,
305,
7749,
29918,
2813,
338,
451,
6213,
29901,
13,
3986,
2322,
29918,
3257,
353,
285,
29908,
6212,
2509,
2180,
365,
2747,
584,
426,
524,
29898,
29873,
2915,
1126,
12252,
584,
426,
1311,
29889,
305,
7749,
29918,
2813,
1012,
29876,
29908,
13,
13,
4706,
565,
1583,
29889,
3257,
29918,
4906,
338,
525,
2396,
13,
3986,
1583,
29889,
1165,
29889,
842,
29918,
3257,
29898,
4381,
29918,
3257,
29897,
13,
4706,
1683,
29901,
13,
3986,
1583,
29889,
1165,
29889,
842,
29918,
3257,
29898,
29888,
29908,
29912,
1311,
29889,
3257,
29918,
4906,
1012,
29876,
426,
4381,
29918,
3257,
27195,
13,
965,
13,
4706,
736,
286,
572,
1003,
29918,
517,
29918,
9302,
3027,
29898,
1311,
29889,
1003,
29897,
13,
13,
1678,
822,
4078,
29918,
20119,
4371,
29898,
1311,
29892,
29894,
466,
29918,
978,
2433,
1131,
2509,
29918,
29894,
466,
29889,
18660,
742,
29888,
567,
29922,
29906,
29900,
1125,
13,
4706,
9612,
353,
13987,
29907,
3466,
29898,
5675,
29918,
2557,
29922,
1311,
29892,
19708,
29922,
1311,
29889,
1949,
29918,
29277,
29897,
29871,
13,
4706,
9612,
29889,
3539,
29918,
18660,
29898,
29894,
466,
29918,
978,
29892,
29888,
567,
29922,
29888,
567,
29897,
13,
13,
1678,
822,
1510,
29918,
20119,
4371,
29898,
1311,
29892,
29894,
466,
29918,
978,
2433,
1131,
2509,
29918,
29894,
466,
29889,
18660,
742,
29888,
567,
353,
29871,
29906,
29900,
29892,
2425,
353,
7700,
29892,
1120,
459,
8387,
353,
7700,
1125,
13,
4706,
396,
9612,
353,
13987,
29907,
3466,
29898,
1311,
29892,
14385,
353,
1583,
29889,
1949,
29918,
29277,
29897,
29871,
13,
4706,
9612,
353,
13987,
29907,
3466,
29898,
5675,
29918,
2557,
29922,
1311,
29892,
19708,
29922,
1311,
29889,
1949,
29918,
29277,
29897,
29871,
13,
4706,
9612,
29889,
666,
1656,
29918,
4990,
29898,
29888,
567,
353,
29888,
567,
1919,
7888,
29922,
7888,
29892,
1300,
459,
8387,
29922,
1300,
459,
8387,
29897,
29871,
13,
13,
1678,
822,
1653,
29918,
14369,
29918,
5317,
29898,
1311,
29892,
2537,
29918,
2311,
7607,
29896,
29900,
29892,
29896,
29900,
22164,
13,
4706,
2537,
29892,
1165,
267,
353,
14770,
29889,
1491,
26762,
29898,
29876,
5727,
29922,
1311,
29889,
1949,
29918,
29277,
29892,
302,
22724,
29922,
1311,
29889,
1949,
29918,
1131,
2509,
29918,
2813,
29879,
29892,
1003,
2311,
29922,
1003,
29918,
2311,
29897,
13,
4706,
363,
301,
13140,
29892,
13148,
1165,
297,
26985,
29898,
1165,
267,
1125,
13,
3986,
363,
298,
13140,
29892,
354,
1114,
29916,
297,
26985,
29898,
13148,
1165,
1125,
13,
9651,
7602,
29918,
2749,
353,
1583,
29889,
657,
29918,
1131,
2509,
29918,
5975,
29898,
29880,
13140,
29892,
305,
7749,
29918,
2813,
29922,
29882,
13140,
29897,
13,
632,
13,
9651,
274,
1165,
353,
540,
1114,
29916,
29889,
2922,
4294,
29898,
20580,
29918,
2749,
29892,
12574,
2433,
13609,
742,
274,
1958,
2433,
2405,
333,
275,
742,
294,
1103,
2433,
6921,
1495,
13,
9651,
2537,
29889,
2780,
1646,
29898,
1113,
29916,
29892,
1165,
29922,
354,
1114,
29916,
29897,
13,
9651,
565,
7431,
29898,
1311,
29889,
29916,
29918,
1643,
29918,
517,
2039,
29897,
1405,
29871,
29900,
29901,
13,
795,
540,
1114,
29916,
29889,
842,
29918,
486,
7358,
4197,
29875,
363,
474,
297,
3464,
29898,
2435,
29898,
1311,
29889,
29916,
29918,
1643,
29918,
517,
2039,
876,
2314,
13,
795,
540,
1114,
29916,
29889,
842,
29918,
486,
860,
21134,
29898,
1311,
29889,
29916,
29918,
1643,
29918,
517,
2039,
29892,
29897,
13,
13,
9651,
565,
7431,
29898,
1311,
29889,
29891,
29918,
1643,
29918,
517,
2039,
29897,
1405,
29871,
29900,
29901,
13,
795,
540,
1114,
29916,
29889,
842,
29918,
3637,
7358,
4197,
2435,
29898,
1311,
29889,
29891,
29918,
1643,
29918,
517,
2039,
6817,
29875,
29899,
29896,
363,
474,
297,
3464,
29898,
2435,
29898,
1311,
29889,
29891,
29918,
1643,
29918,
517,
2039,
876,
2314,
13,
795,
540,
1114,
29916,
29889,
842,
29918,
3637,
860,
21134,
29898,
1311,
29889,
29891,
29918,
1643,
29918,
517,
2039,
29897,
13,
13,
9651,
2322,
29918,
3257,
353,
285,
29908,
6212,
2509,
2180,
365,
2747,
584,
426,
524,
29898,
29880,
13140,
2915,
1126,
12252,
584,
426,
29882,
13140,
1012,
29876,
29908,
13,
9651,
540,
1114,
29916,
29889,
842,
29918,
3257,
29898,
4381,
29918,
3257,
29897,
13,
4706,
736,
2537,
2
] |
python-is-easy/assignments/snowman/main.py | eDyablo/pirple | 0 | 10767 | <filename>python-is-easy/assignments/snowman/main.py<gh_stars>0
'''
Homework assignment for the 'Python is easy' course by Pirple.
Written be <NAME>.
Snowman(Hangman) game.
'''
from os import (
name as os_name,
system as system_call,
)
from os.path import (
abspath,
dirname,
join as join_path,
)
'''
Screen displays game output
'''
class Screen:
def clear(self):
if os_name == 'nt':
system_call('cls')
else:
system_call('clear')
def draw(self, frame):
for line in frame:
print(line)
'''
Input represents game input device
'''
class Input:
def ask(self, message):
answer = ''
while answer == '':
answer = input(message)
return answer
'''
Art is a game art which is set of frames that get loaded from a text file.
Draws its current frame on a screen.
'''
class Art:
def __init__(self):
self.frames = []
self.current_frame = 0
def load(self, name):
frames = []
art_path = join_path(dirname(abspath(__file__)), join_path('arts', name))
with open(art_path, 'r') as art_file:
frame_height = int(art_file.readline())
frame = []
line_count = 0
for line in art_file:
frame.append(line.strip('\n\r'))
line_count += 1
if line_count % frame_height == 0:
frames.append(frame)
frame = []
self.frames = frames
self.current_frame = 0
def draw(self, screen):
screen.draw(self.frames[self.current_frame])
def frames_number(self):
return len(self.frames)
def next_frame(self):
self.current_frame = (self.current_frame + 1) % self.frames_number()
return self.current_frame
'''
Riddle holds secret word and gets solved by guesses
'''
class Riddle:
def __init__(self, key):
self.key = key
self.clue = ['_'] * len(key)
def length(self):
return len(self.key)
def range(self):
return range(0, self.length())
def guess(self, g):
guess_count = 0
for i in self.range():
if g == self.key[i]:
guess_count += 1
self.clue[i] = g
return guess_count
def solved(self):
for i in self.range():
if self.clue[i] != self.key[i]:
return False
return True
def unsolved(self):
return self.solved() == False
def draw(self, screen):
screen.draw([' '.join(self.clue)])
'''
Game is a game itself
'''
class Game:
def __init__(self):
self.screen = Screen()
self.input = Input()
self.art = Art()
self.riddle = Riddle('riddle')
def play(self):
self.start()
self.propose_riddle()
while self.in_progress():
self.play_round()
self.display_result()
def start(self):
self.art.load('snowman')
self.game_over = False
def propose_riddle(self):
self.riddle = Riddle(self.input.ask('Player 1 pick a word: ').lower())
def in_progress(self):
return self.riddle.unsolved() and self.game_over == False
def draw_frame(self):
self.screen.clear()
self.art.draw(self.screen)
self.riddle.draw(self.screen)
def play_round(self):
self.draw_frame()
clue = input('Player 2 guess a letter: ').lower()
if len(clue) > 0:
if clue[0] == '.':
self.stop()
elif self.riddle.guess(clue[0]) == 0:
self.art.next_frame()
if self.art.current_frame == self.art.frames_number() - 1:
self.stop()
def stop(self):
self.game_over = True
def display_result(self):
self.draw_frame()
if self.game_over:
self.screen.draw(['Player 2 lost'])
else:
self.screen.draw(['Player 2 wins'])
Game().play()
| [
1,
529,
9507,
29958,
4691,
29899,
275,
29899,
29872,
8995,
29914,
16645,
1860,
29914,
29879,
3707,
1171,
29914,
3396,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
12008,
13,
11184,
1287,
12827,
363,
278,
525,
11980,
338,
4780,
29915,
3236,
491,
16937,
552,
29889,
13,
13,
29956,
20833,
367,
529,
5813,
15513,
13,
13,
29903,
3707,
1171,
29898,
29950,
574,
1171,
29897,
3748,
29889,
13,
12008,
13,
13,
3166,
2897,
1053,
313,
13,
1678,
1024,
408,
2897,
29918,
978,
29892,
13,
1678,
1788,
408,
1788,
29918,
4804,
29892,
13,
29897,
13,
13,
3166,
2897,
29889,
2084,
1053,
313,
13,
1678,
633,
1028,
493,
29892,
13,
1678,
4516,
978,
29892,
13,
1678,
5988,
408,
5988,
29918,
2084,
29892,
13,
29897,
13,
13,
12008,
13,
11357,
14423,
3748,
1962,
13,
12008,
13,
1990,
22666,
29901,
13,
1678,
822,
2821,
29898,
1311,
1125,
13,
4706,
565,
2897,
29918,
978,
1275,
525,
593,
2396,
13,
9651,
1788,
29918,
4804,
877,
25932,
1495,
13,
4706,
1683,
29901,
13,
9651,
1788,
29918,
4804,
877,
8551,
1495,
13,
13,
1678,
822,
4216,
29898,
1311,
29892,
3515,
1125,
13,
4706,
363,
1196,
297,
3515,
29901,
13,
9651,
1596,
29898,
1220,
29897,
13,
13,
12008,
13,
4290,
11524,
3748,
1881,
4742,
13,
12008,
13,
1990,
10567,
29901,
13,
1678,
822,
2244,
29898,
1311,
29892,
2643,
1125,
13,
4706,
1234,
353,
6629,
13,
4706,
1550,
1234,
1275,
525,
2396,
13,
9651,
1234,
353,
1881,
29898,
4906,
29897,
13,
4706,
736,
1234,
13,
13,
12008,
13,
9986,
338,
263,
3748,
1616,
607,
338,
731,
310,
16608,
393,
679,
7500,
515,
263,
1426,
934,
29889,
13,
8537,
29879,
967,
1857,
3515,
373,
263,
4315,
29889,
13,
12008,
13,
1990,
3012,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
19935,
353,
5159,
13,
4706,
1583,
29889,
3784,
29918,
2557,
353,
29871,
29900,
13,
13,
1678,
822,
2254,
29898,
1311,
29892,
1024,
1125,
13,
4706,
16608,
353,
5159,
13,
4706,
1616,
29918,
2084,
353,
5988,
29918,
2084,
29898,
25721,
29898,
370,
1028,
493,
22168,
1445,
1649,
8243,
5988,
29918,
2084,
877,
5708,
742,
1024,
876,
13,
4706,
411,
1722,
29898,
442,
29918,
2084,
29892,
525,
29878,
1495,
408,
1616,
29918,
1445,
29901,
13,
9651,
3515,
29918,
3545,
353,
938,
29898,
442,
29918,
1445,
29889,
949,
1220,
3101,
13,
9651,
3515,
353,
5159,
13,
9651,
1196,
29918,
2798,
353,
29871,
29900,
13,
9651,
363,
1196,
297,
1616,
29918,
1445,
29901,
13,
18884,
3515,
29889,
4397,
29898,
1220,
29889,
17010,
28909,
29876,
29905,
29878,
8785,
13,
18884,
1196,
29918,
2798,
4619,
29871,
29896,
13,
18884,
565,
1196,
29918,
2798,
1273,
3515,
29918,
3545,
1275,
29871,
29900,
29901,
13,
462,
1678,
16608,
29889,
4397,
29898,
2557,
29897,
13,
462,
1678,
3515,
353,
5159,
13,
4706,
1583,
29889,
19935,
353,
16608,
13,
4706,
1583,
29889,
3784,
29918,
2557,
353,
29871,
29900,
13,
13,
1678,
822,
4216,
29898,
1311,
29892,
4315,
1125,
13,
4706,
4315,
29889,
4012,
29898,
1311,
29889,
19935,
29961,
1311,
29889,
3784,
29918,
2557,
2314,
13,
13,
1678,
822,
16608,
29918,
4537,
29898,
1311,
1125,
13,
4706,
736,
7431,
29898,
1311,
29889,
19935,
29897,
13,
13,
1678,
822,
2446,
29918,
2557,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3784,
29918,
2557,
353,
313,
1311,
29889,
3784,
29918,
2557,
718,
29871,
29896,
29897,
1273,
1583,
29889,
19935,
29918,
4537,
580,
13,
4706,
736,
1583,
29889,
3784,
29918,
2557,
13,
13,
12008,
13,
29934,
2632,
8640,
7035,
1734,
322,
4947,
7484,
491,
4140,
267,
13,
12008,
13,
1990,
390,
2632,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1820,
1125,
13,
4706,
1583,
29889,
1989,
353,
1820,
13,
4706,
1583,
29889,
695,
434,
353,
6024,
29918,
2033,
334,
7431,
29898,
1989,
29897,
13,
13,
1678,
822,
3309,
29898,
1311,
1125,
13,
4706,
736,
7431,
29898,
1311,
29889,
1989,
29897,
13,
13,
1678,
822,
3464,
29898,
1311,
1125,
13,
4706,
736,
3464,
29898,
29900,
29892,
1583,
29889,
2848,
3101,
13,
13,
1678,
822,
4140,
29898,
1311,
29892,
330,
1125,
13,
4706,
4140,
29918,
2798,
353,
29871,
29900,
13,
4706,
363,
474,
297,
1583,
29889,
3881,
7295,
13,
9651,
565,
330,
1275,
1583,
29889,
1989,
29961,
29875,
5387,
13,
18884,
4140,
29918,
2798,
4619,
29871,
29896,
13,
18884,
1583,
29889,
695,
434,
29961,
29875,
29962,
353,
330,
13,
4706,
736,
4140,
29918,
2798,
13,
13,
1678,
822,
7484,
29898,
1311,
1125,
13,
4706,
363,
474,
297,
1583,
29889,
3881,
7295,
13,
9651,
565,
1583,
29889,
695,
434,
29961,
29875,
29962,
2804,
1583,
29889,
1989,
29961,
29875,
5387,
13,
18884,
736,
7700,
13,
4706,
736,
5852,
13,
13,
1678,
822,
443,
2929,
1490,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
2929,
1490,
580,
1275,
7700,
13,
13,
1678,
822,
4216,
29898,
1311,
29892,
4315,
1125,
13,
4706,
4315,
29889,
4012,
18959,
15300,
7122,
29898,
1311,
29889,
695,
434,
29897,
2314,
13,
13,
12008,
13,
14199,
338,
263,
3748,
3528,
13,
12008,
13,
1990,
8448,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
10525,
353,
22666,
580,
13,
4706,
1583,
29889,
2080,
353,
10567,
580,
13,
4706,
1583,
29889,
442,
353,
3012,
580,
13,
4706,
1583,
29889,
29878,
2632,
353,
390,
2632,
877,
29878,
2632,
1495,
13,
13,
1678,
822,
1708,
29898,
1311,
1125,
13,
4706,
1583,
29889,
2962,
580,
13,
4706,
1583,
29889,
771,
4220,
29918,
29878,
2632,
580,
13,
4706,
1550,
1583,
29889,
262,
29918,
18035,
7295,
13,
9651,
1583,
29889,
1456,
29918,
14486,
580,
13,
4706,
1583,
29889,
4990,
29918,
2914,
580,
13,
13,
1678,
822,
1369,
29898,
1311,
1125,
13,
4706,
1583,
29889,
442,
29889,
1359,
877,
29879,
3707,
1171,
1495,
13,
4706,
1583,
29889,
11802,
29918,
957,
353,
7700,
13,
13,
1678,
822,
16193,
29918,
29878,
2632,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29878,
2632,
353,
390,
2632,
29898,
1311,
29889,
2080,
29889,
1278,
877,
9075,
29871,
29896,
5839,
263,
1734,
29901,
525,
467,
13609,
3101,
13,
13,
1678,
822,
297,
29918,
18035,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
29878,
2632,
29889,
348,
2929,
1490,
580,
322,
1583,
29889,
11802,
29918,
957,
1275,
7700,
13,
13,
1678,
822,
4216,
29918,
2557,
29898,
1311,
1125,
13,
4706,
1583,
29889,
10525,
29889,
8551,
580,
13,
4706,
1583,
29889,
442,
29889,
4012,
29898,
1311,
29889,
10525,
29897,
13,
4706,
1583,
29889,
29878,
2632,
29889,
4012,
29898,
1311,
29889,
10525,
29897,
13,
13,
1678,
822,
1708,
29918,
14486,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4012,
29918,
2557,
580,
13,
4706,
23960,
353,
1881,
877,
9075,
29871,
29906,
4140,
263,
5497,
29901,
525,
467,
13609,
580,
13,
4706,
565,
7431,
29898,
695,
434,
29897,
1405,
29871,
29900,
29901,
13,
9651,
565,
23960,
29961,
29900,
29962,
1275,
15300,
2396,
13,
18884,
1583,
29889,
9847,
580,
13,
9651,
25342,
1583,
29889,
29878,
2632,
29889,
2543,
404,
29898,
695,
434,
29961,
29900,
2314,
1275,
29871,
29900,
29901,
13,
18884,
1583,
29889,
442,
29889,
4622,
29918,
2557,
580,
13,
4706,
565,
1583,
29889,
442,
29889,
3784,
29918,
2557,
1275,
1583,
29889,
442,
29889,
19935,
29918,
4537,
580,
448,
29871,
29896,
29901,
13,
9651,
1583,
29889,
9847,
580,
13,
13,
1678,
822,
5040,
29898,
1311,
1125,
13,
4706,
1583,
29889,
11802,
29918,
957,
353,
5852,
13,
13,
1678,
822,
2479,
29918,
2914,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4012,
29918,
2557,
580,
13,
4706,
565,
1583,
29889,
11802,
29918,
957,
29901,
13,
9651,
1583,
29889,
10525,
29889,
4012,
18959,
9075,
29871,
29906,
5714,
11287,
13,
4706,
1683,
29901,
13,
9651,
1583,
29889,
10525,
29889,
4012,
18959,
9075,
29871,
29906,
21614,
11287,
13,
13,
14199,
2141,
1456,
580,
13,
2
] |
PythonExercicios/Mundo 2/8_estrutura_de_repeticao_for/ex051.py | GuilhermoCampos/Curso-Python3-curso-em-video | 0 | 159848 | print('{}\n {:^25}\n {}\n'.format('='*25, '10 TERMOS DE UMA PA', '='*25), end=' ')
primeiro = int(input('Primeiro Termo: '))
razao = int(input(' Razão: '))
acumulador = 0
for c in range(0, 10):
print(primeiro + acumulador, '=> ', end='')
acumulador += razao
print('ACABOU')
| [
1,
1596,
877,
29912,
1012,
29876,
12365,
29985,
29906,
29945,
1012,
29876,
426,
1012,
29876,
4286,
4830,
877,
2433,
29930,
29906,
29945,
29892,
525,
29896,
29900,
323,
1001,
29924,
3267,
5012,
501,
1529,
17687,
742,
525,
2433,
29930,
29906,
29945,
511,
1095,
2433,
25710,
13,
10080,
3350,
353,
938,
29898,
2080,
877,
4040,
603,
3350,
11814,
29877,
29901,
525,
876,
13,
336,
1362,
29877,
353,
938,
29898,
2080,
877,
24961,
1368,
29901,
525,
876,
13,
562,
398,
352,
3136,
353,
29871,
29900,
13,
1454,
274,
297,
3464,
29898,
29900,
29892,
29871,
29896,
29900,
1125,
13,
1678,
1596,
29898,
10080,
3350,
718,
1274,
398,
352,
3136,
29892,
525,
4261,
13420,
1095,
2433,
1495,
13,
1678,
1274,
398,
352,
3136,
4619,
1153,
1362,
29877,
13,
2158,
877,
2477,
2882,
27269,
1495,
13,
2
] |
tests/unit/test_albums.py | movermeyer/openphoto-python | 3 | 173059 | from __future__ import unicode_literals
import mock
try:
import unittest2 as unittest # Python2.6
except ImportError:
import unittest
import trovebox
class TestAlbums(unittest.TestCase):
test_host = "test.example.com"
test_photos_dict = [{"id": "1a", "tags": ["tag1", "tag2"]},
{"id": "2b", "tags": ["tag3", "tag4"]}]
test_albums_dict = [{"cover": {"id": "1a", "tags": ["tag1", "tag2"]},
"id": "1",
"name": "Album 1",
"photos": [test_photos_dict[0]],
"totalRows": 2},
{"cover": {"id": "2b", "tags": ["tag3", "tag4"]},
"id": "2",
"name": "Album 2",
"photos": [test_photos_dict[1]],
"totalRows": 2}]
def setUp(self):
self.client = trovebox.Trovebox(host=self.test_host)
self.test_photos = [trovebox.objects.photo.Photo(self.client, photo)
for photo in self.test_photos_dict]
self.test_albums = [trovebox.objects.album.Album(self.client, album)
for album in self.test_albums_dict]
@staticmethod
def _return_value(result, message="", code=200):
return {"message": message, "code": code, "result": result}
class TestAlbumsList(TestAlbums):
@mock.patch.object(trovebox.Trovebox, 'get')
def test_albums_list(self, mock_get):
"""Check that the album list is returned correctly"""
mock_get.return_value = self._return_value(self.test_albums_dict)
result = self.client.albums.list(foo="bar")
mock_get.assert_called_with("/albums/list.json", foo="bar")
self.assertEqual(len(result), 2)
self.assertEqual(result[0].id, "1")
self.assertEqual(result[0].name, "Album 1")
self.assertEqual(result[1].id, "2")
self.assertEqual(result[1].name, "Album 2")
@mock.patch.object(trovebox.Trovebox, 'get')
def test_empty_result(self, mock_get):
"""Check that an empty result is transformed into an empty list """
mock_get.return_value = self._return_value("")
result = self.client.albums.list(foo="bar")
mock_get.assert_called_with("/albums/list.json", foo="bar")
self.assertEqual(result, [])
@mock.patch.object(trovebox.Trovebox, 'get')
def test_zero_rows(self, mock_get):
"""Check that totalRows=0 is transformed into an empty list """
mock_get.return_value = self._return_value([{"totalRows": 0}])
result = self.client.albums.list(foo="bar")
mock_get.assert_called_with("/albums/list.json", foo="bar")
self.assertEqual(result, [])
@mock.patch.object(trovebox.Trovebox, 'get')
def test_albums_list_returns_cover_photos(self, mock_get):
"""Check that the album list returns cover photo objects"""
mock_get.return_value = self._return_value(self.test_albums_dict)
result = self.client.albums.list(foo="bar")
mock_get.assert_called_with("/albums/list.json", foo="bar")
self.assertEqual(len(result), 2)
self.assertEqual(result[0].id, "1")
self.assertEqual(result[0].name, "Album 1")
self.assertEqual(result[0].cover.id, "1a")
self.assertEqual(result[0].cover.tags, ["tag1", "tag2"])
self.assertEqual(result[1].id, "2")
self.assertEqual(result[1].name, "Album 2")
self.assertEqual(result[1].cover.id, "2b")
self.assertEqual(result[1].cover.tags, ["tag3", "tag4"])
class TestAlbumUpdateCover(TestAlbums):
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_cover_update(self, mock_post):
"""Check that an album cover can be updated"""
mock_post.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.cover_update(self.test_albums[0],
self.test_photos[0],
foo="bar")
mock_post.assert_called_with("/album/1/cover/1a/update.json",
foo="bar")
self.assertEqual(result.id, "2")
self.assertEqual(result.name, "Album 2")
self.assertEqual(result.cover.id, "2b")
self.assertEqual(result.cover.tags, ["tag3", "tag4"])
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_cover_update_id(self, mock_post):
"""Check that an album cover can be updated using IDs"""
mock_post.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.cover_update("1", "1a", foo="bar")
mock_post.assert_called_with("/album/1/cover/1a/update.json",
foo="bar")
self.assertEqual(result.id, "2")
self.assertEqual(result.name, "Album 2")
self.assertEqual(result.cover.id, "2b")
self.assertEqual(result.cover.tags, ["tag3", "tag4"])
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_object_cover_update(self, mock_post):
"""Check that an album cover can be updated using the album object directly"""
mock_post.return_value = self._return_value(self.test_albums_dict[1])
album = self.test_albums[0]
album.cover_update(self.test_photos[1], foo="bar")
mock_post.assert_called_with("/album/1/cover/2b/update.json",
foo="bar")
self.assertEqual(album.id, "2")
self.assertEqual(album.name, "Album 2")
self.assertEqual(album.cover.id, "2b")
self.assertEqual(album.cover.tags, ["tag3", "tag4"])
class TestAlbumCreate(TestAlbums):
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_create(self, mock_post):
"""Check that an album can be created"""
mock_post.return_value = self._return_value(self.test_albums_dict[0])
result = self.client.album.create(name="Test", foo="bar")
mock_post.assert_called_with("/album/create.json", name="Test",
foo="bar")
self.assertEqual(result.id, "1")
self.assertEqual(result.name, "Album 1")
self.assertEqual(result.cover.id, "1a")
self.assertEqual(result.cover.tags, ["tag1", "tag2"])
class TestAlbumDelete(TestAlbums):
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_delete(self, mock_post):
"""Check that an album can be deleted"""
mock_post.return_value = self._return_value(True)
result = self.client.album.delete(self.test_albums[0], foo="bar")
mock_post.assert_called_with("/album/1/delete.json", foo="bar")
self.assertEqual(result, True)
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_delete_id(self, mock_post):
"""Check that an album can be deleted using its ID"""
mock_post.return_value = self._return_value(True)
result = self.client.album.delete("1", foo="bar")
mock_post.assert_called_with("/album/1/delete.json", foo="bar")
self.assertEqual(result, True)
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_object_delete(self, mock_post):
"""Check that an album can be deleted using the album object directly"""
mock_post.return_value = self._return_value(True)
album = self.test_albums[0]
result = album.delete(foo="bar")
mock_post.assert_called_with("/album/1/delete.json", foo="bar")
self.assertEqual(result, True)
self.assertEqual(album.get_fields(), {})
self.assertEqual(album.id, None)
self.assertEqual(album.name, None)
class TestAlbumAdd(TestAlbums):
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_add(self, mock_post):
""" Check that photos can be added to an album """
mock_post.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.add(self.test_albums[0], self.test_photos,
foo="bar")
mock_post.assert_called_with("/album/1/photo/add.json",
ids=["1a", "2b"], foo="bar")
self.assertEqual(result.id, self.test_albums[1].id)
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_add_id(self, mock_post):
""" Check that photos can be added to an album using IDs """
mock_post.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.add(self.test_albums[0].id,
objects=["1a", "2b"],
object_type="photo",
foo="bar")
mock_post.assert_called_with("/album/1/photo/add.json",
ids=["1a", "2b"], foo="bar")
self.assertEqual(result.id, self.test_albums[1].id)
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_object_add(self, mock_post):
"""
Check that photos can be added to an album using the
album object directly
"""
mock_post.return_value = self._return_value(self.test_albums_dict[1])
album = self.test_albums[0]
album.add(self.test_photos, foo="bar")
mock_post.assert_called_with("/album/1/photo/add.json",
ids=["1a", "2b"], foo="bar")
self.assertEqual(album.id, self.test_albums[1].id)
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_add_single(self, mock_post):
""" Check that a single photo can be added to an album """
mock_post.return_value = self._return_value(self.test_albums_dict[1])
self.test_albums[0].add(self.test_photos[0], foo="bar")
mock_post.assert_called_with("/album/1/photo/add.json",
ids=["1a"], foo="bar")
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_add_invalid_type(self, _):
"""
Check that an exception is raised if an invalid object is added
to an album.
"""
with self.assertRaises(AttributeError):
self.test_albums[0].add([object()])
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_add_multiple_types(self, _):
"""
Check that an exception is raised if multiple types are added
to an album.
"""
with self.assertRaises(ValueError):
self.test_albums[0].add(self.test_photos+self.test_albums)
class TestAlbumRemovePhotos(TestAlbums):
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_remove(self, mock_post):
""" Check that photos can be removed from an album """
mock_post.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.remove(self.test_albums[0], self.test_photos,
foo="bar")
mock_post.assert_called_with("/album/1/photo/remove.json",
ids=["1a", "2b"], foo="bar")
self.assertEqual(result.id, self.test_albums[1].id)
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_remove_id(self, mock_post):
""" Check that photos can be removed from an album using IDs """
mock_post.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.remove(self.test_albums[0].id,
objects=["1a", "2b"],
object_type="photo",
foo="bar")
mock_post.assert_called_with("/album/1/photo/remove.json",
ids=["1a", "2b"], foo="bar")
self.assertEqual(result.id, self.test_albums[1].id)
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_object_remove(self, mock_post):
"""
Check that photos can be removed from an album using the
album object directly
"""
mock_post.return_value = self._return_value(self.test_albums_dict[1])
album = self.test_albums[0]
album.remove(self.test_photos, foo="bar")
mock_post.assert_called_with("/album/1/photo/remove.json",
ids=["1a", "2b"], foo="bar")
self.assertEqual(album.id, self.test_albums[1].id)
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_remove_single(self, mock_post):
""" Check that a single photo can be removed from an album """
mock_post.return_value = self._return_value(self.test_albums_dict[1])
self.test_albums[0].remove(self.test_photos[0], foo="bar")
mock_post.assert_called_with("/album/1/photo/remove.json",
ids=["1a"], foo="bar")
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_remove_invalid_type(self, _):
"""
Check that an exception is raised if an invalid object is removed
from an album.
"""
with self.assertRaises(AttributeError):
self.test_albums[0].remove([object()])
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_remove_multiple_types(self, _):
"""
Check that an exception is raised if multiple types are removed
from an album.
"""
with self.assertRaises(ValueError):
self.test_albums[0].remove(self.test_photos+self.test_albums)
class TestAlbumUpdate(TestAlbums):
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_update(self, mock_post):
"""Check that an album can be updated"""
mock_post.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.update(self.test_albums[0], name="Test")
mock_post.assert_called_with("/album/1/update.json", name="Test")
self.assertEqual(result.id, "2")
self.assertEqual(result.name, "Album 2")
self.assertEqual(result.cover.id, "2b")
self.assertEqual(result.cover.tags, ["tag3", "tag4"])
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_update_id(self, mock_post):
"""Check that an album can be updated using its ID"""
mock_post.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.update("1", name="Test")
mock_post.assert_called_with("/album/1/update.json", name="Test")
self.assertEqual(result.id, "2")
self.assertEqual(result.name, "Album 2")
self.assertEqual(result.cover.id, "2b")
self.assertEqual(result.cover.tags, ["tag3", "tag4"])
@mock.patch.object(trovebox.Trovebox, 'post')
def test_album_object_update(self, mock_post):
"""Check that an album can be updated using the album object directly"""
mock_post.return_value = self._return_value(self.test_albums_dict[1])
album = self.test_albums[0]
album.update(name="Test")
mock_post.assert_called_with("/album/1/update.json", name="Test")
self.assertEqual(album.id, "2")
self.assertEqual(album.name, "Album 2")
self.assertEqual(album.cover.id, "2b")
self.assertEqual(album.cover.tags, ["tag3", "tag4"])
class TestAlbumView(TestAlbums):
@mock.patch.object(trovebox.Trovebox, 'get')
def test_album_view(self, mock_get):
"""Check that an album can be viewed"""
mock_get.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.view(self.test_albums[0], includeElements=True)
mock_get.assert_called_with("/album/1/view.json", includeElements=True)
self.assertEqual(result.id, "2")
self.assertEqual(result.name, "Album 2")
self.assertEqual(result.cover.id, "2b")
self.assertEqual(result.cover.tags, ["tag3", "tag4"])
self.assertEqual(result.photos[0].id, self.test_photos[1].id)
@mock.patch.object(trovebox.Trovebox, 'get')
def test_album_view_id(self, mock_get):
"""Check that an album can be viewed using its ID"""
mock_get.return_value = self._return_value(self.test_albums_dict[1])
result = self.client.album.view("1", includeElements=True)
mock_get.assert_called_with("/album/1/view.json", includeElements=True)
self.assertEqual(result.id, "2")
self.assertEqual(result.name, "Album 2")
self.assertEqual(result.cover.id, "2b")
self.assertEqual(result.cover.tags, ["tag3", "tag4"])
self.assertEqual(result.photos[0].id, self.test_photos[1].id)
@mock.patch.object(trovebox.Trovebox, 'get')
def test_album_object_view(self, mock_get):
"""Check that an album can be viewed using the album object directly"""
mock_get.return_value = self._return_value(self.test_albums_dict[1])
album = self.test_albums[0]
album.view(includeElements=True)
mock_get.assert_called_with("/album/1/view.json", includeElements=True)
self.assertEqual(album.id, "2")
self.assertEqual(album.name, "Album 2")
self.assertEqual(album.cover.id, "2b")
self.assertEqual(album.cover.tags, ["tag3", "tag4"])
self.assertEqual(album.photos[0].id, self.test_photos[1].id)
class TestAlbumMisc(TestAlbums):
def test_update_fields_with_no_cover(self):
"""Check that an album object can be updated with no cover"""
album = self.test_albums[0]
album.cover = None
album.photos = None
# Check that no exception is raised
album._update_fields_with_objects()
| [
1,
515,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
5215,
11187,
13,
2202,
29901,
13,
1678,
1053,
443,
27958,
29906,
408,
443,
27958,
396,
5132,
29906,
29889,
29953,
13,
19499,
16032,
2392,
29901,
13,
1678,
1053,
443,
27958,
13,
13,
5215,
3147,
345,
1884,
13,
13,
1990,
4321,
2499,
2404,
29879,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
1243,
29918,
3069,
353,
376,
1688,
29889,
4773,
29889,
510,
29908,
13,
1678,
1243,
29918,
561,
15788,
29918,
8977,
353,
518,
6377,
333,
1115,
376,
29896,
29874,
613,
376,
11338,
1115,
6796,
4039,
29896,
613,
376,
4039,
29906,
3108,
1118,
13,
462,
4706,
8853,
333,
1115,
376,
29906,
29890,
613,
376,
11338,
1115,
6796,
4039,
29941,
613,
376,
4039,
29946,
3108,
6525,
13,
1678,
1243,
29918,
10336,
29879,
29918,
8977,
353,
518,
6377,
11911,
1115,
8853,
333,
1115,
376,
29896,
29874,
613,
376,
11338,
1115,
6796,
4039,
29896,
613,
376,
4039,
29906,
3108,
1118,
13,
462,
308,
376,
333,
1115,
376,
29896,
613,
13,
462,
308,
376,
978,
1115,
376,
2499,
2404,
29871,
29896,
613,
13,
462,
308,
376,
561,
15788,
1115,
518,
1688,
29918,
561,
15788,
29918,
8977,
29961,
29900,
20526,
13,
462,
308,
376,
7827,
10661,
1115,
29871,
29906,
1118,
13,
462,
4706,
8853,
11911,
1115,
8853,
333,
1115,
376,
29906,
29890,
613,
376,
11338,
1115,
6796,
4039,
29941,
613,
376,
4039,
29946,
3108,
1118,
13,
462,
308,
376,
333,
1115,
376,
29906,
613,
13,
462,
308,
376,
978,
1115,
376,
2499,
2404,
29871,
29906,
613,
13,
462,
308,
376,
561,
15788,
1115,
518,
1688,
29918,
561,
15788,
29918,
8977,
29961,
29896,
20526,
13,
462,
308,
376,
7827,
10661,
1115,
29871,
29906,
6525,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4645,
353,
3147,
345,
1884,
29889,
29911,
307,
345,
1884,
29898,
3069,
29922,
1311,
29889,
1688,
29918,
3069,
29897,
13,
4706,
1583,
29889,
1688,
29918,
561,
15788,
353,
518,
29873,
307,
345,
1884,
29889,
12650,
29889,
21596,
29889,
25971,
29898,
1311,
29889,
4645,
29892,
15373,
29897,
13,
462,
9651,
363,
15373,
297,
1583,
29889,
1688,
29918,
561,
15788,
29918,
8977,
29962,
13,
4706,
1583,
29889,
1688,
29918,
10336,
29879,
353,
518,
29873,
307,
345,
1884,
29889,
12650,
29889,
10336,
29889,
2499,
2404,
29898,
1311,
29889,
4645,
29892,
3769,
29897,
13,
462,
9651,
363,
3769,
297,
1583,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29962,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
903,
2457,
29918,
1767,
29898,
2914,
29892,
2643,
543,
613,
775,
29922,
29906,
29900,
29900,
1125,
13,
4706,
736,
8853,
4906,
1115,
2643,
29892,
376,
401,
1115,
775,
29892,
376,
2914,
1115,
1121,
29913,
13,
13,
1990,
4321,
2499,
2404,
29879,
1293,
29898,
3057,
2499,
2404,
29879,
1125,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
657,
1495,
13,
1678,
822,
1243,
29918,
10336,
29879,
29918,
1761,
29898,
1311,
29892,
11187,
29918,
657,
1125,
13,
4706,
9995,
5596,
393,
278,
3769,
1051,
338,
4133,
5149,
15945,
29908,
13,
4706,
11187,
29918,
657,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29897,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29879,
29889,
1761,
29898,
5431,
543,
1646,
1159,
13,
4706,
11187,
29918,
657,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29879,
29914,
1761,
29889,
3126,
613,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
2914,
511,
29871,
29906,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29900,
1822,
333,
29892,
376,
29896,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29900,
1822,
978,
29892,
376,
2499,
2404,
29871,
29896,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29896,
1822,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29896,
1822,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
657,
1495,
13,
1678,
822,
1243,
29918,
6310,
29918,
2914,
29898,
1311,
29892,
11187,
29918,
657,
1125,
13,
4706,
9995,
5596,
393,
385,
4069,
1121,
338,
27615,
964,
385,
4069,
1051,
9995,
13,
4706,
11187,
29918,
657,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
703,
1159,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29879,
29889,
1761,
29898,
5431,
543,
1646,
1159,
13,
4706,
11187,
29918,
657,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29879,
29914,
1761,
29889,
3126,
613,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29892,
518,
2314,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
657,
1495,
13,
1678,
822,
1243,
29918,
9171,
29918,
5727,
29898,
1311,
29892,
11187,
29918,
657,
1125,
13,
4706,
9995,
5596,
393,
3001,
10661,
29922,
29900,
338,
27615,
964,
385,
4069,
1051,
9995,
13,
4706,
11187,
29918,
657,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
4197,
6377,
7827,
10661,
1115,
29871,
29900,
29913,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29879,
29889,
1761,
29898,
5431,
543,
1646,
1159,
13,
4706,
11187,
29918,
657,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29879,
29914,
1761,
29889,
3126,
613,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29892,
518,
2314,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
657,
1495,
13,
1678,
822,
1243,
29918,
10336,
29879,
29918,
1761,
29918,
18280,
29918,
11911,
29918,
561,
15788,
29898,
1311,
29892,
11187,
29918,
657,
1125,
13,
4706,
9995,
5596,
393,
278,
3769,
1051,
3639,
4612,
15373,
3618,
15945,
29908,
13,
4706,
11187,
29918,
657,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29897,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29879,
29889,
1761,
29898,
5431,
543,
1646,
1159,
13,
4706,
11187,
29918,
657,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29879,
29914,
1761,
29889,
3126,
613,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
2914,
511,
29871,
29906,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29900,
1822,
333,
29892,
376,
29896,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29900,
1822,
978,
29892,
376,
2499,
2404,
29871,
29896,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29900,
1822,
11911,
29889,
333,
29892,
376,
29896,
29874,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29900,
1822,
11911,
29889,
11338,
29892,
6796,
4039,
29896,
613,
376,
4039,
29906,
20068,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29896,
1822,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29896,
1822,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29896,
1822,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29961,
29896,
1822,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
13,
1990,
4321,
2499,
2404,
6422,
29907,
957,
29898,
3057,
2499,
2404,
29879,
1125,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
11911,
29918,
5504,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
4612,
508,
367,
4784,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
11911,
29918,
5504,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1402,
13,
462,
462,
18884,
1583,
29889,
1688,
29918,
561,
15788,
29961,
29900,
1402,
13,
462,
462,
18884,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
11911,
29914,
29896,
29874,
29914,
5504,
29889,
3126,
613,
13,
462,
462,
268,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
11911,
29918,
5504,
29918,
333,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
4612,
508,
367,
4784,
773,
23481,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
11911,
29918,
5504,
703,
29896,
613,
376,
29896,
29874,
613,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
11911,
29914,
29896,
29874,
29914,
5504,
29889,
3126,
613,
13,
462,
462,
268,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
3318,
29918,
11911,
29918,
5504,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
4612,
508,
367,
4784,
773,
278,
3769,
1203,
4153,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
3769,
353,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
29962,
13,
4706,
3769,
29889,
11911,
29918,
5504,
29898,
1311,
29889,
1688,
29918,
561,
15788,
29961,
29896,
1402,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
11911,
29914,
29906,
29890,
29914,
5504,
29889,
3126,
613,
13,
462,
462,
268,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
13,
1990,
4321,
2499,
2404,
4391,
29898,
3057,
2499,
2404,
29879,
1125,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
3258,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
2825,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29900,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
3258,
29898,
978,
543,
3057,
613,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
3258,
29889,
3126,
613,
1024,
543,
3057,
613,
13,
462,
462,
268,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
376,
29896,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
978,
29892,
376,
2499,
2404,
29871,
29896,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
333,
29892,
376,
29896,
29874,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29896,
613,
376,
4039,
29906,
20068,
13,
13,
1990,
4321,
2499,
2404,
12498,
29898,
3057,
2499,
2404,
29879,
1125,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
8143,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
11132,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
5574,
29897,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
8143,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1402,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
8143,
29889,
3126,
613,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29892,
5852,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
8143,
29918,
333,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
11132,
773,
967,
3553,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
5574,
29897,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
8143,
703,
29896,
613,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
8143,
29889,
3126,
613,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29892,
5852,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
3318,
29918,
8143,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
11132,
773,
278,
3769,
1203,
4153,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
5574,
29897,
13,
4706,
3769,
353,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
29962,
13,
4706,
1121,
353,
3769,
29889,
8143,
29898,
5431,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
8143,
29889,
3126,
613,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29892,
5852,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
657,
29918,
9621,
3285,
426,
1800,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
333,
29892,
6213,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
978,
29892,
6213,
29897,
13,
13,
1990,
4321,
2499,
2404,
2528,
29898,
3057,
2499,
2404,
29879,
1125,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
1202,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5399,
393,
20612,
508,
367,
2715,
304,
385,
3769,
9995,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
1202,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1402,
1583,
29889,
1688,
29918,
561,
15788,
29892,
13,
462,
462,
539,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
21596,
29914,
1202,
29889,
3126,
613,
13,
462,
462,
268,
18999,
29922,
3366,
29896,
29874,
613,
376,
29906,
29890,
12436,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29896,
1822,
333,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
1202,
29918,
333,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5399,
393,
20612,
508,
367,
2715,
304,
385,
3769,
773,
23481,
9995,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
1202,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1822,
333,
29892,
13,
462,
462,
539,
3618,
29922,
3366,
29896,
29874,
613,
376,
29906,
29890,
12436,
13,
462,
462,
539,
1203,
29918,
1853,
543,
21596,
613,
13,
462,
462,
539,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
21596,
29914,
1202,
29889,
3126,
613,
13,
462,
462,
268,
18999,
29922,
3366,
29896,
29874,
613,
376,
29906,
29890,
12436,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29896,
1822,
333,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
3318,
29918,
1202,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
13,
4706,
5399,
393,
20612,
508,
367,
2715,
304,
385,
3769,
773,
278,
13,
4706,
3769,
1203,
4153,
13,
4706,
9995,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
3769,
353,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
29962,
13,
4706,
3769,
29889,
1202,
29898,
1311,
29889,
1688,
29918,
561,
15788,
29892,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
21596,
29914,
1202,
29889,
3126,
613,
13,
462,
462,
268,
18999,
29922,
3366,
29896,
29874,
613,
376,
29906,
29890,
12436,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
333,
29892,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29896,
1822,
333,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
1202,
29918,
14369,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5399,
393,
263,
2323,
15373,
508,
367,
2715,
304,
385,
3769,
9995,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1822,
1202,
29898,
1311,
29889,
1688,
29918,
561,
15788,
29961,
29900,
1402,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
21596,
29914,
1202,
29889,
3126,
613,
13,
462,
462,
268,
18999,
29922,
3366,
29896,
29874,
12436,
7953,
543,
1646,
1159,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
1202,
29918,
20965,
29918,
1853,
29898,
1311,
29892,
903,
1125,
13,
4706,
9995,
13,
4706,
5399,
393,
385,
3682,
338,
10425,
565,
385,
8340,
1203,
338,
2715,
13,
4706,
304,
385,
3769,
29889,
13,
4706,
9995,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
6708,
2392,
1125,
13,
9651,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1822,
1202,
4197,
3318,
580,
2314,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
1202,
29918,
20787,
29918,
8768,
29898,
1311,
29892,
903,
1125,
13,
4706,
9995,
13,
4706,
5399,
393,
385,
3682,
338,
10425,
565,
2999,
4072,
526,
2715,
13,
4706,
304,
385,
3769,
29889,
13,
4706,
9995,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
1125,
13,
9651,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1822,
1202,
29898,
1311,
29889,
1688,
29918,
561,
15788,
29974,
1311,
29889,
1688,
29918,
10336,
29879,
29897,
13,
13,
1990,
4321,
2499,
2404,
15941,
4819,
15788,
29898,
3057,
2499,
2404,
29879,
1125,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
5992,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5399,
393,
20612,
508,
367,
6206,
515,
385,
3769,
9995,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
5992,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1402,
1583,
29889,
1688,
29918,
561,
15788,
29892,
13,
462,
462,
3986,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
21596,
29914,
5992,
29889,
3126,
613,
13,
462,
462,
268,
18999,
29922,
3366,
29896,
29874,
613,
376,
29906,
29890,
12436,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29896,
1822,
333,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
5992,
29918,
333,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5399,
393,
20612,
508,
367,
6206,
515,
385,
3769,
773,
23481,
9995,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
5992,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1822,
333,
29892,
13,
462,
462,
3986,
3618,
29922,
3366,
29896,
29874,
613,
376,
29906,
29890,
12436,
13,
462,
462,
3986,
1203,
29918,
1853,
543,
21596,
613,
13,
462,
462,
3986,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
21596,
29914,
5992,
29889,
3126,
613,
13,
462,
462,
268,
18999,
29922,
3366,
29896,
29874,
613,
376,
29906,
29890,
12436,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29896,
1822,
333,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
3318,
29918,
5992,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
13,
4706,
5399,
393,
20612,
508,
367,
6206,
515,
385,
3769,
773,
278,
13,
4706,
3769,
1203,
4153,
13,
4706,
9995,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
3769,
353,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
29962,
13,
4706,
3769,
29889,
5992,
29898,
1311,
29889,
1688,
29918,
561,
15788,
29892,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
21596,
29914,
5992,
29889,
3126,
613,
13,
462,
462,
268,
18999,
29922,
3366,
29896,
29874,
613,
376,
29906,
29890,
12436,
7953,
543,
1646,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
333,
29892,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29896,
1822,
333,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
5992,
29918,
14369,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5399,
393,
263,
2323,
15373,
508,
367,
6206,
515,
385,
3769,
9995,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1822,
5992,
29898,
1311,
29889,
1688,
29918,
561,
15788,
29961,
29900,
1402,
7953,
543,
1646,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
21596,
29914,
5992,
29889,
3126,
613,
13,
462,
462,
268,
18999,
29922,
3366,
29896,
29874,
12436,
7953,
543,
1646,
1159,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
5992,
29918,
20965,
29918,
1853,
29898,
1311,
29892,
903,
1125,
13,
4706,
9995,
13,
4706,
5399,
393,
385,
3682,
338,
10425,
565,
385,
8340,
1203,
338,
6206,
13,
4706,
515,
385,
3769,
29889,
13,
4706,
9995,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
6708,
2392,
1125,
13,
9651,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1822,
5992,
4197,
3318,
580,
2314,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
5992,
29918,
20787,
29918,
8768,
29898,
1311,
29892,
903,
1125,
13,
4706,
9995,
13,
4706,
5399,
393,
385,
3682,
338,
10425,
565,
2999,
4072,
526,
6206,
13,
4706,
515,
385,
3769,
29889,
13,
4706,
9995,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
1125,
13,
9651,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1822,
5992,
29898,
1311,
29889,
1688,
29918,
561,
15788,
29974,
1311,
29889,
1688,
29918,
10336,
29879,
29897,
13,
13,
1990,
4321,
2499,
2404,
6422,
29898,
3057,
2499,
2404,
29879,
1125,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
5504,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
4784,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
5504,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1402,
1024,
543,
3057,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
5504,
29889,
3126,
613,
1024,
543,
3057,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
5504,
29918,
333,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
4784,
773,
967,
3553,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
5504,
703,
29896,
613,
1024,
543,
3057,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
5504,
29889,
3126,
613,
1024,
543,
3057,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
2490,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
3318,
29918,
5504,
29898,
1311,
29892,
11187,
29918,
2490,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
4784,
773,
278,
3769,
1203,
4153,
15945,
29908,
13,
4706,
11187,
29918,
2490,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
3769,
353,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
29962,
13,
4706,
3769,
29889,
5504,
29898,
978,
543,
3057,
1159,
13,
4706,
11187,
29918,
2490,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
5504,
29889,
3126,
613,
1024,
543,
3057,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
13,
1990,
4321,
2499,
2404,
1043,
29898,
3057,
2499,
2404,
29879,
1125,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
657,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
1493,
29898,
1311,
29892,
11187,
29918,
657,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
24774,
15945,
29908,
13,
4706,
11187,
29918,
657,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
1493,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
1402,
3160,
18868,
29922,
5574,
29897,
13,
4706,
11187,
29918,
657,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
1493,
29889,
3126,
613,
3160,
18868,
29922,
5574,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
561,
15788,
29961,
29900,
1822,
333,
29892,
1583,
29889,
1688,
29918,
561,
15788,
29961,
29896,
1822,
333,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
657,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
1493,
29918,
333,
29898,
1311,
29892,
11187,
29918,
657,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
24774,
773,
967,
3553,
15945,
29908,
13,
4706,
11187,
29918,
657,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
10336,
29889,
1493,
703,
29896,
613,
3160,
18868,
29922,
5574,
29897,
13,
4706,
11187,
29918,
657,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
1493,
29889,
3126,
613,
3160,
18868,
29922,
5574,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2914,
29889,
561,
15788,
29961,
29900,
1822,
333,
29892,
1583,
29889,
1688,
29918,
561,
15788,
29961,
29896,
1822,
333,
29897,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
29873,
307,
345,
1884,
29889,
29911,
307,
345,
1884,
29892,
525,
657,
1495,
13,
1678,
822,
1243,
29918,
10336,
29918,
3318,
29918,
1493,
29898,
1311,
29892,
11187,
29918,
657,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
508,
367,
24774,
773,
278,
3769,
1203,
4153,
15945,
29908,
13,
4706,
11187,
29918,
657,
29889,
2457,
29918,
1767,
353,
1583,
3032,
2457,
29918,
1767,
29898,
1311,
29889,
1688,
29918,
10336,
29879,
29918,
8977,
29961,
29896,
2314,
13,
4706,
3769,
353,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
29962,
13,
4706,
3769,
29889,
1493,
29898,
2856,
18868,
29922,
5574,
29897,
13,
4706,
11187,
29918,
657,
29889,
9294,
29918,
13998,
29918,
2541,
11974,
10336,
29914,
29896,
29914,
1493,
29889,
3126,
613,
3160,
18868,
29922,
5574,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
333,
29892,
376,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
978,
29892,
376,
2499,
2404,
29871,
29906,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
11911,
29889,
333,
29892,
376,
29906,
29890,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
11911,
29889,
11338,
29892,
6796,
4039,
29941,
613,
376,
4039,
29946,
20068,
13,
4706,
1583,
29889,
9294,
9843,
29898,
10336,
29889,
561,
15788,
29961,
29900,
1822,
333,
29892,
1583,
29889,
1688,
29918,
561,
15788,
29961,
29896,
1822,
333,
29897,
13,
13,
1990,
4321,
2499,
2404,
29924,
10669,
29898,
3057,
2499,
2404,
29879,
1125,
13,
1678,
822,
1243,
29918,
5504,
29918,
9621,
29918,
2541,
29918,
1217,
29918,
11911,
29898,
1311,
1125,
13,
4706,
9995,
5596,
393,
385,
3769,
1203,
508,
367,
4784,
411,
694,
4612,
15945,
29908,
13,
4706,
3769,
353,
1583,
29889,
1688,
29918,
10336,
29879,
29961,
29900,
29962,
13,
4706,
3769,
29889,
11911,
353,
6213,
13,
4706,
3769,
29889,
561,
15788,
353,
6213,
13,
4706,
396,
5399,
393,
694,
3682,
338,
10425,
13,
4706,
3769,
3032,
5504,
29918,
9621,
29918,
2541,
29918,
12650,
580,
13,
2
] |
constants/nodetype.py | vladzaharia/meshnet | 1 | 36020 | # Node types
TYPE_NODE = b'\x10'
TYPE_NODE_NR = b'\x11'
# Gateway types
TYPE_GATEWAY = b'\x20'
TYPE_GATEWAY_TIME = b'\x21'
# Special types
TYPE_PROVISIONING = b'\xFF' | [
1,
396,
9071,
4072,
13,
11116,
29918,
6632,
2287,
353,
289,
12764,
29916,
29896,
29900,
29915,
13,
11116,
29918,
6632,
2287,
29918,
16514,
353,
289,
12764,
29916,
29896,
29896,
29915,
13,
13,
29937,
22510,
1582,
4072,
13,
11116,
29918,
29954,
3040,
12982,
29979,
353,
289,
12764,
29916,
29906,
29900,
29915,
13,
11116,
29918,
29954,
3040,
12982,
29979,
29918,
15307,
353,
289,
12764,
29916,
29906,
29896,
29915,
13,
13,
29937,
12630,
4072,
13,
11116,
29918,
8618,
28607,
2725,
4214,
353,
289,
12764,
29916,
4198,
29915,
2
] |
setup.py | adobe/havoc | 3 | 183924 | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='havoc',
version='0.1.0',
description='HAvOC (HAproxy clOud Configuration)',
author='TubeMogul Inc.',
install_requires=[
'python-daemon',
'jinja2',
'click',
'boto',
'python-novaclient',
'PyYAML'
],
packages=find_packages(),
package_dir={'havoc': 'havoc'},
scripts=['bin/havoc']
)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
3166,
731,
21245,
8789,
1053,
6230,
29892,
1284,
29918,
8318,
13,
13,
14669,
29898,
978,
2433,
8708,
542,
742,
13,
4706,
1873,
2433,
29900,
29889,
29896,
29889,
29900,
742,
13,
4706,
6139,
2433,
29950,
12810,
20166,
313,
15715,
14701,
1067,
29949,
566,
20999,
29897,
742,
13,
4706,
4148,
2433,
13425,
29924,
468,
352,
9266,
29889,
742,
13,
4706,
2601,
29918,
276,
339,
2658,
11759,
13,
9651,
525,
4691,
29899,
1388,
9857,
742,
13,
9651,
525,
28789,
1764,
29906,
742,
13,
9651,
525,
3808,
742,
13,
9651,
525,
29890,
3747,
742,
13,
9651,
525,
4691,
29899,
13715,
562,
1593,
742,
13,
9651,
525,
19737,
29979,
23956,
29915,
13,
4706,
21251,
13,
4706,
9741,
29922,
2886,
29918,
8318,
3285,
13,
4706,
3577,
29918,
3972,
3790,
29915,
8708,
542,
2396,
525,
8708,
542,
16675,
13,
4706,
12078,
29922,
1839,
2109,
29914,
8708,
542,
2033,
13,
4706,
1723,
13,
2
] |
Codeforces/452/B.py | zzh8829/CompetitiveProgramming | 1 | 92176 | <filename>Codeforces/452/B.py
from math import *
def d(p1x,p1y,p2x,p2y,p3x,p3y,p4x,p4y):
if len(set([(p1x,p1y),(p2x,p2y),(p3x,p3y),(p4x,p4y)])) != 4:
return (0,0)
dis = sqrt((p2x-p1x)*(p2x-p1x) + (p2y-p1y)*(p2y-p1y)) + \
sqrt((p3x-p2x)*(p3x-p2x) + (p3y-p2y)*(p3y-p2y)) + \
sqrt((p4x-p3x)*(p4x-p3x) + (p4y-p3y)*(p4y-p3y))
return (dis,(p1x,p1y,p2x,p2y,p3x,p3y,p4x,p4y))
def bf():
l = []
for p1x in range(0,n+1):
for p1y in range(0,m+1):
for p2x in range(0,n+1):
for p2y in range(0,m+1):
for p3x in range(0,n+1):
for p3y in range(0,m+1):
for p4x in range(0,n+1):
for p4y in range(0,m+1):
if len(set([(p1x,p1y),(p2x,p2y),(p3x,p3y),(p4x,p4y)])) == 4:
l.append(d(p1x,p1y,p2x,p2y,p3x,p3y,p4x,p4y))
print(list(reversed(sorted(l)))[0])
n,m = list(map(int,input().split()))
#bf()
if m==0:
print("%d %d\n%d %d\n%d %d\n%d %d\n"%(1,0,n,m,0,0,n-1,m))
elif n==0:
print("%d %d\n%d %d\n%d %d\n%d %d\n"%(0,1,n,m,0,0,n,m-1))
else:
l = []
l.append(d(n-1,m,0,0,n,m,0,1))
l.append(d(n,m-1,0,0,n,m,1,0))
l.append(d(1,0,n,m,0,0,n-1,m))
l.append(d(0,1,n,m,0,0,n,m-1))
l.append(d(0,0,n,m,0,1,n-1,m))
l.append(d(0,0,n,m,1,0,n,m-1))
l.append(d(0,0,n,m,n,0,0,m))
l.append(d(0,0,n,m,0,m,n,0))
a = list(reversed(sorted(l)))[0]
#print(a)
a = a[1]
for i in range(4):
print(a[i*2],a[i*2+1])
| [
1,
529,
9507,
29958,
3399,
1454,
778,
29914,
29946,
29945,
29906,
29914,
29933,
29889,
2272,
13,
3166,
5844,
1053,
334,
30004,
13,
30004,
13,
1753,
270,
29898,
29886,
29896,
29916,
29892,
29886,
29896,
29891,
29892,
29886,
29906,
29916,
29892,
29886,
29906,
29891,
29892,
29886,
29941,
29916,
29892,
29886,
29941,
29891,
29892,
29886,
29946,
29916,
29892,
29886,
29946,
29891,
1125,
30004,
13,
12,
361,
7431,
29898,
842,
4197,
29898,
29886,
29896,
29916,
29892,
29886,
29896,
29891,
21336,
29886,
29906,
29916,
29892,
29886,
29906,
29891,
21336,
29886,
29941,
29916,
29892,
29886,
29941,
29891,
21336,
29886,
29946,
29916,
29892,
29886,
29946,
29891,
4638,
876,
2804,
29871,
29946,
29901,
30004,
13,
12,
12,
2457,
313,
29900,
29892,
29900,
8443,
13,
12,
2218,
353,
18074,
2273,
3552,
29886,
29906,
29916,
29899,
29886,
29896,
29916,
11877,
29898,
29886,
29906,
29916,
29899,
29886,
29896,
29916,
29897,
718,
313,
29886,
29906,
29891,
29899,
29886,
29896,
29891,
11877,
29898,
29886,
29906,
29891,
29899,
29886,
29896,
29891,
876,
718,
320,
30004,
13,
12,
12,
3676,
3552,
29886,
29941,
29916,
29899,
29886,
29906,
29916,
11877,
29898,
29886,
29941,
29916,
29899,
29886,
29906,
29916,
29897,
718,
313,
29886,
29941,
29891,
29899,
29886,
29906,
29891,
11877,
29898,
29886,
29941,
29891,
29899,
29886,
29906,
29891,
876,
718,
320,
30004,
13,
12,
12,
3676,
3552,
29886,
29946,
29916,
29899,
29886,
29941,
29916,
11877,
29898,
29886,
29946,
29916,
29899,
29886,
29941,
29916,
29897,
718,
313,
29886,
29946,
29891,
29899,
29886,
29941,
29891,
11877,
29898,
29886,
29946,
29891,
29899,
29886,
29941,
29891,
876,
30004,
13,
12,
2457,
313,
2218,
22657,
29886,
29896,
29916,
29892,
29886,
29896,
29891,
29892,
29886,
29906,
29916,
29892,
29886,
29906,
29891,
29892,
29886,
29941,
29916,
29892,
29886,
29941,
29891,
29892,
29886,
29946,
29916,
29892,
29886,
29946,
29891,
876,
30004,
13,
30004,
13,
1753,
289,
29888,
7295,
30004,
13,
12,
29880,
353,
5159,
30004,
13,
12,
1454,
282,
29896,
29916,
297,
3464,
29898,
29900,
29892,
29876,
29974,
29896,
1125,
30004,
13,
12,
12,
1454,
282,
29896,
29891,
297,
3464,
29898,
29900,
29892,
29885,
29974,
29896,
1125,
30004,
13,
12,
12,
12,
1454,
282,
29906,
29916,
297,
3464,
29898,
29900,
29892,
29876,
29974,
29896,
1125,
30004,
13,
12,
12,
12,
12,
1454,
282,
29906,
29891,
297,
3464,
29898,
29900,
29892,
29885,
29974,
29896,
1125,
30004,
13,
12,
12,
12,
12,
12,
1454,
282,
29941,
29916,
297,
3464,
29898,
29900,
29892,
29876,
29974,
29896,
1125,
30004,
13,
12,
12,
12,
12,
12,
12,
1454,
282,
29941,
29891,
297,
3464,
29898,
29900,
29892,
29885,
29974,
29896,
1125,
30004,
13,
12,
12,
12,
12,
12,
12,
12,
1454,
282,
29946,
29916,
297,
3464,
29898,
29900,
29892,
29876,
29974,
29896,
1125,
30004,
13,
12,
12,
12,
12,
12,
12,
12,
12,
1454,
282,
29946,
29891,
297,
3464,
29898,
29900,
29892,
29885,
29974,
29896,
1125,
30004,
13,
12,
12,
12,
12,
12,
12,
12,
12,
12,
361,
7431,
29898,
842,
4197,
29898,
29886,
29896,
29916,
29892,
29886,
29896,
29891,
21336,
29886,
29906,
29916,
29892,
29886,
29906,
29891,
21336,
29886,
29941,
29916,
29892,
29886,
29941,
29891,
21336,
29886,
29946,
29916,
29892,
29886,
29946,
29891,
4638,
876,
1275,
29871,
29946,
29901,
30004,
13,
12,
12,
12,
12,
12,
12,
12,
12,
12,
12,
29880,
29889,
4397,
29898,
29881,
29898,
29886,
29896,
29916,
29892,
29886,
29896,
29891,
29892,
29886,
29906,
29916,
29892,
29886,
29906,
29891,
29892,
29886,
29941,
29916,
29892,
29886,
29941,
29891,
29892,
29886,
29946,
29916,
29892,
29886,
29946,
29891,
876,
30004,
13,
30004,
13,
12,
2158,
29898,
1761,
29898,
276,
874,
287,
29898,
24582,
29898,
29880,
4961,
29961,
29900,
2314,
30004,
13,
30004,
13,
29876,
29892,
29885,
353,
1051,
29898,
1958,
29898,
524,
29892,
2080,
2141,
5451,
22130,
30004,
13,
30004,
13,
29937,
1635,
26471,
13,
30004,
13,
361,
286,
1360,
29900,
29901,
30004,
13,
12,
2158,
11702,
29881,
1273,
29881,
29905,
29876,
29995,
29881,
1273,
29881,
29905,
29876,
29995,
29881,
1273,
29881,
29905,
29876,
29995,
29881,
1273,
29881,
29905,
29876,
29908,
29995,
29898,
29896,
29892,
29900,
29892,
29876,
29892,
29885,
29892,
29900,
29892,
29900,
29892,
29876,
29899,
29896,
29892,
29885,
876,
30004,
13,
23681,
302,
1360,
29900,
29901,
30004,
13,
12,
2158,
11702,
29881,
1273,
29881,
29905,
29876,
29995,
29881,
1273,
29881,
29905,
29876,
29995,
29881,
1273,
29881,
29905,
29876,
29995,
29881,
1273,
29881,
29905,
29876,
29908,
29995,
29898,
29900,
29892,
29896,
29892,
29876,
29892,
29885,
29892,
29900,
29892,
29900,
29892,
29876,
29892,
29885,
29899,
29896,
876,
30004,
13,
2870,
29901,
30004,
13,
12,
29880,
353,
5159,
30004,
13,
12,
29880,
29889,
4397,
29898,
29881,
29898,
29876,
29899,
29896,
29892,
29885,
29892,
29900,
29892,
29900,
29892,
29876,
29892,
29885,
29892,
29900,
29892,
29896,
876,
30004,
13,
12,
29880,
29889,
4397,
29898,
29881,
29898,
29876,
29892,
29885,
29899,
29896,
29892,
29900,
29892,
29900,
29892,
29876,
29892,
29885,
29892,
29896,
29892,
29900,
876,
30004,
13,
12,
29880,
29889,
4397,
29898,
29881,
29898,
29896,
29892,
29900,
29892,
29876,
29892,
29885,
29892,
29900,
29892,
29900,
29892,
29876,
29899,
29896,
29892,
29885,
876,
30004,
13,
12,
29880,
29889,
4397,
29898,
29881,
29898,
29900,
29892,
29896,
29892,
29876,
29892,
29885,
29892,
29900,
29892,
29900,
29892,
29876,
29892,
29885,
29899,
29896,
876,
30004,
13,
12,
29880,
29889,
4397,
29898,
29881,
29898,
29900,
29892,
29900,
29892,
29876,
29892,
29885,
29892,
29900,
29892,
29896,
29892,
29876,
29899,
29896,
29892,
29885,
876,
30004,
13,
12,
29880,
29889,
4397,
29898,
29881,
29898,
29900,
29892,
29900,
29892,
29876,
29892,
29885,
29892,
29896,
29892,
29900,
29892,
29876,
29892,
29885,
29899,
29896,
876,
30004,
13,
12,
29880,
29889,
4397,
29898,
29881,
29898,
29900,
29892,
29900,
29892,
29876,
29892,
29885,
29892,
29876,
29892,
29900,
29892,
29900,
29892,
29885,
876,
30004,
13,
12,
29880,
29889,
4397,
29898,
29881,
29898,
29900,
29892,
29900,
29892,
29876,
29892,
29885,
29892,
29900,
29892,
29885,
29892,
29876,
29892,
29900,
876,
30004,
13,
12,
30004,
13,
12,
29874,
353,
1051,
29898,
276,
874,
287,
29898,
24582,
29898,
29880,
4961,
29961,
29900,
29962,
30004,
13,
12,
29937,
2158,
29898,
29874,
8443,
13,
12,
29874,
353,
263,
29961,
29896,
29962,
30004,
13,
12,
1454,
474,
297,
3464,
29898,
29946,
1125,
30004,
13,
12,
12,
2158,
29898,
29874,
29961,
29875,
29930,
29906,
1402,
29874,
29961,
29875,
29930,
29906,
29974,
29896,
2314,
30004,
13,
30004,
13,
2
] |
tica_models.py | DEIB-GECO/TICA_v2 | 0 | 1603681 | <filename>tica_models.py
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from __future__ import unicode_literals
from django.db import models
class DjangoMigrations(models.Model):
app = models.CharField(max_length=255)
name = models.CharField(max_length=255)
applied = models.DateTimeField()
class Meta:
managed = False
db_table = 'django_migrations'
class Hepg2(models.Model):
tf1 = models.CharField(primary_key=True, max_length=20)
tf2 = models.CharField(max_length=20)
distance = models.IntegerField()
count_all = models.IntegerField()
count_tss = models.IntegerField()
cumulative_count_all = models.IntegerField()
class Meta:
managed = False
db_table = 'hepg2'
unique_together = (('tf1', 'tf2', 'distance'),)
class Hepg2Null(models.Model):
tf1 = models.CharField(primary_key=True, max_length=20)
tf2 = models.CharField(max_length=20)
max_distance = models.IntegerField()
average = models.FloatField(blank=True, null=True)
median = models.FloatField(blank=True, null=True)
mad = models.FloatField(blank=True, null=True)
tail_percentage_array = models.TextField(blank=True, null=True) # This field type is a guess.
class Meta:
managed = False
db_table = 'hepg2_null'
unique_together = (('tf1', 'tf2', 'max_distance'),)
class Hepg2Temp(models.Model):
tf1 = models.CharField(max_length=20)
tf2 = models.CharField(max_length=20)
dist = models.IntegerField()
is_tss = models.IntegerField()
class Meta:
managed = False
db_table = 'hepg2_temp'
| [
1,
529,
9507,
29958,
29873,
983,
29918,
9794,
29889,
2272,
13,
29937,
910,
338,
385,
4469,
29899,
13525,
15337,
1904,
3883,
29889,
13,
29937,
887,
29915,
645,
505,
304,
437,
278,
1494,
7522,
304,
5941,
445,
701,
29901,
13,
29937,
259,
334,
390,
799,
3881,
4733,
29915,
1797,
13,
29937,
259,
334,
8561,
1854,
1269,
1904,
756,
697,
1746,
411,
7601,
29918,
1989,
29922,
5574,
13,
29937,
259,
334,
8561,
1854,
1269,
19358,
2558,
756,
421,
265,
29918,
8143,
29952,
731,
304,
278,
7429,
6030,
29889,
13,
29937,
259,
334,
15154,
421,
25240,
353,
7700,
29952,
3454,
565,
366,
6398,
304,
2758,
15337,
304,
1653,
29892,
6623,
29892,
322,
5217,
278,
1591,
13,
29937,
5169,
295,
3889,
304,
19508,
278,
4733,
29892,
541,
1016,
29915,
29873,
19508,
4833,
29918,
2371,
1819,
470,
1746,
2983,
29889,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
13,
13,
1990,
15337,
29924,
4481,
800,
29898,
9794,
29889,
3195,
1125,
13,
1678,
623,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29906,
29945,
29945,
29897,
13,
1678,
1024,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29906,
29945,
29945,
29897,
13,
1678,
7436,
353,
4733,
29889,
11384,
3073,
580,
13,
13,
1678,
770,
20553,
29901,
13,
4706,
8745,
353,
7700,
13,
4706,
4833,
29918,
2371,
353,
525,
14095,
29918,
26983,
800,
29915,
13,
13,
13,
1990,
940,
4061,
29906,
29898,
9794,
29889,
3195,
1125,
13,
1678,
15886,
29896,
353,
4733,
29889,
27890,
29898,
16072,
29918,
1989,
29922,
5574,
29892,
4236,
29918,
2848,
29922,
29906,
29900,
29897,
13,
1678,
15886,
29906,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29906,
29900,
29897,
13,
1678,
5418,
353,
4733,
29889,
7798,
3073,
580,
13,
1678,
2302,
29918,
497,
353,
4733,
29889,
7798,
3073,
580,
13,
1678,
2302,
29918,
29873,
893,
353,
4733,
29889,
7798,
3073,
580,
13,
1678,
13299,
28524,
29918,
2798,
29918,
497,
353,
4733,
29889,
7798,
3073,
580,
13,
13,
1678,
770,
20553,
29901,
13,
4706,
8745,
353,
7700,
13,
4706,
4833,
29918,
2371,
353,
525,
354,
4061,
29906,
29915,
13,
4706,
5412,
29918,
29873,
12966,
353,
313,
877,
13264,
29896,
742,
525,
13264,
29906,
742,
525,
19244,
5477,
29897,
13,
13,
13,
1990,
940,
4061,
29906,
7327,
29898,
9794,
29889,
3195,
1125,
13,
1678,
15886,
29896,
353,
4733,
29889,
27890,
29898,
16072,
29918,
1989,
29922,
5574,
29892,
4236,
29918,
2848,
29922,
29906,
29900,
29897,
13,
1678,
15886,
29906,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29906,
29900,
29897,
13,
1678,
4236,
29918,
19244,
353,
4733,
29889,
7798,
3073,
580,
13,
1678,
6588,
353,
4733,
29889,
11031,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
1678,
19194,
353,
4733,
29889,
11031,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
1678,
10395,
353,
4733,
29889,
11031,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
1678,
12464,
29918,
25376,
482,
29918,
2378,
353,
4733,
29889,
15778,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
29871,
396,
910,
1746,
1134,
338,
263,
4140,
29889,
13,
13,
1678,
770,
20553,
29901,
13,
4706,
8745,
353,
7700,
13,
4706,
4833,
29918,
2371,
353,
525,
354,
4061,
29906,
29918,
4304,
29915,
13,
4706,
5412,
29918,
29873,
12966,
353,
313,
877,
13264,
29896,
742,
525,
13264,
29906,
742,
525,
3317,
29918,
19244,
5477,
29897,
13,
13,
13,
1990,
940,
4061,
29906,
15637,
29898,
9794,
29889,
3195,
1125,
13,
1678,
15886,
29896,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29906,
29900,
29897,
13,
1678,
15886,
29906,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29906,
29900,
29897,
13,
1678,
1320,
353,
4733,
29889,
7798,
3073,
580,
13,
1678,
338,
29918,
29873,
893,
353,
4733,
29889,
7798,
3073,
580,
13,
13,
1678,
770,
20553,
29901,
13,
4706,
8745,
353,
7700,
13,
4706,
4833,
29918,
2371,
353,
525,
354,
4061,
29906,
29918,
7382,
29915,
13,
2
] |
Users/models.py | titusnjuguna/FreeDom | 1 | 4604 | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
class Profile(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg',
upload_to='profile_pic/')
def __str__(self):
return f'{self.user.username} Profile'
def save(self,*args,**kwargs):
super().save()
img = Image(self.prof_pic.path)
if img.height > 300 and img.width > 300:
output_size = (300,300)
img.thumbnail(output_size)
img.save(self.prof_pic.path)
| [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
4911,
13,
3166,
349,
6227,
1053,
7084,
13,
13,
1990,
20802,
29898,
9794,
29889,
3195,
1125,
13,
1678,
1404,
353,
4733,
29889,
27755,
2558,
29898,
2659,
29892,
373,
29918,
8143,
29922,
9794,
29889,
29907,
3289,
5454,
2287,
29897,
13,
1678,
1967,
353,
4733,
29889,
2940,
3073,
29898,
4381,
2433,
4381,
29889,
6173,
742,
13,
462,
795,
6441,
29918,
517,
2433,
10185,
29918,
16447,
29914,
1495,
13,
462,
1669,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
285,
29915,
29912,
1311,
29889,
1792,
29889,
6786,
29913,
20802,
29915,
13,
13,
1678,
822,
4078,
29898,
1311,
29892,
29930,
5085,
29892,
1068,
19290,
1125,
13,
4706,
2428,
2141,
7620,
580,
13,
4706,
10153,
353,
7084,
29898,
1311,
29889,
23221,
29918,
16447,
29889,
2084,
29897,
13,
4706,
565,
10153,
29889,
3545,
1405,
29871,
29941,
29900,
29900,
322,
10153,
29889,
2103,
1405,
29871,
29941,
29900,
29900,
29901,
13,
9651,
1962,
29918,
2311,
353,
313,
29941,
29900,
29900,
29892,
29941,
29900,
29900,
29897,
13,
9651,
10153,
29889,
386,
21145,
29898,
4905,
29918,
2311,
29897,
13,
9651,
10153,
29889,
7620,
29898,
1311,
29889,
23221,
29918,
16447,
29889,
2084,
29897,
13,
13,
308,
13,
2
] |
bcipy/acquisition/protocols/lsl/lsl_device.py | theGreenJedi/BciPy | 0 | 74765 | <reponame>theGreenJedi/BciPy
# pylint: disable=fixme
"""Defines the driver for the Device for communicating with
LabStreamingLayer (LSL)."""
import logging
import pylsl
from bcipy.acquisition.protocols.device import Device
log = logging.getLogger(__name__)
LSL_TIMESTAMP = 'LSL_timestamp'
class Marker():
"""Data class which wraps a LSL marker; data pulled from a marker stream is
a tuple where the first item is a list of channels and second item is the
timestamp. Assumes that marker inlet only has a single channel."""
def __init__(self, data=(None, None)):
super(Marker, self).__init__()
self.channels, self.timestamp = data
@classmethod
def empty(cls):
"""Creates an empty Marker."""
return Marker()
def __repr__(self):
return f"<value: {self.trg}, timestamp: {self.timestamp}>"
@property
def is_empty(self):
"""Test to see if the current marker is empty."""
return self.channels is None or self.timestamp is None
@property
def trg(self):
"""Get the trigger."""
# pylint: disable=unsubscriptable-object
return self.channels[0] if self.channels else None
def inlet_name(inlet) -> str:
"""Returns the name of a pylsl streamInlet."""
name = '_'.join(inlet.info().name().split())
return name.replace('-', '_')
class LslDevice(Device):
"""Driver for any device streaming data through the LabStreamingLayer lib.
Parameters
----------
connection_params : dict
parameters used to connect with the server.
channels: list, optional
list of channel names
fs: float, optional
sample frequency in (Hz)
include_lsl_timestamp: bool, optional
if True, appends the LSL_timestamp to each sample.
trg_channel_name: str, optional
if present, the marker channel with this name is used as the TRG
channel in the output and queried for offset; otherwise the last
marker_channel added is used.
"""
# pylint: disable=too-many-instance-attributes,too-many-arguments
def __init__(self, connection_params, fs=None, channels=None,
include_lsl_timestamp=False,
trg_channel_name='BCI_Stimulus_Markers'):
super(LslDevice, self).__init__(connection_params, fs, channels)
self._appended_channels = []
self.trg_channel_name = trg_channel_name
if include_lsl_timestamp:
self._appended_channels.append(LSL_TIMESTAMP)
self._inlet = None
self._marker_inlets = None
# There can be 1 current marker for each marker channel.
self.current_markers = {}
@property
def name(self):
if 'stream_name' in self._connection_params:
return self._connection_params['stream_name']
if self._inlet and self._inlet.info().name():
return self._inlet.info().name()
return 'LSL'
def connect(self):
"""Connect to the data source."""
# Streams can be queried by name, type (xdf file format spec), and
# other metadata.
# NOTE: According to the documentation this is a blocking call that can
# only be performed on the main thread in Linux systems. So far testing
# seems fine when done in a separate multiprocessing.Process.
eeg_streams = pylsl.resolve_stream('type', 'EEG')
marker_streams = pylsl.resolve_stream('type', 'Markers')
assert eeg_streams, "One or more EEG streams must be present"
assert marker_streams, "One or more Marker streams must be present"
self._inlet = pylsl.StreamInlet(eeg_streams[0])
self._marker_inlets = [pylsl.StreamInlet(inlet)
for inlet in marker_streams]
# initialize the current_markers for each marker stream.
for inlet in self._marker_inlets:
self.current_markers[inlet_name(inlet)] = Marker.empty()
def acquisition_init(self):
"""Initialization step. Reads the channel and data rate information
sent by the server and sets the appropriate instance variables.
"""
assert self._inlet is not None, "Connect call is required."
metadata = self._inlet.info()
log.debug(metadata.as_xml())
for marker_inlet in self._marker_inlets:
log.debug("Streaming from marker inlet: %s",
inlet_name(marker_inlet))
info_channels = self._read_channels(metadata)
info_fs = metadata.nominal_srate()
# If channels are not initially provided, set them from the metadata.
# Otherwise, confirm that provided channels match metadata, or meta is
# empty.
if not self.channels:
self.channels = info_channels
assert self.channels, "Channels must be provided"
else:
if info_channels and self.channels != info_channels:
raise Exception("Channels read from the device do not match "
"the provided parameters")
assert len(self.channels) == (metadata.channel_count() +
len(self._appended_channels) +
len(self._marker_inlets)),\
"Channel count error"
if not self.fs:
self.fs = info_fs
elif self.fs != info_fs:
raise Exception("Sample frequency read from device does not match "
"the provided parameter")
def _trigger_inlet_index(self):
"""Index of the marker inlet that should be used for the TRG column.
If the trg_channel_name parameter is provided, and there is a marker
inlet with this name, that is used, otherwise the last marker inlet
is used. Returns -1 if there are no marker inlets."""
inlet_names = [inlet_name(inlet) for inlet in self._marker_inlets]
if self.trg_channel_name in inlet_names:
return inlet_names.index(self.trg_channel_name)
return len(inlet_names) - 1
def _read_channels(self, info):
"""Read channels from the stream metadata if provided and return them
as a list. If channels were not specified, returns an empty list.
Parameters
----------
info : pylsl.XMLElement
Returns
-------
list of str
"""
channels = []
if info.desc().child("channels").empty():
return channels
channel = info.desc().child("channels").child("channel")
for _ in range(info.channel_count()):
channel_name = channel.child_value("label")
# If the data stream has a TRG channel, rename it so it doesn't
# conflict with the marker channel.
if channel_name == 'TRG' and self._marker_inlets:
channel_name = "TRG_device_stream"
channels.append(channel_name)
channel = channel.next_sibling()
for appended_channel in self._appended_channels:
channels.append(appended_channel)
trg_marker_index = self._trigger_inlet_index()
for i, inlet in enumerate(self._marker_inlets):
col = inlet_name(inlet)
if i == trg_marker_index:
col = 'TRG'
channels.append(col)
return channels
def read_data(self):
"""Reads the next packet and returns the sensor data.
Returns
-------
list with an item for each channel.
"""
sample, timestamp = self._inlet.pull_sample()
# Useful for debugging.
if LSL_TIMESTAMP in self._appended_channels:
sample.append(timestamp)
for marker_inlet in self._marker_inlets:
name = inlet_name(marker_inlet)
marker = self.current_markers.get(name, Marker().empty())
# Only attempt to retrieve a marker from the inlet if we have
# merged the last one with a sample.
if marker.is_empty:
# A timeout of 0.0 only returns a sample if one is buffered for
# immediate pickup. Without a timeout, this is a blocking call.
marker_data = marker_inlet.pull_sample(timeout=0.0)
marker = Marker(marker_data)
self.current_markers[name] = marker
if not marker.is_empty:
log.debug(
"Read marker %s from %s; current sample time: %s",
marker, name, timestamp)
trg = "0"
if not marker.is_empty and timestamp >= marker.timestamp:
trg = marker.trg
log.debug(("Appending %s marker %s to sample at time %s; ",
"time diff: %s"),
name, marker, timestamp,
timestamp - marker.timestamp)
self.current_markers[name] = Marker.empty() # clear current
# Add marker field to sample
sample.append(trg)
return sample
| [
1,
529,
276,
1112,
420,
29958,
1552,
24599,
29967,
15844,
29914,
29933,
455,
19737,
13,
29937,
282,
2904,
524,
29901,
11262,
29922,
5878,
1004,
13,
15945,
29908,
3206,
1475,
278,
7156,
363,
278,
21830,
363,
7212,
1218,
411,
13,
28632,
3835,
292,
14420,
313,
8547,
29931,
467,
15945,
29908,
13,
5215,
12183,
13,
13,
5215,
282,
2904,
2536,
13,
3166,
289,
455,
2272,
29889,
562,
23493,
29889,
20464,
29879,
29889,
10141,
1053,
21830,
13,
13,
1188,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
8547,
29931,
29918,
15307,
1254,
19297,
353,
525,
8547,
29931,
29918,
16394,
29915,
13,
13,
13,
1990,
4485,
261,
7295,
13,
1678,
9995,
1469,
770,
607,
11463,
567,
263,
365,
12750,
17456,
29936,
848,
20043,
515,
263,
17456,
4840,
338,
13,
1678,
263,
18761,
988,
278,
937,
2944,
338,
263,
1051,
310,
18196,
322,
1473,
2944,
338,
278,
13,
1678,
14334,
29889,
4007,
9351,
393,
17456,
297,
1026,
871,
756,
263,
2323,
8242,
1213,
15945,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
848,
7607,
8516,
29892,
6213,
22164,
13,
4706,
2428,
29898,
24619,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
305,
12629,
29892,
1583,
29889,
16394,
353,
848,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
4069,
29898,
25932,
1125,
13,
4706,
9995,
9832,
1078,
385,
4069,
4485,
261,
1213,
15945,
13,
4706,
736,
4485,
261,
580,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
285,
29908,
29966,
1767,
29901,
426,
1311,
29889,
509,
29887,
1118,
14334,
29901,
426,
1311,
29889,
16394,
29913,
11903,
13,
13,
1678,
732,
6799,
13,
1678,
822,
338,
29918,
6310,
29898,
1311,
1125,
13,
4706,
9995,
3057,
304,
1074,
565,
278,
1857,
17456,
338,
4069,
1213,
15945,
13,
4706,
736,
1583,
29889,
305,
12629,
338,
6213,
470,
1583,
29889,
16394,
338,
6213,
13,
13,
1678,
732,
6799,
13,
1678,
822,
534,
29887,
29898,
1311,
1125,
13,
4706,
9995,
2577,
278,
7135,
1213,
15945,
13,
4706,
396,
282,
2904,
524,
29901,
11262,
29922,
348,
1491,
2154,
519,
29899,
3318,
13,
4706,
736,
1583,
29889,
305,
12629,
29961,
29900,
29962,
565,
1583,
29889,
305,
12629,
1683,
6213,
13,
13,
13,
1753,
297,
1026,
29918,
978,
29898,
262,
1026,
29897,
1599,
851,
29901,
13,
1678,
9995,
11609,
29879,
278,
1024,
310,
263,
282,
2904,
2536,
4840,
797,
1026,
1213,
15945,
13,
1678,
1024,
353,
22868,
4286,
7122,
29898,
262,
1026,
29889,
3888,
2141,
978,
2141,
5451,
3101,
13,
1678,
736,
1024,
29889,
6506,
877,
29899,
742,
22868,
1495,
13,
13,
13,
1990,
365,
2536,
11501,
29898,
11501,
1125,
13,
1678,
9995,
12376,
363,
738,
4742,
24820,
848,
1549,
278,
12016,
3835,
292,
14420,
4303,
29889,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
4706,
3957,
29918,
7529,
584,
9657,
13,
9651,
4128,
1304,
304,
4511,
411,
278,
1923,
29889,
13,
4706,
18196,
29901,
1051,
29892,
13136,
13,
9651,
1051,
310,
8242,
2983,
13,
4706,
18920,
29901,
5785,
29892,
13136,
13,
9651,
4559,
10868,
297,
313,
12661,
29897,
13,
4706,
3160,
29918,
29880,
2536,
29918,
16394,
29901,
6120,
29892,
13136,
13,
9651,
565,
5852,
29892,
623,
1975,
278,
365,
12750,
29918,
16394,
304,
1269,
4559,
29889,
13,
4706,
534,
29887,
29918,
12719,
29918,
978,
29901,
851,
29892,
13136,
13,
9651,
565,
2198,
29892,
278,
17456,
8242,
411,
445,
1024,
338,
1304,
408,
278,
10014,
29954,
13,
9651,
8242,
297,
278,
1962,
322,
22320,
1000,
363,
9210,
29936,
6467,
278,
1833,
13,
9651,
17456,
29918,
12719,
2715,
338,
1304,
29889,
13,
1678,
9995,
13,
13,
1678,
396,
282,
2904,
524,
29901,
11262,
29922,
517,
29877,
29899,
13011,
29899,
8758,
29899,
15697,
29892,
517,
29877,
29899,
13011,
29899,
25699,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3957,
29918,
7529,
29892,
18920,
29922,
8516,
29892,
18196,
29922,
8516,
29892,
13,
462,
3160,
29918,
29880,
2536,
29918,
16394,
29922,
8824,
29892,
13,
462,
534,
29887,
29918,
12719,
29918,
978,
2433,
5371,
29902,
29918,
855,
326,
14999,
29918,
9802,
414,
29374,
13,
4706,
2428,
29898,
29931,
2536,
11501,
29892,
1583,
467,
1649,
2344,
12035,
9965,
29918,
7529,
29892,
18920,
29892,
18196,
29897,
13,
13,
4706,
1583,
3032,
932,
2760,
29918,
305,
12629,
353,
5159,
13,
4706,
1583,
29889,
509,
29887,
29918,
12719,
29918,
978,
353,
534,
29887,
29918,
12719,
29918,
978,
13,
13,
4706,
565,
3160,
29918,
29880,
2536,
29918,
16394,
29901,
13,
9651,
1583,
3032,
932,
2760,
29918,
305,
12629,
29889,
4397,
29898,
8547,
29931,
29918,
15307,
1254,
19297,
29897,
13,
13,
4706,
1583,
3032,
262,
1026,
353,
6213,
13,
4706,
1583,
3032,
22976,
29918,
262,
10376,
353,
6213,
13,
4706,
396,
1670,
508,
367,
29871,
29896,
1857,
17456,
363,
1269,
17456,
8242,
29889,
13,
4706,
1583,
29889,
3784,
29918,
3502,
414,
353,
6571,
13,
13,
1678,
732,
6799,
13,
1678,
822,
1024,
29898,
1311,
1125,
13,
4706,
565,
525,
5461,
29918,
978,
29915,
297,
1583,
3032,
9965,
29918,
7529,
29901,
13,
9651,
736,
1583,
3032,
9965,
29918,
7529,
1839,
5461,
29918,
978,
2033,
13,
4706,
565,
1583,
3032,
262,
1026,
322,
1583,
3032,
262,
1026,
29889,
3888,
2141,
978,
7295,
13,
9651,
736,
1583,
3032,
262,
1026,
29889,
3888,
2141,
978,
580,
13,
4706,
736,
525,
8547,
29931,
29915,
13,
13,
1678,
822,
4511,
29898,
1311,
1125,
13,
4706,
9995,
17918,
304,
278,
848,
2752,
1213,
15945,
13,
4706,
396,
13763,
29879,
508,
367,
22320,
1000,
491,
1024,
29892,
1134,
313,
29916,
2176,
934,
3402,
1580,
511,
322,
13,
4706,
396,
916,
15562,
29889,
13,
13,
4706,
396,
6058,
29923,
29901,
7579,
304,
278,
5106,
445,
338,
263,
23473,
1246,
393,
508,
13,
4706,
396,
871,
367,
8560,
373,
278,
1667,
3244,
297,
8074,
6757,
29889,
1105,
2215,
6724,
13,
4706,
396,
2444,
2691,
746,
2309,
297,
263,
5004,
6674,
307,
985,
292,
29889,
7032,
29889,
13,
4706,
321,
387,
29918,
5461,
29879,
353,
282,
2904,
2536,
29889,
17863,
29918,
5461,
877,
1853,
742,
525,
29923,
11787,
1495,
13,
4706,
17456,
29918,
5461,
29879,
353,
282,
2904,
2536,
29889,
17863,
29918,
5461,
877,
1853,
742,
525,
9802,
414,
1495,
13,
13,
4706,
4974,
321,
387,
29918,
5461,
29879,
29892,
376,
6716,
470,
901,
382,
11787,
20873,
1818,
367,
2198,
29908,
13,
4706,
4974,
17456,
29918,
5461,
29879,
29892,
376,
6716,
470,
901,
4485,
261,
20873,
1818,
367,
2198,
29908,
13,
4706,
1583,
3032,
262,
1026,
353,
282,
2904,
2536,
29889,
3835,
797,
1026,
29898,
29872,
387,
29918,
5461,
29879,
29961,
29900,
2314,
13,
13,
4706,
1583,
3032,
22976,
29918,
262,
10376,
353,
518,
2272,
29880,
2536,
29889,
3835,
797,
1026,
29898,
262,
1026,
29897,
13,
462,
1669,
363,
297,
1026,
297,
17456,
29918,
5461,
29879,
29962,
13,
13,
4706,
396,
11905,
278,
1857,
29918,
3502,
414,
363,
1269,
17456,
4840,
29889,
13,
4706,
363,
297,
1026,
297,
1583,
3032,
22976,
29918,
262,
10376,
29901,
13,
9651,
1583,
29889,
3784,
29918,
3502,
414,
29961,
262,
1026,
29918,
978,
29898,
262,
1026,
4638,
353,
4485,
261,
29889,
6310,
580,
13,
13,
1678,
822,
1274,
23493,
29918,
2344,
29898,
1311,
1125,
13,
4706,
9995,
15514,
2133,
4331,
29889,
7523,
29879,
278,
8242,
322,
848,
6554,
2472,
13,
4706,
2665,
491,
278,
1923,
322,
6166,
278,
8210,
2777,
3651,
29889,
13,
4706,
9995,
13,
4706,
4974,
1583,
3032,
262,
1026,
338,
451,
6213,
29892,
376,
17918,
1246,
338,
3734,
1213,
13,
4706,
15562,
353,
1583,
3032,
262,
1026,
29889,
3888,
580,
13,
4706,
1480,
29889,
8382,
29898,
19635,
29889,
294,
29918,
3134,
3101,
13,
4706,
363,
17456,
29918,
262,
1026,
297,
1583,
3032,
22976,
29918,
262,
10376,
29901,
13,
9651,
1480,
29889,
8382,
703,
3835,
292,
515,
17456,
297,
1026,
29901,
1273,
29879,
613,
13,
462,
3986,
297,
1026,
29918,
978,
29898,
22976,
29918,
262,
1026,
876,
13,
13,
4706,
5235,
29918,
305,
12629,
353,
1583,
3032,
949,
29918,
305,
12629,
29898,
19635,
29897,
13,
4706,
5235,
29918,
5847,
353,
15562,
29889,
11522,
979,
29918,
29879,
10492,
580,
13,
13,
4706,
396,
960,
18196,
526,
451,
12919,
4944,
29892,
731,
963,
515,
278,
15562,
29889,
13,
4706,
396,
13466,
29892,
9659,
393,
4944,
18196,
1993,
15562,
29892,
470,
12700,
338,
13,
4706,
396,
4069,
29889,
13,
4706,
565,
451,
1583,
29889,
305,
12629,
29901,
13,
9651,
1583,
29889,
305,
12629,
353,
5235,
29918,
305,
12629,
13,
9651,
4974,
1583,
29889,
305,
12629,
29892,
376,
1451,
12629,
1818,
367,
4944,
29908,
13,
4706,
1683,
29901,
13,
9651,
565,
5235,
29918,
305,
12629,
322,
1583,
29889,
305,
12629,
2804,
5235,
29918,
305,
12629,
29901,
13,
18884,
12020,
8960,
703,
1451,
12629,
1303,
515,
278,
4742,
437,
451,
1993,
376,
13,
462,
18884,
376,
1552,
4944,
4128,
1159,
13,
4706,
4974,
7431,
29898,
1311,
29889,
305,
12629,
29897,
1275,
313,
19635,
29889,
12719,
29918,
2798,
580,
718,
13,
462,
462,
418,
7431,
29898,
1311,
3032,
932,
2760,
29918,
305,
12629,
29897,
718,
13,
462,
462,
418,
7431,
29898,
1311,
3032,
22976,
29918,
262,
10376,
8243,
29905,
13,
9651,
376,
13599,
2302,
1059,
29908,
13,
13,
4706,
565,
451,
1583,
29889,
5847,
29901,
13,
9651,
1583,
29889,
5847,
353,
5235,
29918,
5847,
13,
4706,
25342,
1583,
29889,
5847,
2804,
5235,
29918,
5847,
29901,
13,
9651,
12020,
8960,
703,
17708,
10868,
1303,
515,
4742,
947,
451,
1993,
376,
13,
462,
9651,
376,
1552,
4944,
3443,
1159,
13,
13,
1678,
822,
903,
21001,
29918,
262,
1026,
29918,
2248,
29898,
1311,
1125,
13,
4706,
9995,
3220,
310,
278,
17456,
297,
1026,
393,
881,
367,
1304,
363,
278,
10014,
29954,
1897,
29889,
13,
4706,
960,
278,
534,
29887,
29918,
12719,
29918,
978,
3443,
338,
4944,
29892,
322,
727,
338,
263,
17456,
13,
4706,
297,
1026,
411,
445,
1024,
29892,
393,
338,
1304,
29892,
6467,
278,
1833,
17456,
297,
1026,
13,
4706,
338,
1304,
29889,
16969,
448,
29896,
565,
727,
526,
694,
17456,
297,
10376,
1213,
15945,
13,
13,
4706,
297,
1026,
29918,
7039,
353,
518,
262,
1026,
29918,
978,
29898,
262,
1026,
29897,
363,
297,
1026,
297,
1583,
3032,
22976,
29918,
262,
10376,
29962,
13,
13,
4706,
565,
1583,
29889,
509,
29887,
29918,
12719,
29918,
978,
297,
297,
1026,
29918,
7039,
29901,
13,
9651,
736,
297,
1026,
29918,
7039,
29889,
2248,
29898,
1311,
29889,
509,
29887,
29918,
12719,
29918,
978,
29897,
13,
4706,
736,
7431,
29898,
262,
1026,
29918,
7039,
29897,
448,
29871,
29896,
13,
13,
1678,
822,
903,
949,
29918,
305,
12629,
29898,
1311,
29892,
5235,
1125,
13,
4706,
9995,
6359,
18196,
515,
278,
4840,
15562,
565,
4944,
322,
736,
963,
13,
4706,
408,
263,
1051,
29889,
960,
18196,
892,
451,
6790,
29892,
3639,
385,
4069,
1051,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
9651,
5235,
584,
282,
2904,
2536,
29889,
29990,
29924,
1307,
944,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
9651,
1051,
310,
851,
13,
4706,
9995,
13,
4706,
18196,
353,
5159,
13,
4706,
565,
5235,
29889,
14273,
2141,
5145,
703,
305,
12629,
2564,
6310,
7295,
13,
9651,
736,
18196,
13,
13,
4706,
8242,
353,
5235,
29889,
14273,
2141,
5145,
703,
305,
12629,
2564,
5145,
703,
12719,
1159,
13,
4706,
363,
903,
297,
3464,
29898,
3888,
29889,
12719,
29918,
2798,
580,
1125,
13,
9651,
8242,
29918,
978,
353,
8242,
29889,
5145,
29918,
1767,
703,
1643,
1159,
13,
9651,
396,
960,
278,
848,
4840,
756,
263,
10014,
29954,
8242,
29892,
19508,
372,
577,
372,
1838,
29915,
29873,
13,
9651,
396,
14529,
411,
278,
17456,
8242,
29889,
13,
9651,
565,
8242,
29918,
978,
1275,
525,
5659,
29954,
29915,
322,
1583,
3032,
22976,
29918,
262,
10376,
29901,
13,
18884,
8242,
29918,
978,
353,
376,
5659,
29954,
29918,
10141,
29918,
5461,
29908,
13,
9651,
18196,
29889,
4397,
29898,
12719,
29918,
978,
29897,
13,
9651,
8242,
353,
8242,
29889,
4622,
29918,
29879,
747,
1847,
580,
13,
13,
4706,
363,
623,
2760,
29918,
12719,
297,
1583,
3032,
932,
2760,
29918,
305,
12629,
29901,
13,
9651,
18196,
29889,
4397,
29898,
932,
2760,
29918,
12719,
29897,
13,
13,
4706,
534,
29887,
29918,
22976,
29918,
2248,
353,
1583,
3032,
21001,
29918,
262,
1026,
29918,
2248,
580,
13,
4706,
363,
474,
29892,
297,
1026,
297,
26985,
29898,
1311,
3032,
22976,
29918,
262,
10376,
1125,
13,
9651,
784,
353,
297,
1026,
29918,
978,
29898,
262,
1026,
29897,
13,
9651,
565,
474,
1275,
534,
29887,
29918,
22976,
29918,
2248,
29901,
13,
18884,
784,
353,
525,
5659,
29954,
29915,
13,
9651,
18196,
29889,
4397,
29898,
1054,
29897,
13,
13,
4706,
736,
18196,
13,
13,
1678,
822,
1303,
29918,
1272,
29898,
1311,
1125,
13,
4706,
9995,
6359,
29879,
278,
2446,
18203,
322,
3639,
278,
23530,
848,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
9651,
1051,
411,
385,
2944,
363,
1269,
8242,
29889,
13,
4706,
9995,
13,
4706,
4559,
29892,
14334,
353,
1583,
3032,
262,
1026,
29889,
26746,
29918,
11249,
580,
13,
13,
4706,
396,
4803,
1319,
363,
13490,
29889,
13,
4706,
565,
365,
12750,
29918,
15307,
1254,
19297,
297,
1583,
3032,
932,
2760,
29918,
305,
12629,
29901,
13,
9651,
4559,
29889,
4397,
29898,
16394,
29897,
13,
13,
4706,
363,
17456,
29918,
262,
1026,
297,
1583,
3032,
22976,
29918,
262,
10376,
29901,
13,
9651,
1024,
353,
297,
1026,
29918,
978,
29898,
22976,
29918,
262,
1026,
29897,
13,
9651,
17456,
353,
1583,
29889,
3784,
29918,
3502,
414,
29889,
657,
29898,
978,
29892,
4485,
261,
2141,
6310,
3101,
13,
13,
9651,
396,
9333,
4218,
304,
10563,
263,
17456,
515,
278,
297,
1026,
565,
591,
505,
13,
9651,
396,
19412,
278,
1833,
697,
411,
263,
4559,
29889,
13,
9651,
565,
17456,
29889,
275,
29918,
6310,
29901,
13,
18884,
396,
319,
11815,
310,
29871,
29900,
29889,
29900,
871,
3639,
263,
4559,
565,
697,
338,
6835,
287,
363,
13,
18884,
396,
16800,
5839,
786,
29889,
13932,
263,
11815,
29892,
445,
338,
263,
23473,
1246,
29889,
13,
18884,
17456,
29918,
1272,
353,
17456,
29918,
262,
1026,
29889,
26746,
29918,
11249,
29898,
15619,
29922,
29900,
29889,
29900,
29897,
13,
18884,
17456,
353,
4485,
261,
29898,
22976,
29918,
1272,
29897,
13,
18884,
1583,
29889,
3784,
29918,
3502,
414,
29961,
978,
29962,
353,
17456,
13,
13,
18884,
565,
451,
17456,
29889,
275,
29918,
6310,
29901,
13,
462,
1678,
1480,
29889,
8382,
29898,
13,
462,
4706,
376,
6359,
17456,
1273,
29879,
515,
1273,
29879,
29936,
1857,
4559,
931,
29901,
1273,
29879,
613,
13,
462,
4706,
17456,
29892,
1024,
29892,
14334,
29897,
13,
13,
9651,
534,
29887,
353,
376,
29900,
29908,
13,
9651,
565,
451,
17456,
29889,
275,
29918,
6310,
322,
14334,
6736,
17456,
29889,
16394,
29901,
13,
18884,
534,
29887,
353,
17456,
29889,
509,
29887,
13,
18884,
1480,
29889,
8382,
29898,
703,
2052,
2548,
1273,
29879,
17456,
1273,
29879,
304,
4559,
472,
931,
1273,
29879,
29936,
9162,
13,
462,
1669,
376,
2230,
2923,
29901,
1273,
29879,
4968,
13,
462,
795,
1024,
29892,
17456,
29892,
14334,
29892,
13,
462,
795,
14334,
448,
17456,
29889,
16394,
29897,
13,
18884,
1583,
29889,
3784,
29918,
3502,
414,
29961,
978,
29962,
353,
4485,
261,
29889,
6310,
580,
29871,
396,
2821,
1857,
13,
13,
9651,
396,
3462,
17456,
1746,
304,
4559,
13,
9651,
4559,
29889,
4397,
29898,
509,
29887,
29897,
13,
13,
4706,
736,
4559,
13,
2
] |
applications/reports/process/data_service.py | ebs-integrator/bic-reporting-api | 1 | 153362 | import os
import pathlib
from lxml import etree
from abc import ABC
from datetime import datetime
from xml.etree import ElementTree
from applications.reports.process.flow_data_service import FlowDataService
class DataService(FlowDataService, ABC):
# Credentials
username = ''
password = ''
# Language - The field format is `languageCountry` (ex enUS)
# according to ISO 639-1 and ISO 3166-1
language = 'roRO'
def __init__(self, company=None, delivery=None):
super().__init__()
self.company = company
self.delivery = delivery
def set_credentials(self, username: str, password: str):
self.username = username
self.password = password
def generate(self, **kwargs):
xml = ElementTree.Element('root')
ElementTree.SubElement(xml, 'delivery', {'method': self.delivery})
# Credentials
security = ElementTree.SubElement(xml, 'security')
username = ElementTree.SubElement(security, 'username')
password = ElementTree.SubElement(security, 'password')
username.text = self.username
password.text = <PASSWORD>
# Language
language = ElementTree.SubElement(xml, 'language')
language.text = self.language
request_timestamp = ElementTree.SubElement(xml, 'request_timestamp')
request_timestamp.text = datetime.now().strftime('%d-%m-%Y %H:%M:%S')
# Forming credit report requests
cr_requests = ElementTree.SubElement(xml, 'cr_requests')
for request_counter, company in enumerate([self.company]):
request_counter = request_counter + 1
parameters: dict = self.entity_parameters(company)
# Forming single credit report requests
cr_request = ElementTree.SubElement(cr_requests, 'cr_request')
cr_id = ElementTree.SubElement(cr_request, 'id')
cr_id.text = str(request_counter)
customer_type = ElementTree.SubElement(cr_request, 'customer_type')
customer_type.text = parameters.get('counterparty_type')
include_sivabon = ElementTree.SubElement(cr_request, 'include_sivabon')
include_sivabon.text = parameters.get('report_bic')
include_fisc = ElementTree.SubElement(cr_request, 'include_fisc')
include_fisc.text = parameters.get('report_sfs')
include_bns = ElementTree.SubElement(cr_request, 'include_bns')
include_bns.text = parameters.get('report_bns')
if parameters.get('report_bns') == '1':
include_bns_year = ElementTree.SubElement(cr_request, 'bnsYear')
include_bns_year.text = parameters.get('report_bns_year')
idno_idnp = ElementTree.SubElement(cr_request, 'idno_idnp')
idno_idnp.text = parameters.get('fiscal_code')
inquiry_purpose = ElementTree.SubElement(cr_request, 'inquiry_purpose')
inquiry_purpose.text = parameters.get('request_goal')
bic_agreement = ElementTree.SubElement(cr_request, 'credit_application_agreement')
bic_agreement.text = parameters.get('bic_agreement')
process_indicator = ElementTree.SubElement(cr_request, 'process_indicator')
process_indicator.text = parameters.get('bic_agreement')
if parameters.get('counterparty_type') == "C":
company_name = ElementTree.SubElement(cr_request, 'company_name')
company_name.text = parameters.get('company_name')
company_short_name = ElementTree.SubElement(cr_request, 'company_short_name')
company_short_name.text = parameters.get('company_short_name')
last_name = ElementTree.SubElement(cr_request, 'last_name')
last_name.text = parameters.get('last_name')
first_name = ElementTree.SubElement(cr_request, 'first_name')
first_name.text = parameters.get('first_name')
father_name = ElementTree.SubElement(cr_request, 'father_name')
father_name.text = parameters.get('patronymic')
identity_card = ElementTree.SubElement(cr_request, 'identity_card')
identity_card.text = parameters.get('passport_series_number')
date_of_registration = ElementTree.SubElement(cr_request, 'date_of_registration')
date_of_registration.text = parameters.get('date_of_birth')
document_number = ElementTree.SubElement(cr_request, 'document_number')
document_number.text = parameters.get('document_number')
document_date = ElementTree.SubElement(cr_request, 'document_date')
document_date.text = parameters.get('document_date')
document_type = ElementTree.SubElement(cr_request, 'document_type')
document_type.text = parameters.get('document_type')
if parameters.get('bic_agreement') == '1':
initial_value = ElementTree.SubElement(cr_request, 'initial_value')
initial_value.text = parameters.get('credit_amount')
document_currency = ElementTree.SubElement(cr_request, 'document_currency')
document_currency.text = parameters.get('currency_code')
terms_duration = ElementTree.SubElement(cr_request, 'terms_duration')
terms_duration.text = parameters.get('credit_term')
terms_frequency = ElementTree.SubElement(cr_request, 'terms_frequency')
terms_frequency.text = parameters.get('frequency_of_payments')
document_insurance = ElementTree.SubElement(cr_request, 'document_insurance')
document_insurance.text = parameters.get('type_of_collateral')
insurance_value = ElementTree.SubElement(cr_request, 'document_insurance_value')
insurance_value.text = parameters.get('collateral_amount')
extras_type = ElementTree.SubElement(cr_request, 'extras_type')
extras_type.text = parameters.get('report_type')
return ElementTree.tostring(**{
'element': xml,
'encoding': 'utf-8',
'short_empty_elements': False
}).decode()
def entity_parameters(self, company=None):
if company is None:
company = {}
date = datetime.now()
formats = date.strftime("%d-%m-%Y %H:%M:%S")
year = date.strftime("%Y")
additional_data = company.get('additional_data', {}) or {}
registered_at = additional_data.get('registered_at', None)
user = company.get('user', {})
parameters = {
"request_date": formats,
"counterparty_type": company.get('counterparty_type', 'C') or 'C',
"fiscal_code": company.get('idno', ''),
"request_goal": company.get('request_goal', 'MDP') or 'MDP',
"bic_agreement": company.get('bic_agreement', '1') or '1',
"report_bic": company.get('report_bic', '1') or '1',
"report_sfs": company.get('report_sfs', '1') or '1',
"report_bns": company.get('report_bns', '1') or '1',
"report_bns_year": company.get('report_bns_year', year) or year,
"company_name": company.get('title', ''),
"company_short_name": company.get('title', ''),
'first_name': self.replace_with_ascii(user.get('first_name', 'NA')) or 'NA',
'last_name': self.replace_with_ascii(user.get('last_name', 'NA')) or 'NA',
'patronymic': self.replace_with_ascii(user.get('patronymic', 'NA')) or 'NA',
'passport_series_number': None,
'date_of_birth': None,
'document_number': str(int(date.timestamp())),
'document_date': None,
'date_of_registration': registered_at,
'credit_amount': str(company.get('credit_amount', '0') or '0'),
'currency_code': str(company.get('currency_code', 'MDL') or 'MDL'),
'credit_term': str(company.get('credit_term', '0') or '0'),
'request_type': str(company.get('request_type', 'M') or 'M'),
'document_type': str(company.get('document_type', 'C') or 'C'),
'frequency_of_payments': str(company.get('frequency_of_payments', 'N') or 'N'),
'type_of_collateral': str(company.get('type_of_collateral', 'D') or 'D'),
'collateral_amount': str(company.get('collateral_amount', '0') or '0'),
'report_type': str(company.get('report_type', 'AllSection') or 'AllSection'),
}
return parameters
@staticmethod
def upsert_file(path):
import os
os.makedirs(os.path.dirname(path), exist_ok=True)
def html(self, xml: str = '', xslt: str = 'templates/tr.xslt'):
xslt_document = os.path.join(pathlib.Path().absolute(), xslt)
xslt_document_element = etree.parse(xslt_document)
xslt_document_transformer = etree.XSLT(xslt_document_element)
name = str(int(datetime.now().timestamp()))
xml_document_element = etree.fromstring(xml.encode())
xml_document_transformer = xslt_document_transformer(xml_document_element)
html_string = str(xml_document_transformer)
name_tag = name
html_name = f'storage/companies/reports/html/{name}.html'
self.upsert_file(html_name)
try:
with open(html_name, 'w', encoding="utf-8") as file:
file.write(html_string)
finally:
file.close()
return file, html_string, html_name, name_tag
| [
1,
1053,
2897,
30004,
13,
5215,
2224,
1982,
30004,
13,
30004,
13,
3166,
301,
3134,
1053,
634,
929,
30004,
13,
30004,
13,
3166,
25638,
1053,
16417,
30004,
13,
3166,
12865,
1053,
12865,
30004,
13,
30004,
13,
3166,
4903,
29889,
300,
929,
1053,
10619,
9643,
30004,
13,
30004,
13,
3166,
8324,
29889,
276,
4011,
29889,
5014,
29889,
1731,
29918,
1272,
29918,
5509,
1053,
22787,
1469,
3170,
30004,
13,
30004,
13,
30004,
13,
1990,
3630,
3170,
29898,
17907,
1469,
3170,
29892,
16417,
1125,
30004,
13,
1678,
396,
24596,
9409,
30004,
13,
1678,
8952,
353,
6629,
30004,
13,
1678,
4800,
353,
6629,
30004,
13,
30004,
13,
1678,
396,
17088,
448,
450,
1746,
3402,
338,
421,
11675,
20779,
29952,
313,
735,
427,
3308,
8443,
13,
1678,
396,
5034,
304,
17723,
29871,
29953,
29941,
29929,
29899,
29896,
322,
17723,
29871,
29941,
29896,
29953,
29953,
29899,
29896,
30004,
13,
1678,
4086,
353,
525,
307,
1672,
29915,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
5001,
29922,
8516,
29892,
28289,
29922,
8516,
1125,
30004,
13,
4706,
2428,
2141,
1649,
2344,
1649,
26471,
13,
30004,
13,
4706,
1583,
29889,
14518,
353,
5001,
30004,
13,
4706,
1583,
29889,
29881,
27657,
353,
28289,
30004,
13,
30004,
13,
1678,
822,
731,
29918,
11944,
9409,
29898,
1311,
29892,
8952,
29901,
851,
29892,
4800,
29901,
851,
1125,
30004,
13,
4706,
1583,
29889,
6786,
353,
8952,
30004,
13,
4706,
1583,
29889,
5630,
353,
4800,
30004,
13,
30004,
13,
1678,
822,
5706,
29898,
1311,
29892,
3579,
19290,
1125,
30004,
13,
4706,
4903,
353,
10619,
9643,
29889,
2642,
877,
4632,
1495,
30004,
13,
4706,
10619,
9643,
29889,
4035,
2642,
29898,
3134,
29892,
525,
29881,
27657,
742,
11117,
5696,
2396,
1583,
29889,
29881,
27657,
1800,
30004,
13,
30004,
13,
4706,
396,
24596,
9409,
30004,
13,
4706,
6993,
353,
10619,
9643,
29889,
4035,
2642,
29898,
3134,
29892,
525,
8926,
1495,
30004,
13,
30004,
13,
4706,
8952,
353,
10619,
9643,
29889,
4035,
2642,
29898,
8926,
29892,
525,
6786,
1495,
30004,
13,
4706,
4800,
353,
10619,
9643,
29889,
4035,
2642,
29898,
8926,
29892,
525,
5630,
1495,
30004,
13,
30004,
13,
4706,
8952,
29889,
726,
353,
1583,
29889,
6786,
30004,
13,
4706,
4800,
29889,
726,
353,
529,
25711,
17013,
3238,
13,
30004,
13,
4706,
396,
17088,
30004,
13,
4706,
4086,
353,
10619,
9643,
29889,
4035,
2642,
29898,
3134,
29892,
525,
11675,
1495,
30004,
13,
4706,
4086,
29889,
726,
353,
1583,
29889,
11675,
30004,
13,
30004,
13,
4706,
2009,
29918,
16394,
353,
10619,
9643,
29889,
4035,
2642,
29898,
3134,
29892,
525,
3827,
29918,
16394,
1495,
30004,
13,
4706,
2009,
29918,
16394,
29889,
726,
353,
12865,
29889,
3707,
2141,
710,
615,
603,
877,
29995,
29881,
19222,
29885,
19222,
29979,
1273,
29950,
16664,
29924,
16664,
29903,
1495,
30004,
13,
30004,
13,
4706,
396,
3812,
292,
16200,
3461,
7274,
30004,
13,
4706,
2181,
29918,
24830,
353,
10619,
9643,
29889,
4035,
2642,
29898,
3134,
29892,
525,
7283,
29918,
24830,
1495,
30004,
13,
30004,
13,
4706,
363,
2009,
29918,
11808,
29892,
5001,
297,
26985,
4197,
1311,
29889,
14518,
29962,
1125,
30004,
13,
9651,
2009,
29918,
11808,
353,
2009,
29918,
11808,
718,
29871,
29896,
30004,
13,
9651,
4128,
29901,
9657,
353,
1583,
29889,
10041,
29918,
16744,
29898,
14518,
8443,
13,
30004,
13,
9651,
396,
3812,
292,
2323,
16200,
3461,
7274,
30004,
13,
9651,
2181,
29918,
3827,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
24830,
29892,
525,
7283,
29918,
3827,
1495,
30004,
13,
30004,
13,
9651,
2181,
29918,
333,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
333,
1495,
30004,
13,
9651,
2181,
29918,
333,
29889,
726,
353,
851,
29898,
3827,
29918,
11808,
8443,
13,
30004,
13,
9651,
11962,
29918,
1853,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
15539,
29918,
1853,
1495,
30004,
13,
9651,
11962,
29918,
1853,
29889,
726,
353,
4128,
29889,
657,
877,
11808,
22633,
29918,
1853,
1495,
30004,
13,
30004,
13,
9651,
3160,
29918,
29879,
440,
370,
265,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
2856,
29918,
29879,
440,
370,
265,
1495,
30004,
13,
9651,
3160,
29918,
29879,
440,
370,
265,
29889,
726,
353,
4128,
29889,
657,
877,
12276,
29918,
29890,
293,
1495,
30004,
13,
30004,
13,
9651,
3160,
29918,
29888,
10669,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
2856,
29918,
29888,
10669,
1495,
30004,
13,
9651,
3160,
29918,
29888,
10669,
29889,
726,
353,
4128,
29889,
657,
877,
12276,
29918,
4668,
29879,
1495,
30004,
13,
30004,
13,
9651,
3160,
29918,
29890,
1983,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
2856,
29918,
29890,
1983,
1495,
30004,
13,
9651,
3160,
29918,
29890,
1983,
29889,
726,
353,
4128,
29889,
657,
877,
12276,
29918,
29890,
1983,
1495,
30004,
13,
30004,
13,
9651,
565,
4128,
29889,
657,
877,
12276,
29918,
29890,
1983,
1495,
1275,
525,
29896,
2396,
30004,
13,
18884,
3160,
29918,
29890,
1983,
29918,
6360,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
29890,
1983,
12883,
1495,
30004,
13,
18884,
3160,
29918,
29890,
1983,
29918,
6360,
29889,
726,
353,
4128,
29889,
657,
877,
12276,
29918,
29890,
1983,
29918,
6360,
1495,
30004,
13,
30004,
13,
9651,
1178,
1217,
29918,
333,
9302,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
333,
1217,
29918,
333,
9302,
1495,
30004,
13,
9651,
1178,
1217,
29918,
333,
9302,
29889,
726,
353,
4128,
29889,
657,
877,
29888,
275,
1052,
29918,
401,
1495,
30004,
13,
30004,
13,
9651,
25501,
16129,
29918,
15503,
4220,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
262,
339,
16129,
29918,
15503,
4220,
1495,
30004,
13,
9651,
25501,
16129,
29918,
15503,
4220,
29889,
726,
353,
4128,
29889,
657,
877,
3827,
29918,
28111,
1495,
30004,
13,
30004,
13,
9651,
289,
293,
29918,
351,
276,
882,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
11944,
277,
29918,
6214,
29918,
351,
276,
882,
1495,
30004,
13,
9651,
289,
293,
29918,
351,
276,
882,
29889,
726,
353,
4128,
29889,
657,
877,
29890,
293,
29918,
351,
276,
882,
1495,
30004,
13,
30004,
13,
9651,
1889,
29918,
513,
20485,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
5014,
29918,
513,
20485,
1495,
30004,
13,
9651,
1889,
29918,
513,
20485,
29889,
726,
353,
4128,
29889,
657,
877,
29890,
293,
29918,
351,
276,
882,
1495,
30004,
13,
30004,
13,
9651,
565,
4128,
29889,
657,
877,
11808,
22633,
29918,
1853,
1495,
1275,
376,
29907,
1115,
30004,
13,
18884,
5001,
29918,
978,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
14518,
29918,
978,
1495,
30004,
13,
18884,
5001,
29918,
978,
29889,
726,
353,
4128,
29889,
657,
877,
14518,
29918,
978,
1495,
30004,
13,
30004,
13,
18884,
5001,
29918,
12759,
29918,
978,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
14518,
29918,
12759,
29918,
978,
1495,
30004,
13,
18884,
5001,
29918,
12759,
29918,
978,
29889,
726,
353,
4128,
29889,
657,
877,
14518,
29918,
12759,
29918,
978,
1495,
30004,
13,
30004,
13,
9651,
1833,
29918,
978,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
4230,
29918,
978,
1495,
30004,
13,
9651,
1833,
29918,
978,
29889,
726,
353,
4128,
29889,
657,
877,
4230,
29918,
978,
1495,
30004,
13,
30004,
13,
9651,
937,
29918,
978,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
4102,
29918,
978,
1495,
30004,
13,
9651,
937,
29918,
978,
29889,
726,
353,
4128,
29889,
657,
877,
4102,
29918,
978,
1495,
30004,
13,
30004,
13,
9651,
4783,
29918,
978,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
22212,
29918,
978,
1495,
30004,
13,
9651,
4783,
29918,
978,
29889,
726,
353,
4128,
29889,
657,
877,
5031,
1617,
962,
293,
1495,
30004,
13,
30004,
13,
9651,
10110,
29918,
7543,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
22350,
29918,
7543,
1495,
30004,
13,
9651,
10110,
29918,
7543,
29889,
726,
353,
4128,
29889,
657,
877,
3364,
637,
29918,
13757,
29918,
4537,
1495,
30004,
13,
30004,
13,
9651,
2635,
29918,
974,
29918,
1727,
8306,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
1256,
29918,
974,
29918,
1727,
8306,
1495,
30004,
13,
9651,
2635,
29918,
974,
29918,
1727,
8306,
29889,
726,
353,
4128,
29889,
657,
877,
1256,
29918,
974,
29918,
29890,
7515,
1495,
30004,
13,
30004,
13,
9651,
1842,
29918,
4537,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
3225,
29918,
4537,
1495,
30004,
13,
9651,
1842,
29918,
4537,
29889,
726,
353,
4128,
29889,
657,
877,
3225,
29918,
4537,
1495,
30004,
13,
30004,
13,
9651,
1842,
29918,
1256,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
3225,
29918,
1256,
1495,
30004,
13,
9651,
1842,
29918,
1256,
29889,
726,
353,
4128,
29889,
657,
877,
3225,
29918,
1256,
1495,
30004,
13,
30004,
13,
9651,
1842,
29918,
1853,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
3225,
29918,
1853,
1495,
30004,
13,
9651,
1842,
29918,
1853,
29889,
726,
353,
4128,
29889,
657,
877,
3225,
29918,
1853,
1495,
30004,
13,
30004,
13,
9651,
565,
4128,
29889,
657,
877,
29890,
293,
29918,
351,
276,
882,
1495,
1275,
525,
29896,
2396,
30004,
13,
18884,
2847,
29918,
1767,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
11228,
29918,
1767,
1495,
30004,
13,
18884,
2847,
29918,
1767,
29889,
726,
353,
4128,
29889,
657,
877,
11944,
277,
29918,
14506,
1495,
30004,
13,
30004,
13,
18884,
1842,
29918,
26095,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
3225,
29918,
26095,
1495,
30004,
13,
18884,
1842,
29918,
26095,
29889,
726,
353,
4128,
29889,
657,
877,
26095,
29918,
401,
1495,
30004,
13,
30004,
13,
18884,
4958,
29918,
19708,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
357,
1516,
29918,
19708,
1495,
30004,
13,
18884,
4958,
29918,
19708,
29889,
726,
353,
4128,
29889,
657,
877,
11944,
277,
29918,
8489,
1495,
30004,
13,
30004,
13,
18884,
4958,
29918,
10745,
23860,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
357,
1516,
29918,
10745,
23860,
1495,
30004,
13,
18884,
4958,
29918,
10745,
23860,
29889,
726,
353,
4128,
29889,
657,
877,
10745,
23860,
29918,
974,
29918,
10472,
1860,
1495,
30004,
13,
30004,
13,
18884,
1842,
29918,
1144,
18541,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
3225,
29918,
1144,
18541,
1495,
30004,
13,
18884,
1842,
29918,
1144,
18541,
29889,
726,
353,
4128,
29889,
657,
877,
1853,
29918,
974,
29918,
22017,
1008,
284,
1495,
30004,
13,
30004,
13,
18884,
1663,
18541,
29918,
1767,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
3225,
29918,
1144,
18541,
29918,
1767,
1495,
30004,
13,
18884,
1663,
18541,
29918,
1767,
29889,
726,
353,
4128,
29889,
657,
877,
22017,
1008,
284,
29918,
14506,
1495,
30004,
13,
30004,
13,
18884,
429,
10678,
29918,
1853,
353,
10619,
9643,
29889,
4035,
2642,
29898,
7283,
29918,
3827,
29892,
525,
1062,
3417,
29918,
1853,
1495,
30004,
13,
18884,
429,
10678,
29918,
1853,
29889,
726,
353,
4128,
29889,
657,
877,
12276,
29918,
1853,
1495,
30004,
13,
30004,
13,
4706,
736,
10619,
9643,
29889,
517,
1807,
29898,
1068,
14626,
13,
9651,
525,
5029,
2396,
4903,
11167,
13,
9651,
525,
22331,
2396,
525,
9420,
29899,
29947,
23592,
13,
9651,
525,
12759,
29918,
6310,
29918,
17664,
2396,
7700,
30004,
13,
4706,
22719,
13808,
26471,
13,
30004,
13,
1678,
822,
7855,
29918,
16744,
29898,
1311,
29892,
5001,
29922,
8516,
1125,
30004,
13,
4706,
565,
5001,
338,
6213,
29901,
30004,
13,
9651,
5001,
353,
6571,
30004,
13,
30004,
13,
4706,
2635,
353,
12865,
29889,
3707,
26471,
13,
4706,
21971,
353,
2635,
29889,
710,
615,
603,
11702,
29881,
19222,
29885,
19222,
29979,
1273,
29950,
16664,
29924,
16664,
29903,
1159,
30004,
13,
4706,
1629,
353,
2635,
29889,
710,
615,
603,
11702,
29979,
1159,
30004,
13,
30004,
13,
4706,
5684,
29918,
1272,
353,
5001,
29889,
657,
877,
1202,
3245,
29918,
1272,
742,
426,
1800,
470,
6571,
30004,
13,
4706,
15443,
29918,
271,
353,
5684,
29918,
1272,
29889,
657,
877,
9573,
287,
29918,
271,
742,
6213,
8443,
13,
30004,
13,
4706,
1404,
353,
5001,
29889,
657,
877,
1792,
742,
426,
1800,
30004,
13,
30004,
13,
4706,
4128,
353,
3336,
13,
9651,
376,
3827,
29918,
1256,
1115,
21971,
11167,
13,
9651,
376,
11808,
22633,
29918,
1853,
1115,
5001,
29889,
657,
877,
11808,
22633,
29918,
1853,
742,
525,
29907,
1495,
470,
525,
29907,
23592,
13,
9651,
376,
29888,
275,
1052,
29918,
401,
1115,
5001,
29889,
657,
877,
333,
1217,
742,
525,
5477,
30004,
13,
9651,
376,
3827,
29918,
28111,
1115,
5001,
29889,
657,
877,
3827,
29918,
28111,
742,
525,
5773,
29925,
1495,
470,
525,
5773,
29925,
23592,
13,
9651,
376,
29890,
293,
29918,
351,
276,
882,
1115,
5001,
29889,
657,
877,
29890,
293,
29918,
351,
276,
882,
742,
525,
29896,
1495,
470,
525,
29896,
23592,
13,
9651,
376,
12276,
29918,
29890,
293,
1115,
5001,
29889,
657,
877,
12276,
29918,
29890,
293,
742,
525,
29896,
1495,
470,
525,
29896,
23592,
13,
9651,
376,
12276,
29918,
4668,
29879,
1115,
5001,
29889,
657,
877,
12276,
29918,
4668,
29879,
742,
525,
29896,
1495,
470,
525,
29896,
23592,
13,
9651,
376,
12276,
29918,
29890,
1983,
1115,
5001,
29889,
657,
877,
12276,
29918,
29890,
1983,
742,
525,
29896,
1495,
470,
525,
29896,
23592,
13,
9651,
376,
12276,
29918,
29890,
1983,
29918,
6360,
1115,
5001,
29889,
657,
877,
12276,
29918,
29890,
1983,
29918,
6360,
742,
1629,
29897,
470,
1629,
11167,
13,
9651,
376,
14518,
29918,
978,
1115,
5001,
29889,
657,
877,
3257,
742,
525,
5477,
30004,
13,
9651,
376,
14518,
29918,
12759,
29918,
978,
1115,
5001,
29889,
657,
877,
3257,
742,
525,
5477,
30004,
13,
9651,
525,
4102,
29918,
978,
2396,
1583,
29889,
6506,
29918,
2541,
29918,
294,
18869,
29898,
1792,
29889,
657,
877,
4102,
29918,
978,
742,
525,
3521,
8785,
470,
525,
3521,
23592,
13,
9651,
525,
4230,
29918,
978,
2396,
1583,
29889,
6506,
29918,
2541,
29918,
294,
18869,
29898,
1792,
29889,
657,
877,
4230,
29918,
978,
742,
525,
3521,
8785,
470,
525,
3521,
23592,
13,
9651,
525,
5031,
1617,
962,
293,
2396,
1583,
29889,
6506,
29918,
2541,
29918,
294,
18869,
29898,
1792,
29889,
657,
877,
5031,
1617,
962,
293,
742,
525,
3521,
8785,
470,
525,
3521,
23592,
13,
9651,
525,
3364,
637,
29918,
13757,
29918,
4537,
2396,
6213,
11167,
13,
9651,
525,
1256,
29918,
974,
29918,
29890,
7515,
2396,
6213,
11167,
13,
9651,
525,
3225,
29918,
4537,
2396,
851,
29898,
524,
29898,
1256,
29889,
16394,
3101,
511,
30004,
13,
9651,
525,
3225,
29918,
1256,
2396,
6213,
11167,
13,
9651,
525,
1256,
29918,
974,
29918,
1727,
8306,
2396,
15443,
29918,
271,
11167,
13,
9651,
525,
11944,
277,
29918,
14506,
2396,
851,
29898,
14518,
29889,
657,
877,
11944,
277,
29918,
14506,
742,
525,
29900,
1495,
470,
525,
29900,
5477,
30004,
13,
9651,
525,
26095,
29918,
401,
2396,
851,
29898,
14518,
29889,
657,
877,
26095,
29918,
401,
742,
525,
5773,
29931,
1495,
470,
525,
5773,
29931,
5477,
30004,
13,
9651,
525,
11944,
277,
29918,
8489,
2396,
851,
29898,
14518,
29889,
657,
877,
11944,
277,
29918,
8489,
742,
525,
29900,
1495,
470,
525,
29900,
5477,
30004,
13,
9651,
525,
3827,
29918,
1853,
2396,
851,
29898,
14518,
29889,
657,
877,
3827,
29918,
1853,
742,
525,
29924,
1495,
470,
525,
29924,
5477,
30004,
13,
9651,
525,
3225,
29918,
1853,
2396,
851,
29898,
14518,
29889,
657,
877,
3225,
29918,
1853,
742,
525,
29907,
1495,
470,
525,
29907,
5477,
30004,
13,
9651,
525,
10745,
23860,
29918,
974,
29918,
10472,
1860,
2396,
851,
29898,
14518,
29889,
657,
877,
10745,
23860,
29918,
974,
29918,
10472,
1860,
742,
525,
29940,
1495,
470,
525,
29940,
5477,
30004,
13,
9651,
525,
1853,
29918,
974,
29918,
22017,
1008,
284,
2396,
851,
29898,
14518,
29889,
657,
877,
1853,
29918,
974,
29918,
22017,
1008,
284,
742,
525,
29928,
1495,
470,
525,
29928,
5477,
30004,
13,
9651,
525,
22017,
1008,
284,
29918,
14506,
2396,
851,
29898,
14518,
29889,
657,
877,
22017,
1008,
284,
29918,
14506,
742,
525,
29900,
1495,
470,
525,
29900,
5477,
30004,
13,
9651,
525,
12276,
29918,
1853,
2396,
851,
29898,
14518,
29889,
657,
877,
12276,
29918,
1853,
742,
525,
3596,
13438,
1495,
470,
525,
3596,
13438,
5477,
30004,
13,
4706,
4970,
13,
30004,
13,
4706,
736,
4128,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
30004,
13,
1678,
822,
24081,
814,
29918,
1445,
29898,
2084,
1125,
30004,
13,
4706,
1053,
2897,
30004,
13,
30004,
13,
4706,
2897,
29889,
29885,
12535,
12935,
29898,
359,
29889,
2084,
29889,
25721,
29898,
2084,
511,
1863,
29918,
554,
29922,
5574,
8443,
13,
30004,
13,
1678,
822,
3472,
29898,
1311,
29892,
4903,
29901,
851,
353,
15516,
14492,
1896,
29901,
851,
353,
525,
20943,
29914,
509,
29889,
10351,
1896,
29374,
30004,
13,
4706,
14492,
1896,
29918,
3225,
353,
2897,
29889,
2084,
29889,
7122,
29898,
2084,
1982,
29889,
2605,
2141,
23552,
3285,
14492,
1896,
8443,
13,
4706,
14492,
1896,
29918,
3225,
29918,
5029,
353,
634,
929,
29889,
5510,
29898,
10351,
1896,
29918,
3225,
8443,
13,
4706,
14492,
1896,
29918,
3225,
29918,
9067,
261,
353,
634,
929,
29889,
29990,
29903,
5850,
29898,
10351,
1896,
29918,
3225,
29918,
5029,
8443,
13,
30004,
13,
4706,
1024,
353,
851,
29898,
524,
29898,
12673,
29889,
3707,
2141,
16394,
22130,
30004,
13,
30004,
13,
4706,
4903,
29918,
3225,
29918,
5029,
353,
634,
929,
29889,
3166,
1807,
29898,
3134,
29889,
12508,
3101,
30004,
13,
4706,
4903,
29918,
3225,
29918,
9067,
261,
353,
14492,
1896,
29918,
3225,
29918,
9067,
261,
29898,
3134,
29918,
3225,
29918,
5029,
8443,
13,
30004,
13,
4706,
3472,
29918,
1807,
353,
851,
29898,
3134,
29918,
3225,
29918,
9067,
261,
8443,
13,
4706,
1024,
29918,
4039,
353,
1024,
30004,
13,
4706,
3472,
29918,
978,
353,
285,
29915,
12925,
29914,
2388,
273,
583,
29914,
276,
4011,
29914,
1420,
19248,
978,
1836,
1420,
29915,
30004,
13,
4706,
1583,
29889,
14340,
814,
29918,
1445,
29898,
1420,
29918,
978,
8443,
13,
30004,
13,
4706,
1018,
29901,
30004,
13,
9651,
411,
1722,
29898,
1420,
29918,
978,
29892,
525,
29893,
742,
8025,
543,
9420,
29899,
29947,
1159,
408,
934,
29901,
30004,
13,
18884,
934,
29889,
3539,
29898,
1420,
29918,
1807,
8443,
13,
4706,
7146,
29901,
30004,
13,
9651,
934,
29889,
5358,
26471,
13,
30004,
13,
4706,
736,
934,
29892,
3472,
29918,
1807,
29892,
3472,
29918,
978,
29892,
1024,
29918,
4039,
30004,
13,
2
] |
kmd_labs/oracles/listassetchains.py | smk762/kmd_pulp | 2 | 182161 | <filename>kmd_labs/oracles/listassetchains.py
#!/usr/bin/env python2
import os
import json
#script_dir = os.getcwd()
HOME = os.environ['HOME']
with open(HOME + '/StakedNotary/assetchains.json') as file:
assetchains = json.load(file)
for chain in assetchains:
print(chain['ac_name'])
| [
1,
529,
9507,
29958,
29895,
3487,
29918,
29880,
6897,
29914,
272,
23435,
29914,
1761,
465,
3486,
2708,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29906,
13,
5215,
2897,
13,
5215,
4390,
13,
13,
29937,
2154,
29918,
3972,
353,
2897,
29889,
657,
29883,
9970,
580,
13,
17353,
353,
2897,
29889,
21813,
1839,
17353,
2033,
13,
2541,
1722,
29898,
17353,
718,
8207,
855,
12535,
3664,
653,
29914,
465,
3486,
2708,
29889,
3126,
1495,
408,
934,
29901,
13,
1678,
24342,
305,
2708,
353,
4390,
29889,
1359,
29898,
1445,
29897,
13,
13,
1454,
9704,
297,
24342,
305,
2708,
29901,
13,
1678,
1596,
29898,
14153,
1839,
562,
29918,
978,
11287,
13,
2
] |
migrations/versions/ddf3cbc60873_.py | MaxHorwood/crude_backend_skeleton | 0 | 63802 | """empty message
Revision ID: ddf3cbc60873
Revises: x
Create Date: 2020-08-22 17:27:08.449495
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "<KEY>"
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(
"user",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("name", sa.String(length=80), nullable=False),
sa.Column("email", sa.String(length=120), nullable=False),
sa.PrimaryKeyConstraint("id"),
)
op.create_table(
"address",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("postcode", sa.String(length=80), nullable=False),
sa.Column("address", sa.String(length=100), nullable=False),
sa.Column("user_id", sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(
["user_id"],
["user.id"],
),
sa.PrimaryKeyConstraint("id"),
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table("address")
op.drop_table("user")
# ### end Alembic commands ###
| [
1,
9995,
6310,
2643,
13,
13,
1123,
4924,
3553,
29901,
270,
2176,
29941,
10702,
29883,
29953,
29900,
29947,
29955,
29941,
13,
1123,
1730,
267,
29901,
921,
13,
4391,
4712,
29901,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29947,
29899,
29906,
29906,
29871,
29896,
29955,
29901,
29906,
29955,
29901,
29900,
29947,
29889,
29946,
29946,
29929,
29946,
29929,
29945,
13,
13,
15945,
29908,
13,
3166,
20712,
29890,
293,
1053,
1015,
13,
5215,
4576,
284,
305,
6764,
408,
872,
13,
13,
13,
29937,
26554,
2893,
14903,
29892,
1304,
491,
319,
2409,
29890,
293,
29889,
13,
276,
4924,
353,
9872,
10818,
11903,
13,
3204,
29918,
276,
4924,
353,
6213,
13,
17519,
29918,
21134,
353,
6213,
13,
2716,
1975,
29918,
265,
353,
6213,
13,
13,
13,
1753,
14955,
7295,
13,
1678,
396,
835,
8260,
4469,
5759,
491,
319,
2409,
29890,
293,
448,
3113,
10365,
29991,
835,
13,
1678,
1015,
29889,
3258,
29918,
2371,
29898,
13,
4706,
376,
1792,
613,
13,
4706,
872,
29889,
4409,
703,
333,
613,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
4706,
872,
29889,
4409,
703,
978,
613,
872,
29889,
1231,
29898,
2848,
29922,
29947,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
4706,
872,
29889,
4409,
703,
5269,
613,
872,
29889,
1231,
29898,
2848,
29922,
29896,
29906,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
4706,
872,
29889,
26666,
2558,
21529,
703,
333,
4968,
13,
1678,
1723,
13,
1678,
1015,
29889,
3258,
29918,
2371,
29898,
13,
4706,
376,
7328,
613,
13,
4706,
872,
29889,
4409,
703,
333,
613,
872,
29889,
7798,
3285,
1870,
519,
29922,
8824,
511,
13,
4706,
872,
29889,
4409,
703,
2490,
401,
613,
872,
29889,
1231,
29898,
2848,
29922,
29947,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
4706,
872,
29889,
4409,
703,
7328,
613,
872,
29889,
1231,
29898,
2848,
29922,
29896,
29900,
29900,
511,
1870,
519,
29922,
8824,
511,
13,
4706,
872,
29889,
4409,
703,
1792,
29918,
333,
613,
872,
29889,
7798,
3285,
1870,
519,
29922,
5574,
511,
13,
4706,
872,
29889,
27755,
2558,
21529,
29898,
13,
9651,
6796,
1792,
29918,
333,
12436,
13,
9651,
6796,
1792,
29889,
333,
12436,
13,
4706,
10353,
13,
4706,
872,
29889,
26666,
2558,
21529,
703,
333,
4968,
13,
1678,
1723,
13,
1678,
396,
835,
1095,
319,
2409,
29890,
293,
8260,
835,
13,
13,
13,
1753,
1623,
8228,
7295,
13,
1678,
396,
835,
8260,
4469,
5759,
491,
319,
2409,
29890,
293,
448,
3113,
10365,
29991,
835,
13,
1678,
1015,
29889,
8865,
29918,
2371,
703,
7328,
1159,
13,
1678,
1015,
29889,
8865,
29918,
2371,
703,
1792,
1159,
13,
1678,
396,
835,
1095,
319,
2409,
29890,
293,
8260,
835,
13,
2
] |
fbchat/utils.py | Dainius14/fb-chat-bot-old | 2 | 19916 | <reponame>Dainius14/fb-chat-bot-old<filename>fbchat/utils.py
import re
import json
from time import time
from random import random
USER_AGENTS = [
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/601.1.10 (KHTML, like Gecko) Version/8.0.5 Safari/601.1.10",
"Mozilla/5.0 (Windows NT 6.3; WOW64; ; NCT50_AAP285C84A1328) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1",
"Mozilla/5.0 (X11; CrOS i686 2268.111.0) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6"
]
def now():
return int(time()*1000)
def get_json(text):
return json.loads(re.sub(r"^[^{]*", '', text, 1))
def digit_to_char(digit):
if digit < 10:
return str(digit)
return chr(ord('a') + digit - 10)
def str_base(number,base):
if number < 0:
return '-' + str_base(-number, base)
(d, m) = divmod(number, base)
if d > 0:
return str_base(d, base) + digit_to_char(m)
return digit_to_char(m)
def generateMessageID(client_id=None):
k = now()
l = int(random() * 4294967295)
return ("<%s:%s-<EMAIL>>" % (k, l, client_id));
def getSignatureID():
return hex(int(random() * 2147483648))
def generateOfflineThreadingID() :
ret = now()
value = int(random() * 4294967295);
string = ("0000000000000000000000" + bin(value))[-22:]
msgs = bin(ret) + string
return str(int(msgs,2))
| [
1,
529,
276,
1112,
420,
29958,
29928,
475,
2482,
29896,
29946,
29914,
14943,
29899,
13496,
29899,
7451,
29899,
1025,
29966,
9507,
29958,
14943,
13496,
29914,
13239,
29889,
2272,
13,
5215,
337,
13,
5215,
4390,
13,
3166,
931,
1053,
931,
13,
3166,
4036,
1053,
4036,
13,
11889,
29918,
10051,
3919,
29903,
353,
518,
13,
1678,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
15735,
524,
10578,
29936,
18555,
4326,
6570,
1060,
29871,
29896,
29900,
29918,
29896,
29900,
29918,
29906,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29955,
29889,
29941,
29953,
313,
29968,
7020,
29892,
763,
1879,
27604,
29897,
10228,
29914,
29946,
29906,
29889,
29900,
29889,
29906,
29941,
29896,
29896,
29889,
29929,
29900,
24544,
29914,
29945,
29941,
29955,
29889,
29941,
29953,
613,
13,
1678,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
15735,
524,
10578,
29936,
18555,
4326,
6570,
1060,
29871,
29896,
29900,
29918,
29896,
29900,
29918,
29941,
29897,
12113,
3609,
13117,
29914,
29953,
29900,
29896,
29889,
29896,
29889,
29896,
29900,
313,
29968,
7020,
29892,
763,
1879,
27604,
29897,
10079,
29914,
29947,
29889,
29900,
29889,
29945,
24544,
29914,
29953,
29900,
29896,
29889,
29896,
29889,
29896,
29900,
613,
13,
1678,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
7685,
405,
29911,
29871,
29953,
29889,
29941,
29936,
399,
9806,
29953,
29946,
29936,
2056,
405,
1783,
29945,
29900,
29918,
29909,
3301,
29906,
29947,
29945,
29907,
29947,
29946,
29909,
29896,
29941,
29906,
29947,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29955,
29889,
29941,
29953,
313,
29968,
7020,
29892,
763,
1879,
27604,
29897,
10228,
29914,
29946,
29906,
29889,
29900,
29889,
29906,
29941,
29896,
29896,
29889,
29929,
29900,
24544,
29914,
29945,
29941,
29955,
29889,
29941,
29953,
613,
13,
1678,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
7685,
405,
29911,
29871,
29953,
29889,
29896,
29936,
399,
9806,
29953,
29946,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29955,
29889,
29896,
313,
29968,
7020,
29892,
763,
1879,
27604,
29897,
10228,
29914,
29906,
29906,
29889,
29900,
29889,
29896,
29906,
29900,
29955,
29889,
29896,
24544,
29914,
29945,
29941,
29955,
29889,
29896,
613,
13,
1678,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
29990,
29896,
29896,
29936,
6781,
3267,
474,
29953,
29947,
29953,
29871,
29906,
29906,
29953,
29947,
29889,
29896,
29896,
29896,
29889,
29900,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29953,
29889,
29896,
29896,
313,
29968,
7020,
29892,
763,
1879,
27604,
29897,
10228,
29914,
29906,
29900,
29889,
29900,
29889,
29896,
29896,
29941,
29906,
29889,
29945,
29955,
24544,
29914,
29945,
29941,
29953,
29889,
29896,
29896,
613,
13,
1678,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
7685,
405,
29911,
29871,
29953,
29889,
29896,
29936,
399,
9806,
29953,
29946,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29953,
29889,
29953,
313,
29968,
7020,
29892,
763,
1879,
27604,
29897,
10228,
29914,
29906,
29900,
29889,
29900,
29889,
29896,
29900,
29929,
29906,
29889,
29900,
24544,
29914,
29945,
29941,
29953,
29889,
29953,
29908,
13,
29962,
13,
13,
1753,
1286,
7295,
13,
1678,
736,
938,
29898,
2230,
580,
29930,
29896,
29900,
29900,
29900,
29897,
13,
13,
1753,
679,
29918,
3126,
29898,
726,
1125,
13,
1678,
736,
4390,
29889,
18132,
29898,
276,
29889,
1491,
29898,
29878,
29908,
29985,
29961,
998,
14178,
613,
15516,
1426,
29892,
29871,
29896,
876,
13,
13,
1753,
13615,
29918,
517,
29918,
3090,
29898,
26204,
1125,
13,
1678,
565,
13615,
529,
29871,
29896,
29900,
29901,
13,
4706,
736,
851,
29898,
26204,
29897,
13,
1678,
736,
18460,
29898,
536,
877,
29874,
1495,
718,
13615,
448,
29871,
29896,
29900,
29897,
13,
13,
1753,
851,
29918,
3188,
29898,
4537,
29892,
3188,
1125,
13,
1678,
565,
1353,
529,
29871,
29900,
29901,
13,
4706,
736,
17411,
29915,
718,
851,
29918,
3188,
6278,
4537,
29892,
2967,
29897,
13,
1678,
313,
29881,
29892,
286,
29897,
353,
1933,
1545,
29898,
4537,
29892,
2967,
29897,
13,
1678,
565,
270,
1405,
29871,
29900,
29901,
13,
4706,
736,
851,
29918,
3188,
29898,
29881,
29892,
2967,
29897,
718,
13615,
29918,
517,
29918,
3090,
29898,
29885,
29897,
13,
1678,
736,
13615,
29918,
517,
29918,
3090,
29898,
29885,
29897,
13,
13,
1753,
5706,
3728,
1367,
29898,
4645,
29918,
333,
29922,
8516,
1125,
13,
1678,
413,
353,
1286,
580,
13,
1678,
301,
353,
938,
29898,
8172,
580,
334,
29871,
29946,
29906,
29929,
29946,
29929,
29953,
29955,
29906,
29929,
29945,
29897,
13,
1678,
736,
4852,
29966,
29995,
29879,
16664,
29879,
29899,
29966,
26862,
6227,
6778,
29908,
1273,
313,
29895,
29892,
301,
29892,
3132,
29918,
333,
2483,
13,
13,
1753,
679,
10140,
1535,
1367,
7295,
13,
1678,
736,
15090,
29898,
524,
29898,
8172,
580,
334,
29871,
29906,
29896,
29946,
29955,
29946,
29947,
29941,
29953,
29946,
29947,
876,
13,
13,
1753,
5706,
6880,
1220,
4899,
292,
1367,
580,
584,
13,
1678,
3240,
353,
1286,
580,
13,
1678,
995,
353,
938,
29898,
8172,
580,
334,
29871,
29946,
29906,
29929,
29946,
29929,
29953,
29955,
29906,
29929,
29945,
416,
13,
1678,
1347,
353,
4852,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29908,
718,
9016,
29898,
1767,
876,
14352,
29906,
29906,
17531,
13,
1678,
10887,
3174,
353,
9016,
29898,
2267,
29897,
718,
1347,
13,
1678,
736,
851,
29898,
524,
29898,
1516,
3174,
29892,
29906,
876,
13,
2
] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.