repo_name
stringlengths 6
100
| path
stringlengths 4
294
| copies
stringclasses 981
values | size
stringlengths 4
6
| content
stringlengths 606
896k
| license
stringclasses 15
values |
---|---|---|---|---|---|
JaneliaSciComp/Neuroptikon | Source/lib/CrossPlatform/networkx/generators/small.py | 1 | 12813 | """
Various small and named graphs, together with some compact generators.
"""
__author__ ="""Aric Hagberg (hagberg@lanl.gov)\nPieter Swart (swart@lanl.gov)"""
# Copyright (C) 2004-2008 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
__all__ = ['make_small_graph',
'LCF_graph',
'bull_graph',
'chvatal_graph',
'cubical_graph',
'desargues_graph',
'diamond_graph',
'dodecahedral_graph',
'frucht_graph',
'heawood_graph',
'house_graph',
'house_x_graph',
'icosahedral_graph',
'krackhardt_kite_graph',
'moebius_kantor_graph',
'octahedral_graph',
'pappus_graph',
'petersen_graph',
'sedgewick_maze_graph',
'tetrahedral_graph',
'truncated_cube_graph',
'truncated_tetrahedron_graph',
'tutte_graph']
from networkx.generators.classic import empty_graph, cycle_graph, path_graph, complete_graph
from networkx.exception import NetworkXError
#------------------------------------------------------------------------------
# Tools for creating small graphs
#------------------------------------------------------------------------------
def make_small_undirected_graph(graph_description, create_using=None):
"""
Return a small undirected graph described by graph_description.
See make_small_graph.
"""
if create_using is not None and create_using.is_directed():
raise NetworkXError("Directed Graph not supported")
return make_small_graph(graph_description, create_using)
def make_small_graph(graph_description, create_using=None):
"""
Return the small graph described by graph_description.
graph_description is a list of the form [ltype,name,n,xlist]
Here ltype is one of "adjacencylist" or "edgelist",
name is the name of the graph and n the number of nodes.
This constructs a graph of n nodes with integer labels 0,..,n-1.
If ltype="adjacencylist" then xlist is an adjacency list
with exactly n entries, in with the j'th entry (which can be empty)
specifies the nodes connected to vertex j.
e.g. the "square" graph C_4 can be obtained by
>>> G=nx.make_small_graph(["adjacencylist","C_4",4,[[2,4],[1,3],[2,4],[1,3]]])
or, since we do not need to add edges twice,
>>> G=nx.make_small_graph(["adjacencylist","C_4",4,[[2,4],[3],[4],[]]])
If ltype="edgelist" then xlist is an edge list
written as [[v1,w2],[v2,w2],...,[vk,wk]],
where vj and wj integers in the range 1,..,n
e.g. the "square" graph C_4 can be obtained by
>>> G=nx.make_small_graph(["edgelist","C_4",4,[[1,2],[3,4],[2,3],[4,1]]])
Use the create_using argument to choose the graph class/type.
"""
ltype=graph_description[0]
name=graph_description[1]
n=graph_description[2]
G=empty_graph(n, create_using)
nodes=G.nodes()
if ltype=="adjacencylist":
adjlist=graph_description[3]
if len(adjlist) != n:
raise NetworkXError,"invalid graph_description"
G.add_edges_from([(u-1,v) for v in nodes for u in adjlist[v]])
elif ltype=="edgelist":
edgelist=graph_description[3]
for e in edgelist:
v1=e[0]-1
v2=e[1]-1
if v1<0 or v1>n-1 or v2<0 or v2>n-1:
raise NetworkXError,"invalid graph_description"
else:
G.add_edge(v1,v2)
G.name=name
return G
def LCF_graph(n,shift_list,repeats,create_using=None):
"""
Return the cubic graph specified in LCF notation.
LCF notation (LCF=Lederberg-Coxeter-Fruchte) is a compressed
notation used in the generation of various cubic Hamiltonian
graphs of high symmetry. See, for example, dodecahedral_graph,
desargues_graph, heawood_graph and pappus_graph below.
n (number of nodes)
The starting graph is the n-cycle with nodes 0,...,n-1.
(The null graph is returned if n < 0.)
shift_list = [s1,s2,..,sk], a list of integer shifts mod n,
repeats
integer specifying the number of times that shifts in shift_list
are successively applied to each v_current in the n-cycle
to generate an edge between v_current and v_current+shift mod n.
For v1 cycling through the n-cycle a total of k*repeats
with shift cycling through shiftlist repeats times connect
v1 with v1+shift mod n
The utility graph K_{3,3}
>>> G=nx.LCF_graph(6,[3,-3],3)
The Heawood graph
>>> G=nx.LCF_graph(14,[5,-5],7)
See http://mathworld.wolfram.com/LCFNotation.html for a description
and references.
"""
if create_using is not None and create_using.is_directed():
raise NetworkXError("Directed Graph not supported")
if n <= 0:
return empty_graph(0, create_using)
# start with the n-cycle
G=cycle_graph(n, create_using)
G.name="LCF_graph"
nodes=G.nodes()
n_extra_edges=repeats*len(shift_list)
# edges are added n_extra_edges times
# (not all of these need be new)
if n_extra_edges < 1:
return G
for i in range(n_extra_edges):
shift=shift_list[i%len(shift_list)] #cycle through shift_list
v1=nodes[i%n] # cycle repeatedly through nodes
v2=nodes[(i + shift)%n]
G.add_edge(v1, v2)
return G
#-------------------------------------------------------------------------------
# Various small and named graphs
#-------------------------------------------------------------------------------
def bull_graph(create_using=None):
"""Return the Bull graph. """
description=[
"adjacencylist",
"Bull Graph",
5,
[[2,3],[1,3,4],[1,2,5],[2],[3]]
]
G=make_small_undirected_graph(description, create_using)
return G
def chvatal_graph(create_using=None):
"""Return the Chvatal graph."""
description=[
"adjacencylist",
"Chvatal Graph",
12,
[[2,5,7,10],[3,6,8],[4,7,9],[5,8,10],
[6,9],[11,12],[11,12],[9,12],
[11],[11,12],[],[]]
]
G=make_small_undirected_graph(description, create_using)
return G
def cubical_graph(create_using=None):
"""Return the 3-regular Platonic Cubical graph."""
description=[
"adjacencylist",
"Platonic Cubical Graph",
8,
[[2,4,5],[1,3,8],[2,4,7],[1,3,6],
[1,6,8],[4,5,7],[3,6,8],[2,5,7]]
]
G=make_small_undirected_graph(description, create_using)
return G
def desargues_graph(create_using=None):
""" Return the Desargues graph."""
G=LCF_graph(20, [5,-5,9,-9], 5, create_using)
G.name="Desargues Graph"
return G
def diamond_graph(create_using=None):
"""Return the Diamond graph. """
description=[
"adjacencylist",
"Diamond Graph",
4,
[[2,3],[1,3,4],[1,2,4],[2,3]]
]
G=make_small_undirected_graph(description, create_using)
return G
def dodecahedral_graph(create_using=None):
""" Return the Platonic Dodecahedral graph. """
G=LCF_graph(20, [10,7,4,-4,-7,10,-4,7,-7,4], 2, create_using)
G.name="Dodecahedral Graph"
return G
def frucht_graph(create_using=None):
"""Return the Frucht Graph.
The Frucht Graph is the smallest cubical graph whose
automorphism group consists only of the identity element.
"""
G=cycle_graph(7, create_using)
G.add_edges_from([[0,7],[1,7],[2,8],[3,9],[4,9],[5,10],[6,10],
[7,11],[8,11],[8,9],[10,11]])
G.name="Frucht Graph"
return G
def heawood_graph(create_using=None):
""" Return the Heawood graph, a (3,6) cage. """
G=LCF_graph(14, [5,-5], 7, create_using)
G.name="Heawood Graph"
return G
def house_graph(create_using=None):
"""Return the House graph (square with triangle on top)."""
description=[
"adjacencylist",
"House Graph",
5,
[[2,3],[1,4],[1,4,5],[2,3,5],[3,4]]
]
G=make_small_undirected_graph(description, create_using)
return G
def house_x_graph(create_using=None):
"""Return the House graph with a cross inside the house square."""
description=[
"adjacencylist",
"House-with-X-inside Graph",
5,
[[2,3,4],[1,3,4],[1,2,4,5],[1,2,3,5],[3,4]]
]
G=make_small_undirected_graph(description, create_using)
return G
def icosahedral_graph(create_using=None):
"""Return the Platonic Icosahedral graph."""
description=[
"adjacencylist",
"Platonic Icosahedral Graph",
12,
[[2,6,8,9,12],[3,6,7,9],[4,7,9,10],[5,7,10,11],
[6,7,11,12],[7,12],[],[9,10,11,12],
[10],[11],[12],[]]
]
G=make_small_undirected_graph(description, create_using)
return G
def krackhardt_kite_graph(create_using=None):
"""
Return the Krackhardt Kite Social Network.
A 10 actor social network introduced by David Krackhardt
to illustrate: degree, betweenness, centrality, closeness, etc.
The traditional labeling is:
Andre=1, Beverley=2, Carol=3, Diane=4,
Ed=5, Fernando=6, Garth=7, Heather=8, Ike=9, Jane=10.
"""
description=[
"adjacencylist",
"Krackhardt Kite Social Network",
10,
[[2,3,4,6],[1,4,5,7],[1,4,6],[1,2,3,5,6,7],[2,4,7],
[1,3,4,7,8],[2,4,5,6,8],[6,7,9],[8,10],[9]]
]
G=make_small_undirected_graph(description, create_using)
return G
def moebius_kantor_graph(create_using=None):
"""Return the Moebius-Kantor graph."""
G=LCF_graph(16, [5,-5], 8, create_using)
G.name="Moebius-Kantor Graph"
return G
def octahedral_graph(create_using=None):
"""Return the Platonic Octahedral graph."""
description=[
"adjacencylist",
"Platonic Octahedral Graph",
6,
[[2,3,4,5],[3,4,6],[5,6],[5,6],[6],[]]
]
G=make_small_undirected_graph(description, create_using)
return G
def pappus_graph():
""" Return the Pappus graph."""
G=LCF_graph(18,[5,7,-7,7,-7,-5],3)
G.name="Pappus Graph"
return G
def petersen_graph(create_using=None):
"""Return the Petersen graph."""
description=[
"adjacencylist",
"Petersen Graph",
10,
[[2,5,6],[1,3,7],[2,4,8],[3,5,9],[4,1,10],[1,8,9],[2,9,10],
[3,6,10],[4,6,7],[5,7,8]]
]
G=make_small_undirected_graph(description, create_using)
return G
def sedgewick_maze_graph(create_using=None):
"""
Return a small maze with a cycle.
This is the maze used in Sedgewick,3rd Edition, Part 5, Graph
Algorithms, Chapter 18, e.g. Figure 18.2 and following.
Nodes are numbered 0,..,7
"""
G=empty_graph(0, create_using)
G.add_nodes_from(range(8))
G.add_edges_from([[0,2],[0,7],[0,5]])
G.add_edges_from([[1,7],[2,6]])
G.add_edges_from([[3,4],[3,5]])
G.add_edges_from([[4,5],[4,7],[4,6]])
G.name="Sedgewick Maze"
return G
def tetrahedral_graph(create_using=None):
""" Return the 3-regular Platonic Tetrahedral graph."""
G=complete_graph(4, create_using)
G.name="Platonic Tetrahedral graph"
return G
def truncated_cube_graph(create_using=None):
"""Return the skeleton of the truncated cube."""
description=[
"adjacencylist",
"Truncated Cube Graph",
24,
[[2,3,5],[12,15],[4,5],[7,9],
[6],[17,19],[8,9],[11,13],
[10],[18,21],[12,13],[15],
[14],[22,23],[16],[20,24],
[18,19],[21],[20],[24],
[22],[23],[24],[]]
]
G=make_small_undirected_graph(description, create_using)
return G
def truncated_tetrahedron_graph(create_using=None):
"""Return the skeleton of the truncated Platonic tetrahedron."""
G=path_graph(12, create_using)
# G.add_edges_from([(1,3),(1,10),(2,7),(4,12),(5,12),(6,8),(9,11)])
G.add_edges_from([(0,2),(0,9),(1,6),(3,11),(4,11),(5,7),(8,10)])
G.name="Truncated Tetrahedron Graph"
return G
def tutte_graph(create_using=None):
"""Return the Tutte graph."""
description=[
"adjacencylist",
"Tutte's Graph",
46,
[[2,3,4],[5,27],[11,12],[19,20],[6,34],
[7,30],[8,28],[9,15],[10,39],[11,38],
[40],[13,40],[14,36],[15,16],[35],
[17,23],[18,45],[19,44],[46],[21,46],
[22,42],[23,24],[41],[25,28],[26,33],
[27,32],[34],[29],[30,33],[31],
[32,34],[33],[],[],[36,39],
[37],[38,40],[39],[],[],
[42,45],[43],[44,46],[45],[],[]]
]
G=make_small_undirected_graph(description, create_using)
return G
| bsd-3-clause |
firebase/grpc-SwiftPM | test/http2_test/http2_server_health_check.py | 13 | 1319 | # Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import argparse
import hyper
import sys
# Utility to healthcheck the http2 server. Used when starting the server to
# verify that the server is live before tests begin.
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--server_host', type=str, default='localhost')
parser.add_argument('--server_port', type=int, default=8080)
args = parser.parse_args()
server_host = args.server_host
server_port = args.server_port
conn = hyper.HTTP20Connection('%s:%d' % (server_host, server_port))
conn.request('POST', '/grpc.testing.TestService/UnaryCall')
resp = conn.get_response()
if resp.headers.get('grpc-encoding') is None:
sys.exit(1)
else:
sys.exit(0)
| apache-2.0 |
navrasio/mxnet | example/reinforcement-learning/ddpg/ddpg.py | 42 | 13263 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from replay_mem import ReplayMem
from utils import discount_return, sample_rewards
import rllab.misc.logger as logger
import pyprind
import mxnet as mx
import numpy as np
class DDPG(object):
def __init__(
self,
env,
policy,
qfunc,
strategy,
ctx=mx.gpu(0),
batch_size=32,
n_epochs=1000,
epoch_length=1000,
memory_size=1000000,
memory_start_size=1000,
discount=0.99,
max_path_length=1000,
eval_samples=10000,
qfunc_updater="adam",
qfunc_lr=1e-4,
policy_updater="adam",
policy_lr=1e-4,
soft_target_tau=1e-3,
n_updates_per_sample=1,
include_horizon_terminal=False,
seed=12345):
mx.random.seed(seed)
np.random.seed(seed)
self.env = env
self.ctx = ctx
self.policy = policy
self.qfunc = qfunc
self.strategy = strategy
self.batch_size = batch_size
self.n_epochs = n_epochs
self.epoch_length = epoch_length
self.memory_size = memory_size
self.memory_start_size = memory_start_size
self.discount = discount
self.max_path_length = max_path_length
self.eval_samples = eval_samples
self.qfunc_updater = qfunc_updater
self.qfunc_lr = qfunc_lr
self.policy_updater = policy_updater
self.policy_lr = policy_lr
self.soft_target_tau = soft_target_tau
self.n_updates_per_sample = n_updates_per_sample
self.include_horizon_terminal = include_horizon_terminal
self.init_net()
# logging
self.qfunc_loss_averages = []
self.policy_loss_averages = []
self.q_averages = []
self.y_averages = []
self.strategy_path_returns = []
def init_net(self):
# qfunc init
qfunc_init = mx.initializer.Normal()
loss_symbols = self.qfunc.get_loss_symbols()
qval_sym = loss_symbols["qval"]
yval_sym = loss_symbols["yval"]
# define loss here
loss = 1.0 / self.batch_size * mx.symbol.sum(
mx.symbol.square(qval_sym - yval_sym))
qfunc_loss = loss
qfunc_updater = mx.optimizer.get_updater(
mx.optimizer.create(self.qfunc_updater,
learning_rate=self.qfunc_lr))
self.qfunc_input_shapes = {
"obs": (self.batch_size, self.env.observation_space.flat_dim),
"act": (self.batch_size, self.env.action_space.flat_dim),
"yval": (self.batch_size, 1)}
self.qfunc.define_loss(qfunc_loss)
self.qfunc.define_exe(
ctx=self.ctx,
init=qfunc_init,
updater=qfunc_updater,
input_shapes=self.qfunc_input_shapes)
# qfunc_target init
qfunc_target_shapes = {
"obs": (self.batch_size, self.env.observation_space.flat_dim),
"act": (self.batch_size, self.env.action_space.flat_dim)
}
self.qfunc_target = qval_sym.simple_bind(ctx=self.ctx,
**qfunc_target_shapes)
# parameters are not shared but initialized the same
for name, arr in self.qfunc_target.arg_dict.items():
if name not in self.qfunc_input_shapes:
self.qfunc.arg_dict[name].copyto(arr)
# policy init
policy_init = mx.initializer.Normal()
loss_symbols = self.policy.get_loss_symbols()
act_sym = loss_symbols["act"]
policy_qval = qval_sym
# note the negative one here: the loss maximizes the average return
loss = -1.0 / self.batch_size * mx.symbol.sum(policy_qval)
policy_loss = loss
policy_loss = mx.symbol.MakeLoss(policy_loss, name="policy_loss")
policy_updater = mx.optimizer.get_updater(
mx.optimizer.create(self.policy_updater,
learning_rate=self.policy_lr))
self.policy_input_shapes = {
"obs": (self.batch_size, self.env.observation_space.flat_dim)}
self.policy.define_exe(
ctx=self.ctx,
init=policy_init,
updater=policy_updater,
input_shapes=self.policy_input_shapes)
# policy network and q-value network are combined to backpropage
# gradients from the policy loss
# since the loss is different, yval is not needed
args = {}
for name, arr in self.qfunc.arg_dict.items():
if name != "yval":
args[name] = arr
args_grad = {}
policy_grad_dict = dict(zip(self.qfunc.loss.list_arguments(), self.qfunc.exe.grad_arrays))
for name, arr in policy_grad_dict.items():
if name != "yval":
args_grad[name] = arr
self.policy_executor = policy_loss.bind(
ctx=self.ctx,
args=args,
args_grad=args_grad,
grad_req="write")
self.policy_executor_arg_dict = self.policy_executor.arg_dict
self.policy_executor_grad_dict = dict(zip(
policy_loss.list_arguments(),
self.policy_executor.grad_arrays))
# policy_target init
# target policy only needs to produce actions, not loss
# parameters are not shared but initialized the same
self.policy_target = act_sym.simple_bind(ctx=self.ctx,
**self.policy_input_shapes)
for name, arr in self.policy_target.arg_dict.items():
if name not in self.policy_input_shapes:
self.policy.arg_dict[name].copyto(arr)
def train(self):
memory = ReplayMem(
obs_dim=self.env.observation_space.flat_dim,
act_dim=self.env.action_space.flat_dim,
memory_size=self.memory_size)
itr = 0
path_length = 0
path_return = 0
end = False
obs = self.env.reset()
for epoch in xrange(self.n_epochs):
logger.push_prefix("epoch #%d | " % epoch)
logger.log("Training started")
for epoch_itr in pyprind.prog_bar(range(self.epoch_length)):
# run the policy
if end:
# reset the environment and stretegy when an episode ends
obs = self.env.reset()
self.strategy.reset()
# self.policy.reset()
self.strategy_path_returns.append(path_return)
path_length = 0
path_return = 0
# note action is sampled from the policy not the target policy
act = self.strategy.get_action(obs, self.policy)
nxt, rwd, end, _ = self.env.step(act)
path_length += 1
path_return += rwd
if not end and path_length >= self.max_path_length:
end = True
if self.include_horizon_terminal:
memory.add_sample(obs, act, rwd, end)
else:
memory.add_sample(obs, act, rwd, end)
obs = nxt
if memory.size >= self.memory_start_size:
for update_time in xrange(self.n_updates_per_sample):
batch = memory.get_batch(self.batch_size)
self.do_update(itr, batch)
itr += 1
logger.log("Training finished")
if memory.size >= self.memory_start_size:
self.evaluate(epoch, memory)
logger.dump_tabular(with_prefix=False)
logger.pop_prefix()
# self.env.terminate()
# self.policy.terminate()
def do_update(self, itr, batch):
obss, acts, rwds, ends, nxts = batch
self.policy_target.arg_dict["obs"][:] = nxts
self.policy_target.forward(is_train=False)
next_acts = self.policy_target.outputs[0].asnumpy()
policy_acts = self.policy.get_actions(obss)
self.qfunc_target.arg_dict["obs"][:] = nxts
self.qfunc_target.arg_dict["act"][:] = next_acts
self.qfunc_target.forward(is_train=False)
next_qvals = self.qfunc_target.outputs[0].asnumpy()
# executor accepts 2D tensors
rwds = rwds.reshape((-1, 1))
ends = ends.reshape((-1, 1))
ys = rwds + (1.0 - ends) * self.discount * next_qvals
# since policy_executor shares the grad arrays with qfunc
# the update order could not be changed
self.qfunc.update_params(obss, acts, ys)
# in update values all computed
# no need to recompute qfunc_loss and qvals
qfunc_loss = self.qfunc.exe.outputs[0].asnumpy()
qvals = self.qfunc.exe.outputs[1].asnumpy()
self.policy_executor.arg_dict["obs"][:] = obss
self.policy_executor.arg_dict["act"][:] = policy_acts
self.policy_executor.forward(is_train=True)
policy_loss = self.policy_executor.outputs[0].asnumpy()
self.policy_executor.backward()
self.policy.update_params(self.policy_executor_grad_dict["act"])
# update target networks
for name, arr in self.policy_target.arg_dict.items():
if name not in self.policy_input_shapes:
arr[:] = (1.0 - self.soft_target_tau) * arr[:] + \
self.soft_target_tau * self.policy.arg_dict[name][:]
for name, arr in self.qfunc_target.arg_dict.items():
if name not in self.qfunc_input_shapes:
arr[:] = (1.0 - self.soft_target_tau) * arr[:] + \
self.soft_target_tau * self.qfunc.arg_dict[name][:]
self.qfunc_loss_averages.append(qfunc_loss)
self.policy_loss_averages.append(policy_loss)
self.q_averages.append(qvals)
self.y_averages.append(ys)
def evaluate(self, epoch, memory):
if epoch == self.n_epochs - 1:
logger.log("Collecting samples for evaluation")
rewards = sample_rewards(env=self.env,
policy=self.policy,
eval_samples=self.eval_samples,
max_path_length=self.max_path_length)
average_discounted_return = np.mean(
[discount_return(reward, self.discount) for reward in rewards])
returns = [sum(reward) for reward in rewards]
all_qs = np.concatenate(self.q_averages)
all_ys = np.concatenate(self.y_averages)
average_qfunc_loss = np.mean(self.qfunc_loss_averages)
average_policy_loss = np.mean(self.policy_loss_averages)
logger.record_tabular('Epoch', epoch)
if epoch == self.n_epochs - 1:
logger.record_tabular('AverageReturn',
np.mean(returns))
logger.record_tabular('StdReturn',
np.std(returns))
logger.record_tabular('MaxReturn',
np.max(returns))
logger.record_tabular('MinReturn',
np.min(returns))
logger.record_tabular('AverageDiscountedReturn',
average_discounted_return)
if len(self.strategy_path_returns) > 0:
logger.record_tabular('AverageEsReturn',
np.mean(self.strategy_path_returns))
logger.record_tabular('StdEsReturn',
np.std(self.strategy_path_returns))
logger.record_tabular('MaxEsReturn',
np.max(self.strategy_path_returns))
logger.record_tabular('MinEsReturn',
np.min(self.strategy_path_returns))
logger.record_tabular('AverageQLoss', average_qfunc_loss)
logger.record_tabular('AveragePolicyLoss', average_policy_loss)
logger.record_tabular('AverageQ', np.mean(all_qs))
logger.record_tabular('AverageAbsQ', np.mean(np.abs(all_qs)))
logger.record_tabular('AverageY', np.mean(all_ys))
logger.record_tabular('AverageAbsY', np.mean(np.abs(all_ys)))
logger.record_tabular('AverageAbsQYDiff',
np.mean(np.abs(all_qs - all_ys)))
self.qfunc_loss_averages = []
self.policy_loss_averages = []
self.q_averages = []
self.y_averages = []
self.strategy_path_returns = []
| apache-2.0 |
facebook/buck | docs/soy2html.py | 3 | 3318 | #!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
import os
import subprocess
import sys
import time
URL_ROOT = "http://localhost:9814/"
def main(output_dir):
# Iterate over the files in the docs directory and copy them, as
# appropriate.
for root, dirs, files in os.walk("."):
for file_name in files:
if file_name.endswith(".soy") and not file_name.startswith("__"):
# Strip the './' prefix, if appropriate.
if root.startswith("./"):
root = root[2:]
# Construct the URL where the .soy file is being served.
soy_file = file_name
html_file = root + "/" + soy_file[: -len(".soy")] + ".html"
url = URL_ROOT + html_file
copy_dest = ensure_dir(html_file, output_dir)
subprocess.check_call(["curl", "--fail", "--output", copy_dest, url])
elif (
file_name == ".nojekyll"
or file_name == "CNAME"
or file_name.endswith(".css")
or file_name.endswith(".jpg")
or file_name.endswith(".js")
or file_name.endswith(".png")
or file_name.endswith(".gif")
or file_name.endswith(".html")
or file_name.endswith(".md")
or file_name.endswith(".svg")
or file_name.endswith(".ttf")
or file_name.endswith(".txt")
):
# Copy the static resource to output_dir.
relative_path = os.path.join(root, file_name)
with open(relative_path, "rb") as resource_file:
resource = resource_file.read()
copy_to_output_dir(relative_path, output_dir, resource)
def ensure_dir(path, output_dir):
last_slash = path.rfind("/")
if last_slash != -1:
output_subdir = os.path.join(output_dir, path[:last_slash])
if not os.path.exists(output_subdir):
os.makedirs(output_subdir)
return os.path.join(output_dir, path)
def copy_to_output_dir(path, output_dir, content):
output_file = ensure_dir(path, output_dir)
with open(output_file, "wb") as f:
f.write(content)
def pollForServerReady():
SERVER_START_POLL = 5
print("Waiting for server to start.")
for _ in range(0, SERVER_START_POLL):
result = subprocess.call(["curl", "--fail", "-I", URL_ROOT])
if result == 0:
return
time.sleep(1)
print("Server failed to start after %s seconds." % SERVER_START_POLL)
if __name__ == "__main__":
output_dir = sys.argv[1]
pollForServerReady()
main(output_dir)
| apache-2.0 |
looopTools/sw9-source | .waf-1.9.8-6657823688b736c1d1a4e2c4e8e198b4/waflib/extras/wurf/dependency.py | 1 | 2578 | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
import hashlib
import json
import collections
import pprint
class Dependency(object):
def __init__(self,**kwargs):
assert"sha1"not in kwargs
if'recurse'not in kwargs:
kwargs['recurse']=True
if'optional'not in kwargs:
kwargs['optional']=False
if'internal'not in kwargs:
kwargs['internal']=False
hash_attributes=kwargs.copy()
hash_attributes.pop('optional',None)
hash_attributes.pop('internal',None)
s=json.dumps(hash_attributes,sort_keys=True)
sha1=hashlib.sha1(s.encode('utf-8')).hexdigest()
object.__setattr__(self,'info',kwargs)
self.info['sha1']=sha1
self.info['hash']=None
object.__setattr__(self,'read_write',dict())
object.__setattr__(self,'audit',list())
self.error_messages=[]
def rewrite(self,attribute,value,reason):
if value==None:
self.__delete(attribute=attribute,reason=reason)
elif attribute not in self.info:
self.__create(attribute=attribute,value=value,reason=reason)
else:
self.__modify(attribute=attribute,value=value,reason=reason)
def __delete(self,attribute,reason):
if attribute not in self.info:
raise AttributeError("Cannot delete non existing attribute {}".format(attribute))
audit='Deleting "{}". Reason: {}'.format(attribute,reason)
del self.info[attribute]
self.audit.append(audit)
def __create(self,attribute,value,reason):
audit='Creating "{}" value "{}". Reason: {}'.format(attribute,value,reason)
self.audit.append(audit)
self.info[attribute]=value
def __modify(self,attribute,value,reason):
audit='Modifying "{}" from "{}" to "{}". Reason: {}'.format(attribute,self.info[attribute],value,reason)
self.audit.append(audit)
self.info[attribute]=value
def __getattr__(self,attribute):
if attribute in self.info:
return self.info[attribute]
elif attribute in self.read_write:
return self.read_write[attribute]
else:
return None
def __setattr__(self,attribute,value):
if attribute in self.info:
raise AttributeError("Attribute {} read-only.".format(attribute))
else:
self.read_write[attribute]=value
def __contains__(self,attribute):
return(attribute in self.info)or(attribute in self.read_write)
def __str__(self):
return"Dependency info:\n{}\nread_write: {}\naudit: {}".format(pprint.pformat(self.info,indent=2),pprint.pformat(self.read_write,indent=2),pprint.pformat(self.audit,indent=2))
def __hash__(self):
if not self.info['hash']:
self.info['hash']=hash(self.info['sha1'])
return self.info['hash']
| mit |
guijomatos/SickRage | sickbeard/providers/bitsoup.py | 7 | 10171 | # Author: Idan Gutman
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of SickRage.
#
# SickRage is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# SickRage is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SickRage. If not, see <http://www.gnu.org/licenses/>.
import re
import traceback
import datetime
import sickbeard
import generic
from sickbeard.common import Quality
from sickbeard import logger
from sickbeard import tvcache
from sickbeard import db
from sickbeard import classes
from sickbeard import helpers
from sickbeard import show_name_helpers
from sickbeard.helpers import sanitizeSceneName
from sickbeard.bs4_parser import BS4Parser
from sickrage.helper.exceptions import AuthException
class BitSoupProvider(generic.TorrentProvider):
def __init__(self):
generic.TorrentProvider.__init__(self, "BitSoup")
self.urls = {
'base_url': 'https://www.bitsoup.me',
'login': 'https://www.bitsoup.me/takelogin.php',
'detail': 'https://www.bitsoup.me/details.php?id=%s',
'search': 'https://www.bitsoup.me/browse.php',
'download': 'https://bitsoup.me/%s',
}
self.url = self.urls['base_url']
self.supportsBacklog = True
self.public = False
self.enabled = False
self.username = None
self.password = None
self.ratio = None
self.minseed = None
self.minleech = None
self.cache = BitSoupCache(self)
self.search_params = {
"c42": 1, "c45": 1, "c49": 1, "c7": 1
}
def isEnabled(self):
return self.enabled
def imageName(self):
return 'bitsoup.png'
def getQuality(self, item, anime=False):
quality = Quality.sceneQuality(item[0], anime)
return quality
def _checkAuth(self):
if not self.username or not self.password:
raise AuthException("Your authentication credentials for " + self.name + " are missing, check your config.")
return True
def _doLogin(self):
login_params = {
'username': self.username,
'password': self.password,
'ssl': 'yes'
}
response = self.getURL(self.urls['login'], post_data=login_params, timeout=30)
if not response:
logger.log(u'Unable to connect to ' + self.name + ' provider.', logger.ERROR)
return False
if re.search('Username or password incorrect', response):
logger.log(u'Invalid username or password for ' + self.name + ' Check your settings', logger.ERROR)
return False
return True
def _get_season_search_strings(self, ep_obj):
search_string = {'Season': []}
for show_name in set(show_name_helpers.allPossibleShowNames(self.show)):
if ep_obj.show.air_by_date or ep_obj.show.sports:
ep_string = show_name + ' ' + str(ep_obj.airdate).split('-')[0]
elif ep_obj.show.anime:
ep_string = show_name + ' ' + "%d" % ep_obj.scene_absolute_number
else:
ep_string = show_name + ' S%02d' % int(ep_obj.scene_season) #1) showName SXX
search_string['Season'].append(ep_string)
return [search_string]
def _get_episode_search_strings(self, ep_obj, add_string=''):
search_string = {'Episode': []}
if not ep_obj:
return []
if self.show.air_by_date:
for show_name in set(show_name_helpers.allPossibleShowNames(self.show)):
ep_string = sanitizeSceneName(show_name) + ' ' + \
str(ep_obj.airdate).replace('-', '|')
search_string['Episode'].append(ep_string)
elif self.show.sports:
for show_name in set(show_name_helpers.allPossibleShowNames(self.show)):
ep_string = sanitizeSceneName(show_name) + ' ' + \
str(ep_obj.airdate).replace('-', '|') + '|' + \
ep_obj.airdate.strftime('%b')
search_string['Episode'].append(ep_string)
elif self.show.anime:
for show_name in set(show_name_helpers.allPossibleShowNames(self.show)):
ep_string = sanitizeSceneName(show_name) + ' ' + \
"%i" % int(ep_obj.scene_absolute_number)
search_string['Episode'].append(ep_string)
else:
for show_name in set(show_name_helpers.allPossibleShowNames(self.show)):
ep_string = sanitizeSceneName(show_name) + ' ' + \
sickbeard.config.naming_ep_type[2] % {'seasonnumber': ep_obj.scene_season,
'episodenumber': ep_obj.scene_episode} + ' %s' % add_string
search_string['Episode'].append(re.sub('\s+', ' ', ep_string))
return [search_string]
def _doSearch(self, search_strings, search_mode='eponly', epcount=0, age=0, epObj=None):
results = []
items = {'Season': [], 'Episode': [], 'RSS': []}
if not self._doLogin():
return results
for mode in search_strings.keys():
for search_string in search_strings[mode]:
logger.log(u"Search string: " + search_string, logger.DEBUG)
self.search_params['search'] = search_string
data = self.getURL(self.urls['search'], params=self.search_params)
if not data:
continue
try:
with BS4Parser(data, "html.parser") as html:
torrent_table = html.find('table', attrs={'class': 'koptekst'})
torrent_rows = torrent_table.find_all('tr') if torrent_table else []
#Continue only if one Release is found
if len(torrent_rows) < 2:
logger.log(u"The Data returned from " + self.name + " do not contains any torrent",
logger.DEBUG)
continue
for result in torrent_rows[1:]:
cells = result.find_all('td')
link = cells[1].find('a')
download_url = self.urls['download'] % cells[2].find('a')['href']
id = link['href']
id = id.replace('details.php?id=','')
id = id.replace('&hit=1', '')
try:
title = link.getText()
id = int(id)
seeders = int(cells[10].getText())
leechers = int(cells[11].getText())
except (AttributeError, TypeError):
continue
#Filter unseeded torrent
if seeders < self.minseed or leechers < self.minleech:
continue
if not title or not download_url:
continue
item = title, download_url, id, seeders, leechers
logger.log(u"Found result: " + title.replace(' ','.') + " (" + search_string + ")", logger.DEBUG)
items[mode].append(item)
except Exception, e:
logger.log(u"Failed parsing " + self.name + " Traceback: " + traceback.format_exc(), logger.ERROR)
#For each search mode sort all the items by seeders
items[mode].sort(key=lambda tup: tup[3], reverse=True)
results += items[mode]
return results
def _get_title_and_url(self, item):
title, url, id, seeders, leechers = item
if title:
title = self._clean_title_from_provider(title)
if url:
url = str(url).replace('&', '&')
return (title, url)
def findPropers(self, search_date=datetime.datetime.today()):
results = []
myDB = db.DBConnection()
sqlResults = myDB.select(
'SELECT s.show_name, e.showid, e.season, e.episode, e.status, e.airdate FROM tv_episodes AS e' +
' INNER JOIN tv_shows AS s ON (e.showid = s.indexer_id)' +
' WHERE e.airdate >= ' + str(search_date.toordinal()) +
' AND (e.status IN (' + ','.join([str(x) for x in Quality.DOWNLOADED]) + ')' +
' OR (e.status IN (' + ','.join([str(x) for x in Quality.SNATCHED]) + ')))'
)
for sqlshow in sqlResults or []:
self.show = helpers.findCertainShow(sickbeard.showList, int(sqlshow["showid"]))
if self.show:
curEp = self.show.getEpisode(int(sqlshow["season"]), int(sqlshow["episode"]))
searchString = self._get_episode_search_strings(curEp, add_string='PROPER|REPACK')
for item in self._doSearch(searchString[0]):
title, url = self._get_title_and_url(item)
results.append(classes.Proper(title, url, datetime.datetime.today(), self.show))
return results
def seedRatio(self):
return self.ratio
class BitSoupCache(tvcache.TVCache):
def __init__(self, provider):
tvcache.TVCache.__init__(self, provider)
# only poll TorrentBytes every 20 minutes max
self.minTime = 20
def _getRSSData(self):
search_strings = {'RSS': ['']}
return {'entries': self.provider._doSearch(search_strings)}
provider = BitSoupProvider()
| gpl-3.0 |
Qalthos/ansible | test/integration/targets/want_json_modules_posix/library/helloworld.py | 62 | 1047 | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# WANT_JSON
import json
import sys
try:
with open(sys.argv[1], 'r') as f:
data = json.load(f)
except (IOError, OSError, IndexError):
print(json.dumps(dict(msg="No argument file provided", failed=True)))
sys.exit(1)
salutation = data.get('salutation', 'Hello')
name = data.get('name', 'World')
print(json.dumps(dict(msg='%s, %s!' % (salutation, name))))
| gpl-3.0 |
SuperDARNCanada/placeholderOS | experiments/testing_archive/test_scanbound_not_increasing.py | 2 | 1568 | #!/usr/bin/python
# write an experiment that raises an exception
import sys
import os
BOREALISPATH = os.environ['BOREALISPATH']
sys.path.append(BOREALISPATH)
import experiments.superdarn_common_fields as scf
from experiment_prototype.experiment_prototype import ExperimentPrototype
class TestExperiment(ExperimentPrototype):
def __init__(self):
cpid = 1
super(TestExperiment, self).__init__(cpid)
if scf.IS_FORWARD_RADAR:
beams_to_use = scf.STD_16_FORWARD_BEAM_ORDER
else:
beams_to_use = scf.STD_16_REVERSE_BEAM_ORDER
if scf.opts.site_id in ["cly", "rkn", "inv"]:
num_ranges = scf.POLARDARN_NUM_RANGES
if scf.opts.site_id in ["sas", "pgr"]:
num_ranges = scf.STD_NUM_RANGES
slice_1 = { # slice_id = 0, there is only one slice.
"pulse_sequence": scf.SEQUENCE_7P,
"tau_spacing": scf.TAU_SPACING_7P,
"pulse_len": scf.PULSE_LEN_45KM,
"num_ranges": num_ranges,
"first_range": scf.STD_FIRST_RANGE,
"intt": 3500, # duration of an integration, in ms
"beam_angle": scf.STD_16_BEAM_ANGLE,
"beam_order": beams_to_use,
"scanbound": [i * 3.5 for i in range(len(beams_to_use)-1, -1, -1)], # Not increasing, should fail
"txfreq" : scf.COMMON_MODE_FREQ_1, #kHz
"acf": True,
"xcf": True, # cross-correlation processing
"acfint": True, # interferometer acfs
}
self.add_slice(slice_1)
| gpl-3.0 |
JamiiTech/mplh5canvas | examples/multi_plot.py | 4 | 1357 | #!/usr/bin/python
"""Testbed for the animation functionality of the backend, with multiple figures.
It basically produces an long series of frames that get animated on the client
browser side, this time with two figures.
"""
import matplotlib
matplotlib.use('module://mplh5canvas.backend_h5canvas')
from pylab import *
import time
def refresh_data(ax):
t = arange(0.0 + count, 2.0 + count, 0.01)
s = sin(2*pi*t)
ax.lines[0].set_xdata(t)
ax.lines[0].set_ydata(s)
ax.set_xlim(t[0],t[-1])
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
plot(t, s, linewidth=1.0)
xlabel('time (s)')
ylabel('voltage (mV)')
title('Frist Post')
f = gcf()
ax = f.gca()
count = 0
f2 = figure()
ax2 = f2.gca()
ax2.set_xlabel('IMDB rating')
ax2.set_ylabel('South African Connections')
ax2.set_title('Luds chart...')
ax2.plot(arange(0.0, 5 + count, 0.01), arange(0.0, 5 + count, 0.01))
show(block=False, layout=2)
# show the figure manager but don't block script execution so animation works..
# layout=2 overrides the default layout manager which only shows a single plot in the browser window
while True:
refresh_data(ax)
d = arange(0.0, 5 + count, 0.01)
ax2.lines[0].set_xdata(d)
ax2.lines[0].set_ydata(d)
ax2.set_xlim(d[0],d[-1])
ax2.set_ylim(d[0],d[-1])
f.canvas.draw()
f2.canvas.draw()
count += 0.01
time.sleep(1)
| bsd-3-clause |
Artanicus/python-cozify | util/device-fade-test.py | 1 | 1301 | #!/usr/bin/env python3
from cozify import hub
import numpy, time
from absl import flags, app
FLAGS = flags.FLAGS
flags.DEFINE_string('device', None, 'Device to operate on.')
flags.DEFINE_float('delay', 0.5, 'Step length in seconds.')
flags.DEFINE_float('steps', 20, 'Amount of steps to divide into.')
flags.DEFINE_bool('verify', False, 'Verify if value went through as-is.')
green = '\u001b[32m'
yellow = '\u001b[33m'
red = '\u001b[31m'
reset = '\u001b[0m'
def main(argv):
del argv
previous = None
for step in numpy.flipud(numpy.linspace(0.0, 1.0, num=FLAGS.steps)):
hub.light_brightness(FLAGS.device, step)
time.sleep(FLAGS.delay)
read = 'N/A'
result = '?'
if FLAGS.verify:
devs = hub.devices()
read = devs[FLAGS.device]['state']['brightness']
if step == read:
result = '✔'
color = green
else:
result = '✖'
if read == previous:
color = yellow
else:
color = red
previous = step
print('{3}[{2}] set: {0} vs. read: {1}{4}'.format(step, read, result, color, reset))
if __name__ == "__main__":
flags.mark_flag_as_required('device')
app.run(main)
| mit |
tdent/pycbc | pycbc/results/table_utils.py | 6 | 4698 | # Copyright (C) 2014 Alex Nitz
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# =============================================================================
#
# Preamble
#
# =============================================================================
#
""" This module provides functions to generate sortable html tables
"""
import mako.template, uuid
google_table_template = mako.template.Template("""
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', {packages:['table']});
google.setOnLoadCallback(drawTable);
function drawTable() {
var data = new google.visualization.DataTable();
% for type, name in column_descriptions:
data.addColumn('${str(type)}', '${str(name)}');
% endfor
data.addRows(${data});
% if format_strings is not None:
% for i, format_string in enumerate(format_strings):
% if format_string is not None:
var formatter = new google.visualization.NumberFormat({pattern:'${format_string}'});
formatter.format(data, ${i});
% endif
% endfor
% endif
var table = new google.visualization.Table(document.getElementById('${div_id}'));
table.draw(data, {showRowNumber: 'true',
page: '${page_enable}',
allowHtml: 'true',
pageSize: ${page_size}});
}
</script>
<div id='${div_id}'></div>
""")
def html_table(columns, names, page_size=None, format_strings=None):
""" Return an html table of this data
Parameters
----------
columns : list of numpy arrays
names : list of strings
The list of columns names
page_size : {int, None}, optional
The number of items to show on each page of the table
format_strings : {lists of strings, None}, optional
The ICU format string for this column, None for no formatting. All
columns must have a format string if provided.
Returns
-------
html_table : str
A str containing the html code to display a table of this data
"""
if page_size is None:
page = 'disable'
else:
page = 'enable'
div_id = uuid.uuid4()
column_descriptions = []
for column, name in zip(columns, names):
if column.dtype.kind == 'S':
ctype = 'string'
else:
ctype = 'number'
column_descriptions.append((ctype, name))
data = []
for item in zip(*columns):
data.append(list(item))
return google_table_template.render(div_id=div_id,
page_enable=page,
column_descriptions = column_descriptions,
page_size=page_size,
data=data,
format_strings=format_strings,
)
static_table_template = mako.template.Template("""
<table class="table">
% if titles is not None:
<tr>
% for i in range(len(titles)):
<th>
${titles[i]}
</th>
% endfor
</tr>
% endif
% for i in range(len(data)):
<tr>
% for j in range(len(data[i])):
<td>
${data[i][j]}
</td>
% endfor
</tr>
% endfor
</table>
""")
def static_table(data, titles=None):
""" Return an html tableo of this data
Parameters
----------
data : two-dimensional numpy string array
Array containing the cell values
titles : numpy array
Vector str of titles
Returns
-------
html_table : str
A string containing the html table.
"""
return static_table_template.render(data=data, titles=titles)
| gpl-3.0 |
BreakawayLabs/mom | test/test_bit_reproducibility.py | 3 | 1736 |
from __future__ import print_function
import os
import sys
import re
from model_test_setup import ModelTestSetup
from test_run import tests as test_specs
class TestBitReproducibility(ModelTestSetup):
def __init__(self):
super(TestBitReproducibility, self).__init__()
def checksums_to_dict(self, filename):
"""
Look at each line and make a dictionary entry.
"""
regex = re.compile(r'\[chksum\]\s+(.*)\s+(-?[0-9]+)$')
dict = {}
with open(filename) as f:
for line in f:
m = regex.match(line)
if m is not None:
dict[m.group(1).rstrip()] = int(m.group(2))
return dict
def expected_checksums(self, test_name):
filename = os.path.join(self.my_dir, 'checksums',
'{}.txt'.format(test_name))
return self.checksums_to_dict(filename)
def produced_checksums(self, test_name):
"""
Extract checksums from model run output.
"""
filename = os.path.join(self.work_dir, test_name, 'fms.out')
return self.checksums_to_dict(filename)
def check_run(self, key):
# Compare expected to produced.
expected = self.expected_checksums(key)
produced = self.produced_checksums(key)
for k in expected:
assert(k in produced)
if expected[k] != produced[k]:
print('{}: expected {}, produced {}'.format(key, expected[k],
produced[k]))
assert(expected[k] == produced[k])
def test_checksums(self):
for k in test_specs.keys():
yield self.check_run, k
| gpl-2.0 |
vericred/vericred-python | vericred_client/models/network_comparison_response.py | 1 | 13134 | # coding: utf-8
"""
Vericred API
Vericred's API allows you to search for Health Plans that a specific doctor
accepts.
## Getting Started
Visit our [Developer Portal](https://developers.vericred.com) to
create an account.
Once you have created an account, you can create one Application for
Production and another for our Sandbox (select the appropriate Plan when
you create the Application).
## SDKs
Our API follows standard REST conventions, so you can use any HTTP client
to integrate with us. You will likely find it easier to use one of our
[autogenerated SDKs](https://github.com/vericred/?query=vericred-),
which we make available for several common programming languages.
## Authentication
To authenticate, pass the API Key you created in the Developer Portal as
a `Vericred-Api-Key` header.
`curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
## Versioning
Vericred's API default to the latest version. However, if you need a specific
version, you can request it with an `Accept-Version` header.
The current version is `v3`. Previous versions are `v1` and `v2`.
`curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v2' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
## Pagination
Endpoints that accept `page` and `per_page` parameters are paginated. They expose
four additional fields that contain data about your position in the response,
namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https://tools.ietf.org/html/rfc5988).
For example, to display 5 results per page and view the second page of a
`GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
## Sideloading
When we return multiple levels of an object graph (e.g. `Provider`s and their `State`s
we sideload the associated data. In this example, we would provide an Array of
`State`s and a `state_id` for each provider. This is done primarily to reduce the
payload size since many of the `Provider`s will share a `State`
```
{
providers: [{ id: 1, state_id: 1}, { id: 2, state_id: 1 }],
states: [{ id: 1, code: 'NY' }]
}
```
If you need the second level of the object graph, you can just match the
corresponding id.
## Selecting specific data
All endpoints allow you to specify which fields you would like to return.
This allows you to limit the response to contain only the data you need.
For example, let's take a request that returns the following JSON by default
```
{
provider: {
id: 1,
name: 'John',
phone: '1234567890',
field_we_dont_care_about: 'value_we_dont_care_about'
},
states: [{
id: 1,
name: 'New York',
code: 'NY',
field_we_dont_care_about: 'value_we_dont_care_about'
}]
}
```
To limit our results to only return the fields we care about, we specify the
`select` query string parameter for the corresponding fields in the JSON
document.
In this case, we want to select `name` and `phone` from the `provider` key,
so we would add the parameters `select=provider.name,provider.phone`.
We also want the `name` and `code` from the `states` key, so we would
add the parameters `select=states.name,states.code`. The id field of
each document is always returned whether or not it is requested.
Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
The response would be
```
{
provider: {
id: 1,
name: 'John',
phone: '1234567890'
},
states: [{
id: 1,
name: 'New York',
code: 'NY'
}]
}
```
## Benefits summary format
Benefit cost-share strings are formatted to capture:
* Network tiers
* Compound or conditional cost-share
* Limits on the cost-share
* Benefit-specific maximum out-of-pocket costs
**Example #1**
As an example, we would represent [this Summary of Benefits & Coverage](https://s3.amazonaws.com/vericred-data/SBC/2017/33602TX0780032.pdf) as:
* **Hospital stay facility fees**:
- Network Provider: `$400 copay/admit plus 20% coinsurance`
- Out-of-Network Provider: `$1,500 copay/admit plus 50% coinsurance`
- Vericred's format for this benefit: `In-Network: $400 before deductible then 20% after deductible / Out-of-Network: $1,500 before deductible then 50% after deductible`
* **Rehabilitation services:**
- Network Provider: `20% coinsurance`
- Out-of-Network Provider: `50% coinsurance`
- Limitations & Exceptions: `35 visit maximum per benefit period combined with Chiropractic care.`
- Vericred's format for this benefit: `In-Network: 20% after deductible / Out-of-Network: 50% after deductible | limit: 35 visit(s) per Benefit Period`
**Example #2**
In [this other Summary of Benefits & Coverage](https://s3.amazonaws.com/vericred-data/SBC/2017/40733CA0110568.pdf), the **specialty_drugs** cost-share has a maximum out-of-pocket for in-network pharmacies.
* **Specialty drugs:**
- Network Provider: `40% coinsurance up to a $500 maximum for up to a 30 day supply`
- Out-of-Network Provider `Not covered`
- Vericred's format for this benefit: `In-Network: 40% after deductible, up to $500 per script / Out-of-Network: 100%`
**BNF**
Here's a description of the benefits summary string, represented as a context-free grammar:
```
root ::= coverage
coverage ::= (simple_coverage | tiered_coverage) (space pipe space coverage_modifier)?
tiered_coverage ::= tier (space slash space tier)*
tier ::= tier_name colon space (tier_coverage | not_applicable)
tier_coverage ::= simple_coverage (space (then | or | and) space simple_coverage)* tier_limitation?
simple_coverage ::= (pre_coverage_limitation space)? coverage_amount (space post_coverage_limitation)? (comma? space coverage_condition)?
coverage_modifier ::= limit_condition colon space (((simple_coverage | simple_limitation) (semicolon space see_carrier_documentation)?) | see_carrier_documentation | waived_if_admitted | shared_across_tiers)
waived_if_admitted ::= ("copay" space)? "waived if admitted"
simple_limitation ::= pre_coverage_limitation space "copay applies"
tier_name ::= "In-Network-Tier-2" | "Out-of-Network" | "In-Network"
limit_condition ::= "limit" | "condition"
tier_limitation ::= comma space "up to" space (currency | (integer space time_unit plural?)) (space post_coverage_limitation)?
coverage_amount ::= currency | unlimited | included | unknown | percentage | (digits space (treatment_unit | time_unit) plural?)
pre_coverage_limitation ::= first space digits space time_unit plural?
post_coverage_limitation ::= (((then space currency) | "per condition") space)? "per" space (treatment_unit | (integer space time_unit) | time_unit) plural?
coverage_condition ::= ("before deductible" | "after deductible" | "penalty" | allowance | "in-state" | "out-of-state") (space allowance)?
allowance ::= upto_allowance | after_allowance
upto_allowance ::= "up to" space (currency space)? "allowance"
after_allowance ::= "after" space (currency space)? "allowance"
see_carrier_documentation ::= "see carrier documentation for more information"
shared_across_tiers ::= "shared across all tiers"
unknown ::= "unknown"
unlimited ::= /[uU]nlimited/
included ::= /[iI]ncluded in [mM]edical/
time_unit ::= /[hH]our/ | (((/[cC]alendar/ | /[cC]ontract/) space)? /[yY]ear/) | /[mM]onth/ | /[dD]ay/ | /[wW]eek/ | /[vV]isit/ | /[lL]ifetime/ | ((((/[bB]enefit/ plural?) | /[eE]ligibility/) space)? /[pP]eriod/)
treatment_unit ::= /[pP]erson/ | /[gG]roup/ | /[cC]ondition/ | /[sS]cript/ | /[vV]isit/ | /[eE]xam/ | /[iI]tem/ | /[sS]tay/ | /[tT]reatment/ | /[aA]dmission/ | /[eE]pisode/
comma ::= ","
colon ::= ":"
semicolon ::= ";"
pipe ::= "|"
slash ::= "/"
plural ::= "(s)" | "s"
then ::= "then" | ("," space) | space
or ::= "or"
and ::= "and"
not_applicable ::= "Not Applicable" | "N/A" | "NA"
first ::= "first"
currency ::= "$" number
percentage ::= number "%"
number ::= float | integer
float ::= digits "." digits
integer ::= /[0-9]/+ (comma_int | under_int)*
comma_int ::= ("," /[0-9]/*3) !"_"
under_int ::= ("_" /[0-9]/*3) !","
digits ::= /[0-9]/+ ("_" /[0-9]/+)*
space ::= /[ \t]/+
```
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from pprint import pformat
from six import iteritems
import re
class NetworkComparisonResponse(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self, networks=None, network_comparisons=None):
"""
NetworkComparisonResponse - a model defined in Swagger
:param dict swaggerTypes: The key is attribute name
and the value is attribute type.
:param dict attributeMap: The key is attribute name
and the value is json key in definition.
"""
self.swagger_types = {
'networks': 'list[Network]',
'network_comparisons': 'list[NetworkComparison]'
}
self.attribute_map = {
'networks': 'networks',
'network_comparisons': 'network_comparisons'
}
self._networks = networks
self._network_comparisons = network_comparisons
@property
def networks(self):
"""
Gets the networks of this NetworkComparisonResponse.
Networks
:return: The networks of this NetworkComparisonResponse.
:rtype: list[Network]
"""
return self._networks
@networks.setter
def networks(self, networks):
"""
Sets the networks of this NetworkComparisonResponse.
Networks
:param networks: The networks of this NetworkComparisonResponse.
:type: list[Network]
"""
self._networks = networks
@property
def network_comparisons(self):
"""
Gets the network_comparisons of this NetworkComparisonResponse.
NetworkComparisons
:return: The network_comparisons of this NetworkComparisonResponse.
:rtype: list[NetworkComparison]
"""
return self._network_comparisons
@network_comparisons.setter
def network_comparisons(self, network_comparisons):
"""
Sets the network_comparisons of this NetworkComparisonResponse.
NetworkComparisons
:param network_comparisons: The network_comparisons of this NetworkComparisonResponse.
:type: list[NetworkComparison]
"""
self._network_comparisons = network_comparisons
def to_dict(self):
"""
Returns the model properties as a dict
"""
result = {}
for attr, _ in iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""
Returns the string representation of the model
"""
return pformat(self.to_dict())
def __repr__(self):
"""
For `print` and `pprint`
"""
return self.to_str()
def __eq__(self, other):
"""
Returns true if both objects are equal
"""
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""
Returns true if both objects are not equal
"""
return not self == other
| apache-2.0 |
emilio/servo | tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/browsers/opera.py | 15 | 3783 | from .base import Browser, ExecutorBrowser, require_arg
from .base import get_timeout_multiplier # noqa: F401
from ..webdriver_server import OperaDriverServer
from ..executors import executor_kwargs as base_executor_kwargs
from ..executors.executorselenium import (SeleniumTestharnessExecutor, # noqa: F401
SeleniumRefTestExecutor) # noqa: F401
from ..executors.executoropera import OperaDriverWdspecExecutor # noqa: F401
__wptrunner__ = {"product": "opera",
"check_args": "check_args",
"browser": "OperaBrowser",
"executor": {"testharness": "SeleniumTestharnessExecutor",
"reftest": "SeleniumRefTestExecutor",
"wdspec": "OperaDriverWdspecExecutor"},
"browser_kwargs": "browser_kwargs",
"executor_kwargs": "executor_kwargs",
"env_extras": "env_extras",
"env_options": "env_options",
"timeout_multiplier": "get_timeout_multiplier"}
def check_args(**kwargs):
require_arg(kwargs, "webdriver_binary")
def browser_kwargs(test_type, run_info_data, config, **kwargs):
return {"binary": kwargs["binary"],
"webdriver_binary": kwargs["webdriver_binary"],
"webdriver_args": kwargs.get("webdriver_args")}
def executor_kwargs(test_type, server_config, cache_manager, run_info_data,
**kwargs):
from selenium.webdriver import DesiredCapabilities
executor_kwargs = base_executor_kwargs(test_type, server_config,
cache_manager, run_info_data, **kwargs)
executor_kwargs["close_after_done"] = True
capabilities = dict(DesiredCapabilities.OPERA.items())
capabilities.setdefault("operaOptions", {})["prefs"] = {
"profile": {
"default_content_setting_values": {
"popups": 1
}
}
}
for (kwarg, capability) in [("binary", "binary"), ("binary_args", "args")]:
if kwargs[kwarg] is not None:
capabilities["operaOptions"][capability] = kwargs[kwarg]
if test_type == "testharness":
capabilities["operaOptions"]["useAutomationExtension"] = False
capabilities["operaOptions"]["excludeSwitches"] = ["enable-automation"]
if test_type == "wdspec":
capabilities["operaOptions"]["w3c"] = True
executor_kwargs["capabilities"] = capabilities
return executor_kwargs
def env_extras(**kwargs):
return []
def env_options():
return {}
class OperaBrowser(Browser):
"""Opera is backed by operadriver, which is supplied through
``wptrunner.webdriver.OperaDriverServer``.
"""
def __init__(self, logger, binary, webdriver_binary="operadriver",
webdriver_args=None):
"""Creates a new representation of Opera. The `binary` argument gives
the browser binary to use for testing."""
Browser.__init__(self, logger)
self.binary = binary
self.server = OperaDriverServer(self.logger,
binary=webdriver_binary,
args=webdriver_args)
def start(self, **kwargs):
self.server.start(block=False)
def stop(self, force=False):
self.server.stop(force=force)
def pid(self):
return self.server.pid
def is_alive(self):
# TODO(ato): This only indicates the driver is alive,
# and doesn't say anything about whether a browser session
# is active.
return self.server.is_alive()
def cleanup(self):
self.stop()
def executor_browser(self):
return ExecutorBrowser, {"webdriver_url": self.server.url}
| mpl-2.0 |
saumishr/django | django/template/context.py | 80 | 6146 | from copy import copy
from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
# Cache of actual callables.
_standard_context_processors = None
# We need the CSRF processor no matter what the user has in their settings,
# because otherwise it is a security vulnerability, and we can't afford to leave
# this to human error or failure to read migration instructions.
_builtin_context_processors = ('django.core.context_processors.csrf',)
class ContextPopException(Exception):
"pop() has been called more times than push()"
pass
class BaseContext(object):
def __init__(self, dict_=None):
self._reset_dicts(dict_)
def _reset_dicts(self, value=None):
self.dicts = [value or {}]
def __copy__(self):
duplicate = copy(super(BaseContext, self))
duplicate.dicts = self.dicts[:]
return duplicate
def __repr__(self):
return repr(self.dicts)
def __iter__(self):
for d in reversed(self.dicts):
yield d
def push(self):
d = {}
self.dicts.append(d)
return d
def pop(self):
if len(self.dicts) == 1:
raise ContextPopException
return self.dicts.pop()
def __setitem__(self, key, value):
"Set a variable in the current context"
self.dicts[-1][key] = value
def __getitem__(self, key):
"Get a variable's value, starting at the current context and going upward"
for d in reversed(self.dicts):
if key in d:
return d[key]
raise KeyError(key)
def __delitem__(self, key):
"Delete a variable from the current context"
del self.dicts[-1][key]
def has_key(self, key):
for d in self.dicts:
if key in d:
return True
return False
def __contains__(self, key):
return self.has_key(key)
def get(self, key, otherwise=None):
for d in reversed(self.dicts):
if key in d:
return d[key]
return otherwise
def new(self, values=None):
"""
Returns a new context with the same properties, but with only the
values given in 'values' stored.
"""
new_context = copy(self)
new_context._reset_dicts(values)
return new_context
class Context(BaseContext):
"A stack container for variable context"
def __init__(self, dict_=None, autoescape=True, current_app=None,
use_l10n=None, use_tz=None):
self.autoescape = autoescape
self.current_app = current_app
self.use_l10n = use_l10n
self.use_tz = use_tz
self.render_context = RenderContext()
super(Context, self).__init__(dict_)
def __copy__(self):
duplicate = super(Context, self).__copy__()
duplicate.render_context = copy(self.render_context)
return duplicate
def update(self, other_dict):
"Pushes other_dict to the stack of dictionaries in the Context"
if not hasattr(other_dict, '__getitem__'):
raise TypeError('other_dict must be a mapping (dictionary-like) object.')
self.dicts.append(other_dict)
return other_dict
class RenderContext(BaseContext):
"""
A stack container for storing Template state.
RenderContext simplifies the implementation of template Nodes by providing a
safe place to store state between invocations of a node's `render` method.
The RenderContext also provides scoping rules that are more sensible for
'template local' variables. The render context stack is pushed before each
template is rendered, creating a fresh scope with nothing in it. Name
resolution fails if a variable is not found at the top of the RequestContext
stack. Thus, variables are local to a specific template and don't affect the
rendering of other templates as they would if they were stored in the normal
template context.
"""
def __iter__(self):
for d in self.dicts[-1]:
yield d
def has_key(self, key):
return key in self.dicts[-1]
def get(self, key, otherwise=None):
d = self.dicts[-1]
if key in d:
return d[key]
return otherwise
# This is a function rather than module-level procedural code because we only
# want it to execute if somebody uses RequestContext.
def get_standard_processors():
from django.conf import settings
global _standard_context_processors
if _standard_context_processors is None:
processors = []
collect = []
collect.extend(_builtin_context_processors)
collect.extend(settings.TEMPLATE_CONTEXT_PROCESSORS)
for path in collect:
i = path.rfind('.')
module, attr = path[:i], path[i+1:]
try:
mod = import_module(module)
except ImportError, e:
raise ImproperlyConfigured('Error importing request processor module %s: "%s"' % (module, e))
try:
func = getattr(mod, attr)
except AttributeError:
raise ImproperlyConfigured('Module "%s" does not define a "%s" callable request processor' % (module, attr))
processors.append(func)
_standard_context_processors = tuple(processors)
return _standard_context_processors
class RequestContext(Context):
"""
This subclass of template.Context automatically populates itself using
the processors defined in TEMPLATE_CONTEXT_PROCESSORS.
Additional processors can be specified as a list of callables
using the "processors" keyword argument.
"""
def __init__(self, request, dict_=None, processors=None, current_app=None,
use_l10n=None, use_tz=None):
Context.__init__(self, dict_, current_app=current_app,
use_l10n=use_l10n, use_tz=use_tz)
if processors is None:
processors = ()
else:
processors = tuple(processors)
for processor in get_standard_processors() + processors:
self.update(processor(request))
| bsd-3-clause |
rooi/CouchPotatoServer | couchpotato/core/plugins/trailer/main.py | 8 | 1661 | from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.variable import getExt, getTitle
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
import os
log = CPLog(__name__)
class Trailer(Plugin):
def __init__(self):
addEvent('renamer.after', self.searchSingle)
def searchSingle(self, message = None, group = None):
if not group: group = {}
if self.isDisabled() or len(group['files']['trailer']) > 0: return
trailers = fireEvent('trailer.search', group = group, merge = True)
if not trailers or trailers == []:
log.info('No trailers found for: %s', getTitle(group['library']))
return False
for trailer in trailers.get(self.conf('quality'), []):
ext = getExt(trailer)
filename = self.conf('name').replace('<filename>', group['filename']) + ('.%s' % ('mp4' if len(ext) > 5 else ext))
destination = os.path.join(group['destination_dir'], filename)
if not os.path.isfile(destination):
trailer_file = fireEvent('file.download', url = trailer, dest = destination, urlopen_kwargs = {'headers': {'User-Agent': 'Quicktime'}}, single = True)
if os.path.getsize(trailer_file) < (1024 * 1024): # Don't trust small trailers (1MB), try next one
os.unlink(trailer_file)
continue
else:
log.debug('Trailer already exists: %s', destination)
group['renamed_files'].append(destination)
# Download first and break
break
return True
| gpl-3.0 |
blueburningcoder/pybrain | pybrain/supervised/knn/lsh/nearoptimal.py | 25 | 6466 |
"""This module provides functionality for locality sensitive hashing in high
dimensional euclidean spaces.
It is based on the work of Andoni and Indyk, 'Near-Optimal Hashing Algorithms
for Approximate Nearest Neighbor in High Dimensions'."""
__author__ = 'Justin Bayer, bayer.justin@googlemail.com'
import logging
from collections import defaultdict
from heapq import nlargest
from math import sqrt, log, ceil
from scipy import array, dot, random, ones
try:
# Python 2
from scipy import weave
except ImportError:
# Python 3
pass
class MultiDimHash(object):
"""Class that represents a datastructure that enables nearest neighbours
search and methods to do so."""
# If the dimension of a dataset is bigger than this bound, the
# dimensionality will be reduced by a random projection into 24dimensional
# space
lowerDimensionBound = 24
def _getRadius(self):
return self._radius
def _setRadius(self, value):
self._radius = abs(value)
self.radiusSquared = value ** 2
radius = property(_getRadius, _setRadius)
def __init__(self, dim, omega=4, prob=0.8):
"""Create a hash for arrays of dimension dim.
The hyperspace will be split into hypercubes with a sidelength of
omega * sqrt(sqrt(dim)), that is omega * radius.
Every point in the dim-dimensional euclidean space will be hashed to
its correct bucket with a probability of prob.
"""
message = ("Creating Hash with %i dimensions, sidelength %.2f and " +
"cNN-probability %.2f") % (dim, omega, prob)
logging.debug(message)
self.dim = dim
self.omega = omega
self.prob = prob
self.radius = sqrt(sqrt(min(dim, self.lowerDimensionBound)))
logging.debug("Radius set to %.2f" % self.radius)
self._initializeGrids()
self._initializeProjection()
self.balls = defaultdict(lambda: [])
def _findAmountOfGrids(self):
w = self.radius
omega = self.omega
d = self.dim
prob = self.prob
N = ((omega * w) / (w / sqrt(d))) ** d
result = int(ceil(log((1 - prob) / N, 1 - 1 / N)))
logging.debug("Number of grids: %i" % result)
return result
def _initializeGrids(self):
offset = self.omega * self.radius
radius_offset = ones(self.dim) * self.radius
self.gridBalls = random.random((self._findAmountOfGrids(), self.dim))
self.gridBalls *= offset
self.gridBalls += radius_offset
def _initializeProjection(self):
if self.dim <= self.lowerDimensionBound:
# We only need to reduce the dimension if it's bigger than
# lowerDimensionBound; otherwise, chose identity
self.projection = 1
else:
projection_shape = self.dim, self.lowerDimensionBound
self.projection = random.standard_normal(projection_shape)
self.projection /= sqrt(self.lowerDimensionBound)
def _findHypercube(self, point):
"""Return where a point lies in what hypercube.
The result is a pair of two arrays. The first array is an array of
integers that indicate the multidimensional index of the hypercube it
is in. The second array is an array of floats, specifying the
coordinates of the point in that hypercube.
"""
offset = self.omega * self.radius
divmods = (divmod(p, offset) for p in point)
hypercube_indices, relative_point = [], []
for index, rest in divmods:
hypercube_indices.append(index)
relative_point.append(rest)
return array(hypercube_indices, dtype=int), array(relative_point)
def _findLocalBall_noinline(self, point):
"""Return the index of the ball that the point lies in."""
for i, ball in enumerate(self.gridBalls):
distance = point - ball
if dot(distance.T, distance) <= self.radiusSquared:
return i
def _findLocalBall_inline(self, point):
"""Return the index of the ball that the point lies in."""
balls = self.gridBalls
nBalls, dim = balls.shape #@UnusedVariable
radiusSquared = self.radiusSquared #@UnusedVariable
code = """
#line 121 "nearoptimal.py"
return_val = -1;
for (long i = 0; i < nBalls; i++)
{
double distance = 0.0;
for (long j = 0; j < dim; j++)
{
double diff = balls(i, j) - point(j);
distance += diff * diff;
}
if (distance <= radiusSquared) {
return_val = i;
break;
}
}
"""
variables = 'point', 'balls', 'nBalls', 'dim', 'radiusSquared',
result = weave.inline(
code,
variables,
type_converters=weave.converters.blitz,
compiler='gcc')
return result if result != -1 else None
_findLocalBall = _findLocalBall_noinline
def findBall(self, point):
hypercube_index, relative_point = self._findHypercube(point)
ball_index = self._findLocalBall(relative_point)
return tuple(hypercube_index), ball_index
def insert(self, point, satellite):
"""Put a point and its satellite information into the hash structure.
"""
point = dot(self.projection, point)
index = self.findBall(point)
self.balls[index].append((point, satellite))
def _findKnnCandidates(self, point):
"""Return a set of candidates that might be nearest neighbours of a
query point."""
index = self.findBall(point)
logging.debug("Found %i candidates for cNN" % len(self.balls[index]))
return self.balls[index]
def knn(self, point, k):
"""Return the k approximate nearest neighbours of the item in the
current hash.
Mind that the probabilistic nature of the data structure might not
return a nearest neighbor at all and not the nearest neighbour."""
candidates = self._findKnnCandidates(point)
def sortKey(xxx_todo_changeme):
(point_, satellite_) = xxx_todo_changeme
distance = point - point_
return - dot(distance.T, distance)
return nlargest(k, candidates, key=sortKey)
| bsd-3-clause |
roadmapper/ansible | lib/ansible/modules/storage/netapp/_na_ontap_gather_facts.py | 21 | 21721 | #!/usr/bin/python
# (c) 2018 Piotr Olczak <piotr.olczak@redhat.com>
# (c) 2018-2019, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['deprecated'],
'supported_by': 'certified'}
DOCUMENTATION = '''
module: na_ontap_gather_facts
deprecated:
removed_in: '2.13'
why: Deprecated in favour of C(_info) module.
alternative: Use M(na_ontap_info) instead.
author: Piotr Olczak (@dprts) <polczak@redhat.com>
extends_documentation_fragment:
- netapp.na_ontap
short_description: NetApp information gatherer
description:
- This module allows you to gather various information about ONTAP configuration
version_added: "2.7"
requirements:
- netapp_lib
options:
state:
description:
- Returns "info"
default: "info"
choices: ['info']
gather_subset:
description:
- When supplied, this argument will restrict the facts collected
to a given subset. Possible values for this argument include
"aggregate_info", "cluster_node_info", "igroup_info", "lun_info", "net_dns_info",
"net_ifgrp_info",
"net_interface_info", "net_port_info", "nvme_info", "nvme_interface_info",
"nvme_namespace_info", "nvme_subsystem_info", "ontap_version",
"qos_adaptive_policy_info", "qos_policy_info", "security_key_manager_key_info",
"security_login_account_info", "storage_failover_info", "volume_info",
"vserver_info", "vserver_login_banner_info", "vserver_motd_info", "vserver_nfs_info"
Can specify a list of values to include a larger subset. Values can also be used
with an initial C(M(!)) to specify that a specific subset should
not be collected.
- nvme is supported with ONTAP 9.4 onwards.
- use "help" to get a list of supported facts for your system.
default: "all"
version_added: 2.8
'''
EXAMPLES = '''
- name: Get NetApp info (Password Authentication)
na_ontap_gather_facts:
state: info
hostname: "na-vsim"
username: "admin"
password: "admins_password"
- debug:
var: ontap_facts
- name: Limit Fact Gathering to Aggregate Information
na_ontap_gather_facts:
state: info
hostname: "na-vsim"
username: "admin"
password: "admins_password"
gather_subset: "aggregate_info"
- name: Limit Fact Gathering to Volume and Lun Information
na_ontap_gather_facts:
state: info
hostname: "na-vsim"
username: "admin"
password: "admins_password"
gather_subset:
- volume_info
- lun_info
- name: Gather all facts except for volume and lun information
na_ontap_gather_facts:
state: info
hostname: "na-vsim"
username: "admin"
password: "admins_password"
gather_subset:
- "!volume_info"
- "!lun_info"
'''
RETURN = '''
ontap_facts:
description: Returns various information about NetApp cluster configuration
returned: always
type: dict
sample: '{
"ontap_facts": {
"aggregate_info": {...},
"cluster_node_info": {...},
"net_dns_info": {...},
"net_ifgrp_info": {...},
"net_interface_info": {...},
"net_port_info": {...},
"security_key_manager_key_info": {...},
"security_login_account_info": {...},
"volume_info": {...},
"lun_info": {...},
"storage_failover_info": {...},
"vserver_login_banner_info": {...},
"vserver_motd_info": {...},
"vserver_info": {...},
"vserver_nfs_info": {...},
"ontap_version": {...},
"igroup_info": {...},
"qos_policy_info": {...},
"qos_adaptive_policy_info": {...}
}'
'''
import traceback
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_native
import ansible.module_utils.netapp as netapp_utils
try:
import xmltodict
HAS_XMLTODICT = True
except ImportError:
HAS_XMLTODICT = False
try:
import json
HAS_JSON = True
except ImportError:
HAS_JSON = False
HAS_NETAPP_LIB = netapp_utils.has_netapp_lib()
class NetAppONTAPGatherFacts(object):
'''Class with gather facts methods'''
def __init__(self, module):
self.module = module
self.netapp_info = dict()
# thanks to coreywan (https://github.com/ansible/ansible/pull/47016)
# for starting this
# min_version identifies the ontapi version which supports this ZAPI
# use 0 if it is supported since 9.1
self.fact_subsets = {
'net_dns_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'net-dns-get-iter',
'attribute': 'net-dns-info',
'field': 'vserver-name',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'net_interface_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'net-interface-get-iter',
'attribute': 'net-interface-info',
'field': 'interface-name',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'net_port_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'net-port-get-iter',
'attribute': 'net-port-info',
'field': ('node', 'port'),
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'cluster_node_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'cluster-node-get-iter',
'attribute': 'cluster-node-info',
'field': 'node-name',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'security_login_account_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'security-login-get-iter',
'attribute': 'security-login-account-info',
'field': ('vserver', 'user-name', 'application', 'authentication-method'),
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'aggregate_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'aggr-get-iter',
'attribute': 'aggr-attributes',
'field': 'aggregate-name',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'volume_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'volume-get-iter',
'attribute': 'volume-attributes',
'field': ('name', 'owning-vserver-name'),
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'lun_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'lun-get-iter',
'attribute': 'lun-info',
'field': 'path',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'storage_failover_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'cf-get-iter',
'attribute': 'storage-failover-info',
'field': 'node',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'vserver_motd_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'vserver-motd-get-iter',
'attribute': 'vserver-motd-info',
'field': 'vserver',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'vserver_login_banner_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'vserver-login-banner-get-iter',
'attribute': 'vserver-login-banner-info',
'field': 'vserver',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'security_key_manager_key_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'security-key-manager-key-get-iter',
'attribute': 'security-key-manager-key-info',
'field': ('node', 'key-id'),
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'vserver_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'vserver-get-iter',
'attribute': 'vserver-info',
'field': 'vserver-name',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'vserver_nfs_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'nfs-service-get-iter',
'attribute': 'nfs-info',
'field': 'vserver',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'net_ifgrp_info': {
'method': self.get_ifgrp_info,
'kwargs': {},
'min_version': '0',
},
'ontap_version': {
'method': self.ontapi,
'kwargs': {},
'min_version': '0',
},
'system_node_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'system-node-get-iter',
'attribute': 'node-details-info',
'field': 'node',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'igroup_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'igroup-get-iter',
'attribute': 'initiator-group-info',
'field': ('vserver', 'initiator-group-name'),
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'qos_policy_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'qos-policy-group-get-iter',
'attribute': 'qos-policy-group-info',
'field': 'policy-group',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
# supported in ONTAP 9.3 and onwards
'qos_adaptive_policy_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'qos-adaptive-policy-group-get-iter',
'attribute': 'qos-adaptive-policy-group-info',
'field': 'policy-group',
'query': {'max-records': '1024'},
},
'min_version': '130',
},
# supported in ONTAP 9.4 and onwards
'nvme_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'nvme-get-iter',
'attribute': 'nvme-target-service-info',
'field': 'vserver',
'query': {'max-records': '1024'},
},
'min_version': '140',
},
'nvme_interface_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'nvme-interface-get-iter',
'attribute': 'nvme-interface-info',
'field': 'vserver',
'query': {'max-records': '1024'},
},
'min_version': '140',
},
'nvme_subsystem_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'nvme-subsystem-get-iter',
'attribute': 'nvme-subsystem-info',
'field': 'subsystem',
'query': {'max-records': '1024'},
},
'min_version': '140',
},
'nvme_namespace_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'nvme-namespace-get-iter',
'attribute': 'nvme-namespace-info',
'field': 'path',
'query': {'max-records': '1024'},
},
'min_version': '140',
},
}
if HAS_NETAPP_LIB is False:
self.module.fail_json(msg="the python NetApp-Lib module is required")
else:
self.server = netapp_utils.setup_na_ontap_zapi(module=self.module)
def ontapi(self):
'''Method to get ontapi version'''
api = 'system-get-ontapi-version'
api_call = netapp_utils.zapi.NaElement(api)
try:
results = self.server.invoke_successfully(api_call, enable_tunneling=False)
ontapi_version = results.get_child_content('minor-version')
return ontapi_version if ontapi_version is not None else '0'
except netapp_utils.zapi.NaApiError as error:
self.module.fail_json(msg="Error calling API %s: %s" %
(api, to_native(error)), exception=traceback.format_exc())
def call_api(self, call, query=None):
'''Main method to run an API call'''
api_call = netapp_utils.zapi.NaElement(call)
result = None
if query:
for key, val in query.items():
# Can val be nested?
api_call.add_new_child(key, val)
try:
result = self.server.invoke_successfully(api_call, enable_tunneling=False)
return result
except netapp_utils.zapi.NaApiError as error:
if call in ['security-key-manager-key-get-iter']:
return result
else:
self.module.fail_json(msg="Error calling API %s: %s"
% (call, to_native(error)), exception=traceback.format_exc())
def get_ifgrp_info(self):
'''Method to get network port ifgroups info'''
try:
net_port_info = self.netapp_info['net_port_info']
except KeyError:
net_port_info_calls = self.fact_subsets['net_port_info']
net_port_info = net_port_info_calls['method'](**net_port_info_calls['kwargs'])
interfaces = net_port_info.keys()
ifgrps = []
for ifn in interfaces:
if net_port_info[ifn]['port_type'] == 'if_group':
ifgrps.append(ifn)
net_ifgrp_info = dict()
for ifgrp in ifgrps:
query = dict()
query['node'], query['ifgrp-name'] = ifgrp.split(':')
tmp = self.get_generic_get_iter('net-port-ifgrp-get', field=('node', 'ifgrp-name'),
attribute='net-ifgrp-info', query=query)
net_ifgrp_info = net_ifgrp_info.copy()
net_ifgrp_info.update(tmp)
return net_ifgrp_info
def get_generic_get_iter(self, call, attribute=None, field=None, query=None):
'''Method to run a generic get-iter call'''
generic_call = self.call_api(call, query)
if call == 'net-port-ifgrp-get':
children = 'attributes'
else:
children = 'attributes-list'
if generic_call is None:
return None
if field is None:
out = []
else:
out = {}
attributes_list = generic_call.get_child_by_name(children)
if attributes_list is None:
return None
for child in attributes_list.get_children():
dic = xmltodict.parse(child.to_string(), xml_attribs=False)
if attribute is not None:
dic = dic[attribute]
if isinstance(field, str):
unique_key = _finditem(dic, field)
out = out.copy()
out.update({unique_key: convert_keys(json.loads(json.dumps(dic)))})
elif isinstance(field, tuple):
unique_key = ':'.join([_finditem(dic, el) for el in field])
out = out.copy()
out.update({unique_key: convert_keys(json.loads(json.dumps(dic)))})
else:
out.append(convert_keys(json.loads(json.dumps(dic))))
return out
def get_all(self, gather_subset):
'''Method to get all subsets'''
results = netapp_utils.get_cserver(self.server)
cserver = netapp_utils.setup_na_ontap_zapi(module=self.module, vserver=results)
netapp_utils.ems_log_event("na_ontap_gather_facts", cserver)
self.netapp_info['ontap_version'] = self.ontapi()
run_subset = self.get_subset(gather_subset, self.netapp_info['ontap_version'])
if 'help' in gather_subset:
self.netapp_info['help'] = sorted(run_subset)
else:
for subset in run_subset:
call = self.fact_subsets[subset]
self.netapp_info[subset] = call['method'](**call['kwargs'])
return self.netapp_info
def get_subset(self, gather_subset, version):
'''Method to get a single subset'''
runable_subsets = set()
exclude_subsets = set()
usable_subsets = [key for key in self.fact_subsets.keys() if version >= self.fact_subsets[key]['min_version']]
if 'help' in gather_subset:
return usable_subsets
for subset in gather_subset:
if subset == 'all':
runable_subsets.update(usable_subsets)
return runable_subsets
if subset.startswith('!'):
subset = subset[1:]
if subset == 'all':
return set()
exclude = True
else:
exclude = False
if subset not in usable_subsets:
if subset not in self.fact_subsets.keys():
self.module.fail_json(msg='Bad subset: %s' % subset)
self.module.fail_json(msg='Remote system at version %s does not support %s' %
(version, subset))
if exclude:
exclude_subsets.add(subset)
else:
runable_subsets.add(subset)
if not runable_subsets:
runable_subsets.update(usable_subsets)
runable_subsets.difference_update(exclude_subsets)
return runable_subsets
# https://stackoverflow.com/questions/14962485/finding-a-key-recursively-in-a-dictionary
def __finditem(obj, key):
if key in obj:
return obj[key]
for dummy, val in obj.items():
if isinstance(val, dict):
item = __finditem(val, key)
if item is not None:
return item
return None
def _finditem(obj, key):
value = __finditem(obj, key)
if value is not None:
return value
raise KeyError(key)
def convert_keys(d_param):
'''Method to convert hyphen to underscore'''
out = {}
if isinstance(d_param, dict):
for key, val in d_param.items():
val = convert_keys(val)
out[key.replace('-', '_')] = val
else:
return d_param
return out
def main():
'''Execute action'''
argument_spec = netapp_utils.na_ontap_host_argument_spec()
argument_spec.update(dict(
state=dict(default='info', choices=['info']),
gather_subset=dict(default=['all'], type='list'),
))
module = AnsibleModule(
argument_spec=argument_spec,
supports_check_mode=True
)
if not HAS_XMLTODICT:
module.fail_json(msg="xmltodict missing")
if not HAS_JSON:
module.fail_json(msg="json missing")
state = module.params['state']
gather_subset = module.params['gather_subset']
if gather_subset is None:
gather_subset = ['all']
gf_obj = NetAppONTAPGatherFacts(module)
gf_all = gf_obj.get_all(gather_subset)
result = {'state': state, 'changed': False}
module.exit_json(ansible_facts={'ontap_facts': gf_all}, **result)
if __name__ == '__main__':
main()
| gpl-3.0 |
calamityman/ansible-modules-extras | cloud/amazon/ec2_vpc_vgw.py | 43 | 20238 | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
DOCUMENTATION = '''
module: ec2_vpc_vgw
short_description: Create and delete AWS VPN Virtual Gateways.
description:
- Creates AWS VPN Virtual Gateways
- Deletes AWS VPN Virtual Gateways
- Attaches Virtual Gateways to VPCs
- Detaches Virtual Gateways from VPCs
version_added: "2.2"
requirements: [ boto3 ]
options:
state:
description:
- present to ensure resource is created.
- absent to remove resource
required: false
default: present
choices: [ "present", "absent"]
name:
description:
- name of the vgw to be created or deleted
required: false
type:
description:
- type of the virtual gateway to be created
required: false
choices: [ "ipsec.1" ]
vpn_gateway_id:
description:
- vpn gateway id of an existing virtual gateway
required: false
vpc_id:
description:
- the vpc-id of a vpc to attach or detach
required: false
wait_timeout:
description:
- number of seconds to wait for status during vpc attach and detach
required: false
default: 320
tags:
description:
- dictionary of resource tags
required: false
default: null
aliases: [ "resource_tags" ]
author: Nick Aslanidis (@naslanidis)
extends_documentation_fragment:
- aws
- ec2
'''
EXAMPLES = '''
- name: Create a new vgw attached to a specific VPC
ec2_vpc_vgw:
state: present
region: ap-southeast-2
profile: personal
vpc_id: vpc-12345678
name: personal-testing
type: ipsec.1
register: created_vgw
- name: Create a new unattached vgw
ec2_vpc_vgw:
state: present
region: ap-southeast-2
profile: personal
name: personal-testing
type: ipsec.1
tags:
environment: production
owner: ABC
register: created_vgw
- name: Remove a new vgw using the name
ec2_vpc_vgw:
state: absent
region: ap-southeast-2
profile: personal
name: personal-testing
type: ipsec.1
register: deleted_vgw
- name: Remove a new vgw using the vpn_gateway_id
ec2_vpc_vgw:
state: absent
region: ap-southeast-2
profile: personal
vpn_gateway_id: vgw-3a9aa123
register: deleted_vgw
'''
RETURN = '''
result:
description: The result of the create, or delete action.
returned: success
type: dictionary
'''
try:
import json
import time
import botocore
import boto3
HAS_BOTO3 = True
except ImportError:
HAS_BOTO3 = False
def get_vgw_info(vgws):
if not isinstance(vgws, list):
return
for vgw in vgws:
vgw_info = {
'id': vgw['VpnGatewayId'],
'type': vgw['Type'],
'state': vgw['State'],
'vpc_id': None,
'tags': dict()
}
for tag in vgw['Tags']:
vgw_info['tags'][tag['Key']] = tag['Value']
if len(vgw['VpcAttachments']) != 0 and vgw['VpcAttachments'][0]['State'] == 'attached':
vgw_info['vpc_id'] = vgw['VpcAttachments'][0]['VpcId']
return vgw_info
def wait_for_status(client, module, vpn_gateway_id, status):
polling_increment_secs = 15
max_retries = (module.params.get('wait_timeout') / polling_increment_secs)
status_achieved = False
for x in range(0, max_retries):
try:
response = find_vgw(client, module, vpn_gateway_id)
if response[0]['VpcAttachments'][0]['State'] == status:
status_achieved = True
break
else:
time.sleep(polling_increment_secs)
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
result = response
return status_achieved, result
def attach_vgw(client, module, vpn_gateway_id):
params = dict()
params['VpcId'] = module.params.get('vpc_id')
try:
response = client.attach_vpn_gateway(VpnGatewayId=vpn_gateway_id, VpcId=params['VpcId'])
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
status_achieved, vgw = wait_for_status(client, module, [vpn_gateway_id], 'attached')
if not status_achieved:
module.fail_json(msg='Error waiting for vpc to attach to vgw - please check the AWS console')
result = response
return result
def detach_vgw(client, module, vpn_gateway_id, vpc_id=None):
params = dict()
params['VpcId'] = module.params.get('vpc_id')
if vpc_id:
try:
response = client.detach_vpn_gateway(VpnGatewayId=vpn_gateway_id, VpcId=vpc_id)
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
else:
try:
response = client.detach_vpn_gateway(VpnGatewayId=vpn_gateway_id, VpcId=params['VpcId'])
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
status_achieved, vgw = wait_for_status(client, module, [vpn_gateway_id], 'detached')
if not status_achieved:
module.fail_json(msg='Error waiting for vpc to detach from vgw - please check the AWS console')
result = response
return result
def create_vgw(client, module):
params = dict()
params['Type'] = module.params.get('type')
try:
response = client.create_vpn_gateway(Type=params['Type'])
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
result = response
return result
def delete_vgw(client, module, vpn_gateway_id):
try:
response = client.delete_vpn_gateway(VpnGatewayId=vpn_gateway_id)
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
#return the deleted VpnGatewayId as this is not included in the above response
result = vpn_gateway_id
return result
def create_tags(client, module, vpn_gateway_id):
params = dict()
try:
response = client.create_tags(Resources=[vpn_gateway_id],Tags=load_tags(module))
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
result = response
return result
def delete_tags(client, module, vpn_gateway_id, tags_to_delete=None):
params = dict()
if tags_to_delete:
try:
response = client.delete_tags(Resources=[vpn_gateway_id], Tags=tags_to_delete)
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
else:
try:
response = client.delete_tags(Resources=[vpn_gateway_id])
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
result = response
return result
def load_tags(module):
tags = []
if module.params.get('tags'):
for name, value in module.params.get('tags').iteritems():
tags.append({'Key': name, 'Value': str(value)})
tags.append({'Key': "Name", 'Value': module.params.get('name')})
else:
tags.append({'Key': "Name", 'Value': module.params.get('name')})
return tags
def find_tags(client, module, resource_id=None):
if resource_id:
try:
response = client.describe_tags(Filters=[
{'Name': 'resource-id', 'Values': [resource_id]}
])
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
result = response
return result
def check_tags(client, module, existing_vgw, vpn_gateway_id):
params = dict()
params['Tags'] = module.params.get('tags')
vgw = existing_vgw
changed = False
tags_list = {}
#format tags for comparison
for tags in existing_vgw[0]['Tags']:
if tags['Key'] != 'Name':
tags_list[tags['Key']] = tags['Value']
# if existing tags don't match the tags arg, delete existing and recreate with new list
if params['Tags'] != None and tags_list != params['Tags']:
delete_tags(client, module, vpn_gateway_id)
create_tags(client, module, vpn_gateway_id)
vgw = find_vgw(client, module)
changed = True
#if no tag args are supplied, delete any existing tags with the exception of the name tag
if params['Tags'] == None and tags_list != {}:
tags_to_delete = []
for tags in existing_vgw[0]['Tags']:
if tags['Key'] != 'Name':
tags_to_delete.append(tags)
delete_tags(client, module, vpn_gateway_id, tags_to_delete)
vgw = find_vgw(client, module)
changed = True
return vgw, changed
def find_vpc(client, module):
params = dict()
params['vpc_id'] = module.params.get('vpc_id')
if params['vpc_id']:
try:
response = client.describe_vpcs(VpcIds=[params['vpc_id']])
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
result = response
return result
def find_vgw(client, module, vpn_gateway_id=None):
params = dict()
params['Name'] = module.params.get('name')
params['Type'] = module.params.get('type')
params['State'] = module.params.get('state')
if params['State'] == 'present':
try:
response = client.describe_vpn_gateways(Filters=[
{'Name': 'type', 'Values': [params['Type']]},
{'Name': 'tag:Name', 'Values': [params['Name']]}
])
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
else:
if vpn_gateway_id:
try:
response = client.describe_vpn_gateways(VpnGatewayIds=vpn_gateway_id)
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
else:
try:
response = client.describe_vpn_gateways(Filters=[
{'Name': 'type', 'Values': [params['Type']]},
{'Name': 'tag:Name', 'Values': [params['Name']]}
])
except botocore.exceptions.ClientError:
e = get_exception()
module.fail_json(msg=str(e))
result = response['VpnGateways']
return result
def ensure_vgw_present(client, module):
# If an existing vgw name and type matches our args, then a match is considered to have been
# found and we will not create another vgw.
changed = False
params = dict()
result = dict()
params['Name'] = module.params.get('name')
params['VpcId'] = module.params.get('vpc_id')
params['Type'] = module.params.get('type')
params['Tags'] = module.params.get('tags')
params['VpnGatewayIds'] = module.params.get('vpn_gateway_id')
# Check that a name argument has been supplied.
if not module.params.get('name'):
module.fail_json(msg='A name is required when a status of \'present\' is suppled')
# check if a gateway matching our module args already exists
existing_vgw = find_vgw(client, module)
if existing_vgw != [] and existing_vgw[0]['State'] != 'deleted':
vpn_gateway_id = existing_vgw[0]['VpnGatewayId']
vgw, changed = check_tags(client, module, existing_vgw, vpn_gateway_id)
# if a vpc_id was provided, check if it exists and if it's attached
if params['VpcId']:
# check that the vpc_id exists. If not, an exception is thrown
vpc = find_vpc(client, module)
current_vpc_attachments = existing_vgw[0]['VpcAttachments']
if current_vpc_attachments != [] and current_vpc_attachments[0]['State'] == 'attached':
if current_vpc_attachments[0]['VpcId'] == params['VpcId'] and current_vpc_attachments[0]['State'] == 'attached':
changed = False
else:
# detach the existing vpc from the virtual gateway
vpc_to_detach = current_vpc_attachments[0]['VpcId']
detach_vgw(client, module, vpn_gateway_id, vpc_to_detach)
time.sleep(5)
attached_vgw = attach_vgw(client, module, vpn_gateway_id)
vgw = find_vgw(client, module, [vpn_gateway_id])
changed = True
else:
# attach the vgw to the supplied vpc
attached_vgw = attach_vgw(client, module, vpn_gateway_id)
vgw = find_vgw(client, module, [vpn_gateway_id])
changed = True
# if params['VpcId'] is not provided, check the vgw is attached to a vpc. if so, detach it.
else:
existing_vgw = find_vgw(client, module, [vpn_gateway_id])
if existing_vgw[0]['VpcAttachments'] != []:
if existing_vgw[0]['VpcAttachments'][0]['State'] == 'attached':
# detach the vpc from the vgw
vpc_to_detach = existing_vgw[0]['VpcAttachments'][0]['VpcId']
detach_vgw(client, module, vpn_gateway_id, vpc_to_detach)
changed = True
vgw = find_vgw(client, module, [vpn_gateway_id])
else:
# create a new vgw
new_vgw = create_vgw(client, module)
changed = True
vpn_gateway_id = new_vgw['VpnGateway']['VpnGatewayId']
# tag the new virtual gateway
create_tags(client, module, vpn_gateway_id)
# return current state of the vgw
vgw = find_vgw(client, module, [vpn_gateway_id])
# if a vpc-id was supplied, attempt to attach it to the vgw
if params['VpcId']:
attached_vgw = attach_vgw(client, module, vpn_gateway_id)
changed = True
vgw = find_vgw(client, module, [vpn_gateway_id])
result = get_vgw_info(vgw)
return changed, result
def ensure_vgw_absent(client, module):
# If an existing vgw name and type matches our args, then a match is considered to have been
# found and we will take steps to delete it.
changed = False
params = dict()
result = dict()
params['Name'] = module.params.get('name')
params['VpcId'] = module.params.get('vpc_id')
params['Type'] = module.params.get('type')
params['Tags'] = module.params.get('tags')
params['VpnGatewayIds'] = module.params.get('vpn_gateway_id')
# check if a gateway matching our module args already exists
if params['VpnGatewayIds']:
existing_vgw_with_id = find_vgw(client, module, [params['VpnGatewayIds']])
if existing_vgw_with_id != [] and existing_vgw_with_id[0]['State'] != 'deleted':
existing_vgw = existing_vgw_with_id
if existing_vgw[0]['VpcAttachments'] != [] and existing_vgw[0]['VpcAttachments'][0]['State'] == 'attached':
if params['VpcId']:
if params['VpcId'] != existing_vgw[0]['VpcAttachments'][0]['VpcId']:
module.fail_json(msg='The vpc-id provided does not match the vpc-id currently attached - please check the AWS console')
else:
# detach the vpc from the vgw
detach_vgw(client, module, params['VpnGatewayIds'], params['VpcId'])
deleted_vgw = delete_vgw(client, module, params['VpnGatewayIds'])
changed = True
else:
# attempt to detach any attached vpcs
vpc_to_detach = existing_vgw[0]['VpcAttachments'][0]['VpcId']
detach_vgw(client, module, params['VpnGatewayIds'], vpc_to_detach)
deleted_vgw = delete_vgw(client, module, params['VpnGatewayIds'])
changed = True
else:
# no vpc's are attached so attempt to delete the vgw
deleted_vgw = delete_vgw(client, module, params['VpnGatewayIds'])
changed = True
else:
changed = False
deleted_vgw = "Nothing to do"
else:
#Check that a name and type argument has been supplied if no vgw-id
if not module.params.get('name') or not module.params.get('type'):
module.fail_json(msg='A name and type is required when no vgw-id and a status of \'absent\' is suppled')
existing_vgw = find_vgw(client, module)
if existing_vgw != [] and existing_vgw[0]['State'] != 'deleted':
vpn_gateway_id = existing_vgw[0]['VpnGatewayId']
if existing_vgw[0]['VpcAttachments'] != [] and existing_vgw[0]['VpcAttachments'][0]['State'] == 'attached':
if params['VpcId']:
if params['VpcId'] != existing_vgw[0]['VpcAttachments'][0]['VpcId']:
module.fail_json(msg='The vpc-id provided does not match the vpc-id currently attached - please check the AWS console')
else:
# detach the vpc from the vgw
detach_vgw(client, module, vpn_gateway_id, params['VpcId'])
#now that the vpc has been detached, delete the vgw
deleted_vgw = delete_vgw(client, module, vpn_gateway_id)
changed = True
else:
# attempt to detach any attached vpcs
vpc_to_detach = existing_vgw[0]['VpcAttachments'][0]['VpcId']
detach_vgw(client, module, vpn_gateway_id, vpc_to_detach)
changed = True
#now that the vpc has been detached, delete the vgw
deleted_vgw = delete_vgw(client, module, vpn_gateway_id)
else:
# no vpc's are attached so attempt to delete the vgw
deleted_vgw = delete_vgw(client, module, vpn_gateway_id)
changed = True
else:
changed = False
deleted_vgw = None
result = deleted_vgw
return changed, result
def main():
argument_spec = ec2_argument_spec()
argument_spec.update(dict(
state=dict(default='present', choices=['present', 'absent']),
region=dict(required=True),
name=dict(),
vpn_gateway_id=dict(),
vpc_id=dict(),
wait_timeout=dict(type='int', default=320),
type=dict(default='ipsec.1', choices=['ipsec.1']),
tags=dict(default=None, required=False, type='dict', aliases=['resource_tags']),
)
)
module = AnsibleModule(argument_spec=argument_spec)
if not HAS_BOTO3:
module.fail_json(msg='json and boto3 is required.')
state = module.params.get('state').lower()
try:
region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module, boto3=True)
client = boto3_conn(module, conn_type='client', resource='ec2', region=region, endpoint=ec2_url, **aws_connect_kwargs)
except botocore.exceptions.NoCredentialsError:
e = get_exception()
module.fail_json(msg="Can't authorize connection - "+str(e))
if state == 'present':
(changed, results) = ensure_vgw_present(client, module)
else:
(changed, results) = ensure_vgw_absent(client, module)
module.exit_json(changed=changed, vgw=results)
# import module snippets
from ansible.module_utils.basic import *
from ansible.module_utils.ec2 import *
if __name__ == '__main__':
main()
| gpl-3.0 |
sgerhart/ansible | lib/ansible/modules/web_infrastructure/django_manage.py | 9 | 11389 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Scott Anderson <scottanderson42@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module: django_manage
short_description: Manages a Django application.
description:
- Manages a Django application using the I(manage.py) application frontend to I(django-admin). With the I(virtualenv) parameter, all
management commands will be executed by the given I(virtualenv) installation.
version_added: "1.1"
options:
command:
choices: [ 'cleanup', 'collectstatic', 'flush', 'loaddata', 'migrate', 'runfcgi', 'syncdb', 'test', 'validate', ]
description:
- The name of the Django management command to run. Built in commands are cleanup, collectstatic, flush, loaddata, migrate, runfcgi, syncdb,
test, and validate.
- Other commands can be entered, but will fail if they're unknown to Django. Other commands that may prompt for user input should be run
with the I(--noinput) flag.
required: true
app_path:
description:
- The path to the root of the Django application where B(manage.py) lives.
required: true
settings:
description:
- The Python path to the application's settings module, such as 'myapp.settings'.
required: false
pythonpath:
description:
- A directory to add to the Python path. Typically used to include the settings module if it is located external to the application directory.
required: false
virtualenv:
description:
- An optional path to a I(virtualenv) installation to use while running the manage application.
aliases: [virtualenv]
apps:
description:
- A list of space-delimited apps to target. Used by the 'test' command.
required: false
cache_table:
description:
- The name of the table used for database-backed caching. Used by the 'createcachetable' command.
required: false
clear:
description:
- Clear the existing files before trying to copy or link the original file.
- Used only with the 'collectstatic' command. The C(--noinput) argument will be added automatically.
required: false
default: no
type: bool
database:
description:
- The database to target. Used by the 'createcachetable', 'flush', 'loaddata', and 'syncdb' commands.
required: false
failfast:
description:
- Fail the command immediately if a test fails. Used by the 'test' command.
required: false
default: "no"
type: bool
fixtures:
description:
- A space-delimited list of fixture file names to load in the database. B(Required) by the 'loaddata' command.
required: false
skip:
description:
- Will skip over out-of-order missing migrations, you can only use this parameter with I(migrate)
required: false
version_added: "1.3"
merge:
description:
- Will run out-of-order or missing migrations as they are not rollback migrations, you can only use this parameter with 'migrate' command
required: false
version_added: "1.3"
link:
description:
- Will create links to the files instead of copying them, you can only use this parameter with 'collectstatic' command
required: false
version_added: "1.3"
notes:
- I(virtualenv) (U(http://www.virtualenv.org)) must be installed on the remote host if the virtualenv parameter is specified.
- This module will create a virtualenv if the virtualenv parameter is specified and a virtualenv does not already exist at the given location.
- This module assumes English error messages for the 'createcachetable' command to detect table existence, unfortunately.
- To be able to use the migrate command with django versions < 1.7, you must have south installed and added as an app in your settings.
- To be able to use the collectstatic command, you must have enabled staticfiles in your settings.
- As of ansible 2.x, your I(manage.py) application must be executable (rwxr-xr-x), and must have a valid I(shebang), i.e. "#!/usr/bin/env python",
for invoking the appropriate Python interpreter.
requirements: [ "virtualenv", "django" ]
author: "Scott Anderson (@tastychutney)"
'''
EXAMPLES = """
# Run cleanup on the application installed in 'django_dir'.
- django_manage:
command: cleanup
app_path: "{{ django_dir }}"
# Load the initial_data fixture into the application
- django_manage:
command: loaddata
app_path: "{{ django_dir }}"
fixtures: "{{ initial_data }}"
# Run syncdb on the application
- django_manage:
command: syncdb
app_path: "{{ django_dir }}"
settings: "{{ settings_app_name }}"
pythonpath: "{{ settings_dir }}"
virtualenv: "{{ virtualenv_dir }}"
# Run the SmokeTest test case from the main app. Useful for testing deploys.
- django_manage:
command: test
app_path: "{{ django_dir }}"
apps: main.SmokeTest
# Create an initial superuser.
- django_manage:
command: "createsuperuser --noinput --username=admin --email=admin@example.com"
app_path: "{{ django_dir }}"
"""
import os
import sys
from ansible.module_utils.basic import AnsibleModule
def _fail(module, cmd, out, err, **kwargs):
msg = ''
if out:
msg += "stdout: %s" % (out, )
if err:
msg += "\n:stderr: %s" % (err, )
module.fail_json(cmd=cmd, msg=msg, **kwargs)
def _ensure_virtualenv(module):
venv_param = module.params['virtualenv']
if venv_param is None:
return
vbin = os.path.join(venv_param, 'bin')
activate = os.path.join(vbin, 'activate')
if not os.path.exists(activate):
virtualenv = module.get_bin_path('virtualenv', True)
vcmd = '%s %s' % (virtualenv, venv_param)
vcmd = [virtualenv, venv_param]
rc, out_venv, err_venv = module.run_command(vcmd)
if rc != 0:
_fail(module, vcmd, out_venv, err_venv)
os.environ["PATH"] = "%s:%s" % (vbin, os.environ["PATH"])
os.environ["VIRTUAL_ENV"] = venv_param
def createcachetable_filter_output(line):
return "Already exists" not in line
def flush_filter_output(line):
return "Installed" in line and "Installed 0 object" not in line
def loaddata_filter_output(line):
return "Installed" in line and "Installed 0 object" not in line
def syncdb_filter_output(line):
return ("Creating table " in line) or ("Installed" in line and "Installed 0 object" not in line)
def migrate_filter_output(line):
return ("Migrating forwards " in line) or ("Installed" in line and "Installed 0 object" not in line) or ("Applying" in line)
def collectstatic_filter_output(line):
return line and "0 static files" not in line
def main():
command_allowed_param_map = dict(
cleanup=(),
createcachetable=('cache_table', 'database', ),
flush=('database', ),
loaddata=('database', 'fixtures', ),
syncdb=('database', ),
test=('failfast', 'testrunner', 'liveserver', 'apps', ),
validate=(),
migrate=('apps', 'skip', 'merge', 'database',),
collectstatic=('clear', 'link', ),
)
command_required_param_map = dict(
loaddata=('fixtures', ),
)
# forces --noinput on every command that needs it
noinput_commands = (
'flush',
'syncdb',
'migrate',
'test',
'collectstatic',
)
# These params are allowed for certain commands only
specific_params = ('apps', 'clear', 'database', 'failfast', 'fixtures', 'liveserver', 'testrunner')
# These params are automatically added to the command if present
general_params = ('settings', 'pythonpath', 'database',)
specific_boolean_params = ('clear', 'failfast', 'skip', 'merge', 'link')
end_of_command_params = ('apps', 'cache_table', 'fixtures')
module = AnsibleModule(
argument_spec=dict(
command=dict(default=None, required=True),
app_path=dict(default=None, required=True, type='path'),
settings=dict(default=None, required=False),
pythonpath=dict(default=None, required=False, aliases=['python_path']),
virtualenv=dict(default=None, required=False, type='path', aliases=['virtual_env']),
apps=dict(default=None, required=False),
cache_table=dict(default=None, required=False),
clear=dict(default=None, required=False, type='bool'),
database=dict(default=None, required=False),
failfast=dict(default='no', required=False, type='bool', aliases=['fail_fast']),
fixtures=dict(default=None, required=False),
liveserver=dict(default=None, required=False, aliases=['live_server']),
testrunner=dict(default=None, required=False, aliases=['test_runner']),
skip=dict(default=None, required=False, type='bool'),
merge=dict(default=None, required=False, type='bool'),
link=dict(default=None, required=False, type='bool'),
),
)
command = module.params['command']
app_path = module.params['app_path']
virtualenv = module.params['virtualenv']
for param in specific_params:
value = module.params[param]
if param in specific_boolean_params:
value = module.boolean(value)
if value and param not in command_allowed_param_map[command]:
module.fail_json(msg='%s param is incompatible with command=%s' % (param, command))
for param in command_required_param_map.get(command, ()):
if not module.params[param]:
module.fail_json(msg='%s param is required for command=%s' % (param, command))
_ensure_virtualenv(module)
cmd = "./manage.py %s" % (command, )
if command in noinput_commands:
cmd = '%s --noinput' % cmd
for param in general_params:
if module.params[param]:
cmd = '%s --%s=%s' % (cmd, param, module.params[param])
for param in specific_boolean_params:
if module.boolean(module.params[param]):
cmd = '%s --%s' % (cmd, param)
# these params always get tacked on the end of the command
for param in end_of_command_params:
if module.params[param]:
cmd = '%s %s' % (cmd, module.params[param])
rc, out, err = module.run_command(cmd, cwd=app_path)
if rc != 0:
if command == 'createcachetable' and 'table' in err and 'already exists' in err:
out = 'Already exists.'
else:
if "Unknown command:" in err:
_fail(module, cmd, err, "Unknown django command: %s" % command)
_fail(module, cmd, out, err, path=os.environ["PATH"], syspath=sys.path)
changed = False
lines = out.split('\n')
filt = globals().get(command + "_filter_output", None)
if filt:
filtered_output = list(filter(filt, lines))
if len(filtered_output):
changed = True
module.exit_json(changed=changed, out=out, cmd=cmd, app_path=app_path, virtualenv=virtualenv,
settings=module.params['settings'], pythonpath=module.params['pythonpath'])
if __name__ == '__main__':
main()
| mit |
40223119/2015w13 | static/Brython3.1.0-20150301-090019/Lib/sys.py | 109 | 4959 | # hack to return special attributes
from _sys import *
from javascript import JSObject
has_local_storage=__BRYTHON__.has_local_storage
has_session_storage = __BRYTHON__.has_session_storage
has_json=__BRYTHON__.has_json
argv = ['__main__']
base_exec_prefix = __BRYTHON__.brython_path
base_prefix = __BRYTHON__.brython_path
builtin_module_names=__BRYTHON__.builtin_module_names
byteorder='little'
def exc_info():
exc = __BRYTHON__.exception_stack[-1]
return (exc.__class__,exc,exc.traceback)
exec_prefix = __BRYTHON__.brython_path
executable = __BRYTHON__.brython_path+'/brython.js'
def exit(i=None):
raise SystemExit('')
class flag_class:
def __init__(self):
self.debug=0
self.inspect=0
self.interactive=0
self.optimize=0
self.dont_write_bytecode=0
self.no_user_site=0
self.no_site=0
self.ignore_environment=0
self.verbose=0
self.bytes_warning=0
self.quiet=0
self.hash_randomization=1
flags=flag_class()
def getfilesystemencoding(*args,**kw):
"""getfilesystemencoding() -> string
Return the encoding used to convert Unicode filenames in
operating system filenames."""
return 'utf-8'
maxsize=2147483647
maxunicode=1114111
path = __BRYTHON__.path
#path_hooks = list(JSObject(__BRYTHON__.path_hooks))
meta_path=__BRYTHON__.meta_path
platform="brython"
prefix = __BRYTHON__.brython_path
version = '.'.join(str(x) for x in __BRYTHON__.version_info[:3])
version += " (default, %s) \n[Javascript 1.5] on Brython" % __BRYTHON__.compiled_date
hexversion = 0x03000000 # python 3.0
class __version_info(object):
def __init__(self, version_info):
self.version_info = version_info
self.major = version_info[0]
self.minor = version_info[1]
self.micro = version_info[2]
self.releaselevel = version_info[3]
self.serial = version_info[4]
def __getitem__(self, index):
if isinstance(self.version_info[index], list):
return tuple(self.version_info[index])
return self.version_info[index]
def hexversion(self):
try:
return '0%d0%d0%d' % (self.major, self.minor, self.micro)
finally: #probably some invalid char in minor (rc, etc)
return '0%d0000' % (self.major)
def __str__(self):
_s="sys.version(major=%d, minor=%d, micro=%d, releaselevel='%s', serial=%d)"
return _s % (self.major, self.minor, self.micro,
self.releaselevel, self.serial)
#return str(self.version_info)
def __eq__(self,other):
if isinstance(other, tuple):
return (self.major, self.minor, self.micro) == other
raise Error("Error! I don't know how to compare!")
def __ge__(self,other):
if isinstance(other, tuple):
return (self.major, self.minor, self.micro) >= other
raise Error("Error! I don't know how to compare!")
def __gt__(self,other):
if isinstance(other, tuple):
return (self.major, self.minor, self.micro) > other
raise Error("Error! I don't know how to compare!")
def __le__(self,other):
if isinstance(other, tuple):
return (self.major, self.minor, self.micro) <= other
raise Error("Error! I don't know how to compare!")
def __lt__(self,other):
if isinstance(other, tuple):
return (self.major, self.minor, self.micro) < other
raise Error("Error! I don't know how to compare!")
def __ne__(self,other):
if isinstance(other, tuple):
return (self.major, self.minor, self.micro) != other
raise Error("Error! I don't know how to compare!")
#eventually this needs to be the real python version such as 3.0, 3.1, etc
version_info=__version_info(__BRYTHON__.version_info)
class _implementation:
def __init__(self):
self.name='brython'
self.version = __version_info(__BRYTHON__.implementation)
self.hexversion = self.version.hexversion()
self.cache_tag=None
def __repr__(self):
return "namespace(name='%s' version=%s hexversion='%s')" % (self.name, self.version, self.hexversion)
def __str__(self):
return "namespace(name='%s' version=%s hexversion='%s')" % (self.name, self.version, self.hexversion)
implementation=_implementation()
class _hash_info:
def __init__(self):
self.width=32,
self.modulus=2147483647
self.inf=314159
self.nan=0
self.imag=1000003
self.algorithm='siphash24'
self.hash_bits=64
self.seed_bits=128
cutoff=0
def __repr(self):
#fix me
return "sys.hash_info(width=32, modulus=2147483647, inf=314159, nan=0, imag=1000003, algorithm='siphash24', hash_bits=64, seed_bits=128, cutoff=0)"
hash_info=_hash_info()
warnoptions=[]
def getfilesystemencoding():
return 'utf-8'
#delete objects not in python sys module namespace
del JSObject
del _implementation
| gpl-3.0 |
sserrot/champion_relationships | venv/Lib/site-packages/pythonwin/pywin/framework/editor/template.py | 7 | 1792 | import string
import win32ui
import win32api
from pywin.mfc import docview
import pywin.framework.window
import os
from . import frame
ParentEditorTemplate=docview.DocTemplate
class EditorTemplateBase(ParentEditorTemplate):
def __init__(self, res=win32ui.IDR_TEXTTYPE, makeDoc=None, makeFrame=None, makeView=None):
if makeFrame is None: makeFrame = frame.EditorFrame
ParentEditorTemplate.__init__(self, res, makeDoc, makeFrame, makeView)
def _CreateDocTemplate(self, resourceId):
assert 0, "You must override this"
def CreateWin32uiDocument(self):
assert 0, "You must override this"
def GetFileExtensions(self):
return ".txt", ".py"
def MatchDocType(self, fileName, fileType):
doc = self.FindOpenDocument(fileName)
if doc: return doc
ext = os.path.splitext(fileName)[1].lower()
if ext in self.GetFileExtensions():
return win32ui.CDocTemplate_Confidence_yesAttemptNative
return win32ui.CDocTemplate_Confidence_maybeAttemptForeign
def InitialUpdateFrame(self, frame, doc, makeVisible=1):
self._obj_.InitialUpdateFrame(frame, doc, makeVisible) # call default handler.
doc._UpdateUIForState()
def GetPythonPropertyPages(self):
"""Returns a list of property pages
"""
from . import configui
return [configui.EditorPropertyPage(), configui.EditorWhitespacePropertyPage()]
def OpenDocumentFile(self, filename, bMakeVisible = 1):
if filename is not None:
try:
path = os.path.split(filename)[0]
# print "The editor is translating", `filename`,"to",
filename = win32api.FindFiles(filename)[0][8]
filename = os.path.join(path, filename)
# print `filename`
except (win32api.error, IndexError) as details:
pass
# print "Couldnt get the full filename!", details
return self._obj_.OpenDocumentFile(filename, bMakeVisible)
| mit |
msrb/samba | python/examples/samr.py | 66 | 3870 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Unix SMB/CIFS implementation.
# Copyright © Jelmer Vernooij <jelmer@samba.org> 2008
#
# Based on samr.js © Andrew Tridgell <tridge@samba.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import sys
sys.path.insert(0, "bin/python")
from samba.dcerpc import samr, security
def display_lsa_string(str):
return str.string
def FillUserInfo(samr, dom_handle, users, level):
"""fill a user array with user information from samrQueryUserInfo"""
for i in range(len(users)):
user_handle = samr.OpenUser(handle, security.SEC_FLAG_MAXIMUM_ALLOWED, users[i].idx)
info = samr.QueryUserInfo(user_handle, level)
info.name = users[i].name
info.idx = users[i].idx
users[i] = info
samr.Close(user_handle)
def toArray((handle, array, num_entries)):
ret = []
for x in range(num_entries):
ret.append((array.entries[x].idx, array.entries[x].name))
return ret
def test_Connect(samr):
"""test the samr_Connect interface"""
print "Testing samr_Connect"
return samr.Connect2(None, security.SEC_FLAG_MAXIMUM_ALLOWED)
def test_LookupDomain(samr, handle, domain):
"""test the samr_LookupDomain interface"""
print "Testing samr_LookupDomain"
return samr.LookupDomain(handle, domain)
def test_OpenDomain(samr, handle, sid):
"""test the samr_OpenDomain interface"""
print "Testing samr_OpenDomain"
return samr.OpenDomain(handle, security.SEC_FLAG_MAXIMUM_ALLOWED, sid)
def test_EnumDomainUsers(samr, dom_handle):
"""test the samr_EnumDomainUsers interface"""
print "Testing samr_EnumDomainUsers"
users = toArray(samr.EnumDomainUsers(dom_handle, 0, 0, -1))
print "Found %d users" % len(users)
for idx, user in users:
print "\t%s\t(%d)" % (user.string, idx)
def test_EnumDomainGroups(samr, dom_handle):
"""test the samr_EnumDomainGroups interface"""
print "Testing samr_EnumDomainGroups"
groups = toArray(samr.EnumDomainGroups(dom_handle, 0, 0))
print "Found %d groups" % len(groups)
for idx, group in groups:
print "\t%s\t(%d)" % (group.string, idx)
def test_domain_ops(samr, dom_handle):
"""test domain specific ops"""
test_EnumDomainUsers(samr, dom_handle)
test_EnumDomainGroups(samr, dom_handle)
def test_EnumDomains(samr, handle):
"""test the samr_EnumDomains interface"""
print "Testing samr_EnumDomains"
domains = toArray(samr.EnumDomains(handle, 0, -1))
print "Found %d domains" % len(domains)
for idx, domain in domains:
print "\t%s (%d)" % (display_lsa_string(domain), idx)
for idx, domain in domains:
print "Testing domain %s" % display_lsa_string(domain)
sid = samr.LookupDomain(handle, domain)
dom_handle = test_OpenDomain(samr, handle, sid)
test_domain_ops(samr, dom_handle)
samr.Close(dom_handle)
if len(sys.argv) != 2:
print "Usage: samr.js <BINDING>"
sys.exit(1)
binding = sys.argv[1]
print "Connecting to %s" % binding
try:
samr = samr.samr(binding)
except Exception, e:
print "Failed to connect to %s: %s" % (binding, e.message)
sys.exit(1)
handle = test_Connect(samr)
test_EnumDomains(samr, handle)
samr.Close(handle)
print "All OK"
| gpl-3.0 |
cloudbase/neutron-virtualbox | neutron/plugins/embrane/common/constants.py | 47 | 2749 | # Copyright 2013 Embrane, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from heleosapi import exceptions as h_exc
from neutron.plugins.common import constants
# Router specific constants
UTIF_LIMIT = 7
QUEUE_TIMEOUT = 300
class Status(object):
# Transient
CREATING = constants.PENDING_CREATE
UPDATING = constants.PENDING_UPDATE
DELETING = constants.PENDING_DELETE
# Final
ACTIVE = constants.ACTIVE
ERROR = constants.ERROR
READY = constants.INACTIVE
DELETED = "DELETED" # not visible
class Events(object):
CREATE_ROUTER = "create_router"
UPDATE_ROUTER = "update_router"
DELETE_ROUTER = "delete_router"
GROW_ROUTER_IF = "grow_router_if"
SHRINK_ROUTER_IF = "shrink_router_if"
SET_NAT_RULE = "set_nat_rule"
RESET_NAT_RULE = "reset_nat_rule"
_DVA_PENDING_ERROR_MSG = _("Dva is pending for the following reason: %s")
_DVA_NOT_FOUNT_ERROR_MSG = _("Dva can't be found to execute the operation, "
"probably was cancelled through the heleos UI")
_DVA_BROKEN_ERROR_MSG = _("Dva seems to be broken for reason %s")
_DVA_BROKEN_INTERFACE_ERROR_MSG = _("Dva interface seems to be broken "
"for reason %s")
_DVA_CREATION_FAILED_ERROR_MSG = _("Dva creation failed reason %s")
_DVA_CREATION_PENDING_ERROR_MSG = _("Dva creation is in pending state "
"for reason %s")
_CFG_FAILED_ERROR_MSG = _("Dva configuration failed for reason %s")
_DVA_DEL_FAILED_ERROR_MSG = _("Failed to delete the backend "
"router for reason %s. Please remove "
"it manually through the heleos UI")
error_map = {h_exc.PendingDva: _DVA_PENDING_ERROR_MSG,
h_exc.DvaNotFound: _DVA_NOT_FOUNT_ERROR_MSG,
h_exc.BrokenDva: _DVA_BROKEN_ERROR_MSG,
h_exc.BrokenInterface: _DVA_BROKEN_INTERFACE_ERROR_MSG,
h_exc.DvaCreationFailed: _DVA_CREATION_FAILED_ERROR_MSG,
h_exc.DvaCreationPending: _DVA_CREATION_PENDING_ERROR_MSG,
h_exc.ConfigurationFailed: _CFG_FAILED_ERROR_MSG,
h_exc.DvaDeleteFailed: _DVA_DEL_FAILED_ERROR_MSG}
| apache-2.0 |
ged-lab/khmer | tests/test_graph.py | 2 | 10940 | # This file is part of khmer, https://github.com/dib-lab/khmer/, and is
# Copyright (C) 2010-2015, Michigan State University.
# Copyright (C) 2015, The Regents of the University of California.
#
# 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 Michigan State University 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.
#
# Contact: khmer-project@idyll.org
# pylint: disable=missing-docstring,no-member,invalid-name,no-self-use
# pylint: disable=protected-access
import khmer
import screed
from . import khmer_tst_utils as utils
def teardown():
utils.cleanup()
class Test_ExactGraphFu(object):
def setup(self):
self.ht = khmer.Nodegraph(12, 1e4, 2)
def test_counts(self):
ht = self.ht
ht.consume_seqfile(utils.get_test_data('test-graph.fa'))
kmer = "TTAGGACTGCAC"
x = ht.calc_connected_graph_size(kmer)
assert x == 69, x
kmer = "TGCGTTTCAATC"
x = ht.calc_connected_graph_size(kmer)
assert x == 68, x
kmer = "ATACTGTAAATA"
x = ht.calc_connected_graph_size(kmer)
assert x == 36, x
def test_graph_links_next_a(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "A")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_c(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "C")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_g(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "G")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_t(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "T")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_a(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("A" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_c(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("C" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_g(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("G" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_t(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("T" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
class Test_InexactGraphFu(object):
def setup(self):
self.ht = khmer.Nodegraph(12, 4 ** 3 + 1, 2)
def test_graph_links_next_a(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "A")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_c(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "C")
x = ht.calc_connected_graph_size(word)
assert x == 2, x
def test_graph_links_next_g(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "G")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_t(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "T")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_a(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("A" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_c(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("C" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_g(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("G" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_t(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("T" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
#
class Test_Partitioning(object):
def test_output_unassigned(self):
filename = utils.get_test_data('random-20-a.fa')
ht = khmer.Nodegraph(21, 1, 1, primes=[5, 7, 11, 13])
ht.consume_seqfile_and_tag(filename)
output_file = utils.get_temp_filename('part0test')
ht.output_partitions(filename, output_file, True)
len1 = len(list(screed.open(filename)))
len2 = len(list(screed.open(output_file)))
assert len1 > 0
assert len1 == len2, (len1, len2)
def test_not_output_unassigned(self):
filename = utils.get_test_data('random-20-a.fa')
ht = khmer.Nodegraph(21, 1, 1, primes=[5, 7, 11, 13])
ht.consume_seqfile_and_tag(filename)
output_file = utils.get_temp_filename('parttest')
ht.output_partitions(filename, output_file, False)
len1 = len(list(screed.open(filename)))
len2 = len(list(screed.open(output_file)))
assert len1 > 0
assert len2 == 0, len2
def test_output_fq(self):
filename = utils.get_test_data('random-20-a.fq')
ht = khmer.Nodegraph(20, 1e4, 4)
ht.consume_seqfile_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
ht.merge_subset(subset)
output_file = utils.get_temp_filename('parttest')
ht.output_partitions(filename, output_file, False)
print(open(output_file).read())
x = set([r.quality for r in screed.open(output_file)])
assert x, x
def test_disconnected_20_a(self):
filename = utils.get_test_data('random-20-a.fa')
ht = khmer.Nodegraph(21, 1e5, 4)
ht.consume_seqfile_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = subset.count_partitions()
assert x == (99, 0), x # disconnected @ 21
def test_connected_20_a(self):
filename = utils.get_test_data('random-20-a.fa')
ht = khmer.Nodegraph(20, 1e4, 4)
ht.consume_seqfile_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = subset.count_partitions()
assert x == (1, 0) # connected @ 20
def test_disconnected_20_b(self):
filename = utils.get_test_data('random-20-b.fa')
ht = khmer.Nodegraph(21, 1e4, 4)
ht.consume_seqfile_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = subset.count_partitions()
assert x == (99, 0), x # disconnected @ 21
def test_connected_20_b(self):
filename = utils.get_test_data('random-20-b.fa')
ht = khmer.Nodegraph(20, 1e4, 4)
ht.consume_seqfile_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = subset.count_partitions()
assert x == (1, 0) # connected @ 20
def test_disconnected_31_c(self):
filename = utils.get_test_data('random-31-c.fa')
ht = khmer.Nodegraph(32, 1e6, 4)
ht.consume_seqfile_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = subset.count_partitions()
assert x == (999, 0), x # disconnected @ K = 32
def test_connected_31_c(self):
filename = utils.get_test_data('random-31-c.fa')
ht = khmer.Nodegraph(31, 1e5, 4)
ht.consume_seqfile_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = subset.count_partitions()
assert x == (1, 0) # connected @ K = 31
#
class Test_PythonAPI(object):
def test_find_all_tags_kmersize(self):
ht = khmer.Nodegraph(20, 4 ** 4 + 1, 2)
a = "ATTGGGACTCTGGGAGCACTTATCATGGAGAT"
c = "GGAGCACTTATCATGGAGATATATCCCGTGCTTAAACATCGCACTTTAACCCTGCAGAGT"
print(ht.consume(a))
try:
ht.find_all_tags(c[:19])
assert False, "should raise a ValueError for wrong k-mer size"
except ValueError:
pass
try:
ht.find_all_tags(c[:21])
assert False, "should raise a ValueError for wrong k-mer size"
except ValueError:
pass
def test_ordered_connect(self):
ht = khmer.Nodegraph(20, 4 ** 4 + 1, 2)
a = "ATTGGGACTCTGGGAGCACTTATCATGGAGAT"
b = "GAGCACTTTAACCCTGCAGAGTGGCCAAGGCT"
c = "GGAGCACTTATCATGGAGATATATCCCGTGCTTAAACATCGCACTTTAACCCTGCAGAGT"
print(ht.consume(a))
ppi = ht.find_all_tags(a[:20])
pid = ht.assign_partition_id(ppi)
assert pid == 0, pid
print(ht.consume(b))
ppi = ht.find_all_tags(b[:20])
pid = ht.assign_partition_id(ppi)
assert pid == 0, pid
print(ht.consume(c))
ppi = ht.find_all_tags(c[:20])
pid = ht.assign_partition_id(ppi)
assert pid == 2, pid
#
| bsd-3-clause |
Peddle/hue | desktop/core/ext-py/boto-2.38.0/boto/kinesis/__init__.py | 145 | 1652 | # Copyright (c) 2013 Amazon.com, Inc. or its affiliates.
# All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, dis-
# tribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the fol-
# lowing conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
from boto.regioninfo import RegionInfo, get_regions
def regions():
"""
Get all available regions for the Amazon Kinesis service.
:rtype: list
:return: A list of :class:`boto.regioninfo.RegionInfo`
"""
from boto.kinesis.layer1 import KinesisConnection
return get_regions('kinesis', connection_cls=KinesisConnection)
def connect_to_region(region_name, **kw_params):
for region in regions():
if region.name == region_name:
return region.connect(**kw_params)
return None
| apache-2.0 |
pcamp/google-appengine-wx-launcher | launcher/app_unittest.py | 28 | 2973 | #!/usr/bin/env python
#
# Copyright 2008 Google Inc.
#
# 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.
#
"""Unittests for app.py."""
import os
import unittest
import launcher
class NoShowApp(launcher.App):
def __init__(self):
super(NoShowApp, self).__init__()
self.displayed = False
def _DisplayMainFrame(self):
"""Override so we don't actually display UI.
Can't override by setting app._DisplayMainFrame to a new value
since this gets hit before we have a chance to override.
"""
self.displayed = True
def _InitializeLogging(self):
"""Override so logs don't throw up modal dialogs."""
pass
class NoShowNoVersionCheckApp(NoShowApp):
def _VersionCheck(self, url=None):
pass
class AppTest(unittest.TestCase):
def testOnInit(self):
app = NoShowNoVersionCheckApp()
self.assertTrue(app.Initialized())
def testVersionCheck(self):
app = NoShowApp()
warned = [False]
def fakeNewVersionNeeded(a, b, c):
warned[0] = True
app._NewVersionNeeded = fakeNewVersionNeeded
badurl = 'file://' + os.path.join(os.getcwd(),
launcher.__path__[0],
'app_unittest.py')
# silent unhappy on purpose
app._VersionCheck(badurl)
self.assertEqual(False, warned[0])
def DumpAndVersionCheck(data, app):
filename = os.tempnam()
f = open(filename, 'w')
f.write(data)
f.close()
app._VersionCheck('file:///' + filename)
return filename
# try hard to look like we're out of date
new_version_file = ('release: "9999.9999.9999"\n' +
'timestamp: 9999999999\n' +
'api_versions: [\'1\']\n')
self.assertEqual(False, warned[0])
filename = DumpAndVersionCheck(new_version_file, app)
os.unlink(filename)
self.assertEqual(True, warned[0])
warned[0] = False
# Make sure we are NOT out of date
old_version_file = ('release: "0.0.0"\n' +
'timestamp: 7\n' +
'api_versions: [\'1\']\n')
self.assertEqual(False, warned[0])
filename = DumpAndVersionCheck(old_version_file, app)
os.unlink(filename)
self.assertEqual(False, warned[0])
# VERSION file or well-defined failure string
# (depends on prefs setting...)
current = app._CurrentVersionData()
self.assertTrue('api_version' in current)
if __name__ == '__main__':
unittest.main()
| apache-2.0 |
teosz/servo | tests/wpt/css-tests/tools/manifest/item.py | 84 | 5794 | import os
import urlparse
from abc import ABCMeta, abstractmethod, abstractproperty
from utils import from_os_path, to_os_path
item_types = ["testharness", "reftest", "manual", "stub", "wdspec"]
def get_source_file(source_files, tests_root, manifest, path):
def make_new():
from sourcefile import SourceFile
return SourceFile(tests_root, path, manifest.url_base)
if source_files is None:
return make_new()
if path not in source_files:
source_files[path] = make_new()
return source_files[path]
class ManifestItem(object):
__metaclass__ = ABCMeta
item_type = None
def __init__(self, source_file, manifest=None):
self.manifest = manifest
self.source_file = source_file
@abstractproperty
def id(self):
"""The test's id (usually its url)"""
pass
@property
def path(self):
"""The test path relative to the test_root"""
return self.source_file.rel_path
@property
def https(self):
return "https" in self.source_file.meta_flags
def key(self):
"""A unique identifier for the test"""
return (self.item_type, self.id)
def meta_key(self):
"""Extra metadata that doesn't form part of the test identity, but for
which changes mean regenerating the manifest (e.g. the test timeout."""
return ()
def __eq__(self, other):
if not hasattr(other, "key"):
return False
return self.key() == other.key()
def __hash__(self):
return hash(self.key() + self.meta_key())
def to_json(self):
return {"path": from_os_path(self.path)}
@classmethod
def from_json(self, manifest, tests_root, obj, source_files=None):
raise NotImplementedError
class URLManifestItem(ManifestItem):
def __init__(self, source_file, url, url_base="/", manifest=None):
ManifestItem.__init__(self, source_file, manifest=manifest)
self._url = url
self.url_base = url_base
@property
def id(self):
return self.url
@property
def url(self):
return urlparse.urljoin(self.url_base, self._url)
def to_json(self):
rv = ManifestItem.to_json(self)
rv["url"] = self._url
return rv
@classmethod
def from_json(cls, manifest, tests_root, obj, source_files=None):
source_file = get_source_file(source_files, tests_root, manifest,
to_os_path(obj["path"]))
return cls(source_file,
obj["url"],
url_base=manifest.url_base,
manifest=manifest)
class TestharnessTest(URLManifestItem):
item_type = "testharness"
def __init__(self, source_file, url, url_base="/", timeout=None, manifest=None):
URLManifestItem.__init__(self, source_file, url, url_base=url_base, manifest=manifest)
self.timeout = timeout
def meta_key(self):
return (self.timeout,)
def to_json(self):
rv = URLManifestItem.to_json(self)
if self.timeout is not None:
rv["timeout"] = self.timeout
return rv
@classmethod
def from_json(cls, manifest, tests_root, obj, source_files=None):
source_file = get_source_file(source_files, tests_root, manifest,
to_os_path(obj["path"]))
return cls(source_file,
obj["url"],
url_base=manifest.url_base,
timeout=obj.get("timeout"),
manifest=manifest)
class RefTest(URLManifestItem):
item_type = "reftest"
def __init__(self, source_file, url, references, url_base="/", timeout=None,
viewport_size=None, dpi=None, manifest=None):
URLManifestItem.__init__(self, source_file, url, url_base=url_base, manifest=manifest)
for _, ref_type in references:
if ref_type not in ["==", "!="]:
raise ValueError, "Unrecognised ref_type %s" % ref_type
self.references = tuple(references)
self.timeout = timeout
self.viewport_size = viewport_size
self.dpi = dpi
@property
def is_reference(self):
return self.source_file.name_is_reference
def meta_key(self):
return (self.timeout, self.viewport_size, self.dpi)
def to_json(self):
rv = URLManifestItem.to_json(self)
rv["references"] = self.references
if self.timeout is not None:
rv["timeout"] = self.timeout
if self.viewport_size is not None:
rv["viewport_size"] = self.viewport_size
if self.dpi is not None:
rv["dpi"] = self.dpi
return rv
@classmethod
def from_json(cls, manifest, tests_root, obj, source_files=None):
source_file = get_source_file(source_files, tests_root, manifest,
to_os_path(obj["path"]))
return cls(source_file,
obj["url"],
obj["references"],
url_base=manifest.url_base,
timeout=obj.get("timeout"),
viewport_size=obj.get("viewport_size"),
dpi=obj.get("dpi"),
manifest=manifest)
class ManualTest(URLManifestItem):
item_type = "manual"
class Stub(URLManifestItem):
item_type = "stub"
class WebdriverSpecTest(ManifestItem):
item_type = "wdspec"
@property
def id(self):
return self.path
@classmethod
def from_json(cls, manifest, tests_root, obj, source_files=None):
source_file = get_source_file(source_files, tests_root, manifest,
to_os_path(obj["path"]))
return cls(source_file, manifest=manifest)
| mpl-2.0 |
sahitya-pavurala/luigi | test/test_ssh.py | 95 | 1796 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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 subprocess
from helpers import unittest
from luigi.contrib.ssh import RemoteContext
class TestMockedRemoteContext(unittest.TestCase):
def test_subprocess_delegation(self):
""" Test subprocess call structure using mock module """
orig_Popen = subprocess.Popen
self.last_test = None
def Popen(cmd, **kwargs):
self.last_test = cmd
subprocess.Popen = Popen
context = RemoteContext(
"some_host",
username="luigi",
key_file="/some/key.pub"
)
context.Popen(["ls"])
self.assertTrue("ssh" in self.last_test)
self.assertTrue("-i" in self.last_test)
self.assertTrue("/some/key.pub" in self.last_test)
self.assertTrue("luigi@some_host" in self.last_test)
self.assertTrue("ls" in self.last_test)
subprocess.Popen = orig_Popen
def test_check_output_fail_connect(self):
""" Test check_output to a non-existing host """
context = RemoteContext("__NO_HOST_LIKE_THIS__", connect_timeout=1)
self.assertRaises(
subprocess.CalledProcessError,
context.check_output, ["ls"]
)
| apache-2.0 |
v1k45/django-notify-x | notify/models.py | 1 | 14033 | from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.conf import settings
from django.db.models import QuerySet
from jsonfield.fields import JSONField
from six import python_2_unicode_compatible
from django.utils.html import escape
from django.utils.timesince import timesince
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import force_text
from django.utils.functional import cached_property
from .utils import prefetch_relations
class NotificationQueryset(QuerySet):
"""
Chain-able QuerySets using ```.as_manager()``.
"""
def prefetch(self):
"""
Marks the current queryset to prefetch all generic relations.
"""
qs = self.select_related()
qs._prefetch_relations = True
return qs
def _fetch_all(self):
if self._result_cache is None:
if hasattr(self, '_prefetch_relations'):
# removes the flag since prefetch_relations is recursive
del self._prefetch_relations
prefetch_relations(self)
self._prefetch_relations = True
return super(NotificationQueryset, self)._fetch_all()
def _clone(self, **kwargs):
clone = super(NotificationQueryset, self)._clone(**kwargs)
if hasattr(self, '_prefetch_relations'):
clone._prefetch_relations = True
return clone
def active(self):
"""
QuerySet filter() for retrieving both read and unread notifications
which are not soft-deleted.
:return: Non soft-deleted notifications.
"""
return self.filter(deleted=False)
def read(self):
"""
QuerySet filter() for retrieving read notifications.
:return: Read and active Notifications filter().
"""
return self.filter(deleted=False, read=True)
def unread(self):
"""
QuerySet filter() for retrieving unread notifications.
:return: Unread and active Notifications filter().
"""
return self.filter(deleted=False, read=False)
def unread_all(self, user=None):
"""
Marks all notifications as unread for a user (if supplied)
:param user: Notification recipient.
:return: Updates QuerySet as unread.
"""
qs = self.read()
if user:
qs = qs.filter(recipient=user)
qs.update(read=False)
def read_all(self, user=None):
"""
Marks all notifications as read for a user (if supplied)
:param user: Notification recipient.
:return: Updates QuerySet as read.
"""
qs = self.unread()
if user:
qs = qs.filter(recipient=user)
qs.update(read=True)
def delete_all(self, user=None):
"""
Method to soft-delete all notifications of a User (if supplied)
:param user: Notification recipient.
:return: Updates QuerySet as soft-deleted.
"""
qs = self.active()
if user:
qs = qs.filter(recipient=user)
soft_delete = getattr(settings, 'NOTIFY_SOFT_DELETE', True)
if soft_delete:
qs.update(deleted=True)
else:
qs.delete()
def active_all(self, user=None):
"""
Method to soft-delete all notifications of a User (if supplied)
:param user: Notification recipient.
:return: Updates QuerySet as soft-deleted.
"""
qs = self.deleted()
if user:
qs = qs.filter(recipient=user)
qs.update(deleted=False)
def deleted(self):
"""
QuerySet ``filter()`` for retrieving soft-deleted notifications.
:return: Soft deleted notification filter()
"""
return self.filter(deleted=True)
@python_2_unicode_compatible
class Notification(models.Model):
"""
**Notification Model for storing notifications. (Yeah, too obvious)**
This model is pretty-much a replica of ``django-notifications``'s
model. The newly added fields just adds a feature to allow anonymous
``actors``, ``targets`` and ``object``.
**Attributes**:
:recipient: The user who receives notification.
:verb: Action performed by actor (not necessarily).
:description: Option description for your notification.
:actor_text: Anonymous actor who is not in content-type.
:actor_url: Since the actor is not in content-type,
a custom URL for it.
*...Same for target and obj*.
:nf_type: | Each notification is different, they must be formatted
| differently during HTML rendering. For this, each
| notification gets to carry it own *notification type*.
|
| This notification type will be used to search
| the special template for the notification located at
| ``notifications/includes/NF_TYPE.html`` of your
| template directory.
|
| The main reason to add this field is to save you
| from the pain of writing ``if...elif...else`` blocks
| in your template file just for handling how
| notifications will get rendered.
|
| With this, you can just save template for an individual
| notification type and call the *template-tag* to render
| all notifications for you without writing a single
| ``if...elif...else block``.
|
| You'll just need to do a
| ``{% render_notifications using NOTIFICATION_OBJ %}``
| and you'll get your notifications rendered.
|
| By default, every ``nf_type`` is set to ``default``.
:extra: **JSONField**, holds other optional data you want the
notification to carry in JSON format.
:deleted: Useful when you want to *soft delete* your notifications.
"""
recipient = models.ForeignKey(settings.AUTH_USER_MODEL,
related_name='notifications',
on_delete=models.CASCADE,
verbose_name=_('Notification receiver'))
# actor attributes.
actor_content_type = models.ForeignKey(
ContentType, null=True, blank=True,
related_name='notify_actor', on_delete=models.CASCADE,
verbose_name=_('Content type of actor object'))
actor_object_id = models.PositiveIntegerField(
null=True, blank=True,
verbose_name=_('ID of the actor object'))
actor_content_object = GenericForeignKey('actor_content_type',
'actor_object_id')
actor_text = models.CharField(
max_length=50, blank=True, null=True,
verbose_name=_('Anonymous text for actor'))
actor_url_text = models.CharField(
blank=True, null=True, max_length=200,
verbose_name=_('Anonymous URL for actor'))
# basic details.
verb = models.CharField(max_length=100,
verbose_name=_('Verb of the action'))
description = models.CharField(
max_length=255, blank=True, null=True,
verbose_name=_('Description of the notification'))
nf_type = models.CharField(max_length=20, default='default',
verbose_name=_('Type of notification'))
# TODO: Add a field to store notification cover images.
# target attributes.
target_content_type = models.ForeignKey(
ContentType, null=True, blank=True,
related_name='notify_target', on_delete=models.CASCADE,
verbose_name=_('Content type of target object'))
target_object_id = models.PositiveIntegerField(
null=True, blank=True,
verbose_name=_('ID of the target object'))
target_content_object = GenericForeignKey('target_content_type',
'target_object_id')
target_text = models.CharField(
max_length=50, blank=True, null=True,
verbose_name=_('Anonymous text for target'))
target_url_text = models.CharField(
blank=True, null=True, max_length=200,
verbose_name=_('Anonymous URL for target'))
# obj attributes.
obj_content_type = models.ForeignKey(
ContentType, null=True, blank=True,
related_name='notify_object', on_delete=models.CASCADE,
verbose_name=_('Content type of action object'))
obj_object_id = models.PositiveIntegerField(
null=True, blank=True,
verbose_name=_('ID of the target object'))
obj_content_object = GenericForeignKey('obj_content_type', 'obj_object_id')
obj_text = models.CharField(
max_length=50, blank=True, null=True,
verbose_name=_('Anonymous text for action object'))
obj_url_text = models.CharField(
blank=True, null=True, max_length=200,
verbose_name=_('Anonymous URL for action object'))
extra = JSONField(null=True, blank=True,
verbose_name=_('JSONField to store addtional data'))
# Advanced details.
created = models.DateTimeField(auto_now=False, auto_now_add=True)
read = models.BooleanField(default=False,
verbose_name=_('Read status'))
deleted = models.BooleanField(default=False,
verbose_name=_('Soft delete status'))
objects = NotificationQueryset.as_manager()
class Meta(object):
ordering = ('-created', )
def __str__(self):
ctx = {
'actor': self.actor or self.actor_text,
'verb': self.verb,
'description': self.description,
'target': self.target or self.target_text,
'obj': self.obj or self.obj_text,
'at': timesince(self.created),
}
if ctx['actor']:
if not ctx['target']:
return _("{actor} {verb} {at} ago").format(**ctx)
elif not ctx['obj']:
return _("{actor} {verb} on {target} {at} ago").format(**ctx)
elif ctx['obj']:
return _(
"{actor} {verb} {obj} on {target} {at} ago").format(**ctx)
return _("{description} -- {at} ago").format(**ctx)
def mark_as_read(self):
"""
Marks notification as read
"""
self.read = True
self.save()
def mark_as_unread(self):
"""
Marks notification as unread.
"""
self.read = False
self.save()
@cached_property
def actor(self):
"""
Property to return actor object/text to keep things DRY.
:return: Actor object or Text or None.
"""
return self.actor_content_object or self.actor_text
@cached_property
def actor_url(self):
"""
Property to return permalink of the actor.
Uses ``get_absolute_url()``.
If ``get_absolute_url()`` method fails, it tries to grab URL
from ``actor_url_text``, if it fails again, returns a "#".
:return: URL for the actor.
"""
try:
url = self.actor_content_object.get_absolute_url()
except AttributeError:
url = self.actor_url_text or "#"
return url
@cached_property
def target(self):
"""
See ``actor`` property
:return: Target object or Text or None
"""
return self.target_content_object or self.target_text
@cached_property
def target_url(self):
"""
See ``actor_url`` property.
:return: URL for the target.
"""
try:
url = self.target_content_object.get_absolute_url()
except AttributeError:
url = self.target_url_text or "#"
return url
@cached_property
def obj(self):
"""
See ``actor`` property.
:return: Action Object or Text or None.
"""
return self.obj_content_object or self.obj_text
@cached_property
def obj_url(self):
"""
See ``actor_url`` property.
:return: URL for Action Object.
"""
try:
url = self.obj_content_object.get_absolute_url()
except AttributeError:
url = self.obj_url_text or "#"
return url
@staticmethod
def do_escape(obj):
"""
Method to HTML escape an object or set it to None conditionally.
performs ``force_text()`` on the argument so that a foreignkey gets
serialized? and spit out the ``__str__`` output instead of an Object.
:param obj: Object to escape.
:return: HTML escaped and JSON-friendly data.
"""
return escape(force_text(obj)) if obj else None
def as_json(self):
"""
Notification data in a Python dictionary to which later gets
supplied to JSONResponse so that it gets JSON serialized
the *django-way*
:return: Dictionary format of the QuerySet object.
"""
data = {
"id": self.id,
"actor": self.do_escape(self.actor),
"actor_url": self.do_escape(self.actor_url),
"verb": self.do_escape(self.verb),
"description": self.do_escape(self.description),
"read": self.read,
"nf_type": self.do_escape(self.nf_type),
"target": self.do_escape(self.target),
"target_url": self.do_escape(self.target_url),
"obj": self.do_escape(self.obj),
"obj_url": self.do_escape(self.obj_url),
"created": self.created,
"data": self.extra,
}
return data
| mit |
angstwad/ansible | hacking/module_formatter.py | 13 | 18768 | #!/usr/bin/env python
# (c) 2012, Jan-Piet Mens <jpmens () gmail.com>
# (c) 2012-2014, Michael DeHaan <michael@ansible.com> and others
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import print_function
import os
import glob
import sys
import yaml
import re
import optparse
import datetime
import cgi
import warnings
from collections import defaultdict
from jinja2 import Environment, FileSystemLoader
from six import iteritems
from ansible.utils import module_docs
from ansible.utils.vars import merge_hash
from ansible.utils.unicode import to_bytes
from ansible.errors import AnsibleError
#####################################################################################
# constants and paths
# if a module is added in a version of Ansible older than this, don't print the version added information
# in the module documentation because everyone is assumed to be running something newer than this already.
TO_OLD_TO_BE_NOTABLE = 1.3
# Get parent directory of the directory this script lives in
MODULEDIR=os.path.abspath(os.path.join(
os.path.dirname(os.path.realpath(__file__)), os.pardir, 'lib', 'ansible', 'modules'
))
# The name of the DOCUMENTATION template
EXAMPLE_YAML=os.path.abspath(os.path.join(
os.path.dirname(os.path.realpath(__file__)), os.pardir, 'examples', 'DOCUMENTATION.yml'
))
_ITALIC = re.compile(r"I\(([^)]+)\)")
_BOLD = re.compile(r"B\(([^)]+)\)")
_MODULE = re.compile(r"M\(([^)]+)\)")
_URL = re.compile(r"U\(([^)]+)\)")
_CONST = re.compile(r"C\(([^)]+)\)")
DEPRECATED = " (D)"
NOTCORE = " (E)"
#####################################################################################
def rst_ify(text):
''' convert symbols like I(this is in italics) to valid restructured text '''
try:
t = _ITALIC.sub(r'*' + r"\1" + r"*", text)
t = _BOLD.sub(r'**' + r"\1" + r"**", t)
t = _MODULE.sub(r':ref:`' + r"\1 <\1>" + r"`", t)
t = _URL.sub(r"\1", t)
t = _CONST.sub(r'``' + r"\1" + r"``", t)
except Exception as e:
raise AnsibleError("Could not process (%s) : %s" % (str(text), str(e)))
return t
#####################################################################################
def html_ify(text):
''' convert symbols like I(this is in italics) to valid HTML '''
t = cgi.escape(text)
t = _ITALIC.sub("<em>" + r"\1" + "</em>", t)
t = _BOLD.sub("<b>" + r"\1" + "</b>", t)
t = _MODULE.sub("<span class='module'>" + r"\1" + "</span>", t)
t = _URL.sub("<a href='" + r"\1" + "'>" + r"\1" + "</a>", t)
t = _CONST.sub("<code>" + r"\1" + "</code>", t)
return t
#####################################################################################
def rst_fmt(text, fmt):
''' helper for Jinja2 to do format strings '''
return fmt % (text)
#####################################################################################
def rst_xline(width, char="="):
''' return a restructured text line of a given length '''
return char * width
#####################################################################################
def write_data(text, options, outputname, module):
''' dumps module output to a file or the screen, as requested '''
if options.output_dir is not None:
fname = os.path.join(options.output_dir, outputname % module)
fname = fname.replace(".py","")
f = open(fname, 'w')
f.write(text.encode('utf-8'))
f.close()
else:
print(text)
#####################################################################################
def list_modules(module_dir, depth=0):
''' returns a hash of categories, each category being a hash of module names to file paths '''
categories = dict()
module_info = dict()
aliases = defaultdict(set)
# * windows powershell modules have documentation stubs in python docstring
# format (they are not executed) so skip the ps1 format files
# * One glob level for every module level that we're going to traverse
files = glob.glob("%s/*.py" % module_dir) + glob.glob("%s/*/*.py" % module_dir) + glob.glob("%s/*/*/*.py" % module_dir) + glob.glob("%s/*/*/*/*.py" % module_dir)
for module_path in files:
if module_path.endswith('__init__.py'):
continue
category = categories
mod_path_only = os.path.dirname(module_path[len(module_dir) + 1:])
# Start at the second directory because we don't want the "vendor"
# directories (core, extras)
for new_cat in mod_path_only.split('/')[1:]:
if new_cat not in category:
category[new_cat] = dict()
category = category[new_cat]
module = os.path.splitext(os.path.basename(module_path))[0]
if module in module_docs.BLACKLIST_MODULES:
# Do not list blacklisted modules
continue
if module.startswith("_") and os.path.islink(module_path):
source = os.path.splitext(os.path.basename(os.path.realpath(module_path)))[0]
module = module.replace("_","",1)
aliases[source].add(module)
continue
category[module] = module_path
module_info[module] = module_path
# keep module tests out of becoming module docs
if 'test' in categories:
del categories['test']
return module_info, categories, aliases
#####################################################################################
def generate_parser():
''' generate an optparse parser '''
p = optparse.OptionParser(
version='%prog 1.0',
usage='usage: %prog [options] arg1 arg2',
description='Generate module documentation from metadata',
)
p.add_option("-A", "--ansible-version", action="store", dest="ansible_version", default="unknown", help="Ansible version number")
p.add_option("-M", "--module-dir", action="store", dest="module_dir", default=MODULEDIR, help="Ansible library path")
p.add_option("-T", "--template-dir", action="store", dest="template_dir", default="hacking/templates", help="directory containing Jinja2 templates")
p.add_option("-t", "--type", action='store', dest='type', choices=['rst'], default='rst', help="Document type")
p.add_option("-v", "--verbose", action='store_true', default=False, help="Verbose")
p.add_option("-o", "--output-dir", action="store", dest="output_dir", default=None, help="Output directory for module files")
p.add_option("-I", "--includes-file", action="store", dest="includes_file", default=None, help="Create a file containing list of processed modules")
p.add_option('-V', action='version', help='Show version number and exit')
return p
#####################################################################################
def jinja2_environment(template_dir, typ):
env = Environment(loader=FileSystemLoader(template_dir),
variable_start_string="@{",
variable_end_string="}@",
trim_blocks=True,
)
env.globals['xline'] = rst_xline
if typ == 'rst':
env.filters['convert_symbols_to_format'] = rst_ify
env.filters['html_ify'] = html_ify
env.filters['fmt'] = rst_fmt
env.filters['xline'] = rst_xline
template = env.get_template('rst.j2')
outputname = "%s_module.rst"
else:
raise Exception("unknown module format type: %s" % typ)
return env, template, outputname
#####################################################################################
def too_old(added):
if not added:
return False
try:
added_tokens = str(added).split(".")
readded = added_tokens[0] + "." + added_tokens[1]
added_float = float(readded)
except ValueError as e:
warnings.warn("Could not parse %s: %s" % (added, str(e)))
return False
return (added_float < TO_OLD_TO_BE_NOTABLE)
def process_module(module, options, env, template, outputname, module_map, aliases):
fname = module_map[module]
if isinstance(fname, dict):
return "SKIPPED"
basename = os.path.basename(fname)
deprecated = False
# ignore files with extensions
if not basename.endswith(".py"):
return
elif module.startswith("_"):
if os.path.islink(fname):
return # ignore, its an alias
deprecated = True
module = module.replace("_","",1)
print("rendering: %s" % module)
# use ansible core library to parse out doc metadata YAML and plaintext examples
doc, examples, returndocs = module_docs.get_docstring(fname, verbose=options.verbose)
# crash if module is missing documentation and not explicitly hidden from docs index
if doc is None:
sys.stderr.write("*** ERROR: MODULE MISSING DOCUMENTATION: %s, %s ***\n" % (fname, module))
sys.exit(1)
if deprecated and 'deprecated' not in doc:
sys.stderr.write("*** ERROR: DEPRECATED MODULE MISSING 'deprecated' DOCUMENTATION: %s, %s ***\n" % (fname, module))
sys.exit(1)
if "/core/" in fname:
doc['core'] = True
else:
doc['core'] = False
if module in aliases:
doc['aliases'] = aliases[module]
all_keys = []
if not 'version_added' in doc:
sys.stderr.write("*** ERROR: missing version_added in: %s ***\n" % module)
sys.exit(1)
added = 0
if doc['version_added'] == 'historical':
del doc['version_added']
else:
added = doc['version_added']
# don't show version added information if it's too old to be called out
if too_old(added):
del doc['version_added']
if 'options' in doc and doc['options']:
for (k,v) in iteritems(doc['options']):
# don't show version added information if it's too old to be called out
if 'version_added' in doc['options'][k] and too_old(doc['options'][k]['version_added']):
del doc['options'][k]['version_added']
if not 'description' in doc['options'][k]:
raise AnsibleError("Missing required description for option %s in %s " % (k, module))
required_value = doc['options'][k].get('required', False)
if not isinstance(required_value, bool):
raise AnsibleError("Invalid required value '%s' for option '%s' in '%s' (must be truthy)" % (required_value, k, module))
if not isinstance(doc['options'][k]['description'],list):
doc['options'][k]['description'] = [doc['options'][k]['description']]
all_keys.append(k)
all_keys = sorted(all_keys)
doc['option_keys'] = all_keys
doc['filename'] = fname
doc['docuri'] = doc['module'].replace('_', '-')
doc['now_date'] = datetime.date.today().strftime('%Y-%m-%d')
doc['ansible_version'] = options.ansible_version
doc['plainexamples'] = examples #plain text
if returndocs:
try:
doc['returndocs'] = yaml.safe_load(returndocs)
except:
print("could not load yaml: %s" % returndocs)
raise
else:
doc['returndocs'] = None
# here is where we build the table of contents...
try:
text = template.render(doc)
except Exception as e:
raise AnsibleError("Failed to render doc for %s: %s" % (fname, str(e)))
write_data(text, options, outputname, module)
return doc['short_description']
#####################################################################################
def print_modules(module, category_file, deprecated, core, options, env, template, outputname, module_map, aliases):
modstring = module
if modstring.startswith('_'):
modstring = module[1:]
modname = modstring
if module in deprecated:
modstring = modstring + DEPRECATED
elif module not in core:
modstring = modstring + NOTCORE
category_file.write(" %s - %s <%s_module>\n" % (to_bytes(modstring), to_bytes(rst_ify(module_map[module][1])), to_bytes(modname)))
def process_category(category, categories, options, env, template, outputname):
### FIXME:
# We no longer conceptually deal with a mapping of category names to
# modules to file paths. Instead we want several different records:
# (1) Mapping of module names to file paths (what's presently used
# as categories['all']
# (2) Mapping of category names to lists of module names (what you'd
# presently get from categories[category_name][subcategory_name].keys()
# (3) aliases (what's presently in categories['_aliases']
#
# list_modules() now returns those. Need to refactor this function and
# main to work with them.
module_map = categories[category]
module_info = categories['all']
aliases = {}
if '_aliases' in categories:
aliases = categories['_aliases']
category_file_path = os.path.join(options.output_dir, "list_of_%s_modules.rst" % category)
category_file = open(category_file_path, "w")
print("*** recording category %s in %s ***" % (category, category_file_path))
# start a new category file
category = category.replace("_"," ")
category = category.title()
modules = []
deprecated = []
core = []
for module in module_map.keys():
if isinstance(module_map[module], dict):
for mod in (m for m in module_map[module].keys() if m in module_info):
if mod.startswith("_"):
deprecated.append(mod)
elif '/core/' in module_info[mod][0]:
core.append(mod)
else:
if module not in module_info:
continue
if module.startswith("_"):
deprecated.append(module)
elif '/core/' in module_info[module][0]:
core.append(module)
modules.append(module)
modules.sort(key=lambda k: k[1:] if k.startswith('_') else k)
category_header = "%s Modules" % (category.title())
underscores = "`" * len(category_header)
category_file.write("""\
%s
%s
.. toctree:: :maxdepth: 1
""" % (category_header, underscores))
sections = []
for module in modules:
if module in module_map and isinstance(module_map[module], dict):
sections.append(module)
continue
else:
print_modules(module, category_file, deprecated, core, options, env, template, outputname, module_info, aliases)
sections.sort()
for section in sections:
category_file.write("\n%s\n%s\n\n" % (section.replace("_"," ").title(),'-' * len(section)))
category_file.write(".. toctree:: :maxdepth: 1\n\n")
section_modules = module_map[section].keys()
section_modules.sort(key=lambda k: k[1:] if k.startswith('_') else k)
#for module in module_map[section]:
for module in (m for m in section_modules if m in module_info):
print_modules(module, category_file, deprecated, core, options, env, template, outputname, module_info, aliases)
category_file.write("""\n\n
.. note::
- %s: This marks a module as deprecated, which means a module is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.
- %s: This marks a module as 'extras', which means it ships with ansible but may be a newer module and possibly (but not necessarily) less actively maintained than 'core' modules.
- Tickets filed on modules are filed to different repos than those on the main open source project. Core module tickets should be filed at `ansible/ansible-modules-core on GitHub <http://github.com/ansible/ansible-modules-core>`_, extras tickets to `ansible/ansible-modules-extras on GitHub <http://github.com/ansible/ansible-modules-extras>`_
""" % (DEPRECATED, NOTCORE))
category_file.close()
# TODO: end a new category file
#####################################################################################
def validate_options(options):
''' validate option parser options '''
if not options.module_dir:
print("--module-dir is required", file=sys.stderr)
sys.exit(1)
if not os.path.exists(options.module_dir):
print("--module-dir does not exist: %s" % options.module_dir, file=sys.stderr)
sys.exit(1)
if not options.template_dir:
print("--template-dir must be specified")
sys.exit(1)
#####################################################################################
def main():
p = generate_parser()
(options, args) = p.parse_args()
validate_options(options)
env, template, outputname = jinja2_environment(options.template_dir, options.type)
mod_info, categories, aliases = list_modules(options.module_dir)
categories['all'] = mod_info
categories['_aliases'] = aliases
category_names = [c for c in categories.keys() if not c.startswith('_')]
category_names.sort()
# Write master category list
category_list_path = os.path.join(options.output_dir, "modules_by_category.rst")
with open(category_list_path, "w") as category_list_file:
category_list_file.write("Module Index\n")
category_list_file.write("============\n")
category_list_file.write("\n\n")
category_list_file.write(".. toctree::\n")
category_list_file.write(" :maxdepth: 1\n\n")
for category in category_names:
category_list_file.write(" list_of_%s_modules\n" % category)
#
# Import all the docs into memory
#
module_map = mod_info.copy()
skipped_modules = set()
for modname in module_map:
result = process_module(modname, options, env, template, outputname, module_map, aliases)
if result == 'SKIPPED':
del categories['all'][modname]
else:
categories['all'][modname] = (categories['all'][modname], result)
#
# Render all the docs to rst via category pages
#
for category in category_names:
process_category(category, categories, options, env, template, outputname)
if __name__ == '__main__':
main()
| gpl-3.0 |
jayceyxc/hue | desktop/libs/hadoop/src/hadoop/mini_cluster.py | 10 | 18183 | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#######################################################
## WARNING!!! ##
## This file is stale. Hadoop 0.23 and CDH4 ##
## do not support minicluster. This is replaced ##
## by webhdfs.py, to set up a running cluster. ##
#######################################################
# A Python-side driver for MiniHadoopClusterManager
#
# See README.testing for hints on how to use this,
# and also look for other examples.
#
# If you have one of these running and want to figure out what ports
# are open, one way to do so is something like:
# for p in $(lsof -p 63564 | grep LISTEN | sed -e 's/.*:\([0-9][0-9]*\).*/\1/')
# do
# echo $p
# echo "GET /" | nc -w 1 localhost $p
# done
import atexit
import subprocess
import os
import pwd
import logging
import sys
import signal
import shutil
import socket
import time
import tempfile
import json
import lxml.etree
import urllib2
from desktop.lib import python_util
from desktop.lib.test_utils import clear_sys_caches, restore_sys_caches
from hadoop.fs.hadoopfs import HadoopFileSystem
from hadoop.job_tracker import LiveJobTracker
import hadoop.cluster
# Starts mini cluster suspended until a debugger attaches to it.
DEBUG_HADOOP=False
# Redirects mini cluster stderr to stderr. (Default is to put it in a file.)
USE_STDERR=os.environ.get("MINI_CLUSTER_USE_STDERR", False)
# Whether to clean up temp dir at exit
CLEANUP_TMP_DIR=os.environ.get("MINI_CLUSTER_CLEANUP", True)
# How long to wait for cluster to start up. (seconds)
MAX_CLUSTER_STARTUP_TIME = 120.0
# List of classes to be used as plugins for the JT of the cluster.
CLUSTER_JT_PLUGINS = 'org.apache.hadoop.thriftfs.ThriftJobTrackerPlugin'
# MR Task Scheduler. By default use the FIFO scheduler
CLUSTER_TASK_SCHEDULER='org.apache.hadoop.mapred.JobQueueTaskScheduler'
# MR queue names
CLUSTER_QUEUE_NAMES='default'
STARTUP_CONFIGS={}
# users and their groups which are used in Hue tests.
TEST_USER_GROUP_MAPPING = {
'test': ['test','users','supergroup'], 'chown_test': ['chown_test'],
'notsuperuser': ['notsuperuser'], 'gamma': ['gamma'],
'webui': ['webui'], 'hue': ['supergroup']
}
LOGGER=logging.getLogger(__name__)
class MiniHadoopCluster(object):
"""
Manages the invocation of a MiniHadoopClusterManager from Python.
"""
def __init__(self, num_datanodes=1, num_tasktrackers=1):
# These are cached
self._jt, self._fs = None, None
self.num_datanodes = num_datanodes
self.num_tasktrackers = num_tasktrackers
def start(self, extra_configs=None):
"""
Start a cluster as a subprocess.
"""
self.tmpdir = tempfile.mkdtemp()
if not extra_configs:
extra_configs = {}
def tmppath(filename):
"""Creates paths in tmpdir."""
return os.path.join(self.tmpdir, filename)
LOGGER.info("Using temporary directory: %s" % self.tmpdir)
in_conf_dir = tmppath("in-conf")
os.mkdir(in_conf_dir)
self.log_dir = tmppath("logs")
os.mkdir(self.log_dir)
f = file(os.path.join(in_conf_dir, "hadoop-metrics.properties"), "w")
try:
f.write("""
dfs.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
mapred.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
jvm.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
rpc.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
""")
finally:
f.close()
if self.superuser not in TEST_USER_GROUP_MAPPING:
TEST_USER_GROUP_MAPPING[self.superuser] = [self.superuser]
_write_static_group_mapping(TEST_USER_GROUP_MAPPING,
tmppath('ugm.properties'))
core_configs = {
'hadoop.proxyuser.%s.groups' % (self.superuser,): 'users,supergroup',
'hadoop.proxyuser.%s.hosts' % (self.superuser,): 'localhost',
'mapred.jobtracker.plugins': CLUSTER_JT_PLUGINS}
extra_configs.update(STARTUP_CONFIGS)
write_config(core_configs, tmppath('in-conf/core-site.xml'))
write_config({'mapred.jobtracker.taskScheduler': CLUSTER_TASK_SCHEDULER,
'mapred.queue.names': CLUSTER_QUEUE_NAMES},
tmppath('in-conf/mapred-site.xml'))
hadoop_policy_keys = ['client', 'client.datanode', 'datanode', 'inter.datanode', 'namenode', 'inter.tracker', 'job.submission', 'task.umbilical', 'refresh.policy', 'admin.operations']
hadoop_policy_config = {}
for policy in hadoop_policy_keys:
hadoop_policy_config['security.' + policy + '.protocol.acl'] = '*'
write_config(hadoop_policy_config, tmppath('in-conf/hadoop-policy.xml'))
details_file = file(tmppath("details.json"), "w+")
try:
args = [ os.path.join(hadoop.conf.HADOOP_MR1_HOME.get(), 'bin', 'hadoop'),
"jar",
hadoop.conf.HADOOP_TEST_JAR.get(),
"minicluster",
"-writeConfig", tmppath("config.xml"),
"-writeDetails", tmppath("details.json"),
"-datanodes", str(self.num_datanodes),
"-tasktrackers", str(self.num_tasktrackers),
"-useloopbackhosts",
"-D", "hadoop.tmp.dir=%s" % self.tmpdir,
"-D", "mapred.local.dir=%s/mapred/local" % self.tmpdir,
"-D", "mapred.system.dir=/mapred/system",
"-D", "mapred.temp.dir=/mapred/temp",
"-D", "jobclient.completion.poll.interval=100",
"-D", "jobclient.progress.monitor.poll.interval=100",
"-D", "fs.checkpoint.period=1",
# For a reason I don't fully understand, this must be 0.0.0.0 and not 'localhost'
"-D", "dfs.secondary.http.address=0.0.0.0:%d" % python_util.find_unused_port(),
# We bind the NN's thrift interface to a port we find here.
# This is suboptimal, since there's a race. Alas, if we don't
# do this here, the datanodes fail to discover the namenode's thrift
# address, and there's a race there
"-D", "dfs.thrift.address=localhost:%d" % python_util.find_unused_port(),
"-D", "jobtracker.thrift.address=localhost:%d" % python_util.find_unused_port(),
# Jobs realize they have finished faster with this timeout.
"-D", "jobclient.completion.poll.interval=50",
"-D", "hadoop.security.authorization=true",
"-D", "hadoop.policy.file=%s/hadoop-policy.xml" % in_conf_dir,
]
for key,value in extra_configs.iteritems():
args.append("-D")
args.append(key + "=" + value)
env = {}
env["HADOOP_CONF_DIR"] = in_conf_dir
env["HADOOP_OPTS"] = "-Dtest.build.data=%s" % (self.tmpdir, )
env["HADOOP_CLASSPATH"] = ':'.join([
# -- BEGIN JAVA TRIVIA --
# Add the -test- jar to the classpath to work around a subtle issue
# involving Java classloaders. In brief, hadoop's RunJar class creates
# a child classloader with the test jar on it, but the core classes
# are loaded by the system classloader. This is fine except that
# some classes in the test jar extend package-protected classes in the
# core jar. Even though the classes are in the same package name, they
# are thus loaded by different classloaders and therefore an IllegalAccessError
# prevents the MiniMRCluster from starting. Adding the test jar to the system
# classpath prevents this error since then both the MiniMRCluster and the
# core classes are loaded by the system classloader.
hadoop.conf.HADOOP_TEST_JAR.get(),
# -- END JAVA TRIVIA --
hadoop.conf.HADOOP_PLUGIN_CLASSPATH.get(),
# Due to CDH-4537, we need to add test dependencies to run minicluster
os.path.join(os.path.dirname(__file__), 'test_jars', '*'),
])
env["HADOOP_HEAPSIZE"] = "128"
env["HADOOP_HOME"] = hadoop.conf.HADOOP_MR1_HOME.get()
env["HADOOP_LOG_DIR"] = self.log_dir
env["USER"] = self.superuser
if "JAVA_HOME" in os.environ:
env["JAVA_HOME"] = os.environ["JAVA_HOME"]
# Wait for the debugger to attach
if DEBUG_HADOOP:
env["HADOOP_OPTS"] = env.get("HADOOP_OPTS", "") + " -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9999"
if USE_STDERR:
stderr=sys.stderr
else:
stderr=file(tmppath("stderr"), "w")
LOGGER.debug("Starting minicluster: %s env: %s" % (repr(args), repr(env)))
self.clusterproc = subprocess.Popen(
args=args,
stdout=file(tmppath("stdout"), "w"),
stderr=stderr,
env=env)
details = {}
start = time.time()
# We consider the cluster started when the details file parses correct JSON.
# MiniHadoopCluster currently writes the details file last, and this depends
# on that.
while not details:
try:
details_file.seek(0)
details = json.load(details_file)
except ValueError:
pass
if self.clusterproc.poll() is not None or (not DEBUG_HADOOP and (time.time() - start) > MAX_CLUSTER_STARTUP_TIME):
LOGGER.debug("stdout:" + file(tmppath("stdout")).read())
if not USE_STDERR:
LOGGER.debug("stderr:" + file(tmppath("stderr")).read())
self.stop()
raise Exception("Cluster process quit or is taking too long to start. Aborting.")
finally:
details_file.close()
LOGGER.debug("Successfully started minicluster")
# Place all the details as attributes on self.
for k, v in details.iteritems():
setattr(self, k, v)
# Parse the configuration using XPath and place into self.config.
config = lxml.etree.parse(tmppath("config.xml"))
self.config = dict( (property.find("./name").text, property.find("./value").text)
for property in config.xpath("/configuration/property"))
# Write out Hadoop-style configuration directory,
# which can, in turn, be used for /bin/hadoop.
self.config_dir = tmppath("conf")
os.mkdir(self.config_dir)
hadoop.conf.HADOOP_CONF_DIR.set_for_testing(self.config_dir)
write_config(self.config, tmppath("conf/core-site.xml"),
["fs.defaultFS", "jobclient.completion.poll.interval",
"dfs.namenode.checkpoint.period", "dfs.namenode.checkpoint.dir",
'hadoop.proxyuser.'+self.superuser+'.groups', 'hadoop.proxyuser.'+self.superuser+'.hosts'])
write_config(self.config, tmppath("conf/hdfs-site.xml"), ["fs.defaultFS", "dfs.namenode.http-address", "dfs.namenode.secondary.http-address"])
# mapred.job.tracker isn't written out into self.config, so we fill
# that one out more manually.
write_config({ 'mapred.job.tracker': 'localhost:%d' % self.jobtracker_port },
tmppath("conf/mapred-site.xml"))
write_config(hadoop_policy_config, tmppath('conf/hadoop-policy.xml'))
# Once the config is written out, we can start the 2NN.
args = [hadoop.conf.HADOOP_BIN.get(),
'--config', self.config_dir,
'secondarynamenode']
LOGGER.debug("Starting 2NN at: " +
self.config['dfs.secondary.http.address'])
LOGGER.debug("2NN command: %s env: %s" % (repr(args), repr(env)))
self.secondary_proc = subprocess.Popen(
args=args,
stdout=file(tmppath("stdout.2nn"), "w"),
stderr=file(tmppath("stderr.2nn"), "w"),
env=env)
while True:
try:
response = urllib2.urlopen(urllib2.Request('http://' +
self.config['dfs.secondary.http.address']))
except urllib2.URLError:
# If we should abort startup.
if self.secondary_proc.poll() is not None or (not DEBUG_HADOOP and (time.time() - start) > MAX_CLUSTER_STARTUP_TIME):
LOGGER.debug("stdout:" + file(tmppath("stdout")).read())
if not USE_STDERR:
LOGGER.debug("stderr:" + file(tmppath("stderr")).read())
self.stop()
raise Exception("2nn process quit or is taking too long to start. Aborting.")
break
else:
time.sleep(1)
continue
# We didn't get a URLError. 2NN started successfully.
response.close()
break
LOGGER.debug("Successfully started 2NN")
def stop(self):
"""
Kills the cluster ungracefully.
"""
if self.clusterproc and self.clusterproc.poll() is None:
os.kill(self.clusterproc.pid, signal.SIGKILL)
self.clusterproc.wait()
if self.secondary_proc and self.secondary_proc.poll() is None:
os.kill(self.secondary_proc.pid, signal.SIGKILL)
self.secondary_proc.wait()
if CLEANUP_TMP_DIR != 'false':
logging.info("Cleaning up self.tmpdir. Use $MINI_CLUSTER_CLEANUP to avoid.")
shutil.rmtree(self.tmpdir)
@property
def fs(self):
"""Creates a HadoopFileSystem object configured for this cluster."""
if self._fs is None:
self._fs = HadoopFileSystem("localhost",
thrift_port=self.namenode_thrift_port,
hdfs_port=self.namenode_port,
hadoop_bin_path=hadoop.conf.HADOOP_BIN.get())
return self._fs
@property
def jt(self):
"""Creates a LiveJobTracker object configured for this cluster."""
if self._jt is None:
self._jt = LiveJobTracker("localhost", self.jobtracker_thrift_port)
return self._jt
@property
def superuser(self):
"""
Returns the "superuser" of this cluster.
This is essentially the user that the cluster was started
with.
"""
return pwd.getpwuid(os.getuid()).pw_name
@property
def namenode_thrift_port(self):
"""
Return the namenode thrift port.
"""
_, port = self.config["dfs.thrift.address"].split(":")
return int(port)
@property
def jobtracker_thrift_port(self):
"""
Return the jobtracker thrift port.
"""
_, port = self.config["jobtracker.thrift.address"].split(":")
return int(port)
def dump_ini(self, fd=sys.stdout):
"""
Dumps an ini-style configuration suitable for configuring desktop
to talk to this cluster.
TODO(todd) eventually this should use config framework 'writeback'
support
@param fd: a file-like writable object
"""
print >>fd, "[hadoop]"
print >>fd, "[[hdfs_clusters]]"
print >>fd, "[[[default]]]"
print >>fd, "thrift_port=%d" % self.namenode_thrift_port
print >>fd, "[[mapred_clusters]]"
print >>fd, "[[[default]]]"
print >>fd, "thrift_port=%d" % self.jobtracker_thrift_port
# Shared global cluster returned by shared_cluster context manager.
_shared_cluster = None
def shared_cluster(conf=False):
"""
Use a shared cluster that is initialized on demand,
and that is torn down at process exit.
If conf is True, then configuration is updated to
reference the cluster, and relevant caches are cleared.
Returns a lambda which must be called when you are
done with the shared cluster.
"""
cluster = shared_cluster_internal()
closers = [ ]
if conf:
closers.extend([
hadoop.conf.HDFS_CLUSTERS["default"].NN_HOST.set_for_testing("localhost"),
hadoop.conf.HDFS_CLUSTERS["default"].NN_HDFS_PORT.set_for_testing(cluster.namenode_port),
hadoop.conf.MR_CLUSTERS["default"].HOST.set_for_testing("localhost"),
hadoop.conf.MR_CLUSTERS["default"].JT_THRIFT_PORT.set_for_testing(cluster.jt.thrift_port),
])
# Clear the caches
# This is djanky (that's django for "janky").
# Caches are tricky w.r.t. to to testing;
# perhaps there are better patterns?
old_caches = clear_sys_caches()
def finish():
if conf:
restore_sys_caches(old_caches)
for x in closers:
x()
# We don't run the cluster's real stop method,
# because a shared cluster should be shutdown at
# exit.
cluster.shutdown = finish
return cluster
def write_config(config, path, variables=None):
"""
Minimal utility to write Hadoop-style configuration
from a configuration map (config), into a new file
called path.
"""
f = file(path, "w")
try:
f.write("""<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
""")
keys = (variables and (variables,) or (config.keys(),))[0]
for name in keys:
value = config[name]
f.write(" <property>\n")
f.write(" <name>%s</name>\n" % name)
f.write(" <value>%s</value>\n" % value)
f.write(" </property>\n")
f.write("</configuration>\n")
finally:
f.close()
def _write_static_group_mapping(user_group_mapping, path):
"""
Create a Java-style .properties file to contain the static user -> group
mapping used by tests.
"""
f = file(path, 'w')
try:
for user, groups in user_group_mapping.iteritems():
f.write('%s = %s\n' % (user, ','.join(groups)))
finally:
f.close()
def shared_cluster_internal():
"""
Manages _shared_cluster.
"""
global _shared_cluster
if _shared_cluster is None:
_shared_cluster = MiniHadoopCluster()
_shared_cluster.start()
atexit.register(_shared_cluster.stop)
return _shared_cluster
if __name__ == '__main__':
"""
It's poor form to write tests for tests (the world-wide stack
overflow exception), so this merely tries the code.
"""
logging.basicConfig(level=logging.DEBUG)
import desktop
desktop.lib.conf.initialize([hadoop.conf])
if True:
cluster = MiniHadoopCluster(num_datanodes=5, num_tasktrackers=5)
cluster.start()
print cluster.namenode_port
print cluster.jobtracker_port
print cluster.config.get("dfs.thrift.address")
cluster.dump_ini(sys.stdout)
from IPython.Shell import IPShellEmbed
IPShellEmbed()()
cluster.stop()
| apache-2.0 |
Sarsate/compute-image-packages | google_compute_engine/clock_skew/tests/clock_skew_daemon_test.py | 1 | 4640 | #!/usr/bin/python
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Unittest for clock_skew_daemon.py module."""
import subprocess
from google_compute_engine.clock_skew import clock_skew_daemon
from google_compute_engine.test_compat import mock
from google_compute_engine.test_compat import unittest
class ClockSkewDaemonTest(unittest.TestCase):
@mock.patch('google_compute_engine.clock_skew.clock_skew_daemon.metadata_watcher')
@mock.patch('google_compute_engine.clock_skew.clock_skew_daemon.logger.Logger')
@mock.patch('google_compute_engine.clock_skew.clock_skew_daemon.file_utils.LockFile')
def testClockSkewDaemon(self, mock_lock, mock_logger, mock_watcher):
mocks = mock.Mock()
mocks.attach_mock(mock_lock, 'lock')
mocks.attach_mock(mock_logger, 'logger')
mocks.attach_mock(mock_watcher, 'watcher')
metadata_key = clock_skew_daemon.ClockSkewDaemon.drift_token
mock_logger.return_value = mock_logger
mock_watcher.MetadataWatcher.return_value = mock_watcher
with mock.patch.object(
clock_skew_daemon.ClockSkewDaemon, 'HandleClockSync') as mock_handle:
clock_skew_daemon.ClockSkewDaemon()
expected_calls = [
mock.call.logger(name=mock.ANY, debug=False, facility=mock.ANY),
mock.call.watcher.MetadataWatcher(logger=mock_logger),
mock.call.lock(clock_skew_daemon.LOCKFILE),
mock.call.lock().__enter__(),
mock.call.logger.info(mock.ANY),
mock.call.watcher.WatchMetadata(
mock_handle, metadata_key=metadata_key, recursive=False),
mock.call.lock().__exit__(None, None, None),
]
self.assertEqual(mocks.mock_calls, expected_calls)
@mock.patch('google_compute_engine.clock_skew.clock_skew_daemon.metadata_watcher')
@mock.patch('google_compute_engine.clock_skew.clock_skew_daemon.logger.Logger')
@mock.patch('google_compute_engine.clock_skew.clock_skew_daemon.file_utils.LockFile')
def testClockSkewDaemonError(self, mock_lock, mock_logger, mock_watcher):
mocks = mock.Mock()
mocks.attach_mock(mock_lock, 'lock')
mocks.attach_mock(mock_logger, 'logger')
mocks.attach_mock(mock_watcher, 'watcher')
mock_lock.side_effect = IOError('Test Error')
mock_logger.return_value = mock_logger
with mock.patch.object(
clock_skew_daemon.ClockSkewDaemon, 'HandleClockSync'):
clock_skew_daemon.ClockSkewDaemon(debug=True)
expected_calls = [
mock.call.logger(name=mock.ANY, debug=True, facility=mock.ANY),
mock.call.watcher.MetadataWatcher(logger=mock_logger),
mock.call.lock(clock_skew_daemon.LOCKFILE),
mock.call.logger.warning('Test Error'),
]
self.assertEqual(mocks.mock_calls, expected_calls)
@mock.patch('google_compute_engine.clock_skew.clock_skew_daemon.subprocess.check_call')
def testHandleClockSync(self, mock_call):
command = ['/sbin/hwclock', '--hctosys']
mock_sync = mock.create_autospec(clock_skew_daemon.ClockSkewDaemon)
mock_logger = mock.Mock()
mock_sync.logger = mock_logger
clock_skew_daemon.ClockSkewDaemon.HandleClockSync(mock_sync, 'Response')
mock_call.assert_called_once_with(command)
expected_calls = [
mock.call.info(mock.ANY, 'Response'),
mock.call.info(mock.ANY),
]
self.assertEqual(mock_logger.mock_calls, expected_calls)
@mock.patch('google_compute_engine.clock_skew.clock_skew_daemon.subprocess.check_call')
def testHandleClockSyncError(self, mock_call):
command = ['/sbin/hwclock', '--hctosys']
mock_sync = mock.create_autospec(clock_skew_daemon.ClockSkewDaemon)
mock_logger = mock.Mock()
mock_sync.logger = mock_logger
mock_call.side_effect = subprocess.CalledProcessError(1, 'Test')
clock_skew_daemon.ClockSkewDaemon.HandleClockSync(mock_sync, 'Response')
mock_call.assert_called_once_with(command)
expected_calls = [
mock.call.info(mock.ANY, 'Response'),
mock.call.warning(mock.ANY),
]
self.assertEqual(mock_logger.mock_calls, expected_calls)
if __name__ == '__main__':
unittest.main()
| apache-2.0 |
blindFS/powerline | tests/lib/vterm.py | 23 | 4580 | # vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)
import ctypes
from powerline.lib.unicode import unicode, unichr, tointiter
class CTypesFunction(object):
def __init__(self, library, name, rettype, args):
self.name = name
self.prototype = ctypes.CFUNCTYPE(rettype, *[
arg[1] for arg in args
])
self.args = args
self.func = self.prototype((name, library), tuple((
(1, arg[0]) for arg in args
)))
def __call__(self, *args, **kwargs):
return self.func(*args, **kwargs)
def __repr__(self):
return '{cls}(<library>, {name!r}, {rettype!r}, {args!r})'.format(
cls=self.__class__.__name__,
**self.__dict__
)
class CTypesLibraryFuncsCollection(object):
def __init__(self, lib, **kwargs):
self.lib = lib
library_loader = ctypes.LibraryLoader(ctypes.CDLL)
library = library_loader.LoadLibrary(lib)
self.library = library
for name, args in kwargs.items():
self.__dict__[name] = CTypesFunction(library, name, *args)
class VTermPos_s(ctypes.Structure):
_fields_ = (
('row', ctypes.c_int),
('col', ctypes.c_int),
)
class VTermColor_s(ctypes.Structure):
_fields_ = (
('red', ctypes.c_uint8),
('green', ctypes.c_uint8),
('blue', ctypes.c_uint8),
)
class VTermScreenCellAttrs_s(ctypes.Structure):
_fields_ = (
('bold', ctypes.c_uint, 1),
('underline', ctypes.c_uint, 2),
('italic', ctypes.c_uint, 1),
('blink', ctypes.c_uint, 1),
('reverse', ctypes.c_uint, 1),
('strike', ctypes.c_uint, 1),
('font', ctypes.c_uint, 4),
('dwl', ctypes.c_uint, 1),
('dhl', ctypes.c_uint, 2),
)
VTERM_MAX_CHARS_PER_CELL = 6
class VTermScreenCell_s(ctypes.Structure):
_fields_ = (
('chars', ctypes.ARRAY(ctypes.c_uint32, VTERM_MAX_CHARS_PER_CELL)),
('width', ctypes.c_char),
('attrs', VTermScreenCellAttrs_s),
('fg', VTermColor_s),
('bg', VTermColor_s),
)
VTerm_p = ctypes.c_void_p
VTermScreen_p = ctypes.c_void_p
def get_functions(lib):
return CTypesLibraryFuncsCollection(
lib,
vterm_new=(VTerm_p, (
('rows', ctypes.c_int),
('cols', ctypes.c_int)
)),
vterm_obtain_screen=(VTermScreen_p, (('vt', VTerm_p),)),
vterm_set_size=(None, (
('vt', VTerm_p),
('rows', ctypes.c_int),
('cols', ctypes.c_int)
)),
vterm_screen_reset=(None, (
('screen', VTermScreen_p),
('hard', ctypes.c_int)
)),
vterm_input_write=(ctypes.c_size_t, (
('vt', VTerm_p),
('bytes', ctypes.POINTER(ctypes.c_char)),
('size', ctypes.c_size_t),
)),
vterm_screen_get_cell=(ctypes.c_int, (
('screen', VTermScreen_p),
('pos', VTermPos_s),
('cell', ctypes.POINTER(VTermScreenCell_s))
)),
vterm_free=(None, (('vt', VTerm_p),)),
)
class VTermColor(object):
__slots__ = ('red', 'green', 'blue')
def __init__(self, color):
self.red = color.red
self.green = color.green
self.blue = color.blue
@property
def color_key(self):
return (self.red, self.green, self.blue)
class VTermScreenCell(object):
def __init__(self, vtsc):
for field in VTermScreenCellAttrs_s._fields_:
field_name = field[0]
setattr(self, field_name, getattr(vtsc.attrs, field_name))
self.text = ''.join((
unichr(vtsc.chars[i]) for i in range(VTERM_MAX_CHARS_PER_CELL)
)).rstrip('\x00')
self.width = next(tointiter(vtsc.width))
self.fg = VTermColor(vtsc.fg)
self.bg = VTermColor(vtsc.bg)
self.cell_properties_key = (
self.fg.color_key,
self.bg.color_key,
self.bold,
self.underline,
self.italic,
)
class VTermScreen(object):
def __init__(self, functions, screen):
self.functions = functions
self.screen = screen
def __getitem__(self, position):
pos = VTermPos_s(*position)
cell = VTermScreenCell_s()
ret = self.functions.vterm_screen_get_cell(self.screen, pos, cell)
if ret != 1:
raise ValueError('vterm_screen_get_cell returned {0}'.format(ret))
return VTermScreenCell(cell)
def reset(self, hard):
self.functions.vterm_screen_reset(self.screen, int(bool(hard)))
class VTerm(object):
def __init__(self, lib, rows, cols):
self.functions = get_functions(lib)
self.vt = self.functions.vterm_new(rows, cols)
self.vtscreen = VTermScreen(self.functions, self.functions.vterm_obtain_screen(self.vt))
self.vtscreen.reset(True)
def push(self, data):
if isinstance(data, unicode):
data = data.encode('utf-8')
return self.functions.vterm_input_write(self.vt, data, len(data))
def resize(self, rows, cols):
self.functions.vterm_set_size(self.vt, rows, cols)
def __del__(self):
try:
self.functions.vterm_free(self.vt)
except AttributeError:
pass
| mit |
pbrady/sympy | sympy/galgebra/stringarrays.py | 50 | 3306 | # sympy/galgebra/stringarrays.py
"""
stringarrays.py are a group of helper functions to convert string
input to vector and multivector class function to arrays of SymPy
symbols.
"""
import operator
from sympy.core.compatibility import reduce
from itertools import combinations
from sympy import S, Symbol, Function
from sympy.core.compatibility import range
def str_array(base, n=None):
"""
Generate one dimensional (list of strings) or two dimensional (list
of list of strings) string array.
For one dimensional arrays: -
base is string of variable names separated by blanks such as
base = 'a b c' which produces the string list ['a','b','c'] or
it is a string with no blanks than in conjunction with the
integer n generates -
str_array('v',n=-3) = ['v_1','v_2','v_3']
str_array('v',n=3) = ['v__1','v__2','v__3'].
In the case of LaTeX printing the '_' would give a subscript and
the '__' a super script.
For two dimensional arrays: -
base is string where elements are separated by spaces and rows by
commas so that -
str_array('a b,c d') = [['a','b'],['c','d']]
"""
if n is None:
if ',' in base:
base_array = []
base_split = base.split(',')
for base_arg in base_split:
base_array.append(list(filter(lambda x: x != '', base_arg.split(' '))))
return base_array
else:
return base.split(' ')
result = []
if isinstance(n, str):
if n[0] == '-':
for index in n[1:].split(' '):
result.append(base + '_' + index)
if n[0] == '+':
for index in n[1:].split(' '):
result.append(base + '__' + index)
if n > 0:
for i in range(1, n + 1):
result.append(base + '__' + str(i))
if n < 0:
for i in range(1, -n + 1):
result.append(base + '_' + str(i))
return result
def symbol_array(base, n=None):
"""
Generates a string arrary with str_array and replaces each string in
array with Symbol of same name.
"""
symbol_str_lst = str_array(base, n)
result = []
for symbol_str in symbol_str_lst:
result.append(S(symbol_str))
return tuple(result)
def fct_sym_array(str_lst, coords=None):
"""
Construct list of symbols or functions with names in 'str_lst'. If
'coords' are given (tuple of symbols) function list constructed,
otherwise a symbol list is constructed.
"""
if coords is None:
fs_lst = []
for sym_str in str_lst:
fs_lst.append(Symbol(sym_str))
else:
fs_lst = []
for fct_str in str_lst:
fs_lst.append(Function(fct_str)(*coords))
return fs_lst
def str_combinations(base, lst, rank=1, mode='_'):
"""
Construct a list of strings of the form 'base+mode+indexes' where the
indexes are formed by converting 'lst' to a list of strings and then
forming the 'indexes' by concatenating combinations of elements from
'lst' taken 'rank' at a time.
"""
a1 = combinations([str(x) for x in lst], rank)
a2 = [reduce(operator.add, x) for x in a1]
str_lst = [base + mode + x for x in a2]
return str_lst
| bsd-3-clause |
hlieberman/ansible-modules-core | cloud/openstack/os_server_volume.py | 77 | 4651 | #!/usr/bin/python
#coding: utf-8 -*-
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this software. If not, see <http://www.gnu.org/licenses/>.
try:
import shade
from shade import meta
HAS_SHADE = True
except ImportError:
HAS_SHADE = False
DOCUMENTATION = '''
---
module: os_server_volume
short_description: Attach/Detach Volumes from OpenStack VM's
extends_documentation_fragment: openstack
version_added: "2.0"
author: "Monty Taylor (@emonty)"
description:
- Attach or Detach volumes from OpenStack VM's
options:
state:
description:
- Should the resource be present or absent.
choices: [present, absent]
default: present
required: false
server:
description:
- Name or ID of server you want to attach a volume to
required: true
volume:
description:
- Name or id of volume you want to attach to a server
required: true
device:
description:
- Device you want to attach. Defaults to auto finding a device name.
required: false
default: None
requirements:
- "python >= 2.6"
- "shade"
'''
EXAMPLES = '''
# Attaches a volume to a compute host
- name: attach a volume
hosts: localhost
tasks:
- name: attach volume to host
os_server_volume:
state: present
cloud: mordred
server: Mysql-server
volume: mysql-data
device: /dev/vdb
'''
def _system_state_change(state, device):
"""Check if system state would change."""
if state == 'present':
if device:
return False
return True
if state == 'absent':
if device:
return True
return False
return False
def main():
argument_spec = openstack_full_argument_spec(
server=dict(required=True),
volume=dict(required=True),
device=dict(default=None), # None == auto choose device name
state=dict(default='present', choices=['absent', 'present']),
)
module_kwargs = openstack_module_kwargs()
module = AnsibleModule(argument_spec,
supports_check_mode=True,
**module_kwargs)
if not HAS_SHADE:
module.fail_json(msg='shade is required for this module')
state = module.params['state']
wait = module.params['wait']
timeout = module.params['timeout']
try:
cloud = shade.openstack_cloud(**module.params)
server = cloud.get_server(module.params['server'])
volume = cloud.get_volume(module.params['volume'])
dev = cloud.get_volume_attach_device(volume, server.id)
if module.check_mode:
module.exit_json(changed=_system_state_change(state, dev))
if state == 'present':
if dev:
# Volume is already attached to this server
module.exit_json(changed=False)
cloud.attach_volume(server, volume, module.params['device'],
wait=wait, timeout=timeout)
server = cloud.get_server(module.params['server']) # refresh
volume = cloud.get_volume(module.params['volume']) # refresh
hostvars = meta.get_hostvars_from_server(cloud, server)
module.exit_json(
changed=True,
id=volume['id'],
attachments=volume['attachments'],
openstack=hostvars
)
elif state == 'absent':
if not dev:
# Volume is not attached to this server
module.exit_json(changed=False)
cloud.detach_volume(server, volume, wait=wait, timeout=timeout)
module.exit_json(
changed=True,
result='Detached volume from server'
)
except (shade.OpenStackCloudException, shade.OpenStackCloudTimeout) as e:
module.fail_json(msg=str(e))
# this is magic, see lib/ansible/module_utils/common.py
from ansible.module_utils.basic import *
from ansible.module_utils.openstack import *
if __name__ == '__main__':
main()
| gpl-3.0 |
dan1/horizon-proto | horizon/tabs/base.py | 36 | 17272 | # Copyright 2012 Nebula, Inc.
#
# 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 sys
import six
from django.template.loader import render_to_string
from django.template import TemplateSyntaxError # noqa
from django.utils.datastructures import SortedDict
from horizon import exceptions
from horizon.utils import html
SEPARATOR = "__"
CSS_TAB_GROUP_CLASSES = ["nav", "nav-tabs", "ajax-tabs"]
CSS_ACTIVE_TAB_CLASSES = ["active"]
CSS_DISABLED_TAB_CLASSES = ["disabled"]
class TabGroup(html.HTMLElement):
"""A container class which knows how to manage and render
:class:`~horizon.tabs.Tab` objects.
.. attribute:: slug
The URL slug and pseudo-unique identifier for this tab group.
.. attribute:: template_name
The name of the template which will be used to render this tab group.
Default: ``"horizon/common/_tab_group.html"``
.. attribute:: sticky
Boolean to control whether the active tab state should be stored
across requests for a given user. (State storage is all done
client-side.)
.. attribute:: show_single_tab
Boolean to control whether the tab bar is shown when the tab group
has only one tab. Default: ``False``
.. attribute:: param_name
The name of the GET request parameter which will be used when
requesting specific tab data. Default: ``tab``.
.. attribute:: classes
A list of CSS classes which should be displayed on this tab group.
.. attribute:: attrs
A dictionary of HTML attributes which should be rendered into the
markup for this tab group.
.. attribute:: selected
Read-only property which is set to the instance of the
currently-selected tab if there is one, otherwise ``None``.
.. attribute:: active
Read-only property which is set to the value of the current active tab.
This may not be the same as the value of ``selected`` if no
specific tab was requested via the ``GET`` parameter.
"""
slug = None
template_name = "horizon/common/_tab_group.html"
param_name = 'tab'
sticky = False
show_single_tab = False
_selected = None
_active = None
@property
def selected(self):
return self._selected
@property
def active(self):
return self._active
def __init__(self, request, **kwargs):
super(TabGroup, self).__init__()
if not hasattr(self, "tabs"):
raise NotImplementedError('%s must declare a "tabs" attribute.'
% self.__class__)
if not self.slug:
raise NotImplementedError('%s must declare a "slug" attribute.'
% self.__class__)
self.request = request
self.kwargs = kwargs
self._data = None
tab_instances = []
for tab in self.tabs:
tab_instances.append((tab.slug, tab(self, request)))
self._tabs = SortedDict(tab_instances)
if self.sticky:
self.attrs['data-sticky-tabs'] = 'sticky'
if not self._set_active_tab():
self.tabs_not_available()
def __repr__(self):
return "<%s: %s>" % (self.__class__.__name__, self.slug)
def load_tab_data(self):
"""Preload all data that for the tabs that will be displayed."""
for tab in self._tabs.values():
if tab.load and not tab.data_loaded:
try:
tab._data = tab.get_context_data(self.request)
except Exception:
tab._data = False
exceptions.handle(self.request)
def get_id(self):
"""Returns the id for this tab group. Defaults to the value of the tab
group's :attr:`horizon.tabs.Tab.slug`.
"""
return self.slug
def get_default_classes(self):
"""Returns a list of the default classes for the tab group. Defaults to
``["nav", "nav-tabs", "ajax-tabs"]``.
"""
default_classes = super(TabGroup, self).get_default_classes()
default_classes.extend(CSS_TAB_GROUP_CLASSES)
return default_classes
def tabs_not_available(self):
"""In the event that no tabs are either allowed or enabled, this method
is the fallback handler. By default it's a no-op, but it exists
to make redirecting or raising exceptions possible for subclasses.
"""
pass
def _set_active_tab(self):
marked_active = None
# See if we have a selected tab via the GET parameter.
tab = self.get_selected_tab()
if tab:
tab._active = True
self._active = tab
marked_active = tab
# Iterate through to mark them all accordingly.
for tab in self._tabs.values():
if tab._allowed and tab._enabled and not marked_active:
tab._active = True
self._active = tab
marked_active = True
elif tab == marked_active:
continue
else:
tab._active = False
return marked_active
def render(self):
"""Renders the HTML output for this tab group."""
return render_to_string(self.template_name, {"tab_group": self})
def get_tabs(self):
"""Returns a list of the allowed tabs for this tab group."""
return filter(lambda tab: tab._allowed, self._tabs.values())
def get_tab(self, tab_name, allow_disabled=False):
"""Returns a specific tab from this tab group.
If the tab is not allowed or not enabled this method returns ``None``.
If the tab is disabled but you wish to return it anyway, you can pass
``True`` to the allow_disabled argument.
"""
tab = self._tabs.get(tab_name, None)
if tab and tab._allowed and (tab._enabled or allow_disabled):
return tab
return None
def get_loaded_tabs(self):
return filter(lambda t: self.get_tab(t.slug), self._tabs.values())
def get_selected_tab(self):
"""Returns the tab specific by the GET request parameter.
In the event that there is no GET request parameter, the value
of the query parameter is invalid, or the tab is not allowed/enabled,
the return value of this function is None.
"""
selected = self.request.GET.get(self.param_name, None)
if selected:
try:
tab_group, tab_name = selected.split(SEPARATOR)
except ValueError:
return None
if tab_group == self.get_id():
self._selected = self.get_tab(tab_name)
return self._selected
class Tab(html.HTMLElement):
"""A reusable interface for constructing a tab within a
:class:`~horizon.tabs.TabGroup`.
.. attribute:: name
The display name for the tab which will be rendered as the text for
the tab element in the HTML. Required.
.. attribute:: slug
The URL slug and id attribute for the tab. This should be unique for
a given tab group. Required.
.. attribute:: preload
Determines whether the contents of the tab should be rendered into
the page's HTML when the tab group is rendered, or whether it should
be loaded dynamically when the tab is selected. Default: ``True``.
.. attribute:: classes
A list of CSS classes which should be displayed on this tab.
.. attribute:: attrs
A dictionary of HTML attributes which should be rendered into the
markup for this tab.
.. attribute:: load
Read-only access to determine whether or not this tab's data should
be loaded immediately.
.. attribute:: permissions
A list of permission names which this tab requires in order to be
displayed. Defaults to an empty list (``[]``).
"""
name = None
slug = None
preload = True
_active = None
permissions = []
def __init__(self, tab_group, request=None):
super(Tab, self).__init__()
# Priority: constructor, class-defined, fallback
if not self.name:
raise ValueError("%s must have a name." % self.__class__.__name__)
self.name = unicode(self.name) # Force unicode.
if not self.slug:
raise ValueError("%s must have a slug." % self.__class__.__name__)
self.tab_group = tab_group
self.request = request
if request:
self._allowed = self.allowed(request) and (
self._has_permissions(request))
self._enabled = self.enabled(request)
def __repr__(self):
return "<%s: %s>" % (self.__class__.__name__, self.slug)
def _has_permissions(self, request):
return request.user.has_perms(self.permissions)
def is_active(self):
"""Method to access whether or not this tab is the active tab."""
if self._active is None:
self.tab_group._set_active_tab()
return self._active
@property
def load(self):
load_preloaded = self.preload or self.is_active()
return load_preloaded and self._allowed and self._enabled
@property
def data(self):
if getattr(self, "_data", None) is None:
self._data = self.get_context_data(self.request)
return self._data
@property
def data_loaded(self):
return getattr(self, "_data", None) is not None
def render(self):
"""Renders the tab to HTML using the
:meth:`~horizon.tabs.Tab.get_context_data` method and
the :meth:`~horizon.tabs.Tab.get_template_name` method.
If :attr:`~horizon.tabs.Tab.preload` is ``False`` and ``force_load``
is not ``True``, or
either :meth:`~horizon.tabs.Tab.allowed` or
:meth:`~horizon.tabs.Tab.enabled` returns ``False`` this method will
return an empty string.
"""
if not self.load:
return ''
try:
context = self.data
except exceptions.Http302:
raise
except Exception:
exc_type, exc_value, exc_traceback = sys.exc_info()
raise six.reraise(TemplateSyntaxError, exc_value, exc_traceback)
return render_to_string(self.get_template_name(self.request), context)
def get_id(self):
"""Returns the id for this tab. Defaults to
``"{{ tab_group.slug }}__{{ tab.slug }}"``.
"""
return SEPARATOR.join([self.tab_group.slug, self.slug])
def get_query_string(self):
return "=".join((self.tab_group.param_name, self.get_id()))
def get_default_classes(self):
"""Returns a list of the default classes for the tab. Defaults to
and empty list (``[]``), however additional classes may be added
depending on the state of the tab as follows:
If the tab is the active tab for the tab group, in which
the class ``"active"`` will be added.
If the tab is not enabled, the classes the class ``"disabled"``
will be added.
"""
default_classes = super(Tab, self).get_default_classes()
if self.is_active():
default_classes.extend(CSS_ACTIVE_TAB_CLASSES)
if not self._enabled:
default_classes.extend(CSS_DISABLED_TAB_CLASSES)
return default_classes
def get_template_name(self, request):
"""Returns the name of the template to be used for rendering this tab.
By default it returns the value of the ``template_name`` attribute
on the ``Tab`` class.
"""
if not hasattr(self, "template_name"):
raise AttributeError("%s must have a template_name attribute or "
"override the get_template_name method."
% self.__class__.__name__)
return self.template_name
def get_context_data(self, request, **kwargs):
"""This method should return a dictionary of context data used to
render the tab. Required.
"""
return kwargs
def enabled(self, request):
"""Determines whether or not the tab should be accessible
(e.g. be rendered into the HTML on load and respond to a click event).
If a tab returns ``False`` from ``enabled`` it will ignore the value
of ``preload`` and only render the HTML of the tab after being clicked.
The default behavior is to return ``True`` for all cases.
"""
return True
def allowed(self, request):
"""Determines whether or not the tab is displayed.
Tab instances can override this method to specify conditions under
which this tab should not be shown at all by returning ``False``.
The default behavior is to return ``True`` for all cases.
"""
return True
def post(self, request, *args, **kwargs):
"""Handles POST data sent to a tab.
Tab instances can override this method to have tab-specific POST logic
without polluting the TabView code.
The default behavior is to ignore POST data.
"""
pass
class TableTab(Tab):
"""A :class:`~horizon.tabs.Tab` class which knows how to deal with
:class:`~horizon.tables.DataTable` classes rendered inside of it.
This distinct class is required due to the complexity involved in handling
both dynamic tab loading, dynamic table updating and table actions all
within one view.
.. attribute:: table_classes
An iterable containing the :class:`~horizon.tables.DataTable` classes
which this tab will contain. Equivalent to the
:attr:`~horizon.tables.MultiTableView.table_classes` attribute on
:class:`~horizon.tables.MultiTableView`. For each table class you
need to define a corresponding ``get_{{ table_name }}_data`` method
as with :class:`~horizon.tables.MultiTableView`.
"""
table_classes = None
def __init__(self, tab_group, request):
super(TableTab, self).__init__(tab_group, request)
if not self.table_classes:
class_name = self.__class__.__name__
raise NotImplementedError("You must define a table_class "
"attribute on %s" % class_name)
# Instantiate our table classes but don't assign data yet
table_instances = [(table._meta.name,
table(request, **tab_group.kwargs))
for table in self.table_classes]
self._tables = SortedDict(table_instances)
self._table_data_loaded = False
def load_table_data(self):
"""Calls the ``get_{{ table_name }}_data`` methods for each table class
and sets the data on the tables.
"""
# We only want the data to be loaded once, so we track if we have...
if not self._table_data_loaded:
for table_name, table in self._tables.items():
# Fetch the data function.
func_name = "get_%s_data" % table_name
data_func = getattr(self, func_name, None)
if data_func is None:
cls_name = self.__class__.__name__
raise NotImplementedError("You must define a %s method "
"on %s." % (func_name, cls_name))
# Load the data.
table.data = data_func()
table._meta.has_prev_data = self.has_prev_data(table)
table._meta.has_more_data = self.has_more_data(table)
# Mark our data as loaded so we don't run the loaders again.
self._table_data_loaded = True
def get_context_data(self, request, **kwargs):
"""Adds a ``{{ table_name }}_table`` item to the context for each table
in the :attr:`~horizon.tabs.TableTab.table_classes` attribute.
If only one table class is provided, a shortcut ``table`` context
variable is also added containing the single table.
"""
context = super(TableTab, self).get_context_data(request, **kwargs)
# If the data hasn't been manually loaded before now,
# make certain it's loaded before setting the context.
self.load_table_data()
for table_name, table in self._tables.items():
# If there's only one table class, add a shortcut name as well.
if len(self.table_classes) == 1:
context["table"] = table
context["%s_table" % table_name] = table
return context
def has_prev_data(self, table):
return False
def has_more_data(self, table):
return False
| apache-2.0 |
Azulinho/ansible | lib/ansible/modules/clustering/znode.py | 46 | 7699 | #!/usr/bin/python
# Copyright 2015 WP Engine, Inc. All rights reserved.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = """
---
module: znode
version_added: "2.0"
short_description: Create, delete, retrieve, and update znodes using ZooKeeper
description:
- Create, delete, retrieve, and update znodes using ZooKeeper.
options:
hosts:
description:
- A list of ZooKeeper servers (format '[server]:[port]').
required: true
name:
description:
- The path of the znode.
required: true
value:
description:
- The value assigned to the znode.
default: None
required: false
op:
description:
- An operation to perform. Mutually exclusive with state.
default: None
required: false
state:
description:
- The state to enforce. Mutually exclusive with op.
default: None
required: false
timeout:
description:
- The amount of time to wait for a node to appear.
default: 300
required: false
recursive:
description:
- Recursively delete node and all its children.
default: False
required: false
version_added: "2.1"
requirements:
- kazoo >= 2.1
- python >= 2.6
author: "Trey Perry (@treyperry)"
"""
EXAMPLES = """
# Creating or updating a znode with a given value
- znode:
hosts: 'localhost:2181'
name: /mypath
value: myvalue
state: present
# Getting the value and stat structure for a znode
- znode:
hosts: 'localhost:2181'
name: /mypath
op: get
# Listing a particular znode's children
- znode:
hosts: 'localhost:2181'
name: /zookeeper
op: list
# Waiting 20 seconds for a znode to appear at path /mypath
- znode:
hosts: 'localhost:2181'
name: /mypath
op: wait
timeout: 20
# Deleting a znode at path /mypath
- znode:
hosts: 'localhost:2181'
name: /mypath
state: absent
# Creating or updating a znode with a given value on a remote Zookeeper
- znode:
hosts: 'my-zookeeper-node:2181'
name: /mypath
value: myvalue
state: present
delegate_to: 127.0.0.1
"""
import time
try:
from kazoo.client import KazooClient
from kazoo.handlers.threading import KazooTimeoutError
KAZOO_INSTALLED = True
except ImportError:
KAZOO_INSTALLED = False
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict(
hosts=dict(required=True, type='str'),
name=dict(required=True, type='str'),
value=dict(required=False, default=None, type='str'),
op=dict(required=False, default=None, choices=['get', 'wait', 'list']),
state=dict(choices=['present', 'absent']),
timeout=dict(required=False, default=300, type='int'),
recursive=dict(required=False, default=False, type='bool')
),
supports_check_mode=False
)
if not KAZOO_INSTALLED:
module.fail_json(msg='kazoo >= 2.1 is required to use this module. Use pip to install it.')
check = check_params(module.params)
if not check['success']:
module.fail_json(msg=check['msg'])
zoo = KazooCommandProxy(module)
try:
zoo.start()
except KazooTimeoutError:
module.fail_json(msg='The connection to the ZooKeeper ensemble timed out.')
command_dict = {
'op': {
'get': zoo.get,
'list': zoo.list,
'wait': zoo.wait
},
'state': {
'present': zoo.present,
'absent': zoo.absent
}
}
command_type = 'op' if 'op' in module.params and module.params['op'] is not None else 'state'
method = module.params[command_type]
result, result_dict = command_dict[command_type][method]()
zoo.shutdown()
if result:
module.exit_json(**result_dict)
else:
module.fail_json(**result_dict)
def check_params(params):
if not params['state'] and not params['op']:
return {'success': False, 'msg': 'Please define an operation (op) or a state.'}
if params['state'] and params['op']:
return {'success': False, 'msg': 'Please choose an operation (op) or a state, but not both.'}
return {'success': True}
class KazooCommandProxy():
def __init__(self, module):
self.module = module
self.zk = KazooClient(module.params['hosts'])
def absent(self):
return self._absent(self.module.params['name'])
def exists(self, znode):
return self.zk.exists(znode)
def list(self):
children = self.zk.get_children(self.module.params['name'])
return True, {'count': len(children), 'items': children, 'msg': 'Retrieved znodes in path.',
'znode': self.module.params['name']}
def present(self):
return self._present(self.module.params['name'], self.module.params['value'])
def get(self):
return self._get(self.module.params['name'])
def shutdown(self):
self.zk.stop()
self.zk.close()
def start(self):
self.zk.start()
def wait(self):
return self._wait(self.module.params['name'], self.module.params['timeout'])
def _absent(self, znode):
if self.exists(znode):
self.zk.delete(znode, recursive=self.module.params['recursive'])
return True, {'changed': True, 'msg': 'The znode was deleted.'}
else:
return True, {'changed': False, 'msg': 'The znode does not exist.'}
def _get(self, path):
if self.exists(path):
value, zstat = self.zk.get(path)
stat_dict = {}
for i in dir(zstat):
if not i.startswith('_'):
attr = getattr(zstat, i)
if isinstance(attr, (int, str)):
stat_dict[i] = attr
result = True, {'msg': 'The node was retrieved.', 'znode': path, 'value': value,
'stat': stat_dict}
else:
result = False, {'msg': 'The requested node does not exist.'}
return result
def _present(self, path, value):
if self.exists(path):
(current_value, zstat) = self.zk.get(path)
if value != current_value:
self.zk.set(path, value)
return True, {'changed': True, 'msg': 'Updated the znode value.', 'znode': path,
'value': value}
else:
return True, {'changed': False, 'msg': 'No changes were necessary.', 'znode': path, 'value': value}
else:
self.zk.create(path, value, makepath=True)
return True, {'changed': True, 'msg': 'Created a new znode.', 'znode': path, 'value': value}
def _wait(self, path, timeout, interval=5):
lim = time.time() + timeout
while time.time() < lim:
if self.exists(path):
return True, {'msg': 'The node appeared before the configured timeout.',
'znode': path, 'timeout': timeout}
else:
time.sleep(interval)
return False, {'msg': 'The node did not appear before the operation timed out.', 'timeout': timeout,
'znode': path}
if __name__ == '__main__':
main()
| gpl-3.0 |
teamfx/openjfx-10-dev-rt | modules/javafx.web/src/main/native/Tools/Scripts/webkitpy/tool/bot/irc_command.py | 2 | 12985 | # Copyright (c) 2010 Google Inc. 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 Google Inc. 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
# OWNER 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 itertools
import random
import re
from webkitpy.common.config import irc as config_irc
from webkitpy.common.config import urls
from webkitpy.common.config.committers import CommitterList
from webkitpy.common.net.web import Web
from webkitpy.common.system.executive import ScriptError
from webkitpy.tool.bot.queueengine import TerminateQueue
from webkitpy.tool.grammar import join_with_separators
from webkitpy.tool.grammar import pluralize
def _post_error_and_check_for_bug_url(tool, nicks_string, exception):
tool.irc().post("%s" % exception)
bug_id = urls.parse_bug_id(exception.output)
if bug_id:
bug_url = tool.bugs.bug_url_for_bug_id(bug_id)
tool.irc().post("%s: Ugg... Might have created %s" % (nicks_string, bug_url))
# FIXME: Merge with Command?
class IRCCommand(object):
usage_string = None
help_string = None
def execute(self, nick, args, tool, sheriff):
raise NotImplementedError("subclasses must implement")
@classmethod
def usage(cls, nick):
return "%s: Usage: %s" % (nick, cls.usage_string)
@classmethod
def help(cls, nick):
return "%s: %s" % (nick, cls.help_string)
class CreateBug(IRCCommand):
usage_string = "create-bug BUG_TITLE"
help_string = "Creates a Bugzilla bug with the given title."
def execute(self, nick, args, tool, sheriff):
if not args:
return self.usage(nick)
bug_title = " ".join(args)
bug_description = "%s\nRequested by %s on %s." % (bug_title, nick, config_irc.channel)
# There happens to be a committers list hung off of Bugzilla, so
# re-using that one makes things easiest for now.
requester = tool.bugs.committers.contributor_by_irc_nickname(nick)
requester_email = requester.bugzilla_email() if requester else None
try:
bug_id = tool.bugs.create_bug(bug_title, bug_description, cc=requester_email, assignee=requester_email)
bug_url = tool.bugs.bug_url_for_bug_id(bug_id)
return "%s: Created bug: %s" % (nick, bug_url)
except Exception, e:
return "%s: Failed to create bug:\n%s" % (nick, e)
class Help(IRCCommand):
usage_string = "help [COMMAND]"
help_string = "Provides help on my individual commands."
def execute(self, nick, args, tool, sheriff):
if args:
for command_name in args:
if command_name in commands:
self._post_command_help(nick, tool, commands[command_name])
else:
tool.irc().post("%s: Available commands: %s" % (nick, ", ".join(sorted(visible_commands.keys()))))
tool.irc().post('%s: Type "%s: help COMMAND" for help on my individual commands.' % (nick, sheriff.name()))
def _post_command_help(self, nick, tool, command):
tool.irc().post(command.usage(nick))
tool.irc().post(command.help(nick))
aliases = " ".join(sorted(filter(lambda alias: commands[alias] == command and alias not in visible_commands, commands)))
if aliases:
tool.irc().post("%s: Aliases: %s" % (nick, aliases))
class Hi(IRCCommand):
usage_string = "hi"
help_string = "Responds with hi."
def execute(self, nick, args, tool, sheriff):
if len(args) and re.match(sheriff.name() + r'_*\s*!\s*', ' '.join(args)):
return "%s: hi %s!" % (nick, nick)
if sheriff.name() == 'WKR': # For some unknown reason, WKR can't use tool.bugs.quips().
return "You're doing it wrong"
quips = tool.bugs.quips()
quips.append('"Only you can prevent forest fires." -- Smokey the Bear')
return random.choice(quips)
class PingPong(IRCCommand):
usage_string = "ping"
help_string = "Responds with pong."
def execute(self, nick, args, tool, sheriff):
return nick + ": pong"
class YouThere(IRCCommand):
usage_string = "yt?"
help_string = "Responds with yes."
def execute(self, nick, args, tool, sheriff):
return "%s: yes" % nick
class Restart(IRCCommand):
usage_string = "restart"
help_string = "Restarts sherrifbot. Will update its WebKit checkout, and re-join the channel momentarily."
def execute(self, nick, args, tool, sheriff):
tool.irc().post("Restarting...")
raise TerminateQueue()
class Rollout(IRCCommand):
usage_string = "rollout SVN_REVISION [SVN_REVISIONS] REASON"
help_string = "Opens a rollout bug, CCing author + reviewer, and attaching the reverse-diff of the given revisions marked as commit-queue=?."
def _extract_revisions(self, arg):
revision_list = []
possible_revisions = arg.split(",")
for revision in possible_revisions:
revision = revision.strip()
if not revision:
continue
revision = revision.lstrip("r")
# If one part of the arg isn't in the correct format,
# then none of the arg should be considered a revision.
if not revision.isdigit():
return None
revision_list.append(int(revision))
return revision_list
def _parse_args(self, args):
if not args:
return (None, None)
svn_revision_list = []
remaining_args = args[:]
# First process all revisions.
while remaining_args:
new_revisions = self._extract_revisions(remaining_args[0])
if not new_revisions:
break
svn_revision_list += new_revisions
remaining_args = remaining_args[1:]
# Was there a revision number?
if not len(svn_revision_list):
return (None, None)
# Everything left is the reason.
rollout_reason = " ".join(remaining_args)
return svn_revision_list, rollout_reason
def _responsible_nicknames_from_revisions(self, tool, sheriff, svn_revision_list):
commit_infos = map(tool.checkout().commit_info_for_revision, svn_revision_list)
nickname_lists = map(sheriff.responsible_nicknames_from_commit_info, commit_infos)
return sorted(set(itertools.chain(*nickname_lists)))
def _nicks_string(self, tool, sheriff, requester_nick, svn_revision_list):
# FIXME: _parse_args guarentees that our svn_revision_list is all numbers.
# However, it's possible our checkout will not include one of the revisions,
# so we may need to catch exceptions from commit_info_for_revision here.
target_nicks = [requester_nick] + self._responsible_nicknames_from_revisions(tool, sheriff, svn_revision_list)
return ", ".join(target_nicks)
def _update_working_copy(self, tool):
tool.scm().discard_local_changes()
tool.executive.run_and_throw_if_fail(tool.deprecated_port().update_webkit_command(), quiet=True, cwd=tool.scm().checkout_root)
def _check_diff_failure(self, error_log, tool):
if not error_log:
return None
revert_failure_message_start = error_log.find("Failed to apply reverse diff for revision")
if revert_failure_message_start == -1:
return None
lines = error_log[revert_failure_message_start:].split('\n')[1:]
files = list(itertools.takewhile(lambda line: tool.filesystem.exists(tool.scm().absolute_path(line)), lines))
if files:
return "Failed to apply reverse diff for %s: %s" % (pluralize(len(files), "file", showCount=False), ", ".join(files))
return None
def execute(self, nick, args, tool, sheriff):
svn_revision_list, rollout_reason = self._parse_args(args)
if (not svn_revision_list or not rollout_reason):
return self.usage(nick)
revision_urls_string = join_with_separators([urls.view_revision_url(revision) for revision in svn_revision_list])
tool.irc().post("%s: Preparing rollout for %s ..." % (nick, revision_urls_string))
self._update_working_copy(tool)
# FIXME: IRCCommand should bind to a tool and have a self._tool like Command objects do.
# Likewise we should probably have a self._sheriff.
nicks_string = self._nicks_string(tool, sheriff, nick, svn_revision_list)
try:
complete_reason = "%s (Requested by %s on %s)." % (
rollout_reason, nick, config_irc.channel)
bug_id = sheriff.post_rollout_patch(svn_revision_list, complete_reason)
bug_url = tool.bugs.bug_url_for_bug_id(bug_id)
tool.irc().post("%s: Created rollout: %s" % (nicks_string, bug_url))
except ScriptError, e:
tool.irc().post("%s: Failed to create rollout patch:" % nicks_string)
diff_failure = self._check_diff_failure(e.output, tool)
if diff_failure:
return "%s: %s" % (nicks_string, diff_failure)
_post_error_and_check_for_bug_url(tool, nicks_string, e)
class Whois(IRCCommand):
usage_string = "whois SEARCH_STRING"
help_string = "Searches known contributors and returns any matches with irc, email and full name. Wild card * permitted."
def _full_record_and_nick(self, contributor):
result = ''
if contributor.irc_nicknames:
result += ' (:%s)' % ', :'.join(contributor.irc_nicknames)
if contributor.can_review:
result += ' (r)'
elif contributor.can_commit:
result += ' (c)'
return unicode(contributor) + result
def execute(self, nick, args, tool, sheriff):
if not args:
return self.usage(nick)
search_string = unicode(" ".join(args))
# FIXME: We should get the ContributorList off the tool somewhere.
contributors = CommitterList().contributors_by_search_string(search_string)
if not contributors:
return unicode("%s: Sorry, I don't know any contributors matching '%s'.") % (nick, search_string)
if len(contributors) > 5:
return unicode("%s: More than 5 contributors match '%s', could you be more specific?") % (nick, search_string)
if len(contributors) == 1:
contributor = contributors[0]
if not contributor.irc_nicknames:
return unicode("%s: %s hasn't told me their nick. Boo hoo :-(") % (nick, contributor)
return unicode("%s: %s is %s. Why do you ask?") % (nick, search_string, self._full_record_and_nick(contributor))
contributor_nicks = map(self._full_record_and_nick, contributors)
contributors_string = join_with_separators(contributor_nicks, only_two_separator=" or ", last_separator=', or ')
return unicode("%s: I'm not sure who you mean? %s could be '%s'.") % (nick, contributors_string, search_string)
# FIXME: Lame. We should have an auto-registering CommandCenter.
visible_commands = {
"create-bug": CreateBug,
"help": Help,
"hi": Hi,
"ping": PingPong,
"restart": Restart,
"rollout": Rollout,
"whois": Whois,
"yt?": YouThere,
}
# Add revert as an "easter egg" command. Why?
# revert is the same as rollout and it would be confusing to list both when
# they do the same thing. However, this command is a very natural thing for
# people to use and it seems silly to have them hunt around for "rollout" instead.
commands = visible_commands.copy()
commands["revert"] = Rollout
# "hello" Alias for "hi" command for the purposes of testing aliases
commands["hello"] = Hi
| gpl-2.0 |
gameduell/duell | bin/win/python2.7.9/Lib/nturl2path.py | 228 | 2371 | """Convert a NT pathname to a file URL and vice versa."""
def url2pathname(url):
"""OS-specific conversion from a relative URL of the 'file' scheme
to a file system path; not recommended for general use."""
# e.g.
# ///C|/foo/bar/spam.foo
# becomes
# C:\foo\bar\spam.foo
import string, urllib
# Windows itself uses ":" even in URLs.
url = url.replace(':', '|')
if not '|' in url:
# No drive specifier, just convert slashes
if url[:4] == '////':
# path is something like ////host/path/on/remote/host
# convert this to \\host\path\on\remote\host
# (notice halving of slashes at the start of the path)
url = url[2:]
components = url.split('/')
# make sure not to convert quoted slashes :-)
return urllib.unquote('\\'.join(components))
comp = url.split('|')
if len(comp) != 2 or comp[0][-1] not in string.ascii_letters:
error = 'Bad URL: ' + url
raise IOError, error
drive = comp[0][-1].upper()
path = drive + ':'
components = comp[1].split('/')
for comp in components:
if comp:
path = path + '\\' + urllib.unquote(comp)
# Issue #11474: url like '/C|/' should convert into 'C:\\'
if path.endswith(':') and url.endswith('/'):
path += '\\'
return path
def pathname2url(p):
"""OS-specific conversion from a file system path to a relative URL
of the 'file' scheme; not recommended for general use."""
# e.g.
# C:\foo\bar\spam.foo
# becomes
# ///C|/foo/bar/spam.foo
import urllib
if not ':' in p:
# No drive specifier, just convert slashes and quote the name
if p[:2] == '\\\\':
# path is something like \\host\path\on\remote\host
# convert this to ////host/path/on/remote/host
# (notice doubling of slashes at the start of the path)
p = '\\\\' + p
components = p.split('\\')
return urllib.quote('/'.join(components))
comp = p.split(':')
if len(comp) != 2 or len(comp[0]) > 1:
error = 'Bad path: ' + p
raise IOError, error
drive = urllib.quote(comp[0].upper())
components = comp[1].split('\\')
path = '///' + drive + ':'
for comp in components:
if comp:
path = path + '/' + urllib.quote(comp)
return path
| bsd-2-clause |
Umang88/Radon-Kenzo | tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | 4653 | 3596 | # EventClass.py
#
# This is a library defining some events types classes, which could
# be used by other scripts to analyzing the perf samples.
#
# Currently there are just a few classes defined for examples,
# PerfEvent is the base class for all perf event sample, PebsEvent
# is a HW base Intel x86 PEBS event, and user could add more SW/HW
# event classes based on requirements.
import struct
# Event types, user could add more here
EVTYPE_GENERIC = 0
EVTYPE_PEBS = 1 # Basic PEBS event
EVTYPE_PEBS_LL = 2 # PEBS event with load latency info
EVTYPE_IBS = 3
#
# Currently we don't have good way to tell the event type, but by
# the size of raw buffer, raw PEBS event with load latency data's
# size is 176 bytes, while the pure PEBS event's size is 144 bytes.
#
def create_event(name, comm, dso, symbol, raw_buf):
if (len(raw_buf) == 144):
event = PebsEvent(name, comm, dso, symbol, raw_buf)
elif (len(raw_buf) == 176):
event = PebsNHM(name, comm, dso, symbol, raw_buf)
else:
event = PerfEvent(name, comm, dso, symbol, raw_buf)
return event
class PerfEvent(object):
event_num = 0
def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_GENERIC):
self.name = name
self.comm = comm
self.dso = dso
self.symbol = symbol
self.raw_buf = raw_buf
self.ev_type = ev_type
PerfEvent.event_num += 1
def show(self):
print "PMU event: name=%12s, symbol=%24s, comm=%8s, dso=%12s" % (self.name, self.symbol, self.comm, self.dso)
#
# Basic Intel PEBS (Precise Event-based Sampling) event, whose raw buffer
# contains the context info when that event happened: the EFLAGS and
# linear IP info, as well as all the registers.
#
class PebsEvent(PerfEvent):
pebs_num = 0
def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS):
tmp_buf=raw_buf[0:80]
flags, ip, ax, bx, cx, dx, si, di, bp, sp = struct.unpack('QQQQQQQQQQ', tmp_buf)
self.flags = flags
self.ip = ip
self.ax = ax
self.bx = bx
self.cx = cx
self.dx = dx
self.si = si
self.di = di
self.bp = bp
self.sp = sp
PerfEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type)
PebsEvent.pebs_num += 1
del tmp_buf
#
# Intel Nehalem and Westmere support PEBS plus Load Latency info which lie
# in the four 64 bit words write after the PEBS data:
# Status: records the IA32_PERF_GLOBAL_STATUS register value
# DLA: Data Linear Address (EIP)
# DSE: Data Source Encoding, where the latency happens, hit or miss
# in L1/L2/L3 or IO operations
# LAT: the actual latency in cycles
#
class PebsNHM(PebsEvent):
pebs_nhm_num = 0
def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS_LL):
tmp_buf=raw_buf[144:176]
status, dla, dse, lat = struct.unpack('QQQQ', tmp_buf)
self.status = status
self.dla = dla
self.dse = dse
self.lat = lat
PebsEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type)
PebsNHM.pebs_nhm_num += 1
del tmp_buf
| gpl-2.0 |
astaninger/speakout | venv/lib/python3.6/site-packages/setuptools/wheel.py | 19 | 8102 | """Wheels support."""
from distutils.util import get_platform
import email
import itertools
import os
import posixpath
import re
import zipfile
from pkg_resources import Distribution, PathMetadata, parse_version
from setuptools.extern.packaging.utils import canonicalize_name
from setuptools.extern.six import PY3
from setuptools import Distribution as SetuptoolsDistribution
from setuptools import pep425tags
from setuptools.command.egg_info import write_requirements
__metaclass__ = type
WHEEL_NAME = re.compile(
r"""^(?P<project_name>.+?)-(?P<version>\d.*?)
((-(?P<build>\d.*?))?-(?P<py_version>.+?)-(?P<abi>.+?)-(?P<platform>.+?)
)\.whl$""",
re.VERBOSE).match
NAMESPACE_PACKAGE_INIT = '''\
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
'''
def unpack(src_dir, dst_dir):
'''Move everything under `src_dir` to `dst_dir`, and delete the former.'''
for dirpath, dirnames, filenames in os.walk(src_dir):
subdir = os.path.relpath(dirpath, src_dir)
for f in filenames:
src = os.path.join(dirpath, f)
dst = os.path.join(dst_dir, subdir, f)
os.renames(src, dst)
for n, d in reversed(list(enumerate(dirnames))):
src = os.path.join(dirpath, d)
dst = os.path.join(dst_dir, subdir, d)
if not os.path.exists(dst):
# Directory does not exist in destination,
# rename it and prune it from os.walk list.
os.renames(src, dst)
del dirnames[n]
# Cleanup.
for dirpath, dirnames, filenames in os.walk(src_dir, topdown=True):
assert not filenames
os.rmdir(dirpath)
class Wheel:
def __init__(self, filename):
match = WHEEL_NAME(os.path.basename(filename))
if match is None:
raise ValueError('invalid wheel name: %r' % filename)
self.filename = filename
for k, v in match.groupdict().items():
setattr(self, k, v)
def tags(self):
'''List tags (py_version, abi, platform) supported by this wheel.'''
return itertools.product(
self.py_version.split('.'),
self.abi.split('.'),
self.platform.split('.'),
)
def is_compatible(self):
'''Is the wheel is compatible with the current platform?'''
supported_tags = pep425tags.get_supported()
return next((True for t in self.tags() if t in supported_tags), False)
def egg_name(self):
return Distribution(
project_name=self.project_name, version=self.version,
platform=(None if self.platform == 'any' else get_platform()),
).egg_name() + '.egg'
def get_dist_info(self, zf):
# find the correct name of the .dist-info dir in the wheel file
for member in zf.namelist():
dirname = posixpath.dirname(member)
if (dirname.endswith('.dist-info') and
canonicalize_name(dirname).startswith(
canonicalize_name(self.project_name))):
return dirname
raise ValueError("unsupported wheel format. .dist-info not found")
def install_as_egg(self, destination_eggdir):
'''Install wheel as an egg directory.'''
with zipfile.ZipFile(self.filename) as zf:
self._install_as_egg(destination_eggdir, zf)
def _install_as_egg(self, destination_eggdir, zf):
dist_basename = '%s-%s' % (self.project_name, self.version)
dist_info = self.get_dist_info(zf)
dist_data = '%s.data' % dist_basename
egg_info = os.path.join(destination_eggdir, 'EGG-INFO')
self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
self._move_data_entries(destination_eggdir, dist_data)
self._fix_namespace_packages(egg_info, destination_eggdir)
@staticmethod
def _convert_metadata(zf, destination_eggdir, dist_info, egg_info):
def get_metadata(name):
with zf.open(posixpath.join(dist_info, name)) as fp:
value = fp.read().decode('utf-8') if PY3 else fp.read()
return email.parser.Parser().parsestr(value)
wheel_metadata = get_metadata('WHEEL')
# Check wheel format version is supported.
wheel_version = parse_version(wheel_metadata.get('Wheel-Version'))
wheel_v1 = (
parse_version('1.0') <= wheel_version < parse_version('2.0dev0')
)
if not wheel_v1:
raise ValueError(
'unsupported wheel format version: %s' % wheel_version)
# Extract to target directory.
os.mkdir(destination_eggdir)
zf.extractall(destination_eggdir)
# Convert metadata.
dist_info = os.path.join(destination_eggdir, dist_info)
dist = Distribution.from_location(
destination_eggdir, dist_info,
metadata=PathMetadata(destination_eggdir, dist_info),
)
# Note: Evaluate and strip markers now,
# as it's difficult to convert back from the syntax:
# foobar; "linux" in sys_platform and extra == 'test'
def raw_req(req):
req.marker = None
return str(req)
install_requires = list(sorted(map(raw_req, dist.requires())))
extras_require = {
extra: sorted(
req
for req in map(raw_req, dist.requires((extra,)))
if req not in install_requires
)
for extra in dist.extras
}
os.rename(dist_info, egg_info)
os.rename(
os.path.join(egg_info, 'METADATA'),
os.path.join(egg_info, 'PKG-INFO'),
)
setup_dist = SetuptoolsDistribution(
attrs=dict(
install_requires=install_requires,
extras_require=extras_require,
),
)
write_requirements(
setup_dist.get_command_obj('egg_info'),
None,
os.path.join(egg_info, 'requires.txt'),
)
@staticmethod
def _move_data_entries(destination_eggdir, dist_data):
"""Move data entries to their correct location."""
dist_data = os.path.join(destination_eggdir, dist_data)
dist_data_scripts = os.path.join(dist_data, 'scripts')
if os.path.exists(dist_data_scripts):
egg_info_scripts = os.path.join(
destination_eggdir, 'EGG-INFO', 'scripts')
os.mkdir(egg_info_scripts)
for entry in os.listdir(dist_data_scripts):
# Remove bytecode, as it's not properly handled
# during easy_install scripts install phase.
if entry.endswith('.pyc'):
os.unlink(os.path.join(dist_data_scripts, entry))
else:
os.rename(
os.path.join(dist_data_scripts, entry),
os.path.join(egg_info_scripts, entry),
)
os.rmdir(dist_data_scripts)
for subdir in filter(os.path.exists, (
os.path.join(dist_data, d)
for d in ('data', 'headers', 'purelib', 'platlib')
)):
unpack(subdir, destination_eggdir)
if os.path.exists(dist_data):
os.rmdir(dist_data)
@staticmethod
def _fix_namespace_packages(egg_info, destination_eggdir):
namespace_packages = os.path.join(
egg_info, 'namespace_packages.txt')
if os.path.exists(namespace_packages):
with open(namespace_packages) as fp:
namespace_packages = fp.read().split()
for mod in namespace_packages:
mod_dir = os.path.join(destination_eggdir, *mod.split('.'))
mod_init = os.path.join(mod_dir, '__init__.py')
if os.path.exists(mod_dir) and not os.path.exists(mod_init):
with open(mod_init, 'w') as fp:
fp.write(NAMESPACE_PACKAGE_INIT)
| mit |
GoogleCloudDataproc/cloud-dataproc | codelabs/spark-nlp/topic_model.py | 1 | 8715 | # Copyright 2019 Google Inc.
#
# 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.
# This code accompanies this codelab: https://codelabs.developers.google.com/codelabs/spark-nlp.
# In this example, we will build a topic model using spark-nlp and Spark ML.
# In order for this code to work properly, a bucket name must be provided.
# Python imports
import sys
# spark-nlp components. Each one is incorporated into our pipeline.
from sparknlp.annotator import Lemmatizer, Stemmer, Tokenizer, Normalizer
from sparknlp.base import DocumentAssembler, Finisher
# A Spark Session is how we interact with Spark SQL to create Dataframes
from pyspark.sql import SparkSession
# These allow us to create a schema for our data
from pyspark.sql.types import StructField, StructType, StringType, LongType
# Spark Pipelines allow us to sequentially add components such as transformers
from pyspark.ml import Pipeline
# These are components we will incorporate into our pipeline.
from pyspark.ml.feature import StopWordsRemover, CountVectorizer, IDF
# LDA is our model of choice for topic modeling
from pyspark.ml.clustering import LDA
# Some transformers require the usage of other Spark ML functions. We import them here
from pyspark.sql.functions import col, lit, concat, regexp_replace
# This will help catch some PySpark errors
from pyspark.sql.utils import AnalysisException
# Assign bucket where the data lives
try:
bucket = sys.argv[1]
except IndexError:
print("Please provide a bucket name")
sys.exit(1)
# Create a SparkSession under the name "reddit". Viewable via the Spark UI
spark = SparkSession.builder.appName("reddit topic model").getOrCreate()
# Create a three column schema consisting of two strings and a long integer
fields = [StructField("title", StringType(), True),
StructField("body", StringType(), True),
StructField("created_at", LongType(), True)]
schema = StructType(fields)
# We'll attempt to process every year / month combination below.
years = ['2016', '2017', '2018', '2019']
months = ['01', '02', '03', '04', '05', '06',
'07', '08', '09', '10', '11', '12']
# This is the subreddit we're working with.
subreddit = "food"
# Create a base dataframe.
reddit_data = spark.createDataFrame([], schema)
# Keep a running list of all files that will be processed
files_read = []
for year in years:
for month in months:
# In the form of <project-id>.<dataset>.<table>
gs_uri = f"gs://{bucket}/reddit_posts/{year}/{month}/{subreddit}.csv.gz"
# If the table doesn't exist we will simply continue and not
# log it into our "tables_read" list
try:
reddit_data = (
spark.read.format('csv')
.options(codec="org.apache.hadoop.io.compress.GzipCodec")
.load(gs_uri, schema=schema)
.union(reddit_data)
)
files_read.append(gs_uri)
except AnalysisException:
continue
if len(files_read) == 0:
print('No files read')
sys.exit(1)
# Replacing null values with their respective typed-equivalent is usually
# easier to work with. In this case, we'll replace nulls with empty strings.
# Since some of our data doesn't have a body, we can combine all of the text
# for the titles and bodies so that every row has useful data.
df_train = (
reddit_data
# Replace null values with an empty string
.fillna("")
.select(
# Combine columns
concat(
# First column to concatenate. col() is used to specify that we're referencing a column
col("title"),
# Literal character that will be between the concatenated columns.
lit(" "),
# Second column to concatenate.
col("body")
# Change the name of the new column
).alias("text")
)
# The text has several tags including [REMOVED] or [DELETED] for redacted content.
# We'll replace these with empty strings.
.select(
regexp_replace(col("text"), "\[.*?\]", "")
.alias("text")
)
)
# Now, we begin assembling our pipeline. Each component here is used to some transformation to the data.
# The Document Assembler takes the raw text data and convert it into a format that can
# be tokenized. It becomes one of spark-nlp native object types, the "Document".
document_assembler = DocumentAssembler().setInputCol("text").setOutputCol("document")
# The Tokenizer takes data that is of the "Document" type and tokenizes it.
# While slightly more involved than this, this is effectively taking a string and splitting
# it along ths spaces, so each word is its own string. The data then becomes the
# spark-nlp native type "Token".
tokenizer = Tokenizer().setInputCols(["document"]).setOutputCol("token")
# The Normalizer will group words together based on similar semantic meaning.
normalizer = Normalizer().setInputCols(["token"]).setOutputCol("normalizer")
# The Stemmer takes objects of class "Token" and converts the words into their
# root meaning. For instance, the words "cars", "cars'" and "car's" would all be replaced
# with the word "car".
stemmer = Stemmer().setInputCols(["normalizer"]).setOutputCol("stem")
# The Finisher signals to spark-nlp allows us to access the data outside of spark-nlp
# components. For instance, we can now feed the data into components from Spark MLlib.
finisher = Finisher().setInputCols(["stem"]).setOutputCols(["to_spark"]).setValueSplitSymbol(" ")
# Stopwords are common words that generally don't add much detail to the meaning
# of a body of text. In English, these are mostly "articles" such as the words "the"
# and "of".
stopword_remover = StopWordsRemover(inputCol="to_spark", outputCol="filtered")
# Here we implement TF-IDF as an input to our LDA model. CountVectorizer (TF) keeps track
# of the vocabulary that's being created so we can map our topics back to their
# corresponding words.
# TF (term frequency) creates a matrix that counts how many times each word in the
# vocabulary appears in each body of text. This then gives each word a weight based
# on it's frequency.
tf = CountVectorizer(inputCol="filtered", outputCol="raw_features")
# Here we implement the IDF portion. IDF (Inverse document frequency) reduces
# the weights of commonly-appearing words.
idf = IDF(inputCol="raw_features", outputCol="features")
# LDA creates a statistical representation of how frequently words appear
# together in order to create "topics" or groups of commonly appearing words.
# In this case, we'll create 5 topics.
lda = LDA(k=5)
# We add all of the transformers into a Pipeline object. Each transformer
# will execute in the ordered provided to the "stages" parameter
pipeline = Pipeline(
stages = [
document_assembler,
tokenizer,
normalizer,
stemmer,
finisher,
stopword_remover,
tf,
idf,
lda
]
)
# We fit the data to the model.
model = pipeline.fit(df_train)
# Now that we have completed a pipeline, we want to output the topics as human-readable.
# To do this, we need to grab the vocabulary generated from our pipeline, grab the topic
# model and do the appropriate mapping. The output from each individual component lives
# in the model object. We can access them by referring to them by their position in
# the pipeline via model.stages[<ind>]
# Let's create a reference our vocabulary.
vocab = model.stages[-3].vocabulary
# Next, let's grab the topics generated by our LDA model via describeTopics(). Using collect(),
# we load the output into a Python array.
raw_topics = model.stages[-1].describeTopics(maxTermsPerTopic=5).collect()
# Lastly, let's get the indices of the vocabulary terms from our topics
topic_inds = [ind.termIndices for ind in raw_topics]
# The indices we just grab directly map to the term at position <ind> from our vocabulary.
# Using the below code, we can generate the mappings from our topic indicies to our vocabulary.
topics = []
for topic in topic_inds:
_topic = []
for ind in topic:
_topic.append(vocab[ind])
topics.append(_topic)
# Let's see our topics!
for i, topic in enumerate(topics, start=1):
print(f"topic {i}: {topic}")
| apache-2.0 |
bretlowery/snakr | lib/django/contrib/gis/gdal/feature.py | 439 | 4153 | from django.contrib.gis.gdal.base import GDALBase
from django.contrib.gis.gdal.error import GDALException, OGRIndexError
from django.contrib.gis.gdal.field import Field
from django.contrib.gis.gdal.geometries import OGRGeometry, OGRGeomType
from django.contrib.gis.gdal.prototypes import ds as capi, geom as geom_api
from django.utils import six
from django.utils.encoding import force_bytes, force_text
from django.utils.six.moves import range
# For more information, see the OGR C API source code:
# http://www.gdal.org/ogr/ogr__api_8h.html
#
# The OGR_F_* routines are relevant here.
class Feature(GDALBase):
"""
This class that wraps an OGR Feature, needs to be instantiated
from a Layer object.
"""
def __init__(self, feat, layer):
"""
Initializes Feature from a pointer and its Layer object.
"""
if not feat:
raise GDALException('Cannot create OGR Feature, invalid pointer given.')
self.ptr = feat
self._layer = layer
def __del__(self):
"Releases a reference to this object."
if self._ptr and capi:
capi.destroy_feature(self._ptr)
def __getitem__(self, index):
"""
Gets the Field object at the specified index, which may be either
an integer or the Field's string label. Note that the Field object
is not the field's _value_ -- use the `get` method instead to
retrieve the value (e.g. an integer) instead of a Field instance.
"""
if isinstance(index, six.string_types):
i = self.index(index)
else:
if index < 0 or index > self.num_fields:
raise OGRIndexError('index out of range')
i = index
return Field(self, i)
def __iter__(self):
"Iterates over each field in the Feature."
for i in range(self.num_fields):
yield self[i]
def __len__(self):
"Returns the count of fields in this feature."
return self.num_fields
def __str__(self):
"The string name of the feature."
return 'Feature FID %d in Layer<%s>' % (self.fid, self.layer_name)
def __eq__(self, other):
"Does equivalence testing on the features."
return bool(capi.feature_equal(self.ptr, other._ptr))
# #### Feature Properties ####
@property
def encoding(self):
return self._layer._ds.encoding
@property
def fid(self):
"Returns the feature identifier."
return capi.get_fid(self.ptr)
@property
def layer_name(self):
"Returns the name of the layer for the feature."
name = capi.get_feat_name(self._layer._ldefn)
return force_text(name, self.encoding, strings_only=True)
@property
def num_fields(self):
"Returns the number of fields in the Feature."
return capi.get_feat_field_count(self.ptr)
@property
def fields(self):
"Returns a list of fields in the Feature."
return [capi.get_field_name(capi.get_field_defn(self._layer._ldefn, i))
for i in range(self.num_fields)]
@property
def geom(self):
"Returns the OGR Geometry for this Feature."
# Retrieving the geometry pointer for the feature.
geom_ptr = capi.get_feat_geom_ref(self.ptr)
return OGRGeometry(geom_api.clone_geom(geom_ptr))
@property
def geom_type(self):
"Returns the OGR Geometry Type for this Feture."
return OGRGeomType(capi.get_fd_geom_type(self._layer._ldefn))
# #### Feature Methods ####
def get(self, field):
"""
Returns the value of the field, instead of an instance of the Field
object. May take a string of the field name or a Field object as
parameters.
"""
field_name = getattr(field, 'name', field)
return self[field_name].value
def index(self, field_name):
"Returns the index of the given field name."
i = capi.get_field_index(self.ptr, force_bytes(field_name))
if i < 0:
raise OGRIndexError('invalid OFT field name given: "%s"' % field_name)
return i
| bsd-3-clause |
Spiderlover/Toontown | toontown/suit/SuitBase.py | 1 | 3300 | import SuitDNA
from SuitLegList import *
import SuitTimings
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.ClockDelta import *
from pandac.PandaModules import *
from pandac.PandaModules import Point3
from toontown.battle import SuitBattleGlobals
from toontown.toonbase import TTLocalizer
TIME_BUFFER_PER_WPT = 0.25
TIME_DIVISOR = 100
DISTRIBUTE_TASK_CREATION = 0
class SuitBase:
notify = DirectNotifyGlobal.directNotify.newCategory('SuitBase')
def __init__(self):
self.dna = None
self.level = 0
self.maxHP = 10
self.currHP = 10
self.isSkelecog = 0
self.isWaiter = 0
self.isVirtual = 0
self.isRental = 0
return
def delete(self):
if hasattr(self, 'legList'):
del self.legList
def getCurrHp(self):
if hasattr(self, 'currHP') and self.currHP:
return self.currHP
else:
self.notify.error('currHP is None')
return 'unknown'
def getMaxHp(self):
if hasattr(self, 'maxHP') and self.maxHP:
return self.maxHP
else:
self.notify.error('maxHP is None')
return 'unknown'
def getStyleName(self):
if hasattr(self, 'dna') and self.dna:
return self.dna.name
else:
self.notify.error('called getStyleName() before dna was set!')
return 'unknown'
def getStyleDept(self):
if hasattr(self, 'dna') and self.dna:
return SuitDNA.getDeptFullname(self.dna.dept)
else:
self.notify.error('called getStyleDept() before dna was set!')
return 'unknown'
def getLevel(self):
return self.level
def setLevel(self, level):
self.level = level
nameWLevel = TTLocalizer.SuitBaseNameWithLevel % {'name': self.name,
'dept': self.getStyleDept(),
'level': self.getActualLevel()}
self.setDisplayName(nameWLevel)
attributes = SuitBattleGlobals.SuitAttributes[self.dna.name]
self.maxHP = attributes['hp'][self.level]
self.currHP = self.maxHP
def getSkelecog(self):
return self.isSkelecog
def setSkelecog(self, flag):
self.isSkelecog = flag
def setWaiter(self, flag):
self.isWaiter = flag
def setVirtual(self, flag):
self.isVirtual = flag
def setRental(self, flag):
self.isRental = flag
def getActualLevel(self):
if hasattr(self, 'dna'):
return SuitBattleGlobals.getActualFromRelativeLevel(self.getStyleName(), self.level) + 1
else:
self.notify.warning('called getActualLevel with no DNA, returning 1 for level')
return 1
def setPath(self, path):
self.path = path
self.pathLength = self.path.getNumPoints()
def getPath(self):
return self.path
def printPath(self):
print '%d points in path' % self.pathLength
for currPathPt in xrange(self.pathLength):
indexVal = self.path.getPointIndex(currPathPt)
print '\t', self.sp.dnaStore.getSuitPointWithIndex(indexVal)
def makeLegList(self):
self.legList = SuitLegList(self.path, self.sp.dnaStore)
| mit |
pombredanne/invenio-old | modules/websubmit/lib/functions/Move_Files_Archive.py | 4 | 2180 | ## This file is part of CDS Invenio.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 CERN.
##
## CDS Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## CDS Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with CDS Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
__revision__ = "$Id$"
import os
from invenio.bibdocfile import BibRecDocs, decompose_file, normalize_format
def Move_Files_Archive(parameters, curdir, form, user_info=None):
"""DEPRECATED: Use FFT instead."""
MainDir = "%s/files/MainFiles" % curdir
IncludeDir = "%s/files/AdditionalFiles" % curdir
watcheddirs = {'Main' : MainDir, 'Additional' : IncludeDir}
for type, dir in watcheddirs.iteritems():
if os.path.exists(dir):
formats = {}
files = os.listdir(dir)
files.sort()
for file in files:
dummy, filename, extension = decompose_file(file)
if not formats.has_key(filename):
formats[filename] = []
formats[filename].append(normalize_format(extension))
# first delete all missing files
bibarchive = BibRecDocs(sysno)
existingBibdocs = bibarchive.list_bibdocs(type)
for existingBibdoc in existingBibdocs:
if not formats.has_key(existingBibdoc.get_docname()):
existingBibdoc.delete()
# then create/update the new ones
for key in formats.keys():
# instanciate bibdoc object
bibarchive.add_new_file('%s/%s%s' % (dir, key, formats[key]), doctype=type, never_fail=True)
return ""
| gpl-2.0 |
vlinhd11/vlinhd11-android-scripting | python/src/Lib/plat-mac/Carbon/Icons.py | 81 | 16284 | # Generated from 'Icons.h'
def FOUR_CHAR_CODE(x): return x
from Carbon.Files import *
kGenericDocumentIconResource = -4000
kGenericStationeryIconResource = -3985
kGenericEditionFileIconResource = -3989
kGenericApplicationIconResource = -3996
kGenericDeskAccessoryIconResource = -3991
kGenericFolderIconResource = -3999
kPrivateFolderIconResource = -3994
kFloppyIconResource = -3998
kTrashIconResource = -3993
kGenericRAMDiskIconResource = -3988
kGenericCDROMIconResource = -3987
kDesktopIconResource = -3992
kOpenFolderIconResource = -3997
kGenericHardDiskIconResource = -3995
kGenericFileServerIconResource = -3972
kGenericSuitcaseIconResource = -3970
kGenericMoverObjectIconResource = -3969
kGenericPreferencesIconResource = -3971
kGenericQueryDocumentIconResource = -16506
kGenericExtensionIconResource = -16415
kSystemFolderIconResource = -3983
kHelpIconResource = -20271
kAppleMenuFolderIconResource = -3982
genericDocumentIconResource = kGenericDocumentIconResource
genericStationeryIconResource = kGenericStationeryIconResource
genericEditionFileIconResource = kGenericEditionFileIconResource
genericApplicationIconResource = kGenericApplicationIconResource
genericDeskAccessoryIconResource = kGenericDeskAccessoryIconResource
genericFolderIconResource = kGenericFolderIconResource
privateFolderIconResource = kPrivateFolderIconResource
floppyIconResource = kFloppyIconResource
trashIconResource = kTrashIconResource
genericRAMDiskIconResource = kGenericRAMDiskIconResource
genericCDROMIconResource = kGenericCDROMIconResource
desktopIconResource = kDesktopIconResource
openFolderIconResource = kOpenFolderIconResource
genericHardDiskIconResource = kGenericHardDiskIconResource
genericFileServerIconResource = kGenericFileServerIconResource
genericSuitcaseIconResource = kGenericSuitcaseIconResource
genericMoverObjectIconResource = kGenericMoverObjectIconResource
genericPreferencesIconResource = kGenericPreferencesIconResource
genericQueryDocumentIconResource = kGenericQueryDocumentIconResource
genericExtensionIconResource = kGenericExtensionIconResource
systemFolderIconResource = kSystemFolderIconResource
appleMenuFolderIconResource = kAppleMenuFolderIconResource
kStartupFolderIconResource = -3981
kOwnedFolderIconResource = -3980
kDropFolderIconResource = -3979
kSharedFolderIconResource = -3978
kMountedFolderIconResource = -3977
kControlPanelFolderIconResource = -3976
kPrintMonitorFolderIconResource = -3975
kPreferencesFolderIconResource = -3974
kExtensionsFolderIconResource = -3973
kFontsFolderIconResource = -3968
kFullTrashIconResource = -3984
startupFolderIconResource = kStartupFolderIconResource
ownedFolderIconResource = kOwnedFolderIconResource
dropFolderIconResource = kDropFolderIconResource
sharedFolderIconResource = kSharedFolderIconResource
mountedFolderIconResource = kMountedFolderIconResource
controlPanelFolderIconResource = kControlPanelFolderIconResource
printMonitorFolderIconResource = kPrintMonitorFolderIconResource
preferencesFolderIconResource = kPreferencesFolderIconResource
extensionsFolderIconResource = kExtensionsFolderIconResource
fontsFolderIconResource = kFontsFolderIconResource
fullTrashIconResource = kFullTrashIconResource
kThumbnail32BitData = FOUR_CHAR_CODE('it32')
kThumbnail8BitMask = FOUR_CHAR_CODE('t8mk')
kHuge1BitMask = FOUR_CHAR_CODE('ich#')
kHuge4BitData = FOUR_CHAR_CODE('ich4')
kHuge8BitData = FOUR_CHAR_CODE('ich8')
kHuge32BitData = FOUR_CHAR_CODE('ih32')
kHuge8BitMask = FOUR_CHAR_CODE('h8mk')
kLarge1BitMask = FOUR_CHAR_CODE('ICN#')
kLarge4BitData = FOUR_CHAR_CODE('icl4')
kLarge8BitData = FOUR_CHAR_CODE('icl8')
kLarge32BitData = FOUR_CHAR_CODE('il32')
kLarge8BitMask = FOUR_CHAR_CODE('l8mk')
kSmall1BitMask = FOUR_CHAR_CODE('ics#')
kSmall4BitData = FOUR_CHAR_CODE('ics4')
kSmall8BitData = FOUR_CHAR_CODE('ics8')
kSmall32BitData = FOUR_CHAR_CODE('is32')
kSmall8BitMask = FOUR_CHAR_CODE('s8mk')
kMini1BitMask = FOUR_CHAR_CODE('icm#')
kMini4BitData = FOUR_CHAR_CODE('icm4')
kMini8BitData = FOUR_CHAR_CODE('icm8')
kTileIconVariant = FOUR_CHAR_CODE('tile')
kRolloverIconVariant = FOUR_CHAR_CODE('over')
kDropIconVariant = FOUR_CHAR_CODE('drop')
kOpenIconVariant = FOUR_CHAR_CODE('open')
kOpenDropIconVariant = FOUR_CHAR_CODE('odrp')
large1BitMask = kLarge1BitMask
large4BitData = kLarge4BitData
large8BitData = kLarge8BitData
small1BitMask = kSmall1BitMask
small4BitData = kSmall4BitData
small8BitData = kSmall8BitData
mini1BitMask = kMini1BitMask
mini4BitData = kMini4BitData
mini8BitData = kMini8BitData
kAlignNone = 0x00
kAlignVerticalCenter = 0x01
kAlignTop = 0x02
kAlignBottom = 0x03
kAlignHorizontalCenter = 0x04
kAlignAbsoluteCenter = kAlignVerticalCenter | kAlignHorizontalCenter
kAlignCenterTop = kAlignTop | kAlignHorizontalCenter
kAlignCenterBottom = kAlignBottom | kAlignHorizontalCenter
kAlignLeft = 0x08
kAlignCenterLeft = kAlignVerticalCenter | kAlignLeft
kAlignTopLeft = kAlignTop | kAlignLeft
kAlignBottomLeft = kAlignBottom | kAlignLeft
kAlignRight = 0x0C
kAlignCenterRight = kAlignVerticalCenter | kAlignRight
kAlignTopRight = kAlignTop | kAlignRight
kAlignBottomRight = kAlignBottom | kAlignRight
atNone = kAlignNone
atVerticalCenter = kAlignVerticalCenter
atTop = kAlignTop
atBottom = kAlignBottom
atHorizontalCenter = kAlignHorizontalCenter
atAbsoluteCenter = kAlignAbsoluteCenter
atCenterTop = kAlignCenterTop
atCenterBottom = kAlignCenterBottom
atLeft = kAlignLeft
atCenterLeft = kAlignCenterLeft
atTopLeft = kAlignTopLeft
atBottomLeft = kAlignBottomLeft
atRight = kAlignRight
atCenterRight = kAlignCenterRight
atTopRight = kAlignTopRight
atBottomRight = kAlignBottomRight
kTransformNone = 0x00
kTransformDisabled = 0x01
kTransformOffline = 0x02
kTransformOpen = 0x03
kTransformLabel1 = 0x0100
kTransformLabel2 = 0x0200
kTransformLabel3 = 0x0300
kTransformLabel4 = 0x0400
kTransformLabel5 = 0x0500
kTransformLabel6 = 0x0600
kTransformLabel7 = 0x0700
kTransformSelected = 0x4000
kTransformSelectedDisabled = kTransformSelected | kTransformDisabled
kTransformSelectedOffline = kTransformSelected | kTransformOffline
kTransformSelectedOpen = kTransformSelected | kTransformOpen
ttNone = kTransformNone
ttDisabled = kTransformDisabled
ttOffline = kTransformOffline
ttOpen = kTransformOpen
ttLabel1 = kTransformLabel1
ttLabel2 = kTransformLabel2
ttLabel3 = kTransformLabel3
ttLabel4 = kTransformLabel4
ttLabel5 = kTransformLabel5
ttLabel6 = kTransformLabel6
ttLabel7 = kTransformLabel7
ttSelected = kTransformSelected
ttSelectedDisabled = kTransformSelectedDisabled
ttSelectedOffline = kTransformSelectedOffline
ttSelectedOpen = kTransformSelectedOpen
kSelectorLarge1Bit = 0x00000001
kSelectorLarge4Bit = 0x00000002
kSelectorLarge8Bit = 0x00000004
kSelectorLarge32Bit = 0x00000008
kSelectorLarge8BitMask = 0x00000010
kSelectorSmall1Bit = 0x00000100
kSelectorSmall4Bit = 0x00000200
kSelectorSmall8Bit = 0x00000400
kSelectorSmall32Bit = 0x00000800
kSelectorSmall8BitMask = 0x00001000
kSelectorMini1Bit = 0x00010000
kSelectorMini4Bit = 0x00020000
kSelectorMini8Bit = 0x00040000
kSelectorHuge1Bit = 0x01000000
kSelectorHuge4Bit = 0x02000000
kSelectorHuge8Bit = 0x04000000
kSelectorHuge32Bit = 0x08000000
kSelectorHuge8BitMask = 0x10000000
kSelectorAllLargeData = 0x000000FF
kSelectorAllSmallData = 0x0000FF00
kSelectorAllMiniData = 0x00FF0000
# kSelectorAllHugeData = (long)0xFF000000
kSelectorAll1BitData = kSelectorLarge1Bit | kSelectorSmall1Bit | kSelectorMini1Bit | kSelectorHuge1Bit
kSelectorAll4BitData = kSelectorLarge4Bit | kSelectorSmall4Bit | kSelectorMini4Bit | kSelectorHuge4Bit
kSelectorAll8BitData = kSelectorLarge8Bit | kSelectorSmall8Bit | kSelectorMini8Bit | kSelectorHuge8Bit
kSelectorAll32BitData = kSelectorLarge32Bit | kSelectorSmall32Bit | kSelectorHuge32Bit
# kSelectorAllAvailableData = (long)0xFFFFFFFF
svLarge1Bit = kSelectorLarge1Bit
svLarge4Bit = kSelectorLarge4Bit
svLarge8Bit = kSelectorLarge8Bit
svSmall1Bit = kSelectorSmall1Bit
svSmall4Bit = kSelectorSmall4Bit
svSmall8Bit = kSelectorSmall8Bit
svMini1Bit = kSelectorMini1Bit
svMini4Bit = kSelectorMini4Bit
svMini8Bit = kSelectorMini8Bit
svAllLargeData = kSelectorAllLargeData
svAllSmallData = kSelectorAllSmallData
svAllMiniData = kSelectorAllMiniData
svAll1BitData = kSelectorAll1BitData
svAll4BitData = kSelectorAll4BitData
svAll8BitData = kSelectorAll8BitData
# svAllAvailableData = kSelectorAllAvailableData
kSystemIconsCreator = FOUR_CHAR_CODE('macs')
# err = GetIconRef(kOnSystemDisk
kClipboardIcon = FOUR_CHAR_CODE('CLIP')
kClippingUnknownTypeIcon = FOUR_CHAR_CODE('clpu')
kClippingPictureTypeIcon = FOUR_CHAR_CODE('clpp')
kClippingTextTypeIcon = FOUR_CHAR_CODE('clpt')
kClippingSoundTypeIcon = FOUR_CHAR_CODE('clps')
kDesktopIcon = FOUR_CHAR_CODE('desk')
kFinderIcon = FOUR_CHAR_CODE('FNDR')
kFontSuitcaseIcon = FOUR_CHAR_CODE('FFIL')
kFullTrashIcon = FOUR_CHAR_CODE('ftrh')
kGenericApplicationIcon = FOUR_CHAR_CODE('APPL')
kGenericCDROMIcon = FOUR_CHAR_CODE('cddr')
kGenericControlPanelIcon = FOUR_CHAR_CODE('APPC')
kGenericControlStripModuleIcon = FOUR_CHAR_CODE('sdev')
kGenericComponentIcon = FOUR_CHAR_CODE('thng')
kGenericDeskAccessoryIcon = FOUR_CHAR_CODE('APPD')
kGenericDocumentIcon = FOUR_CHAR_CODE('docu')
kGenericEditionFileIcon = FOUR_CHAR_CODE('edtf')
kGenericExtensionIcon = FOUR_CHAR_CODE('INIT')
kGenericFileServerIcon = FOUR_CHAR_CODE('srvr')
kGenericFontIcon = FOUR_CHAR_CODE('ffil')
kGenericFontScalerIcon = FOUR_CHAR_CODE('sclr')
kGenericFloppyIcon = FOUR_CHAR_CODE('flpy')
kGenericHardDiskIcon = FOUR_CHAR_CODE('hdsk')
kGenericIDiskIcon = FOUR_CHAR_CODE('idsk')
kGenericRemovableMediaIcon = FOUR_CHAR_CODE('rmov')
kGenericMoverObjectIcon = FOUR_CHAR_CODE('movr')
kGenericPCCardIcon = FOUR_CHAR_CODE('pcmc')
kGenericPreferencesIcon = FOUR_CHAR_CODE('pref')
kGenericQueryDocumentIcon = FOUR_CHAR_CODE('qery')
kGenericRAMDiskIcon = FOUR_CHAR_CODE('ramd')
kGenericSharedLibaryIcon = FOUR_CHAR_CODE('shlb')
kGenericStationeryIcon = FOUR_CHAR_CODE('sdoc')
kGenericSuitcaseIcon = FOUR_CHAR_CODE('suit')
kGenericURLIcon = FOUR_CHAR_CODE('gurl')
kGenericWORMIcon = FOUR_CHAR_CODE('worm')
kInternationalResourcesIcon = FOUR_CHAR_CODE('ifil')
kKeyboardLayoutIcon = FOUR_CHAR_CODE('kfil')
kSoundFileIcon = FOUR_CHAR_CODE('sfil')
kSystemSuitcaseIcon = FOUR_CHAR_CODE('zsys')
kTrashIcon = FOUR_CHAR_CODE('trsh')
kTrueTypeFontIcon = FOUR_CHAR_CODE('tfil')
kTrueTypeFlatFontIcon = FOUR_CHAR_CODE('sfnt')
kTrueTypeMultiFlatFontIcon = FOUR_CHAR_CODE('ttcf')
kUserIDiskIcon = FOUR_CHAR_CODE('udsk')
kInternationResourcesIcon = kInternationalResourcesIcon
kInternetLocationHTTPIcon = FOUR_CHAR_CODE('ilht')
kInternetLocationFTPIcon = FOUR_CHAR_CODE('ilft')
kInternetLocationAppleShareIcon = FOUR_CHAR_CODE('ilaf')
kInternetLocationAppleTalkZoneIcon = FOUR_CHAR_CODE('ilat')
kInternetLocationFileIcon = FOUR_CHAR_CODE('ilfi')
kInternetLocationMailIcon = FOUR_CHAR_CODE('ilma')
kInternetLocationNewsIcon = FOUR_CHAR_CODE('ilnw')
kInternetLocationNSLNeighborhoodIcon = FOUR_CHAR_CODE('ilns')
kInternetLocationGenericIcon = FOUR_CHAR_CODE('ilge')
kGenericFolderIcon = FOUR_CHAR_CODE('fldr')
kDropFolderIcon = FOUR_CHAR_CODE('dbox')
kMountedFolderIcon = FOUR_CHAR_CODE('mntd')
kOpenFolderIcon = FOUR_CHAR_CODE('ofld')
kOwnedFolderIcon = FOUR_CHAR_CODE('ownd')
kPrivateFolderIcon = FOUR_CHAR_CODE('prvf')
kSharedFolderIcon = FOUR_CHAR_CODE('shfl')
kSharingPrivsNotApplicableIcon = FOUR_CHAR_CODE('shna')
kSharingPrivsReadOnlyIcon = FOUR_CHAR_CODE('shro')
kSharingPrivsReadWriteIcon = FOUR_CHAR_CODE('shrw')
kSharingPrivsUnknownIcon = FOUR_CHAR_CODE('shuk')
kSharingPrivsWritableIcon = FOUR_CHAR_CODE('writ')
kUserFolderIcon = FOUR_CHAR_CODE('ufld')
kWorkgroupFolderIcon = FOUR_CHAR_CODE('wfld')
kGuestUserIcon = FOUR_CHAR_CODE('gusr')
kUserIcon = FOUR_CHAR_CODE('user')
kOwnerIcon = FOUR_CHAR_CODE('susr')
kGroupIcon = FOUR_CHAR_CODE('grup')
kAppearanceFolderIcon = FOUR_CHAR_CODE('appr')
kAppleExtrasFolderIcon = FOUR_CHAR_CODE('aex\xc4')
kAppleMenuFolderIcon = FOUR_CHAR_CODE('amnu')
kApplicationsFolderIcon = FOUR_CHAR_CODE('apps')
kApplicationSupportFolderIcon = FOUR_CHAR_CODE('asup')
kAssistantsFolderIcon = FOUR_CHAR_CODE('ast\xc4')
kColorSyncFolderIcon = FOUR_CHAR_CODE('prof')
kContextualMenuItemsFolderIcon = FOUR_CHAR_CODE('cmnu')
kControlPanelDisabledFolderIcon = FOUR_CHAR_CODE('ctrD')
kControlPanelFolderIcon = FOUR_CHAR_CODE('ctrl')
kControlStripModulesFolderIcon = FOUR_CHAR_CODE('sdv\xc4')
kDocumentsFolderIcon = FOUR_CHAR_CODE('docs')
kExtensionsDisabledFolderIcon = FOUR_CHAR_CODE('extD')
kExtensionsFolderIcon = FOUR_CHAR_CODE('extn')
kFavoritesFolderIcon = FOUR_CHAR_CODE('favs')
kFontsFolderIcon = FOUR_CHAR_CODE('font')
kHelpFolderIcon = FOUR_CHAR_CODE('\xc4hlp')
kInternetFolderIcon = FOUR_CHAR_CODE('int\xc4')
kInternetPlugInFolderIcon = FOUR_CHAR_CODE('\xc4net')
kInternetSearchSitesFolderIcon = FOUR_CHAR_CODE('issf')
kLocalesFolderIcon = FOUR_CHAR_CODE('\xc4loc')
kMacOSReadMeFolderIcon = FOUR_CHAR_CODE('mor\xc4')
kPublicFolderIcon = FOUR_CHAR_CODE('pubf')
kPreferencesFolderIcon = FOUR_CHAR_CODE('prf\xc4')
kPrinterDescriptionFolderIcon = FOUR_CHAR_CODE('ppdf')
kPrinterDriverFolderIcon = FOUR_CHAR_CODE('\xc4prd')
kPrintMonitorFolderIcon = FOUR_CHAR_CODE('prnt')
kRecentApplicationsFolderIcon = FOUR_CHAR_CODE('rapp')
kRecentDocumentsFolderIcon = FOUR_CHAR_CODE('rdoc')
kRecentServersFolderIcon = FOUR_CHAR_CODE('rsrv')
kScriptingAdditionsFolderIcon = FOUR_CHAR_CODE('\xc4scr')
kSharedLibrariesFolderIcon = FOUR_CHAR_CODE('\xc4lib')
kScriptsFolderIcon = FOUR_CHAR_CODE('scr\xc4')
kShutdownItemsDisabledFolderIcon = FOUR_CHAR_CODE('shdD')
kShutdownItemsFolderIcon = FOUR_CHAR_CODE('shdf')
kSpeakableItemsFolder = FOUR_CHAR_CODE('spki')
kStartupItemsDisabledFolderIcon = FOUR_CHAR_CODE('strD')
kStartupItemsFolderIcon = FOUR_CHAR_CODE('strt')
kSystemExtensionDisabledFolderIcon = FOUR_CHAR_CODE('macD')
kSystemFolderIcon = FOUR_CHAR_CODE('macs')
kTextEncodingsFolderIcon = FOUR_CHAR_CODE('\xc4tex')
kUsersFolderIcon = FOUR_CHAR_CODE('usr\xc4')
kUtilitiesFolderIcon = FOUR_CHAR_CODE('uti\xc4')
kVoicesFolderIcon = FOUR_CHAR_CODE('fvoc')
kSystemFolderXIcon = FOUR_CHAR_CODE('macx')
kAppleScriptBadgeIcon = FOUR_CHAR_CODE('scrp')
kLockedBadgeIcon = FOUR_CHAR_CODE('lbdg')
kMountedBadgeIcon = FOUR_CHAR_CODE('mbdg')
kSharedBadgeIcon = FOUR_CHAR_CODE('sbdg')
kAliasBadgeIcon = FOUR_CHAR_CODE('abdg')
kAlertCautionBadgeIcon = FOUR_CHAR_CODE('cbdg')
kAlertNoteIcon = FOUR_CHAR_CODE('note')
kAlertCautionIcon = FOUR_CHAR_CODE('caut')
kAlertStopIcon = FOUR_CHAR_CODE('stop')
kAppleTalkIcon = FOUR_CHAR_CODE('atlk')
kAppleTalkZoneIcon = FOUR_CHAR_CODE('atzn')
kAFPServerIcon = FOUR_CHAR_CODE('afps')
kFTPServerIcon = FOUR_CHAR_CODE('ftps')
kHTTPServerIcon = FOUR_CHAR_CODE('htps')
kGenericNetworkIcon = FOUR_CHAR_CODE('gnet')
kIPFileServerIcon = FOUR_CHAR_CODE('isrv')
kToolbarCustomizeIcon = FOUR_CHAR_CODE('tcus')
kToolbarDeleteIcon = FOUR_CHAR_CODE('tdel')
kToolbarFavoritesIcon = FOUR_CHAR_CODE('tfav')
kToolbarHomeIcon = FOUR_CHAR_CODE('thom')
kAppleLogoIcon = FOUR_CHAR_CODE('capl')
kAppleMenuIcon = FOUR_CHAR_CODE('sapl')
kBackwardArrowIcon = FOUR_CHAR_CODE('baro')
kFavoriteItemsIcon = FOUR_CHAR_CODE('favr')
kForwardArrowIcon = FOUR_CHAR_CODE('faro')
kGridIcon = FOUR_CHAR_CODE('grid')
kHelpIcon = FOUR_CHAR_CODE('help')
kKeepArrangedIcon = FOUR_CHAR_CODE('arng')
kLockedIcon = FOUR_CHAR_CODE('lock')
kNoFilesIcon = FOUR_CHAR_CODE('nfil')
kNoFolderIcon = FOUR_CHAR_CODE('nfld')
kNoWriteIcon = FOUR_CHAR_CODE('nwrt')
kProtectedApplicationFolderIcon = FOUR_CHAR_CODE('papp')
kProtectedSystemFolderIcon = FOUR_CHAR_CODE('psys')
kRecentItemsIcon = FOUR_CHAR_CODE('rcnt')
kShortcutIcon = FOUR_CHAR_CODE('shrt')
kSortAscendingIcon = FOUR_CHAR_CODE('asnd')
kSortDescendingIcon = FOUR_CHAR_CODE('dsnd')
kUnlockedIcon = FOUR_CHAR_CODE('ulck')
kConnectToIcon = FOUR_CHAR_CODE('cnct')
kGenericWindowIcon = FOUR_CHAR_CODE('gwin')
kQuestionMarkIcon = FOUR_CHAR_CODE('ques')
kDeleteAliasIcon = FOUR_CHAR_CODE('dali')
kEjectMediaIcon = FOUR_CHAR_CODE('ejec')
kBurningIcon = FOUR_CHAR_CODE('burn')
kRightContainerArrowIcon = FOUR_CHAR_CODE('rcar')
kIconServicesNormalUsageFlag = 0
kIconServicesCatalogInfoMask = (kFSCatInfoNodeID | kFSCatInfoParentDirID | kFSCatInfoVolume | kFSCatInfoNodeFlags | kFSCatInfoFinderInfo | kFSCatInfoFinderXInfo | kFSCatInfoUserAccess)
kPlotIconRefNormalFlags = 0L
kPlotIconRefNoImage = (1 << 1)
kPlotIconRefNoMask = (1 << 2)
kIconFamilyType = FOUR_CHAR_CODE('icns')
| apache-2.0 |
ray-project/ray | rllib/utils/annotations.py | 2 | 1536 | def override(cls):
"""Annotation for documenting method overrides.
Args:
cls (type): The superclass that provides the overridden method. If this
cls does not actually have the method, an error is raised.
"""
def check_override(method):
if method.__name__ not in dir(cls):
raise NameError("{} does not override any method of {}".format(
method, cls))
return method
return check_override
def PublicAPI(obj):
"""Annotation for documenting public APIs.
Public APIs are classes and methods exposed to end users of RLlib. You
can expect these APIs to remain stable across RLlib releases.
Subclasses that inherit from a ``@PublicAPI`` base class can be
assumed part of the RLlib public API as well (e.g., all trainer classes
are in public API because Trainer is ``@PublicAPI``).
In addition, you can assume all trainer configurations are part of their
public API as well.
"""
return obj
def DeveloperAPI(obj):
"""Annotation for documenting developer APIs.
Developer APIs are classes and methods explicitly exposed to developers
for the purposes of building custom algorithms or advanced training
strategies on top of RLlib internals. You can generally expect these APIs
to be stable sans minor changes (but less stable than public APIs).
Subclasses that inherit from a ``@DeveloperAPI`` base class can be
assumed part of the RLlib developer API as well.
"""
return obj
| apache-2.0 |
akash1808/glance | glance/tests/unit/common/test_signature_utils.py | 2 | 15922 | # Copyright (c) The Johns Hopkins University/Applied Physics Laboratory
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import base64
import mock
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives.asymmetric import rsa
from glance.common import exception
from glance.common import signature_utils
from glance.tests import utils as test_utils
TEST_PRIVATE_KEY = rsa.generate_private_key(public_exponent=3,
key_size=1024,
backend=default_backend())
# Required image property names
(SIGNATURE, HASH_METHOD, KEY_TYPE, CERT_UUID) = (
signature_utils.SIGNATURE,
signature_utils.HASH_METHOD,
signature_utils.KEY_TYPE,
signature_utils.CERT_UUID
)
# Optional image property names for RSA-PSS
(MASK_GEN_ALG, PSS_SALT_LENGTH) = (
signature_utils.MASK_GEN_ALG,
signature_utils.PSS_SALT_LENGTH
)
class FakeKeyManager(object):
def __init__(self):
self.certs = {'invalid_format_cert':
FakeCastellanCertificate('A' * 256, 'BLAH'),
'valid_format_cert':
FakeCastellanCertificate('A' * 256, 'X.509')}
def get(self, context, cert_uuid):
cert = self.certs.get(cert_uuid)
if cert is None:
raise Exception("No matching certificate found.")
return cert
class FakeCastellanCertificate(object):
def __init__(self, data, cert_format):
self.data = data
self.cert_format = cert_format
@property
def format(self):
return self.cert_format
def get_encoded(self):
return self.data
class FakeCryptoCertificate(object):
def __init__(self, pub_key):
self.pub_key = pub_key
def public_key(self):
return self.pub_key
class BadPublicKey(object):
def verifier(self, signature, padding, hash_method):
return None
class TestSignatureUtils(test_utils.BaseTestCase):
"""Test methods of signature_utils"""
def test_should_verify_signature(self):
image_props = {CERT_UUID: 'CERT_UUID',
HASH_METHOD: 'HASH_METHOD',
SIGNATURE: 'SIGNATURE',
KEY_TYPE: 'SIG_KEY_TYPE'}
self.assertTrue(signature_utils.should_verify_signature(image_props))
def test_should_verify_signature_fail(self):
bad_image_properties = [{CERT_UUID: 'CERT_UUID',
HASH_METHOD: 'HASH_METHOD',
SIGNATURE: 'SIGNATURE'},
{CERT_UUID: 'CERT_UUID',
HASH_METHOD: 'HASH_METHOD',
KEY_TYPE: 'SIG_KEY_TYPE'},
{CERT_UUID: 'CERT_UUID',
SIGNATURE: 'SIGNATURE',
KEY_TYPE: 'SIG_KEY_TYPE'},
{HASH_METHOD: 'HASH_METHOD',
SIGNATURE: 'SIGNATURE',
KEY_TYPE: 'SIG_KEY_TYPE'}]
for bad_props in bad_image_properties:
result = signature_utils.should_verify_signature(bad_props)
self.assertFalse(result)
@mock.patch('glance.common.signature_utils.get_public_key')
def test_verify_signature_PSS(self, mock_get_pub_key):
checksum_hash = '224626ae19824466f2a7f39ab7b80f7f'
mock_get_pub_key.return_value = TEST_PRIVATE_KEY.public_key()
for hash_name, hash_alg in signature_utils.HASH_METHODS.iteritems():
signer = TEST_PRIVATE_KEY.signer(
padding.PSS(
mgf=padding.MGF1(hash_alg),
salt_length=padding.PSS.MAX_LENGTH
),
hash_alg
)
signer.update(checksum_hash)
signature = base64.b64encode(signer.finalize())
image_props = {CERT_UUID:
'fea14bc2-d75f-4ba5-bccc-b5c924ad0693',
HASH_METHOD: hash_name,
KEY_TYPE: 'RSA-PSS',
MASK_GEN_ALG: 'MGF1',
SIGNATURE: signature}
self.assertTrue(signature_utils.verify_signature(None,
checksum_hash,
image_props))
@mock.patch('glance.common.signature_utils.get_public_key')
def test_verify_signature_custom_PSS_salt(self, mock_get_pub_key):
checksum_hash = '224626ae19824466f2a7f39ab7b80f7f'
mock_get_pub_key.return_value = TEST_PRIVATE_KEY.public_key()
custom_salt_length = 32
for hash_name, hash_alg in signature_utils.HASH_METHODS.iteritems():
signer = TEST_PRIVATE_KEY.signer(
padding.PSS(
mgf=padding.MGF1(hash_alg),
salt_length=custom_salt_length
),
hash_alg
)
signer.update(checksum_hash)
signature = base64.b64encode(signer.finalize())
image_props = {CERT_UUID:
'fea14bc2-d75f-4ba5-bccc-b5c924ad0693',
HASH_METHOD: hash_name,
KEY_TYPE: 'RSA-PSS',
MASK_GEN_ALG: 'MGF1',
PSS_SALT_LENGTH: custom_salt_length,
SIGNATURE: signature}
self.assertTrue(signature_utils.verify_signature(None,
checksum_hash,
image_props))
@mock.patch('glance.common.signature_utils.get_public_key')
def test_verify_signature_bad_signature(self, mock_get_pub_key):
checksum_hash = '224626ae19824466f2a7f39ab7b80f7f'
mock_get_pub_key.return_value = TEST_PRIVATE_KEY.public_key()
image_properties = {CERT_UUID:
'fea14bc2-d75f-4ba5-bccc-b5c924ad0693',
HASH_METHOD: 'SHA-256',
KEY_TYPE: 'RSA-PSS',
MASK_GEN_ALG: 'MGF1',
SIGNATURE: 'BLAH'}
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Signature verification failed.',
signature_utils.verify_signature,
None, checksum_hash, image_properties)
@mock.patch('glance.common.signature_utils.should_verify_signature')
def test_verify_signature_invalid_image_props(self, mock_should):
mock_should.return_value = False
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Required image properties for signature'
' verification do not exist. Cannot verify'
' signature.',
signature_utils.verify_signature,
None, None, None)
@mock.patch('glance.common.signature_utils.get_public_key')
def test_verify_signature_bad_sig_key_type(self, mock_get_pub_key):
checksum_hash = '224626ae19824466f2a7f39ab7b80f7f'
mock_get_pub_key.return_value = TEST_PRIVATE_KEY.public_key()
image_properties = {CERT_UUID:
'fea14bc2-d75f-4ba5-bccc-b5c924ad0693',
HASH_METHOD: 'SHA-256',
KEY_TYPE: 'BLAH',
MASK_GEN_ALG: 'MGF1',
SIGNATURE: 'BLAH'}
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Invalid signature key type: .*',
signature_utils.verify_signature,
None, checksum_hash, image_properties)
@mock.patch('glance.common.signature_utils.get_public_key')
def test_verify_signature_RSA_no_mask_gen(self, mock_get_pub_key):
checksum_hash = '224626ae19824466f2a7f39ab7b80f7f'
mock_get_pub_key.return_value = TEST_PRIVATE_KEY.public_key()
image_properties = {CERT_UUID:
'fea14bc2-d75f-4ba5-bccc-b5c924ad0693',
HASH_METHOD: 'SHA-256',
KEY_TYPE: 'RSA-PSS',
SIGNATURE: 'BLAH'}
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Signature verification failed.',
signature_utils.verify_signature,
None, checksum_hash, image_properties)
@mock.patch('glance.common.signature_utils.get_public_key')
def test_verify_signature_RSA_bad_mask_gen(self, mock_get_pub_key):
checksum_hash = '224626ae19824466f2a7f39ab7b80f7f'
mock_get_pub_key.return_value = TEST_PRIVATE_KEY.public_key()
image_properties = {CERT_UUID:
'fea14bc2-d75f-4ba5-bccc-b5c924ad0693',
HASH_METHOD: 'SHA-256',
KEY_TYPE: 'RSA-PSS',
MASK_GEN_ALG: 'BLAH',
SIGNATURE: 'BLAH'}
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Invalid mask_gen_algorithm: .*',
signature_utils.verify_signature,
None, checksum_hash, image_properties)
@mock.patch('glance.common.signature_utils.get_public_key')
def test_verify_signature_bad_pss_salt(self, mock_get_pub_key):
checksum_hash = '224626ae19824466f2a7f39ab7b80f7f'
mock_get_pub_key.return_value = TEST_PRIVATE_KEY.public_key()
image_properties = {CERT_UUID:
'fea14bc2-d75f-4ba5-bccc-b5c924ad0693',
HASH_METHOD: 'SHA-256',
KEY_TYPE: 'RSA-PSS',
MASK_GEN_ALG: 'MGF1',
PSS_SALT_LENGTH: 'BLAH',
SIGNATURE: 'BLAH'}
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Invalid pss_salt_length: .*',
signature_utils.verify_signature,
None, checksum_hash, image_properties)
@mock.patch('glance.common.signature_utils.get_public_key')
def test_verify_signature_verifier_none(self, mock_get_pub_key):
checksum_hash = '224626ae19824466f2a7f39ab7b80f7f'
mock_get_pub_key.return_value = BadPublicKey()
image_properties = {CERT_UUID:
'fea14bc2-d75f-4ba5-bccc-b5c924ad0693',
HASH_METHOD: 'SHA-256',
KEY_TYPE: 'RSA-PSS',
MASK_GEN_ALG: 'MGF1',
SIGNATURE: 'BLAH'}
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Error occurred while verifying'
' the signature',
signature_utils.verify_signature,
None, checksum_hash, image_properties)
def test_get_signature(self):
signature = 'A' * 256
data = base64.b64encode(signature)
self.assertEqual(signature,
signature_utils.get_signature(data))
def test_get_signature_fail(self):
self.assertRaisesRegexp(exception.SignatureVerificationError,
'The signature data was not properly'
' encoded using base64',
signature_utils.get_signature, '///')
def test_get_hash_method(self):
hash_dict = signature_utils.HASH_METHODS
for hash_name in hash_dict.keys():
hash_class = signature_utils.get_hash_method(hash_name).__class__
self.assertIsInstance(hash_dict[hash_name], hash_class)
def test_get_hash_method_fail(self):
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Invalid signature hash method: .*',
signature_utils.get_hash_method, 'SHA-2')
def test_get_signature_key_type(self):
for sig_format in signature_utils.SIGNATURE_KEY_TYPES:
result = signature_utils.get_signature_key_type(sig_format)
self.assertEqual(sig_format, result)
def test_get_signature_key_type_fail(self):
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Invalid signature key type: .*',
signature_utils.get_signature_key_type,
'RSB-PSS')
@mock.patch('glance.common.signature_utils.get_certificate')
def test_get_public_key(self, mock_get_cert):
fake_cert = FakeCryptoCertificate(TEST_PRIVATE_KEY.public_key())
mock_get_cert.return_value = fake_cert
result_pub_key = signature_utils.get_public_key(None, None, 'RSA-PSS')
self.assertEqual(fake_cert.public_key(), result_pub_key)
@mock.patch('glance.common.signature_utils.get_certificate')
def test_get_public_key_invalid_key(self, mock_get_certificate):
bad_pub_key = 'A' * 256
mock_get_certificate.return_value = FakeCryptoCertificate(bad_pub_key)
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Invalid public key type for '
'signature key type: .*',
signature_utils.get_public_key, None,
None, 'RSA-PSS')
@mock.patch('cryptography.x509.load_der_x509_certificate')
@mock.patch('castellan.key_manager.API', return_value=FakeKeyManager())
def test_get_certificate(self, mock_key_manager_API, mock_load_cert):
cert_uuid = 'valid_format_cert'
x509_cert = FakeCryptoCertificate(TEST_PRIVATE_KEY.public_key())
mock_load_cert.return_value = x509_cert
self.assertEqual(x509_cert,
signature_utils.get_certificate(None, cert_uuid))
@mock.patch('castellan.key_manager.API', return_value=FakeKeyManager())
def test_get_certificate_key_manager_fail(self, mock_key_manager_API):
bad_cert_uuid = 'fea14bc2-d75f-4ba5-bccc-b5c924ad0695'
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Unable to retrieve certificate with ID: .*',
signature_utils.get_certificate, None,
bad_cert_uuid)
@mock.patch('castellan.key_manager.API', return_value=FakeKeyManager())
def test_get_certificate_invalid_format(self, mock_API):
cert_uuid = 'invalid_format_cert'
self.assertRaisesRegexp(exception.SignatureVerificationError,
'Invalid certificate format: .*',
signature_utils.get_certificate, None,
cert_uuid)
| apache-2.0 |
DreamerKing/LightweightHtmlWidgets | publish-rc/v1.1/files/Ipy.Lib/bdb.py | 108 | 21084 | """Debugger basics"""
import fnmatch
import sys
import os
import types
__all__ = ["BdbQuit","Bdb","Breakpoint"]
class BdbQuit(Exception):
"""Exception to give up completely"""
class Bdb:
"""Generic Python debugger base class.
This class takes care of details of the trace facility;
a derived class should implement user interaction.
The standard debugger class (pdb.Pdb) is an example.
"""
def __init__(self, skip=None):
self.skip = set(skip) if skip else None
self.breaks = {}
self.fncache = {}
def canonic(self, filename):
if filename == "<" + filename[1:-1] + ">":
return filename
canonic = self.fncache.get(filename)
if not canonic:
canonic = os.path.abspath(filename)
canonic = os.path.normcase(canonic)
self.fncache[filename] = canonic
return canonic
def reset(self):
import linecache
linecache.checkcache()
self.botframe = None
self._set_stopinfo(None, None)
def trace_dispatch(self, frame, event, arg):
if self.quitting:
return # None
if event == 'line':
return self.dispatch_line(frame)
if event == 'call':
return self.dispatch_call(frame, arg)
if event == 'return':
return self.dispatch_return(frame, arg)
if event == 'exception':
return self.dispatch_exception(frame, arg)
if event == 'c_call':
return self.trace_dispatch
if event == 'c_exception':
return self.trace_dispatch
if event == 'c_return':
return self.trace_dispatch
print 'bdb.Bdb.dispatch: unknown debugging event:', repr(event)
return self.trace_dispatch
def dispatch_line(self, frame):
if self.stop_here(frame) or self.break_here(frame):
self.user_line(frame)
if self.quitting: raise BdbQuit
return self.trace_dispatch
def dispatch_call(self, frame, arg):
# XXX 'arg' is no longer used
if self.botframe is None:
# First call of dispatch since reset()
self.botframe = frame.f_back # (CT) Note that this may also be None!
return self.trace_dispatch
if not (self.stop_here(frame) or self.break_anywhere(frame)):
# No need to trace this function
return # None
self.user_call(frame, arg)
if self.quitting: raise BdbQuit
return self.trace_dispatch
def dispatch_return(self, frame, arg):
if self.stop_here(frame) or frame == self.returnframe:
self.user_return(frame, arg)
if self.quitting: raise BdbQuit
return self.trace_dispatch
def dispatch_exception(self, frame, arg):
if self.stop_here(frame):
self.user_exception(frame, arg)
if self.quitting: raise BdbQuit
return self.trace_dispatch
# Normally derived classes don't override the following
# methods, but they may if they want to redefine the
# definition of stopping and breakpoints.
def is_skipped_module(self, module_name):
for pattern in self.skip:
if fnmatch.fnmatch(module_name, pattern):
return True
return False
def stop_here(self, frame):
# (CT) stopframe may now also be None, see dispatch_call.
# (CT) the former test for None is therefore removed from here.
if self.skip and \
self.is_skipped_module(frame.f_globals.get('__name__')):
return False
if frame is self.stopframe:
if self.stoplineno == -1:
return False
return frame.f_lineno >= self.stoplineno
while frame is not None and frame is not self.stopframe:
if frame is self.botframe:
return True
frame = frame.f_back
return False
def break_here(self, frame):
filename = self.canonic(frame.f_code.co_filename)
if not filename in self.breaks:
return False
lineno = frame.f_lineno
if not lineno in self.breaks[filename]:
# The line itself has no breakpoint, but maybe the line is the
# first line of a function with breakpoint set by function name.
lineno = frame.f_code.co_firstlineno
if not lineno in self.breaks[filename]:
return False
# flag says ok to delete temp. bp
(bp, flag) = effective(filename, lineno, frame)
if bp:
self.currentbp = bp.number
if (flag and bp.temporary):
self.do_clear(str(bp.number))
return True
else:
return False
def do_clear(self, arg):
raise NotImplementedError, "subclass of bdb must implement do_clear()"
def break_anywhere(self, frame):
return self.canonic(frame.f_code.co_filename) in self.breaks
# Derived classes should override the user_* methods
# to gain control.
def user_call(self, frame, argument_list):
"""This method is called when there is the remote possibility
that we ever need to stop in this function."""
pass
def user_line(self, frame):
"""This method is called when we stop or break at this line."""
pass
def user_return(self, frame, return_value):
"""This method is called when a return trap is set here."""
pass
def user_exception(self, frame, exc_info):
exc_type, exc_value, exc_traceback = exc_info
"""This method is called if an exception occurs,
but only if we are to stop at or just below this level."""
pass
def _set_stopinfo(self, stopframe, returnframe, stoplineno=0):
self.stopframe = stopframe
self.returnframe = returnframe
self.quitting = 0
# stoplineno >= 0 means: stop at line >= the stoplineno
# stoplineno -1 means: don't stop at all
self.stoplineno = stoplineno
# Derived classes and clients can call the following methods
# to affect the stepping state.
def set_until(self, frame): #the name "until" is borrowed from gdb
"""Stop when the line with the line no greater than the current one is
reached or when returning from current frame"""
self._set_stopinfo(frame, frame, frame.f_lineno+1)
def set_step(self):
"""Stop after one line of code."""
self._set_stopinfo(None, None)
def set_next(self, frame):
"""Stop on the next line in or below the given frame."""
self._set_stopinfo(frame, None)
def set_return(self, frame):
"""Stop when returning from the given frame."""
self._set_stopinfo(frame.f_back, frame)
def set_trace(self, frame=None):
"""Start debugging from `frame`.
If frame is not specified, debugging starts from caller's frame.
"""
if frame is None:
frame = sys._getframe().f_back
self.reset()
while frame:
frame.f_trace = self.trace_dispatch
self.botframe = frame
frame = frame.f_back
self.set_step()
sys.settrace(self.trace_dispatch)
def set_continue(self):
# Don't stop except at breakpoints or when finished
self._set_stopinfo(self.botframe, None, -1)
if not self.breaks:
# no breakpoints; run without debugger overhead
sys.settrace(None)
frame = sys._getframe().f_back
while frame and frame is not self.botframe:
del frame.f_trace
frame = frame.f_back
def set_quit(self):
self.stopframe = self.botframe
self.returnframe = None
self.quitting = 1
sys.settrace(None)
# Derived classes and clients can call the following methods
# to manipulate breakpoints. These methods return an
# error message is something went wrong, None if all is well.
# Set_break prints out the breakpoint line and file:lineno.
# Call self.get_*break*() to see the breakpoints or better
# for bp in Breakpoint.bpbynumber: if bp: bp.bpprint().
def set_break(self, filename, lineno, temporary=0, cond = None,
funcname=None):
filename = self.canonic(filename)
import linecache # Import as late as possible
line = linecache.getline(filename, lineno)
if not line:
return 'Line %s:%d does not exist' % (filename,
lineno)
if not filename in self.breaks:
self.breaks[filename] = []
list = self.breaks[filename]
if not lineno in list:
list.append(lineno)
bp = Breakpoint(filename, lineno, temporary, cond, funcname)
def _prune_breaks(self, filename, lineno):
if (filename, lineno) not in Breakpoint.bplist:
self.breaks[filename].remove(lineno)
if not self.breaks[filename]:
del self.breaks[filename]
def clear_break(self, filename, lineno):
filename = self.canonic(filename)
if not filename in self.breaks:
return 'There are no breakpoints in %s' % filename
if lineno not in self.breaks[filename]:
return 'There is no breakpoint at %s:%d' % (filename,
lineno)
# If there's only one bp in the list for that file,line
# pair, then remove the breaks entry
for bp in Breakpoint.bplist[filename, lineno][:]:
bp.deleteMe()
self._prune_breaks(filename, lineno)
def clear_bpbynumber(self, arg):
try:
number = int(arg)
except:
return 'Non-numeric breakpoint number (%s)' % arg
try:
bp = Breakpoint.bpbynumber[number]
except IndexError:
return 'Breakpoint number (%d) out of range' % number
if not bp:
return 'Breakpoint (%d) already deleted' % number
bp.deleteMe()
self._prune_breaks(bp.file, bp.line)
def clear_all_file_breaks(self, filename):
filename = self.canonic(filename)
if not filename in self.breaks:
return 'There are no breakpoints in %s' % filename
for line in self.breaks[filename]:
blist = Breakpoint.bplist[filename, line]
for bp in blist:
bp.deleteMe()
del self.breaks[filename]
def clear_all_breaks(self):
if not self.breaks:
return 'There are no breakpoints'
for bp in Breakpoint.bpbynumber:
if bp:
bp.deleteMe()
self.breaks = {}
def get_break(self, filename, lineno):
filename = self.canonic(filename)
return filename in self.breaks and \
lineno in self.breaks[filename]
def get_breaks(self, filename, lineno):
filename = self.canonic(filename)
return filename in self.breaks and \
lineno in self.breaks[filename] and \
Breakpoint.bplist[filename, lineno] or []
def get_file_breaks(self, filename):
filename = self.canonic(filename)
if filename in self.breaks:
return self.breaks[filename]
else:
return []
def get_all_breaks(self):
return self.breaks
# Derived classes and clients can call the following method
# to get a data structure representing a stack trace.
def get_stack(self, f, t):
stack = []
if t and t.tb_frame is f:
t = t.tb_next
while f is not None:
stack.append((f, f.f_lineno))
if f is self.botframe:
break
f = f.f_back
stack.reverse()
i = max(0, len(stack) - 1)
while t is not None:
stack.append((t.tb_frame, t.tb_lineno))
t = t.tb_next
if f is None:
i = max(0, len(stack) - 1)
return stack, i
#
def format_stack_entry(self, frame_lineno, lprefix=': '):
import linecache, repr
frame, lineno = frame_lineno
filename = self.canonic(frame.f_code.co_filename)
s = '%s(%r)' % (filename, lineno)
if frame.f_code.co_name:
s = s + frame.f_code.co_name
else:
s = s + "<lambda>"
if '__args__' in frame.f_locals:
args = frame.f_locals['__args__']
else:
args = None
if args:
s = s + repr.repr(args)
else:
s = s + '()'
if '__return__' in frame.f_locals:
rv = frame.f_locals['__return__']
s = s + '->'
s = s + repr.repr(rv)
line = linecache.getline(filename, lineno, frame.f_globals)
if line: s = s + lprefix + line.strip()
return s
# The following two methods can be called by clients to use
# a debugger to debug a statement, given as a string.
def run(self, cmd, globals=None, locals=None):
if globals is None:
import __main__
globals = __main__.__dict__
if locals is None:
locals = globals
self.reset()
sys.settrace(self.trace_dispatch)
if not isinstance(cmd, types.CodeType):
cmd = cmd+'\n'
try:
exec cmd in globals, locals
except BdbQuit:
pass
finally:
self.quitting = 1
sys.settrace(None)
def runeval(self, expr, globals=None, locals=None):
if globals is None:
import __main__
globals = __main__.__dict__
if locals is None:
locals = globals
self.reset()
sys.settrace(self.trace_dispatch)
if not isinstance(expr, types.CodeType):
expr = expr+'\n'
try:
return eval(expr, globals, locals)
except BdbQuit:
pass
finally:
self.quitting = 1
sys.settrace(None)
def runctx(self, cmd, globals, locals):
# B/W compatibility
self.run(cmd, globals, locals)
# This method is more useful to debug a single function call.
def runcall(self, func, *args, **kwds):
self.reset()
sys.settrace(self.trace_dispatch)
res = None
try:
res = func(*args, **kwds)
except BdbQuit:
pass
finally:
self.quitting = 1
sys.settrace(None)
return res
def set_trace():
Bdb().set_trace()
class Breakpoint:
"""Breakpoint class
Implements temporary breakpoints, ignore counts, disabling and
(re)-enabling, and conditionals.
Breakpoints are indexed by number through bpbynumber and by
the file,line tuple using bplist. The former points to a
single instance of class Breakpoint. The latter points to a
list of such instances since there may be more than one
breakpoint per line.
"""
# XXX Keeping state in the class is a mistake -- this means
# you cannot have more than one active Bdb instance.
next = 1 # Next bp to be assigned
bplist = {} # indexed by (file, lineno) tuple
bpbynumber = [None] # Each entry is None or an instance of Bpt
# index 0 is unused, except for marking an
# effective break .... see effective()
def __init__(self, file, line, temporary=0, cond=None, funcname=None):
self.funcname = funcname
# Needed if funcname is not None.
self.func_first_executable_line = None
self.file = file # This better be in canonical form!
self.line = line
self.temporary = temporary
self.cond = cond
self.enabled = 1
self.ignore = 0
self.hits = 0
self.number = Breakpoint.next
Breakpoint.next = Breakpoint.next + 1
# Build the two lists
self.bpbynumber.append(self)
if (file, line) in self.bplist:
self.bplist[file, line].append(self)
else:
self.bplist[file, line] = [self]
def deleteMe(self):
index = (self.file, self.line)
self.bpbynumber[self.number] = None # No longer in list
self.bplist[index].remove(self)
if not self.bplist[index]:
# No more bp for this f:l combo
del self.bplist[index]
def enable(self):
self.enabled = 1
def disable(self):
self.enabled = 0
def bpprint(self, out=None):
if out is None:
out = sys.stdout
if self.temporary:
disp = 'del '
else:
disp = 'keep '
if self.enabled:
disp = disp + 'yes '
else:
disp = disp + 'no '
print >>out, '%-4dbreakpoint %s at %s:%d' % (self.number, disp,
self.file, self.line)
if self.cond:
print >>out, '\tstop only if %s' % (self.cond,)
if self.ignore:
print >>out, '\tignore next %d hits' % (self.ignore)
if (self.hits):
if (self.hits > 1): ss = 's'
else: ss = ''
print >>out, ('\tbreakpoint already hit %d time%s' %
(self.hits, ss))
# -----------end of Breakpoint class----------
def checkfuncname(b, frame):
"""Check whether we should break here because of `b.funcname`."""
if not b.funcname:
# Breakpoint was set via line number.
if b.line != frame.f_lineno:
# Breakpoint was set at a line with a def statement and the function
# defined is called: don't break.
return False
return True
# Breakpoint set via function name.
if frame.f_code.co_name != b.funcname:
# It's not a function call, but rather execution of def statement.
return False
# We are in the right frame.
if not b.func_first_executable_line:
# The function is entered for the 1st time.
b.func_first_executable_line = frame.f_lineno
if b.func_first_executable_line != frame.f_lineno:
# But we are not at the first line number: don't break.
return False
return True
# Determines if there is an effective (active) breakpoint at this
# line of code. Returns breakpoint number or 0 if none
def effective(file, line, frame):
"""Determine which breakpoint for this file:line is to be acted upon.
Called only if we know there is a bpt at this
location. Returns breakpoint that was triggered and a flag
that indicates if it is ok to delete a temporary bp.
"""
possibles = Breakpoint.bplist[file,line]
for i in range(0, len(possibles)):
b = possibles[i]
if b.enabled == 0:
continue
if not checkfuncname(b, frame):
continue
# Count every hit when bp is enabled
b.hits = b.hits + 1
if not b.cond:
# If unconditional, and ignoring,
# go on to next, else break
if b.ignore > 0:
b.ignore = b.ignore -1
continue
else:
# breakpoint and marker that's ok
# to delete if temporary
return (b,1)
else:
# Conditional bp.
# Ignore count applies only to those bpt hits where the
# condition evaluates to true.
try:
val = eval(b.cond, frame.f_globals,
frame.f_locals)
if val:
if b.ignore > 0:
b.ignore = b.ignore -1
# continue
else:
return (b,1)
# else:
# continue
except:
# if eval fails, most conservative
# thing is to stop on breakpoint
# regardless of ignore count.
# Don't delete temporary,
# as another hint to user.
return (b,0)
return (None, None)
# -------------------- testing --------------------
class Tdb(Bdb):
def user_call(self, frame, args):
name = frame.f_code.co_name
if not name: name = '???'
print '+++ call', name, args
def user_line(self, frame):
import linecache
name = frame.f_code.co_name
if not name: name = '???'
fn = self.canonic(frame.f_code.co_filename)
line = linecache.getline(fn, frame.f_lineno, frame.f_globals)
print '+++', fn, frame.f_lineno, name, ':', line.strip()
def user_return(self, frame, retval):
print '+++ return', retval
def user_exception(self, frame, exc_stuff):
print '+++ exception', exc_stuff
self.set_continue()
def foo(n):
print 'foo(', n, ')'
x = bar(n*10)
print 'bar returned', x
def bar(a):
print 'bar(', a, ')'
return a/2
def test():
t = Tdb()
t.run('import bdb; bdb.foo(10)')
# end
| gpl-3.0 |
CouchPotato/CouchPotatoServer | couchpotato/core/downloaders/blackhole.py | 16 | 7939 | from __future__ import with_statement
import os
import traceback
from couchpotato.core._base.downloader.main import DownloaderBase
from couchpotato.core.helpers.encoding import sp
from couchpotato.core.helpers.variable import getDownloadDir
from couchpotato.core.logger import CPLog
from couchpotato.environment import Env
log = CPLog(__name__)
autoload = 'Blackhole'
class Blackhole(DownloaderBase):
protocol = ['nzb', 'torrent', 'torrent_magnet']
status_support = False
def download(self, data = None, media = None, filedata = None):
""" Send a torrent/nzb file to the downloader
:param data: dict returned from provider
Contains the release information
:param media: media dict with information
Used for creating the filename when possible
:param filedata: downloaded torrent/nzb filedata
The file gets downloaded in the searcher and send to this function
This is done to have failed checking before using the downloader, so the downloader
doesn't need to worry about that
:return: boolean
One faile returns false, but the downloaded should log his own errors
"""
if not media: media = {}
if not data: data = {}
directory = self.conf('directory')
# The folder needs to exist
if not directory or not os.path.isdir(directory):
log.error('No directory set for blackhole %s download.', data.get('protocol'))
else:
try:
# Filedata can be empty, which probably means it a magnet link
if not filedata or len(filedata) < 50:
try:
if data.get('protocol') == 'torrent_magnet':
filedata = self.magnetToTorrent(data.get('url'))
data['protocol'] = 'torrent'
except:
log.error('Failed download torrent via magnet url: %s', traceback.format_exc())
# If it's still empty, either write the magnet link to a .magnet file, or error out.
if not filedata or len(filedata) < 50:
if self.conf('magnet_file'):
filedata = data.get('url') + '\n'
data['protocol'] = 'magnet'
else:
log.error('No nzb/torrent available: %s', data.get('url'))
return False
# Create filename with imdb id and other nice stuff
file_name = self.createFileName(data, filedata, media)
full_path = os.path.join(directory, file_name)
# People want thinks nice and tidy, create a subdir
if self.conf('create_subdir'):
try:
new_path = os.path.splitext(full_path)[0]
if not os.path.exists(new_path):
os.makedirs(new_path)
full_path = os.path.join(new_path, file_name)
except:
log.error('Couldnt create sub dir, reverting to old one: %s', full_path)
try:
# Make sure the file doesn't exist yet, no need in overwriting it
if not os.path.isfile(full_path):
log.info('Downloading %s to %s.', (data.get('protocol'), full_path))
with open(full_path, 'wb') as f:
f.write(filedata)
os.chmod(full_path, Env.getPermission('file'))
return self.downloadReturnId('')
else:
log.info('File %s already exists.', full_path)
return self.downloadReturnId('')
except:
log.error('Failed to download to blackhole %s', traceback.format_exc())
pass
except:
log.info('Failed to download file %s: %s', (data.get('name'), traceback.format_exc()))
return False
return False
def test(self):
""" Test and see if the directory is writable
:return: boolean
"""
directory = self.conf('directory')
if directory and os.path.isdir(directory):
test_file = sp(os.path.join(directory, 'couchpotato_test.txt'))
# Check if folder is writable
self.createFile(test_file, 'This is a test file')
if os.path.isfile(test_file):
os.remove(test_file)
return True
return False
def getEnabledProtocol(self):
""" What protocols is this downloaded used for
:return: list with protocols
"""
if self.conf('use_for') == 'both':
return super(Blackhole, self).getEnabledProtocol()
elif self.conf('use_for') == 'torrent':
return ['torrent', 'torrent_magnet']
else:
return ['nzb']
def isEnabled(self, manual = False, data = None):
""" Check if protocol is used (and enabled)
:param manual: The user has clicked to download a link through the webUI
:param data: dict returned from provider
Contains the release information
:return: boolean
"""
if not data: data = {}
for_protocol = ['both']
if data and 'torrent' in data.get('protocol'):
for_protocol.append('torrent')
elif data:
for_protocol.append(data.get('protocol'))
return super(Blackhole, self).isEnabled(manual, data) and \
((self.conf('use_for') in for_protocol))
config = [{
'name': 'blackhole',
'order': 30,
'groups': [
{
'tab': 'downloaders',
'list': 'download_providers',
'name': 'blackhole',
'label': 'Black hole',
'description': 'Download the NZB/Torrent to a specific folder. <em>Note: Seeding and copying/linking features do <strong>not</strong> work with Black hole</em>.',
'wizard': True,
'options': [
{
'name': 'enabled',
'default': True,
'type': 'enabler',
'radio_group': 'nzb,torrent',
},
{
'name': 'directory',
'type': 'directory',
'description': 'Directory where the .nzb (or .torrent) file is saved to.',
'default': getDownloadDir()
},
{
'name': 'use_for',
'label': 'Use for',
'default': 'both',
'type': 'dropdown',
'values': [('usenet & torrents', 'both'), ('usenet', 'nzb'), ('torrent', 'torrent')],
},
{
'name': 'create_subdir',
'default': 0,
'type': 'bool',
'advanced': True,
'description': 'Create a sub directory when saving the .nzb (or .torrent).',
},
{
'name': 'manual',
'default': 0,
'type': 'bool',
'advanced': True,
'description': 'Disable this downloader for automated searches, but use it when I manually send a release.',
},
{
'name': 'magnet_file',
'default': 0,
'type': 'bool',
'advanced': True,
'description': 'If magnet file conversion fails, write down the magnet link in a .magnet file instead.',
},
],
}
],
}]
| gpl-3.0 |
raumfeld/linux-am33xx | tools/testing/selftests/tc-testing/plugin-lib/valgrindPlugin.py | 91 | 5020 | '''
run the command under test, under valgrind and collect memory leak info
as a separate test.
'''
import os
import re
import signal
from string import Template
import subprocess
import time
from TdcPlugin import TdcPlugin
from tdc_config import *
def vp_extract_num_from_string(num_as_string_maybe_with_commas):
return int(num_as_string_maybe_with_commas.replace(',',''))
class SubPlugin(TdcPlugin):
def __init__(self):
self.sub_class = 'valgrind/SubPlugin'
self.tap = ''
super().__init__()
def pre_suite(self, testcount, testidlist):
'''run commands before test_runner goes into a test loop'''
super().pre_suite(testcount, testidlist)
if self.args.verbose > 1:
print('{}.pre_suite'.format(self.sub_class))
if self.args.valgrind:
self._add_to_tap('1..{}\n'.format(self.testcount))
def post_suite(self, index):
'''run commands after test_runner goes into a test loop'''
super().post_suite(index)
self._add_to_tap('\n|---\n')
if self.args.verbose > 1:
print('{}.post_suite'.format(self.sub_class))
print('{}'.format(self.tap))
if self.args.verbose < 4:
subprocess.check_output('rm -f vgnd-*.log', shell=True)
def add_args(self, parser):
super().add_args(parser)
self.argparser_group = self.argparser.add_argument_group(
'valgrind',
'options for valgrindPlugin (run command under test under Valgrind)')
self.argparser_group.add_argument(
'-V', '--valgrind', action='store_true',
help='Run commands under valgrind')
return self.argparser
def adjust_command(self, stage, command):
super().adjust_command(stage, command)
cmdform = 'list'
cmdlist = list()
if not self.args.valgrind:
return command
if self.args.verbose > 1:
print('{}.adjust_command'.format(self.sub_class))
if not isinstance(command, list):
cmdform = 'str'
cmdlist = command.split()
else:
cmdlist = command
if stage == 'execute':
if self.args.verbose > 1:
print('adjust_command: stage is {}; inserting valgrind stuff in command [{}] list [{}]'.
format(stage, command, cmdlist))
cmdlist.insert(0, '--track-origins=yes')
cmdlist.insert(0, '--show-leak-kinds=definite,indirect')
cmdlist.insert(0, '--leak-check=full')
cmdlist.insert(0, '--log-file=vgnd-{}.log'.format(self.args.testid))
cmdlist.insert(0, '-v') # ask for summary of non-leak errors
cmdlist.insert(0, ENVIR['VALGRIND_BIN'])
else:
pass
if cmdform == 'str':
command = ' '.join(cmdlist)
else:
command = cmdlist
if self.args.verbose > 1:
print('adjust_command: return command [{}]'.format(command))
return command
def post_execute(self):
if not self.args.valgrind:
return
self.definitely_lost_re = re.compile(
r'definitely lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\sblocks', re.MULTILINE | re.DOTALL)
self.indirectly_lost_re = re.compile(
r'indirectly lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL)
self.possibly_lost_re = re.compile(
r'possibly lost:\s+([,0-9]+)bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL)
self.non_leak_error_re = re.compile(
r'ERROR SUMMARY:\s+([,0-9]+) errors from\s+([,0-9]+)\s+contexts', re.MULTILINE | re.DOTALL)
def_num = 0
ind_num = 0
pos_num = 0
nle_num = 0
# what about concurrent test runs? Maybe force them to be in different directories?
with open('vgnd-{}.log'.format(self.args.testid)) as vfd:
content = vfd.read()
def_mo = self.definitely_lost_re.search(content)
ind_mo = self.indirectly_lost_re.search(content)
pos_mo = self.possibly_lost_re.search(content)
nle_mo = self.non_leak_error_re.search(content)
if def_mo:
def_num = int(def_mo.group(2))
if ind_mo:
ind_num = int(ind_mo.group(2))
if pos_mo:
pos_num = int(pos_mo.group(2))
if nle_mo:
nle_num = int(nle_mo.group(1))
mem_results = ''
if (def_num > 0) or (ind_num > 0) or (pos_num > 0) or (nle_num > 0):
mem_results += 'not '
mem_results += 'ok {} - {}-mem # {}\n'.format(
self.args.test_ordinal, self.args.testid, 'memory leak check')
self._add_to_tap(mem_results)
if mem_results.startswith('not '):
print('{}'.format(content))
self._add_to_tap(content)
def _add_to_tap(self, more_tap_output):
self.tap += more_tap_output
| gpl-2.0 |
fronti90/kernel_lge_geefhd | tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | 12980 | 5411 | # SchedGui.py - Python extension for perf script, basic GUI code for
# traces drawing and overview.
#
# Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com>
#
# This software is distributed under the terms of the GNU General
# Public License ("GPL") version 2 as published by the Free Software
# Foundation.
try:
import wx
except ImportError:
raise ImportError, "You need to install the wxpython lib for this script"
class RootFrame(wx.Frame):
Y_OFFSET = 100
RECT_HEIGHT = 100
RECT_SPACE = 50
EVENT_MARKING_WIDTH = 5
def __init__(self, sched_tracer, title, parent = None, id = -1):
wx.Frame.__init__(self, parent, id, title)
(self.screen_width, self.screen_height) = wx.GetDisplaySize()
self.screen_width -= 10
self.screen_height -= 10
self.zoom = 0.5
self.scroll_scale = 20
self.sched_tracer = sched_tracer
self.sched_tracer.set_root_win(self)
(self.ts_start, self.ts_end) = sched_tracer.interval()
self.update_width_virtual()
self.nr_rects = sched_tracer.nr_rectangles() + 1
self.height_virtual = RootFrame.Y_OFFSET + (self.nr_rects * (RootFrame.RECT_HEIGHT + RootFrame.RECT_SPACE))
# whole window panel
self.panel = wx.Panel(self, size=(self.screen_width, self.screen_height))
# scrollable container
self.scroll = wx.ScrolledWindow(self.panel)
self.scroll.SetScrollbars(self.scroll_scale, self.scroll_scale, self.width_virtual / self.scroll_scale, self.height_virtual / self.scroll_scale)
self.scroll.EnableScrolling(True, True)
self.scroll.SetFocus()
# scrollable drawing area
self.scroll_panel = wx.Panel(self.scroll, size=(self.screen_width - 15, self.screen_height / 2))
self.scroll_panel.Bind(wx.EVT_PAINT, self.on_paint)
self.scroll_panel.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
self.scroll_panel.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
self.scroll.Bind(wx.EVT_PAINT, self.on_paint)
self.scroll.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
self.scroll.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
self.scroll.Fit()
self.Fit()
self.scroll_panel.SetDimensions(-1, -1, self.width_virtual, self.height_virtual, wx.SIZE_USE_EXISTING)
self.txt = None
self.Show(True)
def us_to_px(self, val):
return val / (10 ** 3) * self.zoom
def px_to_us(self, val):
return (val / self.zoom) * (10 ** 3)
def scroll_start(self):
(x, y) = self.scroll.GetViewStart()
return (x * self.scroll_scale, y * self.scroll_scale)
def scroll_start_us(self):
(x, y) = self.scroll_start()
return self.px_to_us(x)
def paint_rectangle_zone(self, nr, color, top_color, start, end):
offset_px = self.us_to_px(start - self.ts_start)
width_px = self.us_to_px(end - self.ts_start)
offset_py = RootFrame.Y_OFFSET + (nr * (RootFrame.RECT_HEIGHT + RootFrame.RECT_SPACE))
width_py = RootFrame.RECT_HEIGHT
dc = self.dc
if top_color is not None:
(r, g, b) = top_color
top_color = wx.Colour(r, g, b)
brush = wx.Brush(top_color, wx.SOLID)
dc.SetBrush(brush)
dc.DrawRectangle(offset_px, offset_py, width_px, RootFrame.EVENT_MARKING_WIDTH)
width_py -= RootFrame.EVENT_MARKING_WIDTH
offset_py += RootFrame.EVENT_MARKING_WIDTH
(r ,g, b) = color
color = wx.Colour(r, g, b)
brush = wx.Brush(color, wx.SOLID)
dc.SetBrush(brush)
dc.DrawRectangle(offset_px, offset_py, width_px, width_py)
def update_rectangles(self, dc, start, end):
start += self.ts_start
end += self.ts_start
self.sched_tracer.fill_zone(start, end)
def on_paint(self, event):
dc = wx.PaintDC(self.scroll_panel)
self.dc = dc
width = min(self.width_virtual, self.screen_width)
(x, y) = self.scroll_start()
start = self.px_to_us(x)
end = self.px_to_us(x + width)
self.update_rectangles(dc, start, end)
def rect_from_ypixel(self, y):
y -= RootFrame.Y_OFFSET
rect = y / (RootFrame.RECT_HEIGHT + RootFrame.RECT_SPACE)
height = y % (RootFrame.RECT_HEIGHT + RootFrame.RECT_SPACE)
if rect < 0 or rect > self.nr_rects - 1 or height > RootFrame.RECT_HEIGHT:
return -1
return rect
def update_summary(self, txt):
if self.txt:
self.txt.Destroy()
self.txt = wx.StaticText(self.panel, -1, txt, (0, (self.screen_height / 2) + 50))
def on_mouse_down(self, event):
(x, y) = event.GetPositionTuple()
rect = self.rect_from_ypixel(y)
if rect == -1:
return
t = self.px_to_us(x) + self.ts_start
self.sched_tracer.mouse_down(rect, t)
def update_width_virtual(self):
self.width_virtual = self.us_to_px(self.ts_end - self.ts_start)
def __zoom(self, x):
self.update_width_virtual()
(xpos, ypos) = self.scroll.GetViewStart()
xpos = self.us_to_px(x) / self.scroll_scale
self.scroll.SetScrollbars(self.scroll_scale, self.scroll_scale, self.width_virtual / self.scroll_scale, self.height_virtual / self.scroll_scale, xpos, ypos)
self.Refresh()
def zoom_in(self):
x = self.scroll_start_us()
self.zoom *= 2
self.__zoom(x)
def zoom_out(self):
x = self.scroll_start_us()
self.zoom /= 2
self.__zoom(x)
def on_key_press(self, event):
key = event.GetRawKeyCode()
if key == ord("+"):
self.zoom_in()
return
if key == ord("-"):
self.zoom_out()
return
key = event.GetKeyCode()
(x, y) = self.scroll.GetViewStart()
if key == wx.WXK_RIGHT:
self.scroll.Scroll(x + 1, y)
elif key == wx.WXK_LEFT:
self.scroll.Scroll(x - 1, y)
elif key == wx.WXK_DOWN:
self.scroll.Scroll(x, y + 1)
elif key == wx.WXK_UP:
self.scroll.Scroll(x, y - 1)
| gpl-2.0 |
danilito19/django | django/core/files/locks.py | 725 | 3516 | """
Portable file locking utilities.
Based partially on an example by Jonathan Feignberg in the Python
Cookbook [1] (licensed under the Python Software License) and a ctypes port by
Anatoly Techtonik for Roundup [2] (license [3]).
[1] http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203
[2] http://sourceforge.net/p/roundup/code/ci/default/tree/roundup/backends/portalocker.py
[3] http://sourceforge.net/p/roundup/code/ci/default/tree/COPYING.txt
Example Usage::
>>> from django.core.files import locks
>>> with open('./file', 'wb') as f:
... locks.lock(f, locks.LOCK_EX)
... f.write('Django')
"""
import os
__all__ = ('LOCK_EX', 'LOCK_SH', 'LOCK_NB', 'lock', 'unlock')
def _fd(f):
"""Get a filedescriptor from something which could be a file or an fd."""
return f.fileno() if hasattr(f, 'fileno') else f
if os.name == 'nt':
import msvcrt
from ctypes import (sizeof, c_ulong, c_void_p, c_int64,
Structure, Union, POINTER, windll, byref)
from ctypes.wintypes import BOOL, DWORD, HANDLE
LOCK_SH = 0 # the default
LOCK_NB = 0x1 # LOCKFILE_FAIL_IMMEDIATELY
LOCK_EX = 0x2 # LOCKFILE_EXCLUSIVE_LOCK
# --- Adapted from the pyserial project ---
# detect size of ULONG_PTR
if sizeof(c_ulong) != sizeof(c_void_p):
ULONG_PTR = c_int64
else:
ULONG_PTR = c_ulong
PVOID = c_void_p
# --- Union inside Structure by stackoverflow:3480240 ---
class _OFFSET(Structure):
_fields_ = [
('Offset', DWORD),
('OffsetHigh', DWORD)]
class _OFFSET_UNION(Union):
_anonymous_ = ['_offset']
_fields_ = [
('_offset', _OFFSET),
('Pointer', PVOID)]
class OVERLAPPED(Structure):
_anonymous_ = ['_offset_union']
_fields_ = [
('Internal', ULONG_PTR),
('InternalHigh', ULONG_PTR),
('_offset_union', _OFFSET_UNION),
('hEvent', HANDLE)]
LPOVERLAPPED = POINTER(OVERLAPPED)
# --- Define function prototypes for extra safety ---
LockFileEx = windll.kernel32.LockFileEx
LockFileEx.restype = BOOL
LockFileEx.argtypes = [HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED]
UnlockFileEx = windll.kernel32.UnlockFileEx
UnlockFileEx.restype = BOOL
UnlockFileEx.argtypes = [HANDLE, DWORD, DWORD, DWORD, LPOVERLAPPED]
def lock(f, flags):
hfile = msvcrt.get_osfhandle(_fd(f))
overlapped = OVERLAPPED()
ret = LockFileEx(hfile, flags, 0, 0, 0xFFFF0000, byref(overlapped))
return bool(ret)
def unlock(f):
hfile = msvcrt.get_osfhandle(_fd(f))
overlapped = OVERLAPPED()
ret = UnlockFileEx(hfile, 0, 0, 0xFFFF0000, byref(overlapped))
return bool(ret)
else:
try:
import fcntl
LOCK_SH = fcntl.LOCK_SH # shared lock
LOCK_NB = fcntl.LOCK_NB # non-blocking
LOCK_EX = fcntl.LOCK_EX
except (ImportError, AttributeError):
# File locking is not supported.
LOCK_EX = LOCK_SH = LOCK_NB = 0
# Dummy functions that don't do anything.
def lock(f, flags):
# File is not locked
return False
def unlock(f):
# File is unlocked
return True
else:
def lock(f, flags):
ret = fcntl.flock(_fd(f), flags)
return (ret == 0)
def unlock(f):
ret = fcntl.flock(_fd(f), fcntl.LOCK_UN)
return (ret == 0)
| bsd-3-clause |
anrl/gini3 | backend/src/gloader/xml/dom/html/HTMLUListElement.py | 10 | 1612 | ########################################################################
#
# File Name: HTMLUListElement
#
#
### This file is automatically generated by GenerateHtml.py.
### DO NOT EDIT!
"""
WWW: http://4suite.com/4DOM e-mail: support@4suite.com
Copyright (c) 2000 Fourthought Inc, USA. All Rights Reserved.
See http://4suite.com/COPYRIGHT for license and copyright information
"""
import string
from xml.dom import Node
from xml.dom.html.HTMLElement import HTMLElement
class HTMLUListElement(HTMLElement):
def __init__(self, ownerDocument, nodeName="UL"):
HTMLElement.__init__(self, ownerDocument, nodeName)
### Attribute Methods ###
def _get_compact(self):
return self.hasAttribute("COMPACT")
def _set_compact(self, value):
if value:
self.setAttribute("COMPACT", "COMPACT")
else:
self.removeAttribute("COMPACT")
def _get_type(self):
return string.capitalize(self.getAttribute("TYPE"))
def _set_type(self, value):
self.setAttribute("TYPE", value)
### Attribute Access Mappings ###
_readComputedAttrs = HTMLElement._readComputedAttrs.copy()
_readComputedAttrs.update({
"compact" : _get_compact,
"type" : _get_type
})
_writeComputedAttrs = HTMLElement._writeComputedAttrs.copy()
_writeComputedAttrs.update({
"compact" : _set_compact,
"type" : _set_type
})
_readOnlyAttrs = filter(lambda k,m=_writeComputedAttrs: not m.has_key(k),
HTMLElement._readOnlyAttrs + _readComputedAttrs.keys())
| mit |
MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-2.7/Lib/distutils/tests/test_build_py.py | 2 | 4009 | """Tests for distutils.command.build_py."""
import os
import sys
import StringIO
import unittest
from distutils.command.build_py import build_py
from distutils.core import Distribution
from distutils.errors import DistutilsFileError
from distutils.tests import support
class BuildPyTestCase(support.TempdirManager,
support.LoggingSilencer,
unittest.TestCase):
def _setup_package_data(self):
sources = self.mkdtemp()
f = open(os.path.join(sources, "__init__.py"), "w")
f.write("# Pretend this is a package.")
f.close()
f = open(os.path.join(sources, "README.txt"), "w")
f.write("Info about this package")
f.close()
destination = self.mkdtemp()
dist = Distribution({"packages": ["pkg"],
"package_dir": {"pkg": sources}})
# script_name need not exist, it just need to be initialized
dist.script_name = os.path.join(sources, "setup.py")
dist.command_obj["build"] = support.DummyCommand(
force=0,
build_lib=destination)
dist.packages = ["pkg"]
dist.package_data = {"pkg": ["README.txt"]}
dist.package_dir = {"pkg": sources}
cmd = build_py(dist)
cmd.compile = 1
cmd.ensure_finalized()
self.assertEqual(cmd.package_data, dist.package_data)
cmd.run()
# This makes sure the list of outputs includes byte-compiled
# files for Python modules but not for package data files
# (there shouldn't *be* byte-code files for those!).
#
self.assertEqual(len(cmd.get_outputs()), 3)
pkgdest = os.path.join(destination, "pkg")
files = os.listdir(pkgdest)
return files
def test_package_data(self):
files = self._setup_package_data()
self.assertTrue("__init__.py" in files)
self.assertTrue("README.txt" in files)
@unittest.skipIf(sys.flags.optimize >= 2,
"pyc files are not written with -O2 and above")
def test_package_data_pyc(self):
files = self._setup_package_data()
self.assertTrue("__init__.pyc" in files)
def test_empty_package_dir (self):
# See SF 1668596/1720897.
cwd = os.getcwd()
# create the distribution files.
sources = self.mkdtemp()
open(os.path.join(sources, "__init__.py"), "w").close()
testdir = os.path.join(sources, "doc")
os.mkdir(testdir)
open(os.path.join(testdir, "testfile"), "w").close()
os.chdir(sources)
old_stdout = sys.stdout
sys.stdout = StringIO.StringIO()
try:
dist = Distribution({"packages": ["pkg"],
"package_dir": {"pkg": ""},
"package_data": {"pkg": ["doc/*"]}})
# script_name need not exist, it just need to be initialized
dist.script_name = os.path.join(sources, "setup.py")
dist.script_args = ["build"]
dist.parse_command_line()
try:
dist.run_commands()
except DistutilsFileError:
self.fail("failed package_data test when package_dir is ''")
finally:
# Restore state.
os.chdir(cwd)
sys.stdout = old_stdout
def test_dont_write_bytecode(self):
# makes sure byte_compile is not used
pkg_dir, dist = self.create_dist()
cmd = build_py(dist)
cmd.compile = 1
cmd.optimize = 1
old_dont_write_bytecode = sys.dont_write_bytecode
sys.dont_write_bytecode = True
try:
cmd.byte_compile([])
finally:
sys.dont_write_bytecode = old_dont_write_bytecode
self.assertTrue('byte-compiling is disabled' in self.logs[0][1])
def test_suite():
return unittest.makeSuite(BuildPyTestCase)
if __name__ == "__main__":
unittest.main(defaultTest="test_suite")
| mit |
pattywgm/funny-spider | douban/douban/spiders/movie_awards.py | 1 | 2888 | #!/usr/bin/env python
# encoding: utf-8
"""
@version: 1.0
@file: movie_awards.py
@time: 17/10/19 下午10:35
@desc: 电影获奖数据抓取
28items/每分钟 被ban
"""
import re
from copy import deepcopy
from os.path import exists
import scrapy
from douban.items import AwardsItem
from douban.utils.my_utils import load_obj, replace_dot
_META_VERSION = 'v1.0'
_AWARDS = 'https://movie.douban.com/subject/{}/awards/'
class MovieAwards(scrapy.Spider):
name = 'movie_awards'
meta_version = _META_VERSION
def __init__(self):
"""
:param urls:
:param done: 已经抓取完成的,用于断点续爬
:return:
"""
self.urls = load_obj('./records/urls.pkl')
self.done = list()
if exists('./records/{}_done.pkl'.format(self.name)):
self.done = load_obj('./records/{}_done.pkl'.format(self.name))
self.new_done = deepcopy(self.done)
def start_requests(self):
req = list()
for url in self.urls:
movie_code = re.findall('\d+', url)[0]
award_url = _AWARDS.format(movie_code)
if award_url not in self.done:
req.append(scrapy.Request(award_url, callback=self.parse, meta={'movie_code': movie_code}))
return req
def parse(self, response):
url = response.url
self.logger.info('Crawl {}'.format(url))
item = AwardsItem()
item['url'] = url
item['movie_code'] = response.meta['movie_code']
award_divs = response.xpath('//div[@class="awards"]')
item['awards'] = [self.parse_award_detail(div) for div in award_divs]
yield item
def parse_award_detail(self, award_div):
"""
解析获奖详细信息
:param award_div:
:return:
"""
award_detail = dict()
# 颁奖方及年份
url = award_div.xpath('.//h2/a/@href').extract_first()
name = award_div.xpath('.//h2/a/text()').extract_first()
year = award_div.xpath('.//h2/span/text()').extract_first().replace('(', '').replace(')', '').strip()
award_detail.update({'award_provider': {name: url}, 'year': year})
# 具体奖项名及获奖者
awards = list()
for ul in award_div.xpath('.//ul[@class="award"]'):
award_name = ul.xpath('./li[1]/text()').extract_first()
award_persons = list()
for person in ul.xpath('./li[position()>1]'):
if person.xpath('./a').extract_first() is None:
break
p_name = replace_dot(person.xpath('./a/text()').extract())
p_url = person.xpath('./a/@href').extract()
award_persons.append(dict(zip(p_name, p_url)))
awards.append({award_name: award_persons})
award_detail.update({'awards': awards})
return award_detail
| gpl-3.0 |
flyfei/python-for-android | python3-alpha/python3-src/Tools/scripts/ftpmirror.py | 49 | 13088 | #! /usr/bin/env python3
"""Mirror a remote ftp subtree into a local directory tree.
usage: ftpmirror [-v] [-q] [-i] [-m] [-n] [-r] [-s pat]
[-l username [-p passwd [-a account]]]
hostname[:port] [remotedir [localdir]]
-v: verbose
-q: quiet
-i: interactive mode
-m: macintosh server (NCSA telnet 2.4) (implies -n -s '*.o')
-n: don't log in
-r: remove local files/directories no longer pertinent
-l username [-p passwd [-a account]]: login info (default .netrc or anonymous)
-s pat: skip files matching pattern
hostname: remote host w/ optional port separated by ':'
remotedir: remote directory (default initial)
localdir: local directory (default current)
"""
import os
import sys
import time
import getopt
import ftplib
import netrc
from fnmatch import fnmatch
# Print usage message and exit
def usage(*args):
sys.stdout = sys.stderr
for msg in args: print(msg)
print(__doc__)
sys.exit(2)
verbose = 1 # 0 for -q, 2 for -v
interactive = 0
mac = 0
rmok = 0
nologin = 0
skippats = ['.', '..', '.mirrorinfo']
# Main program: parse command line and start processing
def main():
global verbose, interactive, mac, rmok, nologin
try:
opts, args = getopt.getopt(sys.argv[1:], 'a:bil:mnp:qrs:v')
except getopt.error as msg:
usage(msg)
login = ''
passwd = ''
account = ''
if not args: usage('hostname missing')
host = args[0]
port = 0
if ':' in host:
host, port = host.split(':', 1)
port = int(port)
try:
auth = netrc.netrc().authenticators(host)
if auth is not None:
login, account, passwd = auth
except (netrc.NetrcParseError, IOError):
pass
for o, a in opts:
if o == '-l': login = a
if o == '-p': passwd = a
if o == '-a': account = a
if o == '-v': verbose = verbose + 1
if o == '-q': verbose = 0
if o == '-i': interactive = 1
if o == '-m': mac = 1; nologin = 1; skippats.append('*.o')
if o == '-n': nologin = 1
if o == '-r': rmok = 1
if o == '-s': skippats.append(a)
remotedir = ''
localdir = ''
if args[1:]:
remotedir = args[1]
if args[2:]:
localdir = args[2]
if args[3:]: usage('too many arguments')
#
f = ftplib.FTP()
if verbose: print("Connecting to '%s%s'..." % (host,
(port and ":%d"%port or "")))
f.connect(host,port)
if not nologin:
if verbose:
print('Logging in as %r...' % (login or 'anonymous'))
f.login(login, passwd, account)
if verbose: print('OK.')
pwd = f.pwd()
if verbose > 1: print('PWD =', repr(pwd))
if remotedir:
if verbose > 1: print('cwd(%s)' % repr(remotedir))
f.cwd(remotedir)
if verbose > 1: print('OK.')
pwd = f.pwd()
if verbose > 1: print('PWD =', repr(pwd))
#
mirrorsubdir(f, localdir)
# Core logic: mirror one subdirectory (recursively)
def mirrorsubdir(f, localdir):
pwd = f.pwd()
if localdir and not os.path.isdir(localdir):
if verbose: print('Creating local directory', repr(localdir))
try:
makedir(localdir)
except os.error as msg:
print("Failed to establish local directory", repr(localdir))
return
infofilename = os.path.join(localdir, '.mirrorinfo')
try:
text = open(infofilename, 'r').read()
except IOError as msg:
text = '{}'
try:
info = eval(text)
except (SyntaxError, NameError):
print('Bad mirror info in', repr(infofilename))
info = {}
subdirs = []
listing = []
if verbose: print('Listing remote directory %r...' % (pwd,))
f.retrlines('LIST', listing.append)
filesfound = []
for line in listing:
if verbose > 1: print('-->', repr(line))
if mac:
# Mac listing has just filenames;
# trailing / means subdirectory
filename = line.strip()
mode = '-'
if filename[-1:] == '/':
filename = filename[:-1]
mode = 'd'
infostuff = ''
else:
# Parse, assuming a UNIX listing
words = line.split(None, 8)
if len(words) < 6:
if verbose > 1: print('Skipping short line')
continue
filename = words[-1].lstrip()
i = filename.find(" -> ")
if i >= 0:
# words[0] had better start with 'l'...
if verbose > 1:
print('Found symbolic link %r' % (filename,))
linkto = filename[i+4:]
filename = filename[:i]
infostuff = words[-5:-1]
mode = words[0]
skip = 0
for pat in skippats:
if fnmatch(filename, pat):
if verbose > 1:
print('Skip pattern', repr(pat), end=' ')
print('matches', repr(filename))
skip = 1
break
if skip:
continue
if mode[0] == 'd':
if verbose > 1:
print('Remembering subdirectory', repr(filename))
subdirs.append(filename)
continue
filesfound.append(filename)
if filename in info and info[filename] == infostuff:
if verbose > 1:
print('Already have this version of',repr(filename))
continue
fullname = os.path.join(localdir, filename)
tempname = os.path.join(localdir, '@'+filename)
if interactive:
doit = askabout('file', filename, pwd)
if not doit:
if filename not in info:
info[filename] = 'Not retrieved'
continue
try:
os.unlink(tempname)
except os.error:
pass
if mode[0] == 'l':
if verbose:
print("Creating symlink %r -> %r" % (filename, linkto))
try:
os.symlink(linkto, tempname)
except IOError as msg:
print("Can't create %r: %s" % (tempname, msg))
continue
else:
try:
fp = open(tempname, 'wb')
except IOError as msg:
print("Can't create %r: %s" % (tempname, msg))
continue
if verbose:
print('Retrieving %r from %r as %r...' % (filename, pwd, fullname))
if verbose:
fp1 = LoggingFile(fp, 1024, sys.stdout)
else:
fp1 = fp
t0 = time.time()
try:
f.retrbinary('RETR ' + filename,
fp1.write, 8*1024)
except ftplib.error_perm as msg:
print(msg)
t1 = time.time()
bytes = fp.tell()
fp.close()
if fp1 != fp:
fp1.close()
try:
os.unlink(fullname)
except os.error:
pass # Ignore the error
try:
os.rename(tempname, fullname)
except os.error as msg:
print("Can't rename %r to %r: %s" % (tempname, fullname, msg))
continue
info[filename] = infostuff
writedict(info, infofilename)
if verbose and mode[0] != 'l':
dt = t1 - t0
kbytes = bytes / 1024.0
print(int(round(kbytes)), end=' ')
print('Kbytes in', end=' ')
print(int(round(dt)), end=' ')
print('seconds', end=' ')
if t1 > t0:
print('(~%d Kbytes/sec)' % \
int(round(kbytes/dt),))
print()
#
# Remove files from info that are no longer remote
deletions = 0
for filename in list(info.keys()):
if filename not in filesfound:
if verbose:
print("Removing obsolete info entry for", end=' ')
print(repr(filename), "in", repr(localdir or "."))
del info[filename]
deletions = deletions + 1
if deletions:
writedict(info, infofilename)
#
# Remove local files that are no longer in the remote directory
try:
if not localdir: names = os.listdir(os.curdir)
else: names = os.listdir(localdir)
except os.error:
names = []
for name in names:
if name[0] == '.' or name in info or name in subdirs:
continue
skip = 0
for pat in skippats:
if fnmatch(name, pat):
if verbose > 1:
print('Skip pattern', repr(pat), end=' ')
print('matches', repr(name))
skip = 1
break
if skip:
continue
fullname = os.path.join(localdir, name)
if not rmok:
if verbose:
print('Local file', repr(fullname), end=' ')
print('is no longer pertinent')
continue
if verbose: print('Removing local file/dir', repr(fullname))
remove(fullname)
#
# Recursively mirror subdirectories
for subdir in subdirs:
if interactive:
doit = askabout('subdirectory', subdir, pwd)
if not doit: continue
if verbose: print('Processing subdirectory', repr(subdir))
localsubdir = os.path.join(localdir, subdir)
pwd = f.pwd()
if verbose > 1:
print('Remote directory now:', repr(pwd))
print('Remote cwd', repr(subdir))
try:
f.cwd(subdir)
except ftplib.error_perm as msg:
print("Can't chdir to", repr(subdir), ":", repr(msg))
else:
if verbose: print('Mirroring as', repr(localsubdir))
mirrorsubdir(f, localsubdir)
if verbose > 1: print('Remote cwd ..')
f.cwd('..')
newpwd = f.pwd()
if newpwd != pwd:
print('Ended up in wrong directory after cd + cd ..')
print('Giving up now.')
break
else:
if verbose > 1: print('OK.')
# Helper to remove a file or directory tree
def remove(fullname):
if os.path.isdir(fullname) and not os.path.islink(fullname):
try:
names = os.listdir(fullname)
except os.error:
names = []
ok = 1
for name in names:
if not remove(os.path.join(fullname, name)):
ok = 0
if not ok:
return 0
try:
os.rmdir(fullname)
except os.error as msg:
print("Can't remove local directory %r: %s" % (fullname, msg))
return 0
else:
try:
os.unlink(fullname)
except os.error as msg:
print("Can't remove local file %r: %s" % (fullname, msg))
return 0
return 1
# Wrapper around a file for writing to write a hash sign every block.
class LoggingFile:
def __init__(self, fp, blocksize, outfp):
self.fp = fp
self.bytes = 0
self.hashes = 0
self.blocksize = blocksize
self.outfp = outfp
def write(self, data):
self.bytes = self.bytes + len(data)
hashes = int(self.bytes) / self.blocksize
while hashes > self.hashes:
self.outfp.write('#')
self.outfp.flush()
self.hashes = self.hashes + 1
self.fp.write(data)
def close(self):
self.outfp.write('\n')
def raw_input(prompt):
sys.stdout.write(prompt)
sys.stdout.flush()
return sys.stdin.readline()
# Ask permission to download a file.
def askabout(filetype, filename, pwd):
prompt = 'Retrieve %s %s from %s ? [ny] ' % (filetype, filename, pwd)
while 1:
reply = raw_input(prompt).strip().lower()
if reply in ['y', 'ye', 'yes']:
return 1
if reply in ['', 'n', 'no', 'nop', 'nope']:
return 0
print('Please answer yes or no.')
# Create a directory if it doesn't exist. Recursively create the
# parent directory as well if needed.
def makedir(pathname):
if os.path.isdir(pathname):
return
dirname = os.path.dirname(pathname)
if dirname: makedir(dirname)
os.mkdir(pathname, 0o777)
# Write a dictionary to a file in a way that can be read back using
# rval() but is still somewhat readable (i.e. not a single long line).
# Also creates a backup file.
def writedict(dict, filename):
dir, fname = os.path.split(filename)
tempname = os.path.join(dir, '@' + fname)
backup = os.path.join(dir, fname + '~')
try:
os.unlink(backup)
except os.error:
pass
fp = open(tempname, 'w')
fp.write('{\n')
for key, value in dict.items():
fp.write('%r: %r,\n' % (key, value))
fp.write('}\n')
fp.close()
try:
os.rename(filename, backup)
except os.error:
pass
os.rename(tempname, filename)
if __name__ == '__main__':
main()
| apache-2.0 |
zerobatu/edx-platform | lms/djangoapps/teams/migrations/0004_auto__add_field_courseteam_discussion_topic_id__add_field_courseteam_l.py | 46 | 6547 | # -*- coding: utf-8 -*-
import pytz
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'CourseTeam.last_activity_at'
db.add_column('teams_courseteam', 'last_activity_at',
self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 8, 17, 0, 0).replace(tzinfo=pytz.utc)),
keep_default=False)
# Adding field 'CourseTeamMembership.last_activity_at'
db.add_column('teams_courseteammembership', 'last_activity_at',
self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2015, 8, 17, 0, 0).replace(tzinfo=pytz.utc)),
keep_default=False)
def backwards(self, orm):
# Deleting field 'CourseTeam.last_activity_at'
db.delete_column('teams_courseteam', 'last_activity_at')
# Deleting field 'CourseTeamMembership.last_activity_at'
db.delete_column('teams_courseteammembership', 'last_activity_at')
models = {
'auth.group': {
'Meta': {'object_name': 'Group'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
},
'auth.permission': {
'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
'auth.user': {
'Meta': {'object_name': 'User'},
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
'contenttypes.contenttype': {
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
'teams.courseteam': {
'Meta': {'object_name': 'CourseTeam'},
'country': ('django_countries.fields.CountryField', [], {'max_length': '2', 'blank': 'True'}),
'course_id': ('xmodule_django.models.CourseKeyField', [], {'max_length': '255', 'db_index': 'True'}),
'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
'discussion_topic_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'language': ('student.models.LanguageField', [], {'max_length': '16', 'blank': 'True'}),
'last_activity_at': ('django.db.models.fields.DateTimeField', [], {}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
'team_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
'topic_id': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '255', 'blank': 'True'}),
'users': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'related_name': "'teams'", 'symmetrical': 'False', 'through': "orm['teams.CourseTeamMembership']", 'to': "orm['auth.User']"})
},
'teams.courseteammembership': {
'Meta': {'unique_together': "(('user', 'team'),)", 'object_name': 'CourseTeamMembership'},
'date_joined': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_activity_at': ('django.db.models.fields.DateTimeField', [], {}),
'team': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'membership'", 'to': "orm['teams.CourseTeam']"}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
}
}
complete_apps = ['teams']
| agpl-3.0 |
nrwahl2/ansible | lib/ansible/modules/cloud/centurylink/clc_group.py | 26 | 16745 | #!/usr/bin/python
#
# Copyright (c) 2015 CenturyLink
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = '''
module: clc_group
short_description: Create/delete Server Groups at Centurylink Cloud
description:
- Create or delete Server Groups at Centurylink Centurylink Cloud
version_added: "2.0"
options:
name:
description:
- The name of the Server Group
required: True
description:
description:
- A description of the Server Group
required: False
parent:
description:
- The parent group of the server group. If parent is not provided, it creates the group at top level.
required: False
location:
description:
- Datacenter to create the group in. If location is not provided, the group gets created in the default datacenter
associated with the account
required: False
state:
description:
- Whether to create or delete the group
default: present
choices: ['present', 'absent']
wait:
description:
- Whether to wait for the tasks to finish before returning.
choices: [ True, False ]
default: True
required: False
requirements:
- python = 2.7
- requests >= 2.5.0
- clc-sdk
author: "CLC Runner (@clc-runner)"
notes:
- To use this module, it is required to set the below environment variables which enables access to the
Centurylink Cloud
- CLC_V2_API_USERNAME, the account login id for the centurylink cloud
- CLC_V2_API_PASSWORD, the account password for the centurylink cloud
- Alternatively, the module accepts the API token and account alias. The API token can be generated using the
CLC account login and password via the HTTP api call @ https://api.ctl.io/v2/authentication/login
- CLC_V2_API_TOKEN, the API token generated from https://api.ctl.io/v2/authentication/login
- CLC_ACCT_ALIAS, the account alias associated with the centurylink cloud
- Users can set CLC_V2_API_URL to specify an endpoint for pointing to a different CLC environment.
'''
EXAMPLES = '''
# Create a Server Group
---
- name: Create Server Group
hosts: localhost
gather_facts: False
connection: local
tasks:
- name: Create / Verify a Server Group at CenturyLink Cloud
clc_group:
name: My Cool Server Group
parent: Default Group
state: present
register: clc
- name: debug
debug:
var: clc
# Delete a Server Group
---
- name: Delete Server Group
hosts: localhost
gather_facts: False
connection: local
tasks:
- name: Delete / Verify Absent a Server Group at CenturyLink Cloud
clc_group:
name: My Cool Server Group
parent: Default Group
state: absent
register: clc
- name: debug
debug:
var: clc
'''
RETURN = '''
group:
description: The group information
returned: success
type: dict
sample:
{
"changeInfo":{
"createdBy":"service.wfad",
"createdDate":"2015-07-29T18:52:47Z",
"modifiedBy":"service.wfad",
"modifiedDate":"2015-07-29T18:52:47Z"
},
"customFields":[
],
"description":"test group",
"groups":[
],
"id":"bb5f12a3c6044ae4ad0a03e73ae12cd1",
"links":[
{
"href":"/v2/groups/wfad",
"rel":"createGroup",
"verbs":[
"POST"
]
},
{
"href":"/v2/servers/wfad",
"rel":"createServer",
"verbs":[
"POST"
]
},
{
"href":"/v2/groups/wfad/bb5f12a3c6044ae4ad0a03e73ae12cd1",
"rel":"self",
"verbs":[
"GET",
"PATCH",
"DELETE"
]
},
{
"href":"/v2/groups/wfad/086ac1dfe0b6411989e8d1b77c4065f0",
"id":"086ac1dfe0b6411989e8d1b77c4065f0",
"rel":"parentGroup"
},
{
"href":"/v2/groups/wfad/bb5f12a3c6044ae4ad0a03e73ae12cd1/defaults",
"rel":"defaults",
"verbs":[
"GET",
"POST"
]
},
{
"href":"/v2/groups/wfad/bb5f12a3c6044ae4ad0a03e73ae12cd1/billing",
"rel":"billing"
},
{
"href":"/v2/groups/wfad/bb5f12a3c6044ae4ad0a03e73ae12cd1/archive",
"rel":"archiveGroupAction"
},
{
"href":"/v2/groups/wfad/bb5f12a3c6044ae4ad0a03e73ae12cd1/statistics",
"rel":"statistics"
},
{
"href":"/v2/groups/wfad/bb5f12a3c6044ae4ad0a03e73ae12cd1/upcomingScheduledActivities",
"rel":"upcomingScheduledActivities"
},
{
"href":"/v2/groups/wfad/bb5f12a3c6044ae4ad0a03e73ae12cd1/horizontalAutoscalePolicy",
"rel":"horizontalAutoscalePolicyMapping",
"verbs":[
"GET",
"PUT",
"DELETE"
]
},
{
"href":"/v2/groups/wfad/bb5f12a3c6044ae4ad0a03e73ae12cd1/scheduledActivities",
"rel":"scheduledActivities",
"verbs":[
"GET",
"POST"
]
}
],
"locationId":"UC1",
"name":"test group",
"status":"active",
"type":"default"
}
'''
__version__ = '${version}'
import os
from distutils.version import LooseVersion
try:
import requests
except ImportError:
REQUESTS_FOUND = False
else:
REQUESTS_FOUND = True
#
# Requires the clc-python-sdk.
# sudo pip install clc-sdk
#
try:
import clc as clc_sdk
from clc import CLCException
except ImportError:
CLC_FOUND = False
clc_sdk = None
else:
CLC_FOUND = True
from ansible.module_utils.basic import AnsibleModule
class ClcGroup(object):
clc = None
root_group = None
def __init__(self, module):
"""
Construct module
"""
self.clc = clc_sdk
self.module = module
self.group_dict = {}
if not CLC_FOUND:
self.module.fail_json(
msg='clc-python-sdk required for this module')
if not REQUESTS_FOUND:
self.module.fail_json(
msg='requests library is required for this module')
if requests.__version__ and LooseVersion(requests.__version__) < LooseVersion('2.5.0'):
self.module.fail_json(
msg='requests library version should be >= 2.5.0')
self._set_user_agent(self.clc)
def process_request(self):
"""
Execute the main code path, and handle the request
:return: none
"""
location = self.module.params.get('location')
group_name = self.module.params.get('name')
parent_name = self.module.params.get('parent')
group_description = self.module.params.get('description')
state = self.module.params.get('state')
self._set_clc_credentials_from_env()
self.group_dict = self._get_group_tree_for_datacenter(
datacenter=location)
if state == "absent":
changed, group, requests = self._ensure_group_is_absent(
group_name=group_name, parent_name=parent_name)
if requests:
self._wait_for_requests_to_complete(requests)
else:
changed, group = self._ensure_group_is_present(
group_name=group_name, parent_name=parent_name, group_description=group_description)
try:
group = group.data
except AttributeError:
group = group_name
self.module.exit_json(changed=changed, group=group)
@staticmethod
def _define_module_argument_spec():
"""
Define the argument spec for the ansible module
:return: argument spec dictionary
"""
argument_spec = dict(
name=dict(required=True),
description=dict(default=None),
parent=dict(default=None),
location=dict(default=None),
state=dict(default='present', choices=['present', 'absent']),
wait=dict(type='bool', default=True))
return argument_spec
def _set_clc_credentials_from_env(self):
"""
Set the CLC Credentials on the sdk by reading environment variables
:return: none
"""
env = os.environ
v2_api_token = env.get('CLC_V2_API_TOKEN', False)
v2_api_username = env.get('CLC_V2_API_USERNAME', False)
v2_api_passwd = env.get('CLC_V2_API_PASSWD', False)
clc_alias = env.get('CLC_ACCT_ALIAS', False)
api_url = env.get('CLC_V2_API_URL', False)
if api_url:
self.clc.defaults.ENDPOINT_URL_V2 = api_url
if v2_api_token and clc_alias:
self.clc._LOGIN_TOKEN_V2 = v2_api_token
self.clc._V2_ENABLED = True
self.clc.ALIAS = clc_alias
elif v2_api_username and v2_api_passwd:
self.clc.v2.SetCredentials(
api_username=v2_api_username,
api_passwd=v2_api_passwd)
else:
return self.module.fail_json(
msg="You must set the CLC_V2_API_USERNAME and CLC_V2_API_PASSWD "
"environment variables")
def _ensure_group_is_absent(self, group_name, parent_name):
"""
Ensure that group_name is absent by deleting it if necessary
:param group_name: string - the name of the clc server group to delete
:param parent_name: string - the name of the parent group for group_name
:return: changed, group
"""
changed = False
group = []
results = []
if self._group_exists(group_name=group_name, parent_name=parent_name):
if not self.module.check_mode:
group.append(group_name)
result = self._delete_group(group_name)
results.append(result)
changed = True
return changed, group, results
def _delete_group(self, group_name):
"""
Delete the provided server group
:param group_name: string - the server group to delete
:return: none
"""
response = None
group, parent = self.group_dict.get(group_name)
try:
response = group.Delete()
except CLCException as ex:
self.module.fail_json(msg='Failed to delete group :{0}. {1}'.format(
group_name, ex.response_text
))
return response
def _ensure_group_is_present(
self,
group_name,
parent_name,
group_description):
"""
Checks to see if a server group exists, creates it if it doesn't.
:param group_name: the name of the group to validate/create
:param parent_name: the name of the parent group for group_name
:param group_description: a short description of the server group (used when creating)
:return: (changed, group) -
changed: Boolean- whether a change was made,
group: A clc group object for the group
"""
assert self.root_group, "Implementation Error: Root Group not set"
parent = parent_name if parent_name is not None else self.root_group.name
description = group_description
changed = False
group = group_name
parent_exists = self._group_exists(group_name=parent, parent_name=None)
child_exists = self._group_exists(
group_name=group_name,
parent_name=parent)
if parent_exists and child_exists:
group, parent = self.group_dict[group_name]
changed = False
elif parent_exists and not child_exists:
if not self.module.check_mode:
group = self._create_group(
group=group,
parent=parent,
description=description)
changed = True
else:
self.module.fail_json(
msg="parent group: " +
parent +
" does not exist")
return changed, group
def _create_group(self, group, parent, description):
"""
Create the provided server group
:param group: clc_sdk.Group - the group to create
:param parent: clc_sdk.Parent - the parent group for {group}
:param description: string - a text description of the group
:return: clc_sdk.Group - the created group
"""
response = None
(parent, grandparent) = self.group_dict[parent]
try:
response = parent.Create(name=group, description=description)
except CLCException as ex:
self.module.fail_json(msg='Failed to create group :{0}. {1}'.format(
group, ex.response_text))
return response
def _group_exists(self, group_name, parent_name):
"""
Check to see if a group exists
:param group_name: string - the group to check
:param parent_name: string - the parent of group_name
:return: boolean - whether the group exists
"""
result = False
if group_name in self.group_dict:
(group, parent) = self.group_dict[group_name]
if parent_name is None or parent_name == parent.name:
result = True
return result
def _get_group_tree_for_datacenter(self, datacenter=None):
"""
Walk the tree of groups for a datacenter
:param datacenter: string - the datacenter to walk (ex: 'UC1')
:return: a dictionary of groups and parents
"""
self.root_group = self.clc.v2.Datacenter(
location=datacenter).RootGroup()
return self._walk_groups_recursive(
parent_group=None,
child_group=self.root_group)
def _walk_groups_recursive(self, parent_group, child_group):
"""
Walk a parent-child tree of groups, starting with the provided child group
:param parent_group: clc_sdk.Group - the parent group to start the walk
:param child_group: clc_sdk.Group - the child group to start the walk
:return: a dictionary of groups and parents
"""
result = {str(child_group): (child_group, parent_group)}
groups = child_group.Subgroups().groups
if len(groups) > 0:
for group in groups:
if group.type != 'default':
continue
result.update(self._walk_groups_recursive(child_group, group))
return result
def _wait_for_requests_to_complete(self, requests_lst):
"""
Waits until the CLC requests are complete if the wait argument is True
:param requests_lst: The list of CLC request objects
:return: none
"""
if not self.module.params['wait']:
return
for request in requests_lst:
request.WaitUntilComplete()
for request_details in request.requests:
if request_details.Status() != 'succeeded':
self.module.fail_json(
msg='Unable to process group request')
@staticmethod
def _set_user_agent(clc):
if hasattr(clc, 'SetRequestsSession'):
agent_string = "ClcAnsibleModule/" + __version__
ses = requests.Session()
ses.headers.update({"Api-Client": agent_string})
ses.headers['User-Agent'] += " " + agent_string
clc.SetRequestsSession(ses)
def main():
"""
The main function. Instantiates the module and calls process_request.
:return: none
"""
module = AnsibleModule(
argument_spec=ClcGroup._define_module_argument_spec(),
supports_check_mode=True)
clc_group = ClcGroup(module)
clc_group.process_request()
if __name__ == '__main__':
main()
| gpl-3.0 |
SlimRoms/android_external_chromium_org | build/mac/tweak_info_plist.py | 42 | 10163 | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Xcode supports build variable substitutions and CPP; sadly, that doesn't work
# because:
#
# 1. Xcode wants to do the Info.plist work before it runs any build phases,
# this means if we were to generate a .h file for INFOPLIST_PREFIX_HEADER
# we'd have to put it in another target so it runs in time.
# 2. Xcode also doesn't check to see if the header being used as a prefix for
# the Info.plist has changed. So even if we updated it, it's only looking
# at the modtime of the info.plist to see if that's changed.
#
# So, we work around all of this by making a script build phase that will run
# during the app build, and simply update the info.plist in place. This way
# by the time the app target is done, the info.plist is correct.
#
import optparse
import os
from os import environ as env
import plistlib
import re
import subprocess
import sys
import tempfile
TOP = os.path.join(env['SRCROOT'], '..')
def _GetOutput(args):
"""Runs a subprocess and waits for termination. Returns (stdout, returncode)
of the process. stderr is attached to the parent."""
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
(stdout, stderr) = proc.communicate()
return (stdout, proc.returncode)
def _GetOutputNoError(args):
"""Similar to _GetOutput() but ignores stderr. If there's an error launching
the child (like file not found), the exception will be caught and (None, 1)
will be returned to mimic quiet failure."""
try:
proc = subprocess.Popen(args, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
except OSError:
return (None, 1)
(stdout, stderr) = proc.communicate()
return (stdout, proc.returncode)
def _RemoveKeys(plist, *keys):
"""Removes a varargs of keys from the plist."""
for key in keys:
try:
del plist[key]
except KeyError:
pass
def _AddVersionKeys(plist, version=None):
"""Adds the product version number into the plist. Returns True on success and
False on error. The error will be printed to stderr."""
if version:
match = re.match('\d+\.\d+\.(\d+\.\d+)$', version)
if not match:
print >>sys.stderr, 'Invalid version string specified: "%s"' % version
return False
full_version = match.group(0)
bundle_version = match.group(1)
else:
# Pull in the Chrome version number.
VERSION_TOOL = os.path.join(TOP, 'build/util/version.py')
VERSION_FILE = os.path.join(TOP, 'chrome/VERSION')
(stdout, retval1) = _GetOutput([VERSION_TOOL, '-f', VERSION_FILE, '-t',
'@MAJOR@.@MINOR@.@BUILD@.@PATCH@'])
full_version = stdout.rstrip()
(stdout, retval2) = _GetOutput([VERSION_TOOL, '-f', VERSION_FILE, '-t',
'@BUILD@.@PATCH@'])
bundle_version = stdout.rstrip()
# If either of the two version commands finished with non-zero returncode,
# report the error up.
if retval1 or retval2:
return False
# Add public version info so "Get Info" works.
plist['CFBundleShortVersionString'] = full_version
# Honor the 429496.72.95 limit. The maximum comes from splitting 2^32 - 1
# into 6, 2, 2 digits. The limitation was present in Tiger, but it could
# have been fixed in later OS release, but hasn't been tested (it's easy
# enough to find out with "lsregister -dump).
# http://lists.apple.com/archives/carbon-dev/2006/Jun/msg00139.html
# BUILD will always be an increasing value, so BUILD_PATH gives us something
# unique that meetings what LS wants.
plist['CFBundleVersion'] = bundle_version
# Return with no error.
return True
def _DoSCMKeys(plist, add_keys):
"""Adds the SCM information, visible in about:version, to property list. If
|add_keys| is True, it will insert the keys, otherwise it will remove them."""
scm_revision = None
if add_keys:
# Pull in the Chrome revision number.
VERSION_TOOL = os.path.join(TOP, 'build/util/version.py')
LASTCHANGE_FILE = os.path.join(TOP, 'build/util/LASTCHANGE')
(stdout, retval) = _GetOutput([VERSION_TOOL, '-f', LASTCHANGE_FILE, '-t',
'@LASTCHANGE@'])
if retval:
return False
scm_revision = stdout.rstrip()
# See if the operation failed.
_RemoveKeys(plist, 'SCMRevision')
if scm_revision != None:
plist['SCMRevision'] = scm_revision
elif add_keys:
print >>sys.stderr, 'Could not determine SCM revision. This may be OK.'
return True
def _AddBreakpadKeys(plist, branding):
"""Adds the Breakpad keys. This must be called AFTER _AddVersionKeys() and
also requires the |branding| argument."""
plist['BreakpadReportInterval'] = '3600' # Deliberately a string.
plist['BreakpadProduct'] = '%s_Mac' % branding
plist['BreakpadProductDisplay'] = branding
plist['BreakpadVersion'] = plist['CFBundleShortVersionString']
# These are both deliberately strings and not boolean.
plist['BreakpadSendAndExit'] = 'YES'
plist['BreakpadSkipConfirm'] = 'YES'
def _RemoveBreakpadKeys(plist):
"""Removes any set Breakpad keys."""
_RemoveKeys(plist,
'BreakpadURL',
'BreakpadReportInterval',
'BreakpadProduct',
'BreakpadProductDisplay',
'BreakpadVersion',
'BreakpadSendAndExit',
'BreakpadSkipConfirm')
def _TagSuffixes():
# Keep this list sorted in the order that tag suffix components are to
# appear in a tag value. That is to say, it should be sorted per ASCII.
components = ('32bit', 'full')
assert tuple(sorted(components)) == components
components_len = len(components)
combinations = 1 << components_len
tag_suffixes = []
for combination in xrange(0, combinations):
tag_suffix = ''
for component_index in xrange(0, components_len):
if combination & (1 << component_index):
tag_suffix += '-' + components[component_index]
tag_suffixes.append(tag_suffix)
return tag_suffixes
def _AddKeystoneKeys(plist, bundle_identifier):
"""Adds the Keystone keys. This must be called AFTER _AddVersionKeys() and
also requires the |bundle_identifier| argument (com.example.product)."""
plist['KSVersion'] = plist['CFBundleShortVersionString']
plist['KSProductID'] = bundle_identifier
plist['KSUpdateURL'] = 'https://tools.google.com/service/update2'
_RemoveKeys(plist, 'KSChannelID')
for tag_suffix in _TagSuffixes():
if tag_suffix:
plist['KSChannelID' + tag_suffix] = tag_suffix
def _RemoveKeystoneKeys(plist):
"""Removes any set Keystone keys."""
_RemoveKeys(plist,
'KSVersion',
'KSProductID',
'KSUpdateURL')
tag_keys = []
for tag_suffix in _TagSuffixes():
tag_keys.append('KSChannelID' + tag_suffix)
_RemoveKeys(plist, *tag_keys)
def Main(argv):
parser = optparse.OptionParser('%prog [options]')
parser.add_option('--breakpad', dest='use_breakpad', action='store',
type='int', default=False, help='Enable Breakpad [1 or 0]')
parser.add_option('--breakpad_uploads', dest='breakpad_uploads',
action='store', type='int', default=False,
help='Enable Breakpad\'s uploading of crash dumps [1 or 0]')
parser.add_option('--keystone', dest='use_keystone', action='store',
type='int', default=False, help='Enable Keystone [1 or 0]')
parser.add_option('--scm', dest='add_scm_info', action='store', type='int',
default=True, help='Add SCM metadata [1 or 0]')
parser.add_option('--branding', dest='branding', action='store',
type='string', default=None, help='The branding of the binary')
parser.add_option('--bundle_id', dest='bundle_identifier',
action='store', type='string', default=None,
help='The bundle id of the binary')
parser.add_option('--version', dest='version', action='store', type='string',
default=None, help='The version string [major.minor.build.patch]')
(options, args) = parser.parse_args(argv)
if len(args) > 0:
print >>sys.stderr, parser.get_usage()
return 1
# Read the plist into its parsed format.
DEST_INFO_PLIST = os.path.join(env['TARGET_BUILD_DIR'], env['INFOPLIST_PATH'])
plist = plistlib.readPlist(DEST_INFO_PLIST)
# Insert the product version.
if not _AddVersionKeys(plist, version=options.version):
return 2
# Add Breakpad if configured to do so.
if options.use_breakpad:
if options.branding is None:
print >>sys.stderr, 'Use of Breakpad requires branding.'
return 1
_AddBreakpadKeys(plist, options.branding)
if options.breakpad_uploads:
plist['BreakpadURL'] = 'https://clients2.google.com/cr/report'
else:
# This allows crash dumping to a file without uploading the
# dump, for testing purposes. Breakpad does not recognise
# "none" as a special value, but this does stop crash dump
# uploading from happening. We need to specify something
# because if "BreakpadURL" is not present, Breakpad will not
# register its crash handler and no crash dumping will occur.
plist['BreakpadURL'] = 'none'
else:
_RemoveBreakpadKeys(plist)
# Only add Keystone in Release builds.
if options.use_keystone and env['CONFIGURATION'] == 'Release':
if options.bundle_identifier is None:
print >>sys.stderr, 'Use of Keystone requires the bundle id.'
return 1
_AddKeystoneKeys(plist, options.bundle_identifier)
else:
_RemoveKeystoneKeys(plist)
# Adds or removes any SCM keys.
if not _DoSCMKeys(plist, options.add_scm_info):
return 3
# Now that all keys have been mutated, rewrite the file.
temp_info_plist = tempfile.NamedTemporaryFile()
plistlib.writePlist(plist, temp_info_plist.name)
# Info.plist will work perfectly well in any plist format, but traditionally
# applications use xml1 for this, so convert it to ensure that it's valid.
proc = subprocess.Popen(['plutil', '-convert', 'xml1', '-o', DEST_INFO_PLIST,
temp_info_plist.name])
proc.wait()
return proc.returncode
if __name__ == '__main__':
sys.exit(Main(sys.argv[1:]))
| bsd-3-clause |
simone/django-gb | django/core/serializers/pyyaml.py | 115 | 2635 | """
YAML serializer.
Requires PyYaml (http://pyyaml.org/), but that's checked for in __init__.
"""
import decimal
import yaml
import sys
from io import StringIO
from django.db import models
from django.core.serializers.base import DeserializationError
from django.core.serializers.python import Serializer as PythonSerializer
from django.core.serializers.python import Deserializer as PythonDeserializer
from django.utils import six
# Use the C (faster) implementation if possible
try:
from yaml import CSafeLoader as SafeLoader
from yaml import CSafeDumper as SafeDumper
except ImportError:
from yaml import SafeLoader, SafeDumper
class DjangoSafeDumper(SafeDumper):
def represent_decimal(self, data):
return self.represent_scalar('tag:yaml.org,2002:str', str(data))
DjangoSafeDumper.add_representer(decimal.Decimal, DjangoSafeDumper.represent_decimal)
class Serializer(PythonSerializer):
"""
Convert a queryset to YAML.
"""
internal_use_only = False
def handle_field(self, obj, field):
# A nasty special case: base YAML doesn't support serialization of time
# types (as opposed to dates or datetimes, which it does support). Since
# we want to use the "safe" serializer for better interoperability, we
# need to do something with those pesky times. Converting 'em to strings
# isn't perfect, but it's better than a "!!python/time" type which would
# halt deserialization under any other language.
if isinstance(field, models.TimeField) and getattr(obj, field.name) is not None:
self._current[field.name] = str(getattr(obj, field.name))
else:
super(Serializer, self).handle_field(obj, field)
def end_serialization(self):
yaml.dump(self.objects, self.stream, Dumper=DjangoSafeDumper, **self.options)
def getvalue(self):
# Grand-parent super
return super(PythonSerializer, self).getvalue()
def Deserializer(stream_or_string, **options):
"""
Deserialize a stream or string of YAML data.
"""
if isinstance(stream_or_string, bytes):
stream_or_string = stream_or_string.decode('utf-8')
if isinstance(stream_or_string, six.string_types):
stream = StringIO(stream_or_string)
else:
stream = stream_or_string
try:
for obj in PythonDeserializer(yaml.load(stream, Loader=SafeLoader), **options):
yield obj
except GeneratorExit:
raise
except Exception as e:
# Map to deserializer error
six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
| bsd-3-clause |
bclau/nova | nova/virt/powervm/lpar.py | 11 | 5106 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 IBM Corp.
#
# 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.
"""PowerVM Logical Partition (LPAR)
PowerVM LPAR configuration attributes.
"""
import shlex
from nova.openstack.common.gettextutils import _
from nova.openstack.common import log as logging
from nova.virt.powervm import exception
LOG = logging.getLogger(__name__)
def load_from_conf_data(conf_data):
"""LPAR configuration data parser.
The configuration data is a string representation of
the attributes of a Logical Partition. The attributes
consists of name/value pairs, which are in command separated
value format.
Example format: name=lpar_name,lpar_id=1,lpar_env=aixlinux
:param conf_data: string containing the LPAR configuration data.
:returns: LPAR -- LPAR object.
"""
# config_data can contain comma separated values within
# double quotes, example: virtual_serial_adapters
# and virtual_scsi_adapters attributes. So can't simply
# split them by ','.
cf_splitter = shlex.shlex(conf_data, posix=True)
cf_splitter.whitespace = ','
cf_splitter.whitespace_split = True
attribs = dict(item.split("=") for item in list(cf_splitter))
lpar = LPAR()
for (key, value) in attribs.items():
try:
lpar[key] = value
except exception.PowerVMLPARAttributeNotFound:
LOG.info(_('Encountered unknown LPAR attribute: %s\n'
'Continuing without storing') % key)
return lpar
class LPAR(object):
"""
Simple class representing a logical partition and the attributes
for the partition and/or its selected profile.
"""
# Attributes for all logical partitions
LPAR_ATTRS = (
'name',
'lpar_id',
'lpar_env',
'state',
'resource_config',
'os_version',
'logical_serial_num',
'default_profile',
'profile_name',
'curr_profile',
'work_group_id',
'allow_perf_collection',
'power_ctrl_lpar_ids',
'boot_mode',
'lpar_keylock',
'auto_start',
'uptime',
'lpar_avail_priority',
'desired_lpar_proc_compat_mode',
'curr_lpar_proc_compat_mode',
'virtual_eth_mac_base_value',
'rmc_ipaddr'
)
# Logical partitions may contain one or more profiles, which
# may have the following attributes
LPAR_PROFILE_ATTRS = (
'name',
'lpar_name',
'lpar_id',
'os_type',
'all_resources',
'mem_mode',
'min_mem',
'desired_mem',
'max_mem',
'proc_mode',
'min_proc_units',
'desired_proc_units',
'max_proc_units',
'min_procs',
'desired_procs',
'max_procs',
'sharing_mode',
'uncap_weight',
'io_slots',
'lpar_io_pool_ids',
'max_virtual_slots',
'virtual_serial_adapters',
'virtual_scsi_adapters',
'virtual_eth_adapters',
'boot_mode',
'conn_monitoring',
'auto_start',
'power_ctrl_lpar_ids',
'lhea_logical_ports',
'lhea_capabilities',
'lpar_proc_compat_mode',
'virtual_fc_adapters'
)
def __init__(self, **kwargs):
self.attributes = dict([k, None] for k in self.LPAR_ATTRS)
self.profile_attributes = dict([k, None] for k
in self.LPAR_PROFILE_ATTRS)
self.attributes.update(kwargs)
self.profile_attributes.update(kwargs)
self.all_attrs = dict(self.attributes.items()
+ self.profile_attributes.items())
def __getitem__(self, key):
if key not in self.all_attrs.keys():
raise exception.PowerVMLPARAttributeNotFound(key)
return self.all_attrs.get(key)
def __setitem__(self, key, value):
if key not in self.all_attrs.keys():
raise exception.PowerVMLPARAttributeNotFound(key)
self.all_attrs[key] = value
def __delitem__(self, key):
if key not in self.all_attrs.keys():
raise exception.PowerVMLPARAttributeNotFound(key)
# We set to None instead of removing the key...
self.all_attrs[key] = None
def to_string(self, exclude_attribs=[]):
conf_data = []
for (key, value) in self.all_attrs.items():
if key in exclude_attribs or value is None:
continue
conf_data.append('%s=%s' % (key, value))
return ','.join(conf_data)
| apache-2.0 |
CyanogenMod/android_external_chromium_org | third_party/protobuf/python/google/protobuf/internal/text_format_test.py | 162 | 23727 | #! /usr/bin/python
#
# Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# 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 Google Inc. 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
# OWNER 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.
"""Test for google.protobuf.text_format."""
__author__ = 'kenton@google.com (Kenton Varda)'
import difflib
import re
import unittest
from google.protobuf import text_format
from google.protobuf.internal import test_util
from google.protobuf import unittest_pb2
from google.protobuf import unittest_mset_pb2
class TextFormatTest(unittest.TestCase):
def ReadGolden(self, golden_filename):
f = test_util.GoldenFile(golden_filename)
golden_lines = f.readlines()
f.close()
return golden_lines
def CompareToGoldenFile(self, text, golden_filename):
golden_lines = self.ReadGolden(golden_filename)
self.CompareToGoldenLines(text, golden_lines)
def CompareToGoldenText(self, text, golden_text):
self.CompareToGoldenLines(text, golden_text.splitlines(1))
def CompareToGoldenLines(self, text, golden_lines):
actual_lines = text.splitlines(1)
self.assertEqual(golden_lines, actual_lines,
"Text doesn't match golden. Diff:\n" +
''.join(difflib.ndiff(golden_lines, actual_lines)))
def testPrintAllFields(self):
message = unittest_pb2.TestAllTypes()
test_util.SetAllFields(message)
self.CompareToGoldenFile(
self.RemoveRedundantZeros(text_format.MessageToString(message)),
'text_format_unittest_data.txt')
def testPrintAllExtensions(self):
message = unittest_pb2.TestAllExtensions()
test_util.SetAllExtensions(message)
self.CompareToGoldenFile(
self.RemoveRedundantZeros(text_format.MessageToString(message)),
'text_format_unittest_extensions_data.txt')
def testPrintMessageSet(self):
message = unittest_mset_pb2.TestMessageSetContainer()
ext1 = unittest_mset_pb2.TestMessageSetExtension1.message_set_extension
ext2 = unittest_mset_pb2.TestMessageSetExtension2.message_set_extension
message.message_set.Extensions[ext1].i = 23
message.message_set.Extensions[ext2].str = 'foo'
self.CompareToGoldenText(text_format.MessageToString(message),
'message_set {\n'
' [protobuf_unittest.TestMessageSetExtension1] {\n'
' i: 23\n'
' }\n'
' [protobuf_unittest.TestMessageSetExtension2] {\n'
' str: \"foo\"\n'
' }\n'
'}\n')
def testPrintBadEnumValue(self):
message = unittest_pb2.TestAllTypes()
message.optional_nested_enum = 100
message.optional_foreign_enum = 101
message.optional_import_enum = 102
self.CompareToGoldenText(
text_format.MessageToString(message),
'optional_nested_enum: 100\n'
'optional_foreign_enum: 101\n'
'optional_import_enum: 102\n')
def testPrintBadEnumValueExtensions(self):
message = unittest_pb2.TestAllExtensions()
message.Extensions[unittest_pb2.optional_nested_enum_extension] = 100
message.Extensions[unittest_pb2.optional_foreign_enum_extension] = 101
message.Extensions[unittest_pb2.optional_import_enum_extension] = 102
self.CompareToGoldenText(
text_format.MessageToString(message),
'[protobuf_unittest.optional_nested_enum_extension]: 100\n'
'[protobuf_unittest.optional_foreign_enum_extension]: 101\n'
'[protobuf_unittest.optional_import_enum_extension]: 102\n')
def testPrintExotic(self):
message = unittest_pb2.TestAllTypes()
message.repeated_int64.append(-9223372036854775808)
message.repeated_uint64.append(18446744073709551615)
message.repeated_double.append(123.456)
message.repeated_double.append(1.23e22)
message.repeated_double.append(1.23e-18)
message.repeated_string.append('\000\001\a\b\f\n\r\t\v\\\'"')
message.repeated_string.append(u'\u00fc\ua71f')
self.CompareToGoldenText(
self.RemoveRedundantZeros(text_format.MessageToString(message)),
'repeated_int64: -9223372036854775808\n'
'repeated_uint64: 18446744073709551615\n'
'repeated_double: 123.456\n'
'repeated_double: 1.23e+22\n'
'repeated_double: 1.23e-18\n'
'repeated_string: '
'"\\000\\001\\007\\010\\014\\n\\r\\t\\013\\\\\\\'\\""\n'
'repeated_string: "\\303\\274\\352\\234\\237"\n')
def testPrintNestedMessageAsOneLine(self):
message = unittest_pb2.TestAllTypes()
msg = message.repeated_nested_message.add()
msg.bb = 42;
self.CompareToGoldenText(
text_format.MessageToString(message, as_one_line=True),
'repeated_nested_message { bb: 42 }')
def testPrintRepeatedFieldsAsOneLine(self):
message = unittest_pb2.TestAllTypes()
message.repeated_int32.append(1)
message.repeated_int32.append(1)
message.repeated_int32.append(3)
message.repeated_string.append("Google")
message.repeated_string.append("Zurich")
self.CompareToGoldenText(
text_format.MessageToString(message, as_one_line=True),
'repeated_int32: 1 repeated_int32: 1 repeated_int32: 3 '
'repeated_string: "Google" repeated_string: "Zurich"')
def testPrintNestedNewLineInStringAsOneLine(self):
message = unittest_pb2.TestAllTypes()
message.optional_string = "a\nnew\nline"
self.CompareToGoldenText(
text_format.MessageToString(message, as_one_line=True),
'optional_string: "a\\nnew\\nline"')
def testPrintMessageSetAsOneLine(self):
message = unittest_mset_pb2.TestMessageSetContainer()
ext1 = unittest_mset_pb2.TestMessageSetExtension1.message_set_extension
ext2 = unittest_mset_pb2.TestMessageSetExtension2.message_set_extension
message.message_set.Extensions[ext1].i = 23
message.message_set.Extensions[ext2].str = 'foo'
self.CompareToGoldenText(
text_format.MessageToString(message, as_one_line=True),
'message_set {'
' [protobuf_unittest.TestMessageSetExtension1] {'
' i: 23'
' }'
' [protobuf_unittest.TestMessageSetExtension2] {'
' str: \"foo\"'
' }'
' }')
def testPrintExoticAsOneLine(self):
message = unittest_pb2.TestAllTypes()
message.repeated_int64.append(-9223372036854775808)
message.repeated_uint64.append(18446744073709551615)
message.repeated_double.append(123.456)
message.repeated_double.append(1.23e22)
message.repeated_double.append(1.23e-18)
message.repeated_string.append('\000\001\a\b\f\n\r\t\v\\\'"')
message.repeated_string.append(u'\u00fc\ua71f')
self.CompareToGoldenText(
self.RemoveRedundantZeros(
text_format.MessageToString(message, as_one_line=True)),
'repeated_int64: -9223372036854775808'
' repeated_uint64: 18446744073709551615'
' repeated_double: 123.456'
' repeated_double: 1.23e+22'
' repeated_double: 1.23e-18'
' repeated_string: '
'"\\000\\001\\007\\010\\014\\n\\r\\t\\013\\\\\\\'\\""'
' repeated_string: "\\303\\274\\352\\234\\237"')
def testRoundTripExoticAsOneLine(self):
message = unittest_pb2.TestAllTypes()
message.repeated_int64.append(-9223372036854775808)
message.repeated_uint64.append(18446744073709551615)
message.repeated_double.append(123.456)
message.repeated_double.append(1.23e22)
message.repeated_double.append(1.23e-18)
message.repeated_string.append('\000\001\a\b\f\n\r\t\v\\\'"')
message.repeated_string.append(u'\u00fc\ua71f')
# Test as_utf8 = False.
wire_text = text_format.MessageToString(
message, as_one_line=True, as_utf8=False)
parsed_message = unittest_pb2.TestAllTypes()
text_format.Merge(wire_text, parsed_message)
self.assertEquals(message, parsed_message)
# Test as_utf8 = True.
wire_text = text_format.MessageToString(
message, as_one_line=True, as_utf8=True)
parsed_message = unittest_pb2.TestAllTypes()
text_format.Merge(wire_text, parsed_message)
self.assertEquals(message, parsed_message)
def testPrintRawUtf8String(self):
message = unittest_pb2.TestAllTypes()
message.repeated_string.append(u'\u00fc\ua71f')
text = text_format.MessageToString(message, as_utf8 = True)
self.CompareToGoldenText(text, 'repeated_string: "\303\274\352\234\237"\n')
parsed_message = unittest_pb2.TestAllTypes()
text_format.Merge(text, parsed_message)
self.assertEquals(message, parsed_message)
def testMessageToString(self):
message = unittest_pb2.ForeignMessage()
message.c = 123
self.assertEqual('c: 123\n', str(message))
def RemoveRedundantZeros(self, text):
# Some platforms print 1e+5 as 1e+005. This is fine, but we need to remove
# these zeros in order to match the golden file.
text = text.replace('e+0','e+').replace('e+0','e+') \
.replace('e-0','e-').replace('e-0','e-')
# Floating point fields are printed with .0 suffix even if they are
# actualy integer numbers.
text = re.compile('\.0$', re.MULTILINE).sub('', text)
return text
def testMergeGolden(self):
golden_text = '\n'.join(self.ReadGolden('text_format_unittest_data.txt'))
parsed_message = unittest_pb2.TestAllTypes()
text_format.Merge(golden_text, parsed_message)
message = unittest_pb2.TestAllTypes()
test_util.SetAllFields(message)
self.assertEquals(message, parsed_message)
def testMergeGoldenExtensions(self):
golden_text = '\n'.join(self.ReadGolden(
'text_format_unittest_extensions_data.txt'))
parsed_message = unittest_pb2.TestAllExtensions()
text_format.Merge(golden_text, parsed_message)
message = unittest_pb2.TestAllExtensions()
test_util.SetAllExtensions(message)
self.assertEquals(message, parsed_message)
def testMergeAllFields(self):
message = unittest_pb2.TestAllTypes()
test_util.SetAllFields(message)
ascii_text = text_format.MessageToString(message)
parsed_message = unittest_pb2.TestAllTypes()
text_format.Merge(ascii_text, parsed_message)
self.assertEqual(message, parsed_message)
test_util.ExpectAllFieldsSet(self, message)
def testMergeAllExtensions(self):
message = unittest_pb2.TestAllExtensions()
test_util.SetAllExtensions(message)
ascii_text = text_format.MessageToString(message)
parsed_message = unittest_pb2.TestAllExtensions()
text_format.Merge(ascii_text, parsed_message)
self.assertEqual(message, parsed_message)
def testMergeMessageSet(self):
message = unittest_pb2.TestAllTypes()
text = ('repeated_uint64: 1\n'
'repeated_uint64: 2\n')
text_format.Merge(text, message)
self.assertEqual(1, message.repeated_uint64[0])
self.assertEqual(2, message.repeated_uint64[1])
message = unittest_mset_pb2.TestMessageSetContainer()
text = ('message_set {\n'
' [protobuf_unittest.TestMessageSetExtension1] {\n'
' i: 23\n'
' }\n'
' [protobuf_unittest.TestMessageSetExtension2] {\n'
' str: \"foo\"\n'
' }\n'
'}\n')
text_format.Merge(text, message)
ext1 = unittest_mset_pb2.TestMessageSetExtension1.message_set_extension
ext2 = unittest_mset_pb2.TestMessageSetExtension2.message_set_extension
self.assertEquals(23, message.message_set.Extensions[ext1].i)
self.assertEquals('foo', message.message_set.Extensions[ext2].str)
def testMergeExotic(self):
message = unittest_pb2.TestAllTypes()
text = ('repeated_int64: -9223372036854775808\n'
'repeated_uint64: 18446744073709551615\n'
'repeated_double: 123.456\n'
'repeated_double: 1.23e+22\n'
'repeated_double: 1.23e-18\n'
'repeated_string: \n'
'"\\000\\001\\007\\010\\014\\n\\r\\t\\013\\\\\\\'\\""\n'
'repeated_string: "foo" \'corge\' "grault"\n'
'repeated_string: "\\303\\274\\352\\234\\237"\n'
'repeated_string: "\\xc3\\xbc"\n'
'repeated_string: "\xc3\xbc"\n')
text_format.Merge(text, message)
self.assertEqual(-9223372036854775808, message.repeated_int64[0])
self.assertEqual(18446744073709551615, message.repeated_uint64[0])
self.assertEqual(123.456, message.repeated_double[0])
self.assertEqual(1.23e22, message.repeated_double[1])
self.assertEqual(1.23e-18, message.repeated_double[2])
self.assertEqual(
'\000\001\a\b\f\n\r\t\v\\\'"', message.repeated_string[0])
self.assertEqual('foocorgegrault', message.repeated_string[1])
self.assertEqual(u'\u00fc\ua71f', message.repeated_string[2])
self.assertEqual(u'\u00fc', message.repeated_string[3])
def testMergeEmptyText(self):
message = unittest_pb2.TestAllTypes()
text = ''
text_format.Merge(text, message)
self.assertEquals(unittest_pb2.TestAllTypes(), message)
def testMergeInvalidUtf8(self):
message = unittest_pb2.TestAllTypes()
text = 'repeated_string: "\\xc3\\xc3"'
self.assertRaises(text_format.ParseError, text_format.Merge, text, message)
def testMergeSingleWord(self):
message = unittest_pb2.TestAllTypes()
text = 'foo'
self.assertRaisesWithMessage(
text_format.ParseError,
('1:1 : Message type "protobuf_unittest.TestAllTypes" has no field named '
'"foo".'),
text_format.Merge, text, message)
def testMergeUnknownField(self):
message = unittest_pb2.TestAllTypes()
text = 'unknown_field: 8\n'
self.assertRaisesWithMessage(
text_format.ParseError,
('1:1 : Message type "protobuf_unittest.TestAllTypes" has no field named '
'"unknown_field".'),
text_format.Merge, text, message)
def testMergeBadExtension(self):
message = unittest_pb2.TestAllExtensions()
text = '[unknown_extension]: 8\n'
self.assertRaisesWithMessage(
text_format.ParseError,
'1:2 : Extension "unknown_extension" not registered.',
text_format.Merge, text, message)
message = unittest_pb2.TestAllTypes()
self.assertRaisesWithMessage(
text_format.ParseError,
('1:2 : Message type "protobuf_unittest.TestAllTypes" does not have '
'extensions.'),
text_format.Merge, text, message)
def testMergeGroupNotClosed(self):
message = unittest_pb2.TestAllTypes()
text = 'RepeatedGroup: <'
self.assertRaisesWithMessage(
text_format.ParseError, '1:16 : Expected ">".',
text_format.Merge, text, message)
text = 'RepeatedGroup: {'
self.assertRaisesWithMessage(
text_format.ParseError, '1:16 : Expected "}".',
text_format.Merge, text, message)
def testMergeEmptyGroup(self):
message = unittest_pb2.TestAllTypes()
text = 'OptionalGroup: {}'
text_format.Merge(text, message)
self.assertTrue(message.HasField('optionalgroup'))
message.Clear()
message = unittest_pb2.TestAllTypes()
text = 'OptionalGroup: <>'
text_format.Merge(text, message)
self.assertTrue(message.HasField('optionalgroup'))
def testMergeBadEnumValue(self):
message = unittest_pb2.TestAllTypes()
text = 'optional_nested_enum: BARR'
self.assertRaisesWithMessage(
text_format.ParseError,
('1:23 : Enum type "protobuf_unittest.TestAllTypes.NestedEnum" '
'has no value named BARR.'),
text_format.Merge, text, message)
message = unittest_pb2.TestAllTypes()
text = 'optional_nested_enum: 100'
self.assertRaisesWithMessage(
text_format.ParseError,
('1:23 : Enum type "protobuf_unittest.TestAllTypes.NestedEnum" '
'has no value with number 100.'),
text_format.Merge, text, message)
def testMergeBadIntValue(self):
message = unittest_pb2.TestAllTypes()
text = 'optional_int32: bork'
self.assertRaisesWithMessage(
text_format.ParseError,
('1:17 : Couldn\'t parse integer: bork'),
text_format.Merge, text, message)
def assertRaisesWithMessage(self, e_class, e, func, *args, **kwargs):
"""Same as assertRaises, but also compares the exception message."""
if hasattr(e_class, '__name__'):
exc_name = e_class.__name__
else:
exc_name = str(e_class)
try:
func(*args, **kwargs)
except e_class as expr:
if str(expr) != e:
msg = '%s raised, but with wrong message: "%s" instead of "%s"'
raise self.failureException(msg % (exc_name,
str(expr).encode('string_escape'),
e.encode('string_escape')))
return
else:
raise self.failureException('%s not raised' % exc_name)
class TokenizerTest(unittest.TestCase):
def testSimpleTokenCases(self):
text = ('identifier1:"string1"\n \n\n'
'identifier2 : \n \n123 \n identifier3 :\'string\'\n'
'identifiER_4 : 1.1e+2 ID5:-0.23 ID6:\'aaaa\\\'bbbb\'\n'
'ID7 : "aa\\"bb"\n\n\n\n ID8: {A:inf B:-inf C:true D:false}\n'
'ID9: 22 ID10: -111111111111111111 ID11: -22\n'
'ID12: 2222222222222222222 ID13: 1.23456f ID14: 1.2e+2f '
'false_bool: 0 true_BOOL:t \n true_bool1: 1 false_BOOL1:f ' )
tokenizer = text_format._Tokenizer(text)
methods = [(tokenizer.ConsumeIdentifier, 'identifier1'),
':',
(tokenizer.ConsumeString, 'string1'),
(tokenizer.ConsumeIdentifier, 'identifier2'),
':',
(tokenizer.ConsumeInt32, 123),
(tokenizer.ConsumeIdentifier, 'identifier3'),
':',
(tokenizer.ConsumeString, 'string'),
(tokenizer.ConsumeIdentifier, 'identifiER_4'),
':',
(tokenizer.ConsumeFloat, 1.1e+2),
(tokenizer.ConsumeIdentifier, 'ID5'),
':',
(tokenizer.ConsumeFloat, -0.23),
(tokenizer.ConsumeIdentifier, 'ID6'),
':',
(tokenizer.ConsumeString, 'aaaa\'bbbb'),
(tokenizer.ConsumeIdentifier, 'ID7'),
':',
(tokenizer.ConsumeString, 'aa\"bb'),
(tokenizer.ConsumeIdentifier, 'ID8'),
':',
'{',
(tokenizer.ConsumeIdentifier, 'A'),
':',
(tokenizer.ConsumeFloat, float('inf')),
(tokenizer.ConsumeIdentifier, 'B'),
':',
(tokenizer.ConsumeFloat, -float('inf')),
(tokenizer.ConsumeIdentifier, 'C'),
':',
(tokenizer.ConsumeBool, True),
(tokenizer.ConsumeIdentifier, 'D'),
':',
(tokenizer.ConsumeBool, False),
'}',
(tokenizer.ConsumeIdentifier, 'ID9'),
':',
(tokenizer.ConsumeUint32, 22),
(tokenizer.ConsumeIdentifier, 'ID10'),
':',
(tokenizer.ConsumeInt64, -111111111111111111),
(tokenizer.ConsumeIdentifier, 'ID11'),
':',
(tokenizer.ConsumeInt32, -22),
(tokenizer.ConsumeIdentifier, 'ID12'),
':',
(tokenizer.ConsumeUint64, 2222222222222222222),
(tokenizer.ConsumeIdentifier, 'ID13'),
':',
(tokenizer.ConsumeFloat, 1.23456),
(tokenizer.ConsumeIdentifier, 'ID14'),
':',
(tokenizer.ConsumeFloat, 1.2e+2),
(tokenizer.ConsumeIdentifier, 'false_bool'),
':',
(tokenizer.ConsumeBool, False),
(tokenizer.ConsumeIdentifier, 'true_BOOL'),
':',
(tokenizer.ConsumeBool, True),
(tokenizer.ConsumeIdentifier, 'true_bool1'),
':',
(tokenizer.ConsumeBool, True),
(tokenizer.ConsumeIdentifier, 'false_BOOL1'),
':',
(tokenizer.ConsumeBool, False)]
i = 0
while not tokenizer.AtEnd():
m = methods[i]
if type(m) == str:
token = tokenizer.token
self.assertEqual(token, m)
tokenizer.NextToken()
else:
self.assertEqual(m[1], m[0]())
i += 1
def testConsumeIntegers(self):
# This test only tests the failures in the integer parsing methods as well
# as the '0' special cases.
int64_max = (1 << 63) - 1
uint32_max = (1 << 32) - 1
text = '-1 %d %d' % (uint32_max + 1, int64_max + 1)
tokenizer = text_format._Tokenizer(text)
self.assertRaises(text_format.ParseError, tokenizer.ConsumeUint32)
self.assertRaises(text_format.ParseError, tokenizer.ConsumeUint64)
self.assertEqual(-1, tokenizer.ConsumeInt32())
self.assertRaises(text_format.ParseError, tokenizer.ConsumeUint32)
self.assertRaises(text_format.ParseError, tokenizer.ConsumeInt32)
self.assertEqual(uint32_max + 1, tokenizer.ConsumeInt64())
self.assertRaises(text_format.ParseError, tokenizer.ConsumeInt64)
self.assertEqual(int64_max + 1, tokenizer.ConsumeUint64())
self.assertTrue(tokenizer.AtEnd())
text = '-0 -0 0 0'
tokenizer = text_format._Tokenizer(text)
self.assertEqual(0, tokenizer.ConsumeUint32())
self.assertEqual(0, tokenizer.ConsumeUint64())
self.assertEqual(0, tokenizer.ConsumeUint32())
self.assertEqual(0, tokenizer.ConsumeUint64())
self.assertTrue(tokenizer.AtEnd())
def testConsumeByteString(self):
text = '"string1\''
tokenizer = text_format._Tokenizer(text)
self.assertRaises(text_format.ParseError, tokenizer.ConsumeByteString)
text = 'string1"'
tokenizer = text_format._Tokenizer(text)
self.assertRaises(text_format.ParseError, tokenizer.ConsumeByteString)
text = '\n"\\xt"'
tokenizer = text_format._Tokenizer(text)
self.assertRaises(text_format.ParseError, tokenizer.ConsumeByteString)
text = '\n"\\"'
tokenizer = text_format._Tokenizer(text)
self.assertRaises(text_format.ParseError, tokenizer.ConsumeByteString)
text = '\n"\\x"'
tokenizer = text_format._Tokenizer(text)
self.assertRaises(text_format.ParseError, tokenizer.ConsumeByteString)
def testConsumeBool(self):
text = 'not-a-bool'
tokenizer = text_format._Tokenizer(text)
self.assertRaises(text_format.ParseError, tokenizer.ConsumeBool)
if __name__ == '__main__':
unittest.main()
| bsd-3-clause |
janocat/odoo | addons/base_report_designer/__init__.py | 421 | 1136 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import wizard
import base_report_designer
import installer
import openerp_sxw2rml
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
mancoast/CPythonPyc_test | cpython/273_test_memoryio.py | 31 | 25664 | """Unit tests for memory-based file-like objects.
StringIO -- for unicode strings
BytesIO -- for bytes
"""
from __future__ import unicode_literals
from __future__ import print_function
import unittest
from test import test_support as support
import io
import _pyio as pyio
import pickle
class MemorySeekTestMixin:
def testInit(self):
buf = self.buftype("1234567890")
bytesIo = self.ioclass(buf)
def testRead(self):
buf = self.buftype("1234567890")
bytesIo = self.ioclass(buf)
self.assertEqual(buf[:1], bytesIo.read(1))
self.assertEqual(buf[1:5], bytesIo.read(4))
self.assertEqual(buf[5:], bytesIo.read(900))
self.assertEqual(self.EOF, bytesIo.read())
def testReadNoArgs(self):
buf = self.buftype("1234567890")
bytesIo = self.ioclass(buf)
self.assertEqual(buf, bytesIo.read())
self.assertEqual(self.EOF, bytesIo.read())
def testSeek(self):
buf = self.buftype("1234567890")
bytesIo = self.ioclass(buf)
bytesIo.read(5)
bytesIo.seek(0)
self.assertEqual(buf, bytesIo.read())
bytesIo.seek(3)
self.assertEqual(buf[3:], bytesIo.read())
self.assertRaises(TypeError, bytesIo.seek, 0.0)
def testTell(self):
buf = self.buftype("1234567890")
bytesIo = self.ioclass(buf)
self.assertEqual(0, bytesIo.tell())
bytesIo.seek(5)
self.assertEqual(5, bytesIo.tell())
bytesIo.seek(10000)
self.assertEqual(10000, bytesIo.tell())
class MemoryTestMixin:
def test_detach(self):
buf = self.ioclass()
self.assertRaises(self.UnsupportedOperation, buf.detach)
def write_ops(self, f, t):
self.assertEqual(f.write(t("blah.")), 5)
self.assertEqual(f.seek(0), 0)
self.assertEqual(f.write(t("Hello.")), 6)
self.assertEqual(f.tell(), 6)
self.assertEqual(f.seek(5), 5)
self.assertEqual(f.tell(), 5)
self.assertEqual(f.write(t(" world\n\n\n")), 9)
self.assertEqual(f.seek(0), 0)
self.assertEqual(f.write(t("h")), 1)
self.assertEqual(f.truncate(12), 12)
self.assertEqual(f.tell(), 1)
def test_write(self):
buf = self.buftype("hello world\n")
memio = self.ioclass(buf)
self.write_ops(memio, self.buftype)
self.assertEqual(memio.getvalue(), buf)
memio = self.ioclass()
self.write_ops(memio, self.buftype)
self.assertEqual(memio.getvalue(), buf)
self.assertRaises(TypeError, memio.write, None)
memio.close()
self.assertRaises(ValueError, memio.write, self.buftype(""))
def test_writelines(self):
buf = self.buftype("1234567890")
memio = self.ioclass()
self.assertEqual(memio.writelines([buf] * 100), None)
self.assertEqual(memio.getvalue(), buf * 100)
memio.writelines([])
self.assertEqual(memio.getvalue(), buf * 100)
memio = self.ioclass()
self.assertRaises(TypeError, memio.writelines, [buf] + [1])
self.assertEqual(memio.getvalue(), buf)
self.assertRaises(TypeError, memio.writelines, None)
memio.close()
self.assertRaises(ValueError, memio.writelines, [])
def test_writelines_error(self):
memio = self.ioclass()
def error_gen():
yield self.buftype('spam')
raise KeyboardInterrupt
self.assertRaises(KeyboardInterrupt, memio.writelines, error_gen())
def test_truncate(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
self.assertRaises(ValueError, memio.truncate, -1)
memio.seek(6)
self.assertEqual(memio.truncate(), 6)
self.assertEqual(memio.getvalue(), buf[:6])
self.assertEqual(memio.truncate(4), 4)
self.assertEqual(memio.getvalue(), buf[:4])
# truncate() accepts long objects
self.assertEqual(memio.truncate(4L), 4)
self.assertEqual(memio.getvalue(), buf[:4])
self.assertEqual(memio.tell(), 6)
memio.seek(0, 2)
memio.write(buf)
self.assertEqual(memio.getvalue(), buf[:4] + buf)
pos = memio.tell()
self.assertEqual(memio.truncate(None), pos)
self.assertEqual(memio.tell(), pos)
self.assertRaises(TypeError, memio.truncate, '0')
memio.close()
self.assertRaises(ValueError, memio.truncate, 0)
def test_init(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
self.assertEqual(memio.getvalue(), buf)
memio = self.ioclass(None)
self.assertEqual(memio.getvalue(), self.EOF)
memio.__init__(buf * 2)
self.assertEqual(memio.getvalue(), buf * 2)
memio.__init__(buf)
self.assertEqual(memio.getvalue(), buf)
def test_read(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
self.assertEqual(memio.read(0), self.EOF)
self.assertEqual(memio.read(1), buf[:1])
# read() accepts long objects
self.assertEqual(memio.read(4L), buf[1:5])
self.assertEqual(memio.read(900), buf[5:])
self.assertEqual(memio.read(), self.EOF)
memio.seek(0)
self.assertEqual(memio.read(), buf)
self.assertEqual(memio.read(), self.EOF)
self.assertEqual(memio.tell(), 10)
memio.seek(0)
self.assertEqual(memio.read(-1), buf)
memio.seek(0)
self.assertEqual(type(memio.read()), type(buf))
memio.seek(100)
self.assertEqual(type(memio.read()), type(buf))
memio.seek(0)
self.assertEqual(memio.read(None), buf)
self.assertRaises(TypeError, memio.read, '')
memio.close()
self.assertRaises(ValueError, memio.read)
def test_readline(self):
buf = self.buftype("1234567890\n")
memio = self.ioclass(buf * 2)
self.assertEqual(memio.readline(0), self.EOF)
self.assertEqual(memio.readline(), buf)
self.assertEqual(memio.readline(), buf)
self.assertEqual(memio.readline(), self.EOF)
memio.seek(0)
self.assertEqual(memio.readline(5), buf[:5])
# readline() accepts long objects
self.assertEqual(memio.readline(5L), buf[5:10])
self.assertEqual(memio.readline(5), buf[10:15])
memio.seek(0)
self.assertEqual(memio.readline(-1), buf)
memio.seek(0)
self.assertEqual(memio.readline(0), self.EOF)
buf = self.buftype("1234567890\n")
memio = self.ioclass((buf * 3)[:-1])
self.assertEqual(memio.readline(), buf)
self.assertEqual(memio.readline(), buf)
self.assertEqual(memio.readline(), buf[:-1])
self.assertEqual(memio.readline(), self.EOF)
memio.seek(0)
self.assertEqual(type(memio.readline()), type(buf))
self.assertEqual(memio.readline(), buf)
self.assertRaises(TypeError, memio.readline, '')
memio.close()
self.assertRaises(ValueError, memio.readline)
def test_readlines(self):
buf = self.buftype("1234567890\n")
memio = self.ioclass(buf * 10)
self.assertEqual(memio.readlines(), [buf] * 10)
memio.seek(5)
self.assertEqual(memio.readlines(), [buf[5:]] + [buf] * 9)
memio.seek(0)
# readlines() accepts long objects
self.assertEqual(memio.readlines(15L), [buf] * 2)
memio.seek(0)
self.assertEqual(memio.readlines(-1), [buf] * 10)
memio.seek(0)
self.assertEqual(memio.readlines(0), [buf] * 10)
memio.seek(0)
self.assertEqual(type(memio.readlines()[0]), type(buf))
memio.seek(0)
self.assertEqual(memio.readlines(None), [buf] * 10)
self.assertRaises(TypeError, memio.readlines, '')
memio.close()
self.assertRaises(ValueError, memio.readlines)
def test_iterator(self):
buf = self.buftype("1234567890\n")
memio = self.ioclass(buf * 10)
self.assertEqual(iter(memio), memio)
self.assertTrue(hasattr(memio, '__iter__'))
self.assertTrue(hasattr(memio, 'next'))
i = 0
for line in memio:
self.assertEqual(line, buf)
i += 1
self.assertEqual(i, 10)
memio.seek(0)
i = 0
for line in memio:
self.assertEqual(line, buf)
i += 1
self.assertEqual(i, 10)
memio = self.ioclass(buf * 2)
memio.close()
self.assertRaises(ValueError, next, memio)
def test_getvalue(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
self.assertEqual(memio.getvalue(), buf)
memio.read()
self.assertEqual(memio.getvalue(), buf)
self.assertEqual(type(memio.getvalue()), type(buf))
memio = self.ioclass(buf * 1000)
self.assertEqual(memio.getvalue()[-3:], self.buftype("890"))
memio = self.ioclass(buf)
memio.close()
self.assertRaises(ValueError, memio.getvalue)
def test_seek(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
memio.read(5)
self.assertRaises(ValueError, memio.seek, -1)
self.assertRaises(ValueError, memio.seek, 1, -1)
self.assertRaises(ValueError, memio.seek, 1, 3)
self.assertEqual(memio.seek(0), 0)
self.assertEqual(memio.seek(0, 0), 0)
self.assertEqual(memio.read(), buf)
self.assertEqual(memio.seek(3), 3)
# seek() accepts long objects
self.assertEqual(memio.seek(3L), 3)
self.assertEqual(memio.seek(0, 1), 3)
self.assertEqual(memio.read(), buf[3:])
self.assertEqual(memio.seek(len(buf)), len(buf))
self.assertEqual(memio.read(), self.EOF)
memio.seek(len(buf) + 1)
self.assertEqual(memio.read(), self.EOF)
self.assertEqual(memio.seek(0, 2), len(buf))
self.assertEqual(memio.read(), self.EOF)
memio.close()
self.assertRaises(ValueError, memio.seek, 0)
def test_overseek(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
self.assertEqual(memio.seek(len(buf) + 1), 11)
self.assertEqual(memio.read(), self.EOF)
self.assertEqual(memio.tell(), 11)
self.assertEqual(memio.getvalue(), buf)
memio.write(self.EOF)
self.assertEqual(memio.getvalue(), buf)
memio.write(buf)
self.assertEqual(memio.getvalue(), buf + self.buftype('\0') + buf)
def test_tell(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
self.assertEqual(memio.tell(), 0)
memio.seek(5)
self.assertEqual(memio.tell(), 5)
memio.seek(10000)
self.assertEqual(memio.tell(), 10000)
memio.close()
self.assertRaises(ValueError, memio.tell)
def test_flush(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
self.assertEqual(memio.flush(), None)
def test_flags(self):
memio = self.ioclass()
self.assertEqual(memio.writable(), True)
self.assertEqual(memio.readable(), True)
self.assertEqual(memio.seekable(), True)
self.assertEqual(memio.isatty(), False)
self.assertEqual(memio.closed, False)
memio.close()
self.assertEqual(memio.writable(), True)
self.assertEqual(memio.readable(), True)
self.assertEqual(memio.seekable(), True)
self.assertRaises(ValueError, memio.isatty)
self.assertEqual(memio.closed, True)
def test_subclassing(self):
buf = self.buftype("1234567890")
def test1():
class MemIO(self.ioclass):
pass
m = MemIO(buf)
return m.getvalue()
def test2():
class MemIO(self.ioclass):
def __init__(me, a, b):
self.ioclass.__init__(me, a)
m = MemIO(buf, None)
return m.getvalue()
self.assertEqual(test1(), buf)
self.assertEqual(test2(), buf)
def test_instance_dict_leak(self):
# Test case for issue #6242.
# This will be caught by regrtest.py -R if this leak.
for _ in range(100):
memio = self.ioclass()
memio.foo = 1
def test_pickling(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
memio.foo = 42
memio.seek(2)
class PickleTestMemIO(self.ioclass):
def __init__(me, initvalue, foo):
self.ioclass.__init__(me, initvalue)
me.foo = foo
# __getnewargs__ is undefined on purpose. This checks that PEP 307
# is used to provide pickling support.
# Pickle expects the class to be on the module level. Here we use a
# little hack to allow the PickleTestMemIO class to derive from
# self.ioclass without having to define all combinations explicitly on
# the module-level.
import __main__
PickleTestMemIO.__module__ = '__main__'
__main__.PickleTestMemIO = PickleTestMemIO
submemio = PickleTestMemIO(buf, 80)
submemio.seek(2)
# We only support pickle protocol 2 and onward since we use extended
# __reduce__ API of PEP 307 to provide pickling support.
for proto in range(2, pickle.HIGHEST_PROTOCOL):
for obj in (memio, submemio):
obj2 = pickle.loads(pickle.dumps(obj, protocol=proto))
self.assertEqual(obj.getvalue(), obj2.getvalue())
self.assertEqual(obj.__class__, obj2.__class__)
self.assertEqual(obj.foo, obj2.foo)
self.assertEqual(obj.tell(), obj2.tell())
obj.close()
self.assertRaises(ValueError, pickle.dumps, obj, proto)
del __main__.PickleTestMemIO
class PyBytesIOTest(MemoryTestMixin, MemorySeekTestMixin, unittest.TestCase):
UnsupportedOperation = pyio.UnsupportedOperation
@staticmethod
def buftype(s):
return s.encode("ascii")
ioclass = pyio.BytesIO
EOF = b""
def test_read1(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
self.assertRaises(TypeError, memio.read1)
self.assertEqual(memio.read(), buf)
def test_readinto(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
b = bytearray(b"hello")
self.assertEqual(memio.readinto(b), 5)
self.assertEqual(b, b"12345")
self.assertEqual(memio.readinto(b), 5)
self.assertEqual(b, b"67890")
self.assertEqual(memio.readinto(b), 0)
self.assertEqual(b, b"67890")
b = bytearray(b"hello world")
memio.seek(0)
self.assertEqual(memio.readinto(b), 10)
self.assertEqual(b, b"1234567890d")
b = bytearray(b"")
memio.seek(0)
self.assertEqual(memio.readinto(b), 0)
self.assertEqual(b, b"")
self.assertRaises(TypeError, memio.readinto, '')
import array
a = array.array(b'b', b"hello world")
memio = self.ioclass(buf)
memio.readinto(a)
self.assertEqual(a.tostring(), b"1234567890d")
memio.close()
self.assertRaises(ValueError, memio.readinto, b)
memio = self.ioclass(b"123")
b = bytearray()
memio.seek(42)
memio.readinto(b)
self.assertEqual(b, b"")
def test_relative_seek(self):
buf = self.buftype("1234567890")
memio = self.ioclass(buf)
self.assertEqual(memio.seek(-1, 1), 0)
self.assertEqual(memio.seek(3, 1), 3)
self.assertEqual(memio.seek(-4, 1), 0)
self.assertEqual(memio.seek(-1, 2), 9)
self.assertEqual(memio.seek(1, 1), 10)
self.assertEqual(memio.seek(1, 2), 11)
memio.seek(-3, 2)
self.assertEqual(memio.read(), buf[-3:])
memio.seek(0)
memio.seek(1, 1)
self.assertEqual(memio.read(), buf[1:])
def test_unicode(self):
memio = self.ioclass()
self.assertRaises(TypeError, self.ioclass, "1234567890")
self.assertRaises(TypeError, memio.write, "1234567890")
self.assertRaises(TypeError, memio.writelines, ["1234567890"])
def test_bytes_array(self):
buf = b"1234567890"
import array
a = array.array(b'b', buf)
memio = self.ioclass(a)
self.assertEqual(memio.getvalue(), buf)
self.assertEqual(memio.write(a), 10)
self.assertEqual(memio.getvalue(), buf)
def test_issue5449(self):
buf = self.buftype("1234567890")
self.ioclass(initial_bytes=buf)
self.assertRaises(TypeError, self.ioclass, buf, foo=None)
class TextIOTestMixin:
def test_newlines_property(self):
memio = self.ioclass(newline=None)
# The C StringIO decodes newlines in write() calls, but the Python
# implementation only does when reading. This function forces them to
# be decoded for testing.
def force_decode():
memio.seek(0)
memio.read()
self.assertEqual(memio.newlines, None)
memio.write("a\n")
force_decode()
self.assertEqual(memio.newlines, "\n")
memio.write("b\r\n")
force_decode()
self.assertEqual(memio.newlines, ("\n", "\r\n"))
memio.write("c\rd")
force_decode()
self.assertEqual(memio.newlines, ("\r", "\n", "\r\n"))
def test_relative_seek(self):
memio = self.ioclass()
self.assertRaises(IOError, memio.seek, -1, 1)
self.assertRaises(IOError, memio.seek, 3, 1)
self.assertRaises(IOError, memio.seek, -3, 1)
self.assertRaises(IOError, memio.seek, -1, 2)
self.assertRaises(IOError, memio.seek, 1, 1)
self.assertRaises(IOError, memio.seek, 1, 2)
def test_textio_properties(self):
memio = self.ioclass()
# These are just dummy values but we nevertheless check them for fear
# of unexpected breakage.
self.assertIsNone(memio.encoding)
self.assertIsNone(memio.errors)
self.assertFalse(memio.line_buffering)
def test_newline_none(self):
# newline=None
memio = self.ioclass("a\nb\r\nc\rd", newline=None)
self.assertEqual(list(memio), ["a\n", "b\n", "c\n", "d"])
memio.seek(0)
self.assertEqual(memio.read(1), "a")
self.assertEqual(memio.read(2), "\nb")
self.assertEqual(memio.read(2), "\nc")
self.assertEqual(memio.read(1), "\n")
memio = self.ioclass(newline=None)
self.assertEqual(2, memio.write("a\n"))
self.assertEqual(3, memio.write("b\r\n"))
self.assertEqual(3, memio.write("c\rd"))
memio.seek(0)
self.assertEqual(memio.read(), "a\nb\nc\nd")
memio = self.ioclass("a\r\nb", newline=None)
self.assertEqual(memio.read(3), "a\nb")
def test_newline_empty(self):
# newline=""
memio = self.ioclass("a\nb\r\nc\rd", newline="")
self.assertEqual(list(memio), ["a\n", "b\r\n", "c\r", "d"])
memio.seek(0)
self.assertEqual(memio.read(4), "a\nb\r")
self.assertEqual(memio.read(2), "\nc")
self.assertEqual(memio.read(1), "\r")
memio = self.ioclass(newline="")
self.assertEqual(2, memio.write("a\n"))
self.assertEqual(2, memio.write("b\r"))
self.assertEqual(2, memio.write("\nc"))
self.assertEqual(2, memio.write("\rd"))
memio.seek(0)
self.assertEqual(list(memio), ["a\n", "b\r\n", "c\r", "d"])
def test_newline_lf(self):
# newline="\n"
memio = self.ioclass("a\nb\r\nc\rd")
self.assertEqual(list(memio), ["a\n", "b\r\n", "c\rd"])
def test_newline_cr(self):
# newline="\r"
memio = self.ioclass("a\nb\r\nc\rd", newline="\r")
self.assertEqual(memio.read(), "a\rb\r\rc\rd")
memio.seek(0)
self.assertEqual(list(memio), ["a\r", "b\r", "\r", "c\r", "d"])
def test_newline_crlf(self):
# newline="\r\n"
memio = self.ioclass("a\nb\r\nc\rd", newline="\r\n")
self.assertEqual(memio.read(), "a\r\nb\r\r\nc\rd")
memio.seek(0)
self.assertEqual(list(memio), ["a\r\n", "b\r\r\n", "c\rd"])
def test_issue5265(self):
# StringIO can duplicate newlines in universal newlines mode
memio = self.ioclass("a\r\nb\r\n", newline=None)
self.assertEqual(memio.read(5), "a\nb\n")
class PyStringIOTest(MemoryTestMixin, MemorySeekTestMixin,
TextIOTestMixin, unittest.TestCase):
buftype = unicode
ioclass = pyio.StringIO
UnsupportedOperation = pyio.UnsupportedOperation
EOF = ""
class PyStringIOPickleTest(TextIOTestMixin, unittest.TestCase):
"""Test if pickle restores properly the internal state of StringIO.
"""
buftype = unicode
UnsupportedOperation = pyio.UnsupportedOperation
EOF = ""
class ioclass(pyio.StringIO):
def __new__(cls, *args, **kwargs):
return pickle.loads(pickle.dumps(pyio.StringIO(*args, **kwargs)))
def __init__(self, *args, **kwargs):
pass
class CBytesIOTest(PyBytesIOTest):
ioclass = io.BytesIO
UnsupportedOperation = io.UnsupportedOperation
test_bytes_array = unittest.skip(
"array.array() does not have the new buffer API"
)(PyBytesIOTest.test_bytes_array)
def test_getstate(self):
memio = self.ioclass()
state = memio.__getstate__()
self.assertEqual(len(state), 3)
bytearray(state[0]) # Check if state[0] supports the buffer interface.
self.assertIsInstance(state[1], int)
self.assertTrue(isinstance(state[2], dict) or state[2] is None)
memio.close()
self.assertRaises(ValueError, memio.__getstate__)
def test_setstate(self):
# This checks whether __setstate__ does proper input validation.
memio = self.ioclass()
memio.__setstate__((b"no error", 0, None))
memio.__setstate__((bytearray(b"no error"), 0, None))
memio.__setstate__((b"no error", 0, {'spam': 3}))
self.assertRaises(ValueError, memio.__setstate__, (b"", -1, None))
self.assertRaises(TypeError, memio.__setstate__, ("unicode", 0, None))
self.assertRaises(TypeError, memio.__setstate__, (b"", 0.0, None))
self.assertRaises(TypeError, memio.__setstate__, (b"", 0, 0))
self.assertRaises(TypeError, memio.__setstate__, (b"len-test", 0))
self.assertRaises(TypeError, memio.__setstate__)
self.assertRaises(TypeError, memio.__setstate__, 0)
memio.close()
self.assertRaises(ValueError, memio.__setstate__, (b"closed", 0, None))
class CStringIOTest(PyStringIOTest):
ioclass = io.StringIO
UnsupportedOperation = io.UnsupportedOperation
# XXX: For the Python version of io.StringIO, this is highly
# dependent on the encoding used for the underlying buffer.
def test_widechar(self):
buf = self.buftype("\U0002030a\U00020347")
memio = self.ioclass(buf)
self.assertEqual(memio.getvalue(), buf)
self.assertEqual(memio.write(buf), len(buf))
self.assertEqual(memio.tell(), len(buf))
self.assertEqual(memio.getvalue(), buf)
self.assertEqual(memio.write(buf), len(buf))
self.assertEqual(memio.tell(), len(buf) * 2)
self.assertEqual(memio.getvalue(), buf + buf)
def test_getstate(self):
memio = self.ioclass()
state = memio.__getstate__()
self.assertEqual(len(state), 4)
self.assertIsInstance(state[0], unicode)
self.assertIsInstance(state[1], str)
self.assertIsInstance(state[2], int)
self.assertTrue(isinstance(state[3], dict) or state[3] is None)
memio.close()
self.assertRaises(ValueError, memio.__getstate__)
def test_setstate(self):
# This checks whether __setstate__ does proper input validation.
memio = self.ioclass()
memio.__setstate__(("no error", "\n", 0, None))
memio.__setstate__(("no error", "", 0, {'spam': 3}))
self.assertRaises(ValueError, memio.__setstate__, ("", "f", 0, None))
self.assertRaises(ValueError, memio.__setstate__, ("", "", -1, None))
self.assertRaises(TypeError, memio.__setstate__, (b"", "", 0, None))
# trunk is more tolerant than py3k on the type of the newline param
#self.assertRaises(TypeError, memio.__setstate__, ("", b"", 0, None))
self.assertRaises(TypeError, memio.__setstate__, ("", "", 0.0, None))
self.assertRaises(TypeError, memio.__setstate__, ("", "", 0, 0))
self.assertRaises(TypeError, memio.__setstate__, ("len-test", 0))
self.assertRaises(TypeError, memio.__setstate__)
self.assertRaises(TypeError, memio.__setstate__, 0)
memio.close()
self.assertRaises(ValueError, memio.__setstate__, ("closed", "", 0, None))
class CStringIOPickleTest(PyStringIOPickleTest):
UnsupportedOperation = io.UnsupportedOperation
class ioclass(io.StringIO):
def __new__(cls, *args, **kwargs):
return pickle.loads(pickle.dumps(io.StringIO(*args, **kwargs),
protocol=2))
def __init__(self, *args, **kwargs):
pass
def test_main():
tests = [PyBytesIOTest, PyStringIOTest, CBytesIOTest, CStringIOTest,
PyStringIOPickleTest, CStringIOPickleTest]
support.run_unittest(*tests)
if __name__ == '__main__':
test_main()
| gpl-3.0 |
rsignell-usgs/yaml2ncml | setup.py | 1 | 1966 | import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--verbose']
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
def extract_version():
version = None
fdir = os.path.dirname(__file__)
fnme = os.path.join(fdir, 'yaml2ncml', '__init__.py')
with open(fnme) as fd:
for line in fd:
if (line.startswith('__version__')):
_, version = line.split('=')
version = version.strip()[1:-1]
break
return version
rootpath = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
return open(os.path.join(rootpath, *parts), 'r').read()
long_description = '{}\n{}'.format(read('README.rst'), read('CHANGES.txt'))
LICENSE = read('LICENSE.txt')
with open('requirements.txt') as f:
require = f.readlines()
install_requires = [r.strip() for r in require]
setup(name='yaml2ncml',
version=extract_version(),
packages=['yaml2ncml'],
license=LICENSE,
description='ncML aggregation from YAML specifications',
long_description=long_description,
author='Rich Signell',
author_email='rsignell@usgs.gov',
install_requires=install_requires,
entry_points=dict(console_scripts=[
'yaml2ncml = yaml2ncml.yaml2ncml:main']
),
url='https://github.com/rsignell-usgs/yaml2ncml',
keywords=['YAML', 'ncml'],
classifiers=['Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'License :: OSI Approved :: MIT License'],
tests_require=['pytest'],
cmdclass=dict(test=PyTest),
zip_safe=False)
| mit |
harmy/kbengine | kbe/src/lib/python/Tools/scripts/texi2html.py | 48 | 70149 | #! /usr/bin/env python3
# Convert GNU texinfo files into HTML, one file per node.
# Based on Texinfo 2.14.
# Usage: texi2html [-d] [-d] [-c] inputfile outputdirectory
# The input file must be a complete texinfo file, e.g. emacs.texi.
# This creates many files (one per info node) in the output directory,
# overwriting existing files of the same name. All files created have
# ".html" as their extension.
# XXX To do:
# - handle @comment*** correctly
# - handle @xref {some words} correctly
# - handle @ftable correctly (items aren't indexed?)
# - handle @itemx properly
# - handle @exdent properly
# - add links directly to the proper line from indices
# - check against the definitive list of @-cmds; we still miss (among others):
# - @defindex (hard)
# - @c(omment) in the middle of a line (rarely used)
# - @this* (not really needed, only used in headers anyway)
# - @today{} (ever used outside title page?)
# More consistent handling of chapters/sections/etc.
# Lots of documentation
# Many more options:
# -top designate top node
# -links customize which types of links are included
# -split split at chapters or sections instead of nodes
# -name Allow different types of filename handling. Non unix systems
# will have problems with long node names
# ...
# Support the most recent texinfo version and take a good look at HTML 3.0
# More debugging output (customizable) and more flexible error handling
# How about icons ?
# rpyron 2002-05-07
# Robert Pyron <rpyron@alum.mit.edu>
# 1. BUGFIX: In function makefile(), strip blanks from the nodename.
# This is necessary to match the behavior of parser.makeref() and
# parser.do_node().
# 2. BUGFIX fixed KeyError in end_ifset (well, I may have just made
# it go away, rather than fix it)
# 3. BUGFIX allow @menu and menu items inside @ifset or @ifclear
# 4. Support added for:
# @uref URL reference
# @image image file reference (see note below)
# @multitable output an HTML table
# @vtable
# 5. Partial support for accents, to match MAKEINFO output
# 6. I added a new command-line option, '-H basename', to specify
# HTML Help output. This will cause three files to be created
# in the current directory:
# `basename`.hhp HTML Help Workshop project file
# `basename`.hhc Contents file for the project
# `basename`.hhk Index file for the project
# When fed into HTML Help Workshop, the resulting file will be
# named `basename`.chm.
# 7. A new class, HTMLHelp, to accomplish item 6.
# 8. Various calls to HTMLHelp functions.
# A NOTE ON IMAGES: Just as 'outputdirectory' must exist before
# running this program, all referenced images must already exist
# in outputdirectory.
import os
import sys
import string
import re
MAGIC = '\\input texinfo'
cmprog = re.compile('^@([a-z]+)([ \t]|$)') # Command (line-oriented)
blprog = re.compile('^[ \t]*$') # Blank line
kwprog = re.compile('@[a-z]+') # Keyword (embedded, usually
# with {} args)
spprog = re.compile('[\n@{}&<>]') # Special characters in
# running text
#
# menu item (Yuck!)
miprog = re.compile('^\* ([^:]*):(:|[ \t]*([^\t,\n.]+)([^ \t\n]*))[ \t\n]*')
# 0 1 1 2 3 34 42 0
# ----- ---------- ---------
# -|-----------------------------
# -----------------------------------------------------
class HTMLNode:
"""Some of the parser's functionality is separated into this class.
A Node accumulates its contents, takes care of links to other Nodes
and saves itself when it is finished and all links are resolved.
"""
DOCTYPE = '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'
type = 0
cont = ''
epilogue = '</BODY></HTML>\n'
def __init__(self, dir, name, topname, title, next, prev, up):
self.dirname = dir
self.name = name
if topname:
self.topname = topname
else:
self.topname = name
self.title = title
self.next = next
self.prev = prev
self.up = up
self.lines = []
def write(self, *lines):
for line in lines:
self.lines.append(line)
def flush(self):
fp = open(self.dirname + '/' + makefile(self.name), 'w')
fp.write(self.prologue)
fp.write(self.text)
fp.write(self.epilogue)
fp.close()
def link(self, label, nodename, rel=None, rev=None):
if nodename:
if nodename.lower() == '(dir)':
addr = '../dir.html'
title = ''
else:
addr = makefile(nodename)
title = ' TITLE="%s"' % nodename
self.write(label, ': <A HREF="', addr, '"', \
rel and (' REL=' + rel) or "", \
rev and (' REV=' + rev) or "", \
title, '>', nodename, '</A> \n')
def finalize(self):
length = len(self.lines)
self.text = ''.join(self.lines)
self.lines = []
self.open_links()
self.output_links()
self.close_links()
links = ''.join(self.lines)
self.lines = []
self.prologue = (
self.DOCTYPE +
'\n<HTML><HEAD>\n'
' <!-- Converted with texi2html and Python -->\n'
' <TITLE>' + self.title + '</TITLE>\n'
' <LINK REL=Next HREF="'
+ makefile(self.next) + '" TITLE="' + self.next + '">\n'
' <LINK REL=Previous HREF="'
+ makefile(self.prev) + '" TITLE="' + self.prev + '">\n'
' <LINK REL=Up HREF="'
+ makefile(self.up) + '" TITLE="' + self.up + '">\n'
'</HEAD><BODY>\n' +
links)
if length > 20:
self.epilogue = '<P>\n%s</BODY></HTML>\n' % links
def open_links(self):
self.write('<HR>\n')
def close_links(self):
self.write('<HR>\n')
def output_links(self):
if self.cont != self.next:
self.link(' Cont', self.cont)
self.link(' Next', self.next, rel='Next')
self.link(' Prev', self.prev, rel='Previous')
self.link(' Up', self.up, rel='Up')
if self.name != self.topname:
self.link(' Top', self.topname)
class HTML3Node(HTMLNode):
DOCTYPE = '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML Level 3//EN//3.0">'
def open_links(self):
self.write('<DIV CLASS=Navigation>\n <HR>\n')
def close_links(self):
self.write(' <HR>\n</DIV>\n')
class TexinfoParser:
COPYRIGHT_SYMBOL = "©"
FN_ID_PATTERN = "(%(id)s)"
FN_SOURCE_PATTERN = '<A NAME=footnoteref%(id)s' \
' HREF="#footnotetext%(id)s">' \
+ FN_ID_PATTERN + '</A>'
FN_TARGET_PATTERN = '<A NAME=footnotetext%(id)s' \
' HREF="#footnoteref%(id)s">' \
+ FN_ID_PATTERN + '</A>\n%(text)s<P>\n'
FN_HEADER = '\n<P>\n<HR NOSHADE SIZE=1 WIDTH=200>\n' \
'<STRONG><EM>Footnotes</EM></STRONG>\n<P>'
Node = HTMLNode
# Initialize an instance
def __init__(self):
self.unknown = {} # statistics about unknown @-commands
self.filenames = {} # Check for identical filenames
self.debugging = 0 # larger values produce more output
self.print_headers = 0 # always print headers?
self.nodefp = None # open file we're writing to
self.nodelineno = 0 # Linenumber relative to node
self.links = None # Links from current node
self.savetext = None # If not None, save text head instead
self.savestack = [] # If not None, save text head instead
self.htmlhelp = None # html help data
self.dirname = 'tmp' # directory where files are created
self.includedir = '.' # directory to search @include files
self.nodename = '' # name of current node
self.topname = '' # name of top node (first node seen)
self.title = '' # title of this whole Texinfo tree
self.resetindex() # Reset all indices
self.contents = [] # Reset table of contents
self.numbering = [] # Reset section numbering counters
self.nofill = 0 # Normal operation: fill paragraphs
self.values={'html': 1} # Names that should be parsed in ifset
self.stackinfo={} # Keep track of state in the stack
# XXX The following should be reset per node?!
self.footnotes = [] # Reset list of footnotes
self.itemarg = None # Reset command used by @item
self.itemnumber = None # Reset number for @item in @enumerate
self.itemindex = None # Reset item index name
self.node = None
self.nodestack = []
self.cont = 0
self.includedepth = 0
# Set htmlhelp helper class
def sethtmlhelp(self, htmlhelp):
self.htmlhelp = htmlhelp
# Set (output) directory name
def setdirname(self, dirname):
self.dirname = dirname
# Set include directory name
def setincludedir(self, includedir):
self.includedir = includedir
# Parse the contents of an entire file
def parse(self, fp):
line = fp.readline()
lineno = 1
while line and (line[0] == '%' or blprog.match(line)):
line = fp.readline()
lineno = lineno + 1
if line[:len(MAGIC)] != MAGIC:
raise SyntaxError('file does not begin with %r' % (MAGIC,))
self.parserest(fp, lineno)
# Parse the contents of a file, not expecting a MAGIC header
def parserest(self, fp, initial_lineno):
lineno = initial_lineno
self.done = 0
self.skip = 0
self.stack = []
accu = []
while not self.done:
line = fp.readline()
self.nodelineno = self.nodelineno + 1
if not line:
if accu:
if not self.skip: self.process(accu)
accu = []
if initial_lineno > 0:
print('*** EOF before @bye')
break
lineno = lineno + 1
mo = cmprog.match(line)
if mo:
a, b = mo.span(1)
cmd = line[a:b]
if cmd in ('noindent', 'refill'):
accu.append(line)
else:
if accu:
if not self.skip:
self.process(accu)
accu = []
self.command(line, mo)
elif blprog.match(line) and \
'format' not in self.stack and \
'example' not in self.stack:
if accu:
if not self.skip:
self.process(accu)
if self.nofill:
self.write('\n')
else:
self.write('<P>\n')
accu = []
else:
# Append the line including trailing \n!
accu.append(line)
#
if self.skip:
print('*** Still skipping at the end')
if self.stack:
print('*** Stack not empty at the end')
print('***', self.stack)
if self.includedepth == 0:
while self.nodestack:
self.nodestack[-1].finalize()
self.nodestack[-1].flush()
del self.nodestack[-1]
# Start saving text in a buffer instead of writing it to a file
def startsaving(self):
if self.savetext != None:
self.savestack.append(self.savetext)
# print '*** Recursively saving text, expect trouble'
self.savetext = ''
# Return the text saved so far and start writing to file again
def collectsavings(self):
savetext = self.savetext
if len(self.savestack) > 0:
self.savetext = self.savestack[-1]
del self.savestack[-1]
else:
self.savetext = None
return savetext or ''
# Write text to file, or save it in a buffer, or ignore it
def write(self, *args):
try:
text = ''.join(args)
except:
print(args)
raise TypeError
if self.savetext != None:
self.savetext = self.savetext + text
elif self.nodefp:
self.nodefp.write(text)
elif self.node:
self.node.write(text)
# Complete the current node -- write footnotes and close file
def endnode(self):
if self.savetext != None:
print('*** Still saving text at end of node')
dummy = self.collectsavings()
if self.footnotes:
self.writefootnotes()
if self.nodefp:
if self.nodelineno > 20:
self.write('<HR>\n')
[name, next, prev, up] = self.nodelinks[:4]
self.link('Next', next)
self.link('Prev', prev)
self.link('Up', up)
if self.nodename != self.topname:
self.link('Top', self.topname)
self.write('<HR>\n')
self.write('</BODY>\n')
self.nodefp.close()
self.nodefp = None
elif self.node:
if not self.cont and \
(not self.node.type or \
(self.node.next and self.node.prev and self.node.up)):
self.node.finalize()
self.node.flush()
else:
self.nodestack.append(self.node)
self.node = None
self.nodename = ''
# Process a list of lines, expanding embedded @-commands
# This mostly distinguishes between menus and normal text
def process(self, accu):
if self.debugging > 1:
print('!'*self.debugging, 'process:', self.skip, self.stack, end=' ')
if accu: print(accu[0][:30], end=' ')
if accu[0][30:] or accu[1:]: print('...', end=' ')
print()
if self.inmenu():
# XXX should be done differently
for line in accu:
mo = miprog.match(line)
if not mo:
line = line.strip() + '\n'
self.expand(line)
continue
bgn, end = mo.span(0)
a, b = mo.span(1)
c, d = mo.span(2)
e, f = mo.span(3)
g, h = mo.span(4)
label = line[a:b]
nodename = line[c:d]
if nodename[0] == ':': nodename = label
else: nodename = line[e:f]
punct = line[g:h]
self.write(' <LI><A HREF="',
makefile(nodename),
'">', nodename,
'</A>', punct, '\n')
self.htmlhelp.menuitem(nodename)
self.expand(line[end:])
else:
text = ''.join(accu)
self.expand(text)
# find 'menu' (we might be inside 'ifset' or 'ifclear')
def inmenu(self):
#if 'menu' in self.stack:
# print 'inmenu :', self.skip, self.stack, self.stackinfo
stack = self.stack
while stack and stack[-1] in ('ifset','ifclear'):
try:
if self.stackinfo[len(stack)]:
return 0
except KeyError:
pass
stack = stack[:-1]
return (stack and stack[-1] == 'menu')
# Write a string, expanding embedded @-commands
def expand(self, text):
stack = []
i = 0
n = len(text)
while i < n:
start = i
mo = spprog.search(text, i)
if mo:
i = mo.start()
else:
self.write(text[start:])
break
self.write(text[start:i])
c = text[i]
i = i+1
if c == '\n':
self.write('\n')
continue
if c == '<':
self.write('<')
continue
if c == '>':
self.write('>')
continue
if c == '&':
self.write('&')
continue
if c == '{':
stack.append('')
continue
if c == '}':
if not stack:
print('*** Unmatched }')
self.write('}')
continue
cmd = stack[-1]
del stack[-1]
try:
method = getattr(self, 'close_' + cmd)
except AttributeError:
self.unknown_close(cmd)
continue
method()
continue
if c != '@':
# Cannot happen unless spprog is changed
raise RuntimeError('unexpected funny %r' % c)
start = i
while i < n and text[i] in string.ascii_letters: i = i+1
if i == start:
# @ plus non-letter: literal next character
i = i+1
c = text[start:i]
if c == ':':
# `@:' means no extra space after
# preceding `.', `?', `!' or `:'
pass
else:
# `@.' means a sentence-ending period;
# `@@', `@{', `@}' quote `@', `{', `}'
self.write(c)
continue
cmd = text[start:i]
if i < n and text[i] == '{':
i = i+1
stack.append(cmd)
try:
method = getattr(self, 'open_' + cmd)
except AttributeError:
self.unknown_open(cmd)
continue
method()
continue
try:
method = getattr(self, 'handle_' + cmd)
except AttributeError:
self.unknown_handle(cmd)
continue
method()
if stack:
print('*** Stack not empty at para:', stack)
# --- Handle unknown embedded @-commands ---
def unknown_open(self, cmd):
print('*** No open func for @' + cmd + '{...}')
cmd = cmd + '{'
self.write('@', cmd)
if cmd not in self.unknown:
self.unknown[cmd] = 1
else:
self.unknown[cmd] = self.unknown[cmd] + 1
def unknown_close(self, cmd):
print('*** No close func for @' + cmd + '{...}')
cmd = '}' + cmd
self.write('}')
if cmd not in self.unknown:
self.unknown[cmd] = 1
else:
self.unknown[cmd] = self.unknown[cmd] + 1
def unknown_handle(self, cmd):
print('*** No handler for @' + cmd)
self.write('@', cmd)
if cmd not in self.unknown:
self.unknown[cmd] = 1
else:
self.unknown[cmd] = self.unknown[cmd] + 1
# XXX The following sections should be ordered as the texinfo docs
# --- Embedded @-commands without {} argument list --
def handle_noindent(self): pass
def handle_refill(self): pass
# --- Include file handling ---
def do_include(self, args):
file = args
file = os.path.join(self.includedir, file)
try:
fp = open(file, 'r')
except IOError as msg:
print('*** Can\'t open include file', repr(file))
return
print('!'*self.debugging, '--> file', repr(file))
save_done = self.done
save_skip = self.skip
save_stack = self.stack
self.includedepth = self.includedepth + 1
self.parserest(fp, 0)
self.includedepth = self.includedepth - 1
fp.close()
self.done = save_done
self.skip = save_skip
self.stack = save_stack
print('!'*self.debugging, '<-- file', repr(file))
# --- Special Insertions ---
def open_dmn(self): pass
def close_dmn(self): pass
def open_dots(self): self.write('...')
def close_dots(self): pass
def open_bullet(self): pass
def close_bullet(self): pass
def open_TeX(self): self.write('TeX')
def close_TeX(self): pass
def handle_copyright(self): self.write(self.COPYRIGHT_SYMBOL)
def open_copyright(self): self.write(self.COPYRIGHT_SYMBOL)
def close_copyright(self): pass
def open_minus(self): self.write('-')
def close_minus(self): pass
# --- Accents ---
# rpyron 2002-05-07
# I would like to do at least as well as makeinfo when
# it is producing HTML output:
#
# input output
# @"o @"o umlaut accent
# @'o 'o acute accent
# @,{c} @,{c} cedilla accent
# @=o @=o macron/overbar accent
# @^o @^o circumflex accent
# @`o `o grave accent
# @~o @~o tilde accent
# @dotaccent{o} @dotaccent{o} overdot accent
# @H{o} @H{o} long Hungarian umlaut
# @ringaccent{o} @ringaccent{o} ring accent
# @tieaccent{oo} @tieaccent{oo} tie-after accent
# @u{o} @u{o} breve accent
# @ubaraccent{o} @ubaraccent{o} underbar accent
# @udotaccent{o} @udotaccent{o} underdot accent
# @v{o} @v{o} hacek or check accent
# @exclamdown{} ¡ upside-down !
# @questiondown{} ¿ upside-down ?
# @aa{},@AA{} å,Å a,A with circle
# @ae{},@AE{} æ,Æ ae,AE ligatures
# @dotless{i} @dotless{i} dotless i
# @dotless{j} @dotless{j} dotless j
# @l{},@L{} l/,L/ suppressed-L,l
# @o{},@O{} ø,Ø O,o with slash
# @oe{},@OE{} oe,OE oe,OE ligatures
# @ss{} ß es-zet or sharp S
#
# The following character codes and approximations have been
# copied from makeinfo's HTML output.
def open_exclamdown(self): self.write('¡') # upside-down !
def close_exclamdown(self): pass
def open_questiondown(self): self.write('¿') # upside-down ?
def close_questiondown(self): pass
def open_aa(self): self.write('å') # a with circle
def close_aa(self): pass
def open_AA(self): self.write('Å') # A with circle
def close_AA(self): pass
def open_ae(self): self.write('æ') # ae ligatures
def close_ae(self): pass
def open_AE(self): self.write('Æ') # AE ligatures
def close_AE(self): pass
def open_o(self): self.write('ø') # o with slash
def close_o(self): pass
def open_O(self): self.write('Ø') # O with slash
def close_O(self): pass
def open_ss(self): self.write('ß') # es-zet or sharp S
def close_ss(self): pass
def open_oe(self): self.write('oe') # oe ligatures
def close_oe(self): pass
def open_OE(self): self.write('OE') # OE ligatures
def close_OE(self): pass
def open_l(self): self.write('l/') # suppressed-l
def close_l(self): pass
def open_L(self): self.write('L/') # suppressed-L
def close_L(self): pass
# --- Special Glyphs for Examples ---
def open_result(self): self.write('=>')
def close_result(self): pass
def open_expansion(self): self.write('==>')
def close_expansion(self): pass
def open_print(self): self.write('-|')
def close_print(self): pass
def open_error(self): self.write('error-->')
def close_error(self): pass
def open_equiv(self): self.write('==')
def close_equiv(self): pass
def open_point(self): self.write('-!-')
def close_point(self): pass
# --- Cross References ---
def open_pxref(self):
self.write('see ')
self.startsaving()
def close_pxref(self):
self.makeref()
def open_xref(self):
self.write('See ')
self.startsaving()
def close_xref(self):
self.makeref()
def open_ref(self):
self.startsaving()
def close_ref(self):
self.makeref()
def open_inforef(self):
self.write('See info file ')
self.startsaving()
def close_inforef(self):
text = self.collectsavings()
args = [s.strip() for s in text.split(',')]
while len(args) < 3: args.append('')
node = args[0]
file = args[2]
self.write('`', file, '\', node `', node, '\'')
def makeref(self):
text = self.collectsavings()
args = [s.strip() for s in text.split(',')]
while len(args) < 5: args.append('')
nodename = label = args[0]
if args[2]: label = args[2]
file = args[3]
title = args[4]
href = makefile(nodename)
if file:
href = '../' + file + '/' + href
self.write('<A HREF="', href, '">', label, '</A>')
# rpyron 2002-05-07 uref support
def open_uref(self):
self.startsaving()
def close_uref(self):
text = self.collectsavings()
args = [s.strip() for s in text.split(',')]
while len(args) < 2: args.append('')
href = args[0]
label = args[1]
if not label: label = href
self.write('<A HREF="', href, '">', label, '</A>')
# rpyron 2002-05-07 image support
# GNU makeinfo producing HTML output tries `filename.png'; if
# that does not exist, it tries `filename.jpg'. If that does
# not exist either, it complains. GNU makeinfo does not handle
# GIF files; however, I include GIF support here because
# MySQL documentation uses GIF files.
def open_image(self):
self.startsaving()
def close_image(self):
self.makeimage()
def makeimage(self):
text = self.collectsavings()
args = [s.strip() for s in text.split(',')]
while len(args) < 5: args.append('')
filename = args[0]
width = args[1]
height = args[2]
alt = args[3]
ext = args[4]
# The HTML output will have a reference to the image
# that is relative to the HTML output directory,
# which is what 'filename' gives us. However, we need
# to find it relative to our own current directory,
# so we construct 'imagename'.
imagelocation = self.dirname + '/' + filename
if os.path.exists(imagelocation+'.png'):
filename += '.png'
elif os.path.exists(imagelocation+'.jpg'):
filename += '.jpg'
elif os.path.exists(imagelocation+'.gif'): # MySQL uses GIF files
filename += '.gif'
else:
print("*** Cannot find image " + imagelocation)
#TODO: what is 'ext'?
self.write('<IMG SRC="', filename, '"', \
width and (' WIDTH="' + width + '"') or "", \
height and (' HEIGHT="' + height + '"') or "", \
alt and (' ALT="' + alt + '"') or "", \
'/>' )
self.htmlhelp.addimage(imagelocation)
# --- Marking Words and Phrases ---
# --- Other @xxx{...} commands ---
def open_(self): pass # Used by {text enclosed in braces}
def close_(self): pass
open_asis = open_
close_asis = close_
def open_cite(self): self.write('<CITE>')
def close_cite(self): self.write('</CITE>')
def open_code(self): self.write('<CODE>')
def close_code(self): self.write('</CODE>')
def open_t(self): self.write('<TT>')
def close_t(self): self.write('</TT>')
def open_dfn(self): self.write('<DFN>')
def close_dfn(self): self.write('</DFN>')
def open_emph(self): self.write('<EM>')
def close_emph(self): self.write('</EM>')
def open_i(self): self.write('<I>')
def close_i(self): self.write('</I>')
def open_footnote(self):
# if self.savetext <> None:
# print '*** Recursive footnote -- expect weirdness'
id = len(self.footnotes) + 1
self.write(self.FN_SOURCE_PATTERN % {'id': repr(id)})
self.startsaving()
def close_footnote(self):
id = len(self.footnotes) + 1
self.footnotes.append((id, self.collectsavings()))
def writefootnotes(self):
self.write(self.FN_HEADER)
for id, text in self.footnotes:
self.write(self.FN_TARGET_PATTERN
% {'id': repr(id), 'text': text})
self.footnotes = []
def open_file(self): self.write('<CODE>')
def close_file(self): self.write('</CODE>')
def open_kbd(self): self.write('<KBD>')
def close_kbd(self): self.write('</KBD>')
def open_key(self): self.write('<KEY>')
def close_key(self): self.write('</KEY>')
def open_r(self): self.write('<R>')
def close_r(self): self.write('</R>')
def open_samp(self): self.write('`<SAMP>')
def close_samp(self): self.write('</SAMP>\'')
def open_sc(self): self.write('<SMALLCAPS>')
def close_sc(self): self.write('</SMALLCAPS>')
def open_strong(self): self.write('<STRONG>')
def close_strong(self): self.write('</STRONG>')
def open_b(self): self.write('<B>')
def close_b(self): self.write('</B>')
def open_var(self): self.write('<VAR>')
def close_var(self): self.write('</VAR>')
def open_w(self): self.write('<NOBREAK>')
def close_w(self): self.write('</NOBREAK>')
def open_url(self): self.startsaving()
def close_url(self):
text = self.collectsavings()
self.write('<A HREF="', text, '">', text, '</A>')
def open_email(self): self.startsaving()
def close_email(self):
text = self.collectsavings()
self.write('<A HREF="mailto:', text, '">', text, '</A>')
open_titlefont = open_
close_titlefont = close_
def open_small(self): pass
def close_small(self): pass
def command(self, line, mo):
a, b = mo.span(1)
cmd = line[a:b]
args = line[b:].strip()
if self.debugging > 1:
print('!'*self.debugging, 'command:', self.skip, self.stack, \
'@' + cmd, args)
try:
func = getattr(self, 'do_' + cmd)
except AttributeError:
try:
func = getattr(self, 'bgn_' + cmd)
except AttributeError:
# don't complain if we are skipping anyway
if not self.skip:
self.unknown_cmd(cmd, args)
return
self.stack.append(cmd)
func(args)
return
if not self.skip or cmd == 'end':
func(args)
def unknown_cmd(self, cmd, args):
print('*** unknown', '@' + cmd, args)
if cmd not in self.unknown:
self.unknown[cmd] = 1
else:
self.unknown[cmd] = self.unknown[cmd] + 1
def do_end(self, args):
words = args.split()
if not words:
print('*** @end w/o args')
else:
cmd = words[0]
if not self.stack or self.stack[-1] != cmd:
print('*** @end', cmd, 'unexpected')
else:
del self.stack[-1]
try:
func = getattr(self, 'end_' + cmd)
except AttributeError:
self.unknown_end(cmd)
return
func()
def unknown_end(self, cmd):
cmd = 'end ' + cmd
print('*** unknown', '@' + cmd)
if cmd not in self.unknown:
self.unknown[cmd] = 1
else:
self.unknown[cmd] = self.unknown[cmd] + 1
# --- Comments ---
def do_comment(self, args): pass
do_c = do_comment
# --- Conditional processing ---
def bgn_ifinfo(self, args): pass
def end_ifinfo(self): pass
def bgn_iftex(self, args): self.skip = self.skip + 1
def end_iftex(self): self.skip = self.skip - 1
def bgn_ignore(self, args): self.skip = self.skip + 1
def end_ignore(self): self.skip = self.skip - 1
def bgn_tex(self, args): self.skip = self.skip + 1
def end_tex(self): self.skip = self.skip - 1
def do_set(self, args):
fields = args.split(' ')
key = fields[0]
if len(fields) == 1:
value = 1
else:
value = ' '.join(fields[1:])
self.values[key] = value
def do_clear(self, args):
self.values[args] = None
def bgn_ifset(self, args):
if args not in self.values or self.values[args] is None:
self.skip = self.skip + 1
self.stackinfo[len(self.stack)] = 1
else:
self.stackinfo[len(self.stack)] = 0
def end_ifset(self):
try:
if self.stackinfo[len(self.stack) + 1]:
self.skip = self.skip - 1
del self.stackinfo[len(self.stack) + 1]
except KeyError:
print('*** end_ifset: KeyError :', len(self.stack) + 1)
def bgn_ifclear(self, args):
if args in self.values and self.values[args] is not None:
self.skip = self.skip + 1
self.stackinfo[len(self.stack)] = 1
else:
self.stackinfo[len(self.stack)] = 0
def end_ifclear(self):
try:
if self.stackinfo[len(self.stack) + 1]:
self.skip = self.skip - 1
del self.stackinfo[len(self.stack) + 1]
except KeyError:
print('*** end_ifclear: KeyError :', len(self.stack) + 1)
def open_value(self):
self.startsaving()
def close_value(self):
key = self.collectsavings()
if key in self.values:
self.write(self.values[key])
else:
print('*** Undefined value: ', key)
# --- Beginning a file ---
do_finalout = do_comment
do_setchapternewpage = do_comment
do_setfilename = do_comment
def do_settitle(self, args):
self.startsaving()
self.expand(args)
self.title = self.collectsavings()
def do_parskip(self, args): pass
# --- Ending a file ---
def do_bye(self, args):
self.endnode()
self.done = 1
# --- Title page ---
def bgn_titlepage(self, args): self.skip = self.skip + 1
def end_titlepage(self): self.skip = self.skip - 1
def do_shorttitlepage(self, args): pass
def do_center(self, args):
# Actually not used outside title page...
self.write('<H1>')
self.expand(args)
self.write('</H1>\n')
do_title = do_center
do_subtitle = do_center
do_author = do_center
do_vskip = do_comment
do_vfill = do_comment
do_smallbook = do_comment
do_paragraphindent = do_comment
do_setchapternewpage = do_comment
do_headings = do_comment
do_footnotestyle = do_comment
do_evenheading = do_comment
do_evenfooting = do_comment
do_oddheading = do_comment
do_oddfooting = do_comment
do_everyheading = do_comment
do_everyfooting = do_comment
# --- Nodes ---
def do_node(self, args):
self.endnode()
self.nodelineno = 0
parts = [s.strip() for s in args.split(',')]
while len(parts) < 4: parts.append('')
self.nodelinks = parts
[name, next, prev, up] = parts[:4]
file = self.dirname + '/' + makefile(name)
if file in self.filenames:
print('*** Filename already in use: ', file)
else:
if self.debugging: print('!'*self.debugging, '--- writing', file)
self.filenames[file] = 1
# self.nodefp = open(file, 'w')
self.nodename = name
if self.cont and self.nodestack:
self.nodestack[-1].cont = self.nodename
if not self.topname: self.topname = name
title = name
if self.title: title = title + ' -- ' + self.title
self.node = self.Node(self.dirname, self.nodename, self.topname,
title, next, prev, up)
self.htmlhelp.addnode(self.nodename,next,prev,up,file)
def link(self, label, nodename):
if nodename:
if nodename.lower() == '(dir)':
addr = '../dir.html'
else:
addr = makefile(nodename)
self.write(label, ': <A HREF="', addr, '" TYPE="',
label, '">', nodename, '</A> \n')
# --- Sectioning commands ---
def popstack(self, type):
if (self.node):
self.node.type = type
while self.nodestack:
if self.nodestack[-1].type > type:
self.nodestack[-1].finalize()
self.nodestack[-1].flush()
del self.nodestack[-1]
elif self.nodestack[-1].type == type:
if not self.nodestack[-1].next:
self.nodestack[-1].next = self.node.name
if not self.node.prev:
self.node.prev = self.nodestack[-1].name
self.nodestack[-1].finalize()
self.nodestack[-1].flush()
del self.nodestack[-1]
else:
if type > 1 and not self.node.up:
self.node.up = self.nodestack[-1].name
break
def do_chapter(self, args):
self.heading('H1', args, 0)
self.popstack(1)
def do_unnumbered(self, args):
self.heading('H1', args, -1)
self.popstack(1)
def do_appendix(self, args):
self.heading('H1', args, -1)
self.popstack(1)
def do_top(self, args):
self.heading('H1', args, -1)
def do_chapheading(self, args):
self.heading('H1', args, -1)
def do_majorheading(self, args):
self.heading('H1', args, -1)
def do_section(self, args):
self.heading('H1', args, 1)
self.popstack(2)
def do_unnumberedsec(self, args):
self.heading('H1', args, -1)
self.popstack(2)
def do_appendixsec(self, args):
self.heading('H1', args, -1)
self.popstack(2)
do_appendixsection = do_appendixsec
def do_heading(self, args):
self.heading('H1', args, -1)
def do_subsection(self, args):
self.heading('H2', args, 2)
self.popstack(3)
def do_unnumberedsubsec(self, args):
self.heading('H2', args, -1)
self.popstack(3)
def do_appendixsubsec(self, args):
self.heading('H2', args, -1)
self.popstack(3)
def do_subheading(self, args):
self.heading('H2', args, -1)
def do_subsubsection(self, args):
self.heading('H3', args, 3)
self.popstack(4)
def do_unnumberedsubsubsec(self, args):
self.heading('H3', args, -1)
self.popstack(4)
def do_appendixsubsubsec(self, args):
self.heading('H3', args, -1)
self.popstack(4)
def do_subsubheading(self, args):
self.heading('H3', args, -1)
def heading(self, type, args, level):
if level >= 0:
while len(self.numbering) <= level:
self.numbering.append(0)
del self.numbering[level+1:]
self.numbering[level] = self.numbering[level] + 1
x = ''
for i in self.numbering:
x = x + repr(i) + '.'
args = x + ' ' + args
self.contents.append((level, args, self.nodename))
self.write('<', type, '>')
self.expand(args)
self.write('</', type, '>\n')
if self.debugging or self.print_headers:
print('---', args)
def do_contents(self, args):
# pass
self.listcontents('Table of Contents', 999)
def do_shortcontents(self, args):
pass
# self.listcontents('Short Contents', 0)
do_summarycontents = do_shortcontents
def listcontents(self, title, maxlevel):
self.write('<H1>', title, '</H1>\n<UL COMPACT PLAIN>\n')
prevlevels = [0]
for level, title, node in self.contents:
if level > maxlevel:
continue
if level > prevlevels[-1]:
# can only advance one level at a time
self.write(' '*prevlevels[-1], '<UL PLAIN>\n')
prevlevels.append(level)
elif level < prevlevels[-1]:
# might drop back multiple levels
while level < prevlevels[-1]:
del prevlevels[-1]
self.write(' '*prevlevels[-1],
'</UL>\n')
self.write(' '*level, '<LI> <A HREF="',
makefile(node), '">')
self.expand(title)
self.write('</A>\n')
self.write('</UL>\n' * len(prevlevels))
# --- Page lay-out ---
# These commands are only meaningful in printed text
def do_page(self, args): pass
def do_need(self, args): pass
def bgn_group(self, args): pass
def end_group(self): pass
# --- Line lay-out ---
def do_sp(self, args):
if self.nofill:
self.write('\n')
else:
self.write('<P>\n')
def do_hline(self, args):
self.write('<HR>')
# --- Function and variable definitions ---
def bgn_deffn(self, args):
self.write('<DL>')
self.do_deffnx(args)
def end_deffn(self):
self.write('</DL>\n')
def do_deffnx(self, args):
self.write('<DT>')
words = splitwords(args, 2)
[category, name], rest = words[:2], words[2:]
self.expand('@b{%s}' % name)
for word in rest: self.expand(' ' + makevar(word))
#self.expand(' -- ' + category)
self.write('\n<DD>')
self.index('fn', name)
def bgn_defun(self, args): self.bgn_deffn('Function ' + args)
end_defun = end_deffn
def do_defunx(self, args): self.do_deffnx('Function ' + args)
def bgn_defmac(self, args): self.bgn_deffn('Macro ' + args)
end_defmac = end_deffn
def do_defmacx(self, args): self.do_deffnx('Macro ' + args)
def bgn_defspec(self, args): self.bgn_deffn('{Special Form} ' + args)
end_defspec = end_deffn
def do_defspecx(self, args): self.do_deffnx('{Special Form} ' + args)
def bgn_defvr(self, args):
self.write('<DL>')
self.do_defvrx(args)
end_defvr = end_deffn
def do_defvrx(self, args):
self.write('<DT>')
words = splitwords(args, 2)
[category, name], rest = words[:2], words[2:]
self.expand('@code{%s}' % name)
# If there are too many arguments, show them
for word in rest: self.expand(' ' + word)
#self.expand(' -- ' + category)
self.write('\n<DD>')
self.index('vr', name)
def bgn_defvar(self, args): self.bgn_defvr('Variable ' + args)
end_defvar = end_defvr
def do_defvarx(self, args): self.do_defvrx('Variable ' + args)
def bgn_defopt(self, args): self.bgn_defvr('{User Option} ' + args)
end_defopt = end_defvr
def do_defoptx(self, args): self.do_defvrx('{User Option} ' + args)
# --- Ditto for typed languages ---
def bgn_deftypefn(self, args):
self.write('<DL>')
self.do_deftypefnx(args)
end_deftypefn = end_deffn
def do_deftypefnx(self, args):
self.write('<DT>')
words = splitwords(args, 3)
[category, datatype, name], rest = words[:3], words[3:]
self.expand('@code{%s} @b{%s}' % (datatype, name))
for word in rest: self.expand(' ' + makevar(word))
#self.expand(' -- ' + category)
self.write('\n<DD>')
self.index('fn', name)
def bgn_deftypefun(self, args): self.bgn_deftypefn('Function ' + args)
end_deftypefun = end_deftypefn
def do_deftypefunx(self, args): self.do_deftypefnx('Function ' + args)
def bgn_deftypevr(self, args):
self.write('<DL>')
self.do_deftypevrx(args)
end_deftypevr = end_deftypefn
def do_deftypevrx(self, args):
self.write('<DT>')
words = splitwords(args, 3)
[category, datatype, name], rest = words[:3], words[3:]
self.expand('@code{%s} @b{%s}' % (datatype, name))
# If there are too many arguments, show them
for word in rest: self.expand(' ' + word)
#self.expand(' -- ' + category)
self.write('\n<DD>')
self.index('fn', name)
def bgn_deftypevar(self, args):
self.bgn_deftypevr('Variable ' + args)
end_deftypevar = end_deftypevr
def do_deftypevarx(self, args):
self.do_deftypevrx('Variable ' + args)
# --- Ditto for object-oriented languages ---
def bgn_defcv(self, args):
self.write('<DL>')
self.do_defcvx(args)
end_defcv = end_deftypevr
def do_defcvx(self, args):
self.write('<DT>')
words = splitwords(args, 3)
[category, classname, name], rest = words[:3], words[3:]
self.expand('@b{%s}' % name)
# If there are too many arguments, show them
for word in rest: self.expand(' ' + word)
#self.expand(' -- %s of @code{%s}' % (category, classname))
self.write('\n<DD>')
self.index('vr', '%s @r{on %s}' % (name, classname))
def bgn_defivar(self, args):
self.bgn_defcv('{Instance Variable} ' + args)
end_defivar = end_defcv
def do_defivarx(self, args):
self.do_defcvx('{Instance Variable} ' + args)
def bgn_defop(self, args):
self.write('<DL>')
self.do_defopx(args)
end_defop = end_defcv
def do_defopx(self, args):
self.write('<DT>')
words = splitwords(args, 3)
[category, classname, name], rest = words[:3], words[3:]
self.expand('@b{%s}' % name)
for word in rest: self.expand(' ' + makevar(word))
#self.expand(' -- %s of @code{%s}' % (category, classname))
self.write('\n<DD>')
self.index('fn', '%s @r{on %s}' % (name, classname))
def bgn_defmethod(self, args):
self.bgn_defop('Method ' + args)
end_defmethod = end_defop
def do_defmethodx(self, args):
self.do_defopx('Method ' + args)
# --- Ditto for data types ---
def bgn_deftp(self, args):
self.write('<DL>')
self.do_deftpx(args)
end_deftp = end_defcv
def do_deftpx(self, args):
self.write('<DT>')
words = splitwords(args, 2)
[category, name], rest = words[:2], words[2:]
self.expand('@b{%s}' % name)
for word in rest: self.expand(' ' + word)
#self.expand(' -- ' + category)
self.write('\n<DD>')
self.index('tp', name)
# --- Making Lists and Tables
def bgn_enumerate(self, args):
if not args:
self.write('<OL>\n')
self.stackinfo[len(self.stack)] = '</OL>\n'
else:
self.itemnumber = args
self.write('<UL>\n')
self.stackinfo[len(self.stack)] = '</UL>\n'
def end_enumerate(self):
self.itemnumber = None
self.write(self.stackinfo[len(self.stack) + 1])
del self.stackinfo[len(self.stack) + 1]
def bgn_itemize(self, args):
self.itemarg = args
self.write('<UL>\n')
def end_itemize(self):
self.itemarg = None
self.write('</UL>\n')
def bgn_table(self, args):
self.itemarg = args
self.write('<DL>\n')
def end_table(self):
self.itemarg = None
self.write('</DL>\n')
def bgn_ftable(self, args):
self.itemindex = 'fn'
self.bgn_table(args)
def end_ftable(self):
self.itemindex = None
self.end_table()
def bgn_vtable(self, args):
self.itemindex = 'vr'
self.bgn_table(args)
def end_vtable(self):
self.itemindex = None
self.end_table()
def do_item(self, args):
if self.itemindex: self.index(self.itemindex, args)
if self.itemarg:
if self.itemarg[0] == '@' and self.itemarg[1] and \
self.itemarg[1] in string.ascii_letters:
args = self.itemarg + '{' + args + '}'
else:
# some other character, e.g. '-'
args = self.itemarg + ' ' + args
if self.itemnumber != None:
args = self.itemnumber + '. ' + args
self.itemnumber = increment(self.itemnumber)
if self.stack and self.stack[-1] == 'table':
self.write('<DT>')
self.expand(args)
self.write('\n<DD>')
elif self.stack and self.stack[-1] == 'multitable':
self.write('<TR><TD>')
self.expand(args)
self.write('</TD>\n</TR>\n')
else:
self.write('<LI>')
self.expand(args)
self.write(' ')
do_itemx = do_item # XXX Should suppress leading blank line
# rpyron 2002-05-07 multitable support
def bgn_multitable(self, args):
self.itemarg = None # should be handled by columnfractions
self.write('<TABLE BORDER="">\n')
def end_multitable(self):
self.itemarg = None
self.write('</TABLE>\n<BR>\n')
def handle_columnfractions(self):
# It would be better to handle this, but for now it's in the way...
self.itemarg = None
def handle_tab(self):
self.write('</TD>\n <TD>')
# --- Enumerations, displays, quotations ---
# XXX Most of these should increase the indentation somehow
def bgn_quotation(self, args): self.write('<BLOCKQUOTE>')
def end_quotation(self): self.write('</BLOCKQUOTE>\n')
def bgn_example(self, args):
self.nofill = self.nofill + 1
self.write('<PRE>')
def end_example(self):
self.write('</PRE>\n')
self.nofill = self.nofill - 1
bgn_lisp = bgn_example # Synonym when contents are executable lisp code
end_lisp = end_example
bgn_smallexample = bgn_example # XXX Should use smaller font
end_smallexample = end_example
bgn_smalllisp = bgn_lisp # Ditto
end_smalllisp = end_lisp
bgn_display = bgn_example
end_display = end_example
bgn_format = bgn_display
end_format = end_display
def do_exdent(self, args): self.expand(args + '\n')
# XXX Should really mess with indentation
def bgn_flushleft(self, args):
self.nofill = self.nofill + 1
self.write('<PRE>\n')
def end_flushleft(self):
self.write('</PRE>\n')
self.nofill = self.nofill - 1
def bgn_flushright(self, args):
self.nofill = self.nofill + 1
self.write('<ADDRESS COMPACT>\n')
def end_flushright(self):
self.write('</ADDRESS>\n')
self.nofill = self.nofill - 1
def bgn_menu(self, args):
self.write('<DIR>\n')
self.write(' <STRONG><EM>Menu</EM></STRONG><P>\n')
self.htmlhelp.beginmenu()
def end_menu(self):
self.write('</DIR>\n')
self.htmlhelp.endmenu()
def bgn_cartouche(self, args): pass
def end_cartouche(self): pass
# --- Indices ---
def resetindex(self):
self.noncodeindices = ['cp']
self.indextitle = {}
self.indextitle['cp'] = 'Concept'
self.indextitle['fn'] = 'Function'
self.indextitle['ky'] = 'Keyword'
self.indextitle['pg'] = 'Program'
self.indextitle['tp'] = 'Type'
self.indextitle['vr'] = 'Variable'
#
self.whichindex = {}
for name in self.indextitle:
self.whichindex[name] = []
def user_index(self, name, args):
if name in self.whichindex:
self.index(name, args)
else:
print('*** No index named', repr(name))
def do_cindex(self, args): self.index('cp', args)
def do_findex(self, args): self.index('fn', args)
def do_kindex(self, args): self.index('ky', args)
def do_pindex(self, args): self.index('pg', args)
def do_tindex(self, args): self.index('tp', args)
def do_vindex(self, args): self.index('vr', args)
def index(self, name, args):
self.whichindex[name].append((args, self.nodename))
self.htmlhelp.index(args, self.nodename)
def do_synindex(self, args):
words = args.split()
if len(words) != 2:
print('*** bad @synindex', args)
return
[old, new] = words
if old not in self.whichindex or \
new not in self.whichindex:
print('*** bad key(s) in @synindex', args)
return
if old != new and \
self.whichindex[old] is not self.whichindex[new]:
inew = self.whichindex[new]
inew[len(inew):] = self.whichindex[old]
self.whichindex[old] = inew
do_syncodeindex = do_synindex # XXX Should use code font
def do_printindex(self, args):
words = args.split()
for name in words:
if name in self.whichindex:
self.prindex(name)
else:
print('*** No index named', repr(name))
def prindex(self, name):
iscodeindex = (name not in self.noncodeindices)
index = self.whichindex[name]
if not index: return
if self.debugging:
print('!'*self.debugging, '--- Generating', \
self.indextitle[name], 'index')
# The node already provides a title
index1 = []
junkprog = re.compile('^(@[a-z]+)?{')
for key, node in index:
sortkey = key.lower()
# Remove leading `@cmd{' from sort key
# -- don't bother about the matching `}'
oldsortkey = sortkey
while 1:
mo = junkprog.match(sortkey)
if not mo:
break
i = mo.end()
sortkey = sortkey[i:]
index1.append((sortkey, key, node))
del index[:]
index1.sort()
self.write('<DL COMPACT>\n')
prevkey = prevnode = None
for sortkey, key, node in index1:
if (key, node) == (prevkey, prevnode):
continue
if self.debugging > 1: print('!'*self.debugging, key, ':', node)
self.write('<DT>')
if iscodeindex: key = '@code{' + key + '}'
if key != prevkey:
self.expand(key)
self.write('\n<DD><A HREF="%s">%s</A>\n' % (makefile(node), node))
prevkey, prevnode = key, node
self.write('</DL>\n')
# --- Final error reports ---
def report(self):
if self.unknown:
print('--- Unrecognized commands ---')
cmds = sorted(self.unknown.keys())
for cmd in cmds:
print(cmd.ljust(20), self.unknown[cmd])
class TexinfoParserHTML3(TexinfoParser):
COPYRIGHT_SYMBOL = "©"
FN_ID_PATTERN = "[%(id)s]"
FN_SOURCE_PATTERN = '<A ID=footnoteref%(id)s ' \
'HREF="#footnotetext%(id)s">' + FN_ID_PATTERN + '</A>'
FN_TARGET_PATTERN = '<FN ID=footnotetext%(id)s>\n' \
'<P><A HREF="#footnoteref%(id)s">' + FN_ID_PATTERN \
+ '</A>\n%(text)s</P></FN>\n'
FN_HEADER = '<DIV CLASS=footnotes>\n <HR NOSHADE WIDTH=200>\n' \
' <STRONG><EM>Footnotes</EM></STRONG>\n <P>\n'
Node = HTML3Node
def bgn_quotation(self, args): self.write('<BQ>')
def end_quotation(self): self.write('</BQ>\n')
def bgn_example(self, args):
# this use of <CODE> would not be legal in HTML 2.0,
# but is in more recent DTDs.
self.nofill = self.nofill + 1
self.write('<PRE CLASS=example><CODE>')
def end_example(self):
self.write("</CODE></PRE>\n")
self.nofill = self.nofill - 1
def bgn_flushleft(self, args):
self.nofill = self.nofill + 1
self.write('<PRE CLASS=flushleft>\n')
def bgn_flushright(self, args):
self.nofill = self.nofill + 1
self.write('<DIV ALIGN=right CLASS=flushright><ADDRESS COMPACT>\n')
def end_flushright(self):
self.write('</ADDRESS></DIV>\n')
self.nofill = self.nofill - 1
def bgn_menu(self, args):
self.write('<UL PLAIN CLASS=menu>\n')
self.write(' <LH>Menu</LH>\n')
def end_menu(self):
self.write('</UL>\n')
# rpyron 2002-05-07
class HTMLHelp:
"""
This class encapsulates support for HTML Help. Node names,
file names, menu items, index items, and image file names are
accumulated until a call to finalize(). At that time, three
output files are created in the current directory:
`helpbase`.hhp is a HTML Help Workshop project file.
It contains various information, some of
which I do not understand; I just copied
the default project info from a fresh
installation.
`helpbase`.hhc is the Contents file for the project.
`helpbase`.hhk is the Index file for the project.
When these files are used as input to HTML Help Workshop,
the resulting file will be named:
`helpbase`.chm
If none of the defaults in `helpbase`.hhp are changed,
the .CHM file will have Contents, Index, Search, and
Favorites tabs.
"""
codeprog = re.compile('@code{(.*?)}')
def __init__(self,helpbase,dirname):
self.helpbase = helpbase
self.dirname = dirname
self.projectfile = None
self.contentfile = None
self.indexfile = None
self.nodelist = []
self.nodenames = {} # nodename : index
self.nodeindex = {}
self.filenames = {} # filename : filename
self.indexlist = [] # (args,nodename) == (key,location)
self.current = ''
self.menudict = {}
self.dumped = {}
def addnode(self,name,next,prev,up,filename):
node = (name,next,prev,up,filename)
# add this file to dict
# retrieve list with self.filenames.values()
self.filenames[filename] = filename
# add this node to nodelist
self.nodeindex[name] = len(self.nodelist)
self.nodelist.append(node)
# set 'current' for menu items
self.current = name
self.menudict[self.current] = []
def menuitem(self,nodename):
menu = self.menudict[self.current]
menu.append(nodename)
def addimage(self,imagename):
self.filenames[imagename] = imagename
def index(self, args, nodename):
self.indexlist.append((args,nodename))
def beginmenu(self):
pass
def endmenu(self):
pass
def finalize(self):
if not self.helpbase:
return
# generate interesting filenames
resultfile = self.helpbase + '.chm'
projectfile = self.helpbase + '.hhp'
contentfile = self.helpbase + '.hhc'
indexfile = self.helpbase + '.hhk'
# generate a reasonable title
title = self.helpbase
# get the default topic file
(topname,topnext,topprev,topup,topfile) = self.nodelist[0]
defaulttopic = topfile
# PROJECT FILE
try:
fp = open(projectfile,'w')
print('[OPTIONS]', file=fp)
print('Auto Index=Yes', file=fp)
print('Binary TOC=No', file=fp)
print('Binary Index=Yes', file=fp)
print('Compatibility=1.1', file=fp)
print('Compiled file=' + resultfile + '', file=fp)
print('Contents file=' + contentfile + '', file=fp)
print('Default topic=' + defaulttopic + '', file=fp)
print('Error log file=ErrorLog.log', file=fp)
print('Index file=' + indexfile + '', file=fp)
print('Title=' + title + '', file=fp)
print('Display compile progress=Yes', file=fp)
print('Full-text search=Yes', file=fp)
print('Default window=main', file=fp)
print('', file=fp)
print('[WINDOWS]', file=fp)
print('main=,"' + contentfile + '","' + indexfile
+ '","","",,,,,0x23520,222,0x1046,[10,10,780,560],'
'0xB0000,,,,,,0', file=fp)
print('', file=fp)
print('[FILES]', file=fp)
print('', file=fp)
self.dumpfiles(fp)
fp.close()
except IOError as msg:
print(projectfile, ':', msg)
sys.exit(1)
# CONTENT FILE
try:
fp = open(contentfile,'w')
print('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">', file=fp)
print('<!-- This file defines the table of contents -->', file=fp)
print('<HTML>', file=fp)
print('<HEAD>', file=fp)
print('<meta name="GENERATOR"'
'content="Microsoft® HTML Help Workshop 4.1">', file=fp)
print('<!-- Sitemap 1.0 -->', file=fp)
print('</HEAD>', file=fp)
print('<BODY>', file=fp)
print(' <OBJECT type="text/site properties">', file=fp)
print(' <param name="Window Styles" value="0x800025">', file=fp)
print(' <param name="comment" value="title:">', file=fp)
print(' <param name="comment" value="base:">', file=fp)
print(' </OBJECT>', file=fp)
self.dumpnodes(fp)
print('</BODY>', file=fp)
print('</HTML>', file=fp)
fp.close()
except IOError as msg:
print(contentfile, ':', msg)
sys.exit(1)
# INDEX FILE
try:
fp = open(indexfile ,'w')
print('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">', file=fp)
print('<!-- This file defines the index -->', file=fp)
print('<HTML>', file=fp)
print('<HEAD>', file=fp)
print('<meta name="GENERATOR"'
'content="Microsoft® HTML Help Workshop 4.1">', file=fp)
print('<!-- Sitemap 1.0 -->', file=fp)
print('</HEAD>', file=fp)
print('<BODY>', file=fp)
print('<OBJECT type="text/site properties">', file=fp)
print('</OBJECT>', file=fp)
self.dumpindex(fp)
print('</BODY>', file=fp)
print('</HTML>', file=fp)
fp.close()
except IOError as msg:
print(indexfile , ':', msg)
sys.exit(1)
def dumpfiles(self, outfile=sys.stdout):
filelist = sorted(self.filenames.values())
for filename in filelist:
print(filename, file=outfile)
def dumpnodes(self, outfile=sys.stdout):
self.dumped = {}
if self.nodelist:
nodename, dummy, dummy, dummy, dummy = self.nodelist[0]
self.topnode = nodename
print('<UL>', file=outfile)
for node in self.nodelist:
self.dumpnode(node,0,outfile)
print('</UL>', file=outfile)
def dumpnode(self, node, indent=0, outfile=sys.stdout):
if node:
# Retrieve info for this node
(nodename,next,prev,up,filename) = node
self.current = nodename
# Have we been dumped already?
if nodename in self.dumped:
return
self.dumped[nodename] = 1
# Print info for this node
print(' '*indent, end=' ', file=outfile)
print('<LI><OBJECT type="text/sitemap">', end=' ', file=outfile)
print('<param name="Name" value="' + nodename +'">', end=' ', file=outfile)
print('<param name="Local" value="'+ filename +'">', end=' ', file=outfile)
print('</OBJECT>', file=outfile)
# Does this node have menu items?
try:
menu = self.menudict[nodename]
self.dumpmenu(menu,indent+2,outfile)
except KeyError:
pass
def dumpmenu(self, menu, indent=0, outfile=sys.stdout):
if menu:
currentnode = self.current
if currentnode != self.topnode: # XXX this is a hack
print(' '*indent + '<UL>', file=outfile)
indent += 2
for item in menu:
menunode = self.getnode(item)
self.dumpnode(menunode,indent,outfile)
if currentnode != self.topnode: # XXX this is a hack
print(' '*indent + '</UL>', file=outfile)
indent -= 2
def getnode(self, nodename):
try:
index = self.nodeindex[nodename]
return self.nodelist[index]
except KeyError:
return None
except IndexError:
return None
# (args,nodename) == (key,location)
def dumpindex(self, outfile=sys.stdout):
print('<UL>', file=outfile)
for (key,location) in self.indexlist:
key = self.codeexpand(key)
location = makefile(location)
location = self.dirname + '/' + location
print('<LI><OBJECT type="text/sitemap">', end=' ', file=outfile)
print('<param name="Name" value="' + key + '">', end=' ', file=outfile)
print('<param name="Local" value="' + location + '">', end=' ', file=outfile)
print('</OBJECT>', file=outfile)
print('</UL>', file=outfile)
def codeexpand(self, line):
co = self.codeprog.match(line)
if not co:
return line
bgn, end = co.span(0)
a, b = co.span(1)
line = line[:bgn] + line[a:b] + line[end:]
return line
# Put @var{} around alphabetic substrings
def makevar(str):
return '@var{'+str+'}'
# Split a string in "words" according to findwordend
def splitwords(str, minlength):
words = []
i = 0
n = len(str)
while i < n:
while i < n and str[i] in ' \t\n': i = i+1
if i >= n: break
start = i
i = findwordend(str, i, n)
words.append(str[start:i])
while len(words) < minlength: words.append('')
return words
# Find the end of a "word", matching braces and interpreting @@ @{ @}
fwprog = re.compile('[@{} ]')
def findwordend(str, i, n):
level = 0
while i < n:
mo = fwprog.search(str, i)
if not mo:
break
i = mo.start()
c = str[i]; i = i+1
if c == '@': i = i+1 # Next character is not special
elif c == '{': level = level+1
elif c == '}': level = level-1
elif c == ' ' and level <= 0: return i-1
return n
# Convert a node name into a file name
def makefile(nodename):
nodename = nodename.strip()
return fixfunnychars(nodename) + '.html'
# Characters that are perfectly safe in filenames and hyperlinks
goodchars = string.ascii_letters + string.digits + '!@-=+.'
# Replace characters that aren't perfectly safe by dashes
# Underscores are bad since Cern HTTPD treats them as delimiters for
# encoding times, so you get mismatches if you compress your files:
# a.html.gz will map to a_b.html.gz
def fixfunnychars(addr):
i = 0
while i < len(addr):
c = addr[i]
if c not in goodchars:
c = '-'
addr = addr[:i] + c + addr[i+1:]
i = i + len(c)
return addr
# Increment a string used as an enumeration
def increment(s):
if not s:
return '1'
for sequence in string.digits, string.ascii_lowercase, string.ascii_uppercase:
lastc = s[-1]
if lastc in sequence:
i = sequence.index(lastc) + 1
if i >= len(sequence):
if len(s) == 1:
s = sequence[0]*2
if s == '00':
s = '10'
else:
s = increment(s[:-1]) + sequence[0]
else:
s = s[:-1] + sequence[i]
return s
return s # Don't increment
def test():
import sys
debugging = 0
print_headers = 0
cont = 0
html3 = 0
htmlhelp = ''
while sys.argv[1] == ['-d']:
debugging = debugging + 1
del sys.argv[1]
if sys.argv[1] == '-p':
print_headers = 1
del sys.argv[1]
if sys.argv[1] == '-c':
cont = 1
del sys.argv[1]
if sys.argv[1] == '-3':
html3 = 1
del sys.argv[1]
if sys.argv[1] == '-H':
helpbase = sys.argv[2]
del sys.argv[1:3]
if len(sys.argv) != 3:
print('usage: texi2hh [-d [-d]] [-p] [-c] [-3] [-H htmlhelp]', \
'inputfile outputdirectory')
sys.exit(2)
if html3:
parser = TexinfoParserHTML3()
else:
parser = TexinfoParser()
parser.cont = cont
parser.debugging = debugging
parser.print_headers = print_headers
file = sys.argv[1]
dirname = sys.argv[2]
parser.setdirname(dirname)
parser.setincludedir(os.path.dirname(file))
htmlhelp = HTMLHelp(helpbase, dirname)
parser.sethtmlhelp(htmlhelp)
try:
fp = open(file, 'r')
except IOError as msg:
print(file, ':', msg)
sys.exit(1)
parser.parse(fp)
fp.close()
parser.report()
htmlhelp.finalize()
if __name__ == "__main__":
test()
| lgpl-3.0 |
zstars/weblabdeusto | server/src/weblab/core/coordinator/scheduler_transactions_synchronizer.py | 3 | 4486 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2005 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individuals,
# listed below:
#
# Author: Pablo Orduña <pablo@ordunya.com>
#
import time
import random
import Queue
import threading
import voodoo.log as log
import voodoo.resources_manager as ResourceManager
import voodoo.counter as counter
from voodoo.resources_manager import is_testing
_resource_manager = ResourceManager.CancelAndJoinResourceManager("UserProcessingServer")
############################################################
#
# Certain operations, such as updating the queues, we
# only want them to be executed by one thread at a time.
# We can execute them more often, but it simply does not
# make sense. This class provides one public method, called
# request_and_wait. The method makes sure that the update
# method of the scheduler is called once since the method
# is invoked, without mattering if somebody else requested
# it.
#
class SchedulerTransactionsSynchronizer(threading.Thread):
def __init__(self, scheduler, min_time_between_updates = 0.0, max_time_between_updates = 0.0):
super(SchedulerTransactionsSynchronizer, self).__init__()
self.setName(counter.next_name("SchedulerTransactionsSynchronizer"))
self.setDaemon(True)
self.scheduler = scheduler
self.queue = Queue.Queue()
self.stopped = False
self.pending_elements = []
self.pending_elements_condition = threading.Condition()
self._latest_update = 0 # epoch
self.period_lock = threading.Lock()
self.min_time_between_updates = int(min_time_between_updates * 1000)
self.max_time_between_updates = int(max_time_between_updates * 1000)
self.next_period_between_updates = 0
def _update_period_between_updates(self):
self.next_period_between_updates = random.randint(self.min_time_between_updates, self.max_time_between_updates) / 1000.0
def start(self):
super(SchedulerTransactionsSynchronizer, self).start()
_resource_manager.add_resource(self)
def stop(self):
self.stopped = True
self.join()
_resource_manager.remove_resource(self)
def cancel(self):
self.stop()
def run(self):
timeout = 0.2
if is_testing():
timeout = 0.01
while not self.stopped:
try:
element = self.queue.get(timeout=timeout)
except Queue.Empty:
continue
if element is not None:
self._iterate(element)
def _iterate(self, element):
elements = [element]
while True:
try:
new_element = self.queue.get_nowait()
elements.append(new_element)
except Queue.Empty:
break
if not self.stopped:
execute = True
with self.period_lock:
if time.time() - self._latest_update <= self.next_period_between_updates:
execute = False
else:
self._latest_update = time.time()
self._update_period_between_updates()
if execute:
try:
self.scheduler.update()
except:
log.log(SchedulerTransactionsSynchronizer, log.level.Critical, "Exception updating scheduler")
log.log_exc(SchedulerTransactionsSynchronizer, log.level.Critical)
self._notify_elements(elements)
def _notify_elements(self, elements):
with self.pending_elements_condition:
for element in elements:
if element in self.pending_elements:
self.pending_elements.remove(element)
self.pending_elements_condition.notify_all()
def request_and_wait(self):
request_id = "%s::%s" % (threading.current_thread().getName(), random.random())
with self.pending_elements_condition:
self.pending_elements.append(request_id)
self.queue.put_nowait(request_id)
with self.pending_elements_condition:
while request_id in self.pending_elements and self.isAlive():
self.pending_elements_condition.wait(timeout=5)
| bsd-2-clause |
hobu/arbiter | third/gtest-1.7.0/test/gtest_color_test.py | 3259 | 4911 | #!/usr/bin/env python
#
# Copyright 2008, Google Inc.
# 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 Google Inc. 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
# OWNER 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.
"""Verifies that Google Test correctly determines whether to use colors."""
__author__ = 'wan@google.com (Zhanyong Wan)'
import os
import gtest_test_utils
IS_WINDOWS = os.name = 'nt'
COLOR_ENV_VAR = 'GTEST_COLOR'
COLOR_FLAG = 'gtest_color'
COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_color_test_')
def SetEnvVar(env_var, value):
"""Sets the env variable to 'value'; unsets it when 'value' is None."""
if value is not None:
os.environ[env_var] = value
elif env_var in os.environ:
del os.environ[env_var]
def UsesColor(term, color_env_var, color_flag):
"""Runs gtest_color_test_ and returns its exit code."""
SetEnvVar('TERM', term)
SetEnvVar(COLOR_ENV_VAR, color_env_var)
if color_flag is None:
args = []
else:
args = ['--%s=%s' % (COLOR_FLAG, color_flag)]
p = gtest_test_utils.Subprocess([COMMAND] + args)
return not p.exited or p.exit_code
class GTestColorTest(gtest_test_utils.TestCase):
def testNoEnvVarNoFlag(self):
"""Tests the case when there's neither GTEST_COLOR nor --gtest_color."""
if not IS_WINDOWS:
self.assert_(not UsesColor('dumb', None, None))
self.assert_(not UsesColor('emacs', None, None))
self.assert_(not UsesColor('xterm-mono', None, None))
self.assert_(not UsesColor('unknown', None, None))
self.assert_(not UsesColor(None, None, None))
self.assert_(UsesColor('linux', None, None))
self.assert_(UsesColor('cygwin', None, None))
self.assert_(UsesColor('xterm', None, None))
self.assert_(UsesColor('xterm-color', None, None))
self.assert_(UsesColor('xterm-256color', None, None))
def testFlagOnly(self):
"""Tests the case when there's --gtest_color but not GTEST_COLOR."""
self.assert_(not UsesColor('dumb', None, 'no'))
self.assert_(not UsesColor('xterm-color', None, 'no'))
if not IS_WINDOWS:
self.assert_(not UsesColor('emacs', None, 'auto'))
self.assert_(UsesColor('xterm', None, 'auto'))
self.assert_(UsesColor('dumb', None, 'yes'))
self.assert_(UsesColor('xterm', None, 'yes'))
def testEnvVarOnly(self):
"""Tests the case when there's GTEST_COLOR but not --gtest_color."""
self.assert_(not UsesColor('dumb', 'no', None))
self.assert_(not UsesColor('xterm-color', 'no', None))
if not IS_WINDOWS:
self.assert_(not UsesColor('dumb', 'auto', None))
self.assert_(UsesColor('xterm-color', 'auto', None))
self.assert_(UsesColor('dumb', 'yes', None))
self.assert_(UsesColor('xterm-color', 'yes', None))
def testEnvVarAndFlag(self):
"""Tests the case when there are both GTEST_COLOR and --gtest_color."""
self.assert_(not UsesColor('xterm-color', 'no', 'no'))
self.assert_(UsesColor('dumb', 'no', 'yes'))
self.assert_(UsesColor('xterm-color', 'no', 'auto'))
def testAliasesOfYesAndNo(self):
"""Tests using aliases in specifying --gtest_color."""
self.assert_(UsesColor('dumb', None, 'true'))
self.assert_(UsesColor('dumb', None, 'YES'))
self.assert_(UsesColor('dumb', None, 'T'))
self.assert_(UsesColor('dumb', None, '1'))
self.assert_(not UsesColor('xterm', None, 'f'))
self.assert_(not UsesColor('xterm', None, 'false'))
self.assert_(not UsesColor('xterm', None, '0'))
self.assert_(not UsesColor('xterm', None, 'unknown'))
if __name__ == '__main__':
gtest_test_utils.Main()
| mit |
opencord/voltha | ofagent/main.py | 1 | 9975 | #!/usr/bin/env python
#
# Copyright 2017 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import argparse
import os
import yaml
from twisted.internet import reactor
from twisted.internet.defer import inlineCallbacks
from common.structlog_setup import setup_logging
from common.utils.dockerhelpers import get_my_containers_name
from common.utils.nethelpers import get_my_primary_local_ipv4
from connection_mgr import ConnectionManager
defs = dict(
config=os.environ.get('CONFIG', './ofagent.yml'),
logconfig=os.environ.get('LOGCONFIG', './logconfig.yml'),
consul=os.environ.get('CONSUL', 'localhost:8500'),
controller=os.environ.get('CONTROLLER', 'localhost:6653'),
external_host_address=os.environ.get('EXTERNAL_HOST_ADDRESS',
get_my_primary_local_ipv4()),
grpc_endpoint=os.environ.get('GRPC_ENDPOINT', 'localhost:50055'),
instance_id=os.environ.get('INSTANCE_ID', os.environ.get('HOSTNAME', '1')),
internal_host_address=os.environ.get('INTERNAL_HOST_ADDRESS',
get_my_primary_local_ipv4()),
work_dir=os.environ.get('WORK_DIR', '/tmp/ofagent'),
key_file=os.environ.get('KEY_FILE', '/ofagent/pki/voltha.key'),
cert_file=os.environ.get('CERT_FILE', '/ofagent/pki/voltha.crt')
)
def parse_args():
parser = argparse.ArgumentParser()
_help = ('Path to ofagent.yml config file (default: %s). '
'If relative, it is relative to main.py of ofagent.'
% defs['config'])
parser.add_argument('-c', '--config',
dest='config',
action='store',
default=defs['config'],
help=_help)
_help = ('Path to logconfig.yml config file (default: %s). '
'If relative, it is relative to main.py of voltha.'
% defs['logconfig'])
parser.add_argument('-l', '--logconfig',
dest='logconfig',
action='store',
default=defs['logconfig'],
help=_help)
_help = '<hostname>:<port> to consul agent (default: %s)' % defs['consul']
parser.add_argument(
'-C', '--consul', dest='consul', action='store',
default=defs['consul'],
help=_help)
_help = '<hostname1>:<port1> <hostname2>:<port2> <hostname3>:<port3> ... <hostnamen>:<portn> to openflow controller (default: %s)' % \
defs['controller']
parser.add_argument(
'-O', '--controller',nargs = '*', dest='controller', action='store',
default=defs['controller'],
help=_help)
_help = ('<hostname> or <ip> at which ofagent is reachable from outside '
'the cluster (default: %s)' % defs['external_host_address'])
parser.add_argument('-E', '--external-host-address',
dest='external_host_address',
action='store',
default=defs['external_host_address'],
help=_help)
_help = ('gRPC end-point to connect to. It can either be a direct'
'definition in the form of <hostname>:<port>, or it can be an'
'indirect definition in the form of @<service-name> where'
'<service-name> is the name of the grpc service as registered'
'in consul (example: @voltha-grpc). (default: %s'
% defs['grpc_endpoint'])
parser.add_argument('-G', '--grpc-endpoint',
dest='grpc_endpoint',
action='store',
default=defs['grpc_endpoint'],
help=_help)
_help = ('<hostname> or <ip> at which ofagent is reachable from inside'
'the cluster (default: %s)' % defs['internal_host_address'])
parser.add_argument('-H', '--internal-host-address',
dest='internal_host_address',
action='store',
default=defs['internal_host_address'],
help=_help)
_help = ('unique string id of this ofagent instance (default: %s)'
% defs['instance_id'])
parser.add_argument('-i', '--instance-id',
dest='instance_id',
action='store',
default=defs['instance_id'],
help=_help)
_help = 'omit startup banner log lines'
parser.add_argument('-n', '--no-banner',
dest='no_banner',
action='store_true',
default=False,
help=_help)
_help = "suppress debug and info logs"
parser.add_argument('-q', '--quiet',
dest='quiet',
action='count',
help=_help)
_help = 'enable verbose logging'
parser.add_argument('-v', '--verbose',
dest='verbose',
action='count',
help=_help)
_help = ('work dir to compile and assemble generated files (default=%s)'
% defs['work_dir'])
parser.add_argument('-w', '--work-dir',
dest='work_dir',
action='store',
default=defs['work_dir'],
help=_help)
_help = ('use docker container name as ofagent instance id'
' (overrides -i/--instance-id option)')
parser.add_argument('--instance-id-is-container-name',
dest='instance_id_is_container_name',
action='store_true',
default=False,
help=_help)
_help = ('Specify this option to enable TLS security between ofagent \
and onos.')
parser.add_argument('-t', '--enable-tls',
dest='enable_tls',
action='store_true',
help=_help)
_help = ('key file to be used for tls security (default=%s)'
% defs['key_file'])
parser.add_argument('-k', '--key-file',
dest='key_file',
action='store',
default=defs['key_file'],
help=_help)
_help = ('certificate file to be used for tls security (default=%s)'
% defs['cert_file'])
parser.add_argument('-r', '--cert-file',
dest='cert_file',
action='store',
default=defs['cert_file'],
help=_help)
args = parser.parse_args()
# post-processing
if args.instance_id_is_container_name:
args.instance_id = get_my_containers_name()
return args
def load_config(args, configname='config'):
argdict = vars(args)
path = argdict[configname]
if path.startswith('.'):
dir = os.path.dirname(os.path.abspath(__file__))
path = os.path.join(dir, path)
path = os.path.abspath(path)
with open(path) as fd:
config = yaml.load(fd)
return config
banner = r'''
___ _____ _ _
/ _ \| ___/ \ __ _ ___ _ __ | |_
| | | | |_ / _ \ / _` |/ _ \ '_ \| __|
| |_| | _/ ___ \ (_| | __/ | | | |_
\___/|_|/_/ \_\__, |\___|_| |_|\__|
|___/
'''
def print_banner(log):
for line in banner.strip('\n').splitlines():
log.info(line)
log.info('(to stop: press Ctrl-C)')
class Main(object):
def __init__(self):
self.args = args = parse_args()
self.config = load_config(args)
self.logconfig = load_config(args, 'logconfig')
# May want to specify the gRPC timeout as an arg (in future)
# Right now, set a default value
self.grpc_timeout = 120
verbosity_adjust = (args.verbose or 0) - (args.quiet or 0)
self.log = setup_logging(self.logconfig,
args.instance_id,
verbosity_adjust=verbosity_adjust)
# components
self.connection_manager = None
self.exiting = False
if not args.no_banner:
print_banner(self.log)
self.startup_components()
def start(self):
self.start_reactor() # will not return except Keyboard interrupt
@inlineCallbacks
def startup_components(self):
self.log.info('starting-internal-components')
args = self.args
self.connection_manager = yield ConnectionManager(
args.consul, args.grpc_endpoint, self.grpc_timeout,
args.controller, args.instance_id,
args.enable_tls, args.key_file, args.cert_file).start()
self.log.info('started-internal-services')
@inlineCallbacks
def shutdown_components(self):
"""Execute before the reactor is shut down"""
self.log.info('exiting-on-keyboard-interrupt')
self.exiting = True
if self.connection_manager is not None:
yield self.connection_manager.stop()
def start_reactor(self):
reactor.callWhenRunning(
lambda: self.log.info('twisted-reactor-started'))
reactor.addSystemEventTrigger('before', 'shutdown',
self.shutdown_components)
reactor.suggestThreadPoolSize(30)
reactor.run()
if __name__ == '__main__':
Main().start()
| apache-2.0 |
giannisfs/Vault | vault/qrc_resources.py | 1 | 335309 | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: ??? ??? 21 00:36:17 2012
# by: The Resource Compiler for PyQt (Qt v4.7.4)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x01\x2b\xe6\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x01\xa6\x00\x00\x01\xa9\x08\x06\x00\x00\x00\xc6\x27\x92\xd6\
\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x0b\x13\x00\x00\x0b\x13\
\x01\x00\x9a\x9c\x18\x00\x00\x00\x20\x63\x48\x52\x4d\x00\x00\x7a\
\x25\x00\x00\x80\x83\x00\x00\xf9\xff\x00\x00\x80\xe9\x00\x00\x75\
\x30\x00\x00\xea\x60\x00\x00\x3a\x98\x00\x00\x17\x6f\x92\x5f\xc5\
\x46\x00\x01\x2b\x6c\x49\x44\x41\x54\x78\xda\xec\xfd\x77\xbc\x24\
\xd9\x59\x1e\x8e\x3f\xef\xa9\xd8\xe9\x86\xc9\xbb\xab\x99\xd9\xbc\
\xd2\x4a\x42\x01\x81\x10\x8a\x48\x42\x01\x21\x94\x11\x92\x48\x42\
\x80\x8c\x6d\x10\x59\x80\x45\x32\x98\xf0\xc5\x36\x18\x6c\x30\x60\
\x7e\xfe\xda\x06\xbe\x5f\x0c\xc6\x3f\x0c\xd8\x04\x63\x05\x82\xd2\
\xe6\x9c\x77\x27\x87\x3b\x33\x37\xf5\xed\x54\x55\xe7\xfd\xfe\x71\
\x4e\xc5\xae\xea\xae\xea\xdb\x77\x66\x76\xa6\xce\x7e\x7a\x6f\x4f\
\x87\xea\xea\xea\xaa\xf3\x9c\xe7\x79\x9f\xf7\x7d\x89\x99\x51\x8f\
\x7a\xd4\xa3\x1e\xf5\xa8\xc7\xe5\x32\x44\x7d\x08\xea\x51\x8f\x7a\
\xd4\xa3\x1e\x35\x30\xd5\xa3\x1e\xf5\xa8\x47\x3d\xea\x51\x03\x53\
\x3d\xea\x51\x8f\x7a\xd4\xa3\x06\xa6\x7a\xd4\xa3\x1e\xf5\xa8\x47\
\x3d\x6a\x60\xaa\x47\x3d\xea\x51\x8f\x7a\xd4\xc0\x54\x8f\x7a\xd4\
\xa3\x1e\xf5\xa8\x47\x0d\x4c\xf5\xa8\x47\x3d\xea\x51\x8f\x1a\x98\
\xea\x51\x8f\x7a\xd4\xa3\x1e\xf5\xa8\x81\xa9\x1e\xf5\xa8\x47\x3d\
\xea\x51\x03\x53\x3d\xea\x51\x8f\x7a\xd4\xa3\x1e\x35\x30\xd5\xa3\
\x1e\xf5\xa8\x47\x3d\xea\x51\x03\x53\x3d\xea\x51\x8f\x7a\xd4\xa3\
\x06\xa6\x7a\xd4\xa3\x1e\xf5\xa8\x47\x3d\x6a\x60\xaa\x47\x3d\xea\
\x51\x8f\x7a\xd4\xc0\x54\x8f\x7a\xd4\xa3\x1e\xf5\xa8\x47\x0d\x4c\
\xf5\xa8\x47\x3d\xea\x51\x8f\x1a\x98\xea\x51\x8f\x7a\xd4\xa3\x1e\
\xf5\xa8\x81\xa9\x1e\xf5\xa8\x47\x3d\xea\x51\x03\x53\x3d\xea\x51\
\x8f\x7a\xd4\xa3\x1e\x35\x30\xd5\xa3\x1e\xf5\xa8\x47\x3d\x6a\x60\
\xaa\x47\x3d\xea\x51\x8f\x7a\xd4\xa3\x06\xa6\x7a\xd4\xa3\x1e\xf5\
\xa8\x47\x3d\x6a\x60\xaa\x47\x3d\xea\x51\x8f\x7a\xd4\xc0\x54\x8f\
\x7a\xd4\xa3\x1e\xf5\xa8\x47\x0d\x4c\xf5\xa8\x47\x3d\xea\x51\x8f\
\x1a\x98\xea\x51\x8f\x7a\xd4\xa3\x1e\xf5\xa8\x81\xa9\x1e\xf5\xa8\
\x47\x3d\xea\x51\x03\x53\x3d\xea\x51\x8f\x7a\xd4\xa3\x1e\x35\x30\
\xd5\xa3\x1e\xf5\xa8\x47\x3d\x6a\x60\xaa\x47\x3d\xea\x51\x8f\x7a\
\xd4\xa3\x06\xa6\x7a\xd4\xa3\x1e\xf5\xa8\x47\x0d\x4c\xf5\xa8\x47\
\x3d\xea\x51\x8f\x7a\xd4\xc0\x54\x8f\x7a\xd4\xa3\x1e\xf5\xa8\x47\
\x0d\x4c\xf5\xa8\x47\x3d\xea\x51\x8f\x1a\x98\xea\x51\x8f\x7a\xd4\
\xa3\x1e\xf5\xa8\x81\xa9\x1e\xf5\xa8\x47\x3d\xea\x51\x03\x53\x3d\
\xea\x51\x8f\x7a\xd4\xa3\x1e\x35\x30\xd5\xa3\x1e\xf5\xa8\x47\x3d\
\x6a\x60\xaa\x47\x3d\xea\x51\x8f\x7a\xd4\xa3\x06\xa6\x7a\xd4\xa3\
\x1e\xf5\xa8\xc7\x15\x3d\xcc\x2b\xe1\x4b\x10\x51\xfd\x4b\x96\x38\
\x4c\x53\xfe\x8d\x8a\xcf\x6f\x77\xf0\x65\xb0\x2d\xae\x4f\x8b\x7a\
\x5c\xce\x83\xf9\xea\x3c\x45\xcd\xfa\xa7\xbf\xe2\x41\x88\x66\x7c\
\x6e\xa7\x01\x8a\x77\xf8\xf5\x3b\x09\x3e\x35\xa8\xd6\xa3\x1e\x35\
\x30\xd5\xa3\x02\x18\xd1\x14\x10\x9a\xf6\x77\x1a\x78\x4d\x7a\x7c\
\xa7\xc0\x86\xe7\xb8\xad\x79\x4c\xea\x7c\x19\xbf\xa7\x06\xd5\x7a\
\xd4\xc0\x54\x8f\xcb\x02\x90\xa6\x01\xd0\xa4\xfb\x93\x5e\x5f\x16\
\xa4\x76\x1a\x54\x78\x87\xde\x7b\x31\x80\x95\x2f\xd1\xe7\x5e\x89\
\x4c\x75\xa7\xbe\x7b\x0d\x94\x35\x30\xd5\x63\x07\x00\xa9\x08\x5c\
\x68\xc2\x63\x93\x6e\xd3\x18\xd5\x34\x90\xda\x09\xa0\x99\xd7\xe3\
\x17\x9b\xad\xf1\x0e\x6e\xfb\x52\x33\xd0\x8b\xcd\x02\xe7\x71\x2c\
\xaa\x3c\xce\x35\x78\xd5\xc0\x54\x8f\xed\x01\x52\x99\x9b\x28\xb8\
\x5f\x15\xa4\x8a\xc0\x89\x2f\xe2\x44\x71\xa9\x00\xeb\x62\x80\xea\
\xbc\x80\x75\xa7\x98\xe8\xa5\x66\x81\x55\xf7\x8d\x4b\x02\x4e\xf6\
\x3e\x15\xdc\xaf\xc1\xaa\x06\xa6\x7a\xcc\x00\x48\x59\x00\x12\x05\
\xf7\xf3\xfe\x96\x01\xa8\xaa\xc0\xc4\x73\x9a\x44\xb6\xf3\x9a\x9d\
\x9a\x8c\x79\xce\x8f\xed\x24\x60\x5d\x0c\x36\x3a\x4f\xd0\x9a\xe5\
\xbb\x16\x9d\x1b\x3c\xe1\xb1\xbc\xbf\x9c\x01\x25\x4e\x9c\xf3\x79\
\xf7\x6b\x90\xaa\x81\xa9\x06\xa4\x09\x60\x94\x05\xa1\xb2\xb7\x49\
\x20\x55\xc4\x9a\x68\xc6\xc9\x62\x56\xc0\xd9\xee\xbf\x2f\x05\x7b\
\xe3\x39\x6e\x6b\xde\x60\x31\xeb\xfe\x5e\x2a\x16\x58\xe6\x33\xcb\
\x02\x50\xf6\x7e\xde\xbf\x8b\x5e\x93\xc7\xaa\x6a\x70\xaa\x81\xe9\
\xaa\x01\xa4\x2a\xec\x28\x0f\x6c\x8c\x9c\xfb\x46\xce\x73\x45\x00\
\x55\xc4\x9c\x8a\x40\xe9\x62\x81\xce\x3c\x00\x6a\xbb\x60\x70\x31\
\x40\x74\xa7\x00\x6b\x1e\xdf\xa7\xea\xfe\xed\x34\x9b\x9b\x06\x48\
\x45\xc0\x53\x74\x93\x05\x8f\x23\x07\xa4\x6a\x80\xaa\x81\xa9\x06\
\xa4\x09\x80\x94\x07\x3e\xd9\x9b\x28\xf8\x77\x59\x70\x9a\x06\x4a\
\x3b\x01\x3e\xf3\x78\xdd\x4e\xb3\x1c\x9e\xc3\x73\xdb\x65\x2c\xf3\
\xf8\x7e\x3b\x09\x50\xdb\x8d\x0d\x95\x79\xac\x2c\x13\xca\x82\x4f\
\xf6\xbe\x9c\x02\x50\xd3\x58\x54\x0d\x4e\x35\x30\x5d\x51\xa0\x54\
\x64\xed\xce\x8b\x1b\x89\x0c\xd0\x64\x41\xc7\x2c\x71\x7f\x12\x83\
\xca\x7e\x2e\x4a\x82\xd3\xbc\x01\x88\xb7\xf1\xde\x79\x00\xcd\x3c\
\x3f\x6f\xd6\x6d\xec\x14\xd0\xce\xeb\xb9\xcb\x09\x54\xab\x30\x22\
\x99\x73\x3f\x7b\xcb\xbe\x2e\xfc\x37\x0a\x58\x53\x0d\x4a\x35\x30\
\x5d\x91\x80\x04\x94\x93\xeb\x92\xc0\x92\x05\x1e\x33\x73\x3f\xef\
\xb1\x22\x46\x35\x8d\x39\xa1\x00\x9c\xe6\x21\xc7\x55\x01\xa1\xed\
\x02\xd6\xbc\xff\xbd\x13\xf7\xe7\x05\xac\xbc\x43\xdf\x61\xa7\x59\
\x55\xd9\x7f\xf3\x04\x70\x92\x13\x00\x29\x7b\x0b\x32\x7f\xc3\xfb\
\xe1\xb5\x20\x13\xa0\x94\xf7\x19\xb5\xa4\x57\x03\xd3\x15\x0f\x48\
\x79\xa0\x94\x65\x46\x79\x60\x63\x65\xc0\xa8\xe8\xdf\x46\x01\x40\
\x95\x65\x4d\x98\x72\x21\xce\x63\x72\x9e\x05\x90\x76\x42\x56\xdb\
\xce\x77\xbb\x98\x20\x75\xb1\x81\x73\x27\x62\x69\xb3\x7c\xa7\x32\
\x92\x5d\x19\x30\xca\xde\xa4\x3e\xff\xc3\xfb\xc9\x6b\x33\x09\x52\
\x22\xf1\x39\xa8\xd9\x53\x0d\x4c\xcf\x56\x40\x9a\x04\x46\x93\x62\
\x48\x46\x0e\x33\xca\x03\x1d\x2b\x73\x33\x73\xee\x9b\x05\x00\x95\
\x27\xe9\x95\x89\x35\xcd\x7b\xf2\x2e\xe3\xb0\x9a\x17\x00\x6c\x17\
\x88\x76\x02\x60\x2f\x26\x90\x5e\x09\xec\xb4\x2c\x28\x05\x13\x00\
\xc9\xcf\xf9\x2b\x12\xe0\x14\xe4\x28\x07\x9c\x00\x30\x59\x03\x52\
\x0d\x4c\x57\x22\x20\x4d\x72\xd8\xe5\x31\xa4\x22\x20\xb2\x0b\xee\
\xe7\x01\x56\x16\x9c\xb2\x31\xa7\x2a\x26\x88\x8b\x01\x46\x3c\x87\
\x6d\xee\x34\xc3\xab\xfa\xdc\x3c\xf7\x77\x27\x8e\xfd\x4e\xee\xdf\
\xbc\x16\x35\x65\x41\x29\x09\x48\x7e\x06\x94\xb2\x37\x23\x71\x3f\
\xbc\x16\x82\xcc\x35\x10\x82\x91\xc4\x7c\x6a\x48\xd6\xc0\x54\x1f\
\x82\x4b\x0a\x48\x40\x7e\x35\x86\x22\x67\x5d\x56\xaa\x2b\x02\x23\
\xbb\xe0\x56\x04\x52\xd9\x18\x54\x16\x9c\xa6\xc9\x79\x65\xc0\x69\
\x96\x5c\x93\x59\x5f\xbb\x93\x72\xda\x4e\x82\xe9\xc5\x94\xdd\x66\
\xd9\xf7\x4b\xc1\xf6\x66\x39\x6f\x8a\xa4\xbb\x3c\x40\xca\x03\x23\
\x2f\x71\x4b\x2e\x0e\xfd\xc4\x35\x10\xe4\xec\x3f\xd5\x12\x5e\x0d\
\x4c\xcf\x26\x50\x9a\x54\x44\x75\x9a\xed\xdb\x28\x90\xeb\xac\x29\
\x20\xe4\x64\xfe\x26\xef\xe7\x01\x54\x91\x21\x62\x52\xd2\x2d\x50\
\x1c\x63\x9a\xd7\x04\x3e\xeb\xdf\x8b\x01\x54\x3b\xf1\xbd\x76\x12\
\xa8\xe6\x0d\xf2\x3b\x25\x9d\xce\x7a\xdc\xb3\x6c\x29\x8f\x29\x15\
\xb1\x23\x2f\x73\x1b\x25\xae\x07\x0f\x93\x4d\x40\xd9\x7d\x91\xa8\
\x56\xae\xab\x1e\x35\x30\x5d\x32\x40\x02\xaa\x39\xed\xf2\x40\xa9\
\x88\x19\x25\x41\xa8\xe8\x66\x67\xee\x67\x01\xca\x2c\x00\xa7\x69\
\x72\xde\x24\xc6\xb4\x13\xe0\x74\x31\x26\xfc\x9d\x06\xa4\x8b\xc1\
\x52\x2e\xd6\xc2\xe0\x52\x30\xbe\x69\xc7\xb6\x88\x29\xe5\xb1\xa4\
\x2c\x18\x8d\x12\xa0\x34\x42\x71\xac\x75\xd2\xb9\x5f\x33\xa7\x1a\
\x98\x2e\xed\xc8\x76\x98\x24\xd5\x4e\x77\x9e\x4e\xbb\xa4\x6c\x97\
\x07\x48\xd9\x9b\x3b\xe5\x6f\x96\x49\x59\x42\x08\x97\x48\x84\xa0\
\x67\x00\x1c\x01\x93\x94\x92\x98\x79\x9a\x6d\x1c\x15\x27\x92\x79\
\x80\xd0\xc5\x64\x52\xf3\x9e\xd0\x77\x82\x9d\x5c\x6a\x86\x7a\x31\
\x19\x5f\x15\x19\x2f\xcf\xd8\xe0\x65\x40\x29\x09\x48\xc3\xc4\xdf\
\x3c\xe5\xa0\xe8\xdc\xcf\x32\x36\x42\x6d\x1f\xaf\x81\xe9\x92\xd3\
\xa3\xb8\xbf\x7b\x55\x63\xc3\x34\x86\x64\x96\x00\x24\xb7\xe4\x2d\
\x05\x50\x8e\xeb\xb6\xbe\xf5\xbb\x3e\x76\xdd\xed\x2f\x78\xa1\xd5\
\x5e\x58\x30\xc6\x2e\x23\x10\x36\xd6\x56\xe1\xfb\x3e\x06\x83\x01\
\x0c\xc3\x00\x00\x8c\x86\x43\xf8\xbe\x0f\x90\xfe\x42\xc2\x50\xff\
\x06\xb0\x72\xf6\x2c\xbc\xd1\x10\x86\x61\xe0\xc2\xf9\x15\x04\x81\
\x04\x01\x18\x8d\x46\x08\x64\x10\x1d\x98\x20\x08\xb0\xb9\xb1\x9e\
\xfa\x40\x21\x04\x77\x37\x37\x30\x1a\x0e\x19\x00\x36\x37\xd6\x39\
\x41\x3f\x79\xe4\x8d\x30\x1a\x0e\x99\x88\x78\xd0\xef\xb3\xe7\x8d\
\x98\xa5\xcc\x9d\xec\xa5\x94\x52\x2f\x1a\x76\x02\xa0\xe6\x05\x42\
\xf3\x02\xa8\x79\xee\xff\xe5\x04\x50\x65\xb7\x5d\x04\x4c\x79\xf2\
\x5d\x12\x94\x46\xfa\x6f\x12\x8c\x86\x00\x06\x18\x8f\xb7\x4e\x93\
\xf1\xb8\x00\x9c\x6a\x40\x9a\x65\x3e\xbd\x12\x7a\xca\xc7\x98\x70\
\xc9\x24\xbb\x59\x00\x49\x94\x90\xec\xac\x0a\x80\xd4\xc8\xf9\xdb\
\xc8\x79\xde\x21\xa2\xc6\x9b\xde\xfe\xee\xbd\x6f\x7b\xd7\x7b\x1a\
\xad\x56\x9b\x24\xcb\xb1\xaf\x44\x39\xc7\x98\xc1\xe9\x67\x28\xfd\
\x8e\xe8\x79\xca\xd9\x0a\x65\xaf\xe6\xe2\xed\x4c\x3c\xca\xa9\x82\
\x2f\x3c\x8e\xa5\xfa\xc5\xdd\xcd\x4d\x04\x81\x8f\xe1\x70\xa0\xb6\
\x4a\xc0\x68\xe4\x21\x08\xfc\xd4\xeb\x02\x0d\xa8\xe7\xcf\xad\x60\
\x38\x1c\xc2\x34\x4c\x9c\x5b\x39\x03\x96\x0c\x10\x30\x1a\x0d\x11\
\x04\x32\xb5\x0b\x9e\x37\xc2\xc6\xc6\x7a\xea\x73\x0d\xc3\xe0\x8d\
\xf5\x75\x78\x9e\xc7\x00\xb0\xb1\xb6\xca\xea\xb8\x09\x8c\x46\x03\
\x1e\x0e\x06\x00\xc0\x83\x7e\x5f\x02\x80\xef\x79\x2c\x65\x00\x10\
\x8d\x4d\xbe\x52\x4a\x66\x29\xe7\x0d\x5a\xb3\x82\xd2\x3c\x01\x6a\
\x3b\x72\x69\x15\x19\x8f\x31\x6e\x74\x28\x92\xee\x42\x50\x1a\x24\
\x40\xa9\x9f\xf8\xdb\x4f\xfc\x7b\x90\x00\xaf\xf0\xbd\xc9\xed\xf9\
\x48\xbb\xfc\x02\x4c\xae\x16\x51\x59\x91\xa9\x81\xa9\x06\xa6\xb2\
\xa0\x54\xb5\x84\x90\x31\x81\x25\xcd\x0a\x48\xd3\x6e\x11\x30\xbd\
\xea\xf5\x6f\xda\xfd\xce\xaf\xff\x80\xb3\x6b\xf7\x1e\x92\x52\x96\
\x83\xdc\xb1\x7f\x52\xf5\xa3\x54\xf8\x4e\xaa\xbc\x1d\x2a\xb3\xb3\
\x11\x18\x66\xe0\x90\xf2\xde\xc7\xa9\x73\x28\x04\x57\xe6\xa2\xd7\
\xe7\x3d\x9e\x78\x0e\xd3\x85\x4e\x2e\x5c\x44\x13\x06\xbd\x1e\x3c\
\xcf\xc3\x70\x14\xb3\xd4\xe1\x40\xb1\x54\xa1\xff\x4d\x40\xc4\x52\
\xcf\x9e\x39\x8d\xad\xad\x2d\x8c\x86\xc3\x68\xdf\xba\x1b\x9b\xf0\
\xbc\x51\x6a\xcb\x41\x10\x60\x7d\x6d\x15\x42\x88\xd4\xe3\xdd\xcd\
\x4d\x1e\x8d\x86\x20\x80\xd7\xd7\xd7\x10\xf8\x3e\x0f\x06\x7d\x16\
\x44\xf0\x7d\x1f\xa3\xd1\x88\x35\xeb\x95\xbe\xe7\x31\x63\x9c\x89\
\x12\x88\x03\x19\xe4\x01\xea\x3c\x98\x5d\x59\xf6\x99\x07\x4c\x79\
\xf2\xdd\x28\xc3\x90\x86\x09\xe0\xe9\x03\xe8\x25\xfe\xf6\x4a\x00\
\x54\x78\x0b\xb7\x1f\x82\xa1\xcc\x01\xa7\x4a\x13\x6e\x0d\x4c\x35\
\x30\x6d\x07\x90\x80\xea\xc6\x86\x32\x4e\xbb\x64\x3c\xc8\x2d\x01\
\x48\xcd\xcc\xdf\xe8\xfe\xf3\x5e\xf8\xe2\xc5\xb7\xbe\xe3\xdd\xce\
\x0d\x37\xdd\x4c\xcd\x56\x3b\x35\x31\xd2\x25\x06\x1b\x2a\x8b\x8c\
\x33\x6d\xa3\xfc\xb6\xa8\xd2\xae\x4f\xf8\xd6\x34\xdb\x81\xa4\x31\
\x00\xa6\x98\x11\xe6\xe2\xae\x66\xa9\x44\xb9\x0c\x35\x77\xeb\x05\
\xdb\x29\x7d\x98\x72\xe7\x0b\xf5\xa6\x91\x37\x42\xe0\xfb\x9a\x85\
\x2a\xc0\xef\x0f\xfa\x08\x82\x20\x25\x6c\x05\xbe\x0f\x06\x70\x7e\
\xe5\x2c\x06\x83\x21\x64\x10\xa0\xd7\xdb\xd2\x72\xae\x81\x0d\x05\
\x8e\xd1\x17\xf7\x7d\x0f\xeb\xab\xab\xd1\xf3\x89\xf5\x04\x2e\x9c\
\x5f\x61\xcf\xf3\x00\x30\x6f\x6d\x6e\x72\x20\x25\x0f\xfb\x7d\xf6\
\x3c\x2f\xf0\xbc\x51\x40\x44\x72\x34\x1c\xf8\x00\x3c\xdf\xf7\x3d\
\x29\xe5\x88\x99\x47\x32\x08\xfa\x31\x20\xd1\x10\xe0\x3e\x11\xf5\
\xa5\x94\x5b\x00\xb6\x34\x20\x65\xff\xf6\x32\x00\x35\xcc\x00\x54\
\x11\x73\x9a\x99\x35\xd5\xc0\x54\x03\xd3\x3c\x00\x29\xdb\x8c\x2f\
\x9b\x0f\x64\x4e\x91\xed\xec\x02\x96\xe4\x16\xc8\x74\x49\x20\x6a\
\xe6\xfc\xbb\x71\xdd\xe1\xeb\x17\x3e\xf0\xad\xdf\xe1\xdc\x78\xd3\
\x2d\xe4\x36\x1a\xd3\x4f\xf4\xc2\x39\x6a\x5e\xcc\xe6\xe2\x02\x4e\
\x79\xb0\x99\xc2\xc3\xb6\x0b\x36\x33\x6e\x87\xb6\x71\xf8\x4a\x31\
\x5d\xaa\xba\x8d\xc9\xab\x12\xca\xfc\x78\x93\x80\x91\x12\xd4\x93\
\xa6\x5c\xcf\x45\xd7\x38\xd1\x0c\x07\x24\x31\xe1\xa7\x14\x62\x22\
\x7c\xe1\x73\x9f\x5d\xfd\xc5\x9f\xfc\xd1\x3f\xd5\x60\xd4\xcd\xfc\
\xcd\x02\x54\x1e\x7b\xca\x03\x27\x39\x2b\x6b\xba\x5a\x81\xa9\x36\
\x3f\xcc\x17\x90\x26\x39\xed\xb6\x03\x48\x6e\x01\x3b\x2a\xbc\x2d\
\x2c\x2e\xb5\xbf\xe5\xbb\xbe\xbb\xf1\xc2\x2f\x79\x09\x2c\xdb\x82\
\x64\xd6\xab\xeb\xab\x09\x6c\x4a\xf0\xb9\x19\xb6\xb3\x3d\xb0\x99\
\x0f\xe0\xd0\x74\x64\xd8\x0e\x0c\x4f\xdd\x0e\x95\x3c\x49\x62\xa2\
\xc4\x63\xe2\x1c\x47\x0c\x8c\xc0\x89\xf3\xa2\x68\x32\xa6\x62\x0d\
\x75\xc2\x62\x62\xf2\x19\xcb\x09\x84\x63\x66\x7c\xe5\xab\x5e\xbd\
\x7c\xeb\xed\x2f\x78\xe1\x63\x0f\x3d\xf0\x70\xe2\x5a\x46\x8e\x64\
\x38\xa9\xf6\x5e\x78\x13\x18\x37\x42\x00\xb5\x19\xa2\x06\xa6\x39\
\x00\xd2\x24\x30\x9a\xe4\xb4\x13\x98\x6c\xfd\x9e\x04\x48\x4e\x01\
\x43\x2a\x02\xa4\x56\x78\xdf\x76\x9c\xf6\xeb\xdf\xf2\xb5\xcd\xaf\
\x7b\xcf\xfb\xd1\x68\x35\xc1\x92\x55\xac\xa4\x30\x06\xb3\x3d\xf9\
\xeb\x72\x01\x9b\xd9\xd8\xcd\xe5\x05\x36\x3b\x03\x38\xd5\xb6\x33\
\x75\xe1\x41\x15\x7f\x55\xaa\xb0\xfb\x44\x53\x5f\x47\x69\xaa\x54\
\xfe\x7b\x50\x29\x38\x06\x4b\x89\x0f\x7c\xcb\x47\x6e\xfb\xe9\x8f\
\x7f\xdf\xc9\xc4\xf5\x9d\x07\x48\xd9\xd2\x46\x41\xce\x63\x61\xed\
\x3c\x42\x71\x4b\xf6\x7a\xd4\xc0\xb4\x23\x80\x34\xad\x84\x50\x51\
\x82\x6c\x16\x94\xdc\x09\xb2\x5d\x9e\x64\xd7\xca\xfe\x7d\xf3\xd7\
\xbd\xa7\xf5\xce\xf7\xbd\x9f\x9a\xad\x36\xa4\x0c\x00\x9e\x91\x21\
\x5d\x6e\x31\x9b\x6d\x6c\x67\x56\x82\xb8\xe3\xcc\xe6\x22\xb2\x9b\
\x2a\x0c\xa7\xda\xae\x55\x03\x1e\xa2\x2a\xe7\x4c\x49\x6e\x4e\xa5\
\x21\x79\xea\x09\x41\x00\xa4\x94\xf8\xd2\x97\x7d\x59\xf3\xba\x43\
\x87\x6f\x38\x71\xf4\xc8\xd3\x19\xa6\x54\x54\x81\x3c\x0f\x98\x0c\
\xa4\x0b\xbb\x52\x0d\x48\x35\x30\xcd\x53\xb6\x2b\xeb\xb4\xcb\x63\
\x48\x79\x09\xb2\x79\x2c\x69\x92\xb1\x21\x09\x4a\xad\xbc\xbf\xcf\
\xfb\x92\x97\xb4\xdf\xf1\xbe\xf7\x8b\x1b\x6f\xba\x15\x96\x6d\x43\
\xb9\xed\xa6\xb9\xd1\x9e\x2d\xac\xe6\x22\x80\xcd\x4c\xac\x66\x76\
\xa0\x99\x07\xb3\x99\x85\xdd\x94\xfc\x85\xab\x62\x5e\x69\xb6\x53\
\x56\x8e\xa3\x6d\x83\xce\x0c\xfe\xd1\xd4\x0b\x19\xdf\xf6\x5d\xdf\
\x73\xe3\xcf\xfc\xe8\x0f\x9c\xc7\xe4\x9c\xa8\xbc\x5b\xf8\xbc\x91\
\x60\x4d\x02\xe3\x15\x21\x6a\x49\xaf\x06\xa6\x99\x00\x09\x98\xcd\
\x69\x67\x60\xb2\xf5\xbb\x8c\xb1\xa1\x59\x20\xdb\x25\x01\xa9\x75\
\xf0\xfa\x1b\xdb\x1f\xfa\xc8\x77\x1a\x37\xdf\x72\x1b\x2c\xdb\x01\
\xb3\x7c\x56\x82\xcd\xe5\x13\xb3\x99\x27\xab\x99\x27\xd0\x4c\x06\
\x9b\x2a\x92\xda\x4e\xb1\xa1\x18\x6f\x76\x80\x15\x4d\x38\xc9\xa8\
\xba\x9e\x37\xf5\x7d\x81\x94\x78\xd9\x97\x7d\xb9\xbb\xb0\xb4\x7c\
\x60\x63\x6d\x55\x16\x00\x92\x37\x01\x98\xfc\xc4\xdc\x20\x73\x94\
\x96\x1a\x90\x6a\x60\xda\x36\x20\x95\x2d\x21\xb4\x93\xc6\x86\x14\
\x20\xed\xbb\xe6\xda\xce\x47\xfe\xf1\xc7\xcc\x5b\x6e\x7b\x1e\x0c\
\xd3\x04\x33\xeb\x80\x31\xcd\x00\x38\xcf\x22\x66\x33\x2f\x19\xed\
\x0a\x04\x9b\xf2\x3f\x77\xc5\xe4\x00\x9a\x90\xf4\x3c\x03\xe0\x4c\
\x3e\xbf\xe6\x23\xc7\x6d\x63\x8d\x15\x4f\x8c\xa6\x81\xaf\x7a\xd3\
\x5b\xaf\xf9\x93\xff\xfa\xfb\x9b\x48\x57\x8d\xc8\x26\xd4\x7a\x39\
\x20\x65\x26\x80\x2c\xc9\x98\xea\x26\x82\x65\x7f\x9e\xab\xd8\x2e\
\xbe\x13\xcd\xfa\x26\x55\xfd\xce\xc6\x91\xa6\x59\xbf\xc7\x64\x3b\
\xc7\x6d\xb4\xbf\xf3\x7b\x7f\xd0\x79\xd1\x8b\x5f\x0a\xdb\x71\x4a\
\x58\x49\xe7\x6f\x12\xa8\x01\x67\x7b\x60\xb3\x23\x72\x1a\x55\x94\
\xae\x68\xc2\xef\x30\x0f\x36\x54\xf2\x24\xa3\x8a\x0f\x10\x30\xe3\
\x0f\x53\x3d\x53\x8f\x04\xa1\xbb\xd9\xe5\x0f\xbd\xf3\xad\x4f\x00\
\x58\x4d\xdc\xd6\xf4\x6d\x1d\xc0\x06\x80\x4d\x28\x3b\x79\x17\xb1\
\x95\x3c\x69\x23\x1f\x25\x80\x2b\x04\xab\x6c\xbb\xf7\xc2\x51\xdb\
\xc5\xaf\x2e\x86\x34\x0d\x90\x66\x69\xd6\x37\x09\x90\xca\x30\xa4\
\x46\x02\x84\x52\x80\x44\x44\xad\xb7\xbe\xf3\x7d\xcd\x77\xbf\xff\
\x03\x70\x1c\x57\x59\xbf\x99\x31\x9f\x24\xcf\xcb\x11\x74\x76\x48\
\x52\x9b\x47\xdc\x66\x66\x86\x33\x2b\xcb\xa9\xee\x6c\xab\x02\x50\
\x54\x7e\x2f\x2a\x9d\x1c\x34\xc3\x49\x55\xed\xdc\x99\x81\x29\x51\
\x85\x33\x97\x81\xe5\xe5\x65\x7a\xf9\xab\x5e\x7b\xcd\xe7\xff\xee\
\xd3\xd9\x42\xaf\x79\x37\x5b\x03\x90\x85\xb8\xc1\x60\x78\xcb\x3a\
\xf4\xea\x3a\x7a\x35\x30\x4d\x94\xed\xf2\x8c\x0d\xb3\x36\xeb\x0b\
\x0b\xad\x3a\xa8\x66\x6c\xc8\x93\xed\x22\x50\x7a\xdd\x9b\xbe\xa6\
\xfd\xf5\xdf\xf8\x2d\x58\x58\x5c\x84\x0c\x24\x98\xb9\x74\x3e\xc7\
\x14\x7e\x71\xd1\x93\x3d\x2f\x75\x1c\xe7\xf2\x02\x9d\x19\xe2\x3e\
\x44\x15\x25\xb8\x59\x40\x67\x56\x19\x6e\xbb\xec\xa8\x04\xc3\x9f\
\xf1\xc9\x59\x41\x4b\xca\x00\x1f\xfa\xd6\x6f\x6f\x7d\xfe\xef\x3e\
\xdd\xce\x01\xa2\x61\xce\x63\x49\x99\xcf\xcc\x00\x54\x36\xaf\xa9\
\xb6\x8e\xd7\xc0\xb4\xa3\x25\x84\x92\x95\xbf\x8b\x6a\xda\x55\xb6\
\x7e\xbf\xe0\xc5\x5f\xda\x7e\xfb\x7b\xdf\x2f\x6e\xbd\xed\xb9\x30\
\x4c\x4b\x39\xed\xaa\x48\x1d\xcf\x7a\xb6\x73\x39\xc9\x6b\x17\x81\
\xed\x54\x91\xd7\xa8\x9a\x10\x47\xdb\x06\x9d\x59\x72\x86\xb6\x09\
\x3a\x34\xf3\x99\x52\xf1\x47\x2a\x3e\x92\x52\x32\x6e\xb9\xed\x56\
\xba\xed\xf9\x2f\xdc\xf3\xe8\x83\xf7\xe7\xd5\xd5\xcb\x96\x24\x1a\
\x25\xe6\x85\x10\x9c\x92\x71\xa6\xa2\x0a\xe5\x35\x30\x65\x7f\x95\
\xab\x20\xc6\x44\xa8\x16\x47\x9a\xc5\xd8\x50\xb6\xa6\xdd\xd4\x38\
\xd2\xc1\xeb\x6f\xec\x7c\xcb\x77\xfe\x13\xe3\xa6\x5b\x6f\x85\x65\
\xaa\x8a\x0d\x97\x0f\xdb\xa9\x0e\x18\x97\x03\xdb\xb9\x9c\x64\xb6\
\x9d\x95\xd8\x66\xcd\x2d\xab\x9a\x33\xb4\x0d\xa6\x74\x99\x80\x4e\
\xd9\xed\x18\xc2\xc0\xd3\x4f\x3f\x85\x7f\xfa\xe1\x0f\x9d\x02\x70\
\x5e\xdf\x2e\x20\x1d\x73\x5a\xd7\xb7\x30\xde\xb4\x85\xf1\x9a\x7a\
\xd9\x58\x53\xa9\x32\x45\x75\x8c\xe9\xca\x64\x49\x93\x80\xa9\x6c\
\xb3\x3e\x0b\xf3\xa9\x69\x57\x14\x47\x6a\x01\x68\x2e\xed\xda\xdd\
\xf9\x8e\xef\xf9\x01\xeb\x85\x2f\x7a\x31\x84\x10\xca\x69\x37\x56\
\x42\xe8\x59\x2a\xb3\xed\x70\x6c\x67\x56\xe0\x29\x37\xb7\x51\xa5\
\xd7\xee\x9c\xb5\xfa\x52\x01\xcf\x0c\x45\xa8\xe6\x11\x17\xa2\x99\
\xcf\xd8\x19\x17\x3c\x54\xc0\x9a\x24\x6e\xbe\xf9\x16\x1c\xb8\xf6\
\xba\xc5\xd3\x27\x4f\x0c\x12\x6c\x29\xac\x44\xee\xea\xfb\x4e\x8e\
\xac\x97\xed\x06\x1d\x60\xbc\x4c\x51\xcd\x96\xae\x42\x29\x2f\x0f\
\x94\x8a\x9c\x76\xb3\x16\x59\x2d\x72\xda\x15\xe5\x22\xa5\x00\xc9\
\x71\x1b\xed\x77\x7c\xfd\x07\xdd\xaf\x7d\xe7\x7b\x60\x18\x06\x24\
\xcb\x9c\x55\xd2\xb3\x5b\x66\xbb\x7c\x19\xcf\x0e\xb2\x9e\x2a\xe0\
\xb3\x2d\xe0\x99\xd5\x84\x70\xe5\xb3\x1d\x9a\xcf\x09\x0a\x66\xc6\
\x37\x7c\xcb\xb7\x37\x7e\xe5\xe7\x7f\xba\x85\x74\x0b\x8c\x86\x06\
\x25\x37\xc1\x8c\xc2\xf9\x21\x1b\x6b\x4a\xe6\x35\xc9\x5a\xd2\xbb\
\x3a\xa5\x3c\xc2\x74\x73\xc3\x76\x8b\xac\x56\x05\xa4\x56\x16\x94\
\xde\xfd\xc1\x6f\x6e\xbd\xf3\x7d\xdf\x00\xd3\x34\x21\x03\x59\x03\
\xcf\xdc\x19\xcf\x6c\x06\x83\xf2\xaf\xad\x90\xe3\x43\xa5\xf7\xb8\
\x8a\x86\x56\x03\xcf\x36\x4e\xd0\x2a\x7d\xbd\x0c\x21\xf0\xa1\x77\
\xbd\xbd\x7f\xe1\xfc\xca\x99\x84\xa4\x17\xca\x7a\x6b\x18\xb7\x90\
\x6f\x65\x24\xbd\xac\x9c\xe7\x23\x5d\xf0\x35\x57\xce\xab\xa5\xbc\
\x2b\x93\x25\x01\xe5\xcc\x0d\xf3\x8c\x21\x4d\x05\xa4\x2f\xf9\xd2\
\x2f\x6f\xbf\xe3\x7d\xdf\x40\xb7\xdc\xf6\x5c\x08\x21\x0a\x8c\x0d\
\xb5\xd4\x56\x05\x48\x2a\xe1\x78\x05\xf0\x99\x67\x35\x83\x59\x80\
\x67\xba\x92\x57\x03\xcf\xb6\x81\xa7\xc4\x7a\xcc\x30\x0c\xbc\xed\
\xdd\xef\x6d\xfc\x97\xdf\xfe\x8d\x90\x35\xf5\x12\xd7\xfd\x20\xb1\
\x60\x0d\xe7\x8c\xd0\x08\x91\x75\xe8\x05\x89\xb9\xa8\x4e\xb8\xbd\
\x8a\x18\x53\x95\x9c\xa4\xa2\x12\x42\x45\xf1\x23\x07\x33\x24\xc6\
\x86\xb7\xeb\x0e\x5d\xdf\xfa\x47\xdf\xf7\x43\xc6\xf5\x37\xdc\x08\
\x43\x88\xc8\xd8\xb0\xe3\xc0\x53\x62\x3b\x3b\x6e\xa5\x9e\x85\x88\
\xd1\x2c\xb9\x2a\x54\xb9\x58\x45\x69\xa3\xc1\x0e\x49\x6e\xb3\xb2\
\x9e\x1a\x78\xe6\x07\x3c\x53\xf7\x90\x08\x83\x41\x1f\xef\x7e\xf3\
\x57\x6d\x01\x38\x97\xb8\x5d\x40\x6c\x86\x98\xc4\x9a\xc2\xb8\x54\
\xa5\x84\xdb\x9a\x31\x5d\x59\x6c\x69\x5a\xd2\x6c\x9e\xdb\x2e\x2f\
\x0f\x69\x5a\xa5\x86\x49\xcc\x28\xba\x2d\xed\xda\xdd\xfa\xf8\x4f\
\xfd\x9c\x75\xf0\xd0\x21\x08\x61\xe8\x12\x42\x71\x0b\xef\xcb\x1d\
\x78\xaa\x4a\x66\xb3\x00\xcf\x4e\xb0\x9d\x2a\xa0\x33\x0e\x26\x17\
\x53\x72\xdb\x99\xa4\xd3\x8a\x2f\x2d\xcb\xd1\x67\x38\xef\x66\xa7\
\xe4\x34\xdb\x07\x56\xe5\xa2\x25\x2e\x09\x46\xa7\xd3\xc1\xcb\x5f\
\xf5\xda\xd6\xe7\xff\xee\xd3\xbd\xc4\x1c\xd0\x4b\xcc\x13\x49\xc6\
\x94\x65\x4d\x75\xc2\xed\x55\xcc\x98\xca\xf4\x49\x32\x4a\xb0\xa4\
\x22\xb9\x6e\x92\x91\x61\xec\xd6\xea\x74\x3a\xdf\xfa\xd1\xef\xb6\
\x5f\xfe\xca\x57\xc1\xd4\x35\xed\x66\x5e\xcf\x5e\xd2\xaa\x05\x17\
\x49\x66\xab\x5a\x2a\xa7\x6a\x3e\x4f\x49\xb9\xed\x62\x4a\x6e\x57\
\x0d\xeb\xa9\x74\xde\xed\x0c\xeb\x29\x41\xe2\x27\x0e\x21\x04\xb6\
\x7a\x3d\xbc\xe7\xcd\x5f\xd5\xcd\xb0\xa6\xf3\x39\xac\x69\x13\xb1\
\x7d\x3c\xd9\xf1\xb6\xa8\x4c\x51\xae\x75\xbc\x66\x4c\x57\x3e\x73\
\x2a\x62\x4b\x49\x50\x2a\x13\x3b\xca\x63\x46\xed\xe4\x5f\xc3\x34\
\x3b\x5f\xff\x4d\xdf\xd6\xf8\x9a\x77\xbc\x4b\x19\x1b\xa4\x1c\x6b\
\xe5\xfc\x6c\x60\x3d\xf3\xaf\xd1\xb6\x73\x05\x44\xc7\x95\xbf\x8b\
\x6d\xad\xae\x59\xcf\xe5\xcf\x7a\x66\xd3\x0b\x93\x9d\x75\x17\x17\
\x16\xf0\xe2\x97\xbd\xbc\x75\xcf\x1d\x9f\xdf\xca\xcc\x11\x6e\x86\
\x39\x0d\x13\x8b\xde\x70\xae\x09\x17\xc5\x75\xc2\xed\x55\xc6\x98\
\x26\xf5\x4b\x9a\x04\x48\x59\x96\x54\xd4\x03\x29\x17\x88\xf4\xdf\
\x36\x80\xf6\x9b\xbe\xf6\x5d\x9d\x6f\xfc\xc8\x77\x90\x6d\xdb\xe3\
\x4e\xbb\x4b\x6e\x32\xd8\x61\xf0\xd9\x69\xc6\x53\xb1\x10\x60\x55\
\x6b\xf5\x5c\x59\x4f\x85\x27\x6a\xd6\x73\xf1\x58\x4f\x2e\x4c\x56\
\xd8\x80\x10\x02\x27\x4e\x9c\xc0\xb7\xbd\xff\x5d\x1b\xa8\x16\x6b\
\x9a\xc6\x9a\x72\x13\x6e\x6b\xc6\x74\x65\xb0\xa4\x3c\xc6\x54\x64\
\x7a\x48\x4a\x78\x49\x83\x43\x91\x44\x37\x06\x42\x00\x3a\xe1\xfd\
\x97\x7c\xf9\x2b\x16\xdf\xf9\xf5\x1f\x30\x6f\xbd\xed\x79\x60\xf0\
\x44\xa7\xdd\xce\x81\xcf\xf6\x4d\x06\x97\xb4\x74\xce\x74\x64\x98\
\x9f\xdc\x36\x0f\xd6\x53\x83\xcf\x15\x09\x3e\x85\x7c\x91\x14\x50\
\x1c\x3a\x74\x08\xd7\x5c\x77\xb0\x75\xea\xc4\xb1\xad\x0c\x63\xca\
\x8b\x33\x85\xb1\xa6\x6c\xb2\x6d\x72\x4e\xaa\x3b\xdc\x5e\x05\x52\
\x5e\x51\x95\x87\x2c\x6b\xca\x63\x4c\x8d\x0c\x28\xe5\x81\x50\xf2\
\x6f\xe7\xd0\x0d\x37\x2d\x7f\xd7\xf7\xfd\xb0\x7b\xc3\x4d\x37\x01\
\xcc\xc5\x25\x84\x2a\x5e\x69\x97\x96\xf9\x5c\xda\x5c\x9e\x62\xe0\
\xa9\x38\xbd\xd5\xf6\xea\xcb\x5f\x72\x9b\x17\xf8\xd0\x0c\xe5\x21\
\x0b\xc0\x67\xda\x60\x66\x7c\xdb\x77\x7d\xb7\xf1\x2f\x3e\xf1\xc3\
\x0d\x8c\xc7\xa3\xb3\xe0\x54\x24\xe7\xd5\xd6\xf1\xab\x08\x98\x68\
\x0a\x63\x0a\x4f\x88\xa4\xe9\xc1\x29\x00\xa6\x08\x7c\xf2\x6e\x9d\
\x85\xc5\x5d\x1f\xff\xe9\x9f\x5f\xbc\xe5\xd6\x5b\x89\x99\xc1\x52\
\x66\x4f\xf1\xb9\xf6\xe4\xa9\x0a\x56\xf3\xaf\xdd\x36\x7f\xf0\xb9\
\xd8\x05\x43\x6b\xf0\xa9\xc1\x87\xaa\xef\xc4\xd8\x2f\x28\xa5\xc4\
\xeb\x5e\xff\x7a\xfc\xea\xe2\x52\x6b\x73\x7d\xad\x8b\xfc\x18\x93\
\x83\xf1\x2e\xd6\x21\x38\xf9\x25\x18\xd3\x55\xcd\x9e\xae\x44\x29\
\x6f\x12\x28\xe5\xc5\x98\x92\xa0\x94\x04\xa6\x10\x84\x16\xf4\xad\
\x03\x60\xa1\xd9\x6a\xef\x7e\xcf\x87\xbe\x65\xcf\xdb\xbe\xee\x5d\
\x16\x48\x55\x20\x56\x9f\x56\xf5\x92\xbf\x08\xe0\xb3\x43\x66\x03\
\xaa\x78\x85\x6f\xab\x8c\xce\xbc\xc0\xa7\x96\xdd\xae\x3a\xd9\x6d\
\x0e\x5b\x29\xdc\x8e\x21\x04\xbe\xfe\x1b\xbf\xd5\xfa\x9d\x7f\xf7\
\x2b\x45\xac\xc9\xce\xb0\xa6\x3c\xc6\x54\x64\x82\xa8\xcd\x0f\x57\
\x90\xf9\x41\xe4\xc8\x76\x06\x26\x1b\x1d\x92\x45\x55\x93\x0c\x69\
\x31\x01\x48\xe1\xfd\xc5\x0f\x7c\xf8\x3b\x6f\x78\xe7\x7b\xbf\xbe\
\x41\x44\x08\xa4\x2c\x3f\x45\x5e\x04\xb7\xdb\x65\xd1\x2e\x81\xb6\
\x31\xbd\xcd\x50\x0c\xf0\x6a\x76\xbb\xd5\xe0\x83\x59\x76\xa4\x78\
\x09\x51\x71\x3b\x82\x08\xfd\xc1\x00\x5f\xf7\x86\x57\x6f\x01\x58\
\xc1\xb8\x75\x3c\x2c\x55\x34\x8b\x75\x3c\x4a\xb8\xad\xcd\x0f\x57\
\x26\x73\x9a\xe4\xca\x4b\x96\x1a\x4a\x32\xa6\x64\x7c\x69\x01\xc0\
\xc2\x57\xbc\xe6\xab\x6e\xf9\xba\xf7\xbe\x7f\xf9\xa6\x9b\x6e\x36\
\x58\x77\x8f\xa5\x29\x1a\xc3\xdc\xf3\x7c\x2e\x83\xb8\xcf\xfc\xcd\
\x06\x97\xb3\xf4\x56\x5b\xad\xab\xcd\xd7\x34\x8d\xe0\xcf\x04\x64\
\x17\x83\xfd\x54\x84\x54\x65\x82\x00\xd0\x69\xb7\xf1\xda\xaf\x7e\
\x73\xf3\xd3\x7f\xfd\x97\x45\x52\x5e\x1e\x63\x32\x31\x6e\x7e\xc8\
\x63\x4c\x57\x35\x73\xba\xd2\x18\x53\x9e\x6c\x97\xe7\xbc\xcb\x9a\
\x1c\x92\x4c\x69\x11\xc0\x12\x80\xa5\x9b\x9f\x7b\xfb\x6d\xff\xe4\
\xfb\x7f\xf8\x86\x43\x87\xaf\x37\x83\x20\x50\x4e\xbb\x59\x81\xa8\
\x6c\x79\x9d\x4b\x5c\xbd\x3a\x1f\x80\x2e\x81\xe9\xa0\x96\xde\x6a\
\xe9\xed\x12\x83\x4f\x19\xd6\xb4\xd5\xeb\xe1\x1d\x6f\x7c\xcd\xba\
\x66\x4d\x2b\x9a\x31\x85\xf6\xf1\xd0\x3a\xbe\xa1\x6f\xdd\x1c\xd6\
\x94\x6c\x93\x11\x64\x59\x53\xcd\x98\xae\x2c\xc6\x44\x53\x18\x53\
\xd6\x2a\x9e\x8a\x31\x1d\xbe\xf1\xe6\x5b\x7e\xf0\x13\x3f\xfd\x92\
\x6b\xae\xbb\xce\x0e\x7c\x1f\x23\xcf\x8b\x36\xac\x4e\x13\x06\x71\
\xfa\xb4\xe6\x89\x2b\x4d\x4a\x15\x1d\xa1\xaa\x40\xb4\x93\x0c\xe8\
\x52\xb6\x50\x98\x97\xf4\x56\xb3\x9f\x9a\xfd\xec\x20\x00\x15\xbd\
\x3f\x4c\xb8\x7d\xd9\x2b\x5e\xd9\xbe\xe3\xb3\x7f\xbf\x89\x62\xcb\
\xb8\x89\xe9\x71\x26\xa1\x01\x09\x35\x6b\xba\xf2\x18\x53\xb2\xaf\
\x52\x1e\x5b\x4a\x1a\x1c\x92\x36\xf0\x30\x96\xb4\xf4\xd1\x7f\xfa\
\x3d\x5f\xf7\xcd\xdf\xfa\xe1\xeb\xfc\x20\x88\xab\x35\x24\x96\x84\
\x81\x94\x08\x74\xe2\xec\xc8\xf3\x0b\x4e\x5f\x86\xe7\x07\xb9\xfb\
\x49\x00\x02\x66\x48\xc9\xd1\x76\x4a\x4f\x1e\x15\x8b\x9a\x4e\xea\
\xec\x4b\x13\x96\xba\x17\xd7\x7c\x70\x91\xa5\xb7\x79\xb1\x9f\xe2\
\xf9\xfb\x59\xcd\x7e\x2e\x0f\x00\x9a\x3d\xf6\x93\x7f\xfe\x6e\xfb\
\xa8\x14\x7e\x31\x21\x04\xce\x9c\x39\x83\x0f\xbe\xe3\xad\x21\x63\
\x3a\x97\x60\x4e\xab\x19\xd6\x94\xec\x70\x1b\xb2\xa6\xb0\x35\xbb\
\x97\x61\x4d\x61\x8c\xe9\xaa\x04\xa6\x2b\x85\x31\x4d\xea\x52\x9b\
\xc7\x9a\x2c\x14\x98\x22\x86\xc3\x01\x1c\xdb\x82\x19\x88\xca\xac\
\x25\x29\xad\xa5\xcf\x27\x4a\x5d\x1b\x32\x02\xa6\xa0\x1a\xe0\x84\
\xc0\x26\x25\xfc\x40\x16\x00\x63\xbc\xcc\xf2\x3c\x7f\x4c\x8e\x0b\
\x01\x49\x4a\x09\xc9\x09\x70\x4c\xae\x04\xa7\x3e\x30\xfe\x60\xf2\
\x9a\x2d\xca\xe4\x22\xae\x30\x99\x5e\x34\x09\xee\x2a\xb4\x5d\x5f\
\xc5\xf2\xdb\xac\x00\x54\x78\x9d\x49\x89\x6b\xaf\xb9\x06\xd7\x1d\
\x3a\xdc\x3e\x71\xf4\xc8\x06\xd2\xb1\xeb\x3c\xab\xb8\x81\x72\xce\
\xbc\xda\x2e\x7e\xa5\xb2\xc1\x09\xe0\x54\x98\xcb\xd4\xef\xf5\xa1\
\x9a\x9a\x67\x4e\x5e\x46\xfc\x68\x01\x48\x29\x2c\x62\xc5\x8c\xf2\
\xc0\x46\xff\xcf\x20\x82\x21\x00\xdb\x34\x26\x5e\x04\x54\x8d\xc2\
\x8c\x3d\xcb\xa9\xa2\xc5\xe9\x21\x99\xc1\x92\xe1\xcb\x20\x21\x33\
\x52\xc9\x1e\x45\x84\x20\x90\xf0\x83\x00\x23\xdf\x1f\x4f\x0d\x0c\
\xff\xc1\x8c\x91\x1f\x8c\x6d\x53\x1d\x1f\x20\x90\xaa\x42\x86\x9f\
\xd7\x24\x91\xa7\x7d\x63\x1e\xbf\x6a\x73\x8e\x13\x71\xf1\x01\x62\
\x94\x53\x32\x77\x16\x84\x26\xbf\xa1\x96\xdf\xe6\x2b\xbf\xcd\x0a\
\x40\x93\x06\x33\xe3\x1f\x7d\xec\x07\xdc\x1f\xff\x81\xef\x29\x4a\
\xae\xb5\x90\x6e\xb1\x93\x95\xf0\x04\xc6\xeb\xe5\x5d\xd5\xe3\x4a\
\x8f\x31\x65\x2b\x3f\xe4\x19\x23\x52\xf1\xa6\xcd\xcd\x8d\xe9\xd3\
\x33\x03\x5c\xf1\xa2\xe7\x90\x31\x50\x66\xee\x0d\xc1\x2c\xe7\x62\
\xe1\x9c\x49\x3a\xf5\x4c\x01\x72\x71\x09\x49\xc4\x20\x01\x08\xc0\
\x82\x51\x3c\xa9\xcf\xb4\xa0\xa7\x2c\x36\xe5\x7e\x37\xca\x65\x8e\
\x15\xe4\x3d\x82\x06\x47\xc5\x1c\x39\x87\xa7\x31\x6b\xb9\x95\xc6\
\xf7\x31\x09\x8c\x41\x20\xe3\xdf\x67\x1a\x37\x24\x4c\x5f\xc8\x72\
\xfa\x58\x70\x19\x25\x8f\x2e\x15\x08\x25\xf6\xf4\x72\x92\xdf\xe6\
\x0a\x40\xdb\x07\x9f\x49\xe7\xa7\x94\x12\xaf\x7a\xd5\xab\x69\x61\
\x69\xa9\xb5\xb1\xb6\xb6\x8e\xfc\x1c\x26\x0b\x93\xf3\x98\xb2\xac\
\x09\x57\x33\x6b\xba\x52\x2b\x3f\x60\x02\x38\x4d\xca\x71\xb2\x8f\
\x3c\xfd\xf4\x28\x9a\xd5\xe8\xd9\xb2\x80\xe1\x02\x4e\x91\x66\x7c\
\xe9\x97\xa8\x07\x92\xe0\x97\x85\x37\x2e\xa0\x13\x93\x59\x08\xc7\
\x93\x94\x3e\x84\x94\x9b\xc1\x9f\x60\x8e\x96\x31\xc3\x84\x5b\xee\
\xb7\x99\x24\xd1\x2b\x60\xcc\x32\x36\x9e\xf8\x39\x94\x03\x8e\x41\
\x20\x31\xf2\x7d\x70\x0e\xcb\x63\x28\x70\xa4\x3c\xe0\xd7\x09\xda\
\xe1\x3e\x70\xe9\x99\x93\xc7\x4a\x51\x13\x17\xcd\x60\x54\x6e\x6e\
\xae\x0c\x02\x97\x86\x05\x5d\x4a\x00\x9a\xf4\xa8\x10\x02\x1f\xfd\
\xee\x1f\x58\xf8\xa5\x9f\xf9\xf1\x73\x39\xf2\x5d\x96\x2d\xd5\xa0\
\x74\x95\x4a\x79\x79\xa0\x54\x54\x33\x2f\x65\x94\x18\x0e\x87\xa9\
\x79\xb7\x58\x0c\x63\xcc\x4f\xd4\x2e\x7f\xd5\x54\xfd\xd4\xc9\xe0\
\x54\x65\xdb\x65\xdf\x4c\x95\xf7\x8c\x33\xe8\x98\x12\x92\x0a\x27\
\x5c\x2e\x35\x37\x16\x5b\xea\x19\x06\x09\x18\x42\xc0\x32\x27\x68\
\x88\x25\x7e\x9c\xc8\x42\x45\x45\xe0\x38\xbe\x4f\xe1\xba\x47\x4a\
\x2e\x8c\xf5\x4d\x96\xf6\xd4\x3d\x15\x6f\x0c\x40\x20\x8c\x3c\xaf\
\x30\x1c\x38\xf2\xfd\x9c\x63\x13\xc6\x2c\x27\x48\xaa\x39\x98\xc1\
\xc9\xe3\xc4\xe5\x4f\x7c\xa2\xa2\xb7\x30\x88\x2b\xa6\x60\xcc\x49\
\x86\xab\xc4\xd2\x27\x6c\x23\x08\x02\xbc\xe9\xad\x6f\x35\xfe\xd5\
\xcf\xfd\x94\x23\x83\x20\xcb\x92\xf2\xda\x5e\x4c\x8b\x2f\xd5\x52\
\xde\x15\xce\x9a\x92\xa0\x34\xb5\x61\xe0\xa0\xdf\x17\xf1\x4c\xc2\
\x73\x3e\x47\x68\xdb\xaf\xa1\x8b\xba\x2f\xf3\x02\x47\x1e\x63\x4d\
\x93\xb6\x91\x80\xac\x52\x60\xc8\x53\xbf\x11\x97\x7a\x9c\x27\xbd\
\x9c\xb8\x30\xd6\xc4\x39\x00\x94\x04\xa9\x3c\x77\x24\xe9\x79\xd8\
\x30\x48\x05\x3c\x4d\xb3\xf8\x97\xa1\xa9\xbc\x65\xea\xcf\xac\x98\
\x23\x15\xb2\x4a\x29\x65\xaa\x9a\x49\xd9\xf3\x86\x22\x49\x35\xd0\
\x92\x6a\xd1\x32\x40\x33\xc7\x1c\x70\x44\x86\x39\x46\x98\x47\x53\
\x4e\xc2\xca\x84\x22\x07\xfc\xc6\x24\x03\xaa\x98\x56\x10\x9f\x03\
\x8e\x6d\xe1\x1b\xbe\xf9\x23\xfb\x7e\xff\x3f\xfe\xd6\xf9\x09\xa0\
\x94\x67\x13\xaf\x63\x4c\x57\x21\x63\x02\x26\x77\xb3\x4d\x31\xa7\
\x73\x2b\x67\x7d\x46\x09\x19\x6f\x86\x38\xd3\xce\x83\xcd\x9c\x57\
\x86\x05\xf2\xdf\xfc\x94\xc7\x9c\xed\x25\xc0\x86\xca\x6e\x0b\x65\
\x01\x6a\xfa\x21\xe2\x22\x11\x65\x5b\xbf\x77\xfe\x9e\xa5\xe2\x5a\
\x09\x9e\xce\x63\xa8\x92\x37\x1f\x72\x01\x86\x66\x38\x15\x17\x83\
\x63\x24\x43\x85\xcc\xb1\xb4\xa7\xa3\xba\xf9\x83\xa7\x90\x51\x29\
\x55\x45\x95\x28\xde\x57\xe1\x22\x21\x50\xc4\x1c\x8b\x9c\xaa\xe1\
\xc8\x7b\x3e\x64\xd5\x81\x94\xc5\xcc\x31\xe7\xe7\xcc\x44\x82\x11\
\x04\x12\x1f\xf8\xa6\x6f\x76\x7f\xff\x3f\xfe\x96\x39\x23\x28\xd5\
\x8c\xe9\x0a\x07\xa6\x69\xb2\x5e\x11\x73\x32\x99\xd9\x20\x50\x32\
\xfa\x72\x89\xf9\xc9\x1c\x3e\x97\x26\x4c\x2b\x34\x85\x5c\x14\x20\
\x04\xef\xe4\x77\x1a\xd3\x1f\x4b\x1c\xc1\x1c\x80\xda\xf9\xe3\x3e\
\x89\x85\x94\x0b\x51\x4e\xc2\xe8\xa9\x87\x85\xe6\xb2\xab\xb1\xbf\
\x91\x27\xf0\x85\xd4\x71\xe5\xc9\xfc\x8d\x0b\xde\x47\xc5\xcb\x22\
\x43\xa8\x27\x2d\xd3\x28\x87\x74\x98\xcd\x2c\xc2\x28\x6e\x4b\x23\
\xb3\xf9\x85\x13\x3e\x24\x2f\x57\x2a\x08\x02\x5c\xb3\x77\x17\xde\
\xf1\x9e\xf7\x1d\xfc\x93\xff\xf6\x87\xab\x25\x00\x69\x52\x17\xdb\
\xab\x1a\x9c\xae\x74\x60\x22\x4c\x6e\xb3\x3e\xc6\x9e\x3c\xcf\x53\
\x49\xc7\xa5\x42\x8f\x17\x5f\xea\xab\xf2\x89\x13\x41\x89\x4a\xec\
\x02\x6f\x4b\x68\x9b\xbc\xc3\x11\x03\x29\x46\x3e\xa6\xec\xca\xb4\
\xe4\x4c\x8f\x1d\x02\xa9\x39\xb2\xe4\x6d\xa3\x49\x89\xf7\xcc\x42\
\x78\x0b\x5f\x32\x6f\xb2\x9c\xb7\x51\x4e\x83\x58\xf2\x89\xb1\xef\
\x91\xb7\x74\x2c\x04\x2c\x4e\xb1\xab\x22\x65\x2f\x34\xe3\x84\xb2\
\x6a\xd5\x42\xb1\x04\x0b\x86\x69\x62\xef\xbe\xbd\x56\x0e\x28\xe5\
\x81\x13\x15\xa8\x3b\x57\xfd\x10\x57\x38\x28\x4d\x02\xa8\x5c\x70\
\x92\x52\x0a\x29\xa5\x3a\x81\xe7\x49\xb0\x69\x5b\x9d\x01\xa7\x4f\
\xc2\x33\x83\xd2\x84\x2f\x59\x98\xe6\xc7\x95\x77\x8a\x8b\x2d\x0c\
\xc5\xdb\x1b\x8b\xaf\x33\x2a\xc5\x15\x38\xfd\x16\x9e\xb2\x05\x9e\
\x37\xc5\xe5\xb2\xc7\xa6\xc4\x61\xcd\x7b\x09\x4f\x7f\x55\xa5\x9f\
\x6e\xe2\x2f\x35\xe3\x09\x39\xf5\x21\xae\x7c\x6e\x6f\xe3\xb2\x18\
\x5f\x68\x70\xf1\x89\x13\xfd\xc7\xe1\x0d\xd1\xad\xe8\x7b\x31\x33\
\xee\xfa\xe2\x17\x06\x53\x58\x52\x91\x1b\xaf\x06\xa7\xab\x00\x98\
\x66\x05\x28\x31\x1a\x8d\xb4\x26\x4f\xe3\xff\x11\x55\x06\x29\xba\
\x28\x78\xc4\x39\xa0\xb4\x5d\xa2\x39\xdb\x4e\x72\x21\xc0\xf0\x04\
\xe0\xe1\x89\xe0\xc2\x93\xa7\xdb\x6d\x81\x14\x57\x99\xc0\xb9\xe4\
\xc4\x8a\x79\x79\x7d\x2f\x23\xc7\x30\xcf\x6f\x2f\x77\xe4\xf5\x33\
\xbe\x88\xe7\x78\x28\x98\x19\xa7\x4e\x9e\x0a\x50\x2e\x8e\x44\x93\
\x57\x86\x57\x2f\x40\x5d\xa9\xc0\x44\x05\x33\x6d\x99\x9b\xf0\xb4\
\xb5\xb6\x58\xed\x8a\xff\xbb\xa4\x5f\x8e\x2e\xf6\x61\x2c\xcb\x75\
\xb8\xf2\x15\xce\x25\x67\x3e\x4e\xbd\x76\xc6\x49\x7b\xda\x5b\xe7\
\x89\x05\x35\x6b\x2a\x29\x89\x57\xfd\x1d\xf8\xb2\x83\x73\x22\x82\
\xef\xfb\x38\xb7\x72\xd6\xab\xd9\x51\x0d\x4c\xb3\x9c\x97\x34\x09\
\xb0\x98\x79\x3b\xd3\x5e\xe9\xf9\x7d\x16\x80\xa1\x31\x42\x73\x29\
\x8d\x3c\x5c\xf8\xcf\xd2\xac\xa9\x2a\x38\xf1\xd4\x69\x77\x36\x16\
\x35\x4d\xe7\xbb\xcc\x58\x13\x57\x7c\x1f\xcf\xeb\x12\xda\x31\xd6\
\xc4\x17\xe7\xca\x2f\xf5\x7b\x56\x3f\xdf\xc3\x7f\x4b\x29\xe1\x79\
\x1e\x23\x3f\x8f\x92\x6a\x70\xba\xba\x80\x69\xae\x0b\xa4\x23\xcf\
\x3c\x13\x85\x8f\xab\xce\x59\x65\x91\x69\xdb\x3d\x8f\xa6\xbd\x87\
\xcb\xae\xca\x19\x3b\xb3\xbe\xe4\x99\xc1\x69\xea\xb2\x60\x4c\xde\
\xe3\x1d\xfc\x1e\x97\x0b\x6b\xe2\xf9\x9e\xfd\xbc\x8d\x97\xcc\xc2\
\x80\x78\xfb\xc7\xae\x34\x3c\x4f\xcd\xfd\xdd\x99\xe5\x02\x11\xa1\
\xbb\xb5\x85\x09\xe0\x53\x83\xd3\x55\xce\x98\x0a\xd6\x33\xe5\xce\
\xcc\x6e\xb7\x9b\x98\x00\xd3\x93\xde\x3c\xa6\xc0\xca\x45\x41\x2b\
\x5e\x60\x5c\xe6\x5f\xbc\x0d\xfa\x30\x69\xe1\x38\x4d\x67\x9a\x06\
\x4e\x63\x00\x35\x9d\xf1\xcc\xff\x17\xba\x74\xac\x69\xe6\xd7\x5e\
\x26\x92\x5e\x55\xf5\xad\x2a\x6b\x9a\x4f\x84\x68\x07\x59\x53\xfa\
\xa2\xae\x0a\x3e\x35\x38\x5d\x05\xc0\x94\x47\x09\xf2\xee\x8f\xdd\
\x5c\xb7\x51\x30\x67\xc7\x36\x1e\xca\xac\x94\x72\xfc\xac\x25\x11\
\x8a\xaa\x5f\xf4\x5c\xf2\xb3\xb8\x04\x38\x6d\x7b\x25\xcb\x53\x56\
\xb9\x15\xc1\x69\x0c\xa0\xb8\x34\x40\x8d\xc3\xd2\xe5\xc3\xa2\xb8\
\x2a\x2a\x94\x64\x4d\x97\xaf\xa4\xc7\xdb\xfd\x84\xb9\x30\xc2\x4a\
\xcb\x05\xc6\xb6\x8e\x0e\x11\xb0\xbe\xbe\x51\x74\x51\xcf\xd9\x77\
\x5b\x03\xd3\xb3\x15\x84\xf2\x58\xd2\x54\x50\x02\xc0\x8f\x3d\xf6\
\x68\x79\xf6\x43\x61\x6a\x21\xe5\xb7\xbb\x28\xaa\xff\x45\x93\x76\
\xbb\xc4\x17\xe4\xc9\xe0\x90\x7a\x5d\xce\x67\x70\xde\x53\x65\xc8\
\x46\xd9\x79\xaa\x02\x38\x71\x29\xc0\xa9\x00\x50\x63\x20\xb5\x43\
\x2c\x8a\x2b\xae\xf8\xaf\x34\x49\x0f\x3b\xf1\x79\x73\x64\x4d\x33\
\x80\xd3\xb6\x58\x13\x11\xd6\x37\x36\x6a\xf6\x53\x03\x53\xe1\xd9\
\x52\xc4\x92\x8a\xa6\x61\xa9\x6f\x0c\x40\x3e\xf6\xc8\x23\x12\xa0\
\xb1\xdc\x05\x0e\x27\xa2\xc4\xf2\x37\xbf\x7a\x75\x85\x9c\x25\xe6\
\x1c\xb4\x99\x3e\x91\x8e\x03\x54\xf1\x24\xc7\x3c\x1d\xa0\x18\x05\
\xa1\xa7\x49\xbb\xc3\x53\xd6\xc8\x19\x70\xe2\x09\x5f\x82\x4b\x9b\
\x1e\xb8\x9c\xc0\x54\x00\x52\x97\x92\x45\x5d\x71\x92\xde\x65\xc5\
\x9a\x2e\x9d\xa4\x97\xbc\xfc\x9e\x7e\xfa\xa9\xa2\x1d\xe2\x39\xff\
\xec\x35\x30\x5d\x01\x0c\x2a\x0f\x80\x0a\xff\x4d\x84\xc4\x3a\x3b\
\xfd\x1f\x22\xb0\xe2\x08\x94\x92\xf7\x4b\xe1\x51\x18\x1b\xc9\xc4\
\x47\xb2\x20\x98\x43\x8d\x8a\xbf\x60\x4e\x3c\xac\x10\xa0\x18\x85\
\x68\x53\xd9\xec\x51\x01\x9c\xa6\x4d\x70\xbc\x13\x00\x85\x1d\x06\
\xa8\x1d\x62\x4d\xa8\xc8\x9a\x2e\x99\xa4\x37\xcb\xfb\xe6\x60\x1f\
\xe7\x8a\x1f\x5f\x55\xd2\x9b\x35\xb6\x76\xf7\x9d\x77\x4e\x53\x6d\
\xea\x51\x62\x5c\x89\x25\x89\xf2\xe6\xd6\x89\x0c\x29\x7b\xdb\xd8\
\xd8\x90\xcc\x2c\xf2\xd2\xc2\xc3\x22\x9f\x51\xd5\xa2\xb0\xe7\x10\
\x8d\x17\xd7\x61\x5d\xc3\x86\x08\x30\x84\x00\x88\x22\x10\x2b\x2a\
\xaa\x90\x04\xb8\x10\x3f\x54\x28\xaa\x64\x0d\xed\x29\xaf\xcf\xed\
\xbf\x44\xc5\x3d\x88\x4a\xf1\xc1\x54\xc1\xb7\xb8\x80\x4c\x7e\xb9\
\xbb\xb8\x5a\x59\x6e\x58\x8e\x90\xea\x1f\x4c\xd3\x26\x28\x2a\x28\
\x37\x33\xf5\x7d\xe1\x7b\x2e\x5e\x65\xbd\xe8\x50\x95\xac\x15\x34\
\xb9\x8e\x1e\xe7\xfe\xb6\xd3\xeb\xee\xcd\x5e\xfc\xb0\xe4\x6e\x94\
\xdb\x64\x71\xfd\xde\xd2\xfb\x39\xe1\x08\xe4\xbe\xa7\x52\x0b\x9b\
\x19\xeb\x6d\x3d\xf3\xf4\xd3\x93\xe6\x9f\x49\xb2\x48\x0d\x5a\x57\
\x30\x30\xf1\x14\xb6\x54\x04\x50\x12\x40\x10\xde\x4e\x1e\x3f\x1e\
\x30\xc3\x2c\x94\xe9\x52\x6d\x59\x75\xc3\xbd\xc4\x6b\xa3\xb8\x13\
\x11\x18\x8c\x5e\xaf\x87\xd5\xd5\x55\x30\x33\x5c\xd7\x85\xe3\x38\
\x30\x2d\x4b\x25\x38\x08\x03\x24\x48\xdf\x17\x30\x4d\x13\x42\x21\
\x5d\xaa\x97\xd0\x78\x5f\x21\x4e\xaf\xee\x92\xf5\xfd\x92\x5d\x70\
\x23\x9a\x44\x93\x97\x93\x85\xe6\x8d\xe2\xca\x63\xd3\x7a\x37\x15\
\x6e\x36\x02\xa8\x9c\xd6\x0d\xa9\x8f\x2e\x00\xb1\xa9\x80\x56\x1e\
\xa4\x38\x55\xe0\x62\x46\x90\x1a\xab\xa1\xb7\xad\xce\x56\x33\xbf\
\x76\xdb\x40\x33\xf5\x3d\x79\x0d\x4c\xca\x80\x53\x79\x30\xdc\x7e\
\x6d\xda\x59\x8f\x58\xce\x96\x4a\x15\xe2\x4d\xd4\x26\x94\x8c\xc7\
\x1f\x7b\x54\x62\x72\x0c\x3b\x8f\xae\xd7\xac\xea\x2a\x60\x4c\x65\
\x00\x6a\xe2\xad\xdf\xeb\x49\x66\xd5\xc0\x6d\x9a\x36\x10\x4d\xad\
\xe1\x2a\x4e\x32\x3c\xdf\x87\xe7\x07\xe8\x6e\xf5\xe0\x07\x12\x1b\
\x1b\x1b\x78\xf8\xe1\x87\x71\xec\xc8\xd3\xd8\x5c\x5b\xc5\xc6\xfa\
\x2a\x86\x83\x01\x2e\x9c\x5b\x41\x10\x04\x60\x66\x18\x86\x01\xb7\
\xd1\x40\xbb\xd3\x81\x6d\xdb\xb0\x6d\x07\xa6\x65\xa2\xd1\x68\x42\
\x08\x81\x85\xc5\x45\xd8\xb6\x83\x46\xa3\x81\x46\xb3\x89\xbd\x7b\
\xf7\xa2\xd1\x68\xc0\x76\xd4\x63\xbb\x76\xed\x42\x10\x04\xb0\x2c\
\x0b\x82\x08\x7e\x10\x40\x4a\xa9\x80\xd0\xb6\x61\x9a\x26\x98\x19\
\xc2\x10\xba\x41\x1c\xc1\x34\x4d\x18\x42\x80\x44\x0c\x84\x61\x5d\
\x75\x4a\xb9\x34\x38\x47\xea\x28\x60\x59\x1c\x4a\x6c\x94\xf3\x4e\
\xae\x32\x6d\xa5\x28\x40\x69\x80\xca\x80\xd4\xd4\xae\x45\x85\x55\
\xc9\x2b\x36\xd1\xa8\x3a\xcb\x6f\xfb\xf5\x25\xa6\xe5\x12\x15\x59\
\xab\x4f\xe3\xb3\xbe\xa3\xfc\xfb\xa6\xee\xdd\x78\xed\xd7\xe9\xe0\
\x54\xaa\x9d\xca\xec\xe0\x44\xa4\xda\x66\x6c\xac\xad\x4f\x03\xa6\
\x32\xb1\xf0\xab\x1e\x9c\xae\x54\x29\xaf\x88\x32\xcb\x12\xe0\x14\
\x9c\x3d\x7b\xc6\x0b\x64\xd0\x28\x8a\x1b\x25\x27\x5c\xcf\x0f\x20\
\x99\xb1\xb9\x35\x80\xef\x07\x90\x2c\x31\x18\x79\x60\x19\xc7\x40\
\x2c\xa7\x81\x17\xbf\xf4\x4b\xf1\xe2\x97\xbe\x0c\x52\x4a\x0c\x06\
\x03\x6c\x6e\x6c\x60\x65\xe5\x2c\x8e\x3e\xf3\x14\xee\xbb\xf3\x8b\
\x58\xbb\x70\x0e\xab\x17\x4e\xa2\xd7\xdb\x82\x94\x32\x36\x58\xe4\
\x39\xfd\x32\x8f\x13\x11\x84\x10\x90\x52\x42\x08\x02\x91\x92\x0d\
\x05\x11\x1c\xd7\x85\x6d\x3b\xb0\x1d\x1b\x41\x10\xc0\x34\x0c\x90\
\x10\x10\x42\xc0\x71\x5d\xb4\xdb\x0a\x08\x1d\xd7\x85\x69\x9a\x68\
\xb5\x5a\xb0\x2c\x1b\xcb\xbb\x77\x69\x20\x74\xb1\xb4\xb4\x0c\xdb\
\xb6\xd1\x68\x36\xd5\xdf\x14\x10\x9a\x10\x24\xe0\x07\x3e\xa4\x64\
\x34\x5c\x17\xb6\x6d\xc5\x40\x28\x0c\x10\x11\x0c\x43\xc0\x34\x4c\
\x85\xe1\x1a\x18\xc3\x16\xeb\x31\xae\x53\xe1\x3a\xbd\x38\xec\xc0\
\x69\x26\xb6\xdd\x50\x08\xcd\x3e\x75\x57\x66\x42\x3b\x2d\xe9\xcd\
\x32\xfd\xef\x80\xa4\xb7\xbd\x83\x76\x19\x80\x13\xca\x24\x20\x11\
\x46\xfe\x08\x1b\x1b\xeb\x41\xce\x9c\x52\x86\x41\x4d\x5a\x6a\xd5\
\xc0\x74\x05\x81\x13\x4f\x01\xa7\x3c\x80\x0a\x00\x48\xd2\x1a\x12\
\x6b\x77\x02\x03\x7a\xc2\x27\x0c\x86\x1e\xfa\x43\x4f\xcf\x81\x8c\
\xfe\x60\x84\x40\xf7\x71\x09\x15\x34\xd3\x34\xf3\x83\xfe\x0c\x18\
\x86\x01\xdb\xb6\xb1\xb0\xb0\x80\xe7\x1c\x3c\x88\x97\x7e\xe9\xcb\
\xf0\x8e\x77\xbf\x0f\xc3\xd1\x10\x9b\x1b\x1b\x38\x75\xf2\x24\x2e\
\x9c\x3f\x87\x07\xef\xbd\x0b\xeb\xab\xab\x38\x79\xec\x08\x36\x37\
\xd6\x75\x6c\x4a\xc6\xbc\x21\x01\x56\xaa\xc1\x5a\x00\x00\x08\x82\
\xf0\x6b\xa9\x31\x1a\x0d\x31\xd1\x97\xc1\xd3\x2d\x04\x49\x60\x0c\
\x2d\xf1\xc2\x30\xc0\x52\xaa\x7f\x0b\x11\x3d\xae\xa4\x4a\x17\xb6\
\x63\x43\x06\x01\x0c\xd3\x84\x10\x02\x86\x61\x60\x71\x71\x09\xa6\
\x65\x45\x40\x68\x59\x16\x96\x96\x96\xd1\xee\x74\x60\xe9\xc7\xdd\
\x46\x03\x4b\xcb\xcb\xb0\x2d\x1b\x8d\x66\x43\x01\xa1\xdb\xc0\xf2\
\xae\x65\x05\x84\x7a\x7b\xbe\x1f\x80\x59\x31\x42\xcb\x8a\x81\xd0\
\xd0\x8c\x50\x08\x43\x81\x70\x06\xc0\xf3\x65\xd1\xf1\xf9\x80\x27\
\xb8\xdb\x78\xf6\x92\x08\xdb\x3a\xa1\x77\x32\xde\x54\x0d\x9c\x2e\
\xb6\xa4\x37\x6b\x5c\x6c\x4e\xe0\x54\xa6\xdd\x09\x01\xc3\xc1\x10\
\x28\x36\x55\x95\x95\xf7\x6a\x29\xef\x0a\x03\xa6\x32\xa6\x87\x22\
\xf3\x43\x72\x95\x13\x90\xa0\x20\x9c\xae\x85\x21\xc0\xcc\xb8\xfb\
\xfe\x87\x20\x19\x68\x77\x16\xd0\x6a\xb6\x60\xdb\x16\x98\x01\x61\
\x9a\x10\xa9\xb2\xf8\x9c\xe8\x0b\x43\x53\x27\x30\x86\xea\x20\xda\
\x6c\x34\xd0\x6c\x36\x71\xcd\x35\xd7\x00\x44\x78\xe3\x9b\xde\x02\
\x66\xc6\xca\xca\x0a\xce\x9c\x3e\x8d\x73\x2b\x67\x70\xf7\x17\x3f\
\x87\xee\xc6\x06\x4e\x1e\x3f\x82\xee\xc6\x06\xa4\x0c\x12\x80\x48\
\x05\x5d\x4a\x69\xb2\x14\x41\x15\x4b\xd1\x6a\x99\x2c\xf0\x7d\x10\
\x11\x24\x4b\x40\x83\x22\x11\x61\x34\x1c\x02\x58\xdf\xf6\x8f\x99\
\x04\x93\x34\x23\x8c\x41\x90\x84\x50\x40\xa8\xe3\x76\x81\x9f\x01\
\xc2\xa5\xa5\x08\xf0\x22\x20\x5c\x4e\x02\xa1\x83\x86\xeb\x62\x69\
\x79\x19\x96\x6d\xc3\xb6\x6d\x34\x1b\x0d\xb8\xae\x8b\xe5\xe5\xe5\
\x58\x1a\x15\x02\xbe\xef\x47\xd2\xa8\x6d\x59\x30\x0c\x03\x22\x04\
\x3e\x20\xfa\xcc\x68\xdf\x92\xe7\xc0\x1c\x80\x90\xb0\x0d\x62\xb8\
\xbd\xb6\x4e\xdb\x62\x32\x17\x13\x9c\x26\xf4\x09\xbe\x28\xe0\xa4\
\x5b\xd3\x4f\x75\xfd\xa2\x42\x22\x46\x0d\x4c\x57\x3e\x6b\x92\x98\
\xec\xc6\x0b\xcd\x0f\x32\x08\x82\x00\x0c\x9c\x5d\x39\x8f\x23\xc7\
\x8e\xe1\xa9\xa7\x9f\xc6\x13\x4f\x3e\x8d\x40\x4a\xd8\xb6\x8d\xdd\
\x7b\xf6\xc2\xd1\xb1\x9d\xeb\xaf\xbf\x01\x8b\x0b\x1d\x2c\x74\x16\
\x60\x59\x56\x34\x21\xa9\x56\xd1\x72\x6c\xc2\x29\x5e\xad\x73\x5a\
\xd8\x06\x41\x08\xc2\x81\x03\xfb\x71\xcd\x35\x07\x00\x10\xde\xf8\
\xe6\xb7\x00\xcc\x58\x59\x39\x87\xf3\xe7\xce\xe1\xc4\xf1\x63\x78\
\xfc\x91\x87\xf0\xcc\x93\x8f\x61\x7d\xf5\x02\x7a\xdd\x4d\xf4\xfb\
\xfd\xc8\x88\x41\x19\x03\xc5\xf6\xd1\x22\x01\xb6\x63\x13\xef\x38\
\xbb\xca\x68\x8f\xb3\x17\x5e\x4a\x31\xc2\x20\xf5\xdc\x68\x38\x04\
\xaf\xad\x55\x38\x29\xd2\xd2\x5f\xba\x71\x9c\xfa\x97\x92\x1e\x0d\
\xc8\x0c\x23\x14\x44\x70\x1b\x8a\xc5\x99\x96\x05\xd3\x54\xa0\x05\
\x28\x26\xbc\xb4\xbc\x04\xcb\xb2\x61\xd9\x36\x5c\xd7\x45\xa3\xd1\
\xc0\xf2\xae\x5d\x70\xdd\x46\xc4\x14\x1b\x8d\x06\x96\x96\x96\x74\
\x1c\xd1\x46\xa3\xd1\x44\xa3\x11\x03\xa1\x6d\xdb\x30\x0c\x23\x02\
\x42\xdb\xb6\x61\x99\x26\x0c\xc3\x88\x80\x0f\x08\x8d\x32\x46\xe2\
\xf7\x48\x03\x62\xd1\x11\x67\xc4\x29\x0e\x2a\x9e\x98\x76\x40\x46\
\xc7\x27\x3f\xb4\x88\x39\x9e\x4d\x3b\xc6\x9c\x76\x4c\xd6\x2b\xd7\
\x28\x52\x4e\x98\x6b\x18\xe5\xe3\x4f\x57\x35\x40\x51\x99\xfc\x9b\
\xcb\xfe\x4b\xc4\xb3\x6f\x58\x66\xde\x04\x60\x01\x70\xf4\xcd\x05\
\xd0\x04\xd0\x02\xd0\x06\xd0\x01\xb0\x00\x60\x49\xdf\x76\x01\xd8\
\x0d\x60\x0f\x80\xbd\x00\xf6\xdd\xfe\x25\x2f\xb9\x66\x69\xdf\x01\
\x71\x6e\xe5\x2c\x82\x20\xc0\x81\xeb\x0e\xa2\xdd\xe9\x24\x9a\x86\
\x71\x3c\x41\x58\x16\xf6\xec\xd9\xab\x8c\x08\x6e\x03\xd7\x5f\x7f\
\x3d\xf6\xed\xdd\x8b\x85\x4e\x7b\x6c\x82\x95\x92\x73\x26\xfb\x6a\
\xe8\x90\x5e\x95\x13\xa4\x0c\x30\x1c\x0e\x71\xf6\xec\x0a\x9e\x7a\
\xe2\x71\x9c\x38\x76\x04\x8f\x3e\x78\x3f\x56\x4e\x9f\xc4\xd6\x56\
\x17\xc3\xc1\x20\x9a\xd0\xb3\xb2\xd6\x2c\x2c\xa6\x2a\x98\x61\xa7\
\x1a\x84\x4c\x00\x5d\xda\xe6\xfc\x18\x45\xbd\x99\x27\xbf\xa6\x2c\
\x08\x22\x1f\x0c\x93\xd2\xa8\x94\x32\x76\x64\xea\xe7\x6c\xc7\x51\
\xe0\x64\x29\xd6\x17\x01\xa1\x69\x60\x69\x49\x31\x3d\xc7\x71\xe0\
\x38\x0e\x16\x16\x16\xd1\x59\x58\x80\xeb\xba\x30\x2d\x13\xb6\x65\
\x63\x69\x79\x19\x9d\x4e\x47\xc5\x14\x1d\x07\x9d\x4e\x07\xae\xeb\
\xa2\xd3\xe9\x68\xe0\xb3\x60\x08\x43\xc7\x08\x25\x6c\xcb\x86\x69\
\x99\x30\x44\x1a\x08\x0d\x43\x33\xc2\x64\x4c\x30\x11\x2b\x9c\xba\
\xdc\xe2\x7c\xb4\xe3\x89\xd3\x6f\xc5\xe4\xf5\xa9\x2d\xc4\x68\xc2\
\x82\x6b\xea\x89\x36\xf1\xf5\x86\x61\xe0\x91\x47\x1f\xc3\x57\xbf\
\xee\x35\xab\x00\xce\xea\xdb\x0a\x80\xf3\x00\x2e\x00\x58\x05\xb0\
\xa6\xe5\x84\x0d\x00\x5d\x00\x5b\xfa\xd6\x07\x30\x00\x30\xd2\x37\
\x5f\xdf\x24\x5f\x09\x13\x74\xcd\x98\x72\x57\x1c\x65\x1d\x79\x41\
\xf2\xf6\xe8\x43\xf7\xfb\x37\x82\xec\x50\x46\x12\x86\x18\x9b\x4c\
\xc2\xe1\x7b\x1e\x4e\x9d\x3c\x11\x81\xd5\x23\x0f\x3f\x88\x76\x67\
\x01\x7b\xf6\xec\x05\xc0\x11\xb3\xda\xb7\x77\x0f\x3a\xed\x76\xea\
\x62\xce\x82\x55\xb9\xb9\x3f\x96\x0e\xc3\xfd\x71\x5d\x17\x87\x0f\
\x1f\xc2\xf5\xd7\x1f\x56\x12\x9b\x36\x59\x9c\x3d\xbb\x82\x8d\xf5\
\x35\x3c\x70\xdf\x3d\x78\xe0\x9e\x3b\xb1\x72\xfa\x14\x7c\xcf\xc3\
\xe6\xc6\x7a\x8a\x7d\x50\xa1\x14\xb8\x8d\x99\x7e\xa7\x40\x29\x07\
\x90\xe6\xde\xe0\x9e\x68\xe2\x0f\x42\xe5\x7f\xac\xa9\x53\x2d\xb3\
\x92\x46\xa1\x4f\xbe\xe4\xf0\x3c\x0f\xdd\x6d\x80\x63\x56\xae\x25\
\x0d\x7c\x86\x96\x46\x49\x88\x08\x04\x41\x04\x27\x03\x84\x86\x11\
\x32\x42\x53\x49\x9e\x96\x05\xc7\x75\x15\xb8\x2d\x2c\xa0\xd1\x68\
\xc2\x71\x6c\x2c\xef\xda\x8d\x46\xa3\x81\x4e\xa7\x83\x66\xab\x09\
\x96\x1c\x81\xa0\x8a\xa9\x76\x10\x04\x8a\x01\x1a\x42\x44\xae\x51\
\xdb\xb6\x74\xdc\x30\x8e\x09\x86\x0b\x3e\xc3\x34\x22\x2e\xa7\xfa\
\x76\x52\x64\x92\x29\x3a\xf4\x3c\xa5\xb1\x55\xf2\xba\x29\xcf\x84\
\xca\x31\xa7\x53\xa7\x4e\xa1\x84\x32\x33\xcd\xa5\x57\x4b\x79\xb8\
\xf2\x62\x4c\x54\x00\x48\xd3\x62\x4d\x41\x01\x50\x69\xe0\x90\xf0\
\x86\x23\xa0\xd9\x2a\x9c\xb1\x95\xe4\x13\x3f\xb2\xd5\xdd\xc4\xe6\
\xc6\x86\x5e\x74\x33\x1e\x7e\xe8\x41\x74\x3a\x0b\xd8\xb3\x77\x2f\
\x98\x19\x07\x0f\x1e\xc2\xc2\xc2\x02\xf6\xee\xde\x8d\x8e\x66\x56\
\xe1\x64\xc7\x52\x46\x56\x75\xaa\x40\xa9\xb2\x15\x28\x42\xb0\x22\
\x3a\x8c\x17\xbd\xf8\xc5\x90\xdf\xf8\xcd\x18\x0c\x06\xe8\x76\xbb\
\x38\x7d\xea\x14\xee\xbf\xe7\x6e\x3c\xfe\xc8\x43\x38\x7b\xfa\x04\
\xba\x1b\xeb\xe8\x6d\x6d\xc1\xf7\xfd\x88\x2d\xa4\x8c\x03\x55\x0d\
\xd4\x3b\x01\x4a\x3b\x0c\x48\x17\x85\xdd\xe7\xcd\x3c\x93\x00\x8e\
\xb9\x70\xc1\x30\x2b\x38\x22\x21\x8d\xb2\x52\xad\x63\x20\x1c\x8d\
\x8a\x81\x94\x8b\x2b\x4e\x50\x21\xc3\x56\x20\x22\x84\x01\xc9\xe3\
\x8c\xd0\x71\x5c\x58\xb6\x15\xc9\x9f\x42\x18\x11\x03\x59\xde\xb5\
\x4b\xb1\x41\xd7\x85\xeb\xb8\x68\x34\x9b\x68\xb5\x5b\x70\x5d\x17\
\xbb\x76\xed\x86\xdb\x68\x60\x61\x61\x01\xad\x56\x0b\x42\x08\xb4\
\x5b\x2d\x34\x5b\x4d\x65\x9c\x69\x34\x40\x42\xc0\x34\x0c\x08\x41\
\xf0\xfd\x40\x2d\xe0\x1c\x07\xcd\x66\x33\x77\xf6\x60\x9a\x74\x4e\
\xe5\x80\x53\x72\xfd\x02\xe0\xc9\x27\x9e\xc0\x84\xf9\xa4\xc8\x7c\
\x05\xd4\x56\xf1\x2b\x9e\x31\x65\x57\x1d\x95\xad\xe2\xe1\x4d\x4a\
\x19\x3c\xf5\xd0\x7d\xb8\xfe\xb9\x2f\x80\x94\x12\x52\x06\x95\x65\
\x2f\xc3\x48\x9f\xe2\xdd\xee\x26\x36\x37\x55\x91\xc7\x67\x9e\x7e\
\x0a\x00\xa1\xd3\xe9\x60\xcf\xde\x7d\x60\x96\x38\x78\xe8\x10\x16\
\x17\x16\xb1\x67\xf7\x2e\x2c\x74\x3a\xa9\x79\x4b\xc5\xac\xb8\xb2\
\xaa\x35\x0e\x56\x0e\x5c\xd7\xc5\xbe\xbd\x7b\xf1\xa2\x17\xbd\x08\
\x00\x30\x1c\x0e\xb1\xd5\xeb\xe1\xd4\xc9\x93\x78\xec\x91\x87\x71\
\xdf\x5d\x5f\xc4\xfa\xda\x2a\x56\x4e\x9f\x44\xbf\xd7\x8b\xe2\x1d\
\xc9\x15\xf7\x74\x76\x35\x47\x50\xba\x02\x00\xa9\x14\x40\x15\xb0\
\x1d\x94\x65\x46\xdb\xdc\x97\x3c\x90\xa4\xb2\x00\x3a\x81\x19\xaa\
\x18\x61\x3e\x23\x1c\x79\x5e\xb1\x5c\x5a\xf1\x3b\x87\xea\x46\x18\
\x17\x8c\x40\x3d\x7c\x5c\x08\xbc\xfb\x7d\xef\xc7\x4f\xfc\xf8\x8f\
\x47\x0e\xd7\xbc\xe0\x54\x95\x0a\x11\x91\xe2\x0b\xe0\xce\x3b\xbe\
\x88\x29\x80\x54\xc6\xa9\x37\x8d\x60\xd7\xc0\x74\x95\x81\x53\x90\
\x04\x27\x96\x32\x80\x3e\xb9\xc1\x0c\xcf\xf3\xb6\x3f\x01\xe4\x4c\
\xe8\x49\xb0\x3a\xf2\xcc\xd3\x00\x80\x76\xa7\x83\xbd\x7b\xf7\x45\
\xcc\x6a\x71\x71\x01\x7b\x76\xef\x4e\xc4\xac\xd4\xa4\x2f\x13\x16\
\xf2\xd2\xd3\xb5\x16\xf5\xa3\xe4\x61\x82\xb6\x6d\x2f\x61\x79\x79\
\x19\xcf\x7f\xc1\x0b\xf0\xee\xf7\xbe\x0f\x9e\xef\x63\x63\x63\x03\
\xe7\x56\x56\x70\xec\xe8\x11\x7c\xfe\xef\x3f\x83\x73\x67\x94\x3b\
\xb0\xd7\xed\xaa\xc4\x60\x29\xc7\x98\xd5\x4e\x83\xd2\x95\x56\xb2\
\xb9\x32\x40\x4d\x60\x2f\x97\xed\xf7\x22\x2a\x3c\x0f\x27\xb1\xbe\
\x59\x62\x9a\x91\x54\x27\xfd\x94\x8c\x19\x10\x41\x4a\xc6\xbe\xfd\
\x07\x32\xa1\xc3\x1c\xe7\x04\x26\x49\x7b\xe3\x1c\x91\xf5\xe7\xde\
\x7f\xdf\x7d\xd3\x16\xbe\x93\x40\x09\xa8\x2d\xe3\x57\x3c\x30\xcd\
\x05\x9c\xa2\x42\xab\x73\x02\xa6\xd2\x60\xb5\xd9\xc5\xe6\x46\x92\
\x59\x29\x9b\xfa\x5e\x2d\x03\x1e\x0a\x99\xd5\x9e\xdd\x58\x68\xb7\
\x93\x45\x17\x00\xb0\x4e\xee\xcd\xae\x76\x8b\xf9\x86\x4a\xf6\xd4\
\x71\x2b\xfd\x98\x10\x84\xe5\xa5\x25\xec\xda\xb5\x8c\xdb\x6e\xbb\
\x0d\x6f\x7c\xd3\x9b\x20\xa5\xc4\xe6\x66\x17\xa7\x4f\x9f\xc6\xf1\
\xa3\x47\x70\xff\x3d\x77\xe1\xd8\xd3\x4f\x61\xe5\xec\x29\x6c\x75\
\xbb\x08\x7c\x1f\x2c\x39\xf5\xbd\x66\x32\x4c\xe4\x80\xd2\x95\xde\
\x43\xa0\x34\x40\xe5\x01\xd5\x65\x0c\x52\x85\xd6\xf6\xed\x24\x43\
\x4f\xb9\x9e\xb2\xe7\x78\xc4\x9a\x0c\x81\x3d\x7b\xf7\x96\x02\x9b\
\xaa\x71\x27\x66\x46\x77\x63\xa3\x48\xc6\x2b\xeb\xce\xab\xd9\xd2\
\x15\x0a\x4c\x55\xf2\x98\xa6\x82\x53\xa2\xa6\x38\x46\x83\x41\x69\
\x69\x61\xe6\xfa\x66\x89\x39\x87\xc8\x48\x5d\x2b\x2a\x66\xb5\x0e\
\x80\x22\xb0\xea\x2c\x28\x83\x45\xb3\xd9\xc2\x8d\x37\xde\x80\xc5\
\x05\x65\x59\x5f\x0c\x65\x40\x8a\x93\x84\x65\x4e\x83\xc3\xc9\x9a\
\x8e\xae\xe0\x2d\xd3\xc5\x80\x16\x3a\x1d\x2c\x2e\x2c\xe0\xb9\x21\
\x58\x05\x12\x9b\x5d\x05\x56\xc7\x8e\x3c\x83\x27\x1f\x7b\x14\x47\
\x9f\x79\x0a\xa7\x8e\x1f\x45\x77\x73\x43\xd9\xb9\x35\xe8\x09\x11\
\xc6\x1c\xca\xb4\x05\xb9\x3a\x00\x69\x2e\xf3\xf5\x45\x90\xfb\x2e\
\xa3\x6f\x3b\xf3\x10\x42\x60\xf7\xee\xdd\x13\xae\xd1\xfc\x38\x12\
\xa6\xb0\x27\x82\x80\xe7\x79\x58\x5d\xbd\xe0\x4f\x01\xa5\x3a\xc1\
\xb6\x66\x4c\x53\x01\xaa\x4c\xcc\x29\x92\xf2\x2e\xb9\x6b\x53\x5b\
\x8a\x29\xc5\xac\x36\x23\x66\xf5\xd0\x83\xf7\x6b\x27\x95\x83\x3d\
\x7b\xf6\xa2\xd5\x6a\xe1\xc6\x1b\x6e\xc4\xe2\x42\x07\x96\x6d\x63\
\xa1\xd3\x8e\xc0\x25\xfc\x2e\x32\x25\x03\x02\x65\x44\xb8\x54\xcc\
\x4a\x5f\xb0\x9d\x4e\x1b\x8b\x0b\xb7\xe0\xb9\xb7\xdd\x8a\xaf\x7e\
\xd3\x9b\x23\x47\xe0\x89\x13\x27\xb0\xb2\x72\x16\x47\x9e\x7e\x0a\
\xf7\xdf\x75\x07\x4e\x9d\x38\x86\x41\xbf\x87\xe1\x60\xa0\x4c\x16\
\x61\x4d\xbd\x1c\x29\xf0\x6a\x04\xa5\x99\xd9\xd3\xb3\x54\xee\xbb\
\xd8\x47\x54\x08\x81\x46\xc3\x8d\xda\xbf\xe4\x9b\x1d\x66\x63\x4f\
\x52\x32\xa4\x0a\xc4\x56\x01\x25\xd4\x6c\xe9\xea\x02\xa6\x69\x2d\
\x2f\xa6\x81\x53\x82\x35\xc1\x60\x46\xf9\xde\x3f\x3b\xf1\x4d\xa8\
\x9c\x0c\xe8\xfb\x1e\xbc\xcd\x51\x04\x56\x0f\x3e\xf8\x80\xb2\xf7\
\x3a\x2e\xf6\xee\x55\xcc\xea\xa6\x1b\x6f\xc0\xc2\xc2\x02\x6c\xcb\
\xc2\x42\xa7\x93\x58\x6c\x73\xbe\x95\x36\x33\x5b\x16\xd5\x04\x95\
\xe9\x6e\x84\x70\x5d\x17\x37\xdf\x7c\x33\x6e\xb9\xe5\x16\xbc\xf2\
\x95\xaf\x84\xfc\xe0\x37\xa2\xdf\xef\x63\x6d\x6d\x0d\x6b\xab\xab\
\xb8\xf7\xee\x3b\xf1\xf8\x23\x0f\xe1\xf4\xc9\x13\xd8\x5c\x5f\xc3\
\xd6\x56\x17\x81\xef\x81\x65\x22\x09\x79\xbb\x52\xe0\xd5\xc8\x9e\
\x26\x02\xd5\x55\x38\xe7\x51\x5c\x72\xdf\x71\x1c\x1c\xd8\xbf\x1f\
\xd9\xaa\xfa\xdb\x65\x4f\x44\x84\xad\xde\x16\x50\xa2\x40\x34\xca\
\x95\x27\xaa\x19\xd3\x15\x0c\x48\xd3\xa4\xbc\x69\x8c\x49\x81\x13\
\xb3\x31\xb9\x73\xd8\xc4\x06\x31\x97\xe0\x3a\xa4\xc8\xa6\x0b\xa8\
\x1c\x2b\x4f\xe7\x2d\x81\x28\x9f\x59\xdd\x78\x23\x16\x3b\x0b\x58\
\x58\xe8\xc0\xb6\xac\xd4\x8a\x3b\x0b\x38\x15\xbc\xeb\x4a\x0a\x4c\
\xbc\xb5\xd1\x70\xd1\x68\x5c\x83\x6b\xaf\xbd\x16\xcf\x7f\xc1\x0b\
\x00\x30\x46\xa3\x11\xb6\xb6\x7a\x38\x7d\xea\x14\x1e\x7b\xf4\x11\
\xdc\x73\xc7\xe7\x71\xe6\xe4\x09\x6c\x6c\xac\xa1\xd7\xed\xc2\xf7\
\xfd\xb8\x92\x85\x2e\x50\x7b\x35\x41\xd5\xcc\xec\xa9\x70\x63\x74\
\xd1\x41\x6a\x72\x9c\x69\x8e\x72\xde\x84\x45\x0c\x91\x80\xd0\xd5\
\x33\xf2\x3a\xfe\x56\x62\x4f\x79\x1f\xa5\x5e\x1a\x94\x04\x22\x89\
\xe9\xb9\x4c\x35\x30\x5d\xe1\xac\x69\x9a\x9c\x37\x0d\xa0\xa6\x9d\
\xf3\x3b\x38\x1d\xcd\x83\x6a\xe9\x76\x16\x86\x11\x3d\xe3\x79\x1e\
\x3c\x6f\x84\x8d\x8d\x0d\x10\x80\x07\x1f\xb8\x1f\x96\x6d\x63\xef\
\xde\x7d\x70\x1c\x47\x33\xab\x1b\x75\xa9\xa5\x0e\x6c\xdb\x4a\xa9\
\x43\xc5\xa5\x96\x26\x7f\x9f\xc8\x9c\x91\x88\x77\x99\xa6\x89\xa5\
\xa5\x45\x2c\x2f\x2f\xe1\xf6\xe7\xdf\x8e\x77\xbe\xfb\xdd\x18\x0e\
\x47\xe8\xf5\xb6\x70\xea\xd4\x29\x1c\x79\xfa\x69\xdc\x73\xc7\x17\
\x70\xf6\xcc\x29\x9c\x3b\x73\x1a\xdd\xee\x26\x02\x6d\x5f\x57\xb1\
\x38\x71\x55\xb0\xaa\xb9\x47\x63\x42\x90\xba\x2a\x58\x94\x2a\xbd\
\xb4\xb4\xbc\x0b\xcb\x4b\x8b\x89\x56\xce\x65\xdd\x78\x39\x4e\x3c\
\x8e\xd9\x13\x81\xb0\xa6\x54\x8a\xac\xf9\xa1\x4c\x82\xed\xa4\x45\
\x75\x0d\x4c\x57\x20\x28\xa1\x04\x73\x9a\x26\xe9\x71\xea\x4a\x9e\
\x50\xa2\xe6\x59\xa7\x6e\x80\x60\x24\x26\x74\xcf\xf3\x70\xe2\xf8\
\xf1\xe8\x2b\x3f\xf8\xe0\xfd\xb0\x2d\x0b\x7b\xf7\xed\xd7\x60\xd5\
\xc4\x4d\x37\xde\x88\x85\x85\x05\x2c\x76\xd2\xcc\x8a\x23\x27\x60\
\x71\xba\xe5\x04\x53\xe0\x58\xae\x95\x65\x99\x58\x5c\x5c\xc4\xf2\
\xd2\x32\x6e\xbf\xfd\x76\xbc\xf5\x6d\x6f\x03\x4b\x8e\x4c\x16\xc7\
\x8f\x1d\xc5\xe7\xff\xee\x33\x58\x39\x7b\x1a\x2b\x67\x4e\xa1\xbb\
\x99\x04\x2b\xda\x56\xd9\xa5\x67\x03\x7b\x9a\xeb\xac\x75\x05\x01\
\x14\x4d\xf8\x7a\x04\x52\xd5\xee\x85\x91\x53\x1d\xa2\xac\xe1\x61\
\xbc\x37\x4a\xf8\xda\xf3\xe7\xce\x61\x1b\x6c\x69\x5a\xcc\xa9\x06\
\xa6\x2b\x98\x35\x95\x29\xea\x9a\x7e\x3c\x91\x24\x24\x65\x00\xe9\
\xfb\x10\x86\x79\x71\xcf\x9b\x6d\x76\xf8\x9c\xc4\xa5\xb2\x1f\x43\
\x22\x2c\x37\x18\x83\xd5\xf1\xe3\xc7\xa2\x2c\xc2\x2c\xb3\x4a\x1a\
\x2c\xc6\x65\x40\x6d\xae\x28\xbd\xc3\xe9\xd5\xa8\xca\xd3\x92\xa9\
\xa7\x3a\x9d\x36\x16\x16\x6e\xc1\x6d\xb7\xdd\x8a\x37\xbc\xf1\x8d\
\x90\x52\xaa\x2a\x16\xa7\xcf\xe0\xd8\xd1\x23\x78\xf4\xa1\x07\xf1\
\xe4\x63\x8f\xe0\xfc\xca\x19\x74\x37\x37\x30\x1c\x0c\xe2\x56\x21\
\xba\x47\xd5\x95\x02\x55\x73\x95\xf8\x76\x42\x56\xdb\x69\xc6\x57\
\xf1\xe2\x61\x30\x9a\xed\xb6\x6a\x49\x53\x82\x11\x4d\xae\x04\x31\
\x7e\x52\x1f\x3d\x7a\x14\xd8\x7e\x6c\xa9\x96\xf1\xae\x12\x29\xaf\
\x2c\x50\xc9\x69\x52\x9e\x0c\x02\x04\x41\x00\x31\xd6\x6b\xe9\x0a\
\xd6\x8e\xa0\x2a\x6a\x27\x87\x62\x56\xc7\xa2\x4b\xf3\x81\xfb\xef\
\x87\x65\x5b\xd8\x97\x61\x56\x8b\x0b\x0b\x4a\x06\x0c\xc1\x8a\x54\
\x77\x5f\x99\x93\x71\x4f\x93\x96\xbc\x13\x98\x15\x81\xd0\x6e\xb7\
\x71\xeb\x2d\x1d\xdc\x76\xeb\x2d\x78\xe3\x1b\xbf\x1a\x52\x06\x18\
\x0c\x87\x58\x59\x59\xc1\xd3\x4f\x3d\x85\x63\x47\x9e\xc1\xc3\xf7\
\xdf\x8b\x93\xc7\x8f\xa2\xbb\xb1\x81\x91\x37\x8a\xea\xd2\x8d\x31\
\x2b\xca\x9f\xa3\x2e\xe7\xdf\x7b\xae\xbb\x79\x29\xd8\xd3\x4e\x22\
\x56\x94\xec\x4d\x60\x06\xae\xbd\xf6\x3a\x18\x86\x48\x19\x99\x26\
\x56\x21\xaf\x20\xef\x7d\xfe\x73\x9f\x05\x8a\x63\x4c\x65\xdd\x79\
\x78\x76\x9c\x75\x35\x30\x6d\x17\x90\xb8\xe2\x6d\x8c\x35\xb1\x9e\
\xb8\x82\x20\xc0\x68\x34\x82\xed\x38\xe0\x52\x1c\xe4\x0a\xc5\x2a\
\x40\x95\x7b\x49\x0c\x7f\x02\xb3\x0a\xdb\x3f\xdc\x78\xc3\x0d\x63\
\x15\xd7\xe3\xea\x15\x5c\xe1\xf3\xc7\x8f\xb3\xd4\x96\xfe\x70\xb8\
\xae\x8b\x43\x87\x0e\xe1\xf0\xe1\xc3\xd1\x67\xf4\xfb\x7d\xac\xac\
\xac\x60\x73\x73\x13\xf7\xdf\x7b\x0f\xee\xbf\xeb\x0e\x9c\x38\x76\
\x04\x81\xef\x63\x73\x73\x03\xbe\xe7\x21\x65\x5f\x4f\xb4\x93\xc8\
\xed\x88\xc7\x97\xef\xef\xb3\xed\x99\x6d\x87\xd9\xd3\x45\x45\xa7\
\xd8\x07\x04\xc7\x75\x41\x44\x51\x6e\x5e\x84\xc1\xc8\xd6\x71\xc8\
\x97\xf7\xa8\xc0\x92\xca\x0c\x3c\x78\xff\xfd\x45\xb5\x37\x67\x69\
\x16\x58\x33\xa6\xab\x84\x2d\x6d\x07\x9c\xa2\xd5\x7a\x3d\x8a\xaf\
\x7e\x95\x3c\x9b\xcf\xac\x00\xe0\x81\x07\xee\xc7\xc2\xc2\x02\xf6\
\xed\xdb\x0f\x66\x46\xa3\xd1\xc4\x4d\x37\xaa\x8a\xeb\x0b\xed\x76\
\x0c\x02\x48\x33\x2b\x9a\xde\xcb\x20\x97\x59\xa5\x3a\xf3\x12\xa1\
\xe1\xba\x38\x7c\xe8\x10\x40\x84\x17\xbe\xf0\x85\xe0\x0f\x7e\x08\
\xfd\xc1\x00\xc3\xe1\x10\xa7\x4e\x9d\xc2\x3d\x77\xde\x89\xc7\x1e\
\x7e\x10\xa7\x4f\x1e\xc3\xc6\xda\x1a\xba\xdd\x4d\x05\x56\x39\x05\
\x6d\x63\xb0\xe2\x2b\x97\x4d\xed\x00\x38\x5d\x1a\x39\x2f\xfe\x74\
\x37\xcc\x61\xca\xc1\xa0\xfc\x1e\x4e\x19\xc8\x4a\x18\x1e\xd2\xe7\
\x9b\xc4\xb9\x95\xb3\xdb\xa9\xf6\x50\x1b\x1f\xae\x42\x29\xaf\x6c\
\x37\xdb\xfc\x78\xd3\xa4\xdc\x9e\x67\xc5\x21\xa0\x8a\x84\x6e\x96\
\xf7\x14\x2c\x54\x53\xcc\x8a\xb0\xb9\xb9\x89\x8d\xf5\xb8\xbb\xed\
\x83\x0f\xdc\x87\xce\xc2\x22\xf6\xed\x53\x75\x01\x0f\x1f\x3a\x8c\
\xc5\xc5\x9c\x8a\xeb\x1a\x6c\x64\xc1\x0f\x51\x58\x7b\x3b\xa3\xca\
\x70\x82\x59\x91\x66\x56\x0d\xd7\xc5\xf2\xd2\x12\x9e\x7f\xfb\xed\
\x00\x80\xe1\x68\x84\x5e\xaf\x87\x53\xa7\x4e\xe3\xf1\x47\x1f\xc1\
\x5d\x5f\xf8\x2c\x56\xce\x9c\xc6\x85\x73\x2b\xba\xfa\xba\x07\x96\
\x01\x72\x13\x83\xaf\x34\x90\xba\xe8\xcc\x69\xbe\xdf\x98\x32\x5f\
\xe5\xa6\x9b\x6e\x56\x8c\x89\x65\xa1\x64\x57\x46\xde\x4b\x4a\x7b\
\x44\x04\xcf\xf7\x71\x6e\x65\x25\x98\x02\x4a\x93\xe2\x4d\x35\x18\
\x5d\x85\x52\x5e\x55\x06\x95\xe3\xca\x7b\xb6\x9e\x33\x54\x89\x69\
\xec\xf8\xde\x10\xa5\x6c\xeb\x00\xd0\xdd\xdc\xc0\xc6\x86\x02\xab\
\xa7\x9e\x7a\x12\x00\x52\xcc\xea\xf0\xa1\x43\x58\x5c\xd4\x15\xd7\
\x13\xcc\x2a\x92\x01\xa5\xcc\x05\xa2\x52\x00\xa6\x59\x55\x5c\xc9\
\x82\x60\x99\xca\x11\xb8\xb4\xb4\x84\xdb\x6f\x7f\x2e\xde\xf1\xae\
\x77\xc1\xf7\x7d\x6c\x6d\x6d\xe1\xec\x99\xb3\x38\x76\xec\x28\x3e\
\xfb\xb7\x9f\xc6\xca\xe9\x53\x38\x7b\xe6\x24\xba\x1b\x1b\xaa\xfa\
\x7a\x20\xe7\x53\x1f\xf0\x72\x13\xce\x9e\x35\xb8\x44\x13\x4e\x7d\
\xe5\xa8\x5d\x5a\x5a\xca\x99\x12\xca\xc4\x94\x8a\xdd\x78\x60\x40\
\x4a\x09\xdf\xf7\x8b\x5a\xe8\x94\x91\xf1\x6a\x29\xef\x2a\x62\x4c\
\x28\xc1\x98\xa6\x95\xa5\x97\x17\x85\xa4\xcc\x7e\xf9\x5d\xb2\x6d\
\xcc\x63\x6b\x61\x65\x69\x23\x59\x78\x93\x90\x60\x56\x84\xa7\x9e\
\x7c\x02\x00\xd2\xcc\xea\xf0\x61\x2c\x2d\x2c\xc4\x45\x6c\x13\x1b\
\x54\x32\x60\xd9\xba\x80\x05\x21\xed\x8c\x14\x28\x88\xa2\x1a\x81\
\xb7\xde\x7a\x0b\xde\xf0\x86\x37\x68\x47\xe0\x16\x4e\x9f\x39\x8d\
\xe3\x47\x8f\xe2\x1f\xfe\xf6\xd3\x58\x39\x73\x0a\x67\x4f\x27\xc0\
\x2a\x91\x6b\x75\xb9\x39\x02\xab\xb9\xfa\x9e\x05\xe8\x44\x13\x98\
\x93\x6e\x32\xb8\x6b\x79\x39\x87\x03\x55\x29\x41\x34\xce\x9e\x48\
\x10\xba\xdd\x2d\x20\x6e\x99\x53\xd5\x8d\x57\x57\x7d\xb8\x8a\x80\
\xa9\x88\x26\x4f\x8b\x2b\xa5\x00\x8a\x99\xe5\xd1\xc7\x1f\xc6\xc1\
\x9b\x9f\x0b\x66\xc6\x70\x38\x40\x3b\xd1\x27\x69\xe2\x49\x3b\xe7\
\x8b\x8d\xe6\xf4\x46\x2a\xfb\x5e\xba\x74\x33\xcb\x76\x98\x95\x92\
\x01\x5b\xa9\xba\x80\x8a\x15\x49\x6c\xa7\x0d\x3b\xeb\x4a\x16\xe0\
\x58\x28\x6a\x77\x5a\xb8\x75\xe1\x66\x05\x56\x6f\x7c\x03\xa4\xce\
\xb5\x3a\x73\xe6\x0c\x8e\x1e\x39\x82\xc7\x1f\x7d\x18\x47\x9e\x7a\
\x12\xc7\x8f\x3c\x8d\xee\xc6\x06\x06\xc3\x01\x58\x4a\x5d\xd0\x56\
\x44\xdf\xf5\xb2\x67\x4f\x3b\x2d\xe9\xcd\x61\xd3\x34\xed\x74\xd6\
\x3d\x99\x92\xc0\x83\x49\x00\x55\x98\xcf\x54\x68\xdb\x9c\x9e\x7e\
\x92\x2f\xe1\x15\xa9\x3d\x35\x30\x5d\x05\x8c\xa9\x4c\xc5\xf1\x31\
\xb0\x62\xe6\x40\x10\x49\xe8\xe4\x9e\x58\x36\xaa\x44\x9e\xae\x6a\
\xf9\xae\xd2\xce\x50\x19\x66\x15\xbf\x28\x19\xb3\x7a\x52\x33\xab\
\x85\x85\x45\xec\xdd\xab\x4a\x2d\xdd\xac\x13\x82\x55\x5d\xc0\x76\
\x6a\x12\xe4\x69\x6e\x40\xca\x7f\x80\x32\x3f\x70\xb6\x64\x53\xa7\
\xdd\xc6\x42\xa7\x83\x5b\x6f\xb9\x05\x6f\xfc\xea\x37\x82\x25\xab\
\x16\xf7\x2b\x2b\x38\x75\xf2\x24\x9e\x7a\xf2\x09\xdc\x7b\xe7\x17\
\x70\xe2\xe8\x11\xf4\x7b\x5b\x18\xf4\xfb\x2a\x6e\xc5\xb8\x64\x52\
\xe0\xe5\xe1\xbf\xdb\x89\xbd\xa0\x08\x60\x1a\x6e\x03\x07\x0f\x3e\
\x27\xfe\xcd\x0b\x95\x8d\x72\x6d\xd4\x63\x07\x27\xb0\xbe\xbe\x01\
\xcc\x96\xbb\x54\x97\x25\xba\x8a\x81\x29\x0b\x50\xd3\x98\x53\xde\
\xca\x47\x00\xd0\x96\xe2\x8b\xaf\xe3\x51\xd5\x57\xd2\x7c\xdf\x7f\
\x69\xa5\xc2\x62\x26\x48\x18\x67\x56\x9b\x9b\x1b\x0a\xac\x08\xb8\
\xff\xfe\xfb\x60\xdb\x36\x1c\xc7\xc5\xbe\x7d\xfb\xd0\x6a\xc5\xa5\
\x96\x6c\xcb\x42\x67\x62\xc5\xf5\xd9\x2a\x9c\xe7\x31\x2b\xc7\x71\
\x70\xe8\xe0\x41\x1c\x3e\x74\x08\xaf\x78\xc5\x2b\xf0\x81\x0f\x7e\
\x08\x83\xc1\x00\x6b\x6b\xeb\x58\x5d\x5b\xc5\x3d\x77\xde\x81\x47\
\x1e\x7a\x00\xa7\x8e\x1f\xc3\xc6\xda\x2a\xba\x9b\x9b\x1a\xac\xc2\
\x0e\xac\xd8\xf1\x1a\x81\x53\x61\xe1\xa2\x18\x21\xe6\xb1\xfd\x9c\
\xaa\x23\x82\x40\x82\x60\x9a\x66\xc9\x3a\x79\xf9\xec\x89\x72\xd2\
\x06\x08\x84\x33\x67\xcf\x4e\x02\xa6\x2a\xb9\x4c\x35\x28\x5d\x25\
\xc0\x34\xad\x1e\xd5\x34\x06\x95\x32\x40\x78\xa3\x51\x65\xba\x74\
\x71\x58\x53\x31\xa0\xd0\x36\x2e\xe8\x9d\x04\x9b\xb2\x8d\xd2\xab\
\xf6\xae\x55\x32\x60\xba\xd4\x92\x37\xf2\x22\x19\xf0\xfe\xfb\xee\
\x83\x65\x5b\x70\x1d\x17\x7b\x35\x58\xe5\x31\x2b\xa2\x84\x13\x90\
\x4b\x63\x65\xe1\xbe\x8e\xb7\xb8\x77\x71\xcd\x35\x2e\xae\xbd\xe6\
\x00\x5e\x70\xfb\xed\xaa\xe7\x57\xe8\x08\x3c\x7d\x1a\x8f\x3d\xf2\
\x30\xee\xf8\xfc\x67\x13\x60\xb5\x91\x2e\x68\xab\xdb\x87\x5f\x31\
\xd9\x73\xf3\xc2\xbc\x9c\x24\x69\x66\xe8\x3a\x79\x4b\xfa\xf8\x95\
\x4d\xa4\xcd\x36\x03\xcc\x91\xf6\x08\x38\x71\xec\x18\x30\x3d\xb9\
\xb6\x36\x3e\xd4\xc0\x34\xb6\xf2\x98\x45\xca\x4b\x82\x13\x00\xc2\
\x70\x58\xa6\x59\xe0\xc5\x16\xf0\xe6\x01\x4a\x17\x81\xee\xd0\xa5\
\xda\x96\x92\x5b\x0c\x32\xc6\xc0\x6a\x7d\x63\x1d\x14\x81\x95\x0d\
\xd7\x75\xb1\x77\xef\x3e\xb4\xdb\x99\x22\xb6\x96\x15\xfd\xae\x51\
\x7b\x10\xf0\x4c\xc0\x99\x04\x2a\x75\xb6\xc4\xc0\x67\x9a\x26\x16\
\x17\x17\x94\x23\xf0\x79\xcf\xc5\x3b\xdf\xf5\x2e\x55\x7d\xbd\xd7\
\xc7\xa9\x53\xa7\xf0\xcc\x53\x4f\xe1\xce\x2f\x7c\x16\x67\x4e\x9d\
\xc4\xd9\x53\x27\xb1\xb9\xb9\x11\xd5\x08\x9c\x07\x58\x5d\x72\x8b\
\xc3\xbc\x58\x19\x8d\x57\x13\x09\x82\x00\x86\x61\x24\x36\x5d\xd6\
\xf4\x90\xc3\x9e\x32\xaf\xb9\xeb\xae\x3b\x43\xc6\x14\x14\x80\xd1\
\x24\xb6\x54\xb3\xa4\xab\x5c\xca\x43\x05\x70\xca\x9e\x5c\x89\x25\
\x53\xc5\x4f\xa3\x4b\x13\x6b\xa2\x1d\x7c\xf5\xc5\xda\x61\x9a\x4c\
\x4b\xa6\xc1\xd1\xe4\xe7\xf2\xc0\xca\x1b\x61\x63\x7d\x0d\x00\xe1\
\xbe\xfb\xee\x85\x6d\xd9\xd8\xb7\x7f\x3f\x1c\xc7\x45\xab\xd5\xc4\
\xcd\x51\xa9\xa5\x76\xba\xd4\xd2\xb4\x5e\x56\xc0\x04\x37\x7b\x66\
\x1a\x64\x24\x4b\x34\xaa\xea\xeb\x0b\x0b\x58\x5e\x5c\xc4\xf3\x9f\
\xf7\x3c\xbc\xed\x6d\x6f\x83\x64\x89\xcd\xee\x16\xce\x9c\x3e\x8d\
\xa3\x47\x8f\xe2\x1f\x3e\xfd\x49\x9c\x39\x1d\x83\x95\xef\x79\xa9\
\x82\xb6\xcf\x2a\x66\x45\x09\x6d\x6d\x6e\xf3\x35\xa3\xd9\x6a\xc1\
\x34\x8d\x70\x29\x30\x59\xb6\x9b\x96\xcf\x94\x90\xf6\x98\x19\x47\
\x9f\x79\x66\x9a\x94\x57\x15\x94\xea\x18\xd3\x55\x02\x46\x55\x1c\
\x7a\x05\x52\xde\x0c\x88\xf4\x6c\x94\x53\x2e\xe7\x0f\x9d\x03\x28\
\x4d\x06\x0d\x1a\x6b\x0f\x72\xec\xd8\xd1\xe8\x0c\xb8\xef\xbe\x7b\
\x61\xdb\x36\xf6\xed\xdb\x0f\xd7\x75\xd1\x6c\x36\x71\xf3\x4d\x37\
\x25\x98\x95\x19\x6d\x30\x96\xee\x78\xa6\x2f\x42\xa9\x55\xbc\xde\
\x56\x5c\xca\x02\x9d\x76\x0b\x0b\xb7\x28\x47\xe0\x1b\xb5\x23\x30\
\x2c\x68\x7b\xea\xd4\x49\x3c\xf6\xc8\xc3\x78\xe0\xde\xbb\x70\xf2\
\xe8\x91\x08\xac\x42\x67\x62\x64\xb0\xb8\x5c\x8b\xda\x46\xb8\x54\
\x16\xa0\x68\xe2\x71\x65\x06\xae\xb9\xe6\x5a\x98\x46\x5c\x59\x3c\
\x3f\xae\x44\xd5\xa4\x3d\xcd\x7c\x9f\x7c\xe2\x89\x59\xe3\x4a\xb5\
\x6d\xfc\x2a\x05\x26\x2e\x01\x52\x55\x9a\x78\xd5\x63\x0e\x48\xb6\
\x53\x6c\x6e\x16\x40\x9a\xf6\xbc\xa0\x74\x5d\xc0\x14\x58\x51\x0c\
\x56\xfb\xf7\x1f\x88\x2a\xae\xdf\x3c\x26\x03\xaa\xd7\x4a\x39\xd9\
\x09\x58\xae\x98\x2d\x25\x98\x55\x7c\x7a\x12\x10\x15\xb4\xbd\xf5\
\xd6\x9b\xf1\xba\xd7\xbe\x56\x25\x06\xf7\x7a\x38\x7d\xe6\x0c\xce\
\x9c\x3e\x8d\x33\xa7\x4f\xe1\xce\xcf\x7f\x16\xcf\x3c\xf9\x04\x36\
\x37\xd6\x30\x1a\x0e\x11\x04\x41\x24\x03\x46\x40\x55\xe8\x0a\xe4\
\xb9\x9d\x35\x5c\xe9\x85\x53\xde\x51\x80\x4b\x49\xfb\x8a\xed\x38\
\xe9\xb6\x35\xb9\xe0\x53\xc6\x91\xc7\xa9\xb3\x2d\x08\x24\x36\x36\
\xd6\xf3\x12\x6b\xcb\x82\x52\x3d\xae\x22\x60\x2a\x13\x08\xaa\xc2\
\x9c\xf4\xb9\x48\x15\x77\x61\x9b\x3a\xde\x45\x23\x5e\x93\xf7\x95\
\xb6\x3d\x0d\xcd\xe1\x5d\x53\xab\x3a\xd0\x4e\xef\x52\x34\x84\xc8\
\x01\xab\xa3\x47\xa2\x13\xe5\xbe\x7b\xef\x85\x65\xdb\xd8\xbf\x7f\
\x7f\x54\xc4\xf6\xe6\x1b\x6f\x8c\xeb\x02\x26\xe7\x3e\x56\xbd\xac\
\xca\x80\xd1\xd4\x67\x98\x21\x93\x8e\x40\x41\xba\x55\x48\x07\xb7\
\xdd\x72\x0b\x40\xc0\xbb\xdf\xf3\x5e\x0c\x75\xf5\xf5\xcd\x6e\x17\
\x8f\x3f\xfa\x28\x3e\xff\xf7\x9f\xc1\x33\x4f\x3e\x8e\xde\xd6\x16\
\xfa\xfd\x5e\xe4\x3e\x0d\x25\xc0\x9d\xb0\xaf\xcf\x13\x9c\x26\x8a\
\xb6\x1a\x8b\x1a\x8d\x46\x49\xf0\x29\xef\xc8\x03\x04\x3c\x6f\x84\
\xad\x6e\xd7\xc7\xb4\xd2\x66\xf9\xe1\x81\x1a\xa4\xae\x62\x29\xaf\
\xe8\x04\x28\xdb\xdd\x36\xd1\xc5\x96\xb6\xb5\x03\x34\xe3\xab\x77\
\x1e\x9f\xaa\x18\x28\x76\xc0\xbd\x47\xdb\xdb\x1a\x55\xae\x45\x34\
\x9f\x63\x96\xaa\xc5\x26\x8c\x0c\x58\x8d\x70\xec\xe8\xd1\xc8\xdc\
\x70\xdf\xbd\xf7\x62\x61\x71\x11\xfb\xf7\xef\x07\x00\x34\x1b\x0d\
\xdc\x74\xd3\x8d\xd8\xbf\x77\x2f\x3a\xed\x56\x6a\x8b\x93\x2a\xae\
\x57\x05\xec\x58\x52\x8c\xf9\x83\xeb\x3a\x38\x74\xe8\x20\x08\x84\
\x17\x3e\xff\x76\xbc\xe3\x1d\xef\xc0\x60\x38\xc4\xda\xfa\x3a\xd6\
\xd7\xd6\xf0\xc8\xc3\x0f\xe1\xee\x2f\x7e\x01\x4f\x3f\xf1\x18\xb6\
\xba\x9b\x29\x47\xe0\x25\xc9\xb5\x9a\xc9\x0f\x91\xa6\x3a\x07\x0f\
\x1d\x4a\x6c\xa6\x4c\x5c\x69\xba\x23\x8f\x08\x18\x0c\x07\xc0\xec\
\x7d\x98\xb2\x8b\xe8\x1a\x9c\xae\x02\x60\x9a\x16\x5c\x9c\x24\xeb\
\x45\x27\x53\x78\xce\x12\xe2\x9e\x4c\x46\x26\x77\x66\x67\xc8\x53\
\xd9\x37\xe5\xbf\xae\xdc\x67\x4d\xae\x2f\x57\x68\xe9\xa6\xb2\xf3\
\x3f\xcd\x6f\x62\xaa\x0a\x4a\x3b\x36\x6f\x96\xcb\x6f\x22\x90\x6e\
\xbc\x18\x8f\xcd\x8d\x0d\xac\xaf\xaf\x45\xff\xbe\xf7\xbe\x7b\xb1\
\xb0\xb0\x88\x03\x07\xf6\x83\x19\x2a\x66\x95\x64\x56\xc9\xb9\x33\
\x64\x56\xa5\xbf\xdf\x04\x43\x3e\x27\xf2\xad\xf4\xc9\xdd\x70\x5d\
\x34\x1a\xca\xbe\x7e\xfb\xf3\x9e\x87\x77\xbd\xeb\x5d\x18\x79\x3e\
\x86\xc3\x21\xce\x9c\x3d\x8b\x27\x1f\x7f\x1c\xff\xf0\x99\x4f\xe1\
\xe4\xf1\xa3\x38\xb7\x72\x06\xfd\xad\x2d\x8c\x46\xa3\x08\x40\x85\
\xd8\xe1\xb2\x4b\xdb\x70\xec\x11\x11\xf6\xec\xd9\x3d\x79\xc9\x57\
\x28\xed\x4d\x66\x4f\x5a\x0a\xad\x02\x48\x12\xb5\x55\xbc\x66\x4c\
\x15\xc0\xa8\xb8\x02\x84\x5e\x1e\x05\x41\x80\xc0\xf7\x2b\x00\xd3\
\xfc\xb8\xce\xe4\x2d\xcd\x02\x4e\x34\x9b\x6c\x47\x25\xa6\x3f\xaa\
\x32\xdb\xcc\x3a\xf5\x5f\x4c\x50\xa2\xb9\x6c\x9a\x04\xc1\xc0\x78\
\x42\xf0\xfa\xfa\x5a\xb4\x9a\xbf\xf7\xde\x7b\xb0\xb8\xb8\x88\xfd\
\xfb\x0f\x80\x59\xe2\xfa\xc3\xd7\x63\x69\x71\x11\x7b\xf7\xec\x4e\
\x30\x2b\xf5\x7f\xc5\xac\x64\x39\x30\x9a\xf2\x05\x42\x66\x17\xe5\
\x49\x81\x60\x59\x26\x2c\xcb\x44\xa7\x73\x23\x6e\xb9\xf9\x26\xbc\
\xf9\x2d\x6f\x46\x10\x04\xe8\xf5\xfa\xb8\xb0\xba\x8a\xa3\x47\x8e\
\xe0\xee\x3b\xbe\x80\xc7\x1f\x7d\x18\x27\x8f\x1d\x45\x77\x73\x03\
\x5e\x02\xac\xa6\x39\x02\x77\xd4\x9e\x4e\x49\x39\x8f\xb0\x6b\x79\
\x57\xd4\xff\x70\xb6\xb8\x52\xa6\xc3\x72\x88\x55\x6a\x76\x98\x54\
\x59\xbc\x2c\x73\xaa\x59\xd3\x55\x04\x4c\x55\x58\x53\xe1\xea\x86\
\x12\xab\x23\xd5\x2c\xd0\xad\x70\xfe\xa4\x41\x63\x3b\xac\xa9\xd4\
\x7b\xb7\x81\x85\x53\xed\xcc\x34\x61\x0a\x9c\x42\xa8\x38\x3b\xbd\
\xd3\xb6\x76\x2a\x1f\x94\x68\xae\x33\xda\x7c\x36\x3d\x4d\x65\x24\
\x1a\x5b\xe8\x6c\x6c\x6c\x60\x7d\x4d\x31\xab\xc7\x1f\x7f\x1c\x00\
\x12\x60\xc5\xb8\xfe\xfa\xc3\x0a\xac\x76\xef\x9e\xce\xac\x2a\x7e\
\x01\xca\x4b\x3c\x4d\xb0\x2b\x21\x44\x54\x76\xe9\x86\xc3\x87\xf0\
\xda\xd7\xbc\x1a\x7e\x08\x56\x17\x2e\xe0\x48\x08\x56\x8f\x3c\x8c\
\x93\xc7\x8f\x62\x73\x7d\x2d\x51\xd0\x56\x01\x95\xa0\x8b\x22\x4c\
\x47\xf7\x84\x10\x70\x1c\x27\x35\x1b\xa4\xa5\xbb\x32\x71\xa5\xf4\
\x6b\xc2\x12\x52\xc7\x4f\x9c\x08\x19\x53\x80\xd9\x0b\xb7\xd6\xf9\
\x4c\x57\x09\x30\x15\xb5\xbe\x28\x2d\xe1\x21\x2f\x8f\xa9\xf0\x34\
\xbd\x1c\xc0\x89\x31\x4b\x3d\x85\x79\x82\x12\x4d\x9b\xf0\x68\x12\
\xff\xe0\x0a\x13\xcf\xbc\x41\xe9\xe2\x82\x51\x19\xe9\x89\x26\x82\
\xd5\x63\x63\x60\x75\xc3\xf5\x9a\x59\xed\xde\xa5\x4b\x2d\xc5\x3b\
\x22\x59\x4e\x70\x03\x52\x65\xdf\x05\x23\x6d\x5f\x17\x24\xd0\x6e\
\xb7\xd0\xe9\xb4\x71\xfd\xe1\xc3\x78\xed\x6b\x5f\x83\xc0\x0f\xd0\
\xeb\xf7\x71\xfe\xc2\x05\x1c\x3d\x7a\x14\x47\x9e\x7e\x1a\xf7\xdf\
\x7d\x07\x1e\x7d\xf0\x3e\x6c\x6c\x6c\xa4\x8c\x74\xbc\xbd\x83\x35\
\xf1\xda\x61\x00\x8e\xe3\xe2\xe0\x73\x9e\x93\x3e\x06\x25\x5c\x79\
\xf9\x8d\x01\xd3\xaf\x39\x76\xfc\xf8\x24\x29\x6f\x1a\x50\xd5\xa0\
\x74\x95\x4b\x79\x65\xda\xad\x4b\x14\x57\x1a\xcf\x5c\xa3\x3c\x03\
\x33\xd9\x0e\x38\xcd\x5d\x19\xac\xb6\x69\x9a\x2e\x07\x4e\x9c\xda\
\x29\x07\x8c\x8a\xa2\xf8\x3c\xc3\x04\x5f\xb1\x12\xc4\x5c\xf1\xe4\
\x22\x79\x00\x2a\x81\xd5\xbe\xfd\x68\xb5\xdb\xb8\xe9\xc6\x1b\x40\
\x20\x1d\xb3\x6a\x45\x3f\x44\x08\x2a\x85\x60\x55\xb9\xe6\xae\xa2\
\x20\xa9\x8a\x18\x82\xd0\x6a\x36\xd1\x6c\x36\x71\xdb\xcd\x37\x62\
\xa1\xf5\x56\xec\x5e\xec\xe0\xfe\xfb\xee\xc1\x1b\xbf\xfa\xcd\x30\
\x32\xce\xc6\x9d\x3c\x6e\x48\xd5\xfe\x9d\x56\xc9\x61\x7a\xa5\x87\
\xe4\x49\x7a\xec\xc8\x91\x69\xc0\xc4\x13\x16\xbb\xb5\x23\xef\x2a\
\x07\x26\xa0\x5a\x9d\xbc\xe8\x04\xa2\x64\xa2\x48\xce\xbb\x99\x66\
\x64\x3f\x28\xca\x30\x9f\xce\xcf\xca\xe2\x53\x59\xdf\x44\x59\x30\
\xcd\x03\xa5\xa9\xd3\x3c\x25\x9b\xb5\x4d\x9f\xff\xa6\xe5\x54\x52\
\xe9\x0a\xb5\x3b\x54\xfb\xef\x32\xca\x48\x9d\x06\x56\xf7\xdc\x7d\
\x17\x00\x60\x61\x71\x09\xfb\xf7\xef\x47\xbb\xd5\xc2\x2d\x37\xdf\
\x84\xc5\x85\x05\x58\xba\x2e\x20\x25\xd8\x41\xc4\x84\x2a\xc8\x64\
\x79\x2f\x90\x52\xc9\x89\x8b\xed\x06\x76\x2f\x76\xb0\xd8\x6e\xc2\
\x34\x4d\x18\x86\x01\x6f\x34\x2c\x51\xd6\x6b\x7e\x3f\x0c\x33\xb0\
\xb4\xb4\x8c\x5d\xba\x4e\x1e\xe7\x5d\x45\xb9\x2d\x2e\x78\x0a\x38\
\xa9\x71\xdf\x3d\x77\x03\x93\xfb\x30\x95\x2d\xde\x5a\x5d\x3a\xa8\
\x81\xe9\x59\x0d\x44\x65\xd8\x52\xa1\x5d\x9c\x99\xe5\xd1\x27\x1e\
\xe1\x83\x37\xdf\x96\xc9\x3d\xe4\xca\x40\x31\x06\x32\xdb\xe8\x7c\
\x5e\x16\x48\xf2\x5f\x3e\xee\x46\xca\xdf\x8f\xc9\x96\xbd\xa9\xaf\
\xa5\xb8\x65\xc5\x34\x46\x15\x3d\x12\x81\x36\xcf\x00\x4a\x73\x74\
\x85\x3d\x4b\xab\xa3\xe6\x83\xd5\x3a\xd6\xd7\x56\x01\x22\xdc\x73\
\xcf\xdd\xba\x2e\x60\x43\x81\x55\xbb\x85\x5b\x6e\xba\x39\xaa\xb8\
\xae\x8a\xd8\x52\x2c\x84\xa5\x4a\x24\x15\x83\x11\x33\x43\xea\xd8\
\xd6\x62\xbb\x81\x83\xfb\xf7\xa0\xe1\x3a\x51\x3c\x29\x34\x1e\x6c\
\xf5\x7a\x17\xe7\x38\x24\x68\x92\x1f\x39\x69\x39\x03\x32\x15\xd8\
\x53\x4e\xdc\x89\x99\xf1\xe8\x23\x8f\x70\x09\x86\x24\x51\xbe\x02\
\x4d\x3d\x70\xf5\xe5\x31\x55\x06\x28\x66\x0e\x88\x88\x01\x10\x33\
\x63\x38\x18\xa0\xd5\xee\x8c\x51\xa6\xea\x2a\xdb\xac\xec\xa9\xda\
\x76\x8b\xf7\x2d\xdf\xc2\xc7\x13\x54\xb6\xe2\xd5\xf2\x04\x36\x14\
\x81\x52\x19\x6b\x7a\xf8\x1a\x4e\x4c\x06\xe5\xe4\x26\x2a\x5b\x4f\
\x8f\xaf\x2c\x20\xaa\x02\x56\x21\xe9\x57\x45\x6c\x47\x31\x58\xdd\
\xad\xc0\xaa\xe1\x36\xb0\x6f\xff\x7e\x55\x41\xe2\xe6\x9b\xe2\x8a\
\xeb\x3a\x29\x98\x90\xa8\x0b\x18\x1e\x4e\xa9\x00\xc9\xb1\x4d\x3c\
\x67\xdf\x6e\xb4\x9b\x0d\x58\xa6\x09\x43\x08\x70\xe6\xd7\x63\x30\
\x8e\x1e\x3d\x3a\xfb\x69\x0d\x2e\xfe\xd9\x0a\x8b\x55\x30\x9a\xcd\
\x16\x4c\xd3\x9c\xa0\x74\x4c\x63\x47\x89\x45\x68\xc2\x91\x27\xa5\
\xc4\xfa\xda\xea\xb4\xaa\xe2\x75\xe5\x87\x1a\x98\x2a\x01\xd4\x24\
\xdb\x78\x5e\x9b\x75\x11\x9e\x8c\xb9\x7a\x1e\xaa\xca\x7a\x39\x74\
\xa5\x2c\x40\x4d\x95\x10\x79\x4c\x1b\x2b\x6e\x76\x96\xd6\xd1\xc6\
\x9d\x48\x25\x73\xa9\x38\x47\xda\xcb\x80\x12\x15\x8a\x93\xe3\xbd\
\x04\xa8\x82\xb8\x41\x55\x6c\xea\x74\x75\x5f\xf0\xc9\x05\x83\x61\
\x64\x2b\xae\x8f\xb0\xb6\x1e\xcb\x80\x76\xc8\xac\x0e\xec\x47\xbb\
\xd5\xc6\x2d\x37\xdf\xac\x4b\x2d\xb5\x61\x9a\x26\xa4\x94\x58\x68\
\x35\x70\xdd\xbe\x5d\x70\x6c\x0b\x96\x9e\xfc\x19\xc5\x0b\x8a\x13\
\x27\x4e\xcc\x16\x5b\x1d\xfb\x16\x3c\x59\x66\x54\x15\x96\x20\x19\
\x38\x70\xcd\x35\x30\x12\x75\xf2\x66\x61\x47\x59\x70\x12\x82\xe0\
\x79\x1e\xd6\xd7\xd7\x27\x01\x53\xdd\x56\xbd\x06\xa6\xb9\xb1\xa7\
\x7c\x67\x9e\x7e\x47\x7e\xb3\xc0\xc4\x0a\x7f\x26\xe6\x33\x0e\x50\
\xf9\x1b\xc8\xd1\xc5\xa7\x92\x91\x18\xf1\xca\x00\xe7\xd4\x8e\x9e\
\x93\x2e\x6c\x4e\xf7\x1b\x98\xea\xd2\xcb\xca\x78\xa9\x07\x58\x6d\
\x8e\x29\x96\xf5\x38\xfb\xfa\x32\x2c\x89\x2a\xd0\xa6\xed\x20\xd9\
\xe5\x3d\xb7\x50\x99\xe7\xa3\x2e\xc1\x6a\x8c\x3c\x0f\x23\x0d\x56\
\x04\xe0\xee\xbb\xef\x82\xed\x38\xd8\xbb\x77\x2f\x3a\x9d\x05\x7c\
\xf7\x87\x3f\x88\xdd\xcb\x4b\xba\x9e\x20\x97\x3a\x02\xdd\xee\x16\
\xca\xc1\xcc\xa4\xe3\x5b\xe1\x58\x33\xc3\x71\x1c\x10\xd1\xb8\x24\
\x59\x02\x80\x8a\x2c\xe3\xcc\x2a\x96\x26\xd5\x4a\x75\x12\x20\x15\
\x01\xd4\xb3\xeb\x04\xaa\x81\x69\x47\x40\x68\xd6\xf6\xea\x63\xce\
\x3c\xcf\x1b\x4d\x05\x80\xe8\x5f\xdb\x60\x50\x93\x6d\xe1\xc8\xbd\
\xc0\xf2\x65\xb7\x24\x70\xa8\x9e\x9b\xc5\x12\x5d\xfc\x9a\xb1\x0b\
\x32\x05\x6c\x09\xb0\x43\x3a\xee\xc6\x71\x4f\xd8\xd4\xfd\x31\x60\
\x9c\x50\x70\x53\xcf\x92\x20\x5d\x59\x9b\x52\xf1\x38\x2e\xc9\x90\
\x26\x37\xbe\xe0\xc2\xf9\xa0\x74\x94\x2d\xf7\x7d\x7c\x19\xce\x35\
\xdb\xe9\xcf\x94\x6e\x69\xaf\x9a\x65\x1e\x3d\x7a\x14\x9d\x76\x0b\
\xed\x66\x03\x42\x88\xd2\x66\x06\x29\x25\x1e\x7b\xec\xf1\x8a\x35\
\x27\xb7\xf9\x85\x89\xe0\xba\xee\xc4\xe5\x57\x3e\x00\x15\x81\x93\
\x7a\x9e\x88\xd0\xdd\xda\x02\x94\xf1\x21\xbc\xe5\x25\xd8\x72\x09\
\x49\xaf\x1e\x35\x63\x9a\xb9\x61\x20\x00\x60\x38\x98\xd6\x2c\x70\
\x5c\x12\xa8\x0e\x50\x28\xf9\x5e\x2e\xc6\xc7\xa4\xb0\x51\xa4\x8b\
\xa5\x0a\x2d\x53\x1a\x60\x12\x48\x47\x94\x04\xad\xcc\x63\x08\x0b\
\x36\xeb\xc7\x98\x63\x60\x63\x06\x53\x01\x38\x71\xc1\x77\xa3\xf4\
\x7d\x8a\xa4\x48\x1e\x83\x9b\xed\x58\x1d\x62\x5e\x36\xdf\x42\x4a\
\x45\xb0\xc6\x97\x00\xa8\x68\x87\xb6\x48\x44\x30\x0d\xb3\x12\xf6\
\x12\x08\x0c\xc6\x60\x30\xd8\x46\x59\x5f\xae\xfe\x1e\x96\x78\xce\
\xc1\x83\x4a\xd6\x93\x59\xf3\x12\xa6\xb0\xa3\x49\xe0\x14\x6d\x63\
\x1e\x12\x5e\x0d\x4e\x57\x31\x30\x95\x4d\xba\x9d\xbc\xaa\xe1\x19\
\x3e\x4e\x33\x0b\x54\xb6\x87\x27\xde\x9b\x0b\x32\xe5\xb6\xc1\x3c\
\x3e\x55\xe5\xad\x02\x99\x33\x7c\x83\xd2\x8f\xe7\x3d\x96\x04\x29\
\xe6\xf0\x35\x1c\x65\xc6\x23\x0c\x94\x93\x9a\x9a\x14\x3e\x85\xf7\
\x69\x8a\x1c\x98\x38\x66\x5c\xa1\xfc\x10\x97\x7f\x1d\xcd\x32\x3f\
\xce\x30\x95\xd0\x18\x50\xed\xec\x5c\x44\x3b\xbc\x35\xcb\x32\xc7\
\xaa\xac\x4f\x3e\x1b\xd5\xf7\x0d\x64\x50\xfd\xb0\x8e\x55\x18\x27\
\x94\xb6\x1b\x11\x61\xd7\xae\x5d\x33\xb2\xa3\xe2\xe7\x88\x08\xeb\
\xeb\x1b\x93\x80\xa9\x08\xa4\x26\xe9\x92\x35\x40\x5d\x65\xc0\x54\
\x64\x78\x98\x24\xfd\x65\x4f\xae\xed\x7f\x3c\x27\x64\x24\xaa\x52\
\x35\x02\x19\x90\xa1\x52\x73\x09\x95\x02\xab\x1c\x01\x8c\xd2\x2d\
\xbf\xa3\xf6\x01\xa9\xc7\xc2\xc7\x93\xc0\x55\x54\x67\x33\x5c\x2f\
\x27\xef\xab\xf7\x46\xf2\x22\x25\x44\xb6\xbc\x40\x5d\x95\x22\x7e\
\x54\x7a\x19\x3f\x79\x3a\xa0\x19\x66\xfe\x0a\x0c\xa2\xea\x9b\xb9\
\xc2\x57\xda\xc9\x21\xa5\xc4\xee\x5d\xcb\xb1\x05\xbb\xcc\x7e\x11\
\x61\x34\x1a\xe1\xc4\xf1\x93\xb3\x49\x79\x59\x0d\x78\x6a\xc0\x34\
\x66\x77\xbb\x76\x2d\x8f\x5d\x43\xdb\x05\x27\x02\xe1\xc4\x89\xdc\
\xaa\x0f\x65\x64\x3c\xa0\x2e\xe2\x7a\xd5\x02\x53\x99\xd6\xc5\x33\
\x74\x95\xe4\xf9\xec\x56\x92\x09\xcd\x1c\x8b\x2a\x21\x05\x56\x9c\
\x22\x99\xc6\xdf\x48\x13\x48\x08\xe7\xed\x1a\x65\xef\xa7\xdb\x2e\
\xf0\xf8\xa2\x36\x71\x58\x28\x16\xd8\x4a\xda\x1c\x29\xc7\xbe\x3e\
\x2e\x9d\x51\x8e\x2b\x90\xf3\x01\x6a\x1e\x5a\x1e\x6f\xe7\xcd\xf9\
\x1b\xb8\x9c\x0c\x85\x23\xcf\x57\x86\x82\x4a\x80\x16\x60\x6d\x7d\
\x7d\x2a\xde\x73\xd5\x43\x35\xe1\xd8\x08\x21\xd0\x68\x34\xf4\xe2\
\x69\x36\x76\x94\xfb\x1c\x01\xc7\x8f\x1d\x03\x8a\x1b\x04\x32\xaa\
\xb7\xbd\xa8\xc7\x55\x2a\xe5\xcd\x6a\x80\x88\x57\xf4\xc9\x8b\x91\
\xb7\x13\xc7\xe5\x0c\x88\x4c\x90\xd9\x76\x34\xf7\x26\x23\x2a\x71\
\x95\x89\x22\x1d\x08\xe3\x24\xe3\x09\x8d\x0a\xa1\x3b\x42\x5f\xd1\
\xb1\x79\x21\x3f\x0b\x38\xee\xaa\xad\x01\x8a\xa9\xfc\xf7\xcd\xbe\
\x34\x01\xfe\x54\x20\xad\xe5\x02\xd4\x4e\x6a\x69\x5c\x75\x03\x97\
\xe7\xbc\xc5\x2c\x2b\xf7\x64\x32\x0c\xb3\xb4\xa3\x9f\xa7\xef\xc0\
\xd4\x8b\x8f\x99\xe1\x3a\x0e\x0e\x1d\x3c\x98\x88\x0b\xcf\x07\x9c\
\x00\xe0\xee\xbb\xee\x9a\x26\xe5\x55\xb5\x89\xd7\x20\x75\x95\x00\
\x53\xd1\xaa\xa4\x0a\x40\xa5\xa5\x3c\x1d\xcc\x0f\x4f\x74\xce\x4c\
\x9c\xb4\xed\x5d\x2d\x96\xd9\x66\x9f\xe4\xb6\x77\x00\xa7\xcd\xb1\
\x94\x00\x28\x85\x49\x9c\x62\x40\x94\x8a\x33\x29\xfb\xb7\xb2\xef\
\xb2\x96\xff\x48\x01\x50\xce\x2a\x38\xa5\xea\x71\x91\xc5\xbc\x60\
\x27\x93\x46\x8b\x82\xd7\x10\x17\x31\xac\x1d\x1a\x54\xf5\x37\xa4\
\xcb\x6e\xde\x92\x52\xe2\x9a\xfd\xfb\x2a\x03\xd3\x60\xd0\xc7\x70\
\x38\x2c\xb5\x9a\x9b\x08\x4e\xcc\x25\xd6\x11\x0c\x22\x81\x4c\xa1\
\xbc\x39\x82\x13\xe3\x89\xc7\x1f\x0b\xe7\x87\x32\x6d\xd5\x25\x26\
\x57\xa3\xa9\xc7\x55\xca\x98\x80\xf2\x65\x41\xf2\x4e\x2c\x55\x07\
\x4c\xf7\x64\x12\x86\x99\xab\xf2\x65\xed\xd8\x74\xb9\x7c\x6b\x94\
\x0c\xb8\xe7\x4c\xe2\x11\xf3\x29\x98\x55\xa3\x83\x43\xea\x75\x9c\
\xf8\xf2\x94\xa8\x12\x40\x44\x1a\x84\x10\xb9\xf5\x22\xe0\x4a\x3e\
\x4e\x34\xc6\xa2\x38\xdc\x7e\x06\xa0\xb2\xc0\x39\x6e\x32\xc0\xe4\
\x98\x13\xe5\x31\xac\x69\x95\x64\xe7\x38\x8f\x54\x02\xaa\x4b\xc1\
\xa2\x28\x97\x89\xec\x5a\x5a\xac\xbc\xa5\xc1\x60\x80\x40\xca\x39\
\xed\x53\xf1\x6f\x14\x96\x23\x62\x66\x2c\x2e\x2f\x63\xd7\xae\xe5\
\x4c\x9d\xbc\xed\x83\x93\x94\x12\xa7\x4e\x9e\x2c\x53\xf1\xa1\x6c\
\x2f\xa6\x1a\x9c\xae\x32\x60\x9a\xc6\x9a\x4a\xcb\x79\xa4\x4f\xc8\
\x20\x08\x20\x4c\x73\x4a\x43\x8c\x39\x02\x15\x8f\xc3\xc0\xec\x47\
\x82\xc7\x2e\x69\x9e\x04\xe1\x91\xb4\x96\x82\xa0\x9c\xd8\x12\x83\
\x28\xe9\x97\x20\x64\xc3\x55\xe1\x0a\x3b\xf7\xaf\x66\x53\x44\x1c\
\x83\x13\x4a\x00\x54\x24\x19\x66\xe4\xc4\x14\x44\x51\x0e\x28\xd3\
\xf8\x34\x9f\xd8\x6e\xd9\x52\xa6\x3b\x06\x54\x97\x1d\x40\xc5\x1f\
\xcd\xcc\x70\x5d\x27\x65\x69\x29\x33\xfa\xbd\x1e\x58\xca\x52\x6e\
\x3e\xde\xf6\x01\x54\x23\x6e\xec\x99\xd7\x11\xa0\x1c\x38\x8d\x25\
\x76\x13\xe0\xfb\x3e\x2e\x9c\x3f\x1f\x60\x7a\x93\xc0\x32\xb9\x94\
\xf5\xb8\x8a\x80\x69\x92\x25\xb3\x0c\x6b\xca\x32\x28\x80\x80\x20\
\xf0\x75\xb3\x40\xa7\xe4\x19\x35\x01\xa8\x76\xe2\xf2\x2c\x03\x62\
\x09\x80\xe2\x50\x96\xd4\xb7\x14\x61\x8a\x00\x02\x63\xb1\xa4\xa4\
\xa4\xc2\x89\x3a\x66\x11\xd8\x20\x8c\x13\x65\xa6\x8c\x04\x18\xe5\
\x01\x54\x78\x0b\xc1\x89\x42\x79\x30\x91\xe4\x49\xa0\xb1\x92\x46\
\x4c\x9c\xc8\x79\x1a\x4f\x51\xce\x4e\xa2\xf9\x86\x3f\x8a\x18\x16\
\x95\x3c\xfc\x93\x45\xa5\x6d\xcc\x39\xa5\xb0\xef\x52\x01\x14\xe9\
\x82\xad\xd5\x2a\x68\x0c\x86\x03\xcc\xa7\xb0\x38\x4f\x23\x75\xd1\
\xab\x9a\xad\x56\x54\x2a\x69\x56\x76\xc4\x21\xe9\xce\xb4\x54\x0f\
\x54\x5f\xf5\x59\xe3\x4b\x3b\xb4\xb2\xa9\x81\xe9\xd9\x0e\x56\x65\
\xc0\x28\xf1\x97\xf2\xa9\xc4\xb6\x77\xa1\xfa\xdb\x2a\x31\xa7\xb0\
\x10\x2a\x87\x2d\x0d\x38\x06\x12\xfd\x9c\xe5\xb6\x60\x58\x36\x48\
\x90\xb6\x8b\x13\x02\x6f\x84\x60\x34\x84\x37\xcc\x4f\x28\x8e\xda\
\x66\x67\xc0\x27\xf7\xb5\x89\xff\x51\x84\x6f\x14\x01\x5f\x12\x04\
\xb3\x80\x35\x06\x54\x44\xe3\x13\x88\x22\x51\x89\xe4\x5d\x8a\x18\
\x1e\x65\x04\x3e\x9e\x02\x02\xa9\x98\x13\xf1\xac\x73\xe2\x24\x6e\
\xb9\x03\x40\x75\x91\x00\x2a\xd1\x23\x63\xd7\xd2\x62\x6c\x6a\x29\
\xf9\xd6\x33\xa7\x4f\xe3\x62\xc6\xf1\x98\x19\x7b\xf7\xed\x87\x69\
\xa6\xeb\xe4\x55\x61\x47\x79\xe0\x44\x44\x61\x69\xa5\x32\x12\x5e\
\x5d\xc4\xb5\x06\xa6\xd2\x92\x5e\x95\x72\x44\x11\x63\x4a\x4e\x33\
\xcc\x17\x6f\x8f\xa7\x02\x51\x8e\x67\x3b\x05\x42\x96\x0b\x21\x04\
\x6c\xb7\x09\x77\x71\x17\x1a\x9d\x45\xd8\xb6\x0d\xcb\xb6\xe0\x38\
\x0e\x5a\x8b\x4b\x70\x1b\x0d\x58\x96\xea\x99\x63\x1a\x06\xa4\x54\
\xb1\xb4\xd1\x60\x90\x02\x9c\xb3\x27\x8e\xa1\x7b\xe1\x3c\x36\x56\
\xcf\x61\xf3\xc2\x79\x8c\xfa\x3d\x55\x83\x8c\x19\xc2\x30\x40\xc2\
\x88\xc1\x26\x25\x1c\xd2\x18\x40\x45\x20\x44\xf1\xbf\x93\x60\x95\
\xfa\x37\x09\x05\x9c\x49\x99\x2f\xb7\xc8\x6c\x1c\xeb\x0a\xcd\x18\
\x79\xc7\x2e\x55\xda\x28\x67\x52\x2b\x34\x45\x94\xf4\x22\xe4\x57\
\x96\xd8\x69\xc9\x6f\x9e\x9f\x35\x99\xd9\x2f\x2f\x2e\x54\x3e\x95\
\xfb\x83\xc1\xf6\xf6\xaa\x42\x22\x17\x11\x00\xc9\x68\xb5\x5a\xb9\
\x75\xf2\xaa\xb0\xa3\xb1\xe7\xe2\xb1\x1d\x47\x5e\xcd\x96\xae\x72\
\x60\x9a\x26\xe9\x95\x65\x4e\xf9\x5b\xa6\xf9\xef\x6d\x21\x10\x71\
\x7a\x62\x1d\xbb\x26\xb5\x14\x37\x82\x01\x61\x37\x60\x3a\x0d\xb4\
\x16\x16\xe1\x76\x16\xd1\xea\x2c\xa0\xbd\xd0\x41\xa3\xd9\x80\x63\
\xdb\xba\x72\xb4\x03\xdb\x32\x61\x9a\x26\x4c\x53\x01\x92\x61\x08\
\x18\x86\x01\x43\x08\x18\x42\x40\x44\x7f\x55\x30\x59\x7e\xc9\xf3\
\x01\xa8\x6a\xd4\xe7\xcf\x5d\xc0\x68\x34\xc4\xfa\xea\x2a\x4e\x3c\
\xf5\x24\x4e\x3c\xf9\x18\xd6\xcf\x9d\x45\xe0\x79\x10\x86\x80\x30\
\x0c\x08\x61\x44\x55\x1f\xb2\x73\xa8\x8a\x29\x65\x24\xbd\xcc\xe3\
\x31\x33\x53\x52\x5d\x92\xa9\x25\x1d\x7e\x31\x40\xa5\x83\x52\x34\
\x21\x9b\x39\x27\xcd\x2a\x3d\xc1\x71\xd6\x56\x5e\x1d\xa4\xd2\x2f\
\xd9\x01\x66\x53\xb8\x49\x9a\x6d\x46\x2f\xf9\xb4\x69\x1a\x95\x4f\
\xec\x99\x5b\x5e\xcc\x7c\x6c\x62\x86\xbd\x5d\xe9\x2e\x1d\xbd\x24\
\x6c\x6c\x6e\x00\x93\xdd\x78\x45\x8e\x3c\x14\x48\x2f\x35\x40\x5d\
\x45\xc0\x54\x26\xcb\x7a\x92\x45\x3c\xa4\x1d\xf2\xd8\xe3\xaa\x59\
\x60\x52\x14\xe2\x12\xa7\x13\x95\xe8\x0d\x54\x8e\x11\x15\x84\x99\
\x35\x33\xf2\xc9\x46\x60\xda\xb0\x6c\x1b\xb6\xdb\x46\x6b\x69\x19\
\x0b\x4b\x8b\x68\x34\x5b\xe8\x74\x5a\x70\x5d\x17\x8e\x63\xc3\xb2\
\x2c\x58\x96\x02\x22\x43\x68\x30\x32\x35\x10\x19\x02\xa6\x61\xe8\
\xe7\x62\x50\x32\x53\x60\x45\x11\x50\x5d\xbb\x77\x97\x0e\x4d\x31\
\xfc\x57\xbe\x02\xeb\x9b\x9b\x38\x7f\xfe\x02\x4e\x9d\x38\x89\xc7\
\xef\xbf\x07\xa7\x9e\x7e\x12\x1b\xe7\x57\x60\x98\x26\x84\xa1\x4a\
\xd8\x50\x32\x9b\x36\x02\xa0\x02\x16\xa5\x6f\x82\x39\x0d\x52\xc9\
\x7f\xeb\xd7\x32\xc5\x32\x24\x28\x5b\x3f\x06\x69\x57\x21\xa5\xe1\
\x9d\x8a\x5a\x7b\x24\x26\xfd\xe2\xda\x7a\x3c\x03\x48\xd1\xfc\x8b\
\xbd\x4e\x54\x0d\x69\xae\x57\x14\x09\x42\xa7\xdd\xae\xfc\xd6\xd5\
\xd5\xd5\xd2\x9d\x97\x67\xfb\x9e\xe3\xe3\xf0\xe1\xc3\x05\x75\xf2\
\x4a\x80\x53\xd1\x52\x86\x80\x13\x27\x4e\x86\x8c\x69\x5a\x82\x6d\
\xcd\x9a\x6a\x60\x9a\x8b\x9c\x37\x96\xb9\xcd\xcc\x92\x04\x49\x00\
\x06\x33\x30\x1a\x0e\xd0\x6a\xb7\x4b\x9d\x4f\x3c\xab\xd4\x52\x64\
\xf1\xe6\xc4\xee\x33\x23\x30\x6c\x48\x61\x03\x96\x0b\xab\xd1\x46\
\x7b\x71\x11\xad\x4e\x07\x8b\x4b\x8b\x68\x34\x5c\x38\x8e\x03\xdb\
\xb6\x60\x9a\x16\x6c\xdd\x33\xc7\x34\x0d\x08\x0d\x42\x86\x21\xe2\
\x2e\xa3\xba\xbe\x9d\x20\x8a\x40\xc9\x30\x04\x4c\xd3\x80\x65\xc6\
\x2c\xca\x10\xfa\x35\xa4\x00\x2a\x1c\x4b\xed\x06\x0e\x5f\xb3\x0f\
\xfe\xf3\x6e\xc5\x6b\x5f\xf3\x95\x38\x7d\xf6\x1c\x1e\xbc\xef\x7e\
\x3c\x7c\xf7\x9d\x58\x39\x7e\x04\x5b\xeb\x6b\x30\x4c\x0b\x86\x69\
\xc4\x96\xf0\x49\x4c\x29\x5a\xf1\x4a\x25\xe5\x69\x6b\xb9\xa0\x0c\
\x73\x4a\x02\x19\x53\xb4\xbd\x31\x80\x0a\x17\x0a\x99\xdc\xb3\x48\
\xd6\x9b\x9c\x8d\x9b\x90\xf8\xa6\xb0\xa0\x12\xc4\x28\x6b\x0b\xe1\
\x79\xcc\x51\x3b\x15\x6a\xca\x4c\xdc\x86\x30\xd0\x6c\x34\x2a\x6f\
\xe6\xec\xd9\x95\x39\xed\x47\x1a\x9d\x68\xc2\xcb\x77\xef\xd9\x3d\
\xe1\x02\x9b\x12\x57\x2a\xaa\x2c\x0e\xe0\xa9\x27\x1e\x9f\x26\xe5\
\x95\x69\xa9\x5e\xc7\x99\x6a\x60\xaa\x04\x4e\x13\xe5\x3c\x39\x73\
\x2e\x46\xd9\x52\x42\x5c\x08\x52\x04\x86\xc7\x06\xa4\x61\xab\xe6\
\x67\x96\x0b\x72\x9a\x68\xb5\x5b\x68\x75\x3a\x68\xb4\x5a\x68\x36\
\x1b\x68\x34\x1a\x11\x3b\x8a\xff\xaa\xce\xa2\xa4\x81\x45\x7d\x17\
\x06\x48\xaa\xf8\x0d\x13\x24\x4b\x48\x16\x10\xaa\x22\x2b\x44\xc8\
\x90\x88\x60\x50\x92\x31\x09\x0d\x4e\x04\xa1\x19\x8f\xd0\x81\x61\
\xb6\x18\x4d\xc7\xc2\x72\xbb\x85\xe7\xde\x70\x08\xbd\xb7\x7c\x35\
\x4e\x9d\x3d\x87\x7f\xf8\xcc\xdf\xe2\xc1\x2f\x7c\x16\x2b\x27\x8e\
\x82\x84\x50\x4c\x8a\x44\x0a\x34\x28\x19\x53\x4a\x81\x8d\x62\x49\
\x42\x4a\xb0\x18\x07\x29\x64\xdf\x17\x1a\x39\x78\x02\x40\x01\x69\
\xcb\xf9\xe4\x7e\xf4\xb9\x2b\xf6\x34\x93\xe2\x99\x81\x82\xe6\x29\
\xf7\xcd\x13\xa0\x0a\x8e\x83\x51\xa1\x80\x2b\x00\xb0\x94\x38\x76\
\xec\xd8\x7c\x5a\x5e\x94\x62\x4d\xea\x77\x2d\x53\xc0\x75\x92\x74\
\x57\x74\x2e\x3c\xf0\xc0\x03\xc0\xf4\xf8\xd2\x34\x50\x9a\x33\x6d\
\xae\x81\xe9\xd9\x08\x46\xd3\x2c\xe2\x65\x98\x14\x80\xa2\x66\x81\
\xdb\xdf\xc3\x31\x49\x2f\x03\x52\xc4\x12\x81\xb0\xe1\xdb\x2d\xc0\
\x72\x61\x58\x16\x4c\xd3\x84\xe3\x3a\x68\xb6\xda\x68\x34\x9b\x70\
\x1d\x1b\x96\x65\x2a\xf0\x11\x8a\xf9\x84\x7f\xc1\x0c\xc9\x12\x24\
\xf5\x15\xa3\xe9\x9c\x10\x02\x06\x14\xd0\x04\x01\x81\x28\x88\x5e\
\x0f\x45\x19\x55\x53\x34\xc1\x10\x09\x87\x9b\x20\x8a\xd9\x93\x08\
\xf3\x90\xe2\xb9\x23\x8c\x1d\x35\x6c\x13\xcb\xed\x83\xb8\xed\xfa\
\x0f\xe0\xfc\x3b\xdf\x8e\x07\x1f\x7e\x14\x7f\xf1\x47\xff\x15\x27\
\x9e\x78\x0c\x81\xef\xc1\xb2\x6d\x08\x61\x80\x44\xb8\x6d\x02\x89\
\x98\x25\x09\x26\x10\x49\xed\xce\x13\x20\xcd\xa0\x44\x98\x98\x9b\
\x60\x4e\x0a\xc0\x44\x9a\x7d\x85\x76\xbd\xbc\x1e\x1b\x29\x9b\x79\
\xa2\xb5\xc6\xa4\xba\x79\x85\x18\x34\x7b\x2c\xaa\x58\xee\xbb\x44\
\x00\x45\xc5\x0a\x80\xe3\xd8\x70\x1c\xa7\xc2\xa6\x08\x12\x8c\xb5\
\xb5\xf5\x39\x8a\x8a\xd3\x2b\xee\x09\x1a\xaf\x93\x57\x55\xba\x63\
\xdd\x17\x2c\x9d\x70\x0e\x1c\x3f\x76\x8c\x31\xde\x83\xa9\x6c\x8d\
\xbc\x9a\x31\xd5\xc0\x54\xb8\x32\x29\x63\x1d\xcf\x2d\x23\xe2\x7b\
\xde\xfc\x5c\x79\x5c\x10\x3d\x4a\xe6\x14\xb1\x84\x2f\x2c\x48\xb3\
\x09\x58\x2e\x4c\xbb\xa1\x4c\x0a\xa6\x62\x43\x8d\x56\x13\x8d\x56\
\x03\x8e\x63\xc3\xd0\xd6\x58\x29\xa5\xce\x76\x57\x0e\xbd\x20\x08\
\x20\x75\x72\x63\x40\x52\x01\x89\x9e\xb8\x0d\x21\xc0\x6c\xc4\x97\
\x29\x11\x02\x11\x20\x10\x04\x11\x48\x15\x57\x30\x01\x21\x05\x24\
\x31\x24\x31\x44\x12\x30\x23\xe6\x44\x9a\xc1\xe4\x74\x97\xd5\xdf\
\xf3\xda\xdd\x8b\xb8\xe6\x95\x5f\x8e\x2f\x7f\xc9\x0b\xf1\xf8\x33\
\xc7\xf1\x37\x7f\xfe\xe7\x78\xf0\x8b\x9f\x45\x6f\x7d\x0d\xa6\xed\
\xc0\x30\x54\x19\x19\x92\x88\x9c\x78\x2c\x13\x2c\x88\x24\x48\x0a\
\x08\xa1\xbe\x97\x10\x94\x8e\x39\x25\x8d\x12\x49\xc0\xd2\xff\xe5\
\x75\x4c\xe2\xa4\xc4\x97\xc7\x9e\xa6\xe9\x45\x89\xd7\x4d\x75\xe3\
\x55\x06\xa9\x8b\x0c\x50\x34\x4d\x9a\x66\xb4\x5a\x4d\x34\x5c\xb7\
\x42\xc6\x82\x7a\xa1\x1f\xf8\x3b\x24\x2f\x8e\x7f\x51\x66\x82\xd3\
\x70\x70\xe8\xd0\xa1\xb1\x3a\x79\x85\xe0\x54\x50\x7e\x2f\xcb\xa8\
\xa4\x94\x38\xf2\xcc\x33\x55\x5a\x5d\x4c\x03\xa4\x1a\x9c\x6a\x29\
\xaf\xb4\x9c\x97\xe7\xb0\x01\x00\x0c\x87\x03\x4c\x4e\x5e\x2d\xf3\
\xe1\x3c\x15\xa8\x88\x19\x3e\x19\x08\x0c\x17\xb0\x5c\xc0\x6e\x68\
\xa3\x02\x29\x5b\xb7\x65\xc2\x76\x1d\x38\x8e\xa3\x64\x3d\x66\x04\
\x7e\x00\x66\x25\xc1\x49\x19\x28\x10\x95\x52\xbf\xcf\x48\xc4\x84\
\x14\x8b\x32\x4d\x03\x52\x08\x04\x52\x22\x90\x12\xa6\x29\xa3\x0b\
\x39\x4c\x53\x31\x0c\x11\xe5\x6f\x84\x53\xae\x20\x82\x24\x09\xc1\
\x22\xb6\x10\x68\xef\x81\x48\xe6\x27\x85\xd7\xb3\x08\xff\xa7\x2c\
\xec\xbb\x3b\x2d\xec\x7a\xc1\x6d\x78\xf1\x73\x6f\xc2\xe3\x47\xdf\
\x8b\x3f\xfd\xa3\x3f\xc2\x03\x9f\xff\x07\x6c\x6d\xac\xc1\xb2\x1d\
\x5d\x1d\x40\x82\x24\x69\xe9\x4e\x80\x64\x0c\x4e\xcc\x02\x82\x0d\
\xb0\x96\xf9\x14\xd0\x26\x8c\x11\x49\xc0\xd2\xb2\x23\x92\xb7\x4c\
\xd1\x5c\xe6\x04\x7b\x22\xa4\x9a\x74\x6c\x07\xa0\x0a\x65\xbe\x0a\
\x80\x51\x5c\xbd\x62\x8e\x00\x55\x92\xca\xa8\x64\xec\x8a\x1f\xbb\
\xdd\x96\x17\x39\x8b\xb6\x38\x7f\xae\xa8\x4f\x17\xe5\x93\xe4\x29\
\xe0\x34\x31\x8f\x29\x21\xe5\x77\xbb\x9b\x65\x40\xa9\x6c\x5b\xf5\
\x7a\x5c\xc5\xc0\xb4\x9d\xea\xe2\x29\x29\x0f\x89\x8b\x73\xae\xee\
\x2a\x0e\x57\xeb\xea\x33\x7c\x32\x31\xb2\x34\x4b\x32\x75\x7c\x48\
\x03\x84\x30\x0c\x98\xa6\x09\xdb\xb2\x34\x28\x49\xf8\xbe\x07\x12\
\x02\x16\x18\x32\x10\xf0\x7d\x1f\x32\x08\xd4\x63\x96\x05\xc3\x10\
\xba\xb0\xa5\x9a\x60\x0c\xc3\x40\x10\x98\xca\xda\x2d\x84\xfe\xb7\
\x91\x88\xa1\x31\x02\x93\x61\x4a\xd5\x3e\x5b\xdd\x4c\x1d\xeb\x09\
\xc1\x87\x21\x88\xc1\xa4\x56\xa9\x8c\x74\xb7\x8a\x71\x06\x45\x08\
\xc3\x4a\xcc\x0c\x53\x58\x78\xf1\xcd\x87\xf1\xbc\x1f\xfc\x5e\x3c\
\xf2\xcc\x7b\xf0\x07\xff\xe9\x3f\xe3\x81\xcf\xfd\x1d\x7c\x29\x61\
\x5a\x16\x48\xb7\xee\x56\x52\x9e\xd0\xb2\x5e\xbc\x3f\x8a\x3d\x49\
\xc5\xaa\x44\xd2\x24\x41\x10\xc4\x11\x40\x21\x62\x4f\x42\xe3\x12\
\x8f\x03\x14\x32\x0d\x3a\x28\x27\xdf\x89\x73\xe7\xb9\x0a\x32\xdf\
\x76\x00\x8a\xe6\xd3\x60\x70\x1b\xd8\x40\x82\x66\xda\x83\x32\x2d\
\x2f\x4a\x5d\x41\xcc\x53\x8f\x51\x78\x6e\x2d\x2e\xc5\x75\xf2\x0a\
\x3f\x8c\xa6\x4b\x77\x49\xd0\x22\xa1\x40\xb6\xb7\xb5\x15\x60\xb2\
\xe1\x61\x16\x77\x5e\x3d\xae\x32\x60\xda\x4e\x75\xf1\xdc\x13\x68\
\xae\x1d\x48\x93\x2c\x49\x9b\x1b\x02\x61\x02\x96\x0b\xb2\x5c\x98\
\x86\x48\xb4\x37\x57\x31\x14\x43\x10\x4c\x53\xc5\x65\x98\x25\x64\
\xa0\x98\x88\x30\x0c\x08\x22\xf8\x81\x0f\xd2\xa1\x30\x21\x04\x98\
\xa5\x0a\x58\x47\x95\x13\x14\xeb\xf2\x03\x5f\xbb\xef\x4c\x18\x86\
\x80\x6f\x68\x60\xd2\x72\xa0\x15\x48\x04\xa6\x81\x20\x90\x91\x3c\
\x98\x65\x7e\xa9\xf9\x5d\x08\x10\xab\x2b\x51\x50\x7a\xa5\x29\x34\
\x9b\x4a\xae\x6a\x4d\xa1\x41\x52\x10\x5e\x72\xcb\x0d\x78\xee\x4f\
\xfe\x18\xee\x7d\xf4\x49\xfc\xce\xaf\xfc\x32\x8e\x3d\xfe\x08\x4c\
\xd3\x82\x61\x9a\xda\xe0\xa0\x98\x52\x28\xd5\xb1\x64\x90\x90\x90\
\x1a\x9c\x48\x83\x93\x20\xa1\x9e\x27\x86\xd0\xaf\x57\xb2\x9f\x7e\
\xaf\x10\x91\xb0\x97\x9d\xa0\x42\xf6\x44\x14\x37\x2c\x64\xca\x24\
\x09\x4f\x9b\xe0\x26\x10\x24\x9e\x14\xb9\x2f\xe5\xe6\x23\xec\x7c\
\xff\xdb\x09\x00\x13\x48\xec\xdb\xb3\x1b\x96\x65\x55\xda\x8b\xb2\
\x2d\x2f\xe6\x09\xb2\x7e\x61\x9d\xbc\xc9\xa6\x87\x22\x70\x0a\x97\
\x28\xbe\x1f\x60\x0e\x32\x5e\x0d\x48\x57\x31\x30\x71\xc9\xe7\xcb\
\xb4\xbd\xe0\x9d\xd8\xbb\x74\xfd\x36\x86\x0f\x03\x43\x2d\xdd\x59\
\x96\x09\x23\x6a\x43\xae\x2e\x0c\xa1\x2b\x2b\x80\xa0\x65\x2d\x80\
\x65\x80\x40\x52\x14\x4f\x22\xbd\xdb\x1c\x04\x4a\x5a\x33\x0c\xcd\
\x9c\x62\x5b\xb8\x61\x18\xea\xa2\x25\xd2\x96\x70\xcd\xa8\x84\x80\
\x0c\x02\xc5\xc0\x02\x13\xbe\x8e\x63\x19\x86\x92\xfb\x22\x23\x44\
\xc4\xa0\x8c\x10\x2f\x13\x67\x93\x50\x4e\x3d\xa5\x00\x42\x42\xb3\
\x17\x0a\x25\x35\x64\xab\xbb\xc2\x80\x32\x59\x18\xc2\xc6\x2b\x5e\
\xf8\x5c\x3c\xef\x57\x7f\x05\x7f\xfd\xe9\xbf\xc7\xef\xfe\xda\x2f\
\x63\xb0\xd5\x85\xe5\x38\x10\x24\x20\x43\xf6\xc4\x02\x4c\x31\x18\
\x85\x80\x25\x38\xae\x9b\x27\x28\x1d\x87\x8a\xc0\x49\xff\x1d\x97\
\xf6\x28\x4f\x11\x4a\xd6\x3a\xca\x0a\x7c\x13\x56\xdf\xc5\xf3\xe8\
\x54\xe7\xdd\x54\x80\xba\x74\xf0\xc4\x50\xf1\xca\xc9\x2d\x2f\xc6\
\xc1\x77\x38\x18\xa8\x96\x17\x17\xa5\xde\xbe\xd2\xa0\x9b\xcd\xb8\
\x4e\xde\x38\x08\x55\x37\x3d\xa8\x5f\x4e\x60\xab\xb7\x05\x28\xe3\
\x43\xb6\x88\x2b\x97\x00\xa9\x39\x4a\x2c\x35\x30\x5d\x89\x72\x5e\
\x95\x22\xae\xf3\x5f\xe1\x8c\x39\xee\x54\x3c\x69\x68\x34\x41\x96\
\x03\xd3\x10\x10\xa4\xf3\x7b\xa5\x7a\xa5\x61\x18\x3a\x96\x12\x17\
\x5d\x05\xb3\x06\x12\xcd\x5f\x84\x04\x07\x4a\xc2\x93\x86\x0f\x90\
\x7e\x9f\x61\x64\x56\xb0\x71\x55\x06\xc3\x10\x30\x2d\x1f\x86\x4e\
\x82\x65\xcd\x8c\x0c\xc3\x87\x6f\x99\xf0\x83\x40\x95\x29\xd2\xac\
\x29\x66\x4f\x12\x92\x2d\x55\x11\x82\x19\x0c\x03\x6c\x00\x92\xa1\
\x18\x1d\x04\x48\xe8\xf0\x12\xa5\x25\xb3\x78\x62\x8b\x8f\x82\x41\
\x04\x13\x04\xc9\xc0\x9e\x4e\x0b\xef\x7d\xeb\x1b\xf1\xf2\x2f\x7b\
\x29\xfe\xef\xdf\xf9\xbf\xf1\xb7\x7f\xfa\xdf\x61\xda\x36\xcc\x90\
\x3d\xe9\x38\x83\x08\x41\x8a\x19\x42\x30\xc0\x02\x24\x38\xc1\x98\
\x94\xc4\x28\x88\x95\xa4\xc7\x8a\x31\x85\xb1\x0f\x65\xb0\x28\x30\
\xdf\xa5\x62\x4f\xb1\xbc\x57\x08\x50\x15\x3a\xba\x97\xaa\xa5\x37\
\xf5\x69\xba\x44\xe0\x84\x02\x60\xa2\x8c\xab\x30\xde\xb7\x91\x37\
\x52\x4c\x9c\xb6\xf9\xc1\x25\xd9\x93\xaa\x93\xb7\x0f\xa6\x69\x46\
\xea\xdf\x38\x08\x4d\xb6\x84\x17\x7e\x8c\xfa\xee\xdb\x69\x0e\x58\
\x9b\x1f\x6a\x60\x9a\xda\x62\x7d\x92\xac\x97\xdf\xdc\xab\x6a\x00\
\x77\x4a\x01\xd6\x10\x94\x46\x66\x13\x64\x3a\x30\x0c\x3d\xe5\x48\
\x8e\x2b\x7f\x13\x01\x86\x48\xac\xb7\x19\x2c\x03\x48\x19\x44\x05\
\x5a\x15\x38\x29\x53\x83\x0c\x7c\x04\x9a\x15\x18\x3a\x86\x14\x5d\
\xbd\x61\x45\x05\x6d\x2a\x10\x9a\x31\x99\xa6\x09\xc3\x34\x55\x9d\
\xbc\x20\xd0\x31\x27\x1b\x41\x20\x61\x1a\x06\x82\x20\x80\x1f\x04\
\xf0\x7d\x5f\xd7\x1e\x53\xec\x29\x08\x0c\x04\x96\xa9\xf7\x01\xb0\
\x0c\x06\x43\x44\x6b\x4c\x43\x08\x40\xaa\xa9\x8a\x04\x60\x90\x88\
\x72\x9f\x22\x80\x48\x1c\x9f\x18\x4c\x08\x37\xee\xdf\x83\x8f\xff\
\xc0\xc7\xf0\xaa\xaf\xfa\x2a\xfc\xea\x4f\xff\x38\x7a\x1b\x1b\xb0\
\x5d\x37\xca\x5d\x0a\xc2\xca\x10\x61\x75\x74\xc1\x51\x1c\x8a\x42\
\xe7\x1e\x0b\xf5\x78\x28\x85\x26\x00\x8a\x88\x21\x10\xb2\x27\x11\
\x27\xe6\x8e\xc5\x9e\xd2\xf2\x5e\x12\xa0\x68\x86\xd9\x76\x9e\xe0\
\x74\x31\xb9\x93\x94\x12\xd7\x1e\xd8\x17\x97\x84\xca\x26\xba\x16\
\xb8\x0e\xfb\xfd\x3e\xa4\xe4\x54\x42\xf6\x5c\x41\x29\x67\xb4\x5a\
\xcd\xf1\x3a\x79\x55\xa5\xbb\x1c\x99\xf6\xdc\xb9\x73\xd3\xa4\xbc\
\x69\xf1\xa5\x9a\x35\xd5\xc0\x34\x95\x15\x95\x61\x4b\xa9\x2e\xb6\
\x54\xe2\x94\x2a\x9d\xc9\x9f\x00\x25\x98\xb6\xc6\x9e\x84\xd5\x5b\
\xb7\x17\x30\xc2\xd2\xfd\x1c\xba\xe2\x54\x7b\xeb\x40\xe7\x54\x85\
\x96\xf0\x90\x0d\x05\x3e\x45\x18\x2a\x84\x88\xe3\x2a\x22\xdd\x1e\
\x3a\x69\xa4\x30\x2d\x0b\x96\x65\xc3\xf7\x1d\x78\xa6\x07\xc3\x34\
\x75\x79\x7f\x1f\x86\x30\xe0\x79\x26\x6c\xdb\x47\x10\xd8\xd1\x67\
\xfa\x41\x00\xdb\xb2\x20\xa5\xda\x57\xa9\x0d\x12\x26\x33\xd8\x60\
\x30\x0b\x45\xec\xb4\x3d\xdd\x88\xa6\x71\xc5\x3e\x54\xe2\x2e\x45\
\xf9\x51\x0c\x86\x64\x82\x64\x95\x33\xc5\xcc\x30\x1b\x36\xde\xf4\
\x8a\x2f\xc5\x0b\x7e\xff\xff\xc1\x6f\xfd\xd6\xef\xe0\x93\xff\xfd\
\x0f\x61\x3b\x4e\x14\x7b\x0a\xc1\x49\x81\x10\xab\x5c\xa7\x10\xa0\
\x44\x08\x46\x22\x06\x2e\xfd\xb3\x52\xc8\x9e\x38\x96\x45\xa3\xc4\
\xdc\xec\xf4\xaf\xcd\x1d\xf9\xcd\x0a\xb9\x1c\x38\xe5\x24\xe7\xce\
\x03\x9c\x2e\x2a\x77\x62\xc0\xb6\xac\xb1\x4f\x26\x14\x74\x20\xd6\
\xf7\xd7\xd7\x56\x35\x40\x18\x73\xb8\x8c\xcb\xb1\x26\x22\x91\x13\
\x19\xa6\xea\x71\xa5\x54\x0c\x92\xf0\xc8\xc3\x0f\xa3\x04\x53\x2a\
\x93\x5c\x5b\x83\x52\x2d\xe5\x95\x92\xf7\x80\xc9\x2d\x91\xa3\x55\
\x63\xc8\x28\x92\xf9\x46\xd5\x57\xcd\x09\x50\xb2\x6c\x18\x14\x82\
\x92\x06\x26\x56\x26\x04\x61\x88\xc8\xa9\x17\x3e\xce\xcc\x60\x6d\
\xf1\x4e\x02\x13\x4b\x86\x0c\xcd\x12\x51\xcb\x0b\xe8\x84\x5b\x01\
\x41\x6a\x5a\x0e\x7c\x3f\xca\x6b\x12\x86\x01\xc3\x30\x61\xda\x36\
\x6c\xc7\x81\xe5\x8d\x60\x59\x36\x0c\xd3\x84\xef\x79\xf0\x1c\x5b\
\xd5\xcc\x33\x2d\xf8\x81\xad\xcd\x11\x12\x32\x08\xe0\xdb\x16\x7c\
\x3f\x50\xf2\x9e\xde\x2f\xc9\x0c\x4b\x1a\x08\xa4\x81\xc0\x60\x58\
\x06\x22\x06\x14\x08\x8a\xab\x4a\x80\xa2\x1b\x51\xec\x5e\x33\x48\
\x31\x14\x66\x46\xc0\xea\xaf\x20\xc6\xa1\x3d\x4b\xf8\xd1\x1f\xf8\
\x1e\xbc\xec\x2b\xbe\x02\xbf\xf1\x73\xff\x1c\xfd\xad\x2e\x2c\xdb\
\x01\x11\x41\x52\x32\x8e\xa4\x6d\xdf\x3a\x9e\xa4\x58\x14\x6b\x8b\
\x79\xd8\x02\x04\x10\xa1\x84\x47\x2a\x76\x90\xc7\x9e\x52\xcd\x0f\
\x91\x6d\x56\x48\x09\x35\x68\x76\x70\x02\xa6\x98\x22\x4a\x9e\x4d\
\x17\x03\x9c\x98\x19\xed\x76\x2b\x5d\x52\x2a\xd1\xa7\x6b\xad\x37\
\xc0\x30\x08\x00\x06\x0c\x02\x5a\xb6\x05\xd7\xb6\x70\xfa\xcc\x59\
\xb5\x70\x8a\x98\x2a\x55\x6e\xcd\x3e\x19\x87\xc6\xb7\x75\xe8\xf0\
\xe1\x1c\x50\x9f\xee\xbc\x9b\xf6\xf8\x53\x4f\x3d\x09\xe4\xd7\xc8\
\x2b\x5b\x8e\xa8\x36\x3f\x5c\xe5\xc0\xc4\x25\x59\x53\x99\xe4\x5a\
\x19\xae\x98\xbc\xd1\x10\x83\x7e\x0f\xad\x76\x67\x7b\xa0\x04\x03\
\x23\xb3\x01\x98\x16\x8c\x48\xba\x93\x3a\xc6\x23\xe3\x55\x9f\x9e\
\xa4\x95\xac\x27\x21\x03\x40\x0a\x35\x19\x87\x5f\x49\x49\x6a\x2a\
\xb6\x84\x51\x2c\x35\x41\xb2\xd6\xf6\xb5\x74\x27\x08\x90\xac\xac\
\xe4\x32\x50\x52\x9e\x10\x10\x86\x09\xcb\xb6\xe1\xb9\x2e\x2c\xc7\
\x85\x65\x3b\x30\x2c\x13\x43\xd3\x82\xe3\xd8\x30\x2d\x0b\xa6\x61\
\xc2\xf7\x1d\x04\xbe\x8f\xc0\xf7\xe1\x79\x3e\x6c\xcf\x82\x63\xdb\
\x0a\x14\x59\x82\x25\xc3\x97\x12\xbe\x69\xc0\x32\x4d\x58\x52\xe5\
\x57\xb1\x8e\x8f\x89\x20\x9c\xbe\x55\x6c\x07\x89\xb2\xb8\xa4\xc1\
\x2a\xfa\xc1\x88\x60\x30\x2b\xf3\x84\x64\x04\xcc\x68\x3b\x36\xde\
\xfe\xba\xaf\xc4\x73\x6f\xfd\x4f\xf8\xe7\x3f\xf2\xa3\x38\xf2\xe8\
\x43\x70\x1a\x8d\x54\x2d\x3d\xd6\xa5\x8a\x92\x66\x07\x08\x65\x0a\
\xe1\x10\xe8\x18\xb1\xac\x27\x84\xb6\xbd\x0b\x48\x40\xb3\x4b\x09\
\x42\x7e\x62\x6e\x68\x88\xe0\xbc\x4e\xba\x05\x93\x64\x2a\xc8\x51\
\x60\x29\x9f\xea\xd8\x2b\x49\x18\x78\x87\x2f\xa8\x86\xeb\x00\x48\
\xb7\x34\x01\x03\xe7\xb7\x7a\x38\xba\xd1\x4b\xe4\xcb\x11\xa8\xef\
\xa1\x6d\x9b\x68\x5d\x7f\x1b\x3e\xf1\xeb\xbf\x83\x3b\xff\xee\x33\
\xb8\xff\x73\x7f\x8f\xb5\x95\xb3\xe8\x75\xbb\x60\xd6\x69\x01\x44\
\x15\xf6\xbf\x1c\xa0\x45\x75\xf2\x4a\xc6\x90\x8a\x5e\x96\xad\xa5\
\xf8\xc8\x43\x0f\x63\x46\x50\x9a\x14\x52\xa8\xc7\x55\xcc\x98\xa6\
\x75\xb2\x9d\xd2\x2c\xb0\xda\x85\x31\x0d\x94\x86\x86\x0b\x18\x21\
\x28\x69\x33\x81\x94\x91\xf9\x40\x01\x49\xc8\x94\xa4\x9a\x0c\x75\
\xa0\x5f\x06\x01\x7c\xbd\x2d\x45\x02\x24\xa4\xaf\x12\x6a\x83\xc0\
\x4f\xc5\x9d\xa2\x9c\x1f\x9d\x53\x24\x03\x09\x19\xf8\x0a\xe8\xa2\
\x78\x93\x01\xc3\xb2\x60\x3b\x2e\xec\x46\x13\x96\xe3\xc2\x30\x2d\
\x08\xc3\x80\xed\xe8\x24\x5e\xd3\xc0\x70\x68\x63\x34\x74\x31\xd2\
\x89\xbd\xae\xeb\x24\x12\x72\x49\x5b\xcc\x2d\xd8\xa6\x89\xc0\x92\
\x08\x4c\x53\x39\xf9\xc2\xd6\xeb\xac\xdc\x77\x6c\x00\x82\x8c\xb0\
\x7c\xbb\xf6\x3b\x51\xa2\x86\x5d\xdc\xf1\xd6\x00\x60\x1a\x84\x80\
\x19\x1e\x29\x3b\xf8\x73\x9f\x73\x00\xbf\xf2\xeb\xbf\x86\x5f\xfb\
\xb7\xbf\x89\xbf\xf9\xe3\x3f\x80\xe5\x38\xca\x92\x4c\x89\xbc\xa5\
\x84\x13\x2f\x94\xf9\x42\xe3\x44\xe8\x28\x8c\x65\x3d\x11\xb9\x08\
\x23\xb3\x86\xd2\x41\x53\x80\xc4\x1c\xf7\xc3\x50\x21\xa7\xd0\x35\
\x99\xec\xee\x3b\x81\x3d\x6d\x4f\xb1\x9b\x6f\xe9\xed\x19\x2f\xa1\
\xc5\x4e\x67\xec\xb1\xa1\xe7\xe3\xe9\x0b\x1b\x60\xbd\x90\x42\x18\
\x47\x24\xc2\x96\x2f\xb1\xb8\xb4\x84\xf7\xbe\xe3\xed\x78\xcf\xd7\
\x7d\x2d\xb6\x06\x43\x6c\x76\xbb\xd8\xd3\x69\xe2\x73\x5f\xfc\x02\
\x3e\xfe\x91\x0f\xc3\x1b\x79\x98\x6a\xf4\x43\x85\xc6\x84\x44\xa9\
\x3a\x79\xb9\x50\x53\x5a\xd2\x8b\x87\x94\x12\x8f\x3d\xfa\x48\x08\
\x40\xc1\x8c\x4c\xa9\x66\x4e\x35\x30\x15\x4a\x77\x45\x72\xde\xc4\
\x66\x81\xdb\xbd\xf6\x15\x28\x09\x0c\x84\x03\x18\x66\x0a\x94\x58\
\x4a\x48\xa9\xe4\xb8\x74\x17\xd7\x84\x8c\x27\xa5\x8a\xc3\x68\xf3\
\x03\xab\xfa\x43\x0a\xac\x74\xa5\x07\x6f\x38\xd2\xcf\x29\xb9\x8d\
\xf5\x05\x25\xa5\x5e\x93\x73\x0c\x4c\x61\xab\x08\x21\x94\x73\xcf\
\xb4\x1d\x38\xcd\x3e\x2c\xa7\x01\x91\x04\x26\xb7\xa1\xe3\x50\x26\
\x46\x8d\x06\x82\x76\x4b\x35\x12\x1c\x8d\x30\x18\x0c\xd1\x68\xb8\
\xf0\x5a\x4d\xb8\x8e\x03\xdb\xb6\x95\xc4\x17\x58\xb0\xac\x40\xd9\
\xcc\xa5\x02\x28\xdb\x90\x90\x96\x01\x02\x60\x19\xda\xfe\x1d\x16\
\x80\xcd\x4c\x44\x94\x99\x6e\x09\x04\x61\x08\x04\x02\xf0\xa5\xc4\
\x81\xc5\x0e\x7e\xec\x87\x3e\x86\x2f\xfd\x8a\x97\xe3\xd7\x7e\xfa\
\x27\x30\x1a\x0c\x60\xd9\x36\x40\x2a\x46\x15\xb6\xc8\x50\xf2\x11\
\x8d\x81\x54\xf4\xd3\x33\xa2\xa4\xdf\x50\x32\x25\x5d\xa8\x36\xea\
\x97\x90\x29\x5a\x1a\xb6\x8e\x27\x6d\xe3\xa7\x54\x0b\xdd\x12\xec\
\x69\x07\xc1\x65\xa7\xe1\x69\x71\xa1\x93\x90\xf6\x94\xbc\xf7\xe4\
\xd9\x0b\x38\xbf\xb9\x85\x46\x58\xcd\x5e\xea\xde\x5e\x42\x19\x76\
\x54\x3f\x2f\x75\x5c\x76\x2f\xb4\xf1\xd2\x43\x07\x60\x12\xe1\x45\
\x87\xde\x05\x30\xf0\xb1\x0f\x7d\x03\x4c\x1d\x47\x9d\xdc\xc1\x83\
\x4a\x31\x27\x22\x11\x55\x40\xaf\x56\xa4\x35\xff\xf1\x24\x6b\x1a\
\xf4\xfb\xdb\xa9\x26\x5e\x8f\x1a\x98\x72\x99\x51\x15\x39\x2f\x06\
\x27\x66\x3e\xf6\xc4\x23\xfc\x9c\x9b\x6f\xa3\x4a\x9f\x9c\xba\x58\
\x18\x1e\x0b\x0c\xc8\x01\x44\x06\x94\x82\x40\xc5\x68\xa4\x54\x13\
\xaa\x88\x3b\xb6\x46\x57\x2a\x33\x64\xe0\xab\x09\x30\x0c\xe6\x4b\
\x99\x00\xb6\x00\x81\xe7\x21\x18\x0d\xe1\xfb\xaa\x14\x91\x92\xf7\
\xa4\x76\xda\xc9\xc8\xe5\xc7\x52\xc6\xd3\xbd\x2e\xe1\x23\x84\x01\
\x32\x0c\x0c\xfb\x5b\x09\x60\x32\x61\x39\x2e\x9c\x86\x0b\xd3\xb2\
\x60\xdb\x0e\x86\xfd\x1e\x36\xd7\xd7\xd0\x68\x36\xd1\x6c\xb5\xd0\
\x6c\x35\xf5\x7e\x49\xf8\xbe\x0f\x6b\x34\xc2\x48\x37\x23\x74\x6c\
\x1b\x81\x13\x80\x59\xcb\x3f\x32\x76\xb2\x59\xa6\xa1\xf3\x9d\x04\
\xcc\x6c\xfb\x6a\x8c\xe7\xac\x86\x15\x24\x04\xa0\xdb\x75\x30\x84\
\x63\xe1\x1d\x5f\xf5\x4a\xdc\x78\xfd\x7f\xc2\xcf\xfc\xc8\x8f\xe0\
\xe4\xd3\x4f\xc0\x76\x5c\x75\xec\x82\xd0\xdc\xa0\x18\x91\x10\x88\
\x00\x2b\x39\xb3\x2a\xa5\x4f\x1d\x17\xc1\x0c\x29\x04\x84\x9e\x61\
\x42\xf7\xa2\x02\x28\xa1\x63\x4e\x49\xe1\x2d\x36\x46\x64\x5d\x7b\
\x53\xd9\x53\x21\xa8\x6c\x07\x5a\x76\x9e\x35\x99\xba\xfc\x55\x08\
\x34\xbd\xe1\x10\x4f\x9c\x3a\x83\x91\x04\x86\x43\x2f\xaa\x64\x6f\
\xea\xa4\x6d\x4b\x57\x2d\x09\xeb\x33\xde\xb4\x67\x19\x46\x22\xf9\
\xfa\xbd\x5f\xf3\x16\x7c\x9f\x10\x53\x15\xb7\xb2\xdf\x8c\x99\xe1\
\xba\x6e\xa2\x4e\xde\xc4\xee\x4a\xa5\x1f\x27\x22\x8c\xbc\x11\xd6\
\xd6\xd6\xfc\x1c\xb6\x34\x29\x36\x5d\x33\xa5\x1a\x98\x4a\xb3\xa5\
\x4a\xe0\xc4\xcc\x01\x91\xd0\xda\x17\x27\x67\x9e\x82\x53\x2c\x6d\
\x0c\x27\x00\x23\x49\xe8\xc3\x04\x99\x06\x4c\x8a\x01\x42\xb1\x24\
\x19\xc9\x6d\x42\x5b\xbc\xc3\x36\xe5\x71\xff\xa5\x90\x55\xa9\x59\
\x9a\x01\x0d\x4c\x41\xb4\x1d\x7f\x34\x82\xef\x0d\xe1\x0d\x87\x91\
\xc1\x41\x06\x3e\x7c\x4f\xdd\xe7\x4c\x79\xd1\xb0\xfb\xab\x52\xae\
\x14\x20\x7a\x83\x01\x0c\xb3\x0b\x32\x2d\x08\xd3\x82\x69\xd9\xb0\
\x1c\x47\x19\x0d\x84\x80\xe3\x38\x70\x1a\x0d\x78\xc3\x21\x46\xc3\
\x21\x86\x83\x01\xbc\x91\x87\xe1\x70\x88\x56\xab\x85\x46\xa3\xa1\
\x0c\x11\x52\xa6\x64\x3e\x66\x86\x67\xe8\x12\x43\x9a\x31\x09\x98\
\x3a\x1e\xa4\xf1\x36\x31\x33\x14\x15\xf6\x0e\x01\x8a\x84\x96\xff\
\x40\x78\xf1\x4d\x87\xf0\x2f\xff\xed\xaf\xe1\xe3\x1f\xfb\x5e\x1c\
\x7d\xfc\x61\xd8\x4e\x43\x81\x93\x54\x74\x28\x4c\x52\xa6\x04\xe8\
\x84\x1f\x25\x32\x3f\x62\x54\xa9\x02\x0a\x34\x43\x93\x88\x86\x2a\
\x10\x44\x0c\x4b\x89\x4a\x11\x63\xae\xbd\x04\x7b\x02\xca\xdb\xca\
\x27\x82\x13\x5d\xda\x29\x4d\x08\x91\x68\x12\xa8\x58\xfc\x56\x7f\
\x80\xa3\x27\x4f\xc3\xb2\x1d\x38\xae\xab\x3b\x24\x5b\xb0\x74\xf5\
\x7b\x43\xc4\x8d\x26\x0f\xef\xdb\x85\x96\x95\x76\xe6\xb5\x1d\x1b\
\xa6\x65\x23\xf0\xbd\x54\xcc\x71\xaa\xaf\x9a\x8a\x65\xbc\xec\x73\
\x55\xab\x3c\x14\xb1\x26\x5d\xfd\x64\x12\x53\x9a\xc4\x9e\xea\xd8\
\x52\x0d\x4c\x33\xc5\x9a\xf2\x2c\xe2\xd9\x13\x4d\x40\x37\x0b\x6c\
\xb6\xda\x48\xb6\xb1\xe5\x29\x93\x8d\x0f\x01\x29\x4c\xd8\xda\xea\
\xcd\xcc\x60\x6d\x1a\x08\x2f\xfa\xa8\xe8\xa8\x50\xf9\x45\xe1\x84\
\xce\x52\x6a\x29\x41\x19\x0c\x02\x96\x91\x63\x2c\xd0\x85\x5a\x59\
\x4a\x04\xbe\x87\xc0\xf3\xe0\x7b\x1e\xfc\xd1\x50\xc5\xa2\xbc\x11\
\x02\xdf\x8f\xad\xc9\x09\x07\x5c\x7c\x21\xa7\x9b\xf3\xf9\x42\x01\
\xa3\x30\x4c\x8c\x4c\x4b\x95\x2c\xb2\x14\x83\x1a\xd8\x36\x6c\xd7\
\xc5\xa0\xb7\x85\x66\xbb\x8d\x61\xbf\x15\x35\x4f\x1c\x0e\x06\xb0\
\x1d\x07\xae\xeb\xaa\x2a\xd4\x8d\x06\x5c\xd7\xc5\xc8\x73\xd1\x6e\
\x34\x60\xdb\x56\xb4\xd2\x0e\x7b\x3b\x19\x42\xc0\x17\x9c\x60\x4b\
\x94\xa9\x5b\x37\x9e\x1e\x13\x5a\xe6\x4d\xa1\x1a\x16\xfa\x92\x71\
\xd3\x81\xdd\xf8\x8d\xff\xf0\x9b\xf8\x99\x9f\xfd\x05\x7c\xf6\x2f\
\xff\x1c\xb6\xeb\xaa\x9c\x2e\x0a\x63\x48\x61\x55\x8c\x44\x2e\x13\
\x27\x93\x95\xd5\xd6\x93\xc0\x15\x15\xac\x05\x22\x50\x83\x36\x46\
\x44\x62\x1d\x25\x7a\xfd\xe4\xc4\x9d\x92\x13\x5b\x15\x80\xba\x1c\
\xe5\x3c\x22\x82\xeb\x38\x71\xec\x52\x32\xce\xaf\xad\xe1\xc8\x33\
\xcf\xa0\xdd\x59\x80\xd3\x68\xaa\x6e\xc9\xae\x03\xc7\x76\x52\x00\
\x25\x99\xf1\xd2\x1b\xae\xcb\xd9\x37\x2a\x9f\x1a\x58\x50\x01\x3c\
\x9b\x5c\xbb\xb0\xb8\x84\xdd\xbb\x77\xa5\x2a\x8b\x4f\x04\xa1\xfc\
\x28\xd4\xd8\x77\xef\x76\xb7\x80\xd9\xca\x11\xd5\x8c\xa9\x06\xa6\
\x52\xb1\xa5\x59\x63\x4d\x6a\x6a\xd2\x52\x18\x97\xf4\x10\x79\x20\
\x48\x61\xc1\x34\x28\x32\x33\x84\x4c\x89\x88\x54\x45\x83\xd0\xc9\
\x44\x71\x1f\x25\xf5\x61\xa1\x45\x5c\x17\x51\xd1\xec\x88\x10\xe6\
\xdd\x30\x3c\x6f\xa4\x64\x3c\xdf\x43\x30\x1a\xc1\xeb\x6f\x61\xd0\
\xef\xa9\xd8\x93\xaf\x1d\x73\xc9\x2b\x38\xb1\x32\x45\xa2\xd9\x9e\
\x08\x5b\x47\x68\x70\x94\x41\x00\x92\x01\xa4\x30\xe0\x8f\x86\x00\
\x01\x23\xc3\xc4\xc0\xb2\x30\xd8\x6a\x60\xb0\xb5\x85\x46\xbb\x8d\
\x5e\xb7\x8b\x5e\xa7\x83\x85\xc5\x45\xb8\x8d\x86\x8a\x43\x05\x01\
\x7c\x3f\x80\xef\xf9\x9a\xd1\x49\xb8\x9e\x03\xdf\xd5\xf9\x56\x42\
\xc0\x36\x8d\x44\xb3\x41\x03\x06\x11\x0c\x4a\xe7\xc5\x4c\x68\x28\
\xab\x63\x53\x04\x32\x00\x92\x02\xfb\x3a\x2d\xfc\x8b\x9f\xfe\x04\
\x7e\x61\x71\x11\x7f\xf5\x87\xbf\x0f\x5b\xb3\x3c\x22\xc5\x8d\x74\
\x31\x0d\x1d\x53\xe2\xb1\x0e\x4a\xac\xcd\x24\x61\x5b\x0f\x01\x28\
\x69\x4f\xdb\xf2\x65\x78\x7c\x50\xd0\x40\x23\x8c\x3b\x15\x80\x53\
\x59\x80\xda\x1e\xb0\xec\x1c\xad\x22\x9d\xc0\x1d\x9a\x58\x24\x4b\
\x1c\x3f\x79\x0a\xc7\x9e\x7a\x12\x9d\xa5\x65\x38\x6e\x13\x6e\xab\
\x05\xb7\xa1\x9a\x55\x3a\xae\xea\xa2\x6c\x59\x16\x1a\x8d\x06\x16\
\x1c\x6b\x6c\x9b\x5e\xa0\x12\xba\xa7\xa2\x13\x17\x01\x09\x8d\x1d\
\xcf\xc0\xf7\x61\x1a\xc6\x98\x55\xbc\x50\xd2\xab\xa6\xeb\x49\x94\
\x4f\xb0\x9d\x06\x48\x35\x40\x5d\xc5\xc0\xc4\xf3\x90\xf3\xe2\x85\
\x34\x57\x5a\xf3\x7a\x92\x30\x20\x0b\x2c\x04\x0c\x9d\x38\x1b\x56\
\x6c\x08\xab\x7a\x1b\x96\x15\xb5\x66\x48\x76\x72\x85\xd6\xc8\x43\
\x40\xe2\xb0\x30\x9d\x76\xf0\x09\x26\x15\xff\x90\x3e\x20\x03\x04\
\xde\x08\xbd\xcd\x75\x0c\xb6\xb6\xe0\x7b\xa3\xa8\x49\x5a\xd4\x2c\
\x2d\xcc\xd1\x49\xb1\xa7\x98\x31\x05\xa1\x26\x1f\xf6\x30\x32\x04\
\x84\x61\x41\x98\xa6\x6e\x8b\x6e\x82\x35\x0b\xf3\x86\x03\x0c\x7b\
\x5b\x18\x6c\x6d\xc2\x6e\x34\xd1\xdf\xea\x62\x34\xe8\xa3\xdd\xe9\
\xc0\x6d\x34\x23\x99\x6f\xd8\x6c\xc2\xf7\x7d\x78\xbe\x0f\xbf\xa1\
\x24\x3e\x02\x69\xc6\x44\x3a\x29\xd7\x02\x5b\x4a\xde\x63\x0d\xc8\
\xc6\x94\x95\x74\xe4\xbc\x0e\xbf\x83\xfe\x5a\x8b\xae\x83\x1f\xff\
\xa1\xef\xc5\x75\x87\x0e\xe1\x3f\xfe\xcb\x9f\x87\xe5\x68\xe6\x24\
\xa5\x06\x28\x7d\x3c\x39\x06\xaa\x14\x7b\xca\xca\x57\x50\xf6\x7c\
\x21\x95\xb4\x07\x29\xc7\xcd\x10\xa1\xa4\x07\x8e\x4d\x11\x49\x70\
\xca\x41\xd8\xe9\x00\x75\x99\xc9\x79\xcc\x4a\x9a\x33\x8c\x28\xf9\
\x9b\x25\xe3\xe4\xa9\x53\x38\xfe\xd4\x13\x68\x2f\x2c\xc2\x6e\xb4\
\xe0\x36\x5b\x68\xb4\xd4\x5f\xb7\xa9\x18\x94\x69\xd9\x78\xde\x73\
\x6f\x81\x99\xd3\xf9\xf6\xc8\xd9\x15\x04\x9e\x0f\xc3\x34\x2a\x5c\
\xc6\x93\x63\x4c\xcd\x56\x13\xa6\x39\x5e\x68\xb6\x8a\x11\x22\x65\
\x13\xd7\xd7\xe4\xa9\xd3\xa7\x80\x62\x37\xde\x24\x47\x6f\x9d\x60\
\x5b\x03\x53\x25\xb0\xaa\x0a\x4e\x00\x54\xe5\xe2\x72\xb2\x83\xb2\
\x86\x07\x64\xc0\x8c\x24\x3c\x09\xe9\xfb\xca\x05\xa7\xdb\x56\x18\
\xa6\xa9\xa5\xbc\x64\x65\x09\x65\xb3\x0e\x99\x8c\xd4\x8f\x29\x29\
\x09\x08\x7c\x0f\x5e\xe0\xeb\xc9\x55\x62\xb0\xd5\xc5\xea\xca\x19\
\x8c\x06\x83\x48\x2a\x4c\x6c\x0a\x48\x94\x39\xe2\x64\x62\x70\x8a\
\x3d\xe9\x16\x18\xa6\x09\xb7\xdd\x49\x48\x89\x01\xbc\x41\x00\x5f\
\x10\x84\xa1\x4b\x17\x05\x02\xd2\xf7\xe1\x8f\x06\x18\xf6\x7a\x18\
\xf6\x7b\x18\xf4\xb6\xd0\xeb\x2c\xa0\xd1\x6e\xa3\xdd\x5b\xc0\xb0\
\xd3\xc1\xb0\xdd\xc6\x68\x34\xc2\x68\x34\x82\xa7\x63\x5d\xaa\x6f\
\x13\xb4\x9b\x50\x03\x27\x01\x92\x0d\xb0\x69\x44\xd6\x6d\x22\x9a\
\x16\x52\x88\x00\x8a\x74\x27\x5d\x9f\x18\x4d\x32\xf1\xed\xdf\xf0\
\x6e\x34\x1a\x0d\xfc\xc6\xcf\xfe\x14\x0c\x3d\xa1\x86\x31\xa3\x38\
\xb1\x96\xd3\x00\x54\xb0\x4a\x17\x10\x90\x14\xc7\x9d\xf2\xdc\x7a\
\x91\xa4\x87\x1c\xc7\x5e\x26\xee\x94\x0f\x50\x79\xa2\xe5\xac\xa4\
\x88\xe6\xd1\x62\x30\x4d\x13\x98\xb1\xd0\x69\xa3\xd5\x6c\xc6\x95\
\x49\xc0\x68\xb9\x2e\x56\x4e\x9c\xc0\xe6\xea\x05\x18\xa6\x0d\xd3\
\x71\xe0\x36\x9a\x0a\x98\x5a\x0a\xa4\x2c\xc7\xc5\xe1\x83\xd7\x8e\
\x7d\x7d\x06\xf0\x9f\x7f\xf7\x77\xe7\x5a\xdb\x95\x99\xb1\x67\xcf\
\x5e\x98\xb9\x40\x37\x05\x84\x26\x50\x26\x22\xc2\x33\x4f\x3f\x13\
\x32\xa6\x00\xb3\x57\x17\xaf\x41\xa9\x06\xa6\xa9\xec\xa9\x8c\x84\
\x97\x38\xe1\xd4\x5b\xb6\x36\x37\xb1\x67\xff\x81\x09\x0b\x3a\xf5\
\x0f\x8f\x05\x02\x61\xc4\xa5\x86\xb4\x19\x81\x88\x60\xd9\xb6\x6e\
\x2b\x2e\x60\x98\x86\x02\xa6\x0c\x23\x93\x41\x00\x19\x30\x24\xab\
\x96\xe2\x52\x02\x32\x50\x8c\x29\x8c\x95\x0c\xfb\x3d\xac\xae\x9c\
\x45\xbf\xbb\x19\xb5\x7d\x0f\x73\x9b\x42\x09\x2d\x4c\x7e\x0d\x41\
\x49\x15\x43\x15\x71\xa9\xa3\x50\xd2\xd3\x5f\xb9\xd1\x59\xc2\xd2\
\xfe\x6b\x10\x76\x58\xf7\x3d\x0f\x83\xad\x2d\xf4\x36\xd6\x00\x1a\
\x69\xf6\x64\xa9\x5e\x4e\x81\x11\xc5\xb2\x46\xfd\x1e\x06\x5b\x5d\
\xb8\xcd\x16\xfa\x0b\x5d\x0c\xfa\x4b\x68\x0f\x06\x18\x0e\x06\x18\
\x8d\x46\x71\x22\x6e\xb8\x6f\x9a\xa1\x45\x60\xe9\xd8\xba\x0e\x9b\
\x76\x25\x32\x20\x68\x5c\xc6\xa3\x82\xe9\x43\x10\x60\x85\xef\xb7\
\x4c\x7c\xd3\x3b\xbf\x06\xcd\x66\x03\xbf\xf2\x13\xff\x0c\x81\xef\
\xab\xef\xab\xc1\x4e\x12\x25\xc0\x88\xd3\xe0\x44\xe3\x25\xbe\x23\
\xb2\x14\xfe\x23\x46\xfc\x54\x1c\x22\x94\x5c\x43\xc6\xa4\xcc\x11\
\x08\x03\x50\x85\x28\xcb\x73\x9f\xaf\xb6\xef\xf1\xcb\x32\x26\x95\
\x9d\x10\x44\x31\x39\x29\x19\xcf\xd9\xbf\x0f\xc3\xad\x0d\x04\xde\
\x10\xc2\x30\x41\xc2\x40\x57\x97\xb8\x12\xa6\xa5\x72\xcc\x4c\x0b\
\x2f\x78\xc1\xed\x39\x6a\x82\xc4\x7f\xfd\x0f\xbf\x9d\x76\x4a\x96\
\x44\xe3\x49\x58\xd6\x6a\xb7\xd5\x6f\x21\xc7\x3b\x37\x4e\x74\xff\
\x71\xc1\x6b\xf5\x66\xce\x9d\x5b\x01\x8a\xfb\x2f\x95\x4d\xae\xad\
\x41\xa9\x06\xa6\x89\x2c\xa9\x2a\x73\x92\xd3\x15\x86\x98\x89\x08\
\x28\xc3\x43\x00\x01\x81\x38\xae\x04\x40\x19\x04\x1a\x2e\x84\xae\
\xe8\xad\xec\xcf\x94\x98\xec\xf4\x84\x22\x08\x92\x80\x00\xaa\xa5\
\x39\x05\x0c\x92\x4a\x0e\x33\x84\xc0\x56\x77\x13\xa7\x8f\x3e\x03\
\x6f\x34\x4a\x25\xd5\x86\xf9\x50\x6a\xf2\x97\x30\x0c\x03\x0b\x8b\
\x8b\x30\x0c\x13\xcc\x12\xb6\xe3\xaa\x0a\xe3\x24\x72\xbf\x10\x35\
\x9a\x9a\x71\x29\x13\x86\x65\x98\xaa\xf5\xb9\x65\x62\x6b\x6d\x15\
\xc3\xde\x96\x62\x21\x96\xad\xb6\x63\x9a\x30\x8c\x40\x01\xd4\x68\
\x84\x61\xbf\x8f\x41\x4f\x31\x28\xc5\xa4\x16\x31\x1c\x0c\x54\xd5\
\x08\x1d\x53\x08\x02\x19\x83\x81\x64\x78\xc9\x2a\xe9\x6c\x00\xa6\
\x72\x0a\x9a\xa0\x5c\x70\xca\x9b\xb2\xc2\xe7\x4c\xa1\x8d\xe5\x26\
\xf0\xbe\x37\xbf\x1e\xb6\xfd\x4b\xf8\xbf\x7e\xe4\x87\xa2\x52\x52\
\x2c\x65\xc4\x42\xd3\x4c\x89\x27\x4e\x5a\xc2\xc8\x80\xd3\x34\x59\
\x2f\x55\x67\x2f\xd1\x68\x81\x4b\xcc\xae\x73\x09\x25\xcd\x0f\x9c\
\x42\xf6\xca\xe1\xc2\x47\x6f\xd7\x75\x6c\xc8\xe1\x00\x0c\x09\xdb\
\xb1\x30\xf2\x09\xdd\x2d\xf5\xfb\x9a\x96\x5a\x7c\x91\x20\xdc\xfd\
\x85\x2f\x80\xbf\xed\x43\xa9\xaf\xfc\xf9\x87\x1e\xc1\xe9\xe3\xc7\
\x74\xdf\xa4\xf9\x8d\xa5\xe5\x65\x10\x08\x32\xf7\xf7\x9c\x9d\x35\
\x3d\x70\xff\xfd\x98\xc2\x90\xf2\x2c\xe3\xa8\x63\x4c\x35\x30\x4d\
\x02\xa3\xbc\xe7\xaa\x9a\x20\x0a\x4e\xab\x71\x7b\xb8\x07\x42\x00\
\x11\x27\xc8\xea\x1a\x73\xa1\xfd\xda\xb4\xe2\x36\x0e\xa6\x36\x01\
\x84\x31\xa4\xf0\xb5\xe0\xf0\xe2\x92\x08\x58\x2a\x49\x09\x26\x58\
\xfa\x38\xfa\xd4\x13\xe8\xae\xad\x2a\x50\xd2\x71\xa4\xb0\x97\x92\
\x0c\x54\x8b\x81\x46\xa3\x89\x46\xa3\x09\xdb\x75\x61\x25\x8a\x6f\
\x72\x71\x2f\x80\x94\xd3\x30\x92\x85\x74\x6c\xca\x6d\x75\x60\x98\
\x26\x7a\x1b\xeb\xe8\xad\xaf\x21\xf0\x3c\x18\x96\x62\x4f\xd2\x34\
\xa3\x58\x94\xd4\xf1\x2e\x6f\x34\xc4\xb0\xdf\x43\x6f\x71\x0b\xbd\
\xad\x2e\x86\xc3\xa1\x72\x0c\x86\xdd\x75\xf5\x44\xee\x05\x3e\x3c\
\xdf\x8e\x99\xa2\x63\xc7\x6d\xda\x55\x29\x06\x5d\x91\xa1\x18\xa0\
\xb2\xff\x36\x04\xc1\xd2\x81\xa7\x77\x7c\xd5\xab\x10\xfc\x8b\x5f\
\xc0\x2f\xfe\xf0\x0f\xa8\xcf\x34\x0c\x05\x4a\x52\xa6\xc1\x49\x55\
\x2f\x82\x9c\x30\x5f\xe4\x81\x13\x09\x91\x6d\x31\x15\x39\xf5\x92\
\x39\x4e\x4c\x48\xc8\x87\x73\x02\xa8\x8b\xc4\x9c\x02\x29\xb1\x7f\
\xef\x1e\xb8\x8e\x83\x64\x0f\xf9\xa5\xc5\x45\x2c\xb4\x5c\x40\xfa\
\x58\x70\xd5\x39\xd0\x59\xda\x85\xb7\xbf\xf3\xdd\xf8\xeb\x4f\xfe\
\x2d\x1e\x79\xf4\x31\x74\x37\x37\xf1\xe4\x43\x0f\x20\x90\x1c\x15\
\x12\xde\x1a\x79\x78\xff\x5b\xde\x9c\xa8\x7c\x3f\xaf\xef\x0a\x2c\
\x2f\x2f\x27\xa8\x4e\x45\x10\x1a\x73\x53\xea\x23\xc8\x8c\x27\x1e\
\x7b\x8c\x4b\xc8\x78\x72\x0a\x6b\xaa\x9d\x79\x35\x30\x4d\x04\xa3\
\x69\x6c\x49\x96\x05\xa5\x6c\xa1\xcf\x91\x04\x06\x30\x00\x43\xe8\
\x02\xa2\x01\x64\xe0\x43\x08\x03\xb6\x63\xc3\xb2\x2d\x98\x96\x09\
\xd3\x34\x21\x48\x31\x26\x43\x17\x6b\x8d\x12\x6e\x83\x40\xc9\x7f\
\x64\xc2\x20\x46\x00\x46\xe0\x33\xbc\xc0\xc7\xd1\xc7\x1f\xc5\xea\
\xd9\xb3\x1a\x64\x94\x4c\x17\xe7\x43\x01\x8b\x4b\xcb\xb0\x1c\x07\
\x8d\x46\x33\xde\x47\x9e\xd0\xd6\x3b\xe7\xa1\x90\xb7\x85\xb9\x4e\
\x61\x00\xd8\x30\x6d\x34\x5a\x6d\x10\x80\xc1\x56\x17\x90\x01\xbc\
\xa1\x8f\xc0\x37\x61\x5a\x36\x58\x4a\x18\xa6\xa5\x65\xcb\x00\xfe\
\x48\xe5\x3b\xf5\x36\x37\x31\xe8\xf5\xe1\xfb\x1e\x3c\xcf\x53\x49\
\xc0\x9a\x1d\x8e\x5c\x17\x7e\x43\x26\x64\x48\x56\x55\xc7\x49\x95\
\x61\x32\x85\x80\x29\x00\xc1\x71\x95\x08\x9e\xc0\x9e\xc2\xbf\xa6\
\xa0\xa8\x9d\xfc\xbb\xde\xf8\x5a\xf4\x7e\xea\x67\xf0\x6f\x7e\xfc\
\x47\xe1\x34\x1a\x2a\xde\x04\x91\x06\x27\xfd\x66\x41\xb1\x67\x2f\
\x8f\x2a\x87\x44\x33\x99\xeb\x44\x63\xcc\x89\x74\x6e\x5a\x12\x9c\
\x54\xfc\x49\xed\x5f\x06\xa0\x68\x66\xcc\xd9\xa9\x97\x8f\x4b\x6f\
\xbe\x9f\xea\x42\x4c\x44\x58\x5c\xe8\xe0\xf0\xa1\x6b\x71\xe1\xfc\
\x79\xb4\xdb\x2d\x98\x86\xc0\x8f\xfe\xd0\xf7\xe3\xd5\xaf\x7b\x13\
\xfe\xd1\x47\x3e\x82\xfb\xee\xbb\x17\xaf\x7f\xe3\x9b\xf1\xe4\xea\
\x79\xfc\xfa\x1f\xfc\x11\xfe\xc9\xfb\xdf\x8b\xee\x68\x84\xf7\xbd\
\xff\x1b\xb0\x7a\x6e\x25\x97\x2d\x6d\xb7\x5e\xde\xf2\xf2\x72\x09\
\x10\x9a\x22\xdd\x65\x73\x9e\x98\xb1\xba\x7a\xa1\x0c\x28\xd5\x16\
\xf1\x1a\x98\xe6\xc2\x9a\xca\x48\x79\x12\xe0\x20\xef\x6d\x9c\x73\
\xc9\xf8\x9a\x2d\x99\x1a\x38\x42\x09\xcf\xb2\x6d\x55\x8f\x4e\x5b\
\x68\xc3\x96\xe6\x61\x66\xbc\x50\x8e\x00\xc8\xc0\x87\xf4\x09\x2c\
\x03\xb5\xd2\x16\x0c\x29\x08\x43\x96\x78\xf4\xc1\x07\x34\x28\x71\
\x04\x48\x52\x83\x80\x65\xd9\x58\xde\xbd\x07\x8d\x66\x2b\x66\x5f\
\x9c\x7f\x31\xd3\xc4\x6b\x3e\x31\x85\xe9\x88\x7e\x14\x37\x11\x04\
\x32\x0c\x58\x8e\xa3\xaa\x3d\x0c\x07\x18\x0d\x06\xf0\x46\x43\xf8\
\x83\x3e\x4c\xb7\x01\xc3\xb4\x54\x63\x3f\xdb\x89\x6b\xfb\x8d\x46\
\xf0\x46\x23\x65\xda\x18\x2a\x33\x84\xaa\x54\xce\x18\xb6\x9a\xf0\
\x43\xb6\xa7\xc1\xca\xd0\x13\xbd\x6d\x1a\x70\x4c\xb5\x4f\xa6\x80\
\x6e\x02\x38\xbd\x4a\x40\x04\x1c\x44\xb0\x0d\x95\x8a\xfb\xc1\xb7\
\xbf\x05\x9e\xe7\xe1\xdf\xff\xec\x4f\xa9\xfd\x17\x48\x83\x93\x56\
\xe7\xb2\x1b\x13\x19\x80\x4a\xfe\x7b\xa2\x21\x22\x14\xf4\x22\x06\
\x15\x53\xa9\x78\xee\x4b\x98\x23\xaa\xb2\xa7\x19\xa6\xba\x99\xc1\
\x89\x11\x37\x6a\x0c\x4b\xdb\x12\xd0\x6e\xb7\xf0\x9a\x57\xbf\x1a\
\xff\xf3\xcf\xff\x1c\x42\x10\x5e\xff\xfa\xd7\xe3\xe5\x5f\xf9\x5a\
\xb5\xb8\x10\x06\x16\x3a\x1d\xf8\x9e\x07\x21\x04\x7e\xf4\xdb\xbe\
\x19\xff\xee\x67\x7e\x0a\xe7\xce\x9c\x46\x7f\x6b\xab\x22\x28\x55\
\xac\x93\xc7\xd3\x40\x68\xba\x74\x97\xa4\xc0\x9e\xe7\xe1\xdc\xca\
\x4a\x30\x23\x28\xa1\x06\xa8\x1a\x98\xaa\xb0\xa6\x92\xa0\x94\x3e\
\xa1\xc2\x8a\x0c\x79\xa0\x34\x0c\x18\x01\x0c\x18\xa6\x6a\x2c\xae\
\x18\x90\x84\x69\x5b\x70\x1a\x6e\x94\xdb\x11\x56\xec\x0e\x01\x49\
\x50\x08\x4c\x52\xc5\x96\x04\x01\x6c\x42\xfa\x1e\x58\x10\x3c\x29\
\xf1\xc8\xdd\x77\xe2\xfc\x99\x53\xba\x9d\xb9\x9a\xf0\xc3\x9c\xaa\
\xa5\x5d\x7b\xd0\x6a\x77\x60\x5a\x66\x1c\xf4\x4d\xc8\x4a\xa9\x39\
\x8f\x26\x1f\x9d\xa2\x3a\x6f\x61\x5a\xa9\x08\x73\xad\x0c\x53\xbb\
\xf4\x0c\x04\xde\x08\x41\x30\x82\x0c\x02\x98\x8e\xab\xe4\x3c\xdf\
\x57\x06\x0f\x53\xc5\xb6\xc2\x0a\xe8\x9e\x06\xa9\xb0\x68\x6d\x67\
\xd0\x89\x1c\x7b\x52\x07\xd6\x05\x09\x04\xcc\x68\x58\x26\x98\x2d\
\x40\x4f\x8a\x44\xe9\x22\xdd\xd3\xe6\xf1\xa8\x28\xab\x01\x30\x0c\
\x7c\xcb\xbb\xdf\x8e\x33\x27\x4f\xe2\xbf\xfd\x87\x7f\x0f\xa7\xd1\
\x04\x48\x1d\x6f\x48\xc4\xe0\x14\xd7\x93\x1f\xdb\x16\x93\xea\xb2\
\x1b\xc9\x7e\x59\x43\x44\x32\xee\x44\x1a\x48\xc1\x09\x06\x95\x06\
\xa7\xe4\xb1\x2d\x2d\xef\xf1\xf6\xe0\x68\x16\x70\x92\x2c\xb1\x67\
\xd7\x72\x46\x7a\x53\x09\xce\xdf\xf1\x9d\xdf\x85\x0b\xe7\x57\x70\
\xcd\x35\xd7\xe0\x3b\x3e\xfa\x4f\x61\x59\x76\xf4\x8a\xd5\xd5\xd5\
\xa8\x8f\x18\x09\x81\xe3\xcf\x3c\xad\xd2\x05\x66\x62\x4a\x53\x28\
\xb2\xfe\x0c\xa5\x14\xf0\xb6\xa4\xbb\xec\xc9\xa5\x63\xa3\xdb\x49\
\xae\xad\x63\x4b\x35\x30\x95\x66\x4d\x55\x01\x2a\x9e\xed\x0b\x2e\
\x6f\x0f\x04\x1f\xa4\x0e\xae\x54\xd5\x1d\x48\x50\x82\x2d\xd9\xb0\
\x6d\x27\x92\xf2\x0c\xc3\xd0\x2d\x1f\x10\x95\xce\x61\x21\x20\x05\
\x81\x58\x02\xa6\x81\xe1\xa0\x8f\x7b\x3f\xff\x59\xac\x9c\x38\x1e\
\xc9\x77\x32\xd1\xe2\x7c\x79\xf7\x5e\x2c\x2c\x2d\xeb\x0a\x10\x9c\
\xb3\x8a\x9c\x7c\x65\x53\x11\x95\xa2\x9c\xd7\x46\xf9\x56\xaa\x97\
\x93\x30\x4d\x88\xc0\x82\x61\x29\x56\x18\xf8\x23\x0c\x46\x03\x08\
\xc3\x84\xd3\x5e\x00\x4b\x09\xd3\xb6\x23\x30\xe5\x20\x2c\x93\xe4\
\x29\x66\x18\xf8\x18\xf4\x07\xf0\x3c\x2f\x06\x5a\x8d\xa4\x7e\x10\
\xc0\x6b\x38\x9a\x45\x01\x82\x4c\xe5\x04\x4c\x31\x8e\xe9\xd3\x71\
\x08\x4e\x96\x50\x86\x88\xef\xff\xc7\xdf\x81\xf3\x67\xcf\xe0\x53\
\x7f\xfa\xff\x87\xe3\x36\x94\xc9\x51\x84\x65\x9f\xe2\x93\x41\x4e\
\x00\xbb\x88\x31\x69\x20\x8b\xf2\x9c\x00\xed\x9a\x4c\x80\x13\x62\
\x50\x8a\xab\x44\xa4\xcb\x18\xc4\xb5\xf5\x32\xf1\xa7\x1d\x8c\x3c\
\x55\x99\x25\x99\x19\x4b\x8b\x9d\xd4\x77\x08\x13\xb4\x97\x96\x77\
\xe1\xe7\x7e\xe1\x97\xe3\xfa\x8e\x71\xf2\x0f\xba\xdd\x6e\xfa\xd8\
\x15\x9c\x8c\x5c\x05\x80\xf3\x56\x58\xda\x90\xe1\x38\x0e\x0e\x1f\
\x3e\x94\x2f\x5d\x57\x90\xee\xd2\xad\x4e\xa2\xef\x31\x2d\xae\x54\
\xd6\x36\x5e\x8f\xab\x1c\x98\x78\xc2\xfd\x2a\x7d\x99\x12\xae\x62\
\x82\xd4\x9d\x5d\x45\xb8\xea\x4b\xc4\x9b\x0c\x61\xa8\xbe\x42\x2c\
\xa3\x16\xe4\x96\xed\xc0\x6d\x34\x60\xdb\x36\x2c\x4b\xc5\x98\x2c\
\x5d\xad\xdb\xd4\x39\x4c\xda\xbd\xa0\x7b\x2e\xa9\x56\xea\x42\x03\
\xd6\x17\x3f\xf3\x49\x9c\x3e\x7a\x44\xb1\x1f\x29\xa3\xc2\xac\xcc\
\x8c\x5d\x7b\xf6\xa2\xb3\xb8\xac\x0b\xb3\xa2\xb4\x5b\x8b\x26\xad\
\xca\x23\x87\x60\x7a\x45\x1a\xe5\xe8\x44\xb7\xb8\xd0\xa9\x61\x18\
\xe0\x40\xa8\x3e\x51\x52\xc2\x1b\x6d\xc1\xd4\x25\x87\x06\xbe\x07\
\xdb\x09\x94\xb4\x67\xca\xa8\xf2\x79\x10\xa8\x36\x1d\xa3\xe1\x00\
\x9e\x37\x8a\x6a\xec\x85\xfb\x2f\x99\x75\x75\x72\x35\xa9\x1b\x42\
\xc0\x14\x04\x23\x55\x8b\xae\xbc\xac\x67\xaa\xaa\xb1\x68\xd9\x16\
\x7e\xfa\xc7\x7f\x0c\x1f\x3b\x7f\x1e\xf7\xfe\xc3\xdf\xc2\x71\x1b\
\x0a\x4c\xa4\x80\xd4\x8d\x05\xa5\x54\xdd\x6e\x19\x32\xb9\x22\x49\
\x1d\x1f\x11\xc9\x79\x4a\x6e\x0d\x01\x89\x72\x4a\x55\xa5\x63\x4e\
\x09\x59\x0f\xe3\x2b\x76\xcc\x5c\x9d\x7c\xe7\x40\x8a\x19\x70\x1d\
\x27\x0d\x3c\x89\xff\xa7\xdb\xa6\xc7\xf7\xcf\x9e\x3d\x3b\xf5\x74\
\x9c\x0c\x4a\x45\xc5\xa9\x8a\xcf\xdd\x89\x7d\x95\x4a\x48\x77\x1c\
\x2d\x12\xc7\x34\xe3\x00\xe5\x12\x6c\x27\x49\x78\x35\x38\xd5\xc0\
\x54\xfa\x3a\x28\x2f\xe5\x11\xe0\x8d\x46\x18\x0c\xfa\x68\xb5\x3a\
\xa9\x7a\x5c\x1e\x13\xbc\x50\x3e\x93\x4a\x6a\x33\x4c\x43\xc9\x77\
\xba\x86\x98\xed\xd8\xb0\x2c\x4b\x55\x60\x36\xf5\x2d\x63\x7c\x60\
\x19\x00\x32\x80\x10\x84\x53\xc7\x8e\xe1\xc4\x53\x4f\xaa\xe7\x25\
\x47\x4c\x09\x0c\xec\xda\xb3\x0f\x0b\x4b\xcb\x5a\xce\xcb\xfb\x62\
\x54\xb0\x02\x9c\x00\x54\x3c\xbd\xee\x1f\x65\x6a\xeb\x85\x15\xca\
\xa3\xee\xa4\x22\x6c\xff\x1a\xc0\xb5\x4c\x04\xba\x8e\xdf\x28\x08\
\x60\x39\x6e\xa2\x4f\x94\x02\x28\x6f\x38\x84\x37\x1c\x21\xf0\x55\
\x95\xf5\x24\x68\x86\x71\x27\x21\x08\x96\x61\xc0\x12\xaa\x1d\x7b\
\x6e\xbb\x8c\x29\xfb\x9d\x04\xa7\xc5\x86\x83\x5f\xf8\xbf\x7e\x1e\
\x1f\xfe\xe0\x87\x70\xf6\xf8\x71\xd5\x32\x43\x28\x3d\x8f\x35\xea\
\xa8\xd2\x3b\xfa\x61\x42\xba\x88\x5e\x04\x78\xa4\xc0\x8b\x00\x21\
\x05\x20\x24\xa4\x14\x10\x22\x84\xac\x3c\x70\x4a\xc8\x7a\x05\xf9\
\x4d\x3b\x01\x50\x65\x54\xc2\x49\xeb\x9a\xf0\x3c\xcb\x07\x27\x60\
\x6c\xb5\xc3\x8c\x27\x9f\x7a\x6a\x1b\x7b\x9f\x99\xcb\xa7\x6d\x88\
\x19\x0b\x8b\x8b\x71\x9d\xbc\x3c\x26\x54\x52\xba\x4b\x49\xdb\x44\
\x38\x77\xfe\x7c\x92\x31\x55\x49\xb0\x2d\xb3\x50\xae\xc7\x55\x0e\
\x4c\x93\x64\x3b\x60\x7a\xa2\x6d\x86\x50\xa4\xf0\x0a\x3e\x08\x3e\
\x93\x6a\x69\xa1\xd9\x92\x69\x59\x3a\xae\xa4\xc0\xc9\xd5\xd6\x6d\
\xd3\x34\x55\xeb\x07\x21\x60\xe8\x18\x13\x41\xb5\x46\x97\x3e\x40\
\x30\xe0\x8d\x86\xf8\xc2\x27\xff\x37\xbc\xe1\x10\x88\xaa\x1b\xab\
\xed\xee\xda\xb3\x17\x9d\xa5\x04\x53\x2a\xb1\x26\xce\x02\x12\xe5\
\x94\xf1\xa6\xb0\x72\x39\x23\x53\xed\x39\x9e\xb2\x42\x39\x2f\x55\
\x08\x36\xa3\x01\xaa\x6e\xbf\x1e\x5c\xdb\x02\x11\x30\xf2\x7c\x6c\
\x0d\x3d\x0c\x82\x00\xb6\xdb\x88\x9b\x23\x06\x2a\x16\x35\x1a\x0e\
\x55\x02\x2e\xe2\x3e\x51\x80\xb2\x29\x4b\x66\x5d\x5b\xcf\xd4\x85\
\x5b\x55\xb9\x24\xe8\x24\xd9\xb2\x53\x77\x08\x4e\x86\x20\x30\x04\
\xf6\x2f\x74\xf0\xaf\x7f\xf3\x37\xf1\xd1\x0f\x7c\x00\xbd\xee\x26\
\x4c\xcb\x02\x20\x63\x30\x0a\x59\x91\xc2\x1b\x24\x0a\x1a\x45\x7f\
\x23\x43\x84\xee\x46\xa2\x5e\xcc\xb1\x3c\x98\x99\xec\x0b\xc1\x09\
\x28\xa8\xad\x87\xc4\x39\x46\x33\x9f\xf6\x45\x33\x22\x95\x06\x27\
\x46\xab\xd9\x4c\x9e\x05\x19\x2c\xca\xad\x1e\x88\xd5\x0b\xab\xd5\
\xd9\xd2\x36\x2e\xee\xc0\xf7\x55\xbe\xde\x24\x6e\x54\xa2\x98\x6b\
\xc4\x9a\xf4\x51\x3f\x7d\xea\x14\x50\xce\x1e\x5e\x96\x41\xd5\xe3\
\x2a\x07\xa6\x49\x19\xd8\x25\x2b\x3e\x4c\x0c\x39\x00\x50\x16\x71\
\x4f\x35\x4f\x8d\xfa\x23\x85\x8d\xf6\x6c\x47\x57\x5c\x0e\x59\x93\
\x6d\xc3\x32\x8c\x28\xb1\x36\x0a\xe8\xb3\x54\x93\x9b\x50\xf2\xd8\
\xa7\xfe\xfc\x4f\x71\x4e\x5d\x10\x51\x95\x71\x60\x9c\x29\x4d\x5d\
\xed\xa6\xe6\xbb\x3c\x90\x4a\x76\x8f\xd5\x93\xa6\x0e\xd8\x0b\xd3\
\x44\xa0\x5d\x55\xc9\xc9\x35\x79\x0b\xb7\x97\xac\xf3\x97\x9c\x44\
\x99\x19\x96\x69\xa2\xc1\x0c\x3f\x90\x90\xfe\x08\x9e\x76\x2a\xaa\
\x0a\x02\x52\x55\x40\xcf\xc4\x05\x58\x4b\x79\xcc\xaa\xe8\xab\xa9\
\x8f\x97\xba\x59\xb0\x35\x22\x54\x01\x27\x00\x30\x00\x9d\x4f\x23\
\x70\xdb\x75\x07\xf0\x4b\xbf\xf5\xdb\xf8\xd8\xb7\x7c\x13\x64\x20\
\x21\x0c\x15\x34\x0a\xa5\x39\xd6\xf5\x08\x55\x36\x99\x2c\x90\xf3\
\xe2\x03\xac\x7b\xe3\xa9\x3a\xe5\x89\x58\xd3\x24\x70\x8a\xe5\x27\
\xc6\x24\xcb\x21\x8f\xd7\xe5\x2e\xf5\xba\xb2\xc0\x40\x13\xce\x25\
\x66\x60\xdf\x9e\x5d\x91\x9b\xa6\x90\x25\x21\x5d\x56\x6b\x6d\x7d\
\x7d\x1b\x8c\xaf\x5c\xb5\x87\x68\x81\xc5\x40\xa3\xd9\x82\x65\x99\
\x13\x30\xa7\x08\x84\x8a\x58\x93\xfa\x7d\x9e\x7c\xe2\x49\x4c\x91\
\xf1\xca\x58\xc5\x6b\x40\xaa\x81\xa9\x8c\x36\x50\x3a\xce\x24\x99\
\x59\x1e\x7f\xf2\x51\x79\xdd\x4d\xb7\xa6\x5a\xf8\x84\xe7\xb2\xc7\
\xb1\xe9\x21\x59\xfa\xc7\x71\x95\xe1\xc1\x71\x5d\xb8\xba\x4d\xb9\
\x63\xdb\x30\x4d\x43\x15\x32\xd5\x93\x12\x85\xb6\x62\x5d\x95\xe0\
\xe8\xd3\x4f\xe1\xa9\x87\x1f\x0c\xb3\xfb\x22\x63\x43\x6b\x61\x01\
\x8b\xcb\xbb\x54\x45\x66\x14\x94\xb2\xc9\x75\x1e\x4f\x01\xa4\x44\
\x4b\x8c\x64\x8e\xed\xee\xfd\x07\x60\x08\x81\xd3\xc7\x8e\x46\xef\
\x0f\xf3\x9b\x92\x60\x14\x79\xe5\x28\xd1\xe0\x30\x59\x69\x15\x0c\
\xc7\x32\xe1\x5a\xc0\x28\x90\xe8\x7b\x23\x0c\xa5\x84\xed\x36\x60\
\xb0\xc4\x50\x4a\xac\x23\xec\xb6\x2b\xa3\xea\x02\x61\xff\xa6\xd0\
\xb9\xa8\x62\x4d\xea\x06\xd3\x84\x43\x71\x55\x82\xb2\xac\x29\x04\
\x14\x93\x08\x2c\x04\x5e\x76\xdb\xcd\xf8\x9e\x9f\xfc\xe7\xf8\xc5\
\x1f\xfe\x01\xb8\xcd\x66\xc4\x4e\x55\x42\xb3\xd4\x15\xb5\x25\xc0\
\x42\x4b\x8b\xe9\x65\x8a\x20\x52\xf9\xd0\x1a\xa4\x04\x18\x52\x48\
\x2d\xed\x71\xbe\xb0\x9a\x71\xe9\x71\x49\x70\xca\x07\x20\x9a\xcb\
\xbc\x97\xdd\x5a\x16\x9c\xc2\xae\xb0\x54\xc6\xde\x49\x04\x29\x25\
\x9e\x79\xe6\x48\xf9\xb6\x16\x25\xc5\x45\x2a\x54\xf2\x18\x7b\xf6\
\xec\x81\x69\x9a\x71\x2f\xb0\xd2\x20\x34\x39\x5a\x79\xc7\x17\xbf\
\x00\x4c\xaf\x28\x5e\xa5\x83\x6d\x0d\x52\x35\x30\x4d\x04\xa7\x2c\
\xb3\x92\x28\xd1\xfa\x22\x3b\x94\x51\x81\xa2\xd8\x89\x30\x84\x06\
\x25\x17\xb6\xad\x58\x92\xe3\x3a\x68\xb8\x2e\x6c\xdb\x52\xb9\x4b\
\x44\x30\x04\x22\x19\x8f\x99\x21\x08\x18\x0d\x87\xf8\xe4\x9f\xfd\
\x0f\x2d\xe1\xc5\xad\xd1\x85\x61\x60\x79\xf7\x9e\x04\x53\xe2\xfc\
\xd5\xe3\x44\xd6\x44\x63\x0c\x2a\xdd\xb1\x3a\x1d\x23\x30\x4d\x13\
\xd7\x1e\x3a\x84\x33\xc7\x8f\xe9\x8b\x7d\xac\xb7\x6c\xba\x9f\x53\
\x62\x15\x1d\xfe\xc7\x89\xee\xae\x12\x0c\xcb\x10\x00\x9b\xe8\x8d\
\x3c\x0c\xfb\x0c\xdb\x75\x61\x30\x63\xd8\xdb\xd2\x25\x95\x74\xed\
\x05\xdd\xf3\x27\x64\x19\x22\xd1\x9e\x43\x08\x01\x72\x09\x06\x19\
\xaa\x69\x60\xc5\x3c\x55\x02\x60\xe8\x0e\xba\x0c\xe0\x5d\x6f\x7a\
\x3d\xbe\xf8\xf7\xef\xc6\xa7\xfe\xec\x4f\x54\x17\x5c\x5d\x74\x57\
\xf7\x68\x4c\x55\x88\x10\x88\x65\x3d\x99\x39\x66\x61\xe3\x43\xb0\
\xd0\xb9\x64\xfa\x1d\x94\x94\xbf\x38\x36\x40\x14\x95\xdf\xe0\x0a\
\x01\xb4\x39\xcf\x71\x9c\x8f\x33\xca\xfc\x80\xc9\xf5\xf5\xe7\x96\
\x86\x35\x53\xc2\x15\xc7\x75\xf2\x12\xb1\xdf\xf1\x63\x39\x21\xa0\
\x94\x67\xac\x61\x60\x65\xe5\x2c\x63\xfb\xc9\xb5\xb5\x8c\x57\x03\
\x53\x69\x79\xaf\x8a\xa4\x27\x09\x30\x38\x71\xe1\x10\x00\x4f\x2a\
\xe3\x03\x51\xdc\x78\xce\xb2\x54\xa7\x57\x65\x78\x50\xa6\x07\xc7\
\xb6\xd5\x5f\xcb\x82\x69\x1a\x51\x5e\x90\xa9\x2b\x8b\xb3\x0c\x60\
\x08\x03\xcf\x3c\xf9\x24\xce\x1c\x3f\x06\xd2\xab\xce\xd0\xcd\xb5\
\xbc\x7b\x0f\x2c\xcb\x1e\x93\xf0\xa6\xcd\xc0\xe3\x20\x34\x0e\x4e\
\x79\x72\x1f\x43\xe5\x6f\x74\x3a\x1d\x2c\x2c\xef\xc2\xda\xf9\x95\
\x78\x7e\x8d\x30\x49\xc3\x4f\x4c\x9f\xf4\xbf\x13\xaf\xd1\xdd\x5d\
\x55\xae\xae\x3a\x70\xb6\x65\x00\x60\x74\x07\x23\x0c\x65\x00\xdb\
\x55\x55\x2a\x46\xfd\x1e\x36\x43\x6b\xb9\xd4\x52\x9e\x96\x15\xa3\
\xbe\x51\x50\x0e\x3d\xc7\x34\x60\xeb\x36\xeb\x0a\x00\xab\x4d\x8e\
\xc9\x86\x83\x0d\xcb\xc4\x27\x7e\xec\xe3\x78\xf2\xe1\x87\x70\xe2\
\xa9\x27\x61\x39\x3a\x17\x47\x72\xe4\xd4\x63\xed\x86\x50\x5e\x3d\
\x75\x7a\xa8\xd4\x33\x1d\x77\x22\x52\xcc\x36\x84\x1f\x21\x75\xe0\
\x89\x23\xa7\x1e\x27\x7f\x87\xa8\x02\x39\x32\xac\xa9\xd4\x22\xfe\
\xa2\x0e\x22\x81\x56\xb3\x91\x4e\x8c\x9b\x02\x4a\x52\x4a\x6d\x1a\
\xd8\xa1\x2f\x91\xb3\xd9\x64\xd5\x87\x49\x17\x3f\x15\x81\x50\x01\
\x13\x3b\xb7\xb2\x52\x64\x7c\xc8\xeb\x60\x2b\xa7\x00\x52\x0d\x4e\
\x35\x30\xe5\x82\x51\x19\x80\x2a\x2a\xd0\x08\x66\x28\x36\xd3\x54\
\x6d\xa6\x3d\xd6\xa6\x07\x52\x6c\x89\x84\xd0\x60\xa4\x99\x92\x63\
\x6b\xab\x78\x6c\x13\xb7\x4c\x03\x86\x6e\xfb\x2d\xa2\x38\x89\x89\
\x8d\xf5\x75\x7c\xf2\xcf\xfe\x34\xea\x6c\x1b\x56\xe2\xb6\x1d\x07\
\x0b\x4b\xbb\xa2\xc7\xa7\x9e\xde\x99\x4e\xb5\xf9\x8c\x29\xa7\xa3\
\xad\x46\xdb\xb0\x72\x84\x94\x12\x96\xed\xe0\xd0\xcd\x37\x63\xed\
\xdc\xd9\x84\xcc\x47\xb1\x49\x21\xd3\x05\x37\x89\x4a\x49\xc6\x44\
\xd1\x76\x15\xab\xb0\x2d\x13\x2d\x66\x78\x92\x01\xdf\x83\x17\x4e\
\x78\xc3\x3e\xba\xeb\x88\xd8\x13\x98\x21\x28\x6e\x9e\x28\x74\x7d\
\xc1\x76\xc3\x81\x63\x18\x71\x4d\x3d\x22\x54\x2d\x07\x9a\x94\xf4\
\x76\xb5\x9a\xf8\xb9\x5f\xfe\x65\x7c\xe7\x07\xde\x0f\x7f\xe4\xe9\
\x74\x00\x56\xb1\xbf\x4c\x02\xae\xd0\x6b\x10\x99\x4c\xc4\xa5\x58\
\x04\x13\x24\xc1\x1c\xbf\x38\x6c\x3d\x92\x12\xdd\x34\x10\x15\x4a\
\x7a\xdb\x29\x57\x34\x77\x60\xa2\x89\xc5\x56\xf3\x76\xd1\xf7\x3d\
\x9c\x3f\x7f\x61\x9b\x52\x5e\xb5\x11\x16\x70\x9d\x04\x42\x53\xa7\
\x89\xd4\x6b\x09\x41\xe0\x63\x6d\x75\x6d\x1a\x53\x2a\xdb\xf2\xa2\
\x1e\x35\x30\x15\x4e\xe1\xb3\x36\x0c\x94\xc9\xd5\x60\xf8\x76\x41\
\x22\x9a\x60\x58\x4a\x58\x8e\x03\xdb\x75\x23\x70\x8a\x0c\x0f\x96\
\x6a\x35\x6d\x9b\x16\x4c\x53\xc0\x34\x0c\x55\x39\x5b\x33\x22\xcb\
\x30\xf1\xd0\x03\x0f\xe0\xe4\x33\x4f\xa9\xea\xc8\x7a\x52\x26\x22\
\x2c\xef\xde\x87\xb8\xe9\xdf\x04\xe9\x83\x32\x92\x5e\x19\x40\x4a\
\x31\x0d\x4a\x1d\xb1\xb0\xb2\xc4\xcd\xb7\xde\x8a\xfb\xbf\xf0\xb9\
\xb4\x0b\x90\x44\x2a\x9f\x29\x4a\xbe\x45\xa4\xf0\xc5\xd5\x0f\x74\
\xad\xb8\x30\x50\x1d\x76\x8b\x75\x6c\x0b\x2e\x08\xa3\x20\xc0\xc0\
\xf7\xe0\x25\x24\xc2\xad\xc4\x8a\x95\xc2\x76\xf3\xba\x8b\xaa\x69\
\x18\x58\x75\x94\x89\x04\x04\x90\x69\x46\xfb\x51\x15\x9c\x08\x80\
\xa5\xcd\x10\xb7\x1f\xbe\x0e\x3f\xf4\xb3\x3f\x8f\x9f\xfe\xd8\x3f\
\x85\xd3\x68\x26\x08\x02\x47\xdd\x87\x15\xb0\x86\x32\xa3\xe6\x4f\
\x19\xe6\x14\x1e\xa6\xc8\x0c\x91\x8c\x37\x91\x6e\x58\x87\x12\xf1\
\x26\x60\xb6\x72\x45\x73\x1e\x42\x90\xea\x0a\x5b\x41\xba\x23\x10\
\x46\x5a\x8e\xae\x2c\x3e\xce\x58\x06\x42\x31\x26\x2e\x35\x21\x94\
\x61\x4d\x44\xc0\x70\xe4\x61\x30\xe8\xfb\x98\xad\x0f\x53\x2d\xe5\
\xd5\xc0\x54\x19\xa4\x66\x28\x4b\xa4\x10\x20\xf0\x7d\x00\x8c\x51\
\x00\x8c\x24\x47\x3d\x77\x48\x10\x2c\x6d\x76\x70\xb4\xd9\xc1\xb6\
\xb5\x8c\x67\xdb\xb0\x2d\x0b\x96\x6d\x2a\x57\x9e\xae\x91\x47\x21\
\x30\x99\x26\xee\xfb\xc2\xe7\xa3\x9e\x4d\x21\x5b\x6a\x2d\x2c\xa2\
\xd5\x6e\x47\x20\x31\x8e\x4e\x09\x5d\x71\x06\x50\xca\xde\x4f\xcb\
\x49\x4a\xc2\x72\x1c\x1b\x8e\xdb\xc0\xa0\xd7\x55\xdf\x33\x72\x74\
\x27\x58\x53\x82\x45\x51\xa2\xe5\x35\x53\xdc\x39\x94\x91\x06\x28\
\x68\x59\xcc\x32\x0c\x10\x49\xf4\x3d\x0f\x5e\x62\x0f\xb6\x34\x6b\
\x10\x42\x28\xf9\x53\xc7\x97\x2c\xd3\x80\x65\x1a\x51\x0e\x98\x68\
\x10\x88\x0c\x08\x41\xd5\xc2\x33\x48\xb7\xcb\x90\x2c\xf0\x96\xd7\
\xbc\x02\x7f\xf9\x86\x37\xe1\x0b\x9f\xfc\xdf\xb0\x5d\x37\xb1\x92\
\x96\x0a\x60\x42\x21\x4f\x14\x33\x27\x2d\xe0\x29\x40\x4e\xb8\xfc\
\x54\x82\x14\x12\x56\xfc\x38\xde\x94\x0f\x4e\x19\xf6\x34\x6b\x40\
\x67\x3b\x17\x8c\x64\xb4\xdb\x6d\xb4\xdb\xed\x4a\x1f\xcb\xe0\xc8\
\xa4\xb3\x6d\xcc\x29\x01\x89\x44\x50\x75\xf2\x32\x28\xb3\x5d\xd6\
\x14\xf8\x01\x30\x3d\xae\x54\xb5\x2c\x51\x3d\x6a\x60\x2a\x04\xa2\
\x32\xe0\x94\xd5\x8f\x01\x00\xbd\xad\xae\x96\xf1\x18\x1e\x6b\x39\
\x48\x4a\x98\x96\x19\xd9\xc2\x1d\x27\x99\x50\x6b\xc1\xb6\x55\x62\
\xad\x65\x5a\xa9\x49\x15\xcc\x30\x0d\x03\x67\xce\x9c\xc6\x13\x0f\
\xde\xaf\x2e\x23\x1d\xab\x22\x21\xd0\xee\x2c\xa6\xb0\x88\x0b\x56\
\xa7\x93\x65\x3c\x4a\x03\x57\xd1\xfd\xec\x61\xd1\x76\xee\xdd\xbb\
\x77\xe1\xe0\x4d\x37\xe1\xd1\x7b\xee\x1e\x03\x24\x4a\x26\xe8\x26\
\x5c\x79\x31\x83\xe2\x28\x0f\x8a\x38\x66\x4c\x21\x1b\x08\xf7\xdc\
\x32\x94\xa0\xd9\xf7\x47\xf0\x46\xe1\x72\x15\xd8\x02\xb0\x72\xea\
\x24\x4c\xcb\x8c\x2a\x40\x44\x09\xca\x11\xc0\x6b\x33\x89\xfe\x7c\
\x81\xea\xe0\x24\x00\x58\x42\x55\x86\xf8\xc9\x9f\xfa\x71\x7c\xeb\
\xa3\x0f\xe3\xc2\xd9\xb3\xba\xa1\xa2\x8a\x13\xc5\xc5\x71\xe3\xbf\
\x51\x95\x08\xd2\x6e\xc2\x0c\x73\x0a\x0b\x7b\x64\xe3\x4d\xa1\xb8\
\x97\x2c\x51\x14\xb7\xf4\x2e\x00\xa7\xbc\xb3\x99\x76\xfa\xa2\x51\
\x76\x7f\xa3\x42\x8b\x0a\x22\xc2\x70\x30\x80\xe7\xf9\x39\xa5\x97\
\x76\x4a\x6e\x14\x68\x36\x1a\x15\x3f\x63\x0a\x6b\x22\xc2\x56\x6f\
\x0b\x98\xec\xc8\x9b\xd4\x4a\x7d\xfe\x98\x7c\x85\x0f\x71\x95\x7c\
\xcf\xed\xf4\x64\x9a\x98\xc9\xcd\xcc\x10\xaa\x5f\x6a\x64\x6d\x56\
\xb9\x4b\x9a\x2d\x69\x70\x52\xac\x49\x19\x1e\x54\x62\xad\xa9\xee\
\x1b\x26\x2c\xcb\x84\x6d\x5b\xb0\x2d\x13\x9f\xfa\xeb\xbf\xc2\xe6\
\xea\x85\xa8\x72\x04\x33\xa3\xd5\x5e\x40\xb3\xdd\x2e\xcc\x4d\x19\
\x63\x38\x59\x89\x2e\x01\x4a\x11\x84\x24\x5c\x73\xd9\xfb\x51\x43\
\x38\x0e\xbf\xb0\x8a\xf3\x18\x42\xe0\xba\x43\x87\xc6\xe1\x30\x1b\
\x63\xca\xac\x68\x23\xde\x94\x03\x8e\xb1\x69\x22\x26\x04\xb6\x69\
\xa0\x69\x19\x80\x3f\x82\x37\x1c\x20\xf0\x3c\x78\xc3\x01\xb6\x36\
\xd6\x70\xf6\xe4\x09\xac\x9c\x3e\x8d\x95\x95\x15\x9c\xbf\xb0\x8a\
\xf5\x8d\x4d\x6c\x74\xb7\xb0\xba\xd9\xc5\x7a\xaf\x8f\xfe\xc8\xc7\
\x48\x4a\x04\x3c\xdb\x0c\x10\x75\xc1\x15\x02\xd7\x2c\x2d\xe2\x13\
\xbf\xf0\x8b\x51\xe9\xa7\x54\xa7\x5d\xcd\x64\xa3\x5b\xa2\x2b\xaf\
\xfa\xdd\x54\x52\x70\x68\x5c\x89\x6e\x92\x53\x0d\x1d\x43\x70\x43\
\xd4\xea\x9e\xd3\x95\x37\x38\xfb\xab\x17\xcc\x77\x3b\xbc\x1e\x67\
\xe6\x99\xb0\xaf\xd7\xef\x23\x90\x41\xf5\xab\x75\xaa\x5d\x2f\x7f\
\x1f\x6d\xdb\xc6\xe1\xc3\x87\xa3\xdf\x6b\x7c\x12\x48\x9f\x18\x3c\
\x15\xb0\x62\x90\xad\x20\xdf\x95\xa9\x93\x57\x03\x54\xcd\x98\x26\
\x82\x51\xe5\x7c\xa6\xec\xaa\x10\xc4\x40\x18\x3f\x21\xc0\xb4\x2c\
\xe5\xbc\x73\x54\xb5\x07\xd7\x71\xe0\xd8\x8a\x2d\x39\x96\x02\x20\
\xcb\x32\x60\x0a\x25\x3b\x19\x3a\x90\x7f\xf2\xd4\x29\x7c\xf1\x53\
\xff\x07\x44\xca\x66\xcc\x3a\x76\xd5\x5e\x58\x40\x71\x60\xa9\xe8\
\x9a\x8d\x81\x68\x1a\x63\x1a\xcb\x65\x1a\x93\x71\xe2\xc9\xf5\xf0\
\xf5\x87\x61\x98\x26\x64\xe0\x47\xd2\x49\x58\xd0\x35\xee\xdb\x44\
\x09\xfe\x96\x60\x4c\x61\x17\xd7\xc8\x39\x1e\x33\xb2\x74\x32\x2e\
\x60\x19\x06\x9a\x00\x7a\x9e\x07\x5f\x03\x9e\x37\x00\xba\x6b\xab\
\x38\x67\x9a\x10\x86\x01\xd3\xb4\x94\x2c\xaa\x0b\xe1\x5a\xa6\x89\
\x86\x6d\xc1\x36\x0d\xc5\x9a\xb4\xd3\xb1\xea\x84\x1a\x15\x7c\x35\
\x04\xbe\xe2\x85\xcf\xc3\x9b\xdf\xfb\x7e\xfc\xaf\x3f\xf8\x7d\xd5\
\xc3\x29\x05\x1e\x49\xe6\x24\x15\x4b\x22\x86\x64\x55\xbf\x48\x40\
\x26\x5c\x7a\xba\x09\xa4\xe0\x28\x1f\x2a\x31\xeb\xa9\x3f\x19\x87\
\x1e\x12\x1d\x8d\x79\x2c\x4f\xab\x40\xd3\xdb\x21\x06\xc5\x0c\x74\
\x3a\x6d\x98\x66\xb5\x29\x63\x34\x1c\xa6\xbe\x4b\x65\x26\x53\x75\
\x59\x41\x39\x8c\x72\x06\xe9\x2e\xd9\x92\x84\x88\x70\xf2\xe4\x29\
\x60\x72\x7c\xa9\x4c\x9c\xa9\x06\xa5\x1a\x98\x66\x66\x4d\xa5\xeb\
\xe5\x49\x29\xb1\xd9\x1b\x80\x4d\x5b\x4b\x6f\x12\x86\x69\xc0\xb2\
\x1d\x58\x96\xce\x59\x6a\x38\x2a\x36\xa3\x63\x4b\xb6\xa5\xc0\x49\
\x4d\xa6\x71\x15\x03\xc7\xb6\x70\xcf\x9d\x77\x62\x63\xf5\x82\x6a\
\x6c\x17\x3a\xd1\x0c\x13\x8d\x56\x5b\xaf\xb4\xd3\xd3\x10\xa7\xee\
\xa0\x00\x74\xb2\xa0\x44\x51\x45\xe8\x6c\x29\x19\x1a\x93\x00\x39\
\x5a\x89\xb2\x94\xf0\x3c\x1f\xfb\xf6\xec\xc1\xee\x03\x07\x70\xf6\
\xf8\xb1\x54\xb9\xa2\xa4\x33\x2f\x7f\x62\xcc\x5a\xa2\xe3\xbc\x26\
\xa6\x7c\x6c\xb5\x75\x3c\xa9\xe7\x79\xf0\x34\xd8\x0d\xfb\x3d\xac\
\x9f\x3f\xaf\x80\xc9\xb2\xe0\xba\x61\x5f\x2b\x05\x4c\x6d\xd7\x85\
\x6b\x59\x51\xd9\x22\x31\x83\xa4\x17\xee\x83\x29\x08\xae\x69\xe2\
\x7b\xbf\xfb\x1f\xe3\xde\xcf\xfd\x03\x56\x4e\x9d\x84\x11\x26\x6e\
\xb2\x8a\x8c\x21\x6a\x7b\x21\xc0\x42\x46\x2d\x30\x58\xc7\xd5\x14\
\x58\xe9\x58\xa1\x3e\x7b\x92\x4e\xbd\xd8\x32\xae\x7f\x13\x7d\x7f\
\xac\x22\x84\xce\x1f\x2b\xf6\x40\xe4\x94\xcd\xc6\x3c\x41\x8a\xd3\
\xd5\x14\x92\x41\x1d\x2e\x0e\x7c\x6d\x6c\x6e\x68\x55\xa1\x2a\x16\
\x55\x9f\xbb\x99\x19\x0b\x0b\x8b\xd8\xbd\x7b\x77\x3a\x87\x69\x4a\
\x8e\x58\x99\x22\xc0\x47\x9e\x79\x3a\x64\x4c\x01\x26\x5b\xc3\xa7\
\x25\xd8\xd6\xa0\x54\x4b\x79\x73\x63\x4d\x99\x13\x4f\xf7\x96\x21\
\x81\xde\x60\xa0\xac\xce\xfa\x69\xd3\xb2\xe0\x36\x1a\xaa\xc5\x85\
\xed\x44\x06\x88\xd8\xfc\x10\xc6\x98\xd4\x44\x6a\x59\x26\x1c\xdb\
\xc2\xc6\xe6\x26\xfe\xe1\x7f\xff\x55\x42\x46\x53\xbb\xd4\x59\x5c\
\x2a\x12\xd3\xd3\xba\x5d\x0e\xe3\x49\xca\x77\x91\x8c\x97\x8a\x01\
\xc5\x4c\x27\x2a\xc2\x9a\x00\x97\x64\xf7\x75\x29\x25\x3c\xdf\xc7\
\x9e\x5d\xcb\x78\xce\xe1\x1b\xc0\x52\xa6\x18\x51\x0a\xf4\x32\x1a\
\x63\xe8\xda\x43\x12\x10\x13\xef\xa3\xcc\x2d\x29\xeb\x59\xa6\x81\
\xa6\x6d\x80\x7c\x0f\xbe\x37\x44\xe0\xfb\x18\xf6\x7b\x58\x3d\x7b\
\x16\x2b\xa7\x4e\x61\xe5\xcc\x59\x9c\x3f\x7f\x01\xab\x6b\xeb\x58\
\xef\x76\x71\x61\x73\x13\x1b\xfd\x01\x86\x7e\x80\x40\xf2\xf6\x24\
\x3d\x28\x49\x6f\xff\x62\x07\x3f\xf2\xb3\xff\x22\x51\x32\x29\x2d\
\xc7\x65\xa5\xb9\x58\xea\x4b\x48\x7e\x9c\x91\xf4\x72\xb6\x91\x94\
\xf3\xa2\x89\x35\x25\xe5\x71\xaa\xda\x48\x69\x0d\x6c\x0e\x53\x21\
\x33\xc3\xd6\x0b\x00\x24\x17\x22\xd9\x45\x09\xa5\xcf\xc7\x0b\x17\
\x2e\xcc\xe1\xe3\xcb\x57\x16\x0f\x02\x1f\xa6\x69\x14\x62\x5c\x59\
\xe9\x2e\x7b\xad\xdd\x7f\xdf\x7d\xd3\xa4\xbc\xda\x2a\x5e\x33\xa6\
\x4b\xcb\x9a\x38\x13\xcb\x89\xa4\x17\x28\x19\xcf\x0a\xc1\x29\x64\
\x48\x8e\x1d\xb3\x26\x3b\x94\x9f\x0c\x95\x97\x43\x80\x63\xdb\xb8\
\xeb\x9e\x7b\x70\xec\xc9\x27\x94\x8c\xa7\x2b\x87\x13\x11\x1a\xad\
\x56\x15\xfd\xae\xb0\xa0\x26\x52\xf1\xa3\x38\xc9\x36\x59\xe7\x2e\
\x95\xc7\x94\xac\x49\xa4\x83\xfb\x52\x97\x4a\x3a\x70\xed\xb5\x89\
\xe2\xa3\xd9\xcf\x4d\xb3\xae\x6c\x62\x6f\xcc\x02\x42\xd6\x41\x93\
\xbf\x11\x03\xb6\x61\x80\x40\xe8\x07\x3e\xfc\x51\x2c\xa1\x5e\x38\
\x73\x3a\x2a\xf7\x64\x5a\xa6\xea\x73\xa5\xad\xf8\x0d\xdb\xd2\x2e\
\x3f\xd5\x38\x2e\xec\x42\x5b\x75\x3a\x34\x48\x19\x32\x5e\xfe\x82\
\xe7\xe1\xb5\x6f\x7b\x3b\x3e\xf5\xe7\x7f\x0a\xc7\x71\x75\xbc\x4f\
\x1b\x14\x42\xb7\x5e\xb4\x6c\x41\x54\x0d\x82\x24\x81\x49\x42\xea\
\xd2\xe4\x82\x62\x53\x0b\x67\x8f\x33\xe2\x62\xb9\xe1\xb1\xca\x2f\
\x57\x84\xb1\x26\x83\xe9\xe3\x36\x7f\x93\x04\x33\x60\xdb\x76\xea\
\x37\x2f\x33\x36\x36\x36\xe6\x78\xd9\xe6\x7f\x87\x64\x5d\xbe\x66\
\xb3\x09\xcb\xb4\xca\x79\xd1\xa7\xb0\xa6\xe4\x63\x8f\x3f\xfe\x38\
\x30\xbd\x80\x6b\x95\xd8\x52\x0d\x54\x35\x30\x95\xb6\x87\x63\x32\
\x53\xca\xaa\x67\xe9\x22\xa5\x42\x08\xb8\x8d\x26\x1c\xb7\xa1\x2a\
\x88\xdb\x56\xe4\xc6\x4b\x82\x52\x08\x4c\xb6\xee\xc8\xca\x2c\xf1\
\xa9\xbf\xfc\x0b\xc5\x42\x22\x2d\x9e\x61\x1a\xa6\x6a\x62\xc7\xf9\
\x2b\xe1\xa9\x3d\x88\x92\x6c\x29\x05\x4a\x89\x8a\xe0\x19\x46\x15\
\xc3\x09\xa5\x18\x53\xb4\xb2\x07\xb0\x7b\xcf\xee\x9c\x9d\xa0\xcc\
\x67\x52\x5a\xf7\xe7\xb8\xac\x10\x27\x7a\x10\x4d\x8e\x3c\xc4\xcf\
\xda\x96\x81\xa1\x37\xc0\xc0\xf3\x21\x84\x80\x4f\x84\x61\xaf\x87\
\x73\xa7\x4e\x6a\x70\x72\xe0\xba\x2e\x5c\x2d\x99\xba\x8e\xa5\x40\
\xc0\xb5\x21\x2c\x2a\x6c\x4e\x57\x4a\xd2\x23\x55\x15\xe2\x07\x7e\
\xf0\xfb\x70\xef\xe7\x3f\x8b\xee\xfa\x7a\x94\x78\x1b\xc7\x9a\x94\
\x59\x45\xc5\x90\x38\xaa\x6d\xa8\x7a\x53\x85\xc9\xb6\x3a\xde\x44\
\x04\x92\x9c\xaa\x0a\x91\x92\x62\x79\x5a\x6e\x13\x72\xfb\x38\x65\
\x63\x23\xb9\x67\xc9\x8c\x00\xc5\x2c\xb1\xbc\xb8\x50\x19\xd7\x1e\
\x7b\xec\xf1\xf9\x5d\xc5\x84\x29\xe7\x09\x63\xf7\x9e\xbd\x30\x4d\
\x03\x09\x2b\x49\xa5\x0a\x0f\xb9\x05\x5e\xa5\xc4\x91\xa7\x9f\x9e\
\xd4\xea\xa2\xac\x84\x57\x83\x52\x2d\xe5\x55\x02\xaa\x69\x16\xf1\
\x8c\xf9\x41\x4d\xdc\x32\xf0\x01\x61\x44\x9b\x31\x2d\x53\x31\x26\
\xc7\x86\xad\xdd\x78\x21\x30\x85\x37\xd3\x30\x61\x5b\x26\x5c\xdb\
\xd1\x71\x27\x13\x6b\x1b\x9b\x78\xf4\x9e\xbb\xa2\xaa\x06\xe1\xc4\
\xe6\x34\x1a\x19\x71\x6c\x4a\xfc\x34\xc7\x81\x17\x03\x4e\x92\x29\
\x65\x41\x29\xed\xc8\xcb\xae\x8a\x59\x86\x56\x0c\xf5\xa9\x7b\xf6\
\xec\x8e\x5a\x63\xa4\x5c\x75\x19\x7f\x60\x4a\x80\xa1\x74\x37\x50\
\xca\xd3\xfc\x32\x37\x42\x12\x50\x95\x21\x82\xa4\x0f\x6f\x38\x84\
\xf4\x7d\xf8\xde\x10\xbd\xcd\x4d\xac\x9c\x3a\x85\x73\x67\xce\xe0\
\xfc\xb9\x73\x58\x5d\x5b\xc7\x46\xb7\x8b\x73\x6b\x9b\x58\xd9\xe8\
\xa2\x3b\xf4\xe0\x05\xaa\xe8\xaa\xdc\xc6\x7c\x68\x09\x81\x6b\x97\
\x97\xf0\xb1\x4f\xfc\x04\xbc\xd1\x28\x21\xc3\x25\x4c\x10\xc8\x91\
\xf4\x64\x42\xd6\x0b\x4d\x24\x19\xa7\x5e\x22\xf8\x94\x50\x93\xe2\
\x5c\xb5\x7c\x59\xaf\x58\x7a\xda\x09\x17\x1f\x4b\xc6\xae\xe5\x45\
\x54\x2a\xe1\xc0\x8c\xb5\xb5\xb5\x8b\x97\x13\xcc\x40\xab\xd5\xaa\
\xc0\xea\xb8\xd4\xc3\xcc\x8c\x7e\xbf\x3f\xcd\xf8\x50\xe7\x2e\xd5\
\x8c\x69\x6e\xe0\xc4\x25\xe5\xbc\xec\xca\x08\x51\x3f\x4c\xd3\x8a\
\x2a\x33\x58\x8e\x13\x35\x04\x74\x13\xb1\x25\xd3\x88\x73\x6d\x4c\
\x43\xe8\x40\xbd\x8e\x31\x99\x26\x7a\xbd\x3e\xba\x51\x6b\x80\xb8\
\x4e\x6c\xb3\xd5\x89\x94\x1e\x4e\x2e\x94\x27\x5c\x53\x49\x93\x43\
\xf2\x6f\x32\x19\x36\xae\xc4\x9d\x60\x2d\x39\x66\x88\x28\xc8\xaf\
\xe3\x23\x60\xc0\xf3\x7d\x5c\xb3\x6f\x2f\x96\xf6\xec\xc3\xda\xb9\
\xb3\x89\x4f\xa5\xd4\x47\xa6\xf1\x46\x05\xf5\xc3\x1c\x9d\xa8\x9c\
\x11\x65\x66\x02\x46\x7e\xcb\x6c\xfd\xbd\x1b\xae\x03\xc3\x10\xd8\
\x1c\x8c\xe0\x8d\x86\xca\xa9\x37\xec\x63\x73\xf5\x3c\xce\xea\x62\
\xb9\x61\xfe\x98\x5a\x04\x08\xb5\x08\x30\x0d\x55\x8b\x50\xd0\x4c\
\x2e\xbd\xa4\xa4\xf7\x86\xaf\x7c\x39\x7e\xef\x85\x5f\x82\xa7\x1e\
\x7e\x48\xf7\x6e\x4a\x80\x09\x73\x54\x88\x97\x92\xb1\x26\xa6\xf8\
\xaf\x66\x4c\xa1\x33\x8f\x52\x92\x1e\x90\x6c\x0c\xc8\xa4\xf3\x9d\
\xe2\x96\xb7\xe9\xda\x7a\x29\x70\x4a\xbb\x22\xf2\x1b\x3b\x6c\x8f\
\x41\x31\x57\xbf\xc0\x92\x52\xde\xc5\x98\xa1\x97\x96\x97\x0b\x0c\
\x19\xe9\x23\x92\x57\x61\x9c\x73\xa4\x50\x22\xc2\x68\x34\xc2\xfa\
\xfa\xda\x34\xb6\x54\x83\x54\xcd\x98\xb6\x05\x44\xb3\xb4\x57\x4f\
\xb1\xa8\x63\x4f\x3c\xc2\xd1\xca\x5f\x27\x1c\x0a\x21\x94\xe1\xc1\
\x71\xd0\x6c\xb5\x94\x7c\x17\xb5\xb8\x50\xee\x31\x3b\x4c\xb2\x4d\
\xdc\x1c\xcb\xc4\x1d\x5f\xfc\xa2\xaa\x22\x11\x36\x33\x65\x86\x69\
\x5a\x68\x34\x5b\x69\x07\x42\xe6\xf2\x9e\xd6\x65\x36\xfe\x5b\xc0\
\x98\x72\xc1\x49\xfd\xc3\x12\x80\x23\x12\x32\x9e\xae\x6c\xe1\xfb\
\x3e\x76\x2f\x2e\x60\xef\xb5\xd7\xaa\x2a\x14\x94\x0c\xb4\x51\xae\
\xea\x92\x94\xf6\x28\xcf\xd2\x8b\xb4\xcd\x7c\xac\x59\x87\x66\x71\
\xcc\x0c\xc7\xb6\xb0\xd0\x70\x21\x64\x00\xcf\xf3\x10\xf8\x01\x86\
\xfd\x3e\x56\xcf\x9e\xc1\xf9\xb3\x67\x70\x7e\xe5\x1c\x56\x2f\xac\
\x61\x63\xa3\x8b\xcd\x5e\x1f\x6b\xdd\x2d\x6c\x0c\x46\x18\x06\x01\
\x02\xe6\x89\xb3\xc3\x34\x69\xd4\x22\x81\xb6\x63\xe3\xe3\x3f\xf9\
\x13\xf1\x4c\x9d\x64\x4e\xb9\x26\x08\x8e\xf2\xd1\x22\x03\x84\x6e\
\x7c\x38\xfe\x5a\x64\x98\x54\x0c\x78\x9c\x59\x95\x8c\x83\x04\x23\
\x2f\x47\x87\xcb\x52\xa5\x29\xd3\x26\x03\x68\xb7\x9a\x95\x2e\x38\
\x29\x25\x1e\x7b\xfc\x09\x5c\xac\x42\x79\x0c\x55\xc0\x95\x32\x17\
\xc7\x64\xa3\xdf\x64\xd6\xc4\x50\x8d\x2a\x2b\x4a\x78\x12\x75\xf1\
\xd6\x1a\x98\xb6\xc9\x96\x2a\x59\xc5\x99\x39\x20\xa2\xf1\x24\x5b\
\xc3\x4c\x14\x6c\x75\x60\x9a\xca\xf4\x60\x9a\x86\xfa\xb7\x61\xc0\
\xb6\x2d\xb8\x51\x2e\x93\x05\xc7\xb6\xc0\x0c\x7c\xf6\x93\xff\x47\
\xc7\x11\xd2\xcb\x39\x61\xc4\xf9\x4c\x45\x4e\x2d\x9e\x25\xd7\x23\
\x9e\xf1\x0b\xa6\x64\x82\x2d\x08\xae\x11\x4f\x94\x32\x0c\xee\x83\
\xe0\x3a\x36\xf6\x1e\xb8\x26\xe1\x26\x4b\x4b\x76\x84\x6c\x79\xa2\
\x74\xc7\xdb\xac\xb4\x57\xb4\x9b\x63\xb2\x22\xc5\x85\x5f\xdb\xae\
\x0d\x83\x03\x04\xde\x08\x81\xe7\x61\xd8\xeb\xe1\xfc\xe9\xd3\x38\
\x7f\xf6\x2c\xce\x9f\x3f\x8f\xd5\xf5\x75\x6c\x74\xb7\xb0\xb9\xd5\
\xc7\x66\xbf\x8f\x9e\xe7\xc3\xe3\xe9\x2e\x3d\x9a\x00\x50\x61\xe2\
\xed\x0b\x6f\xba\x01\xaf\x7a\xd3\x5b\x30\x1a\x0d\x33\x8e\xb9\x8c\
\x2b\x6f\xcc\xa1\x97\x00\x9d\x30\x11\x57\xa6\x5d\x79\x71\x4a\x73\
\x22\x56\x95\xfb\x4b\x73\xf2\xd0\x4f\x94\xf7\xf2\x97\xeb\x5c\x5e\
\x47\xd0\xe7\xf8\xf2\xe2\x42\xe5\x0b\x4d\xa6\x7a\x86\xcd\x79\x64\
\x53\x22\x48\x33\xa6\xc2\x4f\x9c\x2e\xdd\x65\x97\x7d\x44\x84\x6e\
\x77\x0b\x98\x1e\x5f\x92\x98\x6e\x7a\xa8\x41\xa9\x06\xa6\xca\x22\
\x73\xd9\x72\x44\x91\x9c\x67\x38\x6e\x34\x71\x0a\x21\x60\x59\x36\
\x6c\x2d\xe1\x29\xd9\xc9\xd0\xb5\xf1\x54\x5c\xa9\xdd\x68\x60\xa1\
\xd5\x42\xbb\xd1\x40\xd3\xb1\xd1\xb0\x2c\xf8\x52\xe2\xec\xc9\xe3\
\x19\x5d\x9c\xe1\xba\x0d\x44\x9e\xe9\xdc\x4a\x00\xc9\x98\x04\x27\
\xe6\x24\x2e\x74\xbd\x66\x2f\xe8\xb4\x84\x97\xad\x8e\x9d\x5e\x69\
\x46\x95\xb1\x09\xb0\x4d\x13\x87\x6f\xb8\x41\x4d\xb8\xe9\x17\x24\
\xb6\x41\x59\x12\x95\x9b\x4b\x35\x66\x31\x4e\xb4\xd1\x48\x6e\x8f\
\x12\xfb\xc9\x00\x5c\xdb\x84\xc1\x81\xaa\x0c\x11\xf8\xf0\x47\x43\
\x74\x37\xd6\xb0\x72\xea\x24\xce\x9f\x3d\x8b\x0b\xe7\x2f\x60\x7d\
\x7d\x03\xdd\xad\x1e\xd6\xb7\xfa\xd8\x1c\x0c\x31\xf0\x03\xf8\xcc\
\x93\x9b\x6a\x4d\x60\x4f\x04\xd5\x92\xdd\x35\x4d\x7c\xf7\xf7\x7e\
\x0f\x5a\x9d\x85\xa8\xcd\x7d\x4a\x63\x4d\x26\xdd\xe6\xd9\xc7\x73\
\xc1\x2b\xcd\x9c\xe2\x9f\x34\xdc\x5e\x0c\x10\x59\x10\x2a\x04\xa7\
\x59\xe3\x4f\x05\x4f\x35\xa3\x04\xe3\xf2\x63\x30\x18\xcc\x2d\xc6\
\x44\x53\xaf\x64\xc2\xee\x5d\xbb\x26\xdb\xc4\x27\x80\x50\xd1\xc1\
\xa2\xb0\x8d\xd8\x64\x70\x2a\xeb\xca\xab\x59\x53\x0d\x4c\xa5\x2e\
\xb9\x59\x5a\xae\x33\x40\x30\xdd\x66\x1c\x17\x10\x02\x86\x69\xea\
\x0a\xe2\x66\xe4\xc4\x73\x2c\x4b\xb1\x25\xcb\x82\x6b\xdb\x68\xd8\
\x36\x5c\xdb\x82\x6d\x9a\xb0\x4d\x03\x9b\xbd\x1e\xd6\xcf\x9f\x53\
\x6d\xbe\x29\x9e\x78\x9a\xed\x4e\xfa\x63\xa3\xfc\x17\x60\x6c\xa9\
\xcc\xc8\x71\xee\xf1\x1c\x4e\xff\xb4\x19\x83\x11\xc7\x9d\x6e\xba\
\xe1\xfa\xa8\x3e\x5e\x72\x77\xd2\xed\xd6\x33\xa6\x71\x42\xa6\x89\
\x60\xda\xea\x90\xa8\xb8\x97\x06\xa5\xcc\x7d\x42\xcc\x9c\x04\x24\
\xfc\xd1\x10\x41\xe0\xc3\x1b\x0e\xb0\x76\x6e\x05\x67\x4f\x9f\xd2\
\x46\x88\x35\x6c\x74\xbb\x3a\xbf\x49\x4b\x7a\x3a\xbf\x49\x96\x58\
\x4f\x53\xc1\x05\x63\x09\x81\x1b\xf6\xef\xc5\xbb\xbe\xf9\x5b\x55\
\xeb\x13\x4e\x3b\x17\xd3\x39\x4a\x32\x3f\xc7\x29\x71\x3f\x02\xb0\
\x78\x43\x29\x39\x2f\xb3\x3a\xc8\x01\x27\x2e\x96\xec\x4a\xa5\x35\
\x71\xa9\xab\xc5\xb2\xcc\x4a\x20\xe3\x79\x1e\x4e\x9d\x3e\x3d\x77\
\x29\xaf\x90\xd1\x0a\x42\xa3\xd9\x98\xf2\xbd\xb8\xd2\x54\x21\x88\
\x70\xf4\xe8\x51\x60\x7a\x6c\xa9\x6c\x4b\xf5\x1a\x94\x6a\x60\x2a\
\xc5\x90\x66\x95\xf6\xa2\xf8\x52\x98\x73\x64\x5a\x16\x0c\x53\x15\
\x16\xb5\x75\xff\xa5\x50\xc2\x6b\x38\x8e\x2a\x45\x64\x1a\xb0\x0c\
\x55\xbc\xd5\x32\x0c\x3c\x7d\xf4\x38\x7c\xcf\x8b\xd9\x51\x18\x3f\
\xd0\xd2\x1e\x03\xe9\x15\x74\x91\xfb\x2b\x7c\x5f\x62\x82\xe3\x48\
\x00\x4a\x4b\x44\xa9\x24\xcd\xec\xa4\x56\x20\xe3\x84\x13\x02\xb3\
\xd2\xdc\xaf\xdd\xb7\x47\x07\xff\xd3\xed\x2e\x90\x2a\x4b\x14\xa3\
\x11\x25\xaa\x6e\x27\x8b\xbd\xa6\x26\x2d\x4a\x3f\x9e\x64\x49\x29\
\x66\xa7\x0f\x55\xc3\x75\xb1\xd4\x6e\xc1\x60\x09\x7f\x34\x52\xc9\
\xb7\x83\x3e\xce\x9f\x3e\x85\x95\xd3\xa7\x23\xd6\xb4\xd9\xdd\xc2\
\xda\x66\x17\x6b\x5b\x3d\xf4\x3c\x1f\x43\x29\xe1\x73\x39\x11\x34\
\x2f\x1a\x26\xb4\x11\xe2\x43\x5f\xff\x1e\x2c\xef\xdd\xa7\x4a\x10\
\xa5\x0f\x58\x14\x2f\x42\x0a\x88\xe4\x78\xbc\x29\x2f\x51\x17\x79\
\x92\x1e\x52\x71\x26\x66\x1e\xff\x4c\x94\x93\xf6\x8a\xc1\xa9\xf8\
\x88\x18\x42\x60\x69\x61\xa1\xf4\xac\xaa\x5a\xb6\x04\xd8\xdc\xe8\
\x5e\x94\x26\xbc\xaa\x4e\x9e\x13\xd5\xc9\xe3\xaa\xd8\xc4\x05\xfc\
\x89\x08\x47\x9e\x39\x92\x04\xa6\xa0\x00\x8c\x26\x15\x71\xad\x41\
\xa9\x06\xa6\x99\xc1\xaa\x44\xc5\x87\xb1\xae\x94\x29\x2d\x9a\x84\
\x72\xdc\x99\xba\xe4\x50\x58\x9c\xb5\xe9\xba\x68\xba\x8e\xae\xe3\
\xa6\x98\x92\x4a\xfe\x24\xfc\xed\xa7\x3f\x9d\xda\x0e\xb3\xb2\x9d\
\x3b\x4e\x23\xb1\x62\xce\xc4\x1c\xb2\x81\xf6\xbc\x4a\x04\x49\xa9\
\x2f\x1b\xc2\x48\x48\x44\xe3\x17\x26\xe7\x5e\xf4\x21\x34\x49\x56\
\x15\x20\x9a\xae\x03\xcb\x71\xa3\xef\x9e\xaa\x97\x97\x23\x0b\xa6\
\x24\xba\x04\xe8\xa4\x81\x27\xe6\x4c\x29\xa9\x0f\x69\xcb\x79\x68\
\x51\x67\x66\x38\x96\x85\x85\xa6\x0b\x53\x00\x81\xe7\x21\xf0\x46\
\xe8\x77\xbb\xb1\xa4\x77\x61\x15\xab\xeb\x1b\xd8\xe8\x6e\x61\xad\
\xbb\x85\xee\x50\xb1\x26\xbf\x80\x35\x95\xbd\x68\x4c\x12\xd8\xb7\
\xd0\xc1\xfb\xbf\xfd\x3b\x14\x6b\x4a\xfe\x86\x63\x92\x5e\x81\x29\
\xa2\x50\xca\xe3\xc2\xdf\x2b\xf9\x09\xc8\x01\xa7\x2a\xd2\x5e\xf9\
\xea\x11\x3c\xb5\x49\xe0\xf8\x56\x58\xd5\xd5\xa3\xed\xce\xc6\xb4\
\xcd\x97\x71\xc9\x7b\xc5\xe3\xdc\xb9\x73\xc0\xf4\x3a\x79\x65\x73\
\x98\xea\x51\x03\xd3\x54\x81\x62\x9a\x84\x07\x94\x2a\xe4\x0a\x98\
\x96\x2a\x24\x1a\xde\xc2\x0a\xe2\x8e\x6d\xa1\xe1\xd8\x68\x39\x0e\
\x1c\xcb\x84\x65\x08\x98\x42\xdd\x24\x33\x1e\x7f\xf0\x81\x84\xf1\
\x81\x23\xf6\x95\x34\x3e\x84\x4c\x28\x09\x38\x49\xd6\x54\x3c\xf1\
\x15\x3f\x9f\x94\x9f\x92\xae\xaf\x22\x17\x18\x98\x75\xb5\x6c\x86\
\x17\x04\x58\x6c\x36\xb0\xf7\x9a\x6b\x75\x25\x87\x0c\xc0\x50\x02\
\x44\xf2\x0a\x50\x64\x3a\xdd\x8e\x31\xae\x0c\x70\x8d\xbb\xfa\xf4\
\x3d\x6d\x3f\x77\x6c\x0b\x26\x18\xfe\x68\x04\x19\x04\xf0\x47\x43\
\x6c\x5e\x38\x8f\x95\xd3\xa7\x71\x7e\x65\x05\xab\x17\x56\xb1\xbe\
\xd9\xc5\x46\x77\x0b\x17\x36\xb7\xd0\x1d\x7a\x18\x05\xf9\xac\x89\
\x73\x26\xbb\xbc\x39\x4f\xd9\xc7\x0d\xbc\xe3\xad\x6f\xc1\x9e\x03\
\xd7\x44\xd5\x3a\xd2\xcc\x07\x13\xc1\xa8\xa8\xac\x51\x72\x25\x91\
\x2f\xe9\xa5\x19\x6f\x1e\x08\x15\xca\x75\x5c\x96\x27\x71\x0a\x68\
\x49\x37\x66\x2c\x0d\x27\x44\xe8\xf5\x7a\x18\x0e\x86\xe3\xf2\xec\
\x9c\xd9\x52\xb8\x78\x5a\x58\x5c\xc4\x9e\x54\x9d\xbc\x8a\x9f\xc7\
\xf9\x49\xec\x77\x7c\xf1\xf3\x28\x09\x48\xd3\x0c\x10\x75\x8c\xa9\
\x06\xa6\xd2\xa7\x64\x95\xf8\x52\x74\x33\x1c\x17\xc2\xb2\x15\x90\
\x08\xa1\x2a\x5d\xdb\x36\x0c\xc3\x54\x7d\x81\x0c\x03\xc2\x10\x10\
\x24\xa2\xfc\x25\xdb\x30\x34\x28\x11\x0c\x41\xda\xf8\x70\x22\x36\
\x3e\x68\xf3\x42\x54\xb0\x35\xa1\xe3\x25\xff\x59\x34\x79\xa5\xec\
\xc9\x72\x32\x58\xe5\xb3\xaf\x1c\x70\x4a\x7c\xa6\x94\x32\xaa\x9b\
\xd7\xb0\x2d\x5c\x73\xf0\x50\xba\xcd\x7b\x42\x8f\x4b\x46\x98\x26\
\xcc\x5e\x29\x90\x4a\x99\xc5\xb3\xc6\x08\x20\x93\x04\x1c\xa1\x9c\
\xea\x82\x6b\x99\x30\x89\x55\xbc\xc9\xf7\x31\x1a\x0d\xb1\xba\x72\
\x06\xe7\xce\x26\x6a\xe9\x6d\x86\xed\x31\x06\xe8\x7b\x3e\x7c\xc9\
\x15\xa4\xa9\xf1\x7f\x9b\x44\xd8\xbf\xd8\xc1\x07\x3f\xfa\x5d\x18\
\x0d\x07\x39\x35\x6d\x78\x1c\xac\xa6\xfd\x26\x48\x48\xb3\x59\x19\
\x96\xd3\x55\xcd\x67\x03\xa7\x2a\xec\x09\xd1\xe7\x36\x1a\x2e\x1a\
\x15\xcd\x0f\xfd\x7e\x4f\xb5\xbc\xa0\x79\x5e\xae\xc5\x23\xf0\x7d\
\x98\x86\x99\x3e\x36\x85\x32\x1d\x97\x8a\x44\x31\x33\x8e\x1f\x3b\
\x56\xa6\xff\x52\x59\xd6\x54\x83\x52\x0d\x4c\xa5\xcf\xf0\x32\x2c\
\x29\xc6\x06\x66\x16\xa6\x15\xb5\xa7\x10\x42\xc0\xd0\x86\x07\x2b\
\x64\x4e\x42\xc0\x10\x8a\x39\x09\x12\xd1\xc4\x2a\xc2\x26\x76\x44\
\x18\x78\x3e\x56\x4e\x1e\x03\x09\x91\x89\x71\xa7\x77\x67\xac\xd0\
\x67\x2a\xae\x34\x49\x1a\x92\xe9\x5b\xb2\x6f\x50\xe6\x3d\x28\x00\
\xae\xe4\xe4\x84\x04\x98\x19\x42\x60\x79\xf7\x6e\x4c\x0c\x50\x25\
\xfb\x3a\x65\xa4\xa9\x22\xa0\x1a\x8b\x3b\x21\x53\x5d\x22\x11\xbb\
\xa2\x44\xec\xaa\xe1\x3a\x58\x6c\x35\x54\x07\xda\xc0\x87\xf4\x3c\
\xf4\xbb\x5d\x9c\x3f\x73\x1a\x17\x42\xd6\xb4\xb1\x89\x8d\xad\x1e\
\xd6\xb7\xb6\xd0\x1b\x79\xf0\x24\x43\xf2\x04\xcb\xd4\x94\x29\x44\
\x90\xaa\x40\xfe\xd6\x37\xbc\x0e\x7b\x0e\x5c\xa3\xbb\x0b\xe7\xcb\
\x68\xa9\x63\x2c\xa7\xb1\xa6\xd8\x64\x92\x94\x62\x63\x49\x2f\x13\
\x6f\xaa\x04\x4e\xd5\xd9\x13\x33\xc3\x75\x6c\x58\x15\x5b\x5e\x0c\
\x87\xc3\xd9\xd9\x4b\x55\x29\x8f\x81\x46\xb3\x09\xd3\x32\xe7\x3a\
\x4b\x30\x33\xba\xdd\x6e\x51\x7c\x69\x92\x94\x87\x1a\x88\x6a\x60\
\xda\xae\x9c\x37\x29\x19\xae\x58\xca\xd3\x12\x1c\x09\x43\x99\x1e\
\xc2\xd2\x43\x66\x2c\xeb\xd9\x76\x58\xb0\x95\x40\x42\x4d\x66\x21\
\x2b\xd8\xec\x0f\xe0\x8d\x46\x71\xb7\x52\xfd\x91\x6e\xb3\x09\x5d\
\xe1\x2b\xd3\xb5\xb6\x20\x19\x53\xa6\xd9\x92\x4c\x82\x8f\x54\xf2\
\x5b\xf4\x1a\x19\x17\x64\x4d\x36\xb1\x93\xa9\x04\xd0\x64\x10\x3e\
\xe1\xba\xa3\x38\xe1\xd0\x10\x84\xdb\x6e\xbb\x0d\xcc\x72\xac\x0d\
\xfb\x98\x29\x39\x17\x4c\x91\x5b\x9b\x73\xcc\xa9\x47\x69\xe9\x2e\
\xd9\x74\x30\x59\x59\x5d\x32\xd4\xe4\x29\x00\x7f\x34\x84\x0c\x02\
\x78\xa3\x21\xd6\xcf\x9f\xc3\xf9\x95\xb3\x58\xbd\x70\x1e\x6b\x6b\
\xeb\xd8\xd8\xec\x62\xbd\xbb\x85\x8d\xbe\xaa\xbb\xe7\x95\x89\x35\
\x51\x31\x6b\x32\x74\xac\xe9\x43\x1f\xfd\xae\x4c\xac\x29\x6d\x61\
\xc0\x44\x59\xb5\xa0\x71\x60\x8e\x11\xa2\x28\xe9\x76\x5e\xe0\x94\
\x2b\x29\x84\xf5\xfa\x2a\x32\x9f\xc1\x60\x30\x7d\x5a\x9e\x98\xf4\
\x4a\x28\x9b\x0e\xcd\xcc\xd8\xbd\x67\x0f\x4c\xd3\xcc\xcf\x66\xcd\
\x63\x4d\x53\x98\x14\x88\x30\xf2\x3c\x9c\x3f\x77\x2e\x40\xb5\xdc\
\xa5\xba\xea\x43\x0d\x4c\x33\xad\x87\x78\xca\x73\xe5\x7a\x32\xe9\
\xbb\x24\x08\x86\x50\x40\x14\xb2\x26\x65\x11\x37\x61\x19\xa6\x66\
\x4f\x02\x22\x93\xbe\x79\xe6\xfc\x5a\x04\x0e\xd1\x65\xa8\xab\x3e\
\xc4\xd7\x24\xe7\x42\x66\x71\x75\x81\xa4\x9c\x27\x15\x48\xe9\x2e\
\xab\x11\x18\x65\x6e\xd1\x63\x59\x80\x4a\x50\x07\xb5\x7d\x2d\x99\
\x48\x55\x7b\xee\xf0\xc1\xeb\x90\x4a\x49\x4d\xa2\x0d\xa5\x2b\x36\
\x24\xe5\xa8\x2c\x48\x8d\x07\xed\xd3\x12\xde\x58\x23\xc3\x74\xe3\
\xa8\xa8\x9d\x87\x92\xf4\x2c\x98\x02\xf0\xfd\x11\x64\xe0\x63\xa4\
\x2d\xe4\xab\xe7\x2f\x60\x75\x55\xb1\xa6\xcd\xad\x1e\xd6\x36\xb7\
\xb0\x39\x1c\xa1\x9f\xa8\x08\x91\x3b\x5f\x4e\xe9\xb8\x60\x10\x60\
\x0a\x81\xb7\xbc\xe1\x75\xd8\xbd\xff\x80\x8a\x35\x45\x87\x22\x29\
\xb9\x71\x8a\x79\x16\x31\xd6\x54\xfc\x10\x49\xb9\x35\x71\x3e\x64\
\x8d\x2a\x25\xc1\xa9\xaa\xa5\x3c\x29\x1f\x77\xda\x6d\x25\x93\x55\
\x18\xa7\x4f\x9f\x9e\x9c\x00\x3e\xe7\xa9\xba\xd5\x6a\xa9\x62\xbd\
\x3c\xbf\x0d\x07\xbe\x0f\x29\x65\x80\x7c\xf3\xc3\xb4\x72\x44\x75\
\x6c\xa9\x06\xa6\x6d\xb3\xa6\xd2\xf1\xa5\xec\xa2\x4b\x10\xa9\x98\
\x92\x10\x10\xba\x16\x9e\x69\x1a\x68\x3a\x0e\x9a\x5a\x02\x31\x0d\
\x11\xc5\x46\xc2\x37\x9f\x3d\x77\x3e\x5a\x15\x4a\x29\x11\x04\x41\
\x64\x7b\x4d\x25\xdc\x32\xe2\x88\x43\x69\xa7\x97\x2e\x7b\xa3\x19\
\x94\x4c\x48\x7a\x52\xa6\x6f\x63\xa0\xa5\xe3\x49\x60\x19\xb9\xed\
\x38\x59\x79\x42\x4f\xb4\xfb\x76\x2d\x43\x18\x22\x51\x74\x8c\x53\
\xf2\x5b\x2c\xe7\xc5\xfb\x17\xb3\xb7\x98\xb1\xc9\xac\x1b\x2d\x35\
\x59\x8e\x83\x12\xe5\xf4\x9c\x0a\x19\x66\xc3\x71\xb0\xd8\x6a\xc2\
\x12\x04\x19\x04\x08\x3c\x0f\xbd\xee\x26\x56\xcf\xad\x60\xf5\xc2\
\x05\xac\xad\xad\x61\xb3\xbb\xa5\x25\xbd\x3e\xfa\xd3\x58\x53\xa6\
\xe1\x5e\x6e\xac\x49\x08\xec\x5d\xe8\xe0\xed\x1f\xf8\x20\xbc\xd1\
\x30\x4f\x0b\x8b\x17\x13\x28\x90\x65\x73\xcc\x29\x48\xc4\xfd\x62\
\x60\xcf\x91\xf4\x12\x3b\x3a\x09\x9c\x8a\x67\x46\x9e\xb2\xa6\x67\
\x58\x96\x55\x39\x1d\xa9\xdf\xef\x6f\x53\x4b\xab\x36\x8f\x47\x75\
\xf2\x80\x99\x6c\xe2\xd9\xc7\x88\x08\x9b\xdd\x2e\x30\x7b\xf1\xd6\
\x9a\x2d\xd5\xc0\xb4\x6d\xd6\x54\x05\xa0\x64\x32\xef\x28\x4c\xae\
\x0d\x2d\xcf\x82\x84\xaa\x04\x61\x9a\x70\x2c\x13\xae\x65\x6a\xe3\
\x83\x8a\x2d\x19\x1a\xa0\x8e\x1d\x3f\x0e\x61\x18\x30\x6c\x17\x20\
\x01\x32\x2c\x98\x4e\x13\x9b\xdd\x2e\xd6\x56\xd7\xa0\x16\x6a\x89\
\xd5\x7a\xb2\x24\x51\xde\xc4\x26\x33\x31\x0c\x99\x91\xe7\x42\x59\
\x8f\xd3\x60\x94\x05\xa7\xe8\xdf\xfa\xf4\xb0\x6c\x3b\x55\x7d\x20\
\x3c\x42\x2d\xd7\x86\xa1\x7b\xdf\xe4\xda\x1d\x88\x10\x04\x12\x2b\
\x2b\xe7\x71\xee\xdc\x05\x74\xbb\x5b\xf0\x3c\x4f\xb3\x38\xbd\x3f\
\x81\x54\x37\x19\xa4\x1b\xea\x8d\xfd\x4c\xe3\x4d\x78\xb2\x95\x24\
\x14\xe8\x33\x5c\xdb\x82\x25\x08\xbe\xe7\x41\x06\x01\x46\x7d\xcd\
\x9a\xce\x9d\xc3\xda\xea\x1a\x36\x36\x36\x55\x45\x88\x6e\x1c\x6b\
\x0a\xb8\x7c\x7a\x3e\x15\xb0\xa6\x77\x7f\xdd\xdb\xd1\x59\x5a\xce\
\x00\x78\xc2\xfd\x98\x5c\x64\x4c\x88\x31\x8d\x55\x2a\x4f\xca\x9f\
\x99\x5c\xb4\x58\xd2\xcb\xec\x77\x2e\x38\xf1\x64\x70\x9a\x34\xa1\
\xeb\xb6\x2e\xb9\xc7\x23\x99\x73\x86\x98\x29\x3e\xf9\xe4\x93\x93\
\xd9\xcb\x1c\xf2\x6e\x29\xb1\x8b\xcb\x51\x39\xa2\x22\x71\xae\x9c\
\xe1\x21\xfc\x0e\x89\xdd\x2b\x53\xbc\xb5\x6c\x82\x6d\x3d\x4a\x8c\
\xab\xb1\xb5\x3a\x26\xc4\x91\x80\xb2\x6d\x30\x32\x17\x95\x8a\x29\
\x99\xca\x89\xa7\xa5\xbb\xd0\xe4\x30\xd6\xe6\x9b\x80\x61\x20\x01\
\xc3\xc4\xe2\x81\x83\xf0\x86\x23\xb8\x8b\x7b\x22\xab\xb3\xef\x8d\
\xb0\x35\x1c\x61\xe4\x07\x2a\x4e\x65\x1a\x70\x6c\x2b\xaa\x0c\xc1\
\x48\x37\x99\x2b\x5a\xf4\xa9\x92\x7e\x1a\x40\x49\x57\xa5\x06\x01\
\xac\x2b\x57\x83\xc0\x4c\x63\xf6\xed\x64\x12\x6b\x36\xb1\x17\x0c\
\x48\x66\x04\x92\xe1\x5a\x16\xdc\x66\x0b\x5b\xeb\xab\x40\xb2\x72\
\x77\xa2\xdf\x53\x10\x78\xe8\x6d\x6d\x42\x18\x26\x06\xfd\x1e\x84\
\x2e\xd3\x64\x9a\x06\x2c\xd3\x42\xa3\xd1\x50\x7d\xa8\x44\x72\x3f\
\x44\xb4\x64\xd2\x2d\x05\xe3\xef\x52\x62\x9a\x62\x56\x65\x93\x46\
\xc1\x08\x41\xe0\x43\x04\x02\x83\xad\x2d\xac\x9e\x5b\x41\x67\x71\
\x11\x8b\x8b\x8b\xe8\x74\xda\x68\x35\x5d\x6c\xf4\x5a\xe8\xb8\x0e\
\x6c\x21\x60\x18\x25\xda\xb0\x53\x7e\x6c\xcc\x12\x02\x07\x96\x16\
\xf0\xca\xaf\x7e\x33\xfe\xea\xbf\xfd\x21\x2c\xc7\x49\xcb\x64\x09\
\x49\x93\x98\x52\x0b\x0a\x2a\x00\x27\x05\xbc\x9c\xea\x02\xc6\x89\
\xbe\x57\x71\xb3\x46\xfd\x78\x58\x81\x1c\xe1\x4f\xce\xe3\x7e\xfd\
\x44\x8b\x76\x2a\x04\xa7\xf1\x27\x55\x12\x71\x7e\xa1\xa6\x81\xe7\
\x63\x63\x30\x82\x20\xa0\x19\xa6\x44\x18\x06\x9e\x7a\xf2\x49\x48\
\x29\x61\xe4\xed\xc7\x9c\xb5\x3d\x02\xb0\xb4\xb4\x3c\xe3\xcc\x50\
\xb0\x7f\x44\x38\x73\xe6\x2c\xb0\x7d\xab\x78\x6d\x86\xa8\x81\x69\
\x66\xb0\x2a\xc3\x9a\xe2\x93\x8f\xe3\x69\x82\x19\x10\x86\xa1\x62\
\x4b\xa6\xa9\xcb\x0b\xe9\x1a\x7a\xd1\x64\xab\x8c\x0f\xcc\xc0\x6a\
\x7f\x84\xcf\x3d\xfa\x34\xae\x3d\x78\x10\xff\xf8\x13\x3f\x85\x47\
\x1e\x7a\x18\xf7\xdf\xf1\x45\x9c\x3b\x79\x1c\x76\xd0\x04\x4b\x89\
\xc0\xf7\x10\xf8\xaa\xf7\xd0\x30\x08\x20\x3d\x15\xcc\x37\x00\x05\
\x52\xc9\xa4\xdb\xdc\x05\xaf\x9e\x80\xc6\x00\x0a\xba\x9d\x82\x06\
\xa7\x44\x45\x6f\x35\xb9\x51\x3a\x36\x44\x49\xd7\x7a\xcc\x64\x24\
\x33\x5a\xb6\x85\xc5\xdd\x7b\xd0\x5d\x5f\x8d\x19\x53\x26\x17\x49\
\x95\xdc\x61\x90\x11\x37\x45\x1c\x0e\x87\x18\x8d\x08\x40\x1f\xc2\
\x10\x70\x6c\x07\xa3\xd1\x00\xa6\x69\x29\x30\x17\x0c\x82\x50\xf1\
\x02\x12\x09\x49\x2f\x0f\x9c\xc6\x9d\x09\xaa\x2a\x84\x8d\xa1\xef\
\xa3\x37\xf2\x60\x18\x06\x7c\x6f\x84\xcd\xd5\x0b\x58\xbf\x70\x1e\
\x1b\xbb\x96\xb1\xb9\xd8\x41\xbb\xd9\xc4\xda\xe6\x16\x16\x9b\x0d\
\x38\x86\x80\x29\x8c\xf4\xca\x3f\x7d\x28\x27\xe2\x93\xd0\x79\x4d\
\x1f\xfc\xc6\x0f\xe2\x6f\xfe\xe4\x8f\x91\xed\x90\x1a\x37\xf6\x8b\
\xc1\x28\x69\xd7\x27\xfd\x7b\xa6\xda\x66\x24\x41\x89\x78\x8c\x3c\
\x87\x79\x5c\xc4\x14\x2f\x3c\x32\xe0\x84\x4c\xa7\xe1\x98\x3d\x15\
\x81\x53\xfc\x7c\xf8\x81\x81\x94\xb8\x66\xff\xbe\xb1\x66\x8b\x04\
\x42\xcf\xf3\x70\x6c\xa3\x87\x20\x3c\x46\x03\x0f\xb6\x10\x58\x72\
\x4c\xdc\xf6\xca\xd7\xe3\x9a\xbf\xf8\x1b\x6c\x5c\x38\x87\x41\xaf\
\xa7\xbe\x97\x08\x7f\x57\xda\x06\x04\xe5\xd2\x36\xec\xda\xbd\x2b\
\xfd\x73\x65\x81\xba\xe8\xb1\x82\x9f\x9a\x00\x1c\x3f\x76\x0c\x98\
\xec\xc6\x2b\x53\xbc\xb5\x66\x4c\x35\x30\xcd\x24\xe9\xcd\xd0\xfe\
\x82\x53\x55\xc0\xa3\xdc\x25\xa1\xee\x27\x2b\xee\x84\x6c\xc9\x93\
\x8c\x27\x56\xd6\x70\xcf\xe3\x4f\xc3\x34\x95\x59\xe2\x39\xd7\x1e\
\xc0\xc1\x6b\x0f\xe0\xcb\xbe\xec\x4b\x71\xc7\x1d\x77\xe1\xfe\x2f\
\x7e\x11\x17\xce\x9e\x86\x29\x25\xa4\xef\xc3\xb4\x1d\xc8\xc0\x47\
\xe0\xf9\x08\x28\x40\x20\x03\xb0\x2f\xe1\x7b\x23\x98\x82\x60\x99\
\x46\xaa\x78\xeb\xf8\x55\x96\x06\xa8\x10\x7c\xb2\xe0\xa4\xaa\x36\
\x84\xf8\xa5\xfb\x00\x85\x72\x06\x73\xae\xed\xd7\x34\x04\x76\xed\
\xd9\x8b\x13\x4f\x3e\x96\x9b\x38\x1b\x25\xc1\x72\x46\xf6\x49\x24\
\xcc\x7a\x01\xe3\xa5\x5f\xf1\x95\x78\xfc\xde\xbb\xb0\xb5\xbe\xae\
\xac\xf3\xcc\x10\xcc\x60\xa1\x5a\xcf\x93\x20\xad\x3a\xeb\xda\x7c\
\x25\x0c\x62\xcc\x80\x63\x9a\xf0\x02\x15\xbb\x13\x81\x8f\xd1\x60\
\x80\xb5\xf3\xe7\xb1\xb6\x7b\x37\x16\x16\x17\xd1\x69\xb7\xb1\xde\
\x6d\xe0\x42\xab\x81\x86\x6d\xc1\x31\x14\x6b\xe2\x8c\x44\x44\x25\
\x59\x93\x29\x08\x37\x5f\x7b\x00\xcf\x7d\xf1\x4b\xf1\xf0\xdd\x77\
\xa9\xca\x07\x99\x08\x50\x0c\x22\x09\x20\xca\xf4\x70\xa2\x24\x78\
\x8d\xb1\xa6\xa8\xb3\x7a\x1a\x60\x52\xe4\x38\xcd\x00\x78\x0a\x38\
\xe5\x4f\xf7\xf1\x06\x99\x25\x96\x97\xc6\x9b\x04\x06\x52\xe2\xa9\
\x0b\x1b\xf0\x58\x81\xb2\xd0\xe7\x90\x0f\xe0\xdc\x30\xc0\x57\xbd\
\xe1\x0d\xf8\x8a\x57\xbe\x1a\xab\x9b\x9b\xb8\xf7\xbe\xfb\xf1\xbf\
\xfe\xf0\x0f\xf0\xd8\x3d\x77\xe0\xc2\x99\xd3\x90\xb9\xfb\x34\x3b\
\x50\x09\x22\x34\x1b\xcd\xb9\x1a\x1f\x40\x84\xa3\x47\x9f\x09\x19\
\x53\x80\x72\xc5\x5b\x65\xc1\x22\xb7\x1e\x75\x8c\x69\x22\x18\xf1\
\x36\xc1\x49\x02\x60\x32\xcc\x28\xb9\x34\xca\x57\xd2\xa0\x24\x88\
\x60\x18\x22\x5a\x61\x0a\x02\xfa\x7e\x80\xcf\x3c\xf2\x34\x3e\xf7\
\xc0\x23\x2a\xe0\x1f\x48\x04\x81\x84\xe7\x07\xf0\xfc\x00\x9d\x4e\
\x1b\x6f\x78\xfd\x6b\xf1\xed\xff\xf4\x1f\xe3\xfd\xdf\xfe\x1d\xd8\
\x7f\xf0\x30\x2c\xb7\x81\x46\x7b\x01\x8d\xf6\x02\xdc\x56\x1b\xed\
\xa5\x5d\x68\x2e\xee\x02\x2c\x17\x30\x1d\x04\x64\x62\x14\x00\xbd\
\xe1\x08\x9e\xe7\xa3\xb0\xf5\x82\x94\x19\x2b\xb8\x8c\x6d\xe5\x51\
\xec\x29\x63\x8a\x08\x64\xdc\x02\x1d\x48\x54\x32\x50\xc5\x32\x25\
\x33\x4c\x41\xd8\xb5\x6f\x9f\x5e\xf1\xa7\x6b\xe5\xa5\x8a\xb5\x86\
\x80\x25\x84\x02\x40\x11\x03\x79\xbf\xb7\x85\xcf\x7f\xfa\x53\xb8\
\xed\x4b\xbf\x02\x86\x65\xeb\xea\x0d\x3a\xee\x14\x04\x3a\xde\x95\
\x67\xa7\x46\xa6\x3c\x4f\x16\x98\x18\x0d\xd7\x81\x65\x08\x04\x3a\
\xd6\x14\xf8\x1e\xba\xeb\x6b\x58\xbf\x70\x01\xeb\xda\x3a\xbe\xa5\
\x7b\x36\x6d\x0e\x86\x18\xe9\xbc\xa6\x59\x54\x26\xd2\x93\xa3\x63\
\x9a\xf8\xd6\x8f\x7e\x54\x75\x37\xce\x8d\xef\x24\x12\x99\x73\x92\
\x6f\x93\x95\xdc\xb3\xf1\xa5\x6c\xd2\x2d\xf3\x78\xec\xb1\x28\xc6\
\x94\x9f\x4f\x54\xc2\x14\xa1\x3f\xdf\x75\x9c\xc4\x57\x51\x8f\x9d\
\x5a\xdb\xc0\xd9\x8d\x2e\x06\xc3\x11\x86\x9e\x0f\x3f\x90\x08\x02\
\x46\x10\xc4\x6c\xb0\xd9\x70\x70\x70\xff\x5e\x7c\xed\x57\xbf\x1e\
\xff\xfd\xff\xfd\x5d\x3c\xf1\xc4\xe3\xf8\xdb\x07\x1e\x9a\xa3\x7b\
\x4e\xed\x8b\xed\xd8\x38\x7c\xf8\x50\xf4\x3d\xf3\x2c\xe1\xa8\xf8\
\x18\x01\xb8\xf3\x8e\x3b\x31\x05\x90\xca\x54\x17\x9f\x8f\x5e\x59\
\x33\xa6\xab\x0a\xa0\x78\xc2\xf3\x45\xb4\x5d\x1e\x7d\xf0\x6e\xbe\
\xe9\xcb\x5e\xad\xa6\x5e\x41\x2a\x8f\x29\xc1\x98\x4c\xc3\x88\xba\
\xd6\x0e\xbc\x00\xff\xeb\x8b\xf7\xe1\xdc\x85\x55\xb8\xae\x0b\xc0\
\x83\x61\xa8\x38\x94\x61\xa8\x1c\x27\x66\x82\x24\xa0\xd9\x6c\xe0\
\x05\xb7\x3f\x17\x37\x5c\x7f\x18\xcf\x1c\x39\x86\x4f\xfe\xc5\x5f\
\xe0\xfc\xa9\x53\x30\x6c\x07\xac\x27\x57\xdb\x6d\x40\xca\x00\xfe\
\x68\x04\x6f\xd8\x07\x81\x10\x68\x90\xf1\x7d\x1f\x26\x01\x96\x69\
\x80\x29\xce\x8f\x52\xd2\x50\xcc\x60\x54\x19\xa4\x50\x5a\xd2\x8f\
\x6b\xc9\x31\x92\xf7\x98\xe3\x9a\xac\x22\xdb\x21\x55\x81\xd1\xc1\
\x43\x87\xd5\xfd\x4c\xe2\x6b\x76\xe5\x29\x84\x02\x24\xe4\x94\x23\
\x1a\xf6\x7a\xf8\xd4\x9f\xfd\x09\x4c\xd3\xc0\x9e\xbd\x7b\xb1\x79\
\xfe\x1c\x4c\xcb\x02\x25\xd6\x4d\x02\x00\x84\x88\xf2\x97\x38\xfc\
\x3f\x53\x52\xa5\x1c\x9b\x8c\x43\xd6\x24\x83\x00\x32\x50\xd2\xe8\
\xfa\xf9\xf3\x58\x5b\x5e\x56\xac\xa9\xd3\x46\xbb\xd5\x40\xb7\x3f\
\xc0\xa0\xe1\xc2\x16\x02\xc2\x20\x18\x93\x95\xbc\x7c\x39\x0f\x2a\
\xf1\xf8\xc5\xcf\xbb\x15\x07\x0e\x1e\xc2\xb9\x33\xa7\x21\x48\xe8\
\xe3\x9b\x95\xf3\x28\x15\x5b\x1a\xbf\x9f\x78\x0f\x11\xb2\x9d\x6a\
\xc3\xb8\x1b\x47\x71\x38\x8e\xf2\xe1\x62\x67\x5a\x79\xe6\x54\x74\
\x0c\xc3\x6f\x1a\x26\x0f\x87\xd0\xe8\x79\x3e\xee\x3b\x76\x0a\x12\
\xca\xe0\x62\xf9\x3e\x2c\x43\xd7\x87\x34\x0d\x48\xd6\x31\x56\xa9\
\xb6\x78\x70\xd7\x02\x5a\xda\xd9\xf7\xa2\xeb\x0f\xe3\x8d\xef\x7e\
\x0f\xfe\xf2\x0f\xff\x2b\x84\x61\x64\xbc\xf9\x33\xcc\xdb\x71\x55\
\xe0\xa9\x17\x3d\x55\x78\x8c\xc1\x38\x77\x6e\x85\x51\xce\x95\x37\
\x2d\xc9\xb6\x06\xa4\x9a\x31\xed\xa8\x9c\x17\x36\xe0\x91\xc9\x55\
\x68\x58\xdf\x4e\x50\xcc\x94\x4c\x43\x20\x90\x8c\xcf\x3e\xfa\x34\
\x1e\x7f\xf2\x29\x0c\x06\x03\xf4\x7a\x3d\xf4\xfa\x7d\x0c\x06\x43\
\x0c\x47\x1e\x46\x23\x0f\x9e\xef\xc3\x0f\x54\x3b\x86\x90\x45\x35\
\x5c\x17\x2f\xb8\xfd\x36\x7c\xf8\xa3\xdf\x89\xf7\x7d\xe4\x23\xd8\
\x77\xdd\x41\x18\xb6\x03\xbb\xd1\x82\xd5\x68\xc2\xb4\x1d\xb8\xed\
\x0e\x5a\xcb\x7b\xd0\xde\xbd\x0f\xee\xc2\x2e\x90\xd3\x04\x59\x0e\
\xa4\xb0\x30\x92\x84\xfe\xd0\xc3\xc8\xf3\x52\x2b\x72\x99\xb0\x83\
\x2b\xcb\x76\xc2\xba\xad\xd9\x89\x0c\x42\xeb\xba\x8c\x40\x4a\x84\
\x05\x5a\x13\xe6\x07\x00\xb8\xfe\xf0\xc1\xd4\x6a\x93\x12\xbd\xd5\
\x63\x39\x53\x80\x0c\x23\x66\x4a\x1a\xa4\xc2\xa2\xaf\x61\xcb\x73\
\xdf\xf7\xf1\x9e\x8f\xfc\x23\xbc\xf4\xd5\xaf\xc3\xa0\xdf\x4b\xe4\
\x59\x05\x09\xe7\x60\x51\xee\x53\x66\xa2\xd2\xf1\x97\xa6\xeb\xc0\
\x36\x8c\xc8\xa1\xe7\x7b\x23\x6c\x46\xac\x69\x0d\x9b\xdd\x2e\x7a\
\xfd\x01\x36\x7b\x7d\x74\x87\x23\x8c\x82\xa0\xb8\x99\x20\x4f\x0e\
\x75\x84\x65\x8a\x16\x5c\x17\x6f\xfc\xba\x77\xc4\x55\xe3\xc7\x80\
\x20\x99\x30\x9b\x65\x4b\x3c\x56\x6f\x2f\xd9\x57\x24\xc5\x9a\x52\
\xb9\x4d\xe9\xf8\x62\x11\x63\x28\x66\x4e\x13\x8e\x27\x33\x76\x2f\
\x2f\xc5\xc4\x4c\x4a\xf4\x06\x03\x9c\x59\x39\x87\xf3\xab\x6b\x58\
\xdb\xd8\xc4\xc6\xe6\x16\x36\x7b\x7d\x6c\x6c\xf5\xb0\xd6\x55\x56\
\xfc\xee\x60\x88\xad\xe1\x08\x6d\xd7\xc6\x42\x68\xde\xd1\xe7\xc4\
\x4b\x5f\xfe\x15\xe5\xaa\x42\x94\xb9\x88\x99\xb1\xb0\xb0\x50\x5c\
\x27\x6f\xc6\xc7\x98\x81\xb5\xd5\xd5\x69\x7d\x98\xa6\xb9\xf2\x6a\
\xb6\x54\x33\xa6\x8b\x0d\x4e\x48\xd9\xa8\x95\x4d\x9c\xa2\x09\x5c\
\x90\xc0\xb9\xcd\x2d\xfc\xcd\x27\x3f\x0d\xcb\x76\xc0\x0c\x0c\x87\
\x23\x98\x96\xea\xdb\x64\xdb\x2a\xc7\xc9\x32\x4d\x18\xa6\x91\x62\
\x50\x52\xe7\xf7\x34\x1a\x0e\x9e\xff\xbc\x5b\x71\xfd\xe1\x83\x38\
\x72\xf4\x04\x3e\xf5\x57\x7f\x8d\xf3\xa7\x4f\xc1\xb4\x5d\xb0\x54\
\x2e\x3e\xc3\x30\x61\x39\x0d\xd8\x8d\x96\x32\x4d\x8c\x86\xf0\x86\
\x03\x48\x1a\x42\x72\x80\x61\xc0\x08\xfc\x11\x2c\x21\x60\x59\x06\
\x98\xb5\xd9\x21\x65\x7e\x48\xf7\x74\x62\x32\xc0\x01\xc3\xd1\x2c\
\x07\x94\x9d\xc7\xd4\xeb\xae\xdd\xb7\x37\xdd\xc1\x36\x85\x50\xa1\
\x31\x84\x60\x18\x66\xc2\xe2\x4d\x63\x20\xa6\x3e\x5f\xe2\x3f\xff\
\xdb\x7f\x83\x7f\xf9\xef\x7f\x1b\x1b\xab\x17\xf0\xf8\xfd\xf7\xc0\
\x72\x5c\x08\x29\x21\xb5\x35\x5c\x44\x52\x97\x48\xf7\x6a\x4a\x2c\
\x10\x92\x50\xc1\x50\x75\xf4\x46\x41\x10\xb1\xa6\xd1\xa0\xaf\x4c\
\x10\xbb\x77\xa3\xbb\xb9\x0b\x5b\x8b\x7a\x42\x6d\x36\xd1\xb4\x2d\
\xd8\x86\x01\xa3\x24\x6b\x1a\x5b\xe9\x69\xeb\xf8\xd7\x7e\xcd\x5b\
\xf0\xff\xfe\xf6\x6f\x8e\xb3\x96\x70\xcf\x42\x39\x8f\x58\xef\x25\
\xc6\x62\x4e\x88\x4c\x10\x31\x63\x4a\x7e\x63\x45\x74\x72\xd8\x55\
\xca\x85\x59\x96\x39\x65\x62\x56\x69\xb1\x0c\x7b\x77\xef\x02\x10\
\xe6\x9c\x01\x67\x2f\xac\xe2\xa9\xa7\x9f\x41\xbb\xb3\x80\x66\xbb\
\x8d\x66\xa3\x01\xd7\x75\x61\xdb\xaa\x0f\x99\x65\x99\xb0\x2d\x0b\
\x00\xe1\xf6\x6b\xf6\x6a\x55\x20\x3e\x88\xbb\x76\xef\xce\x99\xaa\
\x67\x9f\xb7\xfd\x20\x80\x61\x1a\x33\x31\xa4\xa2\x11\x04\x01\x36\
\x36\x36\xa6\x81\xd2\x34\x8b\x78\xcd\x96\x6a\x60\xaa\x2c\xe5\x55\
\x2d\xe0\x1a\x9d\x88\x32\x08\xa4\xdf\xdf\x82\xb9\xb0\x14\x33\xa6\
\x90\x0d\xe8\x18\x93\x6d\x1a\x78\xf8\x99\xe3\x38\x71\xf4\x28\xda\
\x0b\x0b\xb0\x1d\x17\x8d\x56\x13\x8d\x46\x13\xbe\xeb\xab\x89\xd2\
\xb6\xe1\x79\xca\x39\x66\xea\xc4\x5c\xd3\x30\xa3\x9a\x5f\xcc\x04\
\x29\x95\xc6\x7f\xfb\x73\x6f\xc6\xe1\x43\xcf\xc1\x91\xe3\x27\xf0\
\x99\xbf\xfe\xdf\x38\x7f\xfa\xb4\x32\x47\xf8\x3e\x7c\x6f\x04\x61\
\x5a\x30\xa5\x0d\xe9\xb8\xb0\x9b\x2d\x04\x9e\x07\x3f\x02\x29\x81\
\x80\x25\x64\xc0\x10\x2c\x61\x99\xda\x36\xce\x9c\xf0\xbe\x33\x60\
\xda\x10\x76\x03\x86\xd3\x84\xd3\x6a\x01\x0c\xf8\x9e\x07\x5f\xb7\
\xc8\xce\x74\x3a\xc7\xee\xc5\xce\x98\xa1\x21\x79\x98\x4d\xdb\x86\
\x61\x39\x8a\x31\xa5\x64\x97\x71\x30\x33\x0c\x03\xeb\x17\xce\xe1\
\x37\x7e\xed\xd7\xf0\x33\xbf\xf4\xaf\xf0\xd1\x0f\x7e\x3d\xba\x1b\
\x1b\x20\xc3\x50\xcd\xf4\x24\xa2\xa9\x1b\x22\x34\x07\xa4\xa8\x5a\
\x2e\x40\x35\x1b\x0e\x46\x7e\x80\xad\x91\x07\xa1\xd9\x53\x77\x7d\
\x1d\x9b\x6b\x6b\xd8\xdc\xd8\x44\x77\x6b\x0b\x9d\x76\x0b\x9b\xbd\
\x3e\x7a\xad\x06\x5a\xb6\x05\x5b\x18\xa5\x4c\x16\x94\x43\xa4\x0c\
\x41\x78\xce\x9e\xdd\xb8\xed\x4b\x5e\x84\x47\xef\xbd\x57\xc9\x55\
\xa9\x55\x39\x69\xc7\x1d\x29\x5f\x43\xe8\xcc\xe3\xb4\x23\x8f\x32\
\x35\x0b\x63\x6b\x78\xe2\xb3\x99\xa2\xfc\xad\xb4\xa4\x87\xb4\x3c\
\xb7\x0d\x70\x22\x50\x54\xea\x27\x8c\xf7\x9d\xbb\xb0\x8a\xa7\x9f\
\x78\x1c\x4b\xbb\xf6\xa0\xd9\xee\xa0\xd5\xe9\xa0\xd9\x6c\xa2\xd1\
\x68\xa0\xd1\x50\x5d\x9c\x2d\xd3\xc4\x9e\xe5\x45\x34\xc3\xfa\x75\
\x14\x1f\xaf\x53\x27\x4e\xcc\x89\x4c\x28\xf9\xb2\xd9\x68\xc2\xb2\
\xac\x98\x61\x52\x79\xd1\x2e\xfd\x0c\x47\x71\xd1\xe1\x70\x88\xde\
\xd6\x56\x50\x11\x94\x50\xb3\xa5\x1a\x98\xb6\xc3\x90\xf2\x18\x13\
\x26\xac\x78\x52\xd4\x5d\x06\x01\x07\x83\x2d\x60\x71\x39\x2a\x43\
\x13\x82\x93\x21\x84\xb6\x91\x33\x4e\x9c\x3e\x83\xf3\x67\x4e\x63\
\x34\x1c\xc2\x6d\x36\xd1\xdb\xda\x82\xed\x38\x70\x5c\x57\xad\x30\
\x1d\x1b\x8d\x46\x13\xae\xeb\x46\xab\xcc\xc0\x94\xf0\x83\x20\x2a\
\x6d\x64\x18\x06\xa4\x64\x04\x52\xc2\x71\x6c\xdc\x7e\xeb\x4d\xb8\
\xfe\xe0\x75\xb8\xe3\xce\x7b\xf1\xc5\xbf\xfd\x0c\x86\xfd\x3e\x1c\
\xdb\xd6\x01\x7e\x5f\x49\x5f\xbe\xa7\x80\xca\x76\x60\x37\x9a\x08\
\x7c\x0f\xde\x70\x80\x51\xbf\x0f\xcf\x1f\x82\xa5\x80\x0c\x7c\x10\
\x18\x96\x21\x00\x61\xc2\x5e\xd8\x8d\xa5\x03\xcf\xc1\xee\x6b\xae\
\xc3\xde\x03\xfb\xb1\x6b\xcf\x1e\x18\x86\x80\xa9\x19\x5d\x18\x23\
\x0a\x13\x46\x09\xc0\x72\xbb\x09\x61\x18\x99\x9a\x79\xb1\x14\x65\
\x5a\x0e\x4c\xb7\x51\x22\xd0\xad\x9e\xb7\x6c\x07\x77\x7c\xf2\xaf\
\xf0\x85\x7b\xde\x83\x1f\xfa\x99\x5f\xc0\x8f\x7e\xf4\xc3\x70\x9b\
\x2d\x40\x4a\x05\x4a\x24\xb5\x12\x16\xda\xd9\xd3\x49\xbd\xe3\x13\
\xae\xae\x3e\x6e\x6b\xd6\x24\x03\x70\x10\xc0\x1b\x0e\xb1\xb1\xb6\
\x86\xcd\x8d\x75\x74\xbb\xcb\xe8\x2d\x74\xb0\xd5\xef\x63\x6b\x38\
\xc2\x42\xc3\x81\xab\xcd\x2b\x13\xad\xe3\x05\x21\x91\xd0\x04\xf1\
\xb6\x77\xbf\x1b\x0f\xde\x79\x07\x1c\x0d\x4c\x31\x87\xe1\x44\x7c\
\x8f\x73\x63\x4d\x88\xec\xe2\x1c\xb9\xec\x92\xa5\xab\xa2\x09\x95\
\x90\xda\x5e\x0a\x54\xc2\xf7\xa5\x23\x53\x25\xc1\x09\x9a\xa9\xa9\
\xf3\xba\xe1\xba\xd1\x6f\x2a\xa5\xc4\x89\x93\x27\x71\xe4\xd1\x47\
\xb0\xb6\x7b\x0f\x9a\x9d\x45\xb4\x16\x16\xd0\xea\x74\xd0\x6a\x77\
\xd0\x6a\xb7\xd1\x6c\x36\x61\x18\x06\x0e\xee\xdf\x0d\x43\x50\xea\
\x70\x49\x66\x7c\xe6\x2f\xff\x42\x7f\x07\x9e\x1c\x3a\x2a\xf1\x20\
\x33\x63\xf7\x5e\x55\x27\x6f\x4c\x8e\x43\xa2\x30\x49\x95\x00\x93\
\x66\x61\x53\xe2\x4b\x55\x12\x6c\xeb\x51\x03\xd3\xb6\x19\x54\x49\
\xf6\xa4\x63\x2e\x89\x52\x3e\xa1\x23\xcf\x34\x0d\x30\x80\x1b\x0e\
\x3d\x07\xe7\x4e\x9d\xc4\xa0\xd7\x83\xd3\x6c\xc1\x6d\xb5\x14\x10\
\x35\x1b\x70\xdc\x06\x1c\xd7\x41\xaf\xbb\x05\xcb\xb6\xe1\x38\x0e\
\x1c\xd7\x51\xab\x4e\xd7\x45\x10\x58\x30\x4d\x43\x9b\x29\x4c\x18\
\x86\x02\x06\xdf\x27\x58\xa6\x89\x57\x7d\xe5\x97\xe3\xd6\xdb\x6e\
\xc6\xa3\x8f\x3e\x81\x3b\xfe\xee\xef\x30\x1a\x0e\x60\x58\x96\x96\
\xac\xec\x48\xba\x0a\xbc\x11\x68\xa4\xe2\x3a\x96\xe3\x2a\x26\xe5\
\x0d\x21\x47\x23\x80\x08\xcd\x3d\xfb\xb0\x7c\xe0\x3a\xec\x7b\xce\
\x21\xec\x3d\x70\x00\xbb\xf7\xec\xc1\xee\xdd\xcb\x58\x5c\xe8\xa0\
\xd3\x6e\xa9\x26\x87\x8e\x03\x10\xc3\xb5\x6d\x38\xb6\x19\x4d\x78\
\xae\x69\x2a\x16\x32\x0a\x10\xb7\x13\x54\x87\x4f\x18\x26\x0c\xcb\
\x4e\x37\x0f\x04\x30\x56\xaa\x20\x33\x9c\x66\x13\x3f\xff\xf1\xef\
\xc3\x9f\xfe\xef\x4f\xe2\xd5\x6f\x7e\x1b\x3e\xfb\x7f\xfe\x0a\xa6\
\x65\xab\x24\x4f\xd5\x3b\x18\x82\x64\x64\x20\x48\xcd\x29\x89\x8a\
\xe6\xe1\xa4\xcd\x4c\x68\x3a\x9a\x35\x0d\x7d\x48\x43\xc7\x9a\xd6\
\x56\xb1\xbe\xba\x8a\x8d\xdd\xbb\xb1\xb4\xb4\x84\xde\x60\x80\xde\
\x60\x08\xcf\x6f\xc1\xb7\x18\x06\x53\x4a\xc5\xac\x66\x82\x20\x7c\
\xc5\xcb\xbe\x14\x6e\xa3\x09\x29\x83\x14\x8b\x49\x32\x93\xd0\x3a\
\x9e\x4d\xb2\xcd\x5a\xc7\xe3\x4a\x04\xa1\xc5\x3b\xc1\x73\x39\xae\
\x15\x18\x4a\x7a\x1c\x81\x6a\x82\x15\x24\xd2\x07\x52\xe0\x84\x02\
\x6a\x18\x02\xa1\x20\x98\x86\x11\x95\x8e\x92\x52\xc2\x24\x60\xe5\
\xc4\x31\x6c\x5c\x38\x0f\xbb\xd1\x84\xdb\xea\xa0\xb5\xb0\x88\xf6\
\xc2\x02\xda\x8b\x4b\x68\x2d\x74\x60\x18\x26\x5e\xf7\xe5\x2f\x1e\
\xdb\x74\xdf\xf3\xf0\xd0\xdd\x77\x25\x0c\x21\x05\x17\x65\x6a\xd1\
\x41\x13\x2e\x5e\x46\xb3\xd9\x8c\x24\xf0\x69\xa2\xdd\x74\x8c\x62\
\x10\x09\x6c\x6d\x6d\x61\x4a\x7c\x69\x5a\x82\x6d\xcd\x96\x6a\x60\
\xba\x28\x60\x94\x73\xe2\xc5\xe6\x01\xa9\x2d\xd9\x44\x14\x35\x55\
\xfb\x92\x1b\x0e\x62\xef\x35\xd7\xe2\xf8\x53\x4f\xc0\x6d\xb6\x61\
\xb9\x2e\x9c\x46\x03\x8d\x56\x0b\x8d\x66\x0b\x8e\xdb\x80\xed\x3a\
\x70\x1b\x0d\x38\x8e\x0b\xb7\xd1\x40\xbf\xd7\x53\xac\xca\xb6\xd1\
\x68\x2a\xed\xde\x32\xa5\xae\x2e\xa1\xe4\xc2\x40\x4a\x50\x10\x60\
\xcf\xae\x65\xec\x7f\xe5\xcb\x71\xfb\xed\xb7\xe1\xfe\x07\x1e\xc6\
\x9d\x7f\xf7\xb7\x30\x4c\x2b\x2e\xf1\x23\x25\x58\x36\x54\xec\x49\
\x4b\x7b\xfe\x68\x08\xcb\x6d\xa0\xb9\xb0\x84\xdd\x07\xae\xc5\x81\
\x83\x07\xb1\xef\xc0\x01\x2c\x2d\x2d\x62\x69\x69\x11\x8b\x9d\x36\
\x5a\xad\x06\x9a\xae\x0b\xd7\xb1\xe1\x58\x26\x1c\xcb\x8a\x1b\x1d\
\x1a\x2a\xbf\x68\x73\xe8\xc1\xf3\x03\x1c\xba\xe5\x79\x78\xf8\xce\
\xcf\xab\x92\x35\x64\x80\x4c\x1b\x06\x03\x86\x2d\x20\x0c\x4b\xd5\
\xdc\xcb\x5c\xa3\x3c\x36\x01\x52\x4a\x86\xf3\x86\x03\xfc\xc2\x2f\
\xfd\x4b\xfc\xb3\x1f\xf9\x11\xbc\xf7\x53\x7f\xa3\x26\x67\xdd\x0f\
\x8a\x89\xc0\x32\xc1\x9e\x12\xf1\xa6\x88\x55\x50\x9c\x84\xaa\x62\
\x23\x61\x35\x88\xd0\x0e\x1f\xe8\x58\xd3\x05\x6c\xac\x6b\xd6\xd4\
\x69\x63\x6b\x30\xc0\xc0\xf7\xe1\x05\x26\x2c\x41\x30\xa6\x89\x79\
\x05\x39\x4d\x06\x09\x1c\x58\x5a\xc4\xcb\x5e\xfd\x6a\x7c\xee\xff\
\xfc\x0d\x0c\x93\x52\xbc\x25\x09\x4e\x91\x74\x87\x38\x0f\x29\x9b\
\xd7\x84\x44\xac\x89\x38\x1d\x43\x23\xca\x56\xe3\x4e\xfc\x4d\xe6\
\xb2\x8d\xe3\x52\xcc\xe4\x26\xe8\x96\xa4\x17\x21\x49\xd3\xc6\xbe\
\x5d\xbb\xd0\xdf\x5c\xc7\x68\xd0\x87\xd8\xdc\x80\x69\xad\x62\xd5\
\x71\x60\xbb\x0d\x34\xda\x0a\xa4\x84\x69\xa2\xe9\x7c\x43\x16\xe7\
\x70\xd7\xa3\x8f\xa1\xbb\xb1\x31\xbd\x23\x2e\x4f\xa2\x4e\xc9\xe3\
\x4d\x58\xde\xb5\xab\x04\xfa\x14\x54\xc2\x18\x7b\x0c\x89\x98\xeb\
\xd4\x76\x17\xd3\x00\xa9\x06\xa8\x1a\x98\x4a\xcb\x78\xb3\x57\x7c\
\x48\x9f\x90\x2a\x3e\x20\xd3\xf9\x40\x81\x94\x51\x05\x81\x8e\x63\
\xe1\xbd\x1f\xfc\x10\x7e\xee\xe3\xdf\x0f\xdf\xf3\x60\xf6\x2c\xf4\
\x6d\x1b\xdd\x35\x1b\x6e\xb3\x05\xc7\x75\x61\xbb\x2e\x9c\x46\x13\
\x6e\xa3\x89\x46\xab\x89\x66\xb3\x05\x57\x03\x52\xbf\x3f\x50\x46\
\x09\xc7\x8e\x0c\x13\xa6\x6e\xab\x61\x99\x26\xd6\xd6\x37\xb1\xbe\
\xb1\x81\xb3\x67\xce\xe2\xdc\x99\x33\x30\x2d\x5b\x27\xa8\x8a\xa8\
\xc2\xb8\x6a\xd6\x46\x30\x6d\x1b\xad\x4e\x07\xb6\x6b\x43\x4a\x56\
\x9f\xeb\x3a\x90\xc1\x08\xae\x6b\xe3\xc6\xeb\x0f\x61\x71\xa1\x0d\
\xc7\xb2\x60\x5b\x26\x5c\x5b\xfd\xb5\x74\x2b\x78\x2b\xb4\xb8\x0b\
\x82\xa1\x13\x61\x5d\xcb\xc4\x6f\xfc\x9b\x5f\xc2\x8f\xfe\xcc\x2f\
\xe1\x33\x7f\xf6\xdf\x61\xd9\x0e\x08\x02\xa6\xb0\xa2\xaa\x0f\x20\
\x91\xae\x50\x91\x9c\x03\x23\xb9\x29\x9d\x50\x63\x39\x0e\x3e\xf5\
\xa7\x7f\x8c\xef\xff\xd8\xf7\xe0\xeb\x3f\xfc\x1d\xf8\xfd\xdf\xfe\
\x75\x58\xb6\xa3\x6c\xcb\x51\xf2\xae\xe6\x0d\x22\x1d\x87\xe1\xb1\
\xfb\x6a\xa2\x6e\xd8\x16\x46\x41\x80\xde\x28\x00\x1b\x12\xde\x70\
\xa8\xe2\x4c\xeb\xeb\xd8\xdc\xdc\x44\x6f\x71\x11\x5b\xbd\x3e\xba\
\xfd\x21\xda\x8e\x0d\xd7\x34\x72\x8c\x00\xf9\x93\xfb\xb8\x9c\x07\
\xd8\xa6\x81\xb7\xbd\xf3\x9d\xf8\xfb\xbf\xfa\x4b\x55\x53\xb0\x68\
\xbd\x1f\xc5\x9a\x62\xb3\x43\xe4\x65\xe0\xa4\xcb\x9c\xa3\x78\x5a\
\x94\xb0\x9b\x90\x2b\x89\x92\x46\x88\x44\x22\xf2\x18\x38\x8d\x4f\
\xc6\x1c\x82\x24\x8d\xcb\x64\x0d\xd7\x45\xab\xd9\x4c\x55\x9c\x6f\
\xb8\x0e\xfc\xfe\x16\x78\x34\x80\xdb\x68\xc0\xf7\x47\xe8\x6d\xae\
\x23\x60\x28\x25\xa0\xd9\x82\x64\xc6\x60\x34\x4a\x2d\x47\x3c\x29\
\xf1\x4f\xbe\xf9\x9b\x4b\x26\xd7\x26\x0e\x34\x61\x22\x63\x5a\x5c\
\x5c\xcc\xc8\x96\x93\x31\x6a\x6a\xe4\x8a\x08\x77\xde\x71\x07\xb6\
\xc1\x96\xea\xbe\x4c\x35\x30\xcd\x8d\x35\x95\xad\x97\x97\x62\x4c\
\x91\xf5\x5a\x57\xf4\x0e\x82\x18\x9c\x04\x11\xde\xf9\xba\xaf\xc0\
\xbf\x69\x77\xd0\xdb\xda\x82\x37\x1c\x28\xe7\x9d\x10\xe8\x6f\xae\
\xc3\xb2\x1d\x58\x8e\x03\xcb\xd1\xe0\xd4\x6c\xa2\xd9\x6a\x2b\xa7\
\x53\xbb\x8d\x46\xb3\x09\xb7\xd1\x80\xed\x38\x30\x4d\x0b\x52\x4a\
\x8c\x46\x1e\xce\x9f\x3b\x87\xfe\x56\x0f\xeb\xab\x17\xb0\xb5\xb9\
\x19\x5f\x50\x42\xaf\x92\xa5\x00\x84\x4e\x8e\x6c\xb8\x70\x6c\x1b\
\xa6\xad\x00\x2d\xf0\x3c\xf8\xbe\x8f\x20\x08\x30\xec\xf7\x70\x7e\
\x34\xc4\xfa\xea\x05\x9c\x39\x75\x12\xb7\xbf\xe0\x05\x78\xe9\x0b\
\x9f\x87\x5d\x0b\x6d\x18\x82\x54\xc7\x5d\xc3\x80\x69\x68\x40\x22\
\xc5\x96\x0c\x43\xc0\xd2\x20\xd5\xb0\x5c\xfc\xea\xcf\xfc\x18\x3e\
\xde\x6c\xe2\xaf\xfe\xf0\xf7\x61\x59\xb6\x06\x25\x11\xb5\x1c\x8f\
\x25\xa6\x48\xa7\x49\x4c\x38\x7a\xc5\x1e\x77\x80\x8a\xbe\xcf\xbf\
\xfe\x57\xff\x1a\xbf\xf8\x33\x3f\x85\x3f\xf8\xff\xfd\x66\xe4\x1a\
\x94\x52\x4d\xdc\x92\x42\x59\x4f\xff\x32\xd9\x46\x83\x09\x10\x54\
\xb1\x0d\xc0\x36\x0c\x78\x86\xae\xb8\xae\x59\x53\x68\x82\xd8\xec\
\x76\xd1\xed\x75\xb0\xbe\xb5\x85\xc5\x96\x8b\xa6\x65\xc2\x24\x02\
\xcd\x6a\x82\x20\x81\xe7\xde\x74\x23\xdc\x66\x0b\x41\x10\x24\x3a\
\x15\x27\xa8\x40\x24\x37\x72\x2e\x53\x0a\x65\xbe\xf8\xd8\x51\xa6\
\xc0\xe8\x78\x2d\xc1\x64\x4e\x53\x24\xe9\x65\x67\xe7\x02\x83\x40\
\xcc\x32\x63\x60\x52\x3d\xc5\xcc\xd4\x6f\xb3\x7b\xd7\x32\x76\x2d\
\x76\x20\xfd\x11\x0e\xec\x5d\x80\x69\x59\x78\xc9\x97\xbd\x1c\x2f\
\x7c\xc9\x97\xe1\xff\xf9\x6f\x7f\x82\x47\x1e\x7d\x1c\xfd\xfe\x00\
\xf7\x3d\xfa\x04\x5e\x7a\xf8\x39\xd1\x77\xfe\x1f\x9f\xfe\x5b\x3c\
\xfe\xe0\x03\xd3\xd9\x12\x4a\x1c\xf0\x24\x63\x5a\xde\x95\x2f\x45\
\x52\x79\xc3\x43\xea\x31\x22\x74\xa7\x57\x16\xaf\x8b\xb7\xd6\xc0\
\xb4\x63\xec\x69\x56\x19\x8f\xc3\xaa\x0a\x71\x45\xee\x38\x1e\xe0\
\xfb\x7e\x94\xeb\xb3\xb7\xe9\xe2\x1d\x1f\xfc\x26\xfc\xde\xaf\xff\
\x2a\xc8\x30\xe0\x79\x43\x70\x10\xc0\xb4\x1d\x78\x66\x1f\x86\x65\
\xeb\x46\x83\x36\x4c\xcb\x86\xdd\x70\xd1\xec\x2c\xa0\xd1\x6a\xc3\
\x69\x34\x30\xe8\xf5\x35\xf1\x20\xf4\xbb\x5b\x51\x41\x4d\x4a\x26\
\xae\x26\x2d\xdf\x89\x36\x09\x86\x21\xe0\xd8\x16\x1c\xd7\x56\xe5\
\x7e\xa4\x8c\x74\x78\x4a\xc4\x65\x88\x08\xa7\x4f\x1c\xc7\xe9\x13\
\xc7\x71\xdf\xdd\x77\xe3\x2d\x6f\x7d\x33\x5e\x7c\xeb\x8d\x68\x3a\
\x36\x84\xa0\xa8\x3a\xba\x21\x62\x53\x80\x91\x98\xb4\xdb\xb6\x85\
\x7f\xfd\xcf\xbe\x1f\x1f\x38\x7a\x14\x0f\x7c\xe1\xef\xe3\x72\x3c\
\x94\xb4\xa2\xc7\x13\x6b\xfe\xb4\x9e\x28\xbf\xc3\x80\x65\xd9\xf8\
\xf4\x5f\xfc\x29\x82\x9f\xfe\x09\xbc\xea\x0d\x6f\xc2\x67\xfe\xfa\
\x2f\xf5\x84\x16\x84\x9d\x1a\x63\x86\x22\xc2\xff\xc5\x93\x12\xd3\
\x78\xf9\x25\xc7\x34\xe0\x05\x12\xfd\x40\x2d\x26\x46\x83\x3e\x36\
\xd6\x56\x23\x13\xc4\x56\xaf\x8f\xcd\xad\x1e\x36\xfb\x6d\x74\x1c\
\x1b\xb6\x50\xd5\xe0\x51\x91\x35\x85\x95\x20\xf6\x2d\x2d\xe2\xf6\
\x97\xbe\x14\xf7\x7e\xee\x73\xaa\x02\x7d\xb6\xe0\x51\xa2\x16\xde\
\x58\xad\xbc\xa4\x43\x2f\xaa\x5f\x97\xb5\x9f\x87\x65\xa3\x12\x00\
\x95\xa2\x79\xe3\xb6\xf1\x22\xa7\x5e\x2a\xee\x94\xf8\xdd\xc2\x1c\
\x36\x2d\x24\x42\x10\x61\xa1\xd3\xc1\x4d\x37\x1c\xc2\xfa\xfa\x2a\
\x1a\xcd\x06\x16\x17\x3a\xf8\xa1\x1f\xf8\x41\xec\xda\xbd\x0f\xef\
\x7f\xd7\xbb\xf0\x5b\xbf\xf3\xdb\xf8\xf8\xc7\x3f\x81\x5f\xfc\x67\
\x3f\x86\xf7\xbd\xee\xd3\x70\x4c\x03\x77\x3d\xf1\x24\xbe\xed\x1d\
\x6f\xdf\x3e\x28\xe5\x1c\xec\x5d\xbb\x76\xa5\x64\x62\x2a\x41\xc2\
\x26\x3d\x46\x00\x1e\x7f\xec\xb1\x64\x8c\x69\x56\x77\x1e\x6a\x29\
\xaf\xfa\x10\x35\x20\x8d\x3d\x56\xb6\x61\xa0\x24\xc3\x04\x4b\x15\
\xfb\xd1\x0d\xc5\xa2\xa4\x48\x95\x30\x1b\x68\x59\x87\xf0\x5d\xdf\
\xf4\x7e\xd8\x8e\x03\xdb\x32\x41\xcc\x90\xde\x10\x5e\x6f\x13\xc3\
\xcd\x35\x0c\x36\x56\x31\xe8\x6e\xa2\xbf\xb9\x81\xad\xf5\x55\x6c\
\x9c\x5b\xc1\xb9\xe3\xc7\x70\xfc\xf1\x47\xf1\xd4\x03\xf7\xe3\xd4\
\x33\x4f\xe1\xec\xf1\xa3\x38\x77\xf2\x04\x06\xfd\x2d\x04\xbe\x0f\
\xd6\x31\x24\x29\x95\xc1\x41\xdd\x82\x54\x6c\x09\x2c\x61\x18\x6a\
\xee\x49\x76\xac\x4d\x88\x37\x80\xee\x91\x04\x40\x95\x55\x32\x0c\
\x9c\x3d\x7d\x0a\xbf\xf3\xef\x7f\x13\xff\xe5\x8f\xff\x0c\x81\x94\
\x68\xdb\x16\x5c\xd3\x80\x63\x1a\x70\x0c\x01\x5b\xdf\x4c\x41\x11\
\x58\x19\x44\x68\xd9\x26\xfe\xcb\xbf\xff\x65\x2c\xed\xd9\xa7\xb6\
\x49\x99\x96\xe8\x65\xe4\x9b\x4c\x5f\x73\x7f\x38\xc4\x1f\xfd\xd9\
\xff\xc2\x37\x7d\xf8\x23\xf0\xbc\x51\xd4\xd3\x49\x26\x12\x6f\x8b\
\xfa\x4b\x25\x1b\x25\x46\x0d\x13\x99\x11\x04\x7e\xf4\x7b\x05\x81\
\x8f\xad\x8d\x0d\x74\xd7\xd7\xb1\xd5\xed\xa2\xd7\xeb\x61\xab\x3f\
\x40\xb7\x3f\x40\xdf\xf3\xe1\x73\xf9\x0e\xb7\xb9\x72\x9e\x61\xe0\
\x8d\x5f\xf3\x35\x08\x52\x25\x8a\xb2\x27\x18\x8f\xf5\x00\x4c\xfd\
\x3b\x61\x29\x4f\xf6\xe4\x4a\xb5\x5f\x4f\x01\x1d\x32\xc5\x7d\x39\
\xbf\x6f\x53\x8a\xbd\x8d\x83\x53\x38\x1c\xd7\x89\x62\xa6\x44\x80\
\x10\x02\xed\x56\x0b\x6f\x78\xfd\x57\x81\x99\xd1\x6a\x36\xf1\x63\
\x9f\xf8\x29\x2c\x2f\xef\x51\xd7\x83\x69\xc2\x1b\x0c\x10\x78\x23\
\x1c\xb9\xff\x2e\xbc\xf4\x25\x2f\xc1\x2b\x5e\xfd\x1a\x7c\xd5\x8b\
\x5f\x84\xc0\xf7\x51\xa6\x4a\x43\xa9\xe0\x92\xfe\x66\x82\x04\x1a\
\xcd\xc6\xc4\xac\xe8\x59\x10\xe1\x89\xc7\x1f\xe7\x29\x4c\xa9\x2c\
\x63\xaa\x01\xa9\x66\x4c\x95\x63\x4d\x55\x73\x98\xa2\x93\x91\x88\
\xa2\x40\xba\x37\x1a\x21\xd0\xb5\xdd\x24\x2b\x29\xcf\xf3\x83\x88\
\x9d\x1c\x5a\x5e\xc0\x4d\xb7\xbf\x10\x4f\x3c\x78\x2f\x4c\xcb\x02\
\x58\x95\x14\x92\xbe\x07\x6f\xd0\x03\x89\x2d\x98\x6e\x23\x62\x4f\
\xbe\x69\x29\x47\x9b\x61\xc2\x30\x4d\x88\xc0\x87\x0c\x4c\x04\xbe\
\x0f\xc3\xf4\x20\x84\x01\x32\x04\x84\x30\xc6\x58\x13\xa0\x2c\xb9\
\x86\x20\x10\x8b\x68\xc2\x16\x88\x6d\xde\x71\x55\xeb\x58\x8e\x0c\
\x8b\xcf\x1a\x86\x09\xe1\x12\x3e\xfb\xe9\x4f\x41\x4a\x89\x1f\xfa\
\xb6\x0f\xa2\x6d\x1b\x51\xa7\xd8\x08\x67\x12\x7d\x90\xc2\xb1\xec\
\x58\xf8\x4f\xbf\xf7\xbb\x78\xfb\x1b\xdf\x00\xdb\x71\x74\x59\xa4\
\x8c\xd0\x95\xed\xce\x9b\xfd\x59\x12\xee\x34\xd3\xb6\xf1\x47\xbf\
\xfb\x9f\xf1\xc1\x77\xfe\x21\x16\x16\x97\xd0\xef\xf5\x40\x82\x20\
\xe5\xf8\x4f\x4a\xda\x4d\x15\xad\xee\xc3\x12\x4c\xba\x32\x39\x13\
\x81\x83\x00\x96\x10\xf0\x84\x8c\xfa\x53\xa9\x6a\x10\x1a\x98\xfa\
\x7d\x0c\x06\x03\x6c\xf6\x7a\xe8\x0e\x5b\x68\xdb\x96\x2a\x53\xb4\
\x8d\x9c\xa6\x97\xbf\xf4\x25\x70\x5c\x37\x55\x7b\x30\x5f\x76\xe2\
\xb4\xac\x47\x89\xaa\xe3\x51\xf2\x6c\x96\xe5\x70\x82\x01\x51\x94\
\x74\x8b\x9c\x9c\x26\xe4\xc5\x9b\xa6\x30\xa7\xb0\x4e\x9e\x61\x1a\
\x29\x89\x4f\x08\x81\x6f\xfe\xf0\xb7\xe3\x86\x1b\x6e\xc0\x0b\x5f\
\xf4\x62\x1c\x3c\x78\x43\x6a\x9f\x4e\x9f\x39\xa3\x2a\x7a\x08\x81\
\x63\x4f\x3e\xa1\x41\x4d\x20\xd5\x29\x73\xd6\x12\x44\x99\x53\xc6\
\xb2\x6d\x5c\x7f\xf8\x70\x41\xd5\x07\x14\x9a\x20\xd2\x26\xc9\xf4\
\x63\x52\x4a\x1c\x39\xf2\x4c\xd9\x12\x44\xb2\x04\x20\xd5\xe0\x54\
\x33\xa6\x4a\x6c\x69\x96\x58\x13\x03\x90\x52\xbb\xf1\xbc\xd1\x10\
\xc3\xe1\x50\xe5\x11\x05\x81\xea\xc1\xa4\xa9\xca\xe6\xd0\xc3\xd1\
\xf5\x2e\xfe\xd7\x9d\x0f\x62\xf5\xdc\x0a\x84\xd0\x14\x06\xaa\x24\
\x0f\x40\xe0\x40\xc2\x1f\xf4\xd0\x5f\x3b\x8f\xad\xf3\x67\xd1\xdf\
\x58\x53\xb7\xcd\x75\x0c\x7b\x5d\x0c\xfb\x3d\x75\xdb\xea\x62\xd8\
\xdb\x54\x7f\xfb\x5b\x18\xf5\x7b\x18\x0d\x7a\x18\x0d\xfa\xf0\x86\
\x03\xf8\x9e\x02\x47\xb5\x0f\x71\x5b\x84\x74\x51\xd6\xb8\x71\x5d\
\xc8\x20\xe2\xce\xe8\x7a\x92\x13\x04\x61\x1a\x68\xb4\x5a\xf8\xdc\
\x67\x3e\x8d\x1f\xfe\xc5\x7f\x83\xee\xc8\xd7\x7d\xa5\x74\xb5\x74\
\x1d\xdb\x89\x80\x2a\x71\x91\xbf\xe8\x39\x7b\xf1\xb1\x9f\xfc\x59\
\x0c\x07\xfd\x52\x0b\xdf\x74\xce\x6d\xa2\x7c\x12\x2b\xb0\x7c\xe6\
\xd1\x87\x70\x6e\x63\x13\x2f\x7d\xc5\xab\x10\x04\x7e\xdc\x36\x3e\
\x51\x70\x36\xd9\x70\x50\x6a\xb9\x32\x97\x41\x49\xa9\x19\x1f\x45\
\x8f\xf9\xa3\x11\xba\x1b\xeb\xe8\x6e\x6c\xa2\xb7\xb5\x85\xfe\x60\
\xa8\xcb\x14\x0d\x30\xf0\xf3\x5b\xaf\x8f\x9d\x4d\x05\x25\x8a\x0c\
\x22\xec\x59\x5c\xc0\x75\xd7\xdf\x10\xd5\x9b\x2b\x3c\x39\xc7\xa6\
\xb2\x74\xe3\xc0\x6c\x2b\xf5\x24\xb3\x4a\xb2\x26\xce\x13\x92\x92\
\xdf\x81\xcb\xab\x4c\x61\x0a\x44\x28\xcd\x52\x82\x05\xb7\x5b\x1d\
\xbc\xf5\x6b\xdf\x95\x06\x25\x8d\x35\xfd\x7e\x3f\x3e\x2f\xa2\x3a\
\x89\xa5\x89\x50\x25\x19\x2f\x8d\xa9\x3c\x17\x14\x60\x66\x0c\x07\
\x03\x99\x91\xf1\x18\xc5\xe5\x88\x64\x1d\x5f\xaa\x19\xd3\xbc\x59\
\x53\xd9\x58\x53\xea\x24\x64\x6f\x84\x60\xd0\x43\xe0\xd8\x18\x0e\
\xfa\x08\x82\x00\x9e\xe7\xe3\x99\xa3\xc7\xf1\xcc\xd1\xe3\x38\x76\
\xf4\x18\x1e\xbe\xf7\x1e\x1c\x7f\xe2\x31\xf8\x9e\x2a\xdc\x2a\x0c\
\x03\x2c\x83\xe8\x62\x0d\xab\x6e\x43\x12\xd8\x57\x39\x47\xfe\x70\
\x00\x21\x0c\x34\x97\x96\x11\x8c\x86\x20\xd3\x86\x69\x3b\x10\x42\
\x57\x97\x30\x4c\x08\xd3\x52\x26\x0a\x43\xc9\x6f\xc2\x30\x40\x42\
\xdd\x40\x84\x46\xb3\xa9\xf2\x9e\xa2\x95\xaf\x84\x94\x14\xb1\xa2\
\x6c\x1d\x36\x4a\x24\x53\x46\x7d\x77\x0c\xa0\xd1\x6c\xe2\x89\x07\
\xef\xc7\x8f\xfe\xd2\xbf\xc5\xaf\xfe\xb3\xef\x85\x6b\x88\xc2\xb9\
\x38\xf9\xef\xef\x79\xff\xdb\xf1\x7b\xbf\xf5\x1b\x58\x3b\x77\x26\
\x91\x10\xca\xf9\x13\xa3\x36\x2f\x64\x5b\xc4\x43\xaa\x09\xd9\xf7\
\x3c\xfc\x9f\xbf\xfb\x2c\xbe\xec\x55\xaf\xc1\x27\xff\xe7\xff\xd0\
\x9d\x54\x29\x6c\x3e\x12\x49\x6d\x04\xa8\x7e\x52\x02\x63\xac\x29\
\xf9\x1d\x41\x04\xdf\xf3\x11\x40\xc0\x30\x0d\x48\x19\x60\xb0\xd5\
\x43\x77\x73\x03\x5b\xdd\x2e\xfa\xfd\x3e\x86\xa3\x11\xfa\xc3\x21\
\xfa\x9e\x8f\x96\x6d\xc2\x24\xa3\x54\x4e\xd3\xd8\xbc\x49\x04\xd7\
\x34\xf1\xca\x37\xbc\x11\xcf\x3c\xf6\xd8\xd4\xf8\x4a\x2a\xce\x94\
\xc9\xfd\x62\xcd\x76\x22\x63\xc3\x18\xa8\x23\x6b\xc5\x4b\x46\x98\
\x32\xf1\x26\x64\x2a\x43\xe4\x07\xce\x18\x88\xca\x64\x4d\x75\xd2\
\xe9\x9d\x91\xcc\x38\x76\xec\x78\xc9\x9e\x4b\x34\x65\xbd\x38\xa5\
\x30\xab\x64\x2c\x2e\x2d\x63\x77\x58\x27\x2f\xf7\x2d\xc5\x86\x87\
\xbc\xd7\x11\x11\x46\x9e\x17\x96\x23\xaa\x1a\x5b\xaa\xa5\xbc\x1a\
\x98\xe6\x2e\xe9\x55\xa9\x93\xc7\xec\xfb\x90\xa3\x3e\x80\x65\xac\
\x9d\x3b\x87\xbb\x3f\xff\x39\xdc\x6f\x5a\xb8\x70\xf6\x0c\x7c\x6f\
\x04\x19\x04\x00\x18\xa6\x65\x43\x18\x06\xa4\xef\x47\xe5\x7b\x84\
\x20\xc8\x10\x9c\x0c\x03\xa4\x2d\xdd\x44\x42\xc5\x23\x98\xc1\xbe\
\x07\xc9\x23\x60\x34\x84\x3f\xe8\x81\x0c\x03\xa6\x96\xfa\x42\x70\
\x4a\x02\x93\x10\x06\x84\xa9\x92\x5a\x4d\xcb\x4c\xb5\xbc\x8e\x18\
\x92\x9e\x98\xa3\x86\x78\x14\x77\x53\x45\xe2\x31\x22\x02\x69\x67\
\xa1\xdb\x6c\xe1\xa1\x7b\xee\xc2\xaf\xfd\xd1\xff\xc4\x0f\x7e\xfd\
\xd7\x42\x10\xa6\x82\x93\x23\x08\xbf\xf6\x1b\xbf\x8e\xf7\xbd\xed\
\xad\x68\x34\x5b\x89\x9e\x42\xe3\xd3\x42\x6e\x8b\x8e\x90\xcd\x31\
\xc3\x30\x0c\xfc\xf9\x1f\xff\x21\xbe\xf3\x9f\x7c\x77\x9c\xab\xc4\
\x00\x84\x84\x94\xc9\x85\xb8\x8a\x37\x00\x0c\xa6\xb0\x27\x16\xc5\
\xf6\x6b\x0a\xdd\x7c\x04\x93\xa0\x98\x10\xc7\x72\x5e\x77\x63\x03\
\xdd\x6e\x17\x5b\xbd\x1e\x06\x83\x21\xfa\xc3\x21\x06\x23\x0f\x23\
\xd7\xd6\x72\x1e\xcd\x24\xe7\x09\x21\xf0\xda\xd7\xbc\x1a\xbf\xf7\
\x1b\xff\x6e\xfc\xf4\xe3\xa4\x16\xaa\x2b\x37\xa4\x4b\xde\xc5\xb9\
\x4c\x13\x7a\x28\xa5\x71\x25\x6b\x1b\x4f\x4a\x7a\xe3\xdd\xa6\x26\
\x55\x47\x90\x41\x80\xc3\x07\xaf\x4b\xb5\x55\x4f\x75\x29\xce\xfc\
\xf0\xe1\xef\xb3\xbe\xbe\x31\xad\x40\xc6\xdc\x86\x21\x04\x5c\xd7\
\x2d\xfe\x8c\x09\x86\x87\x6c\xce\x73\xf8\x0f\x75\xed\x16\x26\xd7\
\x4a\x54\xca\x75\xac\x47\x0d\x4c\xd5\x25\xbd\xa2\x84\xb8\xa9\x00\
\xc5\x00\x42\x03\xc4\x68\x30\xc0\xea\x70\xa8\x53\x6c\x14\x33\x22\
\xa2\x68\xa2\xa5\x54\x5f\x22\x05\x40\x42\x08\x05\x4e\x14\xf7\x29\
\x52\xad\x26\x84\x8a\x53\xf9\x3e\x0c\xc3\x04\x4b\xd5\xee\x02\x20\
\xb0\x37\x84\x47\x42\x95\x1b\xb2\x6c\x08\xcb\x8e\xc1\x49\x18\x20\
\xc3\x80\xdb\x44\x64\x2d\xa7\xc4\x4a\x97\xb5\x95\x5d\x88\x6c\x43\
\xbf\x70\x02\xa1\x88\xc5\x21\x29\xc1\x48\x89\x66\xbb\x8d\x3f\xfe\
\xbd\xdf\xc5\x6d\x37\xdd\x80\x77\xbe\xec\xf9\xf9\x8b\xe5\xcc\x78\
\xe5\x73\x6f\xc0\x0b\xbf\xfc\x15\x78\xf4\xde\xbb\x52\x13\x5b\x9a\
\x51\x40\xc9\x8c\x41\x10\xb3\xa5\x0c\x38\x91\x20\x3c\xf8\xc5\xcf\
\xe1\x13\xdf\xfd\xa0\x72\xb6\x85\x6c\x4f\x2a\x70\x82\x2e\x08\x41\
\xac\xc4\x69\xc5\x9a\x34\x3b\x88\xe2\x4c\x89\x44\x51\x22\x58\x06\
\x21\x90\x04\x4f\x4a\x08\x29\xe1\x7b\x9e\x32\x41\x6c\x6c\x62\xab\
\xbb\x85\x5e\xbf\x8f\xfe\x60\x80\xde\x70\x04\x5f\x36\x12\x55\x7b\
\xab\x2d\xea\x43\x39\xef\x9a\xbd\xbb\xd1\x59\x5c\x42\xbf\xb7\x35\
\xce\x3c\x52\x31\x9e\xc4\x29\x16\xc5\x9d\x28\x79\x37\xb7\x30\x6c\
\xdc\x28\x30\xcd\x90\xf2\xfa\x59\xe4\xb1\xa4\xe2\x9a\x7a\x40\xab\
\xd9\xc8\x65\x4b\x94\x73\x27\x34\x19\xfa\xbe\x3f\x37\xa9\x6e\xda\
\x18\x79\x5e\x54\x16\xac\x1a\x43\xca\xff\x41\x89\x04\xd6\x37\x36\
\x80\xd9\xca\x11\x95\x0d\x1f\xd4\xa3\x8e\x31\x4d\x64\x49\x79\x74\
\x7b\x2a\x28\x11\x11\x9f\x78\xea\x31\x56\x93\x86\x36\x2f\x8b\x70\
\x62\x47\x02\x88\x10\x97\x7c\x49\x36\xcc\xd3\x00\x20\x48\xc4\xef\
\x4b\xf4\x2b\x82\x4e\xdc\x8d\x7e\x28\x22\x08\x30\xd8\xf3\x10\x8c\
\x06\xf0\xfb\x5b\x18\x6e\x6d\x60\xb8\xb9\x86\xe1\xd6\x46\x1c\x6f\
\xd2\x7f\x91\x4c\xe5\x09\x27\x67\xc9\x90\x32\x80\x37\xf2\xb4\x3b\
\x4a\xcd\x3c\xa1\x59\x83\x42\x49\x30\x6c\x75\x21\x04\x0c\xd3\x84\
\xa1\x5b\x8e\xb7\x17\x17\xf1\x4b\x3f\xff\x0b\x58\xe9\x0d\x53\x71\
\x25\x9a\x70\x72\xfd\xf4\x4f\xfd\x24\x86\xfd\x5e\x6a\xa6\x91\x50\
\xe6\x85\x20\x90\xf0\x46\x3e\x46\x43\x0f\xfd\xfe\x00\xa3\xe1\x70\
\xcc\x61\x28\xa5\x02\x2c\x05\x1c\xeb\xa9\x18\x54\xba\xf1\x61\xd8\
\xc6\x23\x88\x63\x6a\x49\xa7\x1e\xc7\x7f\xc3\xc7\x05\x2b\x50\x0a\
\xcb\xec\x78\xa3\x21\xba\x9b\x1b\xe8\x6e\xa9\x06\x82\xbd\xc1\x10\
\xdd\x7e\x1f\x03\x2f\x80\xaf\x9b\x08\xce\x12\xcd\x16\x04\x2c\x36\
\x9b\xb8\xf9\xf9\xcf\x87\x0c\x64\xa9\xe5\x11\x8f\xa9\x9e\x71\x9b\
\x8c\x08\x31\x92\xb7\x74\x6a\x5d\x22\xd6\x14\x57\x2e\xcf\x95\x51\
\xa7\x06\xcf\x18\xa6\x69\xa6\x80\x89\xc6\x40\x29\x7e\x84\x08\xf0\
\x3c\x0f\x27\x4f\x9e\x9a\x2c\xe5\x51\x49\xf4\xe1\xe9\xb1\xa0\x6b\
\xaf\xbd\x0e\xb6\x6d\x67\x0e\x5a\xfe\x76\x18\x53\xe2\x51\xe3\x55\
\x1f\xaa\xca\x77\x75\x59\xa2\x1a\x98\x2e\xaa\x9c\x97\x3a\x49\x59\
\xa1\x91\x0c\xa5\xa0\x64\xcf\x9c\xbc\x2b\x30\x72\xb4\x51\xa6\xa3\
\xab\xd0\x3d\x9c\x52\xfd\x89\x14\x40\x05\x81\x9f\x9e\x01\xc2\xe6\
\x7a\x20\x40\x4a\x48\x6f\x04\x7f\xd0\x83\xd7\xeb\x62\xb8\xb1\x8a\
\xfe\xfa\x2a\x46\xbd\x4d\x58\xb6\xf3\xff\xb1\xf7\xe7\xe1\x96\x5c\
\x77\x79\x28\xfc\xae\xb5\x6a\xdc\xc3\x19\x7b\x52\x6b\xb6\x06\x5b\
\xd6\x60\x07\x6b\x32\x21\x04\x12\x48\x00\x33\xe6\x42\xe0\x83\xf0\
\x7c\xc1\x7c\x09\x17\xb8\x90\xcb\x93\xdc\x87\x29\xe4\x92\xdc\xe4\
\x7e\xb9\x1f\x5c\x48\x20\x24\x38\x10\x27\x71\x20\x04\x42\x18\x92\
\x6b\xb0\x49\xf0\x88\x8d\xa5\x6e\x49\x96\xd4\xb2\x64\xcd\x2d\xf5\
\x74\x4e\xf7\xe9\x33\xed\xb1\xaa\xd6\x5a\xdf\x1f\x6b\x55\xd5\xaa\
\xda\xab\x6a\xd7\x3e\xdd\x92\x65\x54\x4b\x4f\xe9\xf4\xd9\x67\x9f\
\x7d\xf6\xb8\xde\x7a\x7f\xbf\xf7\xf7\xbe\xda\x1e\x08\x59\xf9\x2e\
\xdd\xb8\x79\xc2\x11\xeb\x32\xe3\x74\x3c\xc2\x74\x32\x85\x1f\x74\
\x71\xf8\xe8\x71\x38\xae\x0b\x21\x64\x5e\x0a\xa4\x14\x8c\x39\x70\
\xdc\xbc\x64\xc8\x18\xc3\xdf\xfb\x3f\x7f\x6e\xbe\x84\x5a\xaf\xfb\
\x6e\xbb\x11\xc7\x6e\xb8\x09\x52\x08\xc5\x12\x1d\x17\xcc\xf5\xb5\
\xe3\xb8\x0b\x10\x06\x50\x07\xa0\x0e\x24\x28\xb8\x00\x92\x44\x31\
\x44\xc1\xb5\xf4\x5d\xcf\x1c\x99\xee\xd6\xb3\xe0\x24\xf3\x3c\x29\
\x8b\x74\x3c\x97\x98\xe7\x5f\x99\x14\x60\x10\x59\x29\x31\x9a\x4e\
\x31\xdc\xdb\xc3\x70\x5f\xc9\xc6\x27\x93\x29\x46\x93\x09\x86\x93\
\xa9\x32\x80\xad\xf2\x75\xab\x29\xda\xa4\x79\xbe\x2e\x63\x78\xf7\
\x5f\xfc\x8b\x10\x7a\x84\xc0\xd6\xda\x94\x85\x54\xde\x9c\x35\x99\
\xa0\x52\xde\x4a\x67\x76\xbe\xda\x2c\xa9\xf2\xed\x54\x6c\xd0\x25\
\xf0\xe2\xa9\xb3\x7c\x19\x90\x88\xbd\x98\xcb\x39\xc7\xee\xee\x6e\
\x21\xa2\x83\x34\x02\x27\xe3\x20\x04\xb6\xc9\x66\xcb\x48\x30\x3a\
\xdd\x0e\x28\xa5\xd6\xc7\xd4\xb8\x6e\x52\xea\x0b\x9e\x78\xf8\xe1\
\x79\xa5\xbc\xa6\xb3\x4c\x2d\x28\xb5\xa5\xbc\xd7\x0c\x9c\x44\x05\
\x48\x49\x91\x44\x10\xd1\x04\xd2\x75\x8b\x1f\x1f\x02\x95\xc0\x4a\
\xb4\x0c\x55\xf7\x8f\xcc\xb2\x5d\xe1\x20\x66\x78\x9e\x2c\x58\xeb\
\x14\x06\x4f\xcd\x3f\x91\x36\x1b\xb8\x1e\xe6\x25\xea\xdf\x61\xaf\
\x97\x97\x0a\xb9\xb2\x05\x8a\x13\x35\xaf\xc3\x93\x44\x97\xc7\x1c\
\x1c\x3e\x7e\x3d\xde\xf2\xd6\xb7\xe2\xb6\xdb\x6f\xc5\xf5\xc7\x8f\
\x81\x10\x89\xf3\x9b\x9b\x38\xf9\xf0\x49\x0c\xf6\xf7\x15\x50\x25\
\x5c\xab\x94\x25\x38\x07\xc2\x6e\x17\x4f\x3f\xfe\x18\x4e\xbc\x70\
\x06\x0f\xdc\x72\xdd\xdc\x27\xd6\xa5\x04\xef\xfd\xc1\x1f\xc6\x3f\
\xfd\xb1\xbf\x8b\xce\xf2\x3a\x98\x17\x64\xb7\x97\xb1\x22\xce\x21\
\x12\x35\x5b\xc4\xe3\x08\x84\x32\x08\x1e\xeb\x12\x5f\xac\x22\x2f\
\x20\x21\x25\xcb\x95\x83\x19\x0b\xd0\xe7\x56\x42\x40\x52\xaa\xf9\
\x58\x9a\x05\x65\x94\xf2\x0a\x62\x08\x6d\x7c\x0a\x40\x20\xf5\x13\
\xa4\x8a\x95\xed\xef\x63\xb0\xbf\x9f\x01\xd3\x78\x1a\x61\x7f\x3c\
\xc1\x4a\x37\x44\xe8\x30\x08\x14\x73\x9a\x6a\x1b\x4c\x46\xb9\x92\
\x12\xe0\x9d\xf7\xdc\x6d\xef\xb1\x99\x85\xb0\x54\xf2\x2d\xcb\x61\
\xb4\x79\x9f\x49\xa6\x57\x40\xa9\xe7\x65\xd6\xe8\x0a\xe9\xc4\x73\
\x4a\x5b\xd6\x92\x1e\x32\xf7\xf3\xc3\x6b\xab\x55\xb5\x3b\xfb\xa6\
\xe2\x38\x79\xea\x6e\x23\x49\x26\x2a\x7d\xf1\x9a\x14\xdf\x66\x7c\
\xf2\x2a\xab\x98\xcd\xa6\x6b\x09\x21\xd8\x57\x6e\x2a\x07\x75\x7c\
\x68\x85\x0f\x2d\x30\x5d\x11\x18\xcd\x93\x88\xd7\x32\x29\x42\x88\
\x90\x49\x0c\x1e\x4f\x01\xf4\x90\xab\x7a\x8a\xbb\x92\x34\xa3\xc4\
\x8d\xb2\x5d\xf9\xa0\x84\x40\x52\xe5\x56\x40\x08\x01\x4f\x74\xed\
\x9c\x90\x02\x2e\xa5\x13\xf8\xe6\x25\x54\x2b\x12\x24\x4f\x20\x39\
\xc7\xfe\xce\x76\xc6\x18\x00\x20\x9a\x4e\x10\x47\x91\xb6\x3d\xea\
\x62\x65\xfd\x10\x6e\xbf\xf3\x4e\xfc\x85\x2f\x7b\x10\xd7\x1f\x3d\
\x84\xd0\xf3\xd0\xf5\x3d\xfc\xf9\x3b\x6f\xc7\x5f\x7d\xf7\x7d\x78\
\xdf\x6f\xfc\x0e\x4e\xbf\xf8\x02\x1c\xcf\x53\x59\x4f\x4c\xcd\x67\
\x11\x42\xd0\xed\x2f\xe1\xa7\xfe\xf1\x3f\xc5\x1f\xbe\xff\x5f\x80\
\x35\xd8\x39\xbe\xf3\x3d\x5f\x8d\x9f\xfd\xdf\x43\xb8\x61\x07\xae\
\x1f\xaa\xe7\xc4\x28\xc1\x15\x4a\x77\x3c\x05\x28\x65\x38\xcb\xa3\
\x31\x84\x96\xc1\x4b\x99\xbb\x46\x48\xdb\x2c\x54\xea\xa3\x47\xa8\
\xda\x97\xd3\xb0\x3c\xad\x54\x23\x99\x13\x84\x4a\x2e\x42\x3a\x78\
\x2c\x05\x98\x66\x95\x71\x34\xc5\x70\x7f\x1f\xa3\xe1\x08\xe3\xc9\
\x04\xd3\x28\xc2\x68\x3a\xc5\x34\x49\xc0\xa5\x5b\xf6\x9b\x9d\x6d\
\x9e\x57\xec\xbd\x94\x10\x1c\x5a\x5d\x81\xe7\x07\xaa\xf7\x07\x62\
\xe9\x09\xe5\xa0\x92\xcd\x30\x99\xb1\x17\x30\x1c\xc2\x25\x29\x43\
\x5a\xc1\xcc\xb5\x5a\x9c\x96\xef\xd8\x99\x28\xc2\x86\x53\x46\x49\
\xf1\xd0\xfa\x9a\xf1\x9e\x9b\xbf\xc6\xe3\x31\xa2\xe9\x74\x36\x23\
\xab\x6e\x97\x3e\x80\x84\x3c\xfd\x95\xe5\xa5\xe5\xa6\xed\xa3\x4a\
\xc1\x43\xf9\x44\xc1\x00\x26\x5e\x01\x46\x75\x6c\xa9\x65\x49\x6d\
\x29\xef\x8a\x18\x92\x8d\x31\x61\x81\x5e\x93\xcc\x3e\xe4\x33\x33\
\x2a\x46\xe9\xcd\x04\x26\xcd\x8c\x54\xa8\xa0\x16\x2c\x50\x56\x60\
\x4e\xd0\xd7\x11\x42\x22\x9a\x8c\x51\xa9\x05\xab\xc8\x60\x18\xec\
\xee\xa8\x92\xd4\xde\x2e\x46\xfb\xea\x6b\x12\x45\x58\x3b\x72\x14\
\x47\xae\xbd\x0e\xcb\x6b\xab\x80\xe4\xf8\xfc\x93\x9f\xc5\xc7\x3f\
\xfe\x49\x4c\xa6\x11\x8e\x2d\xf7\x70\xa4\xdf\xc1\x6a\xe8\xe1\xe6\
\xb5\x25\xfc\xef\xdf\xf7\xdd\xb8\xfd\x8e\x3b\x20\xa5\x04\x73\x5c\
\x30\x87\x65\xc3\xbc\x5e\x10\x60\xeb\xe2\x06\x1e\x7e\xee\x74\xa3\
\x27\x7b\xad\x1b\xe0\x6d\x5f\xf2\x00\x1c\xbf\x03\x37\x08\xe1\xfa\
\x01\xbc\xb0\x03\x2f\xec\xc2\xeb\x74\xe1\x77\xfb\xf0\x7b\x7d\x04\
\xdd\x3e\x82\xde\x12\xc2\xde\x32\xc2\xfe\x32\x3a\xcb\xab\xe8\xac\
\x1c\x42\xb0\xbc\x0e\xbf\xbb\x0c\xe2\x06\x88\x24\xc1\x24\x51\xc3\
\xcb\xa6\x6f\x42\x59\x6a\x9e\xab\xfc\xa4\x76\x7d\x90\x33\xf3\x4c\
\x42\x08\x10\x9e\x80\xf0\x24\x53\x00\xc6\xd3\x48\x01\xd3\x68\xa8\
\x64\xe3\xd3\x08\xd3\x28\xc2\x24\x4e\x54\x9f\xa9\xc1\x8e\x43\xac\
\x7d\x26\x82\xd5\x5e\x0f\xd7\xde\x74\x93\x2e\xe7\x99\xce\x0d\x66\
\xaf\xc8\xa8\xb5\x95\xdb\x42\x32\x35\x5b\x2d\x97\xf3\x64\xb1\x1c\
\x57\xa8\xe9\x95\x7b\x4d\x35\x1f\x04\x69\x2f\x11\x7a\xae\xdb\x18\
\x38\x08\x80\xc9\x64\xac\x7a\x96\x57\x88\x3f\x64\xce\x4f\x52\x30\
\x59\x4d\x19\x5d\x45\x0f\x69\xa1\xa6\x95\xbe\xcd\x93\x27\x1e\x6e\
\xc2\x98\x16\x01\xa5\x16\xa8\x5a\x60\x7a\xfd\x7a\x4d\x4a\x24\x65\
\xd8\xfd\xc8\xd9\x7a\xb5\xfd\xa0\x05\x90\x2a\x96\xf5\x72\xe1\x04\
\x6c\x59\x39\x75\x9f\x6e\x29\x11\x6b\xf1\x83\xd9\xb0\x5e\x3e\x74\
\x18\xfd\x95\xd5\x4c\xae\x9e\x9a\x75\x3e\xfd\xf8\x67\xf1\x33\x3f\
\xfb\xf3\x38\x73\x79\x17\x1d\x87\xc1\xa3\xca\x6a\x68\xc9\x73\xf0\
\x13\xdf\xf3\x1d\xe8\x2f\x2f\x65\x51\x1b\x69\x1f\xcc\x71\x1c\x74\
\x7b\x7d\xfc\xff\x7e\xe1\x97\x1a\x7d\xda\x28\x80\x6f\xfc\xf6\x6f\
\x87\xdf\xed\x82\x30\x07\x8e\xef\x83\x79\x2e\x5c\x1d\x93\xe0\x85\
\x21\xbc\xa0\x53\x02\xab\x1e\x82\x6e\x1f\x61\x7f\x19\xdd\xe5\x55\
\xf4\xd6\xd6\x11\x2c\xad\x82\x84\x7d\x48\x27\x00\x27\x0e\x62\x41\
\x31\x8e\x12\xc4\x71\x82\xd4\xf9\x01\x56\x61\x44\x3a\xc7\x25\x0b\
\x22\x08\x21\x24\xa8\x48\x40\xb5\xc0\x42\x02\xe0\x3c\xc1\x78\x38\
\xc0\x70\x7f\x80\x61\xc6\x9a\x62\x8c\xa7\x11\x62\x2e\x0e\xbc\xbf\
\x10\xa8\xf0\xc0\xbb\xef\xbd\x57\xf5\xce\x64\xc5\x19\x90\xb4\x98\
\x07\x99\x03\xb6\x1a\x9c\xa4\x34\xac\x8c\x2a\x7a\x49\x4d\x7a\x4d\
\x98\xb9\x8d\xd9\x7c\xab\x6e\x27\x5c\x00\x52\x08\x46\xc3\x11\xa4\
\x78\x9d\xf6\x61\x42\x94\x4f\x5e\x53\xc1\x83\x9c\x0f\x60\x52\x4a\
\x9c\x3f\x7b\xee\xa0\x7d\xa5\x56\x36\xde\x02\xd3\xeb\x52\xce\xab\
\xef\x35\x65\xfd\x12\x91\xb9\x5f\x17\x2d\x57\x90\x33\xa7\x99\xf2\
\x5d\x2e\x82\x28\x33\x27\x64\xcc\xa9\x38\xd8\x98\x2a\xe6\xea\x56\
\x32\x9d\xe6\xd9\x39\x52\xc2\x71\x5d\xf4\x57\x56\xb4\xe9\x2b\x01\
\x65\x54\xfb\xe7\x29\xcb\x9f\xd1\xfe\x3e\x7e\xfc\xef\xff\x34\xb6\
\x27\x91\x72\x76\xd0\x7f\x61\xc9\x65\xf8\xfe\xef\xfe\x4e\x4c\xc6\
\x63\xc5\x96\x58\x7e\x7f\x82\x30\xc4\x2b\x2f\xbf\x84\x57\xb7\x76\
\x1b\x3d\xc1\x37\xdd\x78\x1d\xde\xf3\x6d\xdf\x86\x5b\xef\xbc\x0b\
\x52\x02\xcc\x71\x75\xec\x7a\x9a\xb2\x1b\x28\x36\x15\x04\x0a\xa8\
\xc2\x8e\x02\xa7\x5e\x1f\xc1\xd2\x0a\xc2\xe5\x35\x74\x56\xd7\xd1\
\x5b\x59\x47\x6f\x75\x1d\x5e\x6f\x19\xd2\x0b\x21\x98\x87\x18\x0c\
\x53\x2e\x31\x98\xc4\x98\xc6\x71\x61\x33\x2f\x82\x93\xe1\x2a\x91\
\x82\x54\x29\xa0\x2f\x53\x00\xee\x6b\x17\x88\xf1\x04\x93\xe9\x14\
\xc3\xc9\x14\xd3\x84\x83\x8b\xf9\x9e\x09\x36\x8b\x5a\x42\x94\x3d\
\xd1\xbd\xf7\xdd\xa7\x37\xed\xfc\xf5\x91\x05\xb6\x04\x83\xe1\xc8\
\x22\x80\xd9\x14\x75\x32\x17\xde\xc8\x2c\x2f\x69\x0e\x6b\x9a\x77\
\x9b\xc6\xf7\x94\x12\xf8\x9e\xb7\x10\xcd\x99\x4c\x27\x06\x9f\xb1\
\xcb\xcc\xc9\x55\xc3\x25\x82\x30\xec\x5c\x19\x29\x29\x81\x95\x94\
\x12\x83\xe1\xe0\x20\xc6\xad\x2d\x08\xb5\xc0\xf4\x9a\x94\xf3\xe4\
\xe2\xbd\x26\xa2\x7a\x20\xd1\x44\x2b\xdf\x0a\x27\x73\x85\x52\x5e\
\x91\x2d\x91\xa2\xe0\x21\x63\x4e\x2c\xbb\x1e\x25\x04\x49\x92\x20\
\x8e\x22\xcb\xcc\x91\x85\x4d\x69\x86\x15\x0d\xf7\xf2\xec\x1c\x29\
\x11\x76\x7b\xca\xa0\xd5\xf0\xd4\x4b\x65\xed\x90\x12\xae\xe7\x61\
\x3c\x1c\xe0\x07\x7e\xf2\x1f\x21\xd5\x50\xa4\x37\x7b\xef\xcd\xc7\
\x71\xcd\xf1\xe3\xca\x2c\x33\xf3\xe3\x23\x60\x8e\x83\x4e\xa7\x8b\
\x9f\x7b\xff\xaf\xcf\x45\x7b\x2e\x25\xce\x6d\x5c\xc4\xb5\xc7\x8f\
\xe1\x2b\xbf\xea\x2b\xf1\x57\xbe\xf9\x9b\xb0\x7a\xe8\x10\x40\xa0\
\x5c\xd5\x3d\x4f\x03\x95\x8a\xff\x70\x7c\x05\x52\x5e\xd8\x81\xd7\
\xe9\xc1\xef\xf4\x54\xfa\x6f\xa7\x07\xbf\xdb\x43\xd8\x5b\x42\x67\
\x69\x05\xdd\xa5\x15\xf4\x56\xd6\xe0\x77\x97\x20\x9c\x00\x9c\x30\
\xc4\x82\x60\x12\x73\x0c\x46\x13\x4c\xa7\x51\xb6\xf9\x0b\x59\x64\
\x4d\x05\x23\xd4\x24\x06\x92\x28\x53\xfd\xc5\x51\xa4\x40\x69\x34\
\xc2\x78\x3c\xc6\x64\x3a\xd5\x2e\x10\x31\x62\x21\x20\xe4\xe2\x75\
\x9a\x54\x9d\x77\xfd\xb5\xd7\x66\xcd\x16\x39\x03\x0a\xd2\x38\xa1\
\x40\x51\xba\x5c\x52\xe7\xcd\x9e\xf3\x57\x83\x8b\xed\x4e\xca\x46\
\xbf\xaf\x43\x2f\x9d\xc5\x5a\xd1\xdb\xdb\xdb\x25\x46\x48\x6a\x9e\
\x93\x6a\x90\x9a\xf7\x9c\xaa\x48\x0e\x1f\x37\xde\x78\x43\xa1\x5a\
\x71\xb0\x72\x5e\x9e\xe1\x15\xc5\x31\xb6\x2f\x5f\x4e\x1a\x30\xa6\
\x72\xef\x09\x2d\x48\xb5\xc0\x74\xb5\x00\xa9\x6a\x5f\x6d\xd6\x63\
\x22\x4a\x70\x20\xb4\xf3\x75\xfe\x06\xd7\x05\x9c\x42\x9f\x89\x02\
\x94\xaa\x01\xd7\x19\x35\x1e\x29\x7e\xd5\x47\xaa\x54\x43\xd9\x75\
\x80\xd4\x7d\xee\x49\x61\xbb\x61\x8e\x93\x35\xed\x69\x36\x40\x9b\
\x03\x24\x08\x81\xeb\xf9\x78\xe1\x73\x4f\xe1\xa3\x4f\x3e\x3b\xf3\
\x06\xf9\xa1\xef\xfe\x0e\x4c\x27\xe3\x3c\x66\x43\x3f\x96\xb0\xdb\
\xc5\x33\xcf\x3c\x8d\xa4\xca\xa1\x3a\x65\x70\x42\xe2\xd2\xe5\x6d\
\x0c\x06\x43\xc4\x71\x8c\x9b\x6e\xb8\x1e\x5f\xff\x2d\xdf\x84\xaf\
\x7a\xcf\x7b\xb0\xbc\xb6\xa6\xa4\xe4\x94\x82\xb9\x8e\x02\x28\xcd\
\xa2\x1c\x3f\xcd\xaa\xf2\x75\x5f\x2a\x44\xd0\xe9\x22\xe8\xf5\x10\
\xf6\xfa\x08\xfb\x4b\xaa\x27\xb5\xb4\x82\xee\xf2\x2a\xfa\xab\x87\
\xe0\xf5\x96\x21\xa8\x07\x0e\x8a\x88\x0b\x8c\xa7\x71\x56\xea\x4b\
\x37\xfe\x32\x8b\x42\x12\x01\x49\x9c\xbd\x7e\x49\x1c\x63\x34\x50\
\xca\xbc\xf1\x78\x82\xc9\x24\x42\x14\x45\x88\x32\xb7\x71\xb9\x70\
\x13\x21\x65\x4d\x6b\xcb\x4b\xe8\xf4\x7a\x2a\xba\x44\x9f\x3c\x14\
\xfa\x63\x06\x63\x32\xe7\x96\x52\xfb\xa8\x22\x2b\x97\x33\x10\x23\
\xcd\xf2\x5c\xa9\x27\x25\x01\x4b\xe3\xaa\xba\xe4\x25\x25\xe0\xba\
\x0e\x3c\xcf\x5d\xe8\x03\xb6\x6f\xe4\x83\x35\xed\x2e\x91\x8a\x63\
\x5e\x79\x74\xee\x6d\x37\x2d\xe7\x19\xdf\x70\x9e\x40\x28\x63\xc3\
\x3a\x40\x6a\x9a\xc1\xd4\x82\xd3\x01\x56\x2b\x17\x6f\x26\xf3\xac\
\xeb\x35\x21\x3d\x05\x36\x63\x2f\x48\xe9\xe3\x23\x33\x2f\x3a\x1d\
\x3f\x4e\x95\x41\xa9\xd4\x47\xea\x00\x91\xbb\x41\xe4\xee\x10\x29\
\x60\xc9\x99\x8f\xa5\x9c\xa9\x1a\x02\x80\xd4\xea\x36\x42\xd9\xcc\
\x4e\x43\x29\x03\x71\x08\x90\x40\x6d\xb0\x32\x2f\x89\x74\x7a\x7d\
\xfc\xd4\x3f\xf8\x69\xfc\xa5\xdf\xfd\x8f\x05\xb5\xdd\xed\xc7\x8f\
\x80\x51\x96\xf9\xb7\xa5\xfd\x2f\xc7\x75\xb1\x7d\xe9\x22\x5e\xbe\
\xb4\x8b\x5b\x0f\xaf\x54\x3e\x71\xa3\x38\xc1\xe5\xad\x2d\x2c\x2d\
\x2d\xc1\x4f\x12\x44\x51\x04\xcf\x75\x71\xfd\x75\xc7\x71\xf4\xc8\
\x7b\xb0\xb1\x79\x11\x8f\x3e\x7c\x12\xbb\xdb\x97\xf5\x3c\x0a\x2b\
\x0c\xd5\x48\x29\x95\x03\x86\x14\x10\x0e\x87\x23\x3c\x15\x5b\x91\
\x24\x48\x12\x35\x2c\x2c\xb8\x9a\x7d\xe2\x51\x84\x24\x08\x90\x44\
\x11\x92\x38\x42\x12\x4d\x95\xa1\x6b\xac\x22\x2e\x5c\x46\xe1\xb9\
\x4e\xa6\x7c\x4b\xff\x4e\xc1\x1e\x49\x08\x4c\x27\x13\x8c\x32\xdf\
\xbc\x29\xa6\x51\x8c\x49\x14\x21\xe6\x1c\xdc\x61\x70\x2a\xdc\xc6\
\xe7\xed\x42\xfd\x30\xc0\x91\xe3\xd7\xe2\xf4\xf3\xcf\x81\xb0\xdc\
\xb7\x2e\x75\xa4\x40\x1a\x10\x98\xa6\xda\x6a\xdd\x78\x39\xd9\x36\
\x57\xe6\x65\x7e\x0b\x05\xd6\x6c\x74\x89\x66\xef\xa0\x4d\x3e\x9e\
\xca\xc3\x4d\xdf\x08\x21\xd0\xeb\xf7\xd0\x09\x3b\x95\xf1\x18\xb6\
\x27\x60\x63\x63\xa3\x06\x7e\xae\xde\x5e\x2d\xa5\xc4\xca\xca\x0a\
\x0e\x1d\x5a\x2f\xc4\xb9\x1c\x3c\xc3\x56\xbb\x3e\xec\xd6\xba\x3e\
\x34\x0c\x10\x6d\x19\x53\xcb\x98\x0e\xce\x9a\xe4\x9c\x9f\xcd\xed\
\x35\xa5\x67\xc2\x69\xb6\x8f\x94\x96\xf7\xe3\xcc\x60\x2d\x51\x00\
\x61\xcc\x33\x51\xcb\x4c\x53\xca\xb4\x78\x92\x20\x8e\x72\xf9\x6d\
\xd1\x1e\x66\x76\xf0\x23\x89\x22\x24\x9a\xe1\xa4\x67\x80\xe9\xd9\
\xb4\xd0\x96\x47\xcc\x51\x2e\x0f\x66\xad\xde\x75\x5d\x0c\x07\xfb\
\x78\xec\xc5\x57\x0b\x37\xc9\x28\xc1\x2d\xb7\xdd\x06\x1e\xc7\x06\
\x38\x29\xb0\x74\x3d\x1f\x9f\x7e\xe2\xe9\xda\xba\xe7\xf6\x70\x82\
\xad\x8b\x1b\xd8\xdd\xdd\xc5\xde\xee\x2e\x86\xc3\x21\x86\xa3\x11\
\x76\x76\x77\xc1\x39\xc7\xf1\xe3\xc7\xf0\x57\xdf\xf3\x35\xb8\xe7\
\xde\x7b\x95\xc9\x2d\x17\x85\x21\x64\xca\x52\x0f\x40\x37\x67\x4f\
\x81\x92\x9f\x7b\x41\x67\x56\x38\xd1\xe9\x29\x26\xd5\x5f\x46\x67\
\x69\x15\x6e\xa7\x07\xe1\x78\xe0\xc4\x41\x24\x80\x49\xcc\x31\x1c\
\x4f\x10\x45\xb1\xe1\x23\xc8\x01\x29\xb2\xf9\x28\xc1\x39\x46\xc3\
\x11\xa6\x13\x75\xbd\x28\x56\x02\x88\x49\xac\x66\xc6\xe4\x81\x3e\
\x6c\x6a\xd0\xf6\xd8\x75\xd7\xe9\xa1\xe1\xd2\x5c\xb6\xd1\xe7\x2a\
\xa8\xf6\x52\xbe\x33\xc3\x98\x6a\x40\xb1\x20\xf0\x93\x76\xa1\xc3\
\x1c\x97\xf1\x82\x91\x2c\x21\x0d\x3f\x58\x12\x67\xcf\x9e\x9d\x43\
\x64\x9a\x72\xa2\x7a\xc4\x97\x90\xa0\x8c\x22\xf0\xfd\x52\xfe\xd4\
\xe2\x82\x07\xf3\x22\x6d\xa7\xc4\xe7\x94\xef\x9a\x30\xa7\x96\x35\
\xb5\xc0\x74\x55\x59\xd3\x02\x87\x06\x0b\x29\x41\x74\x1e\x53\xd6\
\xdf\x31\xfa\x4c\xb0\xf5\x98\x58\xa9\x9c\xa7\x7b\x4c\xb4\x54\xd2\
\x4b\xe7\x7a\x08\x21\xf5\x25\x3c\x0d\x3a\x9d\x6e\x47\x99\xc2\xea\
\xab\x4c\x86\x43\xd5\x70\x27\xb9\xea\x2b\xed\x61\x51\xb3\x6f\x45\
\x09\xc2\x6e\x17\xff\xfc\x57\xfe\xdd\x0c\x72\x1f\x5a\x5f\x47\x1c\
\xab\x61\x57\x35\x8b\x95\x8a\x20\x02\x7c\xe2\x53\x9f\x06\xb7\xb4\
\x28\xd2\x8d\x77\x30\x99\x60\x7b\x73\x13\x5b\x9b\x9b\xd8\xde\xda\
\xc2\xa5\xcd\x4d\x6c\x5d\xbc\x88\xdd\x9d\x5d\xec\xee\xee\x62\x77\
\x67\x17\x49\x12\xe3\xed\x77\xbc\x15\x5f\xfd\x9e\xaf\xc5\x6d\x77\
\xdd\x89\x24\x8e\xb4\xc7\x60\xea\xe1\x47\xb4\x00\x43\x01\x14\xf3\
\x3c\x38\x9e\x97\x95\xfc\x1c\x3f\x80\x9b\xf5\xa6\xba\xf0\x35\x40\
\xf9\x5d\x55\xf2\xeb\xe8\x72\x9f\x1b\xf6\xc0\xa9\x8b\x04\x14\x53\
\x2e\x31\x9a\xc6\x18\x8e\xa7\x88\x27\x13\x55\xda\xd3\xcf\x23\x4f\
\x12\x4c\xc7\xa3\x8c\x31\x45\x71\x8c\x28\x49\x10\x25\xbc\xb2\xcf\
\x54\xb7\x17\xe7\x02\x08\x8a\x9b\x6e\xb9\x45\x45\x60\xc8\x92\x8a\
\xd0\x70\x7c\xcf\x85\x0c\x39\x40\x15\x9e\x57\xc8\x4a\x79\x77\x41\
\x04\x51\xb9\x01\xcb\x42\xe9\xcf\xb6\x81\xe7\xa0\xb4\xd8\x87\x69\
\xeb\xf2\x76\x31\xe2\x82\x34\x01\xa9\xc5\x17\x01\x10\x47\x71\x66\
\x40\x7c\x90\x53\xd3\x19\xa1\x0a\x25\x78\xf6\xf3\x9f\x4f\x19\x53\
\x15\x38\x35\x1d\xae\x6d\x41\xa9\x2d\xe5\xbd\x6e\xac\xa9\x1c\x10\
\xa6\x10\x9e\x28\x70\x12\x9c\x43\x32\x07\xa0\xb9\x2a\x29\xad\xae\
\xa4\x59\x47\x90\x9a\x09\x48\xb3\x94\xc7\x40\x29\xcf\x1d\xc7\x69\
\x49\x20\x41\x59\x76\x6b\xb2\x62\xb3\x71\x5c\x17\xdd\x6e\x4f\xf9\
\x86\x25\x53\x88\xf1\x00\xf0\x42\x08\xa1\x32\x9a\x98\xc3\xb2\x4d\
\x2f\xfd\x1c\x53\xc6\x40\x0d\xb6\xe7\x79\x1e\x9e\x7b\xe6\x69\x4c\
\xb9\x80\xcf\x94\xcd\x4b\x22\x25\x92\x24\x86\x48\x12\x08\xc7\xc9\
\xe2\xd5\x05\x21\x60\x8e\x8b\x4b\x17\x37\x91\x08\x01\xca\x68\x81\
\x01\x28\xa7\x5b\x89\xbd\xe1\x08\x5b\x17\xce\x21\x8e\x63\x74\x7a\
\x7d\x04\x9d\x0e\x82\x20\x84\x1f\x86\x08\x82\x40\x25\xfb\x7a\x3e\
\x3c\xdf\x43\x10\xf8\xb8\xf3\xce\x3b\xb0\xb6\xbe\x86\xa7\x3e\xfb\
\x38\x06\xbb\xbb\xda\xbf\x8f\x16\xcb\x98\x94\x81\xa6\xcf\x08\x53\
\xd1\x15\x42\x33\x2b\x91\x28\xbf\x3d\xc6\x75\xba\x6f\x92\xa8\x9c\
\xaa\x24\x81\xe3\x07\xaa\xe4\x17\x47\x48\xa2\x48\x7d\x95\x1c\xc9\
\x78\x0a\x57\x70\x30\xb8\xea\x7e\xf3\x04\xd3\xc9\x18\x93\xf1\x18\
\xd3\xc9\x14\x71\x1c\x23\x49\x12\x24\x5c\x20\xd1\x79\x4f\xb2\x81\
\xdb\x78\xb9\xf8\x4a\x09\xc1\x5b\xdf\xf6\x36\x35\x5b\x25\x65\x89\
\x8c\x10\x23\x12\x1e\xc6\x70\x6d\x1e\x16\x68\xc6\xac\xcb\xcc\x1e\
\x02\x59\x14\x46\xe1\x06\x73\x8b\x8c\x2c\x5e\xbe\x5c\xae\xb3\xbe\
\xf3\xf5\x75\xb8\x10\x38\x7c\x68\x1d\x9e\xeb\x35\x2a\xe5\xa5\xec\
\x73\xe3\xc2\x46\xbd\x05\x51\xa5\x75\xd7\x62\x7b\xb8\x94\x12\xd7\
\x5c\x5b\xf2\xc9\xbb\xe2\x72\x1e\xc1\xa5\xad\x4b\xf3\x4a\x79\x75\
\x6c\xa9\x05\xa5\x16\x98\xae\x08\x90\x80\xc5\x8c\x5b\x6d\x00\x55\
\xf8\xc4\x09\x29\x40\x38\xd7\xaa\x2f\x5a\x3a\x89\xd3\x56\x38\xa0\
\x00\x95\x20\x32\x65\x4a\x0c\x84\x72\xdd\x5b\xca\xc1\x89\x52\x06\
\x49\xb9\xb2\xd9\xa1\x14\x3c\x89\x11\xc7\xca\xbb\x2e\xff\x18\x13\
\xe3\xcc\x57\xa9\xeb\x3c\xdf\x57\x4c\x23\x89\x01\x9e\x80\x50\x8a\
\x24\x8a\xb1\xb7\x7d\x19\xeb\xc7\x8e\xe9\xe6\xbf\x00\xd1\xb9\x4a\
\xb9\xa0\x81\x02\x10\xa0\x94\x61\x32\xda\xc5\x85\xfd\x11\xae\x5f\
\xee\x81\x4b\x89\x58\x08\x0c\x07\xfb\xda\xa5\x81\x1b\x02\x08\x02\
\xc6\x18\x46\x83\x01\xf6\xa3\x04\xab\x81\x57\x98\x82\x11\xba\x74\
\x18\xc7\x31\x2e\x6f\x5c\xc0\x74\x3c\x56\xec\xa5\xd7\x47\xd8\xed\
\x2a\x17\x8a\x30\x44\x10\x76\xe0\xf9\x3e\xfc\x20\x80\xef\xfb\xf0\
\x7c\x1f\x47\x0e\xad\x63\xfd\x2f\x7d\x05\x5e\x78\xfe\x05\x3c\xff\
\xf4\xd3\xe0\x71\xac\x9c\xc5\x0b\x9b\x2e\xd1\x39\x54\x14\x54\xa8\
\xe7\x4f\x32\x01\xc1\x1c\x23\x72\x5e\x59\x1e\xa5\x20\xc5\x93\x44\
\x01\x53\xe2\xc3\xf1\x62\x08\x1e\xab\xd2\xe7\x74\x02\x1e\x27\x70\
\x7d\xbd\x91\x6b\x75\x5e\x34\x55\x21\x90\xd3\x69\x8c\x69\x14\x23\
\xe6\x09\xb8\x10\x3a\x3c\x90\x58\xb7\xbf\xca\x2d\x4f\x0b\x2b\x6f\
\xb8\xfe\xba\x3c\xbe\x23\xfb\xa5\xfc\xb5\x4c\x01\x28\x8b\xc0\xc8\
\x13\x2f\x8a\x31\x18\xd9\x05\xfa\x77\x8d\x04\x56\x45\x22\x6a\x40\
\xc8\xec\x35\x49\x64\xb6\x45\xe5\x9e\x24\xd7\x65\xd5\x45\xc0\x62\
\x63\x63\xa3\x99\x81\xab\xbc\x32\x70\x92\x00\x3a\x1d\xe5\x93\x57\
\x18\xe8\x6d\xe8\xf0\x60\xb5\x23\x02\x70\x71\x73\xb3\x0e\x98\x44\
\xcd\x89\x2a\xd0\x2a\xf2\x5a\x60\x7a\x8d\xc0\x6a\x91\x5e\x53\x51\
\x14\x2b\x04\x20\x78\x16\xd7\x90\x65\x1c\x19\x0d\x69\xf5\x4f\x03\
\x9c\xb2\x3c\x26\xa1\x41\x49\x39\x2c\x08\xca\x35\x68\x29\xb0\x48\
\xe2\x08\x34\x4e\xe0\x38\x6e\x9e\x3a\x2b\x4b\x1f\xe5\x6c\xae\x45\
\x5b\xdd\xa4\x73\x51\x84\x60\x3c\xd8\x87\x14\x47\xb2\xf8\x89\x2c\
\xef\x08\x30\xd8\x19\x32\x49\xf8\x8b\xe7\x37\x71\xb4\xdf\x41\xcc\
\x05\x76\xc7\x13\x9c\x7e\xe1\x05\x1d\x51\xc1\xc1\xd3\x32\xa4\x06\
\x35\x9e\x24\xd8\x9f\x4c\xb1\x12\xb8\x05\xc6\x14\x6b\x77\x05\x87\
\x02\xc3\x9d\xcb\x88\xa7\x13\x0c\xf7\x76\xe1\x77\xba\x4a\x55\xd7\
\xed\x21\xe8\x76\x11\x76\xba\x8a\x45\x85\x1d\xf8\x41\x00\xcf\x57\
\x00\x15\x84\x01\x6e\xb9\xf5\x16\xac\xac\xac\xe0\xa5\xe7\x5f\xc0\
\xc6\xd9\xb3\xa0\x0e\x9b\x8d\x4f\x07\xd4\x73\x48\x29\xa4\x66\x6e\
\x42\x30\x48\xee\x14\xfd\xf8\x38\x07\x65\xb1\xea\x57\x25\x09\xb8\
\xe3\x82\xc7\x91\x36\x96\x75\xd5\xef\x4b\x09\x4a\x91\x95\xd0\xa2\
\xe9\x14\xd1\x34\x42\x14\x6b\x07\x88\x28\x06\x17\x12\x5c\x2a\xe0\
\xa5\x0b\x56\x90\x28\x21\x58\x5b\x5a\x02\x73\x5c\xed\x4a\x4f\xb3\
\xd2\x9a\x99\x8f\x95\x89\x20\xd2\x68\x75\x4b\x0c\x06\x0c\x16\x64\
\xf3\xb9\x43\x29\x83\x49\xb1\xae\x32\x6b\xaa\x12\x48\xa8\x2f\x4e\
\x29\x52\xbd\x9e\x6c\x28\x73\x61\xce\xc5\x15\x7c\x14\x6d\x89\x56\
\xd5\x7b\xfc\xea\xea\x5a\x05\xcc\x34\x60\x48\xf6\x54\x10\x7c\xf6\
\xb1\xc7\x6c\x3d\x26\x5b\x39\x6f\x9e\x79\x6b\xdb\x63\x6a\x81\xe9\
\xaa\x94\xf4\x16\x0d\x0b\x14\x30\xea\xf1\x94\x20\x8b\x5d\xa0\x42\
\xea\x72\x9e\x84\xe9\x30\x9e\x35\x1b\xb4\x59\x6b\x51\x99\x67\x32\
\x26\x5a\x2c\xeb\x19\xb1\x18\x7a\x47\x9e\x21\x7c\x99\xdc\x38\x2d\
\xf9\xc5\x13\xc8\x09\x03\x71\x03\x24\x71\x84\xbd\xed\xcb\x58\x3d\
\x7c\x44\x3b\x3f\xa8\x99\x1e\x62\x38\x44\xa4\x92\x72\xc7\x73\x31\
\x18\x0e\x30\xd2\x0c\xe1\x85\xb3\x67\x71\x69\xe3\x02\x98\x17\x28\
\x66\x28\x84\xea\x4d\x11\x64\x7e\x6f\x5b\x7b\x03\x5c\xbb\xdc\xcb\
\x1c\xb8\xb9\x90\xca\x91\x5b\x2b\xdc\xa6\xc3\x7d\x88\x24\x41\x34\
\x1e\x61\x32\x1c\x60\x3c\xd8\x87\xeb\x07\x08\xba\x3d\x04\x9d\x2e\
\xc2\x5e\x0f\x61\xb7\x67\x80\x54\x08\x6f\xe4\xc3\xf7\x7d\x74\x3a\
\x21\xee\x7a\xe7\x3d\x38\x7a\xfc\x1a\x7c\xee\xb3\x9f\x45\x92\xc4\
\x60\x8e\xab\xc1\x49\x66\x4a\x34\xd5\xcf\x63\x8a\xad\x52\x01\x49\
\x15\x33\x24\x9c\x81\x32\x05\x4c\x84\x31\xd0\x24\x01\x67\x09\xa8\
\xc3\x55\xd8\x62\x1c\x69\xc6\x58\xec\xdb\xf0\x24\x41\x34\x99\x20\
\x8a\x22\xc4\xb1\x12\x40\x44\x71\x82\x44\x08\x05\x4e\x54\x82\x2d\
\x50\xce\x4b\x4b\xb1\xdd\x30\x40\x77\xa9\x8f\xfd\x9d\x1d\x50\xa6\
\xca\x76\x2a\xdc\x30\xa3\x3a\x8a\x35\xa5\xa5\x3c\xdd\xb3\x4c\xc3\
\x03\x61\x30\x26\x69\x30\xa6\x8c\x88\x90\xa2\xbd\xab\x3d\x9c\x56\
\x1a\x69\xb7\x98\x65\x4d\xda\x66\xeb\xd0\xfa\xaa\x45\x11\x5a\xbd\
\xb8\xe0\xd8\xd8\xd8\x40\xa3\x67\x85\xa0\xd6\x91\xbf\xc9\x5a\x5e\
\x5e\xb2\x03\xd1\x15\x98\xb8\x4e\x27\xd3\x3a\x96\xd4\x24\x4a\xbd\
\x9d\x65\x6a\x81\xe9\xc0\x60\x24\xe7\x80\x13\x1a\x81\x13\xc9\x37\
\x31\x4a\x19\xe0\x2a\x06\xa1\x66\x87\x28\xc8\x8c\x6b\x72\x3a\xcf\
\xa4\x19\x93\xb4\x95\xf3\x58\x06\x52\x29\x68\x51\xca\xc0\x79\x82\
\x24\x8e\x94\x74\xba\x34\x10\xe9\xba\x69\x19\xcf\x28\xa6\x4d\x27\
\x90\x8e\x07\x1a\x74\x21\xe2\x18\x7b\x5b\x5b\x58\x5e\x5b\x57\x20\
\x67\x18\xbf\x02\xf9\x7c\x93\x10\x02\x7e\x10\xa2\xe3\x7b\xd8\x1f\
\x8f\xb0\xb9\xbd\x83\xff\xfa\xdf\x3e\x08\x9e\x70\x30\xaf\x24\x58\
\x27\x79\x94\xc7\x34\x8e\x95\x2c\x5b\x1f\x31\xe7\x98\xc6\x09\x24\
\x24\x2e\x5e\xba\x84\x68\x34\x84\x14\x02\x6e\xa0\x7b\x5e\x71\x8c\
\xa9\x3b\xc2\x64\xb0\x0f\x2f\xec\xc0\xf1\x7c\x04\xdd\x2e\x3a\xbd\
\xa5\x0c\xa4\x82\x30\x84\x1f\x04\xd9\xd7\xe5\x95\x65\xdc\xf1\x8e\
\x77\xe0\xdc\x2b\xaf\x62\x6b\x73\x53\xf5\xcc\xd2\x59\xac\xb4\x0c\
\xa6\x4d\x70\x21\x73\x47\x77\x4a\x04\x84\x30\x66\xc3\xa8\x02\x2b\
\x21\xb8\x4e\x02\x76\x40\x5d\x57\x0d\x49\x1b\x72\x7f\x9e\x24\x98\
\x4c\x94\x21\x69\x1c\x27\x48\x38\xc7\x34\x8e\x11\xeb\x08\x0c\xb1\
\x40\xe7\xc2\x24\x15\x8c\x52\xf8\x41\x80\xbd\x6c\x70\x36\x2f\xc9\
\x65\xb6\x4a\x84\x64\xef\x1d\x45\x94\x4a\x86\xae\x29\x90\x48\x52\
\x69\x2a\x5b\x04\x9b\x32\x6b\x32\xaf\x6b\x32\xae\xe2\xa5\x9e\xbb\
\xd8\x0c\x53\x92\x24\x18\x8e\x46\x58\x08\xad\xaf\x60\xeb\xce\x18\
\x53\x93\x17\xa2\x82\x21\x95\x4b\x91\xe7\xcf\x9d\x9b\xd7\x57\x6a\
\x9d\x1f\x5a\x60\x7a\xdd\x00\xaa\x89\x81\x6b\xe1\xec\x49\x4a\xc9\
\xcf\x3c\xff\x79\x79\xdd\x2d\x6f\x25\x3c\x49\x40\x19\x53\x53\xf2\
\x29\x6b\xca\x84\x06\x36\xc9\x2d\xd5\x15\xbd\x94\x31\x31\x08\xc6\
\x55\xaf\x44\x30\x50\xc1\x20\xb8\x2a\xe5\x11\xa2\x06\x50\x79\x1c\
\x81\x27\x3c\x2b\xe7\xa5\xc4\x49\x4a\xc0\xf5\x3d\xf8\xbe\x9f\x46\
\x42\xe7\xf1\x0e\x49\x04\x19\x4d\x40\x1d\xe5\x12\x7e\xe1\x95\xd3\
\x38\x72\xdd\x0d\x70\x5d\x17\x84\xb2\x2c\xaf\x29\x75\x3d\xe7\x71\
\x84\x9b\x6f\xbd\x05\x81\xc7\xf0\xd8\xe7\x9e\xc1\x87\xfe\xf0\x43\
\x78\xfc\xb1\xcf\x22\xe8\x2d\x65\x81\x7a\x54\x03\x41\x36\xcf\xe4\
\xb8\x58\xea\x04\xe0\x42\x22\x11\x02\x89\x50\xa0\xc4\xf5\x06\xfe\
\xc8\xc9\x13\x6a\x9e\x28\x89\x31\x1d\x0d\x94\xb2\xce\x53\x0a\xba\
\xd8\x71\x11\x4f\xa7\xa0\xae\x8b\xc9\x70\x80\xc1\xce\x8e\xea\x3d\
\x75\xbb\x59\x2f\x2a\xe8\x76\x11\x86\x5d\x78\xbe\x8f\xb0\xd3\xc1\
\x2d\x6f\xbd\x0d\x41\x27\xc4\x85\x33\x67\x20\x79\x02\x18\x43\xc3\
\xd2\xec\xe7\x80\x42\x32\xa9\x1c\xdb\x85\xee\x43\xa5\x06\xb9\x8c\
\x41\x72\x0e\xce\x04\x68\xa2\x4f\x06\x92\x18\x32\x89\x32\xe2\x24\
\x04\x47\x34\x51\x3d\xa6\x24\x49\x90\x24\x5c\xb1\xa7\x84\x9b\xba\
\x82\x85\x0b\x55\x2e\x63\x38\x7e\xc3\x8d\xaa\x34\x49\x99\x2e\xc9\
\xa5\xac\x89\x14\xca\x76\xd2\x28\xe9\x91\x02\xfb\xc9\xe3\x2f\x88\
\x4c\xbd\x84\x49\x61\x1e\x8b\x14\x54\x37\xb6\xcd\xbb\x04\x6c\x65\
\xd2\x21\x04\xd6\x57\x57\x4b\x11\x2c\xf3\x4a\x95\x14\xd3\xe9\x74\
\xf1\x27\xa5\xb6\xe0\x55\xe5\x1c\x41\x0a\x06\xae\xcd\xca\x79\xf5\
\xcc\x8a\x73\x8e\xdd\xbd\xdd\x45\x12\x6b\x5b\x80\x6a\x81\xe9\x0d\
\x53\xce\x2b\x53\x7b\x96\xa9\xdc\xa0\x36\x34\xc9\x39\x24\x63\x90\
\x84\xce\x46\x1b\xa4\x61\x7f\xaa\xa9\x93\xf5\x99\xa8\x60\x90\x54\
\x80\x32\x01\xc9\xd5\x9c\x91\x10\x3c\x2f\xe5\x31\x06\xc1\x13\x24\
\x5a\x08\x50\x98\x4f\x49\x5d\x0c\xf2\x53\x3f\x35\xd4\x3b\x9d\xa8\
\xcd\xae\xb7\x0a\x42\x29\x46\xfb\x7b\xd8\x3c\x73\x1a\xd7\xdc\x78\
\x73\x41\x4c\x90\x0e\xf3\x3a\x8e\x8b\x43\xab\x7d\xfc\xe6\x7f\xfa\
\x4d\x9c\xfc\x93\x4f\x62\x34\x99\xa2\xbb\xb2\x9e\xb1\x29\x0a\x0e\
\x30\x9a\xb9\x78\xa7\xbf\x97\x70\x8e\x69\x92\x20\xe2\x8a\x59\x24\
\x5c\x20\xe1\x1c\x93\x69\x84\x87\x3e\xfa\x91\xac\x04\x28\x93\x04\
\x60\x1c\x9d\x4e\x07\x0e\x05\xa2\x68\x82\xf1\x74\x0a\xe6\x2a\x80\
\x62\x8e\x83\xc9\x68\x80\xd1\x7e\x80\x7d\x6f\x0b\x41\xaf\xa7\x00\
\xaa\xd7\x57\x3d\xa8\x30\x44\xd8\xe9\xe0\xd0\xe1\x43\x08\x82\x00\
\x2f\x7e\xfe\xf3\x10\x49\x9c\x59\x39\xa5\xcf\x6d\xe6\xbc\x91\x3e\
\xdf\x4c\x85\x22\x11\x4a\x40\xb8\x8a\xae\x17\x8c\x81\x72\xae\x18\
\x14\xa5\xa0\xb4\x8f\x78\x32\x56\xc3\xc9\xfa\x39\x4d\x62\x25\x80\
\x88\xa2\x48\xd9\x43\x25\x89\x02\xdd\x03\xce\x32\x15\x62\x51\xa4\
\x69\xcc\x9a\x83\x8c\xca\x50\x2a\xe1\x89\xe9\x8b\x37\xc3\x82\xd2\
\x7e\x63\xd9\x0f\xab\x2c\x82\x58\x8c\x35\xcd\xfa\x4a\xcc\x5f\xd3\
\x68\x8a\xc9\x64\x02\x72\x25\x39\x16\xb2\x19\x36\x51\x4a\xd0\xe9\
\x74\x1b\x83\xce\x3c\x2a\x45\x28\xc1\x74\x32\xc5\x78\x34\xe2\x73\
\x00\xa9\x0a\xa0\xda\xde\x52\x0b\x4c\xaf\x1b\x38\x01\xd5\x61\x81\
\xd6\x37\xa4\x14\x42\xc9\xb3\xcd\x09\x4a\x92\x97\xbf\xb2\x0b\x08\
\x81\x34\x7c\xf2\x24\x53\xee\x0a\x54\x0a\x48\xc7\x01\x15\x02\x94\
\x73\x48\x2a\x32\x85\x1e\x8f\x23\x70\x9e\xc0\x71\xdd\x6c\x5f\x73\
\x5d\xc5\x96\x4c\xfb\x1a\x92\xef\x4a\x10\xd3\x31\x88\xe3\x81\x84\
\x3d\x50\x4a\x11\x4d\x26\xb8\xf0\xca\xcb\xe8\x2d\xaf\x20\xec\xf6\
\xe0\xf9\xbe\x3a\x73\x47\x8c\xe9\x60\x17\x0f\x7f\xfc\x63\xd8\xdb\
\xd9\x01\xa1\x14\x41\xb7\x07\xc7\xf3\x40\x18\xcb\x8c\x42\x85\x4e\
\xa3\x15\x44\xd9\xfa\xf8\x61\x00\x4a\x80\x69\x12\x23\x4e\x38\x12\
\xce\x11\xc5\x09\xa6\x71\x84\xc7\x9e\x3c\x85\x67\x3e\xfb\xa8\x76\
\x6f\x60\xe8\x2d\xaf\xa0\xd3\xed\x2a\x66\x29\x25\x28\x24\xa2\x84\
\xab\x24\x59\xae\xca\x64\x3c\x49\x90\x44\x11\x22\xc7\xc1\x74\x34\
\xc4\x70\x37\x65\x51\xaa\x1f\x15\x74\xba\xe8\xf4\x7a\xe8\xf6\xfb\
\x38\x76\xdd\xb5\x38\x77\xfa\x74\x76\x9f\xca\x9e\x84\x66\xff\x49\
\x12\xc5\x0c\x29\x28\x88\x24\x59\x7f\x8f\x32\xa6\x07\x8e\x3b\x18\
\x53\x82\xf1\xde\x8e\x3e\xc5\x90\xe0\x9c\x67\xca\xbc\x38\x56\x8f\
\x2f\x4a\x12\xdd\x3f\x73\x00\x4a\x16\x2e\xe7\x31\x42\x71\xfc\xfa\
\xeb\xf1\x68\x81\x51\x57\xe4\x30\xc9\xd9\x0d\x56\x01\x95\xd1\x74\
\x2a\xd5\x8b\xab\x45\x10\x8b\xb0\x26\xf5\xde\xed\x86\x61\xe3\x4a\
\x1c\x01\xb4\x73\xba\xbc\xf2\x4f\xe1\x1c\xa0\x92\x52\xc2\x73\x3d\
\x1c\x3f\x7e\x4d\x51\xdd\x48\xb0\x10\x43\x2a\x5c\xc5\x68\x2f\x1a\
\x47\x9d\x4c\xbc\xe9\x80\x6d\xbb\x5a\x60\xba\x2a\xbd\xa6\xa6\xec\
\xa9\x94\x83\x90\x36\x8e\x05\xa0\xa5\xca\x34\xb5\xf2\x29\x7c\x14\
\xd2\xe0\x3a\x2d\x80\x20\x54\xcb\xc2\x19\x28\x15\xa0\xcc\xd1\xea\
\x32\x83\x35\x09\xd5\x87\x52\xe9\xae\x5c\x87\xf7\x29\xd6\xe4\x69\
\x89\xb5\x30\x32\xa1\x8a\xfb\x10\x81\x88\x26\x58\xbb\xe6\x7a\x50\
\xcf\x03\xd7\x0e\xdc\xe3\xe1\x00\x49\x1c\xc1\x0f\x54\x78\x1f\x8f\
\xa6\x20\x44\x42\x50\x86\xee\xaa\x8a\x12\x60\xae\x07\xea\x78\xd9\
\x99\xb6\xb6\x8f\x50\x60\x29\x94\xc8\xe1\xf8\xf5\xd7\xa1\xe3\x79\
\x1a\x8c\x94\x43\xc2\x68\x32\xc1\xfe\x60\x80\x0f\xbc\xef\x97\x11\
\x47\x11\x96\x96\x57\xd0\xeb\xf7\x35\xa0\xa6\xbd\x15\x20\xf0\x7d\
\x04\xbe\x6a\xee\x73\xce\x31\x4d\x22\x24\xb1\xc0\x94\x4b\x35\x48\
\xeb\x38\x60\x63\x55\xe6\x1b\xed\xef\xc1\x71\x3d\xf8\x61\x47\xf5\
\xa1\x7a\x7d\xf4\x96\x96\x11\x84\xa1\x16\x12\xb0\xdc\x04\x97\x92\
\x02\x50\x65\x5a\x6d\x69\x98\xeb\x4a\x40\x12\xa6\xae\x2b\xf4\xf5\
\x67\x5e\x4b\x99\x01\x53\x14\xc7\xe0\x9c\x23\xd1\xe0\x1b\x0b\x01\
\x37\x4d\xc9\x5d\x80\x14\x10\x42\xb0\xbc\xba\x9a\x65\x78\x49\x99\
\x06\x4c\x1a\x12\xf1\x4c\x83\xa0\x81\x2a\x55\xe6\x99\x3d\xa8\x19\
\x60\x31\xb8\xb9\x94\x99\x08\x62\x61\xd6\x64\xfc\xfd\x63\x47\x0e\
\xcf\x2d\xae\x65\x7b\x3a\x21\x18\x0c\x87\x10\x5c\x0d\x61\x5f\x11\
\x28\xcd\xe9\x1b\x11\x42\xc0\x85\x1d\x04\x9b\x32\xa4\xf2\x65\x84\
\x50\x6c\x6f\x6f\xe3\x2a\x95\xf0\x5a\x70\x6a\x81\xe9\x8a\xcf\xcd\
\x9a\xf8\xe4\xd5\xf5\x9d\x8a\x25\x06\xe8\x8c\x26\xce\x21\x1d\x35\
\xd3\x64\x0e\xb5\x12\x42\xf2\xfd\x84\x52\xc5\x1c\x8c\x5e\x13\xa5\
\x42\x7d\x65\xca\xe9\x80\x72\xae\xe4\xe3\x44\xfd\x2c\x89\x23\xd0\
\x24\x01\x73\xdc\xf9\x1f\xbf\xb4\xa4\x97\x44\x18\x6f\x5d\xc0\xfa\
\x5b\xde\x8a\x98\x31\xd5\xd7\x21\x02\xd1\x64\x82\x78\x3a\x85\xeb\
\xb9\x60\x94\xc1\xf5\x43\xb5\x7f\xeb\xd2\x60\xe6\xd3\x97\xb2\x3f\
\x6a\x2a\xb9\xd4\xe0\xed\x0d\xd7\x5f\x07\x42\x80\xfd\xd1\x18\xc3\
\xf1\x18\x7b\x83\x01\x76\x76\x77\xf1\xa9\x4f\x7e\x12\x4f\x9d\x7c\
\x18\x9d\x6e\x0f\x6b\xeb\x87\x72\x09\xbd\x51\xd2\x32\x8d\x07\x18\
\x63\xe8\x30\xa6\x94\x7c\x71\x02\x50\x20\x8a\xa7\x88\xa7\x13\x30\
\xe6\x20\x9e\x8c\xe1\x78\x3e\x26\xc3\x01\x86\xbb\xdb\x70\x7d\x1f\
\x41\xb7\x0f\x42\x29\xe2\x48\xc9\xc0\x29\x73\x32\x21\x47\x3a\xe3\
\x54\x60\x50\x33\xbd\x3e\x99\xb9\x60\xcc\xa8\xa6\x35\x58\xc6\x51\
\x84\x38\x52\x66\xb0\x69\x39\x2f\xe6\x5a\x99\x27\xd1\x28\xc5\xb7\
\xbc\xa9\xaf\xad\xaf\xe7\x8f\x3d\x05\x95\x2c\x06\x3d\x77\x7d\x20\
\xa5\x77\x61\x31\x6e\x3d\x3b\xc7\xc9\x67\x6b\xd3\xb9\x36\x42\x66\
\x7b\x2d\x35\xac\x29\x2d\x1f\x96\xdf\xf4\x8e\xc3\x1a\x75\x7c\xd2\
\xcb\x26\x93\x31\xe6\x8c\xf0\x36\xa3\x5f\x56\xb0\x32\x1e\x91\x90\
\x58\x5e\x5d\xc1\xe1\xc3\x87\x4b\xe0\xb4\x00\x43\xb2\xfc\x1d\xfd\
\x45\x34\x38\x9a\x1a\xb7\xb6\x00\xd5\x02\xd3\xeb\xde\x6b\xb2\x1b\
\xe3\x69\xaf\x35\x99\x24\x7a\x3e\x46\x40\x4a\x32\x23\x84\xc8\x26\
\x9b\x28\x05\x91\x0c\x94\xa5\x91\x0c\x4a\x94\x40\x05\xcb\x58\x13\
\xe5\xf9\xc0\x6d\xca\xa2\x92\x38\x06\x65\x4c\x0d\x82\x3a\x0e\x5c\
\xd7\xb3\xc6\xbe\xa9\x7d\x8f\x60\xb4\xbd\x05\xf9\xc2\x33\x58\xba\
\xee\x66\x05\x88\x9a\x25\x50\xa6\x06\x77\x29\x53\x76\x48\x4c\x83\
\x83\x30\xcf\xe8\xd3\x0f\xbf\x0e\xd9\xa3\xc4\xc9\xb6\xcd\xb7\xdd\
\x7a\x33\xf6\x86\x43\xec\xee\xed\x63\x7b\x77\x17\xcf\x3e\xfb\x2c\
\x3e\xfe\x47\x1f\xc6\xa9\x13\x0f\x21\x8e\x62\x55\x66\x34\x9e\x9e\
\x6c\x96\x26\x55\xa1\x91\xfc\x7c\x1d\x52\xf9\x9f\x75\x98\x0f\x02\
\x80\x01\x88\xe2\x04\x8c\x02\x22\x89\x30\x9e\x8c\xc1\x5c\x0f\xcc\
\x71\x30\x1d\x39\x18\xef\xef\x83\x30\x06\xe6\x7a\x70\x5c\x95\xef\
\x44\xb3\xc7\xc2\xb2\xc7\x64\x32\xa8\xd4\x1e\xaa\xb0\xd9\xe9\xdd\
\xbd\xb0\xc9\x11\x55\x96\x4d\x92\x18\x49\x1c\x2b\xf7\x07\xce\x11\
\x2b\xf7\x69\xa3\xc7\xb7\xf8\x06\x7c\xf8\xc8\xe1\xbc\xc7\x64\x91\
\x76\xe7\x83\xb5\x65\x01\x84\x34\x4a\x79\x06\xfb\xa9\x80\x8c\xf4\
\x3d\x67\x5e\xd3\xc6\x9a\x60\x29\xfd\x11\x02\x84\x95\xa5\x3c\x52\
\x94\xff\xe9\xb5\xbb\xbb\xab\xfb\x5d\x24\x63\x7c\x57\x0c\x4e\xd6\
\x0f\xaa\x72\x29\xe9\xf7\x7a\xa5\xde\x6a\x83\x72\x5e\xc5\xa5\x84\
\x12\x3c\xf2\xc8\x49\xa0\x99\xdb\xc3\x3c\xe3\xd6\xb6\xa4\xd7\x02\
\xd3\x55\x67\x4f\xf3\xc0\xc9\x78\xd3\x92\xec\x5c\x35\x57\x84\x13\
\x10\x21\x95\x3a\x8f\x0b\x50\x66\xd9\xc0\x52\xd1\x01\x28\x40\xb5\
\xd7\x9e\x64\xa0\x54\x42\x32\x75\x46\x48\x85\x00\x65\x5a\xd2\xcc\
\x12\x08\x4e\xb3\x50\xc1\x24\x8e\x40\xa9\xea\x35\x65\xc0\xe4\x79\
\x66\xda\x59\xfe\x77\xd2\xb2\x0e\x21\x98\xec\x6e\x43\x0a\x89\xde\
\x35\xd7\xe7\x65\x46\x53\x84\x61\x30\x0d\x70\xae\xa7\xff\x79\x76\
\xb7\x85\x10\x48\xf4\xa0\xaf\x90\x02\x37\xdc\x78\x23\xba\x81\x87\
\x57\xce\x9e\xc3\xc6\xc6\x06\x3e\xfd\x89\x4f\xe0\xc4\x27\x3e\x86\
\xcb\x9b\x9b\x3a\xce\x22\x9d\x2f\xd2\x77\xc7\x98\xbd\x49\xcb\x4b\
\xe5\x01\x53\xf3\x85\x08\x7c\x0f\x61\xa0\x4a\x89\x49\xa2\x8c\x56\
\x27\xa3\x01\x22\x10\x38\x9e\x07\xaa\x73\x9c\x52\x47\x75\x1a\x3b\
\x0a\x90\x5c\x17\x8c\x39\x60\xda\xa6\x48\x05\x31\xa6\x16\x4f\x24\
\xf3\xdf\xcb\xa2\x49\x32\x24\x2a\xbe\x50\x42\x08\xf0\x84\x2b\xa6\
\x94\xda\x12\x25\x1c\x5c\x14\xed\x84\x16\xe9\x33\x11\x00\x61\x10\
\xcc\x60\xc1\xec\xad\x58\xd4\x78\x12\x25\xda\x64\xe2\x6b\xda\x63\
\x24\x85\x1e\x23\xcc\x7f\xd7\xb1\xa6\xc2\xd0\x2d\xc0\x28\xc3\x52\
\xaf\x67\x67\x4b\xc4\x8e\x26\x83\xc1\xa0\x00\x46\xa4\x02\x10\x6a\
\xc9\x44\x03\x13\x72\x02\x20\xd6\x23\x0a\x36\x30\x3b\x48\x39\x8f\
\x80\x60\x5f\x39\x8b\x73\x2c\x2e\x7c\x68\xcb\x78\x2d\x30\xbd\x26\
\x3d\xa6\x45\x92\x6c\x67\x52\x6c\x0b\x1b\x84\xae\x78\x09\x29\x20\
\x78\x02\x29\x1c\x48\x9a\x0f\xc0\x66\x3d\x89\xec\x4c\x96\x82\xd2\
\x1c\x50\x54\xf2\x6a\xca\x98\x1c\x50\xc6\x41\xf4\x57\x29\x84\x56\
\xee\x31\x0d\x12\x91\x76\x2a\x27\xf6\x93\x4d\xb3\x1f\xa1\x37\xa7\
\xe9\x60\x17\x38\x2f\xd1\xbd\xe6\xfa\x3c\x1a\x43\x2a\xa9\x6f\xce\
\x2c\xf2\x92\x89\x69\x4c\x9b\x9e\x9d\x72\x2e\xb0\xbc\xba\x82\xbb\
\xdf\x7e\x3b\x5e\x7d\xf5\x0c\x36\x37\x36\xf0\x5f\x7f\xeb\x3f\xe1\
\xfc\xe9\x97\x91\x4a\xe7\x05\x01\x48\x92\x75\x56\xb4\xbc\x5d\x16\
\xc1\x09\xb9\xd4\xb9\xaa\x5c\x94\x0d\xfe\x3a\x0c\x4b\x6e\x17\x9d\
\xc0\x47\x1c\x27\xe0\x52\x62\x32\x19\x21\x4e\x59\x94\xab\x4c\x5d\
\x99\xe7\xa9\xa1\x59\x4a\x55\x8f\xca\x51\xbd\x2a\xca\x9c\xdc\x34\
\x57\xa7\xf9\xa6\x60\x0c\x5d\xea\x93\xe5\x92\x91\x94\xe0\x5c\x7b\
\xed\x71\x0e\xce\x05\x92\x24\x41\x94\xa8\x4d\xf1\xa0\x3b\x50\x81\
\x45\xa2\x38\xd8\x5a\x28\xed\x15\xd4\x78\x16\xa5\x9e\x29\x6e\x40\
\x41\xa7\x67\xc4\x64\x18\x4c\xbd\x54\x68\xb3\xb3\xa6\xfc\x67\xcc\
\x74\xa0\x2f\x9d\x54\x15\x98\xa5\x26\x70\x1b\x17\x36\xd0\x24\x7b\
\x49\x36\xa1\x47\x73\xc4\x0f\xd7\x1c\x3f\x0e\xdf\xf3\x8c\x32\xe6\
\x15\x96\xf3\x00\x3c\xf3\xf9\x67\xe6\x95\xf2\x16\x95\x89\xb7\x20\
\xd5\x02\xd3\x81\x18\x52\x15\x58\x35\x99\x6b\x2a\x5e\xaf\xec\x8d\
\x27\x04\x24\x4f\x20\x05\x87\x94\x54\x0f\x1d\x51\xdd\xab\xa1\xc5\
\x5f\xa1\x14\x04\x52\xc9\xc6\xa5\x84\x64\x02\x54\x28\x30\xa2\x8e\
\x03\xc6\x39\x64\x0a\x4c\x52\x1d\x3c\x8e\xb5\xcd\x8e\x63\xdc\x01\
\xdb\xe9\x63\xbe\x51\xa5\xd7\x8a\x06\x7b\xc0\xf9\x33\x08\x0f\x1f\
\x03\x75\x7d\xc3\x01\x9d\x6a\xd3\x54\x02\x70\x02\x49\x38\x88\xa0\
\x90\x9c\x17\x1e\xae\xe0\x1c\x87\x56\xfa\x38\xb4\xb6\x8a\xaf\xfe\
\xd2\x77\xa3\x1f\x78\xf8\xe0\x7f\xf9\x2f\x10\x52\x2a\x23\x55\xce\
\x41\xa4\xc8\x9d\x2a\x0a\xb6\x04\x06\x38\xa5\x65\xa3\xf2\xcb\x32\
\x93\xd6\x9b\x5f\xe6\x3a\x2e\x5c\x3d\xf8\xd9\x09\x7c\x44\x71\x02\
\x2e\x81\xd1\x78\xa8\xfa\x51\xae\x0b\x47\x97\xf6\x84\xe3\x20\xa1\
\x91\x56\xde\xb9\x06\x7b\x52\x4a\x48\x5a\x62\x8a\x28\xe5\xfa\x48\
\xa9\x14\x96\x82\xab\xe7\x9e\xeb\x23\x49\x38\x22\xce\xc1\x85\x80\
\x24\x6c\x61\x83\x6c\xd7\x71\x8b\x01\xc4\xe5\x5d\xd3\x74\x65\xb0\
\x56\xa7\x52\x43\xd7\xa2\x6c\x7c\x56\x5c\x27\x4b\xd2\xf1\xd9\x3f\
\x68\xfe\x2b\xbb\x45\xa9\xec\x93\x1c\x0d\x4c\x96\x57\x23\x7f\xa7\
\x65\x6a\x50\x89\xe7\x5f\x78\xa1\xa1\x55\x6a\x43\x70\xaa\xfa\x90\
\x4a\xe5\x93\x97\xda\x50\xcd\xa7\x4b\xcd\xca\x79\x2f\xbf\xf8\x52\
\xca\x8a\x0e\x12\xab\x8e\xb6\x8c\xd7\x02\xd3\x6b\xc1\x9c\x9a\xb8\
\x3e\x08\x34\x91\x85\x6a\xb7\x71\x29\x38\x38\x57\x0c\x42\x52\xaa\
\x40\x05\x34\x2f\xdf\xe8\x8d\x9b\x08\x68\xc7\x71\x09\xc9\x18\xa8\
\x14\xba\x94\xa7\x65\xe3\x0e\x07\x15\x5c\x2b\xf4\x84\x12\x48\x30\
\xa1\x4b\x4d\x31\x08\xe9\xe4\xb1\x18\x15\x49\x07\xc4\x4c\x43\x25\
\x14\xd1\x70\x0f\x3c\x9a\x20\x58\x3d\x84\xce\xfa\x91\xdc\xc5\x3c\
\x95\xaf\x43\xc5\xa2\xa7\x06\xaf\x69\xe4\x77\x12\xc7\xb8\xe3\xce\
\xb7\xe1\xab\xbe\xf2\x2b\xf0\xa5\xef\xb8\x0b\xeb\x9d\x00\x14\x04\
\x37\xdd\xfe\x56\xbc\xfa\xc2\x73\x19\x7b\xd3\x05\x33\xc4\x51\x94\
\x19\x95\x92\xc2\x60\xa8\x4e\x3f\x22\xf6\x4d\xaf\xd0\xff\x49\xbf\
\x90\x62\x04\xa3\xe3\x38\x59\xf4\xb7\xe7\x50\x8c\xc7\x13\x4c\xc7\
\x43\xc4\xa3\x01\x98\xeb\x2b\x16\xe5\xab\xaf\x69\xa9\x8f\xa4\xa2\
\x12\x46\xf3\x1e\x14\xa1\xa0\x42\x40\x08\x5e\x7a\x57\xa8\x7e\xa1\
\xc9\x9a\x84\x50\x0e\xe3\x09\x4f\xcd\x5c\x0f\xd0\x64\xaa\x2c\x36\
\xd5\x49\x07\x66\xc3\xf0\xf2\xc8\x07\x59\x59\x36\xb3\x89\x20\x0c\
\x8b\x3d\xd8\x24\xe3\x52\x0a\xf4\x7a\x3d\xf4\xfb\x3d\x54\x51\xd9\
\xad\xd1\x18\x1e\xa5\x08\x3d\x17\x54\xb3\xa6\x8d\x8d\x0d\x55\xca\
\x6b\x80\x37\x07\x06\x27\x7d\xa2\xb3\xb2\xba\xda\x1c\x74\x1a\x80\
\x95\x90\x12\x67\xce\xbc\x3a\xcf\x55\x5c\x36\x60\x50\x2d\x5b\x6a\
\x81\xe9\x8a\x59\xd3\x95\x18\xb8\x0a\x10\x54\x3b\x56\xea\x90\x3f\
\x41\x22\xe5\xd6\x20\x84\x1a\xb8\x25\x02\x92\x11\x10\x50\x18\x23\
\x2c\x6a\x63\x49\xc1\x89\x32\x50\x26\xc0\x1c\x06\x29\x18\x24\x73\
\x20\x98\x06\x38\x21\x54\xa9\x4f\x2b\xf4\x88\x10\x88\xe3\x18\xd3\
\x68\xaa\x98\x44\xaa\xc4\x33\x36\xcd\x4c\x9d\x57\x3a\x4f\x16\x49\
\x8c\xf1\xa5\x0b\x48\x86\xfb\x08\x57\xd6\xd0\x3f\x7a\x5c\x07\x09\
\x6a\x53\x53\x21\x95\xcf\x9c\xa0\x10\x89\x80\xef\xfb\xb8\xeb\x9d\
\xf7\xe0\x4b\x1f\xbc\x0f\x6f\x7d\xcb\xcd\xf0\x18\x4b\x8d\xbe\x71\
\xe8\xc8\xd1\x4c\x06\x9f\xc9\xb3\xcd\x3d\xd8\x02\x4e\x40\x6e\xbd\
\x53\xb5\x01\x92\x19\x80\x22\xb3\xec\x94\x00\x81\x1f\x20\xf0\xfd\
\x7c\x10\x36\x8a\x31\x9d\x8e\x10\x4f\xc7\xaa\x9c\xe7\xa6\xf9\x4d\
\x01\xa8\x23\x40\xd3\x9e\x9d\x06\x27\xe5\xb6\xc1\x8b\x55\x20\xed\
\x34\x9e\xca\xc4\xb9\xee\x31\xc5\x71\x0c\x21\x16\x17\x3f\x98\x19\
\x49\x64\xc1\xae\xc8\xec\xf5\xca\x35\xaa\xd2\xcf\x24\x0c\xb6\x54\
\x14\x41\x54\x83\xa3\x96\x58\x48\xc0\x75\x9c\xcc\xf4\xb7\xcc\x62\
\x2f\x8f\xa7\xb8\x38\x8e\x41\x09\x81\x37\x8d\xe1\x53\x8a\x9e\xeb\
\x80\xf8\x1d\x10\x42\xb5\x45\x17\x2d\xc5\x95\xd4\x55\xeb\x16\x04\
\x27\x09\x2c\x2f\x2f\x17\x1e\x76\x13\x13\xd7\x3a\xb0\x92\x52\x20\
\x9a\x4e\xe7\xe5\x30\xcd\x8b\xbb\x68\xc1\xa8\x05\xa6\xd7\x8c\x35\
\x35\x03\x25\x45\x21\x44\xf9\x8c\xaf\xd0\x72\x52\x9a\x63\x70\x1d\
\x41\xa1\x14\x7a\xb4\xf8\xa1\xc8\x14\x7a\x6a\x20\x94\x50\xa9\x7a\
\x34\x3a\x1e\x9d\xe8\xc6\x3d\x63\x0e\x04\xe5\x4a\x9d\xc7\x28\xa4\
\x64\xa0\x42\xbd\x84\xd3\xc9\x04\x8c\xb1\xac\xc4\x55\xc5\x98\x64\
\xc5\xd6\x10\x8f\x87\x48\xa6\x63\x44\xfb\xbb\xf0\x3a\x5d\x74\xd7\
\xf5\xfc\x0a\x73\x11\x4d\xa7\x18\x0f\xf7\xd1\xed\xf5\x70\xeb\xed\
\xb7\xe2\xe6\x9b\x94\xa5\x91\x90\xa2\x20\x79\x36\xfb\x37\xa6\x23\
\x35\xd1\x6e\x0c\x79\x94\x79\x69\x53\x24\xb2\x62\xd3\x22\xb3\x00\
\x45\x8a\x60\x34\xb3\xc5\xe9\x24\x5e\xd7\xf3\xd0\x09\x81\x84\x27\
\x88\x22\x65\xbc\x3a\x1c\x0e\x10\x4f\xc7\x70\x26\x3e\x98\xe7\xc3\
\xf1\x02\x30\xcf\x05\x49\x74\x59\x8f\x29\x60\x22\x33\xe1\x75\x52\
\x27\x14\xe7\x8e\x16\xb1\x2e\xe3\xe9\x37\xc1\x02\x02\xe9\x2b\xdf\
\xb7\x0c\x92\x64\x05\x24\xf5\x5a\xd7\x64\xbf\x9b\x25\xc2\x6c\x53\
\x37\x7b\x4d\x32\x73\xb0\xb7\x3d\xaa\xad\xe1\x04\xe7\x47\x53\x78\
\x4c\xbd\x2f\x63\x49\x10\x73\x60\x3f\x89\xf1\x37\x7f\xe4\x7f\xc3\
\x7d\x5f\xfb\x4d\xf8\xed\x0f\xfc\x7b\x9c\xfc\xd8\xff\xc0\xfe\xce\
\xb6\x76\x2a\x61\xa0\x35\x20\x55\xb2\xa1\x6d\xc4\x9a\x56\x57\x57\
\xab\x81\x7d\xc1\x72\x1e\x25\x04\x51\x14\x61\x7f\x7f\x3f\xb9\x82\
\x1e\x53\x5b\xca\x6b\x81\xe9\x35\x65\x4d\x8b\x00\x94\xcc\xcc\xbe\
\x6d\x4f\x30\x23\x48\xa4\x50\x1f\x4e\xe6\xa8\xf9\x20\x2d\x84\x50\
\x67\xae\x86\x3b\x01\x84\x96\x8e\xab\xa8\x0b\xe6\xb8\x88\xe3\x04\
\x93\x28\x86\xc7\x1c\x08\x2e\x94\x15\x51\xea\xc5\x47\x05\x24\xa3\
\x2a\x18\x8f\xf0\xfc\xec\x96\x18\xea\x32\xd3\xd4\x55\xbb\x56\x17\
\x3f\xa6\xb9\x3b\x37\x24\x10\x8d\x06\x88\xc7\x43\x8c\x2e\x5f\x52\
\x9b\x0e\x18\xa6\x52\x0b\x0f\x96\x97\xe0\x07\x81\xf2\xd8\x03\xc9\
\x6c\x79\xa4\x51\x1e\xcc\x98\x12\x8c\xaf\x65\x65\x48\xe9\x2e\xda\
\x3a\xef\xa4\x11\x20\x99\xd7\x25\x56\xc6\xaa\xfa\x51\x1e\x00\x09\
\xdf\x75\x30\x1c\x8d\x30\x1d\x2b\x80\x62\x5e\xa0\x01\xca\x87\xe3\
\xb8\x59\x6f\xad\x1c\xf3\x90\x47\x9c\xab\xf3\x10\xa1\xdd\x2f\xd2\
\x7e\x93\x90\x4c\xb5\x0f\xb1\x60\xab\xc9\x48\x37\xb6\x09\x0a\x2c\
\xff\x9c\xff\x4e\x26\x75\x48\x56\x49\x2f\x2c\xbf\x22\xd1\xef\xf5\
\xb2\x32\x69\x7a\x59\xc2\x05\x5e\xd9\xd9\x07\x28\x53\xa5\x54\x50\
\x25\x22\x21\x4a\x3c\xb3\xdc\xed\xe0\xcb\xee\xfb\x12\xbc\xfb\x4b\
\xde\x81\xed\xc1\x08\x4f\x3f\xfb\x3c\x1e\xfd\xd4\xc7\xf1\xdb\xff\
\xe6\x5f\x63\x6f\x7b\x7b\x36\x85\xd9\xb8\xff\x8b\xb0\x27\xe5\x93\
\xb7\xb6\x10\xbf\x9c\x07\x56\x42\xc5\x75\x5c\x49\x09\xaf\x05\xa4\
\xab\xb4\xe8\x9b\x1c\x90\x80\x6a\xb7\x87\x26\x7d\x26\xa1\x27\x22\
\x6b\x4b\x14\xc4\x70\x82\x90\x52\x00\x32\x15\x30\x94\xaa\x24\x69\
\x9c\x3a\xa1\x98\x4e\xc6\xd8\xdf\xdf\xc3\x9d\xb7\xdf\x82\x7f\xf2\
\xc3\xef\xcd\x66\x77\xd4\x10\x29\xcb\x5c\x0e\x28\x65\x20\x2c\x97\
\x7d\x93\x39\xa7\xda\x66\x8c\x77\x9a\xdb\x94\x29\xee\x90\x02\x0d\
\x29\x94\x37\x54\x46\x11\x2b\x46\xc0\x9b\x51\x19\x7a\x05\x61\x58\
\xd8\xd8\x49\xf1\x7f\x28\xe2\x47\x51\x46\x3e\x0b\x34\xe9\x75\x88\
\x61\x2b\x64\x64\x5b\x19\xce\xe6\xb9\x93\x86\x61\x47\x64\x24\x07\
\xa7\x9b\x4f\x18\x06\x38\xb4\xb6\x86\x23\x87\xd7\xb1\xb6\xd4\x83\
\x4f\x05\x92\xd1\x00\xe3\xbd\x1d\x8c\xf6\xf7\x30\x1e\xec\x23\x8e\
\xa6\xf9\x1d\x30\x06\xa2\xcb\x0e\x03\x6a\x93\xe6\x2a\x02\x43\x3f\
\x7f\x8b\xbc\xf9\x84\x10\xf9\x7d\x9c\xe5\x89\x07\x7e\x4b\x4b\xe3\
\xdd\x2b\x9b\x9e\x93\x99\xd7\x37\x7e\x29\x73\x16\x97\x99\x6b\x31\
\xce\x5c\xde\xc1\xd6\xfe\x10\xa3\xe9\x14\xe3\x28\xc2\x38\x8a\x31\
\x89\x63\xc4\x89\x06\x6c\x09\x24\x42\x40\x12\x82\x63\xab\xcb\xf8\
\x8e\xbf\xfc\x65\xf8\x67\xff\xf0\xa7\xf0\x89\x47\x1f\xad\xcf\x75\
\x9a\x01\xe2\x9a\x4c\x76\xa9\x66\x8e\x3a\x9d\x4e\x31\x8b\x6c\xe6\
\x31\xcb\xf9\x9c\x55\xe6\xaf\xf1\x1c\xd7\x87\x45\x24\xe2\x2d\x38\
\xb5\x8c\xe9\x35\x01\xab\x45\x59\x53\x61\x53\x29\xdf\x10\xd5\x06\
\xa8\x49\xa2\xdc\x09\x88\x10\x50\x2a\x6d\x99\xfd\x96\x84\x04\x4f\
\x12\xc4\xd3\x09\xba\xfd\x65\x7c\xeb\x5f\xff\xeb\xf8\xfe\xff\xe9\
\x3d\x58\xd2\xcd\xe7\x53\xcf\x9f\xc6\x7f\xfa\xe0\x1f\x29\x50\x72\
\x5c\x50\xdd\x67\x92\x52\x80\x42\x82\xc7\x31\x86\x83\x7d\x84\x9d\
\x8e\x35\x06\xdb\x9c\x70\xc9\x36\x59\x22\x8b\x29\x83\x42\x91\x9e\
\xbc\x1c\xa4\xce\x5d\xb2\x2c\x28\x53\xc1\x46\x29\x58\x1a\x3a\xa8\
\xb7\x8f\xf5\xf5\x43\xf9\xd6\x42\x72\xf9\x43\xb1\x54\x57\x64\x50\
\x44\xdf\x8f\xe2\xc9\xac\x0d\xa0\xca\xff\xce\xc1\xa3\xdc\x83\x82\
\x75\xbb\xcf\xff\xac\xeb\x7a\x70\x5d\x0f\x9d\x4e\x88\x24\x51\x4e\
\xe8\x02\x2a\xba\x63\x3a\xe2\xf0\x82\xd0\x12\xc0\x2a\x33\x70\x64\
\x1a\xfc\x14\x73\xca\xc7\x00\x16\x79\x93\x8d\x27\x93\x22\x71\x3a\
\x08\x53\x9a\xc9\xf7\xb3\x67\xea\xe6\x4a\x3b\xb3\xcf\x64\x23\x11\
\xa6\xa8\x42\xc0\x75\x5d\x2d\x82\x51\x8f\x71\x3c\x8d\xf0\xd9\x97\
\x5e\x05\x07\xc5\x34\x0e\x11\x78\x3e\x7c\xcf\x85\xeb\x3a\xf0\x1c\
\x07\x8c\x53\x38\x4c\xbd\x2f\x1c\xc6\x70\xb4\x17\xc2\xd3\x49\xc9\
\x37\x1e\x3e\x84\x1b\x6e\xbb\x0d\x2f\x3f\xfb\xf9\xda\x92\x9e\xed\
\x5d\x32\x5b\x82\x94\x70\x5d\x0f\xc7\x8f\x1f\xaf\x8f\x7c\x6f\x5c\
\xce\x33\x3b\x7f\xb5\x6a\xbc\x45\x06\x6c\x5b\x80\x6a\x81\xe9\xaa\
\x96\xf4\x0e\x14\x16\x48\xac\x5c\x29\xf7\x10\x83\x54\xd2\x71\x91\
\xce\xf8\x70\x15\x9d\xa0\x62\x2a\x08\x82\x4e\x07\x77\xbd\xeb\x7e\
\xfc\xb5\x6f\xfe\x06\x7c\xf9\x1d\x6f\x41\xdf\x2d\x5a\xc1\xfc\xa3\
\x1f\xfb\x7b\xf8\x77\xbf\xfb\x41\xf4\xc3\x00\xd2\x95\xca\xbd\x5c\
\xa7\xe5\x42\x2a\xef\xba\x28\x8a\xb0\xb7\xbb\x83\xa5\xa5\xe5\xd9\
\x19\x1b\x43\xd2\x9b\xd5\xd1\x84\x34\x38\xb3\x71\xc6\x6d\xfe\x3b\
\xf3\xf4\xcb\xa3\x25\x08\xa1\xca\xae\xc7\x48\xc1\x05\x80\xc3\x47\
\x8f\x64\x2d\xa4\xc2\x50\xad\x51\xbb\xb3\x66\x1c\xda\x58\x82\xb9\
\x53\x13\x4b\xd9\x8e\x18\x67\xd6\xa4\x74\x1b\x64\xce\x0e\x6e\x5c\
\x5e\x50\xf5\xb1\x18\x11\x71\x8c\xfb\xa4\xbd\xe4\x64\xe9\xa4\x58\
\x67\x2a\xd1\x74\x1e\x8a\x90\x9a\x0e\x86\x65\x97\x92\x2a\xeb\x29\
\x7b\x40\x86\x1b\xc5\x62\x6c\x69\x4e\x13\x09\xb3\x79\x4d\x85\xab\
\x54\x0d\xf6\xea\xb1\xa9\x6e\xb7\x93\xb1\x1c\x21\x25\x86\xe3\x31\
\x5e\x39\x73\x0e\x8e\x17\xa0\xd7\xef\xa1\x13\x86\x08\x02\x1f\xbe\
\xe7\xc1\x73\x5d\x78\xae\x03\xd7\x61\x60\x8c\xe1\xda\x95\x7e\x06\
\x4a\xe9\xc9\xd9\xb5\x37\xdd\x84\x97\xd5\x9c\xd0\x15\x2d\x02\x52\
\x61\x16\x7b\x40\x75\x9e\x54\xfd\xd1\x13\x27\x4e\xa4\x8c\x69\xde\
\x80\x6d\xd3\x3e\x53\xbb\x5a\x60\xba\x6a\x25\xbd\xc5\xc3\x02\x6d\
\xa5\x29\x39\x5b\x33\x15\x9c\x23\x8e\xa6\x8a\x35\x81\xa0\xbf\xb4\
\x8c\x1b\x6f\xbb\x1d\xb7\xdc\x7e\x1b\xee\xbe\xf3\x0e\x3c\xf8\xf6\
\xdb\xb0\x1e\xfa\xf0\xb4\x54\xdb\xfc\xfc\xf8\xcb\x6b\xb8\xf7\x9e\
\xbb\xf0\xf4\xf3\x2f\xa8\xfe\x53\x2a\x3e\xd0\x7d\x1e\x2a\x25\x64\
\x2c\x30\x1a\x0c\xd0\xeb\xf5\x73\xf0\xb1\xfa\x8f\xa5\xa0\x25\x00\
\x41\x35\x38\x09\x95\x5f\x54\x02\xa6\xd4\x31\x22\x2d\x31\xa6\x25\
\x33\x09\x89\x28\x4e\x20\x8c\xb3\x4d\x95\x88\x4b\xf2\xf2\x1a\xca\
\xb6\x3f\xc4\x40\xbb\x1a\x45\x1b\x29\xca\xc5\x8b\x80\x43\x66\x58\
\x52\x91\x31\x91\x03\xbf\x19\x7c\xcf\x05\x25\x2e\x62\xcb\xf6\x5f\
\x2e\x43\x11\x42\xc0\x18\xcd\x40\x69\x51\x3a\xbe\x79\xf1\xa2\x21\
\x7a\xa9\x00\x1c\xd2\x64\xdb\xad\xfb\x6b\x64\x0e\x95\x98\x1d\xec\
\xcd\x4c\x8b\xa4\xc0\xda\xea\x8a\x7a\x97\x08\xf5\x3e\xdb\xde\xdd\
\xc3\xd3\x4f\x3d\x85\x95\xf5\x43\xe8\x6b\x53\xde\x5e\xb7\x8b\xb0\
\xa3\xd4\x90\xbe\xe7\xc1\xf7\x3c\x38\x0e\xc3\xdd\xc7\x0f\x15\xfe\
\x82\x90\x12\x83\xdd\xbd\x85\x5f\x1f\x5b\xff\x56\x4a\x89\xe5\x95\
\x65\x8b\x4f\x5e\x3d\x0b\xac\xe3\x96\x04\xc0\xde\xee\xee\xbc\x52\
\x5e\xab\xcc\x6b\x81\xe9\x75\x67\x49\x75\xe5\xbc\xea\xb0\x40\x21\
\xf8\xab\xcf\x3f\x23\xaf\xbb\x35\x0d\x0b\x4c\xc0\x18\xcb\xe4\xda\
\x65\xd6\x94\xf6\x9a\x56\x0e\x1d\xc6\x5d\x5f\xf2\x2e\xbc\xfd\xae\
\xb7\xe3\xf8\xb1\xa3\x38\xbc\xb6\x82\x69\x9c\x60\xec\x3a\x20\xae\
\x3a\x0b\x2f\x7f\x9c\xfe\xf3\x2f\xff\x02\xde\xf2\xe7\xbf\x0a\xfd\
\x4e\x08\x09\x80\x65\xe5\x3c\x09\x30\x55\x6e\xe1\x71\x84\xfd\xfd\
\x3d\x2c\x2d\xaf\xe8\xfb\x30\x8b\xbf\xaa\x17\x9e\x96\xf4\x84\x1a\
\xfa\x4d\xd9\x94\x4c\x3f\x9b\x14\x52\x68\x44\xd5\xc0\xa4\xc4\x01\
\x29\x4b\xa0\x70\x1c\x06\xa6\x1d\xb9\x89\x3e\x2b\xce\x00\xc9\x24\
\x3a\xb2\xe8\x40\x4d\x0a\xa9\xad\xf5\xa0\x54\xec\x51\xcd\xfa\xdb\
\x91\x4a\xc6\x44\x16\x7b\x23\x48\x69\x1d\x22\x4d\x01\x95\x94\x1c\
\x4e\x29\x21\x60\xd4\x30\xa2\x5d\x08\x36\x24\x76\xb6\x77\x0a\x1a\
\x11\x02\x3b\x43\x6c\x90\x04\xde\xac\x94\x55\x9c\xae\xad\xbd\x49\
\x09\x25\x91\x5f\x59\x5a\xca\x80\x40\x48\x81\xf1\x78\x8c\x97\x9f\
\x7b\x06\xcb\x5b\x87\xd1\x5b\x59\xc3\xd2\xca\x0a\xfa\xcb\xcb\xe8\
\xf7\xfb\xe8\xf5\xba\x08\xc3\x10\x8e\xe3\xe0\xae\x5b\x6e\xcc\xc7\
\x08\xf4\x6d\xc6\x5c\xe0\x85\xa7\x9f\x6a\xec\x3a\x2e\x6b\xee\x69\
\xea\x93\xd7\x6b\xe4\x93\xd7\x7c\xed\xef\xed\xa1\x41\x09\xaf\xb5\
\x22\x6a\x81\xe9\x0d\x57\xce\xab\xf0\xcc\x22\x02\x00\xe3\x49\xac\
\x1d\x06\x9c\x9c\x19\x18\x25\xbd\xd4\x75\x3c\x89\xa6\x98\x8e\x47\
\xd8\xdf\xdf\xc3\xd6\xd6\x65\x74\x3a\x1d\x78\xae\x8b\xc0\x73\xe1\
\x32\x06\x87\x52\x38\x84\xa1\x2c\x60\xea\xac\xad\xe3\x2b\xbe\xf4\
\xdd\x78\xf8\xb1\xc7\x54\x8f\xc7\x71\x0d\xbb\xa0\x3c\x2e\x63\x34\
\x18\x22\x08\x42\xed\x9d\x57\x2c\xe9\xe5\x62\x3d\xdd\x6f\x90\xc8\
\x4a\x7a\x02\x02\xd4\x60\x50\x02\x39\xc3\x51\xde\x72\xb9\x53\x02\
\x63\x14\x8c\x16\xef\xa3\xeb\xb9\x79\xe4\x84\xa9\xa4\x23\xd6\xae\
\xc1\x2c\x73\x22\xb3\x4d\x96\x99\xfe\x11\x31\x89\x13\x29\x96\x02\
\x0f\xc8\x98\xcc\x52\x63\x85\xb8\xcf\x10\x7b\xa8\xe8\xf8\xcc\x2b\
\x2f\x2d\x7d\x35\x7d\x93\x49\xcd\x1e\xf6\xf7\x32\x91\x46\x2e\xe6\
\x20\xb9\x51\x46\xf6\x58\x48\x25\xa0\x2c\x02\x36\xe5\xdf\x99\x27\
\x39\x07\x80\x38\x49\xb2\xc7\x2b\x84\xc4\x68\x30\xc0\x2b\xcf\x7e\
\x1e\xdd\xa5\x0d\x74\xfa\x4b\xe8\xad\xac\x61\x79\x7d\x1d\x4b\x2b\
\xab\x58\x5e\x5d\x41\xaf\xbf\x04\xd7\xf3\x71\xff\xdb\x6f\xcd\x2a\
\xc4\xe9\xf3\x72\xfa\xe2\x26\x06\xbb\x7b\xa0\x8c\x2e\xf4\x91\x94\
\x15\xfd\xc2\x28\x8e\x33\x49\x7b\xf1\x65\x3b\x68\x58\x20\xf0\xd8\
\x63\x8f\xca\x06\x25\xbc\xa6\xce\x0f\x2d\x50\xb5\xc0\xf4\xba\x82\
\x53\x6d\x39\x6f\xa6\x7b\x2d\x4b\x3b\x9c\x54\xfd\xa1\xe1\xde\x1e\
\x2e\x9e\x3b\x87\xd5\xb5\x75\x2c\x2d\x2d\xa1\x13\x06\x08\x7c\x0f\
\xbd\x30\x40\xe8\x3a\x70\x29\x51\xae\xdf\xa5\x3b\xf8\x81\x5f\xfc\
\x19\xdc\xf6\xa5\x7f\x49\x9d\x91\x32\xa1\xd8\x99\x60\x90\xc2\x51\
\x1b\x24\x73\xc0\x85\xc0\xde\xee\x2e\xd6\xd6\xd7\x6b\xcf\x43\xd3\
\x28\x8e\x94\x38\xcd\x82\x13\x32\x6f\x3f\x18\x25\xbd\xcc\xca\x87\
\xe4\x39\x88\x00\xb0\xd4\xef\x1b\xa8\x61\x88\x1f\x2c\x80\x44\x32\
\xab\x4f\x62\x6f\xf8\x57\x95\xeb\x6c\xe5\x41\x0b\x28\x55\x01\x95\
\x69\xa1\x63\x45\x20\xdb\xcb\xa8\xc5\x1e\x94\xe6\xe0\x94\xf0\x44\
\x0d\xd8\xa6\x25\x5c\x5d\xf6\x94\x73\x0a\x68\x0a\xd4\x04\x5e\x7c\
\xf6\x59\x1d\xab\x4e\x66\xb1\x85\x10\xcc\x3e\x35\xa4\xf0\x70\x6c\
\x2c\x87\xd4\x72\x0c\x52\x2a\xde\x55\x97\xf3\xd2\x7f\x2a\x1f\x3a\
\xf5\x02\x0b\x21\xd0\xeb\x74\x30\xdd\xdf\x45\x34\x1e\x61\x7f\xfb\
\x32\x2e\x6f\x6e\x20\xe8\xf5\xd1\x5f\x59\xc5\xf2\xda\x1a\x96\x56\
\xd7\xe0\x87\x5d\xf4\xbe\xfe\x2f\x17\xe6\x01\x24\x80\x5f\x7e\xdf\
\xaf\x1c\x30\x40\xd0\x52\xaa\x93\x12\xd7\x5c\x53\xf4\xc9\x6b\x4e\
\x1d\x91\x0d\x70\x95\x3d\x03\xcf\x9f\x3d\x27\x61\xef\x2f\x2d\x52\
\xc2\x6b\x41\xa9\x05\xa6\xab\x06\x46\x07\x35\x70\xad\xcc\x64\x2a\
\x83\x11\x31\x36\x79\x29\x94\xfa\xee\xf2\xe6\x06\x2e\x6d\x1e\xc1\
\xf2\xca\x8a\x2a\x85\x04\x01\xf6\x86\x63\xf4\x7c\x1f\x9e\xc3\xc0\
\x88\x54\x33\x22\xc6\xcd\x79\x9d\x2e\xbe\xe3\xaf\xfd\x35\xfc\xd6\
\xef\xfc\x8e\x1e\x0a\x75\xb4\x42\x4f\xb3\x26\xc9\x20\xa5\x8b\x38\
\x9e\x62\xb0\xbf\x8f\xa5\xe5\x65\x70\x21\x8c\xcc\x1e\x63\xbe\x89\
\x98\x97\x91\xac\xdf\x94\x81\x13\x91\xc5\x8d\x12\xb9\x24\x3b\x55\
\x5e\xe5\xa5\x2c\xb5\x91\x65\x12\x6f\x09\x3b\x43\x6a\x68\x57\x63\
\x2b\xe5\x65\x3d\x19\x62\x6b\xc5\x90\x22\xfb\x99\xc7\x8e\xca\xbb\
\x87\x8e\x26\x2f\xc7\x61\x10\x2d\xf6\xc8\xc0\x18\xa9\xb1\xab\x40\
\x9c\xe4\x0d\xf8\xaa\xf1\x9c\xc2\x1b\x49\x2a\x63\x5f\x29\x25\xe2\
\x69\x54\x28\x5b\x16\x02\x0d\x4b\x85\x4b\x7b\xbb\x28\xa5\x02\x15\
\xac\xc9\x6a\x37\x54\x01\x5f\xd9\x55\x8a\xac\x69\x7d\x6d\x55\xfb\
\xc7\xaa\xfd\x78\x69\xa9\x0f\x97\x48\x44\xa3\x7d\x50\x24\x88\x92\
\x08\xfb\x3b\x97\x71\xe9\xfc\x59\x84\xdd\x1e\xba\x4b\x2b\x08\x7b\
\x7d\x78\x0e\x53\x7d\x25\x7d\x4b\x83\xe9\x14\xbf\xf5\xab\xbf\xa2\
\xd9\x12\x69\x5c\xb8\xab\x7a\xa3\x28\x61\x46\x57\x3b\x93\xf0\x03\
\x33\xa4\xf2\x5d\x98\x46\xd3\xa6\xfd\xa5\x26\xb1\xea\xed\x6a\x81\
\xe9\x8a\x19\x52\x13\x0a\x5e\xdb\x6b\xaa\xff\x48\x15\x4b\x7a\x44\
\xb3\xa6\xd1\xfe\x1e\x2e\x9e\x3f\x87\xe5\xd5\x55\x2c\x2d\xf7\xd1\
\xed\x74\xb0\x17\x06\xe8\x85\x01\x7c\x87\x81\x11\x17\x8c\x10\xb0\
\xd2\xa6\xf7\x7f\xfc\xe8\x8f\xe0\x37\x7f\xe7\x77\x95\x3d\x91\x54\
\xf1\x18\x69\x39\x4f\x59\x08\x49\x48\xe1\x60\x38\x1c\x82\x10\xa0\
\xdb\x5f\xb2\x84\xa9\xe5\xa0\x54\xe8\x37\x99\xe0\x64\x4a\xcb\x35\
\x8d\x50\x52\x5f\xb5\x85\x29\x65\x5a\xbe\x81\xd2\x6c\xbe\x49\x96\
\xea\x5b\xf6\x68\x39\xd2\x28\xad\x87\x58\xc0\x86\x94\xfa\x50\x75\
\xa0\x64\xfa\x07\x56\xf9\x5e\xa8\x7f\xc4\x82\x20\x91\xc6\x74\x51\
\x5a\x5e\x4b\xc3\x06\x0b\xb3\x54\x4a\x95\xc8\xb3\x19\xb0\xf9\x6f\
\x30\x09\x35\xe7\x13\x25\x09\x36\xcf\x9f\x53\xcf\x25\x99\x4d\x83\
\x25\xa6\x24\x9e\x54\x3d\x83\xa4\x36\x2d\xbd\x5e\xb0\x97\x1a\xd4\
\x1a\xb1\xee\x16\xd6\xc4\x52\xa9\xb8\xbe\x4f\x81\xef\xe1\xd8\xe1\
\x35\x5c\xbe\x74\x11\xd7\x1c\x59\x06\x65\x0e\xee\x7c\xe7\xbb\xb0\
\x7c\xf8\x38\x3e\xf4\x3f\x3e\x8a\x0b\x17\xce\x02\x84\x62\x38\x99\
\x42\xf6\x7b\xd9\xec\xd3\xcf\xfd\xf2\xfb\xb0\xb3\xb5\xa5\x4a\xdc\
\x75\x00\x54\x79\xc2\x32\xfb\x83\x5e\xbf\x5f\xc3\x18\x17\x2c\xe7\
\x11\x82\x38\x49\xb0\xb3\xb3\x33\x8f\x2d\x1d\xc4\x5d\xbc\x5d\x07\
\x58\xb4\x7d\x0a\x0e\x54\xce\xb3\xf5\x9a\xaa\xb6\xcd\x99\x52\x15\
\x21\x04\x10\x09\xa2\xc9\x18\xdb\x9b\x9b\xb8\x78\x61\x03\x97\xb7\
\x2e\x63\x6f\x7f\x1f\xc3\xd1\x18\x3b\x83\x21\xf6\xa7\x11\x22\x2e\
\x10\x4b\x59\xce\x6f\x87\xe7\x7b\xf8\x91\x1f\xfc\x41\xc4\x49\xa2\
\x1d\x22\x1c\x15\xf4\x67\x0c\xe0\xa6\x5e\x77\xa3\xd1\x48\xe5\x22\
\x11\xab\xce\x2d\x2b\x8d\xe4\xc3\xb7\x5a\x50\xa1\xe3\x2e\xd2\x1e\
\x93\xd4\x6e\x07\x66\xdc\x93\x84\x2c\x00\x53\xa8\xa3\x1c\xa4\x45\
\x14\x26\xeb\x79\x51\x45\x29\x8b\xcc\xfd\x59\x81\xe1\x14\xec\x22\
\x66\x7b\x36\x85\x88\x75\x4b\xcc\x46\x02\x8a\x44\xd2\x02\xfb\x21\
\x3a\x38\x91\xe8\xb0\x41\x4a\x15\x38\xab\xb2\x9e\x12\x05\x08\x39\
\x7f\xac\x33\xed\x2d\x01\xc0\x34\x4e\xb0\xbf\xb3\x93\xe5\x41\xa1\
\x1c\xff\x5e\xa2\x85\xa4\xe6\xd9\x92\x36\xf6\x33\xef\x59\x6f\xb8\
\x75\xba\xae\x93\x0b\x5b\x28\x41\xbf\xd7\xc3\x3d\x77\xdd\x81\xc3\
\x87\x56\xe1\xfb\x3e\xde\x72\xd3\x8d\xf8\xe9\xbf\xff\x53\xf8\xfb\
\x7f\xf7\x47\xf0\xc7\xbf\xf7\x5b\xf8\xae\x6f\xfd\x26\x5c\x3e\xf7\
\x2a\x3e\xf8\xd1\x4f\x64\x35\xde\x4f\x3c\xfe\x24\xfe\xef\x9f\xfc\
\xc9\x1a\x50\xb2\x3f\xb6\xba\xc7\x0c\x02\xac\xa7\x65\x6a\xb9\xe8\
\xc7\xba\xf8\x6d\x0a\x56\x2a\xa5\x38\x5a\xc4\x51\x5c\xa0\x9d\x5f\
\x6a\x19\xd3\x17\xa0\x9c\xd7\xfc\x20\xb6\x37\x62\xe9\x2c\xcf\xa8\
\xb9\x67\x46\x3d\x82\x63\x3c\xdc\xc7\xe6\xb9\x33\x58\x5d\x5f\xc3\
\xd2\xd2\x12\xba\xdd\x8e\xee\x35\x85\xe8\xf9\x1e\x3c\x46\x15\x63\
\x2a\xa9\xf4\xfe\x97\xf7\x7e\x17\xfe\xd5\xbf\x7d\x3f\x84\x6e\x50\
\x4b\x29\xc1\xd2\xd9\x24\x21\x20\x99\x04\x93\x0e\x78\x1c\x63\xfb\
\xf2\x16\x56\x56\xd7\x32\x99\xb7\x6d\xf4\x5d\xce\x84\xe4\x89\xac\
\xfe\x44\x8d\x28\x75\x73\x98\xb4\xac\x1b\x3c\xb2\xba\xbc\x60\x1f\
\xa1\xc4\x24\x17\xda\xba\xec\x78\x35\xeb\xa1\x57\xcd\x90\xa4\x91\
\x63\x84\x14\x64\x4b\xaa\x31\x42\x89\x06\x7e\x96\x33\x42\xa2\x54\
\x79\x94\x52\x3d\x97\x2c\x73\x69\x7d\xdd\x19\x8e\x66\x6d\x83\xd1\
\x08\x93\xf1\x18\x4c\x97\xbc\x2a\x1f\x1f\x29\xb1\xc0\x99\x19\x2e\
\x03\xf5\x48\x45\xe0\x90\x45\xdc\x60\x8f\xc7\x30\xca\x79\x52\x3d\
\xb6\xc3\xa9\xe5\x8f\x7e\xef\x79\xae\x8b\x3f\xff\x65\x5f\x86\xcf\
\x3d\x75\x0a\xab\xab\xab\xf8\x7b\x3f\xfa\x13\xe8\xf6\xfa\x90\x52\
\x22\x08\x42\x74\x5d\x86\x64\x3c\xc0\xff\xf1\x43\xdf\x0f\x31\x19\
\xe2\xa5\x17\x5e\xc0\x7f\xf8\xc5\x5f\x00\x21\x0b\xbc\x1f\x48\x33\
\x25\xc9\xf2\xca\x4a\x35\x45\x6c\x5c\xce\xcb\x87\xa6\xb7\x77\x76\
\x00\xd5\x5f\x6a\x3a\x60\xdb\x7a\xe4\xb5\xc0\xf4\xba\x97\xf3\x0e\
\x02\x50\x85\xbd\x43\xfd\x76\xa9\x5c\x65\x80\x13\x25\x04\x52\x70\
\x4c\x47\x23\xec\x6e\x5d\xc4\xc6\xd9\xb3\x58\x5a\x59\x41\xaf\xd7\
\x43\xe0\xfb\xe8\x86\x01\x96\x3a\x01\x5c\x46\x41\xc0\x40\x18\x29\
\x9c\xc9\x33\x46\xf1\xb3\xff\xf4\x9f\xe2\x87\xfe\xce\xdf\xc9\x8c\
\x5b\x33\xc6\x23\x4d\x09\x39\x10\xc7\x53\x0c\x87\x03\x2c\x2d\x2d\
\x81\xf3\x12\x60\x16\x9b\x2c\x0b\x34\x93\xab\xbe\xb3\xcf\xe6\x90\
\xf2\x6d\x1b\x6e\xe3\x45\x13\x24\x52\x03\x27\xa4\xe2\x3a\x65\xc9\
\x5e\xe9\x72\xeb\x6c\x99\x2c\xce\xc8\x48\x18\xb2\xf0\x9c\x51\x51\
\x42\x33\x40\x22\x46\xb9\xcb\x54\x82\x65\x76\x4e\x92\x64\xe0\x64\
\x9b\xae\x91\x1a\xc0\x2e\x5c\xbc\x04\x21\x04\x18\x9c\x19\x56\x98\
\x9a\x29\x11\x62\x73\x51\xaf\x79\x16\x2c\xa0\x54\x3f\x6e\x5a\xee\
\x51\xcd\xaa\xf2\x28\xd3\x8f\x5b\x5f\x87\x50\x82\x6f\xf8\x86\x6f\
\xc1\xdd\x77\xdf\x83\xe3\xc7\xaf\xc3\xd2\xf2\x6a\xfe\x3c\x48\x89\
\xbd\xfd\x7d\x50\x4a\x31\x1d\x0e\xf1\x93\xdf\xf7\xb7\xf5\x6d\x30\
\xed\x30\x2e\x8b\x6c\x7a\x1e\x38\xa1\x1a\xa3\x08\x08\xd6\x2c\x3e\
\x79\x07\x2e\xe7\x11\x95\x86\x6b\x80\xcf\x41\x07\x6c\x0f\xc0\x4b\
\xdb\xd5\x02\xd3\xfc\x37\xce\x41\x23\xd6\xed\x61\x81\xb6\xd2\x79\
\x99\x39\x49\x05\x4e\x9b\x67\x5f\xc5\xd2\xea\x2a\xfa\xfd\x3e\xc2\
\x30\x40\x18\xf8\xe8\x06\x01\x1c\x4a\x41\x7c\xa8\x99\x19\x10\x50\
\x92\xd7\x5f\xbf\xee\x2f\x3c\x80\xff\xeb\xa6\xb7\x60\xe3\xdc\x59\
\x55\xbe\x93\x4e\x16\x89\x91\xb2\x1b\xca\x24\xa4\x74\x31\x1e\x8d\
\x40\x08\x41\xb7\xdb\xcb\xa2\xd6\x67\xf0\x49\xa2\x00\xa4\x12\x50\
\x2c\x0c\xb9\x57\x5a\x7a\xcf\x33\xe7\x87\xf2\xc6\x40\x60\xd9\x6c\
\x0d\x56\x23\x8d\xbf\x60\x86\x07\x36\xa1\x45\x55\x5b\xb4\x15\x97\
\x88\xfd\xf5\x40\x81\x32\xe5\x8f\x97\xe4\x65\x56\xb3\xd2\x47\x19\
\x83\xe3\xba\xca\x1d\xdb\x48\xf7\x25\x44\x3d\xfe\xc4\x48\xf7\xad\
\xd0\x15\x20\x55\xe4\x0b\xa1\xc0\xe9\xe9\xa7\x9f\x29\x81\x76\xa9\
\x8c\x57\xe8\x2f\x59\xfa\x68\x35\x67\xff\x05\xad\x59\xc9\x39\x5c\
\x92\xf9\x09\xae\x06\x8f\xc8\x4c\x81\x89\xe1\x4a\xe1\x07\x21\xde\
\x76\xc7\xdd\xd6\xdf\x19\x0c\x86\x59\x69\x72\xb6\x74\x67\x3a\x77\
\xc8\xc2\x7b\xae\xfa\x75\x95\x56\x70\xa2\x94\xa2\xdf\xef\x17\x7d\
\xf2\x1a\x3b\xdd\xce\xaa\xf3\x28\xa1\x78\xe6\xe9\xa7\x31\x87\x29\
\x35\x71\x7c\x68\x15\x79\x57\x69\xb5\x3d\xa6\x6a\x96\x34\x0f\x9c\
\x2c\x5e\x59\xb2\xb2\xc6\x64\xdb\xaa\x29\xa5\x70\x08\x85\xe4\x09\
\x06\xbb\x3b\x38\xff\xca\x69\x6c\x5c\xb8\x80\xed\xed\x1d\xec\xed\
\x0f\x71\x79\x6f\x1f\x3b\xa3\x31\xc6\x31\xc7\x34\xed\x37\x19\x1f\
\x54\x4a\x80\xff\xfc\x6f\xdf\xa7\xca\x78\xda\x1d\x3b\x37\x7a\x35\
\xfa\x4d\xcc\x01\x21\x14\xe3\xd1\xd8\x68\x78\x13\xeb\x69\x77\x66\
\xea\x6a\x0e\xef\x1a\xa7\xba\x04\xaa\x29\x4e\x2c\xec\xca\x5a\xc6\
\x2b\x34\xda\x4c\xd7\x86\x72\xe3\x0d\xf3\x7d\xe2\xca\x0a\xf1\xc2\
\x60\x2d\x99\xad\x81\x35\xaa\x0d\xaa\xdf\x4f\x24\x41\x02\x9a\x67\
\x49\x65\xa5\x3c\x0a\xd7\x75\xe1\x30\x07\x9e\xe7\x29\xb6\x6a\x98\
\xd8\x2a\x77\x71\x59\x59\x17\xce\xd5\x78\xea\xb9\xe5\x42\xe0\xe9\
\x53\x4f\x16\x73\x8e\x6c\xef\x8f\x2a\x50\x22\x57\x72\xae\x85\x7a\
\x83\x57\xc3\xac\xb5\xd3\xe9\x60\x65\x69\xc9\x30\xc6\x85\xe1\x54\
\x21\xcb\x4f\x21\x84\x10\x78\xfe\xf9\x17\xea\x8d\x5a\x4b\x2f\x38\
\x31\xdd\x52\xaa\x5e\xf0\x72\x79\x54\x02\xae\xeb\xe2\xd0\xa1\x43\
\xa5\x37\xa0\x6c\xfc\x8c\xd8\xd6\x8e\x2a\xe5\xcd\x33\x6e\x15\xa8\
\xf7\xc9\x6b\x41\xa9\x05\xa6\xd7\x8c\x35\xd9\xf6\x97\x7a\xe6\xa4\
\xf4\xb4\x73\xcf\xec\xad\x62\x08\x02\x80\x2b\x21\xc4\xe5\xcd\x0d\
\x5c\x38\xf3\x2a\x2e\x5e\xbc\x88\xcb\x3b\x3b\xd8\xdd\x1f\xe2\xf2\
\xfe\x00\x7b\xe3\x09\xc6\x71\x82\x48\x27\xa6\x9a\x14\xed\xd8\x4a\
\x1f\xdf\xf5\x37\xbf\x17\x09\xe7\x60\x8e\xa7\x0c\x5e\x59\xee\x40\
\x9e\xba\x8f\x53\xc7\x85\x04\xb0\xb3\xb3\xad\xce\xa0\x67\x9c\x25\
\x64\x61\x27\xcd\x5d\xc7\x65\xe1\xcc\x3e\x9d\x5f\x4a\xa3\x0e\x6c\
\x1b\x7d\x11\x6d\xec\x92\x45\x33\xe1\xb6\xf8\x5f\x5a\xc2\x6a\x48\
\x9d\x66\xd8\x12\x59\x8c\x75\xe9\xfe\x5d\x02\x0a\x0e\x36\x13\xa9\
\x41\x09\xd1\x8c\xc9\x51\xa1\x8d\x52\xea\x59\x2e\x92\x19\x96\x12\
\xc3\x2b\x6f\xa6\xe1\x90\xb9\xb6\x2b\x56\x35\x8d\x13\x3c\xf3\xc4\
\x13\xd9\xf3\x38\x77\xfb\x2e\x60\x2c\x69\x4e\x2b\xe5\x41\xb6\x69\
\x99\x9d\x60\x78\x9e\xab\xe5\xff\xb9\x83\xbb\xd5\x2d\xde\x28\x0d\
\xe8\x72\xd8\xc2\xac\x37\x7b\xdd\xc9\x9c\xd7\x58\x5f\x87\x73\x5e\
\x09\x80\xb2\x5c\x02\x68\xf8\x2c\x6c\x5c\xb8\x00\x54\xcf\x30\xb5\
\x8a\xbc\x16\x98\xbe\x60\xe0\xd4\x64\x70\x4e\x56\x9c\x45\x89\x46\
\x9b\xa7\x85\x49\x65\x3f\xe6\x1c\x93\xe1\x00\x17\x5e\x7d\x05\x1b\
\xe7\xce\xe1\xd2\xc5\x2d\xec\xec\xed\x61\x7f\x30\xc2\xd6\xfe\x00\
\xdb\xc3\x31\xc6\x71\x92\xb1\x26\x13\x9c\x7e\xe2\xfb\xbe\x1b\x2b\
\xeb\x87\x40\x34\x3b\x62\x8e\x5b\x54\xea\x51\x96\xb1\xa9\x38\x4e\
\xb0\xb3\xbd\xad\x66\xab\xa8\xfd\x54\x35\xdb\x50\x4b\x62\x07\xa9\
\xc3\xf2\x84\x8e\x5b\x67\x94\x16\x80\x8b\x51\x5a\xdc\x4d\x67\x76\
\x0a\x69\x67\x49\x85\xa3\x1a\x58\xa4\xac\x7a\x52\x17\xd8\xb0\xab\
\x5e\x22\x3d\xa7\x84\x52\x6c\x07\xd1\xcf\x9b\xeb\x2a\x57\x0b\xcf\
\x73\xb3\x99\xb0\x74\x9e\x8b\xa0\xe4\x4f\x6d\xb9\xdf\xda\x28\x02\
\xe3\x28\xc2\xce\xd6\x96\x11\xd7\x51\x1c\x46\xce\xfb\x4b\xb8\xa2\
\xc7\x24\x6b\x77\x62\x39\x03\x44\x65\xe6\x4b\x8c\xc8\x8f\x0c\x34\
\xac\xa0\x94\xff\xce\xfe\x60\x50\x88\x21\x59\xf0\x15\x68\xf4\x60\
\xa4\x94\x58\x5a\x5e\xc6\x91\x23\x47\x8a\xae\xee\xb2\xe9\x93\x62\
\x67\x90\xcf\x3c\xf3\x0c\x1a\x02\x52\x1d\x5b\x3a\x08\x59\x6b\x57\
\x0b\x4c\x07\x2e\xf1\xcd\x05\xa9\xd9\x16\x76\x83\x92\x1e\xc9\xcf\
\xca\x19\x01\x44\x12\x63\x7f\xfb\x32\xce\xbf\xfa\x0a\x36\x37\x2e\
\x60\xeb\xf2\x36\xf6\x06\x43\x0c\x46\x63\xec\x0c\x47\x99\x84\x9c\
\x97\xc0\xc9\x63\x14\xbf\xf6\x6f\xfe\xb5\x6a\xa8\x7b\x69\x6e\x93\
\xc1\x9e\xd2\xd2\x9e\x06\xad\x38\x4e\xb0\xbd\xbd\x9d\x6f\x40\x33\
\x49\xa5\xf6\x0a\xa5\xd0\x83\xa5\x42\xef\xb2\x8a\x35\x91\x02\x30\
\xd9\x1d\xb2\x65\x9e\x13\xb4\xd0\x79\x25\xa9\x0e\x96\x6b\xbc\xd9\
\xd5\x1d\xc6\x07\xc1\x98\x57\x4a\x95\x7d\x84\x52\x38\x1a\xd8\x53\
\x55\x9e\xa7\xa3\x20\x28\x25\x19\x78\x93\x0a\x03\xef\xf4\x7f\x42\
\x7b\xcd\x01\xc0\xe6\xd6\x16\x26\xa3\xd1\xec\xfb\x61\xe6\x6e\x55\
\xcc\x63\x5d\x61\x41\x60\xee\x53\xaf\x4f\x46\x56\x57\x56\xe0\x6b\
\xf9\x3f\x48\x91\x01\xdb\xee\x46\x92\x24\xd8\xda\xba\x5c\xa6\xa2\
\x8b\xbf\x5e\x64\xfe\x23\xf2\x7c\x8b\x4f\xde\x15\x96\xf3\xf6\xf7\
\xf6\x9a\x98\xb6\x36\x75\x7e\x68\x41\xa9\x05\xa6\xab\x52\xc6\x5b\
\x94\x35\x59\x0e\x32\x73\x16\xdf\x08\x9c\x0a\xac\x49\x95\xf4\x2e\
\x9d\x3b\x8b\xf3\x67\xce\xe0\xe2\xe6\x26\xb6\x77\x77\xb1\x3f\x1c\
\x63\x38\x9e\x60\x77\x38\xc6\x30\x8a\x11\x71\x81\x44\x14\xfb\x4d\
\x6f\xbb\xf6\x30\xbe\xfd\xff\xfd\x5e\x70\xce\xe1\xf8\x01\x1c\xcf\
\xd3\xcc\x49\x1d\xd4\x71\x40\x34\x48\x31\xd7\x43\x9c\x24\x18\x0d\
\x47\xda\xcd\xc0\xd2\x6f\x2a\x6a\x9c\x8d\x33\x6b\x99\xcd\x34\x71\
\x51\x74\x32\x73\x28\xb5\xce\x08\x65\xe0\x84\x3c\xf1\xb6\xfe\x23\
\x4c\x2c\xcf\x1f\xb1\x27\xd5\xca\xf9\x1b\x50\x75\xbb\xc9\xec\x2f\
\xb1\x62\xef\x0d\x00\x63\x0c\x8e\xe3\xea\x39\xa6\xdc\x96\xc8\x61\
\x0c\x8e\x1e\x6e\xb6\xbd\xd2\xb2\x54\x19\x15\x46\x28\xe3\x53\x4f\
\x3f\x53\x60\x24\xf6\xf7\x43\x59\xd4\x71\x35\x40\x49\x36\xd6\x8d\
\x11\xe4\x8a\x3c\x58\x8a\x76\x36\x2c\x11\x42\x60\x34\x1c\xce\x9e\
\x98\x90\x2b\x0d\xf2\x98\x7d\xec\x71\x94\xfb\xe4\x5d\x8d\x72\x9e\
\x94\x12\xe7\xce\x9d\xb5\x29\xf2\xe6\x89\x1f\xd0\x02\x51\x0b\x4c\
\xaf\x37\x50\xd5\x79\x60\x15\xe5\xa3\x84\x14\xac\x52\x49\x6d\xe3\
\xbd\x7c\xa6\x4c\x8a\x2f\x06\xe7\x18\x0f\x07\xb8\xf0\xca\xcb\xb8\
\x70\xee\x1c\x2e\x5e\xbc\x84\x9d\xbd\x3d\x0c\xc7\x13\x0c\xc6\x13\
\xec\x8d\x26\x18\xc6\x09\xa6\x42\x20\x29\x89\x21\x7e\xfc\x6f\x7d\
\x17\x56\x0f\x1f\x55\xcc\xc8\xf5\xc0\x3c\x0f\xd4\x55\xcc\x89\x39\
\x1e\x98\xeb\x82\x32\x57\x7f\xef\x62\x3c\x1e\x63\x38\x18\xea\x12\
\x96\x29\x23\x98\x1d\x54\x95\x12\x05\xb5\x1f\xe7\x1c\x51\x9c\x94\
\x62\x95\x72\xf3\xd6\x62\x77\x89\xe4\xca\xb5\x14\xdc\x50\x5d\x86\
\x29\x55\x8d\x0a\xa0\x54\x76\x44\x28\xb3\x93\x83\x70\x2a\x4e\x18\
\x38\x61\x33\xec\x8c\x32\x06\xc7\x73\x55\x60\x1e\xa1\x70\x1d\x17\
\x52\x62\xc6\x26\x6a\x06\x70\xb3\x37\x47\xfa\xfa\xa8\xff\x12\x2e\
\xf0\xf0\xa7\x3e\xad\x85\x0f\x35\x03\xa5\xb3\x4f\x40\xb3\x92\x57\
\x53\x8a\x20\xe7\x91\x26\x09\x29\x64\x16\x04\x59\x07\x4a\xd9\x49\
\x09\x53\xd2\x77\x6b\xe0\x06\x59\x8c\x3d\x91\x39\x91\xef\xd7\x1c\
\x2f\xfa\xe4\x5d\x51\x39\x8f\x00\x09\xe7\x18\x0e\x87\x57\xea\xf6\
\xd0\x02\xd4\x55\x5c\xed\x1c\x93\xbd\x74\x87\xe6\x4c\xa9\xee\x0d\
\x69\xb1\xdd\xb1\x7a\x9a\x6a\x3f\x3d\x42\xc0\xa0\x4b\x7a\x97\x2f\
\xe3\xdc\xe9\x97\xd1\xe9\xf6\x10\x04\x01\x3c\xd7\xcb\xce\xd4\x19\
\xa3\x00\x02\x00\x0e\x88\xf6\x1f\xa3\x04\x08\x1d\x86\x0f\xbc\xff\
\x7d\xf8\xe6\x6f\xf9\x36\x38\x9e\x9f\xcd\x09\x11\x42\x20\x98\x03\
\x92\x30\x00\x51\xae\x28\x03\x30\x1c\x8d\x00\x00\x9d\x6e\x07\x82\
\x0b\xbb\xc7\x8d\xde\x01\x84\x48\xcb\x78\x32\x63\x02\x69\x9d\x5f\
\xce\xa0\x72\x69\xeb\x16\x52\xcf\xa7\x98\xe0\xa7\x65\xeb\x20\xe6\
\x8f\x00\x2b\x28\xd5\x9d\x5f\x97\x86\x47\xcb\xd6\x3b\x35\xbf\x3d\
\x15\x12\x71\x3a\x2c\x6b\xcc\x0e\x29\xa5\xa3\x03\xcf\xf3\xe1\xb8\
\x0e\x82\x30\x00\x90\x6e\xd6\x24\x0b\x08\x94\xda\x69\x5c\x50\x35\
\xc7\x24\x8c\xc0\xde\x4c\x62\xaf\xbf\x9f\xc4\x31\x9e\x79\xfc\xb3\
\xa0\x8c\x59\x76\xe0\x62\x7f\x29\x17\x04\x90\x2b\x7b\x43\xcb\xa6\
\x98\x50\x9a\x02\xd2\x3d\xc8\xb9\x4f\xbd\x7e\x1c\xa3\xd1\x10\x93\
\xc9\xa4\x70\x7f\x67\xdf\xea\x8d\x4c\x12\x4b\xbd\x44\x39\xf3\x89\
\xec\x74\x3a\x76\x9f\x3c\xcb\xe3\xa8\xbf\x54\x85\x60\x4e\x27\x13\
\x4c\xc6\xe3\x04\xf3\x87\x6b\x6d\x40\x75\x90\xca\x61\xbb\x5a\xc6\
\xd4\x08\x88\xe6\xe5\x30\xd9\x2e\xcb\xde\xa4\x52\x08\x7e\xe6\xf9\
\xcf\xcf\x16\x8e\xc8\x02\x25\x3d\xf3\x32\x9e\x20\x9a\x8c\xb0\x75\
\xfe\x2c\xce\xbe\xfc\x12\xce\x9f\x3b\x8f\xcb\x97\x2f\x67\xfd\xa6\
\xdd\xe1\x18\x7b\x93\x29\x46\x51\x82\xa9\xd1\x73\x92\x00\x6e\x3b\
\xbc\x82\xff\xf9\xef\xfd\x28\x78\x12\xc3\xf5\x03\xb8\xbe\x0f\x37\
\xec\xe8\xf2\x9e\x0f\xc7\xf3\x33\xc6\xc4\x5c\x0f\x94\x39\x18\x8e\
\x46\x18\x0e\x87\x85\xb2\x5e\xfa\x7f\x11\x4f\x73\x97\xe8\xcc\xb6\
\x48\xbf\x79\x74\xbc\xb8\x94\xd6\x1d\x25\x27\x00\x84\x66\x3e\x7e\
\xf9\x6d\x68\x9e\x91\xda\x21\x19\x1b\x90\xac\x02\x79\x1b\x8b\xa8\
\x62\x16\x0d\x07\x85\x13\x49\xc1\x41\xf3\xa8\x8e\xf4\x83\xa1\xc5\
\x10\x7e\xe0\xc3\x75\x15\x6b\x92\x12\xf0\x3c\x57\x29\xf5\x18\x83\
\xe3\xb0\x82\x50\x42\x16\x4a\x96\xb2\xb0\xa7\x12\x10\x9c\xd9\xd8\
\xc0\xa5\xcd\x8d\x22\xd8\xcc\xcc\x2f\x99\xac\x89\x94\xde\x51\xe4\
\x8a\xde\xe8\xf6\xcb\x66\x7f\x22\x84\xc0\xb1\xa3\x47\xf4\x60\x6c\
\x1d\x28\xe5\xf7\x6c\x34\x1e\x43\x70\x6e\x1d\x7d\x3e\x68\x4e\x56\
\xd5\x23\xc9\x7c\xf2\x9a\x94\xea\x6a\x04\x0f\x99\xd3\xbc\x0e\xe9\
\xc5\x95\xa9\xf1\x5a\x40\x6a\x19\xd3\x6b\x5a\xca\x5b\x64\x76\xa9\
\xd0\x18\x25\x04\x94\x27\x31\x92\x38\x02\x73\x5c\xe4\xd3\xb5\x36\
\xe6\x54\x0a\x12\x2c\x9d\x2d\x70\xce\x31\x19\x0e\xb1\x71\xe6\x15\
\x84\xdd\x1e\x3a\xdd\x0e\xfc\xc0\x87\xa3\x07\x3d\xd3\xcd\x8e\x51\
\x75\xe6\xee\x51\xe5\x65\x40\x09\xf0\xb7\xbe\xe1\x2f\xe1\xe3\x1f\
\xf9\x08\x9e\x3b\xf5\x04\xbc\xb0\x0b\x9e\x24\x88\xc9\xa4\xc0\x30\
\x12\xf3\x81\x4a\x60\x34\x1c\x03\xda\xb5\x59\x65\x3c\xe9\x4d\x36\
\x89\x0b\x6a\xf8\xd4\x1b\x2e\x9d\xcd\x49\x4b\x55\x56\x66\xa2\x19\
\x9b\xef\xfb\x86\x8b\x79\xea\x7d\x63\x78\xf8\x98\xdf\x96\x7f\x36\
\x73\xd6\x6b\x9f\xe8\x37\xe9\x52\x31\x9d\xb4\xce\xd1\x54\xf5\x91\
\x04\x73\x0a\x2e\x0b\x52\x4a\x30\xaa\xc4\x0e\xae\xe7\xa9\xf8\x75\
\xc6\xe0\x3a\x4e\xd6\x67\xa2\x54\xa9\x12\x19\x25\x45\x39\x75\x09\
\xa6\x48\x56\xd2\x93\xf8\xd3\xcf\x3c\xa4\x04\x2a\x4e\x5d\x51\xae\
\xa1\xc2\xb0\xae\x5c\x3c\x77\xd6\x89\x58\x18\x52\xce\xac\x84\x94\
\x58\x5b\x5d\xd1\x2e\xf1\xb2\xe2\x76\x8b\x7f\x64\x3a\x9d\x1a\x33\
\x72\xf6\xbb\x94\x1b\x7d\x90\x2b\xd8\xc7\x49\xee\x93\x67\x63\x44\
\x45\xca\x5c\xc7\x09\x33\xe6\x7b\xf1\xe2\x25\x60\xbe\x79\xeb\x22\
\x03\xb6\xed\x6a\x81\xe9\x75\x01\xa7\x2a\x89\xb8\xd1\x30\x25\x02\
\x84\xd0\x24\x8e\x41\x99\x03\x47\x9f\x61\x37\xa9\x60\x14\x53\x6e\
\x75\x49\x8f\x48\x88\x24\xc6\x68\x6f\x17\xe7\x4f\xbf\x84\xae\x8e\
\xc5\x70\x98\x93\x9d\xcd\x3b\x8c\x69\xcb\x22\x40\x38\x0c\x2e\xa5\
\x60\x14\xf0\x19\xc5\xbf\xfa\xbf\x7e\x1a\xdf\xf2\x5d\xdf\x8b\xc9\
\x68\x04\x92\xca\xb8\xd3\x33\x7a\x59\x7c\x98\x0e\x80\x24\x02\x46\
\xa3\x31\x84\x10\xe8\x76\x3b\xf9\x6c\x8e\x10\x48\x06\x3b\x70\x83\
\x6b\xb2\x9d\x4b\x70\x91\x31\x1e\x69\x75\x08\xb7\x0c\x9c\x66\xc2\
\x09\x02\x42\x6a\xc0\xc5\x24\x0d\x1a\xa4\xb2\xdf\x91\x45\x19\xba\
\x24\xb3\x29\x43\xd9\x63\x2c\x94\x07\xed\x4f\x7e\x2c\x09\xb8\x06\
\xa0\x62\xbd\x4b\x82\x32\x86\xa0\xd3\x85\xe3\xb8\x70\x5c\x17\x8e\
\x9e\x63\x62\x5a\xa9\xe7\x39\x0e\x1c\x4a\x41\x75\x82\xaf\x19\x6a\
\x47\x0a\x6f\x20\x45\x9b\xa6\x71\x8c\x3f\xf9\xc8\x47\x54\xb8\x62\
\x13\xd0\xb1\xa0\x10\x69\x3a\x88\x7c\xc5\x9f\x02\x89\x30\xf0\x6b\
\xfe\xc0\xec\x85\xd3\xe9\xa4\x58\x9e\xb4\x30\x95\x66\xe0\x54\x65\
\x99\x95\xff\xb8\xe8\x93\xd7\xb4\x4a\x69\x8f\x58\x37\x2e\x6a\xd2\
\x5f\x9a\xa7\xca\x43\xcb\x9e\x5a\x60\x7a\xbd\xca\x7b\xb6\xa9\xef\
\xd9\x83\x80\x13\x10\x87\x94\x63\xb8\x0d\x86\x44\xa4\x9d\x35\x59\
\xc1\x09\x04\x10\x1c\xd3\xd1\x10\xbb\x97\x2e\xe2\xcc\xcb\x2f\x21\
\xec\x74\xe0\x7a\x2e\x18\x53\x71\x13\x94\x10\x38\x94\x42\x02\xe0\
\x52\x22\x74\x1c\xb8\x50\x9e\x45\xeb\x81\x87\xff\xfb\xe7\x7e\x06\
\x3f\xf0\x3f\xff\x00\x1c\xd7\x2b\x6e\x16\x85\xae\x71\xbe\x4d\xf2\
\x84\x60\x34\x1e\x23\x8a\x22\xac\xd8\xce\x98\x65\xda\x35\x4b\x9d\
\xb2\x49\x4d\x83\xa0\xf8\x7b\x52\x68\xd6\xa5\x01\x46\x12\x39\xa3\
\x82\x4b\xf1\xc5\x9e\xaf\xa8\xc0\xa9\x00\x6c\xc6\xc9\x7f\x06\x52\
\xd9\xc9\x80\xcc\x4c\x5a\xad\xf6\x79\x52\x89\x1e\x04\x75\xc0\x4a\
\xa0\x44\x40\xe0\x05\x01\x3a\xdd\x6e\x56\xc6\x73\x5d\x27\xeb\xef\
\xd1\xd4\xb5\x9c\xcc\xf6\xf5\x65\xe9\xff\x29\xa3\xdc\xdc\xde\xc6\
\xe7\x9f\x78\x7c\xa6\xbf\x44\xe6\x51\x9d\x52\x99\x8f\x34\x66\x47\
\x4d\x62\x04\x61\x37\x7e\x5d\x0c\x35\x01\x00\x1b\x1b\x9b\x45\xf9\
\x76\x5a\xb6\x2b\x29\x13\x8a\x2e\x54\x76\x73\xc6\x82\xd9\x70\xe9\
\x3d\x48\x80\xa2\x4f\x5e\x63\x86\x64\xff\x21\x21\x14\x27\x4f\x9e\
\x00\x0e\x36\x5c\x5b\x75\x42\xdb\xae\x16\x98\xae\x3a\x18\xcd\x2b\
\xe5\x95\x98\x92\x71\x10\x14\xf2\x7a\x6c\x1f\xea\xaa\x92\x9e\xed\
\xa4\x51\xb9\x42\x70\x4c\xc7\x43\x6c\x9d\x3f\x8b\x6e\xaf\x07\x3f\
\xf0\x75\xa4\xb9\x6e\xc0\x53\x5d\x42\x0b\x03\x7d\xa7\x99\x2a\x06\
\x52\xe0\x5d\x37\x1e\xc5\xdf\xfc\x81\xff\x05\xff\xee\x5f\xfe\x0b\
\xb8\x99\x18\xa2\xd4\x4c\x26\x40\x42\xcc\x6d\x83\x20\x89\xa6\xd8\
\xdd\xd9\xc5\xf2\xca\xb2\x92\x49\x3b\x6e\x19\xcb\x34\x06\x89\x42\
\x8f\x29\xe6\x5c\xf5\x92\x08\xcd\x41\xd6\x28\x01\x2a\x40\x20\x05\
\x10\x91\x04\x25\x36\x64\x77\xdb\x4c\xad\x5e\x53\x70\x82\xbe\x0d\
\x99\x1a\x8c\x6a\x70\xca\x80\xd6\xd8\xb0\xca\xbd\x74\x42\x80\x04\
\x04\x82\x3a\xda\x64\x94\x14\xbd\x6c\x09\x81\xeb\x79\x70\x3d\x17\
\x41\x18\xc2\xf5\xd4\xe3\xf7\x7d\x2f\x63\xab\xb2\x60\xe4\x6a\x93\
\xb7\x23\x93\xd5\x0b\x29\xf1\xd0\x23\x8f\x82\x27\x1c\x8e\x47\x8b\
\xaf\x3d\x4a\xfd\xa3\x06\x14\x88\x94\xe7\xb1\xc8\xe2\x6f\x76\x52\
\x4b\x98\x24\x8e\x1d\x39\x3c\x63\xaf\x5b\xb7\x26\x93\x49\xae\xca\
\x2c\x18\x17\x1b\xff\x90\x28\x95\x38\xab\x19\x96\x29\x42\xc9\x4e\
\x3e\x00\x50\xca\xd4\x0c\x53\x56\x40\xbe\x92\x72\x9e\xfa\xf7\xde\
\xee\x1e\xb0\xb8\x79\x2b\xda\x32\x5e\x0b\x4c\xaf\x47\xf9\xce\x06\
\x54\xa2\x21\x28\x25\x04\xe0\x4a\x6e\x5c\xf3\xb1\x6f\xdc\x6f\x52\
\xb7\x43\x41\xe1\x32\x02\xce\x13\x8c\x07\xfb\xb8\xf0\xea\x69\xf8\
\x41\xa8\x9c\x1c\x68\xee\x7a\x2d\xa5\x36\x79\x25\x29\x93\x71\x00\
\x50\x30\x42\xf0\xde\xaf\xfb\x0a\x3c\xfd\xf4\x33\x38\xf1\x89\x8f\
\xc2\xf5\x7d\xcc\x06\xf8\x65\x89\x3b\xd9\x26\xee\x80\x20\x8e\x15\
\x38\xf5\x7a\x3d\xb8\xd9\xc9\xad\x56\xd7\xe9\xdf\xe7\x5c\x66\xc6\
\xa4\x52\x02\x71\xc2\x67\x9f\x51\x42\x20\x04\x87\xe0\x1c\x40\xd1\
\x77\x4d\xa6\x1b\x59\x66\x30\x9a\x66\x3f\x99\x66\x9f\xc4\x9a\xc6\
\x9a\x27\x02\x1b\x17\xcb\xa2\xd2\x2f\x35\x69\x2d\x0f\xad\x46\x89\
\x40\x44\x5c\x50\x57\xb3\x25\x3d\x7b\x93\x9e\xf1\xbb\x9e\x0b\x3f\
\x08\xe0\x07\x01\x1c\xd7\x81\xeb\x38\x00\x24\x3c\xcd\x9a\x3c\xd7\
\xc9\x43\x12\x0d\xf6\x54\x2c\x5d\x42\x8b\x52\x24\x26\x51\x8c\x3f\
\xf8\xdd\xdf\xb5\x88\x4b\x90\x51\x2e\x62\x1b\xae\xad\x29\xa3\xcd\
\x65\x5a\x57\x88\x4e\x1d\x7d\xa2\xd3\x74\x3d\xf7\xfc\x0b\x05\xa6\
\x94\x2b\x13\xab\x58\x94\x2c\x9a\x83\xd4\x30\xa8\x4c\xc3\x29\x05\
\x1c\xcf\xc1\xa1\x43\x87\x66\x6d\xf2\xe6\x01\x91\xed\x3a\xfa\x36\
\x9e\x7b\xf6\x59\xcc\x01\xa4\xba\xef\x5b\x67\xf1\x16\x98\x5e\x57\
\xd6\xd4\x94\x29\x25\x39\x38\x19\x9b\xcc\xec\xb9\x63\x91\x0d\x95\
\xdf\xbd\x36\x70\x82\x21\x21\x8f\x95\x2b\xc4\xb9\x97\x5f\x54\x9b\
\xa5\xab\x07\x3f\xf5\xe6\xe8\x3a\x0c\x00\x81\xe7\x30\xfd\x60\xd4\
\xa6\xeb\x52\x8a\x7f\xf8\xc3\xff\x1f\xfc\xd0\xa5\x4b\x78\xe9\x99\
\xa7\x94\x8c\xdc\xfc\x9b\x34\x0f\xa9\x33\x6d\x68\x40\x80\x24\x8a\
\xb0\xbd\xb3\x03\x67\xe5\x30\xbc\x34\x2c\x50\xe6\xc6\xae\xa2\xf4\
\xd8\x12\xce\x8d\x0d\xc0\xec\x3f\x4c\xe1\xb9\x9e\x2a\x63\x49\x0d\
\x48\xba\x94\x27\x33\xe7\x6a\x32\x53\xe2\x53\x65\x3b\x73\x43\x21\
\x95\xbb\x6a\xb9\x7f\x91\x72\x20\x49\x4a\x99\x4b\x00\x38\x28\x04\
\x53\x20\x33\x43\x6f\x09\xe0\x7a\x1e\x3c\xcf\x53\xac\xc9\x75\x11\
\x04\x3e\x3c\xcf\x03\xd5\x36\x4c\x6e\x2a\xdb\xd7\xe2\x07\x6a\x76\
\xba\xa4\xc1\x96\x74\x24\xf9\xf9\x4b\x5b\x78\xee\xd4\xa9\x39\x65\
\xbc\xb2\x4c\xdc\xc6\xc1\xc8\x02\xc5\xb5\x66\x80\x64\x0a\x4a\xf2\
\x13\x02\x82\x30\x58\x0c\x98\x2e\x5d\xba\x54\x52\x1b\x22\x63\xc8\
\x4d\x00\x4a\xd6\x55\x10\x8c\x12\x9f\xa8\xf1\xc9\x3b\x28\x6b\x7a\
\xf9\xe5\x97\x64\xc3\x32\xde\xbc\x21\xdb\x16\x90\x5a\x60\x7a\xdd\
\x00\xca\x06\x4a\x65\x70\x8a\x01\xc4\x33\x72\x58\x7d\x16\x3f\x0b\
\x4e\x15\x8a\xbc\x32\x68\x91\xbc\xb4\x24\x39\xc7\x64\x30\xc0\x36\
\xd9\x80\xe3\xba\x70\x3d\x2f\x4b\x56\x4d\xd9\x53\xcc\x05\x3a\x81\
\x0f\x42\x08\xb8\x94\xf0\x18\x83\x60\x12\x7d\xcf\xc5\x3f\xfe\xf1\
\x1f\xc1\xf7\xfd\xf0\xff\x86\xe1\xde\x2e\x1c\xdf\xd7\x82\x88\xd4\
\x86\xa7\xe8\xd8\x90\xc4\xf9\x1d\xe2\x71\xa4\xb6\x0e\x82\xa2\xd4\
\x5b\xa2\xe8\x55\x66\xdb\x22\x75\xaf\x4c\x68\x8f\x3d\x32\xc3\x92\
\x64\x06\x8a\xd2\x88\x2e\x07\x91\x19\x60\x99\x00\x45\xea\xb1\xc9\
\x02\x52\xf9\xf3\x9c\xb2\xac\x58\x52\x48\xd7\x87\xeb\xfa\x19\xa8\
\x67\xb2\x61\x28\x95\x9e\x17\x04\x08\xc2\x10\xbe\xef\xc3\xf7\x15\
\x48\x79\xae\x03\xca\xb4\xe8\xc4\x71\xe0\x39\x4a\x78\xc2\x74\x0c\
\x86\xa9\x75\x03\x34\x5b\x12\x6a\xc6\xe9\xc3\x7f\xf4\x47\xe0\x49\
\x02\x47\xe7\x66\xe5\xe1\x7f\x64\x96\xb9\x5a\x3c\xe9\x0e\x26\x15\
\x6f\x20\x30\x81\x5d\x10\x90\xa6\xd5\x36\xff\x53\x12\x93\xe9\x34\
\x83\xd5\x42\x82\xee\x0c\x40\x19\x84\xa2\xc4\x6c\xad\xd1\x30\x7a\
\x56\x2c\x05\x7b\xd3\x27\xaf\x49\x59\x72\x1e\x58\x49\x29\x71\xe1\
\xfc\x79\x51\xd3\x63\x6a\x32\x68\xdb\xb2\xa5\x16\x98\x5e\xd3\x72\
\xde\xbc\x99\xa5\x19\x96\xa4\x41\x29\x21\x84\x24\x64\x26\xee\x7b\
\x51\x70\x9a\xe1\x4b\x59\x5a\x1a\x25\x44\x67\x37\x0d\xb1\x75\xe1\
\x3c\x5c\xcf\x87\x9b\x46\x5d\x68\xfb\x18\xae\x05\x06\x8c\x52\x44\
\x89\x83\xd0\xf3\x20\x3d\x07\x12\xc0\xb1\xa5\x2e\x7e\xee\x67\xfe\
\x09\xfe\xee\x8f\xfe\x14\x06\xbb\x3b\x1a\x04\x28\x08\x65\x3a\x63\
\x88\x64\x07\x08\x05\xc7\x34\xab\x93\x91\x34\xa9\x55\x88\xac\x67\
\x22\xf5\xc6\x2b\xa5\xe1\x18\x51\x2a\x45\x15\xfb\x51\xaa\xac\x45\
\x64\x0e\x3a\xaa\x2f\x64\xfe\xdd\x14\x84\x72\xa6\x24\x4b\xe1\x7d\
\xe9\xcf\xb3\x0d\xa6\x24\x2b\x37\x41\x3d\x63\x2f\xfa\x35\x88\x84\
\x44\x4c\x99\x72\xbf\x20\xd4\x32\x83\xa4\xdc\x1e\x54\x5f\xc9\x87\
\xe7\xab\x19\x26\x47\x1b\xe2\xaa\xde\x1e\x32\xe5\x64\xea\x74\x20\
\x8d\x32\xa0\x24\x2a\x77\x29\xe1\x1c\x42\x0a\xec\x8d\x46\xf8\xd0\
\xef\xfe\x2e\x18\x63\x76\xe5\x21\x29\xab\xed\x88\x95\x4b\x91\x6a\
\x9b\x3f\x94\x9e\xfc\x06\x5b\x74\xf5\x76\xae\x9c\x2d\x28\x82\xc0\
\x6f\xfc\xe1\x11\x42\xe0\xd9\xe7\x9e\x47\xd9\xbf\x55\x9a\x29\x8c\
\x86\xe8\x24\xef\xfb\xc9\x9a\x12\xf7\xac\x6a\x4f\xcd\x91\xf9\xe8\
\xf7\x7b\x99\xca\x13\x85\xec\xa9\xc6\xc1\x4c\x05\x60\x92\x42\x34\
\xf1\xc9\x6b\x62\x57\xd6\xae\x16\x98\xae\x7a\x7f\xc9\xf6\x46\x13\
\x35\x65\xbc\xc4\x38\x62\x80\xc4\x33\xa5\x0c\x69\x82\x93\x2d\xfe\
\xc1\x02\x4e\x33\x4a\x3d\xa2\xcf\x62\x95\x81\x68\xcc\x13\x4c\x86\
\x03\x6c\x9e\x79\x05\x8e\xeb\x82\x3a\xca\xfd\x9a\x50\x06\x29\xa1\
\xca\x53\x00\x62\xcf\x05\xd7\x03\xad\x5c\x4a\x04\x0e\xc3\xcd\x87\
\x56\xf0\x93\x3f\xf9\x63\xf8\x89\x1f\xfd\x09\x50\x47\xb3\x24\x42\
\x15\x6b\xca\x98\x13\xcd\xcc\x4c\x49\x92\xa8\xfb\xa1\xad\x69\x14\
\xf3\x51\x83\xb2\x22\x8b\xc4\x90\x46\xab\xc4\xd4\x72\x17\x3e\xf8\
\x98\x4e\x26\xe8\x74\xbb\xc6\x50\xa3\x66\x49\x26\x50\xa5\x20\x24\
\x8d\x12\x5f\x09\xa0\xca\x2c\x4a\x92\x34\x04\x8f\xcc\xd9\x9b\x25\
\x38\x18\xa4\xe3\x65\xde\x77\x65\x0b\x74\xc7\x71\xd0\xe9\x76\x11\
\x76\x3a\xf0\x7c\x0f\xbe\xaf\x4b\x78\xa9\x79\xab\xfe\xfb\x89\xe0\
\x2a\x87\x49\x08\x48\xc3\x5e\x48\x00\x80\x90\x88\x85\x00\x97\x2a\
\x9a\xfe\x89\x67\x3e\x8f\xcd\x73\xe7\xe0\x7a\x5e\x61\x56\xaa\xae\
\x8c\x37\xf3\x1e\x69\xae\x8b\xb8\x2a\x8b\x10\x02\x2f\x55\x72\x36\
\xfc\x10\x8d\xc7\x93\x19\xd6\x4c\x88\x6c\x00\x50\x15\xe0\x64\x91\
\x66\x12\x02\xc4\x71\x04\x29\x64\x49\x92\x7f\x30\x11\x04\xa5\x04\
\x93\xe9\x14\xdb\xdb\xdb\xc9\x82\xa0\x84\x96\x2d\xb5\xc0\xf4\x85\
\xee\x33\xd5\x81\x52\x0c\x20\x4a\x0f\x2b\x63\xaa\x39\x03\xac\x06\
\xa7\x99\x93\xc9\x5c\x2d\xc6\x1c\x24\x82\x63\x3c\xd8\xc7\xc6\xab\
\xa7\xe1\x7a\x2e\x1c\xc7\xcd\x82\xe7\x1c\x57\x31\x24\xae\xcb\x48\
\x09\xe7\xe0\xd2\x07\xa4\x07\x87\x49\xdc\x75\xc3\x31\x7c\xff\x8f\
\xfc\xaf\xf8\x57\x3f\xff\xf3\x60\x8e\xab\x59\x93\xb1\xe9\xeb\xe1\
\x51\x42\x29\x68\x1c\x67\xa0\x08\x28\xc9\xb7\x10\xbc\xd0\x67\x32\
\xfb\x07\xa9\x5d\x51\x59\x61\x95\xb9\xe3\xcd\x26\x0b\x1a\xaa\xac\
\x12\x40\x15\xc0\x29\x67\x0c\x69\xf9\x4f\x95\xe0\x88\x9e\x75\x32\
\xba\x25\x69\x5f\x4a\xa2\x28\x0d\xa7\x0c\xc4\x0b\x14\x40\x98\x73\
\x4b\xc6\x5d\x72\x5c\x27\x13\x3d\xa4\xa0\xa4\x18\x93\xb6\x81\x22\
\x8a\xb9\x42\x97\x31\x53\x71\x83\xd4\x19\x59\xc8\xcc\x6d\xd5\xf3\
\x33\x8e\x22\xfc\xf6\x7f\xfc\x8d\x52\x28\xe0\xac\xd9\x6f\x59\x0f\
\x9e\xa5\x00\x13\xf2\xfa\xbd\xeb\x0d\x66\x1b\x86\x01\x3a\x9d\x70\
\x21\x20\xfb\xba\xaf\xfb\x3a\x3c\xf1\xc4\x93\x98\x4e\xc6\x79\x22\
\xaf\x2c\xa5\xd6\x4a\xa3\xcc\x97\xc5\xa7\x1b\xec\x69\x66\xbe\xa9\
\x58\xdb\x96\x12\x38\x76\xcd\x71\x78\xbe\x97\xbf\x97\x48\x33\xd6\
\x64\x05\xab\x7c\x8c\x41\x34\x3c\x5a\xd7\x87\x16\x98\xbe\xa0\x60\
\xd4\x44\xf0\x10\x1b\x47\x0e\x4c\xb2\xda\xb2\xd9\x5a\xd2\xb3\x82\
\x56\x99\x62\xe5\xdf\x13\x3d\xbb\xc4\x45\x82\xe1\xde\x0e\xce\x9f\
\x7e\x59\xb9\x4c\xe8\x9d\x9b\x31\x06\x21\x84\x02\x24\xe1\x67\xf1\
\xe7\x42\x4a\xf8\x8e\x03\x97\x31\xfc\x95\xfb\xee\x06\xff\xe1\xbf\
\x83\x5f\xf9\x17\xff\x02\xcc\x75\x33\xb6\xa4\x98\x13\x43\xc2\x1c\
\x10\xc6\x40\xa8\xba\xad\xd4\x9a\x26\x55\xe5\x09\x99\x1f\xe6\xc3\
\xdd\xd8\x52\x51\x1a\x92\x54\x65\x8c\xcb\x8a\xfc\xba\x0a\x80\x32\
\x36\xed\x14\x84\x52\x61\x46\xa1\x3f\x65\x02\x54\x49\x28\x41\x20\
\x95\x49\xab\x13\x80\xb8\xbe\x1e\xa6\xa5\x85\x13\x5c\x15\x41\x4f\
\xe1\x07\x41\xe6\x4d\x18\x04\x01\x3c\xcf\x55\x87\x06\x27\x87\xb1\
\xcc\x53\x4f\x01\xbf\x02\x21\x82\xd4\x9e\x49\xa7\xd9\xea\x27\xe5\
\x85\x57\x5e\xc5\xa3\x9f\xfe\x54\x2e\x7a\x28\x60\x11\x99\x2d\xe3\
\x11\x93\x3b\xcd\x61\x48\x57\x5f\x88\x97\x3d\x17\xbe\xaf\xca\xc4\
\x4d\x77\xdb\x24\x49\xb0\xbe\x7e\x08\xdf\xff\x03\x3f\x88\x57\x5e\
\x79\x05\xff\xfd\x8f\x3e\x8c\xfd\xbd\xdd\xac\x44\x2c\x65\x3e\xa0\
\x96\xc1\x90\x34\xe2\xd3\x75\x0d\x54\x6a\x10\x9a\xa9\x2e\x18\xe2\
\x95\x4e\xa7\x03\x4a\x68\x36\x7e\x80\x03\xb3\x26\x95\x29\xb6\xb1\
\xb9\x89\x39\xfd\xa5\x79\x03\xb6\x2d\x5b\x6a\x81\xe9\x75\x07\xab\
\x32\x30\x95\xca\x77\x19\x28\x4d\x09\x21\x11\xc1\x9c\x33\xdd\xca\
\x7e\x13\x2c\x4a\x3d\x03\x8c\x4a\xfd\x26\xa5\xd4\xa3\x48\x52\xa5\
\xde\xe9\x97\x0a\xe0\xc2\x39\x57\x3d\x0e\x6d\xba\xaa\x8c\x46\x05\
\x02\xd7\x45\xe8\xb9\x08\x3d\x07\x5f\xf3\xc0\x3b\x30\x1c\x7f\x2f\
\x7e\xfd\x57\x7f\x35\x07\x27\x0d\x4c\x29\x28\x11\xea\x68\xb9\xb7\
\x98\xd1\x43\xa7\xc2\x07\x61\x80\x0d\x17\x7c\x26\x2a\xc3\xfc\xa5\
\xf4\x77\x08\x66\xc5\x02\x96\x53\xf7\xbc\xdc\x67\xf6\xa0\x0c\x80\
\x92\xd9\x80\xab\x2c\xfc\x4c\x2a\xe2\x87\x28\xe1\x10\xd4\x81\xd3\
\x09\x41\xbc\x40\xab\x18\xa9\x55\x95\xcc\x18\x53\x2a\x3c\xdf\x83\
\xe7\xfb\x08\xc2\x20\x63\x4c\xae\xa3\xa2\xd5\x59\x6a\x43\xa4\x05\
\x0f\x66\xd0\x78\x6e\xd5\xa4\x80\x69\x1a\xc7\xf8\xcf\xbf\xf9\x9b\
\x90\x42\x80\x18\xea\xbf\x2a\x2e\x4d\x1a\x66\xc1\x93\xd7\xb8\xa0\
\x27\xe5\x62\xfb\x6b\x2a\xb3\x1f\x8d\xc7\x58\x5f\x5f\xc7\x91\x23\
\x87\x71\xc3\x0d\x37\xe0\x33\x9f\xf9\x0c\x1e\x7b\xf4\x11\x4c\xc6\
\xe3\x7c\xac\x21\xd5\xf5\x1b\x2c\xaa\x00\x50\xd9\x67\x43\x97\xf4\
\x2c\x26\x10\xfd\x7e\x7f\x66\x82\xe0\x60\xac\xc9\xfc\x66\x6e\xdc\
\xc5\x3c\x40\x6a\x01\xaa\x05\xa6\xd7\x8d\x39\x99\x6f\x50\x3e\xa7\
\x8c\x37\x05\xc1\x34\x9d\x87\x21\x05\x75\x92\x6c\x08\x4e\x8b\x89\
\x21\x54\x7a\x2a\x01\x8f\x26\xd8\xdb\xba\x68\x88\x19\x28\x12\xce\
\x91\xe8\x40\xbf\x84\x8b\x2c\xdc\xcf\x64\x4f\x2e\x63\xf8\xab\xef\
\xfe\x73\xb8\x78\xf1\x9b\xf1\x47\xff\xf5\xf7\xe1\x38\x4e\x56\x47\
\x2a\x32\x28\x32\x53\xb6\x49\x85\x0c\xb9\x10\x42\xfd\x6c\x1a\xc5\
\xf6\x06\x7e\xe6\x40\x2e\xb3\x99\x23\x13\x99\x52\xa2\x49\x2c\x9f\
\x70\x22\x2d\x3d\xa6\x14\x84\x60\xf6\xa3\x14\x40\x49\x5d\x06\x8c\
\x41\x10\x81\x81\x7a\xa1\x3a\xb4\x82\xb1\xdc\x57\x92\x69\xff\xce\
\xf7\xe1\x07\xa9\x12\x4f\x1d\x81\xef\x69\xb6\x94\x7b\xe2\x29\x4b\
\x22\xa6\x24\xe3\x94\x16\x9e\x0f\x09\x99\x39\x5c\x3c\xfd\xe2\x8b\
\xf8\xd8\x07\x3f\x08\xe6\x38\x39\x20\x55\xba\x3d\x90\x62\x98\xed\
\x0c\x31\xb2\x95\xff\x6c\xe7\x3f\x57\x0e\x5a\x84\x10\x15\xf3\x41\
\x9b\xfb\x3b\x53\xaa\x98\x7a\x1c\x27\x10\x42\xe2\xc8\xe1\xc3\xf8\
\xc6\x6f\xfc\x46\xdc\xf1\xf6\xb7\xe3\x73\x4f\x3d\x85\xc7\x1f\x7b\
\x14\xe3\xc9\x18\x8c\x32\x03\x3f\xd4\x1b\xa1\x00\x50\x59\xbf\x50\
\x16\x4b\x7a\x46\x25\x62\x75\x6d\xad\x12\x9c\x17\x65\x4d\x84\x50\
\x9c\x3c\x71\x12\xb8\x32\xe3\xd6\xd6\x8a\xa8\x05\xa6\xd7\x14\x94\
\x80\x66\x6a\xbc\x19\xb6\xa4\x19\xd3\x34\xf3\x97\x93\x02\x3c\x89\
\x32\x06\x62\xcb\x80\x39\xa8\x18\x02\x48\x3f\xb8\x50\x19\x41\xbe\
\x87\xf1\x64\x8c\xdd\xad\x4b\x19\xeb\x49\x92\x04\x3c\xe1\xca\xe7\
\x2e\xe1\x4a\xb0\x80\xbc\x1f\x12\xc5\x0e\x18\xa3\x08\x5c\x07\xdf\
\xfa\xb5\x5f\x89\x28\x8a\xf0\xd1\x3f\xfc\x03\x38\x8e\x51\xd6\xd3\
\x8a\x3d\xd7\x0f\xd4\xc6\x9b\x44\x85\xb3\x6a\x21\x8a\xfd\x14\x21\
\x81\x9d\xdd\xbd\x3c\xd3\xc8\xec\x77\x93\xdc\x8d\x41\x42\xe6\x83\
\xb0\x15\x9d\x37\x82\xdc\x88\x55\x96\x94\x57\xa9\x53\x44\x59\x66\
\x9e\x0f\xe9\x02\x82\x32\x24\x8e\x0f\x37\xe8\xc2\x0b\x02\xcd\xfe\
\x0c\xc9\x98\xf1\x6a\x13\xa8\x81\xda\xb0\xd3\x85\x1f\x06\x4a\x89\
\x67\xce\x31\x39\x2c\x33\x74\x4d\xa5\xe5\x99\x2b\x81\x7e\x4e\x91\
\xce\x2c\xe9\xd7\x79\x1a\x45\xf8\xfd\xdf\xfe\x2f\x10\x42\x58\xca\
\x78\x85\x69\x25\x8b\xfd\x76\x0e\xbe\xf6\xe1\xdb\x1a\x10\x22\xf5\
\x3f\x6f\x02\x5b\x42\x08\xac\xaf\xad\xea\x13\x95\x46\x48\x06\xce\
\xb9\x06\x28\x9a\x7f\x98\xa4\xc4\x5b\x6f\xbf\x1d\xb7\xdf\x76\x1b\
\xee\xba\xeb\x2e\x9c\x3c\x79\x12\x9f\x7b\xea\x14\xe2\x28\x52\x27\
\x09\x59\x9b\x27\x05\xa8\x1c\x9c\x50\x00\x29\xe4\x02\x19\x10\xf8\
\x99\x5a\xb0\x6c\xd6\x6b\x3d\xa3\xa9\x65\x4d\x04\xc0\x70\x38\x68\
\xd2\x63\x6a\xea\x93\xd7\xae\x16\x98\xae\x2a\x20\xd9\xc0\x69\x5e\
\x6f\x29\x32\x80\x69\x02\x60\x92\x4b\x9e\x05\x64\xc2\x01\xca\x00\
\x2a\x80\x0c\xa0\x64\xe1\x03\x4d\x6c\x3d\x97\x39\x62\x88\xb4\xa0\
\x93\x82\x53\x18\x86\x90\x90\x18\x0e\xf7\xb0\x4b\x95\xca\x2e\x8e\
\x63\x70\x6d\x0f\xa4\x4a\x7a\x2a\x8e\x40\x48\x89\x98\x73\xb8\x8c\
\xc1\xf7\x5c\x24\x9c\xa3\xeb\xfb\xf8\xeb\x5f\xff\xd5\x58\x5a\x5e\
\xc2\x27\xfe\xf8\x23\xd8\xdf\xde\x56\xf3\x36\x84\xe8\xd4\x56\x06\
\x29\x05\xc6\xfb\x51\x21\x83\x29\x8b\x4b\x37\xee\x5a\x36\xcb\x42\
\x68\x19\x99\x32\x65\x5f\x56\x2e\x22\x28\x9c\x1d\x57\x75\xdf\xec\
\xdb\x4a\x3a\x0c\x9a\x03\x14\xa0\xbc\xef\xc0\x5c\x50\x2f\x80\x1b\
\x74\xe1\x7a\xde\x0c\x53\x92\x25\xb6\xc4\x18\x83\x1f\x76\x10\x76\
\xd4\xe1\xfb\x41\x36\xbc\xcc\x28\xd5\x72\x7c\x25\x7e\x70\x1d\xa6\
\xcb\xa2\x1c\x49\xc2\xc1\x08\x51\x0c\x29\x3b\xd1\x50\x20\xf5\xd4\
\x73\xcf\xe1\xa3\x7f\xf0\x07\x33\x9b\x7b\x39\x2d\x22\x17\xdc\x11\
\x34\xf2\x72\x98\x71\x20\x22\xaf\x89\x54\x2f\x8e\x63\x25\xf2\x68\
\xb8\x26\x93\x29\xa6\xd3\x08\xcc\x61\xc5\xd2\x9b\x7e\x83\xdc\x7e\
\xfb\xed\xb8\xe5\x96\x5b\xf0\xc4\x13\x6f\xc7\x67\x3e\xf3\xa7\x78\
\xf9\xa5\x17\xd5\xed\x13\x82\x19\xdb\x43\xfd\xba\x4a\x39\x5b\x3b\
\x00\x01\x0e\x1f\x3a\x3c\xfb\x4e\x39\xa8\xf3\x03\x80\xfd\xbd\x7d\
\xe0\x60\x83\xb5\x55\xa0\xd4\x82\x54\x0b\x4c\xaf\x09\x38\xd9\x0c\
\x5b\xab\x4b\x78\x1a\x98\x08\xa1\xd3\xc2\x5c\x0c\x21\x80\x14\x6a\
\x52\x5d\x18\x00\x45\x18\x8a\x29\x3d\xf5\xe0\x84\x52\x09\xaf\xdc\
\x17\x09\xb4\xd9\xa8\xd8\xb8\x80\xf1\xfe\x1e\x08\xa1\x10\x82\x83\
\x27\x09\x78\x92\x28\xf6\xc4\x39\xa4\x54\x0a\xbd\x4e\x18\x64\xa0\
\x14\xb9\x0e\x62\xce\xe1\x3b\x2e\xbe\xfe\x2b\xde\x8d\x3b\x6e\x7b\
\x0b\x7e\xf5\x57\xff\x1d\x76\x2e\x5d\x82\xe3\x7a\x10\x8c\x81\x32\
\x06\xc1\x93\xec\xde\x66\x91\x18\xb2\xdc\x22\x93\xd8\xdb\xdf\x9f\
\xa9\x47\xa5\x9b\x53\x1c\xab\xfb\xe3\x38\x0e\x3c\xcf\x2b\x3d\xfb\
\x69\x3f\x81\x64\x6c\x69\x36\x43\xa7\x28\x90\x48\xa7\x5a\x25\x01\
\xa4\x06\x24\xe2\x06\xa0\x7e\x08\x37\x08\xe0\xb8\xae\xea\x95\x19\
\x03\xb0\x45\xe6\xaa\xe2\xcd\x3d\xcf\x53\xc3\xb4\x61\x88\x30\x0c\
\xb5\xcb\x83\x9b\xcd\x86\x51\x5d\x32\x65\xda\xcd\xdd\x61\x14\x42\
\x48\x44\x5a\x4a\xef\xe8\xd8\x11\xaa\xa5\x80\xfb\xa3\x11\x7e\xe3\
\xdf\x7f\x40\x45\x85\x64\xa9\xb8\xa4\xb6\x8c\xd7\xb4\xbb\x64\x43\
\xad\xcc\x6d\xa4\xf4\xa3\x2b\xc1\x2b\x21\xe4\xc2\x8a\x40\x9a\x0a\
\x43\xca\xc6\xe0\xfa\x44\x86\x52\x8a\x77\xbd\xeb\x4b\xf0\xf6\x3b\
\xdf\x8e\xc7\x1f\x7f\x1c\x7f\xfc\xdf\xff\x08\xbb\x3b\x3b\xb9\xeb\
\x48\xca\xa6\xb5\xc5\x56\xb9\xc7\x24\xa5\x04\x25\x54\xf5\x98\x8c\
\x11\xa6\xca\xf2\x5d\xc3\xf5\xb9\xa7\x9e\x02\xe6\x07\x04\xb6\x65\
\xbc\x16\x98\xde\x50\x3d\xa6\x9a\xb9\xa5\x02\x5b\xf2\xa4\x14\xc3\
\xac\x94\x87\xd2\x59\x6d\x06\x50\x54\x01\x94\x2e\x93\xa1\x8e\x2d\
\xd8\xe6\x99\x0c\x70\x92\x42\x22\xe8\x04\xf0\x3c\x1f\x52\x0a\x1c\
\x39\x7a\x0c\x1b\x17\x2e\x60\xb4\xbf\x0b\x40\xaa\x0c\xa6\x28\x46\
\x1c\xc7\x48\x92\x04\x42\x0b\x22\x26\x51\x84\x30\xf0\xd1\x0d\xc3\
\xcc\xc5\x21\xe1\x02\xd3\x84\xe2\xba\x23\xeb\xf8\xae\xef\xfe\x4e\
\x7c\xe0\xdf\x7e\x00\xfb\x3b\x3b\x6a\x3e\x8a\x10\x44\x63\x55\xc6\
\x63\xae\xab\xe2\xd5\xcb\xb3\x4b\xfa\xae\x9e\x3e\x7d\x3a\x97\x62\
\xa7\x71\xec\x12\x00\x61\x10\x52\xb1\x0c\x21\x09\x04\x62\xa5\xee\
\x13\x1c\xae\xe3\xc0\xf3\x5c\x4b\xae\x92\xb1\xf9\x68\x07\x09\x69\
\x78\xe5\x09\x49\x21\x29\x03\xa3\x0e\xe0\xfa\xa0\x7e\x08\xcf\x0f\
\xf4\x6c\x57\x6a\xce\x4a\x4b\x2d\x25\x99\x09\x37\x00\xc0\x71\x5d\
\xf8\x61\x98\xcb\xc3\x7d\x0f\x9e\xef\x19\x43\xb5\xc5\xc1\xe3\x54\
\x29\x98\x4a\xdf\xa5\x14\x90\x92\x42\x6a\x95\x1e\x20\xf1\xb1\x4f\
\x7c\x12\x27\x3f\xf9\x49\xb8\x9e\x67\x2d\x7b\x81\x98\xa5\x3a\x83\
\x2c\x11\x5b\x09\xaf\x28\x25\x37\x21\x8c\x34\x72\x15\x5f\x1c\xa1\
\x84\x10\x38\x7e\xcd\xd1\x85\x18\x53\x5a\xc6\xa3\xa5\xaa\x80\xe9\
\xa8\x01\xcd\xb6\x03\xdf\xc7\xbb\x1f\x7c\x10\x77\xbc\xed\x6d\x78\
\xee\xb9\xe7\xf1\xe1\x0f\xfd\x21\x76\x77\xb6\x75\x09\x59\xbd\xaf\
\xd5\x89\x44\xd1\x11\x42\x4a\x01\xcf\xf5\x70\xcd\xf1\xe3\xa5\xd8\
\x96\x0a\xd1\x43\x03\x16\x25\xa5\xc4\xab\xaf\xbe\xc2\xd1\xcc\x23\
\xaf\x09\x20\xb5\xe0\xd4\x02\xd3\x6b\xda\x63\xaa\x2a\xe3\x25\x1a\
\x90\x5c\x0d\x4a\x6e\x7a\x24\x71\xbc\xad\xe2\x9e\x85\xde\x50\xd2\
\x1a\xb8\x21\x01\x92\x12\x92\xc7\xaa\xc4\x27\x45\x36\xcc\xaa\x4c\
\x2f\x17\x03\x27\x3f\xf0\x11\x74\x3a\x99\xcb\x32\xa3\x14\x47\x8f\
\xa5\xe0\xb4\xa7\x7a\x40\x9c\x23\x8e\xa6\xe0\x49\x02\xa9\x6d\x81\
\xba\xbd\x1e\x38\xef\x6a\x49\x79\x00\x9f\xbb\x70\x1d\x07\xae\xc3\
\x90\x24\x02\x37\x5e\x73\x04\xdf\xf9\xdd\xdf\x89\xdf\xff\xbd\xff\
\x86\x8d\x33\x67\x73\x77\x02\xdd\x2b\xc9\x4a\x79\x04\x99\x91\x29\
\xa4\x7e\xb2\xf4\xf0\x2d\xa1\x12\x5e\xd8\x41\x12\x27\xa0\x8e\x0f\
\xe2\xe4\x67\xbd\xa9\x42\x50\x12\x01\xa1\xfb\x4d\x44\x90\x3c\xcd\
\xd6\x2c\xff\xa5\x7f\xdb\x18\x00\x26\x3a\x06\x5d\x32\x07\xc4\xf1\
\xc0\x7c\x1f\x8e\xa7\x00\x29\x1d\x34\xa6\x94\x2a\x59\x5e\x49\xe8\
\x90\xf3\x4f\x9d\xb7\x14\x84\x08\x3b\x1d\x04\x61\x3e\xb7\xe4\xb9\
\xea\xf9\x70\x1c\x96\x7d\x25\xe9\x63\x14\x42\xf7\x92\x68\xc6\x04\
\xa4\x94\x10\x5c\x6d\xa6\xaf\x9e\xbf\x80\xff\xf0\xcb\xbf\x5c\x5d\
\xc2\xb3\x70\xa5\x32\x5f\x22\xb0\xb6\xa4\xe6\xf6\x8f\x66\xa6\x70\
\x89\xa5\x7c\xd8\x10\xa5\x3c\xd7\xad\xbd\x6a\x81\xcf\x6a\x3b\x22\
\xaa\x85\x21\x33\x49\xc4\xa6\x75\x90\x61\x2d\xb4\xbc\xb2\x82\xfb\
\xee\xbf\x0f\x37\xde\x74\x23\x3e\xfd\xe9\x4f\xe3\x91\x13\x27\x30\
\x1e\x0d\xb5\x9f\xa2\x34\xca\xad\x14\x80\x1a\x59\xe0\x82\x1f\x68\
\xb4\xab\xaa\x9c\x27\x01\x4c\x27\x13\xd9\xb0\x94\x37\xcf\xb8\xb5\
\x5d\x2d\x30\xbd\xa6\xe0\x24\x6a\x18\x53\xac\x9f\xb3\x48\x7f\x4d\
\x81\xc9\x01\xe0\x66\xae\xd9\x32\x4d\xc7\x94\x33\xce\xd9\xaa\x3f\
\x22\x20\x05\x07\x28\x05\x24\xcb\xdd\x16\xd2\xb2\x56\x0d\x38\x01\
\x04\x42\x72\xf8\xbe\x9a\xb5\x11\xba\xf1\x9c\x81\xd3\xd1\xa3\xb8\
\x74\xe9\x12\xc6\xa3\xa1\x1a\x88\xe5\xca\xd9\x3b\xf5\xab\x8b\xe2\
\x38\x93\x92\x27\x49\x82\xd8\x0f\x10\xf8\x1e\xb8\x76\xd1\x8e\x39\
\xc7\x4d\xd7\x1e\xc3\xf7\x7e\xcf\xdf\xc0\x87\xfe\xf8\x13\x38\xf1\
\xc9\x4f\xc2\x0b\x3b\x70\x7d\x5f\x25\xe7\xa6\x62\x86\x72\x3c\xb8\
\xde\xf2\x09\xa3\x00\x28\x88\xe3\xc1\xeb\xad\xc0\x95\x00\xa4\xd0\
\xc3\xb9\x42\x95\xb8\x4c\xcf\x3d\x21\x66\x7a\x56\x99\x00\x80\x12\
\xf5\x1c\x51\xed\x09\xa8\xcb\x45\x94\x39\x60\xae\x1a\x2c\x66\x29\
\x43\xca\x00\x89\x16\xee\x5b\xf1\xec\x5a\xfb\xe1\x39\x0c\x7e\x06\
\x4a\xa1\x9a\x59\x4a\x15\x78\xd9\xcc\x92\x93\xcd\x2e\x29\xe6\x94\
\xdf\x4c\x9a\xde\xcb\xb9\x48\x27\xac\x10\xc7\x11\x7e\xfd\x03\x1f\
\xc0\xf6\xa5\x4b\x70\x3d\x77\x46\xb0\x90\x82\x50\x91\x15\xc1\x18\
\xa8\x9d\x69\x25\x59\x7b\x53\x95\xfd\xa5\xab\x34\xf4\x24\x84\x44\
\xbf\xd7\xb5\xfe\x4e\xe1\x35\xd7\x74\x58\x12\x82\x28\x8a\x8a\xce\
\x1d\x86\x1e\xbf\xcc\x9a\xca\x60\x75\xf4\xe8\x51\x7c\xcb\xb7\x7c\
\x0b\xee\xba\xeb\x2e\x3c\xf9\xe4\x29\x3c\xf6\xc8\x09\x8c\x46\x23\
\x50\x42\x15\x88\x08\x01\x80\x42\x42\x60\x69\x69\x19\x47\x0e\x1f\
\x99\x91\xb4\x1f\xa8\x9c\x47\x08\xe2\x38\xc6\xee\xee\xee\x22\x1e\
\x79\xed\x90\x6d\x0b\x4c\x6f\x28\xc6\x94\x00\x60\x1a\x98\x98\xe5\
\xa0\x84\x10\xff\xa5\x67\x3e\xf7\x2b\x52\xca\xae\x10\xa2\x73\xeb\
\xdb\xef\xfe\x66\x25\x1f\x56\x67\xe8\x29\x40\x21\x55\xa5\x69\x00\
\x93\x22\x56\x76\x42\x70\x8c\x7a\x7b\x49\x68\x6e\x80\x93\x90\x52\
\x49\x9b\x7d\x5f\x4b\x93\xf3\x52\xa0\xd4\xb5\xfe\xa3\x47\x8f\x62\
\x7f\x30\xc0\xa5\xad\xcb\x59\x26\x10\xe7\xaa\xc7\x13\xc7\x31\xa2\
\x28\x42\x12\xc7\xe8\xf5\x7a\x88\xe3\x04\x49\x12\x20\x08\x7c\xb8\
\x0e\x07\x63\x14\x71\x92\x20\xf0\x3c\x7c\xd5\x57\x7c\x19\x96\x97\
\x97\xf1\xe4\x67\x3f\x8b\x4b\xe7\xcf\x21\x89\x62\x9c\x7b\xe5\x65\
\x1c\x3a\x72\x18\xd7\x5e\x73\x0c\x66\xeb\x9e\x4b\x89\x73\xaf\xbe\
\x8a\xce\xea\x61\x10\xea\x28\x5f\x33\xc0\x00\xc7\x04\x52\x0b\x31\
\xa4\x30\xc1\x49\x14\xad\x9b\x50\x2c\x77\xa5\x32\x6b\xc5\x94\x54\
\xcf\x8b\x39\x0c\x94\x39\xfa\x60\xb9\x85\x92\xd1\xcb\x29\x38\x53\
\xc8\xbc\x84\x47\x29\x81\x1f\x04\x08\xbb\x1d\x04\x9d\x50\xb1\xa5\
\x40\x95\xf1\x1c\xd7\x55\x7d\x24\x87\xe9\x08\x7b\x1d\x6d\x81\x1c\
\x88\x33\xe1\xbb\x14\x90\x92\x40\x08\x09\x4a\x08\x3e\xf9\xa7\x9f\
\xc1\x27\x3f\xf4\x87\x70\x5c\xa7\xc0\x87\xca\x20\x04\x94\x8d\x59\
\x6d\xd7\x9d\x2d\xe5\x11\x8b\x2f\x51\x39\x42\xa3\x91\x0e\x6f\x2e\
\x73\x92\x08\x82\xc0\xe2\x08\xa4\x4e\xad\xf6\xa7\x11\xa6\x31\x07\
\xa4\xc0\x4a\xa0\xec\x9d\xa6\xd3\xa9\x7a\x7d\x18\x2d\x64\x64\x55\
\x02\x93\xd1\x7b\x4a\xaf\xf7\xb6\xb7\xbe\x15\x6f\xbd\xfd\x76\xbc\
\xe3\x1d\xf7\xe0\xa1\xcf\x3c\x84\x53\x4f\x3e\x8e\x48\xdf\x6e\xfa\
\xac\x7b\x9e\x8f\x5e\xbf\x9f\x9f\xba\xcd\x2b\xdf\xd5\x0d\xd7\x42\
\x01\x53\x1c\xc7\x89\xf1\x39\x6f\x2a\x19\x47\x0b\x48\x2d\x30\xbd\
\x11\x7a\x4c\x55\xc0\x44\xf5\x41\x84\x10\x64\x34\x18\x24\x00\xba\
\x94\xb1\xe5\xcf\x3d\x76\xf2\xd7\x28\x21\x5d\xc7\x75\x97\x01\x04\
\x52\x22\x94\x52\x78\x00\x02\x00\x3e\x24\x7c\x00\xbe\x84\xf4\x6f\
\xbb\xeb\x1e\x5f\x8a\x48\x95\x2d\x68\x11\xa0\x4c\x70\x4a\xa7\xf2\
\x97\x96\x96\xe0\x79\xbe\x2a\x2b\x59\x86\x73\x25\xa0\xdc\xa1\xa5\
\xc4\xc5\xad\x4b\x9a\xa1\x29\x80\x48\xe2\x18\x93\xf1\x18\xd3\xc9\
\x14\x51\x14\x61\x69\xa9\x8f\x28\x8a\x31\x8d\x22\x78\x9e\x0b\xdf\
\xf3\xe0\x3a\x0e\xa6\x51\x0c\x87\x31\xfc\xf9\xfb\xff\x1c\xee\x7e\
\xfb\x5b\x71\x79\x67\x17\x9c\x27\xd8\xdd\xdd\xc3\xde\xee\x2e\xb6\
\xb6\xb7\xc1\x28\x41\xc2\x13\x5c\x0c\x43\xec\x8d\x26\xd8\xdd\xdd\
\x43\xd0\x5f\x03\xa1\x54\xff\xad\x28\x3b\xb3\x16\x82\x6b\x60\x12\
\x39\x4b\x4a\x81\xa9\x70\x46\x9e\xc7\x86\xa4\x2c\x8a\x68\x9b\x24\
\xaa\x59\x13\xd1\x00\x65\x82\x91\x99\x86\x9b\x95\x05\x8d\x43\xca\
\x54\xec\xe0\x2b\x96\x94\x1e\xda\xe5\x21\x7d\xdc\x8e\x96\x87\x33\
\x1d\x9b\x5e\x64\x5e\x39\xc0\x49\xfd\x98\x00\x82\x17\x5e\x79\x15\
\xff\xf1\x57\x7f\x15\x36\x5d\x37\xa9\x28\xe2\xd9\x44\x0f\x95\xde\
\xac\x33\x72\x72\xcc\xb0\xd5\xe2\x5f\x20\x57\xf4\x21\x58\xee\xf7\
\x4a\x4c\x5d\xbd\xf7\xb6\x27\x11\xb6\xa7\x49\x26\x76\x19\x8d\xa6\
\x08\x28\xc1\x1e\x27\x58\x5e\x5d\x41\x32\x99\x22\xe6\xc9\xcc\x0c\
\x94\x84\xac\xdc\xbe\x25\xf2\x74\x63\x42\x29\xde\xf6\xb6\xb7\xe1\
\x96\x5b\x6e\xc1\xa9\x53\xef\xc0\x47\x3e\xf2\xc7\x38\xf3\xca\x69\
\xf0\x44\x89\x22\x26\x93\x31\x38\x4f\xa0\x4f\x79\x0e\x56\xce\x33\
\xde\x6b\x9b\xca\xf5\x61\x1e\x5b\x6a\xf3\x97\x5a\x60\xfa\x82\x01\
\x12\xa9\x60\x4c\x65\x70\xa2\xa5\xc3\xd6\x01\x10\x42\x0d\x76\x4c\
\x38\x30\xe6\x9c\x0f\x01\x84\x1a\x90\x82\x0c\x98\xf4\x57\x42\x48\
\xf0\xf4\x63\x8f\x78\x84\x52\x9f\x31\xe6\x43\xc2\x05\x81\x93\xfb\
\xee\xd1\xec\xc3\xfd\x96\x3b\xdf\x09\xcf\x57\xae\xd7\x42\x88\x99\
\x72\x5f\x11\x9c\x24\xfa\xfd\x3e\xa4\x94\xd8\xbc\xb8\x09\xa9\x95\
\x79\x3c\x49\x30\x9d\x8c\x31\x9d\x4c\x10\x45\x53\xc4\x51\x84\x6e\
\xaf\x87\x28\x0e\x11\x86\x01\xa2\x28\x86\xeb\xba\x2a\xad\x95\x10\
\x50\x42\xe1\xb9\x0e\xae\x3d\x7a\x18\x52\x4a\x5c\x7b\xcd\x51\x08\
\xae\xca\x82\x42\x08\x5c\xb8\xbc\x8b\x84\x5f\x06\xe7\x02\xdf\xfa\
\xdd\x7f\x03\xe7\xce\x5d\xc0\x89\x4f\xff\x29\x76\x2f\x6f\xc1\xd3\
\xfd\x02\xce\x13\x50\x2e\x00\x47\x18\xa2\x81\x1c\x30\x8a\x65\x22\
\x23\x08\x50\x5f\x27\x8d\xf6\xc8\x07\x7f\x0d\x20\x2a\x39\x30\x14\
\x0c\x64\xd3\xff\x34\xa8\xb8\xae\x87\xa0\x13\xe6\x82\x07\xcd\x94\
\x3c\xcf\xd3\x5f\x53\xfb\x21\x47\xcf\x2d\x95\xcb\x57\x79\x2d\x4f\
\x70\x01\x42\x09\xb6\xb6\x77\xf1\xfe\x7f\xf9\x2f\xb1\x71\xe6\x8c\
\x52\x02\xce\x0c\xc9\x92\x62\x2f\xa9\x6c\x41\x54\x12\x43\x54\x2a\
\xf4\x48\x5d\x27\x6a\x7e\xc9\xae\x31\x54\x49\x89\xf5\xb5\xd5\x19\
\x60\x19\x44\x09\x36\x46\x11\x3c\x6d\x80\x4b\x35\x6e\x8d\x84\xc4\
\xca\x91\xa3\xe8\xae\xac\x60\x3c\x1a\x61\x7f\xe3\x02\xe2\xc9\x58\
\xcd\x70\x51\x0a\xe6\x38\x10\x5c\x60\x34\x1e\x67\x00\x9f\x24\x49\
\xe6\x28\x12\x47\x31\x40\x69\xae\xe0\x03\xe0\x3a\x0e\xbe\xe4\x4b\
\xfe\x1c\x6e\xb9\xe5\x2d\x78\xea\xa9\xcf\xe1\xc3\x1f\xfa\x43\x5c\
\xdc\xb8\x80\x9b\x6e\xb9\x15\x41\x10\x54\xdb\x7e\x35\x29\xe7\x19\
\x2d\x5f\xae\x94\x95\x1c\xb3\x91\x36\x07\x19\xb0\x6d\x01\xaa\x05\
\xa6\xd7\x85\x31\x49\xfd\x46\x4d\x41\x28\xa9\x01\x25\x13\xd8\x4c\
\x20\x33\x95\x7b\xbe\x01\x4a\xe9\xe1\x49\x29\xd5\x57\x21\xfc\x44\
\x08\x4f\x9f\x0e\x7a\xba\x77\x95\xfe\x9b\xb9\x9e\x87\xd3\xcf\x9c\
\x42\x10\x86\x78\xe7\xbb\xff\xc2\xac\xd0\xdc\x22\x31\x97\x90\x58\
\x5a\x5e\x82\x94\x02\x5b\x5b\x5b\xba\x8c\xc6\x11\x47\x11\x26\xe3\
\x31\xa2\xa9\x02\xa6\xe5\xc9\x04\x41\xa7\x83\x20\x08\xd0\xed\x74\
\xe0\xf9\x3e\x26\x93\x09\x5c\x4f\x0b\x01\xb8\xb2\xe3\x21\x99\xd2\
\x4e\xff\x5d\x9d\xc8\x4a\xd5\x94\x14\xfa\xbd\x2e\x6e\xbd\xe5\x66\
\x1c\x3e\x7c\x08\xaf\xbc\x7a\x06\x4f\x9e\x7c\x44\x45\x6c\x50\x0a\
\xe2\x01\x92\x0b\xcd\x32\x30\x53\x6e\x83\x59\xf2\x49\x11\x36\x8d\
\x4d\xd7\x33\x55\xc5\x72\xd6\x6c\x79\x26\xfb\x9d\x8c\xdd\x48\x40\
\x6a\x2f\x3b\xe6\xc0\xf3\x83\xbc\xa7\xe4\x79\xf0\xdc\xd4\x41\x5c\
\x01\x52\xea\x8d\xe7\xba\x39\x63\x4a\xa5\xe0\x29\xf4\x09\x21\x20\
\x34\xa0\x08\x2e\xf1\x5f\x7f\xef\xf7\x70\xea\x91\x93\x86\x0a\x2f\
\x1f\x92\x25\x25\xe5\x5d\xfe\xed\xec\xf9\x4c\x56\x94\x2b\x2b\xf7\
\xca\xa0\x56\xea\xf7\x98\x8e\x12\x33\xc2\x87\x03\x12\x27\xd7\x71\
\x0b\xdf\xc7\x09\xc7\xe9\xed\x3d\x80\x3a\x48\x28\x85\x23\x89\xfa\
\x00\xa4\x52\x7a\x46\xe1\xba\x0e\x82\xb0\x83\xfe\xf2\x32\x64\x12\
\xc3\xa7\x04\xbb\x97\x2e\x62\xb8\xb7\x0f\x42\x29\xba\xdd\x4e\x76\
\xdf\x52\x95\xa5\x90\x02\xaa\x92\x56\x7c\x5c\x9c\x73\x8c\x46\x63\
\xac\xac\x2c\xe3\xc6\x1b\xae\xc7\x3b\xdf\xf9\x0e\x3c\xfc\xf0\x09\
\xf4\xfa\x3d\xed\x93\x27\x6d\xaf\xfe\x42\x3c\x91\x10\x8a\x67\x9f\
\x7b\x16\x28\x0a\x9c\x0e\x3a\x60\xdb\x82\x52\x0b\x4c\xaf\x2b\x6b\
\x22\x06\x38\x91\x1a\x96\x54\xfe\xbd\x54\x28\x31\x2d\x01\x93\x67\
\x7c\x2d\xff\xdb\x06\x48\xd9\xf7\x71\x14\xf9\x71\x14\x79\x9d\x6e\
\xcf\x7b\xea\xe4\x43\xb8\xf3\xde\x07\x66\x47\x9b\x2c\x2a\x3e\x29\
\x25\x96\x97\x57\xd0\xe9\x74\xb1\xb5\x75\x09\xc3\xdd\x6d\xe5\xa5\
\x17\x47\x88\xa7\x13\x44\x93\x31\xa6\xe3\x31\x7a\x4b\x4b\xe8\xf5\
\xfb\x88\xa6\x53\xf8\x41\x88\x4e\x27\x84\x9f\x70\x44\x8c\x2a\x1f\
\x39\x6d\x53\x23\x8d\x79\x13\x4a\x29\x64\x6a\x75\xa4\xe7\xa4\xe2\
\x38\x86\xe3\x38\xb8\xe1\xfa\xeb\xb0\xba\xb2\x82\x8d\x8d\x0d\x5c\
\x38\x73\x16\x9b\xe7\xce\x21\x89\x23\x30\xe2\x68\xec\x10\x86\xe3\
\x4c\xa9\x2f\x64\x94\xf8\xc8\x4c\x6e\x79\x11\xbc\x8a\x3d\x0c\x99\
\x65\x23\xc9\x8c\x8d\x11\x30\x47\xf9\xe0\x65\xae\x0e\xa9\x73\xb8\
\xe7\x2a\x2f\x3c\xdd\x5b\x62\x54\x09\x1d\x98\x9e\x57\x4a\xe5\xe2\
\x29\x5e\xa4\x0c\x8e\x73\x01\x41\x24\xfe\xe0\x83\x7f\x80\x8f\xfe\
\x3f\xff\x4d\x07\x00\x16\x2d\x93\x32\x80\x41\xd1\x8c\x16\xa4\x64\
\x3f\x44\xaa\x59\xcd\x2c\xfe\x96\xcb\x78\xf3\x4a\x86\x8b\xd2\x25\
\x25\xfb\x5e\xea\xf7\x0a\x27\x0f\xe3\x28\xc2\xf9\xcb\xbb\xe8\x84\
\x01\xc2\x20\x40\xe0\xaa\x39\x2f\x47\x0b\x5d\xa8\x7e\x2c\x94\xaa\
\xe4\xdb\x43\xdd\x15\xf8\x8c\x61\xb4\xba\x82\xc7\x1f\x79\x34\xf3\
\x9b\x22\x30\xc4\x33\x20\x60\x84\xc1\x09\x9c\x22\x98\xea\x7f\xf4\
\xba\xdd\xec\xf2\x23\x87\x0f\xe1\x9d\xf7\xdc\xa5\xfd\x08\x85\xd1\
\x25\x6a\xfa\xc9\xb6\x27\x1e\xef\xed\xee\x01\xc5\x7c\x35\x5e\x03\
\x54\xed\x0c\x53\x0b\x4c\x5f\x70\xc6\x24\x0c\xf0\x49\x19\x10\xd1\
\x6f\x60\x58\x80\x49\x5a\xd8\x92\x39\xeb\xe4\x37\x01\x1f\xcb\x57\
\xf3\xdf\x3e\x00\xef\xf2\xc5\x8d\x00\x80\xff\xc4\x43\x9f\x0a\x19\
\x73\xd8\x9d\xf7\x3e\x50\x64\x1e\x36\x70\x82\x84\xeb\xba\x38\x7c\
\xf8\x08\x70\xf1\x22\x46\xc3\x3d\x08\x9e\x40\x24\x09\xa2\xb1\x02\
\xa6\xf1\xda\x1a\x26\xe3\x31\xba\xfd\x3e\x7c\x7f\x84\xe1\xc0\x87\
\x1f\xf8\xe8\x74\x3a\x99\x13\x82\xa7\x1d\x21\xa4\xde\xc0\x52\x79\
\x30\xe7\x22\x13\x59\x24\x09\x57\x6a\x3f\x3d\x4c\x7b\xfc\xf8\x71\
\x1c\x3d\x7a\x04\xdb\x37\xdf\x8c\xf3\x67\xcf\xe2\xe2\xf9\x73\x98\
\x8c\xc7\xba\x45\xa7\x81\xa7\x90\xed\x94\xaa\x16\x67\xfb\x29\xa9\
\x4c\x5d\xca\xd9\x97\xcc\x54\xf9\x01\x52\x31\x3c\x2d\x8c\x60\x7a\
\xa8\x37\x0d\xfe\x73\x5d\x57\x95\xf1\x74\x0a\x30\xd3\x82\x07\xa6\
\x13\x6a\x59\x5a\x3a\x24\x46\xe9\x4e\x08\x08\x42\x90\x48\x09\x4a\
\x81\x53\xa7\x9e\xc2\x1f\xfe\xf6\x6f\x63\x3a\x9e\x64\xfd\xae\x59\
\x71\x43\x09\x8f\x48\x99\x2d\xcd\x8a\x1e\x88\x2d\x11\xb0\xb2\x8c\
\x67\xfb\xf7\xfc\x38\xf6\x99\xdb\x32\xae\xc2\x28\x55\xa0\x90\x46\
\x7b\x08\x81\xa7\x5f\x3d\x8f\xcd\xcb\xdb\xe8\xf7\x7a\xe8\x44\x31\
\x42\xdf\x47\xe0\xb9\xf0\x3d\x17\x9e\x56\x2d\x3a\x7a\xec\xe1\x70\
\x37\x84\xcf\xd4\xbf\x03\xcf\xc3\xd2\xea\x0a\xf6\xb6\x77\x2c\x73\
\x51\xe9\x6b\x9d\xbb\x80\x00\xca\x35\xbe\xdc\x27\x4b\x61\xa5\xda\
\xbf\xef\x00\x26\xae\x00\xb6\xb7\xb7\x65\x05\x28\x35\x89\xbe\x68\
\x59\x52\x0b\x4c\xaf\x3b\x5b\x92\x16\xb0\x21\x96\x4f\x7f\xd5\x75\
\x4d\x60\xf2\x34\x63\x2a\x03\x8f\x79\x78\x35\xdf\x7b\x25\x86\xe5\
\x03\xf0\x2f\x5f\xdc\x0c\x00\x04\x4f\x3c\xf4\xa9\x2e\x63\x8e\x77\
\xd7\x7d\x0f\xe6\x7d\x27\x9b\xbf\x9e\xb6\xdf\x39\x76\xec\x18\xf6\
\xf6\xf6\xb0\xb9\xb9\x01\x1e\x47\xe0\x49\x8c\x68\x3a\xc1\x64\x34\
\xc4\x64\x38\xc4\x78\x79\x05\x9d\x7e\x5f\xc9\xd1\xc3\x10\x93\xc9\
\x04\x41\x10\xc0\x75\x3d\xb8\xae\xa3\xfd\xf4\x14\x5b\x62\x4c\x59\
\xd0\x70\x3d\x74\x2b\x0c\x6f\x3e\x21\x38\x04\xd7\x89\xb7\x82\xa3\
\xbf\xd4\x47\x10\xde\x82\xa3\xd7\x1c\xc3\x60\x7f\x80\x68\x3a\xc1\
\xf6\xd6\x65\xec\xef\xee\x40\xf0\xa4\x18\xbd\x2d\x8d\xde\x4e\x2a\
\x00\x91\xa5\x8c\x1e\x6d\x9a\x0a\x03\x90\x08\x21\xa0\x0e\x53\x33\
\x35\x4c\x05\x28\x2a\xc1\x04\x55\xf7\xdf\xf3\xe0\xb8\xda\x31\x5c\
\x7f\x4d\xa3\x2c\xa8\x16\x3c\xe4\xc2\xf7\xbc\x88\xa6\xa4\xee\x2a\
\xae\x1e\x94\xe0\xf9\xe7\x5f\xc2\xfb\xff\xd9\x3f\xc3\x70\x7f\x5f\
\x83\x12\x32\x46\x40\x4a\x20\x53\x66\x50\x36\xb6\x34\x23\x82\x28\
\x24\xad\x2f\x56\xc6\x6b\xdc\x65\xaa\xba\x3e\x51\x0c\x33\xf5\x01\
\x14\x42\xe0\xfc\xc6\x26\xce\x5e\xb8\x84\xd5\xd5\x55\xf4\xfb\x3d\
\x74\xc2\x10\x61\xe0\x23\xf0\x3c\xf8\x9e\x0b\xdf\x75\xe1\xb9\x0e\
\xd6\xba\x21\x3c\xa6\xfa\x45\x69\xc8\x30\xa9\x04\x13\xb2\xf8\x47\
\x74\xf1\x80\x5a\xd4\x3d\x1d\x9f\x3b\x75\x8a\x23\xb7\x18\x4b\x4a\
\x20\x65\xf6\x9c\x9a\xca\xc3\x5b\xa0\x6a\x81\xe9\x35\x67\x4e\x02\
\xf3\x45\x53\x55\xa0\x94\x18\xa0\x54\x06\x21\xa7\xe2\xdf\x75\xc7\
\x0c\x30\xe9\x7e\x55\x70\xf9\xe2\xe6\x00\x40\x70\xe2\xe3\x7f\xdc\
\x0d\x3a\x9d\x40\x4a\x49\xef\xba\xf7\xc1\x02\x38\xa5\x67\xa0\x69\
\x4f\x6a\x69\x49\xf5\x9d\x76\x77\x77\x31\xda\xdd\x46\x12\x47\x48\
\xe2\x08\xe3\xe1\x10\xe3\xe1\x00\xbd\xe5\x55\x04\xdd\xae\x9a\xf5\
\xe9\x76\x94\xdb\xb6\x76\xde\x76\x5c\x07\xae\xe3\x82\x69\xf5\x1a\
\x74\x94\x78\x5a\x9e\xe3\x42\x28\x40\x92\x3a\xe9\x36\x35\x79\xd5\
\x36\x49\xae\xeb\x62\x69\x79\x09\x49\xd2\x41\x6f\x69\x09\x83\xbd\
\x3d\x4c\x75\xaf\x6b\x3c\x1c\x2a\xf5\xd5\x68\x84\x68\x32\xc9\xf6\
\x22\x33\xc7\x49\x1a\xd1\x12\x52\x8a\xac\xa4\x08\x4a\xd5\x7d\xd2\
\x40\xc3\xf4\xf7\x34\x63\x44\x69\xd9\xce\x81\xe3\x3a\x99\x24\x5c\
\xa9\xf0\x28\x68\x1a\x90\x08\x92\x45\xb2\x13\xe4\x7f\x87\x27\x0a\
\x94\x5e\x78\xfe\x25\xbc\xff\x9f\x97\x41\xc9\x9c\x51\xb2\xcd\x21\
\x59\x4a\x7a\x36\xb6\x64\x7b\xb3\x19\x7e\x7a\x8d\xca\x78\x57\xe0\
\x49\x24\xa5\x84\xe3\xa8\xd7\x37\x7d\x9e\x87\xa3\x31\x1e\x3a\x79\
\x12\xc3\x58\x62\x6f\x6f\x0f\x2b\xab\xab\xe8\xf7\x97\xd0\xeb\x76\
\xd0\xd1\x16\x4e\x81\xaf\x14\x8d\x37\xae\xf6\xb3\x61\x64\x40\x8d\
\x10\x28\xc9\x77\x3d\x40\x5c\xb5\xd3\xca\x05\xd7\x70\x34\x4c\x2a\
\x40\xa9\x4e\x3e\xbe\x08\x50\xb5\xab\x05\xa6\x2b\x7e\x7b\xa3\x78\
\x4a\x5e\x00\xa7\x14\x74\xe6\x01\x93\x09\x4e\x2e\x72\x97\x08\xc7\
\xf8\xea\xcc\xf9\xde\x06\x5a\x36\xd6\x64\xaa\xfc\x82\xc1\xde\xee\
\x70\xb0\xb7\x1b\xf4\x96\x96\x7b\x4f\x3d\xf2\x50\x20\x85\x70\xee\
\xba\xef\xdd\x33\xe0\x94\x6a\xd5\x96\x97\x57\xd0\xeb\xf5\x70\xf1\
\xe2\x45\x0c\x86\x03\xf0\x24\x46\x12\x47\x98\x8e\x47\x18\x0d\x06\
\xe8\xf4\x97\x10\x74\x7b\x08\x3b\x5d\x84\xdd\xae\x72\x9a\x08\x43\
\x04\x41\x08\xe6\x38\x39\x7b\xd2\xa5\xbd\x94\xe9\x88\x74\x90\x56\
\x37\x80\x52\xe7\xe9\x3c\xdd\x55\x95\xfa\x52\x9b\x24\x3f\x08\x40\
\x99\x4a\x8e\x0d\x3b\x9d\xc2\xec\x4a\xae\xfe\xe3\x80\x21\x31\x4f\
\xd5\x72\x52\xd2\x4c\xf9\xc5\xb2\x41\x58\x92\x81\x13\xa5\x14\x8e\
\x93\x02\x91\x03\x47\x97\xf1\x18\x65\x99\xe2\x30\xbb\x2e\x21\x0a\
\x9c\xd2\xbe\x92\x66\x80\x92\x2a\x91\x03\x08\xf0\xc2\xf3\x2f\xe1\
\x3f\xfc\xd2\x2f\x61\xb8\xb7\x97\x81\x52\x2e\x71\xcf\xc1\x85\x94\
\x18\x13\x29\xb7\x98\x48\x05\x88\xcd\x15\x3d\x90\xb2\x95\x43\x05\
\x1a\x91\x6a\x13\xd8\x9a\x5d\x5c\x4a\x89\x5e\xaf\x8b\x30\x08\x32\
\x16\x3a\x8d\x22\x3c\xf3\xe4\x13\x18\x27\x02\x2b\x87\x8e\x62\xf5\
\xf0\x61\xac\xac\x1f\xc2\xf2\xca\x0a\x96\xfa\x7d\x74\xf5\x89\xcb\
\xcd\xc7\x8f\x22\x74\x9d\x82\x9d\x94\x10\x42\x9d\x60\x1c\xb0\xdf\
\x85\xd7\x10\xb3\xa4\x90\x38\x77\xf6\x6c\x84\x62\xe0\x67\x52\xc1\
\x9c\x9a\xca\xc6\xdb\xd5\x02\xd3\x6b\x0e\x52\x26\xe0\xcc\x63\x56\
\x75\x2e\x11\xe9\xc1\xe6\x7c\x5f\x07\x52\x36\x70\x0a\x4a\x00\x15\
\x1a\x00\x15\x76\xfb\x4b\x29\x40\x79\x77\xdd\xf7\x60\xc1\xaa\x5c\
\xbb\xbd\xe9\xd2\xde\x35\xd8\xdd\xdd\x51\x6e\x11\x71\x0c\x1e\xc5\
\x48\xa2\x08\xe3\xe1\x00\x7e\xd8\x45\xd8\xeb\xa3\xd3\xeb\xa1\xdb\
\xef\x63\xec\x07\x2a\x1a\xc2\xf3\xb5\x80\xc0\x55\xfe\x68\xc6\x66\
\x9a\xf6\x9a\x52\xc2\x26\x84\xd0\x4e\xd2\x00\x4f\x72\x50\x92\x3a\
\xcb\x29\x2d\xfb\xe5\x2e\x10\x42\x45\x9c\x87\x21\xe2\x69\xa4\x76\
\x96\x58\xe4\x2f\x82\x31\xd3\x04\xdd\x77\xa0\x8c\x16\xbc\xed\xd2\
\xbe\x51\x5a\x6e\x4c\x41\x49\x39\x3b\x38\x2a\x5f\x89\x69\x96\xa4\
\x95\x65\xa4\x6c\xb2\xaa\x99\x52\x12\xab\xfb\x7f\xfa\xe5\x97\xf0\
\x1b\xff\xfa\x5f\x63\xb8\xbf\x67\xcc\x50\xe5\x6c\x29\x03\x22\x03\
\x60\xac\x65\xbd\x42\x87\xa7\x28\x92\x98\xc1\x0f\x0b\x5b\x2a\x0c\
\xd5\x96\xcb\x78\xb6\x68\x0c\xb2\x98\x54\x1c\xc8\x4f\x2e\xb8\x90\
\xf0\x5c\x17\x62\x3a\xc1\xcb\xcf\x3d\x8f\xee\xd2\x39\xf4\x57\xd7\
\xb0\x7a\xf8\x28\xd6\x8e\x1c\xc5\xca\xfa\x3a\x96\x57\x56\x10\x84\
\x1d\xdc\x72\xed\x91\xbc\x8f\xa4\x19\xee\x60\x34\x42\x12\xc7\x3a\
\xfa\x83\xbc\x01\x3e\xd6\xf9\x13\x95\x70\x8e\xfd\xbd\xbd\x89\x3e\
\x79\x8c\x8d\xcf\x6c\x15\x28\xb5\x91\x17\x2d\x30\x7d\xc1\xde\xb5\
\x65\xf9\xa7\x98\xc3\x92\xaa\x80\x89\x95\xc0\xc7\x1c\xca\x75\x2c\
\xff\xae\x03\xaa\x32\x38\xf9\x75\xcc\x49\x03\x54\x38\xdc\xdf\x1b\
\x0e\xf7\xf7\xc2\x6e\x7f\x69\xe9\xa9\x47\x1e\x56\x00\x75\xef\x83\
\xb3\x85\x3d\x29\xb1\xbc\xbc\x8c\x4e\xd8\xc1\xd6\xe5\x2d\x0c\x06\
\xfb\xaa\xb4\x17\x4d\x11\x4d\x26\x98\x8e\x86\x98\x0c\xbb\x98\x8c\
\x86\xe8\xf4\xfa\xf0\x02\x05\x4c\xbe\x4e\x78\x65\x8e\x5b\x8c\x96\
\x28\x6f\xf0\x44\xc5\x8e\x2b\x90\xe2\x88\x23\x15\xc9\x91\x06\xec\
\xa5\xce\xe7\x99\xc0\x80\x8b\x82\xf2\x8e\x12\x02\x41\x09\x20\xd4\
\xe6\x4c\x09\xc9\xac\x89\x52\x19\x39\xa3\x1a\x7c\xb4\xe9\x2c\x63\
\x0c\x8e\xeb\x64\x00\xc6\x98\x0a\xf7\x63\x69\xe9\x4e\x83\x95\x6b\
\xcc\x2b\x41\x03\xa3\xe0\x1c\x60\x14\x3c\x91\x10\x1c\x60\x94\xe0\
\xe5\x17\x5f\xc4\xef\xfc\xfb\x7f\x8f\xd1\xfe\x3e\x18\x73\xf2\x3e\
\x4f\xa9\xaf\x54\x06\xa5\x02\x73\x9a\x91\x91\x93\x59\x32\xd4\x94\
\x2d\x11\x9b\x14\xa2\x8e\x95\xcc\xf7\x2e\x07\x90\x85\x42\x72\x7d\
\xd2\x90\xf5\xf2\x26\x23\xc4\x7b\x97\x31\xe1\x11\x86\xbb\x3b\xd8\
\xba\x70\x0e\x9d\xfe\x32\xd6\xaf\x39\x8e\x95\x43\x87\xd1\xe9\x2f\
\xe1\x9b\xbe\xf2\xdd\x85\x52\x03\x17\x02\x9b\x1b\x9b\x39\x58\x5f\
\xc5\xea\xdd\x95\x7e\xd0\x29\x21\x98\x4e\x26\x18\x8f\xc7\x23\xe4\
\x49\x01\x55\x8c\xa9\x0c\x52\x36\x50\x6a\xc1\xa9\x05\xa6\xd7\x8d\
\xf9\x9b\xde\x79\x65\x50\x02\xea\x07\x71\x59\xcd\x41\x2b\x2e\xaf\
\x02\x29\x93\x3d\x79\x15\xfd\xa6\x19\xe6\x54\x02\xa8\x4e\xb7\xbf\
\xd4\x7f\xea\xd1\x87\x43\x48\xe9\xdd\xf9\xae\x07\x48\x0a\x4e\xa9\
\xca\xcd\xf5\x5c\x1c\x3b\x76\x0c\xbb\x3b\x3b\xd8\xdc\xdc\x44\x12\
\x4d\xe0\x25\x1d\xf0\x68\x8a\x68\x3a\xc6\x64\x38\xc0\xb8\xd7\x47\
\xd0\xed\xc1\x33\x98\x93\xeb\xfb\x70\x5c\x4f\x25\xb5\x92\xd4\x1a\
\x88\x66\x02\x89\x82\x88\x41\x0f\x57\xf2\x84\x67\x9b\xa0\x14\xbc\
\xe8\x9d\x67\xf4\x90\x88\xde\x2c\x29\xa1\x90\x44\x64\xd6\x43\x54\
\xcf\xce\xe4\x36\x45\x74\x06\x8c\x5c\xed\x79\x47\x88\x56\xd9\x69\
\x86\x94\xf6\xa4\x68\x76\x3b\xe9\x9c\x92\x32\xbd\xe5\x94\x20\x8a\
\x44\x36\xbb\xf4\xb1\x0f\x7f\x08\x4f\x3d\x72\x12\x93\xd1\x48\x9d\
\xf9\x9b\x60\x54\x2a\xdb\xa5\xdf\xcf\x30\xa5\x82\xcd\x52\x01\x0a\
\x2c\xd6\x43\xf3\xd9\x52\x7d\x33\xa9\xae\x8c\x57\xaf\xc8\xe3\x5c\
\xe0\xe8\x91\x23\x08\x7c\x1f\x52\xa8\xd7\xc1\x75\x1c\xdc\xf1\xd6\
\x5b\xf1\xc2\x33\x4f\xe2\x50\xd7\x01\xf5\x5c\x4c\x05\x10\x4f\x06\
\xf8\xfc\xa3\x0f\xa3\xb7\xbc\x8a\xee\xd2\x0a\x3a\xff\xeb\xf7\x15\
\x58\xd7\x70\x32\xc1\xf6\xc5\xcd\x1a\xf1\x43\xdd\x3d\x5e\x00\xca\
\xc8\x41\x3e\xd9\x32\xfd\x7e\x6a\x80\x52\x54\x62\x4c\x49\x05\x6b\
\x6a\xcb\x79\x2d\x30\x7d\xc1\xfb\x4d\x28\x81\x13\x29\x5d\xc6\x2c\
\xfd\x25\x13\x7c\xcc\xaf\xb4\xe6\x67\x75\x8c\xea\x20\xe0\x94\x01\
\x93\x3e\x46\x29\x83\x72\x5d\xaf\xf7\xd4\xa3\x0f\x77\x21\xa5\x7f\
\xd7\xbd\x0f\x10\x99\x3a\x46\xe8\x47\xbd\xbc\xb2\x82\xb0\xd3\xc1\
\x70\x30\xc0\xc5\x8b\x9b\x88\x1d\x0f\xae\x1f\x20\x99\x4e\x11\x4d\
\x27\x18\x0f\x07\x70\xfd\x00\x41\xa7\x03\xcf\x0f\xe0\xfa\x01\xfc\
\x20\x80\xe3\xf9\x9a\xc9\xa8\xd2\x9e\x59\x4e\x93\x59\x15\x4e\x95\
\x50\x78\x92\xe4\x9b\xb4\x21\xfd\x4e\x0d\x5e\x85\x28\xb9\x41\xe8\
\x19\x19\xd3\x8d\x21\x05\x18\xe6\x50\x30\xe6\x64\x60\x63\xf6\x97\
\x18\x73\xf2\x92\x5d\x61\x60\x36\x15\x36\x88\x6c\x20\x57\xc9\x88\
\x05\x24\x4f\x20\xc0\x30\x9e\x4c\xf0\x89\x3f\xfa\x30\x9e\x7d\xfc\
\x71\x08\xc1\x15\x2b\x44\x89\x19\x95\xcb\x76\x25\x60\xb2\x81\xd2\
\x0c\xc3\x32\x49\x90\x59\x1a\xac\x61\x4b\xc4\x82\x4b\xcd\xca\x78\
\x73\xa5\x7b\x88\xe3\x18\xa6\xf4\xda\x71\x1c\xdc\x7e\xcb\x4d\x58\
\x5e\xea\x63\xa9\xdf\x85\xe7\xba\xf8\x47\xff\xf8\xff\x8b\x1b\x6e\
\xba\x05\xbf\xff\x07\x7f\x88\x5f\xfd\xc0\xaf\xe3\xc5\xe7\x9e\xc6\
\x99\xcd\x4b\xb8\x69\x7d\x4d\x39\x76\x27\x09\x5e\x7a\xfe\x05\xcc\
\xb1\x3a\xaf\xbc\x1f\xe4\x00\x50\xb6\xc8\x22\x94\xe0\xc2\xf9\x0b\
\x12\x4a\x2d\x9b\xce\x1a\xc6\xa5\xa3\xc9\x3c\x53\xbb\x5a\x60\x7a\
\xdd\x00\x89\xd4\x80\x93\x59\xad\x48\xff\x9d\x82\x8e\xd0\x5f\x4d\
\xb7\x88\x26\x47\x1d\x8b\x62\x15\x65\x3d\xaf\x06\xa0\x82\x2a\xf6\
\x04\x20\x8c\xe3\x68\x74\xe9\xc2\xf9\x90\x31\xa7\xfb\xf8\x67\x3e\
\xdd\x65\x8e\x13\x70\xce\xe9\x3d\xf7\x3f\x98\x99\x26\x78\xae\x07\
\x6f\x6d\x0d\xae\xe7\x61\x7f\x6f\x0f\xfb\xfb\xfb\xa0\x8e\x03\x37\
\x56\x00\xe5\x06\x01\xa6\xa3\xa1\xea\xdb\x04\x1d\x55\xde\x0b\x42\
\xc5\x9c\xf4\x20\x2e\xd5\x72\x6d\xa6\x63\xcd\xd3\xf8\x8a\x54\xd0\
\x90\xb3\x29\x15\x22\x07\x9d\x06\x6b\x3a\x90\x13\x7d\x76\x4b\xb4\
\x4c\x3b\x07\x25\x05\x2c\x24\x13\x30\x28\xd0\x49\x4f\x84\x19\x63\
\x59\x70\x5f\x1a\xc7\x40\x34\x20\x31\xaa\xcb\x98\xba\x6c\xc7\x93\
\x04\x0e\x25\x4a\x75\xc7\x28\xb8\xa4\xb8\xb4\x71\x01\x0f\x7d\xfc\
\xe3\x78\xe9\x99\x67\x34\xd0\xb1\xa2\xc1\x6c\x06\x48\xc8\xca\x73\
\x29\xb3\x69\x06\x4a\xb0\x80\x5a\xd1\xd9\xa2\x9e\x2d\x95\x2f\x23\
\xb3\x00\xd6\x60\x9b\xb7\xfd\x24\x2d\x87\xa6\x55\x59\xc6\x28\xee\
\xb9\xe7\x1e\x84\xa1\x0f\x10\x82\xaf\xfb\xfa\xaf\xc7\xdb\xee\xb8\
\x1b\xcc\x61\xf8\x1b\xdf\xfe\xed\xf8\xcb\x5f\xfe\xe5\x78\xff\xaf\
\xfd\x06\x3e\xf7\xf8\x67\xf1\xee\xb7\xde\x8a\x44\x08\xbc\x7a\xe6\
\x8c\x12\x88\x38\x6c\xb1\x32\xde\x81\xd1\x86\x2c\x7c\x7d\x3d\x9b\
\x3d\x31\x58\x53\x5d\x39\xaf\x89\xb1\x6b\x0b\x54\x2d\x30\xbd\xee\
\xe0\x64\x38\x6c\x15\x00\x49\x1a\x80\x44\x50\xb4\x2b\xaa\xba\xac\
\xfc\xef\x3a\x36\xe5\xd4\x80\x93\x3b\x07\x9c\xfc\x0a\x70\x1a\x01\
\x08\x39\x4f\x46\xdb\x5b\x17\x07\x00\xc2\xd5\x43\x87\x97\x9e\x7a\
\xe4\x84\xcf\x39\x67\xf7\xdc\xf7\x60\xd6\x7b\xea\xf5\x7a\xe8\xf5\
\x7a\x08\xb7\xb7\xb1\xb7\xbb\x8b\xc9\x70\x00\xc2\xc6\x88\xa7\x3e\
\x98\xeb\xc1\xf5\x02\x44\xe3\x31\xa8\xe3\xc0\x0f\x3b\x70\xfd\x00\
\xcc\x55\x2e\xdd\x8c\x39\xa0\x0e\xd3\xbe\x73\x2c\x2f\xc9\x69\x63\
\x56\xa6\x3d\xd7\x80\x5c\xcc\xa0\xe2\x39\x12\xed\xeb\xa7\xf6\x81\
\x94\x1d\x10\x89\x5c\x22\x4e\xb5\xf8\x00\x79\x1f\x44\x65\x02\xea\
\x01\x5b\xa9\xcf\x21\x52\x90\x03\xd5\xd7\xd5\xcc\x4c\x08\x35\x60\
\xcc\x08\x78\x2c\x11\x49\x01\xcf\x75\x30\x1d\xc7\x38\xf1\x27\x9f\
\xc4\xab\xcf\x3f\x8f\xc9\x68\xa4\x9d\xc2\x51\xcb\x94\x72\x66\x67\
\x88\x21\xca\x82\x08\x03\x98\x6c\xbf\x6f\x32\x26\xd3\x03\xb0\x9a\
\x2d\x91\xca\x6a\x1e\xb1\xb1\xa5\x86\xfb\xb6\x10\x02\x87\xd6\x57\
\x55\xbc\x09\xd4\x0c\x12\x01\xc1\x1d\x6f\xbf\x0b\xff\xaf\xef\xf8\
\x0e\x5c\x73\xcd\x35\xf8\xea\xaf\xf9\x06\x50\x46\x91\x32\x6d\xca\
\x28\xbe\xea\x2b\xff\x22\x38\x17\x78\xe1\xe5\x97\x31\x19\x8f\xb1\
\xb7\xbd\x0d\xea\xb0\x46\x20\xd2\x04\xa8\xc8\x55\xc6\x28\x4a\x09\
\x9e\x7e\xfa\xe9\xd4\x91\x65\x11\x70\x92\x96\x3e\x53\xbb\x5a\x60\
\x7a\x43\x30\xa7\x52\xbe\x6a\x26\x27\xb7\x59\x16\x55\x7d\x5f\x05\
\x4e\x65\xa0\x62\x73\xca\x7a\x36\x70\x2a\xab\xf6\xc6\x75\x00\x05\
\x20\xdc\xbe\x74\x71\x04\x20\x5c\x5d\x3f\xbc\xf4\xd4\xa3\x27\x7c\
\xce\xb9\x73\xf7\x7d\x0f\x66\x8e\x12\x2b\x2b\xab\x58\x59\x59\xc5\
\xce\xce\x36\xf6\x76\x77\x30\x19\x0d\x91\xb0\x09\xb8\x3b\x05\xd3\
\x02\x88\x64\x3a\x01\x75\x1c\x30\xc7\x83\xe3\x69\x70\xd2\x99\x49\
\x54\x47\xb4\x53\x9a\xbb\x3d\x50\xa3\xe4\x96\xfe\x5c\x0a\x01\x91\
\x24\x90\xda\xd3\x4f\x68\x80\xa2\x80\x8e\xd9\x36\xe6\x97\xa0\x67\
\x88\x74\xb6\x95\x24\x50\x61\x86\x52\xf5\x8a\x28\xd1\xb1\xeb\x82\
\x43\x72\x40\xa6\x4a\x3e\x21\x00\x2d\x01\xe7\xb1\x04\x75\x1c\x70\
\x29\xb0\xb9\x75\x11\xa7\x4e\x9e\xc0\x99\x17\x5e\xcc\xa2\x35\x0a\
\xbc\xa4\x12\x90\x60\xcc\x31\x61\x56\xa5\x67\x0e\xca\x56\xdd\x46\
\x41\x99\x67\x32\xb1\x66\x6c\x89\x34\xdc\xe5\xf3\x12\x60\xf5\x15\
\x57\x96\x97\x55\x5f\x28\x95\xe5\x83\x20\x0c\xbb\x78\xef\xdf\xfa\
\x01\xfd\x18\x4a\xb7\x4a\x28\x38\x17\xa0\x8c\x62\xf3\xdc\xb9\xac\
\xef\x57\x00\x49\x1b\x99\x23\x55\x40\x75\xb0\x7e\x12\xa9\xbb\xcc\
\xc2\x22\xb7\xb6\x2e\x45\xfa\xb3\x61\x96\xf3\x22\x4b\xaf\xa9\xa9\
\x3a\xaf\x5d\x2d\x30\x7d\xc1\x99\x93\x09\x4a\xb0\x00\x54\xd3\xa3\
\x0a\xa8\x98\x05\xa0\x4c\xf6\x64\x03\xa7\xb2\x6a\x6f\x52\x62\x50\
\xe3\x8a\xfe\x53\x06\x52\xdb\x5b\x06\x40\x3d\xf2\xb0\x2f\xa5\x70\
\xef\xba\xf7\x81\x6c\x30\x77\x65\x65\x05\x2b\x2b\x2b\xd8\xd9\xde\
\xc6\xee\xee\x0e\x26\xe3\x01\x30\xa1\xaa\x84\xe7\x79\x60\x8e\x07\
\xea\x4c\x41\x46\x4a\x6c\xc0\x1c\x17\x8e\xeb\x81\x3a\x6a\xe6\xc9\
\xc9\x92\x51\x73\x60\x52\xd7\x51\x73\x48\xca\x73\x55\xbb\x48\x70\
\xae\x41\x85\x67\x91\x15\xb9\xbb\xb7\x62\x3c\x84\x68\x87\x02\xa3\
\x5f\x44\x1d\x40\x24\x12\x5c\x0a\x10\x29\xc0\xa5\x00\x38\x57\xc3\
\xb6\xae\x72\xba\x8e\xb9\x8a\xf4\x90\x9c\x62\xef\xf2\x16\x5e\x7e\
\xf6\xf3\xd8\x3c\x7b\x16\xd1\x78\xa2\x7d\xef\x4a\x9b\x9b\x15\x88\
\xca\x5f\x49\x9e\xf6\x6b\x29\xe1\xd9\x00\x8d\x14\xfc\xf4\x6c\x25\
\xbc\x45\xd8\x12\x69\x96\xc7\x34\xfb\xe0\xf2\x37\xb7\x94\x08\x03\
\x5f\xa9\x28\x8d\xc7\x5e\x00\x98\xfc\x07\x90\x40\xe6\x1a\xae\x98\
\x08\x5d\x88\xdf\x90\x46\x77\x95\x2c\x00\x38\xcd\x1e\x37\x01\xf0\
\xd2\x0b\x2f\x0e\x0c\x60\x32\x59\x53\xd3\x72\x1e\xd0\x9a\xb8\xb6\
\xc0\xf4\x05\x02\x27\x7b\xca\x58\x11\x9c\x60\x01\xa8\xaa\x7f\x97\
\xbf\xa7\x15\x20\x55\x55\xe2\x9b\xa7\xd8\x4b\x23\xdf\xcb\xe5\xbd\
\x49\xa9\xff\x34\x6e\x02\x50\xdd\xfe\x52\xff\xa9\x47\x4e\x04\x52\
\x0a\x4f\x01\x94\x3e\xab\x5e\x5d\xc5\xf2\xea\x2a\x86\x83\x7d\xec\
\xee\xec\x60\x38\x18\x20\x9a\x0c\xc1\x98\x9b\x31\x28\xea\xa8\x5e\
\x53\xa4\xe3\x2a\x98\xe3\xc2\xf5\x3c\x50\xe6\x64\x8c\x89\x64\xc0\
\xa4\x63\xd1\xf5\x46\x4c\x75\x44\xbd\x94\x4a\x3e\x2e\xb5\x43\xb8\
\xf9\xd9\x17\x3c\x81\xe0\xaa\x54\x48\x1c\x06\x21\xa8\x02\x31\x9e\
\x28\xb6\x23\x18\x20\x19\x88\x74\x00\x4a\x21\x92\x08\x7c\x4a\x32\
\x31\xc4\xde\x68\x84\xf3\xa7\x4f\x63\x7b\x73\x13\xd1\x64\xa2\xa2\
\x35\x1c\x56\xb4\x43\x2a\x6f\x68\x75\xc0\x54\x2e\xe7\xc1\x54\xe1\
\xd5\x83\x52\x41\xf4\x40\xca\x45\x39\xb3\x27\x55\xc3\x96\x50\x2c\
\xfd\x2d\x5a\xc6\x4b\x17\xe7\xb9\x79\xae\xc9\xb0\x48\x05\x22\x10\
\x42\xb4\xc1\x6f\x9e\xce\x8c\x34\x8a\x5e\x8a\x6c\xa8\xdb\x5e\x9b\
\x9b\x4f\x81\xe6\x83\xed\xc1\x1a\x53\x9b\x9b\x1b\x7b\xfa\xfd\x3e\
\x9e\x53\xce\xe3\x35\xe5\xbc\x16\x94\x5a\x60\xfa\x82\xb3\x27\xcc\
\x29\xeb\x55\x54\xfd\x2b\xc1\xcb\xfc\x7e\x1e\x40\x31\x0b\x7b\x72\
\x50\x1c\xe2\x8d\x2c\xe5\xbd\xe9\x95\x00\xd4\x70\x7f\x6f\x94\xcf\
\x42\x95\x00\x4a\x02\xbd\x5e\x1f\xdd\x9e\x72\x24\x1f\xec\xef\x61\
\xb0\xbf\x8f\xd1\x68\x90\x31\x22\xe6\xb8\x1a\xa4\x1c\x24\x94\x21\
\x9e\x50\x9d\xad\xa4\xc2\xfe\x88\x56\xce\x39\x3a\xd2\x3c\x1d\x5c\
\x4d\x95\x75\x6a\xa3\xd4\x89\xb7\xf9\xfe\x9d\x53\x59\x4a\x21\x39\
\x83\xe4\x2a\x43\x89\x50\x02\x29\x14\x60\x49\x46\x91\xc4\x14\x89\
\x1e\xa2\x05\xa4\x0a\x2a\xe4\x09\xb6\x37\x37\xb1\xbf\xb3\x83\x38\
\x9a\x2a\x39\xb9\xe3\x98\x44\xc0\x86\x48\xa5\xfd\xd4\xce\x94\x80\
\x9a\x7e\x52\xb9\xaf\x64\xf9\xdd\x2a\x10\x9b\x71\x74\x98\x51\xe2\
\xcd\x13\x3d\xcc\x96\xf1\xaa\xb6\xf7\x5e\xb7\x93\x89\x52\xec\xd7\
\x2d\x3a\xbd\xff\xe2\x3f\xff\x05\xbc\x74\xfa\x34\x6e\xbc\xf1\x26\
\x74\xba\x5d\xbc\xe5\x96\xb7\x60\x34\x1c\x62\x79\x65\x05\xb7\xde\
\x7a\x2b\xa0\x47\x11\x98\x3e\x41\x31\x55\x98\x42\xc7\x5f\xe4\x99\
\x59\xa8\xb6\x6b\x68\x52\xc6\x6b\x80\x51\x04\x2a\x05\xfa\xd5\xd3\
\xaf\x6c\x58\x80\xe9\xa0\xe5\xbc\x76\xb5\xc0\xf4\x86\x00\x28\x5b\
\xa9\x6f\x26\x8d\xba\xe2\xf3\x53\x07\x54\x4d\xd8\x13\x43\x3e\x2b\
\x55\x55\xde\x8b\x1a\x00\x54\x60\x29\xf3\xd5\x02\x54\xa7\xd7\xeb\
\x3f\xf5\xc8\x89\x50\x4a\xe1\xe7\x00\xa5\xa2\xde\xd7\xfd\xc3\x58\
\x5b\x3f\x84\xc1\xfe\x3e\xa2\x48\x01\xd5\x70\x30\xd0\x4e\xe4\x4c\
\xf7\x9f\x34\x33\xd2\xa0\x94\x6e\x54\x84\x92\xac\xd4\x97\xf5\xa7\
\x74\xdf\x49\x24\x89\xb2\x35\x92\xb2\x60\xf1\x93\xfe\x9b\xc7\x14\
\xdc\x89\xc1\x1d\x47\x9b\xb6\xaa\xb3\xf5\x28\x55\xfb\xe9\xf4\xde\
\xe9\x70\x80\x78\x3a\x45\x12\xc7\x48\xa6\x53\x2d\x69\x77\x4a\x66\
\xb7\xb3\x60\x34\xbb\xf9\x95\x99\x0c\x99\x55\xe8\x19\x97\xcf\xb0\
\x24\xcc\x8a\x25\x8a\x7d\xa5\xea\xb2\x61\xf1\x7e\x91\x32\x49\x5a\
\x8c\x2d\x91\xd9\xdb\x90\x52\xe2\xc6\xeb\xae\xcd\x72\xb7\x66\xaf\
\x46\x66\x36\xf8\xf7\xbd\xef\x7d\x2a\xf8\xaf\x6e\x93\x71\x1c\x78\
\xbe\x8f\x43\x87\x0e\xe1\xee\x7b\xee\xc1\xa1\x43\x87\x71\xed\x75\
\xd7\xe2\xa6\x9b\x6f\x46\x14\xc5\x58\x5a\xea\xe3\xba\x6b\xaf\x03\
\x21\x04\xbe\xef\x17\x9c\x3d\xd2\x12\xa3\x19\xa7\x2e\xe5\x41\xb0\
\xa0\x08\xa8\x49\x12\x0f\xf4\xfb\xdb\xc6\x9a\xca\x16\x45\xad\x5c\
\xbc\x05\xa6\x2f\x2e\xb0\x92\xc5\x0c\x06\xb3\xc4\x41\x6a\x4f\x61\
\xeb\x4b\x80\x65\x06\x95\x1e\xbc\x06\xa0\x92\x12\x8b\x4a\x01\xca\
\xec\x3f\x4d\x2d\x3d\xa8\x32\x40\x85\x16\x90\x1a\x01\x08\x47\x83\
\xc1\x68\x34\x18\x84\x9d\x5e\x6f\xe9\xa9\x47\x4e\x84\x80\xf4\xee\
\x7c\xd7\xfd\xc4\x34\x59\xed\x2f\x2d\x01\x80\x06\xa9\x3d\x4c\x27\
\x13\xec\xef\xed\x61\x3a\x19\x63\x3c\x1a\xe6\x8c\x89\xe5\x8c\x89\
\x32\x86\x98\x52\xc5\x9a\xf4\xc6\xce\x98\x02\x1a\xd7\x73\x41\xa9\
\x93\x39\xa7\xa7\xb9\x48\x94\x10\x0d\x72\x14\xf1\x74\x92\x0f\xf4\
\x42\xf5\xa9\x08\x94\xcc\x3c\x15\x54\x08\x9e\x5b\x1d\xa6\x22\x09\
\x1b\x00\xd9\xb7\xb4\xd9\xba\x52\x19\x64\x2a\x41\x6a\x4e\x09\xd0\
\x2a\x76\xa8\x00\x25\x93\x41\x91\x99\xde\x12\x39\x30\x5b\x32\x97\
\xeb\xb9\x15\x2c\x64\xd6\x9d\x5c\xa2\xba\xec\x69\xae\xd4\x86\xea\
\x95\xe1\x10\xaf\x9c\x3e\x0d\xcb\x66\x9f\xdd\xaa\xe3\x38\x34\x08\
\x02\x7a\xf8\xc8\x11\x7a\xcd\xb5\xd7\xb2\x6b\x8e\x5d\x83\x5b\x6f\
\xbb\x15\xb7\xdc\x72\x2b\x00\x60\x75\x6d\x15\x87\x0f\x1f\xd1\x20\
\xe6\xa9\x93\x1e\x63\x26\x2e\xf5\x68\xcc\xcc\x7f\x4b\x51\x29\x84\
\x12\x4c\xa6\x53\x6c\x6e\x6e\xbe\x04\x60\xa8\xdf\xdb\x75\x7d\xa6\
\x3a\xf7\x87\x16\x9c\x5a\x60\xfa\xe2\x45\xac\x32\x70\x11\x5b\x8d\
\xa6\xf8\xd5\x54\xf9\x89\x05\x01\xca\x2c\xf3\x99\xe0\x14\x95\x7a\
\x50\x55\x00\x55\xa5\xe2\x9b\x01\x28\xc7\x75\x7b\x4f\x3d\x7a\x42\
\x0d\xeb\xbe\xeb\x7e\x22\x8d\xa8\x74\x00\x2a\x7c\x70\x69\x19\xeb\
\x87\x8f\x60\x3a\x9d\x60\x3c\x1a\x21\x49\x62\xec\xed\xec\x20\x8e\
\x63\xc8\x84\x63\x3c\x1a\xe4\x8e\x11\x80\x06\x2b\x96\xcd\x41\x51\
\x63\x50\x37\xdd\xac\xcd\xe6\xbc\x94\x12\x9d\x4e\x17\x9e\xef\x2b\
\x97\x5d\x29\x21\x25\x07\x91\xba\x19\x9f\x06\x1b\x6a\xa5\x59\xbe\
\x47\x17\x63\x36\xaa\xf6\x18\x52\x51\x26\x33\xc5\x09\xd5\x65\xbb\
\xfc\x9c\x63\xf6\xfa\xe6\x6d\xcf\x82\xd9\x0c\x28\x81\x58\xc8\x1c\
\x99\xc1\xa3\xfa\x94\x5f\x3b\x5b\xca\xef\x1b\x81\xef\x79\xea\x79\
\x9d\xab\x4c\x20\xe0\x3c\xd1\x03\xb9\x73\x57\x6c\x61\x22\xe5\x8d\
\x1e\x00\x48\x92\x24\x64\x30\x18\xd0\xc1\x60\x40\x5f\x7a\xf1\xc5\
\x72\xc5\xa0\x90\x16\xed\xba\x2e\xf1\x7d\x1f\xcb\x2b\x2b\xb8\xfe\
\x86\x1b\xd8\x75\xd7\x5d\x4f\xef\xba\xe7\x6e\xf7\xd8\xb1\x63\xd4\
\x75\x3d\xac\xad\xad\xb1\xd5\xd5\x55\x4a\x29\x45\x10\xe4\x4c\x8c\
\x27\x1c\x00\x06\x06\x30\x8d\x1a\xf4\x99\x5a\x57\xf1\xd7\x71\x91\
\x83\xd1\xe2\x37\xd8\x83\x20\xe4\x0b\x09\x40\x57\xe3\xfe\x93\x05\
\x4a\x7c\x66\x99\x6f\x9e\xc5\x91\x6d\xf6\xa9\x6a\x40\xd7\x2b\xb1\
\x27\xbf\x06\xa0\xd2\xa3\x03\x20\x64\x8c\x75\xfb\xcb\x2b\x3d\xe6\
\x38\xfe\x5d\xef\xba\x9f\xda\x31\xb9\xa8\xfe\xe2\x7a\xb8\x75\x34\
\x1c\x64\x42\x80\x24\x8e\xb1\xbb\xb3\x5d\xd8\x3b\xa3\x89\x0a\xe2\
\xeb\x74\x7b\x9a\x49\x31\x84\x9d\xae\x62\x4d\x7a\x70\xd6\xd5\xaa\
\x3f\xe8\x19\xa9\x74\xaf\x28\xfe\xdb\xe8\x61\x94\xf6\x12\x59\xf9\
\x4d\x99\x50\x11\x0b\x00\xd8\x58\x10\xaa\xd9\x52\x2d\x28\xe5\x00\
\x41\x2c\x65\x43\xfb\xed\x98\x00\x35\x2b\x52\x20\x75\x40\x54\x7a\
\x8c\x51\x14\xe3\x97\x7e\xe6\x9f\xe0\xe6\x1b\x6f\x9c\xbb\xdb\x12\
\x42\x30\x1a\x0e\xb1\x7e\xe8\x70\xdd\xd5\xa6\x0d\xd8\x88\xe9\x49\
\x49\x50\x3d\x46\x91\x5e\x5e\x7e\xb5\x44\x89\xd5\x98\x59\x68\x69\
\x50\xe7\x34\x08\x02\x1a\x76\x3a\x58\x5b\x5d\xf3\x24\xe4\xf8\xc5\
\x17\x5e\x78\xa2\x04\x4c\x63\xe3\xb0\xf5\x9c\x22\xe3\xb6\x79\x45\
\x89\xef\x0d\xb9\xbf\xb4\x8c\xa9\x5d\x57\xc2\xae\xa4\xa5\xfc\x67\
\x1b\xec\x15\x06\x93\x32\xdd\x26\x98\x85\x45\x39\x46\x99\x6f\x5e\
\x89\xcf\x2c\xf5\x99\x2c\x6a\x82\xea\x3e\x94\x1e\xd6\xe5\xa3\x9d\
\xcb\x5b\x03\xc6\x58\xef\xf1\x87\x3e\xdd\xd1\x6e\x12\xec\x9e\xfb\
\x1e\x2c\x61\xad\xcc\x4a\x2a\xa9\x65\x91\x1f\x04\x69\x0d\x06\x12\
\x52\x6f\x74\xd2\x88\xd1\x50\x7b\x17\xa5\x6c\xf6\x43\xaa\xbf\x37\
\xcb\x37\xc4\x0a\x85\x86\x6d\x2d\x31\xea\x50\x98\xed\x2f\x49\x52\
\x55\x7f\x2d\x32\x91\x82\x62\xcd\x2c\x93\x11\x52\x3a\x61\x2a\x03\
\xd1\x01\x98\x92\x4d\x12\x3e\x03\x4a\x15\xfd\xa0\x39\xa0\x84\xd2\
\x7d\x77\x5c\xa7\x7a\x82\xaf\xb4\x28\xab\xf4\xc1\x13\xc6\xa6\x6f\
\x4a\xb2\x4d\x36\x62\x6e\xee\xb2\xf4\x5e\xb7\x01\xd2\x0c\x63\xc2\
\x6c\x16\x9a\x99\x87\x66\x82\x53\x34\xd1\x6b\xfb\xf2\xe5\x89\xbe\
\x4f\x65\x40\xaa\xeb\x31\xd5\x99\xb8\xb6\x8c\xa9\x05\xa6\x16\xa0\
\x50\x94\xaa\x97\x81\xca\x04\x29\x86\xa2\xa9\x6c\xb9\xc4\x67\x96\
\xfa\x6c\x3d\x28\x9b\x8a\xaf\x09\x40\x85\x00\x3a\x2b\x6b\xeb\xfd\
\x74\x58\xd7\x04\xa8\x34\xae\x3c\x1b\x49\x92\x35\x9f\x6d\x02\x1d\
\x99\x80\x4c\xfc\x20\xb3\x06\x42\xba\xcb\x4a\x10\x49\xd4\x80\x6d\
\x65\xdd\x4a\x03\x92\x34\x76\x5c\x62\x41\xa1\x6c\xd7\x93\x25\x99\
\xe5\xec\x46\x5e\x64\x47\x26\x10\x90\x59\xf5\x5e\x0d\x4b\xb2\xb2\
\xaa\x0a\xa0\xa9\xeb\x2b\xd9\x0c\x5e\x9b\xd4\x11\xd2\xdf\x93\x52\
\x82\x32\x06\x87\xb1\x66\x2c\x1f\xc0\x74\x3a\xb1\xfd\x28\xd1\x65\
\xb2\x79\xe2\x02\xb3\x7f\x63\xbe\x09\xe6\xb9\xa5\x94\x3f\x17\x65\
\xaf\x4a\x93\x35\xc5\x06\x40\x4d\x8d\x63\x52\x02\xa4\x26\x3d\x26\
\xf1\x7a\x30\xa4\x76\xb5\xc0\xf4\x67\x09\xa0\x44\xe9\x2c\xd3\x66\
\x28\xcb\x0d\x16\x55\x66\x50\xe5\x5e\x54\x59\xc9\x57\x56\xf1\x55\
\x09\x25\x52\x37\x89\xce\xce\xe5\xad\xa1\x01\x50\xc1\x0c\x40\x65\
\x3b\xa7\x04\x64\x6a\x18\x24\x8b\x1b\xbf\x59\x76\xd3\xa0\x44\x0a\
\x08\x24\x21\xe5\xac\x59\x69\x7d\xa8\x69\x19\x9c\xaa\xb7\xeb\x99\
\xdb\x29\xcf\x18\x11\x0b\x18\x59\x4a\x6c\x05\x55\x9d\xad\xdf\x64\
\x65\x4a\xb6\xdf\x29\x32\xa4\xd9\xb2\x62\x09\x94\x6a\xd8\x51\x19\
\xb9\xa4\x94\xe8\xf7\xba\xe8\xf7\xfa\x8d\xb7\x5c\xdd\xab\x29\x33\
\xa5\x01\x80\x7d\xe4\x3d\x9c\x61\x05\x6b\x2a\xb3\x91\x02\x19\xab\
\x61\x4b\xa4\x06\x98\x6c\xe0\x94\x94\xca\x71\x53\x4b\x89\xd1\x26\
\x15\xb7\xf5\xc2\xaa\xa4\xe2\x2d\x48\xb5\xc0\xf4\xa6\x07\x28\x69\
\xf9\x90\x56\xf9\xf6\x71\x03\x94\x78\xa9\xc4\xc7\x4a\x0c\xca\x56\
\xe2\xab\x2a\xef\xd9\x64\xe6\x8d\x00\x4a\x0a\xe1\xde\x75\xdf\x03\
\x85\xe0\x42\x10\x99\x6f\xa7\x59\x2b\x48\x16\x37\x52\x3d\xf3\x52\
\x06\x25\x62\x7c\x5f\x43\x9b\xb4\x82\xcc\xb2\x85\xd8\x44\xfe\xb2\
\xa2\x9c\x57\xa2\x33\xa4\x34\x50\x64\x2f\xad\xd9\x66\x90\xca\xce\
\x0e\x8b\x81\x12\xa9\x00\xa8\xd9\xbb\xd9\xdc\x97\xce\xec\xd9\x35\
\xa3\x4c\x04\xfb\x83\xfd\xf2\xa5\x23\x0d\x44\x03\xe3\x28\x97\xf4\
\x6c\x73\x42\xa6\x3a\xaf\xca\x11\xa5\x0e\x98\xca\xac\x49\xa0\xe8\
\xde\x50\xc7\x9e\x22\x4b\x09\xaf\xcc\xe8\x38\x5a\x8f\xbc\x16\x98\
\xda\xb5\x30\x40\xf1\x1a\x16\x55\x55\xe2\x63\x15\x0c\x2a\xb6\x80\
\x54\x0a\x4e\xd3\x12\x50\x35\xf5\xe3\xcb\x00\x4a\xb9\x49\x9c\x0c\
\xa4\xe0\xde\xdd\xf7\x3d\xa0\xdb\x44\xe6\xae\x2a\x8b\xa5\xa9\x94\
\x35\x15\x54\x74\xb2\xb4\x61\xab\xef\x0b\xe5\x37\x83\xee\x48\xeb\
\x16\x9d\xef\x2f\xb2\x0c\x46\x74\x76\x23\x9f\x2d\xe9\xd5\x80\x51\
\xb9\x2f\x34\xc3\xb4\xec\x8c\xe9\x20\xa0\x64\xcd\x68\xb2\x29\xf2\
\xac\x40\x55\xee\x87\x95\xde\x45\x73\xd6\xc4\xb0\x23\xd2\xef\x9b\
\x91\x71\x0c\xe6\xb0\x26\x33\x5e\xa2\xaa\xcf\x44\x1a\x00\x13\x6a\
\x58\x13\xaf\x00\xa8\xc8\x72\xcc\x03\xa5\x2a\xa9\x78\x0b\x54\x2d\
\x30\xb5\x00\x55\xd8\x44\x66\xf7\xdd\xf2\x87\x5b\x96\xca\x7c\xb6\
\x12\x5f\x15\x83\x72\x4a\xe5\xbd\xaa\x12\x5f\x59\x6a\x1e\x62\xb6\
\x0f\x95\x01\x54\x1a\x5c\xd8\xe9\xf5\x7a\xa7\x1e\x39\xd9\x91\x92\
\x7b\x77\xdf\xfb\x40\x71\x07\x95\x46\x97\xa7\xc0\x9a\x34\xfc\x18\
\x8f\x5f\xa6\x4c\x09\xb3\x23\x49\x65\x3b\x8e\x22\x42\x65\x19\xbe\
\x0d\x2c\xd7\x88\x9d\x75\x90\x72\x4c\x3a\x2c\xec\xc8\x02\x48\x55\
\x8c\x8b\x94\xe4\x1a\x4d\x41\x89\x94\xff\xc6\xec\xe3\x20\xa8\x54\
\x75\xa8\x1a\x9c\x90\x38\x7c\x68\x1d\xbe\xe7\x35\xde\x6a\xb7\xb5\
\x82\x32\xc5\x29\xe4\xbd\x9b\x51\x89\x3d\x8d\x2a\x58\x53\x59\x9d\
\x57\xae\x06\xd8\x40\xc9\x56\xde\x36\x59\x93\x34\xc0\xa4\x0e\x9c\
\x6c\x47\x82\x59\x9f\xbc\xd6\xc0\xb5\x05\xa6\x76\x5d\x05\x80\x92\
\xa8\x17\x49\xd8\x58\x94\x8d\x41\x39\xc6\x07\xb6\xca\x4d\xc2\x9c\
\x85\x0a\x8c\xcd\xa9\x4a\x28\x91\x01\xd4\x68\x30\x18\x8e\x06\x83\
\x4e\xa7\xd7\xeb\x9f\x7a\xe4\x64\x28\x25\xf7\x33\x80\x22\xb3\x8c\
\x49\xda\xce\xfa\x67\xca\x7b\x79\x89\x2f\xbf\x58\xe6\x25\x42\x52\
\x01\x58\xb5\x25\x2b\xfb\x35\xad\xcc\xc8\x06\x66\x65\x50\xb0\xf4\
\x84\xc8\x0c\xa2\x2c\x0a\x4a\xb5\xf0\x59\x23\x0a\x29\x3e\x6f\x42\
\x88\x85\x46\x2f\xce\x9d\x3d\x97\xe1\x1a\x8a\x7d\x1b\x53\x7a\x3d\
\xb2\x94\xf3\xa6\x15\xe5\x3c\xf3\xce\xd9\x00\xaa\xea\xe1\xd8\x4a\
\x7a\x4d\xd9\x93\x0d\x8c\xea\xca\x78\x2d\x20\xb5\xc0\xd4\xae\x03\
\x00\x94\xad\xd4\x57\x2e\xef\x91\x0a\x16\x55\x16\x49\x30\xe3\x43\
\x5c\x66\x51\x75\x25\x3e\x9b\x92\xcf\x2c\xf3\xd9\x01\xea\xd1\x93\
\x61\x3a\xac\x8b\x12\x63\x2a\xb0\x1e\xcc\xba\x36\xe4\x6a\x3d\x02\
\x9b\x64\x44\x92\x9a\x8d\x5a\xce\x41\x29\x52\x27\xa5\x20\x15\x60\
\x64\x43\x0d\x62\xb1\x36\x2a\xdd\x7e\x9d\x90\x02\x55\xa0\x54\x13\
\x69\x51\x71\x99\x8d\x76\x30\xed\x55\xd8\x74\x3d\xf1\xc4\x13\x66\
\x19\xcf\x26\x2e\x28\x03\x54\xfa\xef\x69\x89\x35\x99\x9b\x7f\x15\
\x30\xd9\x66\xfd\xca\xe5\xbc\x3a\x70\x12\x16\xe0\xb1\xb9\x88\x57\
\x95\xf0\xaa\x7a\x4c\x2d\x48\xb5\xc0\xd4\xae\x3a\x80\xc2\xc1\xa4\
\xe6\x55\xb3\x50\x36\xf6\x94\xaa\xf8\x4c\x16\x65\x2b\xf1\xcd\x33\
\x8c\xad\x04\x28\xc7\x75\xbb\x4f\x3d\x7a\xa2\x2b\xa5\xf4\xef\xbe\
\xf7\x7e\x5a\x28\xeb\x59\x37\x5a\xa9\x4b\x7c\xc5\xdd\x56\x9a\x88\
\x34\xb3\x11\xcb\x42\xd9\xd0\xd0\x5c\xd4\x52\x27\xfb\x9e\x3d\x1f\
\x8c\x8a\xff\xac\x00\xa4\x99\xdb\xb7\x80\xd2\x8c\x96\xdc\xf6\x7d\
\x93\x12\x1e\xb1\xbd\x89\xd0\xed\x74\xd0\x2c\xd8\x5c\x5d\xff\x33\
\x0f\x3d\x6c\x02\x93\x0d\x9c\xd2\x63\x8c\xd9\x01\xd6\x72\x39\xaf\
\x2c\xc1\x6e\x02\x4a\x55\xac\xa9\x4a\xad\x67\x63\x50\x65\x20\x2a\
\x7f\x15\x96\x52\x61\xcb\x9c\x5a\x60\x6a\xd7\x01\x40\xea\x4a\x67\
\xa1\xcc\x0f\x70\xd5\xb0\xae\x8d\x41\x35\x99\x85\xaa\x05\xa8\x24\
\x8e\x87\x97\x36\x2e\x74\x18\x63\xdd\xcf\x7e\xe6\xd3\x5d\xe6\xb8\
\xbe\x14\x9c\xdd\x73\xff\x83\x15\x16\x0d\xa4\x54\xa2\x93\xb9\xea\
\xdc\x52\xe6\x53\xcf\x11\xb1\xe1\x4a\xd3\xba\x9e\x05\xe8\x6a\xc0\
\x68\x2e\x20\xcd\xf6\x96\xac\x40\x57\x13\x3f\x41\x2a\xee\x07\xa9\
\x40\x2b\x9b\x61\xad\x90\x12\x2b\xcb\x4b\xd5\x91\x1f\x96\x37\xd3\
\xc5\x8b\x97\xd2\x6f\x39\xec\x02\x83\x32\x40\x55\xcd\x0c\x95\xe7\
\x99\xe6\xc5\xc5\x54\x01\x93\x8d\x39\xd5\x95\xf7\xaa\x80\xa8\xcc\
\x92\xaa\x32\x98\xda\xd5\x02\x53\xbb\xae\x02\x40\xd9\x9a\xcb\xb6\
\x59\xa8\x26\xc3\xba\xe6\xa0\xae\xcd\x97\x6f\xde\x2c\x54\x2d\x40\
\x71\xce\x87\xe9\xb0\xee\xea\xa1\xc3\x4b\x4f\x9e\x3c\xe1\x49\x59\
\x9c\x85\x2a\x9f\xf1\x13\x2b\x50\x21\x77\xf0\xac\x13\x08\xd4\xec\
\x3a\xb5\x99\x40\xa4\x62\xcb\x27\x16\xc8\x20\x33\xf1\xaf\xb3\x00\
\x57\xa7\xee\xab\x02\xa5\x79\xf3\x4a\x75\x25\xc9\x4c\x8d\x2f\xb1\
\xb6\xba\xaa\x80\x49\xca\xf9\x60\x2d\x25\xf6\xf6\xf6\x4c\x60\x6a\
\xa2\x80\x33\x01\xca\xd6\x67\x2a\x0f\xda\xa2\x82\x2d\x2d\x02\x4e\
\x75\x00\x65\x63\x46\x36\x40\xb2\x29\xf1\xa4\x94\x52\x7e\x21\xed\
\xd0\x5a\x60\x6a\xd7\x9f\x15\x80\x22\xa8\x56\x3f\xd9\x44\x12\xf3\
\x86\x75\x13\x54\x2b\xf9\x6c\x42\x09\x5b\x1f\xaa\x16\xa0\x00\x8c\
\xb6\x2f\x5d\x1c\x66\x00\xf5\xc8\x09\x5f\x0a\x13\xa0\xaa\x36\x5d\
\x99\x2a\xcf\x67\x7e\x26\xad\xdb\x59\xdd\x66\x4c\x2c\x5f\x48\x0d\
\x82\x5d\x05\x40\x2a\xdd\x5e\xb5\xca\xcf\x0e\x4a\x55\x31\x1e\xf5\
\xc1\x7b\x0d\xab\x53\x84\x40\x08\x8e\xcd\xcd\x8b\xe9\x25\x65\xe6\
\x61\xeb\xe1\x44\x15\x40\x55\x16\x40\xd8\xa2\x63\x9a\x02\x53\x1d\
\x38\xc9\x0a\xe0\x11\x16\xf0\x92\x73\x8e\x76\xb5\xc0\xd4\xae\xd7\
\x91\x41\x01\x07\x1f\xd6\xad\x62\x50\x2e\xec\x3d\x28\xdb\x2c\x54\
\x88\xa2\x50\xa2\x0c\x50\x2a\xfa\xfd\xd0\xe1\xa5\x53\x8f\x9c\x08\
\x84\x10\xce\x3b\xee\x7b\xb0\x92\xe7\xcc\x38\x0e\x55\x66\x2f\xe9\
\xeb\xcf\x65\x4b\x55\x75\x3f\x62\xbb\xb9\xd9\xcb\x6d\x49\x28\x55\
\x60\x77\x10\x50\xc2\x82\xa0\x44\x8a\x4d\xb9\x5e\xb7\x9b\x9d\x9f\
\x2c\xc8\x03\x6c\x8c\x64\x9e\x54\xdb\x04\x2a\xb3\xd7\x83\x86\xe0\
\x84\x86\xe0\x84\x1a\x80\x92\x0d\xc1\xa8\x8c\xda\x52\xbe\x59\xdd\
\x55\x5b\x60\x6a\xd7\x6b\x08\x50\x55\x52\xf3\xaa\x61\xdd\xb2\x50\
\x42\xc0\x2e\x35\xb7\x31\x28\xb3\xc4\xe7\x19\x67\xca\xb6\x1e\x54\
\xfa\xef\xb0\xc4\xa2\x4c\x80\x0a\x53\x80\xea\x2d\x2d\xf5\x9f\x7c\
\xe4\xe1\x50\x4a\xe9\xde\x73\xdf\x03\xb3\xa0\x62\xba\x8b\xd7\xd5\
\xf0\xe4\x9c\x1d\x8f\xcc\xdd\xfa\xeb\xd3\xf9\xe6\x32\xa4\x2a\xd0\
\x5b\xa0\xa7\x64\xfd\x3b\x0d\x41\x09\x4a\x60\x72\xe4\xd0\x7a\x73\
\x24\xe2\x02\x51\x14\xd9\x36\xff\x2a\xa9\x76\x13\xc9\x76\x95\xf2\
\x8d\x54\xa2\x70\x7d\x35\xb6\x09\x40\xc9\x8a\x9f\x03\xf6\x41\xda\
\x16\x94\x5a\x60\x6a\xd7\x17\x08\xa0\x50\x2a\xf9\xd9\xc4\x11\x14\
\xf3\xfd\xf8\xca\xbd\xa8\x26\xb3\x50\x26\x93\x2a\xcf\x41\x8d\xcd\
\x52\xdf\x60\x6f\x6f\x34\xd8\xdb\xeb\x74\xfb\x4b\x7d\xcd\xa0\xbc\
\x02\x40\x95\x45\x07\xd2\xdc\x86\xe7\x6c\x6f\x75\x40\xd4\x34\xcb\
\xfb\x0a\x00\x69\x96\x74\x91\x5a\x36\x56\x07\x4a\x98\x73\x79\x7a\
\xcb\x4a\x95\x57\x07\xce\xb9\x25\x44\x45\x0e\x53\xd9\x89\xa1\xca\
\x64\xb5\x0a\xac\x4c\x6b\x22\x59\x03\x42\x8b\x10\x3a\x39\x07\xa4\
\x2a\x01\xc8\x06\x74\x2d\x28\xb5\xc0\xd4\xae\x2f\x3c\x40\x2d\x3a\
\xac\x3b\xcf\x8f\xcf\x16\xbb\x61\xb2\xa7\xaa\x59\xa8\xba\xe8\xf7\
\xcc\x4d\xa2\xdb\x5f\x5a\xb2\x02\x54\x55\x79\x0c\x68\xaa\x76\x68\
\xf6\x43\x52\xc9\xa7\x2c\xcc\x65\x0e\x20\x5d\x29\x28\xcd\x2b\x47\
\x96\xa9\x08\x01\x02\xdf\x6b\x00\x64\x55\xc8\x5a\xcb\x60\xaa\xfa\
\x3c\x55\x73\x43\x72\x81\x57\xa6\x49\xbf\xa9\x09\x9b\xaa\xba\x2c\
\xfb\xbe\x05\xa5\x16\x98\xda\xf5\xc6\x00\x28\x5b\xa9\xcf\xa6\xe2\
\x23\x73\x4a\x7c\x55\x0c\xaa\xac\xe4\x6b\x32\x0b\x65\xf3\xe3\xeb\
\x00\x18\x0d\xf7\xf7\x46\x1a\xa0\xfa\xa7\x1e\x39\x11\x4a\x29\xbd\
\x7b\xee\x7d\xa0\x2e\x16\xf0\x40\x20\x44\x9a\x32\xa6\x05\x19\x52\
\x15\x4b\x3a\x10\x28\x11\xb2\x10\xae\x52\x4a\xd1\xb1\x31\xa6\x8a\
\xa9\x03\x29\x44\xf9\x56\xab\xe6\x8e\xd0\xa0\x8c\x66\x13\x26\x2c\
\x02\x4e\x0b\xbf\xdd\x9b\x7e\xdf\x82\x51\x0b\x4c\xed\x7a\x03\x01\
\x14\xae\x4e\x70\x61\x5a\xe6\x6b\xc2\xa0\xaa\x4a\x7c\xf3\x44\x12\
\xe5\x12\x5f\xc6\xa0\x5c\xd7\xeb\x3d\xf9\xc8\xc3\x5d\x29\xa5\x77\
\x8f\xcd\x30\xb6\xc9\x8e\x47\x0e\xb0\x2f\x92\x2a\x8e\x42\x2a\x6f\
\xaf\x8a\x25\x55\x5e\xd6\x10\x94\x48\xa3\xfb\xa5\x43\x02\xcb\x59\
\x4c\xa5\xdb\x51\x1a\x69\x25\x13\x19\x8d\x47\x05\x5c\x43\xb5\x13\
\xf8\x41\x40\xab\xc9\xdc\xd0\x55\x07\xa8\x16\x84\x5a\x60\x6a\xd7\
\x17\x0f\x48\x5d\xc9\xb0\x6e\x9d\x92\xaf\xcc\xa0\xcc\x3e\x54\x95\
\x93\x44\xd9\x8f\xaf\x96\x41\xc5\x71\x34\xba\x78\xe1\x7c\xe8\x7a\
\x5e\xef\xc9\x93\x0f\x77\x01\xf8\x77\xdf\xf7\x80\x31\xd7\xd4\x64\
\x91\x06\x3f\x9e\xe7\x4d\x37\x07\x90\x6a\xc0\x8f\x5c\x2d\x50\xaa\
\x79\x1c\x2a\x12\x84\xc2\x71\xec\xdb\x81\x90\x12\x7b\x93\x08\x0e\
\x01\x7c\xa6\xae\xb7\xbb\xb3\x63\x03\xa6\xb2\xdd\x15\x6d\x00\x54\
\x75\xef\x3f\xb1\x00\xeb\x69\x57\x0b\x4c\xed\x6a\x01\xea\xaa\x0c\
\xeb\x96\xa5\xe6\x36\x06\x65\x96\xf8\xa6\x07\x61\x50\x71\x14\x8d\
\x2e\x5e\x38\xdf\x61\x8c\x75\x1f\xfb\xd3\x4f\x75\x1d\xc7\xf1\xef\
\xb9\xef\x01\x22\xa5\xf9\x30\x16\xc1\xa9\x05\x4c\x52\x2d\xa0\x43\
\x2a\x7f\x99\x58\x30\xa6\x89\xca\x6f\x4e\xf9\xce\x02\x8c\x26\x7c\
\x49\x29\x54\x48\x60\xbf\x37\x73\x5b\x12\xc0\xc6\x38\xc2\x34\xe1\
\x90\x42\x80\x02\xe8\x7b\x1c\x9b\xdb\xbb\x55\xc0\x54\x05\x48\xb6\
\xe8\x8a\xc6\x20\xd5\xae\x16\x98\xbe\x18\x37\xce\xf6\x95\x7c\xfd\
\x01\xea\x6a\x0c\xeb\x9a\xec\xa9\x8e\x41\xd9\xec\x8e\x16\x66\x50\
\x9c\xf3\xd1\xf6\xa5\x8b\x03\x00\x9d\xc7\x3e\xf3\xe9\x3e\x73\x1c\
\xff\x9e\x7b\x1f\x20\x85\xf7\x4f\xc3\x9e\xd3\x62\xc0\x30\x2f\x76\
\x82\x54\xdc\xd4\xc1\x41\x89\x34\x22\x4b\x24\x3b\x8d\x70\x5c\x07\
\x8c\xb2\xc2\xf5\xa5\x04\xf6\xa2\x04\xb1\x24\x70\x98\x03\xc9\x24\
\xa4\x94\xd8\x4d\x04\x56\x6e\xba\x0d\x3f\xf7\x6b\xbf\x85\x9f\xf8\
\xdb\xdf\x83\xc9\x68\x58\x05\x4a\xf3\x58\x53\xf9\x1e\x96\x2a\x8f\
\xe4\x0d\xff\xd9\x6e\xf7\x9e\x16\x98\xda\xf5\x06\xfa\x3c\x62\x56\
\x10\xd1\x04\xa0\x08\xe6\x2b\xf9\x16\x89\x7e\x6f\xc2\xa0\x02\x13\
\x9c\xf4\x65\x9d\xcb\x17\x37\x47\x00\xc2\xcf\x7e\xe6\xd3\x7d\xe6\
\xb0\xe0\xee\xfb\x1e\x20\x65\xeb\xa2\x32\x35\x6c\xca\x46\x2c\xc5\
\xba\x4a\xf6\x54\x7d\x73\x57\x0b\x94\xe6\x47\x76\xc8\x99\xf8\x10\
\xf5\x8f\x69\x92\x60\x73\x1c\xc1\x73\x18\x08\xa5\x20\x20\x90\x44\
\x82\x51\x06\x97\x39\xf8\xc6\xaf\xfd\x2b\xf8\x9a\x17\x4f\xe3\xf4\
\xb9\x0b\xfd\x1f\xfa\xee\xef\x8c\x9e\x7f\xea\x89\x2d\xd4\xf7\x9a\
\xea\x00\xaa\xcc\xa2\xda\x1d\xbf\x05\xa6\x76\xb5\xeb\x8a\x01\xca\
\x56\xe2\x03\x9a\xc9\xcd\x79\x45\x89\xaf\x29\x83\x2a\x4b\xcd\x6d\
\x73\x50\x63\x0b\x8b\x0a\xb7\x2e\x6e\xa4\x00\xb5\xc4\x18\xf3\xef\
\xb9\xff\xdd\xb4\xa4\x38\x6b\x3e\x1f\xd4\x08\x8c\xe6\x01\x92\xe5\
\xe7\x0d\x64\xe8\x4d\x41\xc9\xfe\x22\x4a\xf4\xfb\x3d\xb8\xba\xc7\
\x24\xa5\x62\x46\x67\xb6\xf7\xb0\x1b\x0b\xf4\xc2\x10\xbe\xeb\x80\
\x51\x0a\x46\xa9\x7a\x41\xf5\x6d\x7b\xae\x8b\x5b\x6f\xb8\x0e\x1f\
\xfa\xc4\x27\xd6\x3d\x8a\xf5\x9f\xff\xc5\x5f\xd8\xf9\xf9\x7f\xf0\
\x0f\x3e\xd8\x10\x88\x9a\x3a\x87\xb7\xeb\x4d\xb6\x48\x4b\x45\xdb\
\xb5\xf0\x9b\x86\xcc\xf5\x48\xa8\x32\xe0\xb4\x45\x66\x9b\x07\xb3\
\x1c\x4e\xe9\x70\x0d\x60\x32\x95\x7c\xa6\x8a\xcf\x4c\xd5\x0d\x60\
\x8f\x7d\x4f\x8f\x8e\xf9\xb5\xbf\xb2\xd2\x0f\xc3\x4e\x20\xa5\xcc\
\x1d\xcd\xc9\xfc\x3d\xd3\xee\x71\xd7\x00\x90\x30\x47\x7e\x7e\x50\
\x50\xaa\x60\x72\x36\xd7\xf5\x24\x49\x70\xcb\xcd\x37\xe1\x67\xfe\
\xe1\xdf\x87\xeb\xba\x90\x52\x62\x12\xc5\xf8\xd8\x33\x2f\x82\x3a\
\x2e\xfa\xdd\x2e\xba\x61\x80\xc0\xf3\xe0\xb9\x0c\x8e\x06\x28\xaa\
\xfd\x5e\x29\x01\xd6\x42\x1f\x1e\xa3\x88\x39\x47\xdf\xf7\x7f\x1d\
\xc0\x65\x7d\xec\x00\xd8\x05\xb0\x07\x60\x1f\x79\xa2\x6d\x39\x9b\
\xc9\x96\x1a\xdb\x0e\xb4\xb6\x8c\xa9\x5d\xed\xba\x2a\x0c\xca\x76\
\xd9\xd5\x8c\x7e\x37\xad\x6c\xaa\x4a\x7c\xbe\xa5\xcc\x57\xd5\x87\
\x2a\x94\xf9\xf6\x77\x76\x46\xfb\x3b\x3b\x61\x7f\x69\xb9\xff\xe4\
\x89\x87\x43\x09\xc9\x66\x0c\x63\x67\x80\xe0\x60\x80\x54\xcb\x92\
\x16\x04\x25\x34\x00\xa5\xaa\xbf\x23\x25\xe0\x7a\x6e\xd6\xd3\x11\
\x42\x60\x30\x1a\xe1\xcc\xb9\x0b\xf0\x3b\x1d\x4c\xa2\x18\xa3\x69\
\x88\x6e\x18\x20\xf4\x7d\x04\x9e\x0b\xdf\x75\xe0\x31\x06\x4a\x08\
\x56\x43\x1f\x2e\xa3\x2a\x6c\x90\x52\xf4\x97\x97\x97\xf7\x77\x77\
\x2f\x37\xb8\x03\x2d\x53\x6a\x57\x0b\x4c\xed\x7a\x43\x00\xd4\x95\
\x44\xbf\x9b\xa5\xbe\x2a\x99\xb9\x99\xac\x5b\x17\xb9\x11\xc2\xae\
\xe8\x53\x00\xb5\xb7\x3b\xda\xdf\xdb\xd5\x00\xf5\x50\x28\x21\xb5\
\x61\x6c\x93\xcd\xbf\x69\xc9\xae\x1e\xb4\x16\x01\x25\xd2\xe0\x7e\
\xd5\x11\xb3\xb4\x8c\x27\x84\x02\xa6\x97\x5e\x3d\x8b\x53\xa7\x9e\
\xc2\x91\x63\xd7\x60\xb0\xb6\x86\xe5\xe5\x25\xf4\x7a\x8a\x39\x85\
\x81\x8f\xd0\x53\x00\xb5\xde\x0b\xe1\xd2\x9c\x2f\x26\x52\x62\x34\
\x18\x8c\x50\xdd\x23\x92\x73\xde\x27\xed\x6a\x57\x0b\x4c\xed\x7a\
\xdd\x01\xaa\x0c\x54\x8b\x44\xbf\xdb\x66\xa1\x6c\x91\x1b\xd1\x82\
\x0c\xaa\xca\xee\x28\x07\xa8\xe5\x95\xa5\x53\x8f\x9c\x08\xa4\x94\
\xee\xdd\x36\xbb\xa3\x3a\xb0\x21\xcd\x67\x8a\x72\xf2\xd5\xcc\xe7\
\xae\x29\x28\xd5\xfd\x5d\x21\x38\x6e\x7d\xcb\xcd\xa0\x94\x42\x08\
\x01\x2e\x04\x2e\x6c\x5c\xc0\xe7\x1e\x3d\x89\xed\x9b\x6e\xc6\xa1\
\xa3\xd7\x60\xfd\xd0\x21\xac\xac\xad\x62\x79\x69\x09\xbd\x6e\x07\
\xdd\x30\x84\xe7\xb9\xb8\x7e\xb5\x57\x28\xed\x46\x49\x02\xce\x79\
\x84\xe6\x4e\xdd\xed\x6a\x57\x0b\x4c\xed\xfa\x82\x02\x94\x4d\xe0\
\xb6\x68\xf4\xbb\x6d\x16\xca\x64\x51\xe5\x12\x5f\x95\xa3\x79\xb9\
\x07\x55\x0f\x50\xbb\x3b\xa3\xfd\xdd\x9d\x8e\xe7\xfb\xdd\x53\xca\
\x4d\xc2\xbd\xe7\xbe\x07\x4b\x72\x61\x52\x87\x1f\x68\x3a\xac\x5b\
\x5d\x85\x3b\x68\xf9\xae\x80\x78\xb3\x2f\x8e\x04\x1c\xc6\x74\x19\
\x4f\x1d\xd1\x64\x82\x33\xcf\x7f\x1e\xbb\x97\xb7\xb0\x7a\xe4\x18\
\x0e\x5d\x73\x2d\x0e\x1f\x3b\x86\xf5\xc3\x87\xb1\xb2\xb2\x82\x7e\
\xbf\x8f\xe3\x47\x0f\x21\x74\x9d\xc2\x5f\x78\xfc\xb9\xe7\x81\xea\
\x24\x58\x59\xc3\xa6\xdb\xd5\xae\x16\x98\xda\xf5\x05\x05\xa9\x83\
\x00\xd4\xbc\xd0\x42\x5b\xf4\x7b\x9d\xa3\x79\x9d\x61\xac\x4d\x28\
\x31\x02\xd0\x89\xa6\xd3\xe1\x85\x33\xaf\x76\x1c\xc7\xe9\x3c\xfa\
\xa7\x7f\xd2\x73\x1c\xc7\xbb\xe7\xbe\x07\x67\x73\x57\x17\x06\xa4\
\x83\x81\x12\x69\x08\x4a\xb5\xfa\x0d\x02\x4c\xa3\x08\x42\x8d\xa9\
\x41\x4a\x81\xe5\x6e\x07\x7b\x1b\xe7\x20\xa7\x63\x0c\x76\x77\x70\
\xf1\xfc\x79\x5c\x38\x72\x04\x47\xaf\xbd\x1e\x87\x8e\x1d\xc3\xd2\
\xca\x2a\x6e\xbc\xe6\x10\x1c\x42\x73\xe6\x25\x25\x7e\xf8\xbd\xdf\
\xf3\x04\xe6\xc7\x94\x8b\x0a\x16\xd5\x02\x56\xbb\x5a\x60\x6a\xd7\
\x1b\x0e\xa0\x16\x75\x93\x30\x81\x6a\x9e\x1f\x9f\xd9\x87\xaa\x32\
\x8c\x35\x67\xa1\x6c\x4a\xbe\x6c\x0e\x2a\x49\x92\x70\x6b\xe3\xc2\
\x10\x40\xf8\x18\xff\x54\xdf\x71\x5c\xff\xee\x7b\x1f\x80\x3d\xe3\
\x6e\x3e\x20\xd5\x63\xda\x95\x80\x52\x23\xab\x59\x38\x8e\x93\xc9\
\xc4\x09\x80\xd5\xe5\x25\x74\x7c\x07\x6b\x1d\x06\x37\x24\x18\x4d\
\x77\xb1\x7d\x76\x8c\x73\x2f\xbd\x88\xf5\x63\xd7\x60\xed\xc8\x31\
\xfc\x85\xfb\xdf\x01\x42\xf2\x17\xe8\xf4\xa5\x2d\x9c\x7a\xe4\x91\
\xe7\x51\x54\xd8\xf1\x0a\xe6\x34\x8f\x45\xb5\xab\x05\xa6\x76\xb5\
\xeb\x0d\x01\x50\x8b\xba\x49\x94\x01\xaa\x2c\x92\xb0\xf5\xa2\xca\
\xd1\xef\x55\x6e\x12\x65\x91\x84\x15\xa0\x00\x84\x97\x2e\x9c\x1f\
\x01\x08\x93\x24\xee\x3b\x8e\x6b\xd8\x1d\xcd\x43\x09\x52\x0f\x1c\
\x15\xa0\xb4\x88\x84\x8d\x34\x50\x0c\x4a\x09\x1c\x39\x74\x08\x90\
\xda\xa4\x95\x10\x1c\x3b\x7a\x04\xb7\xdc\x7c\x03\x18\x05\x3c\xcf\
\xc5\xdf\xfe\xb6\x6f\xc3\xd7\x7d\xfd\x5f\xc3\x6f\xfc\xce\xef\xe1\
\x27\x7f\xf4\xc7\x10\x47\x53\xbc\xe7\xeb\xff\x0a\xf0\x25\xf7\x28\
\xd1\x83\x10\xb8\xff\xce\xb7\x9f\x28\x81\x92\x09\x4e\x55\xd1\x16\
\x6d\x6c\x79\xbb\x66\x16\x6d\x9f\x82\x76\xbd\x81\x00\xaa\xec\x2a\
\x2d\x2a\x8e\xaa\x24\xd4\xc8\x60\x43\x53\xe4\xc3\xb6\xe9\xcc\xcc\
\x48\x1f\x43\x7d\x0c\xf4\xb1\xaf\x8f\x3d\xa8\x99\x9b\x5d\xa8\xf9\
\x9b\x1d\x00\xdb\xc6\x91\xce\xe6\x6c\xe9\xe3\x92\x79\x5c\xba\x70\
\x7e\x63\xe3\xec\xab\x97\x1e\xfb\xd3\x3f\x99\x3c\x79\xf2\x21\x49\
\x29\x2d\xa2\x09\x29\x7e\x43\xae\x18\x94\xc8\x1c\x1d\x45\x73\x19\
\xbb\x97\xf6\x8a\x88\x8a\xc0\x58\xea\xf7\x71\xe4\xc8\x21\x08\x21\
\xf0\xe5\x5f\xfe\xe5\xf8\xd6\x6f\xfb\x2e\xac\xae\xac\xe2\x07\xde\
\xfb\x3d\xf8\xdc\xa9\xcf\x82\xc7\x31\xfe\xcd\xcf\xfd\x2c\xa4\x04\
\xb8\x94\xf8\xe9\x9f\xf9\xd9\xd1\xee\xe5\xcb\x5b\x28\xc6\xa7\xd7\
\x31\x27\x51\x7a\xbd\xcb\x27\x2a\xed\x6a\x19\x53\xbb\xda\xf5\x86\
\x64\x50\xe6\x65\x07\xf1\xe3\x6b\x6a\x18\x5b\x66\x50\xf3\x32\xa1\
\xca\x65\xbe\x8c\x41\x49\x29\xc3\x8b\x17\xce\x0f\x09\x21\x9d\xcf\
\x7c\x74\xd0\xeb\xf4\x7a\x81\x10\x82\xde\x73\xff\xbb\x8b\x60\x31\
\xb7\xf6\x36\x47\xc7\x47\x9a\x14\xe8\x9a\xd3\x2b\xd7\x75\x41\x08\
\x40\xf5\x2f\x84\x9d\x0e\xbe\xff\xfb\x7f\x10\xe7\xce\x9d\xc1\xd7\
\x7c\xed\x37\xc2\xf3\x7d\x08\x29\x41\x29\x01\xd3\x7d\xa5\x27\x3f\
\xf3\x69\x7c\xdd\x37\x7f\xf3\xe4\xd9\x53\xa7\xb6\xce\x9e\x7e\xf9\
\x65\xe3\xc4\x20\x9e\xc3\x9c\xea\x58\x53\xbb\xda\xd5\x02\x53\xbb\
\xde\xd0\x00\x65\xbb\xec\xa0\x86\xb1\x66\x2f\x6a\x5e\x68\x61\xd3\
\x59\xa8\x5a\x80\xda\xdd\xbe\x3c\xdc\xdd\xbe\x1c\x2e\xaf\xae\xf5\
\x4f\x9d\x7c\x28\x10\x42\xb0\x77\xdc\xff\xa5\x73\xb1\x64\x6e\xe6\
\x6c\x83\xf9\xa9\xf9\x66\x15\xf9\x0f\x19\xa3\x38\xbc\xbe\xa6\x65\
\xdf\xea\x29\x26\x84\xe0\xfe\x07\xbf\x0c\x84\xa8\x5b\x53\x39\x4c\
\xea\xf7\xc6\x79\x16\xd3\xe4\xa3\x1f\xfc\x7f\x52\xe6\x38\x2d\x01\
\x93\x79\x54\x81\x52\xdb\x67\x6a\x57\x0b\x4c\xed\xfa\x33\x0b\x50\
\xd0\xe0\x33\xcf\x30\x96\x61\xbe\x61\x6c\x39\x72\xa3\x1c\xb7\xe1\
\xd7\x00\x94\xd5\x34\x76\x77\xfb\xf2\x48\x03\xd4\xd2\x93\x27\x3f\
\x13\x48\x89\xa2\x9b\x44\xcd\xe4\xeb\x6b\x03\x4a\xb3\xbf\xe3\x30\
\x86\xdc\x34\x9e\x68\x40\x2a\x3e\xd9\xe9\x8a\xe3\x38\x03\x26\x7d\
\x4c\x8d\x23\x32\x8e\xa4\x74\xd4\x31\x26\x60\xbe\x4a\xaf\x5d\x2d\
\x30\xb5\xab\x5d\x5f\x54\x00\xc5\x71\xe5\x86\xb1\x75\x52\x73\xb3\
\xc4\x57\xe7\x6a\x3e\xc3\x9e\x6c\x00\x75\xea\x91\x87\x03\x29\x84\
\x73\xf7\xfd\x0f\x5e\x45\x50\x42\x43\x50\x9a\x1d\x00\xa6\x94\x16\
\x54\x7e\xb9\xdb\x38\x99\xf1\x10\xda\x51\x21\x81\xb1\x01\x4c\x93\
\x12\x30\xd5\xf5\x99\xaa\x54\x7a\xad\x23\x44\xbb\x5a\x60\x6a\xd7\
\x9f\x49\x80\x32\xcf\xba\x6d\x52\xf3\xaa\xd0\x42\x5b\x89\xcf\x16\
\xb9\x51\x55\xe2\x4b\xd9\x53\x13\x57\xf3\x0c\xa0\x3c\x3f\xe8\x9d\
\x3a\xf9\x70\x47\x42\xba\x77\xdf\xfb\x20\x6a\x79\x53\x23\x50\x6a\
\x42\x93\x8a\xce\xe7\x52\x48\x74\x3b\x1d\xac\x2c\x2f\x15\x81\xa8\
\x66\xd8\xf7\xb9\xe7\x9e\x03\x72\x41\xc9\xa2\xe0\x24\x8c\xaf\x6d\
\x39\xaf\x5d\x2d\x30\xb5\xeb\x4d\x0b\x50\x8b\x1a\xc6\x3a\xc6\xf7\
\xb6\x3e\x54\xb9\xc4\xe7\x61\x71\x37\x89\x4e\x34\x9d\x8c\xce\xbd\
\xf2\x72\xc7\x0f\xc2\xde\xa9\x47\x1e\xea\x40\xc2\xbd\xfb\xbe\x07\
\x4b\xd1\xef\xa4\x61\x59\xae\x89\xd8\xc1\x62\xe0\x0a\x09\xd7\x75\
\xe1\x79\x9e\x06\x22\x39\xd7\x81\xe2\xfc\x85\xf3\xd2\x00\xa6\xb1\
\x05\x94\x4c\x70\x6a\xca\x98\x5a\xb6\xd4\xae\x16\x98\xda\xf5\xa6\
\x00\xa8\x83\x1a\xc6\xda\xac\x8e\xaa\x94\x7c\x55\x25\xbe\x79\x6e\
\x12\x59\xa9\x6f\x3a\x19\x0f\xcf\x9d\x7e\xb9\xe3\xba\x5e\xf7\xb1\
\x4f\x7f\xb2\xeb\xb8\xae\x97\x01\x54\x43\x50\x5a\x44\xec\x60\x7e\
\x2b\xb5\xd2\x0e\x50\x83\xb5\x92\xd4\x0f\xfb\x4a\x00\x1f\xff\xf8\
\x27\x23\x28\xb9\x7d\x2a\xbf\x2f\x03\x54\x59\x04\xd1\xa4\xc7\xd4\
\x32\xa6\x76\xb5\xc0\xd4\xae\x37\x05\x40\x95\x81\xaa\xca\x49\x82\
\xa0\x99\x61\x6c\x9d\x92\xef\x8a\xdd\x24\xe2\x38\x1a\x6e\x9e\x3f\
\xdb\x21\x84\x74\x39\xe7\x5d\xc6\x98\x7f\x77\x45\xe4\xc6\xd5\x00\
\xa5\xf4\xd2\xc0\x0f\xe0\x30\xa7\x86\x57\x99\x17\x4a\x6c\x6d\x5d\
\x9e\x56\x80\xd2\xa4\x06\x9c\x16\x55\xe5\xb5\x20\xd5\x02\x53\xbb\
\xda\xf5\x67\x0e\xa0\x9a\xfa\xf1\x99\xfd\xa7\x32\x7b\xaa\xca\x84\
\x6a\x32\x0b\x65\x96\xf8\x6c\xec\xa9\x32\x17\x4a\x4a\x39\xdc\x38\
\xfb\x6a\x0a\x50\x3d\xc7\x71\xbd\xbb\xef\x7b\xa0\x3a\xd4\xf3\x0a\
\x40\x09\x12\x08\xc3\x00\x8c\x31\xfb\x4d\x59\x9e\xc1\xd1\x68\x34\
\x5e\x80\x31\xd5\x29\xf3\xaa\x54\x79\x2d\x28\xb5\xc0\xd4\xae\x76\
\xfd\x99\x06\xa9\x2b\x31\x8c\xb5\xd9\x1d\x35\x65\x50\x65\xb3\xd8\
\xa9\x01\x52\x36\x91\x44\x80\x92\x92\x4f\x4a\x39\xda\x38\xfb\xea\
\x80\x10\xd2\xe5\x49\xdc\x63\xae\xeb\xdf\x73\xdf\x83\x44\x64\xd1\
\xef\xa4\x51\xae\x6e\xed\x13\x24\x25\x08\x21\x70\x1c\x96\x3f\x03\
\x95\xbf\xae\x82\x04\x5f\x7e\xf9\xe5\x4b\x50\x8e\x19\x65\x70\x2a\
\xf7\x9a\xaa\xfa\x4c\x55\xce\xe3\xed\x6a\x57\x0b\x4c\xed\x7a\x53\
\x03\xd4\xa2\x86\xb1\x8b\xba\x49\x94\x41\xaa\xa9\x9b\x84\xc9\xa6\
\x46\x00\x42\x29\xe5\xe8\x82\x06\xa8\xd1\xfe\x7e\xb7\xd3\xef\x07\
\x42\x70\x7a\xcf\x7d\x5f\xba\xa8\x71\x9e\x15\x6f\x58\x36\xc3\x54\
\x87\x67\x6a\xe8\xf6\x63\x1f\xfb\x88\x1c\x8f\x27\x5b\xc8\x6d\x9d\
\x86\x25\x60\x32\x59\xd3\x41\x7b\x4c\x2d\x48\xb5\xc0\xd4\xae\x76\
\xbd\x29\x01\x6a\x51\xc3\x58\x9b\x92\xcf\x64\x4f\x75\xc9\xba\xb6\
\x12\x5f\x5d\xb2\xae\x2d\x72\x23\x94\x52\x8e\xb6\xb7\x2e\x0e\xb6\
\xb7\x2e\x76\x56\xd6\xd6\x7b\xa7\x1e\x49\xdd\x24\xde\x3d\x9f\x2d\
\x55\x00\x18\x17\x1c\x37\x5d\x7f\x2d\x68\x1a\x5f\x51\xa9\x7a\x90\
\xf8\x85\x5f\xf8\xe7\x93\x1f\xfd\xb1\x9f\x78\x14\xb9\xc7\xe0\x00\
\xc5\x52\x5e\x9d\x00\xa2\x8e\x2d\x95\x5f\xa3\x76\xb5\xc0\xd4\xae\
\x76\xb5\x0c\x0a\x8b\xb9\x49\x98\x02\x89\x72\x89\xcf\xe6\x26\x51\
\x16\x49\xd4\x25\xeb\x56\x39\x9a\x17\x84\x12\x3b\x97\xb7\x86\x3b\
\x97\xb7\x3a\x2b\x6b\xeb\xfd\x53\x27\x1f\xf2\xb9\x10\x8e\x1d\xa0\
\x50\x1e\x5d\x9a\x79\x26\xba\xdd\x8e\xf6\xde\x93\x36\x9e\x04\x21\
\x04\x7e\xfc\xc7\x7f\x6c\xf0\x0b\xbf\xf8\x4b\x4f\x42\x19\xdd\xee\
\x23\x2f\xe5\x95\x19\x93\xe9\x02\x71\x10\xc6\xd4\x02\x53\xbb\x5a\
\x60\x6a\xd7\x9b\x1b\xa0\xd2\x1e\x4b\x05\x40\xd5\xb9\x49\xd8\x32\
\xa1\x6c\x6e\x12\x8b\x32\x28\x13\xa4\x82\x86\x00\x15\x2a\x80\x7a\
\x38\x50\xc3\xba\x0f\xcc\xc3\xa7\xc2\x83\x75\xb4\xf0\xc1\x06\x4a\
\x09\xe7\xf8\xb6\x6f\xfd\x9f\x2e\x7d\xe8\xc3\xff\xfd\x39\x03\x94\
\x4c\x60\x2a\xf7\x98\x26\x68\xa5\xe2\xed\x6a\x81\xa9\x5d\xed\xba\
\x0a\xe8\x04\x54\x01\x54\x99\x61\x2d\xea\x26\xb1\x08\x83\x9a\x17\
\xfd\x5e\x25\x35\x0f\x53\x80\xf2\xc3\xb0\xfb\xd4\xa3\x27\x3a\x52\
\x08\xe7\xee\xfb\x1e\x64\x72\xce\x76\x4f\x00\x24\x09\x9f\xbd\x9c\
\x10\xc4\x71\x8c\xfb\xef\x7f\xe0\xd5\x67\x9e\xf9\xfc\x2b\x28\x46\
\x83\x0c\x4a\xc0\x54\xee\x2f\x95\x7b\x4c\x4d\x06\x6b\xd1\x82\x53\
\xbb\x5a\x60\x6a\x57\xbb\x16\x03\xa8\xaa\xa1\xdd\x2b\x75\x93\x58\
\x24\xfa\xbd\x6a\x16\x2a\xbb\x6c\x3a\x1e\xef\xbf\xfa\xe2\xf3\x81\
\xeb\x79\x9d\xe4\x4f\xff\xa4\xe3\x79\x9e\x7b\xe7\xbb\x1e\x08\x64\
\xc5\x9e\x2f\xa5\xc4\xb1\x23\x87\x0b\x82\x3c\x42\x28\x46\xa3\x21\
\xee\xba\xeb\xee\x67\xcf\x9f\xbf\x70\x1e\xc5\x9e\x52\x0a\x50\x55\
\x65\xbc\x32\x5b\xb2\x05\x05\xb6\x25\xbc\x76\xb5\xc0\xd4\xae\x76\
\x5d\x05\x80\x2a\x03\xd5\x6b\xe5\x26\x61\x2b\xf1\x55\x19\xc6\x96\
\x81\x2a\x63\x59\x71\x14\xf9\x17\xce\xbc\xe2\x11\x4a\xfd\x24\x49\
\x96\x1c\xd7\x63\x77\x7e\xc9\x7d\x2b\x36\x3d\xf8\xe1\x43\x6b\xaa\
\xc7\x24\x25\x08\xa1\x18\xec\xef\xe1\xc6\x9b\xde\xf2\xc8\x68\x34\
\xba\x8c\x3c\x58\x71\x80\x62\xb8\x62\x9d\x1a\xaf\xec\x2c\x3e\x6f\
\xb0\xb6\x05\xa5\x76\xb5\xc0\xd4\xae\x76\xbd\x46\x00\x75\x35\xdc\
\x24\x6c\x52\x73\xdb\xb0\x6e\x59\x72\x6e\x02\x53\x7a\x78\x52\x08\
\xef\xdc\x2b\x2f\xef\x50\x4a\x3d\xce\xe3\x81\xeb\x7a\xec\x8e\x3f\
\x77\xef\x35\x99\x1f\x1f\x21\x70\x1d\x27\x63\x4a\x3b\x3b\xdb\xb8\
\xe9\xa6\xb7\x7c\x62\x3a\x9d\xee\xa2\x98\xfc\x3b\x44\x31\xfd\x77\
\x88\x6a\x25\x5e\x62\x61\x4c\x36\x50\x42\x0b\x4a\xed\x6a\x81\xa9\
\x5d\xed\xba\x02\x80\x02\x20\xc9\x2c\x4a\x2d\xea\x26\x61\x06\x17\
\x36\x4d\xd6\x2d\xcf\x41\x4d\x31\x9b\x0d\x55\x3e\x3c\xe3\x70\x84\
\x10\xce\xd9\x97\x5f\xba\x44\x29\x75\x92\x84\xef\xb9\x9e\x4b\xef\
\x78\xe7\xbd\xb7\x51\x4a\xd1\xed\x74\x40\x08\xc1\xcb\x2f\xbd\x80\
\xb7\xdd\x71\xd7\xef\xa3\x3a\x96\xde\x8c\xa7\x9f\x37\xbb\x34\x4f\
\x1e\xde\x32\xa5\x76\x55\xae\x6a\x9b\x93\x76\xb5\xab\xea\x4d\x43\
\xc8\x9f\x99\xc7\x72\xd0\xf7\x3f\xc9\x53\xf5\x50\xfa\x5a\x3e\x4c\
\xf6\x94\x1e\x66\x0f\x8a\xa1\xa8\xe2\x73\x50\x14\x49\xa4\x87\x57\
\x3a\x6c\x40\x54\x06\x25\xf3\xf7\x4d\x50\xa4\x94\x52\xb6\x7e\xe4\
\xd8\x6a\xd0\xe9\x38\x1f\xfb\x1f\x1f\x7e\x40\x24\x11\x6e\xbb\xfd\
\x8e\x5f\x33\x58\x9b\x09\x4e\x26\x40\x99\x2c\xc9\x64\x4b\x13\x14\
\x43\x02\x17\x51\xe4\x5d\xf5\xd7\xa7\x5d\x2d\x30\xb5\xab\x05\xa6\
\x37\x1d\x30\x55\x00\x54\x15\x38\x11\x0b\x38\xd1\x12\x38\x31\x0b\
\x38\x95\x41\xca\x2b\x81\x94\x5f\xf1\xef\x32\x28\xa5\xb7\x63\xfe\
\xdd\xec\x29\xf8\x9e\xef\x7d\xef\x97\xff\xdb\x7f\xf3\xfe\xff\x81\
\xbc\x04\x17\x19\xe0\x34\xb5\x80\x54\x55\x06\x93\x2d\x87\x69\x9e\
\x79\xeb\x6b\xfa\xfa\xb4\xab\x05\xa6\x76\xb5\xc0\xf4\xa6\x7e\x5a\
\xae\x32\x40\x35\x61\x50\x36\x26\x65\xfe\xcc\x31\xbe\x9a\x8c\xa9\
\x3c\x58\x6c\xfa\x01\xc6\x25\x70\x2a\x03\x54\xf9\x88\x50\x1d\x73\
\x51\x16\x3e\x2c\x2c\x7a\x68\xf7\xa7\x37\xe7\x6a\x7b\x4c\xed\x6a\
\xd7\x55\x22\x5f\x38\xb8\xdd\x11\x81\x5d\x6a\x5e\x56\xf3\x99\x7d\
\x28\x73\x0e\xca\xad\x60\x49\x65\x50\x32\x81\xc9\x54\x88\xa7\xa0\
\x61\x02\x4a\x6c\x80\x4d\x54\x02\xa1\x32\x43\xaa\x2b\xdd\xb5\xb1\
\x16\xed\x6a\x81\xa9\x5d\xed\x7a\x03\x01\x94\x79\xd9\x3c\xbb\x23\
\x9b\xc4\xbc\xac\xe2\x33\x45\x12\x31\x66\x05\x13\xe5\xd2\x9d\x63\
\x61\x4b\xb4\x74\x3f\x64\x89\x35\x95\xc1\x29\xb6\x80\x54\x8c\xfa\
\xf8\xf4\x79\x2c\xa9\x05\xa5\x76\xb5\xc0\xd4\xae\x76\x7d\x81\x00\
\xca\x76\x59\x9d\xdd\x51\x53\x37\x09\x53\x66\xee\x54\x80\x91\x53\
\xc1\x96\xcc\x52\x1e\x29\x01\x53\x15\x38\x95\x41\x2a\x2e\xfd\xac\
\xb5\x1d\x6a\x57\x0b\x4c\xed\x6a\xd7\x9f\x11\x80\x2a\x33\xac\xa6\
\x6e\x12\x36\xa9\xb9\x09\x44\xe5\xaf\xa6\x12\xb0\xcc\xdc\x50\x02\
\xa6\x32\x38\xf1\x0a\x10\xb2\x01\x12\x37\x7e\xbf\xca\x7a\xa8\x05\
\xa8\x76\xb5\xc0\xd4\xae\x76\x7d\x11\x00\xd4\xa2\x6e\x12\x26\x7b\
\x62\x25\x66\x64\x63\x49\xb6\x32\x1e\xb1\x80\x85\x09\x4c\xe6\x91\
\x54\x80\x15\xaf\x01\x25\x89\xd6\x7a\xa8\x5d\x2d\x30\xb5\xab\x5d\
\x5f\xb4\x00\x55\x06\xaa\x45\xdc\x24\x4c\x80\xaa\x03\xa4\x26\xc0\
\x24\x4b\xe0\xc2\x6b\x0e\x31\x87\x25\x89\x16\x8c\xda\xd5\x02\x53\
\xbb\xda\xf5\xc5\x09\x50\x4d\xa3\xdf\xeb\xdc\x24\xca\x20\x54\x05\
\x48\x4d\x80\xa9\xcc\x9c\x84\x05\xac\xca\x3f\x13\x0d\x40\xa9\x05\
\xa8\x76\xb5\xc0\xd4\xae\x76\x7d\x91\x81\x54\x53\x80\xb2\x01\x55\
\x0a\x52\x55\x60\x54\x06\x24\x52\xf1\xb7\xca\xc0\x54\x77\xc8\x06\
\x80\xd4\x82\x52\xbb\x5a\x60\x6a\x57\xbb\xde\x64\x00\x25\x2a\x00\
\xc8\xc6\x90\xca\x6a\xbc\x3a\x60\x92\x25\xa0\x29\x03\x91\x9c\x03\
\x46\x2d\x28\xb5\xab\x05\xa6\x76\xb5\xeb\x4d\x00\x50\x75\xc3\xba\
\x29\x48\x91\x1a\x76\x54\x66\x4a\xa4\xe6\xef\xd6\x81\x54\xdd\x65\
\x40\x2b\x74\x68\x57\x0b\x4c\xed\x6a\xd7\x9b\x06\xa0\xaa\xdc\x24\
\x50\xfa\x5e\xd4\x00\x91\x0d\x94\x08\xaa\xe5\xdc\xb2\xc1\x81\x96\
\x25\xb5\xab\x05\xa6\x76\xb5\xab\x65\x50\x80\x5d\xc1\x57\xe5\x76\
\x8e\x9a\xaf\xe5\xbf\x83\x0a\x80\xa9\xfb\x37\x5a\x50\x6a\x57\x0b\
\x4c\xed\x6a\xd7\x9b\x17\xa0\x6c\x97\x11\x0b\x70\xd5\x01\x11\x69\
\xf8\x37\xe4\x9c\xaf\xf3\x7e\xd6\xae\x76\xb5\xc0\xd4\xae\x76\xbd\
\x89\x01\xca\xbc\x9c\x94\xfe\x8d\x86\xa0\x54\x75\xfb\x72\x01\xf0\
\x6a\x57\xbb\x5a\x60\x6a\x57\xbb\x5a\x80\xb2\x2a\xf9\xaa\x40\x85\
\x2c\x78\xdb\x8b\x82\x56\xbb\xda\xd5\x02\x53\xbb\xda\xd5\xae\x4a\
\x16\x63\x03\x23\x59\x03\x52\xb2\xe1\xed\xb7\xab\x5d\xaf\xe9\x6a\
\x83\x02\xdb\xd5\xae\x76\xb5\xab\x5d\x6f\xa8\x45\xdb\xa7\xa0\x5d\
\xed\x6a\x57\xbb\xda\xd5\x02\x53\xbb\xda\xd5\xae\x76\xb5\xab\x5d\
\x2d\x30\xb5\xab\x5d\xed\x6a\x57\xbb\x5a\x60\x6a\x57\xbb\xda\xd5\
\xae\x76\xb5\xab\x05\xa6\x76\xb5\xab\x5d\xed\x6a\x57\x0b\x4c\xed\
\x6a\x57\xbb\xda\xd5\xae\x76\xb5\xc0\xd4\xae\x76\xb5\xab\x5d\xed\
\x6a\x81\xa9\x5d\xed\x6a\x57\xbb\xda\xd5\xae\xd7\x78\xfd\xff\x07\
\x00\xdf\xeb\xa6\x5e\x67\x5d\xc3\xc8\x00\x00\x00\x00\x49\x45\x4e\
\x44\xae\x42\x60\x82\
\x00\x00\x10\xaf\
\x3c\
\xb8\x64\x18\xca\xef\x9c\x95\xcd\x21\x1c\xbf\x60\xa1\xbd\xdd\x42\
\x00\x00\x01\x10\x00\x00\x05\x5b\x00\x00\x0e\xce\x00\x00\x05\x5b\
\x00\x00\x0f\x2c\x00\x04\xec\x30\x00\x00\x09\x90\x00\x2a\xcf\x04\
\x00\x00\x00\x94\x00\x2b\x66\xbe\x00\x00\x00\xc1\x00\x4c\x99\x62\
\x00\x00\x08\x7f\x00\x5c\x8c\x34\x00\x00\x0d\x6c\x00\xc2\x69\x4a\
\x00\x00\x09\x0c\x01\x41\x67\xe1\x00\x00\x09\x4e\x01\x6e\x3c\x3e\
\x00\x00\x06\x40\x02\x77\x43\xb2\x00\x00\x07\x30\x02\xa7\x96\xc4\
\x00\x00\x00\x00\x03\x0f\x07\xc2\x00\x00\x07\xa8\x04\x26\xa4\x7e\
\x00\x00\x0d\x95\x04\x84\x78\xf1\x00\x00\x0c\x0e\x04\xa3\x1d\x95\
\x00\x00\x06\x0e\x04\xeb\xd1\x1e\x00\x00\x0a\xe7\x05\x0f\xee\xd1\
\x00\x00\x04\xef\x05\x97\x18\xa4\x00\x00\x08\x1b\x06\x1b\x1e\xf4\
\x00\x00\x04\xb6\x06\x5b\x01\x15\x00\x00\x07\x76\x06\x7c\x5c\x69\
\x00\x00\x08\xaa\x08\xaa\xe3\xe4\x00\x00\x0e\xf5\x08\xaa\xe3\xe4\
\x00\x00\x0f\x4d\x0a\xa8\xb8\x85\x00\x00\x00\x2a\x0a\xa8\xc3\x5f\
\x00\x00\x0c\x7a\x0a\xac\x2c\x85\x00\x00\x00\x61\x0b\x30\x83\x76\
\x00\x00\x01\x44\x0d\x19\x52\xba\x00\x00\x0e\x82\x0d\x7e\x3d\x9a\
\x00\x00\x05\x9a\x0d\xde\x2e\x6a\x00\x00\x0e\x16\x0e\x1c\x3f\xe7\
\x00\x00\x0a\x9b\x0e\xf1\xf0\x41\x00\x00\x00\xf0\x0f\xb2\x8a\xe1\
\x00\x00\x09\xbc\x69\x00\x00\x0f\x7e\x03\x00\x00\x00\x0a\x00\x26\
\x03\xa0\x03\xb5\x03\xc1\x03\xaf\x08\x00\x00\x00\x00\x06\x00\x00\
\x00\x06\x26\x41\x62\x6f\x75\x74\x07\x00\x00\x00\x05\x56\x61\x75\
\x6c\x74\x01\x03\x00\x00\x00\x16\x00\x26\x03\x94\x03\xb7\x03\xbc\
\x03\xb9\x03\xbf\x03\xc5\x03\xc1\x03\xb3\x03\xaf\x03\xb1\x08\x00\
\x00\x00\x00\x06\x00\x00\x00\x07\x26\x43\x72\x65\x61\x74\x65\x07\
\x00\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x12\x00\
\x26\x03\x94\x03\xb9\x03\xb1\x03\xb3\x03\xc1\x03\xb1\x03\xc6\x03\
\xae\x08\x00\x00\x00\x00\x06\x00\x00\x00\x07\x26\x44\x65\x6c\x65\
\x74\x65\x07\x00\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\
\x00\x0e\x00\x26\x03\x88\x03\xbe\x03\xbf\x03\xb4\x03\xbf\x03\xc2\
\x08\x00\x00\x00\x00\x06\x00\x00\x00\x05\x26\x45\x78\x69\x74\x07\
\x00\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x10\x00\
\x26\x03\x86\x03\xbd\x03\xbf\x03\xb9\x03\xb3\x03\xbc\x03\xb1\x08\
\x00\x00\x00\x00\x06\x00\x00\x00\x05\x26\x4f\x70\x65\x6e\x07\x00\
\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x2c\x00\x26\
\x03\x91\x03\xbd\x03\xb1\x03\xc6\x03\xad\x03\xc1\x03\xb5\x03\xc4\
\x03\xb5\x00\x20\x03\xad\x03\xbd\x03\xb1\x00\x20\x03\xc3\x03\xc6\
\x03\xac\x03\xbb\x03\xbc\x03\xb1\x00\x21\x08\x00\x00\x00\x00\x06\
\x00\x00\x00\x0e\x26\x52\x65\x70\x6f\x72\x74\x20\x61\x20\x62\x75\
\x67\x21\x07\x00\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\
\x02\x58\x00\x3c\x00\x62\x00\x3e\x00\x20\x00\x56\x00\x61\x00\x75\
\x00\x6c\x00\x74\x00\x20\x00\x25\x00\x31\x00\x20\x00\x3c\x00\x2f\
\x00\x62\x00\x3e\x00\x0a\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\
\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x3c\
\x00\x70\x00\x3e\x03\x94\x03\xb7\x03\xbc\x03\xb9\x03\xbf\x03\xc5\
\x03\xc1\x03\xb3\x03\xaf\x03\xb1\x00\x20\x03\xba\x03\xb1\x03\xb9\
\x00\x20\x03\xb4\x03\xb9\x03\xb1\x03\xc7\x03\xb5\x03\xaf\x03\xc1\
\x03\xb7\x03\xc3\x03\xb7\x00\x20\x03\xba\x03\xc1\x03\xc5\x03\xc0\
\x03\xc4\x03\xbf\x03\xb3\x03\xc1\x03\xb1\x03\xc6\x03\xb7\x03\xbc\
\x03\xad\x03\xbd\x03\xc9\x03\xbd\x00\x20\x00\x0a\x00\x20\x00\x20\
\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\
\x00\x20\x00\x20\x00\x3c\x00\x70\x00\x3e\x03\xc6\x03\xb1\x03\xba\
\x03\xad\x03\xbb\x03\xc9\x03\xbd\x00\x20\x03\xbc\x03\xb5\x00\x20\
\x03\xc4\x03\xb7\x03\xbd\x00\x20\x03\xc7\x03\xc1\x03\xae\x03\xc3\
\x03\xb7\x00\x20\x03\xc4\x03\xbf\x03\xc5\x00\x20\x00\x65\x00\x6e\
\x00\x63\x00\x66\x00\x73\x00\x2e\x00\x0a\x00\x20\x00\x20\x00\x20\
\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\
\x00\x20\x00\x3c\x00\x70\x00\x3e\x00\x3c\x00\x61\x00\x20\x00\x68\
\x00\x72\x00\x65\x00\x66\x00\x3d\x00\x22\x00\x25\x00\x32\x00\x22\
\x00\x3e\x00\x56\x00\x61\x00\x75\x00\x6c\x00\x74\x00\x3c\x00\x2f\
\x00\x61\x00\x3e\x00\x0a\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\
\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x3c\
\x00\x70\x00\x3e\x00\x43\x00\x6f\x00\x70\x00\x79\x00\x72\x00\x69\
\x00\x67\x00\x68\x00\x74\x00\x20\x00\x26\x00\x63\x00\x6f\x00\x70\
\x00\x79\x00\x3b\x00\x20\x03\xa7\x03\xc1\x03\xae\x03\xc3\x03\xc4\
\x03\xbf\x03\xc2\x00\x20\x03\xa4\x03\xc1\x03\xb9\x03\xb1\x03\xbd\
\x03\xc4\x03\xb1\x03\xc6\x03\xcd\x03\xbb\x03\xbb\x03\xb7\x03\xc2\
\x00\x20\x00\x20\x00\x0a\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\
\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x3c\
\x00\x62\x00\x72\x00\x3e\x00\x4c\x00\x69\x00\x63\x00\x65\x00\x6e\
\x00\x73\x00\x65\x00\x3a\x00\x20\x00\x47\x00\x4e\x00\x55\x00\x20\
\x00\x47\x00\x50\x00\x4c\x00\x33\x00\x0a\x00\x20\x00\x20\x00\x20\
\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\
\x00\x20\x00\x3c\x00\x70\x00\x3e\x00\x50\x00\x79\x00\x74\x00\x68\
\x00\x6f\x00\x6e\x00\x20\x00\x25\x00\x33\x00\x20\x00\x2d\x00\x20\
\x00\x51\x00\x74\x00\x20\x00\x25\x00\x34\x00\x20\x00\x2d\x00\x20\
\x00\x50\x00\x79\x00\x51\x00\x74\x00\x20\x00\x25\x00\x35\x00\x20\
\x00\x6f\x00\x6e\x00\x20\x00\x25\x00\x36\x08\x00\x00\x00\x00\x06\
\x00\x00\x01\x00\x3c\x62\x3e\x20\x56\x61\x75\x6c\x74\x20\x25\x31\
\x20\x3c\x2f\x62\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x3c\x70\x3e\x43\x72\x65\x61\x74\x65\x20\x61\x6e\x64\x20\
\x6d\x61\x6e\x61\x67\x65\x20\x65\x6e\x63\x72\x79\x70\x74\x65\x64\
\x20\x66\x6f\x6c\x64\x65\x72\x73\x20\x75\x73\x69\x6e\x67\x20\x65\
\x6e\x63\x66\x73\x2e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x3c\x70\x3e\x3c\x61\x20\x68\x72\x65\x66\x3d\x22\x25\x32\
\x22\x3e\x56\x61\x75\x6c\x74\x3c\x2f\x61\x3e\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x70\x3e\x43\x6f\x70\x79\x72\
\x69\x67\x68\x74\x20\x26\x63\x6f\x70\x79\x3b\x20\x43\x68\x72\x69\
\x73\x20\x54\x72\x69\x61\x6e\x74\x61\x66\x69\x6c\x6c\x69\x73\x20\
\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x62\
\x72\x3e\x4c\x69\x63\x65\x6e\x73\x65\x3a\x20\x47\x4e\x55\x20\x47\
\x50\x4c\x33\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x3c\x70\x3e\x50\x79\x74\x68\x6f\x6e\x20\x25\x33\x20\x2d\x20\x51\
\x74\x20\x25\x34\x20\x2d\x20\x50\x79\x51\x74\x20\x25\x35\x20\x6f\
\x6e\x20\x25\x36\x07\x00\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\
\x00\x00\x00\x14\x03\xa0\x03\xb5\x03\xc1\x03\xaf\x00\x20\x00\x56\
\x00\x61\x00\x75\x00\x6c\x00\x74\x08\x00\x00\x00\x00\x06\x00\x00\
\x00\x0b\x41\x62\x6f\x75\x74\x20\x56\x61\x75\x6c\x74\x07\x00\x00\
\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x66\x03\x88\x03\
\xbd\x03\xb1\x00\x20\x03\xc3\x03\xc6\x03\xac\x03\xbb\x03\xbc\x03\
\xb1\x00\x20\x03\xc0\x03\xc1\x03\xbf\x03\xad\x03\xba\x03\xc5\x03\
\xc8\x03\xb5\x00\x20\x03\xc3\x03\xc4\x03\xb7\x03\xbd\x00\x20\x03\
\xb1\x03\xc0\x03\xbf\x03\xc0\x03\xc1\x03\xbf\x03\xc3\x03\xac\x03\
\xc1\x03\xc4\x03\xb7\x03\xc3\x03\xb7\x00\x20\x03\xc4\x03\xbf\x03\
\xc5\x00\x20\x03\xc6\x03\xb1\x03\xba\x03\xad\x03\xbb\x03\xbf\x03\
\xc5\x00\x21\x08\x00\x00\x00\x00\x06\x00\x00\x00\x2b\x41\x6e\x20\
\x65\x72\x72\x6f\x72\x20\x6f\x63\x63\x75\x72\x20\x77\x68\x69\x6c\
\x65\x20\x75\x6e\x6d\x6f\x75\x6e\x74\x69\x6e\x67\x20\x74\x68\x65\
\x20\x66\x6f\x6c\x64\x65\x72\x21\x07\x00\x00\x00\x05\x56\x61\x75\
\x6c\x74\x01\x03\x00\x00\x00\x3c\x03\x95\x03\xc0\x03\xb9\x03\xbb\
\x03\xbf\x03\xb3\x03\xae\x00\x20\x03\xc6\x03\xb1\x03\xba\x03\xad\
\x03\xbb\x03\xbf\x03\xc5\x00\x20\x03\xb1\x03\xc0\x03\xcc\x00\x20\
\x03\xc4\x03\xb7\x03\xbd\x00\x20\x03\xbb\x03\xaf\x03\xc3\x03\xc4\
\x03\xb1\x00\x3a\x08\x00\x00\x00\x00\x06\x00\x00\x00\x1e\x43\x68\
\x6f\x6f\x73\x65\x20\x61\x20\x66\x6f\x6c\x64\x65\x72\x20\x66\x72\
\x6f\x6d\x20\x74\x68\x65\x20\x6c\x69\x73\x74\x3a\x07\x00\x00\x00\
\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x12\x00\x26\x03\x9a\
\x03\xbb\x03\xb5\x03\xaf\x03\xc3\x03\xb9\x03\xbc\x03\xbf\x08\x00\
\x00\x00\x00\x06\x00\x00\x00\x06\x43\x6c\x6f\x26\x73\x65\x07\x00\
\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x9c\x03\x9a\
\x03\xbb\x03\xb5\x03\xaf\x03\xc3\x03\xc4\x03\xb5\x00\x20\x03\xcc\
\x03\xbb\x03\xb1\x00\x20\x03\xc4\x03\xb1\x00\x20\x03\xc0\x03\xc1\
\x03\xbf\x03\xb3\x03\xc1\x03\xac\x03\xbc\x03\xbc\x03\xb1\x03\xc4\
\x03\xb1\x00\x20\x03\xc0\x03\xbf\x03\xc5\x00\x20\x03\xba\x03\xc1\
\x03\xb1\x03\xc4\x03\xac\x03\xbd\x03\xb5\x00\x20\x03\xc4\x03\xbf\
\x03\xbd\x00\x20\x03\xc6\x03\xac\x03\xba\x03\xb5\x03\xbb\x03\xbf\
\x00\x20\x03\xb1\x03\xc0\x03\xb1\x03\xc3\x03\xc7\x03\xbf\x03\xbb\
\x03\xb7\x03\xbc\x03\xad\x03\xbd\x03\xbf\x00\x20\x03\xba\x03\xb1\
\x03\xb9\x00\x20\x03\xc0\x03\xb1\x03\xc4\x03\xae\x03\xc3\x03\xc4\
\x03\xb5\x00\x20\x03\xbf\x03\xba\x00\x2e\x08\x00\x00\x00\x00\x06\
\x00\x00\x00\x3a\x43\x6c\x6f\x73\x65\x20\x61\x6c\x6c\x20\x70\x72\
\x6f\x67\x72\x61\x6d\x73\x20\x74\x68\x61\x74\x20\x6b\x65\x65\x70\
\x20\x74\x68\x65\x20\x66\x6f\x6c\x64\x65\x72\x20\x62\x75\x73\x79\
\x20\x61\x6e\x64\x20\x70\x72\x65\x73\x73\x20\x6f\x6b\x2e\x07\x00\
\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x20\x03\x9a\
\x03\xbb\x03\xb5\x03\xaf\x03\xc3\x03\xb9\x03\xbc\x03\xbf\x00\x20\
\x03\xc6\x03\xb1\x03\xba\x03\xad\x03\xbb\x03\xbf\x03\xc5\x08\x00\
\x00\x00\x00\x06\x00\x00\x00\x0c\x43\x6c\x6f\x73\x65\x20\x66\x6f\
\x6c\x64\x65\x72\x07\x00\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\
\x00\x00\x00\x10\x03\xa3\x03\xc5\x03\xbd\x03\xad\x03\xc7\x03\xb5\
\x03\xb9\x03\xb1\x08\x00\x00\x00\x00\x06\x00\x00\x00\x08\x43\x6f\
\x6e\x74\x69\x6e\x75\x65\x07\x00\x00\x00\x05\x56\x61\x75\x6c\x74\
\x01\x03\x00\x00\x00\x42\x03\x94\x03\xb9\x03\xb1\x03\xb3\x03\xc1\
\x03\xb1\x03\xc6\x03\xae\x00\x20\x03\xba\x03\xc1\x03\xc5\x03\xc0\
\x03\xc1\x03\xbf\x03\xb3\x03\xc1\x03\xb1\x03\xb3\x03\xb7\x03\xbc\
\x03\xad\x03\xbd\x03\xbf\x03\xc5\x00\x20\x03\xc6\x03\xb1\x03\xba\
\x03\xad\x03\xbb\x03\xbf\x03\xc5\x08\x00\x00\x00\x00\x06\x00\x00\
\x00\x17\x44\x65\x6c\x65\x74\x65\x20\x65\x6e\x63\x72\x79\x70\x74\
\x65\x64\x20\x66\x6f\x6c\x64\x65\x72\x07\x00\x00\x00\x05\x56\x61\
\x75\x6c\x74\x01\x03\x00\x00\x00\x38\x03\x94\x03\xb9\x03\xb1\x03\
\xb3\x03\xc1\x03\xb1\x03\xc6\x03\xae\x00\x20\x03\xc3\x03\xb7\x03\
\xbc\x03\xb5\x03\xaf\x03\xbf\x03\xc5\x00\x20\x03\xc0\x03\xc1\x03\
\xbf\x03\xc3\x03\xac\x03\xc1\x03\xc4\x03\xb7\x03\xc3\x03\xb7\x03\
\xc2\x08\x00\x00\x00\x00\x06\x00\x00\x00\x12\x44\x65\x6c\x65\x74\
\x65\x20\x6d\x6f\x75\x6e\x74\x20\x70\x6f\x69\x6e\x74\x07\x00\x00\
\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x0c\x03\xa3\x03\
\xc6\x03\xac\x03\xbb\x03\xbc\x03\xb1\x08\x00\x00\x00\x00\x06\x00\
\x00\x00\x05\x45\x72\x72\x6f\x72\x07\x00\x00\x00\x05\x56\x61\x75\
\x6c\x74\x01\x03\x00\x00\x00\x3a\x03\x9f\x00\x20\x03\xc6\x03\xac\
\x03\xba\x03\xb5\x03\xbb\x03\xbf\x03\xc2\x00\x20\x03\xb5\x03\xaf\
\x03\xbd\x03\xb1\x03\xb9\x00\x20\x03\xb1\x03\xc0\x03\xb1\x03\xc3\
\x03\xc7\x03\xbf\x03\xbb\x03\xb7\x03\xbc\x03\xad\x03\xbd\x03\xbf\
\x03\xc2\x08\x00\x00\x00\x00\x06\x00\x00\x00\x0e\x46\x6f\x6c\x64\
\x65\x72\x20\x69\x73\x20\x62\x75\x73\x79\x07\x00\x00\x00\x05\x56\
\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x1c\x03\x8c\x03\xbd\x03\xbf\
\x03\xbc\x03\xb1\x00\x20\x03\xc6\x03\xb1\x03\xba\x03\xad\x03\xbb\
\x03\xbf\x03\xc5\x00\x3a\x08\x00\x00\x00\x00\x06\x00\x00\x00\x0c\
\x46\x6f\x6c\x64\x65\x72\x20\x6e\x61\x6d\x65\x3a\x07\x00\x00\x00\
\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x1a\x00\x26\x03\xa3\
\x03\xc5\x03\xbc\x03\xbc\x03\xb5\x03\xc4\x03\xad\x03\xc7\x03\xb5\
\x03\xc4\x03\xb5\x00\x21\x08\x00\x00\x00\x00\x06\x00\x00\x00\x0e\
\x47\x65\x74\x20\x26\x49\x6e\x76\x6f\x6c\x76\x65\x64\x21\x07\x00\
\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x0e\x03\x92\
\x03\xbf\x03\xae\x03\xb8\x03\xb5\x03\xb9\x03\xb1\x08\x00\x00\x00\
\x00\x06\x00\x00\x00\x04\x48\x65\x6c\x70\x07\x00\x00\x00\x05\x56\
\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x8a\x03\x91\x03\xbd\x00\x20\
\x03\xb8\x03\xad\x03\xbb\x03\xb5\x03\xc4\x03\xb5\x00\x20\x03\xbd\
\x03\xb1\x00\x20\x03\xb4\x03\xb9\x03\xb1\x03\xb3\x03\xc1\x03\xac\
\x03\xc8\x03\xb5\x03\xc4\x03\xb5\x00\x20\x03\xb1\x03\xc5\x03\xc4\
\x03\xcc\x00\x20\x03\xc4\x03\xbf\x00\x20\x03\xc6\x03\xac\x03\xba\
\x03\xb5\x03\xbb\x03\xbf\x00\x2c\x00\x20\x03\xc0\x03\xc1\x03\xad\
\x03\xc0\x03\xb5\x03\xb9\x00\x20\x03\xc0\x03\xc1\x03\xce\x03\xc4\
\x03\xb1\x00\x20\x03\xbd\x03\xb1\x00\x20\x03\xc4\x03\xbf\x03\xbd\
\x00\x20\x03\xba\x03\xbb\x03\xb5\x03\xaf\x03\xc3\x03\xb5\x03\xc4\
\x03\xb5\x00\x21\x08\x00\x00\x00\x00\x06\x00\x00\x00\x3b\x49\x66\
\x20\x79\x6f\x75\x20\x77\x61\x6e\x74\x20\x74\x6f\x20\x64\x65\x6c\
\x65\x74\x65\x20\x74\x68\x69\x73\x20\x66\x6f\x6c\x64\x65\x72\x2c\
\x20\x79\x6f\x75\x20\x6d\x75\x73\x74\x20\x63\x6c\x6f\x73\x65\x20\
\x69\x74\x20\x66\x69\x72\x73\x74\x21\x07\x00\x00\x00\x05\x56\x61\
\x75\x6c\x74\x01\x03\x00\x00\x00\x20\x03\x9a\x03\xac\x03\xc4\x03\
\xb9\x00\x20\x03\xc0\x03\xae\x03\xb3\x03\xb5\x00\x20\x03\xc3\x03\
\xc4\x03\xc1\x03\xb1\x03\xb2\x03\xac\x08\x00\x00\x00\x00\x06\x00\
\x00\x00\x12\x53\x6f\x6d\x65\x74\x68\x69\x6e\x67\x20\x69\x73\x20\
\x77\x72\x6f\x6e\x67\x07\x00\x00\x00\x05\x56\x61\x75\x6c\x74\x01\
\x03\x00\x00\x00\xb8\x03\x9a\x03\xac\x03\xc4\x03\xb9\x00\x20\x03\
\xc0\x03\xae\x03\xb3\x03\xb5\x00\x20\x03\xc3\x03\xc4\x03\xc1\x03\
\xb1\x03\xb2\x03\xac\x00\x2c\x00\x20\x03\xb5\x03\xbb\x03\xad\x03\
\xb3\x03\xbe\x03\xb5\x03\xc4\x03\xb5\x00\x20\x03\xc4\x03\xbf\x03\
\xbd\x00\x20\x03\xba\x03\xc9\x03\xb4\x03\xb9\x03\xba\x03\xcc\x00\
\x20\x03\xbe\x03\xb1\x03\xbd\x03\xac\x00\x2e\x00\x20\x03\x95\x03\
\xc0\x03\xaf\x03\xc3\x03\xb7\x03\xc2\x00\x20\x03\xb5\x03\xbb\x03\
\xad\x03\xb3\x03\xbe\x03\xb5\x03\xc4\x03\xb5\x00\x20\x03\xb1\x03\
\xbd\x00\x20\x03\xbf\x00\x20\x03\xc6\x03\xac\x03\xba\x03\xb5\x03\
\xbb\x03\xbf\x03\xc2\x00\x20\x03\xb5\x03\xaf\x03\xbd\x03\xb1\x03\
\xb9\x00\x20\x03\xae\x03\xb4\x03\xb7\x00\x20\x03\xb1\x03\xbd\x03\
\xbf\x03\xb9\x03\xc7\x03\xc4\x03\xcc\x03\xc2\x00\x2e\x08\x00\x00\
\x00\x00\x06\x00\x00\x00\x55\x53\x6f\x6d\x65\x74\x68\x69\x6e\x67\
\x20\x69\x73\x20\x77\x72\x6f\x6e\x67\x2c\x20\x63\x68\x65\x63\x6b\
\x20\x74\x68\x65\x20\x70\x61\x73\x73\x77\x6f\x72\x64\x20\x61\x67\
\x61\x69\x6e\x2e\x20\x41\x6c\x73\x6f\x20\x63\x68\x65\x63\x6b\x20\
\x69\x66\x20\x74\x68\x65\x20\x66\x6f\x6c\x64\x65\x72\x20\x69\x73\
\x20\x73\x74\x69\x6c\x6c\x20\x6f\x70\x65\x6e\x2e\x07\x00\x00\x00\
\x05\x56\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x3c\x03\x9f\x00\x20\
\x03\xc6\x03\xac\x03\xba\x03\xb5\x03\xbb\x03\xbf\x03\xc2\x00\x20\
\x03\xb5\x03\xaf\x03\xbd\x03\xb1\x03\xb9\x00\x20\x03\xc0\x03\xc1\
\x03\xbf\x03\xc3\x03\xb1\x03\xc1\x03\xc4\x03\xb7\x03\xbc\x03\xad\
\x03\xbd\x03\xbf\x03\xc2\x00\x21\x08\x00\x00\x00\x00\x06\x00\x00\
\x00\x16\x54\x68\x65\x20\x66\x6f\x6c\x64\x65\x72\x20\x69\x73\x20\
\x6d\x6f\x75\x6e\x74\x65\x64\x21\x07\x00\x00\x00\x05\x56\x61\x75\
\x6c\x74\x01\x03\x00\x00\x00\x9c\x03\x9f\x00\x20\x03\xc6\x03\xac\
\x03\xba\x03\xb5\x03\xbb\x03\xbf\x03\xc2\x00\x20\x03\xb5\x03\xaf\
\x03\xbd\x03\xb1\x03\xb9\x00\x20\x03\xc0\x03\xb9\x03\xb8\x03\xb1\
\x03\xbd\x03\xcc\x03\xbd\x00\x20\x03\xb1\x03\xc0\x03\xb1\x03\xc3\
\x03\xc7\x03\xbf\x03\xbb\x03\xb7\x03\xbc\x03\xad\x03\xbd\x03\xbf\
\x03\xc2\x00\x2c\x00\x20\x03\xb8\x03\xad\x03\xbb\x03\xb5\x03\xc4\
\x03\xb5\x00\x20\x03\xbd\x03\xb1\x00\x20\x03\xc4\x03\xbf\x03\xbd\
\x00\x20\x03\xba\x03\xbb\x03\xb5\x03\xaf\x03\xc3\x03\xb5\x03\xc4\
\x03\xb5\x00\x20\x03\xad\x03\xc4\x03\xc3\x03\xb9\x00\x20\x03\xba\
\x03\xb1\x03\xb9\x00\x20\x03\xb1\x03\xbb\x03\xbb\x03\xb9\x03\xce\
\x03\xc2\x00\x3b\x08\x00\x00\x00\x00\x06\x00\x00\x00\x3c\x54\x68\
\x65\x20\x66\x6f\x6c\x64\x65\x72\x20\x69\x73\x20\x70\x72\x6f\x62\
\x61\x62\x6c\x79\x20\x62\x75\x73\x79\x2c\x20\x64\x6f\x20\x79\x6f\
\x75\x20\x77\x61\x6e\x74\x20\x74\x6f\x20\x63\x6c\x6f\x73\x65\x20\
\x69\x74\x20\x61\x6e\x79\x77\x61\x79\x3f\x07\x00\x00\x00\x05\x56\
\x61\x75\x6c\x74\x01\x03\x00\x00\x00\x0a\x00\x56\x00\x61\x00\x75\
\x00\x6c\x00\x74\x08\x00\x00\x00\x00\x06\x00\x00\x00\x05\x56\x61\
\x75\x6c\x74\x07\x00\x00\x00\x05\x56\x61\x75\x6c\x74\x01\x03\x00\
\x00\x00\x42\x00\x3c\x00\x62\x00\x3e\x03\x9f\x03\xb9\x00\x20\x03\
\xba\x03\xc9\x03\xb4\x03\xb9\x03\xba\x03\xbf\x03\xaf\x00\x20\x03\
\xb4\x03\xb5\x03\xbd\x00\x20\x03\xc4\x03\xb1\x03\xb9\x03\xc1\x03\
\xb9\x03\xac\x03\xb6\x03\xbf\x03\xc5\x03\xbd\x00\x21\x00\x3c\x00\
\x2f\x00\x62\x00\x3e\x08\x00\x00\x00\x00\x06\x00\x00\x00\x1e\x3c\
\x62\x3e\x50\x61\x73\x73\x77\x6f\x72\x64\x73\x20\x64\x6f\x20\x6e\
\x6f\x74\x20\x6d\x61\x74\x63\x68\x21\x3c\x2f\x62\x3e\x07\x00\x00\
\x00\x0c\x63\x72\x65\x61\x74\x65\x70\x61\x73\x73\x77\x64\x01\x03\
\x00\x00\x00\x34\x03\x95\x03\xc0\x03\xb9\x03\xb2\x03\xb5\x03\xb2\
\x03\xb1\x03\xaf\x03\xc9\x03\xc3\x03\xb7\x00\x20\x03\xba\x03\xc9\
\x03\xb4\x03\xb9\x03\xba\x03\xbf\x03\xcd\x00\x20\x00\x45\x00\x6e\
\x00\x63\x00\x46\x00\x53\x00\x3a\x08\x00\x00\x00\x00\x06\x00\x00\
\x00\x17\x43\x6f\x6e\x66\x69\x72\x6d\x20\x45\x6e\x63\x46\x53\x20\
\x70\x61\x73\x73\x77\x6f\x72\x64\x3a\x07\x00\x00\x00\x0c\x63\x72\
\x65\x61\x74\x65\x70\x61\x73\x73\x77\x64\x01\x03\x00\x00\x00\x1c\
\x03\x9a\x03\xc9\x03\xb4\x03\xb9\x03\xba\x03\xcc\x03\xc2\x00\x20\
\x00\x45\x00\x6e\x00\x63\x00\x46\x00\x53\x00\x3a\x08\x00\x00\x00\
\x00\x06\x00\x00\x00\x0f\x45\x6e\x63\x46\x53\x20\x70\x61\x73\x73\
\x77\x6f\x72\x64\x3a\x07\x00\x00\x00\x0c\x63\x72\x65\x61\x74\x65\
\x70\x61\x73\x73\x77\x64\x01\x03\x00\x00\x00\x04\x03\x9f\x03\x9a\
\x08\x00\x00\x00\x00\x06\x00\x00\x00\x02\x4f\x6b\x07\x00\x00\x00\
\x0c\x63\x72\x65\x61\x74\x65\x70\x61\x73\x73\x77\x64\x01\x03\x00\
\x00\x00\x0e\x03\x9a\x03\xc9\x03\xb4\x03\xb9\x03\xba\x03\xcc\x03\
\xc2\x08\x00\x00\x00\x00\x06\x00\x00\x00\x08\x50\x61\x73\x73\x77\
\x6f\x72\x64\x07\x00\x00\x00\x0c\x63\x72\x65\x61\x74\x65\x70\x61\
\x73\x73\x77\x64\x01\x03\x00\x00\x00\x04\x03\x9f\x03\x9a\x08\x00\
\x00\x00\x00\x06\x00\x00\x00\x02\x4f\x6b\x07\x00\x00\x00\x06\x70\
\x61\x73\x73\x77\x64\x01\x03\x00\x00\x00\x0e\x03\x9a\x03\xc9\x03\
\xb4\x03\xb9\x03\xba\x03\xcc\x03\xc2\x08\x00\x00\x00\x00\x06\x00\
\x00\x00\x08\x50\x61\x73\x73\x77\x6f\x72\x64\x07\x00\x00\x00\x06\
\x70\x61\x73\x73\x77\x64\x01\x88\x00\x00\x00\x02\x01\x01\
"
qt_resource_name = "\
\x00\x09\
\x0c\x37\xae\x47\
\x00\x76\
\x00\x61\x00\x75\x00\x6c\x00\x74\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0b\
\x0a\xa2\xed\x1d\
\x00\x76\
\x00\x61\x00\x75\x00\x6c\x00\x74\x00\x5f\x00\x65\x00\x6c\x00\x2e\x00\x71\x00\x6d\
"
qt_resource_struct = "\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x01\
\x00\x00\x00\x18\x00\x00\x00\x00\x00\x01\x00\x01\x2b\xea\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
"
def qInitResources():
QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| gpl-3.0 |
gsvaldevieso/tempo-certo | app/node_modules/node-gyp/gyp/tools/pretty_gyp.py | 2618 | 4756 | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Pretty-prints the contents of a GYP file."""
import sys
import re
# Regex to remove comments when we're counting braces.
COMMENT_RE = re.compile(r'\s*#.*')
# Regex to remove quoted strings when we're counting braces.
# It takes into account quoted quotes, and makes sure that the quotes match.
# NOTE: It does not handle quotes that span more than one line, or
# cases where an escaped quote is preceeded by an escaped backslash.
QUOTE_RE_STR = r'(?P<q>[\'"])(.*?)(?<![^\\][\\])(?P=q)'
QUOTE_RE = re.compile(QUOTE_RE_STR)
def comment_replace(matchobj):
return matchobj.group(1) + matchobj.group(2) + '#' * len(matchobj.group(3))
def mask_comments(input):
"""Mask the quoted strings so we skip braces inside quoted strings."""
search_re = re.compile(r'(.*?)(#)(.*)')
return [search_re.sub(comment_replace, line) for line in input]
def quote_replace(matchobj):
return "%s%s%s%s" % (matchobj.group(1),
matchobj.group(2),
'x'*len(matchobj.group(3)),
matchobj.group(2))
def mask_quotes(input):
"""Mask the quoted strings so we skip braces inside quoted strings."""
search_re = re.compile(r'(.*?)' + QUOTE_RE_STR)
return [search_re.sub(quote_replace, line) for line in input]
def do_split(input, masked_input, search_re):
output = []
mask_output = []
for (line, masked_line) in zip(input, masked_input):
m = search_re.match(masked_line)
while m:
split = len(m.group(1))
line = line[:split] + r'\n' + line[split:]
masked_line = masked_line[:split] + r'\n' + masked_line[split:]
m = search_re.match(masked_line)
output.extend(line.split(r'\n'))
mask_output.extend(masked_line.split(r'\n'))
return (output, mask_output)
def split_double_braces(input):
"""Masks out the quotes and comments, and then splits appropriate
lines (lines that matche the double_*_brace re's above) before
indenting them below.
These are used to split lines which have multiple braces on them, so
that the indentation looks prettier when all laid out (e.g. closing
braces make a nice diagonal line).
"""
double_open_brace_re = re.compile(r'(.*?[\[\{\(,])(\s*)([\[\{\(])')
double_close_brace_re = re.compile(r'(.*?[\]\}\)],?)(\s*)([\]\}\)])')
masked_input = mask_quotes(input)
masked_input = mask_comments(masked_input)
(output, mask_output) = do_split(input, masked_input, double_open_brace_re)
(output, mask_output) = do_split(output, mask_output, double_close_brace_re)
return output
def count_braces(line):
"""keeps track of the number of braces on a given line and returns the result.
It starts at zero and subtracts for closed braces, and adds for open braces.
"""
open_braces = ['[', '(', '{']
close_braces = [']', ')', '}']
closing_prefix_re = re.compile(r'(.*?[^\s\]\}\)]+.*?)([\]\}\)],?)\s*$')
cnt = 0
stripline = COMMENT_RE.sub(r'', line)
stripline = QUOTE_RE.sub(r"''", stripline)
for char in stripline:
for brace in open_braces:
if char == brace:
cnt += 1
for brace in close_braces:
if char == brace:
cnt -= 1
after = False
if cnt > 0:
after = True
# This catches the special case of a closing brace having something
# other than just whitespace ahead of it -- we don't want to
# unindent that until after this line is printed so it stays with
# the previous indentation level.
if cnt < 0 and closing_prefix_re.match(stripline):
after = True
return (cnt, after)
def prettyprint_input(lines):
"""Does the main work of indenting the input based on the brace counts."""
indent = 0
basic_offset = 2
last_line = ""
for line in lines:
if COMMENT_RE.match(line):
print line
else:
line = line.strip('\r\n\t ') # Otherwise doesn't strip \r on Unix.
if len(line) > 0:
(brace_diff, after) = count_braces(line)
if brace_diff != 0:
if after:
print " " * (basic_offset * indent) + line
indent += brace_diff
else:
indent += brace_diff
print " " * (basic_offset * indent) + line
else:
print " " * (basic_offset * indent) + line
else:
print ""
last_line = line
def main():
if len(sys.argv) > 1:
data = open(sys.argv[1]).read().splitlines()
else:
data = sys.stdin.read().splitlines()
# Split up the double braces.
lines = split_double_braces(data)
# Indent and print the output.
prettyprint_input(lines)
return 0
if __name__ == '__main__':
sys.exit(main())
| gpl-3.0 |
KNMI/VERCE | verce-hpc-pe/src/networkx/algorithms/centrality/tests/test_closeness_centrality.py | 84 | 2746 | """
Tests for degree centrality.
"""
from nose.tools import *
import networkx as nx
class TestClosenessCentrality:
def setUp(self):
self.K = nx.krackhardt_kite_graph()
self.P3 = nx.path_graph(3)
self.P4 = nx.path_graph(4)
self.K5 = nx.complete_graph(5)
self.C4=nx.cycle_graph(4)
self.T=nx.balanced_tree(r=2, h=2)
self.Gb = nx.Graph()
self.Gb.add_edges_from([(0,1), (0,2), (1,3), (2,3),
(2,4), (4,5), (3,5)])
F = nx.florentine_families_graph()
self.F = F
def test_k5_closeness(self):
c=nx.closeness_centrality(self.K5)
d={0: 1.000,
1: 1.000,
2: 1.000,
3: 1.000,
4: 1.000}
for n in sorted(self.K5):
assert_almost_equal(c[n],d[n],places=3)
def test_p3_closeness(self):
c=nx.closeness_centrality(self.P3)
d={0: 0.667,
1: 1.000,
2: 0.667}
for n in sorted(self.P3):
assert_almost_equal(c[n],d[n],places=3)
def test_krackhardt_closeness(self):
c=nx.closeness_centrality(self.K)
d={0: 0.529,
1: 0.529,
2: 0.500,
3: 0.600,
4: 0.500,
5: 0.643,
6: 0.643,
7: 0.600,
8: 0.429,
9: 0.310}
for n in sorted(self.K):
assert_almost_equal(c[n],d[n],places=3)
def test_florentine_families_closeness(self):
c=nx.closeness_centrality(self.F)
d={'Acciaiuoli': 0.368,
'Albizzi': 0.483,
'Barbadori': 0.4375,
'Bischeri': 0.400,
'Castellani': 0.389,
'Ginori': 0.333,
'Guadagni': 0.467,
'Lamberteschi': 0.326,
'Medici': 0.560,
'Pazzi': 0.286,
'Peruzzi': 0.368,
'Ridolfi': 0.500,
'Salviati': 0.389,
'Strozzi': 0.4375,
'Tornabuoni': 0.483}
for n in sorted(self.F):
assert_almost_equal(c[n],d[n],places=3)
def test_weighted_closeness(self):
XG=nx.Graph()
XG.add_weighted_edges_from([('s','u',10), ('s','x',5), ('u','v',1),
('u','x',2), ('v','y',1), ('x','u',3),
('x','v',5), ('x','y',2), ('y','s',7),
('y','v',6)])
c=nx.closeness_centrality(XG,distance='weight')
d={'y': 0.200,
'x': 0.286,
's': 0.138,
'u': 0.235,
'v': 0.200}
for n in sorted(XG):
assert_almost_equal(c[n],d[n],places=3)
| mit |
apagac/robottelo | tests/foreman/ui/test_operatingsys.py | 2 | 19232 | # -*- encoding: utf-8 -*-
"""Test class for Operating System UI"""
from ddt import ddt
from fauxfactory import gen_string
from robottelo import entities
from robottelo.common.constants import (
INSTALL_MEDIUM_URL, PARTITION_SCRIPT_DATA_FILE)
from robottelo.common.decorators import data
from robottelo.common.decorators import run_only_on, skip_if_bug_open
from robottelo.common.helpers import get_data_file
from robottelo.test import UITestCase
from robottelo.ui.factory import make_os
from robottelo.ui.locators import common_locators
from robottelo.ui.session import Session
@run_only_on('sat')
@ddt
class OperatingSys(UITestCase):
"""Implements Operating system tests from UI"""
@classmethod
def setUpClass(cls): # noqa
org_attrs = entities.Organization().create_json()
cls.org_name = org_attrs['name']
cls.org_id = org_attrs['id']
super(OperatingSys, cls).setUpClass()
def test_create_os(self):
"""@Test: Create a new OS
@Feature: OS - Positive Create
@Assert: OS is created
"""
name = gen_string("alpha", 6)
major_version = gen_string('numeric', 1)
minor_version = gen_string('numeric', 1)
os_family = "Red Hat"
arch = "x86_64"
with Session(self.browser) as session:
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.search(name))
@data({u'name': gen_string('alpha', 10),
u'major_version': gen_string('numeric', 1),
u'minor_version': gen_string('numeric', 1),
u'desc': gen_string('alpha', 10),
u'os_family': "Red Hat"},
{u'name': gen_string('html', 10),
u'major_version': gen_string('numeric', 4),
u'minor_version': gen_string('numeric', 4),
u'desc': gen_string('html', 10),
u'os_family': "Gentoo"},
{u'name': gen_string('utf8', 10),
u'major_version': gen_string('numeric', 5),
u'minor_version': gen_string('numeric', 16),
u'desc': gen_string('utf8', 10),
u'os_family': "SUSE"},
{u'name': gen_string('alphanumeric', 255),
u'major_version': gen_string('numeric', 5),
u'minor_version': gen_string('numeric', 1),
u'desc': gen_string('alphanumeric', 255),
u'os_family': "SUSE"})
def test_positive_create_os(self, test_data):
"""@Test: Create a new OS with different data values
@Feature: OS - Positive Create
@Assert: OS is created
@BZ: 1120568
"""
arch = "i386"
with Session(self.browser) as session:
make_os(session, name=test_data['name'],
major_version=test_data['major_version'],
minor_version=test_data['minor_version'],
description=test_data['desc'],
os_family=test_data['os_family'], archs=[arch])
self.assertIsNotNone(self.operatingsys.search
(test_data['desc'], search_key="description"))
def test_negative_create_os_1(self):
"""@Test: OS - Create a new OS with 256 characters in name
@Feature: Create a new OS - Negative
@Assert: OS is not created
@BZ: 1120181
"""
name = gen_string("alpha", 256)
major_version = gen_string('numeric', 1)
minor_version = gen_string('numeric', 1)
os_family = "Red Hat"
arch = "x86_64"
with Session(self.browser) as session:
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["name_haserror"]))
self.assertIsNone(self.operatingsys.search(name))
def test_negative_create_os_2(self):
"""@Test: OS - Create a new OS with blank name
@Feature: Create a new OS - Negative
@Assert: OS is not created
"""
name = ""
major_version = gen_string('numeric', 1)
minor_version = gen_string('numeric', 1)
os_family = "Red Hat"
arch = "x86_64"
with Session(self.browser) as session:
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["name_haserror"]))
def test_negative_create_os_3(self):
"""@Test: OS - Create a new OS with description containing
256 characters
@Feature: Create a new OS - Negative
@Assert: OS is not created
"""
name = gen_string("alpha", 6)
major_version = gen_string('numeric', 1)
minor_version = gen_string('numeric', 1)
description = gen_string("alphanumeric", 256)
os_family = "Red Hat"
arch = "x86_64"
with Session(self.browser) as session:
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
description=description,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["haserror"]))
self.assertIsNone(self.operatingsys.search(name))
def test_negative_create_os_4(self):
"""@Test: OS - Create a new OS with long major version (More than 5
characters in major version)
@Feature: Create a new OS - Negative
@Assert: OS is not created
"""
name = gen_string("alpha", 6)
major_version = gen_string('numeric', 6)
minor_version = gen_string('numeric', 1)
os_family = "Red Hat"
arch = "x86_64"
with Session(self.browser) as session:
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["haserror"]))
self.assertIsNone(self.operatingsys.search(name))
def test_negative_create_os_5(self):
"""@Test: OS - Create a new OS with long minor version (More than 16
characters in minor version)
@Feature: Create a new OS - Negative
@Assert: OS is not created
"""
name = gen_string("alpha", 6)
major_version = gen_string('numeric', 1)
minor_version = gen_string('numeric', 17)
os_family = "Red Hat"
arch = "x86_64"
with Session(self.browser) as session:
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["haserror"]))
self.assertIsNone(self.operatingsys.search(name))
def test_negative_create_os_6(self):
"""@Test: OS - Create a new OS without major version
@Feature: Create a new OS - Negative
@Assert: OS is not created
"""
name = gen_string("alpha", 6)
major_version = " "
minor_version = gen_string('numeric', 6)
os_family = "Red Hat"
arch = "x86_64"
with Session(self.browser) as session:
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["haserror"]))
self.assertIsNone(self.operatingsys.search(name))
def test_negative_create_os_7(self):
"""@Test: OS - Create a new OS with -ve value of major version
@Feature: Create a new OS - Negative
@Assert: OS is not created
@BZ: 1120199
"""
name = gen_string("alpha", 6)
major_version = "-6"
minor_version = "-5"
os_family = "Red Hat"
arch = "x86_64"
with Session(self.browser) as session:
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["haserror"]))
self.assertIsNone(self.operatingsys.search(name))
@skip_if_bug_open('bugzilla', 1120985)
def test_negative_create_os_8(self):
"""@Test: OS - Create a new OS with same name and version
@Feature: Create a new OS - Negative
@Assert: OS is not created
@BZ: 1120985
"""
name = gen_string("alpha", 6)
major_version = gen_string('numeric', 1)
minor_version = gen_string('numeric', 1)
os_family = "Red Hat"
arch = "x86_64"
with Session(self.browser) as session:
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.search(name))
make_os(session, name=name,
major_version=major_version,
minor_version=minor_version,
os_family=os_family, archs=[arch])
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["haserror"]))
self.assertIsNone(self.operatingsys.search(name))
def test_remove_os(self):
"""@Test: Delete an existing OS
@Feature: OS - Positive Delete
@Assert: OS is deleted
"""
os_name = entities.OperatingSystem().create_json()['name']
with Session(self.browser) as session:
session.nav.go_to_operating_systems()
self.operatingsys.delete(os_name, really=True)
self.assertIsNone(self.operatingsys.search(os_name))
@data(
{u'new_name': gen_string('alpha', 10),
u'new_major_version': gen_string('numeric', 1),
u'new_minor_version': gen_string('numeric', 1),
u'new_os_family': "Red Hat"},
{u'new_name': gen_string('html', 10),
u'new_major_version': gen_string('numeric', 4),
u'new_minor_version': gen_string('numeric', 4),
u'new_os_family': "Gentoo"},
{u'new_name': gen_string('utf8', 10),
u'new_major_version': gen_string('numeric', 5),
u'new_minor_version': gen_string('numeric', 16),
u'new_os_family': "SUSE"},
{u'new_name': gen_string('alphanumeric', 255),
u'new_major_version': gen_string('numeric', 5),
u'new_minor_version': gen_string('numeric', 1),
u'new_os_family': "SUSE"}
)
def test_update_os_1(self, test_data):
"""@Test: Update OS name, major_version, minor_version, os_family
and arch
@Feature: OS - Positive Update
@Assert: OS is updated
"""
os_name = entities.OperatingSystem().create_json()['name']
arch_name = entities.Architecture().create_json()['name']
with Session(self.browser):
self.operatingsys.update(os_name, test_data['new_name'],
test_data['new_major_version'],
test_data['new_minor_version'],
os_family=test_data['new_os_family'],
new_archs=[arch_name])
self.assertIsNotNone(self.operatingsys.search(
test_data['new_name']))
def test_update_os_medium(self):
"""@Test: Update OS medium
@Feature: OS - Positive Update
@Assert: OS is updated
"""
medium_name = gen_string("alpha", 4)
path = INSTALL_MEDIUM_URL % medium_name
entities.Media(
name=medium_name,
media_path=path,
organization=[self.org_id],
).create_json()
os_name = entities.OperatingSystem().create_json()['name']
with Session(self.browser) as session:
session.nav.go_to_select_org(self.org_name)
self.operatingsys.update(os_name, new_mediums=[medium_name])
result_obj = self.operatingsys.get_os_entities(os_name, "medium")
self.assertEqual(medium_name, result_obj['medium'])
def test_update_os_partition_table(self):
"""@Test: Update OS partition table
@Feature: OS - Positive Update
@Assert: OS is updated
"""
ptable = gen_string("alpha", 4)
script_file = get_data_file(PARTITION_SCRIPT_DATA_FILE)
with open(script_file, 'r') as file_contents:
layout = file_contents.read()
entities.PartitionTable(
name=ptable,
layout=layout,
).create_json()
os_name = entities.OperatingSystem().create_json()['name']
with Session(self.browser):
self.operatingsys.update(os_name, new_ptables=[ptable])
result_obj = self.operatingsys.get_os_entities(os_name, "ptable")
self.assertEqual(ptable, result_obj['ptable'])
def test_update_os_template(self):
"""@Test: Update provisioning template
@Feature: OS - Positive Update
@Assert: OS is updated
@BZ: 1129612
"""
os_name = gen_string("alpha", 4)
template_name = gen_string("alpha", 4)
os_attrs = entities.OperatingSystem(name=os_name).create_json()
entities.ConfigTemplate(
name=template_name,
operatingsystem=[os_attrs['id']],
organization=[self.org_id],
).create_json()
with Session(self.browser) as session:
session.nav.go_to_select_org(self.org_name)
self.operatingsys.update(os_name, template=template_name)
result_obj = self.operatingsys.get_os_entities(os_name, "template")
self.assertEqual(template_name, result_obj['template'])
def test_positive_set_os_parameter_1(self):
"""@Test: Set OS parameter
@Feature: OS - Positive Update
@Assert: OS is updated
"""
param_name = gen_string("alpha", 4)
param_value = gen_string("alpha", 3)
os_name = entities.OperatingSystem().create_json()['name']
with Session(self.browser):
try:
self.operatingsys.set_os_parameter(os_name, param_name,
param_value)
except Exception as e:
self.fail(e)
def test_positive_set_os_parameter_2(self):
"""@Test: Set OS parameter with blank value
@Feature: OS - Positive update
@Assert: Parameter is created with blank value
"""
param_name = gen_string("alpha", 4)
param_value = ""
os_name = entities.OperatingSystem().create_json()['name']
with Session(self.browser):
try:
self.operatingsys.set_os_parameter(os_name, param_name,
param_value)
except Exception as e:
self.fail(e)
def test_remove_os_parameter(self):
"""@Test: Remove selected OS parameter
@Feature: OS - Positive Update
@Assert: OS is updated
"""
param_name = gen_string("alpha", 4)
param_value = gen_string("alpha", 3)
os_name = entities.OperatingSystem().create_json()['name']
with Session(self.browser):
try:
self.operatingsys.set_os_parameter(os_name, param_name,
param_value)
self.operatingsys.remove_os_parameter(os_name, param_name)
except Exception as e:
self.fail(e)
def test_negative_set_os_parameter_1(self):
"""@Test: Set same OS parameter again as it was set earlier
@Feature: OS - Negative Update
@Assert: Proper error should be raised, Name already taken
@BZ: 1120663
"""
param_name = gen_string("alpha", 4)
param_value = gen_string("alpha", 3)
os_name = entities.OperatingSystem().create_json()['name']
with Session(self.browser):
try:
self.operatingsys.set_os_parameter(os_name, param_name,
param_value)
self.operatingsys.set_os_parameter(os_name, param_name,
param_value)
except Exception as e:
self.fail(e)
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["common_param_error"]))
def test_negative_set_os_parameter_2(self):
"""@Test: Set OS parameter with blank name and value
@Feature: OS - Negative Update
@Assert: Proper error should be raised, Name can't contain whitespaces
@BZ: 1120663
"""
param_name = " "
param_value = " "
os_name = entities.OperatingSystem().create_json()['name']
with Session(self.browser):
try:
self.operatingsys.set_os_parameter(os_name, param_name,
param_value)
except Exception as e:
self.fail(e)
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["common_param_error"]))
def test_negative_set_os_parameter_3(self):
"""@Test: Set OS parameter with name and value exceeding 255 characters
@Feature: OS - Negative Update
@Assert: Proper error should be raised, Name should contain a value
"""
param_name = gen_string("alpha", 256)
param_value = gen_string("alpha", 256)
os_name = entities.OperatingSystem().create_json()['name']
with Session(self.browser):
try:
self.operatingsys.set_os_parameter(os_name, param_name,
param_value)
except Exception as e:
self.fail(e)
self.assertIsNotNone(self.operatingsys.wait_until_element
(common_locators["common_param_error"]))
| gpl-3.0 |
clovis/PhiloLogic4 | www/webApp.py | 2 | 7294 | #!/usr/bin/env python3
"""Bootstrap Web app"""
import os.path
from philologic.runtime import WebConfig
from philologic.runtime import WSGIHandler
from philologic.runtime import access_control
from philologic.utils import load_module
config = WebConfig(os.path.abspath(os.path.dirname(__file__)))
global_config = load_module("philologic4", config.global_config_location)
path = os.path.abspath(os.path.dirname(__file__))
dbname = path.strip().split("/")[-1]
config = WebConfig(os.path.abspath(os.path.dirname(__file__)))
config_location = os.path.join("app/assets/css/split/", os.path.basename(config.theme))
if os.path.realpath(os.path.abspath(config.theme)) == os.path.realpath(os.path.abspath(config_location)):
theme = config_location
elif os.path.exists(config_location) and config.production:
theme = config_location
else:
os.system("cp %s %s" % (config.theme, config_location))
theme = config_location
css_files = [
"app/assets/css/bootstrap.min.css",
"app/assets/css/split/style.css",
"app/assets/css/split/searchForm.css",
"app/assets/css/split/landingPage.css",
"app/assets/css/split/concordanceKwic.css",
"app/assets/css/split/timeSeries.css",
"app/assets/css/image_gallery/blueimp-gallery.min.css",
"app/assets/css/split/textObjectNavigation.css",
theme,
]
# External JavaScript assets
js_plugins = [
"app/assets/js/plugins/ui-utils.min.js",
"app/assets/js/plugins/ng-infinite-scroll.min.js",
"app/assets/js/plugins/jquery.tagcloud.js",
"app/assets/js/plugins/blueimp-gallery.min.js",
"app/assets/js/plugins/jquery.scrollTo.min.js",
"app/assets/js/plugins/Chart.min.js",
"app/assets/js/plugins/angular-chart.min.js",
"app/assets/js/plugins/bootstrap.min.js",
"app/assets/js/plugins/velocity.min.js",
"app/assets/js/plugins/velocity.ui.min.js",
"app/assets/js/plugins/angular-velocity.min.js",
]
# Full List of all AngularJS specific JavaScript
js_files = [
"app/bootstrapApp.js",
"app/philoLogicMain.js",
"app/routes.js",
"app/shared/directives.js",
"app/shared/services.js",
"app/shared/config.js",
"app/shared/filters.js",
"app/shared/values.js",
"app/shared/searchArguments/searchArgumentsDirective.js",
"app/shared/exportResults/exportResults.js",
"app/components/landingPage/landingPageDirectives.js",
"app/components/landingPage/landingPage.js",
"app/shared/searchForm/searchFormServices.js",
"app/shared/searchForm/searchFormFilters.js",
"app/shared/searchForm/searchFormDirectives.js",
"app/shared/searchForm/searchForm.js",
"app/components/concordanceKwic/concordanceKwicValues.js",
"app/components/concordanceKwic/concordanceKwicDirectives.js",
"app/components/concordanceKwic/facetsDirectives.js",
"app/components/concordanceKwic/concordanceKwicFilters.js",
"app/components/concordanceKwic/concordanceKwic.js",
"app/components/textNavigation/textNavigationFilters.js",
"app/components/textNavigation/textNavigationValues.js",
"app/components/textNavigation/textNavigationDirectives.js",
"app/components/textNavigation/textNavigationCtrl.js",
"app/components/tableOfContents/tableOfContents.js",
"app/components/collocation/collocationDirectives.js",
"app/components/collocation/collocation.js",
"app/components/timeSeries/timeSeriesFilters.js",
"app/components/timeSeries/timeSeriesDirectives.js",
"app/components/timeSeries/timeSeries.js",
"app/shared/accessControl/accessControlDirective.js",
"app/shared/accessControl/accessControlCtrl.js",
]
def angular(environ, start_response):
headers = [("Content-type", "text/html; charset=UTF-8"), ("Access-Control-Allow-Origin", "*")]
if not config.valid_config: # This means we have an error in the webconfig file
html = build_misconfig_page(config.traceback, "webconfig.cfg")
# TODO handle errors in db.locals.py
else:
request = WSGIHandler(environ, config)
if config.access_control:
if not request.authenticated:
token = access_control.check_access(environ, config)
if token:
h, ts = token
headers.append(("Set-Cookie", "hash=%s" % h))
headers.append(("Set-Cookie", "timestamp=%s" % ts))
html = build_html_page(config)
start_response("200 OK", headers)
return html
def build_html_page(config):
html_page = open("%s/app/index.html" % config.db_path, encoding="utf8", errors="ignore").read()
html_page = html_page.replace("$DBNAME", config.dbname)
html_page = html_page.replace("$DBURL", os.path.join(global_config.url_root, dbname))
html_page = html_page.replace("$CSS", load_CSS())
html_page = html_page.replace("$JS", load_JS())
return html_page
def build_misconfig_page(traceback, config_file):
html_page = open("%s/app/misconfiguration.html" % path, encoding="utf8", errors="ignore").read()
html_page = html_page.replace("$CSS", load_CSS())
html_page = html_page.replace("$TRACEBACK", traceback)
html_page = html_page.replace("$CONFIG_FILE", config_file)
return html_page
def load_CSS():
mainCSS = os.path.join(path, "app/assets/css/philoLogic.css")
if os.path.exists(mainCSS):
if not config.production:
css_links = concat_CSS()
else:
css_links = concat_CSS()
if config.production:
return '<link rel="stylesheet" href="app/assets/css/philoLogic.css">'
else:
return "\n".join(css_links)
def concat_CSS():
css_string, css_links = concatenate_files(css_files, "css")
output = open(os.path.join(path, "app/assets/css/philoLogic.css"), "w")
output.write(css_string)
return css_links
def load_JS():
mainJS = os.path.join(path, "app/assets/js/philoLogic.js")
if os.path.exists(mainJS):
if not config.production:
js_links, js_plugins_links = concat_JS()
else:
js_links, js_plugins_links = concat_JS()
if config.production:
scripts = '<script src="app/assets/js/plugins/philoLogicPlugins.js"></script>'
scripts += '<script src="app/assets/js/philoLogic.js"></script>'
return scripts
else:
return "\n".join(js_plugins_links + js_links)
def concat_JS():
js_plugins_string, js_plugins_links = concatenate_files(js_plugins, "js")
plugin_output = open(os.path.join(path, "app/assets/js/plugins/philoLogicPlugins.js"), "w")
plugin_output.write(js_plugins_string)
js_string, js_links = concatenate_files(js_files, "js")
output = open(os.path.join(path, "app/assets/js/philoLogic.js"), "w")
output.write(js_string)
return js_links, js_plugins_links
def concatenate_files(file_list, file_type):
string = []
links = []
for file_path in file_list:
try:
string.append(open(os.path.join(path, file_path)).read())
if not config.production:
if file_type == "css":
links.append('<link rel="stylesheet" href="%s">' % file_path)
else:
links.append('<script src="%s"></script>' % file_path)
except IOError:
pass
string = "\n".join(string)
return string, links
| gpl-3.0 |
fiuba08/robotframework | src/robot/libraries/Collections.py | 3 | 29511 | # Copyright 2008-2014 Nokia Solutions and Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from robot.api import logger
from robot.utils import plural_or_not, seq2str, seq2str2, unic
from robot.utils.asserts import assert_equals
from robot.version import get_version
class _List:
def convert_to_list(self, item):
"""Converts the given `item` to a list.
Mainly useful for converting tuples and other iterable to lists.
Use `Create List` from the BuiltIn library for constructing new lists.
"""
return list(item)
def append_to_list(self, list_, *values):
"""Adds `values` to the end of `list`.
Example:
| Append To List | ${L1} | xxx | | |
| Append To List | ${L2} | x | y | z |
=>
- ${L1} = ['a', 'xxx']
- ${L2} = ['a', 'b', 'x', 'y', 'z']
"""
for value in values:
list_.append(value)
def insert_into_list(self, list_, index, value):
"""Inserts `value` into `list` to the position specified with `index`.
Index '0' adds the value into the first position, '1' to the second,
and so on. Inserting from right works with negative indices so that
'-1' is the second last position, '-2' third last, and so on. Use
`Append To List` to add items to the end of the list.
If the absolute value of the index is greater than
the length of the list, the value is added at the end
(positive index) or the beginning (negative index). An index
can be given either as an integer or a string that can be
converted to an integer.
Example:
| Insert Into List | ${L1} | 0 | xxx |
| Insert Into List | ${L2} | ${-1} | xxx |
=>
- ${L1} = ['xxx', 'a']
- ${L2} = ['a', 'xxx', 'b']
"""
list_.insert(self._index_to_int(index), value)
def combine_lists(self, *lists):
"""Combines the given `lists` together and returns the result.
The given lists are not altered by this keyword.
Example:
| ${x} = | Combine List | ${L1} | ${L2} | |
| ${y} = | Combine List | ${L1} | ${L2} | ${L1} |
=>
- ${x} = ['a', 'a', 'b']
- ${y} = ['a', 'a', 'b', 'a']
- ${L1} and ${L2} are not changed.
"""
ret = []
for item in lists:
ret.extend(item)
return ret
def set_list_value(self, list_, index, value):
"""Sets the value of `list` specified by `index` to the given `value`.
Index '0' means the first position, '1' the second and so on.
Similarly, '-1' is the last position, '-2' second last, and so on.
Using an index that does not exist on the list causes an error.
The index can be either an integer or a string that can be converted to
an integer.
Example:
| Set List Value | ${L3} | 1 | xxx |
| Set List Value | ${L3} | -1 | yyy |
=>
- ${L3} = ['a', 'xxx', 'yyy']
"""
try:
list_[self._index_to_int(index)] = value
except IndexError:
self._index_error(list_, index)
def remove_values_from_list(self, list_, *values):
"""Removes all occurences of given `values` from `list`.
It is not an error is a value does not exist in the list at all.
Example:
| Remove Values From List | ${L4} | a | c | e | f |
=>
- ${L4} = ['b', 'd']
"""
for value in values:
while value in list_:
list_.remove(value)
def remove_from_list(self, list_, index):
"""Removes and returns the value specified with an `index` from `list`.
Index '0' means the first position, '1' the second and so on.
Similarly, '-1' is the last position, '-2' the second last, and so on.
Using an index that does not exist on the list causes an error.
The index can be either an integer or a string that can be converted
to an integer.
Example:
| ${x} = | Remove From List | ${L2} | 0 |
=>
- ${x} = 'a'
- ${L2} = ['b']
"""
try:
return list_.pop(self._index_to_int(index))
except IndexError:
self._index_error(list_, index)
def remove_duplicates(self, list_):
"""Returns a list without duplicates based on the given `list`.
Creates and returns a new list that contains all items in the given
list so that one item can appear only once. Order of the items in
the new list is the same as in the original except for missing
duplicates. Number of the removed duplicates is logged.
New in Robot Framework 2.7.5.
"""
ret = []
for item in list_:
if item not in ret:
ret.append(item)
removed = len(list_) - len(ret)
logger.info('%d duplicate%s removed.' % (removed, plural_or_not(removed)))
return ret
def get_from_list(self, list_, index):
"""Returns the value specified with an `index` from `list`.
The given list is never altered by this keyword.
Index '0' means the first position, '1' the second, and so on.
Similarly, '-1' is the last position, '-2' the second last, and so on.
Using an index that does not exist on the list causes an error.
The index can be either an integer or a string that can be converted
to an integer.
Examples (including Python equivalents in comments):
| ${x} = | Get From List | ${L5} | 0 | # L5[0] |
| ${y} = | Get From List | ${L5} | -2 | # L5[-2] |
=>
- ${x} = 'a'
- ${y} = 'd'
- ${L5} is not changed
"""
try:
return list_[self._index_to_int(index)]
except IndexError:
self._index_error(list_, index)
def get_slice_from_list(self, list_, start=0, end=None):
"""Returns a slice of the given list between `start` and `end` indexes.
The given list is never altered by this keyword.
If both `start` and `end` are given, a sublist containing values from
`start` to `end` is returned. This is the same as 'list[start:end]' in
Python. To get all items from the beginning, use 0 as the start value,
and to get all items until the end, use 'None' as the end value. 'None'
is also a default value, so in this case, it is enough to give only
`start`. If only `end` is given, `start` gets the value 0.
Using `start` or `end` not found on the list is the same as using the
largest (or smallest) available index.
Examples (incl. Python equivelants in comments):
| ${x} = | Get Slice From List | ${L5} | 2 | 4 | # L5[2:4] |
| ${y} = | Get Slice From List | ${L5} | 1 | | # L5[1:None] |
| ${z} = | Get Slice From List | ${L5} | | -2 | # L5[0:-2] |
=>
- ${x} = ['c', 'd']
- ${y} = ['b', 'c', 'd', 'e']
- ${z} = ['a', 'b', 'c']
- ${L5} is not changed
"""
start = self._index_to_int(start, True)
if end is not None:
end = self._index_to_int(end)
return list_[start:end]
def count_values_in_list(self, list_, value, start=0, end=None):
"""Returns the number of occurrences of the given `value` in `list`.
The search can be narrowed to the selected sublist by the `start` and
`end` indexes having the same semantics as in the `Get Slice From List`
keyword. The given list is never altered by this keyword.
Example:
| ${x} = | Count Values In List | ${L3} | b |
=>
- ${x} = 1
- ${L3} is not changed
"""
return self.get_slice_from_list(list_, start, end).count(value)
def get_index_from_list(self, list_, value, start=0, end=None):
"""Returns the index of the first occurrence of the `value` on the list.
The search can be narrowed to the selected sublist by the `start` and
`end` indexes having the same semantics as in the `Get Slice From List`
keyword. In case the value is not found, -1 is returned. The given list
is never altered by this keyword.
Example:
| ${x} = | Get Index From List | ${L5} | d |
=>
- ${x} = 3
- ${L5} is not changed
"""
if start == '':
start = 0
list_ = self.get_slice_from_list(list_, start, end)
try:
return int(start) + list_.index(value)
except ValueError:
return -1
def copy_list(self, list_):
"""Returns a copy of the given list.
The given list is never altered by this keyword.
"""
return list_[:]
def reverse_list(self, list_):
"""Reverses the given list in place.
Note that the given list is changed and nothing is returned. Use
`Copy List` first, if you need to keep also the original order.
| Reverse List | ${L3} |
=>
- ${L3} = ['c', 'b', 'a']
"""
list_.reverse()
def sort_list(self, list_):
"""Sorts the given list in place.
The strings are sorted alphabetically and the numbers numerically.
Note that the given list is changed and nothing is returned. Use
`Copy List` first, if you need to keep also the original order.
${L} = [2,1,'a','c','b']
| Sort List | ${L} |
=>
- ${L} = [1, 2, 'a', 'b', 'c']
"""
list_.sort()
def list_should_contain_value(self, list_, value, msg=None):
"""Fails if the `value` is not found from `list`.
If `msg` is not given, the default error message "[ a | b | c ] does
not contain the value 'x'" is shown in case of a failure. Otherwise,
the given `msg` is used in case of a failure.
"""
default = "%s does not contain value '%s'." % (seq2str2(list_), value)
_verify_condition(value in list_, default, msg)
def list_should_not_contain_value(self, list_, value, msg=None):
"""Fails if the `value` is not found from `list`.
See `List Should Contain Value` for an explanation of `msg`.
"""
default = "%s contains value '%s'." % (seq2str2(list_), value)
_verify_condition(value not in list_, default, msg)
def list_should_not_contain_duplicates(self, list_, msg=None):
"""Fails if any element in the `list` is found from it more than once.
The default error message lists all the elements that were found
from the `list` multiple times, but it can be overridden by giving
a custom `msg`. All multiple times found items and their counts are
also logged.
This keyword works with all iterables that can be converted to a list.
The original iterable is never altered.
"""
if not isinstance(list_, list):
list_ = list(list_)
dupes = []
for item in list_:
if item not in dupes:
count = list_.count(item)
if count > 1:
logger.info("'%s' found %d times." % (item, count))
dupes.append(item)
if dupes:
raise AssertionError(msg or
'%s found multiple times.' % seq2str(dupes))
def lists_should_be_equal(self, list1, list2, msg=None, values=True,
names=None):
"""Fails if given lists are unequal.
The keyword first verifies that the lists have equal lengths, and then
it checks are all their values equal. Possible differences between the
values are listed in the default error message like `Index 4: ABC !=
Abc`.
The error message can be configured using `msg` and `values` arguments:
- If `msg` is not given, the default error message is used.
- If `msg` is given and `values` is either Boolean False or a string
'False' or 'No Values', the error message is simply `msg`.
- Otherwise the error message is `msg` + 'new line' + default.
Optional `names` argument (new in 2.6) can be used for naming
the indices shown in the default error message. It can either
be a list of names matching the indices in the lists or a
dictionary where keys are indices that need to be named. It is
not necessary to name all of the indices. When using a
dictionary, keys can be either integers or strings that can be
converted to integers.
Examples:
| ${names} = | Create List | First Name | Family Name | Email |
| Lists Should Be Equal | ${people1} | ${people2} | names=${names} |
| ${names} = | Create Dictionary | 0 | First Name | 2 | Email |
| Lists Should Be Equal | ${people1} | ${people2} | names=${names} |
If the items in index 2 would differ in the above examples, the error
message would contain a row like `Index 2 (email): name@foo.com !=
name@bar.com`.
"""
len1 = len(list1)
len2 = len(list2)
default = 'Lengths are different: %d != %d' % (len1, len2)
_verify_condition(len1 == len2, default, msg, values)
names = self._get_list_index_name_mapping(names, len1)
diffs = list(self._yield_list_diffs(list1, list2, names))
default = 'Lists are different:\n' + '\n'.join(diffs)
_verify_condition(diffs == [], default, msg, values)
def _get_list_index_name_mapping(self, names, list_length):
if not names:
return {}
if isinstance(names, dict):
return dict((int(index), names[index]) for index in names)
return dict(zip(range(list_length), names))
def _yield_list_diffs(self, list1, list2, names):
for index, (item1, item2) in enumerate(zip(list1, list2)):
name = ' (%s)' % names[index] if index in names else ''
try:
assert_equals(item1, item2, msg='Index %d%s' % (index, name))
except AssertionError, err:
yield unic(err)
def list_should_contain_sub_list(self, list1, list2, msg=None, values=True):
"""Fails if not all of the elements in `list2` are found in `list1`.
The order of values and the number of values are not taken into
account.
See the use of `msg` and `values` from the `Lists Should Be Equal`
keyword.
"""
diffs = ', '.join(unic(item) for item in list2 if item not in list1)
default = 'Following values were not found from first list: ' + diffs
_verify_condition(not diffs, default, msg, values)
def log_list(self, list_, level='INFO'):
"""Logs the length and contents of the `list` using given `level`.
Valid levels are TRACE, DEBUG, INFO (default), and WARN.
If you only want to the length, use keyword `Get Length` from
the BuiltIn library.
"""
logger.write('\n'.join(self._log_list(list_)), level)
def _log_list(self, list_):
if not list_:
yield 'List is empty.'
elif len(list_) == 1:
yield 'List has one item:\n%s' % list_[0]
else:
yield 'List length is %d and it contains following items:' % len(list_)
for index, item in enumerate(list_):
yield '%s: %s' % (index, item)
def _index_to_int(self, index, empty_to_zero=False):
if empty_to_zero and not index:
return 0
try:
return int(index)
except ValueError:
raise ValueError("Cannot convert index '%s' to an integer." % index)
def _index_error(self, list_, index):
raise IndexError('Given index %s is out of the range 0-%d.'
% (index, len(list_)-1))
class _Dictionary:
def create_dictionary(self, *key_value_pairs, **items):
"""Creates and returns a dictionary based on given items.
Giving items as `key_value_pairs` means giving keys and values
as separate arguments:
| ${x} = | Create Dictionary | name | value | | |
| ${y} = | Create Dictionary | a | 1 | b | ${2} |
=>
- ${x} = {'name': 'value'}
- ${y} = {'a': '1', 'b': 2}
Starting from Robot Framework 2.8.1, items can also be given as kwargs:
| ${x} = | Create Dictionary | name=value | |
| ${y} = | Create Dictionary | a=1 | b=${2} |
The latter syntax is typically more convenient to use, but it has
a limitation that keys must be strings.
"""
if len(key_value_pairs) % 2 != 0:
raise ValueError("Creating a dictionary failed. There should be "
"even number of key-value-pairs.")
return self.set_to_dictionary({}, *key_value_pairs, **items)
def set_to_dictionary(self, dictionary, *key_value_pairs, **items):
"""Adds the given `key_value_pairs` and `items`to the `dictionary`.
See `Create Dictionary` for information about giving items.
Example:
| Set To Dictionary | ${D1} | key | value |
=>
- ${D1} = {'a': 1, 'key': 'value'}
"""
if len(key_value_pairs) % 2 != 0:
raise ValueError("Adding data to a dictionary failed. There "
"should be even number of key-value-pairs.")
for i in range(0, len(key_value_pairs), 2):
dictionary[key_value_pairs[i]] = key_value_pairs[i+1]
dictionary.update(items)
return dictionary
def remove_from_dictionary(self, dictionary, *keys):
"""Removes the given `keys` from the `dictionary`.
If the given `key` cannot be found from the `dictionary`, it
is ignored.
Example:
| Remove From Dictionary | ${D3} | b | x | y |
=>
- ${D3} = {'a': 1, 'c': 3}
"""
for key in keys:
if key in dictionary:
value = dictionary.pop(key)
logger.info("Removed item with key '%s' and value '%s'." % (key, value))
else:
logger.info("Key '%s' not found." % key)
def keep_in_dictionary(self, dictionary, *keys):
"""Keeps the given `keys` in the `dictionary` and removes all other.
If the given `key` cannot be found from the `dictionary`, it
is ignored.
Example:
| Keep In Dictionary | ${D5} | b | x | d |
=>
- ${D5} = {'b': 2, 'd': 4}
"""
remove_keys = [k for k in dictionary if k not in keys]
self.remove_from_dictionary(dictionary, *remove_keys)
def copy_dictionary(self, dictionary):
"""Returns a copy of the given dictionary.
The given dictionary is never altered by this keyword.
"""
return dictionary.copy()
def get_dictionary_keys(self, dictionary):
"""Returns `keys` of the given `dictionary`.
`Keys` are returned in sorted order. The given `dictionary` is never
altered by this keyword.
Example:
| ${keys} = | Get Dictionary Keys | ${D3} |
=>
- ${keys} = ['a', 'b', 'c']
"""
return sorted(dictionary)
def get_dictionary_values(self, dictionary):
"""Returns values of the given dictionary.
Values are returned sorted according to keys. The given dictionary is
never altered by this keyword.
Example:
| ${values} = | Get Dictionary Values | ${D3} |
=>
- ${values} = [1, 2, 3]
"""
return [dictionary[k] for k in self.get_dictionary_keys(dictionary)]
def get_dictionary_items(self, dictionary):
"""Returns items of the given `dictionary`.
Items are returned sorted by keys. The given `dictionary` is not
altered by this keyword.
Example:
| ${items} = | Get Dictionary Items | ${D3} |
=>
- ${items} = ['a', 1, 'b', 2, 'c', 3]
"""
ret = []
for key in self.get_dictionary_keys(dictionary):
ret.extend((key, dictionary[key]))
return ret
def get_from_dictionary(self, dictionary, key):
"""Returns a value from the given `dictionary` based on the given `key`.
If the given `key` cannot be found from the `dictionary`, this keyword
fails.
The given dictionary is never altered by this keyword.
Example:
| ${value} = | Get From Dictionary | ${D3} | b |
=>
- ${value} = 2
"""
try:
return dictionary[key]
except KeyError:
raise RuntimeError("Dictionary does not contain key '%s'." % key)
def dictionary_should_contain_key(self, dictionary, key, msg=None):
"""Fails if `key` is not found from `dictionary`.
See `List Should Contain Value` for an explanation of `msg`.
The given dictionary is never altered by this keyword.
"""
default = "Dictionary does not contain key '%s'." % key
_verify_condition(key in dictionary, default, msg)
def dictionary_should_not_contain_key(self, dictionary, key, msg=None):
"""Fails if `key` is found from `dictionary`.
See `List Should Contain Value` for an explanation of `msg`.
The given dictionary is never altered by this keyword.
"""
default = "Dictionary contains key '%s'." % key
_verify_condition(key not in dictionary, default, msg)
def dictionary_should_contain_item(self, dictionary, key, value, msg=None):
"""An item of `key`/`value` must be found in a `dictionary`.
Value is converted to unicode for comparison.
See `Lists Should Be Equal` for an explanation of `msg`.
The given dictionary is never altered by this keyword.
"""
self.dictionary_should_contain_key(dictionary, key, msg)
actual, expected = unicode(dictionary[key]), unicode(value)
default = "Value of dictionary key '%s' does not match: %s != %s" % (key, actual, expected)
_verify_condition(actual == expected, default, msg)
def dictionary_should_contain_value(self, dictionary, value, msg=None):
"""Fails if `value` is not found from `dictionary`.
See `List Should Contain Value` for an explanation of `msg`.
The given dictionary is never altered by this keyword.
"""
default = "Dictionary does not contain value '%s'." % value
_verify_condition(value in dictionary.values(), default, msg)
def dictionary_should_not_contain_value(self, dictionary, value, msg=None):
"""Fails if `value` is found from `dictionary`.
See `List Should Contain Value` for an explanation of `msg`.
The given dictionary is never altered by this keyword.
"""
default = "Dictionary contains value '%s'." % value
_verify_condition(not value in dictionary.values(), default, msg)
def dictionaries_should_be_equal(self, dict1, dict2, msg=None, values=True):
"""Fails if the given dictionaries are not equal.
First the equality of dictionaries' keys is checked and after that all
the key value pairs. If there are differences between the values, those
are listed in the error message.
See `Lists Should Be Equal` for an explanation of `msg`.
The given dictionaries are never altered by this keyword.
"""
keys = self._keys_should_be_equal(dict1, dict2, msg, values)
self._key_values_should_be_equal(keys, dict1, dict2, msg, values)
def dictionary_should_contain_sub_dictionary(self, dict1, dict2, msg=None,
values=True):
"""Fails unless all items in `dict2` are found from `dict1`.
See `Lists Should Be Equal` for an explanation of `msg`.
The given dictionaries are never altered by this keyword.
"""
keys = self.get_dictionary_keys(dict2)
diffs = [unic(k) for k in keys if k not in dict1]
default = "Following keys missing from first dictionary: %s" \
% ', '.join(diffs)
_verify_condition(not diffs, default, msg, values)
self._key_values_should_be_equal(keys, dict1, dict2, msg, values)
def log_dictionary(self, dictionary, level='INFO'):
"""Logs the size and contents of the `dictionary` using given `level`.
Valid levels are TRACE, DEBUG, INFO (default), and WARN.
If you only want to log the size, use keyword `Get Length` from
the BuiltIn library.
"""
logger.write('\n'.join(self._log_dictionary(dictionary)), level)
def _log_dictionary(self, dictionary):
if not dictionary:
yield 'Dictionary is empty.'
elif len(dictionary) == 1:
yield 'Dictionary has one item:'
else:
yield 'Dictionary size is %d and it contains following items:' % len(dictionary)
for key in self.get_dictionary_keys(dictionary):
yield '%s: %s' % (key, dictionary[key])
def _keys_should_be_equal(self, dict1, dict2, msg, values):
keys1 = self.get_dictionary_keys(dict1)
keys2 = self.get_dictionary_keys(dict2)
miss1 = [unic(k) for k in keys2 if k not in dict1]
miss2 = [unic(k) for k in keys1 if k not in dict2]
error = []
if miss1:
error += ['Following keys missing from first dictionary: %s'
% ', '.join(miss1)]
if miss2:
error += ['Following keys missing from second dictionary: %s'
% ', '.join(miss2)]
_verify_condition(not error, '\n'.join(error), msg, values)
return keys1
def _key_values_should_be_equal(self, keys, dict1, dict2, msg, values):
diffs = list(self._yield_dict_diffs(keys, dict1, dict2))
default = 'Following keys have different values:\n' + '\n'.join(diffs)
_verify_condition(not diffs, default, msg, values)
def _yield_dict_diffs(self, keys, dict1, dict2):
for key in keys:
try:
assert_equals(dict1[key], dict2[key], msg='Key %s' % (key,))
except AssertionError, err:
yield unic(err)
class Collections(_List, _Dictionary):
"""A test library providing keywords for handling lists and dictionaries.
`Collections` is Robot Framework's standard library that provides a
set of keywords for handling Python lists and dictionaries. This
library has keywords, for example, for modifying and getting
values from lists and dictionaries (e.g. `Append To List`, `Get
From Dictionary`) and for verifying their contents (e.g. `Lists
Should Be Equal`, `Dictionary Should Contain Value`).
Following keywords from the BuiltIn library can also be used with
lists and dictionaries:
| *Keyword Name* | *Applicable With* |
| `Create List` | lists |
| `Get Length` | both |
| `Length Should Be` | both |
| `Should Be Empty` | both |
| `Should Not Be Empty` | both |
| `Should Contain` | lists |
| `Should Not Contain` | lists |
| `Should Contain X Times` | lists |
| `Should Not Contain X Times` | lists |
| `Get Count` | lists |
All list keywords expect a scalar variable (e.g. ${list}) as an
argument. It is, however, possible to use list variables
(e.g. @{list}) as scalars simply by replacing '@' with '$'.
List keywords that do not alter the given list can also be used
with tuples, and to some extend also with other iterables.
`Convert To List` can be used to convert tuples and other iterables
to lists.
-------
List related keywords use variables in format ${Lx} in their examples,
which means a list with as many alphabetic characters as specified by 'x'.
For example ${L1} means ['a'] and ${L3} means ['a', 'b', 'c'].
Dictionary keywords use similar ${Dx} variables. For example ${D1} means
{'a': 1} and ${D3} means {'a': 1, 'b': 2, 'c': 3}.
--------
"""
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
ROBOT_LIBRARY_VERSION = get_version()
def _verify_condition(condition, default_msg, given_msg, include_default=False):
if not condition:
if not given_msg:
raise AssertionError(default_msg)
if _include_default_message(include_default):
raise AssertionError(given_msg + '\n' + default_msg)
raise AssertionError(given_msg)
def _include_default_message(include):
if isinstance(include, basestring):
return include.lower() not in ['no values', 'false']
return bool(include)
| apache-2.0 |
edxnercel/edx-platform | common/djangoapps/microsite_configuration/tests/test_microsites.py | 187 | 1186 | # -*- coding: utf-8 -*-
"""
Tests microsite_configuration templatetags and helper functions.
"""
from django.test import TestCase
from django.conf import settings
from microsite_configuration.templatetags import microsite
class MicroSiteTests(TestCase):
"""
Make sure some of the helper functions work
"""
def test_breadcrumbs(self):
crumbs = ['my', 'less specific', 'Page']
expected = u'my | less specific | Page | edX'
title = microsite.page_title_breadcrumbs(*crumbs)
self.assertEqual(expected, title)
def test_unicode_title(self):
crumbs = [u'øo', u'π tastes gréât', u'驴']
expected = u'øo | π tastes gréât | 驴 | edX'
title = microsite.page_title_breadcrumbs(*crumbs)
self.assertEqual(expected, title)
def test_platform_name(self):
pname = microsite.platform_name()
self.assertEqual(pname, settings.PLATFORM_NAME)
def test_breadcrumb_tag(self):
crumbs = ['my', 'less specific', 'Page']
expected = u'my | less specific | Page | edX'
title = microsite.page_title_breadcrumbs_tag(None, *crumbs)
self.assertEqual(expected, title)
| agpl-3.0 |
ludojmj/treelud | server/paramiko/sftp_client.py | 1 | 32863 | # Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of Paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Paramiko is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Paramiko; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
from binascii import hexlify
import errno
import os
import stat
import threading
import time
import weakref
from paramiko import util
from paramiko.channel import Channel
from paramiko.message import Message
from paramiko.common import INFO, DEBUG, o777
from paramiko.py3compat import bytestring, b, u, long, string_types, bytes_types
from paramiko.sftp import BaseSFTP, CMD_OPENDIR, CMD_HANDLE, SFTPError, CMD_READDIR, \
CMD_NAME, CMD_CLOSE, SFTP_FLAG_READ, SFTP_FLAG_WRITE, SFTP_FLAG_CREATE, \
SFTP_FLAG_TRUNC, SFTP_FLAG_APPEND, SFTP_FLAG_EXCL, CMD_OPEN, CMD_REMOVE, \
CMD_RENAME, CMD_MKDIR, CMD_RMDIR, CMD_STAT, CMD_ATTRS, CMD_LSTAT, \
CMD_SYMLINK, CMD_SETSTAT, CMD_READLINK, CMD_REALPATH, CMD_STATUS, SFTP_OK, \
SFTP_EOF, SFTP_NO_SUCH_FILE, SFTP_PERMISSION_DENIED
from paramiko.sftp_attr import SFTPAttributes
from paramiko.ssh_exception import SSHException
from paramiko.sftp_file import SFTPFile
from paramiko.util import ClosingContextManager
def _to_unicode(s):
"""
decode a string as ascii or utf8 if possible (as required by the sftp
protocol). if neither works, just return a byte string because the server
probably doesn't know the filename's encoding.
"""
try:
return s.encode('ascii')
except (UnicodeError, AttributeError):
try:
return s.decode('utf-8')
except UnicodeError:
return s
b_slash = b'/'
class SFTPClient(BaseSFTP, ClosingContextManager):
"""
SFTP client object.
Used to open an SFTP session across an open SSH `.Transport` and perform
remote file operations.
Instances of this class may be used as context managers.
"""
def __init__(self, sock):
"""
Create an SFTP client from an existing `.Channel`. The channel
should already have requested the ``"sftp"`` subsystem.
An alternate way to create an SFTP client context is by using
`from_transport`.
:param .Channel sock: an open `.Channel` using the ``"sftp"`` subsystem
:raises SSHException: if there's an exception while negotiating
sftp
"""
BaseSFTP.__init__(self)
self.sock = sock
self.ultra_debug = False
self.request_number = 1
# lock for request_number
self._lock = threading.Lock()
self._cwd = None
# request # -> SFTPFile
self._expecting = weakref.WeakValueDictionary()
if type(sock) is Channel:
# override default logger
transport = self.sock.get_transport()
self.logger = util.get_logger(transport.get_log_channel() + '.sftp')
self.ultra_debug = transport.get_hexdump()
try:
server_version = self._send_version()
except EOFError:
raise SSHException('EOF during negotiation')
self._log(INFO, 'Opened sftp connection (server version %d)' % server_version)
def from_transport(cls, t, window_size=None, max_packet_size=None):
"""
Create an SFTP client channel from an open `.Transport`.
Setting the window and packet sizes might affect the transfer speed.
The default settings in the `.Transport` class are the same as in
OpenSSH and should work adequately for both files transfers and
interactive sessions.
:param .Transport t: an open `.Transport` which is already authenticated
:param int window_size:
optional window size for the `.SFTPClient` session.
:param int max_packet_size:
optional max packet size for the `.SFTPClient` session..
:return:
a new `.SFTPClient` object, referring to an sftp session (channel)
across the transport
.. versionchanged:: 1.15
Added the ``window_size`` and ``max_packet_size`` arguments.
"""
chan = t.open_session(window_size=window_size,
max_packet_size=max_packet_size)
if chan is None:
return None
chan.invoke_subsystem('sftp')
return cls(chan)
from_transport = classmethod(from_transport)
def _log(self, level, msg, *args):
if isinstance(msg, list):
for m in msg:
self._log(level, m, *args)
else:
# escape '%' in msg (they could come from file or directory names) before logging
msg = msg.replace('%','%%')
super(SFTPClient, self)._log(level, "[chan %s] " + msg, *([self.sock.get_name()] + list(args)))
def close(self):
"""
Close the SFTP session and its underlying channel.
.. versionadded:: 1.4
"""
self._log(INFO, 'sftp session closed.')
self.sock.close()
def get_channel(self):
"""
Return the underlying `.Channel` object for this SFTP session. This
might be useful for doing things like setting a timeout on the channel.
.. versionadded:: 1.7.1
"""
return self.sock
def listdir(self, path='.'):
"""
Return a list containing the names of the entries in the given ``path``.
The list is in arbitrary order. It does not include the special
entries ``'.'`` and ``'..'`` even if they are present in the folder.
This method is meant to mirror ``os.listdir`` as closely as possible.
For a list of full `.SFTPAttributes` objects, see `listdir_attr`.
:param str path: path to list (defaults to ``'.'``)
"""
return [f.filename for f in self.listdir_attr(path)]
def listdir_attr(self, path='.'):
"""
Return a list containing `.SFTPAttributes` objects corresponding to
files in the given ``path``. The list is in arbitrary order. It does
not include the special entries ``'.'`` and ``'..'`` even if they are
present in the folder.
The returned `.SFTPAttributes` objects will each have an additional
field: ``longname``, which may contain a formatted string of the file's
attributes, in unix format. The content of this string will probably
depend on the SFTP server implementation.
:param str path: path to list (defaults to ``'.'``)
:return: list of `.SFTPAttributes` objects
.. versionadded:: 1.2
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'listdir(%r)' % path)
t, msg = self._request(CMD_OPENDIR, path)
if t != CMD_HANDLE:
raise SFTPError('Expected handle')
handle = msg.get_binary()
filelist = []
while True:
try:
t, msg = self._request(CMD_READDIR, handle)
except EOFError:
# done with handle
break
if t != CMD_NAME:
raise SFTPError('Expected name response')
count = msg.get_int()
for i in range(count):
filename = msg.get_text()
longname = msg.get_text()
attr = SFTPAttributes._from_msg(msg, filename, longname)
if (filename != '.') and (filename != '..'):
filelist.append(attr)
self._request(CMD_CLOSE, handle)
return filelist
def listdir_iter(self, path='.', read_aheads=50):
"""
Generator version of `.listdir_attr`.
See the API docs for `.listdir_attr` for overall details.
This function adds one more kwarg on top of `.listdir_attr`:
``read_aheads``, an integer controlling how many
``SSH_FXP_READDIR`` requests are made to the server. The default of 50
should suffice for most file listings as each request/response cycle
may contain multiple files (dependant on server implementation.)
.. versionadded:: 1.15
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'listdir(%r)' % path)
t, msg = self._request(CMD_OPENDIR, path)
if t != CMD_HANDLE:
raise SFTPError('Expected handle')
handle = msg.get_string()
nums = list()
while True:
try:
# Send out a bunch of readdir requests so that we can read the
# responses later on Section 6.7 of the SSH file transfer RFC
# explains this
# http://filezilla-project.org/specs/draft-ietf-secsh-filexfer-02.txt
for i in range(read_aheads):
num = self._async_request(type(None), CMD_READDIR, handle)
nums.append(num)
# For each of our sent requests
# Read and parse the corresponding packets
# If we're at the end of our queued requests, then fire off
# some more requests
# Exit the loop when we've reached the end of the directory
# handle
for num in nums:
t, pkt_data = self._read_packet()
msg = Message(pkt_data)
new_num = msg.get_int()
if num == new_num:
if t == CMD_STATUS:
self._convert_status(msg)
count = msg.get_int()
for i in range(count):
filename = msg.get_text()
longname = msg.get_text()
attr = SFTPAttributes._from_msg(
msg, filename, longname)
if (filename != '.') and (filename != '..'):
yield attr
# If we've hit the end of our queued requests, reset nums.
nums = list()
except EOFError:
self._request(CMD_CLOSE, handle)
return
def open(self, filename, mode='r', bufsize=-1):
"""
Open a file on the remote server. The arguments are the same as for
Python's built-in `python:file` (aka `python:open`). A file-like
object is returned, which closely mimics the behavior of a normal
Python file object, including the ability to be used as a context
manager.
The mode indicates how the file is to be opened: ``'r'`` for reading,
``'w'`` for writing (truncating an existing file), ``'a'`` for
appending, ``'r+'`` for reading/writing, ``'w+'`` for reading/writing
(truncating an existing file), ``'a+'`` for reading/appending. The
Python ``'b'`` flag is ignored, since SSH treats all files as binary.
The ``'U'`` flag is supported in a compatible way.
Since 1.5.2, an ``'x'`` flag indicates that the operation should only
succeed if the file was created and did not previously exist. This has
no direct mapping to Python's file flags, but is commonly known as the
``O_EXCL`` flag in posix.
The file will be buffered in standard Python style by default, but
can be altered with the ``bufsize`` parameter. ``0`` turns off
buffering, ``1`` uses line buffering, and any number greater than 1
(``>1``) uses that specific buffer size.
:param str filename: name of the file to open
:param str mode: mode (Python-style) to open in
:param int bufsize: desired buffering (-1 = default buffer size)
:return: an `.SFTPFile` object representing the open file
:raises IOError: if the file could not be opened.
"""
filename = self._adjust_cwd(filename)
self._log(DEBUG, 'open(%r, %r)' % (filename, mode))
imode = 0
if ('r' in mode) or ('+' in mode):
imode |= SFTP_FLAG_READ
if ('w' in mode) or ('+' in mode) or ('a' in mode):
imode |= SFTP_FLAG_WRITE
if 'w' in mode:
imode |= SFTP_FLAG_CREATE | SFTP_FLAG_TRUNC
if 'a' in mode:
imode |= SFTP_FLAG_CREATE | SFTP_FLAG_APPEND
if 'x' in mode:
imode |= SFTP_FLAG_CREATE | SFTP_FLAG_EXCL
attrblock = SFTPAttributes()
t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
if t != CMD_HANDLE:
raise SFTPError('Expected handle')
handle = msg.get_binary()
self._log(DEBUG, 'open(%r, %r) -> %s' % (filename, mode, hexlify(handle)))
return SFTPFile(self, handle, mode, bufsize)
# Python continues to vacillate about "open" vs "file"...
file = open
def remove(self, path):
"""
Remove the file at the given path. This only works on files; for
removing folders (directories), use `rmdir`.
:param str path: path (absolute or relative) of the file to remove
:raises IOError: if the path refers to a folder (directory)
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'remove(%r)' % path)
self._request(CMD_REMOVE, path)
unlink = remove
def rename(self, oldpath, newpath):
"""
Rename a file or folder from ``oldpath`` to ``newpath``.
:param str oldpath: existing name of the file or folder
:param str newpath: new name for the file or folder
:raises IOError: if ``newpath`` is a folder, or something else goes
wrong
"""
oldpath = self._adjust_cwd(oldpath)
newpath = self._adjust_cwd(newpath)
self._log(DEBUG, 'rename(%r, %r)' % (oldpath, newpath))
self._request(CMD_RENAME, oldpath, newpath)
def mkdir(self, path, mode=o777):
"""
Create a folder (directory) named ``path`` with numeric mode ``mode``.
The default mode is 0777 (octal). On some systems, mode is ignored.
Where it is used, the current umask value is first masked out.
:param str path: name of the folder to create
:param int mode: permissions (posix-style) for the newly-created folder
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'mkdir(%r, %r)' % (path, mode))
attr = SFTPAttributes()
attr.st_mode = mode
self._request(CMD_MKDIR, path, attr)
def rmdir(self, path):
"""
Remove the folder named ``path``.
:param str path: name of the folder to remove
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'rmdir(%r)' % path)
self._request(CMD_RMDIR, path)
def stat(self, path):
"""
Retrieve information about a file on the remote system. The return
value is an object whose attributes correspond to the attributes of
Python's ``stat`` structure as returned by ``os.stat``, except that it
contains fewer fields. An SFTP server may return as much or as little
info as it wants, so the results may vary from server to server.
Unlike a Python `python:stat` object, the result may not be accessed as
a tuple. This is mostly due to the author's slack factor.
The fields supported are: ``st_mode``, ``st_size``, ``st_uid``,
``st_gid``, ``st_atime``, and ``st_mtime``.
:param str path: the filename to stat
:return:
an `.SFTPAttributes` object containing attributes about the given
file
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'stat(%r)' % path)
t, msg = self._request(CMD_STAT, path)
if t != CMD_ATTRS:
raise SFTPError('Expected attributes')
return SFTPAttributes._from_msg(msg)
def lstat(self, path):
"""
Retrieve information about a file on the remote system, without
following symbolic links (shortcuts). This otherwise behaves exactly
the same as `stat`.
:param str path: the filename to stat
:return:
an `.SFTPAttributes` object containing attributes about the given
file
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'lstat(%r)' % path)
t, msg = self._request(CMD_LSTAT, path)
if t != CMD_ATTRS:
raise SFTPError('Expected attributes')
return SFTPAttributes._from_msg(msg)
def symlink(self, source, dest):
"""
Create a symbolic link (shortcut) of the ``source`` path at
``destination``.
:param str source: path of the original file
:param str dest: path of the newly created symlink
"""
dest = self._adjust_cwd(dest)
self._log(DEBUG, 'symlink(%r, %r)' % (source, dest))
source = bytestring(source)
self._request(CMD_SYMLINK, source, dest)
def chmod(self, path, mode):
"""
Change the mode (permissions) of a file. The permissions are
unix-style and identical to those used by Python's `os.chmod`
function.
:param str path: path of the file to change the permissions of
:param int mode: new permissions
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'chmod(%r, %r)' % (path, mode))
attr = SFTPAttributes()
attr.st_mode = mode
self._request(CMD_SETSTAT, path, attr)
def chown(self, path, uid, gid):
"""
Change the owner (``uid``) and group (``gid``) of a file. As with
Python's `os.chown` function, you must pass both arguments, so if you
only want to change one, use `stat` first to retrieve the current
owner and group.
:param str path: path of the file to change the owner and group of
:param int uid: new owner's uid
:param int gid: new group id
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'chown(%r, %r, %r)' % (path, uid, gid))
attr = SFTPAttributes()
attr.st_uid, attr.st_gid = uid, gid
self._request(CMD_SETSTAT, path, attr)
def utime(self, path, times):
"""
Set the access and modified times of the file specified by ``path``. If
``times`` is ``None``, then the file's access and modified times are set
to the current time. Otherwise, ``times`` must be a 2-tuple of numbers,
of the form ``(atime, mtime)``, which is used to set the access and
modified times, respectively. This bizarre API is mimicked from Python
for the sake of consistency -- I apologize.
:param str path: path of the file to modify
:param tuple times:
``None`` or a tuple of (access time, modified time) in standard
internet epoch time (seconds since 01 January 1970 GMT)
"""
path = self._adjust_cwd(path)
if times is None:
times = (time.time(), time.time())
self._log(DEBUG, 'utime(%r, %r)' % (path, times))
attr = SFTPAttributes()
attr.st_atime, attr.st_mtime = times
self._request(CMD_SETSTAT, path, attr)
def truncate(self, path, size):
"""
Change the size of the file specified by ``path``. This usually
extends or shrinks the size of the file, just like the `~file.truncate`
method on Python file objects.
:param str path: path of the file to modify
:param size: the new size of the file
:type size: int or long
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'truncate(%r, %r)' % (path, size))
attr = SFTPAttributes()
attr.st_size = size
self._request(CMD_SETSTAT, path, attr)
def readlink(self, path):
"""
Return the target of a symbolic link (shortcut). You can use
`symlink` to create these. The result may be either an absolute or
relative pathname.
:param str path: path of the symbolic link file
:return: target path, as a `str`
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'readlink(%r)' % path)
t, msg = self._request(CMD_READLINK, path)
if t != CMD_NAME:
raise SFTPError('Expected name response')
count = msg.get_int()
if count == 0:
return None
if count != 1:
raise SFTPError('Readlink returned %d results' % count)
return _to_unicode(msg.get_string())
def normalize(self, path):
"""
Return the normalized path (on the server) of a given path. This
can be used to quickly resolve symbolic links or determine what the
server is considering to be the "current folder" (by passing ``'.'``
as ``path``).
:param str path: path to be normalized
:return: normalized form of the given path (as a `str`)
:raises IOError: if the path can't be resolved on the server
"""
path = self._adjust_cwd(path)
self._log(DEBUG, 'normalize(%r)' % path)
t, msg = self._request(CMD_REALPATH, path)
if t != CMD_NAME:
raise SFTPError('Expected name response')
count = msg.get_int()
if count != 1:
raise SFTPError('Realpath returned %d results' % count)
return msg.get_text()
def chdir(self, path=None):
"""
Change the "current directory" of this SFTP session. Since SFTP
doesn't really have the concept of a current working directory, this is
emulated by Paramiko. Once you use this method to set a working
directory, all operations on this `.SFTPClient` object will be relative
to that path. You can pass in ``None`` to stop using a current working
directory.
:param str path: new current working directory
:raises IOError: if the requested path doesn't exist on the server
.. versionadded:: 1.4
"""
if path is None:
self._cwd = None
return
if not stat.S_ISDIR(self.stat(path).st_mode):
raise SFTPError(errno.ENOTDIR, "%s: %s" % (os.strerror(errno.ENOTDIR), path))
self._cwd = b(self.normalize(path))
def getcwd(self):
"""
Return the "current working directory" for this SFTP session, as
emulated by Paramiko. If no directory has been set with `chdir`,
this method will return ``None``.
.. versionadded:: 1.4
"""
return self._cwd and u(self._cwd)
def putfo(self, fl, remotepath, file_size=0, callback=None, confirm=True):
"""
Copy the contents of an open file object (``fl``) to the SFTP server as
``remotepath``. Any exception raised by operations will be passed
through.
The SFTP operations use pipelining for speed.
:param file fl: opened file or file-like object to copy
:param str remotepath: the destination path on the SFTP server
:param int file_size:
optional size parameter passed to callback. If none is specified,
size defaults to 0
:param callable callback:
optional callback function (form: ``func(int, int)``) that accepts
the bytes transferred so far and the total bytes to be transferred
(since 1.7.4)
:param bool confirm:
whether to do a stat() on the file afterwards to confirm the file
size (since 1.7.7)
:return:
an `.SFTPAttributes` object containing attributes about the given
file.
.. versionadded:: 1.10
"""
with self.file(remotepath, 'wb') as fr:
fr.set_pipelined(True)
size = 0
while True:
data = fl.read(32768)
fr.write(data)
size += len(data)
if callback is not None:
callback(size, file_size)
if len(data) == 0:
break
if confirm:
s = self.stat(remotepath)
if s.st_size != size:
raise IOError('size mismatch in put! %d != %d' % (s.st_size, size))
else:
s = SFTPAttributes()
return s
def put(self, localpath, remotepath, callback=None, confirm=True):
"""
Copy a local file (``localpath``) to the SFTP server as ``remotepath``.
Any exception raised by operations will be passed through. This
method is primarily provided as a convenience.
The SFTP operations use pipelining for speed.
:param str localpath: the local file to copy
:param str remotepath: the destination path on the SFTP server. Note
that the filename should be included. Only specifying a directory
may result in an error.
:param callable callback:
optional callback function (form: ``func(int, int)``) that accepts
the bytes transferred so far and the total bytes to be transferred
:param bool confirm:
whether to do a stat() on the file afterwards to confirm the file
size
:return: an `.SFTPAttributes` object containing attributes about the given file
.. versionadded:: 1.4
.. versionchanged:: 1.7.4
``callback`` and rich attribute return value added.
.. versionchanged:: 1.7.7
``confirm`` param added.
"""
file_size = os.stat(localpath).st_size
with open(localpath, 'rb') as fl:
return self.putfo(fl, remotepath, file_size, callback, confirm)
def getfo(self, remotepath, fl, callback=None):
"""
Copy a remote file (``remotepath``) from the SFTP server and write to
an open file or file-like object, ``fl``. Any exception raised by
operations will be passed through. This method is primarily provided
as a convenience.
:param object remotepath: opened file or file-like object to copy to
:param str fl:
the destination path on the local host or open file object
:param callable callback:
optional callback function (form: ``func(int, int)``) that accepts
the bytes transferred so far and the total bytes to be transferred
:return: the `number <int>` of bytes written to the opened file object
.. versionadded:: 1.10
"""
with self.open(remotepath, 'rb') as fr:
file_size = self.stat(remotepath).st_size
fr.prefetch()
size = 0
while True:
data = fr.read(32768)
fl.write(data)
size += len(data)
if callback is not None:
callback(size, file_size)
if len(data) == 0:
break
return size
def get(self, remotepath, localpath, callback=None):
"""
Copy a remote file (``remotepath``) from the SFTP server to the local
host as ``localpath``. Any exception raised by operations will be
passed through. This method is primarily provided as a convenience.
:param str remotepath: the remote file to copy
:param str localpath: the destination path on the local host
:param callable callback:
optional callback function (form: ``func(int, int)``) that accepts
the bytes transferred so far and the total bytes to be transferred
.. versionadded:: 1.4
.. versionchanged:: 1.7.4
Added the ``callback`` param
"""
file_size = self.stat(remotepath).st_size
with open(localpath, 'wb') as fl:
size = self.getfo(remotepath, fl, callback)
s = os.stat(localpath)
if s.st_size != size:
raise IOError('size mismatch in get! %d != %d' % (s.st_size, size))
### internals...
def _request(self, t, *arg):
num = self._async_request(type(None), t, *arg)
return self._read_response(num)
def _async_request(self, fileobj, t, *arg):
# this method may be called from other threads (prefetch)
self._lock.acquire()
try:
msg = Message()
msg.add_int(self.request_number)
for item in arg:
if isinstance(item, long):
msg.add_int64(item)
elif isinstance(item, int):
msg.add_int(item)
elif isinstance(item, (string_types, bytes_types)):
msg.add_string(item)
elif isinstance(item, SFTPAttributes):
item._pack(msg)
else:
raise Exception('unknown type for %r type %r' % (item, type(item)))
num = self.request_number
self._expecting[num] = fileobj
self._send_packet(t, msg)
self.request_number += 1
finally:
self._lock.release()
return num
def _read_response(self, waitfor=None):
while True:
try:
t, data = self._read_packet()
except EOFError as e:
raise SSHException('Server connection dropped: %s' % str(e))
msg = Message(data)
num = msg.get_int()
if num not in self._expecting:
# might be response for a file that was closed before responses came back
self._log(DEBUG, 'Unexpected response #%d' % (num,))
if waitfor is None:
# just doing a single check
break
continue
fileobj = self._expecting[num]
del self._expecting[num]
if num == waitfor:
# synchronous
if t == CMD_STATUS:
self._convert_status(msg)
return t, msg
if fileobj is not type(None):
fileobj._async_response(t, msg, num)
if waitfor is None:
# just doing a single check
break
return None, None
def _finish_responses(self, fileobj):
while fileobj in self._expecting.values():
self._read_response()
fileobj._check_exception()
def _convert_status(self, msg):
"""
Raises EOFError or IOError on error status; otherwise does nothing.
"""
code = msg.get_int()
text = msg.get_text()
if code == SFTP_OK:
return
elif code == SFTP_EOF:
raise EOFError(text)
elif code == SFTP_NO_SUCH_FILE:
# clever idea from john a. meinel: map the error codes to errno
raise IOError(errno.ENOENT, text)
elif code == SFTP_PERMISSION_DENIED:
raise IOError(errno.EACCES, text)
else:
raise IOError(text)
def _adjust_cwd(self, path):
"""
Return an adjusted path if we're emulating a "current working
directory" for the server.
"""
path = b(path)
if self._cwd is None:
return path
if len(path) and path[0:1] == b_slash:
# absolute path
return path
if self._cwd == b_slash:
return self._cwd + path
return self._cwd + b_slash + path
class SFTP(SFTPClient):
"""
An alias for `.SFTPClient` for backwards compatability.
"""
pass
| mit |
ksmaheshkumar/weevely3 | core/vectors.py | 12 | 9253 | """
The module `core.vectors` defines the following vectors classes.
* `ModuleExec` vector executes a given module with given arguments.
* `PhpCode` vector contains PHP code, executed via `shell_php` module.
* `PhpFile` vector loads PHP code from an external file, and execute it via `shell_php` module.
* `ShellCmd` vector contains a shell command, executed via `shell_sh` module.
"""
from mako.template import Template
from mako.lookup import TemplateLookup
from core.weexceptions import DevException
from core.loggers import log
from core import modules
import utils
from core import messages
import re
import os
import thread
class Os:
"""Represent the operating system vector compatibility.
It is passed as vectors `target` argument.
* `Os.ANY` if the vector is compatible with every operating system
* `Os.NIX` if the vector is compatible only with Unix/Linux enviroinments
* `Os.WIN` if the vector is compatible only with Microsoft Windows enviroinments
"""
ANY = 0
NIX = 1
WIN = 2
class ModuleExec:
"""This vector contains commands to execute other modules.
Args:
module (str): Module name.
arguments (list of str): arguments passed as command line splitted string, e.g. `[ '--optional=o', 'mandatory1, .. ]`.
name (str): This vector name.
target (Os): The operating system supported by the vector.
postprocess (func): The function which postprocess the execution result.
background (bool): Execute in a separate thread on `run()`
"""
def __init__(self, module, arguments, name = '', target = 0, postprocess = None, background = False):
self.name = name if name else utils.strings.randstr()
if isinstance(arguments, list):
self.arguments = arguments
else:
raise DevException(messages.vectors.wrong_payload_type)
if not isinstance(target, int) or not target < 3:
raise DevException(messages.vectors.wrong_target_type)
if not callable(postprocess) and postprocess is not None:
raise DevException(messages.vectors.wrong_postprocessing_type)
self.module = module
self.target = target
self.postprocess = postprocess
self.background = background
def format(self, values):
"""Format the arguments.
This format the vector payloads using Mako template.
Args:
values (dict): The values passed as arguments of Mako
`template.Template(arg[n]).render(**values)`
Returns:
A list of string containing the formatted payloads.
"""
return [ Template(arg).render(**values) for arg in self.arguments ]
def run(self, format_args = {}):
"""Run the module with the formatted payload.
Render the contained payload with mako and pass the result
as argument to the given module. The result is processed by the
`self.postprocess` method.
Args:
format_arg (dict): The dictionary to format the payload with.
Return:
Object. Contains the postprocessed result of the `run_argv`
module execution.
"""
try:
formatted = self.format(format_args)
except TypeError as e:
import traceback; log.debug(traceback.format_exc())
raise DevException(messages.vectors.wrong_arguments_type)
# The background argument is set at vector init in order
# to threadify vectors also if called by VectorList methods.
if self.background:
thread.start_new_thread(modules.loaded[self.module].run_argv, (formatted, ))
result = None
else:
result = modules.loaded[self.module].run_argv(formatted)
if self.postprocess:
result = self.postprocess(result)
return result
def load_result_or_run(self, result_name, format_args = {}):
"""Load a result stored in module session or run the module.
Return the variable stored or run the `self.run` method.
Args:
field (string): The variable name.
format_arg (dict): The dictionary to format the payload with.
Return:
Object. Contains the postprocessed result of the `run_argv`
module execution.
"""
result = modules.loaded[self.module].session[self.module]['results'].get(result_name)
if result: return result
else: return self.run(format_args)
class PhpCode(ModuleExec):
"""This vector contains PHP code.
The PHP code is executed via the module `shell_php`. Inherit `ModuleExec`.
Args:
payload (str): PHP code to execute.
name (str): This vector name.
target (Os): The operating system supported by the vector.
postprocess (func): The function which postprocess the execution result.
arguments (list of str): Additional arguments for `shell_php`
background (bool): Execute in a separate thread on `run()`
"""
def __init__(self, payload, name = None, target = 0, postprocess = None, arguments = [], background = False):
if not isinstance(payload, basestring):
raise DevException(messages.vectors.wrong_payload_type)
ModuleExec.__init__(
self,
module = 'shell_php',
arguments = [ payload ] + arguments,
name = name,
target = target,
postprocess = postprocess,
background = background
)
def format(self, values):
"""Format the payload.
This format the vector payloads using Mako template.
Args:
values (dict): The values passed as arguments of Mako
`template.Template(arg[n]).render(**values)`
Returns:
A list of string containing the formatted payloads.
"""
return [
Template(arg).render(**values)
for arg in self.arguments
]
class PhpFile(PhpCode):
"""This vector contains PHP code imported from a template.
The PHP code in the given template is executed via the module `shell_php`.
Inherit `PhpCode`.
Args:
payload_path (str): Path of the template to execute, usually placed in self.folder.
name (str): This vector name.
target (Os): The operating system supported by the vector.
postprocess (func): The function which postprocess the execution result.
arguments (list of str): Additional arguments for `shell_php`
background (bool): Execute in a separate thread on `run()`
"""
def __init__(self, payload_path, name = None, target = 0, postprocess = None, arguments = [], background = False):
if not isinstance(payload_path, basestring):
raise DevException(messages.vectors.wrong_payload_type)
try:
payload = file(payload_path, 'r').read()
except Exception as e:
raise DevException(messages.generic.error_loading_file_s_s % (payload_path, e))
self.folder, self.name = os.path.split(payload_path)
ModuleExec.__init__(
self,
module = 'shell_php',
arguments = [ payload ] + arguments,
name = name,
target = target,
postprocess = postprocess,
background = background
)
def format(self, values):
"""Format the payload.
This format the vector payloads using Mako template.
Also set a TemplateLookup to the template folder, to allow an easy
`<% include>` tag usage.
Args:
values (dict): The values passed as arguments of Mako
`template.Template(arg[n]).render(**values)`
Returns:
A list of string containing the formatted payloads.
"""
return [
Template(
text = arg,
lookup = TemplateLookup(directories = [ self.folder ])
).render(**values)
for arg in self.arguments
]
class ShellCmd(PhpCode):
"""This vector contains a shell command.
The shell command is executed via the module `shell_sh`. Inherit `ModuleExec`.
Args:
payload (str): Command line to execute.
name (str): This vector name.
target (Os): The operating system supported by the vector.
postprocess (func): The function which postprocess the execution result.
arguments (list of str): Additional arguments for `shell_php`
background (bool): Execute in a separate thread on `run()`
"""
def __init__(self, payload, name = None, target = 0, postprocess = None, arguments = [], background = False):
if not isinstance(payload, basestring):
raise DevException(messages.vectors.wrong_payload_type)
ModuleExec.__init__(
self,
module = 'shell_sh',
arguments = [ payload ] + arguments,
name = name,
target = target,
postprocess = postprocess,
background = background
)
| gpl-3.0 |
pigshell/nhnick | src/qt/qtwebkit/Tools/Scripts/webkitpy/common/system/stack_utils_unittest.py | 124 | 2709 | # Copyright (C) 2011 Google Inc. 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 Google Inc. 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
# OWNER 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 sys
import unittest2 as unittest
from webkitpy.common.system import outputcapture
from webkitpy.common.system import stack_utils
def current_thread_id():
thread_id, _ = sys._current_frames().items()[0]
return thread_id
class StackUtilsTest(unittest.TestCase):
def test_find_thread_stack_found(self):
thread_id = current_thread_id()
found_stack = stack_utils._find_thread_stack(thread_id)
self.assertIsNotNone(found_stack)
def test_find_thread_stack_not_found(self):
found_stack = stack_utils._find_thread_stack(0)
self.assertIsNone(found_stack)
def test_log_thread_state(self):
msgs = []
def logger(msg):
msgs.append(msg)
thread_id = current_thread_id()
stack_utils.log_thread_state(logger, "test-thread", thread_id,
"is tested")
self.assertTrue(msgs)
def test_log_traceback(self):
msgs = []
def logger(msg):
msgs.append(msg)
try:
raise ValueError
except:
stack_utils.log_traceback(logger, sys.exc_info()[2])
self.assertTrue(msgs)
| bsd-3-clause |
likelyzhao/mxnet | example/reinforcement-learning/parallel_actor_critic/model.py | 15 | 4253 | from itertools import chain
import numpy as np
import scipy.signal
import mxnet as mx
class Agent(object):
def __init__(self, input_size, act_space, config):
super(Agent, self).__init__()
self.input_size = input_size
self.num_envs = config.num_envs
self.ctx = config.ctx
self.act_space = act_space
self.config = config
# Shared network.
net = mx.sym.Variable('data')
net = mx.sym.FullyConnected(
data=net, name='fc1', num_hidden=config.hidden_size, no_bias=True)
net = mx.sym.Activation(data=net, name='relu1', act_type="relu")
# Policy network.
policy_fc = mx.sym.FullyConnected(
data=net, name='policy_fc', num_hidden=act_space, no_bias=True)
policy = mx.sym.SoftmaxActivation(data=policy_fc, name='policy')
policy = mx.sym.clip(data=policy, a_min=1e-5, a_max=1 - 1e-5)
log_policy = mx.sym.log(data=policy, name='log_policy')
out_policy = mx.sym.BlockGrad(data=policy, name='out_policy')
# Negative entropy.
neg_entropy = policy * log_policy
neg_entropy = mx.sym.MakeLoss(
data=neg_entropy, grad_scale=config.entropy_wt, name='neg_entropy')
# Value network.
value = mx.sym.FullyConnected(data=net, name='value', num_hidden=1)
self.sym = mx.sym.Group([log_policy, value, neg_entropy, out_policy])
self.model = mx.mod.Module(self.sym, data_names=('data',),
label_names=None)
self.paralell_num = config.num_envs * config.t_max
self.model.bind(
data_shapes=[('data', (self.paralell_num, input_size))],
label_shapes=None,
grad_req="write")
self.model.init_params(config.init_func)
optimizer_params = {'learning_rate': config.learning_rate,
'rescale_grad': 1.0}
if config.grad_clip:
optimizer_params['clip_gradient'] = config.clip_magnitude
self.model.init_optimizer(
kvstore='local', optimizer=config.update_rule,
optimizer_params=optimizer_params)
def act(self, ps):
us = np.random.uniform(size=ps.shape[0])[:, np.newaxis]
as_ = (np.cumsum(ps, axis=1) > us).argmax(axis=1)
return as_
def train_step(self, env_xs, env_as, env_rs, env_vs):
# NOTE(reed): Reshape to set the data shape.
self.model.reshape([('data', (len(env_xs), self.input_size))])
xs = mx.nd.array(env_xs, ctx=self.ctx)
as_ = np.array(list(chain.from_iterable(env_as)))
# Compute discounted rewards and advantages.
advs = []
gamma, lambda_ = self.config.gamma, self.config.lambda_
for i in xrange(len(env_vs)):
# Compute advantages using Generalized Advantage Estimation;
# see eqn. (16) of [Schulman 2016].
delta_t = (env_rs[i] + gamma*np.array(env_vs[i][1:]) -
np.array(env_vs[i][:-1]))
advs.extend(self._discount(delta_t, gamma * lambda_))
# Negative generalized advantage estimations.
neg_advs_v = -np.asarray(advs)
# NOTE(reed): Only keeping the grads for selected actions.
neg_advs_np = np.zeros((len(advs), self.act_space), dtype=np.float32)
neg_advs_np[np.arange(neg_advs_np.shape[0]), as_] = neg_advs_v
neg_advs = mx.nd.array(neg_advs_np, ctx=self.ctx)
# NOTE(reed): The grads of values is actually negative advantages.
v_grads = mx.nd.array(self.config.vf_wt * neg_advs_v[:, np.newaxis],
ctx=self.ctx)
data_batch = mx.io.DataBatch(data=[xs], label=None)
self._forward_backward(data_batch=data_batch,
out_grads=[neg_advs, v_grads])
self._update_params()
def _discount(self, x, gamma):
return scipy.signal.lfilter([1], [1, -gamma], x[::-1], axis=0)[::-1]
def _forward_backward(self, data_batch, out_grads=None):
self.model.forward(data_batch, is_train=True)
self.model.backward(out_grads=out_grads)
def _update_params(self):
self.model.update()
self.model._sync_params_from_devices()
| apache-2.0 |
vmturbo/nova | nova/config.py | 5 | 1949 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright 2012 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log
from oslo_utils import importutils
from nova.common import config
import nova.conf
from nova.db.sqlalchemy import api as sqlalchemy_api
from nova import rpc
from nova import version
profiler = importutils.try_import('osprofiler.opts')
CONF = nova.conf.CONF
def parse_args(argv, default_config_files=None, configure_db=True,
init_rpc=True):
log.register_options(CONF)
# We use the oslo.log default log levels which includes suds=INFO
# and add only the extra levels that Nova needs
if CONF.glance.debug:
extra_default_log_levels = ['glanceclient=DEBUG']
else:
extra_default_log_levels = ['glanceclient=WARN']
log.set_defaults(default_log_levels=log.get_default_log_levels() +
extra_default_log_levels)
rpc.set_defaults(control_exchange='nova')
if profiler:
profiler.set_defaults(CONF)
config.set_middleware_defaults()
CONF(argv[1:],
project='nova',
version=version.version_string(),
default_config_files=default_config_files)
if init_rpc:
rpc.init(CONF)
if configure_db:
sqlalchemy_api.configure(CONF)
| apache-2.0 |
peastman/deepchem | examples/tox21/tox21_IRV.py | 6 | 1286 | """
Script that trains multitask models on Tox21 dataset.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import os
import shutil
import numpy as np
import deepchem as dc
import time
from deepchem.molnet import load_tox21
# Only for debug!
np.random.seed(123)
# Load Tox21 dataset
n_features = 1024
tox21_tasks, tox21_datasets, transformers = load_tox21()
train_dataset, valid_dataset, test_dataset = tox21_datasets
K = 10
# Fit models
metric = dc.metrics.Metric(dc.metrics.roc_auc_score, np.mean)
transformers = [dc.trans.IRVTransformer(K, len(tox21_tasks), train_dataset)]
for transformer in transformers:
train_dataset = transformer.transform(train_dataset)
valid_dataset = transformer.transform(valid_dataset)
test_dataset = transformer.transform(test_dataset)
model = dc.models.TensorflowMultitaskIRVClassifier(
len(tox21_tasks), K=K, learning_rate=0.001, penalty=0.05, batch_size=32)
# Fit trained model
model.fit(train_dataset, nb_epoch=10)
print("Evaluating model")
train_scores = model.evaluate(train_dataset, [metric], transformers)
valid_scores = model.evaluate(valid_dataset, [metric], transformers)
print("Train scores")
print(train_scores)
print("Validation scores")
print(valid_scores)
| mit |
endorphinl/horizon | openstack_dashboard/dashboards/project/routers/extensions/routerrules/tables.py | 51 | 2806 | # Copyright 2013, Big Switch Networks, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy
from openstack_dashboard.dashboards.project.routers.extensions.routerrules\
import rulemanager
from openstack_dashboard import policy
from horizon import tables
LOG = logging.getLogger(__name__)
class AddRouterRule(policy.PolicyTargetMixin, tables.LinkAction):
name = "create"
verbose_name = _("Add Router Rule")
url = "horizon:project:routers:addrouterrule"
classes = ("ajax-modal",)
icon = "plus"
policy_rules = (("network", "update_router"),)
def get_link_url(self, datum=None):
router_id = self.table.kwargs['router_id']
return reverse(self.url, args=(router_id,))
class RemoveRouterRule(policy.PolicyTargetMixin, tables.DeleteAction):
@staticmethod
def action_present(count):
return ungettext_lazy(
u"Delete Router Rule",
u"Delete Router Rules",
count
)
@staticmethod
def action_past(count):
return ungettext_lazy(
u"Deleted Router Rule",
u"Deleted Router Rules",
count
)
failure_url = 'horizon:project:routers:detail'
policy_rules = (("network", "update_router"),)
def delete(self, request, obj_id):
router_id = self.table.kwargs['router_id']
rulemanager.remove_rules(request, [obj_id],
router_id=router_id)
class RouterRulesTable(tables.DataTable):
source = tables.Column("source", verbose_name=_("Source CIDR"))
destination = tables.Column("destination",
verbose_name=_("Destination CIDR"))
action = tables.Column("action", verbose_name=_("Action"))
nexthops = tables.Column("nexthops", verbose_name=_("Next Hops"))
def get_object_display(self, rule):
return "(%(action)s) %(source)s -> %(destination)s" % rule
class Meta(object):
name = "routerrules"
verbose_name = _("Router Rules")
table_actions = (AddRouterRule, RemoveRouterRule)
row_actions = (RemoveRouterRule, )
| apache-2.0 |
wehkamp/ansible-modules-core | cloud/amazon/ec2_elb_lb.py | 7 | 33856 | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
DOCUMENTATION = """
---
module: ec2_elb_lb
description:
- Returns information about the load balancer.
- Will be marked changed when called only if state is changed.
short_description: Creates or destroys Amazon ELB.
version_added: "1.5"
author: Jim Dalton
options:
state:
description:
- Create or destroy the ELB
required: true
name:
description:
- The name of the ELB
required: true
listeners:
description:
- List of ports/protocols for this ELB to listen on (see example)
required: false
purge_listeners:
description:
- Purge existing listeners on ELB that are not found in listeners
required: false
default: true
zones:
description:
- List of availability zones to enable on this ELB
required: false
purge_zones:
description:
- Purge existing availability zones on ELB that are not found in zones
required: false
default: false
security_group_ids:
description:
- A list of security groups to apply to the elb
require: false
default: None
version_added: "1.6"
health_check:
description:
- An associative array of health check configuration settings (see example)
require: false
default: None
region:
description:
- The AWS region to use. If not specified then the value of the EC2_REGION environment variable, if any, is used.
required: false
aliases: ['aws_region', 'ec2_region']
subnets:
description:
- A list of VPC subnets to use when creating ELB. Zones should be empty if using this.
required: false
default: None
aliases: []
version_added: "1.7"
purge_subnets:
description:
- Purge existing subnet on ELB that are not found in subnets
required: false
default: false
version_added: "1.7"
scheme:
description:
- The scheme to use when creating the ELB. For a private VPC-visible ELB use 'internal'.
required: false
default: 'internet-facing'
version_added: "1.7"
validate_certs:
description:
- When set to "no", SSL certificates will not be validated for boto versions >= 2.6.0.
required: false
default: "yes"
choices: ["yes", "no"]
aliases: []
version_added: "1.5"
connection_draining_timeout:
description:
- Wait a specified timeout allowing connections to drain before terminating an instance
required: false
aliases: []
version_added: "1.8"
cross_az_load_balancing:
description:
- Distribute load across all configured Availability Zones
required: false
default: "no"
choices: ["yes", "no"]
aliases: []
version_added: "1.8"
stickiness:
description:
- An associative array of stickness policy settings. Policy will be applied to all listeners ( see example )
required: false
version_added: "2.0"
extends_documentation_fragment: aws
"""
EXAMPLES = """
# Note: None of these examples set aws_access_key, aws_secret_key, or region.
# It is assumed that their matching environment variables are set.
# Basic provisioning example (non-VPC)
- local_action:
module: ec2_elb_lb
name: "test-please-delete"
state: present
zones:
- us-east-1a
- us-east-1d
listeners:
- protocol: http # options are http, https, ssl, tcp
load_balancer_port: 80
instance_port: 80
- protocol: https
load_balancer_port: 443
instance_protocol: http # optional, defaults to value of protocol setting
instance_port: 80
# ssl certificate required for https or ssl
ssl_certificate_id: "arn:aws:iam::123456789012:server-certificate/company/servercerts/ProdServerCert"
# Internal ELB example
- local_action:
module: ec2_elb_lb
name: "test-vpc"
scheme: internal
state: present
subnets:
- subnet-abcd1234
- subnet-1a2b3c4d
listeners:
- protocol: http # options are http, https, ssl, tcp
load_balancer_port: 80
instance_port: 80
# Configure a health check
- local_action:
module: ec2_elb_lb
name: "test-please-delete"
state: present
zones:
- us-east-1d
listeners:
- protocol: http
load_balancer_port: 80
instance_port: 80
health_check:
ping_protocol: http # options are http, https, ssl, tcp
ping_port: 80
ping_path: "/index.html" # not required for tcp or ssl
response_timeout: 5 # seconds
interval: 30 # seconds
unhealthy_threshold: 2
healthy_threshold: 10
# Ensure ELB is gone
- local_action:
module: ec2_elb_lb
name: "test-please-delete"
state: absent
# Normally, this module will purge any listeners that exist on the ELB
# but aren't specified in the listeners parameter. If purge_listeners is
# false it leaves them alone
- local_action:
module: ec2_elb_lb
name: "test-please-delete"
state: present
zones:
- us-east-1a
- us-east-1d
listeners:
- protocol: http
load_balancer_port: 80
instance_port: 80
purge_listeners: no
# Normally, this module will leave availability zones that are enabled
# on the ELB alone. If purge_zones is true, then any extraneous zones
# will be removed
- local_action:
module: ec2_elb_lb
name: "test-please-delete"
state: present
zones:
- us-east-1a
- us-east-1d
listeners:
- protocol: http
load_balancer_port: 80
instance_port: 80
purge_zones: yes
# Creates a ELB and assigns a list of subnets to it.
- local_action:
module: ec2_elb_lb
state: present
name: 'New ELB'
security_group_ids: 'sg-123456, sg-67890'
region: us-west-2
subnets: 'subnet-123456,subnet-67890'
purge_subnets: yes
listeners:
- protocol: http
load_balancer_port: 80
instance_port: 80
# Create an ELB with connection draining and cross availability
# zone load balancing
- local_action:
module: ec2_elb_lb
name: "New ELB"
state: present
connection_draining_timeout: 60
cross_az_load_balancing: "yes"
region: us-east-1
zones:
- us-east-1a
- us-east-1d
listeners:
- protocols: http
- load_balancer_port: 80
- instance_port: 80
# Create an ELB with load balanacer stickiness enabled
- local_action:
module: ec2_elb_lb
name: "New ELB"
state: present
region: us-east-1
zones:
- us-east-1a
- us-east-1d
listeners:
- protocols: http
- load_balancer_port: 80
- instance_port: 80
stickiness:
type: loadbalancer
enabled: yes
expiration: 300
# Create an ELB with application stickiness enabled
- local_action:
module: ec2_elb_lb
name: "New ELB"
state: present
region: us-east-1
zones:
- us-east-1a
- us-east-1d
listeners:
- protocols: http
- load_balancer_port: 80
- instance_port: 80
stickiness:
type: application
enabled: yes
cookie: SESSIONID
"""
try:
import boto
import boto.ec2.elb
import boto.ec2.elb.attributes
from boto.ec2.elb.healthcheck import HealthCheck
from boto.regioninfo import RegionInfo
HAS_BOTO = True
except ImportError:
HAS_BOTO = False
class ElbManager(object):
"""Handles ELB creation and destruction"""
def __init__(self, module, name, listeners=None, purge_listeners=None,
zones=None, purge_zones=None, security_group_ids=None,
health_check=None, subnets=None, purge_subnets=None,
scheme="internet-facing", connection_draining_timeout=None,
cross_az_load_balancing=None,
stickiness=None, region=None, **aws_connect_params):
self.module = module
self.name = name
self.listeners = listeners
self.purge_listeners = purge_listeners
self.zones = zones
self.purge_zones = purge_zones
self.security_group_ids = security_group_ids
self.health_check = health_check
self.subnets = subnets
self.purge_subnets = purge_subnets
self.scheme = scheme
self.connection_draining_timeout = connection_draining_timeout
self.cross_az_load_balancing = cross_az_load_balancing
self.stickiness = stickiness
self.aws_connect_params = aws_connect_params
self.region = region
self.changed = False
self.status = 'gone'
self.elb_conn = self._get_elb_connection()
self.elb = self._get_elb()
def ensure_ok(self):
"""Create the ELB"""
if not self.elb:
# Zones and listeners will be added at creation
self._create_elb()
else:
self._set_zones()
self._set_security_groups()
self._set_elb_listeners()
self._set_subnets()
self._set_health_check()
# boto has introduced support for some ELB attributes in
# different versions, so we check first before trying to
# set them to avoid errors
if self._check_attribute_support('connection_draining'):
self._set_connection_draining_timeout()
if self._check_attribute_support('cross_zone_load_balancing'):
self._set_cross_az_load_balancing()
# add sitcky options
self.select_stickiness_policy()
def ensure_gone(self):
"""Destroy the ELB"""
if self.elb:
self._delete_elb()
def get_info(self):
try:
check_elb = self.elb_conn.get_all_load_balancers(self.name)[0]
except:
check_elb = None
if not check_elb:
info = {
'name': self.name,
'status': self.status
}
else:
try:
lb_cookie_policy = check_elb.policies.lb_cookie_stickiness_policies[0].__dict__['policy_name']
except:
lb_cookie_policy = None
try:
app_cookie_policy = check_elb.policies.app_cookie_stickiness_policies[0].__dict__['policy_name']
except:
app_cookie_policy = None
info = {
'name': check_elb.name,
'dns_name': check_elb.dns_name,
'zones': check_elb.availability_zones,
'security_group_ids': check_elb.security_groups,
'status': self.status,
'subnets': self.subnets,
'scheme': check_elb.scheme,
'hosted_zone_name': check_elb.canonical_hosted_zone_name,
'hosted_zone_id': check_elb.canonical_hosted_zone_name_id,
'lb_cookie_policy': lb_cookie_policy,
'app_cookie_policy': app_cookie_policy
}
if check_elb.health_check:
info['health_check'] = {
'target': check_elb.health_check.target,
'interval': check_elb.health_check.interval,
'timeout': check_elb.health_check.timeout,
'healthy_threshold': check_elb.health_check.healthy_threshold,
'unhealthy_threshold': check_elb.health_check.unhealthy_threshold,
}
if check_elb.listeners:
info['listeners'] = [self._api_listener_as_tuple(l)
for l in check_elb.listeners]
elif self.status == 'created':
# When creating a new ELB, listeners don't show in the
# immediately returned result, so just include the
# ones that were added
info['listeners'] = [self._listener_as_tuple(l)
for l in self.listeners]
else:
info['listeners'] = []
if self._check_attribute_support('connection_draining'):
info['connection_draining_timeout'] = self.elb_conn.get_lb_attribute(self.name, 'ConnectionDraining').timeout
if self._check_attribute_support('cross_zone_load_balancing'):
is_cross_az_lb_enabled = self.elb_conn.get_lb_attribute(self.name, 'CrossZoneLoadBalancing')
if is_cross_az_lb_enabled:
info['cross_az_load_balancing'] = 'yes'
else:
info['cross_az_load_balancing'] = 'no'
# return stickiness info?
return info
def _get_elb(self):
elbs = self.elb_conn.get_all_load_balancers()
for elb in elbs:
if self.name == elb.name:
self.status = 'ok'
return elb
def _get_elb_connection(self):
try:
return connect_to_aws(boto.ec2.elb, self.region,
**self.aws_connect_params)
except (boto.exception.NoAuthHandlerFound, StandardError), e:
self.module.fail_json(msg=str(e))
def _delete_elb(self):
# True if succeeds, exception raised if not
result = self.elb_conn.delete_load_balancer(name=self.name)
if result:
self.changed = True
self.status = 'deleted'
def _create_elb(self):
listeners = [self._listener_as_tuple(l) for l in self.listeners]
self.elb = self.elb_conn.create_load_balancer(name=self.name,
zones=self.zones,
security_groups=self.security_group_ids,
complex_listeners=listeners,
subnets=self.subnets,
scheme=self.scheme)
if self.elb:
self.changed = True
self.status = 'created'
def _create_elb_listeners(self, listeners):
"""Takes a list of listener tuples and creates them"""
# True if succeeds, exception raised if not
self.changed = self.elb_conn.create_load_balancer_listeners(self.name,
complex_listeners=listeners)
def _delete_elb_listeners(self, listeners):
"""Takes a list of listener tuples and deletes them from the elb"""
ports = [l[0] for l in listeners]
# True if succeeds, exception raised if not
self.changed = self.elb_conn.delete_load_balancer_listeners(self.name,
ports)
def _set_elb_listeners(self):
"""
Creates listeners specified by self.listeners; overwrites existing
listeners on these ports; removes extraneous listeners
"""
listeners_to_add = []
listeners_to_remove = []
listeners_to_keep = []
# Check for any listeners we need to create or overwrite
for listener in self.listeners:
listener_as_tuple = self._listener_as_tuple(listener)
# First we loop through existing listeners to see if one is
# already specified for this port
existing_listener_found = None
for existing_listener in self.elb.listeners:
# Since ELB allows only one listener on each incoming port, a
# single match on the incoming port is all we're looking for
if existing_listener[0] == listener['load_balancer_port']:
existing_listener_found = self._api_listener_as_tuple(existing_listener)
break
if existing_listener_found:
# Does it match exactly?
if listener_as_tuple != existing_listener_found:
# The ports are the same but something else is different,
# so we'll remove the existing one and add the new one
listeners_to_remove.append(existing_listener_found)
listeners_to_add.append(listener_as_tuple)
else:
# We already have this listener, so we're going to keep it
listeners_to_keep.append(existing_listener_found)
else:
# We didn't find an existing listener, so just add the new one
listeners_to_add.append(listener_as_tuple)
# Check for any extraneous listeners we need to remove, if desired
if self.purge_listeners:
for existing_listener in self.elb.listeners:
existing_listener_tuple = self._api_listener_as_tuple(existing_listener)
if existing_listener_tuple in listeners_to_remove:
# Already queued for removal
continue
if existing_listener_tuple in listeners_to_keep:
# Keep this one around
continue
# Since we're not already removing it and we don't need to keep
# it, let's get rid of it
listeners_to_remove.append(existing_listener_tuple)
if listeners_to_remove:
self._delete_elb_listeners(listeners_to_remove)
if listeners_to_add:
self._create_elb_listeners(listeners_to_add)
def _api_listener_as_tuple(self, listener):
"""Adds ssl_certificate_id to ELB API tuple if present"""
base_tuple = listener.get_complex_tuple()
if listener.ssl_certificate_id and len(base_tuple) < 5:
return base_tuple + (listener.ssl_certificate_id,)
return base_tuple
def _listener_as_tuple(self, listener):
"""Formats listener as a 4- or 5-tuples, in the order specified by the
ELB API"""
# N.B. string manipulations on protocols below (str(), upper()) is to
# ensure format matches output from ELB API
listener_list = [
listener['load_balancer_port'],
listener['instance_port'],
str(listener['protocol'].upper()),
]
# Instance protocol is not required by ELB API; it defaults to match
# load balancer protocol. We'll mimic that behavior here
if 'instance_protocol' in listener:
listener_list.append(str(listener['instance_protocol'].upper()))
else:
listener_list.append(str(listener['protocol'].upper()))
if 'ssl_certificate_id' in listener:
listener_list.append(str(listener['ssl_certificate_id']))
return tuple(listener_list)
def _enable_zones(self, zones):
try:
self.elb.enable_zones(zones)
except boto.exception.BotoServerError, e:
if "Invalid Availability Zone" in e.error_message:
self.module.fail_json(msg=e.error_message)
else:
self.module.fail_json(msg="an unknown server error occurred, please try again later")
self.changed = True
def _disable_zones(self, zones):
try:
self.elb.disable_zones(zones)
except boto.exception.BotoServerError, e:
if "Invalid Availability Zone" in e.error_message:
self.module.fail_json(msg=e.error_message)
else:
self.module.fail_json(msg="an unknown server error occurred, please try again later")
self.changed = True
def _attach_subnets(self, subnets):
self.elb_conn.attach_lb_to_subnets(self.name, subnets)
self.changed = True
def _detach_subnets(self, subnets):
self.elb_conn.detach_lb_from_subnets(self.name, subnets)
self.changed = True
def _set_subnets(self):
"""Determine which subnets need to be attached or detached on the ELB"""
if self.subnets:
if self.purge_subnets:
subnets_to_detach = list(set(self.elb.subnets) - set(self.subnets))
subnets_to_attach = list(set(self.subnets) - set(self.elb.subnets))
else:
subnets_to_detach = None
subnets_to_attach = list(set(self.subnets) - set(self.elb.subnets))
if subnets_to_attach:
self._attach_subnets(subnets_to_attach)
if subnets_to_detach:
self._detach_subnets(subnets_to_detach)
def _set_zones(self):
"""Determine which zones need to be enabled or disabled on the ELB"""
if self.zones:
if self.purge_zones:
zones_to_disable = list(set(self.elb.availability_zones) -
set(self.zones))
zones_to_enable = list(set(self.zones) -
set(self.elb.availability_zones))
else:
zones_to_disable = None
zones_to_enable = list(set(self.zones) -
set(self.elb.availability_zones))
if zones_to_enable:
self._enable_zones(zones_to_enable)
# N.B. This must come second, in case it would have removed all zones
if zones_to_disable:
self._disable_zones(zones_to_disable)
def _set_security_groups(self):
if self.security_group_ids != None and set(self.elb.security_groups) != set(self.security_group_ids):
self.elb_conn.apply_security_groups_to_lb(self.name, self.security_group_ids)
self.Changed = True
def _set_health_check(self):
"""Set health check values on ELB as needed"""
if self.health_check:
# This just makes it easier to compare each of the attributes
# and look for changes. Keys are attributes of the current
# health_check; values are desired values of new health_check
health_check_config = {
"target": self._get_health_check_target(),
"timeout": self.health_check['response_timeout'],
"interval": self.health_check['interval'],
"unhealthy_threshold": self.health_check['unhealthy_threshold'],
"healthy_threshold": self.health_check['healthy_threshold'],
}
update_health_check = False
# The health_check attribute is *not* set on newly created
# ELBs! So we have to create our own.
if not self.elb.health_check:
self.elb.health_check = HealthCheck()
for attr, desired_value in health_check_config.iteritems():
if getattr(self.elb.health_check, attr) != desired_value:
setattr(self.elb.health_check, attr, desired_value)
update_health_check = True
if update_health_check:
self.elb.configure_health_check(self.elb.health_check)
self.changed = True
def _check_attribute_support(self, attr):
return hasattr(boto.ec2.elb.attributes.LbAttributes(), attr)
def _set_cross_az_load_balancing(self):
attributes = self.elb.get_attributes()
if self.cross_az_load_balancing:
attributes.cross_zone_load_balancing.enabled = True
else:
attributes.cross_zone_load_balancing.enabled = False
self.elb_conn.modify_lb_attribute(self.name, 'CrossZoneLoadBalancing',
attributes.cross_zone_load_balancing.enabled)
def _set_connection_draining_timeout(self):
attributes = self.elb.get_attributes()
if self.connection_draining_timeout is not None:
attributes.connection_draining.enabled = True
attributes.connection_draining.timeout = self.connection_draining_timeout
self.elb_conn.modify_lb_attribute(self.name, 'ConnectionDraining', attributes.connection_draining)
else:
attributes.connection_draining.enabled = False
self.elb_conn.modify_lb_attribute(self.name, 'ConnectionDraining', attributes.connection_draining)
def _policy_name(self, policy_type):
return __file__.split('/')[-1].replace('_', '-') + '-' + policy_type
def _create_policy(self, policy_param, policy_meth, policy):
getattr(self.elb_conn, policy_meth )(policy_param, self.elb.name, policy)
def _delete_policy(self, elb_name, policy):
self.elb_conn.delete_lb_policy(elb_name, policy)
def _update_policy(self, policy_param, policy_meth, policy_attr, policy):
self._delete_policy(self.elb.name, policy)
self._create_policy(policy_param, policy_meth, policy)
def _set_listener_policy(self, listeners_dict, policy=[]):
for listener_port in listeners_dict:
if listeners_dict[listener_port].startswith('HTTP'):
self.elb_conn.set_lb_policies_of_listener(self.elb.name, listener_port, policy)
def _set_stickiness_policy(self, elb_info, listeners_dict, policy, **policy_attrs):
for p in getattr(elb_info.policies, policy_attrs['attr']):
if str(p.__dict__['policy_name']) == str(policy[0]):
if str(p.__dict__[policy_attrs['dict_key']]) != str(policy_attrs['param_value']):
self._set_listener_policy(listeners_dict)
self._update_policy(policy_attrs['param_value'], policy_attrs['method'], policy_attrs['attr'], policy[0])
self.changed = True
break
else:
self._create_policy(policy_attrs['param_value'], policy_attrs['method'], policy[0])
self.changed = True
self._set_listener_policy(listeners_dict, policy)
def select_stickiness_policy(self):
if self.stickiness:
if 'cookie' in self.stickiness and 'expiration' in self.stickiness:
self.module.fail_json(msg='\'cookie\' and \'expiration\' can not be set at the same time')
elb_info = self.elb_conn.get_all_load_balancers(self.elb.name)[0]
d = {}
for listener in elb_info.listeners:
d[listener[0]] = listener[2]
listeners_dict = d
if self.stickiness['type'] == 'loadbalancer':
policy = []
policy_type = 'LBCookieStickinessPolicyType'
if self.stickiness['enabled'] == True:
if 'expiration' not in self.stickiness:
self.module.fail_json(msg='expiration must be set when type is loadbalancer')
policy_attrs = {
'type': policy_type,
'attr': 'lb_cookie_stickiness_policies',
'method': 'create_lb_cookie_stickiness_policy',
'dict_key': 'cookie_expiration_period',
'param_value': self.stickiness['expiration']
}
policy.append(self._policy_name(policy_attrs['type']))
self._set_stickiness_policy(elb_info, listeners_dict, policy, **policy_attrs)
elif self.stickiness['enabled'] == False:
if len(elb_info.policies.lb_cookie_stickiness_policies):
if elb_info.policies.lb_cookie_stickiness_policies[0].policy_name == self._policy_name(policy_type):
self.changed = True
else:
self.changed = False
self._set_listener_policy(listeners_dict)
self._delete_policy(self.elb.name, self._policy_name(policy_type))
elif self.stickiness['type'] == 'application':
policy = []
policy_type = 'AppCookieStickinessPolicyType'
if self.stickiness['enabled'] == True:
if 'cookie' not in self.stickiness:
self.module.fail_json(msg='cookie must be set when type is application')
policy_attrs = {
'type': policy_type,
'attr': 'app_cookie_stickiness_policies',
'method': 'create_app_cookie_stickiness_policy',
'dict_key': 'cookie_name',
'param_value': self.stickiness['cookie']
}
policy.append(self._policy_name(policy_attrs['type']))
self._set_stickiness_policy(elb_info, listeners_dict, policy, **policy_attrs)
elif self.stickiness['enabled'] == False:
if len(elb_info.policies.app_cookie_stickiness_policies):
if elb_info.policies.app_cookie_stickiness_policies[0].policy_name == self._policy_name(policy_type):
self.changed = True
self._set_listener_policy(listeners_dict)
self._delete_policy(self.elb.name, self._policy_name(policy_type))
else:
self._set_listener_policy(listeners_dict)
def _get_health_check_target(self):
"""Compose target string from healthcheck parameters"""
protocol = self.health_check['ping_protocol'].upper()
path = ""
if protocol in ['HTTP', 'HTTPS'] and 'ping_path' in self.health_check:
path = self.health_check['ping_path']
return "%s:%s%s" % (protocol, self.health_check['ping_port'], path)
def main():
argument_spec = ec2_argument_spec()
argument_spec.update(dict(
state={'required': True, 'choices': ['present', 'absent']},
name={'required': True},
listeners={'default': None, 'required': False, 'type': 'list'},
purge_listeners={'default': True, 'required': False, 'type': 'bool'},
zones={'default': None, 'required': False, 'type': 'list'},
purge_zones={'default': False, 'required': False, 'type': 'bool'},
security_group_ids={'default': None, 'required': False, 'type': 'list'},
health_check={'default': None, 'required': False, 'type': 'dict'},
subnets={'default': None, 'required': False, 'type': 'list'},
purge_subnets={'default': False, 'required': False, 'type': 'bool'},
scheme={'default': 'internet-facing', 'required': False},
connection_draining_timeout={'default': None, 'required': False},
cross_az_load_balancing={'default': None, 'required': False},
stickiness={'default': None, 'required': False, 'type': 'dict'}
)
)
module = AnsibleModule(
argument_spec=argument_spec,
)
if not HAS_BOTO:
module.fail_json(msg='boto required for this module')
region, ec2_url, aws_connect_params = get_aws_connection_info(module)
if not region:
module.fail_json(msg="Region must be specified as a parameter, in EC2_REGION or AWS_REGION environment variables or in boto configuration file")
name = module.params['name']
state = module.params['state']
listeners = module.params['listeners']
purge_listeners = module.params['purge_listeners']
zones = module.params['zones']
purge_zones = module.params['purge_zones']
security_group_ids = module.params['security_group_ids']
health_check = module.params['health_check']
subnets = module.params['subnets']
purge_subnets = module.params['purge_subnets']
scheme = module.params['scheme']
connection_draining_timeout = module.params['connection_draining_timeout']
cross_az_load_balancing = module.params['cross_az_load_balancing']
stickiness = module.params['stickiness']
if state == 'present' and not listeners:
module.fail_json(msg="At least one port is required for ELB creation")
if state == 'present' and not (zones or subnets):
module.fail_json(msg="At least one availability zone or subnet is required for ELB creation")
elb_man = ElbManager(module, name, listeners, purge_listeners, zones,
purge_zones, security_group_ids, health_check,
subnets, purge_subnets, scheme,
connection_draining_timeout, cross_az_load_balancing,
stickiness,
region=region, **aws_connect_params)
# check for unsupported attributes for this version of boto
if cross_az_load_balancing and not elb_man._check_attribute_support('cross_zone_load_balancing'):
module.fail_json(msg="You must install boto >= 2.18.0 to use the cross_az_load_balancing attribute")
if connection_draining_timeout and not elb_man._check_attribute_support('connection_draining'):
module.fail_json(msg="You must install boto >= 2.28.0 to use the connection_draining_timeout attribute")
if state == 'present':
elb_man.ensure_ok()
elif state == 'absent':
elb_man.ensure_gone()
ansible_facts = {'ec2_elb': 'info'}
ec2_facts_result = dict(changed=elb_man.changed,
elb=elb_man.get_info(),
ansible_facts=ansible_facts)
module.exit_json(**ec2_facts_result)
# import module snippets
from ansible.module_utils.basic import *
from ansible.module_utils.ec2 import *
main()
| gpl-3.0 |
arista-eosplus/pyeapi | test/system/test_api_ospf.py | 1 | 9101 | #
# Copyright (c) 2016, Arista Networks, Inc.
# 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 Arista Networks 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 ARISTA NETWORKS
# 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 os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../lib'))
from random import randint
from systestlib import DutSystemTest
def clear_ospf_config(dut, pid=None):
if pid is None:
try:
pid = int(dut.get_config(params="section ospf")[0].split()[2])
dut.config(['no router ospf %d' % pid])
except IndexError:
'''No OSPF configured'''
pass
else:
dut.config(['no router ospf %d' % pid])
class TestApiOspf(DutSystemTest):
def test_get(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 1", "router-id 1.1.1.1",
"network 2.2.2.0/24 area 0", "redistribute bgp"])
ospf_response = dut.api('ospf').get()
config = dict(router_id="1.1.1.1", ospf_process_id=1,
vrf='default',
networks=[dict(netmask='24', network="2.2.2.0",
area="0.0.0.0")],
redistributions=[dict(protocol="bgp")],
shutdown=False)
self.assertEqual(ospf_response, config)
def test_get_with_vrf(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 10 vrf test", "router-id 1.1.1.2",
"network 2.2.2.0/24 area 0", "redistribute bgp"])
ospf_response = dut.api('ospf').get()
config = dict(router_id="1.1.1.2", ospf_process_id=10, vrf='test',
networks=[dict(netmask='24', network="2.2.2.0",
area="0.0.0.0")],
redistributions=[dict(protocol="bgp")],
shutdown=False)
self.assertEqual(ospf_response, config)
clear_ospf_config(dut, 10)
def test_shutdown(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 1", "network 1.1.1.1/32 area 0"])
ospf = dut.api('ospf')
response = ospf.set_shutdown()
self.assertTrue(response)
self.assertIn('shutdown', ospf.get_block("router ospf 1"))
def test_no_shutown(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 10", "network 1.1.1.0/24 area 0",
"shutdown"])
ospf = dut.api('ospf')
response = ospf.set_no_shutdown()
self.assertTrue(response)
self.assertIn('no shutdown', ospf.get_block("router ospf 10"))
def test_delete(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 10"])
ospf = dut.api("ospf")
response = ospf.delete()
self.assertTrue(response)
self.assertEqual(None, ospf.get_block("router ospf"))
def test_create_valid_id(self):
for dut in self.duts:
clear_ospf_config(dut)
pid = randint(1, 65536)
ospf = dut.api("ospf")
response = ospf.create(pid)
self.assertTrue(response)
self.assertIn("router ospf {}".format(pid), dut.get_config())
def test_create_invalid_id(self):
for dut in self.duts:
clear_ospf_config(dut)
pid = randint(70000, 100000)
with self.assertRaises(ValueError):
dut.api("ospf").create(pid)
def test_create_with_vrf(self):
for dut in self.duts:
clear_ospf_config(dut)
pid = randint(1, 65536)
ospf = dut.api("ospf")
response = ospf.create(pid, vrf='test')
self.assertTrue(response)
self.assertIn("router ospf {} vrf {}".format(pid, 'test'),
dut.get_config())
def test_configure_ospf(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 1"])
ospf = dut.api("ospf")
response = ospf.configure_ospf("router-id 1.1.1.1")
self.assertTrue(response)
self.assertIn("router-id 1.1.1.1", ospf.get_block("router ospf 1"))
def test_set_router_id(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 1"])
ospf = dut.api("ospf")
response = ospf.set_router_id(randint(1, 65536))
self.assertFalse(response)
response = ospf.set_router_id("2.2.2.2")
self.assertTrue(response)
self.assertIn("router-id 2.2.2.2", ospf.get_block("router ospf 1"))
response = ospf.set_router_id(default=True)
self.assertTrue(response)
self.assertIn("no router-id", ospf.get_block("router ospf 1"))
response = ospf.set_router_id(disable=True)
self.assertTrue(response)
self.assertIn("no router-id", ospf.get_block("router ospf 1"))
def test_add_network(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 1"])
ospf = dut.api("ospf")
response = ospf.add_network("2.2.2.0", "24", 1234)
self.assertTrue(response)
self.assertIn("network 2.2.2.0/24 area 0.0.4.210", ospf.get_block("router ospf 1"))
response = ospf.add_network("10.10.10.0", "24")
self.assertTrue(response)
self.assertIn("network 10.10.10.0/24 area 0.0.0.0", ospf.get_block("router ospf 1"))
def test_remove_network(self):
for dut in self.duts:
clear_ospf_config(dut)
ospf_config = ["router ospf 1", "network 2.2.2.0/24 area 0.0.0.0",
"network 3.3.3.1/32 area 1.1.1.1"]
dut.config(ospf_config)
ospf = dut.api("ospf")
response = ospf.remove_network("2.2.2.0", "24")
self.assertTrue(response)
response = ospf.remove_network("3.3.3.1", "32", "1.1.1.1")
self.assertTrue(response)
for config in ospf_config:
if "router ospf" not in config:
self.assertNotIn(config, ospf.get_block("router ospf 1"))
def test_add_redistribution(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 1"])
ospf = dut.api("ospf")
protos = ['bgp', 'rip', 'static', 'connected']
for proto in protos:
if randint(1, 10) % 2 == 0:
response = ospf.add_redistribution(proto, 'test')
else:
response = ospf.add_redistribution(proto)
self.assertTrue(response)
for proto in protos:
self.assertIn("redistribute {}".format(proto), ospf.get_block("router ospf 1"))
with self.assertRaises(ValueError):
ospf.add_redistribution("NOT VALID")
def test_remove_redistribution(self):
for dut in self.duts:
clear_ospf_config(dut)
dut.config(["router ospf 1", "redistribute bgp", "redistribute static route-map test"])
ospf = dut.api("ospf")
response = ospf.remove_redistribution('bgp')
self.assertTrue(response)
response = ospf.remove_redistribution('static')
self.assertTrue(response)
self.assertNotIn("redistribute", ospf.get_block("router ospf 1"))
| bsd-3-clause |
praekelt/txtalert | txtalert/apps/gateway/migrations/0002_auto__add_field_sendsms_group__add_field_pleasecallme_group.py | 1 | 4637 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# all previous data belongs to Temba Lethu Clinic
from django.contrib.auth.models import Group
group, created = Group.objects.get_or_create(name="Temba Lethu")
# Adding field 'SendSMS.group'
db.add_column('gateway_sendsms', 'group', self.gf('django.db.models.fields.related.ForeignKey')(default=group.pk, to=orm['auth.Group']), keep_default=False)
# Adding field 'PleaseCallMe.group'
db.add_column('gateway_pleasecallme', 'group', self.gf('django.db.models.fields.related.ForeignKey')(default=group.pk, related_name='gateway_pleasecallme_set', to=orm['auth.Group']), keep_default=False)
def backwards(self, orm):
# Deleting field 'SendSMS.group'
db.delete_column('gateway_sendsms', 'group_id')
# Deleting field 'PleaseCallMe.group'
db.delete_column('gateway_pleasecallme', 'group_id')
models = {
'auth.group': {
'Meta': {'object_name': 'Group'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
},
'auth.permission': {
'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
'contenttypes.contenttype': {
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
'gateway.pleasecallme': {
'Meta': {'ordering': "['created_at']", 'object_name': 'PleaseCallMe'},
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'gateway_pleasecallme_set'", 'to': "orm['auth.Group']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'message': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'recipient_msisdn': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'sender_msisdn': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'sms_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
},
'gateway.sendsms': {
'Meta': {'object_name': 'SendSMS'},
'delivery': ('django.db.models.fields.DateTimeField', [], {}),
'delivery_timestamp': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
'expiry': ('django.db.models.fields.DateTimeField', [], {}),
'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.Group']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'identifier': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
'msisdn': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
'priority': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
'receipt': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
'smstext': ('django.db.models.fields.TextField', [], {}),
'status': ('django.db.models.fields.CharField', [], {'default': "'v'", 'max_length': '1'})
}
}
complete_apps = ['gateway']
| gpl-3.0 |
M4rtinK/pyside-android | tests/QtCore/qflags_test.py | 6 | 3405 | #!/usr/bin/python
'''Test cases for QFlags'''
import unittest
from PySide.QtCore import Qt, QTemporaryFile, QFile, QIODevice, QObject
class QFlagTest(unittest.TestCase):
'''Test case for usage of flags'''
def testCallFunction(self):
f = QTemporaryFile()
self.assertTrue(f.open())
fileName = f.fileName()
f.close()
f = QFile(fileName)
self.assertEqual(f.open(QIODevice.Truncate | QIODevice.Text | QIODevice.ReadWrite), True)
om = f.openMode()
self.assertEqual(om & QIODevice.Truncate, QIODevice.Truncate)
self.assertEqual(om & QIODevice.Text, QIODevice.Text)
self.assertEqual(om & QIODevice.ReadWrite, QIODevice.ReadWrite)
self.assertTrue(om == QIODevice.Truncate | QIODevice.Text | QIODevice.ReadWrite)
f.close()
class QFlagOperatorTest(unittest.TestCase):
'''Test case for operators in QFlags'''
def testInvert(self):
'''QFlags ~ (invert) operator'''
self.assertEqual(type(~QIODevice.ReadOnly), QIODevice.OpenMode)
def testOr(self):
'''QFlags | (or) operator'''
self.assertEqual(type(QIODevice.ReadOnly | QIODevice.WriteOnly), QIODevice.OpenMode)
def testAnd(self):
'''QFlags & (and) operator'''
self.assertEqual(type(QIODevice.ReadOnly & QIODevice.WriteOnly), QIODevice.OpenMode)
def testIOr(self):
'''QFlags |= (ior) operator'''
flag = Qt.WindowFlags()
self.assertTrue(Qt.Widget == 0)
self.assertFalse(flag & Qt.Widget)
result = flag & Qt.Widget
self.assertTrue(result == 0)
flag |= Qt.WindowMinimizeButtonHint
self.assertTrue(flag & Qt.WindowMinimizeButtonHint)
def testInvertOr(self):
'''QFlags ~ (invert) operator over the result of an | (or) operator'''
self.assertEqual(type(~(Qt.ItemIsSelectable | Qt.ItemIsEditable)), Qt.ItemFlags)
def testEqual(self):
'''QFlags == operator'''
flags = Qt.Window
flags |= Qt.WindowMinimizeButtonHint
flag_type = (flags & Qt.WindowType_Mask)
self.assertEqual(flag_type, Qt.Window)
self.assertEqual(Qt.KeyboardModifiers(Qt.ControlModifier), Qt.ControlModifier)
def testOperatorBetweenFlags(self):
'''QFlags & QFlags'''
flags = Qt.NoItemFlags | Qt.ItemIsUserCheckable
newflags = Qt.NoItemFlags | Qt.ItemIsUserCheckable
self.assertTrue(flags & newflags)
def testOperatorDifferentOrder(self):
'''Different ordering of arguments'''
flags = Qt.NoItemFlags | Qt.ItemIsUserCheckable
self.assertEqual(flags | Qt.ItemIsEnabled, Qt.ItemIsEnabled | flags)
class QFlagsOnQVariant(unittest.TestCase):
def testQFlagsOnQVariant(self):
o = QObject()
o.setProperty("foo", QIODevice.ReadOnly | QIODevice.WriteOnly)
self.assertEqual(type(o.property("foo")), QIODevice.OpenMode)
class QFlagsWrongType(unittest.TestCase):
def testWrongType(self):
'''Wrong type passed to QFlags binary operators'''
self.assertRaises(TypeError, Qt.NoItemFlags | '43')
self.assertRaises(TypeError, Qt.NoItemFlags & '43')
self.assertRaises(TypeError, 'jabba' & Qt.NoItemFlags)
self.assertRaises(TypeError, 'hut' & Qt.NoItemFlags)
self.assertRaises(TypeError, Qt.NoItemFlags & QObject())
if __name__ == '__main__':
unittest.main()
| lgpl-2.1 |
Azulinho/ansible | lib/ansible/utils/module_docs_fragments/openstack.py | 133 | 3961 | # Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
class ModuleDocFragment(object):
# Standard openstack documentation fragment
DOCUMENTATION = '''
options:
cloud:
description:
- Named cloud to operate against. Provides default values for I(auth) and
I(auth_type). This parameter is not needed if I(auth) is provided or if
OpenStack OS_* environment variables are present.
required: false
auth:
description:
- Dictionary containing auth information as needed by the cloud's auth
plugin strategy. For the default I(password) plugin, this would contain
I(auth_url), I(username), I(password), I(project_name) and any
information about domains if the cloud supports them. For other plugins,
this param will need to contain whatever parameters that auth plugin
requires. This parameter is not needed if a named cloud is provided or
OpenStack OS_* environment variables are present.
required: false
auth_type:
description:
- Name of the auth plugin to use. If the cloud uses something other than
password authentication, the name of the plugin should be indicated here
and the contents of the I(auth) parameter should be updated accordingly.
required: false
default: password
region_name:
description:
- Name of the region.
required: false
wait:
description:
- Should ansible wait until the requested resource is complete.
required: false
default: "yes"
choices: ["yes", "no"]
timeout:
description:
- How long should ansible wait for the requested resource.
required: false
default: 180
api_timeout:
description:
- How long should the socket layer wait before timing out for API calls.
If this is omitted, nothing will be passed to the requests library.
required: false
default: None
validate_certs:
description:
- Whether or not SSL API requests should be verified. Before 2.3 this defaulted to True.
required: false
default: null
aliases: ['verify']
cacert:
description:
- A path to a CA Cert bundle that can be used as part of verifying
SSL API requests.
required: false
default: None
cert:
description:
- A path to a client certificate to use as part of the SSL transaction.
required: false
default: None
key:
description:
- A path to a client key to use as part of the SSL transaction.
required: false
default: None
endpoint_type:
description:
- Endpoint URL type to fetch from the service catalog.
choices: [public, internal, admin]
required: false
default: public
requirements:
- python >= 2.7
- shade
notes:
- The standard OpenStack environment variables, such as C(OS_USERNAME)
may be used instead of providing explicit values.
- Auth information is driven by os-client-config, which means that values
can come from a yaml config file in /etc/ansible/openstack.yaml,
/etc/openstack/clouds.yaml or ~/.config/openstack/clouds.yaml, then from
standard environment variables, then finally by explicit parameters in
plays. More information can be found at
U(http://docs.openstack.org/developer/os-client-config)
'''
| gpl-3.0 |
pombredanne/MOG | tools/regression_tester.py | 14 | 3537 | #!/usr/bin/env python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2013 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""Tool for checking if patch contains a regression test.
By default runs against current patch but can be set to use any gerrit review
as specified by change number (uses 'git review -d').
Idea: take tests from patch to check, and run against code from previous patch.
If new tests pass, then no regression test, if new tests fails against old code
then either
* new tests depend on new code and cannot confirm regression test is valid
(false positive)
* new tests detects the bug being fixed (detect valid regression test)
Due to the risk of false positives, the results from this need some human
interpretation.
"""
import optparse
import string
import subprocess
import sys
def run(cmd, fail_ok=False):
print "running: %s" % cmd
obj = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
shell=True)
obj.wait()
if obj.returncode != 0 and not fail_ok:
print "The above command terminated with an error."
sys.exit(obj.returncode)
return obj.stdout.read()
def main():
usage = """
Tool for checking if a patch includes a regression test.
Usage: %prog [options]"""
parser = optparse.OptionParser(usage)
parser.add_option("-r", "--review", dest="review",
help="gerrit review number to test")
(options, args) = parser.parse_args()
if options.review:
original_branch = run("git rev-parse --abbrev-ref HEAD")
run("git review -d %s" % options.review)
else:
print ("no gerrit review number specified, running on latest commit"
"on current branch.")
test_works = False
# run new tests with old code
run("git checkout HEAD^ nova")
run("git checkout HEAD nova/tests")
# identify which tests have changed
tests = run("git whatchanged --format=oneline -1 | grep \"nova/tests\" "
"| cut -f2").split()
test_list = []
for test in tests:
test_list.append(string.replace(test[0:-3], '/', '.'))
if test_list == []:
test_works = False
expect_failure = ""
else:
# run new tests, expect them to fail
expect_failure = run(("tox -epy27 %s 2>&1" % string.join(test_list)),
fail_ok=True)
if "FAILED (id=" in expect_failure:
test_works = True
# cleanup
run("git checkout HEAD nova")
if options.review:
new_branch = run("git status | head -1 | cut -d ' ' -f 4")
run("git checkout %s" % original_branch)
run("git branch -D %s" % new_branch)
print expect_failure
print ""
print "*******************************"
if test_works:
print "FOUND a regression test"
else:
print "NO regression test"
sys.exit(1)
if __name__ == "__main__":
main()
| apache-2.0 |
rghe/ansible | test/runner/lib/sanity/sanity_docs.py | 78 | 1312 | """Sanity test for documentation of sanity tests."""
from __future__ import absolute_import, print_function
import os
from lib.sanity import (
SanitySingleVersion,
SanityMessage,
SanityFailure,
SanitySuccess,
sanity_get_tests,
)
from lib.config import (
SanityConfig,
)
class SanityDocsTest(SanitySingleVersion):
"""Sanity test for documentation of sanity tests."""
# noinspection PyUnusedLocal
def test(self, args, targets): # pylint: disable=locally-disabled, unused-argument
"""
:type args: SanityConfig
:type targets: SanityTargets
:rtype: TestResult
"""
sanity_dir = 'docs/docsite/rst/dev_guide/testing/sanity'
sanity_docs = set(part[0] for part in (os.path.splitext(name) for name in os.listdir(sanity_dir)) if part[1] == '.rst')
sanity_tests = set(sanity_test.name for sanity_test in sanity_get_tests())
missing = sanity_tests - sanity_docs
results = []
results += [SanityMessage(
message='missing docs for ansible-test sanity --test %s' % r,
path=os.path.join(sanity_dir, '%s.rst' % r),
) for r in sorted(missing)]
if results:
return SanityFailure(self.name, messages=results)
return SanitySuccess(self.name)
| gpl-3.0 |
DazWorrall/ansible | hacking/report.py | 46 | 6657 | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
"""A tool to aggregate data about Ansible source and testing into a sqlite DB for reporting."""
from __future__ import (absolute_import, print_function)
import argparse
import os
import requests
import sqlite3
import sys
DATABASE_PATH = os.path.expanduser('~/.ansible/report.db')
BASE_PATH = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) + '/'
ANSIBLE_PATH = os.path.join(BASE_PATH, 'lib')
ANSIBLE_TEST_PATH = os.path.join(BASE_PATH, 'test/runner')
if ANSIBLE_PATH not in sys.path:
sys.path.insert(0, ANSIBLE_PATH)
if ANSIBLE_TEST_PATH not in sys.path:
sys.path.insert(0, ANSIBLE_TEST_PATH)
from ansible.parsing.metadata import extract_metadata
from lib.target import walk_integration_targets
def main():
os.chdir(BASE_PATH)
args = parse_args()
args.func()
def parse_args():
try:
import argcomplete
except ImportError:
argcomplete = None
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(metavar='COMMAND')
subparsers.required = True # work-around for python 3 bug which makes subparsers optional
populate = subparsers.add_parser('populate',
help='populate report database')
populate.set_defaults(func=populate_database)
query = subparsers.add_parser('query',
help='query report database')
query.set_defaults(func=query_database)
if argcomplete:
argcomplete.autocomplete(parser)
args = parser.parse_args()
return args
def query_database():
if not os.path.exists(DATABASE_PATH):
exit('error: Database not found. Did you run `report.py populate` first?')
os.execvp('sqlite3', ('sqlite3', DATABASE_PATH))
def populate_database():
populate_modules()
populate_coverage()
populate_integration_targets()
def populate_modules():
module_dir = os.path.join(BASE_PATH, 'lib/ansible/modules/')
modules_rows = []
module_statuses_rows = []
for root, dir_names, file_names in os.walk(module_dir):
for file_name in file_names:
module, extension = os.path.splitext(file_name)
if module == '__init__' or extension != '.py':
continue
if module.startswith('_'):
module = module[1:]
namespace = os.path.join(root.replace(module_dir, '')).replace('/', '.')
path = os.path.join(root, file_name)
with open(path, 'rb') as module_fd:
module_data = module_fd.read()
result = extract_metadata(module_data=module_data)
metadata = result[0]
if not metadata:
if module == 'async_wrapper':
continue
raise Exception('no metadata for: %s' % path)
modules_rows.append(dict(
module=module,
namespace=namespace,
path=path.replace(BASE_PATH, ''),
supported_by=metadata['supported_by'],
))
for status in metadata['status']:
module_statuses_rows.append(dict(
module=module,
status=status,
))
populate_data(dict(
modules=dict(
rows=modules_rows,
schema=(
('module', 'TEXT'),
('namespace', 'TEXT'),
('path', 'TEXT'),
('supported_by', 'TEXT'),
)),
module_statuses=dict(
rows=module_statuses_rows,
schema=(
('module', 'TEXT'),
('status', 'TEXT'),
)),
))
def populate_coverage():
response = requests.get('https://codecov.io/api/gh/ansible/ansible/tree/devel/?src=extension')
data = response.json()
files = data['commit']['report']['files']
coverage_rows = []
for path, data in files.items():
report = data['t']
coverage_rows.append(dict(
path=path,
coverage=float(report['c']),
lines=report['n'],
hit=report['h'],
partial=report['p'],
missed=report['m'],
))
populate_data(dict(
coverage=dict(
rows=coverage_rows,
schema=(
('path', 'TEXT'),
('coverage', 'REAL'),
('lines', 'INTEGER'),
('hit', 'INTEGER'),
('partial', 'INTEGER'),
('missed', 'INTEGER'),
)),
))
def populate_integration_targets():
targets = list(walk_integration_targets())
integration_targets_rows = [dict(
target=target.name,
type=target.type,
path=target.path,
script_path=target.script_path,
) for target in targets]
integration_target_aliases_rows = [dict(
target=target.name,
alias=alias,
) for target in targets for alias in target.aliases]
integration_target_modules_rows = [dict(
target=target.name,
module=module,
) for target in targets for module in target.modules]
populate_data(dict(
integration_targets=dict(
rows=integration_targets_rows,
schema=(
('target', 'TEXT'),
('type', 'TEXT'),
('path', 'TEXT'),
('script_path', 'TEXT'),
)),
integration_target_aliases=dict(
rows=integration_target_aliases_rows,
schema=(
('target', 'TEXT'),
('alias', 'TEXT'),
)),
integration_target_modules=dict(
rows=integration_target_modules_rows,
schema=(
('target', 'TEXT'),
('module', 'TEXT'),
)),
))
def create_table(cursor, name, columns):
schema = ', '.join('%s %s' % column for column in columns)
cursor.execute('DROP TABLE IF EXISTS %s' % name)
cursor.execute('CREATE TABLE %s (%s)' % (name, schema))
def populate_table(cursor, rows, name, columns):
create_table(cursor, name, columns)
values = ', '.join([':%s' % column[0] for column in columns])
for row in rows:
cursor.execute('INSERT INTO %s VALUES (%s)' % (name, values), row)
def populate_data(data):
connection = sqlite3.connect(DATABASE_PATH)
cursor = connection.cursor()
for table in data:
populate_table(cursor, data[table]['rows'], table, data[table]['schema'])
connection.commit()
connection.close()
if __name__ == '__main__':
main()
| gpl-3.0 |
nohe427/developer-support | arcsde-sql/python/create-sdo-geometry-golden-ratio/golden.py | 10 | 2731 | """
In Oracle 12c, using the SDO Geometry type, this script will create the
polygons from the golden ratio spiral.
Authors:
Danny B
-- original concept and code
-- added and subtracted coordinates to generate new polygons
Ashley S
-- cleared up rough spots by using phi to create perfect squares
-- translated code to use SDO Geometry instead of arcpy geometry
Tested in Python 2.7 32 bit
"""
#Change these two parameters
uin ="golden" #Table name
connection ="connectionstring" #connection, i.e. "dataowner/dataowner@instance/sid
import cx_Oracle
print("Creating connection and cursor")
db = cx_Oracle.connect(connection)
cursor = db.cursor();
print("Creating table")
cursor.execute("""
CREATE TABLE {0}(
FID INTEGER GENERATED ALWAYS AS IDENTITY START WITH 1 INCREMENT BY 1,
SHAPE SDO_GEOMETRY)
""".format(uin))
m = 100
phi0 = (1 + 5 ** 0.5) /2
feature_info = [[[0,0], [0,1*m], [1*m, 1*m], [1*m, 0]]]
count = 1
exponent = 1
print("Doing some math")
for i in range(24):
phi = (1.0/(phi0**exponent))*m
a, b = feature_info[-1][2]
a_plus = a + phi
a_minus = a - phi
b_plus = b + phi
b_minus = b - phi
if count == 1:
coord = [[a, b], [a_plus, b], [a_plus, b_minus], [a, b_minus]]
elif count == 2:
coord = [[a, b], [a, b_minus], [a_minus, b_minus], [a_minus, b]]
elif count == 3:
coord = [[a, b], [a_minus, b], [a_minus, b_plus], [a, b_plus]]
else:
coord = [[a, b], [a, b_plus], [a_plus, b_plus], [a_plus, b]]
feature_info.append(coord)
count += 1
exponent += 1
if count == 5: count = 1
print("Inserting coordinates")
for coord in feature_info:
coord2 = "{0},{1}, {2},{3}, {4},{5}, {6},{7}, {0},{1}".format(
coord[0][0], coord[0][1], coord[1][0], coord[1][1], coord[2][0],
coord[2][1], coord[3][0], coord[3][1])
sdogeometry = """SDO_GEOMETRY(2003,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,1003,1),SDO_ORDINATE_ARRAY({0}))""".format(coord2)
statement = "INSERT INTO {0} ( SHAPE ) VALUES ( {1} )".format(uin, sdogeometry)
cursor.execute(statement)
db.commit()
print("Adding to user_sdo_geom_metadata")
cursor.execute("""
INSERT INTO user_sdo_geom_metadata
(TABLE_NAME,
COLUMN_NAME,
DIMINFO,
SRID)
VALUES ('{0}', 'shape',
SDO_DIM_ARRAY( -- 600X600 grid
SDO_DIM_ELEMENT('X', 0, 200, 0.0000001),
SDO_DIM_ELEMENT('Y', 0, 200, 0.0000001)
),
NULL)
""".format(uin))
print("Making the spatial index")
cursor.execute("""CREATE INDEX {0}_spatial_idx ON {0}(SHAPE) INDEXTYPE IS MDSYS.SPATIAL_INDEX""".format(uin))
db.commit()
cursor.close()
db.close()
print("Check the table!")
| apache-2.0 |
awanga/tuna-kernel | tools/perf/util/setup.py | 2079 | 1438 | #!/usr/bin/python2
from distutils.core import setup, Extension
from os import getenv
from distutils.command.build_ext import build_ext as _build_ext
from distutils.command.install_lib import install_lib as _install_lib
class build_ext(_build_ext):
def finalize_options(self):
_build_ext.finalize_options(self)
self.build_lib = build_lib
self.build_temp = build_tmp
class install_lib(_install_lib):
def finalize_options(self):
_install_lib.finalize_options(self)
self.build_dir = build_lib
cflags = ['-fno-strict-aliasing', '-Wno-write-strings']
cflags += getenv('CFLAGS', '').split()
build_lib = getenv('PYTHON_EXTBUILD_LIB')
build_tmp = getenv('PYTHON_EXTBUILD_TMP')
libtraceevent = getenv('LIBTRACEEVENT')
liblk = getenv('LIBLK')
ext_sources = [f.strip() for f in file('util/python-ext-sources')
if len(f.strip()) > 0 and f[0] != '#']
perf = Extension('perf',
sources = ext_sources,
include_dirs = ['util/include'],
extra_compile_args = cflags,
extra_objects = [libtraceevent, liblk],
)
setup(name='perf',
version='0.1',
description='Interface with the Linux profiling infrastructure',
author='Arnaldo Carvalho de Melo',
author_email='acme@redhat.com',
license='GPLv2',
url='http://perf.wiki.kernel.org',
ext_modules=[perf],
cmdclass={'build_ext': build_ext, 'install_lib': install_lib})
| gpl-2.0 |
plotly/plotly.py | packages/python/plotly/plotly/validators/mesh3d/__init__.py | 1 | 6255 | import sys
if sys.version_info < (3, 7):
from ._zsrc import ZsrcValidator
from ._zhoverformat import ZhoverformatValidator
from ._zcalendar import ZcalendarValidator
from ._z import ZValidator
from ._ysrc import YsrcValidator
from ._yhoverformat import YhoverformatValidator
from ._ycalendar import YcalendarValidator
from ._y import YValidator
from ._xsrc import XsrcValidator
from ._xhoverformat import XhoverformatValidator
from ._xcalendar import XcalendarValidator
from ._x import XValidator
from ._visible import VisibleValidator
from ._vertexcolorsrc import VertexcolorsrcValidator
from ._vertexcolor import VertexcolorValidator
from ._uirevision import UirevisionValidator
from ._uid import UidValidator
from ._textsrc import TextsrcValidator
from ._text import TextValidator
from ._stream import StreamValidator
from ._showscale import ShowscaleValidator
from ._showlegend import ShowlegendValidator
from ._scene import SceneValidator
from ._reversescale import ReversescaleValidator
from ._opacity import OpacityValidator
from ._name import NameValidator
from ._metasrc import MetasrcValidator
from ._meta import MetaValidator
from ._lightposition import LightpositionValidator
from ._lighting import LightingValidator
from ._legendrank import LegendrankValidator
from ._legendgrouptitle import LegendgrouptitleValidator
from ._legendgroup import LegendgroupValidator
from ._ksrc import KsrcValidator
from ._k import KValidator
from ._jsrc import JsrcValidator
from ._j import JValidator
from ._isrc import IsrcValidator
from ._intensitysrc import IntensitysrcValidator
from ._intensitymode import IntensitymodeValidator
from ._intensity import IntensityValidator
from ._idssrc import IdssrcValidator
from ._ids import IdsValidator
from ._i import IValidator
from ._hovertextsrc import HovertextsrcValidator
from ._hovertext import HovertextValidator
from ._hovertemplatesrc import HovertemplatesrcValidator
from ._hovertemplate import HovertemplateValidator
from ._hoverlabel import HoverlabelValidator
from ._hoverinfosrc import HoverinfosrcValidator
from ._hoverinfo import HoverinfoValidator
from ._flatshading import FlatshadingValidator
from ._facecolorsrc import FacecolorsrcValidator
from ._facecolor import FacecolorValidator
from ._delaunayaxis import DelaunayaxisValidator
from ._customdatasrc import CustomdatasrcValidator
from ._customdata import CustomdataValidator
from ._contour import ContourValidator
from ._colorscale import ColorscaleValidator
from ._colorbar import ColorbarValidator
from ._coloraxis import ColoraxisValidator
from ._color import ColorValidator
from ._cmin import CminValidator
from ._cmid import CmidValidator
from ._cmax import CmaxValidator
from ._cauto import CautoValidator
from ._autocolorscale import AutocolorscaleValidator
from ._alphahull import AlphahullValidator
else:
from _plotly_utils.importers import relative_import
__all__, __getattr__, __dir__ = relative_import(
__name__,
[],
[
"._zsrc.ZsrcValidator",
"._zhoverformat.ZhoverformatValidator",
"._zcalendar.ZcalendarValidator",
"._z.ZValidator",
"._ysrc.YsrcValidator",
"._yhoverformat.YhoverformatValidator",
"._ycalendar.YcalendarValidator",
"._y.YValidator",
"._xsrc.XsrcValidator",
"._xhoverformat.XhoverformatValidator",
"._xcalendar.XcalendarValidator",
"._x.XValidator",
"._visible.VisibleValidator",
"._vertexcolorsrc.VertexcolorsrcValidator",
"._vertexcolor.VertexcolorValidator",
"._uirevision.UirevisionValidator",
"._uid.UidValidator",
"._textsrc.TextsrcValidator",
"._text.TextValidator",
"._stream.StreamValidator",
"._showscale.ShowscaleValidator",
"._showlegend.ShowlegendValidator",
"._scene.SceneValidator",
"._reversescale.ReversescaleValidator",
"._opacity.OpacityValidator",
"._name.NameValidator",
"._metasrc.MetasrcValidator",
"._meta.MetaValidator",
"._lightposition.LightpositionValidator",
"._lighting.LightingValidator",
"._legendrank.LegendrankValidator",
"._legendgrouptitle.LegendgrouptitleValidator",
"._legendgroup.LegendgroupValidator",
"._ksrc.KsrcValidator",
"._k.KValidator",
"._jsrc.JsrcValidator",
"._j.JValidator",
"._isrc.IsrcValidator",
"._intensitysrc.IntensitysrcValidator",
"._intensitymode.IntensitymodeValidator",
"._intensity.IntensityValidator",
"._idssrc.IdssrcValidator",
"._ids.IdsValidator",
"._i.IValidator",
"._hovertextsrc.HovertextsrcValidator",
"._hovertext.HovertextValidator",
"._hovertemplatesrc.HovertemplatesrcValidator",
"._hovertemplate.HovertemplateValidator",
"._hoverlabel.HoverlabelValidator",
"._hoverinfosrc.HoverinfosrcValidator",
"._hoverinfo.HoverinfoValidator",
"._flatshading.FlatshadingValidator",
"._facecolorsrc.FacecolorsrcValidator",
"._facecolor.FacecolorValidator",
"._delaunayaxis.DelaunayaxisValidator",
"._customdatasrc.CustomdatasrcValidator",
"._customdata.CustomdataValidator",
"._contour.ContourValidator",
"._colorscale.ColorscaleValidator",
"._colorbar.ColorbarValidator",
"._coloraxis.ColoraxisValidator",
"._color.ColorValidator",
"._cmin.CminValidator",
"._cmid.CmidValidator",
"._cmax.CmaxValidator",
"._cauto.CautoValidator",
"._autocolorscale.AutocolorscaleValidator",
"._alphahull.AlphahullValidator",
],
)
| mit |
lizardsystem/freq | freq/lizard_connector.py | 1 | 30266 | import copy
import datetime as dt
import json
import logging
from pprint import pprint # left here for debugging purposes
from time import time
from time import sleep
import urllib
import numpy as np
import django.core.exceptions
from freq import jsdatetime
try:
from django.conf import settings
USR, PWD = settings.USR, settings.PWD
except django.core.exceptions.ImproperlyConfigured:
print('WARNING: no USR and PWD found in settings. USR and PWD should have'
'been set beforehand')
USR = None
PWD = None
# When you use this script stand alone, please set your login information here:
# USR = ****** # Replace the stars with your user name.
# PWD = ****** # Replace the stars with your password.
logger = logging.getLogger(__name__)
def join_urls(*args):
return '/'.join(args)
class LizardApiError(Exception):
pass
class Base(object):
"""
Base class to connect to the different endpoints of the lizard-api.
:param data_type: endpoint of the lizard-api one wishes to connect to.
:param username: login username
:param password: login password
:param use_header: no login and password is send with the query when set
to False
:param extra_queries: In case one wishes to set default queries for a
certain data type this is the plase.
:param max_results:
"""
username = USR
password = PWD
max_results = 1000
@property
def extra_queries(self):
"""
Overwrite class to add queries
:return: dictionary with extra queries
"""
return {}
def organisation_query(self, organisation, add_query_string='location__'):
org_query = {}
if isinstance(organisation, str):
org_query.update({add_query_string + "organisation__unique_id":
organisation})
elif organisation:
org_query.update({
add_query_string + "organisation__unique_id": ','.join(
org for org in organisation)
})
if org_query:
return dict([urllib.parse.urlencode(org_query).split('=')])
else:
return {}
def __init__(self, base="https://ggmn.lizard.net", use_header=False,
data_type=None):
"""
:param base: the site one wishes to connect to. Defaults to the
Lizard ggmn production site.
"""
if data_type:
self.data_type = data_type
self.use_header = use_header
self.queries = {}
self.results = []
if base.startswith('http'):
self.base = base
else:
self.base = join_urls('https:/', base)
# without extra '/' ^^, this is added in join_urls
self.base_url = join_urls(self.base, 'api/v2', self.data_type) + '/'
def get(self, count=True, uuid=None, **queries):
"""
Query the api.
For possible queries see: https://nxt.staging.lizard.net/doc/api.html
Stores the api-response as a dict in the results attribute.
:param queries: all keyword arguments are used as queries.
:return: a dictionary of the api-response.
"""
if self.max_results:
queries.update({'page_size': self.max_results, 'format': 'json'})
queries.update(self.extra_queries)
queries.update(getattr(self, "queries", {}))
query = '?' + '&'.join(str(key) + '=' +
(('&' + str(key) + '=').join(value)
if isinstance(value, list) else str(value))
for key, value in queries.items())
url = urllib.parse.urljoin(self.base_url, str(uuid)) if uuid else \
self.base_url + query
try:
self.fetch(url)
except urllib.error.HTTPError: # TODO remove hack to prevent 420 error
self.json = {'results': [], 'count': 0}
try:
logger.debug('Number found %s : %s with URL: %s', self.data_type,
self.json.get('count', 0), url)
except (KeyError, AttributeError):
logger.debug('Got results from %s with URL: %s',
self.data_type, url)
self.parse()
return self.results
def fetch(self, url):
"""
GETs parameters from the api based on an url in a JSON format.
Stores the JSON response in the json attribute.
:param url: full query url: should be of the form:
[base_url]/api/v2/[endpoint]/?[query_key]=[query_value]&...
:return: the JSON from the response
"""
if self.use_header:
request_obj = urllib.request.Request(url, headers=self.header)
else:
request_obj = urllib.request.Request(url)
try:
with urllib.request.urlopen(request_obj) as resp:
encoding = resp.headers.get_content_charset()
encoding = encoding if encoding else 'UTF-8'
content = resp.read().decode(encoding)
self.json = json.loads(content)
except Exception:
logger.exception("got error from: %s", url)
raise
return self.json
def parse(self):
"""
Parse the json attribute and store it to the results attribute.
All pages of a query are parsed. If the max_results attribute is
exceeded an ApiError is raised.
"""
while True:
try:
if self.json['count'] > self.max_results:
raise LizardApiError(
'Too many results: {} found, while max {} are '
'accepted'.format(self.json['count'], self.max_results)
)
self.results += self.json['results']
next_url = self.json.get('next')
if next_url:
self.fetch(next_url)
else:
break
except KeyError:
self.results += [self.json]
break
except IndexError:
break
def parse_elements(self, element):
"""
Get a list of a certain element from the root of the results attribute.
:param element: the element you wish to get.
:return: A list of all elements in the root of the results attribute.
"""
self.parse()
return [x[element] for x in self.results]
@property
def header(self):
"""
The header with credentials for the api.
"""
if self.use_header:
return {
"username": self.username,
"password": self.password
}
return {}
class Organisations(Base):
"""
Makes a connection to the organisations endpoint of the lizard api.
"""
data_type = 'organisations'
def all(self, organisation=None):
"""
:return: a list of organisations belonging one has access to
(with the credentials from the header attribute)
"""
if organisation:
self.get(unique_id=organisation)
else:
self.get()
self.parse()
return self.parse_elements('unique_id')
class Locations(Base):
"""
Makes a connection to the locations endpoint of the lizard api.
"""
def __init__(self, base="https://ggmn.lizard.net", use_header=False):
self.data_type = 'locations'
self.uuids = []
super().__init__(base, use_header)
def bbox(self, south_west, north_east, organisation=None):
"""
Find all locations within a certain bounding box.
returns records within bounding box using Bounding Box format (min Lon,
min Lat, max Lon, max Lat). Also returns features with overlapping
geometry.
:param south_west: lattitude and longtitude of the south-western point
:param north_east: lattitude and longtitude of the north-eastern point
:return: a dictionary of the api-response.
"""
min_lat, min_lon = south_west
max_lat, max_lon = north_east
coords = self.commaify(min_lon, min_lat, max_lon, max_lat)
org_query = self.organisation_query(organisation, '')
self.get(in_bbox=coords, **org_query)
def distance_to_point(self, distance, lat, lon, organisation=None):
"""
Returns records with distance meters from point. Distance in meters
is converted to WGS84 degrees and thus an approximation.
:param distance: meters from point
:param lon: longtitude of point
:param lat: latitude of point
:return: a dictionary of the api-response.
"""
coords = self.commaify(lon, lat)
org_query = self.organisation_query(organisation, '')
self.get(distance=distance, point=coords, **org_query)
def commaify(self, *args):
"""
:return: a comma-seperated string of the given arguments
"""
return ','.join(str(x) for x in args)
def coord_uuid_name(self):
"""
Filters out the coordinates UUIDs and names of locations in results.
Use after a query is made.
:return: a dictionary with coordinates, UUIDs and names
"""
result = {}
for x in self.results:
if x['uuid'] not in self.uuids:
geom = x.get('geometry') or {}
result[x['uuid']] = {
'coordinates': geom.get(
'coordinates', ['','']),
'name': x['name']
}
self.uuids.append(x['uuid'])
return result
class TaskAPI(Base):
data_type = 'tasks'
def poll(self, url=None):
if url is None or not url.startswith('http'):
return
self.fetch(url)
@property
def status(self):
try:
logger.debug('Task status: %s', self.json.get("task_status"))
status = self.json.get("task_status")
if status is None:
logger.debug('Task status: NONE')
return "NONE"
return status
except AttributeError:
logger.debug('Task status: NONE')
return "NONE"
def timeseries_csv(self, organisation, extra_queries_ts):
if self.status != "SUCCESS":
raise LizardApiError('Download not ready.')
url = self.json.get("result_url")
self.fetch(url)
self.results = []
self.parse()
csv = (
[result['name'], result['uuid'],
jsdatetime.js_to_datestring(event['timestamp']), event['max']]
for result in self.results for event in result['events']
)
loc = Locations(use_header=self.use_header)
extra_queries = {
key if not key.startswith("location__") else key[10:]: value
for key, value in extra_queries_ts.items()
}
org_query = self.organisation_query(organisation, '')
extra_queries.update(**org_query)
loc.get(**extra_queries)
coords = loc.coord_uuid_name()
headers = (
[
r['uuid'], r['name'], coords[r['location']['uuid']]['name'],
coords[r['location']['uuid']]['coordinates'][0],
coords[r['location']['uuid']]['coordinates'][1]
]
for r in self.results
)
return headers, csv
class TimeSeries(Base):
"""
Makes a connection to the timeseries endpoint of the lizard api.
"""
def __init__(self, base="https://ggmn.lizard.net", use_header=False):
self.data_type = 'timeseries'
self.uuids = []
self.statistic = None
super().__init__(base, use_header)
def location_name(self, name, organisation=None):
"""
Returns time series metadata for a location by name.
:param name: name of a location
:return: a dictionary of with nested location, aquo quantities and
events.
"""
org_query = self.organisation_query(organisation)
return self.get(location__name=name, **org_query)
def location_uuid(self, loc_uuid, start='0001-01-01T00:00:00Z', end=None,
organisation=None):
"""
Returns time series for a location by location-UUID.
:param loc_uuid: name of a location
:param start: start timestamp in ISO 8601 format
:param end: end timestamp in ISO 8601 format, defaults to now
:return: a dictionary of with nested location, aquo quantities and
events.
"""
org_query = self.organisation_query(organisation)
self.get(location__uuid=loc_uuid, **org_query)
timeseries_uuids = [x['uuid'] for x in self.results]
self.results = []
for ts_uuid in timeseries_uuids:
ts = TimeSeries(self.base, use_header=self.use_header)
ts.uuid(ts_uuid, start, end, organisation)
self.results += ts.results
return self.results
def uuid(self, ts_uuid, start='0001-01-01T00:00:00Z', end=None,
organisation=None):
"""
Returns time series for a timeseries by timeseries-UUID.
:param ts_uuid: uuid of a timeseries
:param start: start timestamp in ISO 8601 format
:param end: end timestamp in ISO 8601 format
:return: a dictionary of with nested location, aquo quantities and
events.
"""
if not end:
end = jsdatetime.now_iso()
old_base_url = self.base_url
self.base_url += ts_uuid + "/"
org_query = self.organisation_query(organisation)
self.get(start=start, end=end, **org_query)
self.base_url = old_base_url
def start_csv_task(self, start='0001-01-01T00:00:00Z', end=None,
organisation=None):
if not end:
end = jsdatetime.now_iso()
if isinstance(start, int):
start -= 10000
if isinstance(end, int):
end += 10000
org_query = self.organisation_query(organisation)
poll_url = self.get(
start=start,
end=end,
async="true",
format="json",
**org_query
)[0]['url']
logger.debug("Async task url %s", poll_url)
return poll_url, self.extra_queries
def bbox(self, south_west, north_east, statistic=None,
start='0001-01-01T00:00:00Z', end=None, organisation=None):
"""
Find all timeseries within a certain bounding box.
Returns records within bounding box using Bounding Box format (min Lon,
min Lat, max Lon, max Lat). Also returns features with overlapping
geometry.
:param south_west: lattitude and longtitude of the south-western point
:param north_east: lattitude and longtitude of the north-eastern point
:param start_: start timestamp in ISO 8601 format
:param end: end timestamp in ISO 8601 format
:return: a dictionary of the api-response.
"""
if not end:
end = jsdatetime.now_iso()
if isinstance(start, int):
start -= 10000
if isinstance(end, int):
end += 10000
min_lat, min_lon = south_west
max_lat, max_lon = north_east
polygon_coordinates = [
[min_lon, min_lat],
[min_lon, max_lat],
[max_lon, max_lat],
[max_lon, min_lat],
[min_lon, min_lat],
]
points = [' '.join([str(x), str(y)]) for x, y in polygon_coordinates]
geom_within = {'a': 'POLYGON ((' + ', '.join(points) + '))'}
geom_within = urllib.parse.urlencode(geom_within).split('=')[1]
org_query = self.organisation_query(organisation)
self.statistic = statistic
if statistic == 'mean':
statistic = ['count', 'sum']
elif not statistic:
statistic = ['min', 'max', 'count', 'sum']
self.statistic = None
elif statistic == 'range (max - min)':
statistic = ['min', 'max']
elif statistic == 'difference (last - first)':
statistic = 'count'
elif statistic == 'difference (mean last - first year)':
year = dt.timedelta(days=366)
first_end = jsdatetime.datetime_to_js(jsdatetime.js_to_datetime(start) + year)
last_start = jsdatetime.datetime_to_js(jsdatetime.js_to_datetime(end) - year)
self.get(
start=start,
end=first_end,
min_points=1,
fields=['count', 'sum'],
location__geom_within=geom_within,
**org_query
)
first_year = {}
for r in self.results:
try:
first_year[r['location']['uuid']] = {
'first_value_timestamp': r['first_value_timestamp'],
'mean': r['events'][0]['sum'] / r['events'][0]['count']
}
except IndexError:
first_year[r['location']['uuid']] = {
'first_value_timestamp': np.nan,
'mean': np.nan
}
self.results = []
self.get(
start=last_start,
end=end,
min_points=1,
fields=['count', 'sum'],
location__geom_within=geom_within,
**org_query
)
for r in self.results:
try:
r['events'][0]['difference (mean last - first year)'] = \
r['events'][0]['sum'] / r['events'][0]['count'] - \
first_year[r['location']['uuid']]['mean']
r['first_value_timestamp'] = \
first_year[
r['location']['uuid']]['first_value_timestamp']
except IndexError:
r['events'] = [{
'difference (mean last - first year)': np.nan}]
r['first_value_timestamp'] = np.nan
r['last_value_timestamp'] = np.nan
return
self.get(
start=start,
end=end,
min_points=1,
fields=statistic,
location__geom_within=geom_within,
**org_query
)
def ts_to_dict(self, statistic=None, values=None,
start_date=None, end_date=None, date_time='js'):
"""
:param date_time: default: js. Several options:
'js': javascript integer datetime representation
'dt': python datetime object
'str': date in date format (dutch representation)
"""
if len(self.results) == 0:
self.response = {}
return self.response
if values:
values = values
else:
values = {}
if not statistic and self.statistic:
statistic = self.statistic
# np array with cols: 'min', 'max', 'sum', 'count', 'first', 'last'
if not statistic:
stats1 = ('min', 'max', 'sum', 'count')
stats2 = (
(0, 'min'),
(1, 'max'),
(2, 'mean'),
(3, 'range (max - min)'),
(4, 'difference (last - first)'),
(5, 'difference (mean last - first year)')
)
start_index = 6
else:
if statistic == 'mean':
stats1 = ('sum', 'count')
elif statistic == 'range (max - min)':
stats1 = ('min', 'max')
else:
stats1 = (statistic, )
stats2 = ((0, statistic), )
start_index = int(statistic == 'mean') + 1
ts = []
for result in self.results:
try:
timestamps = [int(result['first_value_timestamp']),
int(result['last_value_timestamp'])]
except (ValueError, TypeError):
timestamps = [np.nan, np.nan]
except TypeError:
# int(None)
timestamps = [np.nan, np.nan]
if not len(result['events']):
y = 2 if statistic == 'difference (mean last - first year)' \
else 0
ts.append(
[np.nan for _ in range(len(stats1) + y)] + timestamps)
else:
ts.append([float(result['events'][0][s]) for s in stats1] +
timestamps)
npts = np.array(ts)
if statistic:
if statistic == 'mean':
stat = (npts[:, 0] / npts[:, 1]).reshape(-1, 1)
elif statistic == 'range (max - min)':
stat = (npts[:, 1] - npts[:, 0]).reshape(-1, 1)
elif statistic == 'difference (last - first)':
stat = (npts[:, 1] - npts[:, 0]).reshape(-1, 1)
else:
stat = npts[:, 0].reshape(-1, 1)
npts_calculated = np.hstack(
(stat, npts[:, slice(start_index, -1)]))
else:
npts_calculated = np.hstack((
npts[:, 0:2],
(npts[:, 2] / npts[:, 3]).reshape(-1, 1),
(npts[:, 1] - npts[:, 0]).reshape(-1, 1),
npts[:, 4:]
))
for i, row in enumerate(npts_calculated):
location_uuid = self.results[i]['location']['uuid']
loc_dict = values.get(location_uuid, {})
loc_dict.update({stat: 'NaN' if np.isnan(row[i]) else row[i]
for i, stat in stats2})
loc_dict['timeseries_uuid'] = self.results[i]['uuid']
values[location_uuid] = loc_dict
npts_min = np.nanmin(npts_calculated, 0)
npts_max = np.nanmax(npts_calculated, 0)
extremes = {
stat: {
'min': npts_min[i] if not np.isnan(npts_min[i]) else 0,
'max': npts_max[i] if not np.isnan(npts_max[i]) else 0
} for i, stat in stats2
}
dt_conversion = {
'js': lambda x: x,
'dt': jsdatetime.js_to_datetime,
'str': jsdatetime.js_to_datestring
}[date_time]
if statistic != 'difference (mean last - first year)':
start = dt_conversion(max(jsdatetime.round_js_to_date(start_date),
jsdatetime.round_js_to_date(npts_min[-2])))
end = dt_conversion(min(jsdatetime.round_js_to_date(end_date),
jsdatetime.round_js_to_date(npts_max[-1])))
else:
start = dt_conversion(jsdatetime.round_js_to_date(start_date))
end = dt_conversion(jsdatetime.round_js_to_date(end_date))
self.response = {
"extremes": extremes,
"dates": {
"start": start,
"end": end
},
"values": values
}
return self.response
class GroundwaterLocations(Locations):
"""
Makes a connection to the locations endpoint of the lizard api.
Only selects GroundwaterStations.
"""
@property
def extra_queries(self):
return {
"object_type__model": 'filter'
}
class GroundwaterTimeSeries(TimeSeries):
"""
Makes a connection to the timeseries endpoint of the lizard api.
Only selects GroundwaterStations.
"""
@property
def extra_queries(self):
return {
"location__object_type__model": 'filter'
}
class GroundwaterTimeSeriesAndLocations(object):
def __init__(self):
self.locs = GroundwaterLocations()
self.ts = GroundwaterTimeSeries()
self.values = {}
def bbox(self, south_west, north_east, start='0001-01-01T00:00:00Z',
end=None, groundwater_type="GWmMSL"):
if not end:
self.end = jsdatetime.now_iso()
else:
self.end = end
self.start = start
self.ts.queries = {"name": groundwater_type}
self.locs.bbox(south_west, north_east)
self.ts.bbox(south_west=south_west, north_east=north_east,
start=start, end=self.end)
def locs_to_dict(self, values=None):
if values:
self.values = values
for loc in self.locs.results:
self.values.get(loc['uuid'], {}).update({
'coordinates': loc['geometry']['coordinates'],
'name': loc['name']
})
self.response = self.values
def results_to_dict(self):
self.locs_to_dict()
self.ts.ts_to_dict(values=self.values)
return self.ts.response
class RasterFeatureInfo(Base):
data_type = 'raster-aggregates'
def wms(self, lat, lng, layername, extra_params=None):
if 'igrac' in layername:
self.base_url = "https://raster.lizard.net/wms"
lat_f = float(lat)
lng_f = float(lng)
self.get(
request="getfeatureinfo",
layers=layername,
width=1,
height=1,
i=0,
j=0,
srs="epsg:4326",
bbox=','.join(
[lng, lat, str(lng_f+0.00001), str(lat_f+0.00001)]),
index="world"
)
try:
self.results = {"data": [self.results[1]]}
except IndexError:
self.results = {"data": ['null']}
elif layername == 'aquifers':
self.base_url = "https://ggis.un-igrac.org/geoserver/tbamap2015/wms"
extra_params.update({
'request': 'GetFeatureInfo',
'service': 'WMS',
'srs': 'EPSG:4326',
'info_format': 'application/json'
})
self.get(**extra_params)
self.results = {
'data': self.results['features'][0]['properties']['aq_name']}
else:
self.get(
agg='curve',
geom='POINT(' + lng + '+' + lat + ')',
srs='EPSG:4326',
raster_names=layername,
count=False
)
return self.results
def parse(self):
self.results = self.json
class RasterLimits(Base):
data_type = 'wms'
def __init__(self, base="https://raster.lizard.net",
use_header=False):
super().__init__(base, use_header)
self.base_url = join_urls(base, self.data_type)
self.max_results = None
def get_limits(self, layername, bbox):
try:
return self.get(
request='getlimits',
layers=layername,
bbox=bbox,
width=16,
height=16,
srs='epsg:4326'
)
except urllib.error.HTTPError:
return [[-1000, 1000]]
def parse(self):
self.results = self.json
class Filters(Base):
data_type = "filters"
def from_timeseries_uuid(self, uuid):
# We know the timeseries uuid. Timeseries are connected to locations
# and the locations are connected to the filters that contain the
# relevant information.
# first get the location uuid from the timeseries.
ts = Base(use_header=self.use_header, data_type='timeseries')
location_data = ts.get(uuid=uuid)[0]['location']
location_uuid = location_data.get('uuid')
# surface_level is stored in the extra_metadata field of a location
try:
surface_level = str(location_data.get("extra_metadata")
.get("surface_level")) + " (m)"
except AttributeError:
surface_level = None
# next get the location for the filter id
location = Base(use_header=self.use_header, data_type='locations')
try:
filter_id = location.get(uuid=location_uuid)[0].get(
'object').get('id')
except TypeError:
# the location doesn't connect to a filter, return empty
return {}
if filter_id:
# next get and return the filter metadata
gw_filter = Base(use_header=self.use_header, data_type='filters')
result = gw_filter.get(uuid=filter_id)[0]
result.update({
"surface_level": surface_level
})
return result
return {}
class Users(Base):
data_type = "users"
def get_organisations(self, username):
self.get(username=username)
if len(self.results) > 1 or len(self.results) == 0:
if len(self.results):
raise LizardApiError("Username is not unique")
raise LizardApiError("Username not found")
organisations_url = self.results[0].get("organisations_url")
organisations = {
org['name']: org['unique_id'] for org in
self.fetch(organisations_url)
}
logger.debug('Found %d organisations for url: %s', len(organisations),
organisations_url)
if settings.DEFAULT_ORGANISATION_NAME in organisations.keys():
default_org = [(
settings.DEFAULT_ORGANISATION_NAME,
organisations[settings.DEFAULT_ORGANISATION_NAME])
]
del organisations[settings.DEFAULT_ORGANISATION_NAME]
return default_org + sorted(organisations.items())
return sorted(organisations.items())
if __name__ == '__main__':
end = "1452470400000"
start = "-2208988800000"
start_time = time()
GWinfo = GroundwaterTimeSeriesAndLocations()
GWinfo.bbox(south_west=[-65.80277639340238, -223.9453125], north_east=[
81.46626086056541, 187.3828125], start=start, end=end)
x = GWinfo.results_to_dict()
print(time() - start_time)
pprint(x)
| gpl-3.0 |
heyavery/lopenr | venv/lib/python2.7/site-packages/django/contrib/gis/db/models/aggregates.py | 414 | 2395 | from django.contrib.gis.db.models.fields import ExtentField
from django.db.models.aggregates import Aggregate
__all__ = ['Collect', 'Extent', 'Extent3D', 'MakeLine', 'Union']
class GeoAggregate(Aggregate):
function = None
is_extent = False
def as_sql(self, compiler, connection):
# this will be called again in parent, but it's needed now - before
# we get the spatial_aggregate_name
connection.ops.check_expression_support(self)
self.function = connection.ops.spatial_aggregate_name(self.name)
return super(GeoAggregate, self).as_sql(compiler, connection)
def as_oracle(self, compiler, connection):
if not hasattr(self, 'tolerance'):
self.tolerance = 0.05
self.extra['tolerance'] = self.tolerance
if not self.is_extent:
self.template = '%(function)s(SDOAGGRTYPE(%(expressions)s,%(tolerance)s))'
return self.as_sql(compiler, connection)
def resolve_expression(self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False):
c = super(GeoAggregate, self).resolve_expression(query, allow_joins, reuse, summarize, for_save)
for expr in c.get_source_expressions():
if not hasattr(expr.field, 'geom_type'):
raise ValueError('Geospatial aggregates only allowed on geometry fields.')
return c
def convert_value(self, value, expression, connection, context):
return connection.ops.convert_geom(value, self.output_field)
class Collect(GeoAggregate):
name = 'Collect'
class Extent(GeoAggregate):
name = 'Extent'
is_extent = '2D'
def __init__(self, expression, **extra):
super(Extent, self).__init__(expression, output_field=ExtentField(), **extra)
def convert_value(self, value, expression, connection, context):
return connection.ops.convert_extent(value, context.get('transformed_srid'))
class Extent3D(GeoAggregate):
name = 'Extent3D'
is_extent = '3D'
def __init__(self, expression, **extra):
super(Extent3D, self).__init__(expression, output_field=ExtentField(), **extra)
def convert_value(self, value, expression, connection, context):
return connection.ops.convert_extent3d(value, context.get('transformed_srid'))
class MakeLine(GeoAggregate):
name = 'MakeLine'
class Union(GeoAggregate):
name = 'Union'
| mit |
steventimberman/masterDebater | env/lib/python2.7/site-packages/django/db/backends/base/operations.py | 44 | 23686 | import datetime
import decimal
import warnings
from importlib import import_module
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.backends import utils
from django.utils import six, timezone
from django.utils.dateparse import parse_duration
from django.utils.deprecation import RemovedInDjango20Warning
from django.utils.encoding import force_text
class BaseDatabaseOperations(object):
"""
This class encapsulates all backend-specific differences, such as the way
a backend performs ordering or calculates the ID of a recently-inserted
row.
"""
compiler_module = "django.db.models.sql.compiler"
# Integer field safe ranges by `internal_type` as documented
# in docs/ref/models/fields.txt.
integer_field_ranges = {
'SmallIntegerField': (-32768, 32767),
'IntegerField': (-2147483648, 2147483647),
'BigIntegerField': (-9223372036854775808, 9223372036854775807),
'PositiveSmallIntegerField': (0, 32767),
'PositiveIntegerField': (0, 2147483647),
}
set_operators = {
'union': 'UNION',
'intersection': 'INTERSECT',
'difference': 'EXCEPT',
}
def __init__(self, connection):
self.connection = connection
self._cache = None
def autoinc_sql(self, table, column):
"""
Returns any SQL needed to support auto-incrementing primary keys, or
None if no SQL is necessary.
This SQL is executed when a table is created.
"""
return None
def bulk_batch_size(self, fields, objs):
"""
Returns the maximum allowed batch size for the backend. The fields
are the fields going to be inserted in the batch, the objs contains
all the objects to be inserted.
"""
return len(objs)
def cache_key_culling_sql(self):
"""
Returns an SQL query that retrieves the first cache key greater than the
n smallest.
This is used by the 'db' cache backend to determine where to start
culling.
"""
return "SELECT cache_key FROM %s ORDER BY cache_key LIMIT 1 OFFSET %%s"
def unification_cast_sql(self, output_field):
"""
Given a field instance, returns the SQL necessary to cast the result of
a union to that type. Note that the resulting string should contain a
'%s' placeholder for the expression being cast.
"""
return '%s'
def date_extract_sql(self, lookup_type, field_name):
"""
Given a lookup_type of 'year', 'month' or 'day', returns the SQL that
extracts a value from the given date field field_name.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a date_extract_sql() method')
def date_interval_sql(self, timedelta):
"""
Implements the date interval functionality for expressions
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a date_interval_sql() method')
def date_trunc_sql(self, lookup_type, field_name):
"""
Given a lookup_type of 'year', 'month' or 'day', returns the SQL that
truncates the given date field field_name to a date object with only
the given specificity.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a datetrunc_sql() method')
def datetime_cast_date_sql(self, field_name, tzname):
"""
Returns the SQL necessary to cast a datetime value to date value.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a datetime_cast_date() method')
def datetime_cast_time_sql(self, field_name, tzname):
"""
Returns the SQL necessary to cast a datetime value to time value.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a datetime_cast_time_sql() method')
def datetime_extract_sql(self, lookup_type, field_name, tzname):
"""
Given a lookup_type of 'year', 'month', 'day', 'hour', 'minute' or
'second', returns the SQL that extracts a value from the given
datetime field field_name, and a tuple of parameters.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a datetime_extract_sql() method')
def datetime_trunc_sql(self, lookup_type, field_name, tzname):
"""
Given a lookup_type of 'year', 'month', 'day', 'hour', 'minute' or
'second', returns the SQL that truncates the given datetime field
field_name to a datetime object with only the given specificity, and
a tuple of parameters.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a datetime_trunk_sql() method')
def time_trunc_sql(self, lookup_type, field_name):
"""
Given a lookup_type of 'hour', 'minute' or 'second', returns the SQL
that truncates the given time field field_name to a time object with
only the given specificity.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a time_trunc_sql() method')
def time_extract_sql(self, lookup_type, field_name):
"""
Given a lookup_type of 'hour', 'minute' or 'second', returns the SQL
that extracts a value from the given time field field_name.
"""
return self.date_extract_sql(lookup_type, field_name)
def deferrable_sql(self):
"""
Returns the SQL necessary to make a constraint "initially deferred"
during a CREATE TABLE statement.
"""
return ''
def distinct_sql(self, fields):
"""
Returns an SQL DISTINCT clause which removes duplicate rows from the
result set. If any fields are given, only the given fields are being
checked for duplicates.
"""
if fields:
raise NotImplementedError('DISTINCT ON fields is not supported by this database backend')
else:
return 'DISTINCT'
def fetch_returned_insert_id(self, cursor):
"""
Given a cursor object that has just performed an INSERT...RETURNING
statement into a table that has an auto-incrementing ID, returns the
newly created ID.
"""
return cursor.fetchone()[0]
def field_cast_sql(self, db_type, internal_type):
"""
Given a column type (e.g. 'BLOB', 'VARCHAR'), and an internal type
(e.g. 'GenericIPAddressField'), returns the SQL necessary to cast it
before using it in a WHERE statement. Note that the resulting string
should contain a '%s' placeholder for the column being searched against.
"""
return '%s'
def force_no_ordering(self):
"""
Returns a list used in the "ORDER BY" clause to force no ordering at
all. Returning an empty list means that nothing will be included in the
ordering.
"""
return []
def for_update_sql(self, nowait=False, skip_locked=False):
"""
Returns the FOR UPDATE SQL clause to lock rows for an update operation.
"""
if nowait:
return 'FOR UPDATE NOWAIT'
elif skip_locked:
return 'FOR UPDATE SKIP LOCKED'
else:
return 'FOR UPDATE'
def fulltext_search_sql(self, field_name):
"""
Returns the SQL WHERE clause to use in order to perform a full-text
search of the given field_name. Note that the resulting string should
contain a '%s' placeholder for the value being searched against.
"""
# RemovedInDjango20Warning
raise NotImplementedError('Full-text search is not implemented for this database backend')
def last_executed_query(self, cursor, sql, params):
"""
Returns a string of the query last executed by the given cursor, with
placeholders replaced with actual values.
`sql` is the raw query containing placeholders, and `params` is the
sequence of parameters. These are used by default, but this method
exists for database backends to provide a better implementation
according to their own quoting schemes.
"""
# Convert params to contain Unicode values.
def to_unicode(s):
return force_text(s, strings_only=True, errors='replace')
if isinstance(params, (list, tuple)):
u_params = tuple(to_unicode(val) for val in params)
elif params is None:
u_params = ()
else:
u_params = {to_unicode(k): to_unicode(v) for k, v in params.items()}
return six.text_type("QUERY = %r - PARAMS = %r") % (sql, u_params)
def last_insert_id(self, cursor, table_name, pk_name):
"""
Given a cursor object that has just performed an INSERT statement into
a table that has an auto-incrementing ID, returns the newly created ID.
This method also receives the table name and the name of the primary-key
column.
"""
return cursor.lastrowid
def lookup_cast(self, lookup_type, internal_type=None):
"""
Returns the string to use in a query when performing lookups
("contains", "like", etc.). The resulting string should contain a '%s'
placeholder for the column being searched against.
"""
return "%s"
def max_in_list_size(self):
"""
Returns the maximum number of items that can be passed in a single 'IN'
list condition, or None if the backend does not impose a limit.
"""
return None
def max_name_length(self):
"""
Returns the maximum length of table and column names, or None if there
is no limit.
"""
return None
def no_limit_value(self):
"""
Returns the value to use for the LIMIT when we are wanting "LIMIT
infinity". Returns None if the limit clause can be omitted in this case.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a no_limit_value() method')
def pk_default_value(self):
"""
Returns the value to use during an INSERT statement to specify that
the field should use its default value.
"""
return 'DEFAULT'
def prepare_sql_script(self, sql):
"""
Takes an SQL script that may contain multiple lines and returns a list
of statements to feed to successive cursor.execute() calls.
Since few databases are able to process raw SQL scripts in a single
cursor.execute() call and PEP 249 doesn't talk about this use case,
the default implementation is conservative.
"""
try:
import sqlparse
except ImportError:
raise ImproperlyConfigured(
"sqlparse is required if you don't split your SQL "
"statements manually."
)
else:
return [sqlparse.format(statement, strip_comments=True)
for statement in sqlparse.split(sql) if statement]
def process_clob(self, value):
"""
Returns the value of a CLOB column, for backends that return a locator
object that requires additional processing.
"""
return value
def return_insert_id(self):
"""
For backends that support returning the last insert ID as part
of an insert query, this method returns the SQL and params to
append to the INSERT query. The returned fragment should
contain a format string to hold the appropriate column.
"""
pass
def compiler(self, compiler_name):
"""
Returns the SQLCompiler class corresponding to the given name,
in the namespace corresponding to the `compiler_module` attribute
on this backend.
"""
if self._cache is None:
self._cache = import_module(self.compiler_module)
return getattr(self._cache, compiler_name)
def quote_name(self, name):
"""
Returns a quoted version of the given table, index or column name. Does
not quote the given name if it's already been quoted.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a quote_name() method')
def random_function_sql(self):
"""
Returns an SQL expression that returns a random value.
"""
return 'RANDOM()'
def regex_lookup(self, lookup_type):
"""
Returns the string to use in a query when performing regular expression
lookups (using "regex" or "iregex"). The resulting string should
contain a '%s' placeholder for the column being searched against.
If the feature is not supported (or part of it is not supported), a
NotImplementedError exception can be raised.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a regex_lookup() method')
def savepoint_create_sql(self, sid):
"""
Returns the SQL for starting a new savepoint. Only required if the
"uses_savepoints" feature is True. The "sid" parameter is a string
for the savepoint id.
"""
return "SAVEPOINT %s" % self.quote_name(sid)
def savepoint_commit_sql(self, sid):
"""
Returns the SQL for committing the given savepoint.
"""
return "RELEASE SAVEPOINT %s" % self.quote_name(sid)
def savepoint_rollback_sql(self, sid):
"""
Returns the SQL for rolling back the given savepoint.
"""
return "ROLLBACK TO SAVEPOINT %s" % self.quote_name(sid)
def set_time_zone_sql(self):
"""
Returns the SQL that will set the connection's time zone.
Returns '' if the backend doesn't support time zones.
"""
return ''
def sql_flush(self, style, tables, sequences, allow_cascade=False):
"""
Returns a list of SQL statements required to remove all data from
the given database tables (without actually removing the tables
themselves).
The returned value also includes SQL statements required to reset DB
sequences passed in :param sequences:.
The `style` argument is a Style object as returned by either
color_style() or no_style() in django.core.management.color.
The `allow_cascade` argument determines whether truncation may cascade
to tables with foreign keys pointing the tables being truncated.
PostgreSQL requires a cascade even if these tables are empty.
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations must provide an sql_flush() method')
def sequence_reset_by_name_sql(self, style, sequences):
"""
Returns a list of the SQL statements required to reset sequences
passed in :param sequences:.
The `style` argument is a Style object as returned by either
color_style() or no_style() in django.core.management.color.
"""
return []
def sequence_reset_sql(self, style, model_list):
"""
Returns a list of the SQL statements required to reset sequences for
the given models.
The `style` argument is a Style object as returned by either
color_style() or no_style() in django.core.management.color.
"""
return [] # No sequence reset required by default.
def start_transaction_sql(self):
"""
Returns the SQL statement required to start a transaction.
"""
return "BEGIN;"
def end_transaction_sql(self, success=True):
"""
Returns the SQL statement required to end a transaction.
"""
if not success:
return "ROLLBACK;"
return "COMMIT;"
def tablespace_sql(self, tablespace, inline=False):
"""
Returns the SQL that will be used in a query to define the tablespace.
Returns '' if the backend doesn't support tablespaces.
If inline is True, the SQL is appended to a row; otherwise it's appended
to the entire CREATE TABLE or CREATE INDEX statement.
"""
return ''
def prep_for_like_query(self, x):
"""Prepares a value for use in a LIKE query."""
return force_text(x).replace("\\", "\\\\").replace("%", r"\%").replace("_", r"\_")
# Same as prep_for_like_query(), but called for "iexact" matches, which
# need not necessarily be implemented using "LIKE" in the backend.
prep_for_iexact_query = prep_for_like_query
def validate_autopk_value(self, value):
"""
Certain backends do not accept some values for "serial" fields
(for example zero in MySQL). This method will raise a ValueError
if the value is invalid, otherwise returns validated value.
"""
return value
def adapt_unknown_value(self, value):
"""
Transforms a value to something compatible with the backend driver.
This method only depends on the type of the value. It's designed for
cases where the target type isn't known, such as .raw() SQL queries.
As a consequence it may not work perfectly in all circumstances.
"""
if isinstance(value, datetime.datetime): # must be before date
return self.adapt_datetimefield_value(value)
elif isinstance(value, datetime.date):
return self.adapt_datefield_value(value)
elif isinstance(value, datetime.time):
return self.adapt_timefield_value(value)
elif isinstance(value, decimal.Decimal):
return self.adapt_decimalfield_value(value)
else:
return value
def adapt_datefield_value(self, value):
"""
Transforms a date value to an object compatible with what is expected
by the backend driver for date columns.
"""
if value is None:
return None
return six.text_type(value)
def adapt_datetimefield_value(self, value):
"""
Transforms a datetime value to an object compatible with what is expected
by the backend driver for datetime columns.
"""
if value is None:
return None
return six.text_type(value)
def adapt_timefield_value(self, value):
"""
Transforms a time value to an object compatible with what is expected
by the backend driver for time columns.
"""
if value is None:
return None
if timezone.is_aware(value):
raise ValueError("Django does not support timezone-aware times.")
return six.text_type(value)
def adapt_decimalfield_value(self, value, max_digits=None, decimal_places=None):
"""
Transforms a decimal.Decimal value to an object compatible with what is
expected by the backend driver for decimal (numeric) columns.
"""
return utils.format_number(value, max_digits, decimal_places)
def adapt_ipaddressfield_value(self, value):
"""
Transforms a string representation of an IP address into the expected
type for the backend driver.
"""
return value or None
def year_lookup_bounds_for_date_field(self, value):
"""
Returns a two-elements list with the lower and upper bound to be used
with a BETWEEN operator to query a DateField value using a year
lookup.
`value` is an int, containing the looked-up year.
"""
first = datetime.date(value, 1, 1)
second = datetime.date(value, 12, 31)
first = self.adapt_datefield_value(first)
second = self.adapt_datefield_value(second)
return [first, second]
def year_lookup_bounds_for_datetime_field(self, value):
"""
Returns a two-elements list with the lower and upper bound to be used
with a BETWEEN operator to query a DateTimeField value using a year
lookup.
`value` is an int, containing the looked-up year.
"""
first = datetime.datetime(value, 1, 1)
second = datetime.datetime(value, 12, 31, 23, 59, 59, 999999)
if settings.USE_TZ:
tz = timezone.get_current_timezone()
first = timezone.make_aware(first, tz)
second = timezone.make_aware(second, tz)
first = self.adapt_datetimefield_value(first)
second = self.adapt_datetimefield_value(second)
return [first, second]
def get_db_converters(self, expression):
"""
Get a list of functions needed to convert field data.
Some field types on some backends do not provide data in the correct
format, this is the hook for converter functions.
"""
return []
def convert_durationfield_value(self, value, expression, connection, context):
if value is not None:
value = str(decimal.Decimal(value) / decimal.Decimal(1000000))
value = parse_duration(value)
return value
def check_aggregate_support(self, aggregate_func):
warnings.warn(
"check_aggregate_support has been deprecated. Use "
"check_expression_support instead.",
RemovedInDjango20Warning, stacklevel=2)
return self.check_expression_support(aggregate_func)
def check_expression_support(self, expression):
"""
Check that the backend supports the provided expression.
This is used on specific backends to rule out known expressions
that have problematic or nonexistent implementations. If the
expression has a known problem, the backend should raise
NotImplementedError.
"""
pass
def combine_expression(self, connector, sub_expressions):
"""Combine a list of subexpressions into a single expression, using
the provided connecting operator. This is required because operators
can vary between backends (e.g., Oracle with %% and &) and between
subexpression types (e.g., date expressions)
"""
conn = ' %s ' % connector
return conn.join(sub_expressions)
def combine_duration_expression(self, connector, sub_expressions):
return self.combine_expression(connector, sub_expressions)
def binary_placeholder_sql(self, value):
"""
Some backends require special syntax to insert binary content (MySQL
for example uses '_binary %s').
"""
return '%s'
def modify_insert_params(self, placeholder, params):
"""Allow modification of insert parameters. Needed for Oracle Spatial
backend due to #10888.
"""
return params
def integer_field_range(self, internal_type):
"""
Given an integer field internal type (e.g. 'PositiveIntegerField'),
returns a tuple of the (min_value, max_value) form representing the
range of the column type bound to the field.
"""
return self.integer_field_ranges[internal_type]
def subtract_temporals(self, internal_type, lhs, rhs):
if self.connection.features.supports_temporal_subtraction:
lhs_sql, lhs_params = lhs
rhs_sql, rhs_params = rhs
return "(%s - %s)" % (lhs_sql, rhs_sql), lhs_params + rhs_params
raise NotImplementedError("This backend does not support %s subtraction." % internal_type)
| mit |
brothaedhung/external_chromium | net/tools/testserver/asn1der.py | 67 | 1324 | #!/usr/bin/python2.5
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Helper module for ASN.1/DER encoding."""
import binascii
import struct
# Tags as defined by ASN.1.
INTEGER = 2
BIT_STRING = 3
NULL = 5
OBJECT_IDENTIFIER = 6
SEQUENCE = 0x30
def Data(tag, data):
"""Generic type-length-value encoder.
Args:
tag: the tag.
data: the data for the given tag.
Returns:
encoded TLV value.
"""
if len(data) == 0:
return struct.pack(">BB", tag, 0);
assert len(data) <= 0xffff;
return struct.pack(">BBH", tag, 0x82, len(data)) + data;
def Integer(value):
"""Encodes an integer.
Args:
value: the long value.
Returns:
encoded TLV value.
"""
data = '%x' % value
return Data(INTEGER, binascii.unhexlify('00' + '0' * (len(data) % 2) + data))
def Bitstring(value):
"""Encodes a bit string.
Args:
value: a string holding the binary data.
Returns:
encoded TLV value.
"""
return Data(BIT_STRING, '\x00' + value)
def Sequence(values):
"""Encodes a sequence of other values.
Args:
values: the list of values, must be strings holding already encoded data.
Returns:
encoded TLV value.
"""
return Data(SEQUENCE, ''.join(values))
| bsd-3-clause |
Subsets and Splits