repo_name stringlengths 5 100 | path stringlengths 4 375 | copies stringclasses 991 values | size stringlengths 4 7 | content stringlengths 666 1M | license stringclasses 15 values |
|---|---|---|---|---|---|
KevinJiao/SnapYak | lib/python2.7/site-packages/pip/_vendor/distlib/wheel.py | 185 | 38259 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2013-2014 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
from __future__ import unicode_literals
import base64
import codecs
import datetime
import distutils.util
from email import message_from_file
import hashlib
import imp
import json
import logging
import os
import posixpath
import re
import shutil
import sys
import tempfile
import zipfile
from . import __version__, DistlibException
from .compat import sysconfig, ZipFile, fsdecode, text_type, filter
from .database import InstalledDistribution
from .metadata import Metadata, METADATA_FILENAME
from .util import (FileOperator, convert_path, CSVReader, CSVWriter, Cache,
cached_property, get_cache_base, read_exports, tempdir)
from .version import NormalizedVersion, UnsupportedVersionError
logger = logging.getLogger(__name__)
cache = None # created when needed
if hasattr(sys, 'pypy_version_info'):
IMP_PREFIX = 'pp'
elif sys.platform.startswith('java'):
IMP_PREFIX = 'jy'
elif sys.platform == 'cli':
IMP_PREFIX = 'ip'
else:
IMP_PREFIX = 'cp'
VER_SUFFIX = sysconfig.get_config_var('py_version_nodot')
if not VER_SUFFIX: # pragma: no cover
VER_SUFFIX = '%s%s' % sys.version_info[:2]
PYVER = 'py' + VER_SUFFIX
IMPVER = IMP_PREFIX + VER_SUFFIX
ARCH = distutils.util.get_platform().replace('-', '_').replace('.', '_')
ABI = sysconfig.get_config_var('SOABI')
if ABI and ABI.startswith('cpython-'):
ABI = ABI.replace('cpython-', 'cp')
else:
def _derive_abi():
parts = ['cp', VER_SUFFIX]
if sysconfig.get_config_var('Py_DEBUG'):
parts.append('d')
if sysconfig.get_config_var('WITH_PYMALLOC'):
parts.append('m')
if sysconfig.get_config_var('Py_UNICODE_SIZE') == 4:
parts.append('u')
return ''.join(parts)
ABI = _derive_abi()
del _derive_abi
FILENAME_RE = re.compile(r'''
(?P<nm>[^-]+)
-(?P<vn>\d+[^-]*)
(-(?P<bn>\d+[^-]*))?
-(?P<py>\w+\d+(\.\w+\d+)*)
-(?P<bi>\w+)
-(?P<ar>\w+)
\.whl$
''', re.IGNORECASE | re.VERBOSE)
NAME_VERSION_RE = re.compile(r'''
(?P<nm>[^-]+)
-(?P<vn>\d+[^-]*)
(-(?P<bn>\d+[^-]*))?$
''', re.IGNORECASE | re.VERBOSE)
SHEBANG_RE = re.compile(br'\s*#![^\r\n]*')
if os.sep == '/':
to_posix = lambda o: o
else:
to_posix = lambda o: o.replace(os.sep, '/')
class Mounter(object):
def __init__(self):
self.impure_wheels = {}
self.libs = {}
def add(self, pathname, extensions):
self.impure_wheels[pathname] = extensions
self.libs.update(extensions)
def remove(self, pathname):
extensions = self.impure_wheels.pop(pathname)
for k, v in extensions:
if k in self.libs:
del self.libs[k]
def find_module(self, fullname, path=None):
if fullname in self.libs:
result = self
else:
result = None
return result
def load_module(self, fullname):
if fullname in sys.modules:
result = sys.modules[fullname]
else:
if fullname not in self.libs:
raise ImportError('unable to find extension for %s' % fullname)
result = imp.load_dynamic(fullname, self.libs[fullname])
result.__loader__ = self
parts = fullname.rsplit('.', 1)
if len(parts) > 1:
result.__package__ = parts[0]
return result
_hook = Mounter()
class Wheel(object):
"""
Class to build and install from Wheel files (PEP 427).
"""
wheel_version = (1, 1)
hash_kind = 'sha256'
def __init__(self, filename=None, sign=False, verify=False):
"""
Initialise an instance using a (valid) filename.
"""
self.sign = sign
self.should_verify = verify
self.buildver = ''
self.pyver = [PYVER]
self.abi = ['none']
self.arch = ['any']
self.dirname = os.getcwd()
if filename is None:
self.name = 'dummy'
self.version = '0.1'
self._filename = self.filename
else:
m = NAME_VERSION_RE.match(filename)
if m:
info = m.groupdict('')
self.name = info['nm']
# Reinstate the local version separator
self.version = info['vn'].replace('_', '-')
self.buildver = info['bn']
self._filename = self.filename
else:
dirname, filename = os.path.split(filename)
m = FILENAME_RE.match(filename)
if not m:
raise DistlibException('Invalid name or '
'filename: %r' % filename)
if dirname:
self.dirname = os.path.abspath(dirname)
self._filename = filename
info = m.groupdict('')
self.name = info['nm']
self.version = info['vn']
self.buildver = info['bn']
self.pyver = info['py'].split('.')
self.abi = info['bi'].split('.')
self.arch = info['ar'].split('.')
@property
def filename(self):
"""
Build and return a filename from the various components.
"""
if self.buildver:
buildver = '-' + self.buildver
else:
buildver = ''
pyver = '.'.join(self.pyver)
abi = '.'.join(self.abi)
arch = '.'.join(self.arch)
# replace - with _ as a local version separator
version = self.version.replace('-', '_')
return '%s-%s%s-%s-%s-%s.whl' % (self.name, version, buildver,
pyver, abi, arch)
@property
def exists(self):
path = os.path.join(self.dirname, self.filename)
return os.path.isfile(path)
@property
def tags(self):
for pyver in self.pyver:
for abi in self.abi:
for arch in self.arch:
yield pyver, abi, arch
@cached_property
def metadata(self):
pathname = os.path.join(self.dirname, self.filename)
name_ver = '%s-%s' % (self.name, self.version)
info_dir = '%s.dist-info' % name_ver
wrapper = codecs.getreader('utf-8')
with ZipFile(pathname, 'r') as zf:
wheel_metadata = self.get_wheel_metadata(zf)
wv = wheel_metadata['Wheel-Version'].split('.', 1)
file_version = tuple([int(i) for i in wv])
if file_version < (1, 1):
fn = 'METADATA'
else:
fn = METADATA_FILENAME
try:
metadata_filename = posixpath.join(info_dir, fn)
with zf.open(metadata_filename) as bf:
wf = wrapper(bf)
result = Metadata(fileobj=wf)
except KeyError:
raise ValueError('Invalid wheel, because %s is '
'missing' % fn)
return result
def get_wheel_metadata(self, zf):
name_ver = '%s-%s' % (self.name, self.version)
info_dir = '%s.dist-info' % name_ver
metadata_filename = posixpath.join(info_dir, 'WHEEL')
with zf.open(metadata_filename) as bf:
wf = codecs.getreader('utf-8')(bf)
message = message_from_file(wf)
return dict(message)
@cached_property
def info(self):
pathname = os.path.join(self.dirname, self.filename)
with ZipFile(pathname, 'r') as zf:
result = self.get_wheel_metadata(zf)
return result
def process_shebang(self, data):
m = SHEBANG_RE.match(data)
if m:
data = b'#!python' + data[m.end():]
else:
cr = data.find(b'\r')
lf = data.find(b'\n')
if cr < 0 or cr > lf:
term = b'\n'
else:
if data[cr:cr + 2] == b'\r\n':
term = b'\r\n'
else:
term = b'\r'
data = b'#!python' + term + data
return data
def get_hash(self, data, hash_kind=None):
if hash_kind is None:
hash_kind = self.hash_kind
try:
hasher = getattr(hashlib, hash_kind)
except AttributeError:
raise DistlibException('Unsupported hash algorithm: %r' % hash_kind)
result = hasher(data).digest()
result = base64.urlsafe_b64encode(result).rstrip(b'=').decode('ascii')
return hash_kind, result
def write_record(self, records, record_path, base):
with CSVWriter(record_path) as writer:
for row in records:
writer.writerow(row)
p = to_posix(os.path.relpath(record_path, base))
writer.writerow((p, '', ''))
def write_records(self, info, libdir, archive_paths):
records = []
distinfo, info_dir = info
hasher = getattr(hashlib, self.hash_kind)
for ap, p in archive_paths:
with open(p, 'rb') as f:
data = f.read()
digest = '%s=%s' % self.get_hash(data)
size = os.path.getsize(p)
records.append((ap, digest, size))
p = os.path.join(distinfo, 'RECORD')
self.write_record(records, p, libdir)
ap = to_posix(os.path.join(info_dir, 'RECORD'))
archive_paths.append((ap, p))
def build_zip(self, pathname, archive_paths):
with ZipFile(pathname, 'w', zipfile.ZIP_DEFLATED) as zf:
for ap, p in archive_paths:
logger.debug('Wrote %s to %s in wheel', p, ap)
zf.write(p, ap)
def build(self, paths, tags=None, wheel_version=None):
"""
Build a wheel from files in specified paths, and use any specified tags
when determining the name of the wheel.
"""
if tags is None:
tags = {}
libkey = list(filter(lambda o: o in paths, ('purelib', 'platlib')))[0]
if libkey == 'platlib':
is_pure = 'false'
default_pyver = [IMPVER]
default_abi = [ABI]
default_arch = [ARCH]
else:
is_pure = 'true'
default_pyver = [PYVER]
default_abi = ['none']
default_arch = ['any']
self.pyver = tags.get('pyver', default_pyver)
self.abi = tags.get('abi', default_abi)
self.arch = tags.get('arch', default_arch)
libdir = paths[libkey]
name_ver = '%s-%s' % (self.name, self.version)
data_dir = '%s.data' % name_ver
info_dir = '%s.dist-info' % name_ver
archive_paths = []
# First, stuff which is not in site-packages
for key in ('data', 'headers', 'scripts'):
if key not in paths:
continue
path = paths[key]
if os.path.isdir(path):
for root, dirs, files in os.walk(path):
for fn in files:
p = fsdecode(os.path.join(root, fn))
rp = os.path.relpath(p, path)
ap = to_posix(os.path.join(data_dir, key, rp))
archive_paths.append((ap, p))
if key == 'scripts' and not p.endswith('.exe'):
with open(p, 'rb') as f:
data = f.read()
data = self.process_shebang(data)
with open(p, 'wb') as f:
f.write(data)
# Now, stuff which is in site-packages, other than the
# distinfo stuff.
path = libdir
distinfo = None
for root, dirs, files in os.walk(path):
if root == path:
# At the top level only, save distinfo for later
# and skip it for now
for i, dn in enumerate(dirs):
dn = fsdecode(dn)
if dn.endswith('.dist-info'):
distinfo = os.path.join(root, dn)
del dirs[i]
break
assert distinfo, '.dist-info directory expected, not found'
for fn in files:
# comment out next suite to leave .pyc files in
if fsdecode(fn).endswith(('.pyc', '.pyo')):
continue
p = os.path.join(root, fn)
rp = to_posix(os.path.relpath(p, path))
archive_paths.append((rp, p))
# Now distinfo. Assumed to be flat, i.e. os.listdir is enough.
files = os.listdir(distinfo)
for fn in files:
if fn not in ('RECORD', 'INSTALLER', 'SHARED'):
p = fsdecode(os.path.join(distinfo, fn))
ap = to_posix(os.path.join(info_dir, fn))
archive_paths.append((ap, p))
wheel_metadata = [
'Wheel-Version: %d.%d' % (wheel_version or self.wheel_version),
'Generator: distlib %s' % __version__,
'Root-Is-Purelib: %s' % is_pure,
]
for pyver, abi, arch in self.tags:
wheel_metadata.append('Tag: %s-%s-%s' % (pyver, abi, arch))
p = os.path.join(distinfo, 'WHEEL')
with open(p, 'w') as f:
f.write('\n'.join(wheel_metadata))
ap = to_posix(os.path.join(info_dir, 'WHEEL'))
archive_paths.append((ap, p))
# Now, at last, RECORD.
# Paths in here are archive paths - nothing else makes sense.
self.write_records((distinfo, info_dir), libdir, archive_paths)
# Now, ready to build the zip file
pathname = os.path.join(self.dirname, self.filename)
self.build_zip(pathname, archive_paths)
return pathname
def install(self, paths, maker, **kwargs):
"""
Install a wheel to the specified paths. If kwarg ``warner`` is
specified, it should be a callable, which will be called with two
tuples indicating the wheel version of this software and the wheel
version in the file, if there is a discrepancy in the versions.
This can be used to issue any warnings to raise any exceptions.
If kwarg ``lib_only`` is True, only the purelib/platlib files are
installed, and the headers, scripts, data and dist-info metadata are
not written.
The return value is a :class:`InstalledDistribution` instance unless
``options.lib_only`` is True, in which case the return value is ``None``.
"""
dry_run = maker.dry_run
warner = kwargs.get('warner')
lib_only = kwargs.get('lib_only', False)
pathname = os.path.join(self.dirname, self.filename)
name_ver = '%s-%s' % (self.name, self.version)
data_dir = '%s.data' % name_ver
info_dir = '%s.dist-info' % name_ver
metadata_name = posixpath.join(info_dir, METADATA_FILENAME)
wheel_metadata_name = posixpath.join(info_dir, 'WHEEL')
record_name = posixpath.join(info_dir, 'RECORD')
wrapper = codecs.getreader('utf-8')
with ZipFile(pathname, 'r') as zf:
with zf.open(wheel_metadata_name) as bwf:
wf = wrapper(bwf)
message = message_from_file(wf)
wv = message['Wheel-Version'].split('.', 1)
file_version = tuple([int(i) for i in wv])
if (file_version != self.wheel_version) and warner:
warner(self.wheel_version, file_version)
if message['Root-Is-Purelib'] == 'true':
libdir = paths['purelib']
else:
libdir = paths['platlib']
records = {}
with zf.open(record_name) as bf:
with CSVReader(stream=bf) as reader:
for row in reader:
p = row[0]
records[p] = row
data_pfx = posixpath.join(data_dir, '')
info_pfx = posixpath.join(info_dir, '')
script_pfx = posixpath.join(data_dir, 'scripts', '')
# make a new instance rather than a copy of maker's,
# as we mutate it
fileop = FileOperator(dry_run=dry_run)
fileop.record = True # so we can rollback if needed
bc = not sys.dont_write_bytecode # Double negatives. Lovely!
outfiles = [] # for RECORD writing
# for script copying/shebang processing
workdir = tempfile.mkdtemp()
# set target dir later
# we default add_launchers to False, as the
# Python Launcher should be used instead
maker.source_dir = workdir
maker.target_dir = None
try:
for zinfo in zf.infolist():
arcname = zinfo.filename
if isinstance(arcname, text_type):
u_arcname = arcname
else:
u_arcname = arcname.decode('utf-8')
# The signature file won't be in RECORD,
# and we don't currently don't do anything with it
if u_arcname.endswith('/RECORD.jws'):
continue
row = records[u_arcname]
if row[2] and str(zinfo.file_size) != row[2]:
raise DistlibException('size mismatch for '
'%s' % u_arcname)
if row[1]:
kind, value = row[1].split('=', 1)
with zf.open(arcname) as bf:
data = bf.read()
_, digest = self.get_hash(data, kind)
if digest != value:
raise DistlibException('digest mismatch for '
'%s' % arcname)
if lib_only and u_arcname.startswith((info_pfx, data_pfx)):
logger.debug('lib_only: skipping %s', u_arcname)
continue
is_script = (u_arcname.startswith(script_pfx)
and not u_arcname.endswith('.exe'))
if u_arcname.startswith(data_pfx):
_, where, rp = u_arcname.split('/', 2)
outfile = os.path.join(paths[where], convert_path(rp))
else:
# meant for site-packages.
if u_arcname in (wheel_metadata_name, record_name):
continue
outfile = os.path.join(libdir, convert_path(u_arcname))
if not is_script:
with zf.open(arcname) as bf:
fileop.copy_stream(bf, outfile)
outfiles.append(outfile)
# Double check the digest of the written file
if not dry_run and row[1]:
with open(outfile, 'rb') as bf:
data = bf.read()
_, newdigest = self.get_hash(data, kind)
if newdigest != digest:
raise DistlibException('digest mismatch '
'on write for '
'%s' % outfile)
if bc and outfile.endswith('.py'):
try:
pyc = fileop.byte_compile(outfile)
outfiles.append(pyc)
except Exception:
# Don't give up if byte-compilation fails,
# but log it and perhaps warn the user
logger.warning('Byte-compilation failed',
exc_info=True)
else:
fn = os.path.basename(convert_path(arcname))
workname = os.path.join(workdir, fn)
with zf.open(arcname) as bf:
fileop.copy_stream(bf, workname)
dn, fn = os.path.split(outfile)
maker.target_dir = dn
filenames = maker.make(fn)
fileop.set_executable_mode(filenames)
outfiles.extend(filenames)
if lib_only:
logger.debug('lib_only: returning None')
dist = None
else:
# Generate scripts
# Try to get pydist.json so we can see if there are
# any commands to generate. If this fails (e.g. because
# of a legacy wheel), log a warning but don't give up.
commands = None
file_version = self.info['Wheel-Version']
if file_version == '1.0':
# Use legacy info
ep = posixpath.join(info_dir, 'entry_points.txt')
try:
with zf.open(ep) as bwf:
epdata = read_exports(bwf)
commands = {}
for key in ('console', 'gui'):
k = '%s_scripts' % key
if k in epdata:
commands['wrap_%s' % key] = d = {}
for v in epdata[k].values():
s = '%s:%s' % (v.prefix, v.suffix)
if v.flags:
s += ' %s' % v.flags
d[v.name] = s
except Exception:
logger.warning('Unable to read legacy script '
'metadata, so cannot generate '
'scripts')
else:
try:
with zf.open(metadata_name) as bwf:
wf = wrapper(bwf)
commands = json.load(wf).get('commands')
except Exception:
logger.warning('Unable to read JSON metadata, so '
'cannot generate scripts')
if commands:
console_scripts = commands.get('wrap_console', {})
gui_scripts = commands.get('wrap_gui', {})
if console_scripts or gui_scripts:
script_dir = paths.get('scripts', '')
if not os.path.isdir(script_dir):
raise ValueError('Valid script path not '
'specified')
maker.target_dir = script_dir
for k, v in console_scripts.items():
script = '%s = %s' % (k, v)
filenames = maker.make(script)
fileop.set_executable_mode(filenames)
if gui_scripts:
options = {'gui': True }
for k, v in gui_scripts.items():
script = '%s = %s' % (k, v)
filenames = maker.make(script, options)
fileop.set_executable_mode(filenames)
p = os.path.join(libdir, info_dir)
dist = InstalledDistribution(p)
# Write SHARED
paths = dict(paths) # don't change passed in dict
del paths['purelib']
del paths['platlib']
paths['lib'] = libdir
p = dist.write_shared_locations(paths, dry_run)
if p:
outfiles.append(p)
# Write RECORD
dist.write_installed_files(outfiles, paths['prefix'],
dry_run)
return dist
except Exception: # pragma: no cover
logger.exception('installation failed.')
fileop.rollback()
raise
finally:
shutil.rmtree(workdir)
def _get_dylib_cache(self):
global cache
if cache is None:
# Use native string to avoid issues on 2.x: see Python #20140.
base = os.path.join(get_cache_base(), str('dylib-cache'),
sys.version[:3])
cache = Cache(base)
return cache
def _get_extensions(self):
pathname = os.path.join(self.dirname, self.filename)
name_ver = '%s-%s' % (self.name, self.version)
info_dir = '%s.dist-info' % name_ver
arcname = posixpath.join(info_dir, 'EXTENSIONS')
wrapper = codecs.getreader('utf-8')
result = []
with ZipFile(pathname, 'r') as zf:
try:
with zf.open(arcname) as bf:
wf = wrapper(bf)
extensions = json.load(wf)
cache = self._get_dylib_cache()
prefix = cache.prefix_to_dir(pathname)
cache_base = os.path.join(cache.base, prefix)
if not os.path.isdir(cache_base):
os.makedirs(cache_base)
for name, relpath in extensions.items():
dest = os.path.join(cache_base, convert_path(relpath))
if not os.path.exists(dest):
extract = True
else:
file_time = os.stat(dest).st_mtime
file_time = datetime.datetime.fromtimestamp(file_time)
info = zf.getinfo(relpath)
wheel_time = datetime.datetime(*info.date_time)
extract = wheel_time > file_time
if extract:
zf.extract(relpath, cache_base)
result.append((name, dest))
except KeyError:
pass
return result
def is_compatible(self):
"""
Determine if a wheel is compatible with the running system.
"""
return is_compatible(self)
def is_mountable(self):
"""
Determine if a wheel is asserted as mountable by its metadata.
"""
return True # for now - metadata details TBD
def mount(self, append=False):
pathname = os.path.abspath(os.path.join(self.dirname, self.filename))
if not self.is_compatible():
msg = 'Wheel %s not compatible with this Python.' % pathname
raise DistlibException(msg)
if not self.is_mountable():
msg = 'Wheel %s is marked as not mountable.' % pathname
raise DistlibException(msg)
if pathname in sys.path:
logger.debug('%s already in path', pathname)
else:
if append:
sys.path.append(pathname)
else:
sys.path.insert(0, pathname)
extensions = self._get_extensions()
if extensions:
if _hook not in sys.meta_path:
sys.meta_path.append(_hook)
_hook.add(pathname, extensions)
def unmount(self):
pathname = os.path.abspath(os.path.join(self.dirname, self.filename))
if pathname not in sys.path:
logger.debug('%s not in path', pathname)
else:
sys.path.remove(pathname)
if pathname in _hook.impure_wheels:
_hook.remove(pathname)
if not _hook.impure_wheels:
if _hook in sys.meta_path:
sys.meta_path.remove(_hook)
def verify(self):
pathname = os.path.join(self.dirname, self.filename)
name_ver = '%s-%s' % (self.name, self.version)
data_dir = '%s.data' % name_ver
info_dir = '%s.dist-info' % name_ver
metadata_name = posixpath.join(info_dir, METADATA_FILENAME)
wheel_metadata_name = posixpath.join(info_dir, 'WHEEL')
record_name = posixpath.join(info_dir, 'RECORD')
wrapper = codecs.getreader('utf-8')
with ZipFile(pathname, 'r') as zf:
with zf.open(wheel_metadata_name) as bwf:
wf = wrapper(bwf)
message = message_from_file(wf)
wv = message['Wheel-Version'].split('.', 1)
file_version = tuple([int(i) for i in wv])
# TODO version verification
records = {}
with zf.open(record_name) as bf:
with CSVReader(stream=bf) as reader:
for row in reader:
p = row[0]
records[p] = row
for zinfo in zf.infolist():
arcname = zinfo.filename
if isinstance(arcname, text_type):
u_arcname = arcname
else:
u_arcname = arcname.decode('utf-8')
if '..' in u_arcname:
raise DistlibException('invalid entry in '
'wheel: %r' % u_arcname)
# The signature file won't be in RECORD,
# and we don't currently don't do anything with it
if u_arcname.endswith('/RECORD.jws'):
continue
row = records[u_arcname]
if row[2] and str(zinfo.file_size) != row[2]:
raise DistlibException('size mismatch for '
'%s' % u_arcname)
if row[1]:
kind, value = row[1].split('=', 1)
with zf.open(arcname) as bf:
data = bf.read()
_, digest = self.get_hash(data, kind)
if digest != value:
raise DistlibException('digest mismatch for '
'%s' % arcname)
def update(self, modifier, dest_dir=None, **kwargs):
"""
Update the contents of a wheel in a generic way. The modifier should
be a callable which expects a dictionary argument: its keys are
archive-entry paths, and its values are absolute filesystem paths
where the contents the corresponding archive entries can be found. The
modifier is free to change the contents of the files pointed to, add
new entries and remove entries, before returning. This method will
extract the entire contents of the wheel to a temporary location, call
the modifier, and then use the passed (and possibly updated)
dictionary to write a new wheel. If ``dest_dir`` is specified, the new
wheel is written there -- otherwise, the original wheel is overwritten.
The modifier should return True if it updated the wheel, else False.
This method returns the same value the modifier returns.
"""
def get_version(path_map, info_dir):
version = path = None
key = '%s/%s' % (info_dir, METADATA_FILENAME)
if key not in path_map:
key = '%s/PKG-INFO' % info_dir
if key in path_map:
path = path_map[key]
version = Metadata(path=path).version
return version, path
def update_version(version, path):
updated = None
try:
v = NormalizedVersion(version)
i = version.find('-')
if i < 0:
updated = '%s-1' % version
else:
parts = [int(s) for s in version[i + 1:].split('.')]
parts[-1] += 1
updated = '%s-%s' % (version[:i],
'.'.join(str(i) for i in parts))
except UnsupportedVersionError:
logger.debug('Cannot update non-compliant (PEP-440) '
'version %r', version)
if updated:
md = Metadata(path=path)
md.version = updated
legacy = not path.endswith(METADATA_FILENAME)
md.write(path=path, legacy=legacy)
logger.debug('Version updated from %r to %r', version,
updated)
pathname = os.path.join(self.dirname, self.filename)
name_ver = '%s-%s' % (self.name, self.version)
info_dir = '%s.dist-info' % name_ver
record_name = posixpath.join(info_dir, 'RECORD')
with tempdir() as workdir:
with ZipFile(pathname, 'r') as zf:
path_map = {}
for zinfo in zf.infolist():
arcname = zinfo.filename
if isinstance(arcname, text_type):
u_arcname = arcname
else:
u_arcname = arcname.decode('utf-8')
if u_arcname == record_name:
continue
if '..' in u_arcname:
raise DistlibException('invalid entry in '
'wheel: %r' % u_arcname)
zf.extract(zinfo, workdir)
path = os.path.join(workdir, convert_path(u_arcname))
path_map[u_arcname] = path
# Remember the version.
original_version, _ = get_version(path_map, info_dir)
# Files extracted. Call the modifier.
modified = modifier(path_map, **kwargs)
if modified:
# Something changed - need to build a new wheel.
current_version, path = get_version(path_map, info_dir)
if current_version and (current_version == original_version):
# Add or update local version to signify changes.
update_version(current_version, path)
# Decide where the new wheel goes.
if dest_dir is None:
fd, newpath = tempfile.mkstemp(suffix='.whl',
prefix='wheel-update-',
dir=workdir)
os.close(fd)
else:
if not os.path.isdir(dest_dir):
raise DistlibException('Not a directory: %r' % dest_dir)
newpath = os.path.join(dest_dir, self.filename)
archive_paths = list(path_map.items())
distinfo = os.path.join(workdir, info_dir)
info = distinfo, info_dir
self.write_records(info, workdir, archive_paths)
self.build_zip(newpath, archive_paths)
if dest_dir is None:
shutil.copyfile(newpath, pathname)
return modified
def compatible_tags():
"""
Return (pyver, abi, arch) tuples compatible with this Python.
"""
versions = [VER_SUFFIX]
major = VER_SUFFIX[0]
for minor in range(sys.version_info[1] - 1, - 1, -1):
versions.append(''.join([major, str(minor)]))
abis = []
for suffix, _, _ in imp.get_suffixes():
if suffix.startswith('.abi'):
abis.append(suffix.split('.', 2)[1])
abis.sort()
if ABI != 'none':
abis.insert(0, ABI)
abis.append('none')
result = []
arches = [ARCH]
if sys.platform == 'darwin':
m = re.match('(\w+)_(\d+)_(\d+)_(\w+)$', ARCH)
if m:
name, major, minor, arch = m.groups()
minor = int(minor)
matches = [arch]
if arch in ('i386', 'ppc'):
matches.append('fat')
if arch in ('i386', 'ppc', 'x86_64'):
matches.append('fat3')
if arch in ('ppc64', 'x86_64'):
matches.append('fat64')
if arch in ('i386', 'x86_64'):
matches.append('intel')
if arch in ('i386', 'x86_64', 'intel', 'ppc', 'ppc64'):
matches.append('universal')
while minor >= 0:
for match in matches:
s = '%s_%s_%s_%s' % (name, major, minor, match)
if s != ARCH: # already there
arches.append(s)
minor -= 1
# Most specific - our Python version, ABI and arch
for abi in abis:
for arch in arches:
result.append((''.join((IMP_PREFIX, versions[0])), abi, arch))
# where no ABI / arch dependency, but IMP_PREFIX dependency
for i, version in enumerate(versions):
result.append((''.join((IMP_PREFIX, version)), 'none', 'any'))
if i == 0:
result.append((''.join((IMP_PREFIX, version[0])), 'none', 'any'))
# no IMP_PREFIX, ABI or arch dependency
for i, version in enumerate(versions):
result.append((''.join(('py', version)), 'none', 'any'))
if i == 0:
result.append((''.join(('py', version[0])), 'none', 'any'))
return set(result)
COMPATIBLE_TAGS = compatible_tags()
del compatible_tags
def is_compatible(wheel, tags=None):
if not isinstance(wheel, Wheel):
wheel = Wheel(wheel) # assume it's a filename
result = False
if tags is None:
tags = COMPATIBLE_TAGS
for ver, abi, arch in tags:
if ver in wheel.pyver and abi in wheel.abi and arch in wheel.arch:
result = True
break
return result
| mit |
ericholscher/django | django/contrib/gis/maps/google/overlays.py | 1 | 11886 | from django.contrib.gis.geos import fromstr, Point, LineString, LinearRing, Polygon
from django.utils.functional import total_ordering
from django.utils.safestring import mark_safe
from django.utils import six
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class GEvent(object):
"""
A Python wrapper for the Google GEvent object.
Events can be attached to any object derived from GOverlayBase with the
add_event() call.
For more information please see the Google Maps API Reference:
http://code.google.com/apis/maps/documentation/reference.html#GEvent
Example:
from django.shortcuts import render_to_response
from django.contrib.gis.maps.google import GoogleMap, GEvent, GPolyline
def sample_request(request):
polyline = GPolyline('LINESTRING(101 26, 112 26, 102 31)')
event = GEvent('click',
'function() { location.href = "http://www.google.com"}')
polyline.add_event(event)
return render_to_response('mytemplate.html',
{'google' : GoogleMap(polylines=[polyline])})
"""
def __init__(self, event, action):
"""
Initializes a GEvent object.
Parameters:
event:
string for the event, such as 'click'. The event must be a valid
event for the object in the Google Maps API.
There is no validation of the event type within Django.
action:
string containing a Javascript function, such as
'function() { location.href = "newurl";}'
The string must be a valid Javascript function. Again there is no
validation fo the function within Django.
"""
self.event = event
self.action = action
def __str__(self):
"Returns the parameter part of a GEvent."
return mark_safe('"%s", %s' % (self.event, self.action))
@python_2_unicode_compatible
class GOverlayBase(object):
def __init__(self):
self.events = []
def latlng_from_coords(self, coords):
"Generates a JavaScript array of GLatLng objects for the given coordinates."
return '[%s]' % ','.join('new GLatLng(%s,%s)' % (y, x) for x, y in coords)
def add_event(self, event):
"Attaches a GEvent to the overlay object."
self.events.append(event)
def __str__(self):
"The string representation is the JavaScript API call."
return mark_safe('%s(%s)' % (self.__class__.__name__, self.js_params))
class GPolygon(GOverlayBase):
"""
A Python wrapper for the Google GPolygon object. For more information
please see the Google Maps API Reference:
http://code.google.com/apis/maps/documentation/reference.html#GPolygon
"""
def __init__(self, poly,
stroke_color='#0000ff', stroke_weight=2, stroke_opacity=1,
fill_color='#0000ff', fill_opacity=0.4):
"""
The GPolygon object initializes on a GEOS Polygon or a parameter that
may be instantiated into GEOS Polygon. Please note that this will not
depict a Polygon's internal rings.
Keyword Options:
stroke_color:
The color of the polygon outline. Defaults to '#0000ff' (blue).
stroke_weight:
The width of the polygon outline, in pixels. Defaults to 2.
stroke_opacity:
The opacity of the polygon outline, between 0 and 1. Defaults to 1.
fill_color:
The color of the polygon fill. Defaults to '#0000ff' (blue).
fill_opacity:
The opacity of the polygon fill. Defaults to 0.4.
"""
if isinstance(poly, six.string_types):
poly = fromstr(poly)
if isinstance(poly, (tuple, list)):
poly = Polygon(poly)
if not isinstance(poly, Polygon):
raise TypeError('GPolygon may only initialize on GEOS Polygons.')
# Getting the envelope of the input polygon (used for automatically
# determining the zoom level).
self.envelope = poly.envelope
# Translating the coordinates into a JavaScript array of
# Google `GLatLng` objects.
self.points = self.latlng_from_coords(poly.shell.coords)
# Stroke settings.
self.stroke_color, self.stroke_opacity, self.stroke_weight = stroke_color, stroke_opacity, stroke_weight
# Fill settings.
self.fill_color, self.fill_opacity = fill_color, fill_opacity
super(GPolygon, self).__init__()
@property
def js_params(self):
return '%s, "%s", %s, %s, "%s", %s' % (self.points, self.stroke_color, self.stroke_weight, self.stroke_opacity,
self.fill_color, self.fill_opacity)
class GPolyline(GOverlayBase):
"""
A Python wrapper for the Google GPolyline object. For more information
please see the Google Maps API Reference:
http://code.google.com/apis/maps/documentation/reference.html#GPolyline
"""
def __init__(self, geom, color='#0000ff', weight=2, opacity=1):
"""
The GPolyline object may be initialized on GEOS LineStirng, LinearRing,
and Polygon objects (internal rings not supported) or a parameter that
may instantiated into one of the above geometries.
Keyword Options:
color:
The color to use for the polyline. Defaults to '#0000ff' (blue).
weight:
The width of the polyline, in pixels. Defaults to 2.
opacity:
The opacity of the polyline, between 0 and 1. Defaults to 1.
"""
# If a GEOS geometry isn't passed in, try to contsruct one.
if isinstance(geom, six.string_types):
geom = fromstr(geom)
if isinstance(geom, (tuple, list)):
geom = Polygon(geom)
# Generating the lat/lng coordinate pairs.
if isinstance(geom, (LineString, LinearRing)):
self.latlngs = self.latlng_from_coords(geom.coords)
elif isinstance(geom, Polygon):
self.latlngs = self.latlng_from_coords(geom.shell.coords)
else:
raise TypeError('GPolyline may only initialize on GEOS LineString, LinearRing, and/or Polygon geometries.')
# Getting the envelope for automatic zoom determination.
self.envelope = geom.envelope
self.color, self.weight, self.opacity = color, weight, opacity
super(GPolyline, self).__init__()
@property
def js_params(self):
return '%s, "%s", %s, %s' % (self.latlngs, self.color, self.weight, self.opacity)
@total_ordering
class GIcon(object):
"""
Creates a GIcon object to pass into a Gmarker object.
The keyword arguments map to instance attributes of the same name. These,
in turn, correspond to a subset of the attributes of the official GIcon
javascript object:
http://code.google.com/apis/maps/documentation/reference.html#GIcon
Because a Google map often uses several different icons, a name field has
been added to the required arguments.
Required Arguments:
varname:
A string which will become the basis for the js variable name of
the marker, for this reason, your code should assign a unique
name for each GIcon you instantiate, otherwise there will be
name space collisions in your javascript.
Keyword Options:
image:
The url of the image to be used as the icon on the map defaults
to 'G_DEFAULT_ICON'
iconsize:
a tuple representing the pixel size of the foreground (not the
shadow) image of the icon, in the format: (width, height) ex.:
GIcon('fast_food',
image="/media/icon/star.png",
iconsize=(15,10))
Would indicate your custom icon was 15px wide and 10px height.
shadow:
the url of the image of the icon's shadow
shadowsize:
a tuple representing the pixel size of the shadow image, format is
the same as ``iconsize``
iconanchor:
a tuple representing the pixel coordinate relative to the top left
corner of the icon image at which this icon is anchored to the map.
In (x, y) format. x increases to the right in the Google Maps
coordinate system and y increases downwards in the Google Maps
coordinate system.)
infowindowanchor:
The pixel coordinate relative to the top left corner of the icon
image at which the info window is anchored to this icon.
"""
def __init__(self, varname, image=None, iconsize=None,
shadow=None, shadowsize=None, iconanchor=None,
infowindowanchor=None):
self.varname = varname
self.image = image
self.iconsize = iconsize
self.shadow = shadow
self.shadowsize = shadowsize
self.iconanchor = iconanchor
self.infowindowanchor = infowindowanchor
def __eq__(self, other):
return self.varname == other.varname
def __lt__(self, other):
return self.varname < other.varname
def __hash__(self):
# XOR with hash of GIcon type so that hash('varname') won't
# equal hash(GIcon('varname')).
return hash(self.__class__) ^ hash(self.varname)
class GMarker(GOverlayBase):
"""
A Python wrapper for the Google GMarker object. For more information
please see the Google Maps API Reference:
http://code.google.com/apis/maps/documentation/reference.html#GMarker
Example:
from django.shortcuts import render_to_response
from django.contrib.gis.maps.google.overlays import GMarker, GEvent
def sample_request(request):
marker = GMarker('POINT(101 26)')
event = GEvent('click',
'function() { location.href = "http://www.google.com"}')
marker.add_event(event)
return render_to_response('mytemplate.html',
{'google' : GoogleMap(markers=[marker])})
"""
def __init__(self, geom, title=None, draggable=False, icon=None):
"""
The GMarker object may initialize on GEOS Points or a parameter
that may be instantiated into a GEOS point. Keyword options map to
GMarkerOptions -- so far only the title option is supported.
Keyword Options:
title:
Title option for GMarker, will be displayed as a tooltip.
draggable:
Draggable option for GMarker, disabled by default.
"""
# If a GEOS geometry isn't passed in, try to construct one.
if isinstance(geom, six.string_types):
geom = fromstr(geom)
if isinstance(geom, (tuple, list)):
geom = Point(geom)
if isinstance(geom, Point):
self.latlng = self.latlng_from_coords(geom.coords)
else:
raise TypeError('GMarker may only initialize on GEOS Point geometry.')
# Getting the envelope for automatic zoom determination.
self.envelope = geom.envelope
# TODO: Add support for more GMarkerOptions
self.title = title
self.draggable = draggable
self.icon = icon
super(GMarker, self).__init__()
def latlng_from_coords(self, coords):
return 'new GLatLng(%s,%s)' % (coords[1], coords[0])
def options(self):
result = []
if self.title:
result.append('title: "%s"' % self.title)
if self.icon:
result.append('icon: %s' % self.icon.varname)
if self.draggable:
result.append('draggable: true')
return '{%s}' % ','.join(result)
@property
def js_params(self):
return '%s, %s' % (self.latlng, self.options())
| bsd-3-clause |
alexteodor/odoo | addons/membership/wizard/membership_invoice.py | 380 | 3229 | # -*- 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/>.
#
##############################################################################
from openerp.osv import fields, osv
import openerp.addons.decimal_precision as dp
class membership_invoice(osv.osv_memory):
"""Membership Invoice"""
_name = "membership.invoice"
_description = "Membership Invoice"
_columns = {
'product_id': fields.many2one('product.product','Membership', required=True),
'member_price': fields.float('Member Price', digits_compute= dp.get_precision('Product Price'), required=True),
}
def onchange_product(self, cr, uid, ids, product_id=False):
"""This function returns value of product's member price based on product id.
"""
if not product_id:
return {'value': {'member_price': False}}
return {'value': {'member_price': self.pool.get('product.product').price_get(cr, uid, [product_id])[product_id]}}
def membership_invoice(self, cr, uid, ids, context=None):
mod_obj = self.pool.get('ir.model.data')
partner_obj = self.pool.get('res.partner')
datas = {}
if context is None:
context = {}
data = self.browse(cr, uid, ids, context=context)
if data:
data = data[0]
datas = {
'membership_product_id': data.product_id.id,
'amount': data.member_price
}
invoice_list = partner_obj.create_membership_invoice(cr, uid, context.get('active_ids', []), datas=datas, context=context)
try:
search_view_id = mod_obj.get_object_reference(cr, uid, 'account', 'view_account_invoice_filter')[1]
except ValueError:
search_view_id = False
try:
form_view_id = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_form')[1]
except ValueError:
form_view_id = False
return {
'domain': [('id', 'in', invoice_list)],
'name': 'Membership Invoices',
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'account.invoice',
'type': 'ir.actions.act_window',
'views': [(False, 'tree'), (form_view_id, 'form')],
'search_view_id': search_view_id,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
Reagankm/KnockKnock | venv/lib/python3.4/site-packages/matplotlib/tri/triplot.py | 21 | 3124 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import numpy as np
from matplotlib.tri.triangulation import Triangulation
def triplot(ax, *args, **kwargs):
"""
Draw a unstructured triangular grid as lines and/or markers.
The triangulation to plot can be specified in one of two ways;
either::
triplot(triangulation, ...)
where triangulation is a :class:`matplotlib.tri.Triangulation`
object, or
::
triplot(x, y, ...)
triplot(x, y, triangles, ...)
triplot(x, y, triangles=triangles, ...)
triplot(x, y, mask=mask, ...)
triplot(x, y, triangles, mask=mask, ...)
in which case a Triangulation object will be created. See
:class:`~matplotlib.tri.Triangulation` for a explanation of these
possibilities.
The remaining args and kwargs are the same as for
:meth:`~matplotlib.axes.Axes.plot`.
Return a list of 2 :class:`~matplotlib.lines.Line2D` containing
respectively:
- the lines plotted for triangles edges
- the markers plotted for triangles nodes
**Example:**
.. plot:: mpl_examples/pylab_examples/triplot_demo.py
"""
import matplotlib.axes
tri, args, kwargs = Triangulation.get_from_args_and_kwargs(*args, **kwargs)
x, y, edges = (tri.x, tri.y, tri.edges)
# Decode plot format string, e.g., 'ro-'
fmt = ""
if len(args) > 0:
fmt = args[0]
linestyle, marker, color = matplotlib.axes._base._process_plot_format(fmt)
# Insert plot format string into a copy of kwargs (kwargs values prevail).
kw = kwargs.copy()
for key, val in zip(('linestyle', 'marker', 'color'),
(linestyle, marker, color)):
if val is not None:
kw[key] = kwargs.get(key, val)
# Draw lines without markers.
# Note 1: If we drew markers here, most markers would be drawn more than
# once as they belong to several edges.
# Note 2: We insert nan values in the flattened edges arrays rather than
# plotting directly (triang.x[edges].T, triang.y[edges].T)
# as it considerably speeds-up code execution.
linestyle = kw['linestyle']
kw_lines = kw.copy()
kw_lines['marker'] = 'None' # No marker to draw.
kw_lines['zorder'] = kw.get('zorder', 1) # Path default zorder is used.
if (linestyle is not None) and (linestyle not in ['None', '', ' ']):
tri_lines_x = np.insert(x[edges], 2, np.nan, axis=1)
tri_lines_y = np.insert(y[edges], 2, np.nan, axis=1)
tri_lines = ax.plot(tri_lines_x.ravel(), tri_lines_y.ravel(),
**kw_lines)
else:
tri_lines = ax.plot([], [], **kw_lines)
# Draw markers separately.
marker = kw['marker']
kw_markers = kw.copy()
kw_markers['linestyle'] = 'None' # No line to draw.
if (marker is not None) and (marker not in ['None', '', ' ']):
tri_markers = ax.plot(x, y, **kw_markers)
else:
tri_markers = ax.plot([], [], **kw_markers)
return tri_lines + tri_markers
| gpl-2.0 |
BehavioralInsightsTeam/edx-platform | openedx/core/lib/xblock_builtin/xblock_discussion/tests.py | 16 | 7568 | """ Tests for DiscussionXBLock"""
from collections import namedtuple
import ddt
import itertools
import mock
from nose.plugins.attrib import attr
import random
import string
from unittest import TestCase
from safe_lxml import etree
from openedx.core.lib.xblock_builtin.xblock_discussion.xblock_discussion import DiscussionXBlock
from xblock.field_data import DictFieldData
from xblock.fields import ScopeIds, UNIQUE_ID, NO_CACHE_VALUE
from xblock.runtime import Runtime
def attribute_pair_repr(self):
"""
Custom string representation for the AttributePair namedtuple which is
consistent between test runs.
"""
return '<AttributePair name={}>'.format(self.name)
AttributePair = namedtuple("AttributePair", ["name", "value"])
AttributePair.__repr__ = attribute_pair_repr
ID_ATTR_NAMES = ("discussion_id", "id",)
CATEGORY_ATTR_NAMES = ("discussion_category",)
TARGET_ATTR_NAMES = ("discussion_target", "for", )
def _random_string():
"""
Generates random string
"""
return ''.join(random.choice(string.lowercase, ) for _ in xrange(12))
def _make_attribute_test_cases():
"""
Builds test cases for attribute-dependent tests
"""
attribute_names = itertools.product(ID_ATTR_NAMES, CATEGORY_ATTR_NAMES, TARGET_ATTR_NAMES)
for id_attr, category_attr, target_attr in attribute_names:
yield (
AttributePair(id_attr, _random_string()),
AttributePair(category_attr, _random_string()),
AttributePair(target_attr, _random_string())
)
@attr('shard2')
@ddt.ddt
class DiscussionXBlockImportExportTests(TestCase):
"""
Import and export tests
"""
DISCUSSION_XBLOCK_LOCATION = "openedx.core.lib.xblock_builtin.xblock_discussion.xblock_discussion.DiscussionXBlock"
def setUp(self):
"""
Set up method
"""
super(DiscussionXBlockImportExportTests, self).setUp()
self.keys = ScopeIds("any_user", "discussion", "def_id", "usage_id")
self.runtime_mock = mock.Mock(spec=Runtime)
self.runtime_mock.construct_xblock_from_class = mock.Mock(side_effect=self._construct_xblock_mock)
self.runtime_mock.get_policy = mock.Mock(return_value={})
self.id_gen_mock = mock.Mock()
def _construct_xblock_mock(self, cls, keys): # pylint: disable=unused-argument
"""
Builds target xblock instance (DiscussionXBlock)
Signature-compatible with runtime.construct_xblock_from_class - can be used as a mock side-effect
"""
return DiscussionXBlock(self.runtime_mock, scope_ids=keys, field_data=DictFieldData({}))
@mock.patch(DISCUSSION_XBLOCK_LOCATION + ".load_definition_xml")
@ddt.unpack
@ddt.data(*list(_make_attribute_test_cases()))
def test_xblock_export_format(self, id_pair, category_pair, target_pair, patched_load_definition_xml):
"""
Test that xblock export XML format can be parsed preserving field values
"""
xblock_xml = """
<discussion
url_name="82bb87a2d22240b1adac2dfcc1e7e5e4" xblock-family="xblock.v1"
{id_attr}="{id_value}"
{category_attr}="{category_value}"
{target_attr}="{target_value}"
/>
""".format(
id_attr=id_pair.name, id_value=id_pair.value,
category_attr=category_pair.name, category_value=category_pair.value,
target_attr=target_pair.name, target_value=target_pair.value,
)
node = etree.fromstring(xblock_xml)
patched_load_definition_xml.side_effect = Exception("Irrelevant")
block = DiscussionXBlock.parse_xml(node, self.runtime_mock, self.keys, self.id_gen_mock)
try:
self.assertEqual(block.discussion_id, id_pair.value)
self.assertEqual(block.discussion_category, category_pair.value)
self.assertEqual(block.discussion_target, target_pair.value)
except AssertionError:
print xblock_xml
raise
@mock.patch(DISCUSSION_XBLOCK_LOCATION + ".load_definition_xml")
@ddt.unpack
@ddt.data(*(_make_attribute_test_cases()))
def test_legacy_export_format(self, id_pair, category_pair, target_pair, patched_load_definition_xml):
"""
Test that legacy export XML format can be parsed preserving field values
"""
xblock_xml = """<discussion url_name="82bb87a2d22240b1adac2dfcc1e7e5e4"/>"""
xblock_definition_xml = """
<discussion
{id_attr}="{id_value}"
{category_attr}="{category_value}"
{target_attr}="{target_value}"
/>""".format(
id_attr=id_pair.name, id_value=id_pair.value,
category_attr=category_pair.name, category_value=category_pair.value,
target_attr=target_pair.name, target_value=target_pair.value,
)
node = etree.fromstring(xblock_xml)
definition_node = etree.fromstring(xblock_definition_xml)
patched_load_definition_xml.return_value = (definition_node, "irrelevant")
block = DiscussionXBlock.parse_xml(node, self.runtime_mock, self.keys, self.id_gen_mock)
try:
self.assertEqual(block.discussion_id, id_pair.value)
self.assertEqual(block.discussion_category, category_pair.value)
self.assertEqual(block.discussion_target, target_pair.value)
except AssertionError:
print xblock_xml, xblock_definition_xml
raise
def test_export_default_discussion_id(self):
"""
Test that default discussion_id values are not exported.
Historically, the OLX format allowed omitting discussion ID values; in such case, the IDs are generated
deterministically based on the course ID and the usage ID. Moreover, Studio does not allow course authors
to edit discussion_id, so all courses authored in Studio have discussion_id omitted in OLX.
Forcing Studio to always export discussion_id can cause data loss when switching between an older and newer
export, in a course with a course ID different from the one from which the export was created - because the
discussion ID would be different.
"""
target_node = etree.Element('dummy')
block = DiscussionXBlock(self.runtime_mock, scope_ids=self.keys, field_data=DictFieldData({}))
discussion_id_field = block.fields['discussion_id']
# precondition checks - discussion_id does not have a value and uses UNIQUE_ID
self.assertEqual(
discussion_id_field._get_cached_value(block), # pylint: disable=protected-access
NO_CACHE_VALUE
)
self.assertEqual(discussion_id_field.default, UNIQUE_ID)
block.add_xml_to_node(target_node)
self.assertEqual(target_node.tag, "discussion")
self.assertNotIn("discussion_id", target_node.attrib)
@ddt.data("jediwannabe", "iddqd", "itisagooddaytodie")
def test_export_custom_discussion_id(self, discussion_id):
"""
Test that custom discussion_id values are exported
"""
target_node = etree.Element('dummy')
block = DiscussionXBlock(self.runtime_mock, scope_ids=self.keys, field_data=DictFieldData({}))
block.discussion_id = discussion_id
# precondition check
self.assertEqual(block.discussion_id, discussion_id)
block.add_xml_to_node(target_node)
self.assertEqual(target_node.tag, "discussion")
self.assertTrue(target_node.attrib["discussion_id"], discussion_id)
| agpl-3.0 |
0xMF/pelican-plugins | random_article/random_article.py | 76 | 2010 | # -*- coding: utf-8 -*-
"""
Random Article Plugin For Pelican
========================
This plugin generates a html file which redirect to a random article
using javascript's window.location. The generated html file is
saved at SITEURL.
"""
from __future__ import unicode_literals
import os.path
from logging import info
from codecs import open
from pelican import signals
HTML_TOP = """
<!DOCTYPE html>
<head>
<title>random</title>
<script type="text/javascript">
function redirect(){
var urls = [
"""
HTML_BOTTOM = """
""];
var index = Math.floor(Math.random() * (urls.length-1));
window.location = urls[index];
}
</script>
<body onload="redirect()">
</body>
</html>
"""
ARTICLE_URL = """ "{0}/{1}",
"""
class RandomArticleGenerator(object):
"""
The structure is derived from sitemap plugin
"""
def __init__(self, context, settings, path, theme, output_path, *null):
self.output_path = output_path
self.context = context
self.siteurl = settings.get('SITEURL')
self.randomurl = settings.get('RANDOM')
def write_url(self, article, fd):
if getattr(article, 'status', 'published') != 'published':
return
page_path = os.path.join(self.output_path, article.url)
if not os.path.exists(page_path):
return
fd.write(ARTICLE_URL.format(self.siteurl, article.url))
def generate_output(self, writer):
path = os.path.join(self.output_path, self.randomurl)
articles = self.context['articles']
info('writing {0}'.format(path))
if len(articles) == 0:
return
with open(path, 'w', encoding='utf-8') as fd:
fd.write(HTML_TOP)
for art in articles:
self.write_url(art, fd)
fd.write(HTML_BOTTOM)
def get_generators(generators):
return RandomArticleGenerator
def register():
signals.get_generators.connect(get_generators)
| agpl-3.0 |
TNick/pylearn2 | pylearn2/expr/coding.py | 44 | 1214 | """ Expressions for encoding features """
import theano.tensor as T
def triangle_code(X, centroids):
"""
Compute the triangle activation function used in Adam Coates' AISTATS 2011
paper.
Parameters
----------
X : theano matrix
design matrix
centroids : theano matrix
k-means dictionary, one centroid in each row
Returns
-------
code : theano matrix
A design matrix of triangle code activations
"""
X_sqr = T.sqr(X).sum(axis=1).dimshuffle(0,'x')
c_sqr = T.sqr(centroids).sum(axis=1).dimshuffle('x',0)
c_sqr.name = 'c_sqr'
Xc = T.dot(X, centroids.T)
Xc.name = 'Xc'
sq_dists = c_sqr + X_sqr - 2. * Xc
# TODO: why do I have to do this and Adam doesn't?
# is it just because he uses float64 and I usually use
# float32? or are our libraries numerically unstable somehow,
# or does matlab handle sqrt differently?
sq_dists_safe = T.clip(sq_dists,0.,1e30)
Z = T.sqrt( sq_dists_safe)
Z.name = 'Z'
mu = Z.mean(axis=1)
mu.name = 'mu'
mu = mu.dimshuffle(0,'x')
mu.name = 'mu_broadcasted'
rval = T.clip( mu - Z, 0., 1e30)
rval.name = 'triangle_code'
return rval
| bsd-3-clause |
yask123/django | django/contrib/postgres/lookups.py | 199 | 1175 | from django.db.models import Lookup, Transform
class PostgresSimpleLookup(Lookup):
def as_sql(self, qn, connection):
lhs, lhs_params = self.process_lhs(qn, connection)
rhs, rhs_params = self.process_rhs(qn, connection)
params = lhs_params + rhs_params
return '%s %s %s' % (lhs, self.operator, rhs), params
class FunctionTransform(Transform):
def as_sql(self, qn, connection):
lhs, params = qn.compile(self.lhs)
return "%s(%s)" % (self.function, lhs), params
class DataContains(PostgresSimpleLookup):
lookup_name = 'contains'
operator = '@>'
class ContainedBy(PostgresSimpleLookup):
lookup_name = 'contained_by'
operator = '<@'
class Overlap(PostgresSimpleLookup):
lookup_name = 'overlap'
operator = '&&'
class HasKey(PostgresSimpleLookup):
lookup_name = 'has_key'
operator = '?'
class HasKeys(PostgresSimpleLookup):
lookup_name = 'has_keys'
operator = '?&'
class HasAnyKeys(PostgresSimpleLookup):
lookup_name = 'has_any_keys'
operator = '?|'
class Unaccent(FunctionTransform):
bilateral = True
lookup_name = 'unaccent'
function = 'UNACCENT'
| bsd-3-clause |
mlcommons/inference | vision/medical_imaging/3d-unet-kits19/unet_onnx_to_tensorflow.py | 1 | 2812 | #! /usr/bin/env python3
# coding=utf-8
# Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
# Copyright 2021 The MLPerf Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from pathlib import Path
import onnx_tf
import onnx
import argparse
import os
import sys
sys.path.insert(0, os.getcwd())
__doc__ = """
Converts ONNX file to TensorFlow saved_model bundle.
Command:
python3 unet_onnx_to_tensorflow.py
or
python3 unet_onnx_to_tensorflow.py --model $(ONNX_MODEL)
--output_dir $(DIR_TO_STORE_TF_SAVED_MODEL)
--output_name $(TF_SAVED_MODEL_DIR_NAME)
Ex) --output_dir build/model --output_name 3dunet_kits19_128x128x128.tf produces:
./build/model/3dunet_kits19_128x128x128.tf/
├── assets
├── saved_model.pb
└── variables
├── variables.data-00000-of-00001
└── variables.index
"""
def get_args():
"""
Args used for converting ONNX to TensorFlow model
"""
parser = argparse.ArgumentParser(description=__doc__,
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument("--model",
default="build/model/3dunet_kits19_128x128x128.onnx",
help="Path to the ONNX model")
parser.add_argument("--output_name",
default="3dunet_kits19_128x128x128.tf",
help="Name of output model")
parser.add_argument("--output_dir",
default="build/model",
help="Directory to save output model")
args = parser.parse_args()
return args
def main():
"""
Converts ONNX file to TensorFlow saved_model bundle.
"""
args = get_args()
print("Loading ONNX model...")
onnx_model = onnx.load(args.model)
print("Converting ONNX model to TF...")
tf_model = onnx_tf.backend.prepare(onnx_model)
output_dir_path = Path(args.output_dir).absolute()
output_dir_path.mkdir(parents=True, exist_ok=True)
output_path = Path(output_dir_path / args.output_name).absolute()
tf_model.export_graph(str(output_path))
print("Successfully exported model {}".format(output_path))
if __name__ == "__main__":
main()
| apache-2.0 |
OpenPymeMx/OCB | addons/account_analytic_plans/__openerp__.py | 55 | 3049 | # -*- 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/>.
#
##############################################################################
{
'name': 'Multiple Analytic Plans',
'version': '1.0',
'category': 'Accounting & Finance',
'description': """
This module allows to use several analytic plans according to the general journal.
==================================================================================
Here multiple analytic lines are created when the invoice or the entries
are confirmed.
For example, you can define the following analytic structure:
-------------------------------------------------------------
* **Projects**
* Project 1
+ SubProj 1.1
+ SubProj 1.2
* Project 2
* **Salesman**
* Eric
* Fabien
Here, we have two plans: Projects and Salesman. An invoice line must be able to write analytic entries in the 2 plans: SubProj 1.1 and Fabien. The amount can also be split.
The following example is for an invoice that touches the two subprojects and assigned to one salesman:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Plan1:**
* SubProject 1.1 : 50%
* SubProject 1.2 : 50%
**Plan2:**
Eric: 100%
So when this line of invoice will be confirmed, it will generate 3 analytic lines,for one account entry.
The analytic plan validates the minimum and maximum percentage at the time of creation of distribution models.
""",
'author': 'OpenERP SA',
'website': 'http://www.openerp.com',
'images': ['images/analytic_plan.jpeg'],
'depends': ['account', 'account_analytic_default'],
'data': [
'security/account_analytic_plan_security.xml',
'security/ir.model.access.csv',
'account_analytic_plans_view.xml',
'account_analytic_plans_report.xml',
'wizard/analytic_plan_create_model_view.xml',
'wizard/account_crossovered_analytic_view.xml',
],
'demo': [],
'test': ['test/acount_analytic_plans_report.yml'],
'installable': True,
'auto_install': False,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
hbrunn/OpenUpgrade | addons/stock_landed_costs/stock_landed_costs.py | 33 | 16501 | # -*- 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/>.
#
##############################################################################
from openerp.osv import fields, osv
import openerp.addons.decimal_precision as dp
from openerp.tools.translate import _
import product
class stock_landed_cost(osv.osv):
_name = 'stock.landed.cost'
_description = 'Stock Landed Cost'
_inherit = 'mail.thread'
_track = {
'state': {
'stock_landed_costs.mt_stock_landed_cost_open': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'done',
},
}
def _total_amount(self, cr, uid, ids, name, args, context=None):
result = {}
for cost in self.browse(cr, uid, ids, context=context):
total = 0.0
for line in cost.cost_lines:
total += line.price_unit
result[cost.id] = total
return result
def _get_cost_line(self, cr, uid, ids, context=None):
cost_to_recompute = []
for line in self.pool.get('stock.landed.cost.lines').browse(cr, uid, ids, context=context):
cost_to_recompute.append(line.cost_id.id)
return cost_to_recompute
def onchange_pickings(self, cr, uid, ids, picking_ids=None, context=None):
result = {'valuation_adjustment_lines': []}
line_obj = self.pool.get('stock.valuation.adjustment.lines')
picking_obj = self.pool.get('stock.picking')
lines = []
for cost in self.browse(cr, uid, ids, context=context):
line_ids = [line.id for line in cost.valuation_adjustment_lines]
line_obj.unlink(cr, uid, line_ids, context=context)
picking_ids = picking_ids and picking_ids[0][2] or False
if not picking_ids:
return {'value': result}
for picking in picking_obj.browse(cr, uid, picking_ids):
for move in picking.move_lines:
#it doesn't make sense to make a landed cost for a product that isn't set as being valuated in real time at real cost
if move.product_id.valuation != 'real_time' or move.product_id.cost_method != 'real':
continue
total_cost = 0.0
total_qty = move.product_qty
weight = move.product_id and move.product_id.weight * move.product_qty
volume = move.product_id and move.product_id.volume * move.product_qty
for quant in move.quant_ids:
total_cost += quant.cost
vals = dict(product_id=move.product_id.id, move_id=move.id, quantity=move.product_uom_qty, former_cost=total_cost * total_qty, weight=weight, volume=volume, flag='original')
lines.append(vals)
result['valuation_adjustment_lines'] = lines
return {'value': result}
_columns = {
'name': fields.char('Name', size=256, track_visibility='always', readonly=True),
'date': fields.date('Date', required=True, states={'done': [('readonly', True)]}, track_visibility='onchange'),
'picking_ids': fields.many2many('stock.picking', string='Pickings', states={'done': [('readonly', True)]}),
'cost_lines': fields.one2many('stock.landed.cost.lines', 'cost_id', 'Cost Lines', states={'done': [('readonly', True)]}),
'valuation_adjustment_lines': fields.one2many('stock.valuation.adjustment.lines', 'cost_id', 'Valuation Adjustments', states={'done': [('readonly', True)]}),
'description': fields.text('Item Description', states={'done': [('readonly', True)]}),
'amount_total': fields.function(_total_amount, type='float', string='Total', digits_compute=dp.get_precision('Account'),
store={
'stock.landed.cost': (lambda self, cr, uid, ids, c={}: ids, ['cost_lines'], 20),
'stock.landed.cost.lines': (_get_cost_line, ['price_unit', 'quantity', 'cost_id'], 20),
}, track_visibility='always'
),
'state': fields.selection([('draft', 'Draft'), ('done', 'Posted'), ('cancel', 'Cancelled')], 'State', readonly=True, track_visibility='onchange'),
'account_move_id': fields.many2one('account.move', 'Journal Entry', readonly=True),
'account_journal_id': fields.many2one('account.journal', 'Account Journal', required=True),
}
_defaults = {
'name': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'stock.landed.cost'),
'state': 'draft',
'date': fields.date.context_today,
}
def copy(self, cr, uid, id, default=None, context=None):
default = {} if default is None else default.copy()
default.update({
'account_move_id': False,
})
return super(stock_landed_cost, self).copy(cr, uid, id, default=default, context=context)
def _create_accounting_entries(self, cr, uid, line, move_id, context=None):
product_obj = self.pool.get('product.product')
cost_product = line.cost_line_id and line.cost_line_id.product_id
if not cost_product:
return False
accounts = product_obj.get_product_accounts(cr, uid, line.product_id.id, context=context)
debit_account_id = accounts['property_stock_valuation_account_id']
credit_account_id = cost_product.property_account_expense and cost_product.property_account_expense.id or cost_product.categ_id.property_account_expense_categ.id
if not credit_account_id:
raise osv.except_osv(_('Error!'), _('Please configure Stock Expense Account for product: %s.') % (cost_product.name))
return self._create_account_move_line(cr, uid, line, move_id, credit_account_id, debit_account_id, context=context)
def _create_account_move_line(self, cr, uid, line, move_id, credit_account_id, debit_account_id, context=None):
"""
Generate the account.move.line values to track the landed cost.
"""
aml_obj = self.pool.get('account.move.line')
aml_obj.create(cr, uid, {
'name': line.name,
'move_id': move_id,
'product_id': line.product_id.id,
'quantity': line.quantity,
'debit': line.additional_landed_cost,
'account_id': debit_account_id
}, context=context)
aml_obj.create(cr, uid, {
'name': line.name,
'move_id': move_id,
'product_id': line.product_id.id,
'quantity': line.quantity,
'credit': line.additional_landed_cost,
'account_id': credit_account_id
}, context=context)
return True
def _create_account_move(self, cr, uid, cost, context=None):
vals = {
'journal_id': cost.account_journal_id.id,
'period_id': self.pool.get('account.period').find(cr, uid, cost.date, context=context)[0],
'date': cost.date,
'ref': cost.name
}
return self.pool.get('account.move').create(cr, uid, vals, context=context)
def button_validate(self, cr, uid, ids, context=None):
quant_obj = self.pool.get('stock.quant')
for cost in self.browse(cr, uid, ids, context=context):
if not cost.valuation_adjustment_lines:
raise osv.except_osv(_('Error!'), _('You cannot validate a landed cost which has no valuation line.'))
move_id = self._create_account_move(cr, uid, cost, context=context)
quant_dict = {}
for line in cost.valuation_adjustment_lines:
if not line.move_id:
continue
per_unit = line.final_cost / line.quantity
diff = per_unit - line.former_cost_per_unit
quants = [quant for quant in line.move_id.quant_ids]
for quant in quants:
if quant.id not in quant_dict:
quant_dict[quant.id] = quant.cost + diff
else:
quant_dict[quant.id] += diff
for key, value in quant_dict.items():
quant_obj.write(cr, uid, quant.id, {'cost': value}, context=context)
self._create_accounting_entries(cr, uid, line, move_id, context=context)
self.write(cr, uid, cost.id, {'state': 'done', 'account_move_id': move_id}, context=context)
return True
def button_cancel(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {'state': 'cancel'}, context=context)
return True
def compute_landed_cost(self, cr, uid, ids, context=None):
line_obj = self.pool.get('stock.valuation.adjustment.lines')
for cost in self.browse(cr, uid, ids, context=None):
total_qty = 0.0
total_cost = 0.0
total_weight = 0.0
total_volume = 0.0
total_line = 0.0
for line in cost.valuation_adjustment_lines:
if line.flag == 'original':
total_qty += line.quantity
total_cost += line.former_cost
total_weight += line.weight
total_volume += line.volume
total_line += 1
unlink_ids = line_obj.search(cr, uid, [('cost_id', 'in', ids), ('flag', '=', 'duplicate')], context=context)
line_obj.unlink(cr, uid, unlink_ids, context=context)
for cost in self.browse(cr, uid, ids, context=None):
count = 0.0
for line in cost.cost_lines:
count += 1
for valuation in cost.valuation_adjustment_lines:
if count == 1:
line_obj.write(cr, uid, valuation.id, {'cost_line_id': line.id}, context=context)
continue
line_obj.copy(cr, uid, valuation.id, default={'cost_line_id': line.id, 'flag': 'duplicate'}, context=context)
for cost in self.browse(cr, uid, ids, context=None):
dict = {}
for line in cost.cost_lines:
for valuation in cost.valuation_adjustment_lines:
value = 0.0
if valuation.cost_line_id and valuation.cost_line_id.id == line.id:
if line.split_method == 'by_quantity' and total_qty:
per_unit = (line.price_unit / total_qty)
value = valuation.quantity * per_unit
elif line.split_method == 'by_weight' and total_weight:
per_unit = (line.price_unit / total_weight)
value = valuation.weight * per_unit
elif line.split_method == 'by_volume' and total_volume:
per_unit = (line.price_unit / total_volume)
value = valuation.volume * per_unit
elif line.split_method == 'equal':
value = (line.price_unit / total_line)
elif line.split_method == 'by_current_cost_price' and total_cost:
per_unit = (line.price_unit / total_cost)
value = valuation.former_cost * per_unit
else:
value = (line.price_unit / total_line)
if valuation.id not in dict:
dict[valuation.id] = value
else:
dict[valuation.id] += value
for key, value in dict.items():
line_obj.write(cr, uid, key, {'additional_landed_cost': value}, context=context)
return True
class stock_landed_cost_lines(osv.osv):
_name = 'stock.landed.cost.lines'
_description = 'Stock Landed Cost Lines'
def onchange_product_id(self, cr, uid, ids, product_id=False, context=None):
result = {}
if not product_id:
return {'value': {'quantity': 0.0, 'price_unit': 0.0}}
product = self.pool.get('product.product').browse(cr, uid, product_id, context=context)
result['name'] = product.name
result['split_method'] = product.split_method
result['price_unit'] = product.standard_price
result['account_id'] = product.property_account_expense and product.property_account_expense.id or product.categ_id.property_account_expense_categ.id
return {'value': result}
_columns = {
'name': fields.char('Description', size=256),
'cost_id': fields.many2one('stock.landed.cost', 'Landed Cost', required=True, ondelete='cascade'),
'product_id': fields.many2one('product.product', 'Product', required=True),
'price_unit': fields.float('Unit Price', required=True, digits_compute=dp.get_precision('Product Price')),
'split_method': fields.selection(product.SPLIT_METHOD, string='Split Method', required=True),
'account_id': fields.many2one('account.account', 'Account', domain=[('type', '<>', 'view'), ('type', '<>', 'closed')]),
}
class stock_valuation_adjustment_lines(osv.osv):
_name = 'stock.valuation.adjustment.lines'
_description = 'Stock Valuation Adjustment Lines'
def _amount_final(self, cr, uid, ids, name, args, context=None):
result = {}
for line in self.browse(cr, uid, ids, context=context):
result[line.id] = {
'former_cost_per_unit': 0.0,
'final_cost': 0.0,
}
result[line.id]['former_cost_per_unit'] = (line.former_cost / line.quantity if line.quantity else 1.0)
result[line.id]['final_cost'] = (line.former_cost + line.additional_landed_cost)
return result
def _get_name(self, cr, uid, ids, name, arg, context=None):
res = {}
for line in self.browse(cr, uid, ids, context=context):
res[line.id] = line.product_id.code or line.product_id.name or ''
if line.cost_line_id:
res[line.id] += ' - ' + line.cost_line_id.name
return res
_columns = {
'name': fields.function(_get_name, type='char', string='Description', store=True),
'cost_id': fields.many2one('stock.landed.cost', 'Landed Cost', required=True, ondelete='cascade'),
'cost_line_id': fields.many2one('stock.landed.cost.lines', 'Cost Line', readonly=True),
'move_id': fields.many2one('stock.move', 'Stock Move', readonly=True),
'product_id': fields.many2one('product.product', 'Product', required=True),
'quantity': fields.float('Quantity', digits_compute=dp.get_precision('Product Unit of Measure'), required=True),
'weight': fields.float('Weight', digits_compute=dp.get_precision('Product Unit of Measure')),
'volume': fields.float('Volume', digits_compute=dp.get_precision('Product Unit of Measure')),
'former_cost': fields.float('Former Cost', digits_compute=dp.get_precision('Product Price')),
'former_cost_per_unit': fields.function(_amount_final, multi='cost', string='Former Cost(Per Unit)', type='float', digits_compute=dp.get_precision('Account'), store=True),
'additional_landed_cost': fields.float('Additional Landed Cost', digits_compute=dp.get_precision('Product Price')),
'final_cost': fields.function(_amount_final, multi='cost', string='Final Cost', type='float', digits_compute=dp.get_precision('Account'), store=True),
'flag': fields.selection([('original', 'Original'), ('duplicate', 'Duplicate')], 'Flag', readonly=True),
}
_defaults = {
'quantity': 1.0,
'weight': 1.0,
'volume': 1.0,
'flag': 'original',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
naucoin/VTKSlicerWidgets | Examples/VisualizationAlgorithms/Python/imageWarp.py | 15 | 1735 | #!/usr/bin/env python
# This example shows how to combine data from both the imaging and
# graphics pipelines. The vtkMergeFilter is used to merge the data
# from each together.
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Read in an image and compute a luminance value. The image is
# extracted as a set of polygons (vtkImageDataGeometryFilter). We then
# will warp the plane using the scalar (luminance) values.
reader = vtk.vtkBMPReader()
reader.SetFileName(VTK_DATA_ROOT + "/Data/masonry.bmp")
luminance = vtk.vtkImageLuminance()
luminance.SetInputConnection(reader.GetOutputPort())
geometry = vtk.vtkImageDataGeometryFilter()
geometry.SetInputConnection(luminance.GetOutputPort())
warp = vtk.vtkWarpScalar()
warp.SetInputConnection(geometry.GetOutputPort())
warp.SetScaleFactor(-0.1)
# Use vtkMergeFilter to combine the original image with the warped
# geometry.
merge = vtk.vtkMergeFilter()
merge.SetGeometry(warp.GetOutput())
merge.SetScalars(reader.GetOutput())
mapper = vtk.vtkDataSetMapper()
mapper.SetInputConnection(merge.GetOutputPort())
mapper.SetScalarRange(0, 255)
mapper.ImmediateModeRenderingOff()
actor = vtk.vtkActor()
actor.SetMapper(mapper)
# Create renderer stuff
ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
# Add the actors to the renderer, set the background and size
ren.AddActor(actor)
ren.ResetCamera()
ren.GetActiveCamera().Azimuth(20)
ren.GetActiveCamera().Elevation(30)
ren.SetBackground(0.1, 0.2, 0.4)
ren.ResetCameraClippingRange()
renWin.SetSize(250, 250)
cam1 = ren.GetActiveCamera()
cam1.Zoom(1.4)
iren.Initialize()
renWin.Render()
iren.Start()
| bsd-3-clause |
sssundar/boogie | src/share_and_message_server/test_v0.py | 1 | 1030 | from time import sleep
import sys
import requests, json
# Reference:
# http://docs.python-requests.org/en/master/user/quickstart/
# http://docs.python-requests.org/en/master/api/?highlight=get#requests.get
if __name__ == "__main__":
# A few valid RLEs
N = 200
rles = []
rles.append("b,%d" % N**2)
rles.append("w,%d,%d" % (N**2-10,10))
# Server IP Address (localhost, remote)
# server = "http://ec2-54-183-116-184.us-west-1.compute.amazonaws.com:8080"
shareserver = "http://127.0.0.1:8080/sharescreen"
grabserver = "http://127.0.0.1:8080/grabscreen"
head = {'Content-Type' : 'application/json'}
user = 'sushant'
password = 'password0'
s = requests.Session()
# Begin Tests
# Post Request followed by Get RLE request
r = s.post(shareserver, data=json.dumps({'user': user, 'password':password, 'run_length_encoding':rles[1]}), headers=head)
r = s.get(grabserver, params={'user': user,'password':password})
print r.text
print "Test 7: %s" % ('passed' if r.text == rles[1] else 'failed')
sys.exit(0) | gpl-3.0 |
lqdc/pyew | plugins/shellcode.py | 16 | 1491 | #!/usr/bin/env python
"""
This file is part of Pyew
Copyright (C) 2009, 2010 Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import sys
try:
import libemu
hasLibEmu = True
except:
hasLibEmu = False
def shellcodeSearch(pyew, doprint=True, args=None):
""" Search for shellcode """
moffset = pyew.offset
buf = pyew.f.read()
if hasLibEmu:
emu = libemu.Emulator()
ret = emu.test(pyew.buf)
if ret:
if ret > 0:
print "HINT[emu:0x%x] %x" % (moffset + ret, repr(buf[ret:ret+options.cols]))
pyew.disassemble(buf[ret:ret+options.cols], pyew.processor, pyew.type, 4, pyew.bsize, baseoffset=pyew.offset)
else:
print "Error with libemu: 0x%x" % ret
else:
print "***No shellcode detected via emulation"
pyew.seek(moffset)
functions = {"sc":shellcodeSearch}
| gpl-2.0 |
JaneliaSciComp/serial_device_python | setup.py | 3 | 3708 | from setuptools import setup, find_packages # Always prefer setuptools over distutils
from codecs import open # To use a consistent encoding
from os import path
from version import get_git_version
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='serial_device2',
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# http://packaging.python.org/en/latest/tutorial.html#version
version=get_git_version(),
description='Extends serial.Serial to add methods such as auto discovery of available serial ports in Linux, Windows, and Mac OS X',
long_description=long_description,
# The project's main homepage.
url='https://github.com/janelia-pypi/serial_device_python',
# Author details
author='Peter Polidoro',
author_email='peterpolidoro@gmail.com',
# Choose your license
license='BSD',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: BSD License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
# 'Programming Language :: Python :: 2',
# 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
# 'Programming Language :: Python :: 3.2',
# 'Programming Language :: Python :: 3.3',
# 'Programming Language :: Python :: 3.4',
],
# What does your project relate to?
keywords='serial',
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
# List run-time dependencies here. These will be installed by pip when your
# project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
install_requires=['pyserial>=3',
],
# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
# have to be included in MANIFEST.in as well.
# package_data={
# 'sample': ['package_data.dat'],
# },
# Although 'package_data' is the preferred approach, in some case you may
# need to place data files outside of your packages.
# see http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
# data_files=[('my_data', ['data/data_file'])],
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
# entry_points={
# 'console_scripts': [
# 'sample=sample:main',
# ],
# },
)
| bsd-3-clause |
ayushgoel/FixGoogleContacts | phonenumbers/data/region_SV.py | 1 | 2203 | """Auto-generated file, do not edit by hand. SV metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_SV = PhoneMetadata(id='SV', country_code=503, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[267]\\d{7}|[89]\\d{6}(?:\\d{4})?', possible_number_pattern='\\d{7,8}|\\d{11}'),
fixed_line=PhoneNumberDesc(national_number_pattern='2[1-6]\\d{6}', possible_number_pattern='\\d{8}', example_number='21234567'),
mobile=PhoneNumberDesc(national_number_pattern='[67]\\d{7}', possible_number_pattern='\\d{8}', example_number='70123456'),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{4}(?:\\d{4})?', possible_number_pattern='\\d{7}(?:\\d{4})?', example_number='8001234'),
premium_rate=PhoneNumberDesc(national_number_pattern='900\\d{4}(?:\\d{4})?', possible_number_pattern='\\d{7}(?:\\d{4})?', example_number='9001234'),
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
personal_number=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
voip=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
pager=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
uan=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
emergency=PhoneNumberDesc(national_number_pattern='911', possible_number_pattern='\\d{3}', example_number='911'),
voicemail=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
short_code=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
standard_rate=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
no_international_dialling=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
number_format=[NumberFormat(pattern='(\\d{4})(\\d{4})', format='\\1 \\2', leading_digits_pattern=['[267]']),
NumberFormat(pattern='(\\d{3})(\\d{4})', format='\\1 \\2', leading_digits_pattern=['[89]']),
NumberFormat(pattern='(\\d{3})(\\d{4})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['[89]'])])
| mit |
rebstar6/servo | tests/wpt/web-platform-tests/mixed-content/generic/tools/spec_validator.py | 202 | 5824 | #!/usr/bin/env python
import json, sys
from common_paths import *
def assert_non_empty_string(obj, field):
assert field in obj, 'Missing field "%s"' % field
assert isinstance(obj[field], basestring), \
'Field "%s" must be a string' % field
assert len(obj[field]) > 0, 'Field "%s" must not be empty' % field
def assert_non_empty_list(obj, field):
assert isinstance(obj[field], list), \
'%s must be a list' % field
assert len(obj[field]) > 0, \
'%s list must not be empty' % field
def assert_non_empty_dict(obj, field):
assert isinstance(obj[field], dict), \
'%s must be a dict' % field
assert len(obj[field]) > 0, \
'%s dict must not be empty' % field
def assert_contains(obj, field):
assert field in obj, 'Must contain field "%s"' % field
def assert_string_from(obj, field, items):
assert obj[field] in items, \
'Field "%s" must be from: %s' % (field, str(items))
def assert_string_or_list_items_from(obj, field, items):
if isinstance(obj[field], basestring):
assert_string_from(obj, field, items)
return
assert isinstance(obj[field], list), "%s must be a list!" % field
for allowed_value in obj[field]:
assert allowed_value != '*', "Wildcard is not supported for lists!"
assert allowed_value in items, \
'Field "%s" must be from: %s' % (field, str(items))
def assert_contains_only_fields(obj, expected_fields):
for expected_field in expected_fields:
assert_contains(obj, expected_field)
for actual_field in obj:
assert actual_field in expected_fields, \
'Unexpected field "%s".' % actual_field
def assert_value_unique_in(value, used_values):
assert value not in used_values, 'Duplicate value "%s"!' % str(value)
used_values[value] = True
def assert_valid_artifact(exp_pattern, artifact_key, schema):
if isinstance(schema, list):
assert_string_or_list_items_from(exp_pattern, artifact_key,
["*"] + schema)
return
for sub_artifact_key, sub_schema in schema.iteritems():
assert_valid_artifact(exp_pattern[artifact_key], sub_artifact_key,
sub_schema)
def validate(spec_json, details):
""" Validates the json specification for generating tests. """
details['object'] = spec_json
assert_contains_only_fields(spec_json, ["specification",
"test_expansion_schema",
"excluded_tests"])
assert_non_empty_list(spec_json, "specification")
assert_non_empty_dict(spec_json, "test_expansion_schema")
assert_non_empty_list(spec_json, "excluded_tests")
specification = spec_json['specification']
test_expansion_schema = spec_json['test_expansion_schema']
excluded_tests = spec_json['excluded_tests']
valid_test_expansion_fields = ['name'] + test_expansion_schema.keys()
# Validate each single spec.
for spec in specification:
details['object'] = spec
# Validate required fields for a single spec.
assert_contains_only_fields(spec, ['name',
'title',
'description',
'specification_url',
'test_expansion'])
assert_non_empty_string(spec, 'name')
assert_non_empty_string(spec, 'title')
assert_non_empty_string(spec, 'description')
assert_non_empty_string(spec, 'specification_url')
assert_non_empty_list(spec, 'test_expansion')
# Validate spec's test expansion.
used_spec_names = {}
for spec_exp in spec['test_expansion']:
details['object'] = spec_exp
assert_non_empty_string(spec_exp, 'name')
# The name is unique in same expansion group.
assert_value_unique_in((spec_exp['expansion'], spec_exp['name']),
used_spec_names)
assert_contains_only_fields(spec_exp, valid_test_expansion_fields)
for artifact in test_expansion_schema:
details['test_expansion_field'] = artifact
assert_valid_artifact(spec_exp, artifact,
test_expansion_schema[artifact])
del details['test_expansion_field']
# Validate the test_expansion schema members.
details['object'] = test_expansion_schema
assert_contains_only_fields(test_expansion_schema, ['expansion',
'source_scheme',
'opt_in_method',
'context_nesting',
'redirection',
'subresource',
'origin',
'expectation'])
# Validate excluded tests.
details['object'] = excluded_tests
for excluded_test_expansion in excluded_tests:
assert_contains_only_fields(excluded_test_expansion,
valid_test_expansion_fields)
del details['object']
def assert_valid_spec_json(spec_json):
error_details = {}
try:
validate(spec_json, error_details)
except AssertionError, err:
print 'ERROR:', err.message
print json.dumps(error_details, indent=4)
sys.exit(1)
def main():
spec_json = load_spec_json();
assert_valid_spec_json(spec_json)
print "Spec JSON is valid."
if __name__ == '__main__':
main()
| mpl-2.0 |
priyankarani/trytond-sale-payment-gateway | tests/test_sale.py | 2 | 66422 | # -*- coding: utf-8 -*-
import os
import unittest
import datetime
from decimal import Decimal
from dateutil.relativedelta import relativedelta
import pycountry
import trytond.tests.test_tryton
from trytond.tests.test_tryton import POOL, USER, DB_NAME, CONTEXT
from trytond.transaction import Transaction
from trytond.exceptions import UserError
if 'DB_NAME' not in os.environ:
os.environ['TRYTOND_DATABASE_URI'] = 'sqlite://'
os.environ['DB_NAME'] = ':memory:'
class BaseTestCase(unittest.TestCase):
'''
Base Test Case sale payment module.
'''
def setUp(self):
"""
Set up data used in the tests.
this method is called before each test function execution.
"""
trytond.tests.test_tryton.install_module('sale_payment_gateway')
self.Currency = POOL.get('currency.currency')
self.Company = POOL.get('company.company')
self.Party = POOL.get('party.party')
self.User = POOL.get('res.user')
self.ProductTemplate = POOL.get('product.template')
self.Uom = POOL.get('product.uom')
self.ProductCategory = POOL.get('product.category')
self.Product = POOL.get('product.product')
self.Country = POOL.get('country.country')
self.Subdivision = POOL.get('country.subdivision')
self.Employee = POOL.get('company.employee')
self.Journal = POOL.get('account.journal')
self.PaymentGateway = POOL.get('payment_gateway.gateway')
self.Sale = POOL.get('sale.sale')
self.SalePayment = POOL.get('sale.payment')
self.SaleConfiguration = POOL.get('sale.configuration')
self.Group = POOL.get('res.group')
def _create_fiscal_year(self, date=None, company=None):
"""
Creates a fiscal year and requried sequences
"""
FiscalYear = POOL.get('account.fiscalyear')
Sequence = POOL.get('ir.sequence')
SequenceStrict = POOL.get('ir.sequence.strict')
Company = POOL.get('company.company')
if date is None:
date = datetime.date.today()
if company is None:
company, = Company.search([], limit=1)
invoice_sequence, = SequenceStrict.create([{
'name': '%s' % date.year,
'code': 'account.invoice',
'company': company,
}])
fiscal_year, = FiscalYear.create([{
'name': '%s' % date.year,
'start_date': date + relativedelta(month=1, day=1),
'end_date': date + relativedelta(month=12, day=31),
'company': company,
'post_move_sequence': Sequence.create([{
'name': '%s' % date.year,
'code': 'account.move',
'company': company,
}])[0],
'out_invoice_sequence': invoice_sequence,
'in_invoice_sequence': invoice_sequence,
'out_credit_note_sequence': invoice_sequence,
'in_credit_note_sequence': invoice_sequence,
}])
FiscalYear.create_period([fiscal_year])
return fiscal_year
def _create_coa_minimal(self, company):
"""Create a minimal chart of accounts
"""
AccountTemplate = POOL.get('account.account.template')
Account = POOL.get('account.account')
account_create_chart = POOL.get(
'account.create_chart', type="wizard")
account_template, = AccountTemplate.search(
[('parent', '=', None)]
)
session_id, _, _ = account_create_chart.create()
create_chart = account_create_chart(session_id)
create_chart.account.account_template = account_template
create_chart.account.company = company
create_chart.transition_create_account()
receivable, = Account.search([
('kind', '=', 'receivable'),
('company', '=', company),
])
payable, = Account.search([
('kind', '=', 'payable'),
('company', '=', company),
])
create_chart.properties.company = company
create_chart.properties.account_receivable = receivable
create_chart.properties.account_payable = payable
create_chart.transition_create_properties()
def _get_account_by_kind(self, kind, company=None, silent=True):
"""Returns an account with given spec
:param kind: receivable/payable/expense/revenue
:param silent: dont raise error if account is not found
"""
Account = POOL.get('account.account')
Company = POOL.get('company.company')
if company is None:
company, = Company.search([], limit=1)
accounts = Account.search([
('kind', '=', kind),
('company', '=', company)
], limit=1)
if not accounts and not silent:
raise Exception("Account not found")
return accounts[0] if accounts else False
def _create_payment_term(self):
"""Create a simple payment term with all advance
"""
PaymentTerm = POOL.get('account.invoice.payment_term')
return PaymentTerm.create([{
'name': 'Direct',
'lines': [('create', [{'type': 'remainder'}])]
}])
def _create_countries(self, count=5):
"""
Create some sample countries and subdivisions
"""
for country in list(pycountry.countries)[0:count]:
countries = self.Country.create([{
'name': country.name,
'code': country.alpha2,
}])
try:
divisions = pycountry.subdivisions.get(
country_code=country.alpha2
)
except KeyError:
pass
else:
for subdivision in list(divisions)[0:count]:
self.Subdivision.create([{
'country': countries[0].id,
'name': subdivision.name,
'code': subdivision.code,
'type': subdivision.type.lower(),
}])
def create_payment_profile(self, party, gateway):
"""
Create a payment profile for the party
"""
AddPaymentProfileWizard = POOL.get(
'party.party.payment_profile.add', type='wizard'
)
# create a profile
profile_wiz = AddPaymentProfileWizard(
AddPaymentProfileWizard.create()[0]
)
profile_wiz.card_info.party = party.id
profile_wiz.card_info.address = party.addresses[0].id
profile_wiz.card_info.provider = gateway.provider
profile_wiz.card_info.gateway = gateway
profile_wiz.card_info.owner = party.name
profile_wiz.card_info.number = '4111111111111111'
profile_wiz.card_info.expiry_month = '11'
profile_wiz.card_info.expiry_year = '2018'
profile_wiz.card_info.csc = '353'
with Transaction().set_context(return_profile=True):
return profile_wiz.transition_add()
def setup_defaults(self):
"""Creates default data for testing
"""
self.currency, = self.Currency.create([{
'name': 'US Dollar',
'code': 'USD',
'symbol': '$',
}])
with Transaction().set_context(company=None):
company_party, = self.Party.create([{
'name': 'openlabs'
}])
employee_party, = self.Party.create([{
'name': 'Jim'
}])
self.company, = self.Company.create([{
'party': company_party,
'currency': self.currency,
}])
self.employee, = self.Employee.create([{
'party': employee_party.id,
'company': self.company.id,
}])
self.User.write([self.User(USER)], {
'company': self.company,
'main_company': self.company,
'employees': [('add', [self.employee.id])],
})
# Write employee separately as employees needs to be saved first
self.User.write([self.User(USER)], {
'employee': self.employee.id,
})
CONTEXT.update(self.User.get_preferences(context_only=True))
# Create Fiscal Year
self._create_fiscal_year(company=self.company.id)
# Create Chart of Accounts
self._create_coa_minimal(company=self.company.id)
# Create a payment term
self.payment_term, = self._create_payment_term()
self.cash_journal, = self.Journal.search(
[('type', '=', 'cash')], limit=1
)
self.country, = self.Country.create([{
'name': 'United States of America',
'code': 'US',
}])
self.subdivision, = self.Subdivision.create([{
'country': self.country.id,
'name': 'California',
'code': 'CA',
'type': 'state',
}])
# Create party
self.party, = self.Party.create([{
'name': 'Bruce Wayne',
'addresses': [('create', [{
'name': 'Bruce Wayne',
'city': 'Gotham',
'country': self.country.id,
'subdivision': self.subdivision.id,
}])],
'customer_payment_term': self.payment_term.id,
'account_receivable': self._get_account_by_kind(
'receivable').id,
'contact_mechanisms': [('create', [
{'type': 'mobile', 'value': '8888888888'},
])],
}])
# Add user to sale_admin group so that he can create payments.
admin_group, = self.Group.search([('name', '=', 'Sales Administrator')])
self.User.write([self.User(USER)], {
'groups': [('add', [admin_group.id])]
})
with Transaction().set_context(use_dummy=True):
self.dummy_gateway, = self.PaymentGateway.create([{
'name': 'Dummy Gateway',
'journal': self.cash_journal.id,
'provider': 'dummy',
'method': 'credit_card',
}])
self.dummy_cc_payment_profile = self.create_payment_profile(
self.party, self.dummy_gateway
)
self.cash_gateway, = self.PaymentGateway.create([{
'name': 'Cash Gateway',
'journal': self.cash_journal.id,
'provider': 'self',
'method': 'manual',
}])
class TestSale(BaseTestCase):
"""Test Sale with Payments
"""
def _create_sale(self, payment_authorize_on, payment_capture_on):
"""Create test sale with provided payment_authorized and payment
capture options.
"""
sale, = self.Sale.create([{
'reference': 'Test Sale',
'payment_term': self.payment_term,
'currency': self.currency,
'party': self.party.id,
'invoice_address': self.party.addresses[0].id,
'shipment_address': self.party.addresses[0].id,
'company': self.company.id,
'invoice_method': 'manual',
'shipment_method': 'manual',
'payment_authorize_on': payment_authorize_on,
'payment_capture_on': payment_capture_on,
'lines': [('create', [{
'description': 'Some item',
'unit_price': Decimal('200'),
'quantity': 1
}])]
}])
return sale
def _confirm_sale_by_completing_payments(self, sales):
"""Confirm sale and complete payments.
"""
self.Sale.confirm(sales)
self.Sale.process_all_pending_payments()
def _process_sale_by_completing_payments(self, sales):
"""Process sale and complete payments.
"""
self.Sale.proceed(sales)
self.Sale.process_all_pending_payments()
def test_0005_single_payment_CASE1(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'manual'
Payment Capture On: | 'manual'
===================================
Total Payment Lines | 1
Payment 1 | $200
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='manual',
payment_capture_on='manual',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
# Create a payment
payment_details = {
'sale': sale.id,
'amount': Decimal('200'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
}
payment_details.update({
'credit_account':
self.SalePayment(
**payment_details).on_change_with_credit_account()
})
payment = self.SalePayment(**payment_details)
payment.save()
self.assertTrue(payment.description.startswith("Paid by Card"))
self.assertTrue(payment.credit_account)
self.assertEqual(
payment.credit_account, self.party.account_receivable)
self.assertEqual(payment.company.id, sale.company.id)
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
# confirm and process the sale, payment will not go
# through because capture and auth is manual.
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0010_single_payment_CASE2(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'manual'
Payment Capture On: | 'sale_confirm'
===================================
Total Payment Lines | 1
Payment 1 | $200
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='manual',
payment_capture_on='sale_confirm',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
# Create a payment
payment, = self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('200'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0015_single_payment_CASE3(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'manual'
Payment Capture On: | 'sale_process'
===================================
Total Payment Lines | 1
Payment 1 | $200
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='manual',
payment_capture_on='sale_process',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
payment, = self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('200'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0020_single_payment_CASE4(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_confirm'
Payment Capture On: | 'manual'
===================================
Total Payment Lines | 1
Payment 1 | $200
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_confirm',
payment_capture_on='manual',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
# Create a payment
payment, = self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('200'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('200'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('200'))
def test_0025_single_payment_CASE5(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_confirm'
Payment Capture On: | 'sale_confirm'
===================================
Total Payment Lines | 1
Payment 1 | $200
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_confirm',
payment_capture_on='sale_confirm',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
# Create a payment
payment, = self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('200'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
# No authorized amount becasue it was captured after that.
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0030_single_payment_CASE6(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_confirm'
Payment Capture On: | 'sale_process'
===================================
Total Payment Lines | 1
Payment 1 | $200
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_confirm',
payment_capture_on='sale_process',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
payment, = self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('200'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('200'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0035_single_payment_CASE7(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_process'
Payment Capture On: | 'manual'
===================================
Total Payment Lines | 1
Payment 1 | $200
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_process',
payment_capture_on='manual',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
payment, = self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('200'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('200'))
def test_0040_single_payment_CASE8(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_process'
Payment Capture On: | 'sale_confirm'
===================================
Total Payment Lines | 1
Payment 1 | $200
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale_config = self.SaleConfiguration(1)
sale_config.payment_authorize_on = 'sale_process'
sale_config.payment_capture_on = 'sale_confirm'
# This is invalid case so it should raise user error.
with self.assertRaises(UserError):
sale_config.save()
def test_0045_single_payment_CASE9(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_process'
Payment Capture On: | 'sale_process'
===================================
Total Payment Lines | 1
Payment 1 | $200
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_process',
payment_capture_on='sale_process',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
payment, = self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('200'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
# Authorize amount is zero because payment captured after
# that.
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0050_multi_payment_CASE1(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'manual'
Payment Capture On: | 'manual'
===================================
Total Payment Lines | 2
Payment 1 (manual) | $100
Payment 2 (cc) | $100
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='manual',
payment_capture_on='manual',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
payment_1, payment_2 = self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.cash_gateway,
'credit_account': self.party.account_receivable.id,
}, {
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertTrue(payment_1.description.startswith("Paid by Cash"))
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
# confirm and process the sale, payment will not go
# through because capture and auth is manual.
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('100'))
self.assertEqual(sale.payment_collected, Decimal('100'))
self.assertEqual(sale.payment_captured, Decimal('100'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0055_multi_payment_CASE2(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'manual'
Payment Capture On: | 'sale_confirm'
===================================
Total Payment Lines | 2
Payment 1 (manual) | $100
Payment 2 (cc) | $100
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='manual',
payment_capture_on='sale_confirm',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.cash_gateway,
'credit_account': self.party.account_receivable.id,
}, {
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0060_multi_payment_CASE3(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'manual'
Payment Capture On: | 'sale_process'
===================================
Total Payment Lines | 2
Payment 1 (manual) | $100
Payment 2 (cc) | $100
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='manual',
payment_capture_on='sale_process',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.cash_gateway,
'credit_account': self.party.account_receivable.id,
}, {
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0065_multi_payment_CASE4(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_confirm'
Payment Capture On: | 'manual'
===================================
Total Payment Lines | 2
Payment 1 (manual) | $100
Payment 2 (cc) | $100
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_confirm',
payment_capture_on='manual',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.cash_gateway,
'credit_account': self.party.account_receivable.id,
}, {
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('100'))
self.assertEqual(sale.payment_collected, Decimal('100'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('100'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('100'))
self.assertEqual(sale.payment_authorized, Decimal('100'))
def test_0070_multi_payment_CASE5(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_confirm'
Payment Capture On: | 'sale_confirm'
===================================
Total Payment Lines | 2
Payment 1 (manual) | $100
Payment 2 (cc) | $100
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_confirm',
payment_capture_on='sale_confirm',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.cash_gateway,
'credit_account': self.party.account_receivable.id,
}, {
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
# No authorized amount becasue it was captured after that.
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0075_multi_payment_CASE6(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_confirm'
Payment Capture On: | 'sale_process'
===================================
Total Payment Lines | 2
Payment 1 (manual) | $100
Payment 2 (cc) | $100
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_confirm',
payment_capture_on='sale_process',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.cash_gateway,
'credit_account': self.party.account_receivable.id,
}, {
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('100'))
self.assertEqual(sale.payment_collected, Decimal('100'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('100'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0080_multi_payment_CASE7(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_process'
Payment Capture On: | 'manual'
===================================
Total Payment Lines | 2
Payment 1 (manual) | $100
Payment 2 (cc) | $100
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_process',
payment_capture_on='manual',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.cash_gateway,
'credit_account': self.party.account_receivable.id,
}, {
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('100'))
self.assertEqual(sale.payment_authorized, Decimal('100'))
def test_0085_multi_payment_CASE8(self):
"""
===================================
Total Sale Amount | $200
Payment Authorize On: | 'sale_process'
Payment Capture On: | 'sale_process'
===================================
Total Payment Lines | 2
Payment 1 (manual) | $100
Payment 2 (cc) | $100
===================================
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_process',
payment_capture_on='sale_process',
)
self.assertEqual(sale.total_amount, Decimal('200'))
self.assertEqual(sale.payment_total, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
self.SalePayment.create([{
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.cash_gateway,
'credit_account': self.party.account_receivable.id,
}, {
'sale': sale.id,
'amount': Decimal('100'),
'gateway': self.dummy_gateway,
'payment_profile': self.dummy_cc_payment_profile.id,
'credit_account': self.party.account_receivable.id,
}])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self.Sale.quote([sale])
self._confirm_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('200'))
self.assertEqual(sale.payment_collected, Decimal('0'))
self.assertEqual(sale.payment_captured, Decimal('0'))
self.assertEqual(sale.payment_authorized, Decimal('0'))
with Transaction().set_context(company=self.company.id):
self._process_sale_by_completing_payments([sale])
self.assertEqual(sale.payment_total, Decimal('200'))
self.assertEqual(sale.payment_available, Decimal('0'))
self.assertEqual(sale.payment_collected, Decimal('200'))
self.assertEqual(sale.payment_captured, Decimal('200'))
# Authorize amount is zero because payment captured after
# that.
self.assertEqual(sale.payment_authorized, Decimal('0'))
def test_0090_test_duplicate_sale(self):
"""
Test if payment_processing_state is not copied in duplicate sales
"""
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_confirm',
payment_capture_on='sale_process',
)
sale.payment_processing_state = 'waiting_for_capture'
sale.save()
self.assertEqual(
sale.payment_processing_state, 'waiting_for_capture')
new_sales = self.Sale.copy([sale])
self.assertTrue(new_sales)
self.assertEqual(len(new_sales), 1)
self.assertIsNone(new_sales[0].payment_processing_state)
self.assertFalse(new_sales[0].payments)
def test_0100_test_sale_payment_wizard(self):
"""
Test the wizard used to create sale payments
"""
SalePayment = POOL.get('sale.payment')
SalePaymentWizard = POOL.get('sale.payment.add', type="wizard")
PaymentProfile = POOL.get('party.payment_profile')
with Transaction().start(DB_NAME, USER, context=CONTEXT):
self.setup_defaults()
sale = self._create_sale(
payment_authorize_on='sale_process',
payment_capture_on='sale_process',
)
# Case I: Manual Payment
sale_payment_wizard1 = SalePaymentWizard(
SalePaymentWizard.create()[0]
)
# Test default_payment_info
with Transaction().set_context(active_id=sale.id):
defaults = sale_payment_wizard1.default_payment_info()
self.assertEqual(defaults['sale'], sale.id)
self.assertEqual(defaults['party'], sale.party.id)
self.assertEqual(
defaults['currency_digits'], sale.currency_digits
)
sale_payment_wizard1.payment_info.sale = sale.id
sale_payment_wizard1.payment_info.credit_account = \
sale.party.account_receivable.id
sale_payment_wizard1.payment_info.party = sale.party.id
sale_payment_wizard1.payment_info.gateway = self.cash_gateway.id
sale_payment_wizard1.payment_info.method = self.cash_gateway.method
sale_payment_wizard1.payment_info.amount = 100
sale_payment_wizard1.payment_info.payment_profile = None
sale_payment_wizard1.payment_info.currency_digits = \
sale_payment_wizard1.payment_info.get_currency_digits(
name='currency_digits'
)
sale_payment_wizard1.payment_info.reference = 'Reference-1'
sale_payment_wizard1.payment_info.gift_card = None
with Transaction().set_context(active_id=sale.id):
sale_payment_wizard1.transition_add()
payment1, = SalePayment.search([
('sale', '=', sale.id),
('company', '=', self.company.id),
], limit=1)
self.assertEqual(payment1.amount, 100)
self.assertEqual(payment1.party, sale.party)
self.assertEqual(payment1.method, self.cash_gateway.method)
self.assertEqual(payment1.provider, self.cash_gateway.provider)
self.assertEqual(payment1.reference, 'Reference-1')
# Case II: Credit Card Payment with new payment profile
sale_payment_wizard2 = SalePaymentWizard(
SalePaymentWizard.create()[0]
)
# Test if party has 1 payment profile already created
payment_profiles = PaymentProfile.search([
('party', '=', sale.party.id)
])
self.assertEqual(len(payment_profiles), 1)
sale_payment_wizard2.payment_info.sale = sale.id
sale_payment_wizard2.payment_info.credit_account = \
sale.party.account_receivable.id
sale_payment_wizard2.payment_info.party = sale.party.id
sale_payment_wizard2.payment_info.gateway = self.dummy_gateway.id
sale_payment_wizard2.payment_info.method = \
sale_payment_wizard2.payment_info.get_method()
sale_payment_wizard2.payment_info.use_existing_card = False
sale_payment_wizard2.payment_info.amount = 55
sale_payment_wizard2.payment_info.owner = sale.party.name
sale_payment_wizard2.payment_info.number = '4111111111111111'
sale_payment_wizard2.payment_info.expiry_month = '01'
sale_payment_wizard2.payment_info.expiry_year = '2018'
sale_payment_wizard2.payment_info.csc = '911'
sale_payment_wizard2.payment_info.payment_profile = None
sale_payment_wizard2.payment_info.reference = 'Reference-2'
sale_payment_wizard2.payment_info.gift_card = None
with Transaction().set_context(active_id=sale.id):
sale_payment_wizard2.transition_add()
payment2, = SalePayment.search([
('sale', '=', sale.id),
('amount', '=', 55),
('company', '=', self.company.id),
], limit=1)
self.assertEqual(payment2.method, self.dummy_gateway.method)
self.assertEqual(payment2.provider, self.dummy_gateway.provider)
# Test if new payment profile was created for party
new_payment_profile = PaymentProfile.search([
('party', '=', sale.party.id)
], order=[('id', 'DESC')])
self.assertEqual(len(new_payment_profile), 2)
self.assertEqual(
new_payment_profile[0], payment2.payment_profile
)
# Case III: Credit Card Payment with existing card
sale_payment_wizard3 = SalePaymentWizard(
SalePaymentWizard.create()[0]
)
sale_payment_wizard3.payment_info.sale = sale.id
sale_payment_wizard3.payment_info.credit_account = \
sale.party.account_receivable.id
sale_payment_wizard3.payment_info.party = sale.party.id
sale_payment_wizard3.payment_info.gateway = self.dummy_gateway.id
sale_payment_wizard3.payment_info.method = self.dummy_gateway.method
sale_payment_wizard3.payment_info.use_existing_card = True
sale_payment_wizard3.payment_info.amount = 45
sale_payment_wizard3.payment_info.payment_profile = \
new_payment_profile[0]
sale_payment_wizard3.payment_info.reference = 'Reference-3'
sale_payment_wizard3.payment_info.gift_card = None
with Transaction().set_context(active_id=sale.id):
sale_payment_wizard3.transition_add()
payment3, = SalePayment.search([
('sale', '=', sale.id),
('amount', '=', 45),
('company', '=', self.company.id),
], limit=1)
self.assertEqual(payment3.method, self.dummy_gateway.method)
self.assertEqual(payment3.provider, self.dummy_gateway.provider)
self.assertEqual(
new_payment_profile[0], payment3.payment_profile
)
self.assertEqual(SalePayment.search([], count=True), 3)
# Delete a payment
SalePayment.delete([payment3])
self.assertEqual(SalePayment.search([], count=True), 2)
def suite():
"""
Define suite
"""
test_suite = trytond.tests.test_tryton.suite()
test_suite.addTests(
unittest.TestLoader().loadTestsFromTestCase(TestSale)
)
return test_suite
if __name__ == '__main__':
unittest.TextTestRunner(verbosity=2).run(suite())
| bsd-3-clause |
kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/scipy/_lib/_threadsafety.py | 71 | 1530 | from __future__ import division, print_function, absolute_import
import threading
import scipy._lib.decorator
__all__ = ['ReentrancyError', 'ReentrancyLock', 'non_reentrant']
class ReentrancyError(RuntimeError):
pass
class ReentrancyLock(object):
"""
Threading lock that raises an exception for reentrant calls.
Calls from different threads are serialized, and nested calls from the
same thread result to an error.
The object can be used as a context manager, or to decorate functions
via the decorate() method.
"""
def __init__(self, err_msg):
self._rlock = threading.RLock()
self._entered = False
self._err_msg = err_msg
def __enter__(self):
self._rlock.acquire()
if self._entered:
self._rlock.release()
raise ReentrancyError(self._err_msg)
self._entered = True
def __exit__(self, type, value, traceback):
self._entered = False
self._rlock.release()
def decorate(self, func):
def caller(func, *a, **kw):
with self:
return func(*a, **kw)
return scipy._lib.decorator.decorate(func, caller)
def non_reentrant(err_msg=None):
"""
Decorate a function with a threading lock and prevent reentrant calls.
"""
def decorator(func):
msg = err_msg
if msg is None:
msg = "%s is not re-entrant" % func.__name__
lock = ReentrancyLock(msg)
return lock.decorate(func)
return decorator
| gpl-3.0 |
sauloal/cnidaria | scripts/venv/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py | 317 | 6189 | import base64
import io
import json
import zlib
from pip._vendor.requests.structures import CaseInsensitiveDict
from .compat import HTTPResponse, pickle
def _b64_encode_bytes(b):
return base64.b64encode(b).decode("ascii")
def _b64_encode_str(s):
return _b64_encode_bytes(s.encode("utf8"))
def _b64_decode_bytes(b):
return base64.b64decode(b.encode("ascii"))
def _b64_decode_str(s):
return _b64_decode_bytes(s).decode("utf8")
class Serializer(object):
def dumps(self, request, response, body=None):
response_headers = CaseInsensitiveDict(response.headers)
if body is None:
body = response.read(decode_content=False)
# NOTE: 99% sure this is dead code. I'm only leaving it
# here b/c I don't have a test yet to prove
# it. Basically, before using
# `cachecontrol.filewrapper.CallbackFileWrapper`,
# this made an effort to reset the file handle. The
# `CallbackFileWrapper` short circuits this code by
# setting the body as the content is consumed, the
# result being a `body` argument is *always* passed
# into cache_response, and in turn,
# `Serializer.dump`.
response._fp = io.BytesIO(body)
data = {
"response": {
"body": _b64_encode_bytes(body),
"headers": dict(
(_b64_encode_str(k), _b64_encode_str(v))
for k, v in response.headers.items()
),
"status": response.status,
"version": response.version,
"reason": _b64_encode_str(response.reason),
"strict": response.strict,
"decode_content": response.decode_content,
},
}
# Construct our vary headers
data["vary"] = {}
if "vary" in response_headers:
varied_headers = response_headers['vary'].split(',')
for header in varied_headers:
header = header.strip()
data["vary"][header] = request.headers.get(header, None)
# Encode our Vary headers to ensure they can be serialized as JSON
data["vary"] = dict(
(_b64_encode_str(k), _b64_encode_str(v) if v is not None else v)
for k, v in data["vary"].items()
)
return b",".join([
b"cc=2",
zlib.compress(
json.dumps(
data, separators=(",", ":"), sort_keys=True,
).encode("utf8"),
),
])
def loads(self, request, data):
# Short circuit if we've been given an empty set of data
if not data:
return
# Determine what version of the serializer the data was serialized
# with
try:
ver, data = data.split(b",", 1)
except ValueError:
ver = b"cc=0"
# Make sure that our "ver" is actually a version and isn't a false
# positive from a , being in the data stream.
if ver[:3] != b"cc=":
data = ver + data
ver = b"cc=0"
# Get the version number out of the cc=N
ver = ver.split(b"=", 1)[-1].decode("ascii")
# Dispatch to the actual load method for the given version
try:
return getattr(self, "_loads_v{0}".format(ver))(request, data)
except AttributeError:
# This is a version we don't have a loads function for, so we'll
# just treat it as a miss and return None
return
def prepare_response(self, request, cached):
"""Verify our vary headers match and construct a real urllib3
HTTPResponse object.
"""
# Special case the '*' Vary value as it means we cannot actually
# determine if the cached response is suitable for this request.
if "*" in cached.get("vary", {}):
return
# Ensure that the Vary headers for the cached response match our
# request
for header, value in cached.get("vary", {}).items():
if request.headers.get(header, None) != value:
return
body_raw = cached["response"].pop("body")
try:
body = io.BytesIO(body_raw)
except TypeError:
# This can happen if cachecontrol serialized to v1 format (pickle)
# using Python 2. A Python 2 str(byte string) will be unpickled as
# a Python 3 str (unicode string), which will cause the above to
# fail with:
#
# TypeError: 'str' does not support the buffer interface
body = io.BytesIO(body_raw.encode('utf8'))
return HTTPResponse(
body=body,
preload_content=False,
**cached["response"]
)
def _loads_v0(self, request, data):
# The original legacy cache data. This doesn't contain enough
# information to construct everything we need, so we'll treat this as
# a miss.
return
def _loads_v1(self, request, data):
try:
cached = pickle.loads(data)
except ValueError:
return
return self.prepare_response(request, cached)
def _loads_v2(self, request, data):
try:
cached = json.loads(zlib.decompress(data).decode("utf8"))
except ValueError:
return
# We need to decode the items that we've base64 encoded
cached["response"]["body"] = _b64_decode_bytes(
cached["response"]["body"]
)
cached["response"]["headers"] = dict(
(_b64_decode_str(k), _b64_decode_str(v))
for k, v in cached["response"]["headers"].items()
)
cached["response"]["reason"] = _b64_decode_str(
cached["response"]["reason"],
)
cached["vary"] = dict(
(_b64_decode_str(k), _b64_decode_str(v) if v is not None else v)
for k, v in cached["vary"].items()
)
return self.prepare_response(request, cached)
| mit |
v0lk3r/ansible-modules-core | cloud/amazon/cloudformation.py | 56 | 14338 | #!/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: cloudformation
short_description: Create or delete an AWS CloudFormation stack
description:
- Launches an AWS CloudFormation stack and waits for it complete.
version_added: "1.1"
options:
stack_name:
description:
- name of the cloudformation stack
required: true
disable_rollback:
description:
- If a stacks fails to form, rollback will remove the stack
required: false
default: "false"
choices: [ "true", "false" ]
template_parameters:
description:
- a list of hashes of all the template variables for the stack
required: false
default: {}
state:
description:
- If state is "present", stack will be created. If state is "present" and if stack exists and template has changed, it will be updated.
If state is "absent", stack will be removed.
required: true
template:
description:
- The local path of the cloudformation template. This parameter is mutually exclusive with 'template_url'. Either one of them is required if "state" parameter is "present"
Must give full path to the file, relative to the working directory. If using roles this may look like "roles/cloudformation/files/cloudformation-example.json"
required: false
default: null
notification_arns:
description:
- The Simple Notification Service (SNS) topic ARNs to publish stack related events.
required: false
default: null
version_added: "2.0"
stack_policy:
description:
- the path of the cloudformation stack policy
required: false
default: null
version_added: "1.9"
tags:
description:
- Dictionary of tags to associate with stack and it's resources during stack creation. Cannot be updated later.
Requires at least Boto version 2.6.0.
required: false
default: null
version_added: "1.4"
region:
description:
- The AWS region to use. If not specified then the value of the AWS_REGION or EC2_REGION environment variable, if any, is used.
required: true
aliases: ['aws_region', 'ec2_region']
version_added: "1.5"
template_url:
description:
- Location of file containing the template body. The URL must point to a template (max size 307,200 bytes) located in an S3 bucket in the same region as the stack. This parameter is mutually exclusive with 'template'. Either one of them is required if "state" parameter is "present"
required: false
version_added: "2.0"
template_format:
description:
- For local templates, allows specification of json or yaml format
default: json
choices: [ json, yaml ]
required: false
version_added: "2.0"
author: "James S. Martin (@jsmartin)"
extends_documentation_fragment: aws
'''
EXAMPLES = '''
# Basic task example
- name: launch ansible cloudformation example
cloudformation:
stack_name: "ansible-cloudformation"
state: "present"
region: "us-east-1"
disable_rollback: true
template: "files/cloudformation-example.json"
template_parameters:
KeyName: "jmartin"
DiskType: "ephemeral"
InstanceType: "m1.small"
ClusterSize: 3
tags:
Stack: "ansible-cloudformation"
# Basic role example
- name: launch ansible cloudformation example
cloudformation:
stack_name: "ansible-cloudformation"
state: "present"
region: "us-east-1"
disable_rollback: true
template: "roles/cloudformation/files/cloudformation-example.json"
template_parameters:
KeyName: "jmartin"
DiskType: "ephemeral"
InstanceType: "m1.small"
ClusterSize: 3
tags:
Stack: "ansible-cloudformation"
# Removal example
- name: tear down old deployment
cloudformation:
stack_name: "ansible-cloudformation-old"
state: "absent"
# Use a template from a URL
- name: launch ansible cloudformation example
cloudformation:
stack_name="ansible-cloudformation" state=present
region=us-east-1 disable_rollback=true
template_url=https://s3.amazonaws.com/my-bucket/cloudformation.template
args:
template_parameters:
KeyName: jmartin
DiskType: ephemeral
InstanceType: m1.small
ClusterSize: 3
tags:
Stack: ansible-cloudformation
'''
import json
import time
import yaml
try:
import boto
import boto.cloudformation.connection
HAS_BOTO = True
except ImportError:
HAS_BOTO = False
def boto_exception(err):
'''generic error message handler'''
if hasattr(err, 'error_message'):
error = err.error_message
elif hasattr(err, 'message'):
error = err.message
else:
error = '%s: %s' % (Exception, err)
return error
def boto_version_required(version_tuple):
parts = boto.Version.split('.')
boto_version = []
try:
for part in parts:
boto_version.append(int(part))
except:
boto_version.append(-1)
return tuple(boto_version) >= tuple(version_tuple)
def stack_operation(cfn, stack_name, operation):
'''gets the status of a stack while it is created/updated/deleted'''
existed = []
result = {}
operation_complete = False
while operation_complete == False:
try:
stack = invoke_with_throttling_retries(cfn.describe_stacks, stack_name)[0]
existed.append('yes')
except:
if 'yes' in existed:
result = dict(changed=True,
output='Stack Deleted',
events=map(str, list(stack.describe_events())))
else:
result = dict(changed= True, output='Stack Not Found')
break
if '%s_COMPLETE' % operation == stack.stack_status:
result = dict(changed=True,
events = map(str, list(stack.describe_events())),
output = 'Stack %s complete' % operation)
break
if 'ROLLBACK_COMPLETE' == stack.stack_status or '%s_ROLLBACK_COMPLETE' % operation == stack.stack_status:
result = dict(changed=True, failed=True,
events = map(str, list(stack.describe_events())),
output = 'Problem with %s. Rollback complete' % operation)
break
elif '%s_FAILED' % operation == stack.stack_status:
result = dict(changed=True, failed=True,
events = map(str, list(stack.describe_events())),
output = 'Stack %s failed' % operation)
break
elif '%s_ROLLBACK_FAILED' % operation == stack.stack_status:
result = dict(changed=True, failed=True,
events = map(str, list(stack.describe_events())),
output = 'Stack %s rollback failed' % operation)
break
else:
time.sleep(5)
return result
IGNORE_CODE = 'Throttling'
MAX_RETRIES=3
def invoke_with_throttling_retries(function_ref, *argv):
retries=0
while True:
try:
retval=function_ref(*argv)
return retval
except boto.exception.BotoServerError, e:
if e.code != IGNORE_CODE or retries==MAX_RETRIES:
raise e
time.sleep(5 * (2**retries))
retries += 1
def main():
argument_spec = ec2_argument_spec()
argument_spec.update(dict(
stack_name=dict(required=True),
template_parameters=dict(required=False, type='dict', default={}),
state=dict(default='present', choices=['present', 'absent']),
template=dict(default=None, required=False),
notification_arns=dict(default=None, required=False),
stack_policy=dict(default=None, required=False),
disable_rollback=dict(default=False, type='bool'),
template_url=dict(default=None, required=False),
template_format=dict(default='json', choices=['json', 'yaml'], required=False),
tags=dict(default=None)
)
)
module = AnsibleModule(
argument_spec=argument_spec,
mutually_exclusive=[['template_url', 'template']],
)
if not HAS_BOTO:
module.fail_json(msg='boto required for this module')
if module.params['template'] is None and module.params['template_url'] is None:
module.fail_json(msg='Either template or template_url expected')
state = module.params['state']
stack_name = module.params['stack_name']
if module.params['template'] is None and module.params['template_url'] is None:
if state == 'present':
module.fail_json('Module parameter "template" or "template_url" is required if "state" is "present"')
if module.params['template'] is not None:
template_body = open(module.params['template'], 'r').read()
else:
template_body = None
if module.params['template_format'] == 'yaml':
if template_body is None:
module.fail_json(msg='yaml format only supported for local templates')
else:
template_body = json.dumps(yaml.load(template_body), indent=2)
notification_arns = module.params['notification_arns']
if module.params['stack_policy'] is not None:
stack_policy_body = open(module.params['stack_policy'], 'r').read()
else:
stack_policy_body = None
disable_rollback = module.params['disable_rollback']
template_parameters = module.params['template_parameters']
tags = module.params['tags']
template_url = module.params['template_url']
region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module)
kwargs = dict()
if tags is not None:
if not boto_version_required((2,6,0)):
module.fail_json(msg='Module parameter "tags" requires at least Boto version 2.6.0')
kwargs['tags'] = tags
# convert the template parameters ansible passes into a tuple for boto
template_parameters_tup = [(k, v) for k, v in template_parameters.items()]
stack_outputs = {}
try:
cfn = boto.cloudformation.connect_to_region(
region,
**aws_connect_kwargs
)
except boto.exception.NoAuthHandlerFound, e:
module.fail_json(msg=str(e))
update = False
result = {}
operation = None
# if state is present we are going to ensure that the stack is either
# created or updated
if state == 'present':
try:
cfn.create_stack(stack_name, parameters=template_parameters_tup,
template_body=template_body,
notification_arns=notification_arns,
stack_policy_body=stack_policy_body,
template_url=template_url,
disable_rollback=disable_rollback,
capabilities=['CAPABILITY_IAM'],
**kwargs)
operation = 'CREATE'
except Exception, err:
error_msg = boto_exception(err)
if 'AlreadyExistsException' in error_msg or 'already exists' in error_msg:
update = True
else:
module.fail_json(msg=error_msg)
if not update:
result = stack_operation(cfn, stack_name, operation)
# if the state is present and the stack already exists, we try to update it
# AWS will tell us if the stack template and parameters are the same and
# don't need to be updated.
if update:
try:
cfn.update_stack(stack_name, parameters=template_parameters_tup,
template_body=template_body,
notification_arns=notification_arns,
stack_policy_body=stack_policy_body,
disable_rollback=disable_rollback,
template_url=template_url,
capabilities=['CAPABILITY_IAM'])
operation = 'UPDATE'
except Exception, err:
error_msg = boto_exception(err)
if 'No updates are to be performed.' in error_msg:
result = dict(changed=False, output='Stack is already up-to-date.')
else:
module.fail_json(msg=error_msg)
if operation == 'UPDATE':
result = stack_operation(cfn, stack_name, operation)
# check the status of the stack while we are creating/updating it.
# and get the outputs of the stack
if state == 'present' or update:
stack = invoke_with_throttling_retries(cfn.describe_stacks,stack_name)[0]
for output in stack.outputs:
stack_outputs[output.key] = output.value
result['stack_outputs'] = stack_outputs
# absent state is different because of the way delete_stack works.
# problem is it it doesn't give an error if stack isn't found
# so must describe the stack first
if state == 'absent':
try:
invoke_with_throttling_retries(cfn.describe_stacks,stack_name)
operation = 'DELETE'
except Exception, err:
error_msg = boto_exception(err)
if 'Stack:%s does not exist' % stack_name in error_msg:
result = dict(changed=False, output='Stack not found.')
else:
module.fail_json(msg=error_msg)
if operation == 'DELETE':
cfn.delete_stack(stack_name)
result = stack_operation(cfn, stack_name, operation)
module.exit_json(**result)
# import module snippets
from ansible.module_utils.basic import *
from ansible.module_utils.ec2 import *
main()
| gpl-3.0 |
Thraxis/pymedusa | lib/subliminal/subtitle.py | 3 | 8191 | # -*- coding: utf-8 -*-
import codecs
import logging
import os
import chardet
import pysrt
from .video import Episode, Movie
from .utils import sanitize, sanitize_release_group
logger = logging.getLogger(__name__)
#: Subtitle extensions
SUBTITLE_EXTENSIONS = ('.srt', '.sub', '.smi', '.txt', '.ssa', '.ass', '.mpl')
class Subtitle(object):
"""Base class for subtitle.
:param language: language of the subtitle.
:type language: :class:`~babelfish.language.Language`
:param bool hearing_impaired: whether or not the subtitle is hearing impaired.
:param page_link: URL of the web page from which the subtitle can be downloaded.
:type page_link: str
:param encoding: Text encoding of the subtitle.
:type encoding: str
"""
#: Name of the provider that returns that class of subtitle
provider_name = ''
def __init__(self, language, hearing_impaired=False, page_link=None, encoding=None):
#: Language of the subtitle
self.language = language
#: Whether or not the subtitle is hearing impaired
self.hearing_impaired = hearing_impaired
#: URL of the web page from which the subtitle can be downloaded
self.page_link = page_link
#: Content as bytes
self.content = None
#: Encoding to decode with when accessing :attr:`text`
self.encoding = None
# validate the encoding
if encoding:
try:
self.encoding = codecs.lookup(encoding).name
except (TypeError, LookupError):
logger.debug('Unsupported encoding %s', encoding)
@property
def id(self):
"""Unique identifier of the subtitle"""
raise NotImplementedError
@property
def text(self):
"""Content as string
If :attr:`encoding` is None, the encoding is guessed with :meth:`guess_encoding`
"""
if not self.content:
return
if self.encoding:
return self.content.decode(self.encoding, errors='replace')
return self.content.decode(self.guess_encoding(), errors='replace')
def is_valid(self):
"""Check if a :attr:`text` is a valid SubRip format.
:return: whether or not the subtitle is valid.
:rtype: bool
"""
if not self.text:
return False
try:
pysrt.from_string(self.text, error_handling=pysrt.ERROR_RAISE)
except pysrt.Error as e:
if e.args[0] < 80:
return False
return True
def guess_encoding(self):
"""Guess encoding using the language, falling back on chardet.
:return: the guessed encoding.
:rtype: str
"""
logger.info('Guessing encoding for language %s', self.language)
# always try utf-8 first
encodings = ['utf-8']
# add language-specific encodings
if self.language.alpha3 == 'zho':
encodings.extend(['gb18030', 'big5'])
elif self.language.alpha3 == 'jpn':
encodings.append('shift-jis')
elif self.language.alpha3 == 'ara':
encodings.append('windows-1256')
elif self.language.alpha3 == 'heb':
encodings.append('windows-1255')
elif self.language.alpha3 == 'tur':
encodings.extend(['iso-8859-9', 'windows-1254'])
elif self.language.alpha3 == 'pol':
# Eastern European Group 1
encodings.extend(['windows-1250'])
elif self.language.alpha3 == 'bul':
# Eastern European Group 2
encodings.extend(['windows-1251'])
else:
# Western European (windows-1252)
encodings.append('latin-1')
# try to decode
logger.debug('Trying encodings %r', encodings)
for encoding in encodings:
try:
self.content.decode(encoding)
except UnicodeDecodeError:
pass
else:
logger.info('Guessed encoding %s', encoding)
return encoding
logger.warning('Could not guess encoding from language')
# fallback on chardet
encoding = chardet.detect(self.content)['encoding']
logger.info('Chardet found encoding %s', encoding)
return encoding
def get_matches(self, video):
"""Get the matches against the `video`.
:param video: the video to get the matches with.
:type video: :class:`~subliminal.video.Video`
:return: matches of the subtitle.
:rtype: set
"""
raise NotImplementedError
def __hash__(self):
return hash(self.provider_name + '-' + self.id)
def __repr__(self):
return '<%s %r [%s]>' % (self.__class__.__name__, self.id, self.language)
def get_subtitle_path(video_path, language=None, extension='.srt'):
"""Get the subtitle path using the `video_path` and `language`.
:param str video_path: path to the video.
:param language: language of the subtitle to put in the path.
:type language: :class:`~babelfish.language.Language`
:param str extension: extension of the subtitle.
:return: path of the subtitle.
:rtype: str
"""
subtitle_root = os.path.splitext(video_path)[0]
if language:
subtitle_root += '.' + str(language)
return subtitle_root + extension
def guess_matches(video, guess, partial=False):
"""Get matches between a `video` and a `guess`.
If a guess is `partial`, the absence information won't be counted as a match.
:param video: the video.
:type video: :class:`~subliminal.video.Video`
:param guess: the guess.
:type guess: dict
:param bool partial: whether or not the guess is partial.
:return: matches between the `video` and the `guess`.
:rtype: set
"""
matches = set()
if isinstance(video, Episode):
# series
if video.series and 'title' in guess and sanitize(guess['title']) == sanitize(video.series):
matches.add('series')
# title
if video.title and 'episode_title' in guess and sanitize(guess['episode_title']) == sanitize(video.title):
matches.add('title')
# season
if video.season and 'season' in guess and guess['season'] == video.season:
matches.add('season')
# episode
if video.episode and 'episode' in guess and guess['episode'] == video.episode:
matches.add('episode')
# year
if video.year and 'year' in guess and guess['year'] == video.year:
matches.add('year')
# count "no year" as an information
if not partial and video.original_series and 'year' not in guess:
matches.add('year')
elif isinstance(video, Movie):
# year
if video.year and 'year' in guess and guess['year'] == video.year:
matches.add('year')
# title
if video.title and 'title' in guess and sanitize(guess['title']) == sanitize(video.title):
matches.add('title')
# release_group
if (video.release_group and 'release_group' in guess and
sanitize_release_group(guess['release_group']) == sanitize_release_group(video.release_group)):
matches.add('release_group')
# resolution
if video.resolution and 'screen_size' in guess and guess['screen_size'] == video.resolution:
matches.add('resolution')
# format
if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
matches.add('format')
# video_codec
if video.video_codec and 'video_codec' in guess and guess['video_codec'] == video.video_codec:
matches.add('video_codec')
# audio_codec
if video.audio_codec and 'audio_codec' in guess and guess['audio_codec'] == video.audio_codec:
matches.add('audio_codec')
return matches
def fix_line_ending(content):
"""Fix line ending of `content` by changing it to \n.
:param bytes content: content of the subtitle.
:return: the content with fixed line endings.
:rtype: bytes
"""
return content.replace(b'\r\n', b'\n').replace(b'\r', b'\n')
| gpl-3.0 |
bruceyou/NewsBlur | apps/reader/migrations/0002_features.py | 18 | 10128 |
from south.db import db
from django.db import models
from apps.reader.models import *
class Migration:
def forwards(self, orm):
# Adding model 'Feature'
db.create_table('reader_feature', (
('id', orm['reader.feature:id']),
('description', orm['reader.feature:description']),
('date', orm['reader.feature:date']),
))
db.send_create_signal('reader', ['Feature'])
def backwards(self, orm):
# Deleting model 'Feature'
db.delete_table('reader_feature')
models = {
'auth.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']", 'blank': 'True'})
},
'auth.permission': {
'Meta': {'unique_together': "(('content_type', 'codename'),)"},
'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': {
'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']", 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'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']", 'blank': 'True'}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
'contenttypes.contenttype': {
'Meta': {'unique_together': "(('app_label', 'model'),)", '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'})
},
'reader.feature': {
'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'description': ('django.db.models.fields.TextField', [], {'default': "''"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'reader.userstory': {
'Meta': {'unique_together': "(('user', 'feed', 'story'),)"},
'feed': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.Feed']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'opinion': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'read_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'story': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.Story']"}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
},
'reader.usersubscription': {
'Meta': {'unique_together': "(('user', 'feed'),)"},
'feed': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.Feed']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_read_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 29, 20, 26, 1, 340435)'}),
'mark_read_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 29, 20, 26, 1, 340483)'}),
'needs_unread_recalc': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'unread_count_negative': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'unread_count_neutral': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'unread_count_positive': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'unread_count_updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2000, 1, 1, 0, 0)'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
},
'reader.usersubscriptionfolders': {
'folders': ('django.db.models.fields.TextField', [], {'default': "'[]'"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
},
'rss_feeds.feed': {
'Meta': {'db_table': "'feeds'"},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
'creation': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'days_to_trim': ('django.db.models.fields.IntegerField', [], {'default': '90'}),
'etag': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
'feed_address': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '255'}),
'feed_link': ('django.db.models.fields.URLField', [], {'default': "''", 'max_length': '200'}),
'feed_tagline': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024'}),
'feed_title': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_load_time': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'last_modified': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'last_update': ('django.db.models.fields.DateTimeField', [], {'default': '0', 'auto_now': 'True', 'blank': 'True'}),
'min_to_decay': ('django.db.models.fields.IntegerField', [], {'default': '15'}),
'next_scheduled_update': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'num_subscribers': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'page_data': ('StoryField', [], {'null': 'True', 'blank': 'True'}),
'stories_per_month': ('django.db.models.fields.IntegerField', [], {'default': '0'})
},
'rss_feeds.story': {
'Meta': {'db_table': "'stories'"},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'story_author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.StoryAuthor']"}),
'story_content': ('StoryField', [], {'null': 'True', 'blank': 'True'}),
'story_content_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'story_date': ('django.db.models.fields.DateTimeField', [], {}),
'story_feed': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'stories'", 'to': "orm['rss_feeds.Feed']"}),
'story_guid': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'story_guid_hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
'story_original_content': ('StoryField', [], {'null': 'True', 'blank': 'True'}),
'story_past_trim_date': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'story_permalink': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'story_tags': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'story_title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['rss_feeds.Tag']"})
},
'rss_feeds.storyauthor': {
'author_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'feed': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.Feed']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'rss_feeds.tag': {
'feed': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.Feed']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
}
}
complete_apps = ['reader']
| mit |
pjshi23/mcazurerm | examples/listvms.py | 1 | 1461 | import json
import mcazurerm
# Load Azure app defaults
try:
with open('mcazurermconfig.json') as configFile:
configData = json.load(configFile)
except FileNotFoundError:
print("Error: Expecting vmssConfig.json in current folder")
sys.exit()
tenant_id = configData['tenantId']
app_id = configData['appId']
app_secret = configData['appSecret']
subscription_id = configData['subscriptionId']
resource_group = configData['resourceGroup']
access_token = mcazurerm.get_access_token(tenant_id, app_id, app_secret)
# loop through resource groups
resource_groups = mcazurerm.list_resource_groups(access_token, subscription_id)
for rg in resource_groups["value"]:
rgname = rg["name"]
vmlist = mcazurerm.list_vms(access_token, subscription_id, rgname)
for vm in vmlist['value']:
name = vm['name']
location = vm['location']
offer = vm['properties']['storageProfile']['imageReference']['offer']
sku = vm['properties']['storageProfile']['imageReference']['sku']
print(''.join(['Name: ', name,
', RG: ', rgname,
', location: ', location,
', OS: ', offer, ' ', sku]))
# get extension details (note the hardcoded values you'll need to change
extn = mcazurerm.get_vm_extension(access_token, subscription_id, resource_group, 'MyDockerVm', 'LinuxDiagnostic')
print(json.dumps(extn, sort_keys=False, indent=2, separators=(',', ': ')))
| mit |
eayunstack/ceilometer | ceilometer/storage/base.py | 6 | 8946 | #
# Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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.
"""Base classes for storage engines
"""
import datetime
import inspect
import math
from oslo_utils import timeutils
import six
from six import moves
import ceilometer
def iter_period(start, end, period):
"""Split a time from start to end in periods of a number of seconds.
This function yields the (start, end) time for each period composing the
time passed as argument.
:param start: When the period set start.
:param end: When the period end starts.
:param period: The duration of the period.
"""
period_start = start
increment = datetime.timedelta(seconds=period)
for i in moves.xrange(int(math.ceil(
timeutils.delta_seconds(start, end)
/ float(period)))):
next_start = period_start + increment
yield (period_start, next_start)
period_start = next_start
def _handle_sort_key(model_name, sort_key=None):
"""Generate sort keys according to the passed in sort key from user.
:param model_name: Database model name be query.(alarm, meter, etc.)
:param sort_key: sort key passed from user.
return: sort keys list
"""
sort_keys_extra = {'alarm': ['name', 'user_id', 'project_id'],
'meter': ['user_id', 'project_id'],
'resource': ['user_id', 'project_id', 'timestamp'],
}
sort_keys = sort_keys_extra[model_name]
if not sort_key:
return sort_keys
# NOTE(Fengqian): We need to put the sort key from user
# in the first place of sort keys list.
try:
sort_keys.remove(sort_key)
except ValueError:
pass
finally:
sort_keys.insert(0, sort_key)
return sort_keys
class MultipleResultsFound(Exception):
pass
class NoResultFound(Exception):
pass
class Model(object):
"""Base class for storage API models."""
def __init__(self, **kwds):
self.fields = list(kwds)
for k, v in six.iteritems(kwds):
setattr(self, k, v)
def as_dict(self):
d = {}
for f in self.fields:
v = getattr(self, f)
if isinstance(v, Model):
v = v.as_dict()
elif isinstance(v, list) and v and isinstance(v[0], Model):
v = [sub.as_dict() for sub in v]
d[f] = v
return d
def __eq__(self, other):
return self.as_dict() == other.as_dict()
@classmethod
def get_field_names(cls):
fields = inspect.getargspec(cls.__init__)[0]
return set(fields) - set(["self"])
class Connection(object):
"""Base class for storage system connections."""
# A dictionary representing the capabilities of this driver.
CAPABILITIES = {
'meters': {'query': {'simple': False,
'metadata': False,
'complex': False}},
'resources': {'query': {'simple': False,
'metadata': False,
'complex': False}},
'samples': {'query': {'simple': False,
'metadata': False,
'complex': False}},
'statistics': {'groupby': False,
'query': {'simple': False,
'metadata': False,
'complex': False},
'aggregation': {'standard': False,
'selectable': {
'max': False,
'min': False,
'sum': False,
'avg': False,
'count': False,
'stddev': False,
'cardinality': False}}
},
}
STORAGE_CAPABILITIES = {
'storage': {'production_ready': False},
}
def __init__(self, url):
pass
@staticmethod
def upgrade():
"""Migrate the database to `version` or the most recent version."""
@staticmethod
def record_metering_data(data):
"""Write the data to the backend storage system.
:param data: a dictionary such as returned by
ceilometer.meter.meter_message_from_counter
All timestamps must be naive utc datetime object.
"""
raise ceilometer.NotImplementedError(
'Recording metering data is not implemented')
@staticmethod
def clear_expired_metering_data(ttl):
"""Clear expired data from the backend storage system.
Clearing occurs according to the time-to-live.
:param ttl: Number of seconds to keep records for.
"""
raise ceilometer.NotImplementedError(
'Clearing samples not implemented')
@staticmethod
def get_resources(user=None, project=None, source=None,
start_timestamp=None, start_timestamp_op=None,
end_timestamp=None, end_timestamp_op=None,
metaquery=None, resource=None, limit=None):
"""Return an iterable of models.Resource instances.
Iterable items containing resource information.
:param user: Optional ID for user that owns the resource.
:param project: Optional ID for project that owns the resource.
:param source: Optional source filter.
:param start_timestamp: Optional modified timestamp start range.
:param start_timestamp_op: Optional timestamp start range operation.
:param end_timestamp: Optional modified timestamp end range.
:param end_timestamp_op: Optional timestamp end range operation.
:param metaquery: Optional dict with metadata to match on.
:param resource: Optional resource filter.
:param limit: Maximum number of results to return.
"""
raise ceilometer.NotImplementedError('Resources not implemented')
@staticmethod
def get_meters(user=None, project=None, resource=None, source=None,
metaquery=None, limit=None):
"""Return an iterable of model.Meter instances.
Iterable items containing meter information.
:param user: Optional ID for user that owns the resource.
:param project: Optional ID for project that owns the resource.
:param resource: Optional resource filter.
:param source: Optional source filter.
:param metaquery: Optional dict with metadata to match on.
:param limit: Maximum number of results to return.
"""
raise ceilometer.NotImplementedError('Meters not implemented')
@staticmethod
def get_samples(sample_filter, limit=None):
"""Return an iterable of model.Sample instances.
:param sample_filter: Filter.
:param limit: Maximum number of results to return.
"""
raise ceilometer.NotImplementedError('Samples not implemented')
@staticmethod
def get_meter_statistics(sample_filter, period=None, groupby=None,
aggregate=None):
"""Return an iterable of model.Statistics instances.
The filter must have a meter value set.
"""
raise ceilometer.NotImplementedError('Statistics not implemented')
@staticmethod
def clear():
"""Clear database."""
@staticmethod
def query_samples(filter_expr=None, orderby=None, limit=None):
"""Return an iterable of model.Sample objects.
:param filter_expr: Filter expression for query.
:param orderby: List of field name and direction pairs for order by.
:param limit: Maximum number of results to return.
"""
raise ceilometer.NotImplementedError('Complex query for samples '
'is not implemented.')
@classmethod
def get_capabilities(cls):
"""Return an dictionary with the capabilities of each driver."""
return cls.CAPABILITIES
@classmethod
def get_storage_capabilities(cls):
"""Return a dictionary representing the performance capabilities.
This is needed to evaluate the performance of each driver.
"""
return cls.STORAGE_CAPABILITIES
| apache-2.0 |
AlphaSheep/ZBLL-Sorter | src/htmlgenerator.py | 1 | 5062 | '''
Created on 06 Jan 2016
Copyright (c) 2016 Brendan Gray and Sylvermyst Technologies
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
'''
from utilities import getList, probFractionString
from constants import *
def generateHTML(sortedZBLLdict, ocllProbs, collProbs, zbllProbs, ocllImg, collImg, zbllImg):
css = """
html, body {
font-family: Verdana;
font-size: 8pt;
}
div.ocllblock {
position: absolute;
display: block;
text-align: center;
border: 2px solid #000;
width: 128px;
height: 879px;
padding: 5px;
margin: 1px;
}
div.collblock {
position: absolute;
display: block;
text-align: center;
border: 1px solid #000;
width: 140px;
height: 190px;
padding: 5px;
margin: 1px;
}
div.zbllblock {
position: absolute;
display: block;
text-align: center;
border: 1px solid #000;
width: 145px;
height: 190px;
padding: 5px;
margin: 1px;
}
div.zbllblock:hover, div.collblock:hover, div.ocllblock:hover {
background: #ddf;
}
div.knownfull {
background: #dfd;
}
div.knownpartial{
background: #ffd;
}
div.knownnotused {
background: #fdd;
}
"""
cssFileName = 'stylesheet.css'
copyrightMsg = """
Copyright © 2015 Brendan Gray and Sylvermyst Technologies
"""
i=0
html = '<html>\n <head>\n <link rel="stylesheet" type="text/css" href="'+cssFileName+'">\n </head>\n <body>\n\n'
x = 0
y = 0
oclls = getList(sortedZBLLdict)
for ocll in oclls:
html+='\n<div class="ocllblock" id="Case'+ocll+'">\n ' + 'OCLL case: '+ocll+'<br/>\n '
html+='<img src="'+ocllImg[ocll]+'" width="'+str(ocllImageSize)+'px" />'
html+="<br/>\n Probability: "+"{:.2f}".format(ocllProbs[ocll]/77.76)+"% ("+probFractionString(ocllProbs[ocll], 7776)+')\n '
html+='<br/><br/> <br/><br/><i> </i>\n'
html+='\n</div>\n'
ocllx = x
oclly = y
y += 2
colls = getList(sortedZBLLdict[ocll])
for coll in colls:
x= 165
html+='\n <div class="collblock" id="Case'+coll+'">\n ' + 'COLL case: '+coll+'<br/>\n '
html+='<img src="'+collImg[coll]+'" width="'+str(collImageSize)+'px" />'
html+="<br/>\n Probability: "+"{:.2f}".format(collProbs[coll]/77.76)+"% ("+probFractionString(collProbs[coll], 7776)+')\n '
html+='<br/><br/> <br/><br/><i> </i>\n'
html+='\n </div>\n'
css+='\n#Case'+coll+' {\n left: '+str(x)+';\n top: '+str(y)+';\n}'
x += 162
y += 0
for zbll in sortedZBLLdict[ocll][coll]:
html+=' <div class="zbllblock" id="CaseZBLL'+str(i)+'">' + 'ZBLL case #'+str(i)+'<br/>'+zbll[0]+'<br/>\n '
html+='<img src="'+zbllImg[zbll[0]]+'" width="'+str(zbllImageSize)+'px" />'
html+="<br/>Probability: "+"{:.2f}".format(zbllProbs[zbll[0]]/77.76)+"% ("+probFractionString(zbllProbs[zbll[0]], 7776)+")\n "
html+='<br/><br/> <br/><br/><i> </i>\n'
html+=' </div>\n'
css+='\n#CaseZBLL'+str(i)+' {\n left: '+str(x)+';\n top: '+str(y)+';\n}'
x += 156
i+=1
y += 201
css+='\n#Case'+ocll+' {\n left: '+str(ocllx)+';\n top: '+str(oclly)+'; height: '+str(y-oclly-12)+';\n}'
y += 10
x = 0
html+= '\n\n </body>\n</html>\n'
# Save CSS file
fCSS = open('../'+cssFileName, 'w')
fCSS.write(css)
fCSS.close()
return html
if __name__ == '__main__':
pass
| mit |
gcode-mirror/audacity | lib-src/lv2/lv2/waflib/Tools/ldc2.py | 330 | 1029 | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
import sys
from waflib.Tools import ar,d
from waflib.Configure import conf
@conf
def find_ldc2(conf):
conf.find_program(['ldc2'],var='D')
out=conf.cmd_and_log([conf.env.D,'-version'])
if out.find("based on DMD v2.")==-1:
conf.fatal("detected compiler is not ldc2")
@conf
def common_flags_ldc2(conf):
v=conf.env
v['D_SRC_F']=['-c']
v['D_TGT_F']='-of%s'
v['D_LINKER']=v['D']
v['DLNK_SRC_F']=''
v['DLNK_TGT_F']='-of%s'
v['DINC_ST']='-I%s'
v['DSHLIB_MARKER']=v['DSTLIB_MARKER']=''
v['DSTLIB_ST']=v['DSHLIB_ST']='-L-l%s'
v['DSTLIBPATH_ST']=v['DLIBPATH_ST']='-L-L%s'
v['LINKFLAGS_dshlib']=['-L-shared']
v['DHEADER_ext']='.di'
v['DFLAGS_d_with_header']=['-H','-Hf']
v['D_HDR_F']='%s'
v['LINKFLAGS']=[]
v['DFLAGS_dshlib']=['-relocation-model=pic']
def configure(conf):
conf.find_ldc2()
conf.load('ar')
conf.load('d')
conf.common_flags_ldc2()
conf.d_platform_flags()
| gpl-2.0 |
pbaesse/Sissens | lib/python2.7/site-packages/sqlalchemy/events.py | 26 | 46787 | # sqlalchemy/events.py
# Copyright (C) 2005-2017 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Core event interfaces."""
from . import event, exc
from .pool import Pool
from .engine import Connectable, Engine, Dialect
from .sql.base import SchemaEventTarget
class DDLEvents(event.Events):
"""
Define event listeners for schema objects,
that is, :class:`.SchemaItem` and other :class:`.SchemaEventTarget`
subclasses, including :class:`.MetaData`, :class:`.Table`,
:class:`.Column`.
:class:`.MetaData` and :class:`.Table` support events
specifically regarding when CREATE and DROP
DDL is emitted to the database.
Attachment events are also provided to customize
behavior whenever a child schema element is associated
with a parent, such as, when a :class:`.Column` is associated
with its :class:`.Table`, when a :class:`.ForeignKeyConstraint`
is associated with a :class:`.Table`, etc.
Example using the ``after_create`` event::
from sqlalchemy import event
from sqlalchemy import Table, Column, Metadata, Integer
m = MetaData()
some_table = Table('some_table', m, Column('data', Integer))
def after_create(target, connection, **kw):
connection.execute("ALTER TABLE %s SET name=foo_%s" %
(target.name, target.name))
event.listen(some_table, "after_create", after_create)
DDL events integrate closely with the
:class:`.DDL` class and the :class:`.DDLElement` hierarchy
of DDL clause constructs, which are themselves appropriate
as listener callables::
from sqlalchemy import DDL
event.listen(
some_table,
"after_create",
DDL("ALTER TABLE %(table)s SET name=foo_%(table)s")
)
The methods here define the name of an event as well
as the names of members that are passed to listener
functions.
See also:
:ref:`event_toplevel`
:class:`.DDLElement`
:class:`.DDL`
:ref:`schema_ddl_sequences`
"""
_target_class_doc = "SomeSchemaClassOrObject"
_dispatch_target = SchemaEventTarget
def before_create(self, target, connection, **kw):
r"""Called before CREATE statements are emitted.
:param target: the :class:`.MetaData` or :class:`.Table`
object which is the target of the event.
:param connection: the :class:`.Connection` where the
CREATE statement or statements will be emitted.
:param \**kw: additional keyword arguments relevant
to the event. The contents of this dictionary
may vary across releases, and include the
list of tables being generated for a metadata-level
event, the checkfirst flag, and other
elements used by internal events.
"""
def after_create(self, target, connection, **kw):
r"""Called after CREATE statements are emitted.
:param target: the :class:`.MetaData` or :class:`.Table`
object which is the target of the event.
:param connection: the :class:`.Connection` where the
CREATE statement or statements have been emitted.
:param \**kw: additional keyword arguments relevant
to the event. The contents of this dictionary
may vary across releases, and include the
list of tables being generated for a metadata-level
event, the checkfirst flag, and other
elements used by internal events.
"""
def before_drop(self, target, connection, **kw):
r"""Called before DROP statements are emitted.
:param target: the :class:`.MetaData` or :class:`.Table`
object which is the target of the event.
:param connection: the :class:`.Connection` where the
DROP statement or statements will be emitted.
:param \**kw: additional keyword arguments relevant
to the event. The contents of this dictionary
may vary across releases, and include the
list of tables being generated for a metadata-level
event, the checkfirst flag, and other
elements used by internal events.
"""
def after_drop(self, target, connection, **kw):
r"""Called after DROP statements are emitted.
:param target: the :class:`.MetaData` or :class:`.Table`
object which is the target of the event.
:param connection: the :class:`.Connection` where the
DROP statement or statements have been emitted.
:param \**kw: additional keyword arguments relevant
to the event. The contents of this dictionary
may vary across releases, and include the
list of tables being generated for a metadata-level
event, the checkfirst flag, and other
elements used by internal events.
"""
def before_parent_attach(self, target, parent):
"""Called before a :class:`.SchemaItem` is associated with
a parent :class:`.SchemaItem`.
:param target: the target object
:param parent: the parent to which the target is being attached.
:func:`.event.listen` also accepts a modifier for this event:
:param propagate=False: When True, the listener function will
be established for any copies made of the target object,
i.e. those copies that are generated when
:meth:`.Table.tometadata` is used.
"""
def after_parent_attach(self, target, parent):
"""Called after a :class:`.SchemaItem` is associated with
a parent :class:`.SchemaItem`.
:param target: the target object
:param parent: the parent to which the target is being attached.
:func:`.event.listen` also accepts a modifier for this event:
:param propagate=False: When True, the listener function will
be established for any copies made of the target object,
i.e. those copies that are generated when
:meth:`.Table.tometadata` is used.
"""
def column_reflect(self, inspector, table, column_info):
"""Called for each unit of 'column info' retrieved when
a :class:`.Table` is being reflected.
The dictionary of column information as returned by the
dialect is passed, and can be modified. The dictionary
is that returned in each element of the list returned
by :meth:`.reflection.Inspector.get_columns`:
* ``name`` - the column's name
* ``type`` - the type of this column, which should be an instance
of :class:`~sqlalchemy.types.TypeEngine`
* ``nullable`` - boolean flag if the column is NULL or NOT NULL
* ``default`` - the column's server default value. This is
normally specified as a plain string SQL expression, however the
event can pass a :class:`.FetchedValue`, :class:`.DefaultClause`,
or :func:`.sql.expression.text` object as well.
.. versionchanged:: 1.1.6
The :meth:`.DDLEvents.column_reflect` event allows a non
string :class:`.FetchedValue`,
:func:`.sql.expression.text`, or derived object to be
specified as the value of ``default`` in the column
dictionary.
* ``attrs`` - dict containing optional column attributes
The event is called before any action is taken against
this dictionary, and the contents can be modified.
The :class:`.Column` specific arguments ``info``, ``key``,
and ``quote`` can also be added to the dictionary and
will be passed to the constructor of :class:`.Column`.
Note that this event is only meaningful if either
associated with the :class:`.Table` class across the
board, e.g.::
from sqlalchemy.schema import Table
from sqlalchemy import event
def listen_for_reflect(inspector, table, column_info):
"receive a column_reflect event"
# ...
event.listen(
Table,
'column_reflect',
listen_for_reflect)
...or with a specific :class:`.Table` instance using
the ``listeners`` argument::
def listen_for_reflect(inspector, table, column_info):
"receive a column_reflect event"
# ...
t = Table(
'sometable',
autoload=True,
listeners=[
('column_reflect', listen_for_reflect)
])
This because the reflection process initiated by ``autoload=True``
completes within the scope of the constructor for :class:`.Table`.
"""
class PoolEvents(event.Events):
"""Available events for :class:`.Pool`.
The methods here define the name of an event as well
as the names of members that are passed to listener
functions.
e.g.::
from sqlalchemy import event
def my_on_checkout(dbapi_conn, connection_rec, connection_proxy):
"handle an on checkout event"
event.listen(Pool, 'checkout', my_on_checkout)
In addition to accepting the :class:`.Pool` class and
:class:`.Pool` instances, :class:`.PoolEvents` also accepts
:class:`.Engine` objects and the :class:`.Engine` class as
targets, which will be resolved to the ``.pool`` attribute of the
given engine or the :class:`.Pool` class::
engine = create_engine("postgresql://scott:tiger@localhost/test")
# will associate with engine.pool
event.listen(engine, 'checkout', my_on_checkout)
"""
_target_class_doc = "SomeEngineOrPool"
_dispatch_target = Pool
@classmethod
def _accept_with(cls, target):
if isinstance(target, type):
if issubclass(target, Engine):
return Pool
elif issubclass(target, Pool):
return target
elif isinstance(target, Engine):
return target.pool
else:
return target
def connect(self, dbapi_connection, connection_record):
"""Called at the moment a particular DBAPI connection is first
created for a given :class:`.Pool`.
This event allows one to capture the point directly after which
the DBAPI module-level ``.connect()`` method has been used in order
to produce a new DBAPI connection.
:param dbapi_connection: a DBAPI connection.
:param connection_record: the :class:`._ConnectionRecord` managing the
DBAPI connection.
"""
def first_connect(self, dbapi_connection, connection_record):
"""Called exactly once for the first time a DBAPI connection is
checked out from a particular :class:`.Pool`.
The rationale for :meth:`.PoolEvents.first_connect` is to determine
information about a particular series of database connections based
on the settings used for all connections. Since a particular
:class:`.Pool` refers to a single "creator" function (which in terms
of a :class:`.Engine` refers to the URL and connection options used),
it is typically valid to make observations about a single connection
that can be safely assumed to be valid about all subsequent
connections, such as the database version, the server and client
encoding settings, collation settings, and many others.
:param dbapi_connection: a DBAPI connection.
:param connection_record: the :class:`._ConnectionRecord` managing the
DBAPI connection.
"""
def checkout(self, dbapi_connection, connection_record, connection_proxy):
"""Called when a connection is retrieved from the Pool.
:param dbapi_connection: a DBAPI connection.
:param connection_record: the :class:`._ConnectionRecord` managing the
DBAPI connection.
:param connection_proxy: the :class:`._ConnectionFairy` object which
will proxy the public interface of the DBAPI connection for the
lifespan of the checkout.
If you raise a :class:`~sqlalchemy.exc.DisconnectionError`, the current
connection will be disposed and a fresh connection retrieved.
Processing of all checkout listeners will abort and restart
using the new connection.
.. seealso:: :meth:`.ConnectionEvents.engine_connect` - a similar event
which occurs upon creation of a new :class:`.Connection`.
"""
def checkin(self, dbapi_connection, connection_record):
"""Called when a connection returns to the pool.
Note that the connection may be closed, and may be None if the
connection has been invalidated. ``checkin`` will not be called
for detached connections. (They do not return to the pool.)
:param dbapi_connection: a DBAPI connection.
:param connection_record: the :class:`._ConnectionRecord` managing the
DBAPI connection.
"""
def reset(self, dbapi_connection, connection_record):
"""Called before the "reset" action occurs for a pooled connection.
This event represents
when the ``rollback()`` method is called on the DBAPI connection
before it is returned to the pool. The behavior of "reset" can
be controlled, including disabled, using the ``reset_on_return``
pool argument.
The :meth:`.PoolEvents.reset` event is usually followed by the
:meth:`.PoolEvents.checkin` event is called, except in those
cases where the connection is discarded immediately after reset.
:param dbapi_connection: a DBAPI connection.
:param connection_record: the :class:`._ConnectionRecord` managing the
DBAPI connection.
.. versionadded:: 0.8
.. seealso::
:meth:`.ConnectionEvents.rollback`
:meth:`.ConnectionEvents.commit`
"""
def invalidate(self, dbapi_connection, connection_record, exception):
"""Called when a DBAPI connection is to be "invalidated".
This event is called any time the :meth:`._ConnectionRecord.invalidate`
method is invoked, either from API usage or via "auto-invalidation",
without the ``soft`` flag.
The event occurs before a final attempt to call ``.close()`` on the
connection occurs.
:param dbapi_connection: a DBAPI connection.
:param connection_record: the :class:`._ConnectionRecord` managing the
DBAPI connection.
:param exception: the exception object corresponding to the reason
for this invalidation, if any. May be ``None``.
.. versionadded:: 0.9.2 Added support for connection invalidation
listening.
.. seealso::
:ref:`pool_connection_invalidation`
"""
def soft_invalidate(self, dbapi_connection, connection_record, exception):
"""Called when a DBAPI connection is to be "soft invalidated".
This event is called any time the :meth:`._ConnectionRecord.invalidate`
method is invoked with the ``soft`` flag.
Soft invalidation refers to when the connection record that tracks
this connection will force a reconnect after the current connection
is checked in. It does not actively close the dbapi_connection
at the point at which it is called.
.. versionadded:: 1.0.3
"""
def close(self, dbapi_connection, connection_record):
"""Called when a DBAPI connection is closed.
The event is emitted before the close occurs.
The close of a connection can fail; typically this is because
the connection is already closed. If the close operation fails,
the connection is discarded.
The :meth:`.close` event corresponds to a connection that's still
associated with the pool. To intercept close events for detached
connections use :meth:`.close_detached`.
.. versionadded:: 1.1
"""
def detach(self, dbapi_connection, connection_record):
"""Called when a DBAPI connection is "detached" from a pool.
This event is emitted after the detach occurs. The connection
is no longer associated with the given connection record.
.. versionadded:: 1.1
"""
def close_detached(self, dbapi_connection):
"""Called when a detached DBAPI connection is closed.
The event is emitted before the close occurs.
The close of a connection can fail; typically this is because
the connection is already closed. If the close operation fails,
the connection is discarded.
.. versionadded:: 1.1
"""
class ConnectionEvents(event.Events):
"""Available events for :class:`.Connectable`, which includes
:class:`.Connection` and :class:`.Engine`.
The methods here define the name of an event as well as the names of
members that are passed to listener functions.
An event listener can be associated with any :class:`.Connectable`
class or instance, such as an :class:`.Engine`, e.g.::
from sqlalchemy import event, create_engine
def before_cursor_execute(conn, cursor, statement, parameters, context,
executemany):
log.info("Received statement: %s", statement)
engine = create_engine('postgresql://scott:tiger@localhost/test')
event.listen(engine, "before_cursor_execute", before_cursor_execute)
or with a specific :class:`.Connection`::
with engine.begin() as conn:
@event.listens_for(conn, 'before_cursor_execute')
def before_cursor_execute(conn, cursor, statement, parameters,
context, executemany):
log.info("Received statement: %s", statement)
When the methods are called with a `statement` parameter, such as in
:meth:`.after_cursor_execute`, :meth:`.before_cursor_execute` and
:meth:`.dbapi_error`, the statement is the exact SQL string that was
prepared for transmission to the DBAPI ``cursor`` in the connection's
:class:`.Dialect`.
The :meth:`.before_execute` and :meth:`.before_cursor_execute`
events can also be established with the ``retval=True`` flag, which
allows modification of the statement and parameters to be sent
to the database. The :meth:`.before_cursor_execute` event is
particularly useful here to add ad-hoc string transformations, such
as comments, to all executions::
from sqlalchemy.engine import Engine
from sqlalchemy import event
@event.listens_for(Engine, "before_cursor_execute", retval=True)
def comment_sql_calls(conn, cursor, statement, parameters,
context, executemany):
statement = statement + " -- some comment"
return statement, parameters
.. note:: :class:`.ConnectionEvents` can be established on any
combination of :class:`.Engine`, :class:`.Connection`, as well
as instances of each of those classes. Events across all
four scopes will fire off for a given instance of
:class:`.Connection`. However, for performance reasons, the
:class:`.Connection` object determines at instantiation time
whether or not its parent :class:`.Engine` has event listeners
established. Event listeners added to the :class:`.Engine`
class or to an instance of :class:`.Engine` *after* the instantiation
of a dependent :class:`.Connection` instance will usually
*not* be available on that :class:`.Connection` instance. The newly
added listeners will instead take effect for :class:`.Connection`
instances created subsequent to those event listeners being
established on the parent :class:`.Engine` class or instance.
:param retval=False: Applies to the :meth:`.before_execute` and
:meth:`.before_cursor_execute` events only. When True, the
user-defined event function must have a return value, which
is a tuple of parameters that replace the given statement
and parameters. See those methods for a description of
specific return arguments.
.. versionchanged:: 0.8 :class:`.ConnectionEvents` can now be associated
with any :class:`.Connectable` including :class:`.Connection`,
in addition to the existing support for :class:`.Engine`.
"""
_target_class_doc = "SomeEngine"
_dispatch_target = Connectable
@classmethod
def _listen(cls, event_key, retval=False):
target, identifier, fn = \
event_key.dispatch_target, event_key.identifier, \
event_key._listen_fn
target._has_events = True
if not retval:
if identifier == 'before_execute':
orig_fn = fn
def wrap_before_execute(conn, clauseelement,
multiparams, params):
orig_fn(conn, clauseelement, multiparams, params)
return clauseelement, multiparams, params
fn = wrap_before_execute
elif identifier == 'before_cursor_execute':
orig_fn = fn
def wrap_before_cursor_execute(conn, cursor, statement,
parameters, context,
executemany):
orig_fn(conn, cursor, statement,
parameters, context, executemany)
return statement, parameters
fn = wrap_before_cursor_execute
elif retval and \
identifier not in ('before_execute',
'before_cursor_execute', 'handle_error'):
raise exc.ArgumentError(
"Only the 'before_execute', "
"'before_cursor_execute' and 'handle_error' engine "
"event listeners accept the 'retval=True' "
"argument.")
event_key.with_wrapper(fn).base_listen()
def before_execute(self, conn, clauseelement, multiparams, params):
"""Intercept high level execute() events, receiving uncompiled
SQL constructs and other objects prior to rendering into SQL.
This event is good for debugging SQL compilation issues as well
as early manipulation of the parameters being sent to the database,
as the parameter lists will be in a consistent format here.
This event can be optionally established with the ``retval=True``
flag. The ``clauseelement``, ``multiparams``, and ``params``
arguments should be returned as a three-tuple in this case::
@event.listens_for(Engine, "before_execute", retval=True)
def before_execute(conn, conn, clauseelement, multiparams, params):
# do something with clauseelement, multiparams, params
return clauseelement, multiparams, params
:param conn: :class:`.Connection` object
:param clauseelement: SQL expression construct, :class:`.Compiled`
instance, or string statement passed to :meth:`.Connection.execute`.
:param multiparams: Multiple parameter sets, a list of dictionaries.
:param params: Single parameter set, a single dictionary.
See also:
:meth:`.before_cursor_execute`
"""
def after_execute(self, conn, clauseelement, multiparams, params, result):
"""Intercept high level execute() events after execute.
:param conn: :class:`.Connection` object
:param clauseelement: SQL expression construct, :class:`.Compiled`
instance, or string statement passed to :meth:`.Connection.execute`.
:param multiparams: Multiple parameter sets, a list of dictionaries.
:param params: Single parameter set, a single dictionary.
:param result: :class:`.ResultProxy` generated by the execution.
"""
def before_cursor_execute(self, conn, cursor, statement,
parameters, context, executemany):
"""Intercept low-level cursor execute() events before execution,
receiving the string SQL statement and DBAPI-specific parameter list to
be invoked against a cursor.
This event is a good choice for logging as well as late modifications
to the SQL string. It's less ideal for parameter modifications except
for those which are specific to a target backend.
This event can be optionally established with the ``retval=True``
flag. The ``statement`` and ``parameters`` arguments should be
returned as a two-tuple in this case::
@event.listens_for(Engine, "before_cursor_execute", retval=True)
def before_cursor_execute(conn, cursor, statement,
parameters, context, executemany):
# do something with statement, parameters
return statement, parameters
See the example at :class:`.ConnectionEvents`.
:param conn: :class:`.Connection` object
:param cursor: DBAPI cursor object
:param statement: string SQL statement, as to be passed to the DBAPI
:param parameters: Dictionary, tuple, or list of parameters being
passed to the ``execute()`` or ``executemany()`` method of the
DBAPI ``cursor``. In some cases may be ``None``.
:param context: :class:`.ExecutionContext` object in use. May
be ``None``.
:param executemany: boolean, if ``True``, this is an ``executemany()``
call, if ``False``, this is an ``execute()`` call.
See also:
:meth:`.before_execute`
:meth:`.after_cursor_execute`
"""
def after_cursor_execute(self, conn, cursor, statement,
parameters, context, executemany):
"""Intercept low-level cursor execute() events after execution.
:param conn: :class:`.Connection` object
:param cursor: DBAPI cursor object. Will have results pending
if the statement was a SELECT, but these should not be consumed
as they will be needed by the :class:`.ResultProxy`.
:param statement: string SQL statement, as passed to the DBAPI
:param parameters: Dictionary, tuple, or list of parameters being
passed to the ``execute()`` or ``executemany()`` method of the
DBAPI ``cursor``. In some cases may be ``None``.
:param context: :class:`.ExecutionContext` object in use. May
be ``None``.
:param executemany: boolean, if ``True``, this is an ``executemany()``
call, if ``False``, this is an ``execute()`` call.
"""
def dbapi_error(self, conn, cursor, statement, parameters,
context, exception):
"""Intercept a raw DBAPI error.
This event is called with the DBAPI exception instance
received from the DBAPI itself, *before* SQLAlchemy wraps the
exception with it's own exception wrappers, and before any
other operations are performed on the DBAPI cursor; the
existing transaction remains in effect as well as any state
on the cursor.
The use case here is to inject low-level exception handling
into an :class:`.Engine`, typically for logging and
debugging purposes.
.. warning::
Code should **not** modify
any state or throw any exceptions here as this will
interfere with SQLAlchemy's cleanup and error handling
routines. For exception modification, please refer to the
new :meth:`.ConnectionEvents.handle_error` event.
Subsequent to this hook, SQLAlchemy may attempt any
number of operations on the connection/cursor, including
closing the cursor, rolling back of the transaction in the
case of connectionless execution, and disposing of the entire
connection pool if a "disconnect" was detected. The
exception is then wrapped in a SQLAlchemy DBAPI exception
wrapper and re-thrown.
:param conn: :class:`.Connection` object
:param cursor: DBAPI cursor object
:param statement: string SQL statement, as passed to the DBAPI
:param parameters: Dictionary, tuple, or list of parameters being
passed to the ``execute()`` or ``executemany()`` method of the
DBAPI ``cursor``. In some cases may be ``None``.
:param context: :class:`.ExecutionContext` object in use. May
be ``None``.
:param exception: The **unwrapped** exception emitted directly from the
DBAPI. The class here is specific to the DBAPI module in use.
.. deprecated:: 0.9.7 - replaced by
:meth:`.ConnectionEvents.handle_error`
"""
def handle_error(self, exception_context):
r"""Intercept all exceptions processed by the :class:`.Connection`.
This includes all exceptions emitted by the DBAPI as well as
within SQLAlchemy's statement invocation process, including
encoding errors and other statement validation errors. Other areas
in which the event is invoked include transaction begin and end,
result row fetching, cursor creation.
Note that :meth:`.handle_error` may support new kinds of exceptions
and new calling scenarios at *any time*. Code which uses this
event must expect new calling patterns to be present in minor
releases.
To support the wide variety of members that correspond to an exception,
as well as to allow extensibility of the event without backwards
incompatibility, the sole argument received is an instance of
:class:`.ExceptionContext`. This object contains data members
representing detail about the exception.
Use cases supported by this hook include:
* read-only, low-level exception handling for logging and
debugging purposes
* exception re-writing
* Establishing or disabling whether a connection or the owning
connection pool is invalidated or expired in response to a
specific exception.
The hook is called while the cursor from the failed operation
(if any) is still open and accessible. Special cleanup operations
can be called on this cursor; SQLAlchemy will attempt to close
this cursor subsequent to this hook being invoked. If the connection
is in "autocommit" mode, the transaction also remains open within
the scope of this hook; the rollback of the per-statement transaction
also occurs after the hook is called.
The user-defined event handler has two options for replacing
the SQLAlchemy-constructed exception into one that is user
defined. It can either raise this new exception directly, in
which case all further event listeners are bypassed and the
exception will be raised, after appropriate cleanup as taken
place::
@event.listens_for(Engine, "handle_error")
def handle_exception(context):
if isinstance(context.original_exception,
psycopg2.OperationalError) and \
"failed" in str(context.original_exception):
raise MySpecialException("failed operation")
.. warning:: Because the :meth:`.ConnectionEvents.handle_error`
event specifically provides for exceptions to be re-thrown as
the ultimate exception raised by the failed statement,
**stack traces will be misleading** if the user-defined event
handler itself fails and throws an unexpected exception;
the stack trace may not illustrate the actual code line that
failed! It is advised to code carefully here and use
logging and/or inline debugging if unexpected exceptions are
occurring.
Alternatively, a "chained" style of event handling can be
used, by configuring the handler with the ``retval=True``
modifier and returning the new exception instance from the
function. In this case, event handling will continue onto the
next handler. The "chained" exception is available using
:attr:`.ExceptionContext.chained_exception`::
@event.listens_for(Engine, "handle_error", retval=True)
def handle_exception(context):
if context.chained_exception is not None and \
"special" in context.chained_exception.message:
return MySpecialException("failed",
cause=context.chained_exception)
Handlers that return ``None`` may remain within this chain; the
last non-``None`` return value is the one that continues to be
passed to the next handler.
When a custom exception is raised or returned, SQLAlchemy raises
this new exception as-is, it is not wrapped by any SQLAlchemy
object. If the exception is not a subclass of
:class:`sqlalchemy.exc.StatementError`,
certain features may not be available; currently this includes
the ORM's feature of adding a detail hint about "autoflush" to
exceptions raised within the autoflush process.
:param context: an :class:`.ExceptionContext` object. See this
class for details on all available members.
.. versionadded:: 0.9.7 Added the
:meth:`.ConnectionEvents.handle_error` hook.
.. versionchanged:: 1.1 The :meth:`.handle_error` event will now
receive all exceptions that inherit from ``BaseException``, including
``SystemExit`` and ``KeyboardInterrupt``. The setting for
:attr:`.ExceptionContext.is_disconnect` is ``True`` in this case
and the default for :attr:`.ExceptionContext.invalidate_pool_on_disconnect`
is ``False``.
.. versionchanged:: 1.0.0 The :meth:`.handle_error` event is now
invoked when an :class:`.Engine` fails during the initial
call to :meth:`.Engine.connect`, as well as when a
:class:`.Connection` object encounters an error during a
reconnect operation.
.. versionchanged:: 1.0.0 The :meth:`.handle_error` event is
not fired off when a dialect makes use of the
``skip_user_error_events`` execution option. This is used
by dialects which intend to catch SQLAlchemy-specific exceptions
within specific operations, such as when the MySQL dialect detects
a table not present within the ``has_table()`` dialect method.
Prior to 1.0.0, code which implements :meth:`.handle_error` needs
to ensure that exceptions thrown in these scenarios are re-raised
without modification.
"""
def engine_connect(self, conn, branch):
"""Intercept the creation of a new :class:`.Connection`.
This event is called typically as the direct result of calling
the :meth:`.Engine.connect` method.
It differs from the :meth:`.PoolEvents.connect` method, which
refers to the actual connection to a database at the DBAPI level;
a DBAPI connection may be pooled and reused for many operations.
In contrast, this event refers only to the production of a higher level
:class:`.Connection` wrapper around such a DBAPI connection.
It also differs from the :meth:`.PoolEvents.checkout` event
in that it is specific to the :class:`.Connection` object, not the
DBAPI connection that :meth:`.PoolEvents.checkout` deals with, although
this DBAPI connection is available here via the
:attr:`.Connection.connection` attribute. But note there can in fact
be multiple :meth:`.PoolEvents.checkout` events within the lifespan
of a single :class:`.Connection` object, if that :class:`.Connection`
is invalidated and re-established. There can also be multiple
:class:`.Connection` objects generated for the same already-checked-out
DBAPI connection, in the case that a "branch" of a :class:`.Connection`
is produced.
:param conn: :class:`.Connection` object.
:param branch: if True, this is a "branch" of an existing
:class:`.Connection`. A branch is generated within the course
of a statement execution to invoke supplemental statements, most
typically to pre-execute a SELECT of a default value for the purposes
of an INSERT statement.
.. versionadded:: 0.9.0
.. seealso::
:ref:`pool_disconnects_pessimistic` - illustrates how to use
:meth:`.ConnectionEvents.engine_connect`
to transparently ensure pooled connections are connected to the
database.
:meth:`.PoolEvents.checkout` the lower-level pool checkout event
for an individual DBAPI connection
:meth:`.ConnectionEvents.set_connection_execution_options` - a copy
of a :class:`.Connection` is also made when the
:meth:`.Connection.execution_options` method is called.
"""
def set_connection_execution_options(self, conn, opts):
"""Intercept when the :meth:`.Connection.execution_options`
method is called.
This method is called after the new :class:`.Connection` has been
produced, with the newly updated execution options collection, but
before the :class:`.Dialect` has acted upon any of those new options.
Note that this method is not called when a new :class:`.Connection`
is produced which is inheriting execution options from its parent
:class:`.Engine`; to intercept this condition, use the
:meth:`.ConnectionEvents.engine_connect` event.
:param conn: The newly copied :class:`.Connection` object
:param opts: dictionary of options that were passed to the
:meth:`.Connection.execution_options` method.
.. versionadded:: 0.9.0
.. seealso::
:meth:`.ConnectionEvents.set_engine_execution_options` - event
which is called when :meth:`.Engine.execution_options` is called.
"""
def set_engine_execution_options(self, engine, opts):
"""Intercept when the :meth:`.Engine.execution_options`
method is called.
The :meth:`.Engine.execution_options` method produces a shallow
copy of the :class:`.Engine` which stores the new options. That new
:class:`.Engine` is passed here. A particular application of this
method is to add a :meth:`.ConnectionEvents.engine_connect` event
handler to the given :class:`.Engine` which will perform some per-
:class:`.Connection` task specific to these execution options.
:param conn: The newly copied :class:`.Engine` object
:param opts: dictionary of options that were passed to the
:meth:`.Connection.execution_options` method.
.. versionadded:: 0.9.0
.. seealso::
:meth:`.ConnectionEvents.set_connection_execution_options` - event
which is called when :meth:`.Connection.execution_options` is
called.
"""
def engine_disposed(self, engine):
"""Intercept when the :meth:`.Engine.dispose` method is called.
The :meth:`.Engine.dispose` method instructs the engine to
"dispose" of it's connection pool (e.g. :class:`.Pool`), and
replaces it with a new one. Disposing of the old pool has the
effect that existing checked-in connections are closed. The new
pool does not establish any new connections until it is first used.
This event can be used to indicate that resources related to the
:class:`.Engine` should also be cleaned up, keeping in mind that the
:class:`.Engine` can still be used for new requests in which case
it re-acquires connection resources.
.. versionadded:: 1.0.5
"""
def begin(self, conn):
"""Intercept begin() events.
:param conn: :class:`.Connection` object
"""
def rollback(self, conn):
"""Intercept rollback() events, as initiated by a
:class:`.Transaction`.
Note that the :class:`.Pool` also "auto-rolls back"
a DBAPI connection upon checkin, if the ``reset_on_return``
flag is set to its default value of ``'rollback'``.
To intercept this
rollback, use the :meth:`.PoolEvents.reset` hook.
:param conn: :class:`.Connection` object
.. seealso::
:meth:`.PoolEvents.reset`
"""
def commit(self, conn):
"""Intercept commit() events, as initiated by a
:class:`.Transaction`.
Note that the :class:`.Pool` may also "auto-commit"
a DBAPI connection upon checkin, if the ``reset_on_return``
flag is set to the value ``'commit'``. To intercept this
commit, use the :meth:`.PoolEvents.reset` hook.
:param conn: :class:`.Connection` object
"""
def savepoint(self, conn, name):
"""Intercept savepoint() events.
:param conn: :class:`.Connection` object
:param name: specified name used for the savepoint.
"""
def rollback_savepoint(self, conn, name, context):
"""Intercept rollback_savepoint() events.
:param conn: :class:`.Connection` object
:param name: specified name used for the savepoint.
:param context: :class:`.ExecutionContext` in use. May be ``None``.
"""
def release_savepoint(self, conn, name, context):
"""Intercept release_savepoint() events.
:param conn: :class:`.Connection` object
:param name: specified name used for the savepoint.
:param context: :class:`.ExecutionContext` in use. May be ``None``.
"""
def begin_twophase(self, conn, xid):
"""Intercept begin_twophase() events.
:param conn: :class:`.Connection` object
:param xid: two-phase XID identifier
"""
def prepare_twophase(self, conn, xid):
"""Intercept prepare_twophase() events.
:param conn: :class:`.Connection` object
:param xid: two-phase XID identifier
"""
def rollback_twophase(self, conn, xid, is_prepared):
"""Intercept rollback_twophase() events.
:param conn: :class:`.Connection` object
:param xid: two-phase XID identifier
:param is_prepared: boolean, indicates if
:meth:`.TwoPhaseTransaction.prepare` was called.
"""
def commit_twophase(self, conn, xid, is_prepared):
"""Intercept commit_twophase() events.
:param conn: :class:`.Connection` object
:param xid: two-phase XID identifier
:param is_prepared: boolean, indicates if
:meth:`.TwoPhaseTransaction.prepare` was called.
"""
class DialectEvents(event.Events):
"""event interface for execution-replacement functions.
These events allow direct instrumentation and replacement
of key dialect functions which interact with the DBAPI.
.. note::
:class:`.DialectEvents` hooks should be considered **semi-public**
and experimental.
These hooks are not for general use and are only for those situations
where intricate re-statement of DBAPI mechanics must be injected onto
an existing dialect. For general-use statement-interception events,
please use the :class:`.ConnectionEvents` interface.
.. seealso::
:meth:`.ConnectionEvents.before_cursor_execute`
:meth:`.ConnectionEvents.before_execute`
:meth:`.ConnectionEvents.after_cursor_execute`
:meth:`.ConnectionEvents.after_execute`
.. versionadded:: 0.9.4
"""
_target_class_doc = "SomeEngine"
_dispatch_target = Dialect
@classmethod
def _listen(cls, event_key, retval=False):
target, identifier, fn = \
event_key.dispatch_target, event_key.identifier, event_key.fn
target._has_events = True
event_key.base_listen()
@classmethod
def _accept_with(cls, target):
if isinstance(target, type):
if issubclass(target, Engine):
return Dialect
elif issubclass(target, Dialect):
return target
elif isinstance(target, Engine):
return target.dialect
else:
return target
def do_connect(self, dialect, conn_rec, cargs, cparams):
"""Receive connection arguments before a connection is made.
Return a DBAPI connection to halt further events from invoking;
the returned connection will be used.
Alternatively, the event can manipulate the cargs and/or cparams
collections; cargs will always be a Python list that can be mutated
in-place and cparams a Python dictionary. Return None to
allow control to pass to the next event handler and ultimately
to allow the dialect to connect normally, given the updated
arguments.
.. versionadded:: 1.0.3
"""
def do_executemany(self, cursor, statement, parameters, context):
"""Receive a cursor to have executemany() called.
Return the value True to halt further events from invoking,
and to indicate that the cursor execution has already taken
place within the event handler.
"""
def do_execute_no_params(self, cursor, statement, context):
"""Receive a cursor to have execute() with no parameters called.
Return the value True to halt further events from invoking,
and to indicate that the cursor execution has already taken
place within the event handler.
"""
def do_execute(self, cursor, statement, parameters, context):
"""Receive a cursor to have execute() called.
Return the value True to halt further events from invoking,
and to indicate that the cursor execution has already taken
place within the event handler.
"""
| gpl-3.0 |
psi-rking/psi4 | psi4/driver/procrouting/solvent/efp.py | 6 | 6014 | #
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2021 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 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, version 3.
#
# Psi4 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 Psi4; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# @END LICENSE
#
import numpy as np
from psi4 import core
def get_qm_atoms_opts(mol):
"""Provides list of coordinates of quantum mechanical atoms from
psi4.core.Molecule `mol` to pylibefp.core.efp() `efpobj`. Also
converts from `read_options("EFP"` to pylibefp opts dictionary.
"""
efpobj = mol.EFP
ptc = []
coords = []
for iat in range(mol.natom()):
ptc.append(mol.charge(iat))
coords.append(mol.x(iat))
coords.append(mol.y(iat))
coords.append(mol.z(iat))
# set options
# * 'chtr', 'qm_exch', 'qm_disp', 'qm_chtr' may be enabled in a future libefp release
opts = {}
for opt in ['elst', 'exch', 'ind', 'disp',
'elst_damping', 'ind_damping', 'disp_damping']:
psiopt = 'EFP_' + opt.upper()
if core.has_option_changed('EFP', psiopt):
opts[opt] = core.get_option('EFP', psiopt)
for opt in ['elst', 'ind']:
psiopt = 'EFP_QM_' + opt.upper()
if core.has_option_changed('EFP', psiopt):
opts['qm_' + opt] = core.get_option('EFP', psiopt)
return ptc, coords, opts
def modify_Fock_permanent(mol, mints, verbose=1):
"""Computes array of the EFP contribution to the potential felt by
QM atoms due to permanent EFP moments. Used for SCF procedure.
Parameters
----------
mol : :py:class:`psi4.core.Molecule`
Source of quantum mechanical atoms. As its `EFP` member data, contains
a :py:class:`pylibefp.core.efp` object that is the source and computer
of EFP fragments.
mints : `psi4.core.MintsHelper`
Integral computer.
verbose : int, optional
Whether to print out multipole coordinates and values. 0: no printing.
1: print charges and dipoles. 2: additionally print quadrupoles and octupoles.
Returns
-------
ndarray
(nbf, nbf) EFP charge through octupole contribution to the potential
"""
# get composition counts from libefp
efpobj = mol.EFP
nfr = efpobj.get_frag_count()
natoms = efpobj.get_frag_atom_count()
# get multipoles count, pos'n, values from libefp
# charge + dipoles + quadrupoles + octupoles = 20
nmp = efpobj.get_multipole_count()
xyz_mp = np.asarray(efpobj.get_multipole_coordinates(verbose=verbose)).reshape(nmp, 3)
val_mp = np.asarray(efpobj.get_multipole_values(verbose=verbose)).reshape(nmp, 20)
# 0 X Y Z XX YY ZZ XY XZ YZ
prefacs = np.array([ 1, 1, 1, 1, 1/3, 1/3, 1/3, 2/3, 2/3, 2/3,
1/15, 1/15, 1/15, 3/15, 3/15, 3/15, 3/15, 3/15, 3/15, 6/15])
# XXX YYY ZZZ XXY XXZ XYY YYZ XZZ YZZ XYZ
# EFP permanent moment contribution to the Fock Matrix
nbf = mints.basisset().nbf()
V2 = np.zeros((nbf, nbf))
# Cartesian basis one-electron EFP perturbation
efp_ints = np.zeros((20, nbf, nbf))
for imp in range(nmp):
origin = xyz_mp[imp]
# get EFP multipole integrals from Psi4
p4_efp_ints = mints.ao_efp_multipole_potential(origin=origin)
for pole in range(20):
efp_ints[pole] = np.asarray(p4_efp_ints[pole])
# add frag atom Z into multipole charge (when pos'n of atom matches mp)
for ifr in range(nfr):
atoms = efpobj.get_frag_atoms(ifr)
for iat in range(natoms[ifr]):
xyz_atom = [atoms[iat]['x'], atoms[iat]['y'], atoms[iat]['z']]
if np.allclose(xyz_atom, origin, atol=1e-10):
val_mp[imp, 0] += atoms[iat]['Z']
# scale multipole integrals by multipole magnitudes. result goes into V
for pole in range(20):
efp_ints[pole] *= -prefacs[pole] * val_mp[imp, pole]
V2 += efp_ints[pole]
return V2
def modify_Fock_induced(efpobj, mints, verbose=1):
"""Returns shared matrix containing the EFP contribution to the potential
felt by QM atoms due to EFP induced dipoles. Used in SCF procedure.
Parameters
----------
efpobj : :py:class:`pylibefp.core.efp`
Source of EFP induced dipole information.
mints : `psi4.core.MintsHelper`
Integral computer.
verbose : int, optional
Whether to print out induced dipole coordinates and values.
0: no printing. 1: print induced dipole info.
Returns
-------
ndarray
(nbf, nbf) EFP contribution to potential.
"""
# get induced dipoles count, pos'n, values from libefp
# dipoles = 3
nid = efpobj.get_induced_dipole_count()
xyz_id = np.asarray(efpobj.get_induced_dipole_coordinates(verbose=verbose)).reshape(nid, 3)
val_id = np.asarray(efpobj.get_induced_dipole_values(verbose=verbose)).reshape(nid, 3)
val_idt = np.asarray(efpobj.get_induced_dipole_conj_values(verbose=verbose)).reshape(nid, 3)
# take average of induced dipole and conjugate
val_id = (val_id + val_idt) * 0.5
# EFP induced dipole contribution to the Fock Matrix
coords = core.Matrix.from_array(xyz_id)
V_ind = mints.induction_operator(coords, core.Matrix.from_array(val_id)).np
return V_ind
| lgpl-3.0 |
IRI-Research/django | django/contrib/auth/decorators.py | 10 | 3164 | from functools import wraps
from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.core.exceptions import PermissionDenied
from django.utils.decorators import available_attrs
from django.utils.encoding import force_str
from django.utils.six.moves.urllib.parse import urlparse
from django.shortcuts import resolve_url
def user_passes_test(test_func, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME):
"""
Decorator for views that checks that the user passes the given test,
redirecting to the log-in page if necessary. The test should be a callable
that takes the user object and returns True if the user passes.
"""
def decorator(view_func):
@wraps(view_func, assigned=available_attrs(view_func))
def _wrapped_view(request, *args, **kwargs):
if test_func(request.user):
return view_func(request, *args, **kwargs)
path = request.build_absolute_uri()
# urlparse chokes on lazy objects in Python 3, force to str
resolved_login_url = force_str(
resolve_url(login_url or settings.LOGIN_URL))
# If the login url is the same scheme and net location then just
# use the path as the "next" url.
login_scheme, login_netloc = urlparse(resolved_login_url)[:2]
current_scheme, current_netloc = urlparse(path)[:2]
if ((not login_scheme or login_scheme == current_scheme) and
(not login_netloc or login_netloc == current_netloc)):
path = request.get_full_path()
from django.contrib.auth.views import redirect_to_login
return redirect_to_login(
path, resolved_login_url, redirect_field_name)
return _wrapped_view
return decorator
def login_required(function=None, redirect_field_name=REDIRECT_FIELD_NAME, login_url=None):
"""
Decorator for views that checks that the user is logged in, redirecting
to the log-in page if necessary.
"""
actual_decorator = user_passes_test(
lambda u: u.is_authenticated(),
login_url=login_url,
redirect_field_name=redirect_field_name
)
if function:
return actual_decorator(function)
return actual_decorator
def permission_required(perm, login_url=None, raise_exception=False):
"""
Decorator for views that checks whether a user has a particular permission
enabled, redirecting to the log-in page if neccesary.
If the raise_exception parameter is given the PermissionDenied exception
is raised.
"""
def check_perms(user):
if not isinstance(perm, (list, tuple)):
perms = (perm, )
else:
perms = perm
# First check if the user has the permission (even anon users)
if user.has_perms(perms):
return True
# In case the 403 handler should be called raise the exception
if raise_exception:
raise PermissionDenied
# As the last resort, show the login form
return False
return user_passes_test(check_perms, login_url=login_url)
| bsd-3-clause |
mekanix/geonode | geonode/layers/utils.py | 2 | 27609 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# 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/>.
#
#########################################################################
"""Utilities for managing GeoNode layers
"""
# Standard Modules
import logging
import re
import os
import glob
import sys
import tempfile
from osgeo import gdal
# Django functionality
from django.contrib.auth import get_user_model
from django.template.defaultfilters import slugify
from django.core.exceptions import ObjectDoesNotExist
from django.core.files.storage import default_storage as storage
from django.core.files import File
from django.conf import settings
from django.db import transaction
from django.db.models import Q
# Geonode functionality
from geonode import GeoNodeException
from geonode.people.utils import get_valid_user
from geonode.layers.models import Layer, UploadSession
from geonode.base.models import Link, SpatialRepresentationType, TopicCategory, Region, License
from geonode.layers.models import shp_exts, csv_exts, vec_exts, cov_exts
from geonode.layers.metadata import set_metadata
from geonode.utils import http_client
import tarfile
from zipfile import ZipFile, is_zipfile
from datetime import datetime
logger = logging.getLogger('geonode.layers.utils')
_separator = '\n' + ('-' * 100) + '\n'
def _clean_string(
str,
regex=r"(^[^a-zA-Z\._]+)|([^a-zA-Z\._0-9]+)",
replace="_"):
"""
Replaces a string that matches the regex with the replacement.
"""
regex = re.compile(regex)
if str[0].isdigit():
str = replace + str
return regex.sub(replace, str)
def resolve_regions(regions):
regions_resolved = []
regions_unresolved = []
if regions:
if len(regions) > 0:
for region in regions:
try:
region_resolved = Region.objects.get(Q(name__iexact=region) | Q(code__iexact=region))
regions_resolved.append(region_resolved)
except ObjectDoesNotExist:
regions_unresolved.append(region)
return regions_resolved, regions_unresolved
def get_files(filename):
"""Converts the data to Shapefiles or Geotiffs and returns
a dictionary with all the required files
"""
files = {}
# Verify if the filename is in ascii format.
try:
filename.decode('ascii')
except UnicodeEncodeError:
msg = "Please use only characters from the english alphabet for the filename. '%s' is not yet supported." \
% os.path.basename(filename).encode('UTF-8')
raise GeoNodeException(msg)
# Make sure the file exists.
if not os.path.exists(filename):
msg = ('Could not open %s. Make sure you are using a '
'valid file' % filename)
logger.warn(msg)
raise GeoNodeException(msg)
base_name, extension = os.path.splitext(filename)
# Replace special characters in filenames - []{}()
glob_name = re.sub(r'([\[\]\(\)\{\}])', r'[\g<1>]', base_name)
if extension.lower() == '.shp':
required_extensions = dict(
shp='.[sS][hH][pP]', dbf='.[dD][bB][fF]', shx='.[sS][hH][xX]')
for ext, pattern in required_extensions.iteritems():
matches = glob.glob(glob_name + pattern)
if len(matches) == 0:
msg = ('Expected helper file %s does not exist; a Shapefile '
'requires helper files with the following extensions: '
'%s') % (base_name + "." + ext,
required_extensions.keys())
raise GeoNodeException(msg)
elif len(matches) > 1:
msg = ('Multiple helper files for %s exist; they need to be '
'distinct by spelling and not just case.') % filename
raise GeoNodeException(msg)
else:
files[ext] = matches[0]
matches = glob.glob(glob_name + ".[pP][rR][jJ]")
if len(matches) == 1:
files['prj'] = matches[0]
elif len(matches) > 1:
msg = ('Multiple helper files for %s exist; they need to be '
'distinct by spelling and not just case.') % filename
raise GeoNodeException(msg)
elif extension.lower() in cov_exts:
files[extension.lower().replace('.', '')] = filename
if 'geonode.geoserver' in settings.INSTALLED_APPS:
matches = glob.glob(glob_name + ".[sS][lL][dD]")
if len(matches) == 1:
files['sld'] = matches[0]
elif len(matches) > 1:
msg = ('Multiple style files (sld) for %s exist; they need to be '
'distinct by spelling and not just case.') % filename
raise GeoNodeException(msg)
matches = glob.glob(base_name + ".[xX][mM][lL]")
# shapefile XML metadata is sometimes named base_name.shp.xml
# try looking for filename.xml if base_name.xml does not exist
if len(matches) == 0:
matches = glob.glob(filename + ".[xX][mM][lL]")
if len(matches) == 1:
files['xml'] = matches[0]
elif len(matches) > 1:
msg = ('Multiple XML files for %s exist; they need to be '
'distinct by spelling and not just case.') % filename
raise GeoNodeException(msg)
if 'geonode_qgis_server' in settings.INSTALLED_APPS:
matches = glob.glob(glob_name + ".[qQ][mM][lL]")
logger.debug('Checking QML file')
logger.debug('Number of matches QML file : %s' % len(matches))
logger.debug('glob name: %s' % glob_name)
if len(matches) == 1:
files['qml'] = matches[0]
elif len(matches) > 1:
msg = ('Multiple style files (qml) for %s exist; they need to be '
'distinct by spelling and not just case.') % filename
raise GeoNodeException(msg)
return files
def layer_type(filename):
"""Finds out if a filename is a Feature or a Vector
returns a gsconfig resource_type string
that can be either 'featureType' or 'coverage'
"""
base_name, extension = os.path.splitext(filename)
if extension.lower() == '.zip':
zf = ZipFile(filename)
# ZipFile doesn't support with statement in 2.6, so don't do it
try:
for n in zf.namelist():
b, e = os.path.splitext(n.lower())
if e in shp_exts or e in cov_exts or e in csv_exts:
extension = e
finally:
zf.close()
if extension.lower() == '.tar' or filename.endswith('.tar.gz'):
tf = tarfile.open(filename)
# TarFile doesn't support with statement in 2.6, so don't do it
try:
for n in tf.getnames():
b, e = os.path.splitext(n.lower())
if e in shp_exts or e in cov_exts or e in csv_exts:
extension = e
finally:
tf.close()
if extension.lower() in vec_exts:
return 'vector'
elif extension.lower() in cov_exts:
return 'raster'
else:
msg = ('Saving of extension [%s] is not implemented' % extension)
raise GeoNodeException(msg)
def get_valid_name(layer_name):
"""
Create a brand new name
"""
name = _clean_string(layer_name)
proposed_name = name
count = 1
while Layer.objects.filter(name=proposed_name).exists():
proposed_name = "%s_%d" % (name, count)
count = count + 1
logger.info('Requested name already used; adjusting name '
'[%s] => [%s]', layer_name, proposed_name)
else:
logger.info("Using name as requested")
return proposed_name
def get_valid_layer_name(layer, overwrite):
"""Checks if the layer is a string and fetches it from the database.
"""
# The first thing we do is get the layer name string
if isinstance(layer, Layer):
layer_name = layer.name
elif isinstance(layer, basestring):
layer_name = layer
else:
msg = ('You must pass either a filename or a GeoNode layer object')
raise GeoNodeException(msg)
if overwrite:
return layer_name
else:
return get_valid_name(layer_name)
def get_default_user():
"""Create a default user
"""
superusers = get_user_model().objects.filter(
is_superuser=True).order_by('id')
if superusers.count() > 0:
# Return the first created superuser
return superusers[0]
else:
raise GeoNodeException('You must have an admin account configured '
'before importing data. '
'Try: django-admin.py createsuperuser')
def is_vector(filename):
__, extension = os.path.splitext(filename)
if extension in vec_exts:
return True
else:
return False
def is_raster(filename):
__, extension = os.path.splitext(filename)
if extension in cov_exts:
return True
else:
return False
def get_resolution(filename):
gtif = gdal.Open(filename)
gt = gtif.GetGeoTransform()
__, resx, __, __, __, resy = gt
resolution = '%s %s' % (resx, resy)
return resolution
def get_bbox(filename):
from django.contrib.gis.gdal import DataSource
bbox_x0, bbox_y0, bbox_x1, bbox_y1 = None, None, None, None
if is_vector(filename):
datasource = DataSource(filename)
layer = datasource[0]
bbox_x0, bbox_y0, bbox_x1, bbox_y1 = layer.extent.tuple
elif is_raster(filename):
gtif = gdal.Open(filename)
gt = gtif.GetGeoTransform()
cols = gtif.RasterXSize
rows = gtif.RasterYSize
ext = []
xarr = [0, cols]
yarr = [0, rows]
# Get the extent.
for px in xarr:
for py in yarr:
x = gt[0] + (px * gt[1]) + (py * gt[2])
y = gt[3] + (px * gt[4]) + (py * gt[5])
ext.append([x, y])
yarr.reverse()
# ext has four corner points, get a bbox from them.
bbox_x0 = ext[0][0]
bbox_y0 = ext[0][1]
bbox_x1 = ext[2][0]
bbox_y1 = ext[2][1]
return [bbox_x0, bbox_x1, bbox_y0, bbox_y1]
def unzip_file(upload_file, extension='.shp', tempdir=None):
"""
Unzips a zipfile into a temporary directory and returns the full path of the .shp file inside (if any)
"""
absolute_base_file = None
if tempdir is None:
tempdir = tempfile.mkdtemp()
the_zip = ZipFile(upload_file)
the_zip.extractall(tempdir)
for item in the_zip.namelist():
if item.endswith(extension):
absolute_base_file = os.path.join(tempdir, item)
return absolute_base_file
def extract_tarfile(upload_file, extension='.shp', tempdir=None):
"""
Extracts a tarfile into a temporary directory and returns the full path of the .shp file inside (if any)
"""
absolute_base_file = None
if tempdir is None:
tempdir = tempfile.mkdtemp()
the_tar = tarfile.open(upload_file)
the_tar.extractall(tempdir)
for item in the_tar.getnames():
if item.endswith(extension):
absolute_base_file = os.path.join(tempdir, item)
return absolute_base_file
def file_upload(filename, name=None, user=None, title=None, abstract=None,
license=None,
category=None, keywords=None, regions=None,
date=None,
skip=True, overwrite=False, charset='UTF-8',
metadata_uploaded_preserve=False,
metadata_upload_form=False):
"""Saves a layer in GeoNode asking as little information as possible.
Only filename is required, user and title are optional.
"""
if keywords is None:
keywords = []
if regions is None:
regions = []
# Get a valid user
theuser = get_valid_user(user)
# Create a new upload session
upload_session = UploadSession.objects.create(user=theuser)
# Get all the files uploaded with the layer
files = get_files(filename)
# Set a default title that looks nice ...
if title is None:
basename = os.path.splitext(os.path.basename(filename))[0]
title = basename.title().replace('_', ' ')
# Create a name from the title if it is not passed.
if name is None:
name = slugify(title).replace('-', '_')
else:
name = slugify(name) # assert that name is slugified
if license is not None:
licenses = License.objects.filter(
Q(name__iexact=license) |
Q(abbreviation__iexact=license) |
Q(url__iexact=license) |
Q(description__iexact=license))
if len(licenses) == 1:
license = licenses[0]
else:
license = None
if category is not None:
categories = TopicCategory.objects.filter(
Q(identifier__iexact=category) |
Q(gn_description__iexact=category))
if len(categories) == 1:
category = categories[0]
else:
category = None
# Generate a name that is not taken if overwrite is False.
valid_name = get_valid_layer_name(name, overwrite)
# Add them to the upload session (new file fields are created).
assigned_name = None
for type_name, fn in files.items():
with open(fn, 'rb') as f:
upload_session.layerfile_set.create(name=type_name,
file=File(f, name='%s.%s' % (assigned_name or valid_name, type_name)))
# save the system assigned name for the remaining files
if not assigned_name:
the_file = upload_session.layerfile_set.all()[0].file.name
assigned_name = os.path.splitext(os.path.basename(the_file))[0]
# Get a bounding box
bbox_x0, bbox_x1, bbox_y0, bbox_y1 = get_bbox(filename)
# by default, if RESOURCE_PUBLISHING=True then layer.is_published
# must be set to False
is_published = True
if settings.RESOURCE_PUBLISHING:
is_published = False
defaults = {
'upload_session': upload_session,
'title': title,
'abstract': abstract,
'owner': user,
'charset': charset,
'bbox_x0': bbox_x0,
'bbox_x1': bbox_x1,
'bbox_y0': bbox_y0,
'bbox_y1': bbox_y1,
'is_published': is_published,
'license': license,
'category': category
}
# set metadata
if 'xml' in files:
with open(files['xml']) as f:
xml_file = f.read()
defaults['metadata_uploaded'] = True
defaults['metadata_uploaded_preserve'] = metadata_uploaded_preserve
# get model properties from XML
identifier, vals, regions, keywords = set_metadata(xml_file)
if defaults['metadata_uploaded_preserve']:
defaults['metadata_xml'] = xml_file
defaults['uuid'] = identifier
for key, value in vals.items():
if key == 'spatial_representation_type':
value = SpatialRepresentationType(identifier=value)
elif key == 'topic_category':
value, created = TopicCategory.objects.get_or_create(
identifier=value.lower(),
defaults={'description': '', 'gn_description': value})
key = 'category'
defaults[key] = value
else:
defaults[key] = value
regions_resolved, regions_unresolved = resolve_regions(regions)
keywords.extend(regions_unresolved)
if getattr(settings, 'NLP_ENABLED', False):
try:
from geonode.contrib.nlp.utils import nlp_extract_metadata_dict
nlp_metadata = nlp_extract_metadata_dict({
'title': defaults.get('title', None),
'abstract': defaults.get('abstract', None),
'purpose': defaults.get('purpose', None)})
if nlp_metadata:
regions_resolved.extend(nlp_metadata.get('regions', []))
keywords.extend(nlp_metadata.get('keywords', []))
except:
print "NLP extraction failed."
# If it is a vector file, create the layer in postgis.
if is_vector(filename):
defaults['storeType'] = 'dataStore'
# If it is a raster file, get the resolution.
if is_raster(filename):
defaults['storeType'] = 'coverageStore'
# Create a Django object.
with transaction.atomic():
if not metadata_upload_form:
layer, created = Layer.objects.get_or_create(
name=valid_name,
defaults=defaults
)
elif identifier:
layer, created = Layer.objects.get_or_create(
uuid=identifier,
defaults=defaults
)
# Delete the old layers if overwrite is true
# and the layer was not just created
# process the layer again after that by
# doing a layer.save()
if not created and overwrite:
if layer.upload_session:
layer.upload_session.layerfile_set.all().delete()
layer.upload_session = upload_session
# Pass the parameter overwrite to tell whether the
# geoserver_post_save_signal should upload the new file or not
layer.overwrite = overwrite
layer.save()
# Assign the keywords (needs to be done after saving)
keywords = list(set(keywords))
if keywords:
if len(keywords) > 0:
layer.keywords.add(*keywords)
# Assign the regions (needs to be done after saving)
regions_resolved = list(set(regions_resolved))
if regions_resolved:
if len(regions_resolved) > 0:
layer.regions.clear()
layer.regions.add(*regions_resolved)
saveAgain = False
if title is not None:
layer.title = title
saveAgain = True
if abstract is not None:
layer.abstract = abstract
saveAgain = True
if date is not None:
layer.date = datetime.strptime(date, '%Y-%m-%d %H:%M:%S')
saveAgain = True
if license is not None:
layer.license = license
saveAgain = True
if category is not None:
layer.category = category
saveAgain = True
if saveAgain:
layer.save()
return layer
def upload(incoming, user=None, overwrite=False,
name=None, title=None, abstract=None, date=None,
license=None,
category=None, keywords=None, regions=None,
skip=True, ignore_errors=True,
verbosity=1, console=None,
private=False, metadata_uploaded_preserve=False):
"""Upload a directory of spatial data files to GeoNode
This function also verifies that each layer is in GeoServer.
Supported extensions are: .shp, .tif, .tar, .tar.gz, and .zip (of a shapefile).
It catches GeoNodeExceptions and gives a report per file
"""
if verbosity > 1:
print >> console, "Verifying that GeoNode is running ..."
if console is None:
console = open(os.devnull, 'w')
potential_files = []
if os.path.isfile(incoming):
___, short_filename = os.path.split(incoming)
basename, extension = os.path.splitext(short_filename)
filename = incoming
if extension in ['.tif', '.shp', '.tar', '.zip']:
potential_files.append((basename, filename))
elif short_filename.endswith('.tar.gz'):
potential_files.append((basename, filename))
elif not os.path.isdir(incoming):
msg = ('Please pass a filename or a directory name as the "incoming" '
'parameter, instead of %s: %s' % (incoming, type(incoming)))
logger.exception(msg)
raise GeoNodeException(msg)
else:
datadir = incoming
for root, dirs, files in os.walk(datadir):
for short_filename in files:
basename, extension = os.path.splitext(short_filename)
filename = os.path.join(root, short_filename)
if extension in ['.tif', '.shp', '.tar', '.zip']:
potential_files.append((basename, filename))
elif short_filename.endswith('.tar.gz'):
potential_files.append((basename, filename))
# After gathering the list of potential files,
# let's process them one by one.
number = len(potential_files)
if verbosity > 1:
msg = "Found %d potential layers." % number
print >> console, msg
if (number > 1) and (name is not None):
msg = 'Failed to process. Cannot specify name with multiple imports.'
raise Exception(msg)
output = []
for i, file_pair in enumerate(potential_files):
basename, filename = file_pair
existing_layers = Layer.objects.filter(name=basename)
if existing_layers.count() > 0:
existed = True
else:
existed = False
if existed and skip:
save_it = False
status = 'skipped'
layer = existing_layers[0]
if verbosity > 0:
msg = ('Stopping process because '
'--overwrite was not set '
'and a layer with this name already exists.')
print >> sys.stderr, msg
else:
save_it = True
if save_it:
try:
if is_zipfile(filename):
filename = unzip_file(filename)
if tarfile.is_tarfile(filename):
filename = extract_tarfile(filename)
layer = file_upload(filename,
name=name,
title=title,
abstract=abstract,
date=date,
user=user,
overwrite=overwrite,
license=license,
category=category,
keywords=keywords,
regions=regions,
metadata_uploaded_preserve=metadata_uploaded_preserve
)
if not existed:
status = 'created'
else:
status = 'updated'
if private and user:
perm_spec = {"users": {"AnonymousUser": [],
user.username: ["change_resourcebase_metadata", "change_layer_data",
"change_layer_style", "change_resourcebase",
"delete_resourcebase", "change_resourcebase_permissions",
"publish_resourcebase"]}, "groups": {}}
layer.set_permissions(perm_spec)
if getattr(settings, 'SLACK_ENABLED', False):
try:
from geonode.contrib.slack.utils import build_slack_message_layer, send_slack_messages
send_slack_messages(build_slack_message_layer(
("layer_new" if status == "created" else "layer_edit"),
layer))
except:
print "Could not send slack message."
except Exception as e:
if ignore_errors:
status = 'failed'
exception_type, error, traceback = sys.exc_info()
else:
if verbosity > 0:
msg = ('Stopping process because '
'--ignore-errors was not set '
'and an error was found.')
print >> sys.stderr, msg
msg = 'Failed to process %s' % filename
raise Exception(msg, e), None, sys.exc_info()[2]
msg = "[%s] Layer for '%s' (%d/%d)" % (status, filename, i + 1, number)
info = {'file': filename, 'status': status}
if status == 'failed':
info['traceback'] = traceback
info['exception_type'] = exception_type
info['error'] = error
else:
info['name'] = layer.name
output.append(info)
if verbosity > 0:
print >> console, msg
return output
def create_thumbnail(instance, thumbnail_remote_url, thumbnail_create_url=None,
check_bbox=True, ogc_client=None, overwrite=False):
thumbnail_dir = os.path.join(settings.MEDIA_ROOT, 'thumbs')
thumbnail_name = 'layer-%s-thumb.png' % instance.uuid
thumbnail_path = os.path.join(thumbnail_dir, thumbnail_name)
if overwrite is True or storage.exists(thumbnail_path) is False:
if not ogc_client:
ogc_client = http_client
BBOX_DIFFERENCE_THRESHOLD = 1e-5
if not thumbnail_create_url:
thumbnail_create_url = thumbnail_remote_url
if check_bbox:
# Check if the bbox is invalid
valid_x = (
float(
instance.bbox_x0) -
float(
instance.bbox_x1)) ** 2 > BBOX_DIFFERENCE_THRESHOLD
valid_y = (
float(
instance.bbox_y1) -
float(
instance.bbox_y0)) ** 2 > BBOX_DIFFERENCE_THRESHOLD
else:
valid_x = True
valid_y = True
image = None
if valid_x and valid_y:
Link.objects.get_or_create(resource=instance.get_self_resource(),
url=thumbnail_remote_url,
defaults=dict(
extension='png',
name="Remote Thumbnail",
mime='image/png',
link_type='image',
)
)
Layer.objects.filter(id=instance.id) \
.update(thumbnail_url=thumbnail_remote_url)
# Download thumbnail and save it locally.
resp, image = ogc_client.request(thumbnail_create_url)
if 'ServiceException' in image or \
resp.status < 200 or resp.status > 299:
msg = 'Unable to obtain thumbnail: %s' % image
logger.debug(msg)
# Replace error message with None.
image = None
if image is not None:
filename = 'layer-%s-thumb.png' % instance.uuid
instance.save_thumbnail(filename, image=image)
| gpl-3.0 |
jbeder/yaml-cpp.old-api | test/gmock-1.7.0/scripts/generator/cpp/tokenize.py | 679 | 9703 | #!/usr/bin/env python
#
# Copyright 2007 Neal Norwitz
# Portions Copyright 2007 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.
"""Tokenize C++ source code."""
__author__ = 'nnorwitz@google.com (Neal Norwitz)'
try:
# Python 3.x
import builtins
except ImportError:
# Python 2.x
import __builtin__ as builtins
import sys
from cpp import utils
if not hasattr(builtins, 'set'):
# Nominal support for Python 2.3.
from sets import Set as set
# Add $ as a valid identifier char since so much code uses it.
_letters = 'abcdefghijklmnopqrstuvwxyz'
VALID_IDENTIFIER_CHARS = set(_letters + _letters.upper() + '_0123456789$')
HEX_DIGITS = set('0123456789abcdefABCDEF')
INT_OR_FLOAT_DIGITS = set('01234567890eE-+')
# C++0x string preffixes.
_STR_PREFIXES = set(('R', 'u8', 'u8R', 'u', 'uR', 'U', 'UR', 'L', 'LR'))
# Token types.
UNKNOWN = 'UNKNOWN'
SYNTAX = 'SYNTAX'
CONSTANT = 'CONSTANT'
NAME = 'NAME'
PREPROCESSOR = 'PREPROCESSOR'
# Where the token originated from. This can be used for backtracking.
# It is always set to WHENCE_STREAM in this code.
WHENCE_STREAM, WHENCE_QUEUE = range(2)
class Token(object):
"""Data container to represent a C++ token.
Tokens can be identifiers, syntax char(s), constants, or
pre-processor directives.
start contains the index of the first char of the token in the source
end contains the index of the last char of the token in the source
"""
def __init__(self, token_type, name, start, end):
self.token_type = token_type
self.name = name
self.start = start
self.end = end
self.whence = WHENCE_STREAM
def __str__(self):
if not utils.DEBUG:
return 'Token(%r)' % self.name
return 'Token(%r, %s, %s)' % (self.name, self.start, self.end)
__repr__ = __str__
def _GetString(source, start, i):
i = source.find('"', i+1)
while source[i-1] == '\\':
# Count the trailing backslashes.
backslash_count = 1
j = i - 2
while source[j] == '\\':
backslash_count += 1
j -= 1
# When trailing backslashes are even, they escape each other.
if (backslash_count % 2) == 0:
break
i = source.find('"', i+1)
return i + 1
def _GetChar(source, start, i):
# NOTE(nnorwitz): may not be quite correct, should be good enough.
i = source.find("'", i+1)
while source[i-1] == '\\':
# Need to special case '\\'.
if (i - 2) > start and source[i-2] == '\\':
break
i = source.find("'", i+1)
# Try to handle unterminated single quotes (in a #if 0 block).
if i < 0:
i = start
return i + 1
def GetTokens(source):
"""Returns a sequence of Tokens.
Args:
source: string of C++ source code.
Yields:
Token that represents the next token in the source.
"""
# Cache various valid character sets for speed.
valid_identifier_chars = VALID_IDENTIFIER_CHARS
hex_digits = HEX_DIGITS
int_or_float_digits = INT_OR_FLOAT_DIGITS
int_or_float_digits2 = int_or_float_digits | set('.')
# Only ignore errors while in a #if 0 block.
ignore_errors = False
count_ifs = 0
i = 0
end = len(source)
while i < end:
# Skip whitespace.
while i < end and source[i].isspace():
i += 1
if i >= end:
return
token_type = UNKNOWN
start = i
c = source[i]
if c.isalpha() or c == '_': # Find a string token.
token_type = NAME
while source[i] in valid_identifier_chars:
i += 1
# String and character constants can look like a name if
# they are something like L"".
if (source[i] == "'" and (i - start) == 1 and
source[start:i] in 'uUL'):
# u, U, and L are valid C++0x character preffixes.
token_type = CONSTANT
i = _GetChar(source, start, i)
elif source[i] == "'" and source[start:i] in _STR_PREFIXES:
token_type = CONSTANT
i = _GetString(source, start, i)
elif c == '/' and source[i+1] == '/': # Find // comments.
i = source.find('\n', i)
if i == -1: # Handle EOF.
i = end
continue
elif c == '/' and source[i+1] == '*': # Find /* comments. */
i = source.find('*/', i) + 2
continue
elif c in ':+-<>&|*=': # : or :: (plus other chars).
token_type = SYNTAX
i += 1
new_ch = source[i]
if new_ch == c:
i += 1
elif c == '-' and new_ch == '>':
i += 1
elif new_ch == '=':
i += 1
elif c in '()[]{}~!?^%;/.,': # Handle single char tokens.
token_type = SYNTAX
i += 1
if c == '.' and source[i].isdigit():
token_type = CONSTANT
i += 1
while source[i] in int_or_float_digits:
i += 1
# Handle float suffixes.
for suffix in ('l', 'f'):
if suffix == source[i:i+1].lower():
i += 1
break
elif c.isdigit(): # Find integer.
token_type = CONSTANT
if c == '0' and source[i+1] in 'xX':
# Handle hex digits.
i += 2
while source[i] in hex_digits:
i += 1
else:
while source[i] in int_or_float_digits2:
i += 1
# Handle integer (and float) suffixes.
for suffix in ('ull', 'll', 'ul', 'l', 'f', 'u'):
size = len(suffix)
if suffix == source[i:i+size].lower():
i += size
break
elif c == '"': # Find string.
token_type = CONSTANT
i = _GetString(source, start, i)
elif c == "'": # Find char.
token_type = CONSTANT
i = _GetChar(source, start, i)
elif c == '#': # Find pre-processor command.
token_type = PREPROCESSOR
got_if = source[i:i+3] == '#if' and source[i+3:i+4].isspace()
if got_if:
count_ifs += 1
elif source[i:i+6] == '#endif':
count_ifs -= 1
if count_ifs == 0:
ignore_errors = False
# TODO(nnorwitz): handle preprocessor statements (\ continuations).
while 1:
i1 = source.find('\n', i)
i2 = source.find('//', i)
i3 = source.find('/*', i)
i4 = source.find('"', i)
# NOTE(nnorwitz): doesn't handle comments in #define macros.
# Get the first important symbol (newline, comment, EOF/end).
i = min([x for x in (i1, i2, i3, i4, end) if x != -1])
# Handle #include "dir//foo.h" properly.
if source[i] == '"':
i = source.find('"', i+1) + 1
assert i > 0
continue
# Keep going if end of the line and the line ends with \.
if not (i == i1 and source[i-1] == '\\'):
if got_if:
condition = source[start+4:i].lstrip()
if (condition.startswith('0') or
condition.startswith('(0)')):
ignore_errors = True
break
i += 1
elif c == '\\': # Handle \ in code.
# This is different from the pre-processor \ handling.
i += 1
continue
elif ignore_errors:
# The tokenizer seems to be in pretty good shape. This
# raise is conditionally disabled so that bogus code
# in an #if 0 block can be handled. Since we will ignore
# it anyways, this is probably fine. So disable the
# exception and return the bogus char.
i += 1
else:
sys.stderr.write('Got invalid token in %s @ %d token:%s: %r\n' %
('?', i, c, source[i-10:i+10]))
raise RuntimeError('unexpected token')
if i <= 0:
print('Invalid index, exiting now.')
return
yield Token(token_type, source[start:i], start, i)
if __name__ == '__main__':
def main(argv):
"""Driver mostly for testing purposes."""
for filename in argv[1:]:
source = utils.ReadFile(filename)
if source is None:
continue
for token in GetTokens(source):
print('%-12s: %s' % (token.token_type, token.name))
# print('\r%6.2f%%' % (100.0 * index / token.end),)
sys.stdout.write('\n')
main(sys.argv)
| mit |
xuweiliang/Codelibrary | nova/conf/configdrive.py | 10 | 4097 | # 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 oslo_config import cfg
config_drive_opts = [
cfg.StrOpt('config_drive_format',
default='iso9660',
choices=('iso9660', 'vfat'),
help="""
Configuration drive format
Configuration drive format that will contain metadata attached to the
instance when it boots.
Possible values:
* iso9660: A file system image standard that is widely supported across
operating systems. NOTE: Mind the libvirt bug
(https://bugs.launchpad.net/nova/+bug/1246201) - If your hypervisor
driver is libvirt, and you want live migrate to work without shared storage,
then use VFAT.
* vfat: For legacy reasons, you can configure the configuration drive to
use VFAT format instead of ISO 9660.
Related options:
* This option is meaningful when one of the following alternatives occur:
1. force_config_drive option set to 'true'
2. the REST API call to create the instance contains an enable flag for
config drive option
3. the image used to create the instance requires a config drive,
this is defined by img_config_drive property for that image.
* A compute node running Hyper-V hypervisor can be configured to attach
configuration drive as a CD drive. To attach the configuration drive as a CD
drive, set config_drive_cdrom option at hyperv section, to true.
"""),
cfg.BoolOpt('force_config_drive',
default=False,
help="""
Force injection to take place on a config drive
When this option is set to true configuration drive functionality will be
forced enabled by default, otherwise user can still enable configuration
drives via the REST API or image metadata properties.
Possible values:
* True: Force to use of configuration drive regardless the user's input in the
REST API call.
* False: Do not force use of configuration drive. Config drives can still be
enabled via the REST API or image metadata properties.
Related options:
* Use the 'mkisofs_cmd' flag to set the path where you install the
genisoimage program. If genisoimage is in same path as the
nova-compute service, you do not need to set this flag.
* To use configuration drive with Hyper-V, you must set the
'mkisofs_cmd' value to the full path to an mkisofs.exe installation.
Additionally, you must set the qemu_img_cmd value in the hyperv
configuration section to the full path to an qemu-img command
installation.
"""),
cfg.StrOpt('mkisofs_cmd',
default='genisoimage',
help="""
Name or path of the tool used for ISO image creation
Use the mkisofs_cmd flag to set the path where you install the genisoimage
program. If genisoimage is on the system path, you do not need to change
the default value.
To use configuration drive with Hyper-V, you must set the mkisofs_cmd value
to the full path to an mkisofs.exe installation. Additionally, you must set
the qemu_img_cmd value in the hyperv configuration section to the full path
to an qemu-img command installation.
Possible values:
* Name of the ISO image creator program, in case it is in the same directory
as the nova-compute service
* Path to ISO image creator program
Related options:
* This option is meaningful when config drives are enabled.
* To use configuration drive with Hyper-V, you must set the qemu_img_cmd
value in the hyperv configuration section to the full path to an qemu-img
command installation.
"""),
]
def register_opts(conf):
conf.register_opts(config_drive_opts)
def list_opts():
return {"DEFAULT": config_drive_opts}
| apache-2.0 |
juanmont/one | .vscode/extensions/tht13.rst-vscode-2.0.0/src/python/docutils/readers/doctree.py | 246 | 1607 | # $Id: doctree.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Martin Blais <blais@furius.ca>
# Copyright: This module has been placed in the public domain.
"""Reader for existing document trees."""
from docutils import readers, utils, transforms
class Reader(readers.ReReader):
"""
Adapt the Reader API for an existing document tree.
The existing document tree must be passed as the ``source`` parameter to
the `docutils.core.Publisher` initializer, wrapped in a
`docutils.io.DocTreeInput` object::
pub = docutils.core.Publisher(
..., source=docutils.io.DocTreeInput(document), ...)
The original document settings are overridden; if you want to use the
settings of the original document, pass ``settings=document.settings`` to
the Publisher call above.
"""
supported = ('doctree',)
config_section = 'doctree reader'
config_section_dependencies = ('readers',)
def parse(self):
"""
No parsing to do; refurbish the document tree instead.
Overrides the inherited method.
"""
self.document = self.input
# Create fresh Transformer object, to be populated from Writer
# component.
self.document.transformer = transforms.Transformer(self.document)
# Replace existing settings object with new one.
self.document.settings = self.settings
# Create fresh Reporter object because it is dependent on
# (new) settings.
self.document.reporter = utils.new_reporter(
self.document.get('source', ''), self.document.settings)
| apache-2.0 |
William-Hai/volatility | volatility/plugins/gui/desktops.py | 46 | 3253 | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
# Copyright (C) 2010,2011,2012 Michael Hale Ligh <michael.ligh@mnin.org>
#
# This file is part of Volatility.
#
# Volatility 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.
#
# Volatility 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 Volatility. If not, see <http://www.gnu.org/licenses/>.
#
import volatility.plugins.gui.windowstations as windowstations
class DeskScan(windowstations.WndScan):
"""Poolscaner for tagDESKTOP (desktops)"""
def render_text(self, outfd, data):
seen = []
for window_station in data:
for desktop in window_station.desktops():
offset = desktop.PhysicalAddress
if offset in seen:
continue
seen.append(offset)
outfd.write("*" * 50 + "\n")
outfd.write("Desktop: {0:#x}, Name: {1}\\{2}, Next: {3:#x}\n".format(
offset,
desktop.WindowStation.Name,
desktop.Name,
desktop.rpdeskNext.v(),
))
outfd.write("SessionId: {0}, DesktopInfo: {1:#x}, fsHooks: {2}\n".format(
desktop.dwSessionId,
desktop.pDeskInfo.v(),
desktop.DeskInfo.fsHooks,
))
outfd.write("spwnd: {0:#x}, Windows: {1}\n".format(
desktop.DeskInfo.spwnd,
len(list(desktop.windows(desktop.DeskInfo.spwnd)))
))
outfd.write("Heap: {0:#x}, Size: {1:#x}, Base: {2:#x}, Limit: {3:#x}\n".format(
desktop.pheapDesktop.v(),
desktop.DeskInfo.pvDesktopLimit - desktop.DeskInfo.pvDesktopBase,
desktop.DeskInfo.pvDesktopBase,
desktop.DeskInfo.pvDesktopLimit,
))
## This is disabled until we bring in the heaps plugin
#if self._config.VERBOSE:
# granularity = desktop.obj_vm.profile.get_obj_size("_HEAP_ENTRY")
# for entry in desktop.heaps():
# outfd.write(" Alloc: {0:#x}, Size: {1:#x} Previous: {2:#x}\n".format(
# entry.obj_offset + granularity,
# entry.Size, entry.PreviousSize,
# ))
for thrd in desktop.threads():
outfd.write(" {0} ({1} {2} parent {3})\n".format(
thrd.pEThread.Cid.UniqueThread,
thrd.ppi.Process.ImageFileName,
thrd.ppi.Process.UniqueProcessId,
thrd.ppi.Process.InheritedFromUniqueProcessId,
))
| gpl-2.0 |
dparlevliet/zelenka-report-storage | server-db/twisted/trial/_dist/managercommands.py | 45 | 1560 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Commands for reporting test success of failure to the manager.
@since: 12.3
"""
from twisted.protocols.amp import Command, String, Boolean, ListOf
class AddSuccess(Command):
"""
Add a success.
"""
arguments = [('testName', String())]
response = [('success', Boolean())]
class AddError(Command):
"""
Add an error.
"""
arguments = [('testName', String()), ('error', String()),
('errorClass', String()), ('frames', ListOf(String()))]
response = [('success', Boolean())]
class AddFailure(Command):
"""
Add a failure.
"""
arguments = [('testName', String()), ('fail', String()),
('failClass', String()), ('frames', ListOf(String()))]
response = [('success', Boolean())]
class AddSkip(Command):
"""
Add a skip.
"""
arguments = [('testName', String()), ('reason', String())]
response = [('success', Boolean())]
class AddExpectedFailure(Command):
"""
Add an expected failure.
"""
arguments = [('testName', String()), ('error', String()),
('todo', String())]
response = [('success', Boolean())]
class AddUnexpectedSuccess(Command):
"""
Add an unexpected success.
"""
arguments = [('testName', String()), ('todo', String())]
response = [('success', Boolean())]
class TestWrite(Command):
"""
Write test log.
"""
arguments = [('out', String())]
response = [('success', Boolean())]
| lgpl-3.0 |
wrouesnel/ansible | lib/ansible/modules/messaging/rabbitmq_queue.py | 39 | 10166 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Manuel Sousa <manuel.sousa@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: rabbitmq_queue
author: "Manuel Sousa (@manuel-sousa)"
version_added: "2.0"
short_description: This module manages rabbitMQ queues
description:
- This module uses rabbitMQ Rest API to create/delete queues
requirements: [ "requests >= 1.0.0" ]
options:
name:
description:
- Name of the queue to create
required: true
state:
description:
- Whether the queue should be present or absent
- Only present implemented atm
choices: [ "present", "absent" ]
required: false
default: present
login_user:
description:
- rabbitMQ user for connection
required: false
default: guest
login_password:
description:
- rabbitMQ password for connection
required: false
default: false
login_host:
description:
- rabbitMQ host for connection
required: false
default: localhost
login_port:
description:
- rabbitMQ management api port
required: false
default: 15672
vhost:
description:
- rabbitMQ virtual host
required: false
default: "/"
durable:
description:
- whether queue is durable or not
required: false
choices: [ "yes", "no" ]
default: yes
auto_delete:
description:
- if the queue should delete itself after all queues/queues unbound from it
required: false
choices: [ "yes", "no" ]
default: no
message_ttl:
description:
- How long a message can live in queue before it is discarded (milliseconds)
required: False
default: forever
auto_expires:
description:
- How long a queue can be unused before it is automatically deleted (milliseconds)
required: false
default: forever
max_length:
description:
- How many messages can the queue contain before it starts rejecting
required: false
default: no limit
dead_letter_exchange:
description:
- Optional name of an exchange to which messages will be republished if they
- are rejected or expire
required: false
default: None
dead_letter_routing_key:
description:
- Optional replacement routing key to use when a message is dead-lettered.
- Original routing key will be used if unset
required: false
default: None
max_priority:
description:
- Maximum number of priority levels for the queue to support.
- If not set, the queue will not support message priorities.
- Larger numbers indicate higher priority.
required: false
default: None
version_added: "2.4"
arguments:
description:
- extra arguments for queue. If defined this argument is a key/value dictionary
required: false
default: {}
'''
EXAMPLES = '''
# Create a queue
- rabbitmq_queue:
name: myQueue
# Create a queue on remote host
- rabbitmq_queue:
name: myRemoteQueue
login_user: user
login_password: secret
login_host: remote.example.org
'''
import json
try:
import requests
HAS_REQUESTS = True
except ImportError:
HAS_REQUESTS = False
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.six.moves.urllib import parse as urllib_parse
def main():
module = AnsibleModule(
argument_spec=dict(
state=dict(default='present', choices=['present', 'absent'], type='str'),
name=dict(required=True, type='str'),
login_user=dict(default='guest', type='str'),
login_password=dict(default='guest', type='str', no_log=True),
login_host=dict(default='localhost', type='str'),
login_port=dict(default='15672', type='str'),
vhost=dict(default='/', type='str'),
durable=dict(default=True, type='bool'),
auto_delete=dict(default=False, type='bool'),
message_ttl=dict(default=None, type='int'),
auto_expires=dict(default=None, type='int'),
max_length=dict(default=None, type='int'),
dead_letter_exchange=dict(default=None, type='str'),
dead_letter_routing_key=dict(default=None, type='str'),
arguments=dict(default=dict(), type='dict'),
max_priority=dict(default=None, type='int')
),
supports_check_mode=True
)
url = "http://%s:%s/api/queues/%s/%s" % (
module.params['login_host'],
module.params['login_port'],
urllib_parse.quote(module.params['vhost'], ''),
module.params['name']
)
if not HAS_REQUESTS:
module.fail_json(msg="requests library is required for this module. To install, use `pip install requests`")
result = dict(changed=False, name=module.params['name'])
# Check if queue already exists
r = requests.get(url, auth=(module.params['login_user'], module.params['login_password']))
if r.status_code == 200:
queue_exists = True
response = r.json()
elif r.status_code == 404:
queue_exists = False
response = r.text
else:
module.fail_json(
msg="Invalid response from RESTAPI when trying to check if queue exists",
details=r.text
)
if module.params['state'] == 'present':
change_required = not queue_exists
else:
change_required = queue_exists
# Check if attributes change on existing queue
if not change_required and r.status_code == 200 and module.params['state'] == 'present':
if not (
response['durable'] == module.params['durable'] and
response['auto_delete'] == module.params['auto_delete'] and
(
('x-message-ttl' in response['arguments'] and response['arguments']['x-message-ttl'] == module.params['message_ttl']) or
('x-message-ttl' not in response['arguments'] and module.params['message_ttl'] is None)
) and
(
('x-expires' in response['arguments'] and response['arguments']['x-expires'] == module.params['auto_expires']) or
('x-expires' not in response['arguments'] and module.params['auto_expires'] is None)
) and
(
('x-max-length' in response['arguments'] and response['arguments']['x-max-length'] == module.params['max_length']) or
('x-max-length' not in response['arguments'] and module.params['max_length'] is None)
) and
(
('x-dead-letter-exchange' in response['arguments'] and
response['arguments']['x-dead-letter-exchange'] == module.params['dead_letter_exchange']) or
('x-dead-letter-exchange' not in response['arguments'] and module.params['dead_letter_exchange'] is None)
) and
(
('x-dead-letter-routing-key' in response['arguments'] and
response['arguments']['x-dead-letter-routing-key'] == module.params['dead_letter_routing_key']) or
('x-dead-letter-routing-key' not in response['arguments'] and module.params['dead_letter_routing_key'] is None)
) and
(
('x-max-priority' in response['arguments'] and
response['arguments']['x-max-priority'] == module.params['max_priority']) or
('x-max-priority' not in response['arguments'] and module.params['max_priority'] is None)
)
):
module.fail_json(
msg="RabbitMQ RESTAPI doesn't support attribute changes for existing queues",
)
# Copy parameters to arguments as used by RabbitMQ
for k, v in {
'message_ttl': 'x-message-ttl',
'auto_expires': 'x-expires',
'max_length': 'x-max-length',
'dead_letter_exchange': 'x-dead-letter-exchange',
'dead_letter_routing_key': 'x-dead-letter-routing-key',
'max_priority': 'x-max-priority'
}.items():
if module.params[k] is not None:
module.params['arguments'][v] = module.params[k]
# Exit if check_mode
if module.check_mode:
result['changed'] = change_required
result['details'] = response
result['arguments'] = module.params['arguments']
module.exit_json(**result)
# Do changes
if change_required:
if module.params['state'] == 'present':
r = requests.put(
url,
auth=(module.params['login_user'], module.params['login_password']),
headers={"content-type": "application/json"},
data=json.dumps({
"durable": module.params['durable'],
"auto_delete": module.params['auto_delete'],
"arguments": module.params['arguments']
})
)
elif module.params['state'] == 'absent':
r = requests.delete(url, auth=(module.params['login_user'], module.params['login_password']))
# RabbitMQ 3.6.7 changed this response code from 204 to 201
if r.status_code == 204 or r.status_code == 201:
result['changed'] = True
module.exit_json(**result)
else:
module.fail_json(
msg="Error creating queue",
status=r.status_code,
details=r.text
)
else:
result['changed'] = False
module.exit_json(**result)
if __name__ == '__main__':
main()
| gpl-3.0 |
GianlucaBortoli/krafters | generate_plots.py | 1 | 3214 | #!/usr/bin/python3.4
import argparse
import matplotlib.pyplot as plt
import csv
import sys
import seaborn as sns
PLOT_TYPES = ["distribution", "mass", "raw"]
# Format of the chart:
# x axis -> append number
# y axis -> time for that particular append
def generateRawPlot(test):
# set figure size
plt.figure(figsize=(15, 6))
handles = []
# draw plot
for raw in test:
label = raw.pop(0)
xAxis = range(len(raw))
yAxis = [float(i) for i in raw]
handle, = plt.plot(xAxis, yAxis, label=label)
handles.append(handle)
# put axis labels
plt.xlabel("operations")
plt.ylabel("time (s)")
plt.legend(handles=handles)
def generateDistributionPlot(test):
sns.set(color_codes=True)
for row in test:
label = row.pop(0)
d = [float(i) for i in row]
# Plot a filled kernel density estimate
sns.distplot(d, hist=False, kde_kws={"shade": True}, label=label)
plt.xlim([-0.01, 0.1])
plt.xlabel("time (s)")
plt.ylabel("operations")
def generateMassPlot(test):
# set figure size
plt.figure(figsize=(15, 6))
handles = []
# draw plot
for raw in test:
label = raw.pop(0)
yAxis = [i / (len(raw)) for i in range(len(raw) + 1)]
values = sorted([float(i) for i in raw])
xAxis = [0] + values
handle, = plt.plot(xAxis, yAxis, label=label)
handles.append(handle)
# put axis labels
plt.xlabel("time (s)")
plt.ylabel("probability of completion")
plt.legend(handles=handles)
def main():
argument_parser = argparse.ArgumentParser(description="Generates graph from test csv")
argument_parser.add_argument("result_csv", type=str, nargs="*",
help="path to test.csv file")
argument_parser.add_argument("-t", "--type", type=str, choices=PLOT_TYPES, dest="type", default="raw",
help="type of graph to print")
argument_parser.add_argument("-o", "--output", type=str, dest="output_file_path",
help="path of the output graph file")
argument_parser.add_argument("-s", help="shows the results on a window", action="store_true")
args = argument_parser.parse_args()
data_series = []
try:
for result_csv in args.result_csv:
with open(result_csv, "r") as f:
rdr = csv.reader(f, delimiter=',', quotechar='|')
for row in rdr:
data_series.append(row)
except FileNotFoundError as e:
print("File '{}' not found".format(args.result_csv))
if not args.output_file_path:
if len(args.result_csv) > 1:
print("You must specify a output file name if you are printing a multiple file graph!")
exit(1)
output_file = args.result_csv[0]+".png"
else:
output_file = args.output_file_path
if args.type == "raw":
generateRawPlot(data_series)
elif args.type == "distribution":
generateDistributionPlot(data_series)
else:
generateMassPlot(data_series)
plt.savefig(output_file)
if args.s:
plt.show()
if __name__ == '__main__':
main()
| mit |
Edraak/edraak-platform | openedx/core/djangoapps/user_api/urls.py | 1 | 4318 | """
Defines the URL routes for this app.
"""
from django.conf import settings
from django.conf.urls import url
from ..profile_images.views import ProfileImageView
from .accounts.views import (
AccountDeactivationView,
AccountRetireMailingsView,
AccountRetirementPartnerReportView,
AccountRetirementStatusView,
AccountRetirementView,
AccountViewSet,
DeactivateBySuperuserView,
DeactivateLogoutView,
LMSAccountRetirementView
)
from .preferences.views import PreferencesDetailView, PreferencesView
from .verification_api.views import IDVerificationStatusView
from .validation.views import RegistrationValidationView
ME = AccountViewSet.as_view({
'get': 'get',
})
ACCOUNT_LIST = AccountViewSet.as_view({
'get': 'list',
})
ACCOUNT_DETAIL = AccountViewSet.as_view({
'get': 'retrieve',
'patch': 'partial_update',
})
PARTNER_REPORT = AccountRetirementPartnerReportView.as_view({
'post': 'retirement_partner_report',
'put': 'retirement_partner_status_create',
'delete': 'retirement_partner_cleanup'
})
RETIREMENT_QUEUE = AccountRetirementStatusView.as_view({
'get': 'retirement_queue'
})
RETIREMENT_LIST_BY_STATUS_AND_DATE = AccountRetirementStatusView.as_view({
'get': 'retirements_by_status_and_date'
})
RETIREMENT_RETRIEVE = AccountRetirementStatusView.as_view({
'get': 'retrieve'
})
RETIREMENT_UPDATE = AccountRetirementStatusView.as_view({
'patch': 'partial_update',
})
RETIREMENT_POST = AccountRetirementView.as_view({
'post': 'post',
})
RETIREMENT_LMS_POST = LMSAccountRetirementView.as_view({
'post': 'post',
})
urlpatterns = [
url(
r'^v1/me$',
ME,
name='own_username_api'
),
url(
r'^v1/accounts$',
ACCOUNT_LIST,
name='accounts_detail_api'
),
url(
r'^v1/accounts/{}$'.format(settings.USERNAME_PATTERN),
ACCOUNT_DETAIL,
name='accounts_api'
),
url(
r'^v1/accounts/{}/image$'.format(settings.USERNAME_PATTERN),
ProfileImageView.as_view(),
name='accounts_profile_image_api'
),
url(
r'^v1/accounts/{}/deactivate/$'.format(settings.USERNAME_PATTERN),
AccountDeactivationView.as_view(),
name='accounts_deactivation'
),
url(
r'^v1/accounts/retire_mailings/$',
AccountRetireMailingsView.as_view(),
name='accounts_retire_mailings'
),
url(
r'^v1/accounts/deactivate_logout/$',
DeactivateLogoutView.as_view(),
name='deactivate_logout'
),
url(
r'^v1/accounts/deactivate/$',
DeactivateBySuperuserView.as_view(),
name='deactivate'
),
url(
r'^v1/accounts/{}/verification_status/$'.format(settings.USERNAME_PATTERN),
IDVerificationStatusView.as_view(),
name='verification_status'
),
url(
r'^v1/accounts/{}/retirement_status/$'.format(settings.USERNAME_PATTERN),
RETIREMENT_RETRIEVE,
name='accounts_retirement_retrieve'
),
url(
r'^v1/accounts/retirement_partner_report/$',
PARTNER_REPORT,
name='accounts_retirement_partner_report'
),
url(
r'^v1/accounts/retirement_queue/$',
RETIREMENT_QUEUE,
name='accounts_retirement_queue'
),
url(
r'^v1/accounts/retirements_by_status_and_date/$',
RETIREMENT_LIST_BY_STATUS_AND_DATE,
name='accounts_retirements_by_status_and_date'
),
url(
r'^v1/accounts/retire/$',
RETIREMENT_POST,
name='accounts_retire'
),
url(
r'^v1/accounts/retire_misc/$',
RETIREMENT_LMS_POST,
name='accounts_retire_misc'
),
url(
r'^v1/accounts/update_retirement_status/$',
RETIREMENT_UPDATE,
name='accounts_retirement_update'
),
url(
r'^v1/validation/registration$',
RegistrationValidationView.as_view(),
name='registration_validation'
),
url(
r'^v1/preferences/{}$'.format(settings.USERNAME_PATTERN),
PreferencesView.as_view(),
name='preferences_api'
),
url(
r'^v1/preferences/{}/(?P<preference_key>[a-zA-Z0-9_]+)$'.format(settings.USERNAME_PATTERN),
PreferencesDetailView.as_view(),
name='preferences_detail_api'
),
]
| agpl-3.0 |
AlexChesters/emacs | elpa/elpy-20210328.1852/elpy/yapfutil.py | 13 | 1124 | """Glue for the "yapf" library.
"""
import os
import sys
from elpy.rpc import Fault
YAPF_NOT_SUPPORTED = sys.version_info < (2, 7) or (
sys.version_info >= (3, 0) and sys.version_info < (3, 4))
try:
if YAPF_NOT_SUPPORTED:
yapf_api = None
else:
from yapf.yapflib import yapf_api
from yapf.yapflib import file_resources
except ImportError: # pragma: no cover
yapf_api = None
def fix_code(code, directory):
"""Formats Python code to conform to the PEP 8 style guide.
"""
if not yapf_api:
raise Fault('yapf not installed', code=400)
style_config = file_resources.GetDefaultStyleForDir(directory or os.getcwd())
try:
reformatted_source, _ = yapf_api.FormatCode(code,
filename='<stdin>',
style_config=style_config,
verify=False)
return reformatted_source
except Exception as e:
raise Fault("Error during formatting: {}".format(e),
code=400)
| mit |
takeshineshiro/glance | glance/tests/unit/test_artifact_type_definition_framework.py | 6 | 43838 | # Copyright (c) 2015 Mirantis, 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 datetime
import mock
import six
from glance.common.artifacts import declarative
import glance.common.artifacts.definitions as defs
from glance.common.artifacts import serialization
import glance.common.exception as exc
import glance.tests.utils as test_utils
BASE = declarative.get_declarative_base()
class TestDeclarativeProperties(test_utils.BaseTestCase):
def test_artifact_type_properties(self):
class SomeTypeWithNoExplicitName(BASE):
some_attr = declarative.AttributeDefinition()
class InheritedType(SomeTypeWithNoExplicitName):
__type_version__ = '1.0'
__type_name__ = 'ExplicitName'
__type_description__ = 'Type description'
__type_display_name__ = 'EXPLICIT_NAME'
__endpoint__ = 'some_endpoint'
some_attr = declarative.AttributeDefinition(display_name='NAME')
base_type = SomeTypeWithNoExplicitName
base_instance = SomeTypeWithNoExplicitName()
self.assertIsNotNone(base_type.metadata)
self.assertIsNotNone(base_instance.metadata)
self.assertEqual(base_type.metadata, base_instance.metadata)
self.assertEqual("SomeTypeWithNoExplicitName",
base_type.metadata.type_name)
self.assertEqual("SomeTypeWithNoExplicitName",
base_type.metadata.type_display_name)
self.assertEqual("1.0", base_type.metadata.type_version)
self.assertIsNone(base_type.metadata.type_description)
self.assertEqual('sometypewithnoexplicitname',
base_type.metadata.endpoint)
self.assertIsNone(base_instance.some_attr)
self.assertIsNotNone(base_type.some_attr)
self.assertEqual(base_type.some_attr,
base_instance.metadata.attributes.all['some_attr'])
self.assertEqual('some_attr', base_type.some_attr.name)
self.assertEqual('some_attr', base_type.some_attr.display_name)
self.assertIsNone(base_type.some_attr.description)
derived_type = InheritedType
derived_instance = InheritedType()
self.assertIsNotNone(derived_type.metadata)
self.assertIsNotNone(derived_instance.metadata)
self.assertEqual(derived_type.metadata, derived_instance.metadata)
self.assertEqual('ExplicitName', derived_type.metadata.type_name)
self.assertEqual('EXPLICIT_NAME',
derived_type.metadata.type_display_name)
self.assertEqual('1.0', derived_type.metadata.type_version)
self.assertEqual('Type description',
derived_type.metadata.type_description)
self.assertEqual('some_endpoint', derived_type.metadata.endpoint)
self.assertIsNone(derived_instance.some_attr)
self.assertIsNotNone(derived_type.some_attr)
self.assertEqual(derived_type.some_attr,
derived_instance.metadata.attributes.all['some_attr'])
self.assertEqual('some_attr', derived_type.some_attr.name)
self.assertEqual('NAME', derived_type.some_attr.display_name)
def test_wrong_type_definition(self):
def declare_wrong_type_version():
class WrongType(BASE):
__type_version__ = 'abc' # not a semver
return WrongType
def declare_wrong_type_name():
class WrongType(BASE):
__type_name__ = 'a' * 256 # too long
return WrongType
self.assertRaises(exc.InvalidArtifactTypeDefinition,
declare_wrong_type_version)
self.assertRaises(exc.InvalidArtifactTypeDefinition,
declare_wrong_type_name)
def test_base_declarative_attributes(self):
class TestType(BASE):
defaulted = declarative.PropertyDefinition(default=42)
read_only = declarative.PropertyDefinition(readonly=True)
required_attr = declarative.PropertyDefinition(required=True)
e = self.assertRaises(exc.InvalidArtifactPropertyValue, TestType)
self.assertEqual('required_attr', e.name)
self.assertIsNone(e.value)
tt = TestType(required_attr="universe")
self.assertEqual('universe', tt.required_attr)
self.assertEqual(42, tt.defaulted)
self.assertIsNone(tt.read_only)
tt = TestType(required_attr="universe", defaulted=0, read_only="Hello")
self.assertEqual(0, tt.defaulted)
self.assertEqual("Hello", tt.read_only)
tt.defaulted = 5
self.assertEqual(5, tt.defaulted)
tt.required_attr = 'Foo'
self.assertEqual('Foo', tt.required_attr)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'read_only', 'some_val')
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'required_attr', None)
# no type checks in base AttributeDefinition
o = object()
tt.required_attr = o
self.assertEqual(o, tt.required_attr)
def test_generic_property(self):
class TestType(BASE):
simple_prop = declarative.PropertyDefinition()
immutable_internal = declarative.PropertyDefinition(mutable=False,
internal=True)
prop_with_allowed = declarative.PropertyDefinition(
allowed_values=["Foo", True, 42])
class DerivedType(TestType):
prop_with_allowed = declarative.PropertyDefinition(
allowed_values=["Foo", True, 42], required=True, default=42)
tt = TestType()
self.assertEqual(True,
tt.metadata.attributes.all['simple_prop'].mutable)
self.assertEqual(False,
tt.metadata.attributes.all['simple_prop'].internal)
self.assertEqual(False,
tt.metadata.attributes.all[
'immutable_internal'].mutable)
self.assertEqual(True,
tt.metadata.attributes.all[
'immutable_internal'].internal)
self.assertIsNone(tt.prop_with_allowed)
tt = TestType(prop_with_allowed=42)
self.assertEqual(42, tt.prop_with_allowed)
tt = TestType(prop_with_allowed=True)
self.assertEqual(True, tt.prop_with_allowed)
tt = TestType(prop_with_allowed='Foo')
self.assertEqual('Foo', tt.prop_with_allowed)
tt.prop_with_allowed = 42
self.assertEqual(42, tt.prop_with_allowed)
tt.prop_with_allowed = 'Foo'
self.assertEqual('Foo', tt.prop_with_allowed)
tt.prop_with_allowed = True
self.assertEqual(True, tt.prop_with_allowed)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr,
tt, 'prop_with_allowed', 'bar')
# ensure that wrong assignment didn't change the value
self.assertEqual(True, tt.prop_with_allowed)
self.assertRaises(exc.InvalidArtifactPropertyValue, TestType,
prop_with_allowed=False)
dt = DerivedType()
self.assertEqual(42, dt.prop_with_allowed)
def test_default_violates_allowed(self):
def declare_wrong_type():
class WrongType(BASE):
prop = declarative.PropertyDefinition(
allowed_values=['foo', 'bar'],
default='baz')
return WrongType
self.assertRaises(exc.InvalidArtifactTypePropertyDefinition,
declare_wrong_type)
def test_string_property(self):
class TestType(BASE):
simple = defs.String()
with_length = defs.String(max_length=10, min_length=5)
with_pattern = defs.String(pattern='^\\d+$', default='42')
tt = TestType()
tt.simple = 'foo'
self.assertEqual('foo', tt.simple)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr,
tt, 'simple', 42)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr,
tt, 'simple', 'x' * 256)
self.assertRaises(exc.InvalidArtifactPropertyValue, TestType,
simple='x' * 256)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr,
tt, 'with_length', 'x' * 11)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr,
tt, 'with_length', 'x' * 4)
tt.simple = 'x' * 5
self.assertEqual('x' * 5, tt.simple)
tt.simple = 'x' * 10
self.assertEqual('x' * 10, tt.simple)
self.assertEqual("42", tt.with_pattern)
tt.with_pattern = '0'
self.assertEqual('0', tt.with_pattern)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'with_pattern', 'abc')
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'with_pattern', '.123.')
def test_default_and_allowed_violates_string_constrains(self):
def declare_wrong_default():
class WrongType(BASE):
prop = defs.String(min_length=4, default='foo')
return WrongType
def declare_wrong_allowed():
class WrongType(BASE):
prop = defs.String(min_length=4, allowed_values=['foo', 'bar'])
return WrongType
self.assertRaises(exc.InvalidArtifactTypePropertyDefinition,
declare_wrong_default)
self.assertRaises(exc.InvalidArtifactTypePropertyDefinition,
declare_wrong_allowed)
def test_integer_property(self):
class TestType(BASE):
simple = defs.Integer()
constrained = defs.Integer(min_value=10, max_value=50)
tt = TestType()
self.assertIsNone(tt.simple)
self.assertIsNone(tt.constrained)
tt.simple = 0
tt.constrained = 10
self.assertEqual(0, tt.simple)
self.assertEqual(10, tt.constrained)
tt.constrained = 50
self.assertEqual(50, tt.constrained)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'constrained', 1)
self.assertEqual(50, tt.constrained)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'constrained', 51)
self.assertEqual(50, tt.constrained)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'simple', '11')
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'simple', 10.5)
def test_default_and_allowed_violates_int_constrains(self):
def declare_wrong_default():
class WrongType(BASE):
prop = defs.Integer(min_value=4, default=1)
return WrongType
def declare_wrong_allowed():
class WrongType(BASE):
prop = defs.Integer(min_value=4, max_value=10,
allowed_values=[1, 15])
return WrongType
self.assertRaises(exc.InvalidArtifactTypePropertyDefinition,
declare_wrong_default)
self.assertRaises(exc.InvalidArtifactTypePropertyDefinition,
declare_wrong_allowed)
def test_numeric_values(self):
class TestType(BASE):
simple = defs.Numeric()
constrained = defs.Numeric(min_value=3.14, max_value=4.1)
tt = TestType(simple=0.1, constrained=4)
self.assertEqual(0.1, tt.simple)
self.assertEqual(4.0, tt.constrained)
tt.simple = 1
self.assertEqual(1, tt.simple)
tt.constrained = 3.14
self.assertEqual(3.14, tt.constrained)
tt.constrained = 4.1
self.assertEqual(4.1, tt.constrained)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'simple', 'qwerty')
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'constrained', 3)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
'constrained', 5)
def test_default_and_allowed_violates_numeric_constrains(self):
def declare_wrong_default():
class WrongType(BASE):
prop = defs.Numeric(min_value=4.0, default=1.1)
return WrongType
def declare_wrong_allowed():
class WrongType(BASE):
prop = defs.Numeric(min_value=4.0, max_value=10.0,
allowed_values=[1.0, 15.5])
return WrongType
self.assertRaises(exc.InvalidArtifactTypePropertyDefinition,
declare_wrong_default)
self.assertRaises(exc.InvalidArtifactTypePropertyDefinition,
declare_wrong_allowed)
def test_same_item_type_array(self):
class TestType(BASE):
simple = defs.Array()
unique = defs.Array(unique=True)
simple_with_allowed_values = defs.Array(
defs.String(allowed_values=["Foo", "Bar"]))
defaulted = defs.Array(defs.Boolean(), default=[True, False])
constrained = defs.Array(item_type=defs.Numeric(min_value=0),
min_size=3, max_size=5, unique=True)
tt = TestType(simple=[])
self.assertEqual([], tt.simple)
tt.simple.append("Foo")
self.assertEqual(["Foo"], tt.simple)
tt.simple.append("Foo")
self.assertEqual(["Foo", "Foo"], tt.simple)
self.assertEqual(2, len(tt.simple))
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.simple.append,
42)
tt.simple.pop(1)
self.assertEqual(["Foo"], tt.simple)
del tt.simple[0]
self.assertEqual(0, len(tt.simple))
tt.simple_with_allowed_values = ["Foo"]
tt.simple_with_allowed_values.insert(0, "Bar")
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.simple_with_allowed_values.append, "Baz")
self.assertEqual([True, False], tt.defaulted)
tt.defaulted.pop()
self.assertEqual([True], tt.defaulted)
tt2 = TestType()
self.assertEqual([True, False], tt2.defaulted)
self.assertIsNone(tt.constrained)
tt.constrained = [10, 5, 4]
self.assertEqual([10, 5, 4], tt.constrained)
tt.constrained[1] = 15
self.assertEqual([10, 15, 4], tt.constrained)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.constrained.__setitem__, 1, -5)
self.assertEqual([10, 15, 4], tt.constrained)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.constrained.remove, 15)
self.assertEqual([10, 15, 4], tt.constrained)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.constrained.__delitem__, 1)
self.assertEqual([10, 15, 4], tt.constrained)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.constrained.append, 15)
self.assertEqual([10, 15, 4], tt.constrained)
tt.unique = []
tt.unique.append("foo")
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.unique.append,
"foo")
def test_tuple_style_array(self):
class TestType(BASE):
address = defs.Array(
item_type=[defs.String(20), defs.Integer(min_value=1),
defs.Boolean()])
tt = TestType(address=["Hope Street", 1234, True])
self.assertEqual("Hope Street", tt.address[0])
self.assertEqual(1234, tt.address[1])
self.assertEqual(True, tt.address[2])
# On Python 3, sort() fails because int (1) and string ("20") are not
# comparable
if six.PY2:
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.address.sort)
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.address.pop, 0)
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.address.pop, 1)
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.address.pop)
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.address.append,
"Foo")
def test_same_item_type_dict(self):
class TestType(BASE):
simple_props = defs.Dict()
constrained_props = defs.Dict(
properties=defs.Integer(min_value=1, allowed_values=[1, 2]),
min_properties=2,
max_properties=3)
tt = TestType()
self.assertIsNone(tt.simple_props)
self.assertIsNone(tt.constrained_props)
tt.simple_props = {}
self.assertEqual({}, tt.simple_props)
tt.simple_props["foo"] = "bar"
self.assertEqual({"foo": "bar"}, tt.simple_props)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.simple_props.__setitem__, 42, "foo")
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.simple_props.setdefault, "bar", 42)
tt.constrained_props = {"foo": 1, "bar": 2}
self.assertEqual({"foo": 1, "bar": 2}, tt.constrained_props)
tt.constrained_props["baz"] = 1
self.assertEqual({"foo": 1, "bar": 2, "baz": 1}, tt.constrained_props)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.constrained_props.__setitem__, "foo", 3)
self.assertEqual(1, tt.constrained_props["foo"])
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.constrained_props.__setitem__, "qux", 2)
tt.constrained_props.pop("foo")
self.assertEqual({"bar": 2, "baz": 1}, tt.constrained_props)
tt.constrained_props['qux'] = 2
self.assertEqual({"qux": 2, "bar": 2, "baz": 1}, tt.constrained_props)
tt.constrained_props.popitem()
dict_copy = tt.constrained_props.copy()
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.constrained_props.popitem)
self.assertEqual(dict_copy, tt.constrained_props)
def test_composite_dict(self):
class TestType(BASE):
props = defs.Dict(properties={"foo": defs.String(),
"bar": defs.Boolean()})
fixed = defs.Dict(properties={"name": defs.String(min_length=2),
"age": defs.Integer(min_value=0,
max_value=99)})
tt = TestType()
tt.props = {"foo": "FOO"}
tt.props["bar"] = False
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.props.__setitem__, "bar", 123)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.props.__setitem__, "extra", "value")
tt.fixed = {"name": "Alex"}
tt.fixed["age"] = 42
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.fixed.__setitem__, "age", 120)
def test_immutables(self):
class TestType(BASE):
activated = defs.Boolean(required=True, default=False)
name = defs.String(mutable=False)
def __is_mutable__(self):
return not self.activated
tt = TestType()
self.assertEqual(False, tt.activated)
self.assertIsNone(tt.name)
tt.name = "Foo"
self.assertEqual("Foo", tt.name)
tt.activated = True
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr,
tt, "name", "Bar")
self.assertEqual("Foo", tt.name)
tt.activated = False
tt.name = "Bar"
self.assertEqual("Bar", tt.name)
def test_readonly_array_dict(self):
class TestType(BASE):
arr = defs.Array(readonly=True)
dict = defs.Dict(readonly=True)
tt = TestType(arr=["Foo", "Bar"], dict={"qux": "baz"})
self.assertEqual(["Foo", "Bar"], tt.arr)
self.assertEqual({"qux": "baz"}, tt.dict)
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.append,
"Baz")
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.insert,
0, "Baz")
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.__setitem__,
0, "Baz")
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.remove,
"Foo")
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.pop)
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.dict.pop,
"qux")
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.dict.__setitem__, "qux", "foo")
def test_mutable_array_dict(self):
class TestType(BASE):
arr = defs.Array(mutable=False)
dict = defs.Dict(mutable=False)
activated = defs.Boolean()
def __is_mutable__(self):
return not self.activated
tt = TestType()
tt.arr = []
tt.dict = {}
tt.arr.append("Foo")
tt.arr.insert(0, "Bar")
tt.dict["baz"] = "qux"
tt.activated = True
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.append,
"Baz")
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.insert,
0, "Baz")
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.__setitem__,
0, "Baz")
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.remove,
"Foo")
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.pop)
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.dict.pop,
"qux")
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.dict.__setitem__, "qux", "foo")
def test_readonly_as_write_once(self):
class TestType(BASE):
prop = defs.String(readonly=True)
arr = defs.Array(readonly=True)
tt = TestType()
self.assertIsNone(tt.prop)
tt.prop = "Foo"
self.assertEqual("Foo", tt.prop)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt,
"prop", "bar")
tt2 = TestType()
self.assertIsNone(tt2.prop)
tt2.prop = None
self.assertIsNone(tt2.prop)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt2,
"prop", None)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, tt2,
"prop", "foo")
self.assertIsNone(tt.arr)
tt.arr = ["foo", "bar"]
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.append,
'baz')
self.assertIsNone(tt2.arr)
tt2.arr = None
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.arr.append,
'baz')
class TestArtifactType(test_utils.BaseTestCase):
def test_create_artifact(self):
a = defs.ArtifactType(**get_artifact_fixture())
self.assertIsNotNone(a)
self.assertEqual("123", a.id)
self.assertEqual("ArtifactType", a.type_name)
self.assertEqual("1.0", a.type_version)
self.assertEqual("11.2", a.version)
self.assertEqual("Foo", a.name)
self.assertEqual("private", a.visibility)
self.assertEqual("creating", a.state)
self.assertEqual("my_tenant", a.owner)
self.assertEqual(a.created_at, a.updated_at)
self.assertIsNone(a.description)
self.assertIsNone(a.published_at)
self.assertIsNone(a.deleted_at)
self.assertIsNone(a.description)
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, a, "id",
"foo")
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, a,
"state", "active")
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, a,
"owner", "some other")
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, a,
"created_at", datetime.datetime.now())
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, a,
"deleted_at", datetime.datetime.now())
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, a,
"updated_at", datetime.datetime.now())
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, a,
"published_at", datetime.datetime.now())
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, a,
"visibility", "wrong")
def test_dependency_prop(self):
class DerivedType(defs.ArtifactType):
depends_on_any = defs.ArtifactReference()
depends_on_self = defs.ArtifactReference(type_name='DerivedType')
depends_on_self_version = defs.ArtifactReference(
type_name='DerivedType',
type_version='1.0')
class DerivedTypeV11(DerivedType):
__type_name__ = 'DerivedType'
__type_version__ = '1.1'
depends_on_self_version = defs.ArtifactReference(
type_name='DerivedType',
type_version='1.1')
d1 = DerivedType(**get_artifact_fixture())
d2 = DerivedTypeV11(**get_artifact_fixture())
a = defs.ArtifactType(**get_artifact_fixture())
d1.depends_on_any = a
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, d1,
'depends_on_self', a)
d1.depends_on_self = d2
d2.depends_on_self = d1
d1.depends_on_self_version = d1
d2.depends_on_self_version = d2
self.assertRaises(exc.InvalidArtifactPropertyValue, setattr, d1,
'depends_on_self_version', d2)
def test_dependency_list(self):
class FooType(defs.ArtifactType):
pass
class BarType(defs.ArtifactType):
pass
class TestType(defs.ArtifactType):
depends_on = defs.ArtifactReferenceList()
depends_on_self_or_foo = defs.ArtifactReferenceList(
references=defs.ArtifactReference(['FooType', 'TestType']))
a = defs.ArtifactType(**get_artifact_fixture(id="1"))
a_copy = defs.ArtifactType(**get_artifact_fixture(id="1"))
b = defs.ArtifactType(**get_artifact_fixture(id="2"))
tt = TestType(**get_artifact_fixture(id="3"))
foo = FooType(**get_artifact_fixture(id='4'))
bar = BarType(**get_artifact_fixture(id='4'))
tt.depends_on.append(a)
tt.depends_on.append(b)
self.assertEqual([a, b], tt.depends_on)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.depends_on.append, a)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.depends_on.append, a_copy)
tt.depends_on_self_or_foo.append(tt)
tt.depends_on_self_or_foo.append(foo)
self.assertRaises(exc.InvalidArtifactPropertyValue,
tt.depends_on_self_or_foo.append, bar)
self.assertEqual([tt, foo], tt.depends_on_self_or_foo)
def test_blob(self):
class TestType(defs.ArtifactType):
image_file = defs.BinaryObject(max_file_size=201054,
min_locations=1,
max_locations=5)
screen_shots = defs.BinaryObjectList(
objects=defs.BinaryObject(min_file_size=100), min_count=1)
tt = TestType(**get_artifact_fixture())
blob = defs.Blob()
blob.size = 1024
blob.locations.append("file://some.file.path")
tt.image_file = blob
self.assertEqual(1024, tt.image_file.size)
self.assertEqual(["file://some.file.path"], tt.image_file.locations)
def test_pre_publish_blob_validation(self):
class TestType(defs.ArtifactType):
required_blob = defs.BinaryObject(required=True)
optional_blob = defs.BinaryObject()
tt = TestType(**get_artifact_fixture())
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.__pre_publish__)
tt.required_blob = defs.Blob(size=0)
tt.__pre_publish__()
def test_pre_publish_dependency_validation(self):
class TestType(defs.ArtifactType):
required_dependency = defs.ArtifactReference(required=True)
optional_dependency = defs.ArtifactReference()
tt = TestType(**get_artifact_fixture())
self.assertRaises(exc.InvalidArtifactPropertyValue, tt.__pre_publish__)
tt.required_dependency = defs.ArtifactType(**get_artifact_fixture())
tt.__pre_publish__()
def test_default_value_of_immutable_field_in_active_state(self):
class TestType(defs.ArtifactType):
foo = defs.String(default='Bar', mutable=False)
tt = TestType(**get_artifact_fixture(state='active'))
self.assertEqual('Bar', tt.foo)
class SerTestType(defs.ArtifactType):
some_string = defs.String()
some_text = defs.Text()
some_version = defs.SemVerString()
some_int = defs.Integer()
some_numeric = defs.Numeric()
some_bool = defs.Boolean()
some_array = defs.Array()
another_array = defs.Array(
item_type=[defs.Integer(), defs.Numeric(), defs.Boolean()])
some_dict = defs.Dict()
another_dict = defs.Dict(
properties={'foo': defs.Integer(), 'bar': defs.Boolean()})
some_ref = defs.ArtifactReference()
some_ref_list = defs.ArtifactReferenceList()
some_blob = defs.BinaryObject()
some_blob_list = defs.BinaryObjectList()
class TestSerialization(test_utils.BaseTestCase):
def test_serialization_to_db(self):
ref1 = defs.ArtifactType(**get_artifact_fixture(id="1"))
ref2 = defs.ArtifactType(**get_artifact_fixture(id="2"))
ref3 = defs.ArtifactType(**get_artifact_fixture(id="3"))
blob1 = defs.Blob(size=100, locations=['http://example.com/blob1'],
item_key='some_key', checksum='abc')
blob2 = defs.Blob(size=200, locations=['http://example.com/blob2'],
item_key='another_key', checksum='fff')
blob3 = defs.Blob(size=300, locations=['http://example.com/blob3'],
item_key='third_key', checksum='123')
fixture = get_artifact_fixture()
tt = SerTestType(**fixture)
tt.some_string = 'bar'
tt.some_text = 'bazz'
tt.some_version = '11.22.33-beta'
tt.some_int = 50
tt.some_numeric = 10.341
tt.some_bool = True
tt.some_array = ['q', 'w', 'e', 'r', 't', 'y']
tt.another_array = [1, 1.2, False]
tt.some_dict = {'foobar': "FOOBAR", 'baz': "QUX"}
tt.another_dict = {'foo': 1, 'bar': True}
tt.some_ref = ref1
tt.some_ref_list = [ref2, ref3]
tt.some_blob = blob1
tt.some_blob_list = [blob2, blob3]
results = serialization.serialize_for_db(tt)
expected = fixture
expected['type_name'] = 'SerTestType'
expected['type_version'] = '1.0'
expected['properties'] = {
'some_string': {
'type': 'string',
'value': 'bar'
},
'some_text': {
'type': 'text',
'value': 'bazz'
},
'some_version': {
'type': 'string',
'value': '11.22.33-beta'
},
'some_int': {
'type': 'int',
'value': 50
},
'some_numeric': {
'type': 'numeric',
'value': 10.341
},
'some_bool': {
'type': 'bool',
'value': True
},
'some_array': {
'type': 'array',
'value': [
{
'type': 'string',
'value': 'q'
},
{
'type': 'string',
'value': 'w'
},
{
'type': 'string',
'value': 'e'
},
{
'type': 'string',
'value': 'r'
},
{
'type': 'string',
'value': 't'
},
{
'type': 'string',
'value': 'y'
}
]
},
'another_array': {
'type': 'array',
'value': [
{
'type': 'int',
'value': 1
},
{
'type': 'numeric',
'value': 1.2
},
{
'type': 'bool',
'value': False
}
]
},
'some_dict.foobar': {
'type': 'string',
'value': 'FOOBAR'
},
'some_dict.baz': {
'type': 'string',
'value': 'QUX'
},
'another_dict.foo': {
'type': 'int',
'value': 1
},
'another_dict.bar': {
'type': 'bool',
'value': True
}
}
expected['dependencies'] = {
'some_ref': ['1'],
'some_ref_list': ['2', '3']
}
expected['blobs'] = {
'some_blob': [
{
'size': 100,
'checksum': 'abc',
'item_key': 'some_key',
'locations': ['http://example.com/blob1']
}],
'some_blob_list': [
{
'size': 200,
'checksum': 'fff',
'item_key': 'another_key',
'locations': ['http://example.com/blob2']
},
{
'size': 300,
'checksum': '123',
'item_key': 'third_key',
'locations': ['http://example.com/blob3']
}
]
}
self.assertEqual(expected, results)
def test_deserialize_from_db(self):
ts = datetime.datetime.now()
db_dict = {
"type_name": 'SerTestType',
"type_version": '1.0',
"id": "123",
"version": "11.2",
"description": None,
"name": "Foo",
"visibility": "private",
"state": "creating",
"owner": "my_tenant",
"created_at": ts,
"updated_at": ts,
"deleted_at": None,
"published_at": None,
"tags": ["test", "fixture"],
"properties": {
'some_string': {
'type': 'string',
'value': 'bar'
},
'some_text': {
'type': 'text',
'value': 'bazz'
},
'some_version': {
'type': 'string',
'value': '11.22.33-beta'
},
'some_int': {
'type': 'int',
'value': 50
},
'some_numeric': {
'type': 'numeric',
'value': 10.341
},
'some_bool': {
'type': 'bool',
'value': True
},
'some_array': {
'type': 'array',
'value': [
{
'type': 'string',
'value': 'q'
},
{
'type': 'string',
'value': 'w'
},
{
'type': 'string',
'value': 'e'
},
{
'type': 'string',
'value': 'r'
},
{
'type': 'string',
'value': 't'
},
{
'type': 'string',
'value': 'y'
}
]
},
'another_array': {
'type': 'array',
'value': [
{
'type': 'int',
'value': 1
},
{
'type': 'numeric',
'value': 1.2
},
{
'type': 'bool',
'value': False
}
]
},
'some_dict.foobar': {
'type': 'string',
'value': 'FOOBAR'
},
'some_dict.baz': {
'type': 'string',
'value': 'QUX'
},
'another_dict.foo': {
'type': 'int',
'value': 1
},
'another_dict.bar': {
'type': 'bool',
'value': True
}
},
'blobs': {
'some_blob': [
{
'size': 100,
'checksum': 'abc',
'item_key': 'some_key',
'locations': ['http://example.com/blob1']
}],
'some_blob_list': [
{
'size': 200,
'checksum': 'fff',
'item_key': 'another_key',
'locations': ['http://example.com/blob2']
},
{
'size': 300,
'checksum': '123',
'item_key': 'third_key',
'locations': ['http://example.com/blob3']
}
]
},
'dependencies': {
'some_ref': [
{
"type_name": 'ArtifactType',
"type_version": '1.0',
"id": "1",
"version": "11.2",
"description": None,
"name": "Foo",
"visibility": "private",
"state": "creating",
"owner": "my_tenant",
"created_at": ts,
"updated_at": ts,
"deleted_at": None,
"published_at": None,
"tags": ["test", "fixture"],
"properties": {},
"blobs": {},
"dependencies": {}
}
],
'some_ref_list': [
{
"type_name": 'ArtifactType',
"type_version": '1.0',
"id": "2",
"version": "11.2",
"description": None,
"name": "Foo",
"visibility": "private",
"state": "creating",
"owner": "my_tenant",
"created_at": ts,
"updated_at": ts,
"deleted_at": None,
"published_at": None,
"tags": ["test", "fixture"],
"properties": {},
"blobs": {},
"dependencies": {}
},
{
"type_name": 'ArtifactType',
"type_version": '1.0',
"id": "3",
"version": "11.2",
"description": None,
"name": "Foo",
"visibility": "private",
"state": "creating",
"owner": "my_tenant",
"created_at": ts,
"updated_at": ts,
"deleted_at": None,
"published_at": None,
"tags": ["test", "fixture"],
"properties": {},
"blobs": {},
"dependencies": {}
}
]
}
}
plugins_dict = {'SerTestType': [SerTestType],
'ArtifactType': [defs.ArtifactType]}
def _retrieve_plugin(name, version):
return next((p for p in plugins_dict.get(name, [])
if version and p.version == version),
plugins_dict.get(name, [None])[0])
plugins = mock.Mock()
plugins.get_class_by_typename = _retrieve_plugin
art = serialization.deserialize_from_db(db_dict, plugins)
self.assertEqual('123', art.id)
self.assertEqual('11.2', art.version)
self.assertIsNone(art.description)
self.assertEqual('Foo', art.name)
self.assertEqual('private', art.visibility)
self.assertEqual('private', art.visibility)
def get_artifact_fixture(**kwargs):
ts = datetime.datetime.now()
fixture = {
"id": "123",
"version": "11.2",
"description": None,
"name": "Foo",
"visibility": "private",
"state": "creating",
"owner": "my_tenant",
"created_at": ts,
"updated_at": ts,
"deleted_at": None,
"published_at": None,
"tags": ["test", "fixture"]
}
fixture.update(kwargs)
return fixture
| apache-2.0 |
trashbyte/hungryboys | foodgame/world.py | 1 | 2901 | WORLD_SIZE = 1000
## The game world, which contains all entities.
class World():
## World constructor
# @param game The owning Game.
def __init__(self, game):
## The owning Game.
self.game = game
## The grid which all entities reside in
#
# All entities in the World exist on a 2D plane, expressed here as an interlaced list.
# Coordinates are y*WORLD_SIZE+x. Each element in the grid is a list, containing all
# entities on that grid space.
self.grid = [ [] for x in range(WORLD_SIZE*WORLD_SIZE) ]
## A list of all entities which need to be updated when time passes in-game.
#
# Most entities are things like dirt and grass that don't need to be kept updated. We keep
# a separate list of entities to update when pass_time is called so we don't have to
# iterate over the entire grid on each update.
self.needs_updates = []
## Returns the list of entities at the given coordinates
# @param x x coordinate
# @param y y coordinate
def at_xy(self, x, y):
return self.grid[y*WORLD_SIZE+x]
## Returns the list of entities at the given coordinates
# @param i A precomputed index (y*WORLD_SIZE+x)
def at_index(self, i):
return self.grid[i]
## Returns the list of entities at the given coordinates
# @param pos Requested position as a Point
def at_pos(self, pos):
return self.grid[pos.y*WORLD_SIZE+pos.x]
## Adds an entity to the grid, and optionally to the needs_updates list.
# @param new Entity to be added.
# @param needs_update If True, also add the entity to the needs_updates list.
def add(self, new, needs_update):
self.at_pos(new.pos).append(new)
if needs_update:
self.needs_updates.append(new)
## Moves an entity to another position on the grid
#
# ONLY MOVE ENTITIES WITH World#move. This keeps world pos and entity pos synchronised.
#
# @param ent The entity to be moved
# @param new_pos The position to move the entity to, as a Point
def move(self, ent, new_pos):
self.at_pos(ent.pos).remove(ent)
ent.pos = new_pos
self.at_pos(ent.pos).append(ent)
## Passes time for all entities in self.needs_updates
def pass_time(self, seconds):
for e in self.needs_updates:
e.pass_time(seconds)
## Draws all on-screen entities in the world.
# @todo FIXME: currently draws everything on top of each other (needs priority)
def draw(self, dt):
x1 = self.game.camera.pos.x
x2 = x1 + self.game.ui_manager.num_tiles[0]
y1 = self.game.camera.pos.y
y2 = y1 + self.game.ui_manager.num_tiles[1]
for x in range(x1, x2):
for y in range(y1, y2):
for e in self.grid[y*WORLD_SIZE+x]:
e.draw() | mit |
akhmadMizkat/odoo | addons/account/report/account_journal.py | 28 | 5504 | # -*- coding: utf-8 -*-
import time
from openerp import api, models
class ReportJournal(models.AbstractModel):
_name = 'report.account_extra_reports.report_journal'
def lines(self, target_move, journal_ids, sort_selection, data):
if isinstance(journal_ids, int):
journal_ids = [journal_ids]
move_state = ['draft', 'posted']
if target_move == 'posted':
move_state = ['posted']
query_get_clause = self._get_query_get_clause(data)
params = [tuple(move_state), tuple(journal_ids)] + query_get_clause[2]
query = 'SELECT "account_move_line".id FROM ' + query_get_clause[0] + ', account_move am, account_account acc WHERE "account_move_line".account_id = acc.id AND "account_move_line".move_id=am.id AND am.state IN %s AND "account_move_line".journal_id IN %s AND ' + query_get_clause[1] + ' ORDER BY '
if sort_selection == 'date':
query += '"account_move_line".date'
else:
query += 'am.name'
query += ', "account_move_line".move_id, acc.code'
self.env.cr.execute(query, tuple(params))
ids = map(lambda x: x[0], self.env.cr.fetchall())
return self.env['account.move.line'].browse(ids)
def _sum_debit(self, data, journal_id):
move_state = ['draft', 'posted']
if data['form'].get('target_move', 'all') == 'posted':
move_state = ['posted']
query_get_clause = self._get_query_get_clause(data)
params = [tuple(move_state), tuple(journal_id.ids)] + query_get_clause[2]
self.env.cr.execute('SELECT SUM(debit) FROM ' + query_get_clause[0] + ', account_move am '
'WHERE "account_move_line".move_id=am.id AND am.state IN %s AND "account_move_line".journal_id IN %s AND ' + query_get_clause[1] + ' ',
tuple(params))
return self.env.cr.fetchone()[0] or 0.0
def _sum_credit(self, data, journal_id):
move_state = ['draft', 'posted']
if data['form'].get('target_move', 'all') == 'posted':
move_state = ['posted']
query_get_clause = self._get_query_get_clause(data)
params = [tuple(move_state), tuple(journal_id.ids)] + query_get_clause[2]
self.env.cr.execute('SELECT SUM(credit) FROM ' + query_get_clause[0] + ', account_move am '
'WHERE "account_move_line".move_id=am.id AND am.state IN %s AND "account_move_line".journal_id IN %s AND ' + query_get_clause[1] + ' ',
tuple(params))
return self.env.cr.fetchone()[0] or 0.0
def _get_taxes(self, data, journal_id):
move_state = ['draft', 'posted']
if data['form'].get('target_move', 'all') == 'posted':
move_state = ['posted']
query_get_clause = self._get_query_get_clause(data)
params = [tuple(move_state), tuple(journal_id.ids)] + query_get_clause[2]
query = """
SELECT rel.account_tax_id, SUM("account_move_line".balance) AS base_amount
FROM account_move_line_account_tax_rel rel, """ + query_get_clause[0] + """
LEFT JOIN account_move am ON "account_move_line".move_id = am.id
WHERE "account_move_line".id = rel.account_move_line_id
AND am.state IN %s
AND "account_move_line".journal_id IN %s
AND """ + query_get_clause[1] + """
GROUP BY rel.account_tax_id"""
self.env.cr.execute(query, tuple(params))
ids = []
base_amounts = {}
for row in self.env.cr.fetchall():
ids.append(row[0])
base_amounts[row[0]] = row[1]
res = {}
for tax in self.env['account.tax'].browse(ids):
self.env.cr.execute('SELECT sum(debit - credit) FROM ' + query_get_clause[0] + ', account_move am '
'WHERE "account_move_line".move_id=am.id AND am.state IN %s AND "account_move_line".journal_id IN %s AND ' + query_get_clause[1] + ' AND tax_line_id = %s',
tuple(params + [tax.id]))
res[tax] = {
'base_amount': base_amounts[tax.id],
'tax_amount': self.env.cr.fetchone()[0] or 0.0,
}
if journal_id.type == 'sale':
#sales operation are credits
res[tax]['base_amount'] = res[tax]['base_amount'] * -1
res[tax]['tax_amount'] = res[tax]['tax_amount'] * -1
return res
def _get_query_get_clause(self, data):
return self.env['account.move.line'].with_context(data['form'].get('used_context', {}))._query_get()
@api.multi
def render_html(self, data):
target_move = data['form'].get('target_move', 'all')
sort_selection = data['form'].get('sort_selection', 'date')
res = {}
for journal in data['form']['journal_ids']:
res[journal] = self.with_context(data['form'].get('used_context', {})).lines(target_move, journal, sort_selection, data)
docargs = {
'doc_ids': data['form']['journal_ids'],
'doc_model': self.env['account.journal'],
'data': data,
'docs': self.env['account.journal'].browse(data['form']['journal_ids']),
'time': time,
'lines': res,
'sum_credit': self._sum_credit,
'sum_debit': self._sum_debit,
'get_taxes': self._get_taxes,
}
return self.env['report'].render('account_extra_reports.report_journal', docargs)
| gpl-3.0 |
CMPUT404W17T06/CMPUT404-project | dash/tests.py | 1 | 10713 | from django.test import TestCase, Client
from django.test.utils import setup_test_environment
from django.contrib.auth.models import User
from django.urls import reverse
from django.db.utils import IntegrityError
from dash.models import Author, Post, Comment, Category, Follow
from dash.forms import PostForm, CommentForm
from django.forms.models import model_to_dict
import requests
import uuid
# Create your tests here.
# https://docs.djangoproject.com/en/1.10/intro/tutorial05/
# https://docs.djangoproject.com/en/1.10/topics/testing/tools/
class DashViewTests(TestCase):
def setUp(self):
self.userCount = 0
self.user = self.createUser()
# Login by default, tests that need multiple users can logout
self.client.login(username=self.user[1], password=self.user[2])
def createUser(self):
username = 'user{}'.format(self.userCount)
password = 'pass{}'.format(self.userCount)
user = User()
user.username = username
user.set_password(password)
user.first_name = 'test_first{}'.format(self.userCount)
user.last_name = 'test_last{}'.format(self.userCount)
user.email = 'test{}@test.com'.format(self.userCount)
user.is_active = True # This simulates activated user by admin
user.save()
author = Author()
author.user = user
author.github = 'https://github.com/user{}/'.format(self.userCount)
author.host = 'http://testserver/'
author.id = author.host + 'author/' + uuid.uuid4().hex
author.url = author.id
author.bio = 'I am {}'.format(user.get_full_name())
author.save()
# Increment user count
self.userCount += 1
return (user, username, password)
def createFollow(self, author, friend, friendDisplayName):
follow = Follow()
follow.author = author
follow.friend = friend
follow.friendDisplayName = friendDisplayName
follow.save()
def createFriend(self, user1, user2):
self.createFollow(user1.author, user2.author.id, user2.username)
self.createFollow(user2.author, user1.author.id, user1.username)
def test_index_view_with_no_posts(self):
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
self.assertContains(response, "No posts available.")
self.assertQuerysetEqual(response.context['latest_post_list'], [])
def make_post(self, **kwargs):
data = {
'title': 'Test',
'description': 'Test',
'contentType': 'text/plain',
'content': 'Test',
'visibility': 'PUBLIC'
}
data.update(kwargs) # Override with something from caller
post_response = self.client.post("/dash/newpost/", data)
self.assertEqual(post_response.status_code, 302)
return data
def test_make_post(self):
data = self.make_post()
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.context['latest_post_list']),1)
post = response.context['latest_post_list'][0]
for i in data:
self.assertEqual(post[i],data[i])
def make_comment(self,post_id,author_id):
data = {
'comment': 'Test Comment',
'post_id': post_id,
'contentType': 'text/plain',
'author': author_id
}
comment_response = self.client.post("/dash/newcomment/", data)
self.assertEqual(comment_response.status_code, 302)
del(data['post_id'])
return data
def test_comment_on_post(self):
self.make_post()
post_response = self.client.get('/dash/')
post_id = post_response.context['latest_post_list'][0]['id']
author_id = post_response.context["user"].author.id
data = self.make_comment(post_id,author_id)
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
responseCommentList = response.context['latest_post_list'][0]['comments']
self.assertEqual(len(responseCommentList), 1,
'Post was missing comment')
responseComment = responseCommentList[0]
responseCommentContent = responseComment['comment']
self.assertEqual(responseCommentContent, data['comment'])
# Check if the authors are the same early because it's nested in the
# response
responseAuthorId = responseComment['author']['id']
self.assertEqual(responseAuthorId, data['author'])
del data['author']
for i in data:
self.assertEqual(responseComment[i], data[i])
def test_private_post(self):
"""
Test making a private post. Use first login to make a private post, then
see if it is visible to a second user.
"""
postData = self.make_post(visibility='PRIVATE')
# Make sure the posting user can see this post
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
postList = response.context['latest_post_list']
self.assertEqual(len(postList), 1)
responsePost = postList[0]
for i in postData:
self.assertEqual(responsePost[i], postData[i])
# Logout and login on new user
self.client.logout()
user = self.createUser()
self.client.login(username=user[1], password=user[2])
# Make sure the new user can't see the post
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.context['latest_post_list']), 0)
def test_unlisted_post(self):
"""
Test making an unlisted post. Use first login to make a private post, then
see if it is visible to a second user.
"""
# Post is public but unlisted
postData = self.make_post(visibility = "UNLISTED")
postData['visibility'] = 'PRIVATE'
postData['unlisted'] = True
# Make sure the posting user can see this post
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
postList = response.context['latest_post_list']
self.assertEqual(len(postList), 1)
post = postList[0]
for i in postData:
self.assertEqual(post[i], postData[i], '{}: {} != {}'.format(i, post[i], postData[i]))
# Logout and login on new user
self.client.logout()
user = self.createUser()
self.client.login(username=user[1], password=user[2])
# Make sure the new user can't see the post
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.context['latest_post_list']), 0)
# Build post direct link
postUuid = post['id'].split('/')[-2]
postPath = '/dash/posts/{}/'.format(postUuid)
# Make sure the direct link works
postOnlyResponse = self.client.get(postPath)
self.assertEqual(postOnlyResponse.status_code, 200)
def test_post_categories(self):
"""
Test adding categories to a post.
"""
categories = ['test category 1', 'test category 2']
postData = self.make_post(categories=', '.join(categories))
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
# Get Post
postList = response.context['latest_post_list']
post = postList[0]
# Get categories
postCats = post['categories']
# Verify all categories on post are in what we wanted to set
for cat in postCats:
self.assertIn(cat, categories, 'Extra category set on post')
# Verify all categories we wanted to set are on post
for cat in categories:
self.assertIn(cat, postCats, 'Missing category on post')
def test_local_friend_post(self):
# Post is FRIENDS
user1 = self.createUser()
self.client.login(username=user1[1], password=user1[2])
postData = self.make_post(author = user1[0], visibility='FRIENDS')
# Logout and login on new user
self.client.logout()
user2 = self.createUser()
self.client.login(username=user2[1], password=user2[2])
# Make sure the new user can't see the post
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.context['latest_post_list']), 0)
# Add friend.
self.createFriend(user1[0], user2[0])
#Now logged in user should see post.
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
postList = response.context['latest_post_list']
self.assertEqual(len(postList), 1)
def test_local_friend_of_friend_post(self):
# Post is FRIENDS
user1 = self.createUser()
self.client.login(username=user1[1], password=user1[2])
postData = self.make_post(author = user1[0], visibility='FOAF')
# Logout and login on new user
self.client.logout()
user2 = self.createUser()
self.client.login(username=user2[1], password=user2[2])
# Make sure the new user can't see the post
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.context['latest_post_list']), 0)
# Add friend.
self.createFriend(user1[0], user2[0])
#Now logged in user should see post.
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
postList = response.context['latest_post_list']
self.assertEqual(len(postList), 1)
# Logout and login on new user
self.client.logout()
user3 = self.createUser()
self.client.login(username=user3[1], password=user3[2])
# Make sure the new user can't see the post
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.context['latest_post_list']), 0)
# Add friend.
self.createFriend(user2[0], user3[0])
#Now logged in user should see post.
response = self.client.get('/dash/')
self.assertEqual(response.status_code, 200)
postList = response.context['latest_post_list']
self.assertEqual(len(postList), 1)
| apache-2.0 |
bcbrock/fabric | bddtests/steps/peer_logging_impl.py | 10 | 1936 | #
# Copyright IBM Corp. 2016 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 os
import os.path
import re
import time
import copy
from datetime import datetime, timedelta
from behave import *
import sys, requests, json
import bdd_test_util
@then(u'I wait up to {waitTime} seconds for an error in the logs for peer {peerName}')
def step_impl(context, waitTime, peerName):
timeout = time.time() + float(waitTime)
hasError = False
while timeout > time.time():
stdout, stderr = getPeerLogs(context, peerName)
hasError = logHasError(stdout) or logHasError(stderr)
if hasError:
break
time.sleep(1.0)
assert hasError is True
def getPeerLogs(context, peerName):
fullContainerName = bdd_test_util.fullNameFromContainerNamePart(peerName, context.compose_containers)
stdout, stderr, retcode = bdd_test_util.cli_call(["docker", "logs", fullContainerName], expect_success=True)
return stdout, stderr
def logHasError(logText):
# This seems to be an acceptable heuristic for detecting errors
return logText.find("-> ERRO") >= 0
@then(u'ensure after {waitTime} seconds there are no errors in the logs for peer {peerName}')
def step_impl(context, waitTime, peerName):
time.sleep(float(waitTime))
stdout, stderr = getPeerLogs(context, peerName)
assert logHasError(stdout) is False
assert logHasError(stderr) is False | apache-2.0 |
JPWKU/unix-agent | src/dcm/agent/plugins/builtin/remote_tester.py | 3 | 3500 | #
# Copyright (C) 2014 Dell, 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 json
import logging
import socket
import dcm.agent.plugins.api.base as plugin_base
import dcm.agent.logger as dcm_logger
_g_logger = logging.getLogger(__name__)
class RemoteTester(plugin_base.Plugin):
protocol_arguments = {}
def __init__(self, conf, job_id, items_map, name, arguments):
super(RemoteTester, self).__init__(
conf, job_id, items_map, name, arguments)
self._port = int(items_map['remote_port'])
self._host = items_map['remote_host']
def run(self):
try:
dcm_logger.log_to_dcm_console_job_details(
job_name=self.name,
details="Test remote logging. %s" % str(self.arguments))
for i in range(3):
try:
self.sock = socket.socket(socket.AF_INET,
socket.SOCK_STREAM)
self.sock.connect((self._host, self._port))
break
except:
if i == 2:
raise
msg = {"name": self.name, "arguments": self.arguments}
self._msg = json.dumps(msg)
_g_logger.info("Start tester remote socket. Send " + self._msg)
self.sock.send(self._msg.encode())
_g_logger.info("waiting to get a message back")
in_msg = b''
ch = b'123'
while len(ch) > 0:
ch = self.sock.recv(1024)
in_msg = in_msg + ch
_g_logger.info("Tester plugin Received " + in_msg.decode())
self.sock.close()
rc_dict = json.loads(in_msg.decode())
rc = rc_dict['return_code']
try:
reply_type = rc_dict['reply_type']
except KeyError:
reply_type = None
try:
reply_object = rc_dict['reply_object']
except KeyError:
reply_object = None
try:
message = rc_dict['message']
except KeyError:
message = None
try:
error_message = rc_dict['error_message']
except KeyError:
error_message = None
rc = plugin_base.PluginReply(rc,
reply_type=reply_type,
reply_object=reply_object,
message=message,
error_message=error_message)
_g_logger.info("Tester plugin sending back " + str(rc))
return rc
except:
_g_logger.exception("Something went wrong here")
return plugin_base.PluginReply(1)
def load_plugin(conf, job_id, items_map, name, arguments):
_g_logger.debug("IN TESTER LOAD")
return RemoteTester(conf, job_id, items_map, name, arguments)
| apache-2.0 |
florian-dacosta/OpenUpgrade | addons/hr_attendance/report/attendance_errors.py | 377 | 3669 | # -*- 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 datetime
import time
from openerp.osv import osv
from openerp.report import report_sxw
class attendance_print(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(attendance_print, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
'lst': self._lst,
'total': self._lst_total,
'get_employees':self._get_employees,
})
def _get_employees(self, emp_ids):
emp_obj_list = self.pool.get('hr.employee').browse(self.cr, self.uid, emp_ids)
return emp_obj_list
def _lst(self, employee_id, dt_from, dt_to, max, *args):
self.cr.execute("select name as date, create_date, action, create_date-name as delay from hr_attendance where employee_id=%s and to_char(name,'YYYY-mm-dd')<=%s and to_char(name,'YYYY-mm-dd')>=%s and action IN (%s,%s) order by name", (employee_id, dt_to, dt_from, 'sign_in', 'sign_out'))
res = self.cr.dictfetchall()
for r in res:
if r['action'] == 'sign_out':
r['delay'] = -r['delay']
temp = r['delay'].seconds
r['delay'] = str(r['delay']).split('.')[0]
if abs(temp) < max*60:
r['delay2'] = r['delay']
else:
r['delay2'] = '/'
return res
def _lst_total(self, employee_id, dt_from, dt_to, max, *args):
self.cr.execute("select name as date, create_date, action, create_date-name as delay from hr_attendance where employee_id=%s and to_char(name,'YYYY-mm-dd')<=%s and to_char(name,'YYYY-mm-dd')>=%s and action IN (%s,%s) order by name", (employee_id, dt_to, dt_from, 'sign_in', 'sign_out'))
res = self.cr.dictfetchall()
if not res:
return ('/','/')
total2 = datetime.timedelta(seconds = 0, minutes = 0, hours = 0)
total = datetime.timedelta(seconds = 0, minutes = 0, hours = 0)
for r in res:
if r['action'] == 'sign_out':
r['delay'] = -r['delay']
total += r['delay']
if abs(r['delay'].seconds) < max*60:
total2 += r['delay']
result_dict = {
'total': total and str(total).split('.')[0],
'total2': total2 and str(total2).split('.')[0]
}
return [result_dict]
class report_hr_attendanceerrors(osv.AbstractModel):
_name = 'report.hr_attendance.report_attendanceerrors'
_inherit = 'report.abstract_report'
_template = 'hr_attendance.report_attendanceerrors'
_wrapped_report_class = attendance_print
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
kproductivity/bitsandbobs | twee.py | 1 | 1102 | #See http://www.dealingdata.net/2016/07/23/PoGo-Series-Tweepy/
import sys
import os
import jsonpickle
import tweepy
#Authentication
auth = tweepy.AppAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_secret)
#Creating a twitter API wrapper using tweepy
#See http://docs.tweepy.org/en/v3.7.0/api.html
api = tweepy.API(auth, wait_on_rate_limit=True,wait_on_rate_limit_notify=True)
#Error handling
if (not api):
print ("Problem connecting to API")
#Configuration
searchQuery = 'search this'
maxTweets = 1000000
tweetsPerQry = 100
#Set cursor to collect tweets
tweetCount = 0
#Open a text file to save the tweets to
with open('tweets.json', 'w') as f:
for tweet in tweepy.Cursor(api.search,q=searchQuery).items(maxTweets) :
#Verify the tweet has [this_info] before writing
#if tweet.[this_info] is not None:
f.write(jsonpickle.encode(tweet._json, unpicklable=False) + '\n')
tweetCount += 1
#Display how many tweets we have collected
print("Downloaded {0} tweets".format(tweetCount))
| apache-2.0 |
pixelrebel/st2 | st2common/st2common/persistence/auth.py | 5 | 3542 | # Licensed to the StackStorm, Inc ('StackStorm') 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 st2common.exceptions.auth import (TokenNotFoundError, ApiKeyNotFoundError,
UserNotFoundError, AmbiguousUserError,
NoNicknameOriginProvidedError)
from st2common.models.db import MongoDBAccess
from st2common.models.db.auth import UserDB, TokenDB, ApiKeyDB
from st2common.persistence.base import Access
from st2common.util import hash as hash_utils
class User(Access):
impl = MongoDBAccess(UserDB)
@classmethod
def get(cls, username):
return cls.get_by_name(username)
@classmethod
def get_by_nickname(cls, nickname, origin):
if not origin:
raise NoNicknameOriginProvidedError()
result = cls.query(**{('nicknames__%s' % origin): nickname})
if not result.first():
raise UserNotFoundError()
if result.count() > 1:
raise AmbiguousUserError()
return result.first()
@classmethod
def _get_impl(cls):
return cls.impl
@classmethod
def _get_by_object(cls, object):
# For User name is unique.
name = getattr(object, 'name', '')
return cls.get_by_name(name)
class Token(Access):
impl = MongoDBAccess(TokenDB)
@classmethod
def _get_impl(cls):
return cls.impl
@classmethod
def add_or_update(cls, model_object, publish=True):
if not getattr(model_object, 'user', None):
raise ValueError('User is not provided in the token.')
if not getattr(model_object, 'token', None):
raise ValueError('Token value is not set.')
if not getattr(model_object, 'expiry', None):
raise ValueError('Token expiry is not provided in the token.')
return super(Token, cls).add_or_update(model_object, publish=publish)
@classmethod
def get(cls, value):
result = cls.query(token=value).first()
if not result:
raise TokenNotFoundError()
return result
class ApiKey(Access):
impl = MongoDBAccess(ApiKeyDB)
@classmethod
def _get_impl(cls):
return cls.impl
@classmethod
def get(cls, value):
# DB does not contain key but the key_hash.
value_hash = hash_utils.hash(value)
result = cls.query(key_hash=value_hash).first()
if not result:
raise ApiKeyNotFoundError('ApiKey with key_hash=%s not found.' % value_hash)
return result
@classmethod
def get_by_key_or_id(cls, value):
try:
return cls.get(value)
except ApiKeyNotFoundError:
pass
try:
return cls.get_by_id(value)
except:
raise ApiKeyNotFoundError('ApiKey with key or id=%s not found.' % value)
| apache-2.0 |
AgalmicVentures/Environment | scripts/GenerateConfigs.py | 1 | 4000 | #!/usr/bin/env python3
# Copyright (c) 2015-2021 Agalmic Ventures LLC (www.agalmicventures.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import argparse
import datetime
import itertools
try:
import ujson as json
except ImportError:
import json
import os
import random
import sys
try:
from itertools import izip
except ImportError:
izip = zip
def main(argv=None):
"""
The main function of this script.
:param argv: List[str] Arguments to parse (default sys.argv)
:return: int
"""
parser = argparse.ArgumentParser(description='JSON Config Generator')
parser.add_argument('--fraction', type=float, default=1.0, help='Fraction of configs to sample, in the interval (0.0 to 1.0] (default=1.0).')
parser.add_argument('--seed', default=None, help='Seed for the random number generator if sampling.')
parser.add_argument('config', help='Path to the base configuration.')
parser.add_argument('parameters', help='Path to the parameter configuration.')
parser.add_argument('output_path', help='Output path.')
if argv is None:
argv = sys.argv
arguments = parser.parse_args(argv[1:])
#Validate parameters
if arguments.fraction > 1.0:
print('WARNING: Fraction must be in the interval (0.0, 1.0] -- capping at 1.0')
arguments.fraction = 1.0
elif arguments.fraction <= 0.0:
print('ERROR: Fraction must be positive.')
return 1
startTime = datetime.datetime.now()
print('[%s] Starting config generation...' % (startTime))
if arguments.seed is not None:
random.seed(arguments.seed)
with open(arguments.config) as configFile:
configData = configFile.read()
config = json.loads(configData)
with open(arguments.parameters) as parametersFile:
parametersData = parametersFile.read()
parameters = json.loads(parametersData)
#Generate the Cartesian product of parameters
count = 0
parameterNames = sorted(parameters.keys())
parameterValueLists = [parameters[k] for k in parameterNames]
for parameterValues in itertools.product(*parameterValueLists):
#Random sampling
if arguments.fraction < 1.0 and arguments.fraction < random.random():
continue
#Generate the updated config
#This could use the same dictionary over and over but that would be less clear
updatedConfig = dict(config)
outputFileNameParts = []
for parameterName, parameterValue in izip(parameterNames, parameterValues):
updatedConfig[parameterName] = parameterValue
outputFileNameParts.append('%s=%s' % (parameterName, parameterValue))
#Write it to a file
outputFileName = '%s.json' % '_'.join(outputFileNameParts)
outputFilePath = os.path.join(arguments.output_path, outputFileName)
with open(outputFilePath, 'w') as outputFile:
outputFile.write(json.dumps(updatedConfig, indent=2, separators=(',', ': '), sort_keys=True))
count += 1
endTime = datetime.datetime.now()
print('[%s] Finished %d combinations in %.2f seconds' % (endTime, count, (endTime - startTime).total_seconds()))
return 0
if __name__ == '__main__':
sys.exit(main())
| mit |
ashhher3/pylearn2 | pylearn2/sandbox/lisa_rl/bandit/classifier_bandit.py | 49 | 1598 | __author__ = "Ian Goodfellow"
from pylearn2.sandbox.lisa_rl.bandit.environment import Environment
class ClassifierBandit(Environment):
"""
An n-armed contextual bandit based on a classification problem.
Each of the n-arms corresponds to a different class. If the agent
selects the correct class for the given context, the environment
gives reward 1. Otherwise, the environment gives reward 0.
.. todo::
WRITEME : parameter list
"""
def __init__(self, dataset, batch_size):
self.__dict__.update(locals())
del self.self
def get_context_func(self):
"""
Returns a callable that takes no arguments and returns a minibatch
of contexts. Minibatch should be in VectorSpace(n).
"""
def rval():
X, y = self.dataset.get_batch_design(self.batch_size, include_labels=True)
self.y_cache = y
return X
return rval
def get_action_func(self):
"""
Returns a callable that takes no arguments and returns a minibatch of
rewards.
Assumes that this function has been called after a call to context_func
that gave the contexts used to choose the actions.
"""
def rval(a):
return (a * self.y_cache).sum(axis=1)
return rval
def get_learn_func(self):
"""
Returns a callable that takes a minibatch of contexts, a minibatch of
actions, and a minibatch of rewards, and updates the model according
to them.
"""
raise NotImplementedError()
| bsd-3-clause |
RohithKP/flask | tests/test_views.py | 155 | 4202 | # -*- coding: utf-8 -*-
"""
tests.views
~~~~~~~~~~~
Pluggable views.
:copyright: (c) 2015 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import pytest
import flask
import flask.views
from werkzeug.http import parse_set_header
def common_test(app):
c = app.test_client()
assert c.get('/').data == b'GET'
assert c.post('/').data == b'POST'
assert c.put('/').status_code == 405
meths = parse_set_header(c.open('/', method='OPTIONS').headers['Allow'])
assert sorted(meths) == ['GET', 'HEAD', 'OPTIONS', 'POST']
def test_basic_view():
app = flask.Flask(__name__)
class Index(flask.views.View):
methods = ['GET', 'POST']
def dispatch_request(self):
return flask.request.method
app.add_url_rule('/', view_func=Index.as_view('index'))
common_test(app)
def test_method_based_view():
app = flask.Flask(__name__)
class Index(flask.views.MethodView):
def get(self):
return 'GET'
def post(self):
return 'POST'
app.add_url_rule('/', view_func=Index.as_view('index'))
common_test(app)
def test_view_patching():
app = flask.Flask(__name__)
class Index(flask.views.MethodView):
def get(self):
1 // 0
def post(self):
1 // 0
class Other(Index):
def get(self):
return 'GET'
def post(self):
return 'POST'
view = Index.as_view('index')
view.view_class = Other
app.add_url_rule('/', view_func=view)
common_test(app)
def test_view_inheritance():
app = flask.Flask(__name__)
class Index(flask.views.MethodView):
def get(self):
return 'GET'
def post(self):
return 'POST'
class BetterIndex(Index):
def delete(self):
return 'DELETE'
app.add_url_rule('/', view_func=BetterIndex.as_view('index'))
c = app.test_client()
meths = parse_set_header(c.open('/', method='OPTIONS').headers['Allow'])
assert sorted(meths) == ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST']
def test_view_decorators():
app = flask.Flask(__name__)
def add_x_parachute(f):
def new_function(*args, **kwargs):
resp = flask.make_response(f(*args, **kwargs))
resp.headers['X-Parachute'] = 'awesome'
return resp
return new_function
class Index(flask.views.View):
decorators = [add_x_parachute]
def dispatch_request(self):
return 'Awesome'
app.add_url_rule('/', view_func=Index.as_view('index'))
c = app.test_client()
rv = c.get('/')
assert rv.headers['X-Parachute'] == 'awesome'
assert rv.data == b'Awesome'
def test_implicit_head():
app = flask.Flask(__name__)
class Index(flask.views.MethodView):
def get(self):
return flask.Response('Blub', headers={
'X-Method': flask.request.method
})
app.add_url_rule('/', view_func=Index.as_view('index'))
c = app.test_client()
rv = c.get('/')
assert rv.data == b'Blub'
assert rv.headers['X-Method'] == 'GET'
rv = c.head('/')
assert rv.data == b''
assert rv.headers['X-Method'] == 'HEAD'
def test_explicit_head():
app = flask.Flask(__name__)
class Index(flask.views.MethodView):
def get(self):
return 'GET'
def head(self):
return flask.Response('', headers={'X-Method': 'HEAD'})
app.add_url_rule('/', view_func=Index.as_view('index'))
c = app.test_client()
rv = c.get('/')
assert rv.data == b'GET'
rv = c.head('/')
assert rv.data == b''
assert rv.headers['X-Method'] == 'HEAD'
def test_endpoint_override():
app = flask.Flask(__name__)
app.debug = True
class Index(flask.views.View):
methods = ['GET', 'POST']
def dispatch_request(self):
return flask.request.method
app.add_url_rule('/', view_func=Index.as_view('index'))
with pytest.raises(AssertionError):
app.add_url_rule('/', view_func=Index.as_view('index'))
# But these tests should still pass. We just log a warning.
common_test(app)
| bsd-3-clause |
ssadedin/seqr | seqr/views/apis/awesomebar_api_tests.py | 1 | 2983 | import mock
from django.urls.base import reverse
from seqr.views.apis.awesomebar_api import awesomebar_autocomplete_handler
from seqr.views.utils.test_utils import AuthenticationTestCase, AnvilAuthenticationTestCase, MixAuthenticationTestCase
@mock.patch('seqr.views.utils.permissions_utils.safe_redis_get_json', lambda *args: None)
class AwesomebarAPITest(object):
def test_awesomebar_autocomplete_handler(self):
url = reverse(awesomebar_autocomplete_handler)
self.check_require_login(url)
response = self.client.get(url + "?q=")
self.assertEqual(response.status_code, 200)
self.assertDictEqual(response.json(), {'matches': {}})
response = self.client.get(url+"?q=1")
self.assertEqual(response.status_code, 200)
# No objects returned as user has no access
self.assertSetEqual(
set(response.json()['matches'].keys()), {'genes'}
)
self.login_collaborator()
response = self.client.get(url + "?q=1")
self.assertEqual(response.status_code, 200)
self.assertSetEqual(
set(response.json()['matches'].keys()), {'projects', 'families', 'analysis_groups', 'individuals', 'genes'}
)
response = self.client.get(url + "?q=T&categories=project_groups,projects,hpo_terms,omim")
self.assertEqual(response.status_code, 200)
self.assertSetEqual(set(response.json()['matches'].keys()), {'projects', 'project_groups', 'omim', 'hpo_terms'})
# Tests for AnVIL access disabled
class LocalAwesomebarAPITest(AuthenticationTestCase, AwesomebarAPITest):
fixtures = ['users', '1kg_project', 'reference_data']
# Test for permissions from AnVIL only
class AnvilAwesomebarAPITest(AnvilAuthenticationTestCase, AwesomebarAPITest):
fixtures = ['users', 'social_auth', '1kg_project', 'reference_data']
def test_awesomebar_autocomplete_handler(self):
super(AnvilAwesomebarAPITest, self).test_awesomebar_autocomplete_handler()
calls = [
mock.call(self.no_access_user),
mock.call(self.collaborator_user),
mock.call(self.collaborator_user),
]
self.mock_list_workspaces.assert_has_calls(calls)
self.mock_get_ws_acl.assert_not_called()
self.mock_get_ws_access_level.assert_not_called()
# Test for permissions from AnVIL and local
class MixAwesomebarAPITest(MixAuthenticationTestCase, AwesomebarAPITest):
fixtures = ['users', 'social_auth', '1kg_project', 'reference_data']
def test_awesomebar_autocomplete_handler(self):
super(MixAwesomebarAPITest, self).test_awesomebar_autocomplete_handler()
calls = [
mock.call(self.no_access_user),
mock.call(self.collaborator_user),
mock.call(self.collaborator_user),
]
self.mock_list_workspaces.assert_has_calls(calls)
self.mock_get_ws_acl.assert_not_called()
self.mock_get_ws_access_level.assert_not_called()
| agpl-3.0 |
moreati/pylons | pylons/controllers/core.py | 4 | 11067 | """The core WSGIController"""
import inspect
import logging
import types
from webob.exc import HTTPException, HTTPNotFound
import pylons
__all__ = ['WSGIController']
log = logging.getLogger(__name__)
class WSGIController(object):
"""WSGI Controller that follows WSGI spec for calling and return
values
The Pylons WSGI Controller handles incoming web requests that are
dispatched from the PylonsBaseWSGIApp. These requests result in a
new instance of the WSGIController being created, which is then
called with the dict options from the Routes match. The standard
WSGI response is then returned with start_response called as per
the WSGI spec.
Special WSGIController methods you may define:
``__before__``
This method is called before your action is, and should be used
for setting up variables/objects, restricting access to other
actions, or other tasks which should be executed before the
action is called.
``__after__``
This method is called after the action is, unless an unexpected
exception was raised. Subclasses of
:class:`~webob.exc.HTTPException` (such as those raised by
``redirect_to`` and ``abort``) are expected; e.g. ``__after__``
will be called on redirects.
Each action to be called is inspected with :meth:`_inspect_call` so
that it is only passed the arguments in the Routes match dict that
it asks for. The arguments passed into the action can be customized
by overriding the :meth:`_get_method_args` function which is
expected to return a dict.
In the event that an action is not found to handle the request, the
Controller will raise an "Action Not Found" error if in debug mode,
otherwise a ``404 Not Found`` error will be returned.
"""
_pylons_log_debug = False
def _perform_call(self, func, args):
"""Hide the traceback for everything above this method"""
__traceback_hide__ = 'before_and_this'
return func(**args)
def _inspect_call(self, func):
"""Calls a function with arguments from
:meth:`_get_method_args`
Given a function, inspect_call will inspect the function args
and call it with no further keyword args than it asked for.
If the function has been decorated, it is assumed that the
decorator preserved the function signature.
"""
# Check to see if the class has a cache of argspecs yet
try:
cached_argspecs = self.__class__._cached_argspecs
except AttributeError:
self.__class__._cached_argspecs = cached_argspecs = {}
# function could be callable
func_key = getattr(func, 'im_func', func.__call__)
try:
argspec = cached_argspecs[func_key]
except KeyError:
argspec = cached_argspecs[func_key] = inspect.getargspec(func_key)
kargs = self._get_method_args()
log_debug = self._pylons_log_debug
c = self._py_object.tmpl_context
environ = self._py_object.request.environ
args = None
if argspec[2]:
if self._py_object.config['pylons.tmpl_context_attach_args']:
for k, val in kargs.iteritems():
setattr(c, k, val)
args = kargs
else:
args = {}
argnames = argspec[0][isinstance(func, types.MethodType)
and 1 or 0:]
for name in argnames:
if name in kargs:
if self._py_object.config['pylons.tmpl_context_attach_args']:
setattr(c, name, kargs[name])
args[name] = kargs[name]
if log_debug:
log.debug("Calling %r method with keyword args: **%r",
func.__name__, args)
try:
result = self._perform_call(func, args)
except HTTPException, httpe:
if log_debug:
log.debug("%r method raised HTTPException: %s (code: %s)",
func.__name__, httpe.__class__.__name__,
httpe.wsgi_response.code, exc_info=True)
result = httpe
# Store the exception in the environ
environ['pylons.controller.exception'] = httpe
# 304 Not Modified's shouldn't have a content-type set
if result.wsgi_response.status_int == 304:
result.wsgi_response.headers.pop('Content-Type', None)
result._exception = True
return result
def _get_method_args(self):
"""Retrieve the method arguments to use with inspect call
By default, this uses Routes to retrieve the arguments,
override this method to customize the arguments your controller
actions are called with.
This method should return a dict.
"""
req = self._py_object.request
kargs = req.environ['pylons.routes_dict'].copy()
kargs['environ'] = req.environ
kargs['start_response'] = self.start_response
kargs['pylons'] = self._py_object
return kargs
def _dispatch_call(self):
"""Handles dispatching the request to the function using
Routes"""
log_debug = self._pylons_log_debug
req = self._py_object.request
try:
action = req.environ['pylons.routes_dict']['action']
except KeyError:
raise Exception("No action matched from Routes, unable to"
"determine action dispatch.")
action_method = action.replace('-', '_')
if log_debug:
log.debug("Looking for %r method to handle the request",
action_method)
try:
func = getattr(self, action_method, None)
except UnicodeEncodeError:
func = None
if action_method != 'start_response' and callable(func):
# Store function used to handle request
req.environ['pylons.action_method'] = func
response = self._inspect_call(func)
else:
if log_debug:
log.debug("Couldn't find %r method to handle response", action)
if pylons.config['debug']:
raise NotImplementedError('Action %r is not implemented' %
action)
else:
response = HTTPNotFound()
return response
def __call__(self, environ, start_response):
"""The main call handler that is called to return a response"""
log_debug = self._pylons_log_debug
# Keep a local reference to the req/response objects
self._py_object = environ['pylons.pylons']
# Keep private methods private
try:
if environ['pylons.routes_dict']['action'][:1] in ('_', '-'):
if log_debug:
log.debug("Action starts with _, private action not "
"allowed. Returning a 404 response")
return HTTPNotFound()(environ, start_response)
except KeyError:
# The check later will notice that there's no action
pass
start_response_called = []
def repl_start_response(status, headers, exc_info=None):
response = self._py_object.response
start_response_called.append(None)
# Copy the headers from the global response
if log_debug:
log.debug("Merging pylons.response headers into "
"start_response call, status: %s", status)
headers.extend(header for header in response.headerlist
if header[0] == 'Set-Cookie' or
header[0].startswith('X-'))
return start_response(status, headers, exc_info)
self.start_response = repl_start_response
if hasattr(self, '__before__'):
response = self._inspect_call(self.__before__)
if hasattr(response, '_exception'):
return response(environ, self.start_response)
response = self._dispatch_call()
if not start_response_called:
self.start_response = start_response
py_response = self._py_object.response
# If its not a WSGI response, and we have content, it needs to
# be wrapped in the response object
if isinstance(response, str):
if log_debug:
log.debug("Controller returned a string "
", writing it to pylons.response")
py_response.body = py_response.body + response
elif isinstance(response, unicode):
if log_debug:
log.debug("Controller returned a unicode string "
", writing it to pylons.response")
py_response.unicode_body = py_response.unicode_body + \
response
elif hasattr(response, 'wsgi_response'):
# It's an exception that got tossed.
if log_debug:
log.debug("Controller returned a Response object, merging "
"it with pylons.response")
for name, value in py_response.headers.items():
if name.lower() == 'set-cookie':
response.headers.add(name, value)
else:
response.headers.setdefault(name, value)
try:
registry = environ['paste.registry']
registry.replace(pylons.response, response)
except KeyError:
# Ignore the case when someone removes the registry
pass
py_response = response
elif response is None:
if log_debug:
log.debug("Controller returned None")
else:
if log_debug:
log.debug("Assuming controller returned an iterable, "
"setting it as pylons.response.app_iter")
py_response.app_iter = response
response = py_response
if hasattr(self, '__after__'):
after = self._inspect_call(self.__after__)
if hasattr(after, '_exception'):
after.wsgi_response = True
response = after
if hasattr(response, 'wsgi_response'):
# Copy the response object into the testing vars if we're testing
if 'paste.testing_variables' in environ:
environ['paste.testing_variables']['response'] = response
if log_debug:
log.debug("Calling Response object to return WSGI data")
return response(environ, self.start_response)
if log_debug:
log.debug("Response assumed to be WSGI content, returning "
"un-touched")
return response
| bsd-3-clause |
code4futuredotorg/reeborg_tw | src/libraries/brython/Lib/encodings/hp_roman8.py | 134 | 13447 | """ Python Character Mapping Codec generated from 'hp_roman8.txt' with gencodec.py.
Based on data from ftp://dkuug.dk/i18n/charmaps/HP-ROMAN8 (Keld Simonsen)
Original source: LaserJet IIP Printer User's Manual HP part no
33471-90901, Hewlet-Packard, June 1989.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,input,errors='strict'):
return codecs.charmap_decode(input,errors,decoding_table)
class IncrementalEncoder(codecs.IncrementalEncoder):
def encode(self, input, final=False):
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
class StreamWriter(Codec,codecs.StreamWriter):
pass
class StreamReader(Codec,codecs.StreamReader):
pass
### encodings module API
def getregentry():
return codecs.CodecInfo(
name='hp-roman8',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamwriter=StreamWriter,
streamreader=StreamReader,
)
### Decoding Table
decoding_table = (
'\x00' # 0x00 -> NULL
'\x01' # 0x01 -> START OF HEADING
'\x02' # 0x02 -> START OF TEXT
'\x03' # 0x03 -> END OF TEXT
'\x04' # 0x04 -> END OF TRANSMISSION
'\x05' # 0x05 -> ENQUIRY
'\x06' # 0x06 -> ACKNOWLEDGE
'\x07' # 0x07 -> BELL
'\x08' # 0x08 -> BACKSPACE
'\t' # 0x09 -> HORIZONTAL TABULATION
'\n' # 0x0A -> LINE FEED
'\x0b' # 0x0B -> VERTICAL TABULATION
'\x0c' # 0x0C -> FORM FEED
'\r' # 0x0D -> CARRIAGE RETURN
'\x0e' # 0x0E -> SHIFT OUT
'\x0f' # 0x0F -> SHIFT IN
'\x10' # 0x10 -> DATA LINK ESCAPE
'\x11' # 0x11 -> DEVICE CONTROL ONE
'\x12' # 0x12 -> DEVICE CONTROL TWO
'\x13' # 0x13 -> DEVICE CONTROL THREE
'\x14' # 0x14 -> DEVICE CONTROL FOUR
'\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
'\x16' # 0x16 -> SYNCHRONOUS IDLE
'\x17' # 0x17 -> END OF TRANSMISSION BLOCK
'\x18' # 0x18 -> CANCEL
'\x19' # 0x19 -> END OF MEDIUM
'\x1a' # 0x1A -> SUBSTITUTE
'\x1b' # 0x1B -> ESCAPE
'\x1c' # 0x1C -> FILE SEPARATOR
'\x1d' # 0x1D -> GROUP SEPARATOR
'\x1e' # 0x1E -> RECORD SEPARATOR
'\x1f' # 0x1F -> UNIT SEPARATOR
' ' # 0x20 -> SPACE
'!' # 0x21 -> EXCLAMATION MARK
'"' # 0x22 -> QUOTATION MARK
'#' # 0x23 -> NUMBER SIGN
'$' # 0x24 -> DOLLAR SIGN
'%' # 0x25 -> PERCENT SIGN
'&' # 0x26 -> AMPERSAND
"'" # 0x27 -> APOSTROPHE
'(' # 0x28 -> LEFT PARENTHESIS
')' # 0x29 -> RIGHT PARENTHESIS
'*' # 0x2A -> ASTERISK
'+' # 0x2B -> PLUS SIGN
',' # 0x2C -> COMMA
'-' # 0x2D -> HYPHEN-MINUS
'.' # 0x2E -> FULL STOP
'/' # 0x2F -> SOLIDUS
'0' # 0x30 -> DIGIT ZERO
'1' # 0x31 -> DIGIT ONE
'2' # 0x32 -> DIGIT TWO
'3' # 0x33 -> DIGIT THREE
'4' # 0x34 -> DIGIT FOUR
'5' # 0x35 -> DIGIT FIVE
'6' # 0x36 -> DIGIT SIX
'7' # 0x37 -> DIGIT SEVEN
'8' # 0x38 -> DIGIT EIGHT
'9' # 0x39 -> DIGIT NINE
':' # 0x3A -> COLON
';' # 0x3B -> SEMICOLON
'<' # 0x3C -> LESS-THAN SIGN
'=' # 0x3D -> EQUALS SIGN
'>' # 0x3E -> GREATER-THAN SIGN
'?' # 0x3F -> QUESTION MARK
'@' # 0x40 -> COMMERCIAL AT
'A' # 0x41 -> LATIN CAPITAL LETTER A
'B' # 0x42 -> LATIN CAPITAL LETTER B
'C' # 0x43 -> LATIN CAPITAL LETTER C
'D' # 0x44 -> LATIN CAPITAL LETTER D
'E' # 0x45 -> LATIN CAPITAL LETTER E
'F' # 0x46 -> LATIN CAPITAL LETTER F
'G' # 0x47 -> LATIN CAPITAL LETTER G
'H' # 0x48 -> LATIN CAPITAL LETTER H
'I' # 0x49 -> LATIN CAPITAL LETTER I
'J' # 0x4A -> LATIN CAPITAL LETTER J
'K' # 0x4B -> LATIN CAPITAL LETTER K
'L' # 0x4C -> LATIN CAPITAL LETTER L
'M' # 0x4D -> LATIN CAPITAL LETTER M
'N' # 0x4E -> LATIN CAPITAL LETTER N
'O' # 0x4F -> LATIN CAPITAL LETTER O
'P' # 0x50 -> LATIN CAPITAL LETTER P
'Q' # 0x51 -> LATIN CAPITAL LETTER Q
'R' # 0x52 -> LATIN CAPITAL LETTER R
'S' # 0x53 -> LATIN CAPITAL LETTER S
'T' # 0x54 -> LATIN CAPITAL LETTER T
'U' # 0x55 -> LATIN CAPITAL LETTER U
'V' # 0x56 -> LATIN CAPITAL LETTER V
'W' # 0x57 -> LATIN CAPITAL LETTER W
'X' # 0x58 -> LATIN CAPITAL LETTER X
'Y' # 0x59 -> LATIN CAPITAL LETTER Y
'Z' # 0x5A -> LATIN CAPITAL LETTER Z
'[' # 0x5B -> LEFT SQUARE BRACKET
'\\' # 0x5C -> REVERSE SOLIDUS
']' # 0x5D -> RIGHT SQUARE BRACKET
'^' # 0x5E -> CIRCUMFLEX ACCENT
'_' # 0x5F -> LOW LINE
'`' # 0x60 -> GRAVE ACCENT
'a' # 0x61 -> LATIN SMALL LETTER A
'b' # 0x62 -> LATIN SMALL LETTER B
'c' # 0x63 -> LATIN SMALL LETTER C
'd' # 0x64 -> LATIN SMALL LETTER D
'e' # 0x65 -> LATIN SMALL LETTER E
'f' # 0x66 -> LATIN SMALL LETTER F
'g' # 0x67 -> LATIN SMALL LETTER G
'h' # 0x68 -> LATIN SMALL LETTER H
'i' # 0x69 -> LATIN SMALL LETTER I
'j' # 0x6A -> LATIN SMALL LETTER J
'k' # 0x6B -> LATIN SMALL LETTER K
'l' # 0x6C -> LATIN SMALL LETTER L
'm' # 0x6D -> LATIN SMALL LETTER M
'n' # 0x6E -> LATIN SMALL LETTER N
'o' # 0x6F -> LATIN SMALL LETTER O
'p' # 0x70 -> LATIN SMALL LETTER P
'q' # 0x71 -> LATIN SMALL LETTER Q
'r' # 0x72 -> LATIN SMALL LETTER R
's' # 0x73 -> LATIN SMALL LETTER S
't' # 0x74 -> LATIN SMALL LETTER T
'u' # 0x75 -> LATIN SMALL LETTER U
'v' # 0x76 -> LATIN SMALL LETTER V
'w' # 0x77 -> LATIN SMALL LETTER W
'x' # 0x78 -> LATIN SMALL LETTER X
'y' # 0x79 -> LATIN SMALL LETTER Y
'z' # 0x7A -> LATIN SMALL LETTER Z
'{' # 0x7B -> LEFT CURLY BRACKET
'|' # 0x7C -> VERTICAL LINE
'}' # 0x7D -> RIGHT CURLY BRACKET
'~' # 0x7E -> TILDE
'\x7f' # 0x7F -> DELETE
'\x80' # 0x80 -> <control>
'\x81' # 0x81 -> <control>
'\x82' # 0x82 -> <control>
'\x83' # 0x83 -> <control>
'\x84' # 0x84 -> <control>
'\x85' # 0x85 -> <control>
'\x86' # 0x86 -> <control>
'\x87' # 0x87 -> <control>
'\x88' # 0x88 -> <control>
'\x89' # 0x89 -> <control>
'\x8a' # 0x8A -> <control>
'\x8b' # 0x8B -> <control>
'\x8c' # 0x8C -> <control>
'\x8d' # 0x8D -> <control>
'\x8e' # 0x8E -> <control>
'\x8f' # 0x8F -> <control>
'\x90' # 0x90 -> <control>
'\x91' # 0x91 -> <control>
'\x92' # 0x92 -> <control>
'\x93' # 0x93 -> <control>
'\x94' # 0x94 -> <control>
'\x95' # 0x95 -> <control>
'\x96' # 0x96 -> <control>
'\x97' # 0x97 -> <control>
'\x98' # 0x98 -> <control>
'\x99' # 0x99 -> <control>
'\x9a' # 0x9A -> <control>
'\x9b' # 0x9B -> <control>
'\x9c' # 0x9C -> <control>
'\x9d' # 0x9D -> <control>
'\x9e' # 0x9E -> <control>
'\x9f' # 0x9F -> <control>
'\xa0' # 0xA0 -> NO-BREAK SPACE
'\xc0' # 0xA1 -> LATIN CAPITAL LETTER A WITH GRAVE
'\xc2' # 0xA2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
'\xc8' # 0xA3 -> LATIN CAPITAL LETTER E WITH GRAVE
'\xca' # 0xA4 -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
'\xcb' # 0xA5 -> LATIN CAPITAL LETTER E WITH DIAERESIS
'\xce' # 0xA6 -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
'\xcf' # 0xA7 -> LATIN CAPITAL LETTER I WITH DIAERESIS
'\xb4' # 0xA8 -> ACUTE ACCENT
'\u02cb' # 0xA9 -> MODIFIER LETTER GRAVE ACCENT (MANDARIN CHINESE FOURTH TONE)
'\u02c6' # 0xAA -> MODIFIER LETTER CIRCUMFLEX ACCENT
'\xa8' # 0xAB -> DIAERESIS
'\u02dc' # 0xAC -> SMALL TILDE
'\xd9' # 0xAD -> LATIN CAPITAL LETTER U WITH GRAVE
'\xdb' # 0xAE -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
'\u20a4' # 0xAF -> LIRA SIGN
'\xaf' # 0xB0 -> MACRON
'\xdd' # 0xB1 -> LATIN CAPITAL LETTER Y WITH ACUTE
'\xfd' # 0xB2 -> LATIN SMALL LETTER Y WITH ACUTE
'\xb0' # 0xB3 -> DEGREE SIGN
'\xc7' # 0xB4 -> LATIN CAPITAL LETTER C WITH CEDILLA
'\xe7' # 0xB5 -> LATIN SMALL LETTER C WITH CEDILLA
'\xd1' # 0xB6 -> LATIN CAPITAL LETTER N WITH TILDE
'\xf1' # 0xB7 -> LATIN SMALL LETTER N WITH TILDE
'\xa1' # 0xB8 -> INVERTED EXCLAMATION MARK
'\xbf' # 0xB9 -> INVERTED QUESTION MARK
'\xa4' # 0xBA -> CURRENCY SIGN
'\xa3' # 0xBB -> POUND SIGN
'\xa5' # 0xBC -> YEN SIGN
'\xa7' # 0xBD -> SECTION SIGN
'\u0192' # 0xBE -> LATIN SMALL LETTER F WITH HOOK
'\xa2' # 0xBF -> CENT SIGN
'\xe2' # 0xC0 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
'\xea' # 0xC1 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
'\xf4' # 0xC2 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
'\xfb' # 0xC3 -> LATIN SMALL LETTER U WITH CIRCUMFLEX
'\xe1' # 0xC4 -> LATIN SMALL LETTER A WITH ACUTE
'\xe9' # 0xC5 -> LATIN SMALL LETTER E WITH ACUTE
'\xf3' # 0xC6 -> LATIN SMALL LETTER O WITH ACUTE
'\xfa' # 0xC7 -> LATIN SMALL LETTER U WITH ACUTE
'\xe0' # 0xC8 -> LATIN SMALL LETTER A WITH GRAVE
'\xe8' # 0xC9 -> LATIN SMALL LETTER E WITH GRAVE
'\xf2' # 0xCA -> LATIN SMALL LETTER O WITH GRAVE
'\xf9' # 0xCB -> LATIN SMALL LETTER U WITH GRAVE
'\xe4' # 0xCC -> LATIN SMALL LETTER A WITH DIAERESIS
'\xeb' # 0xCD -> LATIN SMALL LETTER E WITH DIAERESIS
'\xf6' # 0xCE -> LATIN SMALL LETTER O WITH DIAERESIS
'\xfc' # 0xCF -> LATIN SMALL LETTER U WITH DIAERESIS
'\xc5' # 0xD0 -> LATIN CAPITAL LETTER A WITH RING ABOVE
'\xee' # 0xD1 -> LATIN SMALL LETTER I WITH CIRCUMFLEX
'\xd8' # 0xD2 -> LATIN CAPITAL LETTER O WITH STROKE
'\xc6' # 0xD3 -> LATIN CAPITAL LETTER AE
'\xe5' # 0xD4 -> LATIN SMALL LETTER A WITH RING ABOVE
'\xed' # 0xD5 -> LATIN SMALL LETTER I WITH ACUTE
'\xf8' # 0xD6 -> LATIN SMALL LETTER O WITH STROKE
'\xe6' # 0xD7 -> LATIN SMALL LETTER AE
'\xc4' # 0xD8 -> LATIN CAPITAL LETTER A WITH DIAERESIS
'\xec' # 0xD9 -> LATIN SMALL LETTER I WITH GRAVE
'\xd6' # 0xDA -> LATIN CAPITAL LETTER O WITH DIAERESIS
'\xdc' # 0xDB -> LATIN CAPITAL LETTER U WITH DIAERESIS
'\xc9' # 0xDC -> LATIN CAPITAL LETTER E WITH ACUTE
'\xef' # 0xDD -> LATIN SMALL LETTER I WITH DIAERESIS
'\xdf' # 0xDE -> LATIN SMALL LETTER SHARP S (GERMAN)
'\xd4' # 0xDF -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
'\xc1' # 0xE0 -> LATIN CAPITAL LETTER A WITH ACUTE
'\xc3' # 0xE1 -> LATIN CAPITAL LETTER A WITH TILDE
'\xe3' # 0xE2 -> LATIN SMALL LETTER A WITH TILDE
'\xd0' # 0xE3 -> LATIN CAPITAL LETTER ETH (ICELANDIC)
'\xf0' # 0xE4 -> LATIN SMALL LETTER ETH (ICELANDIC)
'\xcd' # 0xE5 -> LATIN CAPITAL LETTER I WITH ACUTE
'\xcc' # 0xE6 -> LATIN CAPITAL LETTER I WITH GRAVE
'\xd3' # 0xE7 -> LATIN CAPITAL LETTER O WITH ACUTE
'\xd2' # 0xE8 -> LATIN CAPITAL LETTER O WITH GRAVE
'\xd5' # 0xE9 -> LATIN CAPITAL LETTER O WITH TILDE
'\xf5' # 0xEA -> LATIN SMALL LETTER O WITH TILDE
'\u0160' # 0xEB -> LATIN CAPITAL LETTER S WITH CARON
'\u0161' # 0xEC -> LATIN SMALL LETTER S WITH CARON
'\xda' # 0xED -> LATIN CAPITAL LETTER U WITH ACUTE
'\u0178' # 0xEE -> LATIN CAPITAL LETTER Y WITH DIAERESIS
'\xff' # 0xEF -> LATIN SMALL LETTER Y WITH DIAERESIS
'\xde' # 0xF0 -> LATIN CAPITAL LETTER THORN (ICELANDIC)
'\xfe' # 0xF1 -> LATIN SMALL LETTER THORN (ICELANDIC)
'\xb7' # 0xF2 -> MIDDLE DOT
'\xb5' # 0xF3 -> MICRO SIGN
'\xb6' # 0xF4 -> PILCROW SIGN
'\xbe' # 0xF5 -> VULGAR FRACTION THREE QUARTERS
'\u2014' # 0xF6 -> EM DASH
'\xbc' # 0xF7 -> VULGAR FRACTION ONE QUARTER
'\xbd' # 0xF8 -> VULGAR FRACTION ONE HALF
'\xaa' # 0xF9 -> FEMININE ORDINAL INDICATOR
'\xba' # 0xFA -> MASCULINE ORDINAL INDICATOR
'\xab' # 0xFB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
'\u25a0' # 0xFC -> BLACK SQUARE
'\xbb' # 0xFD -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
'\xb1' # 0xFE -> PLUS-MINUS SIGN
'\ufffe'
)
### Encoding table
encoding_table=codecs.charmap_build(decoding_table)
| agpl-3.0 |
Eficent/odoomrp-utils | purchase_order_line_form_button/models/purchase_order.py | 12 | 1144 | # -*- encoding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
from openerp import models, api, _
class PurchaseOrderLine(models.Model):
_inherit = 'purchase.order.line'
@api.multi
def button_save_data(self):
return True
@api.multi
def button_details(self):
context = self.env.context.copy()
view_id = self.env.ref(
'purchase_order_line_form_button.'
'purchase_order_line_button_form_view').id
context['view_buttons'] = True
context['parent'] = self.order_id.id
view = {
'name': _('Details'),
'view_type': 'form',
'view_mode': 'form',
'res_model': 'purchase.order.line',
'view_id': view_id,
'type': 'ir.actions.act_window',
'target': 'new',
'readonly': True,
'res_id': self.id,
'context': context
}
return view
| agpl-3.0 |
googleads/google-ads-python | google/ads/googleads/v7/services/services/mobile_app_category_constant_service/transports/__init__.py | 2 | 1135 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from collections import OrderedDict
from typing import Dict, Type
from .base import MobileAppCategoryConstantServiceTransport
from .grpc import MobileAppCategoryConstantServiceGrpcTransport
# Compile a registry of transports.
_transport_registry = (
OrderedDict()
) # type: Dict[str, Type[MobileAppCategoryConstantServiceTransport]]
_transport_registry["grpc"] = MobileAppCategoryConstantServiceGrpcTransport
__all__ = (
"MobileAppCategoryConstantServiceTransport",
"MobileAppCategoryConstantServiceGrpcTransport",
)
| apache-2.0 |
jonathan-beard/edx-platform | common/djangoapps/embargo/migrations/0002_add_country_access_models.py | 102 | 9237 | # -*- coding: 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):
# Adding model 'Country'
db.create_table('embargo_country', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('country', self.gf('django_countries.fields.CountryField')(unique=True, max_length=2, db_index=True)),
))
db.send_create_signal('embargo', ['Country'])
# Adding model 'RestrictedCourse'
db.create_table('embargo_restrictedcourse', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('course_key', self.gf('xmodule_django.models.CourseKeyField')(unique=True, max_length=255, db_index=True)),
('enroll_msg_key', self.gf('django.db.models.fields.CharField')(default='default', max_length=255)),
('access_msg_key', self.gf('django.db.models.fields.CharField')(default='default', max_length=255)),
))
db.send_create_signal('embargo', ['RestrictedCourse'])
# Adding model 'CountryAccessRule'
db.create_table('embargo_countryaccessrule', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('rule_type', self.gf('django.db.models.fields.CharField')(default='blacklist', max_length=255)),
('restricted_course', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['embargo.RestrictedCourse'])),
('country', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['embargo.Country'])),
))
db.send_create_signal('embargo', ['CountryAccessRule'])
# Adding unique constraint on 'CountryAccessRule', fields ['restricted_course', 'country']
db.create_unique('embargo_countryaccessrule', ['restricted_course_id', 'country_id'])
# Changing field 'EmbargoedCourse.course_id'
db.alter_column('embargo_embargoedcourse', 'course_id', self.gf('xmodule_django.models.CourseKeyField')(unique=True, max_length=255))
def backwards(self, orm):
# Removing unique constraint on 'CountryAccessRule', fields ['restricted_course', 'country']
db.delete_unique('embargo_countryaccessrule', ['restricted_course_id', 'country_id'])
# Deleting model 'Country'
db.delete_table('embargo_country')
# Deleting model 'RestrictedCourse'
db.delete_table('embargo_restrictedcourse')
# Deleting model 'CountryAccessRule'
db.delete_table('embargo_countryaccessrule')
# Changing field 'EmbargoedCourse.course_id'
db.alter_column('embargo_embargoedcourse', 'course_id', self.gf('django.db.models.fields.CharField')(max_length=255, unique=True))
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'})
},
'embargo.country': {
'Meta': {'ordering': "['country']", 'object_name': 'Country'},
'country': ('django_countries.fields.CountryField', [], {'unique': 'True', 'max_length': '2', 'db_index': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'embargo.countryaccessrule': {
'Meta': {'unique_together': "(('restricted_course', 'country'),)", 'object_name': 'CountryAccessRule'},
'country': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['embargo.Country']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'restricted_course': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['embargo.RestrictedCourse']"}),
'rule_type': ('django.db.models.fields.CharField', [], {'default': "'blacklist'", 'max_length': '255'})
},
'embargo.embargoedcourse': {
'Meta': {'object_name': 'EmbargoedCourse'},
'course_id': ('xmodule_django.models.CourseKeyField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}),
'embargoed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'embargo.embargoedstate': {
'Meta': {'object_name': 'EmbargoedState'},
'change_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'changed_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.PROTECT'}),
'embargoed_countries': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'embargo.ipfilter': {
'Meta': {'object_name': 'IPFilter'},
'blacklist': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'change_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'changed_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'on_delete': 'models.PROTECT'}),
'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'whitelist': ('django.db.models.fields.TextField', [], {'blank': 'True'})
},
'embargo.restrictedcourse': {
'Meta': {'object_name': 'RestrictedCourse'},
'access_msg_key': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '255'}),
'course_key': ('xmodule_django.models.CourseKeyField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}),
'enroll_msg_key': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '255'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
}
}
complete_apps = ['embargo'] | agpl-3.0 |
prachidamle/cattle | tests/integration/cattletest/core/test_local_auth.py | 1 | 7082 | from common_fixtures import * # NOQA
from requests.auth import AuthBase
import requests
from cattle import from_env
class LocalAuth(AuthBase):
def __init__(self, jwt, prj_id=None):
# setup any auth-related data here
self.jwt = jwt
self.prj_id = prj_id
def __call__(self, r):
# modify and return the request
r.headers['Authorization'] = 'Bearer ' + self.jwt
if self.prj_id is not None:
r.headers['X-API-Project-Id'] = self.prj_id
return r
@pytest.fixture(scope='session', autouse=True)
def turn_on_off_local_auth(request, admin_user_client):
username = os.environ.get('CATTLE_ACCESS_KEY', 'admin')
password = os.environ.get('CATTLE_SECRET_KEY', 'adminpass')
admin_user_client.create_localAuthConfig(enabled=True,
username=username,
password=password)
def fin():
admin_user_client.create_localAuthConfig(enabled=False,
username=username,
password=password)
request.addfinalizer(fin)
def make_user_and_client(admin_user_client, name_base='user '):
account = admin_user_client.create_account(name=name_base + random_str(),
kind="user")
admin_user_client.wait_success(account)
username = name_base + random_str()
password = 'password ' + random_str()
login = admin_user_client.create_password(publicValue=username,
secretValue=password,
accountId=account.id)
admin_user_client.wait_success(login)
key = admin_user_client.create_apiKey()
admin_user_client.wait_success(key)
start_client = from_env(url=cattle_url(),
access_key=key.publicValue,
secret_key=key.secretValue)
token = requests.post(base_url() + 'token', {
'code': username + ':' + password
})
token = token.json()
assert token['type'] != 'error'
token = token['jwt']
start_client._auth = LocalAuth(token)
start_client.valid()
identities = start_client.list_identity()
assert len(identities) == 1
assert identities[0].externalId == account.id
return start_client, account, username, password
@pytest.mark.nonparallel
def test_local_login(admin_user_client, request):
client, account, username, password =\
make_user_and_client(admin_user_client)
identities = client.list_identity()
assert len(identities) == 1
assert identities[0].externalId == account.id
@pytest.mark.nonparallel
def test_local_login_change_password(admin_user_client, request):
client, account, username, password =\
make_user_and_client(admin_user_client)
credential = client.list_password()
assert len(credential) == 1
assert credential[0].publicValue == username
newPass = random_str()
credential[0].changesecret(oldSecret=password, newSecret=newPass)
client, account, username, password =\
make_user_and_client(admin_user_client)
identities = client.list_identity()
assert len(identities) == 1
assert identities[0].externalId == account.id
@pytest.mark.nonparallel
def test_local_incorrect_login(admin_user_client, request):
token = requests.post(base_url() + 'token',
{
'code': random_str() + ':' + random_str()
})
assert token.status_code == 401
token = token.json()
assert token['type'] == 'error'
assert token['status'] == 401
@pytest.mark.nonparallel
def test_local_project_members(admin_user_client, request):
user1_client, account, username, password =\
make_user_and_client(admin_user_client)
user1_identity = None
for obj in user1_client.list_identity():
if obj.externalIdType == 'rancher_id':
user1_identity = obj
break
user2_client, account, username, password =\
make_user_and_client(admin_user_client)
user2_identity = None
for obj in user2_client.list_identity():
if obj.externalIdType == 'rancher_id':
user2_identity = obj
break
project = user1_client.create_project(members=[
idToMember(user1_identity, 'owner'),
idToMember(user2_identity, 'member')
])
admin_user_client.wait_success(project)
user1_client.by_id('project', project.id)
user2_client.by_id('project', project.id)
def idToMember(identity, role):
return {
'externalId': identity.externalId,
'externalIdType': identity.externalIdType,
'role': role
}
@pytest.mark.nonparallel
def test_local_project_create(admin_user_client, request):
user1_client, account, username, password =\
make_user_and_client(admin_user_client)
identity = None
for obj in user1_client.list_identity():
if obj.externalIdType == 'rancher_id':
identity = obj
break
members = [idToMember(identity, 'owner')]
project = user1_client.create_project(members=members)
project = user1_client.wait_success(project)
assert project is not None
user1_client.delete(project)
@pytest.mark.nonparallel
def test_get_correct_identity(admin_user_client):
name = "Identity User"
context = create_context(admin_user_client, name=name)
identities = context.user_client.list_identity()
assert len(identities) == 1
assert identities[0].name == name
@pytest.mark.nonparallel
def test_search_identity_name(admin_user_client, request):
usernames = []
for x in range(0, 5):
client, account, username, password =\
make_user_and_client(admin_user_client)
usernames.append(username)
user_client = create_context(admin_user_client).user_client
for username in usernames:
ids = user_client\
.list_identity(name=username)
assert len(ids) == 1
assert ids[0].login == username
identity = user_client.by_id('identity', id=ids[0].id)
assert identity.name == ids[0].name
assert identity.id == ids[0].id
assert identity.externalId == ids[0].externalId
assert identity.externalIdType == ids[0].externalIdType
@pytest.mark.nonparallel
def test_search_identity_name_like(admin_user_client, request):
name_base = random_str()
usernames = []
for x in range(0, 5):
client, account, username, password =\
make_user_and_client(admin_user_client,
name_base=name_base)
usernames.append(username)
identities = admin_user_client.list_identity(all=name_base)
assert len(identities) == 5
assert len(usernames) == 5
found = 0
for identity in identities:
for username in usernames:
if (identity.login == username):
found += 1
assert found == 5
| apache-2.0 |
Mrs-X/PIVX | test/functional/test_framework/key.py | 24 | 8481 | # Copyright (c) 2011 Sam Rushing
"""ECC secp256k1 OpenSSL wrapper.
WARNING: This module does not mlock() secrets; your private keys may end up on
disk in swap! Use with caution!
This file is modified from python-bitcoinlib.
"""
import ctypes
import ctypes.util
import hashlib
import sys
ssl = ctypes.cdll.LoadLibrary(ctypes.util.find_library ('ssl') or 'libeay32')
ssl.BN_new.restype = ctypes.c_void_p
ssl.BN_new.argtypes = []
ssl.BN_bin2bn.restype = ctypes.c_void_p
ssl.BN_bin2bn.argtypes = [ctypes.c_char_p, ctypes.c_int, ctypes.c_void_p]
ssl.BN_CTX_free.restype = None
ssl.BN_CTX_free.argtypes = [ctypes.c_void_p]
ssl.BN_CTX_new.restype = ctypes.c_void_p
ssl.BN_CTX_new.argtypes = []
ssl.ECDH_compute_key.restype = ctypes.c_int
ssl.ECDH_compute_key.argtypes = [ctypes.c_void_p, ctypes.c_int, ctypes.c_void_p, ctypes.c_void_p]
ssl.ECDSA_sign.restype = ctypes.c_int
ssl.ECDSA_sign.argtypes = [ctypes.c_int, ctypes.c_void_p, ctypes.c_int, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p]
ssl.ECDSA_verify.restype = ctypes.c_int
ssl.ECDSA_verify.argtypes = [ctypes.c_int, ctypes.c_void_p, ctypes.c_int, ctypes.c_void_p, ctypes.c_int, ctypes.c_void_p]
ssl.EC_KEY_free.restype = None
ssl.EC_KEY_free.argtypes = [ctypes.c_void_p]
ssl.EC_KEY_new_by_curve_name.restype = ctypes.c_void_p
ssl.EC_KEY_new_by_curve_name.argtypes = [ctypes.c_int]
ssl.EC_KEY_get0_group.restype = ctypes.c_void_p
ssl.EC_KEY_get0_group.argtypes = [ctypes.c_void_p]
ssl.EC_KEY_get0_public_key.restype = ctypes.c_void_p
ssl.EC_KEY_get0_public_key.argtypes = [ctypes.c_void_p]
ssl.EC_KEY_set_private_key.restype = ctypes.c_int
ssl.EC_KEY_set_private_key.argtypes = [ctypes.c_void_p, ctypes.c_void_p]
ssl.EC_KEY_set_conv_form.restype = None
ssl.EC_KEY_set_conv_form.argtypes = [ctypes.c_void_p, ctypes.c_int]
ssl.EC_KEY_set_public_key.restype = ctypes.c_int
ssl.EC_KEY_set_public_key.argtypes = [ctypes.c_void_p, ctypes.c_void_p]
ssl.i2o_ECPublicKey.restype = ctypes.c_void_p
ssl.i2o_ECPublicKey.argtypes = [ctypes.c_void_p, ctypes.c_void_p]
ssl.EC_POINT_new.restype = ctypes.c_void_p
ssl.EC_POINT_new.argtypes = [ctypes.c_void_p]
ssl.EC_POINT_free.restype = None
ssl.EC_POINT_free.argtypes = [ctypes.c_void_p]
ssl.EC_POINT_mul.restype = ctypes.c_int
ssl.EC_POINT_mul.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p]
# this specifies the curve used with ECDSA.
NID_secp256k1 = 714 # from openssl/obj_mac.h
SECP256K1_ORDER = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
SECP256K1_ORDER_HALF = SECP256K1_ORDER // 2
# Thx to Sam Devlin for the ctypes magic 64-bit fix.
def _check_result(val, func, args):
if val == 0:
raise ValueError
else:
return ctypes.c_void_p (val)
ssl.EC_KEY_new_by_curve_name.restype = ctypes.c_void_p
ssl.EC_KEY_new_by_curve_name.errcheck = _check_result
class CECKey():
"""Wrapper around OpenSSL's EC_KEY"""
POINT_CONVERSION_COMPRESSED = 2
POINT_CONVERSION_UNCOMPRESSED = 4
def __init__(self):
self.k = ssl.EC_KEY_new_by_curve_name(NID_secp256k1)
def __del__(self):
if ssl:
ssl.EC_KEY_free(self.k)
self.k = None
def set_secretbytes(self, secret):
priv_key = ssl.BN_bin2bn(secret, 32, ssl.BN_new())
group = ssl.EC_KEY_get0_group(self.k)
pub_key = ssl.EC_POINT_new(group)
ctx = ssl.BN_CTX_new()
if not ssl.EC_POINT_mul(group, pub_key, priv_key, None, None, ctx):
raise ValueError("Could not derive public key from the supplied secret.")
ssl.EC_POINT_mul(group, pub_key, priv_key, None, None, ctx)
ssl.EC_KEY_set_private_key(self.k, priv_key)
ssl.EC_KEY_set_public_key(self.k, pub_key)
ssl.EC_POINT_free(pub_key)
ssl.BN_CTX_free(ctx)
return self.k
def set_privkey(self, key):
self.mb = ctypes.create_string_buffer(key)
return ssl.d2i_ECPrivateKey(ctypes.byref(self.k), ctypes.byref(ctypes.pointer(self.mb)), len(key))
def set_pubkey(self, key):
self.mb = ctypes.create_string_buffer(key)
return ssl.o2i_ECPublicKey(ctypes.byref(self.k), ctypes.byref(ctypes.pointer(self.mb)), len(key))
def get_privkey(self):
size = ssl.i2d_ECPrivateKey(self.k, 0)
mb_pri = ctypes.create_string_buffer(size)
ssl.i2d_ECPrivateKey(self.k, ctypes.byref(ctypes.pointer(mb_pri)))
return mb_pri.raw
def get_pubkey(self):
size = ssl.i2o_ECPublicKey(self.k, 0)
mb = ctypes.create_string_buffer(size)
ssl.i2o_ECPublicKey(self.k, ctypes.byref(ctypes.pointer(mb)))
return mb.raw
def get_raw_ecdh_key(self, other_pubkey):
ecdh_keybuffer = ctypes.create_string_buffer(32)
r = ssl.ECDH_compute_key(ctypes.pointer(ecdh_keybuffer), 32,
ssl.EC_KEY_get0_public_key(other_pubkey.k),
self.k, 0)
if r != 32:
raise Exception('CKey.get_ecdh_key(): ECDH_compute_key() failed')
return ecdh_keybuffer.raw
def get_ecdh_key(self, other_pubkey, kdf=lambda k: hashlib.sha256(k).digest()):
# FIXME: be warned it's not clear what the kdf should be as a default
r = self.get_raw_ecdh_key(other_pubkey)
return kdf(r)
def sign(self, hash, low_s = True):
# FIXME: need unit tests for below cases
if not isinstance(hash, bytes):
raise TypeError('Hash must be bytes instance; got %r' % hash.__class__)
if len(hash) != 32:
raise ValueError('Hash must be exactly 32 bytes long')
sig_size0 = ctypes.c_uint32()
sig_size0.value = ssl.ECDSA_size(self.k)
mb_sig = ctypes.create_string_buffer(sig_size0.value)
result = ssl.ECDSA_sign(0, hash, len(hash), mb_sig, ctypes.byref(sig_size0), self.k)
assert 1 == result
assert mb_sig.raw[0] == 0x30
assert mb_sig.raw[1] == sig_size0.value - 2
total_size = mb_sig.raw[1]
assert mb_sig.raw[2] == 2
r_size = mb_sig.raw[3]
assert mb_sig.raw[4 + r_size] == 2
s_size = mb_sig.raw[5 + r_size]
s_value = int.from_bytes(mb_sig.raw[6+r_size:6+r_size+s_size], byteorder='big')
if (not low_s) or s_value <= SECP256K1_ORDER_HALF:
return mb_sig.raw[:sig_size0.value]
else:
low_s_value = SECP256K1_ORDER - s_value
low_s_bytes = (low_s_value).to_bytes(33, byteorder='big')
while len(low_s_bytes) > 1 and low_s_bytes[0] == 0 and low_s_bytes[1] < 0x80:
low_s_bytes = low_s_bytes[1:]
new_s_size = len(low_s_bytes)
new_total_size_byte = (total_size + new_s_size - s_size).to_bytes(1,byteorder='big')
new_s_size_byte = (new_s_size).to_bytes(1,byteorder='big')
return b'\x30' + new_total_size_byte + mb_sig.raw[2:5+r_size] + new_s_size_byte + low_s_bytes
def verify(self, hash, sig):
"""Verify a DER signature"""
return ssl.ECDSA_verify(0, hash, len(hash), sig, len(sig), self.k) == 1
def set_compressed(self, compressed):
if compressed:
form = self.POINT_CONVERSION_COMPRESSED
else:
form = self.POINT_CONVERSION_UNCOMPRESSED
ssl.EC_KEY_set_conv_form(self.k, form)
class CPubKey(bytes):
"""An encapsulated public key
Attributes:
is_valid - Corresponds to CPubKey.IsValid()
is_fullyvalid - Corresponds to CPubKey.IsFullyValid()
is_compressed - Corresponds to CPubKey.IsCompressed()
"""
def __new__(cls, buf, _cec_key=None):
self = super(CPubKey, cls).__new__(cls, buf)
if _cec_key is None:
_cec_key = CECKey()
self._cec_key = _cec_key
self.is_fullyvalid = _cec_key.set_pubkey(self) != 0
return self
@property
def is_valid(self):
return len(self) > 0
@property
def is_compressed(self):
return len(self) == 33
def verify(self, hash, sig):
return self._cec_key.verify(hash, sig)
def __str__(self):
return repr(self)
def __repr__(self):
# Always have represent as b'<secret>' so test cases don't have to
# change for py2/3
if sys.version > '3':
return '%s(%s)' % (self.__class__.__name__, super(CPubKey, self).__repr__())
else:
return '%s(b%s)' % (self.__class__.__name__, super(CPubKey, self).__repr__())
| mit |
wjo1212/aliyun-log-python-sdk | aliyun/log/logger_hanlder.py | 1 | 17793 | import logging
from .logclient import LogClient
from .logitem import LogItem
from .putlogsrequest import PutLogsRequest
from threading import Thread
import atexit
from time import time
from enum import Enum
from .version import LOGGING_HANDLER_USER_AGENT
import six
if six.PY2:
from Queue import Empty, Full, Queue
else:
from queue import Empty, Full, Queue
import json
import re
class LogFields(Enum):
"""fields used to upload automatically
Possible fields:
record_name, level, func_name, module,
file_path, line_no, process_id,
process_name, thread_id, thread_name
"""
record_name = 'name'
level = 'levelname'
func_name = 'funcName'
module = 'module'
file_path = 'pathname'
line_no = 'lineno'
process_id = 'process'
process_name = 'processName'
thread_id = 'thread'
thread_name = 'threadName'
class SimpleLogHandler(logging.Handler, object):
"""
SimpleLogHandler, blocked sending any logs, just for simple test purpose
:param end_point: log service endpoint
:param access_key_id: access key id
:param access_key: access key
:param project: project name
:param log_store: logstore name
:param topic: topic, by default is empty
:param fields: list of LogFields or list of names of LogFields, default is LogFields.record_name, LogFields.level, LogFields.func_name, LogFields.module, LogFields.file_path, LogFields.line_no, LogFields.process_id, LogFields.process_name, LogFields.thread_id, LogFields.thread_name
:param buildin_fields_prefix: prefix of builtin fields, default is empty. suggest using "__" when extract json is True to prevent conflict.
:param buildin_fields_suffix: suffix of builtin fields, default is empty. suggest using "__" when extract json is True to prevent conflict.
:param extract_json: if extract json automatically, default is False
:param extract_json_drop_message: if drop message fields if it's JSON and extract_json is True, default is False
:param extract_json_prefix: prefix of fields extracted from json when extract_json is True. default is ""
:param extract_json_suffix: suffix of fields extracted from json when extract_json is True. default is empty
:param extract_kv: if extract kv like k1=v1 k2="v 2" automatically, default is False
:param extract_kv_drop_message: if drop message fields if it's kv and extract_kv is True, default is False
:param extract_kv_prefix: prefix of fields extracted from KV when extract_json is True. default is ""
:param extract_kv_suffix: suffix of fields extracted from KV when extract_json is True. default is ""
:param extract_kv_sep: separator for KV case, defualt is '=', e.g. k1=v1
:param kwargs: other parameters passed to logging.Handler
"""
def __init__(self, end_point, access_key_id, access_key, project, log_store, topic=None, fields=None,
buildin_fields_prefix=None, buildin_fields_suffix=None,
extract_json=None, extract_json_drop_message=None,
extract_json_prefix=None, extract_json_suffix=None,
extract_kv=None, extract_kv_drop_message=None,
extract_kv_prefix=None, extract_kv_suffix=None,
extract_kv_sep=None,
**kwargs):
logging.Handler.__init__(self, **kwargs)
self.end_point = end_point
self.access_key_id = access_key_id
self.access_key = access_key
self.project = project
self.log_store = log_store
self.client = None
self.topic = topic
self.fields = (LogFields.record_name, LogFields.level,
LogFields.func_name, LogFields.module,
LogFields.file_path, LogFields.line_no,
LogFields.process_id, LogFields.process_name,
LogFields.thread_id, LogFields.thread_name) if fields is None else fields
self.extract_json = False if extract_json is None else extract_json
self.extract_json_prefix = "" if extract_json_prefix is None else extract_json_prefix
self.extract_json_suffix = "" if extract_json_suffix is None else extract_json_suffix
self.extract_json_drop_message = False if extract_json_drop_message is None else extract_json_drop_message
self.buildin_fields_prefix = "" if buildin_fields_prefix is None else buildin_fields_prefix
self.buildin_fields_suffix = "" if buildin_fields_suffix is None else buildin_fields_suffix
self.extract_kv = False if extract_kv is None else extract_kv
self.extract_kv_prefix = "" if extract_kv_prefix is None else extract_kv_prefix
self.extract_kv_suffix = "" if extract_kv_suffix is None else extract_kv_suffix
self.extract_kv_drop_message = False if extract_kv_drop_message is None else extract_kv_drop_message
self.extract_kv_sep = "=" if extract_kv_sep is None else extract_kv_sep
self.extract_kv_ptn = self._get_extract_kv_ptn()
def set_topic(self, topic):
self.topic = topic
def create_client(self):
self.client = LogClient(self.end_point, self.access_key_id, self.access_key)
self.client.set_user_agent(LOGGING_HANDLER_USER_AGENT)
def send(self, req):
if self.client is None:
self.create_client()
return self.client.put_logs(req)
def set_fields(self, fields):
self.fields = fields
@staticmethod
def _n(v):
if v is None:
return ""
if isinstance(v, (dict, list)):
try:
v = json.dumps(v)
except Exception:
pass
elif six.PY2 and isinstance(v, six.text_type):
v = v.encode('utf8', "ignore")
elif six.PY3 and isinstance(v, six.binary_type):
v = v.decode('utf8', "ignore")
return str(v)
def extract_dict(self, message):
data = []
if isinstance(message, dict):
for k, v in six.iteritems(message):
data.append(("{0}{1}{2}".format(self.extract_json_prefix, self._n(k),
self.extract_json_suffix), self._n(v)))
return data
def _get_extract_kv_ptn(self):
sep = self.extract_kv_sep
p1 = u'(?!{0})([\u4e00-\u9fa5\u0800-\u4e00\\w\\.\\-]+)\\s*{0}\\s*([\u4e00-\u9fa5\u0800-\u4e00\\w\\.\\-]+)'
p2 = u'(?!{0})([\u4e00-\u9fa5\u0800-\u4e00\\w\\.\\-]+)\\s*{0}\\s*"\s*([^"]+?)\s*"'
ps = '|'.join([p1, p2]).format(sep)
return re.compile(ps)
def extract_kv_str(self, message):
if isinstance(message, six.binary_type):
message = message.decode('utf8', 'ignore')
r = self.extract_kv_ptn.findall(message)
data = []
for k1, v1, k2, v2 in r:
if k1:
data.append(("{0}{1}{2}".format(self.extract_kv_prefix, self._n(k1),
self.extract_kv_suffix), self._n(v1)))
elif k2:
data.append(("{0}{1}{2}".format(self.extract_kv_prefix, self._n(k2),
self.extract_kv_suffix), self._n(v2)))
return data
def make_request(self, record):
contents = []
message_field_name = "{0}message{1}".format(self.buildin_fields_prefix, self.buildin_fields_suffix)
if isinstance(record.msg, dict) and self.extract_json:
data = self.extract_dict(record.msg)
contents.extend(data)
if not self.extract_json_drop_message or not data:
contents.append((message_field_name, self.format(record)))
elif isinstance(record.msg, (six.text_type, six.binary_type)) and self.extract_kv:
data = self.extract_kv_str(record.msg)
contents.extend(data)
if not self.extract_kv_drop_message or not data: # if it's not KV
contents.append((message_field_name, self.format(record)))
else:
contents = [(message_field_name, self.format(record))]
# add builtin fields
for x in self.fields:
if isinstance(x, (six.binary_type, six.text_type)):
x = LogFields[x]
v = getattr(record, x.value)
if not isinstance(v, (six.binary_type, six.text_type)):
v = str(v)
contents.append(("{0}{1}{2}".format(self.buildin_fields_prefix, x.name, self.buildin_fields_suffix), v))
item = LogItem(contents=contents, timestamp=record.created)
return PutLogsRequest(self.project, self.log_store, self.topic, logitems=[item, ])
def emit(self, record):
try:
req = self.make_request(record)
self.send(req)
except Exception as e:
self.handleError(record)
class QueuedLogHandler(SimpleLogHandler):
"""
Queued Log Handler, tuned async log handler.
:param end_point: log service endpoint
:param access_key_id: access key id
:param access_key: access key
:param project: project name
:param log_store: logstore name
:param topic: topic, default is empty
:param fields: list of LogFields, default is LogFields.record_name, LogFields.level, LogFields.func_name, LogFields.module, LogFields.file_path, LogFields.line_no, LogFields.process_id, LogFields.process_name, LogFields.thread_id, LogFields.thread_name
:param queue_size: queue size, default is 4096 logs
:param put_wait: maximum delay to send the logs, by default 2 seconds
:param close_wait: when program exit, it will try to send all logs in queue in this timeperiod, by default 5 seconds
:param batch_size: merge this cound of logs and send them batch, by default min(1024, queue_size)
:param buildin_fields_prefix: prefix of builtin fields, default is empty. suggest using "__" when extract json is True to prevent conflict.
:param buildin_fields_suffix: suffix of builtin fields, default is empty. suggest using "__" when extract json is True to prevent conflict.
:param extract_json: if extract json automatically, default is False
:param extract_json_drop_message: if drop message fields if it's JSON and extract_json is True, default is False
:param extract_json_prefix: prefix of fields extracted from json when extract_json is True. default is ""
:param extract_json_suffix: suffix of fields extracted from json when extract_json is True. default is empty
:param extract_kv: if extract kv like k1=v1 k2="v 2" automatically, default is False
:param extract_kv_drop_message: if drop message fields if it's kv and extract_kv is True, default is False
:param extract_kv_prefix: prefix of fields extracted from KV when extract_json is True. default is ""
:param extract_kv_suffix: suffix of fields extracted from KV when extract_json is True. default is ""
:param extract_kv_sep: separator for KV case, defualt is '=', e.g. k1=v1
:param kwargs: other parameters passed to logging.Handler
"""
def __init__(self, end_point, access_key_id, access_key, project, log_store, topic=None, fields=None,
queue_size=None, put_wait=None, close_wait=None, batch_size=None,
buildin_fields_prefix=None, buildin_fields_suffix=None,
extract_json=None, extract_json_drop_message=None,
extract_json_prefix=None, extract_json_suffix=None,
extract_kv=None, extract_kv_drop_message=None,
extract_kv_prefix=None, extract_kv_suffix=None,
extract_kv_sep=None,
**kwargs):
super(QueuedLogHandler, self).__init__(end_point, access_key_id, access_key, project, log_store,
topic=topic, fields=fields,
extract_json=extract_json,
extract_json_drop_message=extract_json_drop_message,
extract_json_prefix=extract_json_prefix,
extract_json_suffix=extract_json_suffix,
buildin_fields_prefix=buildin_fields_prefix,
buildin_fields_suffix=buildin_fields_suffix,
extract_kv=extract_kv,
extract_kv_drop_message=extract_kv_drop_message,
extract_kv_prefix=extract_kv_prefix,
extract_kv_suffix=extract_kv_suffix,
extract_kv_sep=extract_kv_sep,
**kwargs)
self.stop_flag = False
self.stop_time = None
self.put_wait = put_wait or 2 # default is 2 seconds
self.close_wait = close_wait or 5 # default is 5 seconds
self.queue_size = queue_size or 4096 # default is 4096 items
self.batch_size = min(batch_size or 1024, self.queue_size) # default is 1024 items
self.init_worker()
def init_worker(self):
self.worker = Thread(target=self._post)
self.queue = Queue(self.queue_size)
self.worker.setDaemon(True)
self.worker.start()
atexit.register(self.stop)
def flush(self):
self.stop()
def stop(self):
self.stop_time = time()
self.stop_flag = True
self.worker.join(timeout=self.close_wait + 1)
def emit(self, record):
req = self.make_request(record)
req.__record__ = record
try:
self.queue.put(req, timeout=self.put_wait)
except Full as ex:
self.handleError(record)
def _get_batch_requests(self, timeout=None):
reqs = []
s = time()
while len(reqs) < self.batch_size:
try:
req = self.queue.get(timeout=timeout)
self.queue.task_done()
reqs.append(req)
if (time() - s) >= timeout:
break
except Empty as ex:
break
if not reqs:
raise Empty
elif len(reqs) <= 1:
return reqs[0]
else:
logitems = []
req = reqs[0]
for req in reqs:
logitems.extend(req.get_log_items())
ret = PutLogsRequest(self.project, self.log_store, req.topic, logitems=logitems)
ret.__record__ = req.__record__
return ret
def _post(self):
while not self.stop_flag or (time() - self.stop_time) <= self.close_wait:
try:
req = self._get_batch_requests(timeout=2)
except Empty as ex:
if self.stop_flag:
break
else:
continue
try:
self.send(req)
except Exception as ex:
self.handleError(req.__record__)
class UwsgiQueuedLogHandler(QueuedLogHandler):
"""
Queued Log Handler for Uwsgi, depends on library `uwsgidecorators`, need to deploy it separatedly.
:param end_point: log service endpoint
:param access_key_id: access key id
:param access_key: access key
:param project: project name
:param log_store: logstore name
:param topic: topic, default is empty
:param fields: list of LogFields, default is LogFields.record_name, LogFields.level, LogFields.func_name, LogFields.module, LogFields.file_path, LogFields.line_no, LogFields.process_id, LogFields.process_name, LogFields.thread_id, LogFields.thread_name
:param queue_size: queue size, default is 4096 logs
:param put_wait: maximum delay to send the logs, by default 2 seconds
:param close_wait: when program exit, it will try to send all logs in queue in this timeperiod, by default 5 seconds
:param batch_size: merge this cound of logs and send them batch, by default min(1024, queue_size)
:param buildin_fields_prefix: prefix of builtin fields, default is empty. suggest using "__" when extract json is True to prevent conflict.
:param buildin_fields_suffix: suffix of builtin fields, default is empty. suggest using "__" when extract json is True to prevent conflict.
:param extract_json: if extract json automatically, default is False
:param extract_json_drop_message: if drop message fields if it's JSON and extract_json is True, default is False
:param extract_json_prefix: prefix of fields extracted from json when extract_json is True. default is ""
:param extract_json_suffix: suffix of fields extracted from json when extract_json is True. default is empty
:param extract_kv: if extract kv like k1=v1 k2="v 2" automatically, default is False
:param extract_kv_drop_message: if drop message fields if it's kv and extract_kv is True, default is False
:param extract_kv_prefix: prefix of fields extracted from KV when extract_json is True. default is ""
:param extract_kv_suffix: suffix of fields extracted from KV when extract_json is True. default is ""
:param extract_kv_sep: separator for KV case, defualt is '=', e.g. k1=v1
:param kwargs: other parameters passed to logging.Handler
"""
def __init__(self, *args, **kwargs):
super(UwsgiQueuedLogHandler, self).__init__(*args, **kwargs)
def init_worker(self):
self.queue = Queue(self.queue_size)
from uwsgidecorators import postfork, thread
self._post = postfork(thread(self._post))
def stop(self):
self.stop_time = time()
self.stop_flag = True
| mit |
leorochael/odoo | addons/l10n_ro/__openerp__.py | 186 | 2241 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Author: Fekete Mihai <feketemihai@gmail.com>, Tatár Attila <atta@nvm.ro>
# Copyright (C) 2011-2014 TOTAL PC SYSTEMS (http://www.erpsystems.ro).
# Copyright (C) 2014 Fekete Mihai
# Copyright (C) 2014 Tatár Attila
# Based on precedent versions developed by Fil System, Fekete Mihai
#
# 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/>.
#
##############################################################################
{
"name" : "Romania - Accounting",
"version" : "1.0",
"author" : "ERPsystems Solutions",
"website": "http://www.erpsystems.ro",
"category" : "Localization/Account Charts",
"depends" : ['account','account_chart','base_vat'],
"description": """
This is the module to manage the Accounting Chart, VAT structure, Fiscal Position and Tax Mapping.
It also adds the Registration Number for Romania in OpenERP.
================================================================================================================
Romanian accounting chart and localization.
""",
"demo" : [],
"data" : ['partner_view.xml',
'account_chart.xml',
'account_tax_code_template.xml',
'account_chart_template.xml',
'account_tax_template.xml',
'fiscal_position_template.xml',
'l10n_chart_ro_wizard.xml',
'res.country.state.csv',
'res.bank.csv',
],
"installable": True,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
Emergya/icm-openedx-educamadrid-platform-basic | openedx/tests/xblock_integration/test_recommender.py | 51 | 30569 | """
This test file will run through some XBlock test scenarios regarding the
recommender system
"""
from copy import deepcopy
import json
import itertools
import StringIO
import unittest
from ddt import ddt, data
from nose.plugins.attrib import attr
from django.conf import settings
from django.core.urlresolvers import reverse
from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory
from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase
from lms.djangoapps.courseware.tests.helpers import LoginEnrollmentTestCase
from lms.djangoapps.courseware.tests.factories import GlobalStaffFactory
from lms.djangoapps.lms_xblock.runtime import quote_slashes
class TestRecommender(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
"""
Check that Recommender state is saved properly
"""
STUDENTS = [
{'email': 'view@test.com', 'password': 'foo'},
{'email': 'view2@test.com', 'password': 'foo'}
]
XBLOCK_NAMES = ['recommender', 'recommender_second']
@classmethod
def setUpClass(cls):
# Nose runs setUpClass methods even if a class decorator says to skip
# the class: https://github.com/nose-devs/nose/issues/946
# So, skip the test class here if we are not in the LMS.
if settings.ROOT_URLCONF != 'lms.urls':
raise unittest.SkipTest('Test only valid in lms')
super(TestRecommender, cls).setUpClass()
cls.course = CourseFactory.create(
display_name='Recommender_Test_Course'
)
with cls.store.bulk_operations(cls.course.id, emit_signals=False):
cls.chapter = ItemFactory.create(
parent=cls.course, display_name='Overview'
)
cls.section = ItemFactory.create(
parent=cls.chapter, display_name='Welcome'
)
cls.unit = ItemFactory.create(
parent=cls.section, display_name='New Unit'
)
cls.xblock = ItemFactory.create(
parent=cls.unit,
category='recommender',
display_name='recommender'
)
cls.xblock2 = ItemFactory.create(
parent=cls.unit,
category='recommender',
display_name='recommender_second'
)
cls.course_url = reverse(
'courseware_section',
kwargs={
'course_id': cls.course.id.to_deprecated_string(),
'chapter': 'Overview',
'section': 'Welcome',
}
)
cls.resource_urls = [
(
"https://courses.edx.org/courses/MITx/3.091X/"
"2013_Fall/courseware/SP13_Week_4/"
"SP13_Periodic_Trends_and_Bonding/"
),
(
"https://courses.edx.org/courses/MITx/3.091X/"
"2013_Fall/courseware/SP13_Week_4/SP13_Covalent_Bonding/"
)
]
cls.test_recommendations = {
cls.resource_urls[0]: {
"title": "Covalent bonding and periodic trends",
"url": cls.resource_urls[0],
"description": (
"http://people.csail.mit.edu/swli/edx/"
"recommendation/img/videopage1.png"
),
"descriptionText": (
"short description for Covalent bonding "
"and periodic trends"
)
},
cls.resource_urls[1]: {
"title": "Polar covalent bonds and electronegativity",
"url": cls.resource_urls[1],
"description": (
"http://people.csail.mit.edu/swli/edx/"
"recommendation/img/videopage2.png"
),
"descriptionText": (
"short description for Polar covalent "
"bonds and electronegativity"
)
}
}
def setUp(self):
super(TestRecommender, self).setUp()
for idx, student in enumerate(self.STUDENTS):
username = "u{}".format(idx)
self.create_account(username, student['email'], student['password'])
self.activate_user(student['email'])
self.staff_user = GlobalStaffFactory()
def get_handler_url(self, handler, xblock_name=None):
"""
Get url for the specified xblock handler
"""
if xblock_name is None:
xblock_name = TestRecommender.XBLOCK_NAMES[0]
return reverse('xblock_handler', kwargs={
'course_id': self.course.id.to_deprecated_string(),
'usage_id': quote_slashes(self.course.id.make_usage_key('recommender', xblock_name).to_deprecated_string()),
'handler': handler,
'suffix': ''
})
def enroll_student(self, email, password):
"""
Student login and enroll for the course
"""
self.login(email, password)
self.enroll(self.course, verify=True)
def enroll_staff(self, staff):
"""
Staff login and enroll for the course
"""
email = staff.email
password = 'test'
self.login(email, password)
self.enroll(self.course, verify=True)
def initialize_database_by_id(self, handler, resource_id, times, xblock_name=None):
"""
Call a ajax event (vote, delete, endorse) on a resource by its id
several times
"""
if xblock_name is None:
xblock_name = TestRecommender.XBLOCK_NAMES[0]
url = self.get_handler_url(handler, xblock_name)
for _ in range(times):
self.client.post(url, json.dumps({'id': resource_id}), '')
def call_event(self, handler, resource, xblock_name=None):
"""
Call a ajax event (add, edit, flag, etc.) by specifying the resource
it takes
"""
if xblock_name is None:
xblock_name = TestRecommender.XBLOCK_NAMES[0]
url = self.get_handler_url(handler, xblock_name)
return self.client.post(url, json.dumps(resource), '')
def check_event_response_by_key(self, handler, resource, resp_key, resp_val, xblock_name=None):
"""
Call the event specified by the handler with the resource, and check
whether the key (resp_key) in response is as expected (resp_val)
"""
if xblock_name is None:
xblock_name = TestRecommender.XBLOCK_NAMES[0]
resp = json.loads(self.call_event(handler, resource, xblock_name).content)
self.assertEqual(resp[resp_key], resp_val)
self.assert_request_status_code(200, self.course_url)
def check_event_response_by_http_status(self, handler, resource, http_status_code, xblock_name=None):
"""
Call the event specified by the handler with the resource, and check
whether the http_status in response is as expected
"""
if xblock_name is None:
xblock_name = TestRecommender.XBLOCK_NAMES[0]
resp = self.call_event(handler, resource, xblock_name)
self.assertEqual(resp.status_code, http_status_code)
self.assert_request_status_code(200, self.course_url)
@attr('shard_1')
class TestRecommenderCreateFromEmpty(TestRecommender):
"""
Check whether we can add resources to an empty database correctly
"""
def test_add_resource(self):
"""
Verify the addition of new resource is handled correctly
"""
self.enroll_student(self.STUDENTS[0]['email'], self.STUDENTS[0]['password'])
# Check whether adding new resource is successful
for resource_id, resource in self.test_recommendations.iteritems():
for xblock_name in self.XBLOCK_NAMES:
result = self.call_event('add_resource', resource, xblock_name)
expected_result = {
'upvotes': 0,
'downvotes': 0,
'id': resource_id
}
for field in resource:
expected_result[field] = resource[field]
self.assertDictEqual(json.loads(result.content), expected_result)
self.assert_request_status_code(200, self.course_url)
@attr('shard_1')
class TestRecommenderResourceBase(TestRecommender):
"""Base helper class for tests with resources."""
def setUp(self):
super(TestRecommenderResourceBase, self).setUp()
self.resource_id = self.resource_urls[0]
self.resource_id_second = self.resource_urls[1]
self.non_existing_resource_id = 'An non-existing id'
self.set_up_resources()
def set_up_resources(self):
"""
Set up resources and enroll staff
"""
self.logout()
self.enroll_staff(self.staff_user)
# Add resources, assume correct here, tested in test_add_resource
for resource, xblock_name in itertools.product(self.test_recommendations.values(), self.XBLOCK_NAMES):
self.call_event('add_resource', resource, xblock_name)
def generate_edit_resource(self, resource_id):
"""
Based on the given resource (specified by resource_id), this function
generate a new one for testing 'edit_resource' event
"""
resource = {"id": resource_id}
edited_recommendations = {
key: value + " edited" for key, value in self.test_recommendations[self.resource_id].iteritems()
}
resource.update(edited_recommendations)
return resource
@attr('shard_1')
class TestRecommenderWithResources(TestRecommenderResourceBase):
"""
Check whether we can add/edit/flag/export resources correctly
"""
def test_add_redundant_resource(self):
"""
Verify the addition of a redundant resource (url) is rejected
"""
for suffix in ['', '#IAmSuffix', '%23IAmSuffix']:
resource = deepcopy(self.test_recommendations[self.resource_id])
resource['url'] += suffix
self.check_event_response_by_http_status('add_resource', resource, 409)
def test_add_removed_resource(self):
"""
Verify the addition of a removed resource (url) is rejected
"""
self.call_event('remove_resource', {"id": self.resource_id, 'reason': ''})
for suffix in ['', '#IAmSuffix', '%23IAmSuffix']:
resource = deepcopy(self.test_recommendations[self.resource_id])
resource['url'] += suffix
self.check_event_response_by_http_status('add_resource', resource, 405)
def test_edit_resource_non_existing(self):
"""
Edit a non-existing resource
"""
self.check_event_response_by_http_status(
'edit_resource',
self.generate_edit_resource(self.non_existing_resource_id),
400
)
def test_edit_redundant_resource(self):
"""
Check whether changing the url to the one of 'another' resource is
rejected
"""
for suffix in ['', '#IAmSuffix', '%23IAmSuffix']:
resource = self.generate_edit_resource(self.resource_id)
resource['url'] = self.resource_id_second + suffix
self.check_event_response_by_http_status('edit_resource', resource, 409)
def test_edit_removed_resource(self):
"""
Check whether changing the url to the one of a removed resource is
rejected
"""
self.call_event('remove_resource', {"id": self.resource_id_second, 'reason': ''})
for suffix in ['', '#IAmSuffix', '%23IAmSuffix']:
resource = self.generate_edit_resource(self.resource_id)
resource['url'] = self.resource_id_second + suffix
self.check_event_response_by_http_status('edit_resource', resource, 405)
def test_edit_resource(self):
"""
Check whether changing the content of resource is successful
"""
self.check_event_response_by_http_status(
'edit_resource',
self.generate_edit_resource(self.resource_id),
200
)
def test_edit_resource_same_url(self):
"""
Check whether changing the content (except for url) of resource is successful
"""
resource = self.generate_edit_resource(self.resource_id)
for suffix in ['', '#IAmSuffix', '%23IAmSuffix']:
resource['url'] = self.resource_id + suffix
self.check_event_response_by_http_status('edit_resource', resource, 200)
def test_edit_then_add_resource(self):
"""
Check whether we can add back an edited resource
"""
self.call_event('edit_resource', self.generate_edit_resource(self.resource_id))
# Test
self.check_event_response_by_key(
'add_resource',
self.test_recommendations[self.resource_id],
'id',
self.resource_id
)
def test_edit_resources_in_different_xblocks(self):
"""
Check whether changing the content of resource is successful in two
different xblocks
"""
resource = self.generate_edit_resource(self.resource_id)
for xblock_name in self.XBLOCK_NAMES:
self.check_event_response_by_http_status('edit_resource', resource, 200, xblock_name)
def test_flag_resource_wo_reason(self):
"""
Flag a resource as problematic, without providing the reason
"""
resource = {'id': self.resource_id, 'isProblematic': True, 'reason': ''}
# Test
self.check_event_response_by_key('flag_resource', resource, 'reason', '')
def test_flag_resource_w_reason(self):
"""
Flag a resource as problematic, with providing the reason
"""
resource = {'id': self.resource_id, 'isProblematic': True, 'reason': 'reason 0'}
# Test
self.check_event_response_by_key('flag_resource', resource, 'reason', 'reason 0')
def test_flag_resource_change_reason(self):
"""
Flag a resource as problematic twice, with different reasons
"""
resource = {'id': self.resource_id, 'isProblematic': True, 'reason': 'reason 0'}
self.call_event('flag_resource', resource)
# Test
resource['reason'] = 'reason 1'
resp = json.loads(self.call_event('flag_resource', resource).content)
self.assertEqual(resp['oldReason'], 'reason 0')
self.assertEqual(resp['reason'], 'reason 1')
self.assert_request_status_code(200, self.course_url)
def test_flag_resources_in_different_xblocks(self):
"""
Flag resources as problematic in two different xblocks
"""
resource = {'id': self.resource_id, 'isProblematic': True, 'reason': 'reason 0'}
# Test
for xblock_name in self.XBLOCK_NAMES:
self.check_event_response_by_key('flag_resource', resource, 'reason', 'reason 0', xblock_name)
def test_flag_resources_by_different_users(self):
"""
Different users can't see the flag result of each other
"""
resource = {'id': self.resource_id, 'isProblematic': True, 'reason': 'reason 0'}
self.call_event('flag_resource', resource)
self.logout()
self.enroll_student(self.STUDENTS[0]['email'], self.STUDENTS[0]['password'])
# Test
resp = json.loads(self.call_event('flag_resource', resource).content)
# The second user won't see the reason provided by the first user
self.assertNotIn('oldReason', resp)
self.assertEqual(resp['reason'], 'reason 0')
self.assert_request_status_code(200, self.course_url)
def test_export_resources(self):
"""
Test the function for exporting all resources from the Recommender.
"""
self.call_event('remove_resource', {"id": self.resource_id, 'reason': ''})
self.call_event('endorse_resource', {"id": self.resource_id_second, 'reason': ''})
# Test
resp = json.loads(self.call_event('export_resources', {}).content)
self.assertIn(self.resource_id_second, resp['export']['recommendations'])
self.assertNotIn(self.resource_id, resp['export']['recommendations'])
self.assertIn(self.resource_id_second, resp['export']['endorsed_recommendation_ids'])
self.assertIn(self.resource_id, resp['export']['removed_recommendations'])
self.assert_request_status_code(200, self.course_url)
@attr('shard_1')
@ddt
class TestRecommenderVoteWithResources(TestRecommenderResourceBase):
"""
Check whether we can vote resources correctly
"""
@data(
{'event': 'recommender_upvote'},
{'event': 'recommender_downvote'}
)
def test_vote_resource_non_existing(self, test_case):
"""
Vote a non-existing resource
"""
resource = {"id": self.non_existing_resource_id, 'event': test_case['event']}
self.check_event_response_by_http_status('handle_vote', resource, 400)
@data(
{'event': 'recommender_upvote', 'new_votes': 1},
{'event': 'recommender_downvote', 'new_votes': -1}
)
def test_vote_resource_once(self, test_case):
"""
Vote a resource
"""
resource = {"id": self.resource_id, 'event': test_case['event']}
self.check_event_response_by_key('handle_vote', resource, 'newVotes', test_case['new_votes'])
@data(
{'event': 'recommender_upvote', 'new_votes': 0},
{'event': 'recommender_downvote', 'new_votes': 0}
)
def test_vote_resource_twice(self, test_case):
"""
Vote a resource twice
"""
resource = {"id": self.resource_id, 'event': test_case['event']}
self.call_event('handle_vote', resource)
# Test
self.check_event_response_by_key('handle_vote', resource, 'newVotes', test_case['new_votes'])
@data(
{'event': 'recommender_upvote', 'new_votes': 1},
{'event': 'recommender_downvote', 'new_votes': -1}
)
def test_vote_resource_thrice(self, test_case):
"""
Vote a resource thrice
"""
resource = {"id": self.resource_id, 'event': test_case['event']}
for _ in range(2):
self.call_event('handle_vote', resource)
# Test
self.check_event_response_by_key('handle_vote', resource, 'newVotes', test_case['new_votes'])
@data(
{'event': 'recommender_upvote', 'event_second': 'recommender_downvote', 'new_votes': -1},
{'event': 'recommender_downvote', 'event_second': 'recommender_upvote', 'new_votes': 1}
)
def test_switch_vote_resource(self, test_case):
"""
Switch the vote of a resource
"""
resource = {"id": self.resource_id, 'event': test_case['event']}
self.call_event('handle_vote', resource)
# Test
resource['event'] = test_case['event_second']
self.check_event_response_by_key('handle_vote', resource, 'newVotes', test_case['new_votes'])
@data(
{'event': 'recommender_upvote', 'new_votes': 1},
{'event': 'recommender_downvote', 'new_votes': -1}
)
def test_vote_different_resources(self, test_case):
"""
Vote two different resources
"""
resource = {"id": self.resource_id, 'event': test_case['event']}
self.call_event('handle_vote', resource)
# Test
resource['id'] = self.resource_id_second
self.check_event_response_by_key('handle_vote', resource, 'newVotes', test_case['new_votes'])
@data(
{'event': 'recommender_upvote', 'new_votes': 1},
{'event': 'recommender_downvote', 'new_votes': -1}
)
def test_vote_resources_in_different_xblocks(self, test_case):
"""
Vote two resources in two different xblocks
"""
resource = {"id": self.resource_id, 'event': test_case['event']}
self.call_event('handle_vote', resource)
# Test
self.check_event_response_by_key(
'handle_vote', resource, 'newVotes', test_case['new_votes'], self.XBLOCK_NAMES[1]
)
@data(
{'event': 'recommender_upvote', 'new_votes': 2},
{'event': 'recommender_downvote', 'new_votes': -2}
)
def test_vote_resource_by_different_users(self, test_case):
"""
Vote resource by two different users
"""
resource = {"id": self.resource_id, 'event': test_case['event']}
self.call_event('handle_vote', resource)
self.logout()
self.enroll_student(self.STUDENTS[0]['email'], self.STUDENTS[0]['password'])
# Test
self.check_event_response_by_key('handle_vote', resource, 'newVotes', test_case['new_votes'])
@attr('shard_1')
@ddt
class TestRecommenderStaffFeedbackWithResources(TestRecommenderResourceBase):
"""
Check whether we can remove/endorse resources correctly
"""
@data('remove_resource', 'endorse_resource')
def test_remove_or_endorse_resource_non_existing(self, test_case):
"""
Remove/endorse a non-existing resource
"""
resource = {"id": self.non_existing_resource_id, 'reason': ''}
self.check_event_response_by_http_status(test_case, resource, 400)
@data(
{'times': 1, 'key': 'status', 'val': 'endorsement'},
{'times': 2, 'key': 'status', 'val': 'undo endorsement'},
{'times': 3, 'key': 'status', 'val': 'endorsement'}
)
def test_endorse_resource_multiple_times(self, test_case):
"""
Endorse a resource once/twice/thrice
"""
resource = {"id": self.resource_id, 'reason': ''}
for _ in range(test_case['times'] - 1):
self.call_event('endorse_resource', resource)
# Test
self.check_event_response_by_key('endorse_resource', resource, test_case['key'], test_case['val'])
@data(
{'times': 1, 'status': 200},
{'times': 2, 'status': 400},
{'times': 3, 'status': 400}
)
def test_remove_resource_multiple_times(self, test_case):
"""
Remove a resource once/twice/thrice
"""
resource = {"id": self.resource_id, 'reason': ''}
for _ in range(test_case['times'] - 1):
self.call_event('remove_resource', resource)
# Test
self.check_event_response_by_http_status('remove_resource', resource, test_case['status'])
@data(
{'handler': 'remove_resource', 'status': 200},
{'handler': 'endorse_resource', 'key': 'status', 'val': 'endorsement'}
)
def test_remove_or_endorse_different_resources(self, test_case):
"""
Remove/endorse two different resources
"""
self.call_event(test_case['handler'], {"id": self.resource_id, 'reason': ''})
# Test
resource = {"id": self.resource_id_second, 'reason': ''}
if test_case['handler'] == 'remove_resource':
self.check_event_response_by_http_status(test_case['handler'], resource, test_case['status'])
else:
self.check_event_response_by_key(test_case['handler'], resource, test_case['key'], test_case['val'])
@data(
{'handler': 'remove_resource', 'status': 200},
{'handler': 'endorse_resource', 'key': 'status', 'val': 'endorsement'}
)
def test_remove_or_endorse_resources_in_different_xblocks(self, test_case):
"""
Remove/endorse two resources in two different xblocks
"""
self.call_event(test_case['handler'], {"id": self.resource_id, 'reason': ''})
# Test
resource = {"id": self.resource_id, 'reason': ''}
if test_case['handler'] == 'remove_resource':
self.check_event_response_by_http_status(
test_case['handler'], resource, test_case['status'], self.XBLOCK_NAMES[1]
)
else:
self.check_event_response_by_key(
test_case['handler'], resource, test_case['key'], test_case['val'], self.XBLOCK_NAMES[1]
)
@data(
{'handler': 'remove_resource', 'status': 400},
{'handler': 'endorse_resource', 'status': 400}
)
def test_remove_or_endorse_resource_by_student(self, test_case):
"""
Remove/endorse resource by a student
"""
self.logout()
self.enroll_student(self.STUDENTS[0]['email'], self.STUDENTS[0]['password'])
# Test
resource = {"id": self.resource_id, 'reason': ''}
self.check_event_response_by_http_status(test_case['handler'], resource, test_case['status'])
@attr('shard_1')
@ddt
class TestRecommenderFileUploading(TestRecommender):
"""
Check whether we can handle file uploading correctly
"""
def setUp(self):
super(TestRecommenderFileUploading, self).setUp()
self.initial_configuration = {
'flagged_accum_resources': {},
'endorsed_recommendation_reasons': [],
'endorsed_recommendation_ids': [],
'removed_recommendations': {},
'recommendations': self.test_recommendations[self.resource_urls[0]]
}
def attempt_upload_file_and_verify_result(self, test_case, event_name, content=None):
"""
Running on a test case, creating a temp file, uploading it by
calling the corresponding ajax event, and verifying that upload
happens or is rejected as expected.
"""
if 'magic_number' in test_case:
f_handler = StringIO.StringIO(test_case['magic_number'].decode('hex'))
elif content is not None:
f_handler = StringIO.StringIO(json.dumps(content, sort_keys=True))
else:
f_handler = StringIO.StringIO('')
f_handler.content_type = test_case['mimetypes']
f_handler.name = 'file' + test_case['suffixes']
url = self.get_handler_url(event_name)
resp = self.client.post(url, {'file': f_handler})
self.assertEqual(resp.status_code, test_case['status'])
self.assert_request_status_code(200, self.course_url)
@data(
{
'suffixes': '.csv',
'magic_number': 'ffff',
'mimetypes': 'text/plain',
'status': 415
}, # Upload file with wrong extension name
{
'suffixes': '.gif',
'magic_number': '89504e470d0a1a0a',
'mimetypes': 'image/gif',
'status': 415
}, # Upload file with wrong magic number
{
'suffixes': '.jpg',
'magic_number': '89504e470d0a1a0a',
'mimetypes': 'image/jpeg',
'status': 415
}, # Upload file with wrong magic number
{
'suffixes': '.png',
'magic_number': '474946383761',
'mimetypes': 'image/png',
'status': 415
}, # Upload file with wrong magic number
{
'suffixes': '.jpg',
'magic_number': '474946383761',
'mimetypes': 'image/jpeg',
'status': 415
}, # Upload file with wrong magic number
{
'suffixes': '.png',
'magic_number': 'ffd8ffd9',
'mimetypes': 'image/png',
'status': 415
}, # Upload file with wrong magic number
{
'suffixes': '.gif',
'magic_number': 'ffd8ffd9',
'mimetypes': 'image/gif',
'status': 415
}
)
def test_upload_screenshot_wrong_file_type(self, test_case):
"""
Verify the file uploading fails correctly when file with wrong type
(extension/magic number) is provided
"""
self.enroll_staff(self.staff_user)
# Upload file with wrong extension name or magic number
self.attempt_upload_file_and_verify_result(test_case, 'upload_screenshot')
@data(
{
'suffixes': '.png',
'magic_number': '89504e470d0a1a0a',
'mimetypes': 'image/png',
'status': 200
},
{
'suffixes': '.gif',
'magic_number': '474946383961',
'mimetypes': 'image/gif',
'status': 200
},
{
'suffixes': '.gif',
'magic_number': '474946383761',
'mimetypes': 'image/gif',
'status': 200
},
{
'suffixes': '.jpg',
'magic_number': 'ffd8ffd9',
'mimetypes': 'image/jpeg',
'status': 200
}
)
def test_upload_screenshot_correct_file_type(self, test_case):
"""
Verify the file type checking in the file uploading method is
successful.
"""
self.enroll_staff(self.staff_user)
# Upload file with correct extension name and magic number
self.attempt_upload_file_and_verify_result(test_case, 'upload_screenshot')
@data(
{
'suffixes': '.json',
'mimetypes': 'application/json',
'status': 403
}
)
def test_import_resources_by_student(self, test_case):
"""
Test the function for importing all resources into the Recommender
by a student.
"""
self.enroll_student(self.STUDENTS[0]['email'], self.STUDENTS[0]['password'])
self.attempt_upload_file_and_verify_result(test_case, 'import_resources', self.initial_configuration)
@data(
{
'suffixes': '.csv',
'mimetypes': 'application/json',
'status': 415
}, # Upload file with wrong extension name
{
'suffixes': '.json',
'mimetypes': 'application/json',
'status': 200
}
)
def test_import_resources(self, test_case):
"""
Test the function for importing all resources into the Recommender.
"""
self.enroll_staff(self.staff_user)
self.attempt_upload_file_and_verify_result(test_case, 'import_resources', self.initial_configuration)
@data(
{
'suffixes': '.json',
'mimetypes': 'application/json',
'status': 415
}
)
def test_import_resources_wrong_format(self, test_case):
"""
Test the function for importing empty dictionary into the Recommender.
This should fire an error.
"""
self.enroll_staff(self.staff_user)
self.attempt_upload_file_and_verify_result(test_case, 'import_resources', {})
| agpl-3.0 |
Alwnikrotikz/raft | dialogs/SimpleDialog.py | 11 | 1159 | #
# Simple Dialog
#
# Authors:
# Nathan Hamiel
# Gregory Fleischer
#
# Copyright (c) 2011 RAFT Team
#
# This file is part of RAFT.
#
# RAFT 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.
#
# RAFT 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 RAFT. If not, see <http://www.gnu.org/licenses/>.
#
from PyQt4.QtGui import *
from ui import SimpleDialog
class SimpleDialog(QDialog, SimpleDialog.Ui_simpleDialog):
""" Simple dialog for displaying messages and errors to users """
def __init__(self, message, parent=None):
super(SimpleDialog, self).__init__(parent)
self.setupUi(self)
self.messageLabel.setText(message)
| gpl-3.0 |
ioram7/keystone-federado-pgid2013 | build/paste/build/lib.linux-x86_64-2.7/paste/util/classinstance.py | 62 | 1373 | # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
class classinstancemethod(object):
"""
Acts like a class method when called from a class, like an
instance method when called by an instance. The method should
take two arguments, 'self' and 'cls'; one of these will be None
depending on how the method was called.
"""
def __init__(self, func):
self.func = func
self.__doc__ = func.__doc__
def __get__(self, obj, type=None):
return _methodwrapper(self.func, obj=obj, type=type)
class _methodwrapper(object):
def __init__(self, func, obj, type):
self.func = func
self.obj = obj
self.type = type
def __call__(self, *args, **kw):
assert not kw.has_key('self') and not kw.has_key('cls'), (
"You cannot use 'self' or 'cls' arguments to a "
"classinstancemethod")
return self.func(*((self.obj, self.type) + args), **kw)
def __repr__(self):
if self.obj is None:
return ('<bound class method %s.%s>'
% (self.type.__name__, self.func.func_name))
else:
return ('<bound method %s.%s of %r>'
% (self.type.__name__, self.func.func_name, self.obj))
| apache-2.0 |
frewsxcv/WeasyPrint | weasyprint/document.py | 1 | 22947 | # coding: utf8
"""
weasyprint.document
-------------------
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from __future__ import division, unicode_literals
import io
import sys
import math
import shutil
import functools
import cairocffi as cairo
from . import CSS
from . import images
from .logger import LOGGER
from .css import get_all_computed_styles
from .formatting_structure import boxes
from .formatting_structure.build import build_formatting_structure
from .layout import layout_document
from .layout.backgrounds import percentage
from .draw import draw_page, stacked
from .pdf import write_pdf_metadata
from .compat import izip, iteritems, unicode
from .urls import FILESYSTEM_ENCODING
def _get_matrix(box):
"""Return the matrix for the CSS transforms on this box.
:returns: a :class:`cairocffi.Matrix` object or :obj:`None`.
"""
# "Transforms apply to block-level and atomic inline-level elements,
# but do not apply to elements which may be split into
# multiple inline-level boxes."
# http://www.w3.org/TR/css3-2d-transforms/#introduction
if box.style.transform and not isinstance(box, boxes.InlineBox):
border_width = box.border_width()
border_height = box.border_height()
origin_x, origin_y = box.style.transform_origin
origin_x = box.border_box_x() + percentage(origin_x, border_width)
origin_y = box.border_box_y() + percentage(origin_y, border_height)
matrix = cairo.Matrix()
matrix.translate(origin_x, origin_y)
for name, args in box.style.transform:
if name == 'scale':
matrix.scale(*args)
elif name == 'rotate':
matrix.rotate(args)
elif name == 'translate':
translate_x, translate_y = args
matrix.translate(
percentage(translate_x, border_width),
percentage(translate_y, border_height),
)
else:
if name == 'skewx':
args = (1, 0, math.tan(args), 1, 0, 0)
elif name == 'skewy':
args = (1, math.tan(args), 0, 1, 0, 0)
else:
assert name == 'matrix'
matrix = cairo.Matrix(*args) * matrix
matrix.translate(-origin_x, -origin_y)
box.transformation_matrix = matrix
return matrix
def rectangle_aabb(matrix, pos_x, pos_y, width, height):
"""Apply a transformation matrix to an axis-aligned rectangle
and return its axis-aligned bounding box as ``(x, y, width, height)``
"""
transform_point = matrix.transform_point
x1, y1 = transform_point(pos_x, pos_y)
x2, y2 = transform_point(pos_x + width, pos_y)
x3, y3 = transform_point(pos_x, pos_y + height)
x4, y4 = transform_point(pos_x + width, pos_y + height)
box_x1 = min(x1, x2, x3, x4)
box_y1 = min(y1, y2, y3, y4)
box_x2 = max(x1, x2, x3, x4)
box_y2 = max(y1, y2, y3, y4)
return box_x1, box_y1, box_x2 - box_x1, box_y2 - box_y1
class _TaggedTuple(tuple):
"""A tuple with a :attr:`sourceline` attribute,
The line number in the HTML source for whatever the tuple represents.
"""
def _gather_links_and_bookmarks(box, bookmarks, links, anchors, matrix):
transform = _get_matrix(box)
if transform:
matrix = transform * matrix if matrix else transform
bookmark_label = box.bookmark_label
bookmark_level = box.bookmark_level
link = box.style.link
anchor_name = box.style.anchor
has_bookmark = bookmark_label and bookmark_level
# 'link' is inherited but redundant on text boxes
has_link = link and not isinstance(box, boxes.TextBox)
# In case of duplicate IDs, only the first is an anchor.
has_anchor = anchor_name and anchor_name not in anchors
is_attachment = hasattr(box, 'is_attachment') and box.is_attachment
if has_bookmark or has_link or has_anchor:
pos_x, pos_y, width, height = box.hit_area()
if has_link:
link_type, target = link
if link_type == 'external' and is_attachment:
link_type = 'attachment'
if matrix:
link = _TaggedTuple(
(link_type, target, rectangle_aabb(
matrix, pos_x, pos_y, width, height)))
else:
link = _TaggedTuple(
(link_type, target, (pos_x, pos_y, width, height)))
link.sourceline = box.sourceline
links.append(link)
if matrix and (has_bookmark or has_anchor):
pos_x, pos_y = matrix.transform_point(pos_x, pos_y)
if has_bookmark:
bookmarks.append((bookmark_level, bookmark_label, (pos_x, pos_y)))
if has_anchor:
anchors[anchor_name] = pos_x, pos_y
for child in box.all_children():
_gather_links_and_bookmarks(child, bookmarks, links, anchors, matrix)
class Page(object):
"""Represents a single rendered page.
.. versionadded:: 0.15
Should be obtained from :attr:`Document.pages` but not
instantiated directly.
"""
def __init__(self, page_box, enable_hinting=False):
#: The page width, including margins, in CSS pixels.
self.width = page_box.margin_width()
#: The page height, including margins, in CSS pixels.
self.height = page_box.margin_height()
#: A list of ``(bookmark_level, bookmark_label, target)`` tuples.
#: :obj:`bookmark_level` and :obj:`bookmark_label` are respectively
#: an integer and an Unicode string, based on the CSS properties
#: of the same names. :obj:`target` is a ``(x, y)`` point
#: in CSS pixels from the top-left of the page.
self.bookmarks = bookmarks = []
#: A list of ``(link_type, target, rectangle)`` tuples.
#: A rectangle is ``(x, y, width, height)``, in CSS pixels from
#: the top-left of the page. :obj:`link_type` is one of two strings:
#:
#: * ``'external'``: :obj:`target` is an absolute URL
#: * ``'internal'``: :obj:`target` is an anchor name (see
#: :attr:`Page.anchors`).
# The anchor might be defined in another page,
# in multiple pages (in which case the first occurence is used),
# or not at all.
#: * ``'attachment'``: :obj:`target` is an absolute URL and points
#: to a resource to attach to the document.
self.links = links = []
#: A dict mapping anchor names to their target, ``(x, y)`` points
#: in CSS pixels form the top-left of the page.)
self.anchors = anchors = {}
_gather_links_and_bookmarks(
page_box, bookmarks, links, anchors, matrix=None)
self._page_box = page_box
self._enable_hinting = enable_hinting
def paint(self, cairo_context, left_x=0, top_y=0, scale=1, clip=False):
"""Paint the page in cairo, on any type of surface.
:param cairo_context:
Any :class:`cairocffi.Context` object.
.. note::
In case you get a :class:`cairo.Context` object
(eg. form PyGTK),
it is possible to :ref:`convert it to cairocffi
<converting_pycairo>`.
:param left_x:
X coordinate of the left of the page, in cairo user units.
:param top_y:
Y coordinate of the top of the page, in cairo user units.
:param scale:
Zoom scale in cairo user units per CSS pixel.
:param clip:
Whether to clip/cut content outside the page. If false or
not provided, content can overflow.
:type left_x: float
:type top_y: float
:type scale: float
:type clip: bool
"""
with stacked(cairo_context):
if self._enable_hinting:
left_x, top_y = cairo_context.user_to_device(left_x, top_y)
# Hint in device space
left_x = int(left_x)
top_y = int(top_y)
left_x, top_y = cairo_context.device_to_user(left_x, top_y)
# Make (0, 0) the top-left corner:
cairo_context.translate(left_x, top_y)
# Make user units CSS pixels:
cairo_context.scale(scale, scale)
if clip:
width = self.width
height = self.height
if self._enable_hinting:
width, height = (
cairo_context.user_to_device_distance(width, height))
# Hint in device space
width = int(math.ceil(width))
height = int(math.ceil(height))
width, height = (
cairo_context.device_to_user_distance(width, height))
cairo_context.rectangle(0, 0, width, height)
cairo_context.clip()
draw_page(self._page_box, cairo_context, self._enable_hinting)
class DocumentMetadata(object):
"""Contains meta-information about a :class:`Document`
that do not belong to specific pages but to the whole document.
New attributes may be added in future versions of WeasyPrint.
.. _W3C’s profile of ISO 8601: http://www.w3.org/TR/NOTE-datetime
"""
def __init__(self, title=None, authors=None, description=None,
keywords=None, generator=None, created=None, modified=None,
attachments=None):
#: The title of the document, as a string or :obj:`None`.
#: Extracted from the ``<title>`` element in HTML
#: and written to the ``/Title`` info field in PDF.
self.title = title
#: The authors of the document as a list of strings.
#: Extracted from the ``<meta name=author>`` elements in HTML
#: and written to the ``/Author`` info field in PDF.
self.authors = authors or []
#: The description of the document, as a string or :obj:`None`.
#: Extracted from the ``<meta name=description>`` element in HTML
#: and written to the ``/Subject`` info field in PDF.
self.description = description
#: Keywords associated with the document, as a list of strings.
#: (Defaults to the empty list.)
#: Extracted from ``<meta name=keywords>`` elements in HTML
#: and written to the ``/Keywords`` info field in PDF.
self.keywords = keywords or []
#: The name of one of the software packages
#: used to generate the document, as a string or :obj:`None`.
#: Extracted from the ``<meta name=generator>`` element in HTML
#: and written to the ``/Creator`` info field in PDF.
self.generator = generator
#: The creation date of the document, as a string or :obj:`None`.
#: Dates are in one of the six formats specified in
#: `W3C’s profile of ISO 8601`_.
#: Extracted from the ``<meta name=dcterms.created>`` element in HTML
#: and written to the ``/CreationDate`` info field in PDF.
self.created = created
#: The modification date of the document, as a string or :obj:`None`.
#: Dates are in one of the six formats specified in
#: `W3C’s profile of ISO 8601`_.
#: Extracted from the ``<meta name=dcterms.modified>`` element in HTML
#: and written to the ``/ModDate`` info field in PDF.
self.modified = modified
#: File attachments as a list of tuples of URL and a description or
#: :obj:`None`.
#: Extracted from the ``<link rel=attachment>`` elements in HTML
#: and written to the ``/EmbeddedFiles`` dictionary in PDF.
self.attachments = attachments or []
class Document(object):
"""A rendered document, with access to individual pages
ready to be painted on any cairo surfaces.
Typically obtained from :meth:`HTML.render() <weasyprint.HTML.render>`,
but can also be instantiated directly
with a list of :class:`pages <Page>`,
a set of :class:`metadata <DocumentMetadata>` and a ``url_fetcher``.
"""
@classmethod
def _render(cls, html, stylesheets, enable_hinting):
style_for = get_all_computed_styles(html, user_stylesheets=[
css if hasattr(css, 'rules')
else CSS(guess=css, media_type=html.media_type)
for css in stylesheets or []])
get_image_from_uri = functools.partial(
images.get_image_from_uri, {}, html.url_fetcher)
page_boxes = layout_document(
enable_hinting, style_for, get_image_from_uri,
build_formatting_structure(
html.root_element, style_for, get_image_from_uri))
return cls([Page(p, enable_hinting) for p in page_boxes],
DocumentMetadata(**html._get_metadata()), html.url_fetcher)
def __init__(self, pages, metadata, url_fetcher):
#: A list of :class:`Page` objects.
self.pages = pages
#: A :class:`DocumentMetadata` object.
#: Contains information that does not belong to a specific page
#: but to the whole document.
self.metadata = metadata
#: A ``url_fetcher`` for resources that have to be read when writing
#: the output.
self.url_fetcher = url_fetcher
def copy(self, pages='all'):
"""Take a subset of the pages.
:param pages:
An iterable of :class:`Page` objects from :attr:`pages`.
:return:
A new :class:`Document` object.
Examples:
Write two PDF files for odd-numbered and even-numbered pages::
# Python lists count from 0 but pages are numbered from 1.
# [::2] is a slice of even list indexes but odd-numbered pages.
document.copy(document.pages[::2]).write_pdf('odd_pages.pdf')
document.copy(document.pages[1::2]).write_pdf('even_pages.pdf')
Write each page to a numbred PNG file::
for i, page in enumerate(document.pages):
document.copy(page).write_png('page_%s.png' % i)
Combine multiple documents into one PDF file,
using metadata from the first::
all_pages = [p for p in doc.pages for doc in documents]
documents[0].copy(all_pages).write_pdf('combined.pdf')
"""
if pages == 'all':
pages = self.pages
elif not isinstance(pages, list):
pages = list(pages)
return type(self)(pages, self.metadata, self.url_fetcher)
def resolve_links(self):
"""Resolve internal hyperlinks.
Links to a missing anchor are removed with a warning.
If multiple anchors have the same name, the first is used.
:returns:
A generator yielding lists (one per page) like :attr:`Page.links`,
except that :obj:`target` for internal hyperlinks is
``(page_number, x, y)`` instead of an anchor name.
The page number is an index (0-based) in the :attr:`pages` list,
``x, y`` are in CSS pixels from the top-left of the page.
"""
anchors = {}
for i, page in enumerate(self.pages):
for anchor_name, (point_x, point_y) in iteritems(page.anchors):
anchors.setdefault(anchor_name, (i, point_x, point_y))
for page in self.pages:
page_links = []
for link in page.links:
link_type, anchor_name, rectangle = link
if link_type == 'internal':
target = anchors.get(anchor_name)
if target is None:
LOGGER.warning(
'No anchor #%s for internal URI reference '
'at line %s' % (anchor_name, link.sourceline))
else:
page_links.append((link_type, target, rectangle))
else:
# External link
page_links.append(link)
yield page_links
def make_bookmark_tree(self):
"""Make a tree of all bookmarks in the document.
:return: a list of bookmark subtrees.
A subtree is ``(label, target, children)``. :obj:`label` is
a string, :obj:`target` is ``(page_number, x, y)`` like in
:meth:`resolve_links`, and :obj:`children` is itself a (recursive)
list of subtrees.
"""
root = []
# At one point in the document, for each "output" depth, how much
# to add to get the source level (CSS values of bookmark-level).
# Eg. with <h1> then <h3>, level_shifts == [0, 1]
# 1 means that <h3> has depth 3 - 1 = 2 in the output.
skipped_levels = []
last_by_depth = [root]
previous_level = 0
for page_number, page in enumerate(self.pages):
for level, label, (point_x, point_y) in page.bookmarks:
if level > previous_level:
# Example: if the previous bookmark is a <h2>, the next
# depth "should" be for <h3>. If now we get a <h6> we’re
# skipping two levels: append 6 - 3 - 1 = 2
skipped_levels.append(level - previous_level - 1)
else:
temp = level
while temp < previous_level:
temp += 1 + skipped_levels.pop()
if temp > previous_level:
# We remove too many "skips", add some back:
skipped_levels.append(temp - previous_level - 1)
previous_level = level
depth = level - sum(skipped_levels)
assert depth == len(skipped_levels)
assert depth >= 1
children = []
subtree = label, (page_number, point_x, point_y), children
last_by_depth[depth - 1].append(subtree)
del last_by_depth[depth:]
last_by_depth.append(children)
return root
def write_pdf(self, target=None, zoom=1, attachments=None):
"""Paint the pages in a PDF file, with meta-data.
PDF files written directly by cairo do not have meta-data such as
bookmarks/outlines and hyperlinks.
:param target:
A filename, file-like object, or :obj:`None`.
:type zoom: float
:param zoom:
The zoom factor in PDF units per CSS units.
**Warning**: All CSS units (even physical, like ``cm``)
are affected.
For values other than 1, physical CSS units will thus be “wrong”.
Page size declarations are affected too, even with keyword values
like ``@page { size: A3 landscape; }``
:param attachments: A list of additional file attachments for the
generated PDF document or :obj:`None`. The list's elements are
:class:`Attachment` objects, filenames, URLs or file-like objects.
:returns:
The PDF as byte string if :obj:`target` is :obj:`None`, otherwise
:obj:`None` (the PDF is written to :obj:`target`.)
"""
# 0.75 = 72 PDF point (cairo units) per inch / 96 CSS pixel per inch
scale = zoom * 0.75
# Use an in-memory buffer. We will need to seek for metadata
# TODO: avoid this if target can seek? Benchmark first.
file_obj = io.BytesIO()
# (1, 1) is overridden by .set_size() below.
surface = cairo.PDFSurface(file_obj, 1, 1)
context = cairo.Context(surface)
for page in self.pages:
surface.set_size(page.width * scale, page.height * scale)
page.paint(context, scale=scale)
surface.show_page()
surface.finish()
write_pdf_metadata(self, file_obj, scale, self.metadata, attachments,
self.url_fetcher)
if target is None:
return file_obj.getvalue()
else:
file_obj.seek(0)
if hasattr(target, 'write'):
shutil.copyfileobj(file_obj, target)
else:
with open(target, 'wb') as fd:
shutil.copyfileobj(file_obj, fd)
def write_image_surface(self, resolution=96):
dppx = resolution / 96
# This duplicates the hinting logic in Page.paint. There is a
# dependency cycle otherwise:
# this → hinting logic → context → surface → this
# But since we do no transform here, cairo_context.user_to_device and
# friends are identity functions.
widths = [int(math.ceil(p.width * dppx)) for p in self.pages]
heights = [int(math.ceil(p.height * dppx)) for p in self.pages]
max_width = max(widths)
sum_heights = sum(heights)
surface = cairo.ImageSurface(
cairo.FORMAT_ARGB32, max_width, sum_heights)
context = cairo.Context(surface)
pos_y = 0
for page, width, height in izip(self.pages, widths, heights):
pos_x = (max_width - width) / 2
page.paint(context, pos_x, pos_y, scale=dppx, clip=True)
pos_y += height
return surface, max_width, sum_heights
def write_png(self, target=None, resolution=96):
"""Paint the pages vertically to a single PNG image.
There is no decoration around pages other than those specified in CSS
with ``@page`` rules. The final image is as wide as the widest page.
Each page is below the previous one, centered horizontally.
:param target:
A filename, file-like object, or :obj:`None`.
:type resolution: float
:param resolution:
The output resolution in PNG pixels per CSS inch. At 96 dpi
(the default), PNG pixels match the CSS ``px`` unit.
:returns:
A ``(png_bytes, png_width, png_height)`` tuple. :obj:`png_bytes`
is a byte string if :obj:`target` is :obj:`None`, otherwise
:obj:`None` (the image is written to :obj:`target`.)
:obj:`png_width` and :obj:`png_height` are the size of the
final image, in PNG pixels.
"""
surface, max_width, sum_heights = self.write_image_surface(resolution)
if target is None:
target = io.BytesIO()
surface.write_to_png(target)
png_bytes = target.getvalue()
else:
if sys.version_info[0] < 3 and isinstance(target, unicode):
# py2cairo 1.8 does not support unicode filenames.
target = target.encode(FILESYSTEM_ENCODING)
surface.write_to_png(target)
png_bytes = None
return png_bytes, max_width, sum_heights
| bsd-3-clause |
alan-unravel/bokeh | examples/plotting/server/burtin.py | 42 | 4826 | # The plot server must be running
# Go to http://localhost:5006/bokeh to view this plot
from collections import OrderedDict
from math import log, sqrt
import numpy as np
import pandas as pd
from six.moves import cStringIO as StringIO
from bokeh.plotting import figure, show, output_server
antibiotics = """
bacteria, penicillin, streptomycin, neomycin, gram
Mycobacterium tuberculosis, 800, 5, 2, negative
Salmonella schottmuelleri, 10, 0.8, 0.09, negative
Proteus vulgaris, 3, 0.1, 0.1, negative
Klebsiella pneumoniae, 850, 1.2, 1, negative
Brucella abortus, 1, 2, 0.02, negative
Pseudomonas aeruginosa, 850, 2, 0.4, negative
Escherichia coli, 100, 0.4, 0.1, negative
Salmonella (Eberthella) typhosa, 1, 0.4, 0.008, negative
Aerobacter aerogenes, 870, 1, 1.6, negative
Brucella antracis, 0.001, 0.01, 0.007, positive
Streptococcus fecalis, 1, 1, 0.1, positive
Staphylococcus aureus, 0.03, 0.03, 0.001, positive
Staphylococcus albus, 0.007, 0.1, 0.001, positive
Streptococcus hemolyticus, 0.001, 14, 10, positive
Streptococcus viridans, 0.005, 10, 40, positive
Diplococcus pneumoniae, 0.005, 11, 10, positive
"""
drug_color = OrderedDict([
("Penicillin", "#0d3362"),
("Streptomycin", "#c64737"),
("Neomycin", "black" ),
])
gram_color = {
"positive" : "#aeaeb8",
"negative" : "#e69584",
}
df = pd.read_csv(StringIO(antibiotics),
skiprows=1,
skipinitialspace=True,
engine='python')
width = 800
height = 800
inner_radius = 90
outer_radius = 300 - 10
minr = sqrt(log(.001 * 1E4))
maxr = sqrt(log(1000 * 1E4))
a = (outer_radius - inner_radius) / (minr - maxr)
b = inner_radius - a * maxr
def rad(mic):
return a * np.sqrt(np.log(mic * 1E4)) + b
big_angle = 2.0 * np.pi / (len(df) + 1)
small_angle = big_angle / 7
x = np.zeros(len(df))
y = np.zeros(len(df))
output_server("burtin")
p = figure(plot_width=width, plot_height=height, title="",
x_axis_type=None, y_axis_type=None,
x_range=[-420, 420], y_range=[-420, 420],
min_border=0, outline_line_color="black",
background_fill="#f0e1d2", border_fill="#f0e1d2")
p.line(x+1, y+1, alpha=0)
# annular wedges
angles = np.pi/2 - big_angle/2 - df.index.to_series()*big_angle
colors = [gram_color[gram] for gram in df.gram]
p.annular_wedge(
x, y, inner_radius, outer_radius, -big_angle+angles, angles, color=colors,
)
# small wedges
p.annular_wedge(x, y, inner_radius, rad(df.penicillin),
-big_angle+angles+5*small_angle, -big_angle+angles+6*small_angle,
color=drug_color['Penicillin'])
p.annular_wedge(x, y, inner_radius, rad(df.streptomycin),
-big_angle+angles+3*small_angle, -big_angle+angles+4*small_angle,
color=drug_color['Streptomycin'])
p.annular_wedge(x, y, inner_radius, rad(df.neomycin),
-big_angle+angles+1*small_angle, -big_angle+angles+2*small_angle,
color=drug_color['Neomycin'])
# circular axes and lables
labels = np.power(10.0, np.arange(-3, 4))
radii = a * np.sqrt(np.log(labels * 1E4)) + b
p.circle(x, y, radius=radii, fill_color=None, line_color="white")
p.text(x[:-1], radii[:-1], [str(r) for r in labels[:-1]],
text_font_size="8pt", text_align="center", text_baseline="middle")
# radial axes
p.annular_wedge(x, y, inner_radius-10, outer_radius+10,
-big_angle+angles, -big_angle+angles, color="black")
# bacteria labels
xr = radii[0]*np.cos(np.array(-big_angle/2 + angles))
yr = radii[0]*np.sin(np.array(-big_angle/2 + angles))
label_angle=np.array(-big_angle/2+angles)
label_angle[label_angle < -np.pi/2] += np.pi # easier to read labels on the left side
p.text(xr, yr, df.bacteria, angle=label_angle,
text_font_size="9pt", text_align="center", text_baseline="middle")
# OK, these hand drawn legends are pretty clunky, will be improved in future release
p.circle([-40, -40], [-370, -390], color=list(gram_color.values()), radius=5)
p.text([-30, -30], [-370, -390], text=["Gram-" + gr for gr in gram_color.keys()],
text_font_size="7pt", text_align="left", text_baseline="middle")
p.rect([-40, -40, -40], [18, 0, -18], width=30, height=13,
color=list(drug_color.values()))
p.text([-15, -15, -15], [18, 0, -18], text=list(drug_color.keys()),
text_font_size="9pt", text_align="left", text_baseline="middle")
p.xgrid.grid_line_color = None
p.ygrid.grid_line_color = None
show(p)
| bsd-3-clause |
Lh4cKg/kivy | kivy/uix/anchorlayout.py | 3 | 3069 | '''
Anchor Layout
=============
.. only:: html
.. image:: images/anchorlayout.gif
:align: right
.. only:: latex
.. image:: images/anchorlayout.png
:align: right
:class:`AnchorLayout` aligns children to a border (top, bottom, left, right)
or center.
To draw a button in the lower-right corner::
layout = AnchorLayout(
anchor_x='right', anchor_y='bottom')
btn = Button(text='Hello World')
layout.add_widget(btn)
'''
__all__ = ('AnchorLayout', )
from kivy.uix.layout import Layout
from kivy.properties import NumericProperty, OptionProperty
class AnchorLayout(Layout):
'''Anchor layout class. See module documentation for more information.
'''
padding = NumericProperty(0)
'''Padding between widget box and children, in pixels.
:data:`padding` is a :class:`~kivy.properties.NumericProperty`, default to
0.
'''
anchor_x = OptionProperty('center', options=(
'left', 'center', 'right'))
'''Horizontal anchor.
:data:`anchor_x` is an :class:`~kivy.properties.OptionProperty`, default
to 'center'. Can take a value of 'left', 'center' or 'right'.
'''
anchor_y = OptionProperty('center', options=(
'top', 'center', 'bottom'))
'''Vertical anchor.
:data:`anchor_y` is an :class:`~kivy.properties.OptionProperty`, default
to 'center'. Can take a value of 'top', 'center' or 'bottom'.
'''
def __init__(self, **kwargs):
super(AnchorLayout, self).__init__(**kwargs)
self.bind(
children=self._trigger_layout,
parent=self._trigger_layout,
padding=self._trigger_layout,
anchor_x=self._trigger_layout,
anchor_y=self._trigger_layout,
size=self._trigger_layout,
pos=self._trigger_layout)
def do_layout(self, *largs):
_x, _y = self.pos
width = self.width
height = self.height
anchor_x = self.anchor_x
anchor_y = self.anchor_y
padding = self.padding
for c in self.children:
x, y = _x, _y
w, h = c.size
if c.size_hint[0]:
w = c.size_hint[0] * width
elif not self.size_hint[0]:
width = max(width, c.width)
if c.size_hint[1]:
h = c.size_hint[1] * height
elif not self.size_hint[1]:
height = max(height, c.height)
if anchor_x == 'left':
x = x + padding
if anchor_x == 'right':
x = x + width - (w + padding)
if self.anchor_x == 'center':
x = x + (width / 2) - (w / 2)
if anchor_y == 'bottom':
y = y + padding
if anchor_y == 'top':
y = y + height - (h + padding)
if anchor_y == 'center':
y = y + (height / 2) - (h / 2)
c.x = x
c.y = y
c.width = w
c.height = h
self.size = (width, height) # might have changed inside loop
| lgpl-3.0 |
pllim/astropy | astropy/io/ascii/basic.py | 8 | 11025 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""An extensible ASCII table reader and writer.
basic.py:
Basic table read / write functionality for simple character
delimited files with various options for column header definition.
:Copyright: Smithsonian Astrophysical Observatory (2011)
:Author: Tom Aldcroft (aldcroft@head.cfa.harvard.edu)
"""
import re
from . import core
class BasicHeader(core.BaseHeader):
"""
Basic table Header Reader
Set a few defaults for common ascii table formats
(start at line 0, comments begin with ``#`` and possibly white space)
"""
start_line = 0
comment = r'\s*#'
write_comment = '# '
class BasicData(core.BaseData):
"""
Basic table Data Reader
Set a few defaults for common ascii table formats
(start at line 1, comments begin with ``#`` and possibly white space)
"""
start_line = 1
comment = r'\s*#'
write_comment = '# '
class Basic(core.BaseReader):
r"""Character-delimited table with a single header line at the top.
Lines beginning with a comment character (default='#') as the first
non-whitespace character are comments.
Example table::
# Column definition is the first uncommented line
# Default delimiter is the space character.
apples oranges pears
# Data starts after the header column definition, blank lines ignored
1 2 3
4 5 6
"""
_format_name = 'basic'
_description = 'Basic table with custom delimiters'
_io_registry_format_aliases = ['ascii']
header_class = BasicHeader
data_class = BasicData
class NoHeaderHeader(BasicHeader):
"""
Reader for table header without a header
Set the start of header line number to `None`, which tells the basic
reader there is no header line.
"""
start_line = None
class NoHeaderData(BasicData):
"""
Reader for table data without a header
Data starts at first uncommented line since there is no header line.
"""
start_line = 0
class NoHeader(Basic):
"""Character-delimited table with no header line.
When reading, columns are autonamed using header.auto_format which defaults
to "col%d". Otherwise this reader the same as the :class:`Basic` class
from which it is derived. Example::
# Table data
1 2 "hello there"
3 4 world
"""
_format_name = 'no_header'
_description = 'Basic table with no headers'
header_class = NoHeaderHeader
data_class = NoHeaderData
class CommentedHeaderHeader(BasicHeader):
"""
Header class for which the column definition line starts with the
comment character. See the :class:`CommentedHeader` class for an example.
"""
def process_lines(self, lines):
"""
Return only lines that start with the comment regexp. For these
lines strip out the matching characters.
"""
re_comment = re.compile(self.comment)
for line in lines:
match = re_comment.match(line)
if match:
yield line[match.end():]
def write(self, lines):
lines.append(self.write_comment + self.splitter.join(self.colnames))
class CommentedHeader(Basic):
"""Character-delimited table with column names in a comment line.
When reading, ``header_start`` can be used to specify the
line index of column names, and it can be a negative index (for example -1
for the last commented line). The default delimiter is the <space>
character.
This matches the format produced by ``np.savetxt()``, with ``delimiter=','``,
and ``header='<comma-delimited-column-names-list>'``.
Example::
# col1 col2 col3
# Comment line
1 2 3
4 5 6
"""
_format_name = 'commented_header'
_description = 'Column names in a commented line'
header_class = CommentedHeaderHeader
data_class = NoHeaderData
def read(self, table):
"""
Read input data (file-like object, filename, list of strings, or
single string) into a Table and return the result.
"""
out = super().read(table)
# Strip off the comment line set as the header line for
# commented_header format (first by default).
if 'comments' in out.meta:
idx = self.header.start_line
if idx < 0:
idx = len(out.meta['comments']) + idx
out.meta['comments'] = out.meta['comments'][:idx] + out.meta['comments'][idx + 1:]
if not out.meta['comments']:
del out.meta['comments']
return out
def write_header(self, lines, meta):
"""
Write comment lines after, rather than before, the header.
"""
self.header.write(lines)
self.header.write_comments(lines, meta)
class TabHeaderSplitter(core.DefaultSplitter):
"""Split lines on tab and do not remove whitespace"""
delimiter = '\t'
process_line = None
class TabDataSplitter(TabHeaderSplitter):
"""
Don't strip data value whitespace since that is significant in TSV tables
"""
process_val = None
skipinitialspace = False
class TabHeader(BasicHeader):
"""
Reader for header of tables with tab separated header
"""
splitter_class = TabHeaderSplitter
class TabData(BasicData):
"""
Reader for data of tables with tab separated data
"""
splitter_class = TabDataSplitter
class Tab(Basic):
"""Tab-separated table.
Unlike the :class:`Basic` reader, whitespace is not stripped from the
beginning and end of either lines or individual column values.
Example::
col1 <tab> col2 <tab> col3
# Comment line
1 <tab> 2 <tab> 5
"""
_format_name = 'tab'
_description = 'Basic table with tab-separated values'
header_class = TabHeader
data_class = TabData
class CsvSplitter(core.DefaultSplitter):
"""
Split on comma for CSV (comma-separated-value) tables
"""
delimiter = ','
class CsvHeader(BasicHeader):
"""
Header that uses the :class:`astropy.io.ascii.basic.CsvSplitter`
"""
splitter_class = CsvSplitter
comment = None
write_comment = None
class CsvData(BasicData):
"""
Data that uses the :class:`astropy.io.ascii.basic.CsvSplitter`
"""
splitter_class = CsvSplitter
fill_values = [(core.masked, '')]
comment = None
write_comment = None
class Csv(Basic):
"""CSV (comma-separated-values) table.
This file format may contain rows with fewer entries than the number of
columns, a situation that occurs in output from some spreadsheet editors.
The missing entries are marked as masked in the output table.
Masked values (indicated by an empty '' field value when reading) are
written out in the same way with an empty ('') field. This is different
from the typical default for `astropy.io.ascii` in which missing values are
indicated by ``--``.
Since the `CSV format <https://tools.ietf.org/html/rfc4180>`_ does not
formally support comments, any comments defined for the table via
``tbl.meta['comments']`` are ignored by default. If you would still like to
write those comments then include a keyword ``comment='#'`` to the
``write()`` call.
Example::
num,ra,dec,radius,mag
1,32.23222,10.1211
2,38.12321,-88.1321,2.2,17.0
"""
_format_name = 'csv'
_io_registry_format_aliases = ['csv']
_io_registry_can_write = True
_io_registry_suffix = '.csv'
_description = 'Comma-separated-values'
header_class = CsvHeader
data_class = CsvData
def inconsistent_handler(self, str_vals, ncols):
"""
Adjust row if it is too short.
If a data row is shorter than the header, add empty values to make it the
right length.
Note that this will *not* be called if the row already matches the header.
Parameters
----------
str_vals : list
A list of value strings from the current row of the table.
ncols : int
The expected number of entries from the table header.
Returns
-------
str_vals : list
List of strings to be parsed into data entries in the output table.
"""
if len(str_vals) < ncols:
str_vals.extend((ncols - len(str_vals)) * [''])
return str_vals
class RdbHeader(TabHeader):
"""
Header for RDB tables
"""
col_type_map = {'n': core.NumType,
's': core.StrType}
def get_type_map_key(self, col):
return col.raw_type[-1]
def get_cols(self, lines):
"""
Initialize the header Column objects from the table ``lines``.
This is a specialized get_cols for the RDB type:
Line 0: RDB col names
Line 1: RDB col definitions
Line 2+: RDB data rows
Parameters
----------
lines : list
List of table lines
Returns
-------
None
"""
header_lines = self.process_lines(lines) # this is a generator
header_vals_list = [hl for _, hl in zip(range(2), self.splitter(header_lines))]
if len(header_vals_list) != 2:
raise ValueError('RDB header requires 2 lines')
self.names, raw_types = header_vals_list
if len(self.names) != len(raw_types):
raise core.InconsistentTableError(
'RDB header mismatch between number of column names and column types.')
if any(not re.match(r'\d*(N|S)$', x, re.IGNORECASE) for x in raw_types):
raise core.InconsistentTableError(
f'RDB types definitions do not all match [num](N|S): {raw_types}')
self._set_cols_from_names()
for col, raw_type in zip(self.cols, raw_types):
col.raw_type = raw_type
col.type = self.get_col_type(col)
def write(self, lines):
lines.append(self.splitter.join(self.colnames))
rdb_types = []
for col in self.cols:
# Check if dtype.kind is string or unicode. See help(np.core.numerictypes)
rdb_type = 'S' if col.info.dtype.kind in ('S', 'U') else 'N'
rdb_types.append(rdb_type)
lines.append(self.splitter.join(rdb_types))
class RdbData(TabData):
"""
Data reader for RDB data. Starts reading at line 2.
"""
start_line = 2
class Rdb(Tab):
"""Tab-separated file with an extra line after the column definition line that
specifies either numeric (N) or string (S) data.
See: https://www.drdobbs.com/rdb-a-unix-command-line-database/199101326
Example::
col1 <tab> col2 <tab> col3
N <tab> S <tab> N
1 <tab> 2 <tab> 5
"""
_format_name = 'rdb'
_io_registry_format_aliases = ['rdb']
_io_registry_suffix = '.rdb'
_description = 'Tab-separated with a type definition header line'
header_class = RdbHeader
data_class = RdbData
| bsd-3-clause |
atsolakid/edx-platform | common/lib/xmodule/xmodule/modulestore/inheritance.py | 52 | 13259 | """
Support for inheritance of fields down an XBlock hierarchy.
"""
from __future__ import absolute_import
from datetime import datetime
from pytz import UTC
from xmodule.partitions.partitions import UserPartition
from xblock.fields import Scope, Boolean, String, Float, XBlockMixin, Dict, Integer, List
from xblock.runtime import KeyValueStore, KvsFieldData
from xmodule.fields import Date, Timedelta
from django.conf import settings
# Make '_' a no-op so we can scrape strings
_ = lambda text: text
class UserPartitionList(List):
"""Special List class for listing UserPartitions"""
def from_json(self, values):
return [UserPartition.from_json(v) for v in values]
def to_json(self, values):
return [user_partition.to_json()
for user_partition in values]
class InheritanceMixin(XBlockMixin):
"""Field definitions for inheritable fields."""
graded = Boolean(
help="Whether this module contributes to the final course grade",
scope=Scope.settings,
default=False,
)
start = Date(
help="Start time when this module is visible",
default=datetime(2030, 1, 1, tzinfo=UTC),
scope=Scope.settings
)
due = Date(
display_name=_("Due Date"),
help=_("Enter the default date by which problems are due."),
scope=Scope.settings,
)
visible_to_staff_only = Boolean(
help=_("If true, can be seen only by course staff, regardless of start date."),
default=False,
scope=Scope.settings,
)
course_edit_method = String(
display_name=_("Course Editor"),
help=_("Enter the method by which this course is edited (\"XML\" or \"Studio\")."),
default="Studio",
scope=Scope.settings,
deprecated=True # Deprecated because user would not change away from Studio within Studio.
)
giturl = String(
display_name=_("GIT URL"),
help=_("Enter the URL for the course data GIT repository."),
scope=Scope.settings
)
xqa_key = String(
display_name=_("XQA Key"),
help=_("This setting is not currently supported."), scope=Scope.settings,
deprecated=True
)
annotation_storage_url = String(
help=_("Enter the location of the annotation storage server. The textannotation, videoannotation, and imageannotation advanced modules require this setting."),
scope=Scope.settings,
default="http://your_annotation_storage.com",
display_name=_("URL for Annotation Storage")
)
annotation_token_secret = String(
help=_("Enter the secret string for annotation storage. The textannotation, videoannotation, and imageannotation advanced modules require this string."),
scope=Scope.settings,
default="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
display_name=_("Secret Token String for Annotation")
)
graceperiod = Timedelta(
help="Amount of time after the due date that submissions will be accepted",
scope=Scope.settings,
)
group_access = Dict(
help=_("Enter the ids for the content groups this problem belongs to."),
scope=Scope.settings,
)
showanswer = String(
display_name=_("Show Answer"),
help=_(
'Specify when the Show Answer button appears for each problem. '
'Valid values are "always", "answered", "attempted", "closed", '
'"finished", "past_due", "correct_or_past_due", and "never".'
),
scope=Scope.settings,
default="finished",
)
rerandomize = String(
display_name=_("Randomization"),
help=_(
'Specify the default for how often variable values in a problem are randomized. '
'This setting should be set to \"never\" unless you plan to provide a Python '
'script to identify and randomize values in most of the problems in your course. '
'Valid values are \"always\", \"onreset\", \"never\", and \"per_student\".'
),
scope=Scope.settings,
default="never",
)
days_early_for_beta = Float(
display_name=_("Days Early for Beta Users"),
help=_("Enter the number of days before the start date that beta users can access the course."),
scope=Scope.settings,
default=None,
)
static_asset_path = String(
display_name=_("Static Asset Path"),
help=_("Enter the path to use for files on the Files & Uploads page. This value overrides the Studio default, c4x://."),
scope=Scope.settings,
default='',
)
text_customization = Dict(
display_name=_("Text Customization"),
help=_("Enter string customization substitutions for particular locations."),
scope=Scope.settings,
)
use_latex_compiler = Boolean(
display_name=_("Enable LaTeX Compiler"),
help=_("Enter true or false. If true, you can use the LaTeX templates for HTML components and advanced Problem components."),
default=False,
scope=Scope.settings
)
max_attempts = Integer(
display_name=_("Maximum Attempts"),
help=_("Enter the maximum number of times a student can try to answer problems. By default, Maximum Attempts is set to null, meaning that students have an unlimited number of attempts for problems. You can override this course-wide setting for individual problems. However, if the course-wide setting is a specific number, you cannot set the Maximum Attempts for individual problems to unlimited."),
values={"min": 0}, scope=Scope.settings
)
matlab_api_key = String(
display_name=_("Matlab API key"),
help=_("Enter the API key provided by MathWorks for accessing the MATLAB Hosted Service. "
"This key is granted for exclusive use in this course for the specified duration. "
"Do not share the API key with other courses. Notify MathWorks immediately "
"if you believe the key is exposed or compromised. To obtain a key for your course, "
"or to report an issue, please contact moocsupport@mathworks.com"),
scope=Scope.settings
)
# This is should be scoped to content, but since it's defined in the policy
# file, it is currently scoped to settings.
user_partitions = UserPartitionList(
display_name=_("Group Configurations"),
help=_("Enter the configurations that govern how students are grouped together."),
default=[],
scope=Scope.settings
)
video_speed_optimizations = Boolean(
display_name=_("Enable video caching system"),
help=_("Enter true or false. If true, video caching will be used for HTML5 videos."),
default=True,
scope=Scope.settings
)
video_bumper = Dict(
display_name=_("Video Pre-Roll"),
help=_(
"""Identify a video, 5-10 seconds in length, to play before course videos. Enter the video ID from"""
""" the Video Uploads page and one or more transcript files in the following format:"""
""" {"video_id": "ID", "transcripts": {"language": "/static/filename.srt"}}."""
""" For example, an entry for a video with two transcripts looks like this:"""
""" {"video_id": "77cef264-d6f5-4cf2-ad9d-0178ab8c77be","""
""" "transcripts": {"en": "/static/DemoX-D01_1.srt", "uk": "/static/DemoX-D01_1_uk.srt"}}"""
),
scope=Scope.settings
)
reset_key = "DEFAULT_SHOW_RESET_BUTTON"
default_reset_button = getattr(settings, reset_key) if hasattr(settings, reset_key) else False
show_reset_button = Boolean(
display_name=_("Show Reset Button for Problems"),
help=_("Enter true or false. If true, problems in the course default to always displaying a 'Reset' button. You can "
"override this in each problem's settings. All existing problems are affected when this course-wide setting is changed."),
scope=Scope.settings,
default=default_reset_button
)
edxnotes = Boolean(
display_name=_("Enable Student Notes"),
help=_("Enter true or false. If true, students can use the Student Notes feature."),
default=False,
scope=Scope.settings
)
edxnotes_visibility = Boolean(
display_name="Student Notes Visibility",
help=_("Indicates whether Student Notes are visible in the course. "
"Students can also show or hide their notes in the courseware."),
default=True,
scope=Scope.user_info
)
in_entrance_exam = Boolean(
display_name=_("Tag this module as part of an Entrance Exam section"),
help=_("Enter true or false. If true, answer submissions for problem modules will be "
"considered in the Entrance Exam scoring/gating algorithm."),
scope=Scope.settings,
default=False
)
def compute_inherited_metadata(descriptor):
"""Given a descriptor, traverse all of its descendants and do metadata
inheritance. Should be called on a CourseDescriptor after importing a
course.
NOTE: This means that there is no such thing as lazy loading at the
moment--this accesses all the children."""
if descriptor.has_children:
parent_metadata = descriptor.xblock_kvs.inherited_settings.copy()
# add any of descriptor's explicitly set fields to the inheriting list
for field in InheritanceMixin.fields.values():
if field.is_set_on(descriptor):
# inherited_settings values are json repr
parent_metadata[field.name] = field.read_json(descriptor)
for child in descriptor.get_children():
inherit_metadata(child, parent_metadata)
compute_inherited_metadata(child)
def inherit_metadata(descriptor, inherited_data):
"""
Updates this module with metadata inherited from a containing module.
Only metadata specified in self.inheritable_metadata will
be inherited
`inherited_data`: A dictionary mapping field names to the values that
they should inherit
"""
try:
descriptor.xblock_kvs.inherited_settings = inherited_data
except AttributeError: # the kvs doesn't have inherited_settings probably b/c it's an error module
pass
def own_metadata(module):
"""
Return a JSON-friendly dictionary that contains only non-inherited field
keys, mapped to their serialized values
"""
return module.get_explicitly_set_fields_by_scope(Scope.settings)
class InheritingFieldData(KvsFieldData):
"""A `FieldData` implementation that can inherit value from parents to children."""
def __init__(self, inheritable_names, **kwargs):
"""
`inheritable_names` is a list of names that can be inherited from
parents.
"""
super(InheritingFieldData, self).__init__(**kwargs)
self.inheritable_names = set(inheritable_names)
def default(self, block, name):
"""
The default for an inheritable name is found on a parent.
"""
if name in self.inheritable_names:
# Walk up the content tree to find the first ancestor
# that this field is set on. Use the field from the current
# block so that if it has a different default than the root
# node of the tree, the block's default will be used.
field = block.fields[name]
ancestor = block.get_parent()
while ancestor is not None:
if field.is_set_on(ancestor):
return field.read_json(ancestor)
else:
ancestor = ancestor.get_parent()
return super(InheritingFieldData, self).default(block, name)
def inheriting_field_data(kvs):
"""Create an InheritanceFieldData that inherits the names in InheritanceMixin."""
return InheritingFieldData(
inheritable_names=InheritanceMixin.fields.keys(),
kvs=kvs,
)
class InheritanceKeyValueStore(KeyValueStore):
"""
Common superclass for kvs's which know about inheritance of settings. Offers simple
dict-based storage of fields and lookup of inherited values.
Note: inherited_settings is a dict of key to json values (internal xblock field repr)
"""
def __init__(self, initial_values=None, inherited_settings=None):
super(InheritanceKeyValueStore, self).__init__()
self.inherited_settings = inherited_settings or {}
self._fields = initial_values or {}
def get(self, key):
return self._fields[key.field_name]
def set(self, key, value):
# xml backed courses are read-only, but they do have some computed fields
self._fields[key.field_name] = value
def delete(self, key):
del self._fields[key.field_name]
def has(self, key):
return key.field_name in self._fields
def default(self, key):
"""
Check to see if the default should be from inheritance. If not
inheriting, this will raise KeyError which will cause the caller to use
the field's global default.
"""
return self.inherited_settings[key.field_name]
| agpl-3.0 |
eayunstack/nova | nova/cmd/baremetal_manage.py | 13 | 7213 | # Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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.
# Interactive shell based on Django:
#
# Copyright (c) 2005, the Lawrence Journal-World
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of Django 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.
"""
CLI interface for nova bare-metal management.
"""
import os
import sys
from oslo.config import cfg
import six
from nova import config
from nova.i18n import _
from nova import objects
from nova.openstack.common import cliutils
from nova.openstack.common import log as logging
from nova import version
from nova.virt.baremetal.db import migration as bmdb_migration
CONF = cfg.CONF
# Decorators for actions
def args(*args, **kwargs):
def _decorator(func):
func.__dict__.setdefault('args', []).insert(0, (args, kwargs))
return func
return _decorator
class BareMetalDbCommands(object):
"""Class for managing the bare-metal database."""
def __init__(self):
pass
@args('--version', dest='version', metavar='<version>',
help='Bare-metal Database version')
def sync(self, version=None):
"""Sync the database up to the most recent version."""
bmdb_migration.db_sync(version)
def version(self):
"""Print the current database version."""
v = bmdb_migration.db_version()
print(v)
# return for unittest
return v
CATEGORIES = {
'db': BareMetalDbCommands,
}
def methods_of(obj):
"""Get all callable methods of an object that don't start with underscore.
returns a list of tuples of the form (method_name, method)
"""
result = []
for i in dir(obj):
if callable(getattr(obj, i)) and not i.startswith('_'):
result.append((i, getattr(obj, i)))
return result
def add_command_parsers(subparsers):
parser = subparsers.add_parser('bash-completion')
parser.add_argument('query_category', nargs='?')
for category in CATEGORIES:
command_object = CATEGORIES[category]()
parser = subparsers.add_parser(category)
parser.set_defaults(command_object=command_object)
category_subparsers = parser.add_subparsers(dest='action')
for (action, action_fn) in methods_of(command_object):
parser = category_subparsers.add_parser(action)
action_kwargs = []
for args, kwargs in getattr(action_fn, 'args', []):
action_kwargs.append(kwargs['dest'])
kwargs['dest'] = 'action_kwarg_' + kwargs['dest']
parser.add_argument(*args, **kwargs)
parser.set_defaults(action_fn=action_fn)
parser.set_defaults(action_kwargs=action_kwargs)
parser.add_argument('action_args', nargs='*')
category_opt = cfg.SubCommandOpt('category',
title='Command categories',
help='Available categories',
handler=add_command_parsers)
def main():
"""Parse options and call the appropriate class/method."""
CONF.register_cli_opt(category_opt)
try:
config.parse_args(sys.argv)
logging.setup("nova")
except cfg.ConfigFilesNotFoundError:
cfgfile = CONF.config_file[-1] if CONF.config_file else None
if cfgfile and not os.access(cfgfile, os.R_OK):
st = os.stat(cfgfile)
print(_("Could not read %s. Re-running with sudo") % cfgfile)
try:
os.execvp('sudo', ['sudo', '-u', '#%s' % st.st_uid] + sys.argv)
except Exception:
print(_('sudo failed, continuing as if nothing happened'))
print(_('Please re-run nova-manage as root.'))
return(2)
objects.register_all()
if CONF.category.name == "version":
print(version.version_string_with_package())
return(0)
if CONF.category.name == "bash-completion":
if not CONF.category.query_category:
print(" ".join(CATEGORIES.keys()))
elif CONF.category.query_category in CATEGORIES:
fn = CATEGORIES[CONF.category.query_category]
command_object = fn()
actions = methods_of(command_object)
print(" ".join([k for (k, v) in actions]))
return(0)
fn = CONF.category.action_fn
fn_args = [arg.decode('utf-8') for arg in CONF.category.action_args]
fn_kwargs = {}
for k in CONF.category.action_kwargs:
v = getattr(CONF.category, 'action_kwarg_' + k)
if v is None:
continue
if isinstance(v, six.string_types):
v = v.decode('utf-8')
fn_kwargs[k] = v
# call the action with the remaining arguments
# check arguments
try:
cliutils.validate_args(fn, *fn_args, **fn_kwargs)
except cliutils.MissingArgs as e:
print(fn.__doc__)
print(e)
return(1)
try:
fn(*fn_args, **fn_kwargs)
return(0)
except Exception:
print(_("Command failed, please check log for more info"))
raise
| apache-2.0 |
zofuthan/edx-platform | common/djangoapps/auth_exchange/tests/test_views.py | 84 | 6094 | # pylint: disable=no-member
"""
Tests for OAuth token exchange views
"""
from datetime import timedelta
import json
import mock
import unittest
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test import TestCase
import httpretty
import provider.constants
from provider import scope
from provider.oauth2.models import AccessToken, Client
from auth_exchange.tests.utils import AccessTokenExchangeTestMixin
from student.tests.factories import UserFactory
from third_party_auth.tests.utils import ThirdPartyOAuthTestMixinFacebook, ThirdPartyOAuthTestMixinGoogle
class AccessTokenExchangeViewTest(AccessTokenExchangeTestMixin):
"""
Mixin that defines test cases for AccessTokenExchangeView
"""
def setUp(self):
super(AccessTokenExchangeViewTest, self).setUp()
self.url = reverse("exchange_access_token", kwargs={"backend": self.BACKEND})
def _assert_error(self, data, expected_error, expected_error_description):
response = self.client.post(self.url, data)
self.assertEqual(response.status_code, 400)
self.assertEqual(response["Content-Type"], "application/json")
self.assertEqual(
json.loads(response.content),
{"error": expected_error, "error_description": expected_error_description}
)
self.assertNotIn("partial_pipeline", self.client.session)
def _assert_success(self, data, expected_scopes):
response = self.client.post(self.url, data)
self.assertEqual(response.status_code, 200)
self.assertEqual(response["Content-Type"], "application/json")
content = json.loads(response.content)
self.assertEqual(set(content.keys()), {"access_token", "token_type", "expires_in", "scope"})
self.assertEqual(content["token_type"], "Bearer")
self.assertLessEqual(
timedelta(seconds=int(content["expires_in"])),
provider.constants.EXPIRE_DELTA_PUBLIC
)
self.assertEqual(content["scope"], " ".join(expected_scopes))
token = AccessToken.objects.get(token=content["access_token"])
self.assertEqual(token.user, self.user)
self.assertEqual(token.client, self.oauth_client)
self.assertEqual(scope.to_names(token.scope), expected_scopes)
def test_single_access_token(self):
def extract_token(response):
"""
Returns the access token from the response payload.
"""
return json.loads(response.content)["access_token"]
self._setup_provider_response(success=True)
for single_access_token in [True, False]:
with mock.patch(
"auth_exchange.views.constants.SINGLE_ACCESS_TOKEN",
single_access_token
):
first_response = self.client.post(self.url, self.data)
second_response = self.client.post(self.url, self.data)
self.assertEqual(
extract_token(first_response) == extract_token(second_response),
single_access_token
)
def test_get_method(self):
response = self.client.get(self.url, self.data)
self.assertEqual(response.status_code, 400)
self.assertEqual(
json.loads(response.content),
{
"error": "invalid_request",
"error_description": "Only POST requests allowed.",
}
)
def test_invalid_provider(self):
url = reverse("exchange_access_token", kwargs={"backend": "invalid"})
response = self.client.post(url, self.data)
self.assertEqual(response.status_code, 404)
# This is necessary because cms does not implement third party auth
@unittest.skipUnless(settings.FEATURES.get("ENABLE_THIRD_PARTY_AUTH"), "third party auth not enabled")
@httpretty.activate
class AccessTokenExchangeViewTestFacebook(
AccessTokenExchangeViewTest,
ThirdPartyOAuthTestMixinFacebook,
TestCase
):
"""
Tests for AccessTokenExchangeView used with Facebook
"""
pass
# This is necessary because cms does not implement third party auth
@unittest.skipUnless(settings.FEATURES.get("ENABLE_THIRD_PARTY_AUTH"), "third party auth not enabled")
@httpretty.activate
class AccessTokenExchangeViewTestGoogle(
AccessTokenExchangeViewTest,
ThirdPartyOAuthTestMixinGoogle,
TestCase
):
"""
Tests for AccessTokenExchangeView used with Google
"""
pass
@unittest.skipUnless(settings.FEATURES.get("ENABLE_OAUTH2_PROVIDER"), "OAuth2 not enabled")
class TestLoginWithAccessTokenView(TestCase):
"""
Tests for LoginWithAccessTokenView
"""
def setUp(self):
super(TestLoginWithAccessTokenView, self).setUp()
self.user = UserFactory()
self.oauth2_client = Client.objects.create(client_type=provider.constants.CONFIDENTIAL)
def _verify_response(self, access_token, expected_status_code, expected_num_cookies):
"""
Calls the login_with_access_token endpoint and verifies the response given the expected values.
"""
url = reverse("login_with_access_token")
response = self.client.post(url, HTTP_AUTHORIZATION="Bearer {0}".format(access_token))
self.assertEqual(response.status_code, expected_status_code)
self.assertEqual(len(response.cookies), expected_num_cookies)
def test_success(self):
access_token = AccessToken.objects.create(
token="test_access_token",
client=self.oauth2_client,
user=self.user,
)
self._verify_response(access_token, expected_status_code=204, expected_num_cookies=1)
self.assertEqual(len(self.client.cookies), 1)
self.assertEqual(self.client.session['_auth_user_id'], self.user.id)
def test_unauthenticated(self):
self._verify_response("invalid_token", expected_status_code=401, expected_num_cookies=0)
self.assertEqual(len(self.client.cookies), 0)
self.assertNotIn("session_key", self.client.session)
| agpl-3.0 |
chenjun0210/tensorflow | tensorflow/contrib/factorization/python/kernel_tests/masked_matmul_benchmark.py | 136 | 5711 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Benchmark for masked_matmul_ops."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=g-bad-todo, g-import-not-at-top
import time
from tensorflow.contrib.factorization.python.ops import gen_factorization_ops
from tensorflow.python.client import session as session_lib
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import sparse_tensor
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import control_flow_ops
from tensorflow.python.ops import random_ops
from tensorflow.python.ops import sparse_ops
from tensorflow.python.ops import variables
from tensorflow.python.platform import test
class MaskedmatmulBenchmark(test.Benchmark):
"""Benchmark masked_matmul_ops."""
def _make_sparse_mask(self, mask_shape, nnz, sort=False):
"""Creates a sparse tensor to be used as a mask in masked_matmul.
Args:
mask_shape: int list, the shape of the mask.
nnz: int, the number of non-zero elements in the mask.
sort: boolean, whether to sort the indices of the mask (in lexicographic
order).
Returns:
A sparse tensor, with nnz indices, drawn uniformly at random.
"""
num_rows = mask_shape[0]
num_cols = mask_shape[1]
row_idx = random_ops.random_uniform(
[nnz], minval=0, maxval=num_rows, dtype=dtypes.int64)
col_idx = random_ops.random_uniform(
[nnz], minval=0, maxval=num_cols, dtype=dtypes.int64)
indices = array_ops.stack([row_idx, col_idx], axis=1)
values = array_ops.ones([nnz])
unordered_mask = sparse_tensor.SparseTensor(indices, values, mask_shape)
return sparse_ops.sparse_reorder(unordered_mask) if sort else unordered_mask
def _run_graph(self, a_shape, b_shape, nnz, num_iters, sort=False,
transpose_a=False, transpose_b=False):
"""Run the graph and return its average execution time.
Args:
a_shape: int list, the shape of the a matrix.
b_shape: int list, the shape of the b matrix.
nnz: int, the number of non-zero elements in the mask.
num_iters: int, the number of iterations to run (the output is the average
execution time, over num_iters).
sort: Boolean, whether to sort the indices in the mask.
transpose_a: boolean, whether to transpose the a matrix.
transpose_b: boolean, whether to transpose the b matrix.
Returns:
The average duration of the masked_matmul op in seconds.
"""
graph = ops.Graph()
with graph.as_default(), session_lib.Session(graph=graph) as session:
mask_shape = [a_shape[0], b_shape[1]]
a_shape = a_shape if not transpose_a else [a_shape[1], a_shape[0]]
b_shape = b_shape if not transpose_b else [b_shape[1], b_shape[0]]
a_var = variables.Variable(random_ops.random_normal(a_shape))
b_var = variables.Variable(random_ops.random_normal(b_shape))
mask_indices_ph = array_ops.placeholder(dtypes.int64, shape=[nnz, 2])
a_ph = array_ops.placeholder(dtypes.float32, shape=a_shape)
b_ph = array_ops.placeholder(dtypes.float32, shape=b_shape)
mask = self._make_sparse_mask(mask_shape, nnz, sort)
masked_prod = gen_factorization_ops.masked_matmul(
a_ph, b_ph, mask_indices_ph, transpose_a, transpose_b)
with ops.control_dependencies([masked_prod]):
result = control_flow_ops.no_op()
variables.global_variables_initializer().run()
avg_wall_time = 0
for _ in range(num_iters):
a, b, mask_indices = session.run([a_var, b_var, mask.indices])
feed_dict = {
mask_indices_ph: mask_indices,
a_ph: a,
b_ph: b
}
start_time = time.time()
session.run(result, feed_dict=feed_dict)
avg_wall_time += (time.time() - start_time)/num_iters
bench_name = (
"cpu nnz:{nnz} a_shape:{a_shape} b_shape:{b_shape} tr_a:{tr_a} "
"tr_b:{tr_b} sort:{sort}"
).format(
nnz=nnz,
a_shape=a_shape,
b_shape=b_shape,
tr_a=int(transpose_a),
tr_b=int(transpose_b),
sort=int(sort)
)
print(bench_name + " - %f secs" % avg_wall_time)
name = bench_name.replace(", ", "_").replace(":", "_").replace(" ", "_")
self.report_benchmark(
name=name,
iters=num_iters,
wall_time=avg_wall_time)
return avg_wall_time
# TODO(walidk): compare benchmarks to using existing tf ops.
def benchmark_matmul(self):
num_iters = 10
nnz = 100000
for transpose_a in [False, True]:
for transpose_b in [False, True]:
for dim in [200, 400, 800]:
for sort in [False, True]:
a_shape = [10000, dim]
b_shape = [dim, 10000]
self._run_graph(a_shape, b_shape, nnz, num_iters, sort, transpose_a,
transpose_b)
if __name__ == "__main__":
test.main()
| apache-2.0 |
boooka/GeoPowerOff | venv/lib/python2.7/site-packages/django/conf/locale/zh_TW/formats.py | 634 | 1810 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'Y年n月j日' # 2016年9月5日
TIME_FORMAT = 'H:i' # 20:45
DATETIME_FORMAT = 'Y年n月j日 H:i' # 2016年9月5日 20:45
YEAR_MONTH_FORMAT = 'Y年n月' # 2016年9月
MONTH_DAY_FORMAT = 'm月j日' # 9月5日
SHORT_DATE_FORMAT = 'Y年n月j日' # 2016年9月5日
SHORT_DATETIME_FORMAT = 'Y年n月j日 H:i' # 2016年9月5日 20:45
FIRST_DAY_OF_WEEK = 1 # 星期一 (Monday)
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = (
'%Y/%m/%d', # '2016/09/05'
'%Y-%m-%d', # '2016-09-05'
'%Y年%n月%j日', # '2016年9月5日'
)
TIME_INPUT_FORMATS = (
'%H:%M', # '20:45'
'%H:%M:%S', # '20:45:29'
'%H:%M:%S.%f', # '20:45:29.000200'
)
DATETIME_INPUT_FORMATS = (
'%Y/%m/%d %H:%M', # '2016/09/05 20:45'
'%Y-%m-%d %H:%M', # '2016-09-05 20:45'
'%Y年%n月%j日 %H:%M', # '2016年9月5日 14:45'
'%Y/%m/%d %H:%M:%S', # '2016/09/05 20:45:29'
'%Y-%m-%d %H:%M:%S', # '2016-09-05 20:45:29'
'%Y年%n月%j日 %H:%M:%S', # '2016年9月5日 20:45:29'
'%Y/%m/%d %H:%M:%S.%f', # '2016/09/05 20:45:29.000200'
'%Y-%m-%d %H:%M:%S.%f', # '2016-09-05 20:45:29.000200'
'%Y年%n月%j日 %H:%n:%S.%f', # '2016年9月5日 20:45:29.000200'
)
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ''
NUMBER_GROUPING = 4
| apache-2.0 |
Johnzero/erp | openerp/addons/analytic_journal_billing_rate/analytic_journal_billing_rate.py | 9 | 5216 | # -*- 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/>.
#
##############################################################################
from osv import fields,osv
class analytic_journal_rate_grid(osv.osv):
_name="analytic_journal_rate_grid"
_description= "Relation table between journals and billing rates"
_columns={
'journal_id': fields.many2one('account.analytic.journal', 'Analytic Journal', required=True,),
'account_id': fields.many2one("account.analytic.account", "Analytic Account", required=True,),
'rate_id': fields.many2one("hr_timesheet_invoice.factor", "Invoicing Rate",),
}
analytic_journal_rate_grid()
class account_analytic_account(osv.osv):
_inherit = "account.analytic.account"
_columns = {
'journal_rate_ids': fields.one2many('analytic_journal_rate_grid', 'account_id', 'Invoicing Rate per Journal'),
}
account_analytic_account()
class hr_analytic_timesheet(osv.osv):
_inherit = "hr.analytic.timesheet"
def on_change_account_id(self, cr, uid, ids, account_id, user_id=False, unit_amount=0, journal_id=0):
res = {}
if not (account_id):
#avoid a useless call to super
return res
if not (journal_id):
return super(hr_analytic_timesheet, self).on_change_account_id(cr, uid, ids,account_id, user_id, unit_amount)
#get the browse record related to journal_id and account_id
temp = self.pool.get('analytic_journal_rate_grid').search(cr, uid, [('journal_id', '=', journal_id),('account_id', '=', account_id) ])
if not temp:
#if there isn't any record for this journal_id and account_id
return super(hr_analytic_timesheet, self).on_change_account_id(cr, uid, ids,account_id,user_id, unit_amount)
else:
#get the old values from super and add the value from the new relation analytic_journal_rate_grid
r = self.pool.get('analytic_journal_rate_grid').browse(cr, uid, temp)[0]
res.setdefault('value',{})
res['value']= super(hr_analytic_timesheet, self).on_change_account_id(cr, uid, ids, account_id, user_id, unit_amount)['value']
if r.rate_id.id:
res['value']['to_invoice'] = r.rate_id.id
return res
def on_change_journal_id(self, cr, uid, ids, journal_id, account_id):
res = {}
if not (journal_id and account_id):
return res
#get the browse record related to journal_id and account_id
temp = self.pool.get('analytic_journal_rate_grid').search(cr, uid, [('journal_id', '=', journal_id),('account_id', '=', account_id) ])
if temp:
#add the value from the new relation analytic_user_funct_grid
r = self.pool.get('analytic_journal_rate_grid').browse(cr, uid, temp)[0]
res.setdefault('value',{})
if r.rate_id.id:
res['value']['to_invoice'] = r.rate_id.id
return res
to_invoice = self.pool.get('account.analytic.account').read(cr, uid, [account_id], ['to_invoice'])[0]['to_invoice']
if to_invoice:
res.setdefault('value',{})
res['value']['to_invoice'] = to_invoice[0]
return res
hr_analytic_timesheet()
class account_invoice(osv.osv):
_inherit = "account.invoice"
def _get_analytic_lines(self, cr, uid, id, context=None):
iml = super(account_invoice, self)._get_analytic_lines(cr, uid, id, context=context)
for il in iml:
if il['account_analytic_id'] and il.get('analytic_lines', False):
#get the browse record related to journal_id and account_id
journal_id = il['analytic_lines'][0][2]['journal_id']
account_id = il['analytic_lines'][0][2]['account_id']
if journal_id and account_id:
temp = self.pool.get('analytic_journal_rate_grid').search(cr, uid, [('journal_id', '=', journal_id),('account_id', '=', account_id)], context=context)
if temp:
r = self.pool.get('analytic_journal_rate_grid').browse(cr, uid, temp, context=context)[0]
il['analytic_lines'][0][2]['to_invoice'] = r.rate_id.id
return iml
account_invoice()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
sqd/NNEZArtFestival2015Sys | backend/myFunction/functions.py | 1 | 3682 | from django.http import HttpResponse
from django.utils.html import *
from datetime import datetime
import csv
import re
ERROR_CODE="error"
ILLEGAL_CODE="illegal"
FAILURE_CODE="failure"
SUCCESS_CODE="success"
class MyError(Exception):
pass
class GuestDataHandler:
def __init__(self,columns,request):
self.data=dict()
self.columns=dict()
self.columns=columns
self.request=request
def filterPost(self,name):
if name in self.request.POST:
return self.request.POST[name]
else:
raise MyError(ERROR_CODE)
def filterCode(self):
if "code" in self.request.session:
code=self.request.session["code"]
del(self.request.session["code"])
return code
else:
raise MyError(ERROR_CODE)
def validateCode(self):
if "code" in self.request.session and self.filterCode()==self.filterPost("captcha"):
return True
else:
return False
def validateLength(self):
for i in self.columns:
if (not i in self.data) or len(self.data[i])>self.columns[i]:
return False
return True
def fetchData(self):
for i in self.columns:
tmp=self.filterPost(i)
if tmp:
self.data[i]=tmp
def validateData(self):
return self.validateLength() and self.validateCode()
def getData(self):
self.fetchData()
if self.validateData():
return self.data
else:
raise MyError(ILLEGAL_CODE)
class AdminDataHandler(GuestDataHandler):
def filterPost(self,name):
if name in self.request.POST:
return self.request.POST[name]
def isAdmin(self):
return self.logined() and self.antiCSRF()
def antiCSRF(self):
return "HTTP_REFERER" in self.request.META and re.compile("^http://%s/" % self.request.get_host()).match(self.request.META["HTTP_REFERER"])
def logined(self):
return "logined" in self.request.session and self.request.session["logined"]==True
def validateLength(self):
for i in self.data:
if i in self.columns and len(self.data[i])>self.columns[i]:
return False
return True
def validateData(self):
return self.validateLength()
def getData(self):
if not self.isAdmin():
raise MyError(FAILURE_CODE)
self.fetchData()
if self.validateData():
return self.data
else:
raise MyError(ILLEGAL_CODE)
class DatabaseHandler:
def __init__(self,columns,db):
self.__db=db
self.columns=columns
def insert(self,data):
data["timestamp"]=datetime.now()
self.__db.objects.create(**data)
def query(self,data):
return self.objectsToDict( list(self.__db.objects.filter(**data).order_by("pk")) )
def delete(self,pk):
self.__db.objects.get(pk=pk).delete()
def modify(self,data):
pk=data["pk"]
del(data["pk"])
self.__db.objects.filter(pk=pk).update(**data)
def index(self,start,length):
start=int(start)
length=int(length)
return self.objectsToDict( list(self.__db.objects.order_by("pk")[start:start+length]) )
def objectsToDict(self,data):
for key,val in enumerate(data):
data[key]=self.objectToDict(val)
return data
def objectToDict(self,obj):
d=dict()
for i in self.columns:
d[i]=getattr(obj,i)
return d
def getNumRecord(self):
return self.__db.objects.all().count()
| mit |
demonchild2112/travis-test | grr/client/grr_response_client/comms_test.py | 2 | 11973 | #!/usr/bin/env python
"""Test for client comms."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import time
from absl import app
from future.builtins import range
import mock
import queue
import requests
from grr_response_client import comms
from grr_response_core.lib import rdfvalue
from grr_response_core.lib import utils
from grr_response_core.lib.rdfvalues import flows as rdf_flows
from grr_response_core.lib.util import compatibility
from grr.test_lib import test_lib
def _make_http_response(code=200):
"""A helper for creating HTTP responses."""
response = requests.Response()
response.status_code = code
return response
def _make_404():
return _make_http_response(404)
def _make_200(content):
response = _make_http_response(200)
response._content = content
return response
class RequestsInstrumentor(object):
"""Instrument the `requests` library."""
def __init__(self):
self.time = 0
self.current_opener = None
# Record the actions in order.
self.actions = []
# These are the responses we will do.
self.responses = []
def request(self, **request_options):
self.actions.append([self.time, request_options])
if self.responses:
response = self.responses.pop(0)
if isinstance(response, IOError):
raise response
return response
else:
return _make_404()
def sleep(self, timeout):
self.time += timeout
def instrument(self):
"""Install the mocks required.
Returns:
A context manager that when exits restores the mocks.
"""
self.actions = []
return utils.MultiStubber((requests, "request", self.request),
(time, "sleep", self.sleep))
class URLFilter(RequestsInstrumentor):
"""Emulate only a single server url that works."""
def request(self, url=None, **kwargs):
# If request is from server2 - return a valid response. Assume, server2 is
# reachable from all proxies.
response = super(URLFilter, self).request(url=url, **kwargs)
if "server2" in url:
return _make_200("Good")
return response
class MockHTTPManager(comms.HTTPManager):
def _GetBaseURLs(self):
return ["http://server1/", "http://server2/", "http://server3/"]
def _GetProxies(self):
"""Do not test the proxy gathering logic itself."""
return ["proxy1", "proxy2", "proxy3"]
class HTTPManagerTest(test_lib.GRRBaseTest):
"""Tests the HTTP Manager."""
def MakeRequest(self, instrumentor, manager, path, verify_cb=lambda x: True):
with utils.MultiStubber((requests, "request", instrumentor.request),
(time, "sleep", instrumentor.sleep)):
return manager.OpenServerEndpoint(path, verify_cb=verify_cb)
def testBaseURLConcatenation(self):
instrumentor = RequestsInstrumentor()
with instrumentor.instrument():
manager = MockHTTPManager()
manager.OpenServerEndpoint("/control")
# Make sure that the URL is concatenated properly (no //).
self.assertEqual(instrumentor.actions[0][1]["url"],
"http://server1/control")
def testProxySearch(self):
"""Check that all proxies will be searched in order."""
# Do not specify a response - all requests will return a 404 message.
instrumentor = RequestsInstrumentor()
with instrumentor.instrument():
manager = MockHTTPManager()
result = manager.OpenURL("http://www.google.com/")
# Three requests are made.
proxies = [x[1]["proxies"]["https"] for x in instrumentor.actions]
self.assertEqual(proxies, manager.proxies)
# Result is an error since no requests succeeded.
self.assertEqual(result.code, 404)
def testVerifyCB(self):
"""Check that we can handle captive portals via the verify CB.
Captive portals do not cause an exception but return bad data.
"""
def verify_cb(http_object):
return http_object.data == "Good"
instrumentor = RequestsInstrumentor()
# First request is an exception, next is bad and the last is good.
instrumentor.responses = [_make_404(), _make_200("Bad"), _make_200("Good")]
with instrumentor.instrument():
manager = MockHTTPManager()
result = manager.OpenURL("http://www.google.com/", verify_cb=verify_cb)
self.assertEqual(result.data, "Good")
def testURLSwitching(self):
"""Ensure that the manager switches URLs to one that works."""
# Only server2 works and returns Good response.
instrumentor = URLFilter()
with instrumentor.instrument():
manager = MockHTTPManager()
result = manager.OpenServerEndpoint("control")
# The result is correct.
self.assertEqual(result.data, "Good")
queries = [
(x[1]["url"], x[1]["proxies"]["http"]) for x in instrumentor.actions
]
self.assertEqual(
queries,
# First search for server1 through all proxies.
[
("http://server1/control", "proxy1"),
("http://server1/control", "proxy2"),
("http://server1/control", "proxy3"),
# Now search for server2 through all proxies.
("http://server2/control", "proxy1")
])
def testTemporaryFailure(self):
"""If the front end gives an intermittent 500, we must back off."""
instrumentor = RequestsInstrumentor()
# First response good, then a 500 error, then another good response.
instrumentor.responses = [
_make_200("Good"),
_make_http_response(code=500),
_make_200("Also Good")
]
manager = MockHTTPManager()
with instrumentor.instrument():
# First request - should be fine.
result = manager.OpenServerEndpoint("control")
self.assertEqual(result.data, "Good")
with instrumentor.instrument():
# Second request - should appear fine.
result = manager.OpenServerEndpoint("control")
self.assertEqual(result.data, "Also Good")
# But we actually made two requests.
self.assertLen(instrumentor.actions, 2)
# And we waited 60 seconds to make the second one.
self.assertEqual(instrumentor.actions[0][0], 0)
self.assertEqual(instrumentor.actions[1][0], manager.error_poll_min)
# Make sure that the manager cleared its consecutive_connection_errors.
self.assertEqual(manager.consecutive_connection_errors, 0)
def test406Errors(self):
"""Ensure that 406 enrollment requests are propagated immediately.
Enrollment responses (406) are sent by the server when the client is not
suitable enrolled. The http manager should treat those as correct responses
and stop searching for proxy/url combinations in order to allow the client
to commence enrollment workflow.
"""
instrumentor = RequestsInstrumentor()
instrumentor.responses = [_make_http_response(code=406)]
manager = MockHTTPManager()
with instrumentor.instrument():
# First request - should raise a 406 error.
result = manager.OpenServerEndpoint("control")
self.assertEqual(result.code, 406)
# We should not search for proxy/url combinations.
self.assertLen(instrumentor.actions, 1)
# A 406 message is not considered an error.
self.assertEqual(manager.consecutive_connection_errors, 0)
def testConnectionErrorRecovery(self):
instrumentor = RequestsInstrumentor()
# When we can't connect at all (server not listening), we get a
# requests.exceptions.ConnectionError but the response object is None.
err_response = requests.ConnectionError("Error", response=None)
instrumentor.responses = [err_response, _make_200("Good")]
with instrumentor.instrument():
manager = MockHTTPManager()
result = manager.OpenServerEndpoint("control")
self.assertEqual(result.data, "Good")
class SizeLimitedQueueTest(test_lib.GRRBaseTest):
def testSizeLimitedQueue(self):
limited_queue = comms.SizeLimitedQueue(
maxsize=10000000, heart_beat_cb=lambda: None)
msg_a = rdf_flows.GrrMessage(name="A")
msg_b = rdf_flows.GrrMessage(name="B")
msg_c = rdf_flows.GrrMessage(name="C")
for _ in range(10):
limited_queue.Put(msg_a)
limited_queue.Put(msg_b)
limited_queue.Put(msg_c)
result = limited_queue.GetMessages()
self.assertCountEqual(list(result.job), [msg_c] * 10 + [msg_a, msg_b] * 10)
# Tests a partial Get().
for _ in range(7):
limited_queue.Put(msg_a)
limited_queue.Put(msg_b)
limited_queue.Put(msg_c)
result = limited_queue.GetMessages(
soft_size_limit=len(msg_a.SerializeToBytes()) * 5 - 1)
self.assertLen(list(result.job), 5)
for _ in range(3):
limited_queue.Put(msg_a)
limited_queue.Put(msg_b)
limited_queue.Put(msg_c)
# Append the remaining messages to the same result.
result.job.Extend(limited_queue.GetMessages().job)
self.assertCountEqual(list(result.job), [msg_c] * 10 + [msg_a, msg_b] * 10)
def testSizeLimitedQueueSize(self):
q = comms.SizeLimitedQueue(1000)
msg_a = rdf_flows.GrrMessage(name="A")
msg_b = rdf_flows.GrrMessage(name="B")
msg_c = rdf_flows.GrrMessage(name="C")
msg_d = rdf_flows.GrrMessage(name="D")
messages = [msg_a, msg_b, msg_c, msg_d]
in_queue = []
self.assertEqual(q.Size(), 0)
for m in messages:
q.Put(m, block=False)
in_queue.append(m)
self.assertEqual(q.Size(),
sum([len(m.SerializeToBytes()) for m in in_queue]))
for _ in range(len(messages)):
msg_list = q.GetMessages(1)
self.assertLen(msg_list.job, 1)
in_queue.remove(msg_list.job[0])
self.assertEqual(q.Size(),
sum([len(m.SerializeToBytes()) for m in in_queue]))
def testSizeLimitedQueueOverflow(self):
msg_a = rdf_flows.GrrMessage(name="A")
msg_b = rdf_flows.GrrMessage(name="B")
msg_c = rdf_flows.GrrMessage(name="C")
msg_d = rdf_flows.GrrMessage(name="D")
limited_queue = comms.SizeLimitedQueue(
maxsize=3 * len(msg_a.SerializeToBytes()), heart_beat_cb=lambda: None)
limited_queue.Put(msg_a, block=False)
limited_queue.Put(msg_b, block=False)
limited_queue.Put(msg_c, block=False)
with self.assertRaises(queue.Full):
limited_queue.Put(msg_d, block=False)
def testSizeLimitedQueueHeartbeat(self):
msg_a = rdf_flows.GrrMessage(name="A")
msg_b = rdf_flows.GrrMessage(name="B")
msg_c = rdf_flows.GrrMessage(name="C")
msg_d = rdf_flows.GrrMessage(name="D")
heartbeat = mock.Mock()
limited_queue = comms.SizeLimitedQueue(
maxsize=3 * len(msg_a.SerializeToBytes()), heart_beat_cb=heartbeat)
limited_queue.Put(msg_a)
limited_queue.Put(msg_b)
limited_queue.Put(msg_c)
with self.assertRaises(queue.Full):
limited_queue.Put(msg_d, timeout=1)
self.assertTrue(heartbeat.called)
class GRRClientWorkerTest(test_lib.GRRBaseTest):
"""Tests the GRRClientWorker class."""
def setUp(self):
super(GRRClientWorkerTest, self).setUp()
# GRRClientWorker starts a stats collector thread that will send replies
# shortly after starting up. Those replies interfere with the test below so
# we disable the ClientStatsCollector thread here.
with utils.Stubber(comms.GRRClientWorker,
"StartStatsCollector", lambda self: None):
self.client_worker = comms.GRRClientWorker(
internal_nanny_monitoring=False)
def testSendReplyHandlesFalseyPrimitivesCorrectly(self):
self.client_worker.SendReply(rdfvalue.RDFDatetime(0))
messages = self.client_worker.Drain().job
self.assertLen(messages, 1)
self.assertEqual(messages[0].args_rdf_name,
compatibility.GetName(rdfvalue.RDFDatetime))
self.assertIsInstance(messages[0].payload, rdfvalue.RDFDatetime)
self.assertEqual(messages[0].payload, rdfvalue.RDFDatetime(0))
def main(argv):
test_lib.main(argv)
if __name__ == "__main__":
app.run(main)
| apache-2.0 |
noroutine/ansible | test/units/utils/test_shlex.py | 197 | 1290 | # (c) 2015, Marius Gedminas <marius@gedmin.as>
#
# 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/>.
import unittest
from ansible.utils.shlex import shlex_split
class TestSplit(unittest.TestCase):
def test_trivial(self):
self.assertEqual(shlex_split("a b c"), ["a", "b", "c"])
def test_unicode(self):
self.assertEqual(shlex_split(u"a b \u010D"), [u"a", u"b", u"\u010D"])
def test_quoted(self):
self.assertEqual(shlex_split('"a b" c'), ["a b", "c"])
def test_comments(self):
self.assertEqual(shlex_split('"a b" c # d', comments=True), ["a b", "c"])
def test_error(self):
self.assertRaises(ValueError, shlex_split, 'a "b')
| gpl-3.0 |
bhansa/fireball | pyvenv/Lib/site-packages/pip/locations.py | 340 | 5626 | """Locations where we look for configs, install stuff, etc"""
from __future__ import absolute_import
import os
import os.path
import site
import sys
from distutils import sysconfig
from distutils.command.install import install, SCHEME_KEYS # noqa
from pip.compat import WINDOWS, expanduser
from pip.utils import appdirs
# Application Directories
USER_CACHE_DIR = appdirs.user_cache_dir("pip")
DELETE_MARKER_MESSAGE = '''\
This file is placed here by pip to indicate the source was put
here by pip.
Once this package is successfully installed this source code will be
deleted (unless you remove this file).
'''
PIP_DELETE_MARKER_FILENAME = 'pip-delete-this-directory.txt'
def write_delete_marker_file(directory):
"""
Write the pip delete marker file into this directory.
"""
filepath = os.path.join(directory, PIP_DELETE_MARKER_FILENAME)
with open(filepath, 'w') as marker_fp:
marker_fp.write(DELETE_MARKER_MESSAGE)
def running_under_virtualenv():
"""
Return True if we're running inside a virtualenv, False otherwise.
"""
if hasattr(sys, 'real_prefix'):
return True
elif sys.prefix != getattr(sys, "base_prefix", sys.prefix):
return True
return False
def virtualenv_no_global():
"""
Return True if in a venv and no system site packages.
"""
# this mirrors the logic in virtualenv.py for locating the
# no-global-site-packages.txt file
site_mod_dir = os.path.dirname(os.path.abspath(site.__file__))
no_global_file = os.path.join(site_mod_dir, 'no-global-site-packages.txt')
if running_under_virtualenv() and os.path.isfile(no_global_file):
return True
if running_under_virtualenv():
src_prefix = os.path.join(sys.prefix, 'src')
else:
# FIXME: keep src in cwd for now (it is not a temporary folder)
try:
src_prefix = os.path.join(os.getcwd(), 'src')
except OSError:
# In case the current working directory has been renamed or deleted
sys.exit(
"The folder you are executing pip from can no longer be found."
)
# under macOS + virtualenv sys.prefix is not properly resolved
# it is something like /path/to/python/bin/..
# Note: using realpath due to tmp dirs on OSX being symlinks
src_prefix = os.path.abspath(src_prefix)
# FIXME doesn't account for venv linked to global site-packages
site_packages = sysconfig.get_python_lib()
user_site = site.USER_SITE
user_dir = expanduser('~')
if WINDOWS:
bin_py = os.path.join(sys.prefix, 'Scripts')
bin_user = os.path.join(user_site, 'Scripts')
# buildout uses 'bin' on Windows too?
if not os.path.exists(bin_py):
bin_py = os.path.join(sys.prefix, 'bin')
bin_user = os.path.join(user_site, 'bin')
config_basename = 'pip.ini'
legacy_storage_dir = os.path.join(user_dir, 'pip')
legacy_config_file = os.path.join(
legacy_storage_dir,
config_basename,
)
else:
bin_py = os.path.join(sys.prefix, 'bin')
bin_user = os.path.join(user_site, 'bin')
config_basename = 'pip.conf'
legacy_storage_dir = os.path.join(user_dir, '.pip')
legacy_config_file = os.path.join(
legacy_storage_dir,
config_basename,
)
# Forcing to use /usr/local/bin for standard macOS framework installs
# Also log to ~/Library/Logs/ for use with the Console.app log viewer
if sys.platform[:6] == 'darwin' and sys.prefix[:16] == '/System/Library/':
bin_py = '/usr/local/bin'
site_config_files = [
os.path.join(path, config_basename)
for path in appdirs.site_config_dirs('pip')
]
def distutils_scheme(dist_name, user=False, home=None, root=None,
isolated=False, prefix=None):
"""
Return a distutils install scheme
"""
from distutils.dist import Distribution
scheme = {}
if isolated:
extra_dist_args = {"script_args": ["--no-user-cfg"]}
else:
extra_dist_args = {}
dist_args = {'name': dist_name}
dist_args.update(extra_dist_args)
d = Distribution(dist_args)
d.parse_config_files()
i = d.get_command_obj('install', create=True)
# NOTE: setting user or home has the side-effect of creating the home dir
# or user base for installations during finalize_options()
# ideally, we'd prefer a scheme class that has no side-effects.
assert not (user and prefix), "user={0} prefix={1}".format(user, prefix)
i.user = user or i.user
if user:
i.prefix = ""
i.prefix = prefix or i.prefix
i.home = home or i.home
i.root = root or i.root
i.finalize_options()
for key in SCHEME_KEYS:
scheme[key] = getattr(i, 'install_' + key)
# install_lib specified in setup.cfg should install *everything*
# into there (i.e. it takes precedence over both purelib and
# platlib). Note, i.install_lib is *always* set after
# finalize_options(); we only want to override here if the user
# has explicitly requested it hence going back to the config
if 'install_lib' in d.get_option_dict('install'):
scheme.update(dict(purelib=i.install_lib, platlib=i.install_lib))
if running_under_virtualenv():
scheme['headers'] = os.path.join(
sys.prefix,
'include',
'site',
'python' + sys.version[:3],
dist_name,
)
if root is not None:
path_no_drive = os.path.splitdrive(
os.path.abspath(scheme["headers"]))[1]
scheme["headers"] = os.path.join(
root,
path_no_drive[1:],
)
return scheme
| gpl-3.0 |
dezynetechnologies/odoo | addons/l10n_ro/__openerp__.py | 186 | 2241 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Author: Fekete Mihai <feketemihai@gmail.com>, Tatár Attila <atta@nvm.ro>
# Copyright (C) 2011-2014 TOTAL PC SYSTEMS (http://www.erpsystems.ro).
# Copyright (C) 2014 Fekete Mihai
# Copyright (C) 2014 Tatár Attila
# Based on precedent versions developed by Fil System, Fekete Mihai
#
# 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/>.
#
##############################################################################
{
"name" : "Romania - Accounting",
"version" : "1.0",
"author" : "ERPsystems Solutions",
"website": "http://www.erpsystems.ro",
"category" : "Localization/Account Charts",
"depends" : ['account','account_chart','base_vat'],
"description": """
This is the module to manage the Accounting Chart, VAT structure, Fiscal Position and Tax Mapping.
It also adds the Registration Number for Romania in OpenERP.
================================================================================================================
Romanian accounting chart and localization.
""",
"demo" : [],
"data" : ['partner_view.xml',
'account_chart.xml',
'account_tax_code_template.xml',
'account_chart_template.xml',
'account_tax_template.xml',
'fiscal_position_template.xml',
'l10n_chart_ro_wizard.xml',
'res.country.state.csv',
'res.bank.csv',
],
"installable": True,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
xkong/wechatbackends | wechat/tests.py | 1 | 3907 | #!/usr/bin/env python
# coding: utf-8
#
# xiaoyu <xiaokong1937@gmail.com>
#
# 2014/02/18
#
"""
Tests for wechat backends.
Put this file to your/app/, serialize a `test_all.json` which include a
model and its instances and run
`python manage.py tests yourapp.WeChatTestCase`
WeixinMp is a model for your weixin article,
e.g:
class WeixinMp(models.Model):
title = models.CharField(verbose_name=_('title'), max_length=128,
unique=True)
content = models.TextField(verbose_name=_('content'))
digest = models.CharField(verbose_name=_('digest'),
max_length=255, null=True, blank=True)
user = models.ForeignKey(User, verbose_name=_('author'))
fileid = models.CharField(verbose_name=_('fileid'), max_length=32)
show_cover_pic = models.BooleanField(verbose_name=_('show cover image'),
default=True)
cover_img = models.ImageField(verbose_name=_('Cover Image'),
upload_to=UPLOAD_PATH,
blank=True,
help_text=_('Cover Image for article, will '
'be set to `uploads/cover.jpg`'
' if left blank.'))
is_published = models.BooleanField(_('is_published'), default=False)
sync = models.BooleanField(_('Sync'), default=True,
help_text=_('Synchronize to weixin server.'))
"""
from django.test import TestCase
from django.conf import settings
from .base import BaseClient
from yourapp.models import WeixinMp
class WeChatTestCase(TestCase):
fixtures = ['test_all.json']
def setUp(self):
email = getattr(settings, 'WEIXIN_EMAIL')
password = getattr(settings, 'WEIXIN_PASSWORD')
weixin_id = getattr(settings, 'WEIXIN_ID')
self.client = BaseClient(email, password, weixin_id)
self.fake_user = '640000000'
self.articles = list(WeixinMp.objects.filter(is_valid=True))[:4]
def test_get_latest_fakeid(self):
resp = self.client.get_latest_fakeid()
self.assertEqual('fakeid' in resp, True)
def test_send_msg(self):
data = {
'type': 1,
'content': 'this is a test'
}
msg = self.client._sendMsg(self.fake_user, data)
self.assertEqual(msg['base_resp']['err_msg'], 'ok')
def test_send_img(self):
img_content = open('demo.png', 'rb').read()
file_id = self.client._uploadImg(img_content)
data = {
'type': 2,
'content': '',
'fid': file_id,
'fileid': file_id,
}
msg = self.client._sendMsg(self.fake_user, data)
self.assertEqual(msg['base_resp']['err_msg'], 'ok')
def test_send_app_msg(self):
self.client._addAppMsg(self.articles[:3])
app_msg_id = self.client._getAppMsgId()
data = {
'type': 10,
'fid': app_msg_id,
'appmsgid': app_msg_id
}
ret_msg = self.client._sendMsg(self.fake_user, data)
self.assertEqual(ret_msg['base_resp']['err_msg'], 'ok')
def test_content_img_upload(self):
img_content = open('demo.png', 'rb').read()
msg = self.client.upload_app_content_img(img_content)
self.assertEqual(msg['state'], 'SUCCESS')
def test_add_app_msg(self):
msg = self.client._addAppMsg(self.articles[-1:])
self.assertEqual(msg['msg'], 'OK')
def test_publish_app_msg(self):
return
# Note: this function can really publish an app_msg to all the
# users! If you really want to do this, comment the previous
# `return`.
msg_id = self.client._getAppMsgId()
msg = self.client.publish_msg(msg_id)
self.assertEqual(msg['base_resp']['err_msg'], 'ok')
| mit |
mindnervestech/mnrp | addons/hr_payroll/wizard/hr_payroll_payslips_by_employees.py | 337 | 3443 | # -*- 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 time
from datetime import datetime
from dateutil import relativedelta
from openerp.osv import fields, osv
from openerp.tools.translate import _
class hr_payslip_employees(osv.osv_memory):
_name ='hr.payslip.employees'
_description = 'Generate payslips for all selected employees'
_columns = {
'employee_ids': fields.many2many('hr.employee', 'hr_employee_group_rel', 'payslip_id', 'employee_id', 'Employees'),
}
def compute_sheet(self, cr, uid, ids, context=None):
emp_pool = self.pool.get('hr.employee')
slip_pool = self.pool.get('hr.payslip')
run_pool = self.pool.get('hr.payslip.run')
slip_ids = []
if context is None:
context = {}
data = self.read(cr, uid, ids, context=context)[0]
run_data = {}
if context and context.get('active_id', False):
run_data = run_pool.read(cr, uid, [context['active_id']], ['date_start', 'date_end', 'credit_note'])[0]
from_date = run_data.get('date_start', False)
to_date = run_data.get('date_end', False)
credit_note = run_data.get('credit_note', False)
if not data['employee_ids']:
raise osv.except_osv(_("Warning!"), _("You must select employee(s) to generate payslip(s)."))
for emp in emp_pool.browse(cr, uid, data['employee_ids'], context=context):
slip_data = slip_pool.onchange_employee_id(cr, uid, [], from_date, to_date, emp.id, contract_id=False, context=context)
res = {
'employee_id': emp.id,
'name': slip_data['value'].get('name', False),
'struct_id': slip_data['value'].get('struct_id', False),
'contract_id': slip_data['value'].get('contract_id', False),
'payslip_run_id': context.get('active_id', False),
'input_line_ids': [(0, 0, x) for x in slip_data['value'].get('input_line_ids', False)],
'worked_days_line_ids': [(0, 0, x) for x in slip_data['value'].get('worked_days_line_ids', False)],
'date_from': from_date,
'date_to': to_date,
'credit_note': credit_note,
}
slip_ids.append(slip_pool.create(cr, uid, res, context=context))
slip_pool.compute_sheet(cr, uid, slip_ids, context=context)
return {'type': 'ir.actions.act_window_close'}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
synicalsyntax/zulip | zproject/urls.py | 1 | 36115 | import os
from django.conf import settings
from django.conf.urls import include
from django.conf.urls.i18n import i18n_patterns
from django.contrib.auth.views import (
LoginView,
PasswordResetCompleteView,
PasswordResetConfirmView,
PasswordResetDoneView,
)
from django.urls import path, re_path
from django.utils.module_loading import import_string
from django.views.generic import RedirectView, TemplateView
import zerver.forms
import zerver.tornado.views
import zerver.views
import zerver.views.archive
import zerver.views.auth
import zerver.views.camo
import zerver.views.compatibility
import zerver.views.digest
import zerver.views.documentation
import zerver.views.email_mirror
import zerver.views.home
import zerver.views.message_edit
import zerver.views.message_fetch
import zerver.views.message_flags
import zerver.views.message_send
import zerver.views.muting
import zerver.views.portico
import zerver.views.realm
import zerver.views.realm_export
import zerver.views.registration
import zerver.views.streams
import zerver.views.unsubscribe
import zerver.views.upload
import zerver.views.user_groups
import zerver.views.user_settings
import zerver.views.users
import zerver.views.video_calls
import zerver.views.zephyr
from zerver.lib.integrations import WEBHOOK_INTEGRATIONS
from zerver.lib.rest import rest_dispatch
from zerver.views.documentation import IntegrationView, MarkdownDirectoryView
from zproject import dev_urls
from zproject.legacy_urls import legacy_urls
if settings.TWO_FACTOR_AUTHENTICATION_ENABLED:
from two_factor.gateways.twilio.urls import urlpatterns as tf_twilio_urls
from two_factor.urls import urlpatterns as tf_urls
# NB: There are several other pieces of code which route requests by URL:
#
# - legacy_urls.py contains API endpoint written before the redesign
# and should not be added to.
#
# - runtornado.py has its own URL list for Tornado views. See the
# invocation of web.Application in that file.
#
# - The Nginx config knows which URLs to route to Django or Tornado.
#
# - Likewise for the local dev server in tools/run-dev.py.
# These endpoints constitute the currently designed API (V1), which uses:
# * REST verbs
# * Basic auth (username:password is email:apiKey)
# * Take and return json-formatted data
#
# If you're adding a new endpoint to the code that requires authentication,
# please add it here.
# See rest_dispatch in zerver.lib.rest for an explanation of auth methods used
#
# All of these paths are accessed by either a /json or /api/v1 prefix;
# e.g. `PATCH /json/realm` or `PATCH /api/v1/realm`.
v1_api_and_json_patterns = [
# realm-level calls
path('realm', rest_dispatch,
{'PATCH': 'zerver.views.realm.update_realm'}),
# Returns a 204, used by desktop app to verify connectivity status
path('generate_204', zerver.views.registration.generate_204,
name='zerver.views.registration.generate_204'),
re_path(r'^realm/subdomain/(?P<subdomain>\S+)$', zerver.views.realm.check_subdomain_available,
name='zerver.views.realm.check_subdomain_available'),
# realm/domains -> zerver.views.realm_domains
path('realm/domains', rest_dispatch,
{'GET': 'zerver.views.realm_domains.list_realm_domains',
'POST': 'zerver.views.realm_domains.create_realm_domain'}),
re_path(r'^realm/domains/(?P<domain>\S+)$', rest_dispatch,
{'PATCH': 'zerver.views.realm_domains.patch_realm_domain',
'DELETE': 'zerver.views.realm_domains.delete_realm_domain'}),
# realm/emoji -> zerver.views.realm_emoji
path('realm/emoji', rest_dispatch,
{'GET': 'zerver.views.realm_emoji.list_emoji'}),
re_path(r'^realm/emoji/(?P<emoji_name>.*)$', rest_dispatch,
{'POST': 'zerver.views.realm_emoji.upload_emoji',
'DELETE': ('zerver.views.realm_emoji.delete_emoji', {"intentionally_undocumented"})}),
# this endpoint throws a status code 400 JsonableError when it should be a 404.
# realm/icon -> zerver.views.realm_icon
path('realm/icon', rest_dispatch,
{'POST': 'zerver.views.realm_icon.upload_icon',
'DELETE': 'zerver.views.realm_icon.delete_icon_backend',
'GET': 'zerver.views.realm_icon.get_icon_backend'}),
# realm/logo -> zerver.views.realm_logo
path('realm/logo', rest_dispatch,
{'POST': 'zerver.views.realm_logo.upload_logo',
'DELETE': 'zerver.views.realm_logo.delete_logo_backend',
'GET': 'zerver.views.realm_logo.get_logo_backend'}),
# realm/filters -> zerver.views.realm_filters
path('realm/filters', rest_dispatch,
{'GET': 'zerver.views.realm_filters.list_filters',
'POST': 'zerver.views.realm_filters.create_filter'}),
path('realm/filters/<int:filter_id>', rest_dispatch,
{'DELETE': 'zerver.views.realm_filters.delete_filter'}),
# realm/profile_fields -> zerver.views.custom_profile_fields
path('realm/profile_fields', rest_dispatch,
{'GET': 'zerver.views.custom_profile_fields.list_realm_custom_profile_fields',
'PATCH': 'zerver.views.custom_profile_fields.reorder_realm_custom_profile_fields',
'POST': 'zerver.views.custom_profile_fields.create_realm_custom_profile_field'}),
path('realm/profile_fields/<int:field_id>', rest_dispatch,
{'PATCH': 'zerver.views.custom_profile_fields.update_realm_custom_profile_field',
'DELETE': 'zerver.views.custom_profile_fields.delete_realm_custom_profile_field'}),
# realm/deactivate -> zerver.views.deactivate_realm
path('realm/deactivate', rest_dispatch,
{'POST': 'zerver.views.realm.deactivate_realm'}),
path('realm/presence', rest_dispatch,
{'GET': 'zerver.views.presence.get_statuses_for_realm'}),
# users -> zerver.views.users
#
# Since some of these endpoints do something different if used on
# yourself with `/me` as the email, we need to make sure that we
# don't accidentally trigger these. The cleanest way to do that
# is to add a regular expression assertion that it isn't `/me/`
# (or ends with `/me`, in the case of hitting the root URL).
path('users', rest_dispatch,
{'GET': 'zerver.views.users.get_members_backend',
'POST': 'zerver.views.users.create_user_backend'}),
path('users/<int:user_id>/reactivate', rest_dispatch,
{'POST': 'zerver.views.users.reactivate_user_backend'}),
re_path(r'^users/(?!me/)(?P<email>[^/]*)/presence$', rest_dispatch,
{'GET': 'zerver.views.presence.get_presence_backend'}),
path('users/<int:user_id>', rest_dispatch,
{'GET': 'zerver.views.users.get_members_backend',
'PATCH': 'zerver.views.users.update_user_backend',
'DELETE': 'zerver.views.users.deactivate_user_backend'}),
path('users/<int:user_id>/subscriptions/<int:stream_id>', rest_dispatch,
{'GET': 'zerver.views.users.get_subscription_backend'}),
path('bots', rest_dispatch,
{'GET': 'zerver.views.users.get_bots_backend',
'POST': 'zerver.views.users.add_bot_backend'}),
path('bots/<int:bot_id>/api_key/regenerate', rest_dispatch,
{'POST': 'zerver.views.users.regenerate_bot_api_key'}),
path('bots/<int:bot_id>', rest_dispatch,
{'PATCH': 'zerver.views.users.patch_bot_backend',
'DELETE': 'zerver.views.users.deactivate_bot_backend'}),
# invites -> zerver.views.invite
path('invites', rest_dispatch,
{'GET': 'zerver.views.invite.get_user_invites',
'POST': 'zerver.views.invite.invite_users_backend'}),
path('invites/<int:prereg_id>', rest_dispatch,
{'DELETE': 'zerver.views.invite.revoke_user_invite'}),
path('invites/<int:prereg_id>/resend', rest_dispatch,
{'POST': 'zerver.views.invite.resend_user_invite_email'}),
# invites/multiuse -> zerver.views.invite
path('invites/multiuse', rest_dispatch,
{'POST': 'zerver.views.invite.generate_multiuse_invite_backend'}),
# invites/multiuse -> zerver.views.invite
path('invites/multiuse/<int:invite_id>', rest_dispatch,
{'DELETE': 'zerver.views.invite.revoke_multiuse_invite'}),
# mark messages as read (in bulk)
path('mark_all_as_read', rest_dispatch,
{'POST': 'zerver.views.message_flags.mark_all_as_read'}),
path('mark_stream_as_read', rest_dispatch,
{'POST': 'zerver.views.message_flags.mark_stream_as_read'}),
path('mark_topic_as_read', rest_dispatch,
{'POST': 'zerver.views.message_flags.mark_topic_as_read'}),
path('zcommand', rest_dispatch,
{'POST': 'zerver.views.message_send.zcommand_backend'}),
# messages -> zerver.views.message*
# GET returns messages, possibly filtered, POST sends a message
path('messages', rest_dispatch,
{'GET': 'zerver.views.message_fetch.get_messages_backend',
'POST': ('zerver.views.message_send.send_message_backend',
{'allow_incoming_webhooks'})}),
path('messages/<int:message_id>', rest_dispatch,
{'GET': 'zerver.views.message_edit.json_fetch_raw_message',
'PATCH': 'zerver.views.message_edit.update_message_backend',
'DELETE': 'zerver.views.message_edit.delete_message_backend'}),
path('messages/render', rest_dispatch,
{'POST': 'zerver.views.message_send.render_message_backend'}),
path('messages/flags', rest_dispatch,
{'POST': 'zerver.views.message_flags.update_message_flags'}),
path('messages/<int:message_id>/history', rest_dispatch,
{'GET': 'zerver.views.message_edit.get_message_edit_history'}),
path('messages/matches_narrow', rest_dispatch,
{'GET': 'zerver.views.message_fetch.messages_in_narrow_backend'}),
path('users/me/subscriptions/properties', rest_dispatch,
{'POST': 'zerver.views.streams.update_subscription_properties_backend'}),
path('users/me/subscriptions/<int:stream_id>', rest_dispatch,
{'PATCH': 'zerver.views.streams.update_subscriptions_property'}),
path('submessage',
rest_dispatch,
{'POST': 'zerver.views.submessage.process_submessage'}),
# New endpoint for handling reactions.
# reactions -> zerver.view.reactions
# POST adds a reaction to a message
# DELETE removes a reaction from a message
path('messages/<int:message_id>/reactions',
rest_dispatch,
{'POST': 'zerver.views.reactions.add_reaction',
'DELETE': 'zerver.views.reactions.remove_reaction'}),
# attachments -> zerver.views.attachments
path('attachments', rest_dispatch,
{'GET': 'zerver.views.attachments.list_by_user'}),
path('attachments/<int:attachment_id>', rest_dispatch,
{'DELETE': 'zerver.views.attachments.remove'}),
# typing -> zerver.views.typing
# POST sends a typing notification event to recipients
path('typing', rest_dispatch,
{'POST': 'zerver.views.typing.send_notification_backend'}),
# user_uploads -> zerver.views.upload
path('user_uploads', rest_dispatch,
{'POST': 'zerver.views.upload.upload_file_backend'}),
re_path(r'^user_uploads/(?P<realm_id_str>(\d*|unk))/(?P<filename>.*)$',
rest_dispatch,
{'GET': ('zerver.views.upload.serve_file_url_backend',
{'override_api_url_scheme'})}),
# bot_storage -> zerver.views.storage
path('bot_storage', rest_dispatch,
{'PUT': 'zerver.views.storage.update_storage',
'GET': 'zerver.views.storage.get_storage',
'DELETE': 'zerver.views.storage.remove_storage'}),
# users/me -> zerver.views
path('users/me', rest_dispatch,
{'GET': 'zerver.views.users.get_profile_backend',
'DELETE': 'zerver.views.users.deactivate_user_own_backend'}),
path('users/me/presence', rest_dispatch,
{'POST': 'zerver.views.presence.update_active_status_backend'}),
path('users/me/status', rest_dispatch,
{'POST': 'zerver.views.presence.update_user_status_backend'}),
# Endpoint used by mobile devices to register their push
# notification credentials
path('users/me/apns_device_token', rest_dispatch,
{'POST': 'zerver.views.push_notifications.add_apns_device_token',
'DELETE': 'zerver.views.push_notifications.remove_apns_device_token'}),
path('users/me/android_gcm_reg_id', rest_dispatch,
{'POST': 'zerver.views.push_notifications.add_android_reg_id',
'DELETE': 'zerver.views.push_notifications.remove_android_reg_id'}),
# user_groups -> zerver.views.user_groups
path('user_groups', rest_dispatch,
{'GET': 'zerver.views.user_groups.get_user_group'}),
path('user_groups/create', rest_dispatch,
{'POST': 'zerver.views.user_groups.add_user_group'}),
path('user_groups/<int:user_group_id>', rest_dispatch,
{'PATCH': 'zerver.views.user_groups.edit_user_group',
'DELETE': 'zerver.views.user_groups.delete_user_group'}),
path('user_groups/<int:user_group_id>/members', rest_dispatch,
{'POST': 'zerver.views.user_groups.update_user_group_backend'}),
# users/me -> zerver.views.user_settings
path('users/me/api_key/regenerate', rest_dispatch,
{'POST': 'zerver.views.user_settings.regenerate_api_key'}),
path('users/me/enter-sends', rest_dispatch,
{'POST': ('zerver.views.user_settings.change_enter_sends',
# This endpoint should be folded into user settings
{'intentionally_undocumented'})}),
path('users/me/avatar', rest_dispatch,
{'POST': 'zerver.views.user_settings.set_avatar_backend',
'DELETE': 'zerver.views.user_settings.delete_avatar_backend'}),
# users/me/hotspots -> zerver.views.hotspots
path('users/me/hotspots', rest_dispatch,
{'POST': ('zerver.views.hotspots.mark_hotspot_as_read',
# This endpoint is low priority for documentation as
# it is part of the webapp-specific tutorial.
{'intentionally_undocumented'})}),
# users/me/tutorial_status -> zerver.views.tutorial
path('users/me/tutorial_status', rest_dispatch,
{'POST': ('zerver.views.tutorial.set_tutorial_status',
# This is a relic of an old Zulip tutorial model and
# should be deleted.
{'intentionally_undocumented'})}),
# settings -> zerver.views.user_settings
path('settings', rest_dispatch,
{'PATCH': 'zerver.views.user_settings.json_change_settings'}),
path('settings/display', rest_dispatch,
{'PATCH': 'zerver.views.user_settings.update_display_settings_backend'}),
path('settings/notifications', rest_dispatch,
{'PATCH': 'zerver.views.user_settings.json_change_notify_settings'}),
# users/me/alert_words -> zerver.views.alert_words
path('users/me/alert_words', rest_dispatch,
{'GET': 'zerver.views.alert_words.list_alert_words',
'POST': 'zerver.views.alert_words.add_alert_words',
'DELETE': 'zerver.views.alert_words.remove_alert_words'}),
# users/me/custom_profile_data -> zerver.views.custom_profile_data
path('users/me/profile_data', rest_dispatch,
{'PATCH': 'zerver.views.custom_profile_fields.update_user_custom_profile_data',
'DELETE': 'zerver.views.custom_profile_fields.remove_user_custom_profile_data'}),
path('users/me/<int:stream_id>/topics', rest_dispatch,
{'GET': 'zerver.views.streams.get_topics_backend'}),
# streams -> zerver.views.streams
# (this API is only used externally)
path('streams', rest_dispatch,
{'GET': 'zerver.views.streams.get_streams_backend'}),
# GET returns `stream_id`, stream name should be encoded in the url query (in `stream` param)
path('get_stream_id', rest_dispatch,
{'GET': 'zerver.views.streams.json_get_stream_id'}),
# GET returns "stream info" (undefined currently?), HEAD returns whether stream exists (200 or 404)
path('streams/<int:stream_id>/members', rest_dispatch,
{'GET': 'zerver.views.streams.get_subscribers_backend'}),
path('streams/<int:stream_id>', rest_dispatch,
{'PATCH': 'zerver.views.streams.update_stream_backend',
'DELETE': 'zerver.views.streams.deactivate_stream_backend'}),
# Delete topic in stream
path('streams/<int:stream_id>/delete_topic', rest_dispatch,
{'POST': 'zerver.views.streams.delete_in_topic'}),
path('default_streams', rest_dispatch,
{'POST': 'zerver.views.streams.add_default_stream',
'DELETE': 'zerver.views.streams.remove_default_stream'}),
path('default_stream_groups/create', rest_dispatch,
{'POST': 'zerver.views.streams.create_default_stream_group'}),
path('default_stream_groups/<int:group_id>', rest_dispatch,
{'PATCH': 'zerver.views.streams.update_default_stream_group_info',
'DELETE': 'zerver.views.streams.remove_default_stream_group'}),
path('default_stream_groups/<int:group_id>/streams', rest_dispatch,
{'PATCH': 'zerver.views.streams.update_default_stream_group_streams'}),
# GET lists your streams, POST bulk adds, PATCH bulk modifies/removes
path('users/me/subscriptions', rest_dispatch,
{'GET': 'zerver.views.streams.list_subscriptions_backend',
'POST': 'zerver.views.streams.add_subscriptions_backend',
'PATCH': 'zerver.views.streams.update_subscriptions_backend',
'DELETE': 'zerver.views.streams.remove_subscriptions_backend'}),
# muting -> zerver.views.muting
path('users/me/subscriptions/muted_topics', rest_dispatch,
{'PATCH': 'zerver.views.muting.update_muted_topic'}),
# used to register for an event queue in tornado
path('register', rest_dispatch,
{'POST': 'zerver.views.events_register.events_register_backend'}),
# events -> zerver.tornado.views
path('events', rest_dispatch,
{'GET': 'zerver.tornado.views.get_events',
'DELETE': 'zerver.tornado.views.cleanup_event_queue'}),
# report -> zerver.views.report
#
# These endpoints are for internal error/performance reporting
# from the browser to the webapp, and we don't expect to ever
# include in our API documentation.
path('report/error', rest_dispatch,
# Logged-out browsers can hit this endpoint, for portico page JS exceptions.
{'POST': ('zerver.views.report.report_error', {'allow_anonymous_user_web',
'intentionally_undocumented'})}),
path('report/send_times', rest_dispatch,
{'POST': ('zerver.views.report.report_send_times', {'intentionally_undocumented'})}),
path('report/narrow_times', rest_dispatch,
{'POST': ('zerver.views.report.report_narrow_times', {'intentionally_undocumented'})}),
path('report/unnarrow_times', rest_dispatch,
{'POST': ('zerver.views.report.report_unnarrow_times', {'intentionally_undocumented'})}),
# Used to generate a Zoom video call URL
path('calls/zoom/create', rest_dispatch,
{'POST': 'zerver.views.video_calls.make_zoom_video_call'}),
# Used to generate a Big Blue Button video call URL
path('calls/bigbluebutton/create', rest_dispatch,
{'GET': 'zerver.views.video_calls.get_bigbluebutton_url'}),
# export/realm -> zerver.views.realm_export
path('export/realm', rest_dispatch,
{'POST': 'zerver.views.realm_export.export_realm',
'GET': 'zerver.views.realm_export.get_realm_exports'}),
re_path(r'^export/realm/(?P<export_id>.*)$', rest_dispatch,
{'DELETE': 'zerver.views.realm_export.delete_realm_export'}),
]
# These views serve pages (HTML). As such, their internationalization
# must depend on the url.
#
# If you're adding a new page to the website (as opposed to a new
# endpoint for use by code), you should add it here.
i18n_urls = [
path('', zerver.views.home.home, name='zerver.views.home.home'),
# We have a desktop-specific landing page in case we change our /
# to not log in in the future. We don't want to require a new
# desktop app build for everyone in that case
path('desktop_home/', zerver.views.home.desktop_home,
name='zerver.views.home.desktop_home'),
# Backwards-compatibility (legacy) Google auth URL for the mobile
# apps; see https://github.com/zulip/zulip/issues/13081 for
# background. We can remove this once older versions of the
# mobile app are no longer present in the wild.
re_path(r'accounts/login/(google)/$', zerver.views.auth.start_social_login,
name='login-social'),
path('accounts/login/start/sso/', zerver.views.auth.start_remote_user_sso, name='start-login-sso'),
path('accounts/login/sso/', zerver.views.auth.remote_user_sso, name='login-sso'),
path('accounts/login/jwt/', zerver.views.auth.remote_user_jwt, name='login-jwt'),
re_path(r'^accounts/login/social/([\w,-]+)$', zerver.views.auth.start_social_login,
name='login-social'),
re_path(r'^accounts/login/social/([\w,-]+)/([\w,-]+)$', zerver.views.auth.start_social_login,
name='login-social-extra-arg'),
re_path(r'^accounts/register/social/([\w,-]+)$',
zerver.views.auth.start_social_signup,
name='signup-social'),
re_path(r'^accounts/register/social/([\w,-]+)/([\w,-]+)$',
zerver.views.auth.start_social_signup,
name='signup-social-extra-arg'),
re_path(r'^accounts/login/subdomain/([^/]+)$', zerver.views.auth.log_into_subdomain,
name='zerver.views.auth.log_into_subdomain'),
path('accounts/login/local/', zerver.views.auth.dev_direct_login,
name='zerver.views.auth.dev_direct_login'),
# We have two entries for accounts/login; only the first one is
# used for URL resolution. The second here is to allow
# reverse("django.contrib.auth.views.login") in templates to
# return `/accounts/login/`.
path('accounts/login/', zerver.views.auth.login_page,
{'template_name': 'zerver/login.html'}, name='zerver.views.auth.login_page'),
path('accounts/login/', LoginView.as_view(template_name='zerver/login.html'),
name='django.contrib.auth.views.login'),
path('accounts/logout/', zerver.views.auth.logout_then_login,
name='zerver.views.auth.logout_then_login'),
path('accounts/webathena_kerberos_login/',
zerver.views.zephyr.webathena_kerberos_login,
name='zerver.views.zephyr.webathena_kerberos_login'),
path('accounts/password/reset/', zerver.views.auth.password_reset,
name='zerver.views.auth.password_reset'),
path('accounts/password/reset/done/',
PasswordResetDoneView.as_view(template_name='zerver/reset_emailed.html')),
re_path(r'^accounts/password/reset/(?P<uidb64>[0-9A-Za-z]+)/(?P<token>.+)/$',
PasswordResetConfirmView.as_view(success_url='/accounts/password/done/',
template_name='zerver/reset_confirm.html',
form_class=zerver.forms.LoggingSetPasswordForm),
name='django.contrib.auth.views.password_reset_confirm'),
path('accounts/password/done/',
PasswordResetCompleteView.as_view(template_name='zerver/reset_done.html')),
path('accounts/deactivated/',
zerver.views.auth.show_deactivation_notice,
name='zerver.views.auth.show_deactivation_notice'),
# Displays digest email content in browser.
path('digest/', zerver.views.digest.digest_page),
# Registration views, require a confirmation ID.
path('accounts/home/', zerver.views.registration.accounts_home,
name='zerver.views.registration.accounts_home'),
re_path(r'^accounts/send_confirm/(?P<email>[\S]+)?$',
TemplateView.as_view(
template_name='zerver/accounts_send_confirm.html'),
name='signup_send_confirm'),
re_path(r'^accounts/new/send_confirm/(?P<email>[\S]+)?$',
TemplateView.as_view(
template_name='zerver/accounts_send_confirm.html'),
{'realm_creation': True}, name='new_realm_send_confirm'),
path('accounts/register/', zerver.views.registration.accounts_register,
name='zerver.views.registration.accounts_register'),
re_path(r'^accounts/do_confirm/(?P<confirmation_key>[\w]+)$',
zerver.views.registration.check_prereg_key_and_redirect,
name='check_prereg_key_and_redirect'),
re_path(r'^accounts/confirm_new_email/(?P<confirmation_key>[\w]+)$',
zerver.views.user_settings.confirm_email_change,
name='zerver.views.user_settings.confirm_email_change'),
# Email unsubscription endpoint. Allows for unsubscribing from various types of emails,
# including the welcome emails (day 1 & 2), missed PMs, etc.
re_path(r'^accounts/unsubscribe/(?P<email_type>[\w]+)/(?P<confirmation_key>[\w]+)$',
zerver.views.unsubscribe.email_unsubscribe,
name='zerver.views.unsubscribe.email_unsubscribe'),
# Portico-styled page used to provide email confirmation of terms acceptance.
path('accounts/accept_terms/', zerver.views.home.accounts_accept_terms,
name='zerver.views.home.accounts_accept_terms'),
# Find your account
path('accounts/find/', zerver.views.registration.find_account,
name='zerver.views.registration.find_account'),
# Go to organization subdomain
path('accounts/go/', zerver.views.registration.realm_redirect,
name='zerver.views.registration.realm_redirect'),
# Realm Creation
path('new/', zerver.views.registration.create_realm,
name='zerver.views.create_realm'),
re_path(r'^new/(?P<creation_key>[\w]+)$',
zerver.views.registration.create_realm, name='zerver.views.create_realm'),
# Realm Reactivation
re_path(r'^reactivate/(?P<confirmation_key>[\w]+)$', zerver.views.realm.realm_reactivation,
name='zerver.views.realm.realm_reactivation'),
# Global public streams (Zulip's way of doing archives)
path('archive/streams/<int:stream_id>/topics/<str:topic_name>',
zerver.views.archive.archive,
name='zerver.views.archive.archive'),
path('archive/streams/<int:stream_id>/topics',
zerver.views.archive.get_web_public_topics_backend,
name='zerver.views.archive.get_web_public_topics_backend'),
# Login/registration
path('register/', zerver.views.registration.accounts_home, name='register'),
path('login/', zerver.views.auth.login_page, {'template_name': 'zerver/login.html'},
name='zerver.views.auth.login_page'),
re_path(r'^join/(?P<confirmation_key>\S+)/$',
zerver.views.registration.accounts_home_from_multiuse_invite,
name='zerver.views.registration.accounts_home_from_multiuse_invite'),
# Used to generate a Zoom video call URL
path('calls/zoom/register', zerver.views.video_calls.register_zoom_user),
path('calls/zoom/complete', zerver.views.video_calls.complete_zoom_user),
path('calls/zoom/deauthorize', zerver.views.video_calls.deauthorize_zoom_user),
# Used to join a Big Blue Button video call
path('calls/bigbluebutton/join', zerver.views.video_calls.join_bigbluebutton),
# API and integrations documentation
path('integrations/doc-html/<str:integration_name>',
zerver.views.documentation.integration_doc,
name="zerver.views.documentation.integration_doc"),
re_path(r'^integrations/(.*)$', IntegrationView.as_view()),
# Landing page, features pages, signup form, etc.
path('hello/', zerver.views.portico.hello_view, name='landing-page'),
path('new-user/', RedirectView.as_view(url='/hello', permanent=True)),
path('features/', zerver.views.portico.landing_view, {'template_name': 'zerver/features.html'}),
path('plans/', zerver.views.portico.plans_view, name='plans'),
re_path(r'apps/(.*)$', zerver.views.portico.apps_view, name='zerver.views.home.apps_view'),
path('team/', zerver.views.portico.team_view),
path('history/', zerver.views.portico.landing_view, {'template_name': 'zerver/history.html'}),
path('why-zulip/', zerver.views.portico.landing_view, {'template_name': 'zerver/why-zulip.html'}),
path('for/open-source/', zerver.views.portico.landing_view,
{'template_name': 'zerver/for-open-source.html'}),
path('for/research/', zerver.views.portico.landing_view,
{'template_name': 'zerver/for-research.html'}),
path('for/companies/', zerver.views.portico.landing_view,
{'template_name': 'zerver/for-companies.html'}),
path('for/working-groups-and-communities/', zerver.views.portico.landing_view,
{'template_name': 'zerver/for-working-groups-and-communities.html'}),
path('security/', zerver.views.portico.landing_view, {'template_name': 'zerver/security.html'}),
path('atlassian/', zerver.views.portico.landing_view, {'template_name': 'zerver/atlassian.html'}),
# Terms of Service and privacy pages.
path('terms/', zerver.views.portico.terms_view, name='terms'),
path('privacy/', zerver.views.portico.privacy_view, name='privacy'),
re_path(r'^config-error/(?P<error_category_name>[\w,-]+)$', zerver.views.auth.config_error_view,
name='config_error'),
re_path(r'^config-error/remoteuser/(?P<error_category_name>[\w,-]+)$',
zerver.views.auth.config_error_view),
]
# Make a copy of i18n_urls so that they appear without prefix for english
urls = list(i18n_urls)
# Include the dual-use patterns twice
urls += [
path('api/v1/', include(v1_api_and_json_patterns)),
path('json/', include(v1_api_and_json_patterns)),
]
# user_uploads -> zerver.views.upload.serve_file_backend
#
# This url is an exception to the url naming schemes for endpoints. It
# supports both API and session cookie authentication, using a single
# URL for both (not 'api/v1/' or 'json/' prefix). This is required to
# easily support the mobile apps fetching uploaded files without
# having to rewrite URLs, and is implemented using the
# 'override_api_url_scheme' flag passed to rest_dispatch
urls += [
re_path(r'^user_uploads/temporary/([0-9A-Za-z]+)/([^/]+)$',
zerver.views.upload.serve_local_file_unauthed,
name='zerver.views.upload.serve_local_file_unauthed'),
re_path(r'^user_uploads/(?P<realm_id_str>(\d*|unk))/(?P<filename>.*)$',
rest_dispatch,
{'GET': ('zerver.views.upload.serve_file_backend',
{'override_api_url_scheme'})}),
# This endpoint serves thumbnailed versions of images using thumbor;
# it requires an exception for the same reason.
path('thumbnail', rest_dispatch,
{'GET': ('zerver.views.thumbnail.backend_serve_thumbnail',
{'override_api_url_scheme'})}),
# Avatars have the same constraint due to `!avatar` syntax.
re_path(r'^avatar/(?P<email_or_id>[\S]+)/(?P<medium>[\S]+)?$',
rest_dispatch,
{'GET': ('zerver.views.users.avatar',
{'override_api_url_scheme'})}),
re_path(r'^avatar/(?P<email_or_id>[\S]+)$',
rest_dispatch,
{'GET': ('zerver.views.users.avatar',
{'override_api_url_scheme'})}),
]
# This url serves as a way to receive CSP violation reports from the users.
# We use this endpoint to just log these reports.
urls += [
path('report/csp_violations', zerver.views.report.report_csp_violations,
name='zerver.views.report.report_csp_violations'),
]
# This url serves as a way to provide backward compatibility to messages
# rendered at the time Zulip used camo for doing http -> https conversion for
# such links with images previews. Now thumbor can be used for serving such
# images.
urls += [
re_path(r'^external_content/(?P<digest>[\S]+)/(?P<received_url>[\S]+)$',
zerver.views.camo.handle_camo_url,
name='zerver.views.camo.handle_camo_url'),
]
# Incoming webhook URLs
# We don't create urls for particular git integrations here
# because of generic one below
for incoming_webhook in WEBHOOK_INTEGRATIONS:
if incoming_webhook.url_object:
urls.append(incoming_webhook.url_object)
# Desktop-specific authentication URLs
urls += [
path('json/fetch_api_key', rest_dispatch,
{'POST': 'zerver.views.auth.json_fetch_api_key'}),
]
# Mobile-specific authentication URLs
urls += [
# Used as a global check by all mobile clients, which currently send
# requests to https://zulip.com/compatibility almost immediately after
# starting up.
path('compatibility', zerver.views.compatibility.check_global_compatibility),
]
v1_api_mobile_patterns = [
# This json format view used by the mobile apps lists which
# authentication backends the server allows as well as details
# like the requested subdomains'd realm icon (if known) and
# server-specific compatibility.
path('server_settings', zerver.views.auth.api_get_server_settings),
# This json format view used by the mobile apps accepts a username
# password/pair and returns an API key.
path('fetch_api_key', zerver.views.auth.api_fetch_api_key,
name='zerver.views.auth.api_fetch_api_key'),
# This is for the signing in through the devAuthBackEnd on mobile apps.
path('dev_fetch_api_key', zerver.views.auth.api_dev_fetch_api_key,
name='zerver.views.auth.api_dev_fetch_api_key'),
# This is for fetching the emails of the admins and the users.
path('dev_list_users', zerver.views.auth.api_dev_list_users,
name='zerver.views.auth.api_dev_list_users'),
# Used to present the GOOGLE_CLIENT_ID to mobile apps
path('fetch_google_client_id',
zerver.views.auth.api_fetch_google_client_id,
name='zerver.views.auth.api_fetch_google_client_id'),
]
urls += [
path('api/v1/', include(v1_api_mobile_patterns)),
]
# View for uploading messages from email mirror
urls += [
path('email_mirror_message', zerver.views.email_mirror.email_mirror_message,
name='zerver.views.email_mirror.email_mirror_message'),
]
# Include URL configuration files for site-specified extra installed
# Django apps
for app_name in settings.EXTRA_INSTALLED_APPS:
app_dir = os.path.join(settings.DEPLOY_ROOT, app_name)
if os.path.exists(os.path.join(app_dir, 'urls.py')):
urls += [path('', include(f'{app_name}.urls'))]
i18n_urls += import_string(f"{app_name}.urls.i18n_urlpatterns")
# Tornado views
urls += [
# Used internally for communication between Django and Tornado processes
#
# Since these views don't use rest_dispatch, they cannot have
# asynchronous Tornado behavior.
path('notify_tornado', zerver.tornado.views.notify,
name='zerver.tornado.views.notify'),
path('api/v1/events/internal', zerver.tornado.views.get_events_internal),
]
# Python Social Auth
urls += [path('', include('social_django.urls', namespace='social'))]
urls += [path('saml/metadata.xml', zerver.views.auth.saml_sp_metadata)]
# User documentation site
urls += [re_path(r'^help/(?P<article>.*)$',
MarkdownDirectoryView.as_view(template_name='zerver/documentation_main.html',
path_template='/zerver/help/%s.md'))]
urls += [re_path(r'^api/(?P<article>[-\w]*\/?)$',
MarkdownDirectoryView.as_view(template_name='zerver/documentation_main.html',
path_template='/zerver/api/%s.md'))]
# Two Factor urls
if settings.TWO_FACTOR_AUTHENTICATION_ENABLED:
urls += [path('', include(tf_urls)),
path('', include(tf_twilio_urls))]
if settings.DEVELOPMENT:
urls += dev_urls.urls
i18n_urls += dev_urls.i18n_urls
# The sequence is important; if i18n urls don't come first then
# reverse url mapping points to i18n urls which causes the frontend
# tests to fail
urlpatterns = i18n_patterns(*i18n_urls) + urls + legacy_urls
| apache-2.0 |
hmronline/home-assistant | homeassistant/components/media_player/squeezebox.py | 9 | 10171 | """
Support for interfacing to the Logitech SqueezeBox API.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.squeezebox/
"""
import logging
import telnetlib
import urllib.parse
from homeassistant.components.media_player import (
DOMAIN, MEDIA_TYPE_MUSIC, SUPPORT_NEXT_TRACK, SUPPORT_PAUSE,
SUPPORT_PREVIOUS_TRACK, SUPPORT_SEEK, SUPPORT_TURN_OFF, SUPPORT_TURN_ON,
SUPPORT_VOLUME_MUTE, SUPPORT_VOLUME_SET, MediaPlayerDevice)
from homeassistant.const import (
CONF_HOST, CONF_PASSWORD, CONF_USERNAME, STATE_IDLE, STATE_OFF,
STATE_PAUSED, STATE_PLAYING, STATE_UNKNOWN)
_LOGGER = logging.getLogger(__name__)
SUPPORT_SQUEEZEBOX = SUPPORT_PAUSE | SUPPORT_VOLUME_SET | \
SUPPORT_VOLUME_MUTE | SUPPORT_PREVIOUS_TRACK | SUPPORT_NEXT_TRACK | \
SUPPORT_SEEK | SUPPORT_TURN_ON | SUPPORT_TURN_OFF
KNOWN_DEVICES = []
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the squeezebox platform."""
if discovery_info is not None:
host = discovery_info[0]
port = 9090
else:
host = config.get(CONF_HOST)
port = int(config.get('port', 9090))
if not host:
_LOGGER.error(
"Missing required configuration items in %s: %s",
DOMAIN,
CONF_HOST)
return False
# Only add a media server once
if host in KNOWN_DEVICES:
return False
KNOWN_DEVICES.append(host)
lms = LogitechMediaServer(
host, port,
config.get(CONF_USERNAME),
config.get(CONF_PASSWORD))
if not lms.init_success:
return False
add_devices(lms.create_players())
return True
class LogitechMediaServer(object):
"""Representation of a Logitech media server."""
def __init__(self, host, port, username, password):
"""Initialize the Logitech device."""
self.host = host
self.port = port
self._username = username
self._password = password
self.http_port = self._get_http_port()
self.init_success = True if self.http_port else False
def _get_http_port(self):
"""Get http port from media server, it is used to get cover art."""
http_port = None
try:
http_port = self.query('pref', 'httpport', '?')
if not http_port:
_LOGGER.error(
"Unable to read data from server %s:%s",
self.host,
self.port)
return
return http_port
except ConnectionError as ex:
_LOGGER.error(
"Failed to connect to server %s:%s - %s",
self.host,
self.port,
ex)
return
def create_players(self):
"""Create a list of SqueezeBoxDevices connected to the LMS."""
players = []
count = self.query('player', 'count', '?')
for index in range(0, int(count)):
player_id = self.query('player', 'id', str(index), '?')
player = SqueezeBoxDevice(self, player_id)
players.append(player)
return players
def query(self, *parameters):
"""Send request and await response from server."""
telnet = telnetlib.Telnet(self.host, self.port)
if self._username and self._password:
telnet.write('login {username} {password}\n'.format(
username=self._username,
password=self._password).encode('UTF-8'))
telnet.read_until(b'\n', timeout=3)
message = '{}\n'.format(' '.join(parameters))
telnet.write(message.encode('UTF-8'))
response = telnet.read_until(b'\n', timeout=3)\
.decode('UTF-8')\
.split(' ')[-1]\
.strip()
telnet.write(b'exit\n')
return urllib.parse.unquote(response)
def get_player_status(self, player):
"""Get ithe status of a player."""
# (title) : Song title
# Requested Information
# a (artist): Artist name 'artist'
# d (duration): Song duration in seconds 'duration'
# K (artwork_url): URL to remote artwork
tags = 'adK'
new_status = {}
telnet = telnetlib.Telnet(self.host, self.port)
telnet.write('{player} status - 1 tags:{tags}\n'.format(
player=player,
tags=tags
).encode('UTF-8'))
response = telnet.read_until(b'\n', timeout=3)\
.decode('UTF-8')\
.split(' ')
telnet.write(b'exit\n')
for item in response:
parts = urllib.parse.unquote(item).partition(':')
new_status[parts[0]] = parts[2]
return new_status
# pylint: disable=too-many-instance-attributes
# pylint: disable=too-many-public-methods
class SqueezeBoxDevice(MediaPlayerDevice):
"""Representation of a SqueezeBox device."""
# pylint: disable=too-many-arguments, abstract-method
def __init__(self, lms, player_id):
"""Initialize the SqeezeBox device."""
super(SqueezeBoxDevice, self).__init__()
self._lms = lms
self._id = player_id
self._name = self._lms.query(self._id, 'name', '?')
self._status = self._lms.get_player_status(self._id)
@property
def name(self):
"""Return the name of the device."""
return self._name
@property
def state(self):
"""Return the state of the device."""
if 'power' in self._status and self._status['power'] == '0':
return STATE_OFF
if 'mode' in self._status:
if self._status['mode'] == 'pause':
return STATE_PAUSED
if self._status['mode'] == 'play':
return STATE_PLAYING
if self._status['mode'] == 'stop':
return STATE_IDLE
return STATE_UNKNOWN
def update(self):
"""Retrieve latest state."""
self._status = self._lms.get_player_status(self._id)
@property
def volume_level(self):
"""Volume level of the media player (0..1)."""
if 'mixer volume' in self._status:
return int(float(self._status['mixer volume'])) / 100.0
@property
def is_volume_muted(self):
"""Return true if volume is muted."""
if 'mixer volume' in self._status:
return self._status['mixer volume'].startswith('-')
@property
def media_content_id(self):
"""Content ID of current playing media."""
if 'current_title' in self._status:
return self._status['current_title']
@property
def media_content_type(self):
"""Content type of current playing media."""
return MEDIA_TYPE_MUSIC
@property
def media_duration(self):
"""Duration of current playing media in seconds."""
if 'duration' in self._status:
return int(float(self._status['duration']))
@property
def media_image_url(self):
"""Image url of current playing media."""
if 'artwork_url' in self._status:
media_url = self._status['artwork_url']
elif 'id' in self._status:
media_url = ('/music/{track_id}/cover.jpg').format(
track_id=self._status['id'])
else:
media_url = ('/music/current/cover.jpg?player={player}').format(
player=self._id)
base_url = 'http://{server}:{port}/'.format(
server=self._lms.host,
port=self._lms.http_port)
return urllib.parse.urljoin(base_url, media_url)
@property
def media_title(self):
"""Title of current playing media."""
if 'artist' in self._status and 'title' in self._status:
return '{artist} - {title}'.format(
artist=self._status['artist'],
title=self._status['title']
)
if 'current_title' in self._status:
return self._status['current_title']
@property
def supported_media_commands(self):
"""Flag of media commands that are supported."""
return SUPPORT_SQUEEZEBOX
def turn_off(self):
"""Turn off media player."""
self._lms.query(self._id, 'power', '0')
self.update_ha_state()
def volume_up(self):
"""Volume up media player."""
self._lms.query(self._id, 'mixer', 'volume', '+5')
self.update_ha_state()
def volume_down(self):
"""Volume down media player."""
self._lms.query(self._id, 'mixer', 'volume', '-5')
self.update_ha_state()
def set_volume_level(self, volume):
"""Set volume level, range 0..1."""
volume_percent = str(int(volume*100))
self._lms.query(self._id, 'mixer', 'volume', volume_percent)
self.update_ha_state()
def mute_volume(self, mute):
"""Mute (true) or unmute (false) media player."""
mute_numeric = '1' if mute else '0'
self._lms.query(self._id, 'mixer', 'muting', mute_numeric)
self.update_ha_state()
def media_play_pause(self):
"""Send pause command to media player."""
self._lms.query(self._id, 'pause')
self.update_ha_state()
def media_play(self):
"""Send play command to media player."""
self._lms.query(self._id, 'play')
self.update_ha_state()
def media_pause(self):
"""Send pause command to media player."""
self._lms.query(self._id, 'pause', '1')
self.update_ha_state()
def media_next_track(self):
"""Send next track command."""
self._lms.query(self._id, 'playlist', 'index', '+1')
self.update_ha_state()
def media_previous_track(self):
"""Send next track command."""
self._lms.query(self._id, 'playlist', 'index', '-1')
self.update_ha_state()
def media_seek(self, position):
"""Send seek command."""
self._lms.query(self._id, 'time', position)
self.update_ha_state()
def turn_on(self):
"""Turn the media player on."""
self._lms.query(self._id, 'power', '1')
self.update_ha_state()
| mit |
Peddle/hue | desktop/core/ext-py/boto-2.38.0/boto/dynamodb/__init__.py | 145 | 1697 | # Copyright (c) 2011 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2011 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 DynamoDB service.
:rtype: list
:return: A list of :class:`boto.regioninfo.RegionInfo`
"""
import boto.dynamodb.layer2
return get_regions('dynamodb', connection_cls=boto.dynamodb.layer2.Layer2)
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 |
mfherbst/spack | var/spack/repos/builtin/packages/r-annotate/package.py | 2 | 1790 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/spack/spack
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
#
# This program 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) version 2.1, February 1999.
#
# 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 terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
class RAnnotate(RPackage):
"""Using R enviroments for annotation."""
homepage = "https://www.bioconductor.org/packages/annotate/"
git = "https://git.bioconductor.org/packages/annotate.git"
version('1.54.0', commit='860cc5b696795a31b18beaf4869f9c418d74549e')
depends_on('r@3.4.0:3.4.9', when='@1.54.0')
depends_on('r-annotationdbi', type=('build', 'run'))
depends_on('r-xml', type=('build', 'run'))
depends_on('r-rcurl', type=('build', 'run'))
depends_on('r-xtable', type=('build', 'run'))
| lgpl-2.1 |
rchatterjee/nocrack | Grammar/word.py | 1 | 509704 | W = [753,
607,
59,
501,
1283,
61,
898,
325,
508,
142,
298,
542,
42,
38,
252,
46,
92,
81,
85,
590,
239,
40,
44,
5200,
1403,
170,
34,
77,
52,
304,
120,
37,
42,
902,
125,
13,
98,
135,
30,
18,
12,
91,
460,
335,
12,
19,
12,
206,
17,
12,
13,
20,
12,
14,
11,
31,
10,
15,
10,
12,
545,
66,
11,
12,
10,
11,
12,
32,
10,
446,
30,
27,
12,
104,
29,
33,
12,
60,
58,
29,
11,
13,
87,
94,
448,
32,
11,
12,
11,
16,
178,
484,
561,
16,
26,
890,
24,
444,
23,
86,
11,
13,
10,
10,
10,
13,
20,
11,
15,
32,
12,
26,
15,
442,
11,
16,
36,
10,
462,
13,
16,
29,
29,
93,
11,
34,
12,
79,
32,
12,
18,
32,
12,
31,
34,
18,
12,
35,
13,
17,
891,
444,
453,
18,
526,
72,
26,
76,
14,
18,
21,
61,
11,
17,
60,
955,
14,
37,
46,
29,
10,
34,
40,
174,
11,
18,
454,
15,
12,
13,
10,
11,
11,
12,
62,
442,
106,
17,
17,
19,
454,
448,
12,
455,
12,
12,
88,
13,
35,
17,
11,
12,
11,
11,
11,
42,
51,
10,
14,
61,
43,
12,
109,
17,
19,
10,
94,
32,
100,
18,
19,
52,
220,
20,
14,
12,
11,
16,
28,
442,
41,
444,
12,
19,
10,
12,
37,
12,
285,
20,
24,
18,
13,
11,
10,
30,
42,
13,
12,
28,
67,
21,
14,
25,
37,
11,
12,
17,
12,
199,
10,
16,
33,
13,
17,
17,
32,
31,
41,
60,
49,
78,
38,
23,
33,
444,
10,
13,
12,
16,
29,
36,
174,
73,
43,
17,
11,
136,
11,
20,
52,
12,
13,
10,
12,
42,
129,
75,
24,
16,
12,
17,
471,
31,
25,
11,
17,
20,
32,
27,
17,
15,
28,
12,
11,
11,
47,
14,
72,
10,
93,
12,
44,
442,
355,
18,
33,
124,
44,
32,
11,
22,
18,
30,
17,
442,
45,
67,
10,
442,
23,
114,
15,
42,
59,
65,
63,
26,
14,
11,
11,
15,
18,
41,
25,
12,
13,
13,
11,
12,
24,
29,
14,
18,
13,
17,
15,
25,
14,
132,
48,
60,
17,
77,
163,
61,
43,
11,
447,
22,
46,
10,
27,
30,
26,
53,
41,
17,
451,
10,
10,
18,
30,
13,
139,
72,
19,
29,
44,
23,
11,
11,
15,
248,
26,
14,
31,
10,
11,
22,
157,
11,
10,
29,
10,
100,
18,
12,
27,
51,
22,
21,
15,
12,
11,
16,
11,
12,
15,
23,
59,
23,
14,
81,
16,
10,
10,
10,
11,
15,
59,
31,
31,
152,
30,
30,
30,
28,
18,
37,
19,
11,
31,
56,
31,
14,
10,
13,
36,
16,
11,
11,
15,
11,
10,
10,
10,
13,
17,
12,
12,
42,
23,
24,
26,
128,
14,
10,
57,
348,
10,
13,
20,
10,
11,
10,
12,
11,
18,
13,
13,
31,
10,
10,
31,
112,
135,
34,
12,
27,
12,
29,
64,
20,
11,
16,
28,
21,
14,
12,
19,
18,
10,
11,
18,
174,
10,
20,
1485,
10,
10,
26,
49,
127,
11,
15,
135,
14,
10,
11,
25,
11,
10,
10,
29,
19,
10,
20,
10,
11,
12,
21,
21,
10,
23,
17,
14,
23,
19,
41,
13,
11,
19,
11,
18,
13,
40,
10,
14,
10,
11,
16,
16,
443,
11,
15,
15,
34,
10,
12,
23,
12,
14,
10,
24,
25,
10,
16,
15,
11,
14,
12,
13,
15,
12,
12,
11,
11,
11,
10,
13,
21,
19,
12,
73,
170,
18,
16,
39,
11,
13,
12,
16,
10,
12,
34,
12,
16,
73,
29,
17,
10,
10,
13,
11,
10,
18,
11,
12,
44,
11,
10,
10,
19,
18,
14,
24,
22,
10,
20,
23,
20,
15,
11,
11,
14,
15,
12,
13,
12,
13,
10,
11,
30,
10,
11,
16,
12,
14,
12,
10,
30,
19,
148,
32,
23,
44,
31,
12,
10,
128,
15,
10,
26,
12,
11,
10,
15,
1918,
22,
11,
10,
17,
20,
30,
15,
10,
23,
13,
12,
10,
10,
25,
11,
89,
12,
11,
11,
45,
41,
14,
14,
13,
15,
28,
446,
13,
22,
13,
49,
133,
30,
10,
29,
12,
11,
16,
10,
22,
53,
91,
11,
18,
48,
13,
13,
28,
10,
43,
11,
10,
17,
126,
466,
32,
11,
103,
177,
16,
40,
16,
42,
13,
311,
54,
83,
12,
186,
912,
39,
107,
166,
28,
122,
323,
124,
12,
20,
16,
30,
21,
37,
11,
10,
13,
28,
10,
39,
284,
72,
147,
33,
69,
2060,
13,
16,
30,
615,
35,
68,
10,
14,
754,
29,
49,
43,
48,
14,
39,
221,
31,
10,
20,
17,
20,
31,
32,
95,
11,
55,
23,
222,
48,
10,
205,
17,
932,
49,
16,
30,
34,
1375,
299,
21,
12,
42,
22,
53,
33,
47,
57,
24,
106,
12,
17,
11,
157,
16,
11,
72,
72,
64,
16,
26,
11,
105,
96,
72,
10,
10,
11,
18,
16,
25,
73,
14,
24,
14,
24,
80,
12,
17,
14,
10,
14,
14,
11,
11,
34,
10,
44,
10,
16,
21,
12,
122,
13,
44,
39,
12,
25,
10,
10,
14,
267,
24,
35,
16,
19,
107,
306,
16,
65,
14,
1704,
23,
61,
11,
87,
251,
12,
470,
14,
1022,
72,
13,
19,
19,
45,
66,
30,
22,
12,
97,
25,
11,
11,
13,
11,
43,
18,
11,
12,
30,
24,
36,
80,
129,
12,
11,
13,
18,
11,
16,
36,
112,
16,
16,
15,
129,
13549,
117,
10,
18,
10,
13,
11,
13,
22,
12,
80,
347,
62,
102,
212,
1041,
372,
252,
552,
353,
62,
772,
78,
126,
73,
303,
22,
16,
114,
424,
23,
1955,
25,
10,
132,
1524,
13,
37,
28,
18,
50,
100,
79,
41,
42,
208,
27,
137,
65,
12,
23,
12,
44,
16,
27,
319,
22,
45,
42,
39,
145,
89,
153,
60,
89,
17,
493,
11,
126,
16,
181,
12,
84,
40,
146,
64,
43,
55,
71,
45,
125,
10,
17,
189,
73,
15,
67,
702,
438,
315,
89,
110,
10,
121,
57,
55,
11,
519,
31,
103,
15,
185,
51,
24,
17,
205,
35,
49,
263,
14,
594,
30,
88,
96,
53,
246,
14,
11,
77,
17,
12,
15,
58,
13,
12,
15,
30,
30,
30,
12,
26,
41,
243,
13,
11,
15,
11,
14,
23,
14,
12,
22,
11,
39,
16,
19,
69,
69,
250,
32,
20,
10,
388,
164,
201,
10,
66,
12,
134,
11,
442,
14,
11,
10,
10,
53,
972,
10,
56,
10,
75,
62,
26,
30,
26,
14,
10,
70,
19,
200,
10,
30,
12,
23,
12,
29,
21,
12,
12,
104,
15,
442,
11,
37,
146,
12,
10,
37,
593,
15,
10,
34,
43,
11,
11,
17,
237,
17,
10,
100,
22,
12,
42,
11,
10,
37,
464,
165,
56,
20,
33,
11,
13,
14,
18,
13,
58,
75,
23,
285,
18,
44,
10,
55,
37,
1259,
23,
82,
1086,
113,
75,
91,
11,
46,
16,
14,
11,
13,
479,
36,
18,
14,
293,
13,
14,
15,
22,
64,
75,
114,
22,
35,
15,
683,
19,
13,
75,
126,
12,
14,
10,
10,
422,
11,
12,
39,
14,
17,
230,
17,
10,
46,
41,
12,
23,
10,
20,
19,
587,
38,
55,
24,
43,
16,
18,
23,
24,
21,
22,
44,
10,
15,
77,
16,
61,
21,
19,
10,
15,
19,
10,
453,
24,
36,
39,
10,
60,
10,
30,
17,
10,
60,
10,
14,
12,
39,
29,
22,
24,
13,
126,
24,
40,
63,
13,
184,
21,
12,
50,
10,
52,
15,
20,
21,
245,
10,
10,
12,
109,
17,
24,
41,
15,
14,
10,
10,
15,
442,
54,
18,
92,
94,
442,
19,
31,
12,
15,
11,
28,
76,
33,
18,
11,
33,
452,
13,
55,
22,
16,
55,
441,
94,
441,
15,
13,
39,
12,
29,
17,
12,
12,
13,
10,
35,
11,
548,
546,
248,
100,
15,
214,
184,
48,
61,
322,
11,
76,
13,
44,
137,
33,
261,
37,
35,
10,
20,
10,
35,
48,
41,
100,
56,
104,
63,
109,
148,
39,
118,
43,
30,
11,
30,
28,
185,
13,
447,
41,
152,
10,
64,
94,
436,
85,
15,
13,
604,
34,
20,
27,
69,
36,
12,
16,
27,
825,
493,
81,
97,
1032,
72,
24,
20,
12,
561,
43,
81,
10,
72,
11,
27,
13,
100,
292,
23,
567,
14,
119,
51,
10,
256,
45,
36,
24,
25,
136,
10,
27,
24,
1086,
142,
361,
14,
12,
47,
270,
52,
46,
13,
21,
10,
53,
31,
10,
38,
19,
41,
12,
187,
17,
11,
122,
12,
13,
15,
94,
12,
51,
52,
115,
47,
12,
17,
1091,
127,
12,
21,
10,
15,
11,
68,
16,
153,
13,
24,
138,
32,
14,
27,
25,
20,
28,
24,
26,
10,
27,
14,
44,
20,
10,
16,
40,
13,
37,
73,
285,
13,
86,
65,
13,
110,
362,
10,
155,
11,
15,
11,
80,
82,
98,
76,
360,
13,
47,
18,
50,
25,
10,
19,
18,
241,
11,
12,
27,
10,
156,
11,
26,
11,
14,
50,
69,
28,
67,
25,
550,
18,
10,
10,
32,
10,
16,
11,
33,
66,
30,
10,
124,
384,
11,
22,
66,
44,
94,
83,
51,
374,
10,
459,
43,
40,
47,
33,
15,
11,
19,
11,
11,
31,
33,
28,
53,
28,
10,
26,
12,
29,
11,
18,
26,
51,
785,
24,
12,
10,
66,
23,
19,
12,
12,
14,
16,
27,
14,
51,
11,
42,
11,
51,
23,
78,
26,
28,
20,
14,
10,
31,
11,
74,
78,
497,
128,
10,
298,
78,
553,
189,
172,
36,
155,
28,
16,
18,
138,
21,
103,
10,
1380,
97,
44,
214,
35,
62,
190,
10,
135,
148,
68,
45,
19,
14,
10,
10,
168,
14,
17,
26,
56,
160,
37,
75,
473,
135,
22,
500,
11,
135,
71,
25,
38,
24,
12,
256,
41,
18,
17,
15,
158,
77,
16,
667,
241,
239,
11,
50,
236,
25,
179,
225,
17,
10,
14,
19,
14,
11,
43,
103,
35,
16,
75,
15,
99,
404,
36,
117,
88,
25,
799,
32,
14,
181,
57,
88,
11,
12,
27,
592,
4084,
539,
472,
26,
77,
27,
84,
57,
22,
107,
35,
174,
12,
22,
15,
13,
30,
10,
10,
64,
104,
11,
35,
174,
92,
86,
30,
13,
12,
15,
13,
11,
12,
442,
16,
30,
13,
11,
1030,
159,
10,
33,
12,
24,
261,
19,
10,
18,
11,
13,
18,
13,
26,
17,
27,
14,
11,
53,
46,
23,
15,
10,
16,
72,
31,
538,
98,
36,
261,
184,
368,
16,
42,
29,
128,
66,
101,
602,
14,
28,
10,
22,
18,
155,
21,
78,
10,
12,
16,
309,
63,
19,
58,
375,
19,
21,
21,
72,
36,
36,
96,
375,
445,
11,
136,
148,
1126,
62,
105,
452,
757,
111,
103,
12,
23,
12,
11,
10,
11,
285,
12,
111,
73,
263,
95,
235,
23,
55,
47,
79,
19,
21,
11,
12,
10,
60,
103,
44,
19,
72,
292,
161,
75,
52,
48,
154,
149,
85,
60,
10,
383,
10,
22,
13,
28,
21,
15,
108,
27,
17,
108,
71,
19,
17,
520,
54,
12,
63,
309,
50,
16,
20,
14,
11,
17,
18,
26,
12,
11,
16,
21,
88,
23,
12,
17,
11,
13,
30,
148,
17,
16,
92,
24,
11,
11,
22,
74,
55,
21,
11,
10,
14,
10,
30,
474,
12,
16,
28,
14,
25,
30,
41,
19,
15,
15,
11,
24,
25,
105,
83,
54,
58,
43,
109,
26,
763,
69,
74,
43,
21,
22,
10,
90,
18,
14,
99,
344,
92,
20,
12,
19,
106,
18,
16,
189,
60,
264,
12,
12,
64,
16,
14,
496,
56,
134,
67,
109,
21,
173,
67,
32,
33,
105,
129,
50,
13,
45,
20,
31,
417,
16,
88,
11,
20,
21,
14,
11,
41,
582,
41,
15,
31,
18,
16,
248,
34,
156,
13,
34,
72,
24,
17,
71,
28,
10,
24,
12,
11,
365,
41,
207,
13,
13,
40,
130,
17,
122,
44,
16,
22,
53,
11,
20,
18,
50,
1883,
144,
120,
23,
128,
40,
103,
46,
86,
11,
31,
14,
11,
11,
82,
26,
485,
33,
72,
10,
14,
32,
39,
26,
11,
31,
71,
17,
22,
26,
11,
19,
181,
24,
12,
10,
43,
101,
13,
125,
13,
20,
33,
88,
20,
17,
11,
30,
33,
27,
29,
59,
11,
15,
21,
246,
129,
20,
61,
23,
14,
10,
34,
49,
38,
10,
22,
11,
12,
10,
16,
10,
65,
10,
20,
82,
120,
27,
161,
25,
125,
177,
12,
123,
37,
58,
55,
16,
95,
75,
77,
301,
27,
68,
11,
110,
271,
109,
59,
12,
10,
31,
42,
169,
54,
58,
51,
11,
238,
25,
153,
12,
1348,
144,
76,
16,
11,
19,
28,
15,
132,
41,
307,
89,
73,
142,
65,
13,
34,
33,
13,
28,
14,
52,
46,
15,
28,
56,
801,
45,
123,
25,
15,
12,
188,
35,
32,
22,
31,
50,
32,
47,
12,
11,
35,
24,
34,
15,
48,
97,
60,
112,
71,
38,
96,
26,
35,
38,
17,
13,
16,
70,
53,
12,
43,
14,
10,
27,
19,
12,
19,
37,
14,
28,
13,
33,
17,
11,
12,
56,
12,
17,
39,
14,
30,
24,
447,
11,
32,
11,
16,
10,
92,
25,
23,
46,
26,
12,
10,
13,
16,
14,
19,
14,
10,
50,
27,
14,
12,
40,
12,
30,
16,
10,
16,
22,
30,
17,
16,
10,
11,
16,
43,
18,
92,
172,
13,
15,
73,
20,
20,
101,
45,
76,
41,
634,
16,
77,
19,
13,
24,
126,
207,
348,
261,
27,
1476,
43,
35,
289,
11,
11,
41,
27,
18,
83,
44,
227,
12,
89,
2743,
352,
49,
20,
17,
11,
15,
1469,
19,
27,
25,
43,
15,
261,
974,
96,
202,
94,
299,
171,
17,
319,
44,
10,
133,
16,
33,
24,
13,
11,
111,
60,
2571,
172,
11,
83,
49,
26,
15,
15,
79,
14,
878,
136,
60,
20,
21,
61,
40,
260,
45,
64,
15,
15,
26,
61,
10,
12,
10,
143,
10,
16,
190,
13,
92,
83,
10,
290,
949,
13,
29,
27,
25,
12,
58,
69,
10,
189,
16,
10,
89,
82,
10,
15,
12,
17,
59,
13,
47,
267,
274,
25,
29,
14,
13,
31,
12,
13,
22,
26,
16,
21,
73,
28,
10,
18,
12,
11,
67,
12,
15,
18,
14,
29,
325,
24,
30,
28,
10,
16,
12,
26,
12,
76,
12,
21,
23,
997,
56,
42,
73,
14,
11,
65,
16,
28,
32,
1609,
89,
275,
36,
13,
181,
135,
156,
133,
51,
21,
10,
40,
90,
376,
11,
41,
19,
89,
58,
77,
27,
106,
11,
654,
20,
60,
552,
102,
44,
106,
13,
14,
55,
28,
176,
72,
12,
17,
13,
47,
27,
19,
11,
50,
63,
13,
13,
16,
11,
11,
32,
17,
39,
11,
15,
90,
72,
10,
10,
91,
27,
51,
41,
43,
54,
6154,
76,
14,
15,
32,
60,
11,
11,
10,
11,
55,
17,
68,
204,
26,
49,
89,
93,
11,
33,
11,
72,
29,
14,
41,
15,
12,
12,
17,
17,
15,
498,
10,
12,
22,
22,
26,
14,
26,
12,
13,
237,
11,
19,
30,
13,
11,
10,
13,
111,
12,
12,
55,
20,
45,
11,
11,
11,
16,
16,
31,
691,
15,
12,
22,
17,
28,
21,
32,
11,
12,
33,
32,
71,
174,
11,
14,
20,
13,
13,
18,
17,
11,
11,
12,
14,
212,
11,
10,
11,
27,
12,
45,
11,
26,
16,
15,
14,
987,
18,
19,
15,
10,
16,
33,
29,
115,
16,
10,
17,
15,
16,
20,
28,
132,
16,
16,
26,
17,
21,
12,
13,
42,
19,
17,
13,
18,
10,
14,
45,
21,
20,
10,
24,
442,
16,
11,
14,
20,
20,
12,
14,
25,
24,
130,
260,
11,
52,
44,
12,
16,
10,
13,
17,
12,
13,
10,
32,
18,
12,
10,
14,
12,
45,
10,
10,
18,
22,
135,
62,
12,
20,
10,
23,
25,
120,
29,
14,
24,
17,
11,
18,
19,
11,
75,
45,
16,
23,
13,
22,
14,
16,
30,
42,
13,
12,
10,
12,
40,
42,
991,
11,
12,
15,
27,
59,
25,
10,
17,
39,
14,
75,
805,
10,
13,
471,
29,
10,
10,
13,
123,
10,
15,
174,
12,
104,
43,
11,
16,
94,
471,
14,
30,
18,
136,
31,
11,
55,
10,
11,
10,
29,
68,
54,
10,
15,
154,
125,
10,
118,
24,
52,
16,
43,
68,
33,
19,
29,
10,
64,
16,
32,
10,
63,
11,
11,
24,
13,
12,
10,
123,
24,
31,
17,
13,
60,
16,
899,
38,
30,
13,
275,
15,
10,
12,
17,
218,
26,
65,
4030,
76,
24,
11,
43,
10,
11,
10,
10,
30,
11,
10,
10,
15,
15,
110,
458,
22,
24,
24,
19,
21,
38,
42,
15,
18,
36,
14,
41,
10,
20,
44,
30,
11,
72,
57,
27,
103,
18,
106,
81,
59,
180,
13,
10,
17,
155,
13,
71,
178,
15,
470,
11,
10,
16,
12,
13,
16,
90,
10,
215,
674,
34,
34,
83,
72,
10,
11,
13,
74,
90,
21,
16,
226,
13,
12,
32,
2413,
76,
91,
13,
256,
13,
37,
30,
36,
14,
10,
40,
255,
37,
35,
11,
44,
20,
185,
87,
35,
10,
101,
74,
149,
15,
83,
20,
19,
10,
33,
90,
119,
22,
10,
90,
12,
90,
150,
19,
111,
36,
94,
101,
92,
18,
12,
16,
22,
12,
24,
74,
17,
10,
15,
513,
10,
131,
25,
12,
16,
40,
26,
21,
24,
11,
32,
57,
15,
10,
35,
13,
24,
28,
12,
28,
98,
17,
15,
55,
39,
111,
80,
74,
24,
42,
11,
55,
27,
10,
10,
431,
46,
342,
465,
50,
1963,
336,
14,
20,
11,
10,
27,
41,
25,
48,
11,
168,
13,
46,
117,
33,
425,
17,
27,
37,
73,
17,
22,
20,
464,
72,
333,
10,
101,
20,
78,
236,
169,
137,
24,
619,
15,
28,
45,
12,
37,
25,
55,
14,
79,
14,
13,
105,
12,
21,
25,
73,
57,
176,
79,
25,
71,
18,
25,
73,
166,
51,
10,
76,
12,
10,
46,
129,
22,
22,
15,
12,
77,
16,
16,
37,
15,
64,
66,
10,
50,
39,
20,
10,
10,
11,
45,
36,
10,
19,
13,
10,
12,
15,
14,
10,
28,
60,
19,
47,
122,
14,
29,
10,
19,
12,
27,
151,
13,
11,
20,
24,
21,
75,
67,
10,
15,
11,
28,
15,
12,
125,
45,
10,
18,
13,
10,
12,
12,
71,
10,
44,
22,
16,
12,
12,
25,
11,
11,
10,
10,
11,
31,
10,
12,
17,
16,
14,
23,
53,
13,
100,
92,
290,
75,
92,
10,
67,
12,
287,
564,
13,
74,
10,
12,
40,
29,
520,
88,
10,
444,
12,
104,
40,
12,
175,
348,
39,
294,
39,
15,
51,
11,
15,
318,
36,
14,
15,
346,
77,
38,
10,
36,
357,
15,
183,
39,
802,
10,
36,
21,
122,
108,
23,
43,
47,
11,
13,
22,
10,
84,
13,
14,
29,
379,
66,
11,
49,
47,
37,
12,
16,
57,
20,
11,
19,
1320,
17,
12,
97,
44,
14,
76,
42,
36,
18,
35,
15,
40,
13,
12,
17,
47,
11,
12,
10,
74,
16,
21,
12,
365,
242,
12,
28,
12,
23,
11,
20,
873,
18,
12,
10,
14,
17,
39,
12,
12,
10,
11,
12,
37,
29,
458,
433,
28,
15,
21,
15,
108,
75,
13,
112,
17,
26,
27,
11,
15,
36,
13,
25,
10,
55,
443,
19,
33,
17,
12,
279,
17,
31,
18,
25,
97,
33,
19,
252,
187,
44,
41,
132,
201,
193,
62,
78,
24,
37,
80,
20,
13,
25,
23,
80,
174,
49,
102,
60,
25,
11,
16,
300,
295,
183,
64,
23,
30,
22,
105,
10,
77,
120,
39,
19,
23,
60,
15,
10,
304,
109,
27,
11,
152,
14,
41,
52,
12,
12,
12,
10,
28,
12,
30,
13,
118,
10,
20,
16,
12,
179,
20,
125,
11,
10,
144,
130,
83,
132,
16,
18,
61,
41,
1311,
11,
51,
630,
13,
350,
87,
32,
31,
35,
34,
46,
119,
12,
22,
26,
123,
49,
10,
77,
13,
50,
88,
25,
166,
39,
10,
42,
71,
11,
14,
50,
12,
22,
48,
19,
89,
150,
10,
66,
50,
44,
18,
16,
104,
82,
31,
11,
25,
30,
11,
77,
68,
101,
31,
132,
25,
86,
24,
73,
42,
17,
34,
12,
11,
13,
11,
76,
12,
67,
36,
11,
27,
34,
25,
23,
28,
64,
58,
11,
70,
103,
11,
24,
137,
27,
21,
95,
15,
40,
91,
29,
442,
11,
11,
11,
13,
11,
201,
93,
164,
73,
12,
63,
20,
12,
68,
10,
10,
30,
71,
71,
22,
11,
21,
24,
47,
10,
442,
51,
69,
11,
43,
18,
10,
23,
20,
36,
48,
40,
11,
10,
12,
119,
12,
31,
397,
82,
1700,
124,
191,
457,
37,
59,
49,
151,
27,
10,
251,
43,
226,
21,
11,
56,
46,
132,
23,
32,
14,
1129,
1284,
39,
1766,
107,
485,
107,
61,
16,
78,
31,
11,
13,
25,
20,
542,
50,
487,
412,
131,
49,
100,
139,
240,
189,
71,
168,
15,
247,
160,
146,
31,
31,
13,
48,
17,
11,
1564,
12,
26,
70,
5858,
85,
58,
73,
21,
25,
22,
18,
55,
14,
10,
308,
116,
72,
70,
279,
10,
42,
63,
12,
11,
84,
30,
104,
61,
27,
53,
11,
73,
32,
58,
169,
13,
12,
19,
11,
14,
10,
14,
739,
701,
390,
12,
10,
10,
18,
23,
50,
15,
16,
22,
18,
34,
14,
12,
18,
12,
11,
12,
13,
14,
24,
11,
11,
34,
39,
15,
28,
25,
10,
31,
16,
12,
13,
21,
13,
12,
73,
11,
11,
85,
240,
11,
142,
24,
10,
12,
10,
34,
28,
20,
10,
35,
11,
12,
12,
73,
149,
12,
23,
11,
26,
15,
32,
20,
37,
441,
25,
16,
33,
12,
19,
24,
20,
12,
12,
13,
12,
49,
18,
18,
22,
10,
10,
151,
24,
12,
18,
10,
11,
19,
12,
142,
12,
16,
12,
10,
12,
23,
43,
20,
10,
12,
11,
13,
25,
15,
11,
11,
14,
174,
11,
14,
12,
76,
88,
13,
18,
13,
35,
11,
10,
13,
22,
32,
16,
32,
12,
16,
11,
12,
14,
11,
14,
11,
17,
31,
12,
16,
10,
14,
22,
12,
25,
71,
14,
13,
10,
10,
11,
15,
14,
27,
40,
45,
16,
12,
15,
14,
442,
16,
11,
17,
10,
154,
49,
25,
12,
133,
10,
18,
17,
137,
15,
16,
21,
13,
16,
10,
10,
15,
16,
10,
11,
14,
16,
16,
32,
38,
13,
11,
26,
12,
11,
15,
14,
22,
68,
21,
41,
94,
31,
21,
231,
84,
20,
31,
23,
84,
39,
104,
15,
73,
25,
160,
10,
28,
25,
66,
55,
47,
20,
180,
27,
108,
103,
28,
661,
62,
80,
65,
780,
46275,
19,
16680,
25,
232,
41,
13,
15,
10,
17,
10,
18,
175,
220,
15,
470,
152,
39,
15,
24,
155,
45,
12,
21,
56,
76,
96,
10,
10,
90,
121,
17,
51,
21,
11,
20,
12,
191,
12,
53,
12,
16,
91,
20,
17,
18,
127,
566,
85,
11,
124,
12,
21,
36,
42,
24,
1858,
19,
18,
33,
63,
35,
121,
50,
11,
342,
149,
12,
47,
78,
10,
18,
92,
187,
39,
21,
21,
15,
14,
148,
38,
16,
16,
10,
66,
11,
207,
35,
145,
142,
142,
11,
91,
19,
15,
76,
11,
311,
12,
46,
10,
57,
15,
13,
69,
10,
11,
11,
15,
24,
10,
10,
66,
16,
16,
12,
23,
85,
16,
19,
11,
49,
14,
138,
1956,
16,
13,
382,
16,
31,
60,
36,
16,
41,
16,
84,
16,
3680,
39,
76,
13,
39,
143,
64,
12,
760,
10,
12,
49,
63,
16,
13,
21,
11,
18,
60,
263,
27,
30,
73,
42,
10,
23,
125,
125,
586,
109,
35,
36,
249,
16,
11,
27,
14,
30,
219,
22,
44,
297,
14,
33,
10,
198,
57,
236,
150,
1907,
215,
163,
18,
10,
16,
127,
55,
18,
184,
413,
11,
41,
20,
10,
87,
12,
10,
14,
97,
11,
50,
35,
1629,
526,
25,
21,
219,
82,
14,
10,
20,
249,
36,
20,
10,
30,
174,
41,
13,
42,
23,
11,
275,
10,
20,
102,
65,
22,
54,
10,
32,
14,
144,
50,
11,
15,
13,
10,
16,
15,
13,
12,
26,
14,
94,
118,
24,
11,
22,
12,
204,
31,
10,
24,
13,
15,
2124,
10,
82,
35,
14,
346,
16,
18,
17,
13,
18,
48,
25,
24,
49,
55,
16,
21,
11,
10,
15,
12,
10,
147,
328,
48,
48,
72,
52,
25,
10,
373,
11,
27,
11,
11,
95,
22,
12,
11,
12,
174,
31,
17,
25,
54,
22,
30,
486,
29,
14,
140,
11,
29,
229,
10,
72,
15,
726,
122,
14,
10,
14,
75,
11,
20,
10,
60,
18,
16,
16,
11,
42,
10,
21,
75,
75,
26,
65,
16,
14,
10,
16,
15,
28,
16,
21,
11,
12,
15,
32,
51,
34,
94,
11,
12,
30,
10,
10,
10,
45,
174,
17,
31,
33,
266,
99,
10,
36,
15,
12,
18,
21,
14,
13,
10,
68,
13,
18,
15,
58,
11,
47,
105,
19,
13,
11,
12,
10,
524,
55,
536,
13,
17,
10,
21,
59,
11,
10,
240,
72,
10,
11,
21,
26,
17,
23,
21,
72,
66,
23,
18,
15,
12,
28,
47,
10,
122,
20,
10,
42,
54,
10,
73,
15,
3502,
36,
197,
340,
13,
21,
22,
10,
98,
72,
66,
48,
11,
49,
199,
72,
191,
112,
22,
32,
204,
16,
68,
40,
30,
30,
11,
131,
23,
11,
129,
98,
11,
1731,
10,
91,
10,
103,
30,
11,
195,
16,
11,
34,
11,
17,
13,
12,
196,
79,
13,
12,
55,
103,
34,
13,
50,
13,
22,
24,
12,
20,
17,
10,
16,
12,
10,
12,
15,
10,
15,
15,
13,
3574,
58,
10,
17,
23,
43,
12,
26,
12,
11,
10,
15,
21,
15,
139,
11,
10,
17,
21,
12,
465,
11,
11,
10,
13,
10,
11,
11,
18,
11,
14,
14,
10,
19,
51,
16,
17,
27,
12,
34,
10,
44,
136,
10,
12,
14,
18,
12,
12,
103,
10,
11,
11,
12,
229,
18,
14,
14,
43,
10,
13,
10,
17,
11,
12,
10,
13,
13,
15,
298,
24,
11,
224,
17,
16,
13,
83,
22,
20,
11,
20,
10,
26,
11,
11,
65,
81,
11,
10,
12,
67,
94,
11,
29,
41,
63,
25,
19,
31,
18,
16,
12,
12,
348,
16,
18,
26,
11,
16,
11,
10,
447,
11,
11,
68,
11,
11,
10,
10,
10,
13,
11,
76,
14,
12,
18,
17,
11,
128,
17,
86,
15,
19,
73,
61,
534,
14,
64,
14,
13,
52,
140,
67,
26,
11,
123,
19,
12,
50,
10,
11,
73,
16,
53,
33,
28,
15,
34,
159,
11,
13,
37,
73,
20,
48,
20,
161,
16,
19,
10,
48,
73,
10,
11,
22,
20,
85,
10,
59,
12,
79,
67,
24,
10,
10,
46,
72,
13,
35,
77,
21,
27,
15,
16,
10,
19,
15,
72,
85,
10,
11,
111,
28,
23,
15,
10,
74,
86,
47,
12,
11,
34,
11,
327,
10,
31,
24,
54,
11,
10,
15,
207,
10,
11,
20,
69,
19,
36,
72,
11,
10,
14,
10,
13,
10,
11,
21,
24,
12,
11,
359,
90,
26,
130,
73,
32,
54,
225,
52,
14,
37,
13,
14,
10,
20,
13,
12,
591,
415,
88,
26,
138,
31,
17,
324,
16,
12,
69,
84,
24,
11,
32,
153,
419,
513,
72,
16,
43,
27,
88,
22,
18,
113,
17,
52,
15,
44,
31,
110,
18,
153,
10,
17,
151,
11,
1190,
72,
123,
131,
73,
24,
30,
74,
38,
73,
98,
18,
14,
16,
31,
26,
27,
72,
72,
13,
17,
31,
17,
11,
12,
27,
58,
10,
11,
65,
13,
14,
22,
38,
18,
11,
13,
29,
130,
433,
13,
99,
1077,
62,
87,
17,
128,
83,
100,
36,
238,
22,
29,
313,
16,
50,
144,
12,
67,
69,
12,
10,
66,
19,
27,
167,
10,
32,
92,
26,
125,
14,
10,
15,
11,
63,
22,
13,
12,
11,
12,
31,
13,
20,
55,
13,
11,
10,
13,
18,
12,
21,
11,
11,
14,
62,
11,
20,
10,
20,
22,
23,
19,
18,
10,
58,
10,
11,
22,
11,
21,
74,
19,
23,
10,
11,
21,
11,
13,
35,
14,
13,
23,
11,
22,
15,
16,
10,
10,
13,
11,
10,
10,
40,
19,
21,
10,
12,
19,
21,
16,
21,
45,
35,
26,
215,
11,
10,
15,
16,
72,
11,
10,
28,
10,
17,
32,
17,
18,
46,
122,
15,
10,
15,
15,
217,
15,
18,
12,
10,
10,
16,
115,
13,
13,
13,
15,
13,
62,
27,
187,
39,
2989,
111,
827,
12,
25,
23,
18,
6829,
31,
354,
44,
144,
72,
98,
1063,
107,
58,
10,
13,
11,
119,
76,
91,
132,
82,
32,
47,
107,
26,
12,
12,
39,
732,
102,
27,
15,
24,
53,
39,
15,
56,
22,
24,
13,
15,
28,
31,
28,
19,
21,
10,
15,
10,
11,
10,
27,
11,
13,
10,
11,
18,
23,
21,
10,
636,
14,
10,
70,
18,
28,
20,
16,
11,
11,
10,
55,
22,
12,
181,
19,
28,
37,
12,
21,
381,
24,
72,
44,
23,
15,
51,
10,
22,
11,
442,
21,
140,
42,
325,
115,
11,
10,
12,
44,
30,
473,
13,
10,
12,
10,
15,
18,
469,
10,
236,
11,
10,
20,
25,
18,
13,
10,
33,
47,
11,
14,
30,
33,
24,
11,
10,
15,
15,
16,
10,
12,
22,
13,
28,
17,
34,
12,
26,
12,
14,
10,
11,
35,
77,
10,
10,
15,
167,
93,
15,
18,
21,
102,
52,
11,
36,
11,
113,
38,
34,
10,
13,
12,
18,
94,
10,
155,
12,
10,
22,
12,
19,
10,
25,
12,
15,
13,
26,
19,
39,
13,
12,
16,
16,
11,
12,
11,
10,
10,
10,
11,
133,
10,
12,
12,
84,
18,
133,
10,
84,
79,
11,
10,
10,
21,
10,
13,
27,
55,
19,
12,
25,
10,
118,
20,
15,
10,
10,
13,
15,
12,
15,
53,
10,
14,
58,
27,
33,
17,
30,
11,
17,
23,
14,
23,
12,
31,
138,
21,
52,
84,
31,
32,
32,
211,
88,
17,
18,
10,
15,
12,
10,
11,
10,
18,
174,
21,
11,
11,
16,
55,
174,
14,
18,
48,
13,
114,
10,
11,
27,
108,
10,
12,
20,
15,
331,
55,
37,
107,
85,
14,
22,
45,
43,
34,
19,
48,
51,
13,
20,
31,
12,
36,
31,
48,
76,
184,
46,
42,
41,
37,
15,
31,
22,
24,
24926,
48,
52,
18,
10,
17,
78,
11,
11,
19,
10,
15,
13,
25,
11,
11,
13,
12,
10,
10,
10,
10,
10,
10,
13,
10,
13,
17,
11,
15,
12,
21,
10,
11,
20,
17,
21,
12,
11,
15,
10,
19,
21,
10,
13,
12,
17,
20,
12,
10,
10,
60,
11,
40,
20,
28,
20,
14,
10,
43,
18,
14,
56,
428,
17,
14,
24,
22,
15,
11,
80,
59,
43,
18,
20,
31,
25,
32,
37,
22,
19,
17,
12,
298,
10,
12,
10,
12,
17,
18,
10,
11,
12,
11,
16,
17,
11,
11,
10,
13,
10,
11,
790,
730,
517,
552,
475,
428,
326,
352,
329,
256,
150,
31,
33,
67,
71,
113,
77,
45,
59,
35,
1193,
993,
1411,
858,
1256,
1185,
705,
404,
263,
266,
33,
117,
62,
55,
38,
34,
33,
74,
31,
38,
210,
241,
162,
94,
241,
177,
199,
82,
118,
142,
50,
62,
36,
167,
47,
32,
53,
33,
42,
62,
10,
147,
81,
136,
114,
69,
44,
50,
89,
64,
48,
127,
88,
49,
78,
40,
83,
86,
36,
86,
41,
32,
37,
35,
31,
34,
51,
36,
36,
33,
32,
33,
37,
50,
33,
41,
40,
38,
83,
46,
40,
11,
10,
13,
15,
13,
14,
19,
16,
10,
12,
13,
87,
34,
37,
28,
39,
32,
31,
13,
31,
21,
41,
31,
10,
11,
17,
18,
24,
26,
203,
27,
48,
38,
40,
30,
39,
160,
19,
75,
24,
21,
22,
34,
13,
12,
15,
10,
10,
13,
10,
11,
10,
18,
26,
10,
10,
22,
10,
10,
12,
15,
11,
10,
10,
11,
93,
10,
35,
11,
13,
25,
36,
14,
15,
46,
36,
14,
10,
10,
14,
13,
303,
12,
12,
16,
16,
13,
16,
24,
231,
10,
20,
13,
28,
94,
14,
10,
10,
172,
298,
45,
10,
24,
10,
12,
12,
11,
12,
14,
10,
13,
13,
11,
10,
17,
11,
16,
49,
12,
10,
10,
10,
11,
18,
11,
18,
13,
10,
10,
13,
10,
41,
12,
14,
27,
41,
33,
51,
15,
30,
14,
89,
68,
11,
10,
67,
10,
16,
24,
12,
15,
11,
20,
15,
15,
15,
10,
14,
11,
30,
12,
29,
11,
14,
10,
10,
11,
20,
11,
64,
11,
11,
17,
10,
11,
12,
10,
34,
77,
131,
29,
152,
21,
17,
11,
13,
16,
13,
14,
39,
15,
750,
11,
33,
61,
14,
12,
19,
101,
13,
13,
11,
16,
10,
15,
10,
10,
539,
31,
11,
34,
11,
10,
13,
20,
10,
22,
16,
12,
14,
12,
12,
12,
10,
13,
18,
14,
10,
10,
11,
12,
17,
16,
20,
34,
26,
17,
27,
10,
16,
10,
11,
10,
13,
12,
11,
12,
10,
11,
17,
16,
11,
67,
224,
11,
13,
11,
16,
17,
35,
12,
14,
13,
12,
11,
11,
12,
10,
12,
11,
121,
10,
11,
11,
10,
20,
156,
18,
17,
10,
26,
48,
11,
10,
10,
17,
10,
27,
11,
10,
10,
13,
53,
16,
12,
11,
22,
13,
10,
31,
10,
11,
13,
10,
26,
12,
10,
18,
13,
10,
11,
79,
21,
12,
10,
76,
22,
26,
129,
20,
15,
12,
17,
13,
1809,
70,
29,
38,
442,
442,
458,
10,
16,
10,
41,
10,
11,
13,
11,
11,
10,
11,
25,
14,
16,
10,
11,
15,
10,
12,
14,
13,
10,
12,
37,
12,
11,
11,
13,
11,
12,
10,
11,
10,
11,
10,
18,
12,
18,
22,
32,
174,
14,
11,
12,
11,
24,
27,
15,
232,
134,
18,
19,
13,
13,
13,
11,
44,
11,
10,
10,
10,
10,
11,
13,
10,
11,
13,
10,
10,
18,
13,
17,
487,
54,
14,
16,
10,
14,
13,
119,
11,
13,
13,
13,
10,
13,
11,
14,
46,
10,
14,
478,
162,
10,
29,
10,
10,
10,
37,
47,
30,
52,
19,
13,
11,
10,
51,
24,
15,
46,
15,
13,
12,
11,
14,
10,
27,
41,
11,
10,
16,
18,
162,
10,
10,
21,
48,
21,
12,
12,
19,
10,
38,
16,
12,
11,
14,
13,
34,
10,
443,
10,
16,
10,
12,
48,
10,
21,
28,
17,
48,
34,
10,
48,
11,
11,
13,
19,
21,
18,
18,
173,
10,
17,
10,
22,
13,
16,
47,
11,
18,
10,
147,
19,
20,
12,
10,
12,
15,
16,
13,
96,
12,
10,
18,
31,
16,
11,
12,
11,
560,
12,
17,
10,
15,
66,
49,
13,
67,
10,
10,
10,
10,
10,
34,
28,
21,
20,
61,
10,
14,
20,
11,
38,
10,
12,
17,
17,
19,
10,
13,
10,
10,
10,
26,
11,
12,
13,
23,
14,
14,
20,
12,
11,
31,
11,
13,
14,
11,
33,
4632,
7641,
4801,
7883,
1108,
1240,
2012,
1391,
795,
1906,
21,
887,
146,
233,
50,
27,
14,
10,
161,
12,
10,
11,
11,
12,
81,
16,
10,
17,
14,
28,
10,
11,
10,
13,
12,
23,
11,
22,
11,
17,
12,
19,
18,
11,
11,
25,
10,
10,
10,
12,
15,
16,
10,
13,
11,
30,
11,
21,
48,
15,
10,
14,
21,
12,
305,
10,
40,
11,
13,
10,
15,
11,
10,
10,
10,
10,
51,
10,
14,
16,
10,
10,
12,
11,
11,
11,
11,
14,
11,
10,
10,
13,
11,
11,
15,
17,
21,
17,
13,
12,
20,
10,
38,
25,
11,
19,
12,
21,
14,
10,
504,
23,
12,
15,
98,
16,
13,
10,
14,
10,
81,
14,
17,
13,
11,
18,
10,
10,
11,
10,
10,
10,
40,
11,
10,
33,
12,
26,
20,
44,
10,
11,
11,
20,
19,
11,
17,
16,
14,
12,
10,
10,
442,
16,
16,
10,
12,
11,
10,
26,
11,
10,
10,
11,
10,
10,
10,
72,
13,
76,
21,
65,
14,
12,
18,
39,
14,
11,
12,
10,
126,
10,
36,
15,
10,
22,
13,
10,
12,
18,
11,
13,
33,
11,
10,
10,
10,
14,
13,
20,
15,
12,
10,
11,
12,
30,
27,
15,
18,
15,
13,
10,
41,
17,
11,
20,
12,
10,
13,
13,
10,
50,
12,
10,
12,
13,
13,
10,
12,
10,
14,
10,
10,
27,
10,
17,
11,
20,
10,
12,
11,
26,
10,
23,
15,
18,
18,
14,
12,
10,
10,
12,
12,
17,
14,
11,
10,
10,
10,
19,
11,
13,
12,
15,
16,
10,
13,
34,
11,
10,
11,
13,
10,
11,
12,
12,
10,
10,
16,
10,
14,
11,
11,
12,
10,
15,
12,
11,
10,
16,
11,
10,
21,
11,
14,
15,
14,
13,
12,
11,
12,
12,
10,
16,
14,
12,
11,
11,
15,
13,
14,
16,
19,
10,
10,
13,
24,
217,
12,
20,
10,
16,
10,
13,
12,
10,
11,
12,
11,
13,
14,
11,
22,
16,
11,
34,
17,
18,
48,
18,
12,
12,
35,
51,
12,
130,
18,
575,
10,
15,
10,
48,
145,
24,
14,
21,
13,
18,
12,
21,
10,
164,
59,
13,
33,
11,
156,
10,
11,
31,
55,
12,
25,
29,
34,
17,
11,
12,
369,
11,
102,
16,
10,
17,
17,
20,
14,
10,
19,
198,
23,
52,
38,
10,
19,
17,
30,
13,
62,
25,
19,
173,
20,
65,
18,
10,
18,
82,
11,
10,
12,
10,
13,
82,
120,
25,
40,
17,
89,
13,
15,
13,
12,
11,
54,
10,
27,
13,
10,
11,
54,
11,
17,
53,
23,
51,
26,
13,
14,
31,
10,
10,
15,
63,
13,
13,
51,
11,
16,
10,
18,
10,
11,
20,
13,
75,
2304,
228,
42,
18,
13,
87,
10,
14,
13,
100,
113,
10,
32,
10,
25,
11,
13,
15,
15,
20,
52,
10,
38,
26,
32,
12,
34,
130,
10,
66,
13,
10,
147,
13,
39,
33,
12,
17,
17,
12,
20,
809,
16,
13,
10,
13,
353,
10,
10,
32,
22,
17,
132,
11,
97,
27,
19,
13,
66,
71,
14,
11,
10,
16,
136,
10,
14,
54,
20,
28,
11,
28,
10,
10,
13,
12,
10,
25,
35,
12,
26,
10,
11,
10,
59,
29,
28,
13,
27,
110,
18,
12,
14,
46,
11,
15,
23,
12,
11,
26,
26,
17,
13,
12,
21,
12,
47,
11,
10,
12,
17,
14,
46,
10,
11,
11,
14,
11,
19,
11,
23,
10,
13,
10,
218,
26,
13,
45,
10,
14,
32,
28,
276,
173,
159,
113,
58,
90,
57,
168,
123,
326,
199,
36,
72,
140,
19,
29,
121,
44,
54,
21,
81,
46,
10,
21,
65,
23,
29,
63,
81,
99,
1597,
138,
63,
97,
277,
12,
10,
26,
83,
55,
83,
35,
75,
135,
1407,
122,
15,
27,
15,
14,
65,
24,
91,
43,
57,
166,
98,
21,
22,
20,
14,
57,
17,
19,
42,
13,
30,
27,
66,
54,
97,
51,
335,
137,
10,
58,
12,
68,
101,
176,
33,
115,
81,
426,
77,
429,
13,
88,
87,
40,
106,
162,
54,
3881,
224,
964,
47,
11,
13,
165,
12,
42,
57,
24,
106,
10,
12,
129,
12,
304,
132,
15,
46,
176,
12,
206,
11,
149,
18,
26,
206,
204,
37,
11,
11,
23,
170,
50,
23,
13,
35,
178,
27,
164,
21,
26,
63,
34,
851,
93,
13,
32,
42,
136,
63,
13,
13,
23,
148,
260,
18,
46,
61,
220,
162,
10,
27,
44,
17,
14,
12,
118,
24,
20,
195,
28,
252,
130,
37,
65,
101,
158,
141,
28,
52,
14,
12,
30,
31,
39,
10,
12,
12,
225,
48,
20,
19,
235,
35,
284,
61,
569,
127,
164,
1626,
22,
104,
1066,
156,
20,
367,
28,
174,
336,
180,
350,
354,
97,
111,
86,
414,
118,
48,
30,
30,
150,
42,
51,
92,
15,
17,
72,
470,
11,
1579,
129,
99,
75,
20,
47,
118,
79,
426,
104,
33,
16,
72,
82,
73,
12,
142,
105,
26,
657,
171,
785,
26,
619,
31,
24,
28,
15,
47,
10,
18,
82,
72,
17,
15,
82,
91,
43,
42,
22,
192,
16,
10,
28,
30,
61,
40,
281,
75,
14,
41,
61,
49,
69,
33,
11,
88,
80,
14,
43,
10,
4778,
208,
18,
72,
10,
96,
61,
525,
11,
776,
27,
23,
27,
23,
21,
303,
244,
206,
524,
23,
18,
14,
73,
11,
106,
10,
18,
11,
84,
25,
15,
11,
12,
19,
19,
20,
14,
24,
30,
42,
15,
16,
12,
1049,
16,
186,
12,
31,
3413,
10,
24,
70,
13,
10,
10,
26,
42,
46,
21,
43,
30,
16,
17,
45,
20,
17,
11,
19,
81,
32,
58,
1102,
29,
103,
34,
11,
69,
50,
34,
105,
45,
14,
56,
59,
411,
54,
15,
71,
14,
10,
15,
117,
1405,
11,
119,
19,
84,
60,
43,
20,
13,
11,
17,
59,
44,
661,
11,
14,
120,
15,
14,
23,
12,
19,
66,
12,
12,
150,
10,
17,
16,
94,
18,
199,
11,
16,
20,
17,
14,
431,
21,
22,
96,
23,
16,
22,
10,
30,
12,
44,
28,
161,
15,
2789,
44,
554,
50381,
152,
22,
23,
38,
741,
78,
890,
24,
14,
14,
13,
65,
27,
88,
10,
13,
27,
58,
10,
10,
19,
41,
14,
12,
55,
12,
11,
52,
11,
14,
48,
20,
10,
19,
10,
26,
30,
12,
107,
1076,
524,
84,
14,
12,
67,
11,
19,
34,
81,
114,
34,
102,
185,
37,
10,
55,
16,
28,
12,
96,
35,
11,
77,
23,
74,
224,
10,
45,
14,
29,
11,
27,
15,
11,
10,
20,
72,
17,
12,
40,
46,
28,
56,
38,
197,
86,
10,
12,
11,
231,
282,
71,
53,
95,
30,
294,
14,
18,
21,
550,
273,
101,
23,
36,
80,
12,
24,
12,
11,
47,
55,
36,
1133,
622,
12,
186,
14,
84,
122,
10,
11,
49,
18,
45,
453,
207,
16,
121,
10,
21,
33,
78,
14,
2750,
18,
11,
103,
23,
28,
93,
29,
33,
22,
352,
10,
140,
32,
51,
12,
85,
31,
19,
14,
28,
43,
203,
361,
65,
10,
15,
22,
14,
101,
21,
18,
12,
11,
62,
10,
10,
22,
10,
13,
18,
62,
17,
242,
14,
160,
19,
27,
52,
25,
13,
72,
72,
126,
154,
1957,
113,
36,
55,
83,
18,
69,
247,
43,
45,
35,
152,
16,
12,
1033,
1615,
85,
119,
17,
12,
73,
10,
19,
61,
127,
182,
88,
44,
772,
138,
291,
50,
13,
36,
178,
29,
678,
18,
25,
506,
26,
16,
33,
59,
14,
11,
16,
72,
13,
29,
32,
14,
11,
195,
14,
147,
46,
56,
59,
13,
19,
47,
114,
106,
23,
12,
10,
20,
30,
139,
15,
16,
586,
11,
13,
92,
72,
116,
39,
81,
218,
25,
17,
12,
11,
52,
30,
22,
260,
122,
12,
44,
73,
185,
50,
52,
14,
10,
49,
14,
91,
30,
32,
37,
11,
13,
12,
10,
156,
15,
20,
124,
11,
1249,
14,
14,
62,
13,
10,
25,
11,
53,
28,
16,
15,
326,
17,
12,
75,
36,
466,
14,
11,
52,
44,
187,
161,
74,
83,
12,
214,
31,
13,
58,
26,
17,
21,
66,
31,
14,
29,
21,
33,
15,
137,
36,
137,
39,
189,
2504,
265,
25,
115,
21,
42,
46,
24,
14,
33,
13,
195,
10,
14,
13,
185,
15,
11,
85,
25,
20,
46,
775,
77,
34,
43,
30,
11,
247,
87,
22,
14,
15,
24,
14,
30,
28,
17,
18,
11,
91,
184,
136,
1268,
11,
13,
11,
11,
1659,
526,
94,
92,
44,
91,
15,
86,
20,
22,
25,
256,
115,
10,
49,
12,
15,
33,
55,
36,
15,
10,
272,
15,
17,
10,
10,
62,
152,
11,
15,
10,
18,
23,
47,
31,
13,
11,
23,
177,
14,
57,
17,
13,
28,
25,
35,
22,
13,
72,
81,
209,
11,
23,
62,
57,
153,
11,
510,
127,
615,
27,
29,
27,
10,
14,
26,
33,
32,
32,
173,
55,
33,
12,
22,
14,
18,
11,
265,
37,
10,
123,
11,
22,
10,
10,
169,
116,
37,
351,
20,
11,
15,
29,
215,
76,
47,
203,
70,
118,
131,
79,
47,
10,
12,
68,
28,
18,
51,
65,
10,
26,
336,
296,
39,
11,
24,
12,
15,
11,
48,
12,
23,
166,
19,
72,
39,
12,
10,
140,
27,
10,
17,
14,
15,
90,
40,
18,
80,
365,
13,
10,
14,
62,
20,
10,
20,
12,
46,
635,
144,
397,
83,
46,
12,
23,
10,
14,
18,
12,
33,
15,
10,
48,
13,
28,
27,
11,
25,
82,
290,
19,
18,
28,
20,
11,
38,
10,
11,
148,
1536,
13,
14,
12,
25,
112,
16,
12,
56,
10,
13,
40,
19,
60,
24,
55,
10,
80,
25,
46,
24,
11,
54,
19,
11,
357,
71,
19,
13,
33,
47,
11,
17,
1289,
134,
230,
15,
27,
82,
13,
23,
111,
842,
23,
34,
27,
261,
111,
18,
35,
12,
11,
37,
94,
10,
47,
128,
20,
23,
17,
35,
10,
30,
37,
15,
11,
34,
27,
12,
120,
312,
22,
11,
17,
12,
113,
10,
643,
132,
10,
25,
106,
281,
11,
74,
89,
22,
28,
26,
12,
11,
10,
32,
72,
16,
10,
133,
13,
87,
16,
28,
10,
78,
14,
17,
15,
13,
13,
66,
143,
110,
33,
10,
225,
16,
23,
16,
20,
54,
16,
22,
22,
13,
88,
16,
11,
21,
292,
15,
27,
27,
16,
10,
27,
49,
396,
146,
33,
15,
18,
31,
10,
10,
338,
24,
10,
138,
10,
71,
62,
72,
75,
66,
30,
11,
11,
13,
14,
454,
32,
153,
89,
23,
73,
50,
10,
11,
86,
30,
87,
14,
31,
28,
35,
166,
28,
20,
73,
10,
12,
14,
16,
13,
183,
40,
10,
10,
72,
10,
61,
26,
23,
14,
17,
10,
22,
47,
11,
25,
63,
31,
12,
183,
72,
102,
54,
17,
433,
24,
12,
11,
10,
59,
30,
86,
83,
21,
16,
29,
11,
33,
59,
12,
47,
23,
12,
243,
60,
20,
37,
14,
13,
40,
11,
285,
102,
10,
93,
597,
12,
40,
12,
44,
18,
1871,
367,
231,
1934,
3465,
33,
300,
606,
41,
152,
199,
323,
10,
35,
24,
32,
43,
18,
17,
12,
698,
161,
294,
976,
106,
82,
35,
113,
38,
50,
161,
72,
26,
10,
663,
288,
157,
142,
162,
10,
639,
71,
128,
140,
12,
63,
2022,
310,
273,
628,
218,
23,
35,
77,
12,
12,
16,
14,
28,
63,
13,
45,
88,
441,
300,
12,
15,
252,
53,
74,
12,
1259,
10,
56,
24,
19,
10,
118,
22,
30,
126,
95,
14,
132,
60,
11,
31,
41,
25,
63,
22,
84,
114,
10,
10,
460,
18,
127,
58,
69,
68,
470,
16,
156,
129,
227,
12,
149,
577,
31,
215,
36,
11,
15,
41,
2067,
104,
190,
39,
10,
1206,
117,
26,
13,
21,
96,
764,
680,
430,
204,
25,
1896,
23,
66,
207,
34,
101,
21,
16,
50,
124,
197,
147,
45,
29,
513,
67,
16,
69,
36,
10,
12,
192,
828,
22,
51,
65,
87,
30,
28,
92,
258,
27,
10,
11,
50,
12,
85,
14267,
2345,
103,
355,
11,
33,
16,
121,
80,
126,
10,
128,
218,
24,
194,
24,
145,
11,
15,
219,
813,
46,
10,
166,
49,
10,
15,
22,
125,
21,
76,
15,
19,
13,
13,
105,
36,
45,
49,
14,
23,
281,
76,
190,
537,
536,
178,
10,
73,
16,
72,
12,
73,
13,
52,
13,
90,
1275,
92,
69,
93,
619,
188,
564,
75,
57,
60,
118,
19,
12,
49,
301,
62,
604,
149,
52,
30,
162,
30,
291,
23,
50,
115,
34,
14,
2050,
29,
275,
15,
10,
256,
16,
552,
23,
20,
30,
32,
17,
904,
39,
773,
288,
64,
179,
88,
10,
13,
10,
39,
10,
39,
15,
236,
22,
15,
14,
65,
485,
106,
423,
154,
32,
12,
23,
19,
39,
38,
11,
24,
191,
13,
13,
15,
23,
94,
1767,
2399,
443,
41,
13,
201,
242,
81,
11,
12,
36,
17,
51,
60,
24,
30,
11,
49,
36,
20,
46,
15,
23,
17,
15,
79,
160,
20,
33,
218,
57,
10,
96,
36,
11,
14,
16,
16,
386,
13,
59,
15,
68,
96,
35,
122,
38,
274,
76,
34,
13,
249,
41,
748,
77,
14,
125,
12,
232,
43,
21,
10,
14,
22,
1316,
32,
2043,
425,
23,
309,
135,
268,
79,
35,
222,
177,
66,
61,
386,
1088,
301,
615,
1167,
28,
10,
12,
118,
33,
30,
28,
32,
12,
85,
464,
295,
219,
87,
35,
49,
16,
123,
14,
39,
151,
1765,
102,
144,
55,
40,
171,
222,
14,
129,
46,
136,
15,
334,
33,
62,
182,
24,
10,
13,
115,
4158,
397,
83,
470,
189,
10,
11,
10,
17,
15,
63,
258,
1801,
171,
17,
173,
30,
94,
190,
13,
19,
12,
27,
124,
76,
31,
47,
15,
21,
15,
54,
48,
45,
12,
169,
69,
69,
183,
89,
38,
100,
12,
3125,
28,
57,
25,
120,
192,
12,
50,
10,
215,
3228,
775,
22,
41,
61,
11,
48,
50,
180,
85,
81,
19,
111,
11,
46,
169,
76,
313,
148,
22,
10,
12,
50,
29,
16,
113,
19,
10,
70,
93,
19,
26,
21,
13,
129,
24,
451,
281,
154,
38,
23,
12,
10,
31,
59,
87,
12,
232,
19,
104,
57,
75,
27,
35,
41,
11,
23,
44,
25,
46,
44,
11,
502,
22,
243,
261,
10,
21,
67,
66,
31,
26,
71,
10,
19,
45,
17,
43,
49,
10,
137,
103,
61,
22,
10,
13,
503,
13,
17,
11,
225,
190,
106,
154,
43,
651,
98,
41,
55,
100,
31,
78,
26,
36,
13,
403,
14,
3741,
192,
26,
859,
25,
378,
1080,
165,
23,
53,
380,
52,
1071,
114,
227,
17,
140,
25,
73,
11,
29,
62,
12,
156,
11,
18,
16,
10,
102,
33,
18,
48,
185,
233,
15,
13,
245,
262,
229,
12,
47,
40,
85,
12,
788,
15,
47,
14,
22,
16,
95,
24,
34,
48,
38,
14,
11,
19,
56,
35,
13,
13,
367,
27,
127,
34,
37,
16,
600,
11,
13,
36,
18,
12,
243,
207,
22,
26,
59,
39,
20,
16,
298,
38,
91,
13,
15,
12,
14,
126,
80,
57,
10,
73,
17,
39,
36,
11,
25,
25,
156,
13,
11,
70,
44,
29,
35,
31,
31,
40,
42,
44,
37,
13,
11,
21,
62,
729,
34,
10,
87,
168,
24,
31,
10,
24,
44,
49,
10,
19,
117,
23,
75,
54,
51,
26,
87,
153,
101,
18,
10,
14,
12,
16,
80,
73,
237,
663,
15,
129,
11,
16,
481,
77,
14,
34,
49,
82,
26,
8980,
63,
111,
17,
39,
111,
23,
23,
25,
81,
13,
32,
15,
1753,
46,
25,
29,
24,
40,
28,
19,
40,
10,
82,
12,
15,
29,
21,
14,
37,
5571,
1157,
12,
585,
234,
241,
13,
25,
21,
73,
14,
23,
66,
16,
11,
44,
12,
12,
1216,
120,
51,
21,
23,
156,
24,
14,
10,
13,
769,
15,
12,
12,
71,
17,
34,
16,
10,
10,
18,
10,
20,
30,
58,
35,
12,
121,
30,
13,
22,
52,
34,
14,
15,
12,
78,
10,
26,
13,
11,
10,
10,
28,
41,
11,
16,
754,
30,
31,
85,
46,
205,
46,
18,
19,
68,
10,
11,
767,
64,
14,
11,
23,
189,
12,
921,
13,
14,
105,
73,
12,
13,
15,
37,
17,
17,
16,
11,
35,
21,
20,
39,
11,
62,
45,
31,
12,
21,
61,
25,
13,
16,
12,
526,
1189,
15,
383,
296,
1035,
427,
32,
10,
22,
476,
244,
125,
23,
26,
23,
10,
2653,
143,
696,
22,
26,
11,
388,
21,
58,
15,
12,
75,
11,
25,
538,
1585,
220,
65,
24,
11,
52,
13,
28,
95,
15,
33,
12,
81,
13,
42,
156,
149,
1121,
169,
73,
12,
31,
13,
28,
129,
301,
59,
22,
104,
236,
10,
12,
370,
77,
65,
90,
128,
1613,
11,
10,
1360,
721,
69,
10,
24,
2495,
142,
184,
29,
73,
110,
112,
22,
137,
17,
11,
30,
13,
35,
299,
23,
181,
718,
16,
246,
10,
17,
335,
30,
10,
14,
75,
53,
43,
103,
16,
460,
30,
14,
17,
31,
23,
25,
62,
33,
26,
102,
761,
26,
19,
95,
442,
409,
47,
11,
10,
26,
126,
92,
281,
44,
11,
64,
88,
12,
13,
30,
189,
21,
12,
44,
233,
26,
11,
41,
54,
29,
20,
13,
339,
15,
19,
77,
13,
12,
14,
20,
10,
237,
925,
97,
335,
46,
10,
759,
349,
92,
896,
136,
180,
12,
92,
317,
29,
47,
11,
791,
787,
56,
273,
115,
748,
61,
40,
171,
287,
79,
555,
176,
55,
35,
28,
46,
42,
11,
11,
102,
157,
149,
752,
25,
237,
30,
220,
70,
140,
157,
352,
71,
14,
76,
10,
17,
33,
12,
26,
37,
10,
22,
867,
926,
123,
26,
83,
106,
80,
23,
50,
115,
549,
99,
13,
32,
12,
87,
95,
192,
79,
120,
163,
190,
10,
372,
377,
86,
175,
180,
33,
15,
15,
39,
83,
32,
10,
153,
152,
91,
27,
30,
275,
24,
10,
40,
12,
15,
1117,
47,
10,
14,
181,
13,
390,
23,
54,
30,
163,
90,
14,
32,
45,
339,
77,
38,
160,
23,
162,
25,
40,
22,
230,
137,
15,
27,
67,
986,
166,
923,
496,
949,
12,
16,
165,
10,
21,
27,
14,
12,
12637,
169,
62,
74,
58,
159,
100,
10,
24,
78,
48,
22,
3676,
251,
64,
67,
52,
13,
38,
39,
95,
38,
24,
35,
55,
184,
201,
28,
19,
10,
25,
12,
14,
12,
11,
373,
11,
33,
127,
65,
29,
18,
10,
13,
1723,
10,
125,
31,
30,
354,
536,
38,
33,
10,
13,
226,
104,
26,
13,
3359,
1958,
67,
41,
301,
87,
11,
16,
51,
18,
10,
14,
59,
98,
59,
132,
10,
64,
60,
371,
10,
25,
141,
48,
33,
22,
16,
16,
1457,
45,
140,
522,
93,
16,
24,
13,
14,
13,
10,
13,
26,
206,
10486,
11,
272,
60,
13,
24,
98,
11,
28,
52,
45,
12,
16,
49,
11,
13,
10,
11,
148,
10,
21,
79,
212,
10,
14,
10,
11,
28,
1503,
41,
43,
48,
75,
10,
25,
449,
10,
99,
35,
29,
18,
51,
114,
133,
277,
71,
31,
35,
80,
14,
509,
14,
11,
13,
21,
20,
45,
197,
50,
10,
46,
14,
100,
82,
63,
15,
27,
19,
200,
110,
52,
197,
68,
90,
821,
36,
90,
35,
196,
72,
12,
37,
188,
74,
23,
18,
673,
65,
44,
87,
29,
75,
43,
70,
114,
42,
87,
18,
38,
194,
1386,
17,
20,
23,
34,
52,
276,
76,
27,
51,
83,
323,
15,
11,
81,
186,
82,
62,
96,
36,
233,
18,
10,
11,
23,
59,
10,
26,
21,
37,
24,
12,
19,
94,
12,
33,
19,
31,
13,
27,
17,
60,
12,
28,
114,
495,
157,
55,
10,
34,
14544,
1225,
32,
60,
59,
140,
13,
75,
571,
27,
288,
12,
478,
13,
12,
207,
10,
10,
22,
26,
54,
109,
26,
22,
10,
162,
38,
50,
40,
22,
96,
37,
13,
171,
26,
12,
96,
36,
52,
155,
33,
458,
50,
28,
31,
24,
225,
3481,
12,
33,
17,
61,
117,
47,
51,
37,
93,
27,
49,
14,
12,
650,
66,
40,
48,
10,
14,
17,
210,
16,
70,
83,
157,
95,
11,
1549,
17,
11,
1553,
1473,
19,
105,
107,
23,
35,
16,
20,
25,
16,
45,
1421,
41,
294,
32,
46,
10,
45,
10,
37,
11,
97,
18,
41,
12,
12,
639,
27,
16,
228,
25,
401,
15,
26,
35,
397,
33,
22,
11,
862,
78,
10,
33,
23,
42,
10,
10,
99,
12,
23,
16,
20,
152,
12,
885,
12,
45,
37,
12,
12,
29,
42,
29,
16,
52,
36,
11,
10,
11,
12,
18,
11,
10,
23,
15,
30,
14,
52,
30,
35,
13,
12,
17,
42,
15,
54,
65,
13,
20,
35,
12,
10,
11,
14,
47,
79,
15,
10,
43,
12,
18,
238,
31,
26,
41,
11,
261,
109,
103,
21,
21,
32,
134,
19,
57,
10,
32,
27,
26,
52,
10,
78,
1529,
653,
269,
266,
86,
27,
23,
180,
26,
113,
40,
86,
269,
86,
14,
76,
18,
483,
11,
27,
32,
11,
71,
57,
407,
220,
42,
39,
14,
587,
35,
228,
26,
18,
47,
29,
29,
60,
123,
61,
121,
45,
134,
155,
74,
17,
33,
128,
2719,
2390,
399,
33,
62,
20,
24,
10,
381,
154,
123,
165,
152,
385,
268,
69,
17,
137,
123,
13,
50,
43,
11,
350,
52,
789,
115,
10,
101,
30,
123,
32,
34,
114,
50,
38,
36,
12,
60,
49,
20,
30,
13,
21,
12,
350,
43,
91,
15,
38,
24,
420,
38,
88,
80,
12,
10,
49,
34,
79,
158,
193,
14,
144,
38,
65,
214,
23,
35,
41,
182,
16,
1046,
128,
13,
75,
13,
13,
76,
10,
13,
12,
23,
20,
10,
61,
337,
48,
23,
88,
21,
21,
4989,
45,
388,
10,
48,
231,
160,
32,
111,
257,
31,
12,
10,
12,
77,
29,
359,
294,
158,
792,
13,
165,
21,
691,
19,
160,
172,
157,
15,
14,
10,
21,
802,
148,
63,
85,
89,
10,
51,
230,
43,
11,
27,
42,
3389,
27,
222,
702,
231,
27,
27,
10,
512,
150,
69,
150,
112,
20,
27,
155,
98,
37,
259,
231,
35,
255,
29,
46,
27,
13,
779,
11,
13,
252,
175,
356,
22,
10,
39,
38,
25,
23,
45,
63,
78,
12,
27,
87,
203,
142,
177,
139,
49,
18,
72,
12,
12,
40,
10,
135,
10,
143,
16,
83,
21,
24,
17,
10,
81,
11,
14,
10,
55,
91,
26,
12,
111,
10,
10,
278,
335,
173,
17,
130,
56,
25,
30,
10,
95,
16,
31,
2442,
17,
98,
34,
13,
18,
74,
314,
259,
384,
133,
30,
11,
34,
14,
185,
36,
16,
15,
102,
22,
187,
163,
83,
13,
11,
341,
15,
14,
59,
33,
132,
107,
11,
87,
168,
15,
53,
25,
14,
13,
20,
70,
18,
11,
10,
60,
94,
60,
25,
18,
35,
24,
1017,
11,
18,
330,
181,
43,
199,
27,
334,
32,
67,
16,
13,
10,
21,
13,
180,
61,
122,
289,
83,
159,
49,
20,
151,
12,
10,
485,
10,
52,
26,
15,
902,
20,
51,
92,
134,
69,
12,
40,
23,
30,
49,
13,
40,
46,
25,
56,
13,
16,
594,
16,
20,
13,
11,
24,
12,
10,
89,
11,
31,
54,
87,
34,
25,
18,
13,
19,
225,
14,
19,
23,
48,
44,
16,
17,
100,
56,
75,
186,
10,
35,
80,
146,
13,
48,
69,
52,
66,
29,
39,
17,
86,
351,
16,
265,
698,
20,
132,
34,
11,
54,
178,
6384,
203,
68,
319,
12,
221,
32,
10,
151,
11,
15,
12,
18,
11,
16,
381,
43,
176,
6500,
27,
337,
12,
45,
122,
13,
10,
14,
134,
13,
75,
13,
11,
15,
11,
671,
20,
22,
30,
55,
101,
27,
30,
23,
143,
19,
101,
40,
11,
26,
10,
11,
14,
11,
15,
42,
28,
10,
99,
12,
13,
17,
14,
174,
18,
10,
266,
36,
96,
45,
166,
16,
12,
28,
11,
158,
792,
65,
27,
123,
16,
38,
24,
299,
17,
26,
148,
24,
126,
1341,
20,
14,
492,
90,
10,
21,
10,
45,
78,
208,
93,
4584,
440,
372,
16,
122,
35,
24,
39,
62,
2898,
260,
24,
1533,
70,
25,
258,
13,
39,
10,
19,
12,
202,
25,
10,
10,
12,
13,
380,
11,
23,
16,
14,
58,
11,
1137,
41,
33,
12,
230,
18,
82,
160,
21,
25,
10,
18,
13,
15,
12,
27,
55,
10,
35,
67,
49,
44,
24,
11,
66,
76,
13,
10,
18,
10,
13,
57,
12,
2421,
22,
56,
96,
307,
60,
57,
13,
35,
36,
17,
21,
12,
18,
12,
10,
141,
71,
35,
36,
62,
61,
19,
32,
10,
56,
12,
56,
47,
25,
151,
58,
65,
32,
56,
27,
38,
75,
21,
130,
4721,
94,
102,
17,
187,
30,
54,
175,
98,
11,
226,
36,
27,
146,
20,
25,
83,
245,
74,
12,
10,
42,
15,
13,
43,
84,
25,
26,
17,
11,
12,
59,
11,
18,
26,
25,
10,
168,
10,
11,
52,
38,
31,
10,
43,
19,
11,
16,
24,
527,
56,
40,
26,
12,
15,
302,
32,
10,
23,
17,
36,
11,
12,
291,
50,
27,
26,
11,
18,
84,
22,
18,
14,
10,
22,
58,
19,
2243,
159,
129,
11,
2702,
220,
23,
20001,
10,
239,
52,
42,
12,
14,
17,
70,
12,
80,
37,
83,
12,
22,
81,
12,
27,
12,
14,
56,
49,
138,
92,
177,
22,
10,
21,
27,
22,
13,
31,
18,
11,
63,
16,
24,
164,
19,
14,
145,
20,
17,
99,
43,
11,
15,
29,
34,
31,
11,
117,
521,
59,
94,
59,
254,
23,
81,
39,
10,
48,
161,
176,
457,
26,
29,
10,
61,
12,
129,
12,
10,
72,
144,
11,
10,
25,
77,
16,
16,
55,
76,
79,
10,
12,
16,
94,
23,
54,
324,
41,
15,
16,
13,
38,
34,
12,
14,
11,
21,
15,
302,
96,
21,
16,
10,
94,
45,
15,
69,
14,
18,
13,
12,
22,
12,
289,
33,
94,
18,
152,
18,
34,
171,
20,
79,
235,
13,
36,
25,
25,
10,
335,
51,
95,
1033,
241,
13,
363,
30,
58,
31,
10,
13,
22,
10,
14,
14,
19,
183,
150,
30,
254,
10,
305,
42,
1175,
12,
11,
10,
21,
12,
27,
10,
25,
33,
149,
79,
10,
56,
22,
510,
35,
22,
16,
903,
74,
25,
78,
25,
66,
47,
99,
30,
35,
11,
14,
206,
11,
57,
26,
11,
73,
79,
48,
34,
36,
82,
91,
179,
87,
35,
33,
18,
39,
12,
11,
25,
10,
17,
23,
261,
16,
10,
13,
11,
12,
17,
15,
54,
37,
14,
20,
136,
80,
24,
477,
13,
37,
13,
44,
69,
11,
1213,
57,
15,
59,
19,
12,
182,
11,
28,
58,
18,
17,
13,
11,
15,
13,
14,
155,
42,
19,
88,
53,
270,
11,
14,
12,
19,
29,
10,
71,
128,
10,
45,
116,
14,
12,
12,
21,
217,
28,
110,
12,
660,
65,
52,
6909,
11,
121,
46,
10,
759,
11,
65,
56,
65,
26,
498,
166,
18,
63,
15,
45,
18,
23,
73,
12,
26,
17,
201,
11,
16,
28,
86,
23,
30,
39,
23,
20,
313,
10,
44,
11,
408,
10,
27,
15,
14,
199,
33,
23,
22,
10,
19,
35,
16,
67,
36,
25,
26,
136,
80,
68,
95,
11,
425,
301,
26,
20,
11,
135,
33,
77,
11,
83,
15,
161,
36,
23,
36,
124,
49,
87,
77,
17,
78,
29,
86,
55,
25,
48,
33,
15,
24,
30,
19,
67,
27,
19,
31,
27,
10,
225,
25,
36,
37,
46,
52,
39,
34,
13,
882,
180,
11,
54,
76,
207,
315,
13,
10,
10,
110,
6209,
56,
31,
48,
152,
130,
184,
38,
23,
17,
12,
12,
18,
101,
29,
39,
135,
114,
36,
19,
14,
448,
11,
37,
11,
36,
11,
59,
14,
62,
145,
140,
24,
27,
15,
41,
21,
14,
11,
15,
92,
23,
166,
91,
87,
39,
26,
11,
17,
13,
68,
73,
13,
24,
117,
820,
180,
859,
137,
132,
13,
76,
14,
118,
12,
59,
10,
16,
16,
52,
303,
74,
18,
23,
11,
21,
87,
10,
33,
18,
14,
10,
34,
32,
34,
55,
34,
20,
19,
10,
93,
77,
24,
21,
48,
16,
70,
10,
14,
156,
14,
14,
44,
294,
14,
90,
20,
19,
12,
24,
10,
10,
45,
96,
65,
44,
23,
13,
68,
96,
58,
376,
2791,
13,
57,
13,
47,
11,
438,
22,
13,
15,
14,
11,
12,
32,
30,
92,
1009,
48,
30,
10,
23,
139,
86,
26,
11,
20,
46,
14,
26,
35,
62,
40,
44,
15,
475,
53,
11,
48,
280,
40,
20,
21,
119,
22,
111,
25,
11,
31,
13,
18,
35,
10,
12,
12,
22,
18,
12,
14,
92,
60,
388,
22,
42,
11,
82,
63,
37,
10,
36,
69,
15,
10,
1183,
136,
10,
267,
32,
56,
85,
43,
25,
29,
16,
12,
602,
1100,
22,
246,
56,
210,
62,
47,
35,
15,
10,
67,
31,
10,
855,
38,
655,
788,
17,
133,
15,
17,
41,
95939,
500,
1846,
8003,
511,
67,
24,
28,
18,
10,
91,
107,
96,
74,
108,
14,
31,
76,
116,
13,
16,
1721,
165,
119,
10,
11,
35,
2748,
188,
257,
101,
66,
215,
41,
14,
39,
55,
68,
37,
27,
41,
129,
19,
10,
86,
84,
92,
115,
174,
12,
10,
27,
18,
13,
25,
51,
299,
22,
23,
150,
14,
33,
17,
20,
15,
144,
203,
116,
22,
20,
13,
17,
26,
36,
14,
11,
27,
12,
76,
56,
95,
119,
14,
19,
14,
12,
24,
51,
27,
10,
13,
82,
38,
30,
16,
11,
10,
24,
23,
20,
14,
10,
13,
17,
238,
24,
144,
182,
129,
44,
53,
18,
84,
12,
23,
76,
24,
1575,
42,
82,
73,
186,
12,
26,
25,
16,
68,
521,
225,
104,
78,
16,
88,
250,
13,
77,
75,
360,
65,
9756,
788,
11,
27,
455,
36,
59,
29,
27,
135,
916,
13,
387,
32,
43,
19,
10,
22,
17,
15,
110,
25,
16,
28,
1469,
641,
17,
77,
476,
167,
547,
18,
3491,
37,
220,
12,
11,
53,
20,
91,
1661,
58,
18,
5252,
196,
1815,
1754,
22,
15,
13,
134,
61,
25,
11,
26,
120,
11,
68,
44,
28,
79,
13,
21,
13,
10,
32,
20,
12,
62,
17,
53,
11,
73,
14,
14,
53,
16,
13,
273,
14,
266,
18,
22,
32,
2249,
12,
27,
53,
155,
13,
781,
808,
184,
221,
379,
41,
109,
630,
182,
2771,
13,
57,
395,
62,
84,
32,
1409,
15,
81,
56,
843,
482,
44,
24,
14,
898,
103,
35,
26,
33,
23,
35,
179,
30,
468,
65,
83,
16,
720,
43,
11,
11,
22,
12,
23,
692,
44,
72,
2635,
1266,
639,
198,
133,
13,
14,
13,
38,
13,
26,
17,
12,
28,
22,
352,
203,
72,
32,
19,
11,
40,
59,
10,
16,
13,
95,
18,
13,
69,
747,
13,
132,
29,
59,
17,
94,
12,
29,
77,
33,
45,
100,
21,
5931,
623,
120,
831,
171,
43,
31,
417,
153,
67,
324,
185,
11,
42,
37,
23,
11,
14,
11,
24,
30,
95,
143,
23,
220,
50,
5663,
10,
96,
60,
1088,
15,
115,
357,
13,
15,
174,
67,
84,
11,
21,
67,
47,
1534,
81,
60,
13,
17,
32,
27,
37,
83,
54,
343,
111,
34,
24,
179,
18,
18,
46,
18,
35,
37,
16,
15,
10,
10,
25,
80,
12,
850,
84,
16,
26,
15,
121,
48,
80,
311,
23,
751,
155,
1243,
12,
1437,
52,
38,
13,
15,
19,
11,
10,
12,
409,
14,
59,
12,
60,
200,
202,
15,
13,
38,
10,
12,
75,
73,
147,
138,
418,
27,
399,
14,
38,
23,
10,
214,
17,
10,
13,
12,
84,
51,
14,
151,
24,
10,
62,
4384,
80,
72,
10,
758,
11,
311,
44,
749,
93,
12,
15,
36,
45,
79,
14,
15,
11,
174,
2160,
765,
122,
10,
19,
335,
103,
21,
556,
10,
11,
30,
55,
11,
39,
73,
376,
17,
444,
16,
1618,
227,
22,
32,
48,
27,
12,
12,
10,
179,
60,
409,
35,
207,
10,
11,
12,
15,
1826,
13,
822,
61,
17,
34,
10,
41,
88,
102,
293,
125,
14,
1038,
36,
18,
28,
218,
71,
11,
95,
85,
239,
506,
298,
35,
863,
101,
156,
57,
619,
48,
88,
17,
179,
57,
30,
122,
29,
107,
36,
10,
16,
11,
12,
58,
13,
18,
10,
33,
49,
20,
24,
35,
9860,
10,
25,
93,
994,
56,
280,
12,
28,
18595,
16,
126,
12,
87,
32,
42,
468,
151,
21,
28,
44,
131,
42,
309,
105,
26,
10,
24,
23,
17,
67,
680,
12,
32,
80,
31,
14,
69,
27,
1605,
412,
897,
544,
14,
428,
22,
773,
30,
47,
13,
12,
650,
209,
36,
77,
28,
10,
44,
1788,
14,
10,
39,
2042,
35,
15,
81,
865,
81,
129,
37,
45,
53,
24,
10,
33,
110,
14,
11,
1067,
25,
48,
57,
100,
312,
39,
22,
73,
11,
11,
12,
22405,
808,
27,
51,
3374,
515,
16,
138,
17,
14,
12,
31,
16,
24,
202,
61,
67,
18,
11,
445,
22,
98,
81,
14,
165,
11,
10,
46,
53,
68,
73,
43,
75,
124,
21,
14,
146,
17,
43,
108,
32,
225,
69,
19,
16,
10,
10,
305,
12,
97,
17,
10,
32,
70,
20,
19,
57,
11,
22,
15,
10,
70,
172,
10,
35,
75,
249,
57,
43,
30,
508,
49,
56,
40,
78,
49,
13,
382,
17,
20,
75,
74,
4524,
13,
12,
17,
42,
11,
13,
25,
60,
14,
40,
63,
26,
30,
67,
121,
11,
10,
14,
32,
10,
16,
14,
10,
73,
14,
69,
17,
15,
366,
16,
2856,
325,
45,
26,
24,
10,
85,
15,
39,
36,
15,
264,
55,
21,
53,
51,
4676,
26,
22,
32,
35,
108,
97,
27,
65,
17,
96,
69,
17,
1872,
138,
642,
65,
280,
23,
206,
48,
226,
1645,
52,
58,
30,
164,
37,
200,
369,
19,
20,
13,
77,
12,
60,
81,
112,
201,
116,
15,
11,
14,
11,
10,
2342,
3013,
112,
12,
126,
11,
12,
1804,
13,
24,
331,
163,
41,
36,
19,
335,
38,
17,
661,
147,
88,
27,
12,
42,
153,
13,
48,
12,
263,
37,
61,
11,
18,
25,
38,
37,
40,
16,
376,
67,
72,
84,
10,
24,
43,
104,
85,
42,
482,
33,
74,
27,
31,
38,
122,
23,
17,
1230,
389,
54,
143,
10,
19,
1225,
21,
64,
92,
12,
10,
65,
101,
27,
345,
56,
45,
13,
30,
13,
16,
27,
14,
87,
26,
26,
27,
27,
11,
130,
39,
104,
255,
12,
118,
10,
302,
85,
17,
13,
1652,
15,
70,
19,
10,
38,
781,
11,
16,
12,
86,
14,
31,
259,
35,
32,
119,
52,
10,
33,
18,
11,
22,
9004,
44,
163,
68,
10,
57,
43,
212,
2393,
236,
68,
13,
13,
11,
32,
667,
11,
28,
17,
378,
23,
16,
189,
28,
16,
13,
12,
51,
14,
15,
25,
15,
160,
22,
20,
2706,
12,
55,
15,
28,
10,
15,
40,
39,
21,
11,
22,
12,
274,
13,
162,
130,
40,
63,
20,
10,
10,
83,
10,
43,
123,
30,
13,
10,
41,
33,
1281,
12,
24,
20,
139,
10,
1007,
150,
228,
33,
15,
10,
30,
221,
11,
12,
816,
51,
867,
380,
235,
17,
73,
11,
188,
56,
18,
61,
14,
596,
1283,
401,
71,
730,
26,
57,
4099,
611,
18,
16,
10,
45,
12,
2734,
162,
6098,
476,
151,
115,
34,
1030,
249,
252,
16,
16,
107,
70,
39,
23,
19,
26,
10,
25,
206,
33,
11,
62,
109,
11,
104,
613,
455,
849,
32,
455,
83,
1832,
24,
49,
22,
64,
39,
11,
13,
116,
417,
14,
29,
176,
33,
12,
56,
13,
29,
77,
11,
209,
14,
57,
12,
1240,
95,
56,
89,
11,
49,
46,
17,
22,
24,
10,
12,
28,
71,
33,
11,
36,
32,
10,
16,
14,
10,
148,
166,
13,
11,
189,
35,
40,
26,
112,
52,
37,
65,
48,
168,
48,
52,
109,
10,
779,
10,
30,
27,
37,
340,
76,
36,
10,
49,
22,
65,
21,
29,
414,
10,
12,
14,
13,
16,
36,
26,
20,
10,
15,
18,
12,
21,
13,
17,
16,
19,
10,
19,
19,
27,
23541,
15,
515,
103,
87,
32,
17,
10,
31,
135,
18,
14,
13,
21,
240,
96,
14,
635,
78,
86,
55,
1406,
11,
74,
70,
11,
17,
56,
24,
87,
38,
24,
133,
525,
16,
189,
12,
102,
60,
14,
424,
11,
40,
129,
58,
591,
206,
107,
456,
331,
60,
1668,
44,
11,
17,
27,
11,
26,
88,
62,
12,
10,
13,
141,
13,
393,
211,
4184,
11,
26,
20,
15,
14,
53,
23,
169,
198,
10,
42,
14,
11003,
13,
23,
62,
25,
1716,
81,
28,
118,
12,
26,
51,
10,
39,
2008,
76,
111,
35,
10,
20,
1183,
22,
22,
28,
15,
11,
18,
72,
56,
19,
17,
29,
54,
21,
107,
55,
31,
16,
63,
17,
3552,
29,
16,
56,
35,
94,
165,
10,
47,
49,
1036,
29,
35,
285,
218,
10,
694,
31,
19,
130,
55,
602,
45,
29,
40,
62,
190,
131,
13,
26,
19,
13,
17,
33,
264,
301,
274,
61,
10,
43,
16,
15,
29,
18,
11,
1260,
10,
45,
771,
514,
27,
31,
73,
66,
21,
136,
46,
27,
81,
10,
12,
2694,
1468,
25,
53,
28,
12,
15,
55,
125,
189,
42,
70,
33,
40,
328,
90,
244,
14,
12,
257,
18,
11,
10,
19,
30,
11,
15,
17,
98,
12,
10,
395,
12,
429,
30,
43,
72,
13,
43,
72,
12,
15,
53,
13,
37,
72,
2503,
19,
15,
49,
31,
30,
40,
31,
11,
15,
23,
47,
189,
10,
14,
70,
30,
1125,
73,
25,
23,
10,
30,
16,
485,
37,
71,
465,
71,
21,
270,
25,
10,
31,
17,
11,
23,
39,
12,
111,
12,
47,
53,
95,
19,
18,
16,
31,
581,
45,
218,
135,
38,
70,
10,
154,
28,
101,
910,
25,
22,
654,
27,
1281,
303,
45,
185,
107,
20,
184,
544,
44,
32,
71,
11,
27,
31,
11,
144,
196,
45,
442,
231,
135,
13,
10,
45,
360,
37,
39,
10,
55,
171,
138,
16,
12,
31,
77,
74,
57,
35,
10,
190,
20,
113,
96,
12,
28,
69,
19,
135,
82,
135,
15,
15,
228,
12,
12,
15,
20,
58,
40,
27,
506,
989,
112,
95,
64,
61,
322,
15,
102,
62,
33,
81,
72,
13,
23,
11,
15,
35,
83,
12,
252,
32,
38,
42,
20,
39,
12,
837,
21,
49,
56,
152,
41,
59,
120,
2014,
159,
20,
15,
29,
19,
10,
47,
20,
27,
12,
24,
152,
76,
28,
18,
48,
42,
364,
16,
226,
83,
11,
10,
22,
52,
21,
187,
11,
86,
18,
78,
37,
54,
35,
11,
15,
72,
14,
15,
47,
14,
11,
12,
247,
51,
29,
43,
114,
73,
37,
22,
20,
13,
11,
180,
109,
47,
363,
55,
248,
23,
21,
742,
42,
13,
95,
13,
19,
161,
29,
25,
224,
175,
183,
212,
107,
96,
39,
201,
68,
476,
23,
80,
17,
189,
11,
471,
3540,
260,
217,
45,
81,
10,
21,
22,
11,
149,
84,
210,
57,
78,
23,
13,
184,
354,
235,
74,
100,
75,
105,
31,
17,
12,
60,
10,
17,
25,
12,
88,
27,
58,
130,
39,
568,
48,
188,
66,
26,
397,
10,
327,
255,
13,
99,
10,
102,
23,
10,
12,
32,
21,
463,
732,
41,
18,
54,
77,
2024,
81,
159,
15,
23,
12,
32,
10,
84,
16,
34,
69,
99,
22,
19,
36,
200,
24,
11,
19,
225,
101,
15,
11,
22,
12,
29,
44,
10,
30,
80,
59,
78,
10,
119,
16,
72,
91,
29,
117,
73,
11,
150,
243,
170,
121,
32,
12,
10,
12,
10,
10,
12,
11,
165,
323,
10,
113,
495,
41,
161,
91,
117,
16,
128,
189,
56,
10,
16,
16,
16,
28,
816,
89,
50,
95,
52,
52,
29,
36,
34488,
87,
10,
125,
22,
46,
15,
35,
86,
35,
15,
3369,
106,
87,
103,
60,
70,
73,
11,
29,
482,
45,
231,
24,
29,
16,
325,
561,
11,
10,
12,
14,
10,
116,
18,
41,
35,
26,
222,
22,
24,
17,
20,
40,
19,
161,
23,
12,
11,
57,
13,
23,
72,
35,
11,
2403,
354,
41,
11,
21,
29,
25,
17,
25,
11,
2891,
182,
44,
12,
69,
501,
141,
14,
14,
18,
55,
23,
25,
89,
98,
49,
125,
55,
67,
14,
21,
42,
22,
28,
79,
74,
923,
135,
10,
92,
53,
12,
12,
57,
30,
81,
13,
24,
32,
29,
12,
81,
67,
170,
54,
21,
268,
11,
37,
16,
110,
31,
75,
35,
73,
82,
22,
16,
27,
33,
10,
732,
13,
194,
135,
63,
899,
32,
19,
158,
41,
21,
11,
310,
791,
11,
453,
29,
11,
30,
44,
12,
12,
10,
219,
89,
173,
35,
97,
55,
302,
59,
10,
179,
52,
268,
84,
501,
67,
425,
160,
142,
542,
23,
252,
87,
240,
186,
176,
74,
68,
1137,
194,
10,
1183,
103,
125,
28,
115,
16,
28,
72,
25,
13,
266,
28,
33,
72,
18,
11,
19,
148,
584,
13,
97,
14,
47,
33,
19,
75,
17,
20,
59,
10,
11,
17,
14,
2656,
220,
10,
30,
31,
50,
22,
83,
21,
49,
85,
11,
3865,
237,
34,
909,
2281,
76,
12,
12,
97,
173,
126,
54,
28,
10,
253,
14,
952,
60,
19,
67,
276,
28,
10,
17,
15,
15,
542,
709,
906,
32,
14,
26,
11,
12,
164,
7673,
53,
161,
109,
81,
22,
28,
22,
58,
31,
107,
26,
13,
33,
13,
31,
47,
25,
39,
116,
619,
94,
18,
16,
11,
422,
42,
57,
63,
11,
156,
152,
188,
13,
13,
22,
645,
11,
70,
28,
71,
37,
10,
18,
42,
10,
27,
30,
15,
11,
111,
92,
50,
80,
266,
34,
14,
485,
10,
128,
128,
17,
18,
237,
30,
767,
17,
11,
175,
44,
15,
89,
11,
36,
41,
28,
4487,
41,
15,
108,
12,
12,
14,
35,
26,
54,
59,
67,
101,
18,
16,
10,
63,
60,
30,
17,
19,
21,
10,
42,
11,
22,
13,
12,
14,
141,
61,
11,
75,
496,
63,
43,
30,
38,
101,
13,
58,
74,
14,
45,
22,
83,
10,
25,
18,
32,
65,
132,
66,
12,
29,
555,
141,
176,
197,
217,
10,
36,
14,
96,
42,
12,
20,
28,
29,
53,
13,
28,
36,
27,
147,
22,
66,
37,
37,
20,
10,
64,
23,
85,
706,
16,
26,
54,
20,
26,
416,
31,
39,
10,
22,
22,
125,
20,
33,
10,
70,
19,
110,
89,
36,
10,
21,
27,
53,
10,
48,
20,
10,
16,
10,
16,
16,
269,
150,
25,
73,
60,
10,
12,
12,
257,
29,
11,
78,
33,
11,
72,
14,
83,
49,
26,
180,
11,
16,
11,
31,
11,
11,
50,
32,
11,
11,
31,
59,
11,
25,
81,
117,
16,
201,
15,
22,
32,
18,
129,
17,
16,
20,
266,
11,
111,
54,
17,
11,
17,
61,
10,
15,
14,
35,
21,
15,
137,
72,
41,
30,
30,
32,
13,
108,
12,
108,
14,
115,
18,
10,
11,
44,
330,
34,
63,
241,
38,
10,
39,
74,
27,
13,
134,
21,
56,
59,
2308,
30,
59,
14,
101,
100,
23,
687,
20,
31,
93,
20,
44,
10,
22,
213,
20,
88,
14,
40,
72,
60,
77,
15,
11,
66,
15,
587,
1078,
775,
201,
13,
182,
55,
92,
40,
118,
31,
28,
66,
83,
52,
1305,
95,
688,
30,
44,
175,
29,
12,
10,
10,
112,
69,
744,
496,
32,
42,
28,
39,
64,
30,
15,
20,
53,
90,
44,
13,
48,
416,
37,
328,
81,
54,
28,
13,
29,
45,
15,
11,
21,
258,
10,
20,
13,
58,
440,
13,
66,
10,
19,
32,
26,
55,
10,
58,
23,
11,
13,
84,
76,
61,
43,
31,
64,
21,
75,
340,
26,
27,
54,
10,
250,
107,
13,
64,
159,
14,
17,
138,
15,
10,
12,
20,
219,
79,
10,
57,
12,
23,
84,
102,
45,
132,
23,
194,
30,
17,
576,
20,
11,
542,
70,
214,
14,
114,
23,
13,
20,
3614,
15,
94,
1623,
54,
99,
160,
351,
434,
48,
13,
632,
13,
459,
10,
12,
75,
14,
99,
1381,
80,
46,
69,
25,
57,
13,
46,
95,
13,
47,
29,
60,
199,
764,
284,
11,
18,
22,
30,
447,
138,
14,
548,
128,
76,
12,
34,
921,
44,
50,
22,
12,
16,
11,
10,
75,
38,
21,
10,
115,
26,
242,
19,
78,
12,
15,
11,
14,
17,
909,
64,
798,
175,
97,
86,
28,
147,
92,
27,
142,
11,
17,
409,
140,
943,
54,
70,
366,
19,
127,
111,
51,
262,
1244,
103,
986,
35,
55,
22,
20,
85,
30,
1098,
10,
20,
169,
20,
65,
938,
15,
10,
12,
11,
64,
20,
12,
35,
36,
30,
361,
14,
30,
84,
12,
21,
15,
78,
11,
13,
10,
18,
155,
206,
75,
77,
14,
12,
29,
408,
108,
195,
35,
129,
40,
11,
58,
41,
31,
75,
29,
12,
11,
832,
66,
35,
18,
13,
18,
12,
21,
14,
749,
14,
75,
31,
108,
37,
367,
68,
1407,
59,
820,
423,
13,
10,
71,
111,
101,
49,
115,
27,
368,
33,
486,
16,
102,
13,
14,
16,
58,
45,
51,
63,
12,
123,
627,
355,
114,
12,
39,
18,
12,
99,
311,
13,
24,
16,
1105,
35,
16,
11,
384,
14,
12,
10,
26,
393,
66,
41,
1314,
34,
13,
86,
17,
326,
14,
368,
18,
19,
15,
24,
83,
19,
11,
25,
1215,
13,
33,
724,
363,
30,
38,
32,
12,
39,
17,
12,
27,
16,
47,
93,
84,
19,
25,
10,
35,
133,
13,
13,
16,
51,
843,
13,
441,
77,
11,
213,
28,
15,
15,
39,
16,
66,
14,
16,
116,
35,
24,
13,
115,
14,
69,
56,
488,
23,
146,
3753,
46,
207,
19,
1166,
370,
16,
74,
734,
16,
14,
116,
68,
49,
32,
32,
428,
209,
357,
61,
53,
15,
99,
10,
84,
11,
13,
834,
13,
43,
73,
439,
139,
11,
29,
98,
12,
244,
36,
15,
303,
13,
67,
25,
56,
11,
10,
47,
65,
83,
601,
93,
311,
123,
1075,
68,
99,
18,
138,
20,
204,
10,
10,
14,
2535,
75,
29,
129,
15,
28,
16,
14,
10,
20,
359,
1437,
30,
11,
22,
69,
61,
78,
2145,
79,
30,
78,
236,
86,
148,
11,
848,
13,
11,
101,
11,
627,
15,
50,
44,
55,
30,
11,
18,
18,
1949,
117,
13,
10,
11,
102,
31,
75,
51,
12,
11,
15,
168,
1396,
36,
95,
49,
26,
11,
15,
17,
273,
67,
46,
23,
40,
219,
15,
19,
322,
18,
146,
41,
72,
41,
28,
15,
77,
14,
14,
83,
1375,
37,
10,
16,
23,
2401,
57,
19,
76,
33,
58,
24,
10,
16,
28,
642,
84,
10,
12,
31,
12,
751,
37,
27,
391,
26,
28,
10,
41,
85,
47,
11,
70,
33,
24,
93,
10,
1621,
47,
64,
18,
11,
165,
112,
109,
59,
41,
17,
11,
10,
25,
133,
48,
34,
53,
30,
11,
16,
24,
45,
50,
30,
13,
19,
75,
27,
88,
911,
191,
12,
61,
134,
10,
17,
42,
225,
157,
10,
24,
15,
10,
29,
166,
126,
30,
31,
32,
50,
19,
60,
38,
98,
13,
20,
11,
44,
11,
295,
61,
69,
12,
14,
101,
12,
31,
30,
37,
362,
27,
32,
10,
14,
18,
10,
171,
23,
132,
92,
10,
14,
50,
16,
11,
36,
40,
63,
5329,
127,
15,
221,
66,
29,
13,
12,
32,
24,
14,
19,
13,
21,
11,
122,
392,
11,
21,
1324,
12,
10,
11,
34,
711,
443,
15,
13,
12,
13,
16,
208,
25,
15,
468,
10,
20,
13,
63,
47,
67,
57,
26,
31,
53,
230,
218,
23,
15,
17,
10,
22,
12,
45,
22,
15,
24,
39,
12,
202,
10,
11,
22,
68,
217,
23,
10,
34,
16,
12,
11,
11,
10,
11,
12,
64,
10,
13,
21,
15,
37,
100,
26,
14,
24,
13,
18,
12,
126,
1173,
384,
15,
14,
171,
305,
12,
84,
10,
12,
22,
37,
447,
75,
29,
46,
27,
23,
70,
310,
12,
49,
10,
13,
10,
137,
140,
241,
223,
69,
11,
105,
268,
36,
25,
26,
26,
74,
1292,
25,
238,
51,
29,
180,
36,
11,
164,
531,
90,
36,
98,
29,
21,
41,
16,
157,
475,
70,
14,
65,
7798,
129,
160,
266,
15,
219,
19,
42,
13,
13,
10,
220,
442,
162,
120,
189,
37,
36,
22,
98,
81,
97,
10,
121,
195,
53,
20,
96,
320,
40,
15,
905,
34,
61,
149,
47,
21,
39,
18,
27,
14,
311,
3284,
1662,
143,
174,
52,
25,
15,
302,
34,
23,
63,
11,
31,
13,
100,
13,
55,
26,
16,
23,
1046,
70,
14,
12,
10,
167,
28,
38,
244,
87,
10,
12,
11,
26,
55,
23,
16,
12,
31,
42,
26,
17,
11,
24,
10,
27,
14,
84,
134,
32,
26,
46,
289,
1242,
64,
13,
58,
34,
91,
323,
29,
120,
72,
162,
13,
33,
232,
14,
147833,
131,
55,
114,
1053,
1664,
727,
10,
101,
37,
12,
365,
148,
23,
10,
12,
10,
44,
13,
36,
16,
34,
110,
41,
105,
65,
35,
15,
12,
451,
17,
1583,
10,
27,
23,
3617,
12,
44,
11,
496,
1829,
42,
2450,
88,
1043,
137,
67,
176,
39,
122,
15,
95,
41,
18,
32,
30,
40,
26,
36,
228,
32,
78,
171,
59,
335,
24,
18,
21,
10,
14,
18,
370,
164,
996,
659,
39,
12,
10,
13,
29,
30,
11,
10,
23,
18,
13,
30,
145,
106,
32,
11,
37,
13,
22,
37,
37,
70,
38,
21,
94,
68,
17,
359,
18,
12,
28,
17,
37,
18,
17,
10,
35,
194,
144,
109,
230,
46,
766,
73,
171,
92,
30,
70,
43,
10,
12,
122,
49,
1171,
262,
2416,
1105,
128,
935,
41,
403,
2288,
94,
44,
13,
1104,
262,
66,
23,
43,
52,
13,
735,
522,
186,
16,
13,
11,
17,
23,
10,
19,
42,
11,
12,
1101,
25,
14,
10,
17,
109,
42,
50,
125,
16,
33,
12,
14,
10,
73,
107,
329,
39,
12,
372,
120,
31,
325,
97,
17,
96,
14,
29,
12,
135,
10,
729,
12,
50,
12376,
11,
50,
14,
456,
152,
11,
565,
92,
19,
83,
10,
714,
59,
12,
1554,
91,
10,
13,
72,
23,
18,
16,
22,
1149,
118,
29,
16,
14,
10,
13,
16,
20,
511,
222,
24,
10,
14,
57,
30,
13,
10,
1109,
107,
116,
13,
10,
11,
32,
13,
107,
62,
12,
57,
785,
48,
141,
18,
71,
22,
11,
14,
48,
55,
50,
158,
21,
56,
19,
18,
32,
2831,
109,
128,
32,
40,
10,
51,
11,
22,
1694,
13,
67,
23,
39,
15,
82,
11,
90,
12,
13,
30,
83,
523,
19,
10,
16,
20,
31,
16,
85,
23,
205,
31,
46,
244,
10,
11,
12,
11,
17,
30,
10,
55,
372,
24,
65,
38,
27,
14,
138,
32,
4173,
229,
42,
13,
16,
68,
20,
431,
504,
23,
35,
22,
26,
22,
12,
75,
1393,
32,
10,
29,
32,
13,
28,
52,
22,
16,
326,
28,
85,
46,
944,
12,
678,
499,
71,
292,
88,
12,
34,
46,
44,
19,
20,
29,
12,
17,
17,
53,
16,
18,
23,
161,
20,
467,
91,
17,
23,
18,
58,
70,
56,
14,
56,
46,
30,
42,
122,
23,
11,
15,
290,
131,
1022,
122,
649,
197,
10,
14,
152,
10,
3615,
2072,
45,
35,
99,
10,
71,
15,
54,
52,
87,
21,
182,
16,
75,
35,
110,
18,
20,
14,
10,
15,
1105,
14,
16,
14,
1616,
172,
22,
90,
21,
605,
320,
1481,
90,
754,
6628,
25,
469,
49,
46,
20,
10,
13,
28,
13,
12,
81,
156,
54,
194,
1498,
97,
57,
11,
15,
54,
16,
15,
117,
13,
29,
11,
38,
15,
10,
16,
10,
29,
12,
66,
13,
17,
16,
15,
20,
12,
16,
58,
27,
11,
3265,
58,
27,
99,
89,
10,
20,
102,
20,
104,
12,
94,
11,
25,
53,
52,
16,
50,
59,
114,
19,
23,
13,
24,
137,
35,
16,
78,
1467,
26,
78,
16,
99,
12,
12,
17,
14,
13,
115,
10,
267,
53,
139,
10,
21,
44,
941,
40,
56,
54,
47,
128,
15,
59,
10,
214,
12,
14,
474,
20,
11,
11,
82,
17,
18,
137,
11,
12,
20,
1506,
10,
13,
12,
12,
109,
191,
3172,
189,
121,
93,
108,
346,
87,
16,
12,
23,
25,
11,
13,
10,
44,
78,
67,
79,
16,
372,
89,
759,
45,
85,
37,
101,
515,
72,
53,
87,
10,
25,
12,
19,
1594,
480,
17,
55,
34,
182,
723,
10,
60,
38,
21,
50,
14,
63,
89,
19,
117,
67,
16,
11,
26,
175,
196,
21,
45,
100,
29,
66,
14,
13,
47,
54,
11,
48,
11,
20,
11,
22,
71,
154,
28,
141,
179,
10,
29,
46,
11,
15,
23,
84,
25,
100,
23,
10,
10,
24,
11,
11,
10,
12,
17,
59,
188,
143,
13,
314,
30,
150,
39,
21,
307,
763,
131,
122,
23,
18,
76,
58,
42,
32,
52,
26,
57,
11,
21,
13,
31,
10,
330,
16,
11,
11,
15,
110,
78,
10,
57,
12,
16,
216,
26,
5900,
1287,
467,
16,
81,
229,
46,
45,
9274,
145,
355,
44,
67,
13,
326,
801,
11,
33,
198,
22,
79,
11,
36,
494,
14,
32,
228,
108,
53,
29,
14,
10,
83,
36,
27,
143,
277,
37,
15,
63,
33,
10,
31,
51,
508,
11,
29,
15,
23,
18,
29,
12,
11,
227,
1876,
63,
12,
34,
73,
72,
20,
137,
93,
11,
27,
48,
23,
116,
1704,
43,
19,
341,
58,
21,
41,
14,
53,
12,
13,
22,
13,
14,
62,
88,
38,
267,
78,
11,
30,
21,
37,
105,
10,
150,
3708,
176,
126,
28,
76,
17,
4826,
568,
62,
150,
22,
72,
14,
15,
30,
10,
27,
181,
43,
11,
25,
73,
293,
135,
73,
11,
57,
11,
13,
12,
11,
175,
10,
17,
71,
110,
56,
10,
74,
12,
13,
12,
11,
15,
24,
201,
197,
113,
155,
42,
109,
129,
26,
13,
75,
10,
119,
242,
209,
18,
17,
10,
39,
41,
290,
12,
38,
97,
33,
43,
47,
65,
90,
148,
866,
47,
76,
13,
56,
11,
11,
28,
68,
13,
10,
17,
40,
26,
56,
153,
20,
74,
20,
26,
11,
24,
13,
30,
51,
14,
20,
10,
93,
56,
26,
23,
51,
16,
42,
2009,
90,
32,
195,
101,
150,
11,
61,
42,
10,
11,
64,
29,
137,
83,
485,
316,
64,
12,
11,
11,
11,
191,
34,
15,
10,
35,
17,
27,
20,
14,
11,
20,
32,
113,
74,
10,
34,
51,
33,
46,
40,
107,
17,
17,
24,
22,
21,
43,
73,
30,
11,
51,
20,
44,
242,
1218,
81,
10,
102,
77,
936,
249,
15,
13,
40,
150,
132,
48,
10,
95,
22,
20,
701,
22,
20,
51,
17,
126,
20,
156,
17,
169,
26,
16,
10,
10,
177,
20,
347,
26,
67,
53,
15,
10,
19,
68,
528,
499,
321,
158,
1236,
74,
28,
33,
142,
93,
30,
60,
30,
36,
30,
11,
121,
36,
398,
53,
11,
36,
42,
18,
105,
57,
43,
199,
45,
104,
10,
186,
15,
23,
16,
72,
23,
30,
11,
30,
20,
11,
25,
59,
162,
20,
12,
905,
119,
11,
299,
51,
10,
58,
113,
10,
22,
10,
10,
10,
58,
11,
351,
12,
13,
30,
29,
12,
14,
61,
11,
15,
18,
37,
19,
112,
66,
50,
11,
17,
10,
12,
28,
14,
27,
285,
11,
24,
12,
26,
10,
60,
11,
2225,
15,
14,
17,
103,
13,
19,
16,
153,
563,
14,
185,
40,
19,
40,
10,
113,
15,
1938,
10,
10,
10,
15,
15,
90,
10,
12,
11,
480,
30,
48,
13,
33,
18,
46,
48,
228,
45,
11,
55,
20,
43,
19,
42,
355,
12,
516,
12,
502,
39,
201,
14,
238,
967,
61,
10,
3331,
30,
12,
12,
50,
105,
10,
10,
72,
83,
101,
14,
11,
525,
10,
72,
21,
10,
12,
25,
33,
10,
11,
46,
21,
12,
72,
18,
70,
13,
102,
201,
45,
22,
17,
11,
52,
118,
10,
156,
14,
319,
20,
10,
52,
119,
10,
16,
25,
10,
15,
10,
47,
87,
32,
14,
124,
82,
82,
256,
148,
11,
11,
404,
92,
28,
221,
15,
77,
21,
42,
168,
18,
12,
39,
18,
30,
23,
10,
12,
12,
15,
64,
13,
11,
11,
29,
25,
12,
23,
23,
11,
39,
20,
11,
21,
57,
10,
12,
14,
26,
10,
12,
24,
11,
39,
13,
69,
34,
10,
237,
16,
27,
10,
26,
11,
11,
11,
31,
20,
12,
23,
21,
46,
31,
11,
13,
149,
12,
43,
24,
44,
28,
68,
60,
49,
10,
11,
18,
16,
13,
12,
20,
10,
22,
40,
11,
13,
27,
16,
10,
101,
10,
11,
10,
21,
11,
10,
11,
13,
36,
12,
11,
19,
26,
11,
12,
25,
13,
15,
13,
82,
10,
18,
16,
10,
19,
42,
20,
186,
16,
13,
25,
20,
11,
13,
15,
18,
172,
21,
12,
14,
18,
15,
12,
14,
13,
10,
14,
47,
301,
11,
10,
53,
10,
13,
147,
14,
11,
13,
11,
21,
14,
10,
12,
10,
20,
16,
15,
10,
10,
44,
67,
26,
13,
13,
20,
10,
18,
20,
12,
128,
38,
12,
17,
10,
13,
10,
13,
10,
16,
18,
26,
10,
11,
10,
10,
293,
46,
10,
33,
11,
42,
12,
54,
11,
11,
41,
23,
11,
11,
105,
11,
12,
502,
17,
31,
11,
11,
21,
10,
14,
11,
11,
11,
13,
13,
124,
13,
10,
16,
12,
44,
16,
23,
23,
20,
34,
25,
12,
10,
50,
21,
23,
72,
11,
17,
19,
35,
14,
10,
15,
12,
15,
81,
32,
572,
32,
11,
11,
11,
13,
22,
20,
14,
118,
14,
18,
20,
28,
106,
52,
167,
15,
36,
19,
39,
30,
12,
15,
41,
261,
111,
932,
181,
11,
304,
61,
50,
37,
287,
1031,
16,
123,
10,
298,
17,
89,
18,
15,
14,
11,
207,
13,
17,
24,
7997,
12,
32,
2170,
134,
466,
29,
10,
26,
45,
57,
32,
78,
96,
39,
48,
104,
21,
16,
17,
10,
37,
17,
11,
16,
70,
13,
10,
51,
25,
176,
11,
23,
17,
17,
13,
101,
46,
17,
12,
115,
28,
13,
12,
77,
32,
40,
11,
19,
10,
16,
234,
107,
32,
24,
13,
10,
66,
99,
11,
14,
24,
120,
95,
13,
314,
75,
16,
147,
137,
16,
26,
89,
22,
112,
147,
45,
10,
19,
23,
80,
31,
77,
26,
12,
146,
40,
94,
11,
11,
75,
12,
11,
136,
57,
35,
504,
54,
53,
92,
48,
69,
13,
15,
75,
143,
11,
60,
12,
20,
13,
194,
41,
448,
39,
23,
11,
11,
10,
326,
12,
14,
36,
13,
310,
27,
24,
41,
20,
46,
15,
20,
36,
34,
10,
58,
43,
75,
21,
151,
143,
64,
17,
22,
105,
10,
182,
13,
20,
11,
11,
15,
76,
49,
14,
25,
22,
13,
14,
73,
10,
18,
32,
11,
17,
13,
31,
24,
21,
182,
14,
13,
13,
28,
10,
29,
100,
43,
738,
25,
23,
19,
13,
63,
15,
37,
10,
21,
13,
12,
153,
19,
11,
17,
16,
65,
24,
44,
13,
49,
31,
102,
18,
114,
13,
34,
10,
58,
131,
22,
132,
100,
19,
10,
15,
126,
10,
10,
21,
48,
25,
37,
14,
14,
121,
491,
30,
13,
15,
44,
10,
10,
15,
68,
25,
10,
18,
16,
25,
83,
10,
14,
37,
191,
51,
865,
111,
242,
703,
16,
16,
649,
471,
75,
23,
864,
102,
97,
239,
31,
18,
80,
18,
71,
11,
62,
10,
188,
456,
13,
3374,
102,
128,
10,
15,
1008,
19,
25,
17,
44,
17,
11,
13,
22,
38,
20,
12,
10,
24,
366,
21,
21,
19,
49,
2148,
613,
586,
10,
17,
14,
11,
13,
10,
10,
24,
34,
32,
221,
44,
11,
49,
19,
27,
13,
14,
11,
10,
34,
380,
41,
32,
103,
21,
23,
346,
12,
23,
16,
108,
10,
11,
15,
95,
11,
10,
152,
37,
47,
15,
21,
254,
220,
75,
23,
10,
88,
56,
38,
28,
17,
14,
21,
52,
226,
16,
21,
34,
12,
12,
10,
13,
82,
10,
18,
49,
443,
28,
14,
30,
28,
19,
71,
13,
13,
17,
33,
81,
19,
11,
54,
16,
19,
10,
31,
14,
39,
10,
69,
10,
16,
13,
71,
19,
732,
11,
13,
12,
10,
10,
11,
88,
123,
12,
29,
66,
58,
71,
234,
247,
18,
14,
84,
30,
41,
173,
21,
14,
11,
11,
13,
151,
44,
28,
34,
23,
11,
11,
53,
32,
75,
2237,
30,
86,
39,
375,
93,
64,
14,
17,
28,
12,
183,
13,
16,
36,
26,
365,
98,
40,
75,
262,
84,
349,
18,
21,
30,
11,
16,
39,
11,
50,
251,
691,
95,
14,
23,
10,
139,
29,
14,
28,
764,
14,
27,
541,
531,
55,
27,
13,
89,
13,
27,
156,
52,
19,
25,
10,
129,
92,
33,
392,
11,
14,
32,
22,
301,
232,
39,
441,
18,
11,
14,
123,
25,
18,
18,
79,
20,
11,
104,
18,
42,
44,
224,
260,
24,
13,
35,
34,
39,
1046,
18,
17,
41,
84,
63,
12,
10,
13,
26,
10,
15,
45,
13,
10,
17,
19,
23,
51,
54,
77,
13,
66,
24,
27,
30,
15,
20,
186,
10,
19,
66,
96,
57,
68,
30,
177,
208,
22,
39,
10,
44,
14,
67,
63,
35,
10,
12,
41,
13,
15,
99,
81,
74,
11,
138,
28,
343,
13,
85,
30,
27,
11,
68,
35,
16,
42,
21,
102,
32,
29,
16,
13,
57,
116,
15,
12,
12,
394,
120,
8274,
13,
365,
64,
32,
169,
562,
14,
10,
44,
111,
680,
13,
16,
58,
212,
153,
12,
177,
45,
181,
10,
29,
13,
14,
10,
18,
49,
38,
10,
37,
121,
14,
13,
563,
12,
11,
14,
13,
17,
11,
21,
315,
16,
27,
25,
294,
22,
28,
14,
10,
20,
22,
33,
18,
82,
44,
32,
14,
190,
14,
64,
644,
15,
77,
65,
78,
45,
139,
182,
46,
149,
163,
23,
93,
40,
10,
38,
17,
12,
16,
29,
96,
738,
15,
30,
44,
12,
11,
150,
13,
35,
21,
12,
16,
71,
372,
14,
67,
21,
76,
13,
24,
44,
32,
87,
25,
75,
49,
139,
20,
75,
210,
12,
10,
12,
114,
12,
23,
13,
10,
23,
21,
39,
26,
13,
22,
11,
11,
273,
78,
40,
11,
350,
10,
14,
36,
17,
75,
80,
159,
119,
31,
22,
31,
71,
28,
39,
18,
24,
251,
12,
16,
12,
23,
112,
165,
32,
62,
38,
11,
216,
45,
93,
122,
10,
12,
16,
39,
20,
2687,
15,
11,
20,
133,
204,
47,
1030,
12,
13,
17,
106,
11,
199,
69,
19,
259,
35,
20,
13,
12,
60,
12,
92,
232,
177,
49,
29,
28,
33,
11,
16,
29,
10,
22,
30,
11,
21,
11,
34,
20,
77,
365,
11,
45,
29,
12,
24,
13,
80,
21,
104,
12,
22,
39,
34,
12,
27,
30,
47,
33,
23,
42,
19,
53,
23,
15,
245,
15,
121,
19,
103,
32,
36,
77,
103,
61,
100,
26,
114,
305,
11,
36,
2151,
11,
28,
808,
20,
116,
12,
22,
13,
378,
14,
18,
10,
10,
96,
34,
15,
150,
67,
442,
36,
32,
74,
21,
13,
23,
16,
40,
18,
372,
15,
14,
10,
38,
31,
12,
11,
13,
979,
697,
10,
92,
13,
85,
10,
12,
80,
28,
27,
84,
410,
84,
24,
13,
584,
36,
10,
18,
12,
928,
11,
112,
29,
83,
62,
35,
93,
317,
35,
15,
128,
251,
30,
48,
688,
19,
171,
338,
137,
98,
394,
75,
105,
123,
47,
49,
15,
85,
18,
350,
316,
437,
179,
244,
304,
11,
15,
18,
74,
20,
148,
204,
491,
47,
131,
128,
43,
1339,
29,
65,
69,
76,
12,
10,
15,
12,
33,
11,
10,
30,
36,
11,
136,
97,
32,
21,
15,
74,
14,
566,
21,
231,
32,
24,
14,
14,
13,
121,
10,
2326,
10,
184,
93,
54,
45,
37,
246,
102,
67,
13,
11,
13,
94,
70,
110,
34,
90,
14,
14,
98,
855,
17,
55,
90,
252,
25,
12,
70,
51,
27,
144,
14,
130,
118,
10,
223,
11,
3003,
80,
56,
19,
25,
226,
15,
16,
29,
29,
48,
175,
11,
10,
94,
12,
74,
11,
11,
38,
18,
37,
14,
42,
74,
808,
10,
57,
31,
26,
54,
11,
50,
25,
16,
21,
30,
154,
222,
4148,
1071,
135,
13,
10,
43,
15,
18,
82,
11,
715,
169,
98,
29,
13,
32,
112,
27,
188,
33,
30,
67,
10,
189,
19,
83,
61,
13,
2030,
29,
744,
50,
93,
370,
1684,
2220,
2636,
623,
892,
14,
12,
297,
313,
11,
695,
74,
22,
129,
36,
271,
75,
52,
40,
13,
20,
146,
24,
121,
466,
17,
33,
144,
1262,
41,
90,
136,
23,
10,
507,
74,
37,
92,
16,
17,
28,
28,
10,
11,
148,
10,
11,
81,
107,
38,
11,
27,
12,
12,
67,
72,
45,
17,
38,
35,
205,
62,
10,
17,
58,
29,
10,
73,
13,
11,
14,
10,
21,
30,
49,
60,
33,
224,
26,
13,
21,
27,
10,
10,
19,
162,
20,
15,
10,
26,
19,
11,
30,
24,
35,
256,
26,
10,
32,
32,
32,
34,
33,
111,
246,
429,
50,
24,
43,
150,
16,
11,
26,
10,
46,
42,
1584,
54,
13,
266,
193,
123,
42,
22,
206,
36,
92,
46,
70,
79,
34,
22,
367,
25,
74,
63,
11,
80,
10,
1540,
246,
12,
16,
229,
106,
48,
15,
60,
13,
32,
172,
17,
32,
88,
23,
13,
79,
29,
40,
10,
27,
80,
32,
164,
15,
10,
26,
43,
38,
10,
21,
187,
30,
31,
64,
29,
34,
60,
23,
65,
32,
17,
153,
75,
16,
21,
35,
12,
222,
16,
79,
18,
14,
68,
41,
76,
32,
10,
60,
10,
14,
11,
27,
40,
65,
17,
15,
31,
59,
162,
15,
13,
64,
24,
13,
13,
24,
14,
23,
84,
16,
30,
36,
302,
57,
407,
28,
18,
69,
141,
11,
486,
24,
545,
27,
52,
3013,
12,
10,
24,
1011,
654,
21,
31,
22,
11,
102,
15,
123,
599,
11,
15,
29,
33,
130,
10,
3853,
35,
94,
25,
16,
12,
16,
170,
67,
1264,
14,
13,
84,
384,
26,
91,
123,
55,
255,
15,
26,
170,
38,
13,
35,
30,
12,
30,
27,
22,
64,
23,
111,
17,
24,
21,
152,
19,
119,
39,
40,
178,
311,
47,
25,
345,
85,
31,
23,
21,
248,
94,
147,
19,
2105,
13,
39,
94,
12,
14,
14,
68,
13,
35,
15,
12,
20,
16,
11,
182,
11,
24,
553,
91,
14,
11,
10,
170,
721,
10,
12,
605,
225,
197,
32,
59,
60,
10,
11,
111,
135,
270,
19,
754,
61,
12,
12,
14,
77,
100,
73,
70,
346,
50,
35,
16,
92,
31,
23,
11,
17,
44,
44,
95,
15,
282,
13,
173,
109,
119,
13,
569,
42,
19,
18,
20,
80,
15,
29,
10,
22,
29,
11,
117,
13,
10,
54,
57,
90,
15,
12,
34,
50,
14,
295,
16,
93,
12,
96,
74,
33,
20,
17,
17,
90,
75,
272,
13,
10,
24,
12,
179,
20,
109,
16,
74,
30,
10,
31,
25,
50,
455,
25,
11,
29,
132,
46,
20,
16,
152,
74,
211,
328,
89,
13,
10,
20,
130,
13,
15,
18,
28,
63,
14,
91,
1255,
1084,
76,
85,
25,
62,
489,
12,
48,
972,
33,
10,
253,
60,
220,
181,
12,
45,
116,
84,
181,
39,
35,
178,
449,
12,
375,
73,
10,
75,
736,
394,
49,
154,
12,
133,
41,
31,
19,
117,
58,
90,
23,
12,
122,
27,
97,
81,
139,
274,
113,
43,
492,
598,
27,
122,
26,
20,
11,
21,
61,
16,
14,
10,
10,
12,
34,
553,
27,
32,
10,
110,
16,
32,
27,
35,
26,
15,
21,
51,
65,
99,
48,
15,
38,
11,
53,
13,
40,
195,
21,
55,
170,
36,
20,
30,
16,
29,
17,
10,
37,
360,
11,
24,
10,
39,
114,
14,
89,
26,
28,
156,
57,
16,
10,
67,
20,
11,
193,
884,
44,
30,
42,
17,
22,
105,
29,
500,
92,
194,
36,
55,
2720,
10,
719,
23,
229,
11,
51,
202,
10,
10,
22,
40,
407,
11,
13,
45,
10,
48,
33,
30,
167,
141,
15,
35,
107,
118,
14,
54,
13,
95,
10,
23,
81,
97,
1325,
19,
137,
22,
21,
343,
12,
18,
13,
48,
18,
13,
71,
21,
674,
146,
30,
93,
18,
31,
584,
527,
42,
31,
84,
10,
70,
14,
60,
331,
151,
22,
16,
14,
22,
11,
15,
17,
16,
309,
53,
35,
217,
28,
20,
20,
11,
25,
10,
34,
61,
91,
13,
18,
10,
28,
246,
51,
11,
48,
20,
69,
23,
20,
32,
20,
21,
17,
23,
13,
11,
938,
16,
145,
10,
69,
243,
10,
25,
4622,
30,
489,
23,
33,
13,
12,
10,
18,
59,
13,
10,
2510,
141,
220,
40,
10,
90,
36,
64,
32,
10,
343,
660,
220,
80,
70,
118,
58,
25,
143,
949,
62,
18,
204,
212,
440,
91,
20,
70,
18,
34,
15,
10,
80,
5035,
28,
228,
48,
10,
2926,
11839,
183,
14,
41,
23,
24,
63,
112,
38,
84,
35,
49,
42,
151,
61,
75,
311,
40,
53,
115,
144,
3104,
1180,
445,
88,
23,
20,
11,
70,
3602,
540,
11,
64,
64,
52,
12,
10,
10,
123,
13,
32,
43,
75,
33,
39,
14,
40,
16,
31,
11,
49,
54,
19,
95,
20,
12,
19,
30,
113,
43,
736,
34,
182,
20,
52,
40,
24,
15,
10,
26,
11,
10,
53,
165,
349,
123,
20,
10,
222,
169,
87,
30,
68,
15,
57,
12,
15,
849,
68,
173,
98,
31,
292,
2466,
13,
16,
11,
35,
35,
42,
22,
22,
42,
10,
58,
10,
11,
175,
124,
16,
17,
462,
25,
56,
44,
12,
15,
18,
22,
45,
106,
25,
177,
55,
12,
1491,
30,
13,
29,
36,
82,
26,
95,
80,
47,
15,
19,
16,
10,
12,
12,
36,
10,
42,
13,
77,
19,
12,
93,
11,
23,
17,
11,
97,
35,
11,
14,
11,
19,
20,
12,
120,
255,
156,
15,
94,
613,
32,
12,
34,
12,
12,
65,
163,
11,
83,
31,
60,
21,
35,
33,
67,
118,
13,
50,
41,
21,
14,
158,
431,
12,
30,
209,
10,
25,
126,
10,
10,
25,
268,
41,
40,
78,
72,
66,
79,
18,
16,
21,
15,
16,
91,
354,
23,
14,
21,
20,
10,
13,
318,
14,
82,
12,
17,
31,
46,
11,
885,
59,
25,
59,
67,
74,
18,
10,
47,
13,
11,
24,
456,
33,
19,
13,
68,
107,
17,
22,
127,
13,
10,
1196,
58,
57,
10,
10,
14,
49,
11,
20,
27,
29,
24,
10,
11,
12,
36,
62,
26,
108,
68,
433,
31,
10,
98,
106,
200,
34,
14,
16,
10,
10,
75,
14,
31,
15,
73,
73,
15,
121,
45,
12,
11,
135,
134,
74,
14,
10,
82,
70,
10,
15,
541,
11,
21,
11,
69,
57,
14,
38,
14,
36,
53,
25,
12,
17,
47,
286,
100,
44,
59,
15,
32,
37,
134,
22,
71,
11,
1667,
10,
14,
35,
25,
13,
76,
28,
78,
12,
256,
25,
11,
11,
192,
179,
280,
20,
11,
24,
205,
110,
19,
34,
89,
144,
39,
313,
24,
13,
37,
22,
10,
35,
3654,
16,
212,
23,
98,
35,
163,
203,
14,
73,
13,
41,
20,
73,
16,
62,
11,
18,
241,
10,
10,
76,
10,
11,
18,
70,
13,
15,
73,
80,
12,
98,
274,
10,
18,
57,
24,
11,
45,
48,
33,
10,
23,
11,
31,
12,
13,
12,
92,
44,
45,
23,
10,
135,
19,
33,
12,
957,
48,
20,
43,
58,
74,
12,
100,
146,
128,
945,
38,
34,
174,
229,
10,
38,
34,
521,
25,
81,
34,
24,
27,
757,
129,
81,
15,
10,
401,
292,
11,
10,
54,
71,
90,
1971,
105,
539,
42,
13,
5352,
320,
29,
11,
10,
25,
55,
21,
62,
16,
86,
12,
13,
11,
11,
64,
37,
24,
177,
53,
34,
29,
10,
891,
22,
34,
12,
28,
12,
96,
14,
69,
10,
25,
19,
15,
60,
46,
74,
163,
92,
41,
40,
38,
393,
346,
578,
12,
56,
21,
17,
10,
42,
22,
17,
15,
34,
13,
22,
405,
195,
339,
35,
297,
11,
18,
148,
770,
211,
55,
68,
31,
13,
96,
10,
11,
109,
13,
83,
16,
22,
15,
45,
26,
21,
33,
180,
11,
49,
10,
10,
10,
172,
93,
13,
3903,
233,
26,
106,
43,
52,
12,
10,
10,
13,
11,
674,
1944,
14,
46,
11,
17,
193,
19,
597,
29,
285,
28,
16,
142,
11,
12,
47,
1434,
41,
212,
25,
50,
60,
22,
55,
12,
217,
26,
113,
60,
30,
54,
214,
31,
25,
27,
117,
184,
397,
201,
854,
10,
36,
10,
33,
24,
140,
151,
96,
74,
214,
439,
501,
43,
27,
161,
48,
12,
13,
60,
29,
479,
35,
37,
56,
11,
137,
105,
24,
21,
12,
91,
23,
42,
13,
33,
23,
11,
224,
288,
73,
40,
15,
34,
325,
81,
18,
151,
70,
27,
142,
43,
11,
426,
26,
17,
12,
11,
37,
19,
27,
74,
14,
30,
251,
56,
92,
16,
17,
39,
26,
19,
39,
74,
17,
25,
224,
54,
175,
52,
29,
56,
22,
504,
235,
32,
10,
20,
35,
107,
18,
24,
10,
18,
73,
283,
14,
167,
39,
30,
107,
15,
46,
47,
13,
110,
11,
63,
37,
12,
23,
38,
16,
46,
58,
52,
120,
294,
33,
21,
14,
44,
10,
201,
92,
36,
13,
28,
16,
22,
14,
15,
49,
74,
45,
31,
13,
25,
14,
20,
10,
39,
33,
10,
19,
19,
46,
11,
113,
325,
46,
43,
16,
27,
11,
49,
359,
146,
65,
34,
46,
470,
49,
124,
551,
12,
14,
17,
60,
60,
30,
94,
43,
26,
12,
38,
360,
15317,
10,
34,
128,
17,
13,
13,
15,
25,
91,
107,
22,
46,
15,
506,
10,
65,
636,
27,
21,
15,
11,
16,
74,
18,
10,
43,
525,
19,
15,
10,
729,
11,
49,
11,
35,
32,
74,
10,
27,
185,
30,
19,
34,
14,
10,
18,
45,
478,
196,
745,
49,
54,
189,
44,
69330,
44,
65,
11,
12,
10,
15,
309,
65,
12,
32,
49,
123,
30,
29,
17,
26,
602,
10,
252,
50,
23,
14,
1173,
162,
598,
3626,
57,
33,
18,
138,
67,
578,
19,
393,
18,
215,
11,
44,
18,
185,
428,
285,
30,
17,
11,
19,
29,
26,
301,
32,
183,
25,
442,
29,
54,
15,
125,
114,
251,
17,
269,
35,
24,
40,
27,
49,
16,
10,
78,
28,
13,
15,
18,
13,
1125,
74,
23,
10,
17,
18,
42,
24,
13,
11,
66,
45,
30,
40,
40,
12,
15,
2290,
49,
97,
14,
272,
21,
16,
25,
13,
166,
25,
10,
12,
77,
10,
31,
10,
31,
21,
10,
57,
13,
20,
93,
29,
13,
20,
371,
45,
31,
12,
27,
11,
16,
10,
14,
94,
14,
21,
62,
34,
21,
11,
22,
33,
100,
14,
17,
13,
82,
81,
92,
116,
50,
14,
265,
113,
473,
22,
11,
56,
29,
125,
14,
16,
28,
22,
254,
189,
290,
43,
85,
10,
11,
30,
12,
53,
152,
80,
36,
18,
130,
33,
54,
52,
33,
158,
4688,
40,
56,
137,
12,
11,
12,
27,
10,
1050,
78,
44,
224,
10,
21,
192,
35,
59,
70,
451,
2846,
22,
10,
10,
25,
85,
58,
10,
25,
77,
19,
148,
102,
48,
12,
48,
135,
101,
26,
12,
10,
165,
16,
31,
10,
10,
411,
21,
10,
124,
11,
11,
32,
26,
33,
20,
28,
85,
52,
16,
13,
15,
63,
18,
44,
1315,
1002,
1446,
99,
24,
118,
10,
10,
32,
15,
204,
14,
25,
31,
12,
21,
15,
10,
57,
40,
30,
93,
11,
20,
13,
2130,
41,
43,
63,
68,
26,
25,
15,
12,
22,
329,
11,
262,
13,
12,
1617,
899,
29,
295,
12,
13,
186,
166,
107,
61,
66,
20,
17,
25,
20,
2371,
78,
1091,
33,
19,
20,
105,
57,
75,
22,
37,
17,
11,
83,
13,
105,
345,
303,
43,
126,
16,
125,
10,
48,
14,
448,
13,
24,
99,
157,
49,
79,
21,
266,
136,
230,
199,
173,
400,
10,
10,
23,
135,
53,
35,
10,
266,
32,
19,
29,
12,
28,
13,
16,
11,
10,
27,
25,
30,
802,
169,
65,
41,
11,
16,
17,
13,
15,
10,
184,
10,
77,
66,
42,
649,
790,
15,
10,
33,
19,
20,
20,
364,
573,
74,
298,
12,
59,
511,
347,
24,
25,
14,
26,
18,
67,
49,
89,
11,
17,
10,
12,
94,
256,
93,
182,
165,
22,
15,
117,
12,
44,
166,
21,
76,
1536,
97,
86,
14,
13,
281,
168,
11,
25,
15,
17,
824,
293,
625,
17,
251,
13,
45,
464,
16,
15,
141,
85,
14,
24,
47,
12,
803,
53,
24,
90,
26,
19,
21,
14,
126,
46,
77,
46,
31,
10,
15,
42,
693,
37,
157,
11,
60,
16,
67,
45,
387,
23,
13,
12,
12,
22,
19,
15,
11,
28,
182,
17,
36,
11,
299,
29,
39,
32,
27,
10,
200,
78,
46,
25,
319,
41,
42,
59,
19,
51,
836,
13,
13,
10,
120,
66,
189,
23,
734,
22,
28,
668,
46,
20,
21,
433,
16,
15,
16,
82,
32,
24,
19,
12,
116,
52,
38,
14,
23,
43,
127,
21,
92,
18,
12,
105,
15,
49,
175,
16,
76,
27,
141,
35,
10035,
33,
10,
47,
10,
11,
18,
17,
42,
40,
948,
25,
29,
10,
112,
26,
187,
107,
242,
18,
24,
12,
320,
10,
18,
1227,
245,
67,
17,
91,
70,
14,
171,
39,
10,
65,
32,
10,
16,
18,
12,
15,
17,
32,
32,
246,
15,
76,
10,
10,
211,
47,
59,
12,
2028,
22,
12,
18,
70,
12,
23,
27,
294,
320,
143,
24,
20,
833,
30,
47,
10,
29,
32,
148,
2274,
26,
278,
546,
25,
80,
46,
10,
25,
96,
182,
11,
68,
69,
12,
43,
11,
10,
11,
165,
15,
35,
27,
538,
15,
17,
16,
15,
14,
13,
74,
26,
49,
38,
11,
395,
24,
10,
18,
507,
11,
151,
17,
11,
10,
119,
26,
14,
11,
34,
28,
35,
20,
117,
22,
27,
68,
147,
14,
22,
32,
85,
53,
22,
15,
36,
83,
154,
12,
82,
35,
189,
19,
19,
29,
47,
28,
104,
94,
26,
57,
10,
278,
42,
32,
67,
10,
13,
16,
18,
11,
43,
74,
16,
35,
11,
65,
13,
25,
844,
13,
28,
33,
15,
113,
75,
12,
29,
75,
10,
14,
13,
12,
10,
59,
16,
10,
13,
782,
303,
10,
257,
11,
120,
17,
59,
544,
148,
278,
19,
257,
31,
12,
258,
49,
60,
14,
28,
15,
32,
119,
30,
40,
278,
49,
47,
62,
12,
32,
12,
92,
12,
28,
29,
154,
36,
22,
29,
89,
125,
16,
134,
618,
10,
52,
27,
101,
10,
412,
10,
343,
52,
52,
65,
33,
23,
20,
36,
91,
79,
13,
12,
109,
50,
154,
22,
13,
50,
104,
62,
24,
254,
296,
19,
37,
42,
49,
11,
1655,
2668,
2241,
13,
95,
137,
13,
959,
85,
59,
19,
13,
13,
31,
113,
12,
12,
33,
21,
53,
96,
15,
16,
22,
80,
133,
37,
33,
447,
386,
40,
10,
11,
107,
38,
11,
93,
20,
13,
12,
15,
10,
57,
17,
151,
10,
33,
78,
77,
11,
24,
10,
47,
10,
798,
95,
13,
47,
16,
23,
36,
131,
19,
270,
32,
32,
139,
11,
50,
10,
151,
1260,
36,
439,
41,
503,
36,
72,
270,
242,
17,
394,
1103,
60,
34,
83,
14,
46,
20,
51,
24,
37,
630,
11,
47,
27,
72,
27,
659,
25,
210,
394,
19,
273,
74,
10,
11,
90,
34,
10,
24,
45,
15,
27,
10,
10,
19,
29,
10,
125,
88,
10,
36,
13,
27,
39,
25,
10,
17,
27,
26,
161,
28,
415,
29,
48,
244,
68,
48,
15,
27,
903,
22,
74,
18,
3041,
46,
16,
14,
32,
31,
42,
12,
68,
123,
3510,
486,
15,
418,
244,
218,
23,
74,
10,
16,
14,
289,
26,
23,
18,
195,
461,
271,
466,
2031,
39,
66,
1550,
15,
611,
1565,
466,
173,
140,
51,
12,
144,
15,
88,
804,
391,
16,
10,
73,
32,
64,
60,
24,
37,
100,
51,
95,
142,
59,
27,
74,
16,
11,
37,
65,
354,
62,
168,
56,
18,
13,
12,
26,
29,
61,
21,
11,
188,
13,
11,
19,
18,
10,
17,
35,
4045,
12,
19,
39,
10,
38,
25,
80,
264,
60,
16,
67,
82,
38,
15,
29,
96,
18,
20,
82,
151,
27,
13,
74,
54,
16,
332,
18,
60,
24,
18,
81,
48,
24,
1068,
365,
69,
97,
116,
11,
13,
117,
143,
11,
374,
234,
79,
19,
84,
100,
26,
141,
14,
17,
10,
57,
104,
30,
54,
60,
11,
29,
51,
985,
38,
66,
31,
34,
22,
13,
12,
1008,
14,
11,
12,
10,
12,
13,
14,
13,
15,
94,
26,
14,
23,
61,
89,
55,
10,
57,
50,
10,
26,
10,
62,
31,
10,
69,
24,
12,
23,
19,
10,
73,
27,
99,
36,
28,
16,
220,
23,
108,
26,
21,
35,
53,
56,
213,
13,
12,
25,
15,
13,
21,
11,
24,
17,
17,
149,
92,
67,
27,
51,
27,
83,
10,
154,
23,
55,
13,
26,
13,
22,
10,
10,
58,
17,
11,
13,
550,
215,
13,
10,
23,
45,
12,
14,
10,
49,
11,
10,
46,
23,
37,
55,
10,
10,
142,
26,
10,
145,
17,
13,
15,
29,
31,
11,
11,
12,
11,
189,
62,
899,
40,
5026,
10,
10,
54,
19,
33,
2862,
517,
126,
31,
22,
682,
37,
370,
17,
31,
13,
51,
11,
45,
120,
3365,
22,
48,
93,
10,
137,
24,
25,
272,
19,
15,
12,
215,
191,
430,
47,
61,
49,
46,
15,
113,
110,
25,
90,
244,
86,
388,
820,
4878,
49,
72,
54,
51,
204,
12,
76,
18,
22,
153,
11,
19,
11,
1564,
28,
13,
57,
74,
12,
11,
23,
73,
74,
191,
57,
13,
30,
25,
11,
4677,
97,
42,
15,
506,
289,
22,
45,
86,
126,
12,
18,
12,
87,
74,
22,
23,
3207,
92,
726,
41,
18,
69,
39,
149,
28,
610,
119,
71,
19,
10,
19,
21,
121,
27,
18,
11,
10,
70,
115,
222,
13,
20,
77,
32,
16,
10,
28,
73,
10,
13,
231,
12,
21,
30,
106,
4712,
8247,
3671,
46,
30,
18,
14,
47,
54,
502,
49,
103,
487,
12,
34,
97,
29,
13,
61,
13,
16,
33,
10,
26,
2068,
90,
50,
124,
44,
47,
19,
51,
10,
3311,
902,
96,
79,
55,
356,
75,
16,
10,
47,
12,
84,
269,
74,
68,
33,
13,
1069,
12,
14,
14,
19,
44,
536,
58,
49,
318,
13,
22,
16,
11,
16,
25,
71,
1034,
82,
16,
15,
15,
11,
25,
14,
30,
43,
81,
49,
18,
11,
11,
66,
13,
30,
103,
15,
21,
23,
116,
224,
89,
47,
17,
10,
53,
10,
80,
17,
3635,
115,
13,
83,
10,
103,
11,
25,
190,
20,
23,
57,
28,
17,
20,
29,
65,
89,
117,
71,
20,
185,
48,
10,
78,
142,
14,
68,
750,
678,
331,
105,
288,
63,
21,
254,
1417,
76,
30,
2081,
1945,
15,
10,
966,
22,
85,
21,
64,
1984,
11,
1437,
27,
35,
11,
24,
26,
18,
280,
13,
21,
844,
44,
42,
23,
48,
20,
56,
694,
161,
21,
572,
152,
39,
17,
139,
11,
22,
17,
269,
10,
24,
53,
40,
46,
71,
23,
109,
96,
12,
14,
14,
15,
14,
42,
13,
13,
72,
151,
11614,
153,
18,
77,
32,
49,
11,
70,
198,
24,
688,
29,
30,
9111,
76,
3754,
128,
686,
58,
482,
126,
45,
235,
105,
37,
324,
57,
107,
995,
196,
148,
480,
46,
701,
14,
226,
109,
13,
89,
34,
14,
11,
10,
92,
10,
16,
10,
64,
73,
65,
43,
10,
197,
159,
24,
265,
15,
26,
463,
37,
81,
17,
19,
118,
12,
28,
15,
93,
12,
43,
42,
148,
152,
243,
138,
11,
10,
15,
14,
423,
271,
133,
27,
20,
165,
11,
76,
88,
74,
11,
18,
12,
412,
37,
14,
17,
11,
70,
224,
29,
1482,
87,
214,
162,
84,
26,
73,
143,
17,
70,
73,
11,
75,
93,
17,
28,
52,
11,
26,
38,
10,
445,
51,
10,
16,
94,
11,
119,
10,
54,
1799,
40,
11,
61,
143,
122,
11,
12,
368,
38,
15,
13,
17,
14,
17,
207,
16,
19,
12,
11,
19,
42,
46,
31,
12,
28,
13,
32,
10,
18,
59,
32,
19,
53,
11,
66,
20,
111,
51,
53,
16,
10,
10,
10,
31,
11,
12,
14,
34,
14,
179,
14,
31,
483,
12,
12,
15,
19,
39,
15,
107,
10,
17,
10,
12,
11,
14,
18,
16,
11,
10,
12,
28,
12,
110,
10,
75,
15,
15,
15,
14,
20,
17,
18,
10,
126,
170,
154,
94,
23,
74,
27,
51,
54,
10,
26,
21,
13,
14,
65,
12,
15,
10,
11,
12,
16,
10,
19,
10,
14,
27,
14,
14,
13,
15,
12,
10,
14,
12,
17,
11,
14,
14,
13,
55,
19,
32,
21,
29,
146,
37,
10,
12,
11,
16,
12,
13,
13,
20,
11,
100,
15,
56,
13,
1205,
178,
40,
10,
11,
12,
11,
12,
10,
10,
12,
177,
11,
20,
14,
31,
10,
32,
818,
122,
194,
11,
17,
13,
11,
11,
277,
10,
17,
14,
16,
12,
11,
19,
13,
10,
10,
15,
23,
13,
52,
21,
10,
10,
74,
17,
11,
13,
28,
11,
40,
12,
10,
10,
14,
14,
83,
23,
22,
23,
23,
173,
24,
94,
17,
16,
10,
10,
46,
24,
14,
13,
29,
12,
18,
28,
12,
30,
19,
13,
11,
13,
73,
11,
21,
27,
11,
19,
23,
14,
53,
10,
11,
26,
10,
13,
15,
15,
16,
32,
151,
45,
37,
38,
10,
10,
20,
60,
32,
11,
29,
19,
151,
12,
305,
71,
106,
98,
140,
86,
10,
23,
13,
19,
11,
11,
13,
21,
13,
12,
24,
11,
10,
22,
19,
11,
15,
22,
11,
54,
15,
37,
23,
10,
22,
12,
52,
17,
11,
10,
11,
25,
29,
10,
11,
10,
10,
78,
14,
12,
11,
68,
34,
10,
38,
38,
39,
39,
10,
19,
10,
10,
23,
19,
15,
12,
12,
45,
17,
11,
79,
90,
14,
25,
28,
26,
19,
111,
100,
18,
10,
10,
11,
20,
11,
14,
11,
10,
10,
16,
20,
21,
72,
12,
48,
20,
12,
16,
10,
18,
15,
12,
33,
27,
13,
11,
13,
14,
10,
56,
24,
25,
13,
17,
14,
12,
15,
17,
10,
12,
17,
12,
11,
129,
20,
111,
10,
37,
334,
16,
47,
58,
18,
10,
35,
24,
204,
143,
85,
25,
44,
17,
76,
16,
19,
1885,
67,
13,
18,
110,
33,
49,
307,
16,
13,
84,
12,
199,
34,
131,
41,
22,
43,
44,
33,
71,
10,
12,
10,
12,
11,
43,
21,
10,
11,
26,
415,
20,
51,
164,
10,
31,
46,
20,
12,
90,
11,
37,
167,
185,
69,
90,
38,
91,
14,
441,
40,
11,
13,
61,
186,
11,
86,
26,
225,
143,
13,
15,
75,
57,
20,
17,
11,
37,
57,
36,
16,
11,
16,
2923,
19,
2970,
13,
13,
43,
57,
16,
21,
329,
65,
82,
52,
12,
137,
12,
12,
91,
11,
20,
28,
30,
60,
59,
116,
280,
51,
13,
73,
10,
58,
56,
200,
427,
20,
34,
73,
89,
12,
14,
85,
79,
12,
12,
17,
550,
49,
84,
413,
38,
25,
48,
10,
42,
20,
36,
30,
195,
99,
38,
44,
10,
109,
30,
14,
41,
11,
613,
28,
78,
23,
10,
57,
13,
1951,
178,
19,
26,
11,
106,
516,
13,
17,
59,
13,
18,
10,
11,
592,
25,
178,
13,
73,
21,
54,
310,
33,
45,
125,
206,
14,
141,
2408,
10,
11,
18,
10,
14,
592,
12,
39,
35,
37,
14,
61,
93,
206,
30,
23,
11,
17,
14,
58,
146,
24,
42,
30,
15,
55,
43,
19,
760,
36,
32,
74,
239,
262,
10,
215,
25,
44,
35,
52,
121,
108,
94,
40,
10,
40,
37,
16,
105,
22,
13,
10,
10,
28,
36,
20,
142,
14,
79,
465,
86,
76,
112,
13,
35,
61,
63,
11,
22,
53,
10,
30,
12,
320,
43,
37,
115,
35,
27,
51,
10,
12,
54,
17,
19,
48,
14,
80,
302,
403,
32,
278,
75,
25,
504,
35,
69,
30,
560,
53,
26,
19,
70,
15,
25,
10,
12,
437,
10,
109,
10,
703,
11,
65,
24,
10,
122,
21,
10,
25,
10,
1125,
30,
30,
10,
13,
72,
66,
18,
13,
15,
23,
61,
109,
208,
95,
15,
78,
23,
121,
34,
21,
13,
10,
68,
11,
153,
74,
82,
12,
74,
30,
331,
31,
29,
24,
29,
405,
22,
174,
20,
55,
22,
31,
32,
59,
57,
42,
18,
22,
25,
25,
155,
14,
77,
52,
16,
10,
60,
59,
637,
1184,
11,
12,
96,
314,
535,
30,
19,
10,
13,
106,
11,
38,
2358,
16,
96,
63,
22,
30,
85,
20,
219,
31,
12,
16,
10,
134,
60,
25,
11,
36,
31,
11,
58,
80,
12,
37,
50,
25,
11,
11,
13,
203,
27,
54,
48,
17,
14,
400,
58,
21,
13,
11,
11,
285,
152,
131,
15,
11,
42,
34,
15,
542,
92,
411,
239,
172,
33,
32,
47,
15,
12,
10,
45,
10,
18,
64,
214,
46,
28,
664,
262,
33,
26,
16,
10,
10,
48,
48,
74,
11,
12,
43,
1106,
20,
18,
77,
116,
157,
10,
133,
30,
43,
30,
23,
12,
19,
21,
12,
12,
223,
190,
10,
41,
10,
54,
55,
24,
10,
24,
27,
45,
780,
47,
45,
39,
73,
18,
12,
582,
44,
145,
14,
76,
19,
21,
53,
13,
31,
29,
291,
45,
82,
12,
111,
22,
25,
11,
66,
11,
99,
28,
16,
60,
41,
106,
66,
192,
30,
58,
12,
13,
1371,
12,
13,
10,
17,
30,
124,
44,
20,
18,
10,
14,
11,
153,
147,
13,
19,
19,
18,
43,
25,
15,
89,
35,
14,
15,
11,
322,
64,
95,
16,
12,
72,
74,
45,
91,
66,
10,
72,
11,
72,
22,
16,
31,
21,
25,
44,
43,
199,
317,
27,
10,
15,
35,
25,
24,
12,
15,
161,
66,
15,
15,
15,
11,
117,
63,
13,
21,
13,
10,
33,
29,
22,
15,
35,
65,
33,
17,
51,
64,
10,
16,
10,
15,
10,
132,
74,
15,
4259,
176,
46,
52,
93,
45,
50,
27,
23,
11,
20,
108,
11,
46,
231,
312,
129,
11,
236,
43,
62,
10,
92,
737,
97,
39,
390,
10,
49,
38,
127,
15,
20,
108,
10,
12,
97,
2588,
244,
24,
218,
109,
160,
37,
365,
30,
48,
11,
13,
144,
130,
17,
12,
31,
196,
11,
30,
41,
14,
10,
94,
14,
32,
205,
41,
16,
20,
56,
33,
20,
51,
11,
19,
19,
14,
15,
13,
83,
36,
17,
60,
14,
160,
254,
13,
11,
83,
10,
21,
56,
15,
15,
237,
45,
11,
557,
27,
19,
160,
19,
54,
25,
27,
45,
17,
72,
12,
903,
12,
14,
84,
21,
19,
214,
909,
443,
16,
13,
67,
27,
12,
190,
23,
348,
134,
43,
59,
108,
65,
192,
21,
470,
12,
758,
29,
84,
86,
14,
35,
1623,
949,
11,
26,
479,
294,
13,
20,
40,
37,
147,
72,
14,
13,
34,
13,
11,
17,
40,
10,
11,
14,
38,
11,
30,
12,
193,
21,
13,
54,
23,
11,
11,
11,
17,
71,
23,
92,
54,
772,
75,
3653,
41,
25,
1048,
64,
71,
25,
14,
673,
12,
10,
27,
17,
339,
12,
269,
12,
278,
71,
206,
73,
32,
15,
22,
53,
11,
145,
22,
368,
12,
12,
287,
12,
308,
13,
52,
93,
224,
14,
12,
132,
40,
12,
72,
11,
11,
73,
56,
1444,
12,
10,
11,
159,
17,
62,
153,
27,
23,
108,
134,
247,
31,
46,
1198,
221,
33,
53,
14,
13,
56,
37,
12,
1044,
15,
13,
10,
51,
44,
10,
19,
283,
30,
388,
13,
316,
81,
314,
49,
10,
96,
518,
72,
436,
782,
59,
597,
65,
33,
13,
972,
15,
66,
12,
45,
12,
10,
28,
97,
12,
72,
277,
15,
157,
34,
47,
13,
92,
29,
28,
63,
10,
10,
17,
13,
19,
60,
321,
41,
127,
10,
11,
1559,
11,
14,
31,
46,
44,
26,
77,
155,
133,
89,
735,
116,
15,
159,
12,
54,
54,
38,
46,
138,
73,
24,
10,
285,
11,
13,
14,
50,
11,
127,
26,
506,
53,
24,
10,
66,
11,
50,
10,
84,
18,
49,
31,
72,
19,
18,
80,
64,
26,
390,
11,
11,
19,
11,
26,
304,
50,
25,
11,
11,
20,
38,
10,
12,
52,
24,
40,
24,
12,
58,
1706,
33,
10,
43,
24,
34,
30,
59,
67,
13,
16,
11,
100,
12,
38,
12,
10,
31,
31,
88,
44,
35,
54,
79,
28,
11,
16,
57,
30,
172,
14,
42,
11,
28,
51,
11,
17,
135,
11,
57,
64,
15,
10,
51,
36,
67,
47,
18,
19,
28,
41,
32,
221,
11,
28,
74,
10,
27,
129,
10,
42,
45,
82,
39,
11,
93,
42,
41,
37,
26,
95,
536,
14,
11,
21,
43,
12,
70,
165,
14,
11,
44,
60,
174,
78,
28,
12,
10,
16,
16,
24,
17,
70,
10,
10,
80,
10,
17,
11,
13,
58,
32,
24,
10,
27,
103,
22,
49,
11,
134,
11,
30,
18,
61,
270,
600,
202,
37,
86,
229,
11,
10,
10,
184,
74,
35,
15,
83,
21,
61,
701,
219,
68,
31,
10,
52,
11,
57,
35,
219,
72,
125,
10,
44,
10,
27,
38,
13,
14,
1995,
86,
1614,
350,
30,
121,
28,
30,
91,
61,
12,
26,
347,
22,
434,
17,
123,
10,
17,
94,
84,
12,
73,
11,
399,
14,
15,
42,
10,
43,
47,
116,
12,
22,
16,
19,
51,
13,
12,
20,
80,
53,
38,
578,
14,
10,
41,
124,
26,
12,
14,
27,
26,
10,
11,
18,
41,
17,
69,
12,
14,
12,
223,
667,
59,
11,
12,
17,
43,
39,
44,
18,
50,
23,
10,
38,
33,
89,
126,
13,
171,
40,
23,
115,
10,
24,
29,
23,
215,
10,
22,
19,
14,
47,
28,
62,
16,
99,
39,
11,
25,
31,
20,
255,
14,
24,
99,
26,
37,
11,
12,
26,
19,
20,
11,
15,
61,
14,
11,
18,
78,
90,
1262,
898,
14,
14,
65,
14,
20,
11,
31,
28,
23,
277,
16,
64,
61,
17,
44,
112,
10,
32,
15,
16,
10,
353,
18,
60,
451,
271,
259,
12,
10,
13,
77,
16,
25,
37,
1512,
54,
15,
12,
39,
227,
17,
22,
13,
80,
749,
79,
72,
25,
62,
389,
50,
19,
21,
14,
42,
17,
37,
48,
12,
196,
14,
23,
33,
76,
58,
48,
10,
13,
15,
87,
18,
38,
76,
13,
11,
75,
15,
12,
34,
120,
72,
28,
23,
135,
13,
22,
14,
19,
18,
31,
28,
12,
17,
33,
20,
39,
22,
258,
13,
28,
126,
11,
30,
33,
38,
31,
17,
17,
60,
20,
306,
19,
926,
494,
115,
15,
14,
16,
11,
247,
64,
43,
71,
13,
11,
38,
95,
139,
17,
24,
72,
11,
14,
168,
18,
10,
14,
107,
18,
64,
113,
29,
21,
23,
38,
12,
17,
26,
53,
48,
28,
72,
55,
35,
12,
13,
2584,
5390,
17,
11,
29,
231,
24,
80,
12,
56,
15,
98,
50,
683,
67,
20,
57,
97,
48,
27,
56,
82,
11,
25,
14,
272,
29,
55,
28,
35,
206,
23,
105,
13,
28,
391,
19,
301,
268,
26,
97,
18,
11,
12,
20,
13,
110,
44,
42,
26,
14,
28,
21,
77,
21,
47,
11,
323,
15,
13,
25,
154,
40,
28,
55,
174,
281,
23,
16,
383,
12,
122,
125,
21,
12,
424,
95,
42,
32,
15,
27,
14,
16,
10,
96,
73,
31,
638,
148,
12,
11,
41,
18,
55,
23,
212,
29,
256,
72,
25,
10,
11,
77,
31,
11,
11,
20,
433,
16,
10,
224,
29,
12,
49,
21,
146,
117,
25,
25,
69,
22,
36,
58,
10,
23,
14,
45,
25,
25,
12,
10,
28,
24,
12,
59,
23,
11,
41,
12,
203,
34,
15,
59,
260,
19,
13,
36,
174,
104,
21,
105,
20,
52,
10,
11,
13,
132,
10,
11,
60,
168,
72,
72,
195,
467,
564,
28,
218,
320,
194,
120,
1751,
100,
37,
18,
13,
203,
10,
50,
14,
91,
11,
137,
252,
10,
167,
81,
10,
76,
11,
25,
12,
17,
72,
1788,
29,
91,
117,
20,
300,
38,
84,
409,
22,
35,
409,
313,
21,
10,
59,
23,
568,
37,
102,
10,
19,
37,
28,
38,
848,
69,
56,
89,
376,
24,
49,
20,
25,
75,
51,
10,
56,
128,
509,
222,
16,
45,
18,
100,
1098,
95,
129,
80,
162,
45,
115,
18,
12,
19,
18,
58,
96,
10,
23,
26,
28,
32,
31,
10,
150,
31,
11,
38,
24,
67,
12,
41,
211,
36,
28,
39,
96,
103,
155,
149,
525,
16,
1348,
88,
34,
21,
315,
28,
33,
31,
98,
34,
11,
10,
106,
14,
129,
10,
439,
53,
30,
15,
538,
13,
13,
18,
14,
15,
233,
254,
289,
146,
66,
33,
13,
151,
15,
16,
11,
48,
22,
18,
31,
10,
161,
13,
31,
10,
11,
114,
20,
128,
27,
10,
21,
21,
94,
10,
185,
19,
526,
11,
32,
23,
11,
67,
29,
132,
18,
11,
34,
128,
308,
10,
19,
14,
11,
662,
15,
10,
26,
23,
15,
12,
17,
244,
64,
31,
157,
38,
70,
32,
329,
14,
16,
12,
25,
162,
56,
222,
28,
264,
13,
13,
14,
11,
124,
13,
477,
17,
15,
54,
12,
11,
54,
22,
17,
713,
47,
22,
15,
21,
68,
441,
28,
13,
10,
37,
10,
14,
71,
11,
20,
49,
13,
28,
16,
16,
61,
21,
11,
70,
267,
22,
12,
19,
20,
43,
50,
10,
222,
32,
30,
30,
11,
74,
47,
17,
75,
18,
17,
12,
13,
17,
256,
71,
96,
115,
12,
13,
13,
15,
11,
27,
24,
15,
11,
12,
10,
1150,
629,
21,
15,
29,
30,
12,
14,
15,
17,
18,
13,
79,
10,
146,
22,
11,
45,
10,
12,
13,
10,
12,
10,
11,
14,
33,
10,
11,
17,
32,
36,
11,
133,
14,
16,
10,
11,
138,
24,
40,
15,
19,
56,
106,
39,
35,
17,
12,
36,
33,
12,
13,
11,
25,
10,
19,
27,
10,
14,
22,
10,
17,
21,
17,
53,
10,
84,
10,
22,
21,
51,
11,
18,
30,
10,
10,
389,
19,
12,
13,
13,
12,
16,
11,
42,
14,
26,
43,
12,
12,
23,
12,
11,
10,
15,
16,
10,
13,
10,
14,
18,
20,
11,
2356,
14,
11,
20,
15,
15,
19,
17,
37,
11,
16,
10,
10,
16,
10,
11,
13,
11,
13,
22,
159,
10,
10,
46,
36,
23,
36,
12,
17,
13,
16,
11,
111,
13,
15,
55,
10,
11,
15,
13,
20,
99,
10,
55,
17,
10,
66,
13,
29,
54,
20,
10,
10,
11,
19,
13,
10,
18,
11,
20,
10,
18,
19,
10,
10,
13,
13,
10,
11,
11,
10,
10,
15,
10,
10,
10,
16,
16,
136,
16,
10,
13,
13,
20,
11,
11,
13,
24,
54,
30,
11,
14,
11,
14,
20,
17,
10,
47,
12,
16,
26,
22,
23,
12,
22,
168,
10,
10,
46,
25,
18,
10,
17,
10,
13,
14,
12,
10,
54,
12,
13,
14,
10,
13,
40,
502,
19,
34,
10,
10,
351,
32,
201,
37,
65,
59,
72,
13,
35,
14,
12,
11,
11,
10,
24,
27,
11,
10,
82,
13,
14,
17,
19,
15,
24,
29,
43,
24,
31,
10,
43,
11,
11,
14,
33,
12,
26,
11,
18,
10,
158,
10,
13,
16,
18,
50,
10,
13,
10,
13,
100,
32,
37,
24,
24,
11,
17,
12,
59,
23,
10,
10,
14,
11,
1223,
21,
11,
71,
10,
167,
14,
13,
44,
17,
12,
11,
13,
10,
12,
34,
16,
18,
13,
15,
23,
42,
11,
10,
10,
12,
16,
20,
13,
11,
19,
12,
11,
10,
10,
12,
10,
18,
33,
78,
25,
29,
20,
12,
11,
10,
13,
12,
10,
10,
28,
56,
10,
10,
11,
56,
15,
10,
11,
17,
10,
11,
168,
30,
12,
13,
20,
11,
60,
12,
12,
12,
139,
15,
10,
19,
19,
10,
10,
62,
263,
187,
147,
11,
20,
12,
10,
18,
12,
12,
17,
15,
14,
11,
68,
12,
13,
17,
17,
13,
15,
10,
17,
21,
12,
47,
18,
11,
15,
12,
10,
93,
15,
243,
13,
179,
78,
120,
19,
38,
11,
20,
30,
12,
12,
14,
16,
60,
81,
116,
11,
60,
16,
127,
17,
80,
53,
24,
23,
26,
21,
24,
189,
13,
126,
133,
16,
14,
12,
45,
41,
11,
36,
84,
46,
157,
25,
10,
16,
32,
11,
20,
69,
16,
65,
23,
75,
23,
21,
20,
10,
46,
15,
83,
14,
48,
396,
19,
19,
68,
93,
42,
11,
10,
15,
16,
10,
11,
10,
56,
14,
12,
33,
11,
11,
401,
54,
21,
13,
11,
10,
33,
12,
68,
10,
22,
12,
19,
13,
15,
11,
12,
11,
62,
790,
10,
14,
14,
27,
3825,
10,
10,
61,
15,
132,
1659,
69,
20,
12,
27,
30,
24,
16,
11,
56,
14,
62,
41,
20,
109,
72,
26,
28,
116,
24,
34,
121,
54,
233,
24,
53,
15,
10,
113,
103,
15,
176,
43,
31,
35,
13,
26,
97,
12,
75,
35,
91,
18,
24,
12,
28,
52,
155,
10,
27,
11,
24,
42,
22,
32,
20,
15,
34,
19,
15,
207,
45,
31,
67,
33,
10,
147,
10,
12,
72,
103,
12,
19,
16,
487,
34,
2425,
30,
10,
72,
42,
27,
34,
43,
70,
24,
592,
10,
57,
82,
34,
14,
14,
12,
22,
11,
71,
32,
77,
110,
10,
36,
62,
10,
11,
16,
29,
117,
69,
35,
57,
22,
480,
31,
21,
30,
30,
56,
69,
30,
253,
33,
12,
83,
102,
72,
160,
19,
316,
21,
13,
16,
59,
22,
19,
10,
12,
14,
378,
228,
87,
21,
61,
30,
92,
70,
229,
620,
374,
379,
75,
12,
88,
29,
48,
23,
22,
44,
24,
139,
31,
31,
262,
169,
126,
4949,
11,
11,
288,
77,
96,
198,
11,
48,
15,
17,
47,
22,
26,
24,
42,
53,
30,
107,
52,
686,
60,
12,
17,
59,
10,
10,
11,
22,
25,
16,
13,
10,
41,
10,
41,
187,
37,
27,
11,
45,
42,
16,
235,
26,
210,
146,
10,
16,
103,
17,
72,
5070,
1372,
510,
306,
138,
294,
30,
34,
21,
13,
72,
11,
454,
20,
26,
26,
100,
66,
14,
236,
66,
151,
31,
76,
15,
11,
83,
104,
11,
54,
20,
84,
19,
91,
201,
21,
51,
17,
47,
35,
104,
32,
144,
62,
167,
18,
42,
1930,
1399,
155,
75,
117,
11,
25,
60,
20,
332,
20,
86,
19,
31,
60,
77,
398,
25,
17,
72,
185,
10,
11,
21,
17,
12,
268,
1570,
33,
19,
37,
38,
30,
1142,
48,
13,
17,
19,
346,
131,
32,
192,
124,
38,
20,
17,
18,
19,
56,
64,
10,
14,
112,
47,
72,
15,
14,
126,
15,
10,
41,
64,
37,
14,
29,
10,
365,
101,
16,
73,
251,
161,
126,
24,
19,
26,
121,
18,
547,
117,
13,
10,
319,
53,
23,
31,
124,
24,
95,
68,
22,
11,
218,
24,
31,
31,
31,
10,
30,
18,
72,
16,
31,
75,
46,
22,
154,
16,
15,
11,
271,
82,
17,
93,
11,
47,
10,
41,
27,
118,
24,
91,
24,
12,
13,
23,
13,
67,
10,
85,
72,
20,
73,
21,
10,
10,
22,
156,
352,
103,
10,
18,
19,
10,
31,
107,
10,
60,
39,
16,
11,
12,
14,
11,
167,
1284,
1952,
323,
67,
25,
26,
34,
110,
10,
11,
27,
13,
114,
97,
36,
126,
92,
18,
16,
22,
10,
19,
30,
67,
10,
27,
10,
114,
11,
11,
10,
108,
21,
10,
31,
14,
11,
20,
16,
13,
513,
10,
10,
10,
13,
11,
10,
12,
24,
60,
36,
23,
14,
46,
11,
10,
11,
11,
15,
11,
11,
10,
47,
439,
140,
179,
11,
58,
99,
11,
10,
11,
20,
174,
10,
13,
221,
10,
41,
11,
30,
22,
22,
20,
438,
13,
47,
12,
46,
15,
14,
23,
19,
116,
33,
96,
12,
18,
26,
55,
14,
11,
13,
14,
64,
18,
10,
16,
36,
10,
15,
18,
16,
22,
45,
31,
11,
16,
54,
19,
13,
12,
24,
22,
12,
12,
15,
12,
10,
20,
14,
27,
46,
11,
10,
19,
38,
26,
12,
23,
12,
12,
11,
12,
13,
11,
40,
12,
12,
11,
10,
10,
58,
46,
16,
10,
10,
10,
11,
169,
11,
13,
157,
13,
12,
14,
23,
11,
17,
21,
20,
57,
12,
28,
22,
55,
10,
10,
18,
11,
14,
22,
12,
22,
31,
19,
16,
11,
13,
15,
11,
18,
28,
10,
31,
10,
12,
23,
29,
30,
11,
13,
20,
17,
13,
343,
23,
10,
12,
17,
10,
16,
16,
21,
13,
29,
12,
10,
10,
13,
16,
12,
14,
314,
18,
21,
32,
34,
39,
36,
69,
29,
13,
11,
16,
29,
17,
11,
10,
12,
13,
22,
10,
11,
10,
10,
10,
10,
10,
19,
22,
143,
28,
13,
22,
18,
13,
18,
21,
28,
10,
36,
79,
38,
13,
15,
10,
10,
14,
13,
12,
10,
14,
10,
11,
22,
27,
40,
10,
19,
11,
10,
25,
14,
10,
10,
14,
20,
10,
13,
10,
13,
23,
11,
12,
35,
10,
14,
24,
13,
39,
18,
10,
27,
11,
17,
138,
11,
13,
10,
11,
15,
12,
11,
14,
14,
10,
12,
13,
13,
11,
13,
16,
174,
14,
12,
11,
14,
11,
13,
10,
21,
10,
15,
10,
11,
23,
13,
11,
13,
14,
10,
11,
27,
18,
14,
14,
203,
10,
45,
19,
83,
12,
36,
15,
19,
10,
10,
19,
19,
76,
12,
46,
14,
13,
12,
18,
18,
12,
176,
117,
70,
633,
214,
17,
12,
16,
23,
329,
23,
217,
13,
176,
51,
63,
44,
401,
26,
200,
24,
14,
59,
56,
677,
70,
101,
207,
81,
14,
180,
309,
72,
16,
14,
51,
10,
23,
56,
84,
2230,
2046,
34,
22,
13,
24,
11,
147,
15,
36,
22,
83,
30,
761,
20,
244,
171,
156,
15,
21,
15,
20,
33,
10,
26,
47,
102,
4023,
20,
12,
35,
65,
11,
30,
88,
19,
48,
10,
208,
12,
14,
12,
10,
11,
26,
100,
131,
13,
110,
27,
443,
119,
12,
62,
61,
15,
509,
21,
10,
20,
13,
31,
72,
10,
10,
12,
64,
48,
16,
29,
113,
17,
27,
31,
13,
37,
53,
26,
11,
11,
11,
375,
10,
15,
29,
10,
11,
10,
123,
114,
82,
14,
14,
23,
10,
22,
66,
18,
27,
41,
16,
86,
15,
13,
38,
11,
29,
27,
19,
11,
12,
11,
24,
11,
12,
40,
10,
10,
13,
12,
12,
174,
10,
38,
14,
11,
503,
67,
15,
18,
10,
11,
15,
28,
11,
24,
11,
12,
10,
12,
29,
12,
19,
172,
59,
143,
46,
24,
10,
12,
33,
163,
10,
11,
24,
35,
27,
19,
10,
36,
174,
363,
31,
13,
20,
11,
174,
12,
11,
78,
29,
14,
188,
30,
153,
35,
30,
17,
12,
11,
12,
13,
14,
20,
17,
20,
18,
12,
11,
12,
19,
10,
14,
18,
11,
14,
11,
10,
11,
18,
11,
12,
10,
20,
13,
14,
11,
15,
12,
13,
12,
10,
18,
17,
10,
18,
11,
10,
26,
23,
12,
17,
10,
13,
11,
14,
12,
17,
24,
12,
15,
10,
19,
29,
11,
10,
32,
23,
11,
11,
14,
10,
12,
18,
18,
14,
11,
16,
18,
14,
11,
11,
91613,
228,
61,
111,
71,
33,
16,
31,
38,
17,
13,
13,
96,
19,
17,
12,
15,
11,
15,
107,
13,
13,
10,
19,
10,
13,
15,
136,
183,
10,
70,
10,
48,
181,
63,
14,
20,
110,
27,
51,
10,
23,
32,
21,
15,
16,
102,
227,
11,
21,
10,
10,
16,
19,
16,
11,
13,
11,
21,
10,
30,
24,
15,
148,
14,
19,
13,
18,
11,
26,
12,
13,
11,
10,
18,
15,
10,
12,
11,
16,
11,
19,
19,
16,
139,
23,
13,
21,
11,
11,
56,
16,
17,
26,
10,
24,
10,
12,
79,
14,
11,
16,
14,
11,
14,
11,
19,
11,
12,
13,
11,
10,
10,
20,
13,
12,
122,
25,
22,
10,
34,
19,
10,
10,
16,
19,
16,
11,
28,
27,
15,
20,
11,
10,
16,
11,
12,
30,
53,
13,
12,
12,
12,
14,
11,
52,
13,
29,
10,
14,
10,
12,
14,
13,
12,
12,
11,
18,
11,
17,
21,
11,
13,
16,
11,
11,
15,
19,
10,
12,
38,
10,
12,
11,
10,
10,
14,
25,
11,
10,
10,
13,
17,
16,
18,
19,
21,
26,
16,
15,
59,
10,
11,
10,
59,
18,
10,
21,
24,
12,
21,
23,
31,
10,
19,
16,
10,
13,
14,
12,
10,
11,
10,
10,
11,
13,
16,
27,
15,
10,
11,
10,
12,
22,
5424,
15,
51,
13,
34,
11,
18,
13,
50,
11,
28,
212,
10,
10,
11,
18,
96,
16,
94,
13,
19,
12,
10,
12,
86,
120,
37,
19,
31,
15,
20,
11,
31,
28,
17,
16,
10,
15,
31,
17,
61,
18,
14,
13,
20,
16,
12,
11,
11,
13,
11,
10,
10,
10,
10,
17,
11,
15,
16,
12,
13,
81,
17,
17,
18,
47,
22,
14,
19,
19,
27,
18,
20,
10,
10,
10,
13,
11,
11,
12,
24,
26,
22,
15,
21,
13,
16,
13,
208,
14,
24,
12,
11,
10,
11,
10,
34,
30,
224,
13,
17,
48,
17,
18,
19,
10,
10,
13,
13,
12,
13,
19,
12,
11,
27,
31,
12,
18,
16,
12,
13,
17,
17,
11,
13,
11,
21,
34,
11,
13,
27,
23,
15,
18,
15,
11,
13,
20,
10,
12,
11,
10,
13,
10,
13,
10,
11,
15,
12,
10,
14,
13,
45,
16,
16,
11,
11,
14,
20,
31,
12,
10,
11,
43,
17,
47,
32,
12,
14,
12,
12,
24,
10,
18,
14,
29,
12,
18,
10,
21,
14,
23,
74,
10,
15,
11,
16,
13,
20,
10,
18,
11,
12,
19,
27,
22,
42,
18,
10,
17,
27,
10,
10,
15,
18,
15,
12,
12,
12,
21,
15,
16,
13,
10,
17,
26,
15,
12,
16,
12,
10,
15,
16,
10,
11,
10,
12,
33,
55,
38,
19,
19,
13,
18,
12,
13,
53,
27,
35,
12,
13,
19,
10,
13,
29,
12,
29,
11,
10,
27,
12,
28,
13,
14,
15,
33,
55,
11,
12,
16,
20,
11,
32,
15,
31,
50,
11,
18,
10,
12,
10,
30,
17,
22,
10,
34,
12,
21,
13,
12,
14,
12,
13,
13,
19,
11,
11,
13,
27,
11,
10,
16,
13,
11,
17,
20,
16,
37,
13,
23,
13,
13,
10,
23,
13,
21,
15,
44,
10,
10,
12,
10,
13,
13,
11,
15,
16,
14,
39,
26,
10,
13,
15,
11,
13,
10,
33,
15,
14,
16,
29,
11,
11,
12,
12,
11,
20,
20,
17,
22,
13,
10,
149,
10,
10,
33,
10,
12,
21,
16,
11,
33,
13,
14,
38,
17,
28,
13,
45,
16,
21,
13,
11,
29,
11,
14,
16,
10,
18,
55,
12,
38,
11,
18,
15,
17,
47,
10,
13,
34,
16,
40,
18,
59,
13,
23,
12,
11,
10,
18,
28,
10,
10,
14,
39,
20,
18,
32,
37,
31,
19,
31,
20,
19,
16,
11,
10,
11,
16,
13,
10,
10,
14,
12,
21,
10,
10,
20,
14,
15,
17,
22,
17,
15,
15,
10,
10,
94,
21,
26,
12,
11,
13,
26,
10,
13,
16,
10,
13,
18,
27,
17,
13,
10,
10,
10,
12,
11,
13,
10,
10,
12,
12,
10,
10,
10,
11,
11,
10,
10,
10,
12,
10,
130,
19,
46,
15,
11,
27,
12,
23,
11,
18,
12,
10,
15,
19,
17,
21,
10,
10,
18,
10,
10,
18,
50,
11,
13,
10,
12,
12,
10,
10,
10,
12,
11,
10,
10,
14,
12,
17,
10,
13,
10,
36,
19,
12,
12,
13,
33,
11,
12,
15,
11,
10,
10,
11,
11,
29,
18,
10,
10,
36,
11,
42,
12,
10,
38,
10,
16,
17,
17,
14,
11,
11,
15,
21,
10,
10,
20,
15,
15,
10,
14,
12,
16,
47,
10,
10,
1357,
11,
22,
20,
22,
88,
35,
30,
48,
13,
28,
11,
15,
18,
12,
15,
14,
14,
19,
10,
12,
14,
26,
14,
30,
16,
15,
12,
17,
14,
10,
26,
15,
214,
14,
10,
23,
44,
10,
14,
22,
18,
34,
11,
33,
29,
11,
11,
16,
16,
17,
10,
26,
16,
10,
24,
23,
23,
10,
12,
11,
19,
16,
29,
13,
17,
267,
81,
26,
56,
12,
12,
11,
464,
14,
10,
19,
228,
59,
11,
233,
28,
15,
212,
25,
14,
15,
10,
25,
22,
13,
26,
19,
32,
19,
14,
20,
41,
24,
149,
10,
10,
10,
11,
11,
75,
10,
23,
10,
10,
15,
10,
11,
11,
10,
23,
26,
10,
18,
10,
22,
14,
13,
26,
11,
13,
17,
10,
11,
11,
13,
44,
15,
14,
10,
10,
11,
11,
14,
21,
48,
133,
99,
21,
11,
28,
14,
12,
62,
12,
10,
13,
13,
10,
11,
14,
26,
856,
24,
11,
10,
51,
13,
70,
12,
21,
18,
12,
22,
12,
10,
12,
24,
24,
83,
11,
13,
15,
11,
10,
53,
12,
11,
10,
15,
10,
15,
15,
14,
13,
32,
52,
10,
12,
11,
26,
35,
19,
17,
24,
22,
11,
16,
14,
11,
16,
14,
16,
21,
11,
12,
47,
30,
29,
11,
23,
10,
10,
11,
55,
12,
12,
12,
33,
11,
10,
10,
11,
12,
24,
12,
10,
17,
10,
23,
14,
13,
12,
11,
19,
11,
35,
15,
83,
19,
10,
99,
162,
15,
23,
36,
11,
13,
71,
16,
24,
11,
19,
904,
10,
74,
26,
11,
66,
13,
13,
35,
14,
10,
11,
17,
13,
31,
21,
13,
13,
12,
30,
13,
15,
11,
12,
11,
22,
10,
15,
10,
11,
10,
25,
44,
11,
17,
25,
10,
11,
105,
12,
21,
19,
65,
12,
19,
11,
10,
15,
22,
13,
20,
17,
19,
19,
31,
10,
36,
14,
31,
10,
33,
27,
11,
13,
15,
12,
19,
34,
11,
10,
11,
11,
11,
15,
11,
11,
10,
12,
17,
39,
27,
18,
32,
11,
10,
11,
37,
10,
10,
11,
10,
17,
10,
12,
10,
11,
10,
168,
11,
14,
13,
12,
10,
23,
15,
59,
12,
13,
27,
19,
16,
151,
11,
11,
55,
11,
19,
14,
15,
11,
13,
80,
14,
35,
19,
10,
25,
10,
25,
10,
23,
12,
10,
14,
14,
14,
13,
10,
20,
12,
24,
16,
13,
12,
11,
12,
164,
12,
10,
133,
10,
11,
10,
27,
12,
10,
11,
13,
11,
16,
11,
11,
12,
14,
14,
183,
11,
19,
10,
13,
10,
12,
10,
10,
14,
13,
12,
21,
10,
18,
10,
12,
15,
15,
27,
24,
11,
14,
13,
17,
10,
25,
19,
16,
18,
14,
12,
11,
11,
16,
14,
10,
12,
15,
11,
15,
21,
28,
11,
10,
12,
10,
12,
12,
15,
15,
11,
10,
15,
10,
10,
16,
11,
13,
12,
15,
15,
13,
30,
15,
12,
12,
12,
12,
11,
11,
24,
10,
11,
13,
20,
11,
16,
18,
20,
10,
12,
10,
144,
13,
13,
14,
13,
17,
12,
19,
20,
22,
11,
15,
10,
14,
15,
33,
10,
11,
16,
10,
12,
10,
10,
11,
10,
10,
11,
10,
10,
12,
13,
10,
11,
10,
10,
13,
481,
30,
24,
10,
14,
20,
11,
10,
26,
11,
11,
10,
16,
10,
12,
10,
17,
11,
10,
35,
13,
29,
14,
22,
10,
28,
19,
57,
15,
19,
12,
16,
21,
18,
12,
11,
12,
17,
15,
15,
13,
10,
18,
14,
11,
10,
11,
81,
15,
28,
15,
12,
14,
11,
15,
10,
10,
10,
11,
10,
11,
10,
12,
10,
13,
13,
12,
11,
13,
10,
12,
10,
10,
21,
10,
15,
10,
10,
11,
11,
18,
12,
15,
10,
11,
16,
10,
10,
12,
11,
10,
13,
12,
13,
20,
10,
12,
12,
16,
13,
11,
18,
11,
10,
19,
12,
10,
17,
10,
10,
19,
22,
40,
70,
20,
18,
11,
10,
10,
12,
10,
12,
10,
10,
23,
15,
19,
12,
14,
11,
10,
12,
17,
11,
12,
11,
10,
10,
11,
10,
10,
11,
11,
24,
27,
21,
30,
30,
34,
36,
48,
47,
55,
40,
27,
32,
25,
20,
23,
14,
11,
10,
14,
20,
14,
17,
22,
30,
19,
18,
16,
10,
10,
17,
21,
16,
10,
805,
21,
15,
12,
442,
442,
442,
13,
18,
10,
14,
11,
10,
14,
12,
10,
10,
17,
12,
10,
13,
10,
13,
12,
10,
10,
15,
12,
10,
10,
17,
11,
12,
11,
15,
13,
12,
10,
19,
10,
10,
12,
11,
12,
11,
14,
10,
13,
10,
25,
10,
14,
15,
13,
10,
12,
12,
11,
10,
10,
10,
14,
10,
10,
12,
10,
10,
13,
12,
17,
15,
12,
12,
12,
12,
18,
20,
13,
15,
11,
23,
10,
13,
11,
12,
16,
20,
18,
33,
23,
26,
38,
35,
54,
35,
36,
42,
31,
34,
14,
19,
11,
10,
13,
18,
14,
10,
21,
17,
21,
32,
28,
26,
20,
14,
12,
11,
21,
12,
17,
10,
12,
10,
11,
10,
12,
11,
11,
18,
11,
10,
15,
12,
10,
10,
19,
26,
29,
27,
23,
40,
28,
43,
49,
40,
48,
40,
44,
22,
13,
14,
17,
22,
17,
10,
20,
12,
11,
15,
23,
29,
24,
10,
11,
15,
14,
23,
21,
11,
13,
11,
13,
10,
10,
10,
12,
12,
10,
12,
12,
14,
11,
10,
10,
13,
10,
12,
19,
32,
4593,
134,
25,
10,
97,
26,
32,
15,
59,
11,
23,
26,
12,
21,
10,
29,
11,
14,
15,
10,
15,
12,
15,
14,
13,
15,
14,
11,
93,
20,
16,
101,
10,
10,
132,
44,
19,
10,
25,
11,
151,
12,
10,
57,
12,
65,
10,
11,
100,
10,
18,
10,
11,
18,
72,
11,
10,
10,
34,
12,
27,
30,
14,
11,
11,
31,
12,
12,
14,
15,
22,
11,
28,
11,
48,
19,
20,
10,
43,
19,
17,
12,
14,
11,
12,
22,
28,
39,
13,
17,
10,
12,
12,
793,
61,
10,
13,
21,
71,
13,
14,
29,
12,
11,
12,
18,
13,
13,
38,
27,
22,
19,
33,
10,
13,
10,
10,
21,
10,
54,
104,
10,
12,
24,
10,
22,
11,
11,
39,
15,
40,
17,
15,
10,
11,
10,
14,
27,
10,
13,
10,
12,
10,
10,
10,
10,
16,
10,
19,
14,
14,
506,
1130,
180,
42,
15,
138,
110,
78,
322,
150,
265,
213,
11,
14,
23,
49,
193,
179,
203,
49,
27,
212,
79,
35,
109,
196,
300,
16,
46,
35,
42,
57,
44,
23,
24,
10,
33,
13,
10,
12,
11,
11,
14,
37,
14,
13,
15,
11,
16,
11,
18,
14,
55,
13,
10,
10,
10,
10,
13,
19,
17,
31,
14,
14,
11,
63,
17,
40,
10,
20,
13,
10,
10,
13,
23,
11,
11,
15,
12,
12,
16,
4904,
16,
866,
25,
30,
23,
15,
41,
12,
14,
23,
12,
10,
15,
16,
16,
29,
13,
10,
13,
14,
27,
12,
12,
13,
11,
22,
12,
19,
13,
15,
13,
25,
17,
10,
30,
19,
11,
16,
13,
12,
13,
117,
15,
13,
15,
33,
10,
13,
339,
10,
14,
10,
25,
18,
10,
27,
13,
17,
22,
26,
12,
12,
11,
10,
343,
82,
17,
18,
19,
15,
10,
10,
10,
10,
30,
2520,
16,
20,
10,
44,
37,
14,
23,
17,
42,
31,
14,
10,
10,
17,
14,
10,
31,
63,
10,
12,
21,
21,
36,
12,
52,
13,
11,
29,
27,
21,
12,
11,
15,
223,
23,
36,
18,
27,
25,
30,
13,
12,
10,
19,
19,
20,
37,
10,
14,
12,
38,
22,
11,
10,
39,
12,
11,
19,
11,
122,
16,
17,
10,
11,
21,
17,
12,
100,
16,
12,
11,
23,
85,
10,
11,
16,
11,
12,
12,
13,
10,
10,
51,
13,
11,
12,
18,
11,
25,
19,
12,
10,
10,
49,
16,
22,
11,
23,
10,
14,
23,
12,
10,
14,
12,
12,
11,
16,
10,
15,
14,
13,
13,
57,
14,
11,
14,
32,
11,
11,
11,
19,
18,
11,
10,
14,
18,
17,
36,
18,
11,
13,
16,
11,
12,
26,
22,
15,
14,
10,
14,
12,
11,
22,
12,
27,
17,
13,
11,
16,
10,
31,
10,
13,
23,
10,
14,
13,
54,
10,
10,
10,
68,
23,
61,
11,
54,
10,
13,
30,
12,
15,
12,
11,
16,
25,
85,
87,
29,
18,
225,
11,
11,
15,
254,
16,
278,
11,
558,
28,
10,
35,
10,
15,
14,
32,
12,
41,
15,
10,
14,
18,
10,
11,
14,
11,
13,
43,
19,
18,
17,
14,
14,
10,
11,
15,
13,
12,
13,
14,
13,
16,
13,
12,
21,
20,
10,
13,
20,
15,
16,
12,
10,
26,
19,
22,
16,
31,
13,
17,
11,
13,
28,
14,
16,
11,
13,
12,
11,
14,
12,
19,
11,
14,
10,
11,
11,
17,
72,
11,
12,
27,
38,
26,
11,
10,
16,
17,
12,
13,
12,
17,
11,
11,
91,
15,
10,
10,
14,
48,
23,
18,
12,
10,
10,
11,
10,
16,
10,
11,
10,
19,
19,
134,
16,
15,
15,
12,
17,
10,
44,
12,
14,
12,
20,
16,
21,
25,
11,
11,
13,
20,
13,
66,
13,
10,
12,
11,
10,
11,
51,
14,
14,
16,
10,
13,
16,
11,
12,
22,
14,
10,
10,
14,
11,
10,
19,
10,
15,
11,
10,
11,
16,
12,
12,
15,
1216,
10,
10,
18,
16,
10,
13,
20,
13,
131,
13,
11,
13,
10,
120,
11,
52,
19,
26,
24,
13,
21,
12,
10,
10,
14,
67,
13,
12,
10,
62,
11,
72,
15,
105,
24,
16,
54,
24,
18,
38,
52,
13,
14,
38,
20,
10,
15,
21,
12,
12,
23,
41,
14,
348,
91,
17,
10,
31,
20,
22,
16,
13,
10,
35,
13,
12,
11,
316,
15,
19,
22,
11,
66,
29,
20,
11,
10,
11,
10,
11,
31,
18,
10,
15,
19,
10,
44,
15,
14,
10,
10,
34,
10,
12,
26,
10,
19,
16,
15,
12,
10,
42,
20,
13,
20,
10,
14,
11,
14,
19,
16,
13,
10,
10,
11,
12,
14,
11,
13,
14,
11,
30,
11,
13,
11,
15,
17,
10,
11,
10,
11,
11,
18,
17,
11,
34,
10,
11,
10,
11,
15,
13,
20,
12,
11,
11,
11,
23,
10,
10,
10,
10,
11,
13,
10,
12,
42,
11,
17,
12,
13,
11,
18,
12,
65,
17,
12,
10,
14,
11,
11,
12,
11,
14,
10,
13,
17,
18,
15,
11,
50,
148,
11,
15,
11,
14,
16,
12,
24,
10,
14,
10,
11,
12,
11,
49,
10,
13,
16,
23,
15,
22,
11,
11,
15,
10,
66,
10,
17,
18,
11,
11,
11,
10,
10,
12,
10,
10,
12,
10,
17,
12,
10,
14,
25,
23,
10,
11,
14,
24,
12,
13,
11,
10,
10,
11,
26,
11,
32,
10,
11,
10,
14,
19,
10,
10,
14,
12,
15,
13,
10,
12,
14,
11,
15,
12,
45,
60,
122,
206,
19,
11,
18,
17,
10,
30,
13,
38,
10,
17,
19,
13,
40,
19,
19,
14,
10,
13,
10,
10,
10,
16,
10,
13,
15,
22,
12,
20,
10,
10,
12,
16,
11,
14,
10,
18,
10,
10,
16,
14,
12,
19,
20,
11,
10,
19,
15,
15,
28,
20,
10,
16,
12,
35,
16,
29,
14,
12,
10,
14,
20,
15,
12,
16,
13,
10,
12,
11,
11,
24,
65,
12,
11,
14,
13,
11,
11,
14,
13,
12,
27,
26,
23,
11,
10,
14,
17,
18,
12,
11,
11,
10,
11,
13,
11,
12,
12,
13,
24,
20,
16,
11,
11,
16,
10,
10,
10,
14,
10,
18,
10,
12,
11,
13,
11,
24,
12,
10,
16,
26,
24,
12,
10,
12,
10,
11,
11,
10,
12,
10,
13,
10,
12,
12,
25,
13,
24,
12,
18,
17,
16,
16,
12,
12,
10,
10,
12,
15,
11,
12,
11,
10,
106,
14,
13,
17,
13,
11,
11,
12,
23,
35,
15,
31,
13,
52,
11,
11,
20,
28,
14,
10,
15,
14,
12,
15,
23,
33,
13,
14,
11,
10,
11,
10,
15,
10,
13,
10,
13,
10,
16,
16,
14,
10,
12,
11,
13,
17,
19,
10,
14,
14,
11,
28,
23,
12,
13,
11,
12,
21,
20,
357,
79,
19,
25,
19,
31,
541,
48,
10,
10,
10,
12,
26,
49,
16,
17,
14,
10,
23,
68,
17,
194,
11,
34,
20,
12,
10,
11,
149,
224,
11,
13,
93,
55,
41,
12,
15,
24,
13,
166,
11,
12,
13,
12,
15,
12,
11,
15,
11,
582,
13,
150,
10,
15,
157,
10,
38,
16,
22,
30,
12,
22,
13,
19,
19,
37,
10,
10,
10,
432,
30,
93,
17,
10,
16,
10,
92,
21,
10,
10,
10,
12,
27,
57,
11,
15,
10,
13,
22,
10,
12,
15,
11,
10,
35,
15,
25,
1426,
11,
13,
11,
15,
185,
20,
11,
15,
18,
17,
84,
54,
125,
21,
10,
20,
17,
11,
45,
30,
26,
27,
24,
12,
17,
10,
14,
60,
77,
47,
25,
16,
41,
10,
14,
10,
19,
13,
12,
25,
10,
13,
13,
700,
13,
12,
37,
42,
13,
66,
99,
199,
504,
11,
661,
21,
29,
18,
11,
29,
11,
14,
24,
331,
231,
3982,
28,
23,
43,
90,
12,
29,
72,
107,
17,
1215,
421,
240,
24,
25,
11,
25,
136,
84,
73,
12,
57,
173,
30,
171,
21,
41,
13,
12,
26,
28,
14,
62,
38,
22,
10,
17,
11,
34,
198,
103,
35,
346,
113,
643,
25,
112,
12,
25,
11,
143,
56,
677,
48,
69,
16,
14,
148,
134,
86,
48,
46,
81,
28,
18,
28,
35,
32,
13,
114,
55,
46,
50,
95,
12,
17,
109,
11,
23,
1240,
13,
52,
24,
57,
13,
75,
41,
13,
14,
43,
30,
40,
50,
69,
191,
49,
42,
12,
1774,
14,
80,
13,
30,
20,
11,
18,
61,
39,
252,
947,
241,
19,
95,
23,
163,
19,
218,
23,
59,
27,
31,
20,
11,
31,
110,
28,
186,
12,
10,
14,
28,
156,
435,
15,
77,
62,
288,
43,
13,
45,
10,
75,
10,
87,
34,
60,
5188,
64,
25,
96,
46,
165,
14,
10,
73,
33,
12,
200,
122,
42,
20,
10,
19,
106,
121,
363,
98,
111,
98,
615,
8064,
107,
12,
12,
16,
13,
19,
65,
50,
234,
23,
45,
244,
547,
25,
16,
43,
20,
11,
29,
72,
244,
152,
10333,
173,
61,
19,
24,
38,
1101,
13,
65,
61,
40,
147,
26,
12,
83,
54,
259,
33,
63,
11,
12,
63,
68,
79,
17,
26,
38,
10,
15,
29,
43,
100,
24,
44,
16,
29,
10,
30,
23,
29,
231,
113,
31,
29,
13,
26,
11,
17,
27,
52,
12,
166,
32,
35,
12,
35,
68,
101,
31,
57,
38,
179,
136,
41,
19,
96,
83,
83,
58,
30,
37,
23,
40,
276,
15,
39,
11,
120,
756,
22,
23,
86,
14,
27,
43,
12,
48,
40,
27,
74,
68,
13,
16,
19,
12,
10,
707,
21,
116,
19,
343,
573,
31,
11,
24,
184,
11,
26,
10,
12,
262,
49,
21,
72,
21,
17,
13,
26,
47,
18,
74,
11,
42,
65,
16,
13,
5713,
26,
78,
21,
11,
45,
2985,
13,
175,
27,
10,
25,
20,
10,
309,
12,
181,
132,
10,
43,
27,
25,
32,
81,
16,
95,
10,
131,
1238,
133,
16,
28,
178,
11,
24,
16,
232,
19,
11,
335,
575,
14,
15,
60,
3095,
38,
25,
22,
36,
151,
124,
121,
11,
62,
10,
13,
23,
165,
73,
10,
15,
12,
77,
13,
36,
10,
17,
15,
15,
6471,
10,
71,
30,
87,
39,
45,
11,
10,
54,
20,
81,
431,
11,
29,
114,
11,
108,
10,
58,
59,
405,
16,
176,
36,
35,
16,
20,
11,
74,
22,
13,
12,
32,
45,
28,
20,
83,
12,
10,
16,
233,
12,
11,
88,
15,
404,
70,
110,
136,
17,
43,
16,
12,
54,
423,
92,
11,
74,
24,
450,
27,
34,
11,
269,
28,
10,
10,
54,
74,
104,
33,
19,
11,
12,
14,
215,
57,
354,
16,
30,
57,
12,
19,
128,
14,
15,
62,
18,
13,
51,
40,
33,
40,
23,
20,
30,
17,
19,
255,
324,
19,
33,
490,
300,
171,
23,
106,
49,
491,
26,
33,
109,
34,
44,
16,
19,
78,
311,
981,
161,
5266,
122,
1096,
192,
2696,
31,
41,
123,
124,
210,
394,
787,
54,
45,
366,
85,
141,
99,
761,
148,
11,
244,
193,
31,
42,
14,
11,
45,
28,
14,
20,
28,
3606,
22,
31,
32,
18,
26,
75,
63,
46,
41,
90,
168,
70,
1160,
78,
24,
86,
51,
640,
21,
10,
49,
12,
12,
21,
23,
11,
18,
376,
136,
22,
22,
12,
25,
1258,
321,
585,
10,
12,
11,
10,
28,
11,
11,
10,
1813,
15,
14,
53,
26,
195,
308,
11,
385,
122,
14,
248,
62,
15,
49,
32,
1038,
124,
64,
12,
11,
194,
26,
11,
146,
237,
19,
345,
13,
46,
10,
18,
137,
46,
32,
150,
293,
15,
163,
12,
143,
70,
87,
19,
54,
67,
28,
252,
893,
76,
15,
24,
10,
209,
185,
33,
144,
22,
298,
191,
14,
88,
170,
718,
46,
10,
94,
44,
31,
26,
10,
114,
10,
98,
29,
94,
119,
79,
15,
10,
32,
33,
174,
12,
191,
32,
235,
60,
10,
34,
86,
11,
10,
113,
65,
57,
280,
21,
20,
15,
72,
234,
14,
26,
16,
119,
53,
73,
21,
370,
84,
21,
72,
110,
18,
130,
28,
16,
100,
54,
14,
30,
73,
42,
16,
734,
11,
12,
11,
16,
166,
39,
24,
34,
36,
73,
323,
668,
109,
65,
10,
26,
24,
140,
11,
33,
188,
11,
83,
26,
13,
91,
42,
13,
67,
27,
28,
70,
22,
27,
15,
15,
17,
117,
15,
10,
83,
16,
26,
63,
78,
17,
291,
341,
73,
35,
23,
19,
44,
12,
53,
1319,
49,
23,
29,
15,
68,
30,
17,
13,
11,
42,
31,
31,
77,
10,
18,
18,
77,
28,
14,
16,
11,
25,
225,
11,
36,
21,
23,
12,
25,
62,
86,
14,
67,
17,
10,
48,
115,
20,
16,
493,
108,
72,
19,
108,
831,
632,
32,
4182,
167,
827,
2890,
796,
298,
10,
12,
2892,
47,
16,
47,
14,
231,
177,
17,
46,
47,
224,
241,
10,
15,
25,
133,
23,
15,
746,
156,
21,
247,
12,
13,
26,
83,
23,
85,
13,
13,
15,
30,
39,
10,
98,
212,
34,
133,
46,
51,
13,
26,
42,
12,
16,
2233,
10,
30,
30,
15,
11,
47,
38,
150,
1533,
34,
57,
103,
159,
71,
188,
943,
51,
3128,
54,
62,
188,
43,
777,
34,
199,
13,
52,
35,
69,
100,
50,
14,
13,
19,
13,
187,
44,
24,
31,
20,
14,
11,
44,
15,
43,
64,
94,
14,
14,
132,
42,
21,
49,
25,
22,
10,
10,
864,
53,
35,
10,
11,
18,
20,
18,
21,
22,
12,
18,
10,
22,
30,
83,
32,
604,
17,
32,
181,
66,
623,
38,
24,
17,
35,
14,
20,
50,
16,
17,
67,
107,
29,
18,
13,
43,
15,
35,
29,
17,
12,
49,
173,
12,
26,
11,
10,
22,
73,
22,
14,
28,
286,
300,
79,
72,
13,
25,
168,
48,
194,
21,
23,
197,
185,
11,
97,
29,
369,
32,
13,
92,
193,
45,
10,
56,
1690,
28,
73,
20,
285,
10,
15,
20,
17,
37,
10,
16,
13,
247,
1183,
150,
11,
13,
11,
25,
407,
13,
79,
16,
172,
13,
66,
50,
10,
55,
34,
28,
59,
72,
21,
10,
22,
19,
105,
28,
24,
35,
16,
113,
60,
16,
13,
16,
80,
44,
52,
132,
28,
10,
124,
18,
51,
89,
16,
34,
25,
26,
144,
20,
72,
18,
88,
122,
28,
10,
11,
37,
42,
23,
190,
38,
11,
3366,
10,
30,
10,
310,
13,
11,
77,
20,
10,
35,
17,
130,
136,
61,
10,
39,
58,
33,
49,
813,
146,
20,
26,
52,
530,
65,
10,
57,
205,
26,
153,
22,
40,
29,
14,
17,
76,
10,
13,
468,
31,
21,
50,
31,
21,
146,
31,
214,
62,
30,
592,
11,
133,
43,
295,
29,
16,
33,
48,
10,
12,
25,
27,
17,
214,
63,
15,
11,
38,
46,
24,
42,
20,
30,
13,
107,
27,
30,
396,
10,
19,
664,
188,
116,
30,
13,
14,
273,
12,
10,
16,
25,
12,
28,
27,
114,
12,
11,
16,
55,
47,
24,
20,
135,
25,
10,
14,
13447,
15,
12,
10,
30,
12,
13,
221,
79,
76,
72,
11,
281,
24,
35,
12,
17,
37,
22,
14,
10,
45,
131,
31,
27,
15,
13,
125,
50,
13,
60,
87,
2486,
42,
228,
74,
32,
477,
12,
12,
545,
10,
15,
12,
84,
73,
23,
12,
5545,
1606,
10,
10,
11,
15,
36,
46,
16,
11,
173,
14,
39,
117,
14,
15,
77,
76,
13,
145,
78,
11,
121,
30,
74,
136,
963,
124,
10,
13,
84,
26,
166,
51,
11,
23,
29,
274,
1550,
153,
37,
49,
108,
21,
11,
17,
76,
18,
20,
37,
98,
15,
31,
72,
72,
20,
20,
237,
11,
121,
13,
21,
72,
4003,
10,
785,
72,
347,
18,
40,
43,
31,
64,
83,
1874,
49,
10,
16,
174,
21,
19269,
12,
53,
96,
10,
12,
31,
14,
10,
14,
67,
101,
47,
64,
22,
74,
52,
36,
20,
690,
28,
33,
30,
179,
13,
11,
17,
12,
72,
656,
12,
30,
10,
11,
16,
13,
13,
1761,
67,
18,
32,
58,
15,
45,
236,
10,
42,
20,
18,
72,
22,
85,
39,
22,
11,
15,
10,
12,
147,
15,
1455,
62,
10,
890,
10,
25,
31,
22,
376,
72,
34,
239,
39,
12,
45,
15057,
27,
16,
247,
18,
79,
40,
10,
12,
274,
58,
25,
19,
45,
20,
63,
27,
30,
5089,
52,
24,
78,
14,
63,
73,
19,
26,
183,
15,
14,
282,
12,
15,
10,
829,
83,
72,
72,
66,
10,
1209,
19,
613,
78,
23,
135,
18,
30,
3213,
34,
18,
21,
39,
56,
27,
25,
10,
25,
17,
186,
106,
18,
51,
182,
60,
12,
18,
10,
182,
11,
15,
10,
53,
747,
11,
43,
12,
254,
72,
18,
36,
81,
10,
12,
49,
77,
73,
20,
11,
14,
76,
82,
85,
12,
85,
31,
43,
14,
66,
434,
23,
43,
10,
261,
13,
18,
118,
23,
35,
11,
35,
141,
45,
23,
36,
12,
10,
183,
50,
252,
113,
73,
30,
33,
12,
87,
38,
11,
14,
73,
436,
27,
98,
18,
28,
50,
470,
18,
36,
135,
10,
13,
761,
40,
170,
105,
35,
14,
83,
60,
46,
12,
11,
40,
37,
10,
10,
18,
10,
50,
36,
10,
20,
33,
1153,
11,
10,
17,
157,
23,
55,
12,
28,
38,
22,
10,
25,
17,
78,
16,
88,
159,
73,
13,
10,
10,
258,
72,
72,
47,
20,
1376,
1240,
56,
23,
46,
58,
129,
20,
1329,
71,
57,
128,
96,
133,
225,
11,
74,
88,
11,
186,
15,
54,
186,
12,
340,
154,
168,
49,
13,
305,
60,
97,
79,
379,
69,
12,
13,
13,
13,
14,
32,
31,
72,
13,
24,
54,
287,
335,
50,
584,
59,
31,
73,
23,
72,
278,
35,
15,
32,
11,
24,
243,
11,
30187,
30,
17,
110,
549,
69,
2469,
81,
24,
11,
102,
17,
14110,
12,
39,
170,
12,
276,
73,
63,
11,
309,
132,
82,
12,
73,
87,
18,
13,
56,
107,
23,
87,
10,
10,
14,
11,
27,
32,
22,
350,
11,
11,
44,
24,
167,
21,
55,
46,
16,
74,
21,
137,
85,
34,
22,
34,
12,
13,
22,
11,
43,
81,
16,
27,
11,
48,
16,
64,
60,
22,
19,
80,
10,
71,
114,
167,
38,
40,
13,
154,
11,
22,
50,
22,
83,
45,
53,
261,
207,
67,
590,
23,
11,
45,
67,
305,
19,
15,
14,
355,
439,
1516,
209,
10,
23,
11,
17,
20,
90,
665,
21,
11,
43,
13,
55,
12,
12,
119,
1046,
26,
32,
16,
1366,
65,
25,
10,
13,
167,
10,
35,
87,
94,
108,
60,
10,
83,
21,
187,
66,
14,
13,
14,
114,
21,
142,
157,
99,
1296,
13,
12,
48,
12,
91,
14,
65,
17,
10,
31,
29,
37,
79,
25,
16,
27,
43,
266,
53,
53,
952,
59,
380,
10,
32,
12,
10,
502,
24,
86,
39,
21,
11,
47,
11,
12,
1280,
38,
14,
11,
26,
12,
411,
25,
11,
101,
59,
10,
30,
15,
16,
3325,
23,
32,
348,
20,
2165,
28,
13,
23,
16,
105,
10,
40,
63,
37,
74,
10,
11,
673,
42,
13,
26,
10,
55,
14,
11,
12,
178,
17,
10,
21,
85,
546,
154,
47,
52,
49,
19,
208,
31,
70,
76,
669,
104,
20,
10,
21,
52,
54,
11,
17,
20,
22,
14,
416,
111,
180,
35,
40,
72,
43,
78,
11,
27,
10,
142,
73,
824,
121,
10,
327,
54,
51,
39,
32,
12687,
20,
247,
11,
320,
33,
164,
22,
68,
10,
805,
140,
12,
12,
25,
20,
191,
26,
22,
10,
186,
22,
20,
11,
124,
15,
14,
1422,
98,
114,
11,
2247,
14,
607,
22,
188,
790,
435,
12,
23,
50,
202,
854,
16,
206,
114,
16,
12,
69,
22,
82,
152,
11,
28,
50,
27,
17,
18,
10,
11,
31,
10,
17,
26,
26,
53,
13,
54,
404,
33,
34,
29,
238,
160,
11,
63,
10,
52,
11,
11,
791,
32,
95,
13,
18,
19,
56,
28,
10,
18,
19,
14,
24,
12,
25,
27,
16,
66,
18,
14,
10,
20,
20,
11,
32,
62,
11,
24,
100,
11,
31,
72,
13,
12,
11,
1958,
14,
235,
14,
2797,
12,
62,
54,
22,
14,
52,
145,
261,
446,
12,
87,
80,
13,
24,
1003,
27,
10,
2267,
11,
43,
19,
129,
11,
153,
11,
32,
205,
11,
159,
19,
16,
45,
62,
11,
26,
60,
20,
78,
94,
12,
78,
152,
21,
147,
14,
23,
200,
697,
130,
59,
10,
11,
11,
150,
31,
79,
17,
37,
87,
14,
11,
115,
12,
44,
20,
765,
44,
24,
162,
11,
13,
210,
39,
25,
195,
12,
345,
28,
12,
62,
27,
10,
42,
14,
107,
288,
29,
267,
151,
37,
1993,
12,
29,
12,
19,
255,
905,
11,
5069,
438,
16,
625,
24,
103,
11,
14,
12,
58,
52,
66,
117,
24,
975,
12,
35,
12,
31,
43,
37,
13,
16,
48,
27,
34,
70,
86,
42,
17,
28,
58,
52,
116,
16,
335,
12,
1123,
14,
119,
11,
24,
30,
77,
11,
7115,
71,
62,
1049,
67,
53,
18,
10,
417,
609,
275,
20,
26,
13,
1580,
452,
65,
32,
10,
537,
10,
1275,
10,
11,
10,
20,
63,
1758,
69,
85,
93,
94,
540,
152,
140,
13,
12,
570,
160,
780,
14,
90,
16,
19,
68,
16,
24,
15,
139,
45,
13,
32,
39,
27,
29,
79,
52,
56,
31,
29,
13,
575,
61,
26,
11,
86,
34,
37,
57,
10,
22,
11,
14,
13,
11,
103,
25,
24,
60,
314,
18222,
61,
43,
29,
26,
267,
40,
11,
15,
51,
15,
11,
78,
10,
16,
157,
19,
38,
21,
357,
97,
61,
65,
373,
151,
16,
12,
48,
30,
28,
13,
74,
11,
46,
64,
71,
13,
47,
90,
10,
11,
71,
174,
27,
21,
60,
21,
87,
75,
168,
13,
12,
11,
16,
37,
230,
33,
46,
12,
29,
293,
90,
29,
271,
13,
26,
15,
35,
14,
23,
10,
448,
18,
13,
114,
27,
19,
11,
16,
66,
39,
520,
21,
2141,
10,
368,
14,
76,
241,
111,
18,
18,
16,
192,
118,
20,
127,
11,
297,
65,
26,
84,
44,
71,
140,
33,
15,
35,
23,
77,
38,
33,
25,
73,
12,
172,
1882,
18,
135,
28,
12,
13,
11,
3132,
11,
32,
30,
606,
137,
79,
15,
38,
10,
21,
75,
340,
197,
175,
396,
18,
11,
14,
83,
12,
26,
125,
37,
118,
13151,
198,
13490,
464,
144,
15,
773,
441,
4963,
16,
118,
305,
39,
776,
253,
107,
109,
303,
37,
290,
4721,
271,
3121,
32,
31,
103,
20,
11,
10,
179,
178,
445,
57,
634,
566,
42,
12,
125,
1314,
858,
18,
235,
35,
47,
79,
68,
142,
24,
15,
45,
40,
71,
24,
90,
401,
78,
18,
50,
554,
10,
535,
116,
513,
103,
33,
42,
124,
117,
189,
20,
20,
56,
16,
80,
139,
10,
86,
613,
10,
173,
49,
22,
22,
103,
172,
12,
68,
31,
35,
52,
23,
45,
18,
78,
38,
21,
141,
181,
97,
16,
651,
45,
91,
123,
243,
132,
124,
1486,
43,
84,
11,
18,
230,
30,
25,
59,
13,
13,
79,
75,
133,
10,
76,
11,
137,
58,
20,
19,
71,
31,
62,
11,
11,
190,
10,
57,
46,
15,
236,
21,
744,
42,
14,
12,
81,
27,
10,
85,
257,
32,
10,
58,
74,
23,
13,
74,
118,
740,
141,
296,
133,
70,
15,
2806,
268,
166,
27,
420,
258,
87,
11,
10,
12,
15,
125,
88,
58,
154,
66,
91,
33,
17,
11,
25,
200,
1021,
27,
36,
11,
16,
42,
35,
186,
53,
3359,
120,
33,
86,
39,
68,
215,
12,
24,
14,
55,
86,
89,
10,
70,
27,
99,
19,
12,
377,
70,
18,
11,
44,
1292,
84,
10,
18,
121,
11,
101,
50,
189,
29,
11,
1249,
34,
26,
129,
12,
28,
178,
12,
10,
279,
44,
163,
16,
124,
12,
34,
40,
15,
14,
70,
10,
26,
175,
36,
29,
10,
14,
1043,
37,
60,
179,
225,
82,
53,
21,
518,
37,
12,
20,
67,
23,
19,
44,
13,
26,
17,
23,
16,
46,
63,
59,
500,
31,
192,
55,
45,
78,
45,
12,
32,
20,
16,
30,
12,
125,
270,
31,
13,
74,
12,
68,
33,
30,
24,
314,
66,
31,
10,
35,
20,
10,
23,
32,
33,
1042,
317,
10,
132,
164,
1037,
196,
13,
53,
24,
190,
17,
22,
19,
64,
1114,
128,
10,
442,
94,
16,
15,
145,
10,
107,
83,
132,
30,
102,
19,
18,
71,
28,
12,
22,
74,
12,
35,
17,
14,
10,
91,
18,
14,
56,
10,
10,
27,
10,
58,
13,
24,
87,
48,
10,
22,
20,
167,
186,
24,
305,
70,
50,
24,
24,
93,
30,
25,
38,
116,
12,
62,
11,
238,
319,
35,
10,
164,
11,
11,
27,
16,
26,
37,
24,
10,
90,
30,
21,
14,
26,
108,
174,
15,
11,
81,
28,
11,
30,
97,
17,
45,
14,
17,
122,
21,
49,
18,
59,
42,
94,
16,
33,
16,
59,
29,
30,
52,
63,
69,
20,
103,
19,
25,
12,
31,
2021,
26,
81,
147,
12,
19,
177,
10,
713,
30,
73,
20,
38,
36,
46,
10,
33,
11,
27,
239,
36,
244,
23,
10,
11,
14,
73,
23,
39,
28,
77,
29,
46,
964,
12,
88,
110,
57,
11,
52,
23,
96,
8217,
29,
1132,
26,
24,
29,
76,
13,
11,
24,
14,
19,
11,
44,
499,
514,
19,
14,
46,
58,
2507,
34,
32,
42,
56,
46,
39,
4437,
33,
159,
13,
11,
49,
346,
13,
112,
290,
42,
35,
12,
77,
12,
19,
15,
10,
11,
139,
27,
12,
145,
39,
1499,
137,
14,
85,
75,
151,
24,
11,
24,
81,
550,
44,
26,
19,
18,
19,
96,
10,
177,
11,
32,
22,
36,
58,
486,
200,
12,
125,
65,
18,
108,
54,
51,
287,
32,
25,
10,
10,
11,
39,
987,
25,
15,
192,
19,
28,
114,
12,
726,
10,
90,
35,
127,
72,
223,
13,
1452,
17,
37,
43,
396,
42,
22,
11,
34,
27,
204,
22,
45,
12,
264,
14,
22,
174,
10,
165,
18,
1257,
21,
38,
237,
77,
60,
40,
30,
165,
43,
548,
33,
26,
21,
141,
36,
21,
83,
815,
41,
10,
16,
17,
63,
78,
56,
16,
10,
11,
13,
221,
15537,
344,
48,
11,
40,
22,
13,
14,
112,
11,
40,
57,
30,
22,
115,
36,
99,
78,
78,
98,
12,
234,
65,
57,
114,
1910,
236,
63,
35,
15,
556,
13,
25,
10,
513,
12,
128,
744,
190,
1168,
11,
62,
116,
652,
74,
28,
19,
94,
28,
16,
13,
54,
21,
63,
38,
10,
126,
97,
240,
98,
336,
25,
29,
28,
14,
11,
111,
23,
48,
19,
390,
11,
14,
113,
85,
38,
11,
14,
29,
13,
13,
21,
177,
120,
24,
191,
43,
44,
11,
10,
23,
13,
20,
15,
32,
21,
37,
12,
67,
18,
15,
19,
15,
11,
155,
14,
10,
41,
22,
12,
61,
10,
346,
64,
15,
547,
74,
49,
15,
36,
10,
11,
522,
65,
23,
10,
83,
20,
322,
1013,
30,
15,
144,
51,
234,
16,
159,
94,
30,
271,
30,
12355,
417,
29,
60,
12,
14,
13,
41,
39,
87,
12,
16,
12,
19,
16,
115,
1090,
11,
53,
15,
132,
92,
10,
222,
84,
20,
14,
39,
13,
55,
26,
34,
59,
1467,
40,
27,
87,
11,
684,
35,
11,
14,
70,
28,
32,
374,
10,
185,
12,
21,
21,
45,
25,
14,
23,
13,
11,
22,
10,
39,
106,
380,
90,
222,
42,
12,
33,
46,
135,
23,
18,
14,
39,
23,
24,
97,
96,
14,
34,
27,
87,
21,
61,
22,
13,
18,
25,
24,
234,
66,
44,
10,
15,
163,
50,
10,
16,
10,
11,
10,
115,
11,
50,
20,
11,
507,
44,
226,
73,
31,
278,
87,
50,
126,
24,
48,
356,
22,
12,
1205,
94,
1156,
181,
30,
16,
31,
51,
1985,
15,
136,
31,
55,
21,
149,
55,
64,
29,
14,
35,
10,
26,
51,
7824,
12,
14,
18,
24,
29,
88,
26,
31,
35,
93,
25,
30,
38,
80,
11,
79,
29,
7390,
45,
12,
31,
13,
40,
58,
12,
20,
204,
54,
18,
37,
54,
72,
21,
30,
120,
12,
19,
12,
13,
97,
14,
58,
71,
37,
395,
24,
117,
291,
128,
48,
662,
12,
47,
61,
3383,
42,
138,
76,
13,
88,
13,
53,
136,
36,
23,
12,
162,
13,
13,
12,
745,
161,
45,
188,
13,
49,
10,
78,
25,
10252,
2272,
797,
12,
11,
103,
470,
70,
39,
332,
59,
29,
51,
539,
11,
24,
18,
11,
17,
46,
41,
140,
20,
24,
41,
145,
82,
20,
32,
49,
50,
96,
36,
127,
22,
13,
21,
39,
30,
10,
31,
76,
10,
17,
19,
92,
521,
139,
52,
20,
42,
10,
11,
72,
85,
17,
20,
10,
112,
15,
74,
38,
76,
10,
14,
141,
10,
283,
53,
221,
143,
18,
77,
54,
10,
11,
51,
289,
34,
13,
13,
15,
333,
21,
52,
18,
74,
45,
119,
74,
193,
44,
21,
15,
351,
13,
80,
283,
234,
147,
21,
96,
10,
74,
56,
14,
685,
12,
10,
19,
64,
22,
31,
73,
12,
38,
210,
38,
22,
21,
19,
17,
77,
61,
149,
15,
23,
61,
42,
30,
34,
20,
19,
24,
44,
131,
53,
31,
12,
56,
63,
17,
13,
59,
183,
10,
73,
111,
92,
81,
55,
189,
13,
43,
812,
1107,
269,
26,
61,
26,
224,
1078,
96,
35,
13,
49,
15,
32,
96,
53,
27,
23,
586,
10,
28,
19,
1755,
30,
11,
20,
51,
18,
27,
36,
14,
678,
13,
18,
33,
23,
22,
11,
990,
141,
118,
450,
150,
11,
11,
256,
37,
42,
85,
90,
14,
416,
163,
806,
22,
22,
12,
75,
226,
10,
167,
33,
123,
125,
54,
512,
263,
326,
6199,
118,
600,
200,
2854,
31,
504,
14,
23,
305,
12,
32,
12,
23,
70,
13,
506,
64,
23,
42,
14,
72,
320,
206,
21,
15,
12,
27,
13,
338,
31,
52,
68,
10,
126,
14,
66,
412,
52,
17,
16,
21,
27,
12,
13,
78,
10,
647,
99,
340,
44,
27,
11,
420,
34,
86,
15,
30,
35,
177,
51,
44,
67,
28,
84,
57,
449,
271,
70,
25,
40,
3787,
10,
495,
21,
57,
2579,
51,
364,
50,
696,
36,
213,
56,
489,
42,
20,
76,
157,
60,
81,
52,
12,
212,
219,
17,
12,
75,
10,
51,
41,
11,
20,
14,
388,
51,
15,
137,
15,
88,
27,
14,
11,
28,
11,
36,
17,
29,
267,
11,
10,
82,
11,
68,
10,
14,
92,
153,
83,
18,
10,
29,
341,
132,
412,
28,
19,
20,
1590,
13,
252,
11,
11,
76,
61,
14,
98,
11,
18,
96,
61,
98,
2065,
23,
10,
21,
10,
13,
445,
1363,
11,
15,
90,
17,
40,
23,
29,
11,
40,
13,
15,
20,
85,
28,
14,
56,
200,
68,
53,
30,
12,
68,
10,
24,
10,
257,
25,
75,
21,
11,
83,
42,
96,
80,
43,
10,
13,
61,
161,
127,
37,
141,
21,
20,
308,
44,
36,
24,
15,
32,
15,
12,
18,
10,
23,
76,
42,
14,
59,
58,
30,
161,
10,
13,
12,
10,
13,
13,
42,
31,
10,
49,
11,
455,
63,
10,
22,
24,
35,
13,
28,
174,
93,
49,
71,
13,
54,
374,
13,
115,
55,
88,
576,
12,
10,
89,
46,
37,
68,
26,
13,
23,
17,
16,
41,
89,
248,
18,
47,
11,
12,
69,
24,
31,
16,
29,
84,
16,
11,
10,
72,
119,
186,
57,
119,
26,
13,
43,
14,
16,
27,
207,
12,
21,
18,
58,
18,
13,
15,
171,
554,
141,
13,
39,
113,
50,
10,
14,
10,
10,
15,
47,
25,
153,
209,
59,
11,
24,
10,
36,
42,
12,
31,
210,
16,
78,
17,
239,
23,
10,
12,
13,
10,
1552,
12,
17,
15,
18,
247,
10,
17,
516,
22,
80,
14,
21,
54,
77,
28,
18,
5624,
30,
145,
12,
82,
75,
173,
12,
15,
156,
362,
67,
169,
47,
36,
22,
18,
13,
31,
23,
43,
11,
11,
45,
93,
31,
15,
28,
26,
71,
10,
31,
299,
11,
142,
57,
14,
87,
11,
10,
14,
44,
20,
362,
31,
147,
312,
17,
30,
25,
766,
215,
12,
21,
86,
15,
11,
13,
16,
17,
23,
185,
53,
14,
33,
19,
22,
16,
18,
16,
12,
27,
16,
35,
11,
59,
14,
30,
18,
19,
11,
12,
54,
14,
15,
72,
135,
230,
13,
6508,
538,
15,
22,
14,
135,
15,
2467,
26,
2826,
33,
546,
92,
78,
16,
41,
186,
27,
12,
27,
671,
66,
118,
58,
11,
11,
12,
22,
22,
13,
178,
42,
12,
41,
64,
21,
49,
25,
12,
472,
10,
11,
10,
180,
73,
122,
139,
12,
13,
73,
21,
10,
22,
37,
466,
18,
24,
37,
207,
11,
18,
18,
23,
40,
26,
669,
110,
881,
14,
2562,
24,
10,
180,
170,
27,
27,
34,
21,
23,
13,
27,
11,
17,
12,
76,
101,
38,
13,
339,
17,
65,
17,
19,
27,
84,
94,
22,
152,
10,
160,
12,
22,
16,
45,
1498,
10,
12,
62,
71,
15,
10,
13,
13,
48,
17,
12,
38,
11,
35,
27,
13,
56,
88,
2540,
87,
11,
36,
116,
37,
27,
43,
21,
191,
23,
14,
27,
14,
94,
15,
20,
73,
175,
17,
126,
31,
61,
10,
76,
11,
37,
22,
28,
225,
16,
306,
28,
20,
77,
15,
58,
19,
17,
179,
13,
239,
154,
10,
19,
20,
13,
31,
30,
16,
74,
195,
115,
1788,
178,
69,
113,
144,
151,
36,
33,
518,
37,
15,
17,
16,
47,
37,
13,
43,
21,
25,
14,
41,
21,
49,
26,
17,
17,
27,
10,
12,
23,
20,
32,
78,
31,
28,
12,
31,
12,
42,
11,
47,
17,
12,
13,
269,
45,
217,
10,
11,
15,
45,
10,
374,
18,
137,
69,
22,
68,
86,
11,
11,
11,
18,
23,
103,
24,
26,
32,
18,
49,
19,
14,
59,
27,
18,
65,
63,
47,
65,
65,
13,
21,
488,
14,
22,
18,
529,
10,
20,
68,
219,
1818,
2065,
34,
630,
48,
34,
10,
401,
98,
119,
26,
58,
74,
116,
104,
49,
30,
11,
13,
13,
17,
12,
105,
19,
11,
89,
142,
68,
115,
105,
54,
35,
155,
43,
33,
1495,
17,
72,
13,
86,
157,
621,
19,
64,
23,
70,
13,
10,
327,
40,
17,
180,
14,
35,
28,
32,
27,
93,
635,
10,
25,
14,
12,
10,
23,
12,
1140,
29,
17,
33,
10,
11,
193,
121,
30,
13,
11,
22,
11,
13,
44,
120,
329,
10329,
66,
581,
53,
53,
138,
53,
13,
200,
58,
26,
20,
17,
20,
12,
61,
33,
10,
92,
39,
178,
482,
26,
19,
41,
24,
22,
32,
10,
154,
41,
94,
25,
121,
261,
23,
14,
70,
30,
10,
16,
104,
363,
272,
62,
113,
17,
1685,
69,
68,
54,
101,
110,
21,
27,
94,
41,
381,
49,
61,
12,
58,
28,
16,
93,
15,
44,
10,
2023,
24,
20,
27,
11,
57,
116,
39,
14,
47,
190,
21,
35,
14,
83,
10,
12,
15,
126,
21,
11,
17,
12,
135,
32,
25,
715,
143,
47,
40,
21,
13,
215,
11,
54,
14,
150,
12,
36,
176,
263,
10,
233,
67,
20,
78,
29,
96,
11,
41,
93,
60,
160,
12,
20,
33,
10,
3442,
99,
5528,
64,
10,
18,
27,
10,
92,
884,
29,
108,
13,
472,
34,
549,
48,
88,
58,
37,
11,
200,
14,
15,
27,
236,
13,
10,
20,
171,
430,
253,
20,
19,
37,
14,
134,
13,
14,
13,
10,
10,
20,
24,
109,
11,
1426,
190,
27,
22,
15,
143,
211,
109,
86,
21,
60,
10,
37,
28,
86,
113,
28,
39,
27,
21,
125,
29,
22,
440,
11,
91,
38,
23,
242,
25,
150,
88,
618,
15,
40,
29,
13,
10,
18,
112,
20,
35,
22,
832,
27,
93,
30,
123,
116,
168,
426,
12,
12,
11,
10,
10,
21,
35,
10,
11,
407,
13,
16,
87,
125,
33,
13,
49,
54,
26,
12,
11,
45,
79,
17,
12,
489,
24,
11,
40,
67,
119,
15,
21,
55,
75,
47,
63,
27,
10,
11,
15,
17,
12,
16,
10,
28,
12,
19,
20,
12,
48,
47,
62,
19,
118,
19,
30,
10,
40,
46,
470,
30,
391,
12,
152,
61,
23,
21,
44,
27,
10,
11,
10,
12,
10,
10,
24,
60,
55,
99,
11,
10,
11,
80,
33,
46,
11,
11,
467,
17,
174,
95,
17,
200,
673,
202,
104,
134,
69,
12,
107,
51,
66,
154,
33,
106,
24,
497,
127,
196,
307,
88,
86,
33,
171,
35,
80,
21,
1281,
112,
92,
12,
131,
25,
12,
33,
190,
489,
10,
44,
23,
323,
58,
11,
116,
135,
49,
33,
18,
12,
10,
33,
134,
469,
52,
467,
373,
32,
216,
88,
136,
2118,
330,
44,
13,
18,
14,
13,
153,
230,
33,
12,
17,
178,
135,
30,
29,
12,
120,
37,
399,
16,
25,
56,
15,
135,
115,
33,
57,
11,
16,
10,
76,
559,
83,
47,
196,
75,
10,
145,
14,
23,
421,
23,
10,
12,
12,
18,
83,
2063,
1145,
1958,
429,
54,
92,
58,
75,
12,
76,
27,
4749,
1469,
1741,
100,
141,
226,
470,
81,
205,
40,
26,
37,
64,
65,
148,
49,
33,
37,
28,
306,
325,
29,
11,
417,
1138,
686,
44,
14,
12,
43,
17,
39,
41,
17,
16,
48,
14,
217,
99,
23,
26,
11,
10,
25,
63,
22,
12,
14,
14,
44,
75,
17,
75,
75,
75,
75,
75,
340,
1856,
17,
26,
172,
47,
16,
172,
153,
40,
145,
73,
12,
26,
40,
12,
60,
14,
15,
6569,
468,
296,
107,
293,
46,
182,
28,
10,
81,
501,
172,
21,
213,
200,
36,
10,
711,
12,
158,
41,
16,
168,
2138,
39,
141,
19,
2193,
70,
123,
268,
48,
36,
241,
21,
21,
17,
64,
64,
69,
10,
11,
84,
84,
77,
116,
22,
29,
133,
39,
49,
504,
23,
42,
16,
25,
13,
44,
29,
464,
16,
10,
12,
179,
75,
75,
92,
11031,
27,
124,
111,
1076,
14,
12,
23,
49,
118,
237,
12,
64,
22,
84,
129,
11,
16,
280,
105,
267,
14,
106,
12,
21,
14,
54,
355,
35,
11,
12,
177,
22,
124,
64,
16,
216,
77,
19,
10,
143,
73,
20,
124,
54,
208,
61,
54,
13,
10,
31,
450,
204,
177,
15,
27,
13,
41,
23,
562,
1502,
1163,
13,
75,
300,
181,
73,
120,
43,
19,
107,
37,
38,
10,
27,
10,
1414,
805,
30,
37,
10,
71,
6028,
21,
153,
39,
57,
38,
10,
14,
10,
114,
10,
110,
27,
31,
49,
64,
21,
85,
11,
58,
12,
17,
39,
59,
15,
96,
18,
311,
10,
37,
27,
31,
34,
12,
11,
14,
32,
23,
550,
11,
47,
14,
18,
312,
146,
17,
64,
50,
15,
11,
183,
106,
19,
15,
11,
26,
16,
14,
18,
17,
20,
11,
11,
89,
14,
75,
46,
15,
41,
75,
76,
39,
272,
265,
17,
6495,
2530,
39,
33,
39,
157,
623,
28,
52,
52,
45,
19,
257,
12,
12,
41,
33,
11,
276,
53,
253,
19,
12,
31,
12,
11,
14,
13,
14,
303,
20,
13,
110,
64,
96,
50,
15,
176,
11,
17,
68,
19,
14,
12,
57,
163,
20,
13,
170,
10,
14,
14,
30,
12,
17,
20,
15,
27,
73,
19,
78,
11,
19,
224,
31,
415,
30,
139,
239,
45,
13,
39,
10,
11,
35,
12,
12,
11,
26,
15,
19,
555,
118,
757,
101,
36,
77,
11,
10,
12,
32,
26,
10,
10,
12,
56,
1023,
186,
581,
37,
19,
24,
95,
534,
52,
25,
23,
24,
246,
1397,
29,
598,
458,
278,
10,
86,
35,
25,
60,
42,
3465,
38,
16,
83,
10,
323,
46,
90,
13,
12,
58,
21,
37,
11,
608,
21,
432,
70,
1038,
24,
147,
12,
62,
11,
182,
83,
24,
10,
112,
29,
209,
22,
17,
1062,
165,
14,
1309,
46,
699,
26,
21,
94,
93,
65,
172,
17,
27,
23,
13,
40,
49,
142,
103,
3136,
31,
25,
37,
30,
16,
10,
177,
12,
58,
26,
39,
24,
959,
849,
13,
11,
10,
24,
1529,
13,
26,
61,
15,
53,
1164,
86,
14,
27,
12,
22,
12,
16,
12,
109,
89,
2156,
12,
12,
58,
12,
13,
17,
15,
70,
112,
30,
17,
17,
32,
43,
10,
74,
56,
31,
227,
214,
11,
44,
10,
21,
18,
14,
73,
18,
13,
24,
22,
13,
145,
730,
86,
138,
157,
14,
13,
80,
76,
113,
239,
18,
15,
22,
16,
70,
137,
16,
16,
35,
11,
25,
20,
152,
27,
23,
24,
15,
11,
178,
15,
47,
25,
630,
14,
113,
135,
37,
619,
43,
345,
118,
378,
59,
212,
78,
42,
119,
365,
13,
25,
12,
1081,
20,
14,
14,
12,
19,
1395,
114,
50,
15,
38,
17,
16,
741,
324,
123,
147,
14,
106,
11,
18,
17,
71,
13,
28,
15,
46,
17,
70,
12,
12,
309,
47,
24,
54,
10,
110,
528,
20,
14,
11,
14,
10,
39,
25,
15,
44,
134,
41,
14,
33,
23,
60,
11,
11,
126,
40,
37,
279,
16,
55,
14,
259,
152,
11,
14,
77,
56,
12,
11,
122,
15,
92,
11,
11,
113,
65,
16,
13,
78,
23,
33,
15,
18,
85,
16,
502,
23,
14,
10,
124,
185,
278,
460,
28,
50,
50,
15,
154,
14,
11,
25,
25,
39,
238,
939,
410,
78,
21,
244,
182,
7320,
34,
94,
36,
27,
107,
13,
386,
102,
16,
11,
1345,
11,
39,
14,
10,
14,
128,
246,
80,
17,
43,
26,
400,
15,
13,
245,
11,
10,
90,
438,
11,
286,
26,
23,
21,
43,
12,
1419,
14,
14,
32,
55,
204,
24,
99,
35,
109,
74,
33,
404,
42,
15,
51,
12,
30,
44,
39,
22,
383,
23,
35,
10,
364,
12,
370,
398,
31,
230,
13,
61,
25,
12,
28,
27,
148,
11,
33,
21,
484,
139,
95,
86,
31,
14,
39,
38,
1042,
125,
64,
77,
281,
577,
13,
34,
8208,
10,
20,
23,
36,
55,
23,
23,
70,
26,
141,
159,
19,
25,
11,
15,
64,
13,
11,
36,
22,
24,
16,
23,
16,
24,
27,
40,
71,
229,
35,
66,
38,
14,
10,
11,
39,
11,
2979,
49,
203,
194,
101,
261,
203,
186,
18,
17,
30,
18,
12,
857,
10,
30,
16,
13,
317,
66,
10,
37,
17,
71,
190,
134,
33,
11,
11,
12,
116,
45,
22,
77,
85,
15,
448,
14,
14,
11,
10,
18,
13,
10,
395,
201,
58,
1744,
192,
78,
217,
14,
90,
13616,
11,
41,
20,
155,
36,
11,
57,
10,
555,
13,
12,
20,
12,
54,
11,
285,
13,
13,
188,
130,
10,
189,
39,
23,
23,
18,
12,
12,
12,
315,
21,
15,
101,
37,
13,
33,
45,
16,
29,
77,
32,
20,
45,
28,
13,
21,
84,
47,
30,
331,
12,
12,
155,
48,
31,
34,
32,
17,
176,
71,
339,
10,
14,
10,
42,
196,
2973,
11,
379,
13,
61,
41,
10,
2281,
204,
11,
24,
221,
281,
24,
14,
168,
55,
18,
13,
22,
63,
28,
18,
15,
12,
26,
92,
11,
44,
45,
30,
112,
37,
25,
23,
49,
13,
85,
12,
35,
13,
39,
100,
141,
778,
17,
322,
1042,
590,
56,
19,
198,
44,
13,
11,
334,
97,
36,
39,
180,
50,
39,
133,
94,
146,
101,
40,
567,
10,
24,
75,
43,
2661,
10,
275,
31,
35,
72,
339,
131,
20,
18,
79,
231,
20,
225,
19,
57,
205,
12,
2497,
266,
133,
657,
194,
81,
52,
61,
137,
13,
19,
847,
10,
44,
158,
33,
64,
12,
90,
10,
56,
1084,
75,
15,
11,
185,
166,
62,
52,
102,
14,
75,
46,
10,
12,
23,
189,
31,
21,
32,
12,
19,
17,
11,
127,
25,
17,
23,
11,
12,
44,
18,
93,
36,
370,
13,
12,
10,
15,
901,
14,
41,
43,
10,
25,
55,
68,
16,
30,
72,
81,
23,
19,
13,
113,
58,
101,
59,
49,
52,
203,
138,
11,
86,
363,
30,
34,
124,
20,
18,
15,
10,
20,
31,
829,
37,
79,
14,
1646,
118,
117,
408,
33,
10,
133,
100,
237,
337,
478,
56,
92,
28,
12,
319,
79,
10,
12,
33098,
30,
450,
22,
12,
372,
23,
51,
35,
3923,
22,
26,
39,
40,
26,
26,
38,
65,
270,
39,
135,
292,
25,
127,
355,
34,
40,
17,
17,
80,
28,
70,
38,
55,
81,
62,
34,
38,
43,
14,
291,
19,
3207,
11,
269,
18,
89,
45,
28,
30,
25,
10,
28,
491,
236,
1901,
55,
19,
125,
43,
88,
280,
4667,
39,
57,
22,
148,
24,
207,
13,
254,
240,
25,
38,
76,
175,
48,
193,
20,
40,
338,
16,
13,
133,
12,
12,
12,
21,
36,
38,
10,
13,
48,
37,
163,
27,
23,
33,
43,
91,
80,
19,
37,
82,
16,
17,
30,
26,
77,
547,
38,
88,
54,
35,
12,
40,
10,
13,
54,
22,
58,
13,
126,
299,
31,
51,
30,
12,
10,
42,
95,
355,
10,
30,
114,
85,
41,
1044,
45,
840,
25,
83,
47,
20,
1022,
162,
116,
39,
68,
43,
45,
15,
34,
24,
2415,
3773,
220,
55,
1092,
147,
11,
18,
90,
26,
12,
54,
408,
314,
135,
48,
187,
187,
35,
15,
10,
26,
557,
327,
22,
22,
234,
27,
21,
39,
104,
39,
173,
51,
171,
121,
355,
16,
171,
41,
66,
11,
2527,
13,
377,
20,
21,
22,
75,
1203,
169,
13,
128,
15,
11,
19,
1163,
1370,
135,
10,
44,
120,
12,
66,
16,
14,
12,
27,
24,
18,
145,
11,
261,
60,
14,
25,
58,
10,
10,
14,
29,
10,
18,
735,
115,
440,
41,
11,
10,
58,
397,
55,
20,
14,
83,
46,
65,
13,
19,
60,
77,
14,
149,
222,
12,
16,
20,
104,
25,
1368,
42,
547,
46,
241,
41,
48,
98,
49,
110,
10,
16,
23,
12,
15,
15,
23,
77,
12,
681,
12,
391,
83,
12,
614,
268,
2515,
1442,
21,
20,
46,
174,
576,
32,
26,
92,
1513,
282,
5026,
10,
215,
42,
7091,
37,
322,
11,
241,
205,
27,
16,
28,
24,
194,
18,
109,
18,
85,
13,
12,
12,
10,
5387,
20,
26,
64,
46,
132,
10,
17,
300,
86,
14,
161,
19,
38,
26,
23,
52,
10,
12,
11,
83,
186,
80,
109,
87,
53,
276,
10,
19,
11,
22,
18,
20,
216,
10,
335,
38,
108,
13,
35,
10,
78,
193,
45,
31,
53,
96,
98,
20,
63,
357,
22,
13,
147,
1302,
934,
27,
1764,
15,
10,
90,
938,
11,
34,
10,
11,
11,
10,
13,
82,
19,
114,
24,
10,
12,
42,
73,
126,
18,
17,
50,
67,
69,
51,
47,
213,
14,
14,
48,
10,
15,
50,
15,
1464,
16,
13,
10,
20,
14,
11,
58,
150,
10,
68,
24,
78,
260,
11,
1358,
1021,
10,
16,
200,
17,
72,
12,
15,
23,
22,
10,
16,
42,
1424,
15,
24,
10,
34,
587,
83,
11,
32,
18,
14,
131,
95,
69,
27,
145,
345,
36,
145,
160,
10,
126,
19,
105,
24,
47,
12,
89,
42,
85,
38,
1753,
2021,
17,
44,
14,
1697,
23,
51,
72,
26,
113,
10,
11,
17,
55,
80,
12,
429,
16,
21,
12,
15,
24,
50,
14,
79,
62,
38,
61,
92,
10,
18,
66,
35,
22,
27,
12,
487,
22,
20,
32,
87,
29,
47,
321,
16,
243,
446,
13,
20,
96,
125,
10,
10,
24,
33,
83,
23,
13,
128,
11,
26,
13,
138,
85,
18,
66,
126,
23,
13,
11,
10,
62,
11,
47,
24,
1760,
16,
22,
235,
171,
13,
46,
40,
41,
114,
23,
85,
87,
13,
35,
34,
13,
20,
32,
12,
369,
10,
10,
13,
33,
31,
22,
50,
24,
83,
12,
872,
33,
113,
60,
15,
22,
10,
35,
77,
460,
44,
112,
14,
102,
27,
108,
41,
84,
44,
11,
14,
236,
24,
10,
13,
91,
38,
21,
133,
164,
18,
16,
67,
258,
152,
36,
31,
17,
35,
28,
13,
15,
11,
43,
24,
203,
20,
52,
18,
24,
14,
19,
118,
73,
91,
22,
21,
51,
59,
24,
21,
28,
75,
47,
13,
101,
122,
21,
62,
10,
77,
12,
15,
34,
117,
18,
11,
288,
215,
18,
14,
121,
21,
56,
1556,
93,
10,
75,
36,
26,
11,
12,
395,
26,
116,
26,
17,
43,
32,
12,
58,
12,
20,
10,
20,
90,
10,
26,
18,
20,
13,
38,
35,
127,
11,
15,
12,
10,
18,
12,
379,
171,
14,
112,
82,
236,
126,
23,
300,
236,
160,
1048,
32,
82,
11,
30,
76,
21,
86,
14,
71,
35,
166,
33,
31,
20,
28,
19,
111,
39,
60,
162,
66,
17,
59,
21,
290,
10,
153,
23,
161,
21,
459,
10,
53,
26,
41,
21,
299,
91,
424,
412,
35,
13,
199,
37,
11,
44,
2357,
22,
80,
525,
387,
112,
33,
12,
481,
26,
40,
10,
11,
67,
13,
13,
359,
24,
15,
18,
37,
10,
64,
64,
64,
33,
1646,
496,
490,
15,
2688,
12,
120,
391,
549,
19,
11,
29,
16,
25,
84,
166,
11,
179,
30,
21,
14,
12,
133,
472,
11,
11,
12,
11,
43,
12,
11,
204,
100,
24,
41,
37,
59,
36,
16,
33,
43,
10,
15,
13,
22,
269,
197,
10,
14,
14,
22,
30,
52,
166,
111,
16,
22,
76,
30,
16,
17,
12,
21,
15,
112,
11,
76,
27,
258,
21,
69,
77,
40,
13,
16,
23,
28,
24,
234,
153,
18,
16,
23,
202,
22,
105,
46,
10,
44,
91,
27,
112,
11,
34,
100,
12,
18,
32,
67,
10,
2660,
148,
343,
11,
27,
45,
32,
27,
11,
50,
14,
83,
13,
10,
23,
126,
12,
72,
7232,
30,
13,
15,
12,
27,
396,
164,
82,
28,
389,
24,
520,
15,
242,
15,
26,
32,
17,
24,
18,
50,
10,
15,
21,
780,
12,
36,
152,
29,
79,
138,
318,
31,
48,
90,
13,
27,
24,
39,
10,
67,
15,
35,
87,
12,
403,
88,
35,
13,
11,
57,
106,
63,
34,
39,
18,
16,
2538,
78,
418,
32,
121,
30,
39,
143,
11,
68,
265,
25,
18,
54,
14,
340,
23,
13,
20,
60,
16,
10,
15,
31,
13,
20,
44,
73,
12,
62,
200,
20,
58,
103,
12,
24,
45,
19,
146,
31,
16,
14,
60,
17,
32,
256,
12,
10,
205,
292,
38,
11,
14,
1182,
59,
20,
411,
13,
80,
11,
22,
24,
33,
58,
10,
43,
56,
12,
396,
30,
17,
33,
60,
58,
275,
25,
15,
17,
103,
10,
33,
151,
74,
16,
306,
11,
57,
32,
19,
33,
18,
56,
16,
45,
178,
145,
89,
22,
88,
259,
30,
15,
12,
33,
73,
191,
355,
10,
235,
87,
16,
12,
133,
21,
215,
119,
13,
355,
255,
23,
78,
97,
49,
20,
30,
16,
25,
308,
15,
11,
134,
146,
11,
16,
10,
72,
10,
14,
19,
13,
72,
3825,
15,
65,
39,
297,
13,
132,
35,
131,
36,
31,
16,
88,
101,
21,
21,
53,
16,
33,
13,
26,
10,
21,
21,
67,
23,
10,
16,
16,
56,
12,
30,
24,
22,
12,
50,
232,
20,
49,
32,
21,
27,
14,
14,
17,
24,
30,
61,
60,
18,
37,
441,
167,
270,
127,
12,
691,
13,
25,
11,
10,
11,
10,
17,
707,
187,
552,
261,
87,
21,
77,
18,
10,
144,
18,
40,
78,
73,
59,
41,
81,
49,
12,
30,
1072,
109,
26,
15,
16,
205,
241,
146,
10,
10,
29,
15,
13,
12,
18,
30,
10,
12,
12,
113,
469,
34,
21,
891,
1576,
20,
143,
23,
13,
14,
59,
14,
18,
28,
446,
13,
18,
12,
417,
17,
21,
35,
25,
19,
14,
109,
19,
33,
92,
11,
14,
24,
37,
88,
15,
17,
15,
14,
17,
10,
29,
14,
113,
166,
37,
38,
104,
134,
10,
14,
19,
113,
14,
71,
12,
49,
15,
246,
11,
23,
16,
12,
17,
30,
698,
15,
289,
23,
51,
51,
18,
31,
10,
10,
14,
19,
10,
23,
47,
19,
67,
453,
67,
22,
263,
14,
11,
63,
22,
11,
50,
1084,
603,
13,
17,
103,
13,
88,
72,
27,
30,
12,
11,
85,
10,
18,
200,
172,
19,
49,
173,
82,
15,
220,
10,
523,
15,
229,
16,
15,
37,
10,
38,
14,
18,
12,
17,
27,
25,
31,
14,
13,
11,
374,
64,
10,
27,
709,
17,
41,
10,
35,
52,
32,
400,
10,
10,
35,
37,
34,
366,
23,
112,
20,
110,
21,
324,
37,
16,
47,
14,
59,
10,
16,
22,
44,
13,
98,
212,
29,
21,
30,
52,
17,
223,
28,
15,
1136,
157,
13,
12,
15,
10,
12,
12,
12,
36,
28,
40,
10,
25,
556,
46,
23,
13,
1034,
33,
123,
12,
11,
27,
12,
10,
29,
2363,
30,
25,
780,
31,
11,
69,
6159,
16,
13,
55,
12,
16,
15,
56,
22,
27,
16,
177,
1377,
50,
33,
28,
254,
32,
11,
77,
51,
19,
24,
15,
1217,
10,
24,
11,
11,
86,
72,
12733,
77,
20,
14,
12,
21,
12,
10,
11,
10,
15,
445,
12,
599,
45,
28,
12,
2413,
171,
203,
260,
124,
26,
43,
138,
29,
10,
36,
22,
17,
56,
12,
18,
38,
80,
78,
22,
1370,
47,
8628,
132,
49,
10,
51,
22,
2281,
295,
439,
781,
139,
82,
16,
10,
15,
189,
66,
18,
14,
63,
206,
23,
73,
16,
257,
19,
46,
21,
44,
30,
11,
244,
112,
10,
10,
10,
35,
29,
18,
10,
88,
165,
42,
29,
19,
10,
48,
11,
11,
12,
14,
47,
10,
85,
1605,
54,
431,
21,
85,
18,
318,
15,
10,
10,
653,
45,
44,
10,
44,
84,
12,
94,
134,
12,
12,
277,
11,
10,
11,
635,
104,
1189,
26,
15,
138,
17,
131,
27,
12,
10,
17,
54,
12,
20,
62,
18,
54,
16,
12,
699,
127,
12,
104,
67,
48,
170,
1015,
66,
10,
54,
23,
72,
109,
16,
118,
59,
23,
2249,
1616,
53,
10,
16,
93,
240,
79,
69,
72,
155,
26,
22,
164,
18,
10,
84,
836,
92,
73,
15,
23,
49,
25,
25,
23,
86,
110,
26,
11,
71,
13,
15,
36,
32,
199,
35,
273,
73,
330,
574,
25,
45,
30,
12,
384,
21,
272,
11,
24,
332,
62,
165,
11,
32,
346,
103,
39,
266,
12,
21,
12,
10,
10,
15,
53,
26,
10,
17,
22,
12,
14,
58,
12,
21,
10,
22,
25,
10,
155,
119,
13,
32,
14,
228,
195,
13,
32,
50,
16,
40,
10,
10,
12,
18,
10,
69,
96,
22,
36,
11,
29,
19,
11,
38,
845,
10,
10,
29,
26,
154,
81,
29,
27,
137,
21,
24,
81,
19,
10,
34,
56,
32,
69,
59,
26,
11,
62,
17,
27,
219,
70,
18,
290,
20,
10,
31,
134,
143,
40,
194,
30,
18,
62,
10,
36,
314,
26,
265,
39,
78,
22,
13,
45,
21,
32,
33,
17,
13,
113,
42,
25,
20,
12,
40,
68,
40,
275,
1412,
161,
1122,
10,
19,
56,
61,
112,
35,
13,
18,
10,
10,
23,
48,
21,
91,
15,
12,
136,
13,
12,
25,
10,
155,
30,
21,
101,
165,
39,
486,
75,
15,
10,
14,
23,
19,
26,
12,
34,
53,
189,
21,
41,
42,
79,
10,
238,
10,
76,
69,
374,
12,
91,
12,
36,
46,
328,
16,
11,
311,
95,
103,
60,
41,
27,
228,
67,
241,
13,
19,
11,
14,
10,
63,
27,
16,
22,
11,
40,
13,
436,
93,
98,
120,
54,
119,
13,
93,
125,
290,
17,
141,
22,
12,
31,
594,
12,
10,
23,
24,
305,
13,
120,
20,
10,
62,
41,
10,
41,
157,
62,
77,
87,
30,
8598,
18,
25,
59,
17,
11,
30,
1906,
84,
22,
18,
41,
91,
96,
34,
12,
11,
10,
21,
83,
290,
48,
41,
892,
1023,
1053,
843,
11,
14,
10,
23,
21,
14,
10,
24,
77,
97,
46,
30,
60,
22,
24,
35,
10,
16,
60,
18,
55,
1804,
168,
74,
25,
17,
285,
35,
53,
14,
21,
25,
21,
15,
11,
122,
19,
120,
54,
11,
23,
20,
32,
13,
32,
50,
160,
13,
20,
27,
23,
26,
10,
47,
77,
125,
61,
31,
41,
213,
51,
7221,
42,
14,
27,
12,
10,
24,
110,
11,
19,
74,
11,
37,
63,
11,
44,
147,
32,
917,
71,
20,
93,
84,
13,
12,
82,
583,
312,
108,
102,
10,
72,
10,
10,
59,
69,
2103,
10,
60,
259,
16,
11,
11,
12,
41,
4377,
581,
40,
187,
12,
11,
193,
15,
10,
528,
508,
23,
42,
35,
38,
31,
10,
60,
50,
10,
10,
156,
119,
14,
20,
39,
18,
69,
268,
50,
32,
98,
59,
435,
17,
138,
20,
81,
32,
84,
12,
69,
49,
11,
600,
58,
11,
67,
27,
12,
38,
63,
77,
17,
14,
30,
110,
847,
98,
20,
35,
84,
58,
11,
46,
46,
13,
44,
19,
62,
12,
10,
17,
24,
15,
34,
127,
15,
40,
59,
79,
10,
21,
670,
57,
48,
12,
17,
30,
11,
80,
139,
56,
31,
91,
23,
36,
60,
131,
97,
680,
19,
38,
66,
10,
20,
45,
11,
11,
12,
10,
105,
17,
11,
989,
11,
12,
53,
162,
60,
20,
10,
46,
16,
49,
11,
16,
10,
11,
149,
42,
21,
12,
10,
20,
16,
78,
59,
61,
30,
14,
160,
7511,
224,
2189,
267,
207,
688,
15,
121,
13,
16,
11,
16,
16,
330,
20,
15,
33,
216,
69,
18,
52,
11,
86,
14,
452,
11,
42,
14,
15,
20,
10,
94,
10,
172,
16,
17,
13,
33,
202,
247,
10,
11,
103,
17,
39,
12,
31,
12,
10,
29,
49,
16,
16,
11,
20,
19,
12,
14,
23,
58,
25,
157,
15,
83,
50,
76,
86,
37,
26,
12,
155,
1049,
37,
22,
53,
1565,
72,
53,
15,
87,
389,
97,
19,
310,
35,
34,
10,
17,
25,
12,
19,
31,
1140,
10,
301,
43,
30,
347,
3562,
10,
12,
18,
10,
50,
25,
102,
13,
24,
1666,
89,
29,
42,
50,
73,
10,
11,
22,
15,
2079,
130,
174,
97,
19,
13,
27,
66,
996,
935,
88,
996,
14,
28,
48,
32,
1911,
58,
1389,
124,
15,
243,
28,
51,
10,
878,
549,
44,
220,
173,
14,
54,
39,
54,
80,
35,
11,
42,
10,
51,
10,
433,
15,
47,
69,
11,
11,
29,
45,
20,
13,
81,
105,
59,
14,
47,
55,
11,
21,
111,
28,
27,
4933,
25,
14,
16,
10,
16,
519,
39,
20,
11,
23,
33,
47,
11,
13,
40,
31,
87,
364,
50,
35,
16,
11,
35,
429,
30,
18,
91,
10,
10,
18,
512,
11,
10,
105,
12,
30,
11,
55,
54,
18,
142,
143,
12,
30,
2177,
12,
12,
202,
1902,
525,
43,
11,
77,
19,
15,
12,
67,
75,
458,
490,
91,
38,
123,
322,
260,
17,
29,
86,
66,
13,
22,
284,
40,
13,
16,
11,
48,
13,
39,
10,
10,
10,
11,
19,
11,
86,
29,
20,
17,
14,
193,
15,
73,
73,
74,
78,
20,
162,
36,
15,
14,
28,
349,
12,
7595,
131,
839,
84,
301,
11,
881,
2007,
197,
20,
867,
12,
199,
2338,
29,
102,
35,
2718,
116,
39,
30,
13,
53,
27,
44,
15,
14,
36,
114,
33,
86,
52,
158,
150,
19,
14,
87,
54,
224,
30,
86,
196,
15,
60,
12,
780,
35,
10,
239,
525,
14,
17,
220,
31,
528,
161,
129,
10,
42,
46,
13,
3676,
145,
87,
32,
23,
20,
19,
151,
318,
14,
18,
1089,
27,
72,
15,
13,
26,
15,
96,
71,
46,
2238,
21,
516,
14,
18,
471,
11,
11,
132,
55,
11,
11,
101,
174,
21,
31,
33,
33,
21,
14,
36,
20,
19,
232,
5111,
10,
135,
522,
22,
17,
114,
12,
10,
38,
29,
105,
12,
52,
11,
393,
22,
17,
10,
15,
32,
80,
125,
15,
16,
14,
105,
10,
64,
294,
61,
13,
32,
19,
21,
77,
10,
413,
10,
10,
16,
13,
38,
149,
136,
22,
15,
11,
21,
13,
116,
13,
12,
12,
11,
14,
31,
21,
11,
11,
12,
134,
41,
47,
216,
285,
31,
53,
789,
2648,
41,
470,
39,
13,
10,
32,
61,
11,
10,
56,
14,
192,
12,
13,
34,
13,
22,
21,
10,
17,
78,
17,
20,
18,
27,
61,
49,
90,
14,
36,
28,
10,
103,
26,
11,
65,
16,
25,
13,
12,
36,
10,
60,
39,
37,
16,
14,
13,
24,
15,
27,
43,
800,
41,
10,
40,
10,
42,
11,
13,
17,
10,
110,
36,
65,
19,
12,
156,
113,
162,
1841,
11,
32,
33,
17,
11,
21,
10,
13,
68,
50,
37,
29,
24,
424,
10,
522,
59,
34,
17,
12,
16,
15,
29,
14,
61,
11,
17,
10,
26,
32,
17,
42,
39,
16,
1684,
30,
139,
32,
50,
20,
167,
13,
4125,
11,
17,
17,
25,
16,
55,
11,
88,
15,
41,
79,
243,
107,
16,
11,
26,
50,
22,
160,
11,
13,
135,
100,
22,
58,
30,
14,
10,
10,
169,
38,
10,
17,
34,
101,
38,
51,
30,
11,
11,
17,
809,
386,
16,
228,
1999,
15,
17,
84,
33,
10,
135,
12,
319,
17,
25,
15,
487,
662,
16,
195,
23,
22,
3255,
32,
1136,
128,
20,
10,
24,
53,
10,
27,
12,
24,
11,
111,
2105,
20,
10,
13,
277,
11,
22,
26,
102,
73,
10,
16,
387,
3672,
91,
10,
17,
44,
304,
79,
30,
582,
13,
267,
19,
75,
31,
13,
17,
42,
15,
13,
36,
10,
13,
52,
21,
221,
29,
13,
325,
105,
123,
132,
403,
16,
10,
438,
41,
910,
30,
15,
1438,
21,
21,
106,
126,
858,
10,
34,
135,
13,
14,
13,
10,
10,
13,
23,
13,
77,
19,
17,
1990,
14,
199,
366,
861,
49,
12,
96,
31,
25,
947,
42,
68,
15,
14,
37,
25,
401,
12,
12,
12,
16,
1497,
147,
38,
60,
17,
10,
38,
30,
36,
110,
11,
60,
10,
32,
12,
14,
142,
431,
176,
115,
18,
103,
65,
60,
14,
44,
17,
29,
127,
45,
10,
39,
105,
13,
13,
391,
16,
13,
10,
96,
21,
77,
10,
27,
14,
11,
21,
17,
801,
81,
65,
11,
23,
62,
130,
19,
186,
31,
41,
174,
20,
142,
20,
79,
11,
12,
213,
14,
29,
98,
63,
23,
32,
6722,
204,
209,
25,
15,
11,
145,
12,
20,
27,
25,
10,
29,
18,
29,
158,
35,
39,
10,
14,
156,
360,
90,
2382,
211,
38,
30,
39,
11,
71,
18,
51,
84,
93,
96,
77,
30,
59,
108,
10,
39,
10,
78,
10,
33,
18,
19,
13,
44,
11,
134,
31,
20,
150,
20,
27,
146,
754,
10,
75,
16,
55,
216,
54,
14,
59,
15,
139,
164,
16,
11,
17,
331,
366,
272,
71,
16,
71,
312,
21,
19,
140,
21,
1179,
14,
168,
13,
10,
15,
7425,
115,
512,
91,
72,
14,
23,
45,
86,
154,
66,
24,
13,
5087,
30,
58,
385,
64,
22,
18,
132,
23,
11,
15,
184,
15,
749,
60,
89,
10,
1764,
211,
208,
51,
13,
19,
18,
12,
23,
17,
10,
146,
63,
64,
11,
218,
847,
233,
21,
96,
26,
59,
1155,
103,
20,
10,
179,
21,
140,
1263,
232,
12,
22,
11,
2160,
1140,
10,
72,
15,
1282,
31,
26,
14,
370,
474,
178,
1069,
10,
19,
27,
75,
30,
11,
892,
109,
64,
293,
174,
113,
203,
2468,
26,
10,
10,
224,
59,
12,
153,
11,
39,
83,
10,
10,
56,
3160,
772,
39,
10,
121,
3432,
13,
411,
15,
517,
240,
650,
12,
95,
43,
224,
41,
14,
23,
12,
5864,
416,
2184,
15,
11,
818,
250,
12,
16,
13,
14,
73,
37,
2270,
12,
11,
17,
166,
262,
727,
40,
174,
10,
12,
53,
153,
61,
48,
19,
1411,
46,
39,
32,
470,
22,
15,
25,
560,
586,
14,
28,
85,
127,
20,
11,
11,
134,
12,
138,
28,
11,
75,
13,
574,
78,
35,
1462,
31,
12,
21,
232,
4374,
29,
71,
10,
74,
50,
285,
97,
126,
28,
32,
75,
11,
14,
28,
222,
10,
24,
104,
120,
40,
168,
157,
12,
307,
123,
51,
33,
75,
114,
18,
13,
254,
13,
922,
14,
55,
18,
40,
84,
14,
49,
409,
10,
474,
47,
10,
33,
81,
188,
899,
14,
11,
734,
14,
16,
24,
12,
14,
11,
25,
147,
168,
410,
1426,
61,
33,
18,
23,
40,
10,
147,
81,
63,
238,
12,
39,
25,
16,
112,
24,
35,
416,
49,
140,
11,
13,
180,
67,
13,
76,
27,
10,
164,
14,
33,
16,
38,
348,
105,
67,
158,
13,
21,
21,
34,
10,
31,
35,
29,
11,
16,
20,
17,
16,
101,
27,
10,
11,
72,
85,
12,
48,
14,
12,
17,
11,
655,
33,
33,
33,
53,
11,
295,
31,
33,
114,
20,
142,
10,
221,
12,
39,
12,
43,
10,
302,
15,
2252,
209,
41,
13,
16,
39,
21,
158,
12,
22,
12,
36,
20,
23,
11,
71,
93,
15,
477,
16,
1638,
17,
13,
87,
51,
35,
315,
61,
338,
10,
90,
15,
29,
13,
27,
49,
29,
68,
21,
22,
44,
10,
43,
18,
45,
11,
50,
41,
18,
18,
14,
13,
12,
32,
212,
173,
12,
138,
735,
12,
30,
4528,
39,
10,
32,
33,
49,
11,
14,
10,
42,
37,
52,
620,
27,
34,
23,
11,
33,
63,
23,
22,
103,
1882,
15,
26,
16,
29,
15,
16,
16,
192,
60,
38,
21,
36,
52,
66,
34,
16,
10,
12,
20,
14,
36,
29,
44,
144,
1345,
19,
213,
146,
82,
14,
363,
155,
16,
27,
11,
32,
28,
110,
16,
23,
77,
16,
23,
57,
17,
23,
14,
224,
115,
14,
68,
15,
37,
192,
29,
10,
1989,
132,
192,
73,
29,
94,
19,
23,
936,
76,
11,
26,
12,
38,
15,
107,
10,
10,
21,
11,
18,
24,
132,
16,
37,
49,
176,
83,
24,
10,
412,
12,
12,
10,
13,
14,
707,
15,
147,
13,
19,
574,
12,
50,
46,
305,
81,
55,
26,
26,
17,
34,
10,
100,
15,
25,
14,
19,
17,
15,
13,
45,
14,
95,
250,
10,
11,
111,
15,
17,
55,
98,
15,
32,
12,
10,
517,
53,
10,
10,
77,
168,
31,
14,
308,
25,
62,
11,
36,
209,
673,
10,
65,
29,
29,
36,
33,
116,
20,
22,
93,
104,
971,
241,
2344,
43,
11,
1244,
31,
13,
19,
155,
10,
204,
27,
63,
16,
41,
48,
115,
208,
16,
41,
17,
86,
11,
169,
24,
30,
13,
58,
10,
19,
10,
45,
10,
29,
12,
70,
12,
14,
39,
15,
607,
132,
20,
209,
14,
160,
22,
11,
407,
79,
23,
41,
19,
142,
13,
52,
64,
109,
48,
38,
191,
17,
2712,
10,
27,
21,
32,
11,
69,
10,
60,
58,
28,
16,
437,
22,
65,
67,
10,
21,
24,
28,
32,
50,
96,
20,
15,
46,
309,
12,
72,
107,
28,
14,
45,
51,
17,
20,
13,
11,
14,
109,
23,
37,
24,
918,
3769,
751,
15,
15,
10,
12,
42,
43,
10,
146,
236,
503,
2246,
387,
329,
118,
19,
29,
10,
1837,
12,
38,
233,
72,
19,
203,
10,
13,
10,
97,
169,
1008,
1199,
255,
846,
64,
50,
15,
10,
14,
704,
469,
15,
25,
11,
14,
11,
34,
377,
11,
13,
15,
652,
11,
51,
25,
11,
80,
17,
291,
35,
19,
20,
15,
73,
37,
10,
39,
20,
16,
22,
151,
71,
55,
12,
2772,
25,
358,
16,
97,
99,
16,
231,
13,
29,
93,
27,
34,
15,
118,
11,
506,
13,
13,
11,
39,
34,
12,
2175,
16,
11,
59,
687,
17,
12,
84,
10,
20,
14,
15,
26,
18,
52,
12,
14,
11,
20,
71,
36,
1267,
16,
40,
26,
11,
2893,
10,
1065,
15,
26,
20,
23,
1393,
11,
57,
14,
30,
4082,
927,
230,
452,
881,
18,
10,
158,
32,
64,
57,
55,
428,
72,
35,
24,
69,
84,
19,
10547,
88,
90,
69,
47,
39,
39,
123,
3007,
2949,
11,
119,
32,
14,
56,
40,
11,
11,
21,
47,
12,
57,
179,
10,
115,
21,
14,
16,
14,
49,
59,
146,
10,
132,
115,
25,
52,
179,
99,
29,
32,
11,
24,
27,
11,
14,
470,
46,
26,
14,
76,
48,
28,
3448,
12,
53,
73,
21,
3210,
347,
12,
151,
14,
65,
129,
13,
17,
36,
35,
88,
2138,
1112,
962,
105,
12,
177,
11,
16,
18,
11,
11,
10,
36,
23,
65,
94,
24,
43,
18,
44,
50,
441,
16,
18,
174,
1141,
15,
420,
31,
73,
36,
14,
127,
37,
34,
26,
174,
38,
37,
173,
743,
19,
31,
21,
1199,
60,
34,
87,
17,
33,
22,
64,
2146,
25,
174,
28,
127,
28,
30,
85,
232,
24,
19,
183,
638,
17,
19,
104,
18,
11,
24,
15,
29,
30,
21,
172,
2192,
13,
263,
30,
10,
1237,
17,
48,
11,
17,
54,
33,
12,
9656,
13,
33,
125,
5971,
293,
720,
56,
151,
17,
50,
10,
22,
14,
10,
26,
11,
375,
42,
12,
26,
1780,
528,
25,
50,
347,
31,
22,
53,
14,
61,
182,
14,
59,
716,
11,
18,
16,
17,
37,
18,
90,
680,
10,
185,
44,
23,
15,
34,
23,
10,
27,
42,
18,
10,
10,
10,
11,
11,
39,
51,
14,
185,
153,
22,
19,
159,
34,
73,
19,
70,
67,
13,
10,
316,
17,
4303,
424,
24,
85,
19,
1028,
145,
14,
41,
11,
18,
633,
82,
36,
11,
10,
180,
17,
11,
11,
275,
380,
17,
290,
330,
10,
24,
21,
127,
79,
16,
66,
11,
14,
50,
15,
28,
59,
17,
119,
497,
23,
10,
46,
18,
249,
21,
115,
151,
103,
11,
10,
46,
10,
35,
14,
10,
15,
10,
12,
30,
42,
354,
22,
10,
46,
13,
265,
69,
14,
20,
15,
21,
59,
11,
14,
11,
114,
27,
22,
335,
16,
39,
37,
27,
31,
14,
58,
22,
27,
15,
23,
33,
74,
15,
11,
212,
138,
122,
11,
32,
208,
135,
24,
100,
191,
125,
11,
280,
42,
58,
107,
20,
20,
10,
33,
36,
41,
16,
23,
25,
54,
11,
80,
20,
26,
16,
10,
10,
12,
246,
45,
10,
530,
15,
10,
10,
117,
52,
26,
69,
89,
10,
10,
16,
35,
50,
13,
22,
38,
12,
11,
41,
213,
107,
30,
19,
18,
121,
39,
15,
12,
13,
27,
19,
65,
57,
13,
16,
85,
29,
118,
72,
835,
14,
26,
38,
180,
114,
20,
18,
53,
649,
57,
20,
11,
31,
90,
13,
12,
75,
100,
10,
24,
25,
11,
105,
17,
12,
745,
5856,
49,
19,
32,
106,
1578,
608,
30,
10,
12,
15,
11,
23,
21,
63,
46,
173,
59,
28,
152,
110,
31,
87,
422,
224,
66,
41,
11,
13,
15,
10,
10,
268,
53,
57,
14,
15,
13,
11,
12,
15,
19,
233,
65,
79,
49,
21,
10,
50,
2116,
11,
13,
39,
17,
16,
50,
10,
10,
28,
11,
94,
324,
10,
105,
31,
13,
80,
18,
23,
828,
69,
14,
11,
40,
76,
22,
14,
160,
16,
11,
518,
51,
33,
17,
21,
22,
255,
19,
15,
16,
382,
148,
10,
66,
116,
34,
166,
10,
16,
511,
40,
135,
30,
13,
136,
24,
11,
16,
22,
135,
132,
158,
65,
108,
381,
13,
62,
17,
11,
29,
47,
45,
22,
218,
70,
22,
17,
84,
28,
27,
13,
20,
13,
3352,
183,
12,
386,
18,
37,
1794,
18,
129,
79,
1521,
15,
19,
22,
41,
11,
72,
31,
34,
16,
13,
21,
13,
14,
72,
17,
11,
40,
58,
63,
72,
494,
65,
133,
13,
23,
13,
672,
92,
14,
20,
19,
13,
12,
11,
14,
22,
24,
273,
17,
16,
83,
60,
27,
10,
10,
175,
20,
15,
27,
38,
125,
48,
37,
13,
33,
84,
24,
219,
112,
686,
590,
40,
129,
38,
10,
131,
10,
11,
450,
30,
60,
75,
20,
29,
135,
45,
82,
10,
197,
76,
55,
52,
153,
19,
193,
314,
12,
46,
25,
14,
16,
3554,
23,
33,
11,
27,
18,
39,
52,
10,
78,
23,
18,
14,
12,
16,
15,
25,
58,
27,
172,
28,
21,
5242,
131,
39,
12,
16,
465,
94,
13,
85,
139,
40,
3801,
37,
10,
1247,
45,
44,
38,
71,
115,
45,
11,
11,
39,
48,
71,
87,
202,
30,
122,
15,
129,
259,
36,
53,
12,
10,
34,
33,
47,
22,
13,
70,
15,
1535,
95,
13,
11,
56,
130,
15,
15,
17,
74,
106,
17,
14,
10,
74,
12,
83,
163,
67,
14,
14,
87,
15,
146,
132,
15,
11,
18,
11,
17,
86,
15,
15,
14,
428,
21,
26,
12,
34,
10,
62,
18,
29,
11,
17,
77,
22,
2364,
640,
83,
23,
19,
33,
249,
75,
89,
30,
195,
26,
13,
19,
12,
38,
61,
12,
251,
20,
875,
882,
14,
3448,
26,
20,
15,
37,
39,
185,
25,
16,
46,
59,
11,
10,
181,
52,
25,
77,
32,
34,
197,
319,
26,
329,
12,
34,
25,
44,
21,
40,
12,
10,
16,
17,
240,
44,
24,
60,
33,
55,
370,
496,
32,
10,
31,
12,
15,
60,
1787,
10,
64,
132,
545,
10,
244,
12,
36,
10,
11,
62,
12,
34,
18,
33,
12,
11,
10,
16,
2737,
47,
59,
10,
36,
18,
11,
32,
203,
34,
554,
143,
117,
45,
79,
89,
17,
14,
16,
13,
72,
15,
43,
63,
326,
59,
99,
17,
11,
16,
42,
85,
41,
46,
10,
21,
20,
11,
16,
66,
30,
25,
72,
41,
26,
69,
22,
28,
19,
782,
58,
18,
27,
27,
61,
631,
12,
131,
45,
10,
558,
31,
27,
24,
22,
11,
74,
45,
146,
111,
129,
572,
55,
22,
157,
183,
20,
22,
14,
81,
62,
47,
12,
39,
59,
70,
157,
11,
14,
10,
67,
60,
46,
78,
27,
19,
1410,
161,
11,
34,
10,
11,
58,
22,
16,
62,
16,
40,
34,
10,
90,
10,
127,
13,
54,
261,
81,
12,
91,
123,
10,
48,
27,
12,
66,
20,
31,
12,
60,
65,
27,
36,
104,
41,
177,
54,
44,
30,
14,
70,
136,
15,
144,
36,
141,
214,
72,
28,
12,
18,
14,
65,
157,
85,
11,
70,
74,
91,
14,
79,
21,
18,
22,
19,
97,
14,
52,
13,
18,
77,
10,
649,
10,
48,
61,
10,
11,
10,
69,
29,
18,
25,
176,
216,
2699,
13,
326,
87,
63,
233,
10,
100,
22,
19,
32,
109,
19,
1169,
24,
17,
56,
134,
166,
57,
100,
203,
37,
26,
49,
33,
394,
63,
10,
49,
15,
26,
22,
250,
25,
19,
14,
49,
48,
74,
84,
35,
16,
11,
41,
18,
11,
88,
73,
23,
16,
10,
20,
12,
54,
18,
680,
11,
24,
20,
42,
13,
11,
186,
142,
22,
15,
73,
18,
259,
2652,
15,
19,
27,
36,
198,
16,
15,
850,
16,
28,
37,
10,
16,
12,
88,
116,
13,
30,
176,
21,
74,
10,
38,
23,
52,
21,
18,
10,
11,
603,
12,
19,
10,
89,
52,
43,
20,
20,
221,
12,
88,
11,
72,
20,
64,
289,
44,
96,
68,
180,
11,
28,
12,
12,
30,
14,
26,
10,
21,
12,
69,
26,
18,
55,
33,
390,
27,
89,
66,
62,
10,
360,
10,
56,
19,
157,
127,
4440,
31,
16,
16,
66,
21,
10,
18,
108,
534,
18,
144,
97,
113,
12,
48,
21,
319,
14,
10,
12,
21,
868,
22,
53,
51,
17,
10,
10,
293,
118,
110,
77,
64,
25,
301,
18,
202,
42,
15,
29,
55,
96,
16,
13,
20,
14,
294,
28,
10,
18,
11,
40,
90,
151,
45,
131,
13,
27,
137,
50,
182,
361,
76,
12,
229,
29,
29,
57,
14,
34,
73,
102,
10,
61,
59,
16,
690,
69,
187,
15,
10,
32,
103,
236,
176,
22,
11,
22,
10,
13,
130,
54,
72,
12,
10,
22,
28,
264,
14,
10,
36,
33,
31,
14,
50,
36,
11,
17,
24,
617,
47,
18,
425,
70,
18,
40,
72,
10,
21,
23,
101,
68,
14,
373,
288,
17,
16,
52,
117,
12,
11,
13,
16,
23,
33,
21,
21,
34,
175,
358,
29,
15,
44,
18,
159,
83,
79,
38,
154,
17,
664,
55,
418,
22,
26,
11,
79,
53,
428,
51,
33,
14,
12,
210,
11,
30,
34,
23,
21,
2299,
51,
36,
56,
30,
10,
10,
11,
57,
12,
10,
15,
28,
733,
69,
36,
40,
51,
60,
14,
10,
17,
71,
32,
24,
11,
11,
35,
1970,
20,
33,
52,
86,
18,
32,
27,
17,
80,
111,
18,
57,
20,
13,
41,
20,
292,
17,
807,
19,
14,
405,
326,
2048,
149,
62,
37,
50,
10,
11,
11,
24,
29,
33,
13,
22,
15,
61,
11,
25,
30,
15,
13,
64,
68,
43,
29,
36,
27,
20,
15,
22,
17,
25,
15,
12,
239,
40,
13,
13,
18,
51,
25,
11,
24,
13,
56,
18,
43,
196,
23,
31,
11,
18,
98,
59,
23,
12,
38,
10,
10,
10,
3963,
10,
84,
138,
26,
17,
16,
14,
11,
21,
14,
39,
133,
54,
32,
155,
24,
72,
16,
13,
16,
12,
271,
42,
18,
10,
57,
35,
120,
93,
44,
25,
39,
11,
88,
97,
22,
59,
26,
19,
22,
18,
12,
53,
30,
57,
13,
148,
50,
41,
11,
53,
90,
157,
33,
225,
44,
36,
112,
74,
11,
183,
48,
32,
556,
2501,
101,
17,
32,
13,
41,
40,
12,
23,
524,
91,
685,
11,
93,
414,
12,
10,
22,
103,
17,
29,
16,
65,
10,
69,
63,
100,
47,
73,
62,
31,
11,
63,
10,
29,
10,
22,
15,
19,
38,
103,
26,
38,
10,
110,
36,
10,
13,
20,
10,
3021,
10,
29,
14,
7057,
15,
21,
60,
31,
708,
12,
55,
88,
14,
81,
12,
64,
677,
117,
10,
19,
21,
65,
111,
39,
17,
1176,
153,
15,
16,
13,
62,
404,
33,
87,
50,
37,
11,
67,
90,
146,
1342,
432,
1272,
126,
16,
109,
21,
22,
134,
23,
16,
25,
13,
29,
60,
10,
140,
22,
304,
10,
14,
64,
27,
16,
100,
84,
10,
29,
10,
522,
24,
34,
14,
419,
503,
50,
46,
786,
14,
318,
608,
86,
40,
19,
14,
47,
20,
112,
11,
791,
30,
61,
11,
11,
12,
10,
11,
26,
68,
10,
31,
42,
77,
465,
55,
50,
162,
20,
67,
90,
80,
262,
24,
11,
63,
189,
26,
13,
14,
141,
11,
14,
152,
166,
15,
65,
12,
263,
426,
42,
10,
44,
107,
17,
21,
278,
87,
12,
42,
243,
89,
35,
115,
10,
150,
20,
12,
266,
19,
11,
134,
22,
14,
2601,
85,
10,
60,
200,
88,
20,
10,
58,
17,
19,
42,
119,
13,
22,
54,
58,
29,
13,
62,
381,
19,
10,
10,
524,
19,
14,
147,
12,
112,
11,
56,
588,
11,
10,
3018,
16,
27,
17,
10,
86,
256,
28,
137,
35,
264,
162,
45,
578,
46,
59,
14,
576,
102,
60,
21,
44,
215,
12,
14,
61,
39,
119,
186,
895,
14,
98,
63,
93,
122,
81,
1241,
11,
277,
88,
215,
33,
13,
32,
15,
74,
44,
71,
123,
52,
13,
10,
11,
10,
36,
83,
142,
12,
23,
11,
57,
16,
443,
13,
15,
12,
36,
31,
10,
64,
105,
18,
254,
156,
22,
22,
30,
16,
11,
664,
949,
56,
21,
30,
176,
15,
609,
21,
240,
31,
31,
210,
30,
24,
17,
56,
10,
72,
57,
46,
139,
24,
20,
15,
25,
8428,
71,
264,
33,
55,
19,
14,
13,
15,
93,
15,
68,
28,
25,
35,
40,
114,
14,
118,
59,
127,
593,
295,
33,
17,
22,
12,
53,
42,
231,
1043,
13,
13,
25,
10,
13,
11,
43,
18,
936,
20,
231,
13,
15,
37,
73,
16,
13,
2880,
14,
11,
14,
12,
18,
86,
11,
126,
316,
31,
12,
12,
24,
405,
11,
13,
13,
13,
46,
87,
25,
10,
98,
90,
31,
11,
17,
11,
11,
21,
36,
11,
37,
17,
33,
17,
51,
21,
12,
11,
79,
25,
11,
25,
17,
18,
1406,
29,
29,
54,
28,
20,
112,
49,
49,
20,
134,
24,
56,
39,
642,
70,
54,
10,
13,
11,
17,
2196,
126,
16,
28,
15,
67,
20,
64,
11,
18,
10,
58,
28,
39,
145,
128,
284,
52,
187,
10,
155,
66,
11,
125,
13,
136,
349,
43,
6352,
191,
46,
47,
165,
48,
30,
64,
31,
12,
11,
382,
102,
22703,
119,
23,
245,
36,
15,
121,
10,
514,
57,
12,
15,
82,
14,
10,
13,
85,
10,
56,
46,
59,
669,
14,
25,
121,
29,
11,
20,
10,
116,
16,
287,
32,
11,
16,
338,
10,
27,
442,
18,
118,
17,
13,
10,
45,
282,
31,
13,
28,
50,
89,
13,
54,
15,
132,
23,
11,
213,
10,
176,
18,
55,
188,
16,
135,
60,
10,
10,
11,
18,
14,
12,
139,
72,
36,
150,
39,
15,
32,
19,
12,
31,
829,
16,
43,
34,
1203,
18,
10,
23,
14,
566,
12,
25,
14,
93,
11,
12,
223,
28,
12,
357,
324,
53,
72,
107,
16,
191,
21,
12,
130,
43,
24,
11,
11,
12,
20,
45,
17,
22,
86,
11,
10,
12,
12,
12,
16,
10,
24,
24,
15,
51,
45,
121,
196,
14,
43,
68,
18,
11,
10,
2666,
145,
523,
27,
12,
17,
165,
33,
1194,
10,
25,
64,
31,
90,
36,
518,
64,
12,
20,
23,
20,
73,
13,
11,
81,
2198,
415,
125,
141,
72,
61,
433,
91,
1977,
53,
79,
38,
10,
10,
280,
102,
70,
30,
15,
29,
12,
102,
10,
17,
15,
16,
30,
13,
32,
125,
10,
17,
336,
633,
443,
9394,
28,
58,
181,
45,
100,
157,
24,
22,
16,
26,
26,
47,
329,
72,
30,
32,
10,
10,
18,
192,
14,
14,
26,
599,
12,
14,
1363,
93,
4760,
21,
140,
151,
349,
43,
33,
39,
93,
45,
10,
42,
693,
25,
127,
17,
14,
37,
24,
59,
45,
117,
13,
15,
73,
129,
17,
12,
882,
17,
11,
387,
17,
38,
854,
123,
139,
485,
16,
25,
85,
54,
41,
100,
41,
73,
59,
163,
19,
42,
84,
28,
13,
29,
413,
11,
25,
87,
156,
17,
15,
19,
11,
103,
171,
45,
52,
473,
23,
35,
20,
11,
29,
25,
14,
64,
97,
299,
45,
110,
15,
12,
23,
13,
74,
86,
25,
29,
43,
25,
10,
73,
10,
56,
41,
124,
92,
239,
88,
289,
20,
126,
13,
18,
18,
25,
37,
593,
82,
32,
72,
11,
20,
204,
60,
10,
257,
28,
12,
24,
30,
30,
19,
567,
57,
133,
29,
3143,
17,
22,
134,
32,
30,
16,
18,
14,
23,
20,
70,
29,
15,
2563,
50,
26,
170,
19,
13,
29,
73,
35,
31,
22,
363,
13,
204,
15,
107,
10,
10,
59,
26,
37,
10,
12,
15,
510,
24,
14,
257,
16,
22,
14,
113,
12,
16,
13,
31,
13,
4053,
1562,
25,
14,
16,
55,
96,
47,
100,
136,
10,
1563,
69,
22,
103,
11,
37,
13,
13,
1484,
33,
13,
67,
102,
63,
178,
116,
24,
37,
22,
91,
17,
10,
46,
133,
23,
11,
32,
121,
2290,
62,
41,
11,
22,
11,
23,
27,
260,
26,
12,
39,
75,
42,
18,
12,
55,
25,
54,
23,
31,
35,
36,
22,
15,
656,
14,
112,
16,
14,
27,
16,
42,
2472,
53,
65,
12,
31,
71,
423,
22,
19,
30,
42,
17,
15,
29,
77,
70,
78,
79,
21,
11,
14,
13,
10,
18,
18,
19,
704,
10,
147,
16,
12,
79,
12,
272,
31,
20,
105,
33,
14,
12,
10,
18,
37,
13,
18,
12,
199,
11,
17,
39,
13,
100,
21,
14,
20,
93,
22,
397,
18,
142,
13,
19,
1099,
21,
18,
12,
13,
25,
20,
186,
80,
10,
157,
15,
42,
43,
200,
45,
32,
33,
27,
48,
50,
28,
15,
401,
10,
16,
10,
230,
20,
29,
74,
12,
118,
54,
163,
59,
58,
21,
458,
26,
66,
14,
15,
219,
17,
15,
75,
17,
17,
230,
76,
174,
170,
214,
245,
11,
70,
90,
34,
23,
192,
55,
7702,
428,
435,
50,
25,
6962,
33,
29,
142,
71,
145,
23,
13,
25,
36,
10,
81,
90,
11,
67,
241,
240,
71,
32,
15,
46,
65,
65,
87,
26,
1096,
14,
12,
16,
15,
13,
39,
12,
10,
52,
171,
10,
15,
42,
58,
12,
106,
19,
15,
14,
224,
33,
10,
31,
104,
162,
52,
72,
75,
92,
133,
52,
12,
38,
81,
11,
42,
12,
225,
147,
12,
676,
16,
1559,
285,
159,
131,
12,
148,
18,
27,
12,
52,
29,
656,
25,
22,
23,
117,
24,
221,
580,
17,
10,
75,
14,
10,
10,
43,
33,
11,
32,
10,
76,
46,
10,
11,
133,
8923,
51,
581,
97,
11,
101,
106,
251,
11,
23,
43,
37,
17,
79,
20,
30,
374,
29,
171,
10,
25,
327,
11,
64,
60,
27,
124,
304,
54,
17,
25,
51,
14,
10,
120,
36,
558,
20,
16,
21,
20,
89,
434,
63,
11,
62,
23,
316,
24,
57,
20,
10,
29,
42,
10,
20,
12,
42,
41,
1406,
10,
121,
51,
18,
232,
337,
361,
116,
93,
97,
14,
31,
17,
1579,
32,
10,
6947,
82,
56,
13,
48,
27,
19,
11,
98,
13,
13,
222,
78,
86,
14,
42,
10,
22,
301,
31,
1786,
127,
38,
12,
10454,
112,
66,
42,
27,
49,
92,
25,
11,
11,
19,
10,
12,
160,
447,
207,
138,
23,
27,
15,
56,
23,
73,
91,
16,
11,
228,
328,
11,
97,
16,
13,
12,
10,
69,
10,
66,
30,
23,
71,
12,
16,
76,
58,
435,
12,
47,
339,
11,
21,
40,
15,
53,
49,
48,
20,
19,
39,
21,
27,
45,
19,
15,
34,
16,
32,
36,
57,
266,
61,
5474,
82,
17,
45,
135,
98,
30,
26,
22,
13,
12,
157,
98,
200,
12,
209,
10,
1785,
45,
225,
10,
59,
18,
19,
11,
70,
23,
15,
141,
11,
13,
13,
34,
31,
162,
68,
202,
445,
35,
50,
19,
12,
10,
56,
48,
968,
18,
56,
54,
41,
51,
75,
20,
26,
100,
88,
10,
23,
256,
28,
19,
76,
453,
137,
53,
58,
16,
12,
16,
37,
15,
351,
277,
18,
76,
1028,
385,
13,
45,
48,
11,
14,
22,
37,
57,
11,
39,
13,
38,
18,
196,
30,
11,
21,
80,
66,
71,
22,
220,
42,
28,
20,
20,
11,
130,
434,
55,
11,
130,
20,
18,
21,
1335,
34,
27,
44,
10,
416,
30,
23,
135,
14,
139,
10,
325,
37,
20,
852,
168,
29,
82,
91,
1098,
16,
333,
64,
584,
56,
41,
17,
35,
10,
8097,
29,
399,
24,
19,
11,
1334,
21,
1675,
65,
16,
91,
170,
21,
30,
145,
22,
10,
18,
173,
25,
151,
23,
26,
204,
20,
942,
10,
410,
338,
101,
1385,
15,
19,
26,
11,
56,
12,
20,
29,
12,
41,
68,
248,
37,
868,
77,
25,
50,
31,
432,
16,
12,
20,
13,
247,
33,
23,
19,
10,
26,
44,
11,
23,
513,
120,
53,
56,
12,
196,
14,
35,
16,
247,
23,
10,
72,
80,
46,
677,
13,
49,
30,
10,
45,
17,
13,
15,
25,
12,
41,
12,
39,
15,
13,
30,
121,
23,
15,
10,
43,
10,
60,
61,
10,
13,
11,
14,
60,
374,
64,
1649,
14,
65,
62,
10,
99,
23,
6376,
1438,
130,
112,
11,
12,
38,
66,
10,
13,
30,
44,
46,
20,
23,
66,
19,
60,
13,
11,
13,
12,
13,
28,
95,
114,
34,
73,
717,
25,
19,
10,
13,
66,
15,
33,
13,
78,
18,
250,
33,
11,
203,
17,
28,
39,
130,
12,
1045,
91,
81,
15,
12,
24,
30,
56,
15,
20,
30,
20,
100,
15,
13,
791,
19,
16,
12,
64,
65,
43,
41,
11,
78,
19,
101,
45,
72,
214,
15,
48,
25,
21,
13,
33,
26,
11,
146,
1041,
15,
224,
30,
973,
21,
38,
37,
10,
14,
13,
17,
14,
152,
34,
26,
1982,
125,
11,
19,
30,
23,
4903,
475,
24,
106,
13,
11,
118,
11,
110,
10,
323,
22,
39,
32,
809,
39,
26,
54,
42,
63,
40,
28,
36,
78,
419,
34,
338,
33,
32,
512,
76,
73,
10,
166,
187,
129,
39,
21,
25,
29,
20,
38,
48,
305,
17,
116,
15,
12,
84,
11,
11,
31,
12,
34,
10,
21,
22,
19,
42,
10,
11,
102,
11,
12,
14,
22,
17,
21,
107,
18,
703,
34,
58,
14,
11,
12,
26,
14,
91,
23,
23,
898,
11,
40,
162,
28,
59,
23,
28,
188,
14,
68,
11,
21,
110,
131,
69,
11,
97,
96,
13,
16,
25,
13,
10,
41,
321,
18,
1184,
93,
55,
40,
12,
1340,
499,
12,
317,
26,
18,
27,
221,
17,
14,
15,
10,
551,
14,
1863,
196,
10,
14,
26,
11,
14,
29,
13,
17,
25,
11,
118,
1405,
11,
26,
114,
14,
47,
19,
13,
215,
10,
16,
13,
13,
358,
14,
11,
29,
163,
46,
47,
20,
25,
111,
49,
15,
21,
10,
104,
12,
67,
208,
32,
72,
285,
12,
14,
55,
39,
910,
10,
40,
113,
10,
36,
21,
10,
1696,
16,
12,
14,
51,
33,
12,
12,
203,
39,
2762,
63,
58,
44,
22,
51,
14,
113,
71,
11,
109,
55,
10,
10,
12,
10,
36,
27,
139,
141,
25,
43,
38,
164,
62,
25,
116,
19,
36,
39,
25,
249,
46,
384,
44,
303,
11,
24,
15,
11,
72,
26,
185,
37,
22,
30,
56,
17,
48,
32,
32,
1019,
27,
161,
57,
29,
33,
38,
16,
11,
10,
89,
492,
66,
66,
16,
308,
88,
46,
12,
16,
82,
44,
12,
12,
80,
10,
11,
10,
21,
32,
36,
14,
85,
13,
77,
216,
13,
12,
19,
87,
1364,
28,
12,
38,
10,
30,
66,
39,
256,
143,
73,
11,
22,
10,
53,
82,
992,
18,
97,
33,
10,
49,
34,
104,
19,
238,
11,
15,
38,
36,
10,
344,
10,
59,
24,
11,
105,
62,
18,
12,
13,
16,
46,
1858,
31,
40,
12,
39,
13,
159,
33,
41,
218,
30,
24,
10,
59,
49,
116,
11,
30,
13,
18,
47,
161,
10,
24,
60,
243,
502,
49,
12,
10,
11,
16,
40,
28,
60,
7144,
210,
114,
60,
27,
141,
26,
57,
222,
28,
22,
24,
46,
76,
20,
24,
58,
23,
11,
25,
75,
19,
41,
10,
10,
42,
28,
11,
65,
114,
1519,
64,
350,
12,
11,
10,
43,
15,
30,
18,
117,
10,
18,
35,
26,
11,
98,
86,
39,
237,
168,
11,
680,
13,
25,
463,
105,
87,
177,
47,
17,
10,
81,
27,
19,
19,
235,
88,
65,
12,
26,
290,
67,
100,
29,
10,
16,
44,
18,
37,
769,
19,
193,
209,
14,
101,
52,
17,
35,
31,
50,
44,
57,
79,
10,
12,
1278,
19,
251,
11,
28,
26,
46,
161,
21,
72,
118,
70,
322,
41,
116,
13,
33,
10,
52,
502,
11,
13,
140,
16,
12,
10,
135,
321,
126,
10,
16,
19,
23,
36,
26,
15,
63,
12,
13,
43,
69,
13,
15,
13,
13,
11,
10,
40,
13,
14,
22,
10,
11,
11,
103,
161,
54,
161,
33,
165,
47,
72,
20,
22,
13,
67,
19,
788,
371,
42,
26,
33,
10,
20,
46,
86,
84,
29,
58,
114,
18,
17,
129,
70,
168,
17,
47,
11,
164,
70,
11,
34,
11,
28,
41,
10,
90,
12,
76,
23,
12,
15,
14,
26,
11,
34,
12,
16,
15,
13,
217,
1209,
23,
57,
19,
77,
87,
18,
12,
38,
545,
14,
46,
15,
10,
212,
673,
27,
19,
136,
42,
16,
87,
20,
14,
46,
11,
13,
20,
19,
37,
47,
20,
297,
10,
480,
48,
44,
10,
16,
122,
14,
576,
19,
15,
83,
11,
34,
42,
114,
24,
36,
45,
11,
123,
20,
69,
17,
13,
93,
10,
11,
25,
27,
55,
530,
64,
28,
12,
45,
42,
485,
44,
267,
10,
38,
23,
64,
11,
64,
24,
52,
216,
76,
12,
70,
14,
33,
29,
183,
246,
149,
23,
22,
43,
12,
10,
25,
47,
51,
31,
27,
364,
10,
30,
12,
20,
31,
18,
10,
27,
47,
11,
30,
74,
58,
3634,
134,
63,
13,
236,
41,
11,
517,
47,
12,
12,
16937,
7620,
351,
4206,
1569,
21,
3866,
247,
307,
47,
17268,
819,
116,
11,
13,
785,
10,
20,
144,
18,
20,
25,
118,
16,
12,
82,
12,
22,
64,
16,
112,
50,
389,
129,
40,
129,
86,
210,
11,
89,
31,
24,
60,
14,
15,
20,
16,
26,
21,
436,
879,
25,
59,
108,
32,
93,
48,
1381,
1503,
38,
1353,
24,
17,
69,
14,
17,
44,
13,
18,
11,
20,
73,
37,
15,
23,
46,
534,
12,
15,
50,
53,
16,
43,
70,
148,
18,
18,
93,
13,
92,
612,
1123,
12,
89,
14,
2023,
120,
33,
44,
12,
134,
83,
15,
7318,
95,
51,
133,
388,
21,
18,
42,
10,
19,
26,
13,
81,
15,
84,
12,
13,
40,
11,
17,
14,
42,
88,
22,
82,
79,
15,
27,
86,
12,
259,
46,
16,
24,
12,
91,
12,
27,
324,
25,
118,
463,
24,
19,
25,
1762,
12,
22,
17,
238,
19,
196,
38,
10,
11,
29,
18,
5910,
115,
272,
610,
29,
52,
172,
37,
3730,
23,
168,
10,
14,
10,
15,
44,
17,
21,
39,
13,
11,
52,
19,
11,
11,
17,
23,
64,
130,
50,
13,
44,
10,
406,
26,
31,
65,
10,
66,
11,
178,
162,
24,
48,
115,
14,
221,
1007,
208,
84,
2721,
247,
229,
357,
18,
132,
56,
51,
24,
13,
57,
53,
241,
25,
142,
34,
68,
20,
21,
39,
99,
20,
1378,
10,
369,
57,
72,
30,
80,
78,
13,
42,
10,
10,
18,
32,
33,
118,
17,
451,
496,
74,
1348,
1305,
20,
120,
15,
13,
496,
223,
12,
11,
78,
42,
14,
67,
60,
59,
17,
16,
45,
10,
255,
93,
36,
11,
287,
60,
2319,
257,
15,
14,
19,
22,
14,
73,
597,
153,
12,
221,
32,
334,
37,
16,
20,
31,
135,
81,
325,
16,
27,
91,
20,
30,
493,
13,
34,
436,
12,
71,
133,
14,
191,
19,
25,
10,
39,
10,
57,
50,
94,
30,
62,
15,
15,
12,
14,
17,
13,
33,
188,
23,
52,
119,
332,
10,
13,
19,
30,
11,
2233,
20,
10,
27,
23,
28,
28,
87,
53,
25,
22,
23,
47,
650,
42,
15,
20,
631,
63,
14,
23,
161,
190,
13,
580,
70,
22,
11,
10,
29,
51,
10,
107,
24,
13,
10,
28,
73,
12,
28,
528,
21,
11,
10,
15,
360,
17,
11,
32,
31,
73,
30,
66,
59,
28,
10,
625,
255,
19,
297,
11,
20,
73,
267,
374,
48,
523,
14,
69,
22,
61,
650,
30,
358,
53,
16,
16,
15,
27,
189,
35,
27,
304,
76,
15,
32,
317,
19,
15,
14,
50,
38,
387,
10,
79,
12,
54,
34,
118,
319,
10,
10,
47,
72,
24,
22,
48,
438,
18,
16,
19,
12,
25,
17,
49,
77,
196,
56,
279,
11,
22,
10,
196,
43,
46,
12,
18,
23,
34,
65,
207,
21,
76,
20,
18,
21,
21,
325,
46,
16,
10,
30,
217,
19,
249,
272,
30,
14,
10,
24,
114,
79,
32,
31,
175,
30,
11,
19,
15,
37,
660,
10,
22,
1078,
13,
19,
13,
90,
16,
149,
296,
217,
17,
15,
10,
17,
14,
142,
371,
19,
12,
77,
15,
76,
16,
30,
29,
25,
46,
70,
12,
33,
32,
16,
22,
879,
10,
12,
66,
29,
24,
36,
11,
33,
30,
22,
14,
337,
21,
12,
94,
124,
212,
987,
49,
29,
218,
10,
11,
18,
72,
91,
283,
11,
158,
19,
10,
48,
10,
17,
1385,
47,
15,
11,
192,
19,
12,
34,
28,
16,
72,
312,
38,
29,
21,
10,
10,
10,
24,
82,
12,
12,
10,
33,
10,
56,
11,
13,
142,
19,
95,
20,
14,
11,
19,
49,
511,
21,
33,
16,
26,
26,
16,
22,
585,
33,
120,
19,
67,
15,
24,
13,
26,
11,
83,
392,
10,
10,
17,
26,
10,
28,
32,
58,
98,
26,
12,
17,
14,
26,
113,
1729,
12,
11,
11,
13,
95,
10,
36,
20,
22,
19,
15,
1219,
142,
118,
59,
781,
164,
66,
15617,
295,
29,
12,
27,
314,
133,
13,
1976,
56,
160,
1035,
14,
214,
128,
16,
86,
20,
21,
90,
15,
349,
83,
60,
29,
137,
30,
16,
11,
45,
31,
21,
20,
12,
25,
13,
10,
147,
12,
15,
10,
47,
43,
117,
27,
59,
41,
40,
15,
123,
19,
23,
33,
16,
10,
59,
15,
19,
117,
295,
26,
16,
11,
11,
17,
10,
22,
343,
105,
2052,
34,
132,
23,
2667,
61,
238,
115,
14,
31,
60,
103,
184,
1954,
11,
28,
31,
45,
80,
14,
158,
119,
17,
29,
11,
19,
266,
105,
10,
58,
10,
10,
48,
13,
36,
27,
66,
21,
21,
12,
39,
101,
13,
19,
360,
517,
62,
11,
138,
77,
17,
10,
11,
72,
60,
10,
11,
207,
10,
11,
14,
86,
10,
65,
10,
16,
35,
30,
16,
12,
446,
62,
17,
41,
454,
15,
14,
30,
12,
31,
266,
17,
20,
58,
42,
17,
65,
10,
10,
11,
10,
10,
17,
517,
42,
16,
13,
64,
20,
43,
42,
28,
229,
95,
107,
16,
67,
41,
29,
110,
14,
11,
11,
76,
89,
12,
53,
17,
24,
43,
17,
20,
25,
215,
16,
16,
2110,
36,
53,
20,
13,
70,
41,
70,
30,
28,
818,
160,
13,
34,
20,
10,
64,
594,
21,
38,
26,
13,
13,
88,
13,
81,
52,
11,
13,
11,
29,
12,
12,
77,
12,
453,
26,
24,
15,
19,
11,
56,
10,
42,
266,
154,
13,
103,
103,
10,
27,
76,
13,
175,
68,
51,
15,
3989,
21,
58,
54,
112,
32,
93,
28,
89,
90,
10,
1196,
18,
69,
45,
86,
39,
121,
57,
24,
35,
37,
12,
17,
72,
17,
80,
18,
37,
57,
287,
16,
64,
32,
13,
91,
77,
244,
824,
34,
286,
26,
11,
15,
208,
16,
16,
37,
16,
10,
241,
210,
31,
14,
21,
132,
11,
14,
26,
151,
10,
90,
58,
20,
146,
87,
11,
17,
54,
39,
37,
863,
21,
82,
65,
10,
36,
13,
11,
24,
87,
22,
11,
17,
11,
29,
15,
71,
21,
11,
24,
10,
13,
21,
10,
10,
13,
18,
17,
46,
64,
120,
86,
46,
17,
11,
132,
66,
21,
20,
135,
21,
11,
182,
80,
15,
67,
12,
24,
30,
10,
26,
27,
133,
48,
11,
21,
45,
28,
22,
39,
22,
12,
39,
116,
42,
114,
26,
18,
25,
14,
16,
15,
16,
2438,
28,
36,
13,
17,
15,
22,
73,
68,
11,
47,
26,
12,
145,
159,
29,
81,
11,
92,
40,
34,
164,
48,
24,
87,
15,
68,
23,
22,
363,
28,
102,
45,
12,
14,
85,
20,
15,
27,
31,
24,
10,
11,
19,
223,
23,
10,
28,
20,
2094,
12,
3474,
15,
10,
164,
50,
40,
10,
12,
231,
13,
67,
19,
14,
41,
11,
27,
27,
30,
44,
23,
23,
11,
43,
42,
36,
25,
44,
14,
25,
17,
141,
129,
35,
103,
12,
121,
10,
32,
12,
21,
765,
16,
623,
586,
18,
37,
12,
168,
706,
102,
31,
142,
117,
43,
124,
10,
14,
16,
19,
18,
67,
16,
41,
41,
108,
45,
18,
16,
21,
13,
10,
116,
10,
302,
16,
1557,
36,
22,
45,
236,
27,
154,
232,
41,
28,
538,
13,
398,
46,
151,
64,
523,
39,
55,
29,
88,
19,
20,
11,
12,
150,
2342,
68,
41,
1905,
33,
28,
28,
32,
27,
663,
49,
41,
23,
24,
121,
22,
252,
12,
22,
29,
22,
12,
23,
16,
361,
15,
170,
2163,
319,
8233,
33167,
3874,
39,
10,
18,
155,
11,
75,
105,
33,
134,
15,
41,
18,
66,
16,
41,
37,
19,
28,
436,
1669,
12,
57,
15,
192,
149,
22,
245,
75,
11,
75,
32,
12,
22,
23,
14,
568,
19,
168,
44,
369,
30,
3090,
21,
25,
14,
10,
41,
10,
12,
57,
860,
32,
29,
19,
33,
11,
25,
12,
354,
80,
39,
134,
38,
41,
47,
258,
52,
76,
10,
26,
20,
106,
25,
10,
27,
75,
103,
29,
19,
11,
188,
13,
292,
11,
21,
10,
57,
24,
41,
43,
19,
37,
12,
20,
162,
49,
47,
1679,
12,
76,
10,
46,
34,
150,
48,
24,
22,
17,
19,
220,
46,
30,
27,
10,
66,
25,
32,
290,
47,
11,
103,
10,
13,
28,
22,
24,
68,
16,
10,
31,
10,
37,
746,
43,
11,
27,
27,
37,
67,
1980,
11,
12,
21,
12,
62,
49,
209,
29,
31,
237,
1371,
44,
14,
11,
13,
14,
18,
356,
30,
31,
72,
23,
11,
15,
14,
11,
13,
73,
49,
75,
13,
12,
37,
129,
541,
11,
21,
37,
65,
264,
250,
25,
14,
14,
49,
128,
18,
44,
91,
79,
26,
514,
13,
16,
12,
201,
17,
15,
129,
18,
16,
13,
11,
36,
2421,
113,
156,
12,
22,
58,
37,
19,
14,
15,
10,
127,
12,
50,
12,
93,
19,
53,
16,
19,
10,
38,
11,
29,
11,
29,
10,
50,
13,
72,
10,
11,
12,
79,
14,
147,
65,
21,
1062,
460,
12,
11,
832,
44,
41,
12,
35,
38,
32,
29,
74,
152,
29,
10,
42,
31,
14,
16,
13,
10,
50,
882,
19,
35,
90,
10,
68,
2096,
25,
21,
90,
112,
51,
185,
43,
15,
13,
421,
21,
392,
117,
44,
10,
22,
30,
237,
52,
20,
79,
10,
14,
79,
21,
36,
219,
80,
159,
107,
10,
194,
208,
12,
77,
38,
23,
52,
81,
21,
351,
54,
10,
18,
36,
37,
86,
152,
12,
10,
36,
14,
11,
117,
75,
520,
18,
19,
15,
13,
145,
236,
13,
23,
152,
55,
13,
79,
10,
42,
1178,
41,
13,
95,
33,
30,
10,
17,
11,
47,
13,
26,
14,
16,
11,
67,
74,
116,
11,
15,
28,
27,
54,
13,
38,
10,
10,
80,
68,
102,
196,
24,
535,
16,
82,
50,
21,
44,
39,
508,
64,
22,
10,
107,
334,
249,
36,
51,
113,
12,
20,
13,
26,
13,
121,
76,
22,
20,
14,
72,
25,
150,
543,
3380,
19,
39,
13,
77,
39,
110,
166,
26,
158,
12,
131,
15,
10,
29,
26,
16,
266,
11,
16,
19,
540,
23,
119,
21,
29,
295,
549,
21,
15,
414,
15,
2606,
159,
24,
18,
81,
10,
839,
18,
14,
10,
17,
67,
59,
26,
12,
13,
15,
20,
21,
12,
45,
72,
52,
13,
35,
29,
106,
114,
84,
103,
19,
10,
51,
17,
23,
119,
12,
40,
15,
14,
34,
15,
39,
219,
29,
26,
47,
168,
35,
142,
10,
11,
154,
12,
109,
1463,
56,
644,
14,
107,
14,
27,
15,
11,
13,
2341,
12,
12,
57,
225,
227,
237,
134,
40,
54,
13,
122,
3608,
66,
264,
75,
36,
56,
60,
21,
159,
21,
22,
45,
32,
16,
12,
38,
44,
28,
16,
17,
11,
37,
519,
139,
25,
12,
48,
27,
27,
13,
10,
11,
11,
37,
22,
29,
187,
1099,
19,
18,
11,
10,
761,
33,
57,
27,
72,
25,
68,
70,
43,
60,
12,
23,
1132,
915,
10,
79,
12,
94,
52,
21,
277,
13,
26,
13,
24,
209,
26,
31,
36,
164,
68,
14,
19,
17,
45,
10,
45,
232,
36,
13,
12,
71,
17,
26,
28,
16,
14,
26,
10,
12,
21,
14,
109,
13,
19,
127,
24,
141,
149,
10,
47,
31,
42,
29,
34,
15,
10,
2175,
22,
11,
27,
864,
12,
13,
43,
13,
16,
27,
25,
104,
86,
17,
78,
54,
30,
696,
57,
13,
1762,
27,
14,
42,
27,
11,
12,
11,
67,
30,
41,
96,
25,
96,
10,
16,
49,
34,
21,
193,
247,
77,
69,
31,
27,
23,
13,
1540,
15,
234,
28,
10,
10,
26,
45,
17,
30,
26,
31,
24,
29,
23,
14,
25,
10,
63,
207,
172,
18,
73,
23,
17,
661,
34,
16,
1157,
15,
10,
15,
31,
41,
20,
53,
11,
50,
14,
648,
20,
15,
35,
104,
16,
18,
55,
233,
87,
29,
10,
63,
10,
11,
27,
14,
187,
48,
43,
48,
318,
31,
46,
90,
11,
11,
10,
184,
90,
21,
23,
26,
18,
28,
31,
20,
37,
18,
12,
903,
14,
21,
12,
12,
16,
11,
13,
24,
14,
13,
10,
345,
13,
11,
15,
10,
19,
37,
11,
10,
16,
13,
10,
14,
27,
134,
18,
18,
12,
13,
15,
15,
19,
10,
12,
19,
14,
20,
14,
13,
30,
13,
16,
14,
10,
1356,
38,
111,
10,
15,
12,
103,
65,
13,
10,
319,
19,
140,
203,
15,
130,
11,
11,
56,
20,
16,
18,
11,
25,
15,
14,
10,
10,
13,
12,
10,
10,
20,
22,
25,
24,
18,
12,
10,
264,
11,
15,
19,
26,
22,
17,
18,
23,
15,
14,
18,
14,
44,
13,
10,
20,
20,
11,
12,
10,
10,
10,
10,
13,
13,
10,
12,
10,
15,
10,
13,
12,
12,
11,
10,
10,
12,
19,
17,
13,
48,
20,
48,
11,
18,
10,
14,
10,
12,
10,
12,
11,
13,
173,
17,
10,
12,
10,
90,
28,
52,
11,
14,
15,
16,
12,
10,
12,
11,
10,
10,
14,
28,
24,
11,
11,
10,
11,
11,
12,
10,
12,
38,
10,
13,
27,
22,
16,
15,
77,
24,
52,
179,
100,
36,
15,
31,
10,
14,
14,
11,
16,
16,
15,
24,
20,
14,
11,
19,
1453,
540,
22,
627,
19,
31,
389,
91,
238,
15,
13,
179,
590,
59,
336,
10,
93,
11,
163,
396,
58,
61,
11,
22,
64,
125,
49,
10,
129,
24,
18,
53,
39,
122,
30,
746,
67,
25,
3814,
20,
29,
51,
1626,
27,
16,
408,
10,
16,
2225,
23,
14,
3300,
135,
10,
167,
16,
72,
40,
865,
59,
14,
11,
13,
31,
24,
933,
403,
44,
26,
2360,
123,
31,
91,
36,
21,
18,
23,
31,
104,
47,
18,
38,
44,
103,
26,
32,
10,
40,
47,
12,
17,
18,
11,
74,
22,
42,
45,
219,
12,
111,
14,
27,
10,
336,
101,
106,
23,
53,
23,
16,
202,
10,
10,
77,
10,
226,
30,
12,
275,
334,
10,
28,
27,
62,
55,
41,
47,
14,
25,
61,
10,
313,
2193,
59,
84,
12,
13,
17,
24,
10,
25,
84,
92,
25,
26,
160,
70,
207,
12,
10,
12,
45,
16,
11,
28,
19,
20,
26,
14,
18,
55,
10,
153,
10,
2014,
1304,
32,
37,
12,
17,
32,
30,
58,
13,
10,
11,
14,
103,
589,
11,
685,
19,
31,
12,
473,
31,
22,
186,
50,
168,
17,
64,
202,
1790,
14,
70,
16,
360,
26,
12,
10,
25,
11,
14,
58,
72,
78,
22,
34,
59,
142,
33,
12,
12,
23,
46,
25,
10,
48,
88,
330,
59,
16,
38,
15,
17,
146,
40,
36,
13,
13,
11,
10,
10,
45,
26,
96,
75,
18,
12,
115,
415,
15,
55,
66,
230,
11,
11,
30,
86,
10,
32,
46,
15,
11,
1028,
33,
34,
31,
158,
62,
15,
18,
18,
12,
29,
15,
25,
17,
31,
11,
15,
27,
96,
120,
45,
13,
27,
22,
14,
15,
826,
56,
62,
13,
63,
83,
14,
54,
20,
74,
13,
19,
19,
118,
770,
20,
14,
862,
24,
12,
33,
18,
37,
25,
39,
12,
19,
833,
187,
14,
163,
70,
111,
26,
55,
22,
14,
23,
112,
25,
12,
213,
10,
76,
45,
12,
89,
157,
12,
27,
156,
133,
12,
10,
77,
13,
13,
10,
12,
23,
11,
14,
44,
2256,
10,
15,
26,
17,
37,
32,
28,
59,
26,
39,
11,
49,
20,
21,
40,
22,
28,
93,
76,
10,
52,
37,
14,
51,
12,
38,
124,
170,
7153,
12,
15,
14,
45,
30,
36,
23,
10219,
46,
12,
33,
26,
16,
10,
1249,
28,
136,
160,
1671,
13,
28,
23,
78,
233,
557,
11,
69,
29,
13,
655,
12,
390,
315,
10,
37,
34,
15,
1065,
93,
70,
37,
395,
34,
301,
91,
13,
54,
18,
136,
22,
205,
50,
12,
803,
107,
46,
94,
11,
58,
38,
14,
15,
11,
47,
21,
155,
78,
62,
14,
80,
32,
19,
22,
28,
26,
210,
91,
10,
11,
65,
64,
46,
13,
110,
14,
393,
2506,
44,
236,
2208,
13,
38,
14,
89,
58,
11,
385,
10,
3333,
15,
48,
83,
34,
79,
59,
34,
298,
32,
124,
18,
60,
29,
37,
35,
15,
41,
129,
38,
50,
27,
10,
25,
75,
10,
16,
38,
52,
75,
60,
22,
92,
102,
13,
177,
89,
60,
20,
742,
59,
76,
10,
10,
266,
63,
10,
12,
18,
11,
36,
14,
14,
574,
10,
586,
20,
13,
218,
31,
57,
12,
56,
150,
117,
136,
15,
10,
20,
273,
20,
10,
35,
19,
177,
10,
17,
533,
10,
32,
91,
26,
93,
45,
25,
970,
24,
11,
10,
24,
31,
11,
119,
5083,
18,
15,
14,
13,
136,
49,
60,
2866,
18,
10,
16,
24,
11,
26,
13,
529,
99,
64,
28,
65,
12,
1601,
15,
258,
65,
283,
722,
87,
29,
12,
75,
113,
17,
236,
66,
158,
14,
40,
72,
760,
35,
148,
81,
16,
18,
757,
52,
40,
20,
92,
26,
21,
10,
13,
32,
47,
46,
15,
10,
24,
11,
84,
14,
14,
31,
26,
258,
30,
34,
30,
11,
56,
36,
146,
140,
1232,
353,
65,
97,
1246,
15,
138,
280,
36,
45,
38,
11,
49,
69,
172,
10,
32,
10,
12,
13,
11,
25,
27,
11,
31,
43,
34,
66,
22,
24,
37,
169,
59,
14,
14,
162,
35,
96,
90,
12,
13,
38,
31,
10,
57,
23,
22,
185,
20,
99,
43,
651,
10,
34,
43,
14,
43,
25,
10,
14,
26,
50,
12,
30,
27,
17,
13,
250,
260,
15,
46,
41,
280,
156,
49,
335,
17,
11,
86,
509,
15,
34,
10,
10,
26,
12,
1616,
87,
20,
22,
542,
12,
14,
1216,
180,
2832,
13,
17,
159,
18,
79,
42,
662,
23,
12,
10,
29,
31,
21,
75,
13,
13,
44,
10,
16,
17,
56,
30,
37,
11,
287,
439,
56,
81,
131,
12,
21,
10,
11,
211,
22,
41,
33,
89,
247,
15,
77,
31,
13,
26,
29,
63,
26,
230,
30,
176,
45,
26,
36,
44,
41,
80,
25,
76,
12,
20,
33,
31,
23,
40,
69,
17,
15,
44,
59,
14,
145,
667,
39,
47,
46,
10,
11,
18,
53,
140,
61,
32,
862,
26,
26,
40,
11,
14,
49,
77,
10,
21,
19,
114,
142,
483,
10,
43,
20,
23,
29,
10,
174,
28,
12,
511,
155,
11,
93,
14,
10,
63,
15,
179,
12,
21,
76,
749,
31,
262,
11,
116,
184,
19,
23,
321,
13,
12,
13,
144,
44,
150,
1429,
105,
30,
15,
142,
240,
167,
13,
19,
26,
10,
10,
12,
24,
1960,
1204,
22,
18,
13,
78,
20,
18,
126,
77,
32,
92,
91,
79,
30,
10,
13,
30,
49,
13,
30,
67,
18,
79,
16,
28,
27,
25,
31,
24,
74,
45,
13,
19,
12,
180,
30,
64,
12,
29,
10,
26,
1197,
18,
14,
10,
45,
85,
182,
253,
50,
142,
17,
93,
1972,
11,
31,
13,
11,
13,
14,
29,
35,
193,
14,
25,
32,
94,
180,
70,
21,
116,
18,
65,
12,
40,
35,
86,
198,
28,
11,
11,
143,
47,
10,
66,
78,
111,
1229,
1044,
70,
51,
123,
86,
14,
51,
1108,
381,
151,
862,
38,
35,
105,
23,
19,
14,
44,
29,
10,
19,
378,
41,
27,
10,
23,
12,
156,
32,
34,
289,
52,
34,
22,
27,
118,
27,
164,
37,
52,
29,
164,
17,
120,
12,
55,
11,
35,
25,
67,
11,
14,
107,
11,
12,
21,
22,
14,
107,
63,
398,
31,
29,
2044,
57,
27,
422,
22,
74,
26,
6835,
79,
13,
34,
10,
15,
24,
14,
38,
175,
40,
14,
10,
50,
35,
98,
22,
145,
30,
12,
20,
99,
11,
37,
195,
10,
54,
52,
242,
28,
18,
76,
68,
75,
16,
13,
12,
25,
35,
10,
62,
22,
25,
21,
57,
10,
16,
11,
34,
13,
17,
18,
15,
74,
15,
14,
11,
40,
329,
11,
28,
11,
14,
13,
18,
10,
18,
23,
30,
24,
13,
116,
14,
47,
286,
26,
33,
38,
12,
35,
26,
13,
36,
2222,
85,
74,
13,
302,
48,
157,
64,
13,
10,
16,
13,
22,
81,
36,
91,
35,
33,
10,
15,
13,
74,
112,
16,
71,
33,
74,
21,
38,
71,
37,
61,
10,
13,
85,
19,
18,
76,
34,
98,
15,
34,
36,
47,
37,
31,
25,
19,
14,
20,
42,
45,
1046,
101,
40,
46,
14,
16,
36,
15,
12,
62,
109,
39,
46,
14,
25,
207,
32,
27,
11,
44,
1647,
325,
13,
18,
15,
12,
20,
28,
13,
19,
10,
11,
55,
27,
33,
114,
15,
23,
35,
16,
11,
245,
143,
64,
28,
11,
138,
16,
90,
11,
13,
12,
64,
22,
13,
358,
27,
13,
14,
112,
359,
109,
1844,
148,
55,
27,
68,
37,
41,
28,
11,
1888,
21,
18,
15,
27,
10,
17,
14,
11,
15,
134,
49,
21,
70,
19,
34,
12,
97,
11,
181,
20,
28,
13,
18,
113,
20,
55,
15,
23,
39,
17,
23,
251,
28,
81,
80,
12,
18,
74,
40,
52,
16,
579,
89,
38,
29,
1033,
66,
70,
54,
11,
243,
160,
68,
21,
19,
57,
13,
13,
73,
142,
42,
15,
10,
221,
10,
64,
13,
51,
10,
12,
31,
896,
48,
11,
93,
140,
27,
34,
124,
13,
93,
11,
13,
81,
23,
21,
37,
28,
11,
29,
96,
31,
32,
11,
14,
15,
107,
29,
20,
26,
16,
104,
13,
82,
177,
15,
17,
11,
12,
37,
14,
19,
173,
74,
36,
117,
16,
13,
298,
11,
16,
13,
140,
107,
13,
11,
21,
107,
685,
12,
13280,
28,
20,
18,
36,
13,
16,
67,
22,
10,
11,
20,
103,
16,
13,
93,
213,
11,
69,
18,
56,
12,
73,
57,
22,
37,
11,
13,
29,
27,
78,
341,
120,
63,
11,
3657,
61,
1653,
25,
13,
10,
12,
21,
41,
1301,
110,
89,
20,
154,
52,
10,
25,
275,
76,
26,
48,
12,
40,
36,
56,
14,
76,
367,
17151,
20,
31,
50,
154,
33,
10,
465,
80,
79,
34,
74,
10,
12,
4469,
73,
1152,
206,
313,
82,
10,
10,
14,
56,
2134,
18,
13,
10,
57,
15,
36,
12,
14,
24,
363,
38,
10,
12,
407,
45,
44,
10,
208,
10,
72,
103,
270,
15,
11,
13,
10,
60,
49,
2070,
12,
519,
335,
48,
93,
136,
46,
499,
24,
148,
11,
27,
230,
36,
38,
1283,
212,
46,
173,
12,
28,
79,
62,
14,
34,
181,
74,
115,
10,
41,
1177,
56,
122,
11,
38,
48,
55,
14,
120,
91,
225,
615,
55,
10,
20,
107,
294,
113,
12,
449,
12,
12,
78,
252,
70,
15,
300,
48,
37,
41,
13,
52,
10,
22,
12,
31,
50,
10,
24,
442,
20,
52,
49,
30,
59,
20,
11,
272,
18,
35,
1444,
16,
2361,
11,
17,
12,
70,
57,
12,
138,
38,
195,
11,
12,
279,
16,
207,
13,
276,
12,
333,
19,
32,
10,
59,
14,
34,
4862,
10,
17,
31,
85,
10,
20,
15,
136,
12,
13,
26,
201,
11,
18,
32,
26,
115,
48,
26,
14,
45,
72,
11,
12,
11,
71,
10,
41,
555,
14,
29,
105,
106,
91,
14,
13,
11,
10,
44,
16,
35,
11,
15,
23,
31,
62,
17,
61,
113,
329,
33,
10,
122,
25,
146,
10,
29,
191,
37,
20,
30,
19,
24,
11,
90,
18,
54,
25816,
150,
79,
84,
45,
323,
10,
34,
15,
108,
495,
477,
36,
64,
92,
11,
11,
41,
18,
43,
12,
1075,
32,
126,
57,
22,
32,
1824,
50,
28,
11,
25,
22,
19,
11,
22,
91,
10,
100,
52,
77,
87,
33,
79,
2993,
14,
16,
44,
21,
131,
506,
60,
13,
15,
118,
15,
52,
32,
15,
10,
57,
67,
14,
15,
25,
10,
21,
267,
21,
12,
14,
11,
38,
5569,
14,
14,
79,
90,
19,
25,
41,
10,
27,
262,
43,
10,
24,
40,
350,
90,
6610,
313,
14,
113,
11,
67,
14,
127,
928,
58,
18,
10,
20,
95,
67,
10,
61,
10,
26,
52,
30,
154,
310,
88,
10,
13,
112,
121,
377,
193,
34,
26,
29,
19,
10,
12,
227,
17,
14,
24,
30,
26,
66,
21,
23,
80,
74,
234,
19,
44,
58,
51,
25,
33,
10,
10,
158,
22,
3155,
946,
67,
15,
37,
17,
16,
115,
84,
14,
15,
20,
32,
45,
45,
10,
17,
107,
80,
34,
11,
12,
168,
41,
39,
21,
31,
32,
258,
64,
22,
46,
13,
21,
13,
34,
12,
22,
93,
10,
104,
13,
45,
21,
19,
12,
242,
14,
17,
12,
17,
78,
12,
27,
16,
24,
12,
15,
95,
12,
20,
31,
17,
13,
176,
40,
15,
52,
23,
60,
10,
28,
12,
21,
10,
11,
1102,
69,
115,
16,
17,
30,
18,
12,
16,
10,
11,
427,
116,
13,
10,
14,
125,
34,
172,
13,
74,
53,
75,
105,
74,
85,
12,
10,
11,
24,
30,
13,
14,
13,
15,
42,
31,
18,
19,
22,
35,
48,
28,
18,
92,
37,
20,
10,
209,
53,
63,
77,
38,
10,
12,
251,
393,
198,
12,
35,
58,
20,
134,
16,
17,
15,
445,
11,
12,
14,
838,
34,
410,
24,
511,
40,
18,
32,
17,
74,
254,
14,
51,
74,
81,
10,
25,
25,
34,
66,
17,
16,
10,
208,
61,
24,
249,
34,
149,
16,
21,
81,
15,
12,
12,
48,
101,
213,
41,
28,
45,
27,
19,
35,
10,
37,
96,
181,
324,
26,
53,
176,
10,
39,
14,
24,
68,
38,
12,
59,
16,
45,
89,
17,
12,
84,
2373,
752,
112,
13,
16,
12,
65,
67,
17,
10,
46,
18,
11,
96,
32,
13,
16,
23,
55,
21,
19,
115,
17,
228,
456,
35,
25,
10,
37,
31,
47,
346,
34,
16,
12,
12,
38,
10,
41,
16,
10,
25,
21,
18,
42,
19,
10,
177,
17,
33,
101,
14,
283,
74,
16,
13,
74,
15,
368,
25,
510,
79,
13,
315,
463,
10,
14,
22,
6215,
182,
21,
58,
35,
72,
22,
132,
1306,
2873,
154,
11,
118,
22,
26,
15,
23,
11,
53,
10,
125,
82,
239,
36,
14,
11,
14,
13,
19,
12,
409,
10,
57,
23,
11,
127,
11,
21,
687,
47,
10,
18,
80,
32,
11,
120,
187,
53,
106,
10,
11,
13,
59,
21,
147,
2140,
247,
447,
89,
189,
22,
48,
18,
48,
19,
48,
45,
18,
7787,
405,
77,
16,
11,
14,
127,
78,
10,
11,
12,
62,
537,
92,
30,
20,
17,
15,
51,
118,
72,
30,
74,
124,
64,
10,
43,
10,
74,
64,
61,
82,
57,
10,
551,
61,
17,
20,
96,
37,
10,
10,
14,
10,
60,
12,
73,
44,
65,
58,
32,
15,
28,
101,
179,
28,
91,
11,
13,
135,
54,
36,
14,
59,
234,
25,
41,
59,
10,
13,
113,
13,
20,
12,
295,
28,
10,
695,
110,
40,
80,
14,
15,
14,
16,
35,
10,
16,
426,
330,
13,
16,
34,
36,
24,
27,
31,
23,
10,
92,
13,
30,
40,
10,
11,
11,
16,
93,
13,
215,
43,
24,
48,
291,
28,
132,
31,
25,
13,
14,
28,
18,
51,
11,
10,
75,
41,
91,
30,
66,
31,
10,
10,
26,
197,
461,
13,
40,
21,
10,
87,
40,
81,
48,
14,
13,
296,
24,
10,
68,
83,
14,
74,
14,
77,
52,
216,
10,
23,
60,
134,
243,
15,
11,
15,
33,
13,
18,
15,
818,
28,
193,
10,
11,
159,
148,
8819,
18,
66,
124,
10,
721,
25,
17,
65,
10,
11,
15,
12,
42,
193,
249,
48,
146,
54,
17,
47,
13,
51,
59,
27,
115,
27,
31,
31,
14,
216,
131,
18,
13,
39,
11,
861,
10,
18,
10,
12,
10,
73,
32,
115,
15,
31,
132,
38,
16,
45,
10,
20,
28,
13,
47,
167,
58,
621,
165,
24,
33,
18,
63,
41,
32,
40,
32,
14,
27,
25,
77,
155,
10,
13,
17,
13,
12,
104,
177,
12,
21,
16,
51,
43,
36,
10,
638,
35,
10,
977,
42,
68,
12,
18,
25,
15,
19,
13,
11,
13,
17,
91,
28,
11,
12,
77,
73,
21,
132,
39,
12,
10,
27,
189,
28,
49,
19,
11,
3548,
129,
25,
15,
43,
14,
10,
57,
69,
22,
14,
12,
195,
618,
21,
52,
12,
31,
328,
11,
391,
16,
360,
102,
21,
56,
177,
14,
71,
47,
25,
88,
12,
34,
17,
27,
56,
16,
243,
133,
235,
807,
151,
10,
23,
20,
14,
16,
25,
51,
10,
16,
375,
12,
14,
54,
80,
14,
66,
15,
12,
10,
31,
45,
14,
10,
20,
26,
22,
87,
5292,
32,
294,
47,
14,
42,
138,
109,
81,
23,
243,
91,
115,
12,
26,
48,
35,
11,
10,
2305,
59,
47,
41,
15,
25,
191,
14,
36,
54,
22,
52,
12,
28,
11,
104,
11,
34,
50,
98,
10,
50,
12,
15,
443,
23,
22,
14,
12,
12,
14,
8848,
48,
10,
164,
14,
33,
120,
147,
84,
685,
25,
30,
300,
25,
35,
53,
38,
232,
10,
20,
19,
98,
18,
11,
80,
37,
10,
10,
57,
39,
12,
26,
13,
13,
30,
19,
54,
226,
67,
164,
10,
41,
15,
15,
80,
262,
403,
92,
10,
31,
31,
16,
27,
23,
985,
147,
172,
364,
51,
11,
65,
144,
15,
218,
68,
19,
43,
381,
12,
10,
118,
14,
16,
34,
52,
14,
81,
13,
21,
457,
23,
152,
11,
11,
13,
12,
24,
37,
11,
47,
58,
21,
21,
12,
2132,
10,
165,
14,
13,
16,
273,
38,
228,
20,
10,
24,
15,
12,
46,
38,
10,
98,
10,
10,
13,
25,
122,
131,
46,
54,
16,
390,
147,
339,
35,
25,
22,
12,
92,
28,
86,
1261,
80,
155,
15,
16,
152,
10,
12,
12,
26,
171,
14,
75,
31,
36,
13,
13,
34,
187,
30,
24,
145,
127,
19,
14,
35,
16,
22,
18,
563,
17029,
217,
14,
12,
16,
54,
41,
103,
21,
78,
141,
23,
98,
17,
26,
12,
67,
792,
473,
15,
10,
80,
25,
541,
32,
69,
35,
20,
19,
162,
259,
67,
63,
26,
165,
335,
49,
62,
131,
20,
59,
413,
32,
18,
245,
10,
79,
32,
46,
21,
26,
15,
193,
74,
21,
67,
83,
13,
20,
47,
78,
31,
73,
35,
30,
128,
30,
30,
30,
134,
106,
18,
13,
10,
17,
11,
22,
12,
10,
143,
10,
11,
74,
28,
19,
16,
12,
13,
19,
208,
32,
54,
48,
45,
12,
10,
31,
59,
27,
107,
10,
73,
10,
10,
476,
22,
194,
13,
31,
23,
21,
20,
28,
10,
10,
46,
13,
43,
35,
16,
66,
44,
101,
174,
73,
15,
152,
23,
25,
34,
98,
24,
10,
17,
11,
105,
10,
25,
114,
421,
18,
78,
20,
37,
70,
779,
34,
22,
41,
34,
32,
17,
37,
23,
20,
14,
12,
50,
28,
55,
13,
282,
92,
35,
32,
11,
48,
42,
24,
14,
22,
13,
27,
37,
10,
41,
30,
24,
65,
10,
10,
25,
133,
221,
17,
31,
566,
19,
10,
22,
33,
25,
37,
17,
20,
27,
10,
20,
97,
356,
10,
35,
21,
18,
66,
16,
236,
12,
13,
10,
18,
196,
17,
25,
227,
13,
48,
118,
26,
13,
39,
83,
14,
10,
16,
200,
145,
13,
22,
626,
38,
10,
88,
40,
43,
12,
21,
23,
48,
10,
25,
24,
11,
38,
20,
18,
10,
18,
15,
18,
31,
1541,
35,
17,
21,
63,
83,
528,
129,
118,
717,
24,
53,
115,
324,
13,
10,
25,
27,
21,
17,
14,
499,
12,
20,
119,
12,
46,
40,
23,
51,
11,
16,
12,
119,
313,
11,
333,
16,
122,
14,
12,
21,
10,
12,
11,
25,
20,
132,
35,
20,
78,
35,
10,
22,
84,
39,
14,
12,
114,
37,
38,
110,
11,
232,
62,
15,
19,
73,
143,
73,
73,
20,
73,
24,
11,
14,
122,
42,
56,
11,
11,
12,
25,
16,
113,
214,
21,
101,
15,
32,
27,
36,
15,
16,
10,
74,
83,
31,
83,
83,
17,
13,
337,
13,
49,
31,
125,
65,
32,
23,
10,
1769,
10,
158,
365,
10,
14,
25,
25,
237,
10,
73,
12,
11,
19,
14,
67,
14,
39,
16,
155,
1044,
10,
15,
22,
15,
37,
33,
19,
18,
31,
378,
24,
75,
407,
26,
97,
19,
33,
13,
262,
10,
29,
54,
169,
15,
17,
55,
158,
13,
20,
17,
36,
17,
20,
26,
26,
28,
10,
21,
91,
23,
15,
30,
14,
13,
16,
324,
23,
10,
25,
55,
68,
50,
12,
15,
200,
32,
10,
11,
35,
12,
30,
214,
237,
99,
10,
109,
92,
12,
26,
22,
54,
162,
59,
35,
27,
55,
31,
12,
105,
12,
135,
97,
89,
23,
10,
33,
15,
12,
18,
17,
16,
55,
41,
104,
83,
23,
19,
29,
12,
7209,
34,
81,
28,
14,
14,
12,
10,
267,
388,
12,
15,
21,
20,
160,
943,
57,
11,
580,
11,
10,
18,
312,
45,
137,
10,
294,
39,
15,
153,
603,
13,
15,
23,
10,
81,
50,
14,
41,
91,
44,
2641,
22,
10,
109,
11,
31,
12,
20,
48,
88,
618,
239,
41,
17,
41,
18,
31,
15,
117,
300,
13,
201,
112,
18,
65,
245,
13,
24,
39,
11,
163,
11,
30,
28,
16,
202,
16,
209,
12,
54,
26,
389,
15,
11,
10,
19,
18,
913,
77,
11,
10,
104,
18,
11,
11,
14,
41,
44,
12,
10,
85,
15,
15,
13,
92,
62,
10,
30,
23,
26,
29,
189,
831,
12,
16,
10,
12,
14,
10,
35,
21,
14,
67,
6756,
57,
13,
53,
32,
13,
10,
13,
65,
15,
27,
14,
43,
19,
261,
13,
366,
116,
267,
14,
253,
139,
17,
12,
57,
13,
11,
288,
25,
27,
37,
44,
44,
11,
30,
15265,
65,
108,
48,
27,
382,
16,
92,
312,
11,
11,
20,
1134,
38,
74,
80,
15,
43,
201,
11,
49,
63,
153,
12,
50,
14,
17,
28,
266,
18,
29,
14,
31,
24,
24,
16,
56,
69,
44,
58,
201,
10,
16,
42,
104,
501,
16,
13,
17,
15,
77,
10,
30,
10,
13,
13,
10,
17,
23,
33,
74,
17,
13,
36,
85,
51,
89,
31,
25,
10,
11,
24,
16,
14,
41,
19,
149,
11,
87,
31,
71,
12,
17,
18,
21,
15,
16,
11,
213,
10,
28,
14,
17,
225,
15,
14,
281,
127,
78,
47,
13,
138,
11,
74,
48,
33,
71,
75,
553,
1094,
129,
10,
34,
62,
281,
1906,
13,
11,
314,
53,
97,
37,
260,
11,
25,
11,
46,
92,
728,
92,
16,
19,
16,
12,
15,
50,
19,
221,
21,
39,
11,
34,
706,
13,
158,
15,
135,
19,
519,
12,
127,
915,
24,
18,
76,
224,
33,
47,
125,
30,
1055,
599,
17,
71,
36,
56,
17,
105,
380,
17,
84,
13,
28,
12,
19,
183,
31,
10,
40,
27,
157,
18,
351,
106,
482,
40,
25,
36,
98,
11,
21,
2290,
225,
44,
18,
31,
18,
37,
15,
11,
314,
14,
14,
30,
56,
326,
75,
15,
16,
50,
55,
13,
13,
216,
53,
336,
10,
34,
95,
11,
16,
24,
11,
10,
41,
58,
20,
638,
12,
16,
41,
13,
49,
74,
37,
168,
22,
111,
18,
31,
46,
15,
13,
10,
11,
10,
13,
21,
2135,
10,
10,
306,
22,
19,
119,
113,
11,
113,
50,
19,
112,
83,
426,
48,
11,
76,
36,
29,
30,
34,
161,
10,
28,
108,
19,
86,
1824,
39,
86,
12,
43,
113,
12,
20,
22,
70,
52,
10,
44,
75,
66,
227,
16,
130,
442,
16,
91,
111,
91,
91,
16,
149,
19,
22,
29,
13,
13,
80,
194,
14,
14,
73,
14,
110,
22,
17,
57,
272,
59,
20,
121,
42,
14,
275,
11,
41,
16,
203,
11,
22,
14,
83,
35,
13,
17,
13,
87,
29,
41,
29,
6682,
22,
426,
14,
1120,
16,
15,
93,
25,
34,
10,
10,
21,
39,
20,
10,
12,
57,
12,
35,
15,
12,
13,
258,
14,
14,
161,
12,
13,
12,
10,
333,
14,
39,
35,
13,
12,
22,
10,
36,
13,
16,
21,
30,
738,
44,
47,
12,
13,
14,
15,
217,
115,
46,
40,
216,
16,
12,
628,
50,
4527,
83,
40,
86,
27,
13,
1315,
15,
22,
40,
13,
158,
63,
56,
35,
59,
47,
54,
96,
10,
42,
150,
27,
1476,
3070,
12,
76,
35,
16,
598,
325,
151,
69,
24,
17,
322,
10,
76,
142,
117,
21,
59,
120,
119,
495,
57,
59,
88,
14,
57,
257,
23,
79,
41,
10,
13,
39,
28,
18,
10,
12,
10,
174,
48,
390,
24,
39,
41,
11,
93,
13,
10,
30,
142,
29,
75,
10,
15,
57,
23,
18,
22,
75,
55,
20,
22,
12,
52,
16,
97,
27,
26,
27,
17,
44,
146,
13,
25,
126,
23,
93,
54,
41,
22,
720,
5067,
584,
997,
77,
10,
15,
55,
43,
74,
83,
39,
80,
18,
18,
11,
259,
10,
27,
317,
93,
28,
144,
10,
26,
16,
47,
12,
40,
99,
63,
452,
105,
198,
142,
191,
18,
29,
240,
29,
69,
17,
49,
146,
67,
163,
13,
15,
56,
17,
144,
10,
16,
22,
75,
505,
121,
506,
34,
16,
2015,
14,
704,
42,
34,
52,
10,
38,
63,
37,
40,
11,
11,
15,
126,
43,
498,
11,
61,
22,
46,
858,
93,
30,
18,
19,
18,
11,
23,
11,
12,
134,
93,
19,
11,
2256,
31,
10,
76,
58,
12,
34,
25,
86,
18,
45,
10,
52,
10,
16,
33,
15,
203,
182,
49,
47,
57,
54,
10,
11,
19,
13,
24,
26,
16,
13,
10,
273,
39,
43,
57,
14,
20,
115,
116,
15,
89,
14,
14,
10,
21,
10,
20,
16,
12,
11,
31,
51,
79,
584,
128,
31,
46,
11,
10,
414,
25,
11,
66,
120,
85,
78,
74,
46,
24,
11,
30,
25,
32,
25,
63,
95,
12,
15,
295,
85,
12,
49,
11,
17,
24,
825,
334,
27,
76,
35,
26,
20,
11,
13,
10,
43,
11,
74,
24,
892,
129,
24,
10,
78,
208,
104,
925,
13,
13,
25,
30,
11,
1045,
25,
72,
22,
1949,
580,
51,
63,
1485,
22,
74,
31,
10,
47,
13,
15,
126,
791,
144,
34,
53,
117,
88,
10,
23,
11,
33,
11,
18,
164,
64,
14,
33,
36,
18,
150,
11,
10,
11,
12,
12,
15,
15,
11,
30,
79,
12,
18,
2672,
74,
33,
10,
12,
13,
15,
47,
676,
35,
380,
12,
1041,
41,
14,
32,
50,
24,
55,
40,
13,
135,
26,
16,
88,
25,
10,
13,
1433,
32,
90,
107,
69,
106,
18,
11,
11,
32,
16,
67,
83,
11,
42,
12,
442,
22,
11,
27,
17,
14,
10,
12,
16,
73,
164,
192,
10,
24,
118,
110,
11,
96,
95,
21,
48,
15,
19,
48,
12,
114,
10,
139,
491,
223,
45,
19,
11,
14,
42,
10,
291,
1456,
16,
1222,
39,
189,
11,
878,
11,
330,
10,
19,
353,
18,
3878,
33,
14,
66,
39,
21,
44,
17,
82,
95,
11,
10,
117,
30,
15,
99,
33,
1734,
407,
14,
10,
82,
167,
10,
25,
56,
16,
15,
12,
40,
48,
11,
12,
16,
546,
162,
41,
10,
22,
15,
29,
14,
4859,
36,
98,
119,
10,
119,
11,
530,
17,
358,
93,
15,
12,
39,
26,
139,
17,
27,
26,
17,
12,
31,
927,
30,
11,
31,
84,
258,
13,
168,
30,
30,
17,
14,
478,
48,
18,
243,
10,
239,
409,
34,
12,
11,
40,
23,
11,
26,
39,
102,
54,
115,
29,
49,
18,
27,
11,
24,
27,
15,
94,
11,
10,
179,
12,
13,
11,
13,
36,
432,
16,
27,
17,
13,
13,
14,
36,
68,
51,
15,
35,
190,
104,
24,
18,
67,
33,
409,
12,
19,
62,
72,
21,
71,
51,
18,
17,
43,
20,
12,
12,
109,
84,
12,
16,
13,
11,
16,
11,
20,
12,
26,
17,
225,
66,
98,
172,
185,
58,
82,
176,
21,
11,
12,
37,
164,
12,
10,
562,
113,
67,
34,
12,
122,
169,
71,
17,
30,
509,
44,
11,
15,
12,
717,
41,
12,
215,
260,
13,
15,
34,
30,
129,
22,
43,
1027,
398,
240,
108,
28,
26,
10,
35,
14,
22,
19,
126,
137,
24,
10,
10,
12,
37,
30,
31,
22,
19,
20,
23,
28,
358,
13,
11,
467,
10,
425,
13,
13,
779,
12,
18,
10,
13,
11,
36,
106,
52,
61,
31,
18,
22,
12,
54,
80,
11,
151,
10,
287,
41,
13,
162,
14,
452,
86,
27,
45,
26,
66,
12,
16,
55,
19,
16,
47,
61,
400,
104,
59,
24,
15,
10,
12,
225,
217,
24,
4500,
61,
12,
14,
196,
14,
33,
230,
31,
136,
10,
73,
18,
33,
98,
206,
20,
31,
30,
336,
14,
51,
17,
159,
40,
35,
10,
88,
14,
56,
35,
18,
63,
36,
55,
19,
230,
222,
31,
19,
125,
16,
46,
128,
56,
25,
39,
16,
11,
20,
74,
91,
189,
45,
30,
39,
237,
12,
11,
14,
32,
187,
30,
17,
32,
274,
14,
346,
63,
72,
172,
16,
51,
59,
134,
11,
47,
34,
479,
238,
120,
205,
26,
18,
21,
32,
434,
183,
10,
13,
41,
10,
331,
12,
155,
10,
11,
20,
31,
53,
15,
10,
10,
12,
169,
11,
168,
10,
11,
561,
18,
122,
63,
14,
50,
194,
14,
32,
52,
57,
37,
56,
53,
14,
10,
25,
84,
56,
27,
16,
153,
264,
202,
81,
1106,
10,
74,
41,
17,
10,
11,
10,
956,
16,
49,
10,
69,
841,
2144,
80,
17,
23,
502,
11,
10,
76,
12,
76,
1611,
15,
12,
48,
24,
15,
10,
13,
282,
23,
36,
61,
66,
19,
17,
327,
29,
10,
11,
320,
27,
119,
98,
27,
124,
10,
48,
34,
21,
195,
13,
59,
113,
22,
15,
56,
19,
18,
21,
71,
14,
1737,
10,
19,
22,
38,
1385,
28,
22,
20,
88,
64,
96,
12,
21,
307,
11,
267,
174,
121,
573,
114,
3672,
5412,
416,
241,
19698,
62,
12,
237,
110,
95,
15,
16,
24,
18,
166,
10,
55,
14,
32,
394,
21,
11,
565,
219,
12,
18,
139,
52,
834,
12,
128,
88,
283,
796,
197,
11,
18,
26,
20,
23,
206,
12,
112,
305,
771,
267,
76,
12,
10,
13,
111,
107,
145,
147,
36,
12,
27,
305,
13,
12,
193,
48,
199,
21,
31,
61,
77,
256,
10,
395,
28,
182,
327,
31,
2260,
10,
72,
166,
12,
14,
451,
25,
36,
10,
37,
10,
12,
160,
428,
12,
18,
14,
36,
49,
17,
683,
164,
64,
147,
12,
20,
197,
133,
11,
26,
26,
31,
65,
116,
14,
70,
170,
2688,
50,
14,
69,
62,
43,
88,
329,
18,
10,
277,
14,
12,
40,
23,
106,
28,
40,
23,
35,
9443,
29,
467,
25,
13,
23,
12,
87,
13,
13,
13,
43,
32,
14,
44,
10,
12,
63,
33,
464,
11,
16,
90,
40,
21,
18,
26,
23,
37,
18,
78,
86,
82,
44,
206,
26,
15,
11,
13,
117,
18,
17,
19,
139,
102,
12,
72,
34,
59,
133,
15,
47,
43,
15,
24,
14,
119,
14,
31,
108,
40,
10,
1308,
187,
124,
34,
54,
39,
12,
76,
13,
79,
27,
36,
22,
27,
11,
83,
10,
12,
67,
20,
13,
15,
85,
13,
120,
23,
11,
11,
11,
408,
10,
193,
17,
11,
12,
51,
14,
10,
14,
13,
21,
52,
39,
15,
14,
16,
12,
22,
391,
14,
17,
41,
11,
15,
91,
11,
30,
146,
204,
33,
43,
48,
19,
17,
15,
59,
26,
14,
19,
14,
1931,
13,
10,
44,
21,
40,
18,
1273,
46,
23,
18,
57,
15,
15,
14,
37,
83,
23,
93,
47,
86,
39,
20,
19,
1936,
75,
287,
5005,
361,
1333,
12,
30,
19,
107,
50,
39,
55,
10,
12,
169,
115,
33,
127,
17,
21,
63,
14,
11,
28,
30,
31,
95,
87,
86,
12,
20,
51,
492,
137,
89,
29,
66,
12,
18,
14,
12,
22,
30,
37,
31,
187,
15,
25,
12,
25,
401,
92,
16,
30,
18,
82,
31,
10,
12,
16,
13,
10,
71,
11,
38,
10,
13,
38,
15,
34,
31,
28,
99,
13,
11,
31,
158,
20,
112,
1102,
15,
10,
40,
687,
53,
240,
18,
13,
147,
11,
1399,
10,
20,
22,
72,
1420,
16,
35,
281,
13,
32,
63,
80,
10,
86,
241,
38,
143,
163,
2697,
3036,
60,
26,
10,
11,
66,
30,
10,
26,
16,
40,
12,
11,
33,
1043,
989,
892,
28,
15,
11,
30,
16,
10,
21,
15,
48,
11,
12,
211,
47,
42,
23,
22,
42,
16,
10,
29,
38,
13,
81,
25,
40,
13,
27,
14,
180,
26,
66,
11,
10,
15,
62,
20,
10,
13,
38,
11,
17,
22,
12,
11,
52,
577,
21,
13,
10,
16,
10,
11,
128,
58,
19,
17,
16,
84,
13,
11,
16,
214,
105,
24,
325,
454,
419,
644,
166,
46,
14,
43,
93,
32,
16,
21,
16,
89,
38,
250,
12,
20,
351,
23,
94,
36,
23,
27,
26,
31,
21,
17,
34,
13,
537,
16,
119,
68,
192,
59,
18,
100,
19,
62,
132,
56,
13,
78,
32,
21,
48,
221,
14,
14,
11,
19,
30,
11,
12,
58,
35,
49,
72,
28,
20,
16,
12,
10,
52,
40,
20,
17,
11,
59,
11,
22,
22,
42,
31,
19,
11,
127,
111,
14,
15,
166,
10,
12,
103,
28,
19,
11,
29,
137,
274,
19,
17,
38,
16,
10,
79,
68,
394,
32,
10,
15,
10,
1126,
435,
10,
17,
23,
22,
98,
10,
10,
19,
453,
37,
16,
255,
19,
12,
265,
18,
247,
11,
165,
59,
103,
47,
17,
11,
155,
13,
158,
36,
482,
101,
59,
155,
1535,
11,
73,
89,
22,
43,
18,
32,
39,
72,
11,
34,
101,
11,
35,
13,
89,
70,
21,
44,
26,
47,
17,
47,
13,
61,
10,
54,
10,
171,
48,
17,
54,
294,
167,
18,
86,
648,
148,
1608,
129,
220,
37,
27,
11,
11,
15,
1573,
272,
49,
31,
19,
93,
129,
53,
147,
200,
38,
17,
16,
35,
31,
67,
79,
17,
21,
66,
997,
2899,
1860,
16,
24,
408,
62,
33,
20,
1768,
39,
229,
41,
110,
62,
20,
79,
23,
34,
34,
32,
21,
106,
76,
69,
6974,
445,
84,
108,
100,
2045,
143,
10,
10,
33,
11,
17,
26,
31,
56,
22,
24,
110,
35,
162,
78,
15,
923,
84,
37,
12,
11,
32,
11,
32,
36,
27,
50,
20,
10,
12,
77,
292,
23,
24,
21,
105,
22,
12,
105,
27,
235,
11,
34,
324,
153,
14,
62,
31,
11,
22,
70,
23,
61,
10,
10,
13,
27,
57,
51,
763,
69,
20,
43,
464,
22,
235,
14,
18,
40,
56,
63,
189,
10,
10,
10,
31,
5780,
263,
14,
17,
14,
1242,
24,
64,
195,
29,
30,
324,
74,
155,
19,
10,
10,
68,
11,
49,
11,
17,
109,
13,
12,
41,
379,
12,
11,
12,
29,
62,
125,
10,
270,
10,
13,
45,
12,
18,
60,
13,
646,
29,
17,
17,
18,
11,
53,
410,
46,
14,
24,
13,
49,
165,
1225,
295,
97,
44,
94,
26,
12,
162,
87,
73,
43,
12,
49,
70,
43,
178,
65,
234,
293,
98,
58,
24,
23,
16,
75,
99,
595,
138,
47,
29,
84,
20,
45,
79,
25,
72,
60,
98,
10,
66,
292,
32,
51,
13,
39,
10,
137,
43,
137,
10,
16,
53,
284,
1403,
211,
134,
48,
24,
623,
59,
930,
18,
14,
48,
73,
12,
277,
22,
11,
2958,
19,
51,
235,
271,
24,
20,
14048,
60,
414,
158,
91,
748,
61,
252,
50,
25,
516,
7218,
614,
32,
21,
125,
192,
10,
131,
105,
17,
12,
36,
10,
14,
12,
178,
11,
265,
26,
227,
12,
429,
61,
27,
186,
50,
301,
14,
3127,
10,
246,
101,
332,
278,
14,
195,
3658,
63,
328,
11,
57,
14,
392,
31,
38,
17,
79,
20,
71,
14,
2334,
402,
78,
12,
29,
24,
12,
12,
10,
13,
450,
22,
122,
21,
13,
32,
4973,
16,
10,
547,
10398,
2913,
227,
224,
73,
17,
19,
73,
5277,
87,
26,
19,
177,
97,
12,
81,
73,
75,
1890,
229,
20,
39,
448,
137,
10,
23,
255,
12,
19,
33,
15,
101,
444,
181,
16,
243,
91,
36,
119,
45,
90,
681,
49,
82,
14,
12,
21,
11,
85,
21,
14,
22,
31,
82,
71,
1386,
52,
13,
71,
269,
45,
1061,
37,
23,
30,
108,
100,
396,
41,
84,
42,
10,
50,
111,
65,
25,
198,
74,
10,
14,
73,
19,
11,
13,
13,
278,
19,
85,
50,
158,
284,
1552,
281,
344,
71,
156,
150,
4268,
216,
41,
1852,
10,
10,
136,
550,
775,
27,
30,
10,
213,
452,
44,
16,
58,
256,
239,
154,
38,
124,
273,
57,
32,
1938,
29,
16,
38,
17,
990,
18,
152,
10,
78,
44,
17,
42,
44,
1261,
40,
128,
3709,
283,
476,
13,
1398,
136,
12,
10,
1222,
166,
84,
73,
73,
34,
78,
41,
38,
12,
24,
78,
21,
38,
12,
63,
54,
30,
74,
25,
48,
85,
76,
13,
19,
11,
13,
40,
195,
18,
11,
59,
19,
36,
30,
251,
53,
426,
1054,
4579,
42,
64,
60,
17,
74,
14,
13,
186,
279,
18,
11,
256,
26,
19,
33,
64,
95,
11,
26,
60,
327,
60,
1152,
171,
24,
121,
179,
743,
78,
20,
1863,
34,
21,
10,
50,
43,
15,
34,
15,
159,
49,
815,
14,
47,
1660,
12,
52,
139,
34,
21,
25,
10,
25,
2587,
41,
27,
24,
37,
98,
31,
58,
646,
11,
26,
52,
32,
75,
157,
79,
11,
79,
12,
22,
66,
26,
15,
2534,
47,
35,
75,
21,
31,
749,
11,
71,
41,
18,
72,
25,
10,
11,
19,
393,
24,
26,
114,
80,
19,
10,
15,
64,
59,
10,
45,
1041,
7334,
273,
31,
2325,
67,
20,
81,
84,
26,
35,
172,
10,
101,
56,
15,
39,
134,
357,
11,
36,
14,
10,
4613,
778,
2171,
1218,
63,
10,
12,
27179,
49,
14,
547,
112,
161,
15,
17,
125,
103,
73,
12,
46,
127,
40,
42,
69,
213,
98,
33,
67,
170,
11,
10,
20,
796,
81,
58,
12,
13,
11,
15,
73,
2145,
54,
37,
725,
20,
59,
13,
21,
38,
11,
427,
20,
432,
17,
1061,
222,
13,
188,
10,
16,
103,
258,
65,
1080,
30,
95,
124,
79,
29,
41,
743,
75,
10,
10,
70,
10,
92,
52,
19,
61,
16,
13,
710,
11,
28,
122,
79,
218,
27,
37,
49,
12,
33,
15,
40,
15,
106,
11,
40,
15,
1999,
2633,
35,
14,
3736,
635,
112,
1739,
29,
31,
431,
28,
28,
99,
67,
70,
937,
81,
121,
58,
254,
10,
61,
27,
54,
27,
10,
20,
34,
132,
26,
49,
10,
53,
73,
46,
71,
12,
34,
160,
20,
13,
11,
25,
19,
38,
128,
12,
43,
404,
285,
23,
11,
16,
11,
41,
53,
12,
50,
39,
58,
22,
1458,
1777,
14,
18,
38,
165,
44,
23,
1366,
74,
23,
125,
37,
16,
5232,
25,
33,
885,
10,
54,
27,
71,
756,
44,
419,
468,
11,
11,
33,
16,
43,
23,
151,
31,
73,
73,
74,
58,
25,
22,
136,
102,
59,
35,
179,
16,
19,
13,
11,
122,
15,
23,
31,
15,
400,
12,
15,
13,
25,
13,
12,
31,
31,
17,
12,
18,
12,
11,
19,
271,
31,
14,
11,
93,
11,
15,
12,
53,
16,
11,
22,
13,
15,
20,
11,
12,
18,
11,
92,
21,
11,
10,
14,
10,
10,
11,
10,
12,
96,
10,
13,
15,
14,
11,
14,
11,
24,
11,
14,
11,
15,
14,
11,
10,
10,
10,
11,
16,
11,
10,
10,
14,
10,
1148,
15,
11,
19,
15,
59,
14,
31,
44,
12,
307,
44,
14,
15,
14,
17,
13,
12,
10,
14,
24,
182,
10,
45,
10,
11,
24,
483,
10,
24,
34,
21,
188,
226,
10,
10,
39,
12,
14,
104,
13,
10,
307,
28,
11,
10,
16,
20,
28,
12,
11,
17,
17,
11,
10,
98,
38,
10,
10,
11,
10,
11,
35,
136,
15,
18,
20,
13,
10,
12,
11,
14,
11,
13,
10,
11,
12,
18,
83,
17,
10,
14,
26,
24,
28,
121,
11,
10,
29,
27,
10,
15,
16,
32,
18,
13,
17,
10,
16,
13,
14,
14,
17,
11,
12,
36,
18,
23,
10,
12,
16,
25,
11,
10,
10,
107,
19,
16,
11,
21,
11,
36,
14,
10,
137,
10,
13,
14,
10,
10,
26,
10,
10,
13,
10,
14,
101,
12,
10,
11,
17,
11,
10,
12,
11,
50,
19,
14,
14,
19,
69,
66,
39,
14,
44,
14,
10,
38,
19,
18,
17,
32,
12,
14,
12,
10,
11,
10,
10,
11,
23,
10,
10,
14,
53,
13,
11,
10,
671,
12,
143,
10,
26,
95,
33,
54,
46,
16,
74,
28,
17,
13,
280,
26,
12,
11,
13,
11,
11,
20,
11,
11,
11,
32,
350,
10,
12,
11,
16,
17,
18,
60,
16,
25,
18,
10,
16,
15,
16,
12,
13,
15,
13,
11,
16,
29,
12,
18,
21,
15,
13,
14,
10,
34,
481,
12,
13,
210,
20,
10,
21,
482,
15,
11,
14,
36,
12,
20,
17,
10,
10,
16,
96,
16,
13,
57,
11,
24,
19,
12,
17,
10,
20,
50,
12,
40,
60,
333,
12,
473,
27,
10,
24,
187,
10,
13,
15,
11,
11,
20,
10,
11,
26,
15,
488,
18,
24,
10,
10,
20,
12,
11,
14,
16,
48,
25,
202,
214,
13,
419,
88,
11,
25,
234,
10,
11,
11,
98,
10,
316,
11,
14,
29,
10,
48,
10,
125,
12,
13,
15,
15,
19,
16,
21,
16,
21,
28,
19,
13,
20,
17,
13,
12,
14,
16,
14,
18,
13,
27,
16,
19,
14,
19,
10,
10,
174,
200,
13,
15,
34,
10,
26,
12,
17,
22,
53,
19,
24,
26,
44,
16,
82,
156,
29,
251,
12,
454,
10,
13,
140,
524,
116,
56,
12,
38,
526,
13,
21,
18,
30,
11,
11,
18,
161,
21,
44,
11,
117,
10,
28,
218,
57,
258,
12,
14,
477,
21,
72,
61,
27,
179,
45,
12,
21,
373,
142,
77,
21,
95,
16,
11,
12,
10,
59,
31,
17,
110,
10,
21,
91,
16,
25,
37,
10,
79,
1443,
87,
19,
33,
190,
113,
102,
17,
49,
23,
21,
10,
42,
33,
65,
68,
12,
34,
12,
12,
1339,
27,
19,
10,
18,
207,
68,
82,
78,
92,
49,
10,
35,
13,
11,
39,
13,
41,
19,
14,
26,
53,
33,
151,
37,
29,
22,
11,
11,
12,
59,
59,
73,
157,
16,
10,
16,
19,
36,
10,
10,
19,
10,
10,
11,
14,
22,
19,
4382,
11,
1424,
10,
59,
41,
12,
17,
29,
1260,
74,
10,
83,
17,
31,
43,
29,
88,
11,
12,
24,
48,
121,
24,
35,
11,
216,
11,
17,
80,
100,
46,
106,
10,
12,
121,
11,
11,
45,
127,
48,
47,
12,
30,
216,
93,
19,
35,
22,
27,
10,
10,
130,
56,
46,
174,
11,
151,
1036,
15,
12,
15,
43,
59,
19,
10,
116,
17,
261,
22,
330,
19,
964,
135,
18,
14,
711,
12,
148,
23,
113,
88,
312,
76,
92,
11,
173,
51,
184,
31,
238,
29,
250,
13,
46,
22,
17,
16,
25,
13,
67,
34,
21,
29,
20,
23,
44,
25,
29,
11,
20,
65,
121,
43,
41,
40,
11,
75,
31,
26,
41,
30,
343,
28,
1737,
199,
270,
114,
78,
32,
18,
202,
95,
112,
27,
10,
38,
74,
25,
146,
37,
14,
13,
457,
11,
66,
14,
29,
62,
109,
34,
16,
29,
2117,
73772,
17,
15,
32,
51,
60,
1344,
54,
256,
16,
27,
11,
123,
125,
19,
14,
10,
632,
53,
11,
73,
55,
19,
10,
64,
30,
109,
30,
42,
15,
643,
103,
42,
27,
17,
12,
22,
30,
103,
130,
10,
30,
35,
194,
13,
242,
18,
4418,
309,
93,
10,
1797,
10,
15,
40,
502,
45,
92,
14,
104,
15,
16,
24,
15,
90,
25,
18,
11,
10,
12,
12,
11,
13,
10,
30,
28,
26,
66,
754,
19,
1430,
123,
33,
307,
51,
1370,
66,
30,
36,
10,
76,
27,
119,
562,
462,
15,
24,
25,
16,
11,
18,
41,
22,
29,
50,
35,
20,
1564,
13,
315,
12,
15,
12,
215,
908,
22,
12,
11,
38,
29,
33,
20,
33,
16,
34,
130,
17,
10,
61,
11,
30,
30,
491,
43,
11,
590,
40,
60,
280,
12,
70,
16,
55,
45,
12,
27,
55,
66,
16,
30,
27,
66,
658,
22,
100,
171,
11,
199,
10,
36,
40,
163,
60,
4009,
498,
18,
17,
728,
29,
23,
13,
262,
74,
15,
253,
12,
10,
20,
475,
19,
237,
1007,
11,
11,
11,
56,
18,
547,
33,
12,
204,
1990,
52,
246,
26,
43,
26,
26,
210,
2410,
44,
31,
176,
33,
59,
11,
269,
135,
51,
18,
67,
84,
17,
1835,
66,
17,
44,
13,
371,
35,
12,
43,
651,
10,
18,
120,
22,
115,
15,
30,
14,
58,
17,
12,
38,
70,
536,
41,
13,
77,
64,
41,
111,
573,
17,
15,
64,
21,
27,
21,
12,
28,
77,
14,
54,
32,
14,
10,
22,
14,
64,
117,
72,
799,
72,
18,
489,
12,
18,
20,
24,
41,
11,
782,
10,
14,
943,
119,
15,
10,
936,
12,
13,
276,
15,
14,
154,
15,
16,
40,
15,
148,
87,
17,
22,
1198,
296,
31,
43,
16,
38,
11,
11,
173,
25,
16,
18,
27,
227,
34,
59,
16,
20,
43,
37,
10,
10,
20,
14,
24,
2177,
32,
10,
22,
191,
29,
10,
15,
10,
82,
20,
14,
11,
23,
100,
52,
11,
23,
156,
15,
10,
10,
63,
71,
14,
16,
410,
10,
261,
15,
59,
15,
19,
14,
50,
18,
40,
85,
22,
15,
25,
13,
19,
341,
14,
107,
1506,
28,
10,
22,
15,
10,
10,
54,
347,
24,
12,
18,
109,
71,
32,
135,
101,
107,
336,
17,
11,
56,
3368,
14,
195,
408,
331,
365,
35,
58,
36,
62,
81,
11,
121,
16,
34,
48,
105,
14,
18,
13,
142,
30,
12,
12,
85,
17,
75,
93,
36,
380,
11,
52,
18,
160,
3477,
46,
23,
1883,
86,
13,
43,
27,
15,
321,
69,
36,
120,
16,
84,
10,
376,
33,
104,
12,
22,
22,
50,
73,
67,
99,
13,
101,
62,
221,
34,
14,
116,
24,
102,
25,
66,
103,
181,
25,
49,
63,
14,
11,
33,
322,
10,
45,
10,
11,
219,
10,
115,
14,
66,
57,
11,
20,
66,
55,
171,
59,
41,
33,
77,
194,
53,
32,
13,
10,
66,
50,
16,
24,
18,
32,
17,
23,
806,
252,
50,
149,
13,
52,
97,
270,
38,
118,
14,
15,
13,
48,
22,
730,
14,
2284,
123,
13,
11,
53,
31,
31,
31,
29,
72,
81,
23,
16,
11,
435,
266,
68,
55,
87,
69,
57,
29,
47,
59,
86,
102,
60,
88,
31,
41,
11,
17,
61,
13,
32,
15,
10,
34,
157,
452,
159,
59,
27,
12,
351,
11,
13,
11,
16,
11,
173,
73,
31,
31,
11,
72,
14,
20,
17,
28,
12,
46,
49,
150,
181,
31,
853,
32,
30,
48,
57,
38,
393,
100,
12,
11,
15,
920,
24,
27,
31,
151,
31,
49,
11,
11,
12,
27,
34,
168,
13,
27,
11,
227,
10,
38,
248,
10,
61,
28,
95,
50,
36,
15,
111,
851,
911,
22,
12,
16,
26,
72,
29,
264,
10,
26,
40,
73,
100,
47,
307,
46,
25,
104,
16,
295,
425,
30,
42,
22,
42,
11,
11,
1386,
18,
272,
57,
796,
32,
449,
61,
15,
32,
11,
38,
1774,
27,
2177,
50,
28,
64,
10,
17,
453,
60,
49,
10,
13,
20,
22,
11,
167,
272,
13,
11,
21,
248,
10,
58,
146,
12,
23,
27,
25,
112,
16,
180,
95,
13,
25,
90,
40,
28,
12,
15,
58,
10,
32,
26,
19,
31,
337,
11,
13,
10,
238,
1167,
535,
169,
10,
11,
577,
123,
201,
22,
178,
50,
15,
26,
14,
39,
15,
97,
16,
28,
32,
56,
29,
94,
33,
1983,
34,
20,
14,
264,
19,
33,
101,
14,
74,
16,
449,
65,
24,
27,
49,
249,
15,
107,
120,
14,
148,
89,
23,
49,
10,
42,
51,
10,
389,
12,
25,
10,
410,
224,
23,
45,
156,
25,
25,
17,
15,
12,
13,
16,
12,
13,
37,
53,
88,
11,
57,
667,
122,
29,
186,
10,
17,
26,
27,
68,
78,
14,
19,
10,
33,
47,
13,
20,
135,
20,
45,
15,
69,
15,
808,
23,
16,
26,
41,
85,
64,
19,
10,
22,
92,
745,
15,
20,
69,
18,
31,
15,
75,
18,
208,
105,
55,
42,
12,
104,
21,
22,
13,
12,
51,
21,
180,
18,
41,
90,
10,
16,
10,
10,
11,
14,
21,
86,
25,
35,
10,
48,
14,
172,
76,
772,
28,
78,
14,
10,
28,
140,
13,
31,
94,
23,
392,
43,
101,
28,
14,
33,
19,
74,
11,
43,
79,
13,
20,
20,
10,
11,
13,
11,
27,
55,
12,
10,
201,
13,
41,
35,
31,
18,
10,
418,
13,
12,
16,
11,
41,
103,
20,
938,
332,
102,
146,
11,
10,
25,
31,
5706,
139,
48,
159,
15,
38,
100,
99,
85,
536,
18,
10,
134,
32,
112,
10,
30,
11,
21,
21,
10,
97,
30,
19,
20,
32,
32,
39,
20,
60,
30,
13,
120,
127,
279,
66,
17,
10,
94,
10,
96,
10,
11,
261,
34,
11,
141,
37,
16,
11,
12,
103,
13,
395,
20,
11,
57,
904,
32,
129,
38,
20,
12,
37,
15,
76,
4087,
76,
94,
79,
63,
19,
20,
11,
41,
22,
12,
11,
14,
88,
26,
131,
72,
21,
15,
10,
115,
63,
21,
213,
144,
13,
36,
12,
50,
19,
33,
13,
11,
24,
43,
12,
16,
21,
10,
38,
51,
569,
11,
13,
38,
10,
13,
53,
80,
20,
44,
331,
16,
26,
26,
81,
35,
64,
21,
92,
195,
269,
35,
73,
143,
26,
11,
13,
41,
10,
15,
113,
399,
16,
32,
11,
135,
11,
10,
33,
325,
11,
13,
24,
15,
295,
11,
17,
22,
25,
695,
38,
12,
61,
92,
24,
10,
10,
11,
10,
289,
11,
38,
189,
11,
30,
14,
107,
17,
53,
45,
20,
358,
1428,
14,
18,
25,
30,
13,
217,
1004,
17,
15,
21,
17,
16,
23,
54,
140,
96,
20,
68,
43,
29,
57,
18,
560,
244,
256,
49,
15,
12,
1110,
1011,
18,
11,
17,
21,
17,
28,
15,
2585,
77,
146,
29,
57,
13,
12,
30,
11,
525,
27,
26,
89,
17,
17,
284,
10,
23,
10,
14,
70,
117,
11,
10,
13,
80,
19,
32,
961,
16,
17,
12,
11,
30,
108,
81,
72,
66,
59,
11,
239,
13,
12,
12,
75,
12,
69,
31,
42,
12,
84,
42,
10,
138,
640,
14,
22,
72,
21,
19,
63,
178,
14,
41,
350,
507,
46,
731,
67,
11,
36,
208,
23,
15,
202,
10,
679,
25,
18,
101,
19,
31,
68,
252,
26,
28,
674,
34,
11,
722,
110,
13,
27,
37,
470,
81,
601,
12,
50,
115,
11,
99,
12,
87,
24,
299,
24,
16,
69,
64,
19,
13,
31,
16,
52,
10,
83,
34,
22,
71,
11,
23,
58,
52,
10,
10,
20,
12,
110,
65,
25,
16,
10,
463,
43,
16,
60,
72,
28,
37,
298,
71,
35,
85,
42,
136,
31,
26,
11,
10,
25,
31,
12,
45,
253,
39,
19,
16,
33,
72,
269,
51,
40,
120,
14,
50,
11,
69,
14,
664,
32,
26,
25,
10,
35,
69,
60,
10,
114,
49,
16,
30,
10,
99,
58,
22,
16,
698,
21,
13,
308,
28,
38,
27,
10,
52,
30,
25,
17,
18,
101,
16,
12,
110,
27,
25,
17,
50,
20,
22,
93,
10,
12,
11,
12,
75,
11,
24,
12,
13,
41,
96,
20,
105,
15,
83,
12,
73,
51,
31,
61,
407,
32,
306,
89,
232,
338,
298,
26,
73,
37,
10,
285,
87,
11,
14,
10,
133,
22,
192,
191,
11,
23,
15,
15,
12,
19,
13,
27,
10,
111,
60,
10,
13,
13,
12,
581,
73,
10,
59,
194,
242,
72,
10,
18,
74,
25,
72,
91,
15,
401,
53,
11,
19,
11,
13,
20,
11,
46,
15,
19,
15,
196,
461,
12,
49,
79,
10,
32,
50,
43,
17,
27,
461,
332,
52,
48,
1469,
100,
11,
162,
19,
42,
25,
36,
180,
16,
68,
794,
20,
68,
26,
48,
47,
12,
12,
11,
78,
16,
56,
11,
22,
11,
174,
18,
88,
11,
14,
26,
103,
54,
25,
4429,
14,
10,
12,
10,
19,
11,
12,
38,
47,
62,
76,
21,
11,
71,
11,
92,
11,
13,
11,
15,
14,
13,
44,
21,
17,
58,
15,
43,
12,
11,
19,
21,
18,
20,
11,
11,
13,
11,
24,
701,
175,
350,
175,
53,
19,
13,
23,
34,
24,
11,
18,
19,
13,
13,
10,
11,
16,
11,
20,
10,
30,
10,
17,
84,
15,
13,
10,
10,
12,
10,
19,
74,
29,
11,
14,
11,
11,
12,
11,
11,
10,
51,
15,
19,
13,
15,
10,
10,
11,
10,
10,
19,
10,
12,
10,
17,
15,
10,
18,
11,
12,
24,
13,
13,
14,
15,
16,
87,
19,
24,
10,
14,
11,
12,
10,
14,
197,
29,
14,
10,
12,
27,
11,
13,
10,
10,
14,
11,
11,
12,
478,
10,
25,
50,
17,
10,
12,
11,
15,
29,
15,
15,
26,
15,
11,
17,
76,
23,
26,
13,
16,
14,
19,
15,
11,
14,
31,
15,
12,
10,
22,
10,
21,
24,
10,
12,
10,
13,
10,
23,
12,
11,
14,
11,
20,
16,
44,
403,
55,
31,
12,
15,
10,
17,
11,
14,
18,
10,
12,
10,
24,
11,
13,
16,
11,
11,
21,
16,
15,
10,
12,
14,
27,
36,
37,
15,
12,
11,
16,
29,
27,
18,
47,
12,
10,
38,
13,
13,
13,
17,
14,
13,
14,
14,
21,
23,
11,
20,
25,
11,
222,
11,
46,
10,
27,
10,
11,
181,
11,
10,
31,
11,
10,
14,
13,
12,
21,
16,
21,
16,
19,
21,
19,
16,
11,
11,
15,
15,
42,
27,
16,
92,
13,
15,
317,
12,
94,
33,
12,
18,
40,
20,
22,
18,
90,
10,
10,
11,
25,
248,
22,
67,
17,
21,
175,
11,
826,
19,
19,
10,
10,
10,
11,
12,
30,
12,
18,
12,
10,
16,
27,
12,
49,
10,
351,
10,
11,
11,
13,
19,
14,
44,
25,
70,
15,
11,
1042,
10,
13,
46,
14,
37,
10,
54,
14,
10,
65,
101,
155,
12,
18,
10,
13,
10,
10,
11,
55,
12,
12,
51,
49,
10,
19,
24,
12,
19,
11,
11,
10,
11,
26,
20,
17,
98,
255,
52,
161,
270,
16,
1407,
24,
10,
22,
10,
42,
48,
125,
17,
12,
37,
14,
11,
13,
63,
14,
15,
183,
18,
103,
13,
10,
13,
11,
16,
14,
29,
51,
18,
16,
12,
66,
21,
23,
14,
11,
35,
56,
19,
519,
12,
28,
15,
37,
21,
10,
115,
13,
14,
13,
19,
15,
31,
15,
154,
11,
13,
16,
17,
16,
10,
13,
17,
15,
20,
25,
16,
21,
19,
11,
17,
26,
16,
16,
10,
12,
11,
10,
10,
14,
10,
12,
11,
11,
16,
16,
10,
12,
1167,
12,
12,
20,
25,
14,
13,
16,
22,
10,
23,
10,
17,
12,
17,
17,
16,
21,
13,
1190,
35,
367,
226,
37,
13,
110,
333,
847,
21,
25,
30,
150,
14,
14,
136,
118,
59,
26,
16,
13,
16,
12,
60,
31,
30,
1602,
567,
282,
23,
11,
13,
27,
16,
29,
13,
12,
24,
10,
33,
11,
174,
12,
37,
20,
26,
12,
66,
12,
10,
13,
87,
112,
139,
14,
92,
217,
89,
87,
98,
137,
11,
15,
25,
229,
12,
28,
15,
27,
97,
21,
23,
17,
101,
99,
14,
22,
37,
42,
42,
28,
12,
13,
13,
11,
43,
12,
10,
14,
12,
176,
61,
10,
59,
44,
55,
45,
21,
28,
18,
11,
170,
20,
28,
13,
61,
37,
441,
401,
443,
32,
22,
121,
68,
105,
45,
38,
43,
10,
25,
21,
115,
13,
22,
12,
16,
54,
11,
210,
670,
11,
11,
55,
486,
12,
44,
30,
17,
57,
15,
40,
35,
117,
61,
297,
131,
19,
22,
579,
143,
21,
23,
11,
11,
24,
35,
117,
11,
130,
14,
85,
30,
41,
30,
12,
231,
171,
38,
110,
49,
71,
30,
19,
36,
77,
17,
28,
15,
20,
18,
15,
21,
17,
118,
267,
12,
19,
27,
11,
21,
795,
10,
36,
15,
94,
143,
1145,
382,
1361,
21,
10,
170,
34,
17,
218,
30,
11,
78,
17,
23,
11,
37,
51,
45,
10,
51,
5368,
10,
30,
64,
88,
2127,
133,
152,
27,
30,
20,
16,
34,
20,
2670,
16,
46,
181,
698,
51,
17,
15,
18,
180,
13,
24,
45,
22,
35,
60,
18,
37,
53,
11,
30,
26,
79,
35,
17,
20,
19,
10,
1612,
11,
34,
425,
14,
13,
186,
56,
21,
73,
21,
148,
37,
32,
95,
84,
17,
39,
209,
10,
10,
118,
24,
12,
72,
11,
72,
28,
138,
158,
42,
13,
306,
103,
24,
38,
15,
14,
58,
10,
14,
332,
57,
24,
13,
85,
63,
20,
47,
72,
55,
89,
88,
35,
13,
75,
106,
24,
17,
96,
342,
10,
29,
13,
100,
21,
12,
24,
73,
71,
10,
27,
18,
72,
30,
13,
20,
49,
110,
11,
15,
131,
1048,
160,
16,
66,
155,
67,
10,
69,
24,
11,
73,
31,
31,
643,
10,
31,
31,
29,
27,
13,
72,
27,
17,
29,
35,
120,
13,
117,
13,
574,
12,
11,
13,
12,
26,
28,
10,
32,
217,
10,
10,
10,
46,
11,
15,
13,
20,
15,
44,
45,
10,
11,
14,
12,
10,
13,
15,
14,
15,
22,
10,
10,
89,
12,
10,
35,
11,
24,
12,
21,
18,
14,
10,
43,
10,
15,
35,
20,
10,
51,
47,
14,
12,
45,
11,
13,
32,
12,
22,
10,
11,
10,
88,
18,
14,
10,
34,
22,
11,
21,
26,
15,
11,
11,
27,
11,
16,
10,
10,
12,
12,
12,
151,
11,
198,
18,
10,
11,
190,
19,
34,
10,
15,
30,
10,
11,
19,
10,
18,
20,
15,
11,
14,
28,
12,
21,
25,
145,
17,
14,
20,
17,
20,
18,
15,
15,
12,
15,
22,
14,
21,
12,
31,
10,
179,
11,
10,
11,
143,
10,
12,
14,
13,
16,
15,
16,
14,
29,
195,
582,
14,
16,
17,
10,
71,
16,
15,
23,
96,
10,
13,
21,
34,
20,
365,
796,
20,
12,
11,
11,
18,
16,
12,
11,
10,
16,
33,
28,
10,
15,
10,
20,
43,
10,
12,
17,
19,
12,
13,
11,
12,
13,
661,
22,
21,
11,
14,
57,
177,
11,
12,
11,
11,
27,
20,
10,
10,
15,
11,
14,
20,
25,
21,
10,
16,
21,
23,
17,
37,
11,
10,
10,
16,
32,
18,
14,
10,
13,
702,
14,
45,
53,
56,
10,
21,
10,
15,
21,
40,
17,
10,
13,
34,
11,
10,
138,
15,
13,
207,
10,
15,
10,
10,
20,
14,
11,
11,
11,
27,
10,
11,
10,
10,
16,
12,
12,
15,
157,
10,
38,
10,
11,
11,
13,
269,
289,
14,
33,
11,
11,
14,
10,
10,
16,
165,
10,
16,
11,
23,
10,
30,
46,
10,
41,
35,
10,
11,
10,
13,
10,
13,
18,
14,
20,
11,
19,
13,
12,
12,
12,
14,
43,
12,
13,
181,
29,
10,
63,
287,
11,
11,
11,
22,
64,
31,
65,
13,
49,
52,
270,
112,
47,
22,
10,
60,
19,
91,
59,
28,
2460,
867,
40,
15,
73,
16,
40,
43,
348,
4718,
71,
255,
201,
12,
21,
14,
70,
19,
13,
94,
27,
73,
45,
74,
16,
12,
316,
27,
62,
11,
15,
33,
18,
52,
15,
12,
15,
19,
56,
39,
14,
52,
20,
270,
3665,
58,
74,
73,
23,
24,
12,
72,
635,
14,
20,
336,
16,
969,
16,
42,
11,
69,
87,
10,
22,
10,
37,
91,
10,
13,
35,
11,
11,
12,
10,
36,
12,
13,
14,
25,
23,
118,
14,
19,
14,
23,
35,
16,
43,
36,
39,
129,
19,
10,
13,
112,
16,
15,
17,
20,
518,
15,
55,
115,
41,
48,
11,
12,
18,
5755,
78,
31,
26,
28,
15,
17,
12,
24,
18,
29,
56,
30,
24,
49,
21,
21,
32,
26,
33,
147,
36,
46,
85,
18,
22,
10,
92,
52,
87,
104,
84,
122,
125,
114,
59,
25,
18,
27,
29,
27,
34,
39,
39,
64,
64,
70,
98,
74,
86,
114,
156,
170,
177,
187,
281,
219,
222,
153,
154,
87,
130,
96,
61,
59,
47,
38,
16,
15,
18,
18,
20,
25,
19,
33,
11,
16,
23,
19,
14,
26,
14,
12,
29,
11,
23,
17,
12,
12,
10,
16,
11,
10,
12,
11,
10,
23,
17,
15,
23,
41,
44,
42,
77,
74,
65,
115,
78,
46,
11,
18,
12,
16,
20,
24,
48,
36,
51,
54,
50,
81,
85,
93,
93,
111,
108,
120,
159,
166,
182,
174,
134,
133,
124,
102,
75,
41,
33,
32,
33,
14,
15,
12,
11,
13,
20,
23,
23,
27,
18,
12,
12,
10,
20,
16,
30,
13,
18,
87,
12,
22,
10,
15,
16,
20,
49,
26,
140,
143,
120,
113,
68,
44,
43,
36,
39,
38,
38,
69,
80,
82,
96,
58,
32,
11,
11,
13,
19,
12,
24,
24,
34,
43,
60,
44,
66,
70,
65,
72,
90,
142,
133,
142,
177,
173,
19,
23,
20,
14,
10,
11,
13,
11,
16,
13,
14,
13,
16,
16,
22,
717,
58,
13,
17,
10,
43,
32,
14,
25,
11,
28,
19,
12,
19,
19,
14,
14,
11,
52,
26,
36,
61,
54,
43,
61,
36,
24,
42,
36,
40,
48,
53,
61,
74,
71,
98,
113,
90,
84,
40,
65,
41,
42,
33,
20,
17,
34,
10,
14,
17,
22,
23,
24,
32,
43,
37,
13,
14,
19,
17,
18,
22,
13,
11,
13,
13,
20,
44,
128,
11,
16,
63,
41,
30,
39,
40,
68,
45,
57,
96,
92,
63,
36,
11,
16,
23,
12,
14,
21,
25,
22,
18,
29,
16,
17,
20,
18,
15,
20,
24,
25,
32,
31,
39,
46,
46,
54,
44,
74,
65,
65,
79,
127,
115,
109,
80,
65,
61,
42,
52,
44,
22,
30,
24,
11,
10,
16,
13,
18,
33,
14,
27,
36,
32,
52,
18,
11,
14,
23,
15,
17,
18,
17,
21,
12,
60,
63,
39,
61,
48,
59,
57,
42,
34,
11,
13,
17,
15,
18,
18,
18,
27,
39,
37,
39,
55,
40,
39,
65,
39,
65,
83,
83,
94,
101,
95,
56,
63,
52,
45,
42,
32,
16,
22,
33,
11,
10,
14,
14,
10,
11,
107,
103,
115,
128,
150,
154,
207,
213,
193,
242,
192,
146,
152,
120,
119,
129,
69,
56,
44,
27,
26,
29,
53,
55,
47,
64,
56,
47,
27,
13,
19,
26,
31,
28,
43,
53,
53,
52,
79,
76,
80,
19,
16,
10,
11,
11,
15,
16,
15,
13,
19,
22,
16,
24,
14,
35,
10,
11,
10,
20,
22,
10,
15,
10,
41,
33,
39,
53,
54,
58,
80,
95,
61,
81,
88,
68,
67,
63,
48,
60,
33,
27,
43,
45,
38,
37,
52,
63,
81,
78,
85,
63,
29,
31,
13,
25,
18,
28,
10,
10,
13,
22,
11,
14,
15,
24,
28,
32,
28,
32,
35,
11,
10,
11,
16,
22,
20,
11,
15,
21,
37,
55,
22,
39,
61,
39,
71,
80,
65,
28,
11,
14,
14,
11,
15,
23,
13,
20,
20,
11,
13,
15,
25,
17,
17,
23,
27,
28,
32,
53,
65,
48,
46,
61,
69,
75,
71,
88,
89,
88,
87,
70,
52,
57,
41,
31,
26,
22,
25,
10,
10,
24,
23,
10,
25,
31,
33,
41,
55,
60,
82,
61,
42,
23,
10,
36,
47,
40,
46,
62,
86,
79,
79,
81,
79,
94,
77,
68,
56,
44,
22,
19,
17,
12,
42,
10,
13,
14,
13,
17,
10,
13,
12,
12,
19,
20,
20,
20,
17,
16,
36,
12,
11,
11,
10,
14,
12,
16,
12,
12,
13,
10,
16,
21,
17,
20,
16,
69,
68,
76,
80,
72,
114,
118,
125,
130,
160,
40,
44,
56,
64,
58,
92,
134,
84,
31,
13,
22,
13,
11,
17,
17,
21,
31,
40,
45,
51,
148,
120,
116,
130,
87,
69,
39,
35,
32,
27,
19,
22,
19,
13,
17,
10,
10,
12,
11,
24,
13,
13,
11,
13,
10,
10,
10,
19,
10,
17,
11,
12,
13,
37,
26,
49,
57,
49,
99,
99,
76,
49,
21,
56,
64,
67,
88,
99,
130,
158,
146,
158,
180,
180,
118,
119,
91,
85,
71,
53,
49,
33,
25,
11,
19,
18,
20,
31,
29,
37,
52,
54,
16,
19,
15,
10,
12,
16,
10,
13,
13,
10,
14,
12,
13,
14,
12,
14,
22,
11,
30,
20,
44,
59,
62,
87,
87,
66,
34,
12,
39,
57,
71,
77,
74,
105,
138,
150,
163,
137,
139,
128,
92,
88,
82,
64,
40,
24,
26,
26,
12,
20,
16,
19,
15,
29,
36,
41,
40,
10,
12,
18,
10,
18,
11,
11,
12,
20,
22,
11,
11,
12,
13,
15,
20,
13,
51,
32,
47,
57,
71,
60,
85,
64,
51,
11,
15,
21,
14,
19,
14,
26,
17,
42,
48,
54,
66,
58,
70,
65,
103,
104,
131,
161,
154,
180,
158,
143,
115,
81,
90,
64,
51,
42,
23,
28,
13,
17,
18,
16,
13,
14,
12,
11,
10,
14,
12,
17,
12,
13,
17,
14,
10,
13,
10,
21,
33,
37,
38,
76,
68,
100,
91,
64,
58,
17,
11,
18,
13,
20,
17,
23,
22,
35,
33,
52,
42,
59,
55,
63,
81,
110,
113,
139,
126,
148,
149,
129,
103,
108,
82,
49,
35,
32,
25,
34,
11,
11,
12,
12,
12,
19,
10,
13,
13,
175,
10,
15,
10,
10,
13,
18,
27,
62,
50,
48,
58,
59,
94,
89,
41,
21,
14,
12,
17,
17,
16,
20,
27,
39,
30,
48,
56,
57,
59,
58,
75,
76,
96,
141,
115,
147,
150,
113,
105,
100,
73,
71,
41,
27,
20,
27,
31,
28,
10,
11,
11,
13,
22,
43,
37,
61,
41,
51,
91,
110,
73,
43,
13,
10,
15,
12,
13,
17,
54,
75,
79,
68,
85,
104,
106,
184,
142,
125,
134,
110,
121,
98,
75,
75,
47,
40,
20,
24,
10,
12,
10,
23,
25,
26,
37,
27,
36,
21,
14,
10,
17,
12,
14,
16,
21,
15,
11,
12,
12,
13,
16,
14,
39,
31,
30,
54,
70,
89,
97,
59,
53,
11,
56,
54,
68,
71,
101,
100,
143,
138,
129,
166,
136,
129,
130,
86,
66,
61,
54,
18,
32,
37,
16,
20,
27,
48,
34,
43,
51,
11,
14,
11,
10,
10,
10,
11,
19,
20,
23,
25,
36,
51,
65,
76,
66,
68,
42,
13,
10,
18,
19,
11,
60,
46,
83,
79,
91,
99,
124,
151,
154,
167,
159,
129,
99,
109,
77,
60,
44,
28,
29,
17,
22,
16,
15,
30,
38,
41,
48,
10,
15,
11,
10,
12,
57,
35,
27,
16,
98,
78,
72,
52,
49,
47,
34,
26,
11,
140,
12,
10,
16,
24,
43,
53,
64,
53,
59,
81,
89,
74,
44,
11,
13,
78,
55,
18,
18,
13,
15,
13,
16,
11,
14,
14,
20,
15,
23,
29,
35,
38,
39,
52,
56,
53,
62,
68,
74,
107,
89,
90,
13,
11,
27,
15,
10,
12,
15,
17,
10,
17,
26,
11,
10,
18,
15,
10,
18,
16,
20,
15,
26,
32,
17,
49,
41,
30,
33,
49,
44,
44,
38,
69,
81,
116,
122,
63,
47,
10,
15,
18,
12,
19,
17,
37,
15,
40,
48,
50,
47,
53,
50,
54,
60,
61,
81,
70,
102,
109,
81,
75,
47,
58,
41,
31,
27,
23,
28,
34,
39,
29,
30,
13,
13,
14,
11,
10,
11,
17,
10,
11,
14,
23,
13,
11,
15,
21,
15,
11,
13,
21,
15,
37,
24,
39,
45,
61,
88,
87,
41,
36,
10,
33,
58,
46,
46,
39,
66,
83,
80,
94,
93,
84,
87,
70,
67,
39,
41,
28,
36,
18,
30,
13,
16,
11,
18,
18,
28,
37,
34,
24,
194,
55,
12,
20,
74,
12,
13,
14,
22,
11,
10,
13,
24,
10,
10,
14,
10,
10,
25,
13,
15,
23,
29,
16,
39,
30,
49,
46,
56,
33,
55,
56,
71,
78,
75,
99,
90,
81,
59,
57,
58,
56,
28,
31,
22,
29,
17,
52,
33,
46,
52,
50,
52,
56,
37,
23,
12,
20,
19,
17,
20,
10,
10,
11,
12,
14,
13,
19,
15,
21,
34,
43,
60,
76,
105,
88,
106,
88,
50,
14,
40,
49,
44,
51,
56,
59,
62,
64,
97,
85,
83,
72,
56,
46,
50,
39,
29,
25,
22,
32,
21,
17,
12,
14,
14,
15,
14,
11,
23,
24,
27,
32,
26,
10,
10,
13,
13,
17,
13,
10,
44,
46,
36,
45,
82,
95,
63,
54,
32,
10,
14,
11,
12,
20,
26,
17,
20,
32,
37,
43,
45,
59,
70,
56,
52,
76,
76,
82,
101,
123,
88,
65,
72,
60,
48,
32,
27,
17,
29,
35,
15,
10,
11,
15,
13,
17,
10,
20,
13,
15,
17,
18,
22,
19,
34,
32,
35,
49,
41,
45,
58,
58,
65,
74,
91,
81,
82,
75,
78,
66,
48,
33,
28,
17,
21,
17,
24,
31,
25,
41,
39,
43,
48,
56,
38,
27,
10,
20,
49,
17,
24,
11,
11,
16,
12,
15,
15,
39,
34,
50,
43,
70,
71,
94,
81,
85,
97,
87,
76,
47,
37,
39,
34,
37,
21,
13,
28,
27,
26,
50,
52,
53,
54,
65,
32,
25,
13,
23,
18,
21,
19,
15,
18,
29,
25,
31,
37,
11,
12,
11,
16,
13,
15,
16,
11,
46,
34,
16,
42,
41,
43,
61,
29,
17,
54,
44,
58,
47,
53,
59,
76,
70,
87,
104,
96,
60,
78,
54,
46,
33,
23,
17,
19,
29,
10,
10,
12,
13,
23,
30,
23,
41,
45,
24,
10,
13,
10,
31,
31,
46,
47,
48,
65,
65,
44,
30,
10,
47,
43,
41,
64,
72,
65,
57,
82,
97,
87,
68,
60,
68,
54,
43,
29,
28,
42,
20,
27,
15,
16,
21,
17,
21,
24,
43,
52,
10,
11,
13,
16,
11,
11,
17,
307120,
175,
302,
513,
80,
241,
77,
217,
215,
14,
17,
41,
24,
10,
113,
328,
20,
16,
22,
123,
20,
21,
11,
85,
13,
37,
62,
10,
11,
26,
10,
18,
11,
10,
19,
12,
13,
11,
15,
10,
13,
46,
14,
20,
44,
33,
10310,
26,
14,
14,
26,
26,
10,
37,
22,
81,
81,
57,
38,
38,
27,
34,
37,
25,
39,
38,
38,
45,
52,
25,
24,
17,
17,
21,
14,
30,
14,
16,
25,
18,
20,
31,
29,
33,
38,
43,
62,
47,
49,
51,
66,
82,
110,
92,
24,
19,
94,
71,
12,
10,
15,
15,
20,
11,
19,
10,
33,
13,
10,
287,
24,
40,
19,
32,
50,
69,
57,
15,
11,
39,
37,
56,
48,
60,
45,
79,
84,
84,
76,
77,
60,
54,
64,
33,
36,
30,
12,
224,
26,
12,
13,
17,
20,
31,
26,
37,
31,
42,
10,
11,
11,
10,
11,
22,
18,
15,
14,
21,
12,
14,
3225,
14,
156,
16,
24,
25,
14,
10,
10,
22,
11,
152,
10,
32,
37,
46,
34,
15,
36,
19,
48,
15,
14,
125,
56,
17,
4446,
59,
15,
13,
40,
25,
40,
24,
19,
17,
11,
103,
11,
12,
30,
20,
12,
10,
396,
10,
10,
12,
65,
1737,
16,
18,
73,
38,
79,
11,
17,
23,
21,
34,
61,
16,
56,
26,
15,
20,
41,
65,
21,
20,
10,
17,
14,
10,
19,
38,
53,
10,
12,
1061,
11,
35,
18,
78,
10,
24,
17,
12,
55,
15,
19,
11,
11,
12,
15,
23,
10,
11,
18,
13,
16,
13,
10,
34,
88,
23,
17,
17,
113,
103,
74,
86,
63,
48,
37,
35,
36,
37,
42,
43,
45,
44,
74,
52,
49,
17,
22,
10,
17,
50,
42,
41,
49,
60,
69,
61,
84,
101,
132,
10,
19,
20,
22,
32,
43,
38,
17,
27,
34,
10,
10,
10,
11,
12,
14,
10,
12,
12,
12,
10,
13,
24,
15,
16,
39,
15,
47,
33,
52,
93,
99,
66,
38,
13,
16,
19,
17,
14,
23,
25,
24,
19,
42,
36,
54,
58,
76,
68,
107,
106,
129,
128,
130,
154,
141,
115,
115,
91,
87,
66,
39,
33,
34,
27,
14,
15,
10,
15,
13,
13,
11,
11,
12,
16,
11,
16,
11,
10,
12,
10,
16,
16,
10,
14,
22,
41,
38,
53,
53,
68,
87,
65,
42,
19,
14,
14,
17,
19,
21,
21,
32,
29,
41,
50,
35,
53,
66,
65,
70,
90,
137,
100,
132,
143,
139,
122,
116,
111,
69,
70,
60,
32,
21,
22,
16,
11,
12,
15,
10,
10,
17,
12,
10,
10,
13,
15,
13,
14,
11,
40,
48,
41,
45,
65,
80,
67,
19,
12,
11,
13,
14,
16,
16,
29,
25,
25,
34,
26,
59,
45,
75,
96,
83,
97,
96,
149,
155,
151,
110,
107,
78,
82,
58,
60,
53,
30,
23,
14,
26,
18,
20,
16,
10,
15,
10,
10,
10,
12,
10,
15,
25,
21,
58,
45,
53,
66,
93,
76,
44,
16,
17,
11,
14,
14,
13,
14,
19,
16,
19,
13,
23,
21,
28,
45,
41,
33,
49,
44,
65,
50,
95,
70,
95,
123,
157,
132,
154,
124,
115,
100,
88,
65,
45,
17,
27,
34,
24,
18,
14,
14,
21,
11,
10,
12,
11,
10,
15,
14,
11,
13,
13,
10,
11,
13,
17,
21,
37,
32,
55,
77,
72,
65,
46,
42,
15,
55,
62,
75,
76,
95,
100,
127,
122,
142,
129,
163,
112,
118,
77,
64,
45,
38,
24,
34,
40,
12,
13,
26,
17,
26,
28,
27,
50,
41,
19,
15,
11,
13,
13,
10,
13,
13,
29,
34,
36,
55,
52,
79,
79,
70,
32,
10,
69,
49,
61,
72,
87,
78,
123,
140,
162,
175,
143,
129,
108,
91,
73,
73,
45,
27,
24,
28,
14,
13,
17,
19,
24,
29,
25,
47,
44,
12,
10,
10,
10,
10,
10,
11,
11,
14,
10,
10,
12,
10,
27,
10,
12,
139,
114,
111,
88,
82,
56,
40,
28,
29,
14,
36,
21,
64,
70,
69,
77,
113,
76,
60,
15,
40,
37,
71,
77,
67,
92,
105,
118,
104,
160,
16,
20,
14,
20,
24,
29,
30,
45,
51,
15,
20,
11,
14,
15,
10,
14,
12,
21,
25,
31,
35,
57,
70,
61,
53,
38,
15,
13,
12,
10,
12,
21,
19,
17,
33,
31,
31,
51,
49,
67,
62,
83,
111,
105,
107,
121,
159,
140,
121,
74,
62,
67,
53,
30,
26,
27,
18,
10,
17,
12,
92,
17,
17,
10,
10,
14035,
27,
141,
45,
37,
18,
25,
59,
16,
16,
22,
43,
135,
128,
102,
96,
75,
56,
44,
36,
15,
68,
18,
35,
13,
19,
18,
18,
17,
51,
39,
36,
54,
56,
97,
105,
64,
42,
10,
186,
62,
59,
52,
60,
76,
103,
135,
133,
175,
12,
22,
17,
19,
19,
32,
27,
40,
39,
39,
17,
19,
23,
14,
14,
16,
13,
11,
11,
17,
12,
11,
31,
10,
17,
12,
11,
27,
395,
34,
17,
25,
24,
20,
21,
20,
1007,
16,
26,
42,
28,
14,
27,
34,
25,
35,
45,
41,
50,
56,
95,
79,
58,
45,
12,
14,
22,
20,
11,
25,
25,
30,
43,
46,
47,
57,
55,
73,
100,
112,
87,
132,
133,
190,
159,
114,
105,
115,
88,
60,
38,
19,
29,
27,
29,
24,
29,
33,
40,
10,
15,
10,
10,
11,
11,
10,
12,
11,
13,
14,
10,
11,
10,
11,
12,
12,
13,
10,
15,
10,
24,
21,
11,
19,
24,
21,
28,
37,
41,
47,
60,
38,
74,
88,
94,
121,
151,
138,
124,
87,
106,
100,
68,
65,
32,
22,
21,
16,
208,
30,
28,
38,
47,
51,
60,
58,
27,
16,
17,
27,
14,
12,
10,
10,
16,
15,
18,
19,
15,
11,
10,
21,
31,
32,
30,
30,
57,
58,
58,
61,
79,
66,
46,
44,
40,
15,
29,
13,
10,
24,
37,
18,
18,
21,
24,
35,
30,
39,
23,
14,
15,
14,
20,
16,
24,
26,
37,
25,
11,
14,
11,
10,
10,
10,
11,
141,
120,
113,
114,
88,
82,
85,
45,
24,
190,
17,
19,
35,
32,
24,
54,
59,
58,
44,
66,
65,
78,
92,
106,
115,
158,
138,
145,
125,
139,
15,
23,
17,
37,
58,
59,
39,
15,
15,
12,
13,
12,
11,
14,
10,
13,
18,
16,
19,
13,
23,
23,
24,
14,
12,
15,
27,
17,
13,
27,
32,
40,
30,
38,
30,
49,
63,
69,
67,
22,
16,
22,
53,
43,
43,
39,
35,
29,
74,
53,
36,
26,
35,
40,
26,
22,
26,
10,
23,
11,
14,
23,
28,
29,
31,
14,
10,
12,
12,
10,
16,
13,
10,
11,
11,
15,
17,
18,
61,
71,
45,
51,
29,
26,
17,
18,
13,
15,
32,
28,
38,
36,
39,
44,
57,
54,
75,
78,
14,
22,
35,
37,
39,
42,
59,
29,
31,
11,
17,
14,
20,
30,
17,
20,
36,
15,
12,
19,
10,
15,
27,
41,
45,
44,
51,
44,
64,
56,
147,
58,
10,
20,
10,
12,
17,
11,
18,
20,
29,
66,
49,
43,
56,
39,
34,
23,
16,
13,
16,
28,
27,
24,
30,
36,
51,
70,
35,
20,
12,
10,
11,
10,
13,
11,
10,
23,
35,
52,
39,
36,
41,
54,
68,
75,
77,
41,
44,
51,
34,
29,
31,
18,
26,
12,
24,
24,
20,
26,
28,
42,
52,
47,
35,
25,
13,
11,
15,
14,
13,
11,
16,
124,
32,
28,
14,
15,
12,
36,
38,
30,
35,
34,
37,
39,
69,
76,
60,
14,
25,
40,
27,
37,
31,
53,
34,
18,
53,
57,
60,
43,
37,
29,
20,
15,
19,
14,
12,
10,
10,
15,
14,
13,
15,
21,
29,
21,
5430,
52,
18,
16,
240,
43,
18,
10,
103,
32,
48,
80,
57,
56,
50,
34,
30,
18,
46,
47,
57,
63,
59,
73,
88,
80,
155,
95,
76,
64,
52,
65,
51,
45,
24,
24,
19,
67,
13,
15,
12,
21,
14,
12,
14,
11,
11,
18,
12,
27,
24,
44,
76,
38,
38,
12,
10,
18,
41,
15,
12,
12,
83,
14,
61,
12,
38,
31,
79,
89,
70,
44,
44,
32,
24,
34,
32,
158,
20,
11,
22,
15,
59,
64,
59,
49,
62,
69,
89,
86,
99,
96,
41,
37,
46,
67,
54,
53,
58,
38,
28,
13,
14,
18,
21,
24,
23,
26,
37,
23,
27,
28,
41,
11,
12,
12,
11,
40,
11,
52,
13,
16,
13,
42,
12,
14,
11,
12,
38,
29,
41,
50,
64,
63,
62,
53,
26,
14,
14,
16,
24,
12,
22,
30,
39,
42,
44,
43,
48,
39,
60,
72,
67,
72,
92,
102,
94,
81,
92,
73,
64,
41,
28,
40,
24,
18,
38,
252,
12,
19,
12,
17,
19,
17,
14,
16,
20,
10,
13,
18,
18,
14,
29,
104,
11,
15,
11,
29,
24,
10,
10,
10,
12,
10,
15,
15,
20,
24,
19,
25,
21,
35,
48,
45,
40,
43,
28,
11,
10,
14,
23,
11,
25,
19,
25,
45,
28,
63,
28,
44,
53,
57,
59,
85,
81,
92,
92,
75,
72,
61,
39,
36,
25,
32,
27,
21,
28,
55,
35,
42,
72,
54,
77,
59,
36,
33,
35,
20,
25,
22,
20,
12,
16,
10,
14,
17,
25,
11,
10,
10,
22,
11,
14,
12,
17,
11,
16,
11,
25,
15,
28,
34,
27,
30,
26,
48,
40,
41,
43,
65,
77,
66,
102,
90,
45,
35,
41,
49,
78,
80,
86,
69,
46,
17,
80,
65,
79,
47,
38,
26,
28,
23,
26,
42,
16,
12,
11,
17,
15,
11,
11,
10,
13,
28,
12,
13,
11,
10,
10,
42,
38,
29,
36,
58,
49,
58,
38,
37,
10,
21,
16,
13,
12,
10,
27,
27,
39,
40,
53,
62,
50,
43,
56,
61,
65,
82,
90,
87,
107,
74,
61,
80,
58,
35,
35,
19,
25,
21,
20,
12,
15,
14,
14,
13,
14,
12,
13,
11,
39,
30,
56,
55,
51,
63,
76,
78,
65,
90,
85,
71,
61,
54,
48,
52,
23,
27,
35,
19,
32,
33,
28,
49,
60,
69,
55,
53,
25,
11,
16,
22,
14,
14,
30,
26,
31,
44,
30,
30,
10,
13,
17,
12,
17,
11,
11,
10,
22,
13,
15,
39,
47,
44,
46,
65,
70,
69,
88,
102,
102,
75,
71,
56,
46,
43,
46,
30,
24,
17,
34,
33,
29,
48,
44,
55,
51,
46,
33,
27,
11,
12,
13,
18,
14,
23,
14,
34,
32,
10,
10,
14,
11,
18,
10,
19,
12,
24,
50,
56,
51,
73,
81,
60,
72,
90,
84,
64,
83,
47,
46,
34,
32,
36,
14,
13,
24,
34,
29,
25,
37,
28,
61,
59,
30,
16,
17,
10,
16,
17,
19,
18,
24,
29,
37,
17,
15,
13,
10,
32,
40,
48,
66,
50,
74,
64,
76,
106,
97,
86,
72,
40,
59,
31,
25,
14,
20,
17,
20,
34,
25,
34,
52,
39,
54,
45,
30,
19,
21,
10,
22,
18,
20,
35,
33,
28,
11,
16,
33,
44,
49,
38,
60,
64,
69,
63,
93,
81,
77,
53,
54,
47,
56,
37,
31,
12,
16,
16,
17,
29,
25,
24,
32,
40,
37,
27,
20,
17,
19,
14,
12,
23,
20,
30,
32,
34,
13,
12,
13,
10,
14,
10,
34,
17,
42,
11,
13,
26,
35,
14,
19,
18,
10,
49,
50,
110,
16,
36,
10,
13,
19,
27,
45,
29,
17,
21,
10,
10,
12,
22,
14,
151,
32,
10,
25,
36,
12,
14,
17,
97,
100,
63,
98,
55,
72,
64,
86,
86,
136,
58,
45,
44,
58,
69,
44,
38,
49,
49,
41,
49,
51,
137,
32,
42,
41,
41,
50,
57,
49,
11,
17,
14,
10,
12,
39,
10,
11,
10,
15,
94,
35,
19,
24,
24,
11,
12,
11,
13,
116,
47,
78,
88,
47,
37,
43,
59,
69,
83,
107,
42,
74,
76,
58,
41,
34,
29,
37,
44,
134,
40,
35,
38,
37,
53,
41,
58,
64,
50,
10,
16,
20,
13,
34,
18,
38,
32,
10,
11,
16,
32,
10,
10,
11,
10,
57,
30,
56,
79,
94,
56,
41,
39,
42,
60,
59,
84,
82,
37,
48,
64,
26,
45,
42,
41,
37,
30,
52,
34,
44,
129,
28,
36,
38,
55,
50,
36,
155,
10,
12,
11,
14,
26,
25,
11,
10,
26,
10,
16,
14,
17,
19,
67,
52,
68,
73,
46,
28,
39,
30,
55,
62,
77,
30,
84,
87,
72,
40,
38,
41,
33,
35,
38,
38,
40,
121,
31,
31,
55,
37,
41,
39,
16,
12,
10,
10,
64,
17,
17,
28,
23,
11,
38,
19,
14,
13,
52,
59,
54,
66,
27,
33,
38,
22,
43,
40,
71,
49,
96,
98,
66,
36,
31,
26,
31,
21,
31,
32,
135,
51,
39,
22,
39,
37,
40,
42,
12,
13,
19,
11,
53,
13,
13,
77,
19,
10,
15,
31,
20,
12,
44,
62,
45,
64,
25,
14,
27,
26,
25,
39,
43,
41,
52,
63,
64,
69,
30,
36,
30,
23,
84,
28,
38,
41,
29,
38,
22,
15,
35,
22,
15,
21,
33,
12,
12,
26,
19,
32,
35,
51,
55,
33,
18,
18,
16,
13,
27,
32,
46,
57,
46,
72,
47,
39,
24,
16,
23,
76,
15,
28,
25,
22,
21,
36,
25,
24,
23,
15,
10,
23,
37,
17,
14,
32,
41,
36,
37,
16,
19,
13,
21,
18,
18,
40,
56,
34,
80,
44,
48,
48,
30,
20,
15,
83,
24,
15,
22,
17,
29,
28,
32,
19,
23,
43,
13,
10,
13,
13,
13,
10,
20,
27,
46,
43,
18,
14,
15,
14,
13,
15,
23,
43,
17,
26,
37,
33,
46,
38,
32,
25,
101,
25,
11,
20,
22,
28,
17,
19,
19,
41,
14,
10,
15,
13,
11,
18,
25,
48,
26,
17,
11,
16,
12,
17,
12,
28,
41,
23,
26,
54,
42,
37,
32,
16,
17,
60,
23,
26,
25,
20,
14,
24,
16,
13,
19,
17,
22,
11,
96,
18,
15,
30,
25,
39,
43,
55,
80,
88,
59,
14,
14,
13,
19,
34,
39,
23,
28,
10,
77,
74,
52,
53,
36,
25,
16,
20,
10,
11,
11,
10,
10,
12,
16,
11,
14,
10,
14,
12,
10,
12,
14,
13,
17,
38,
27,
34,
44,
47,
62,
77,
67,
10,
10,
24,
19,
23,
22,
24,
19,
26,
82,
63,
56,
64,
41,
28,
22,
19,
13,
13,
15,
10,
11,
10,
10,
17,
13,
14,
12,
25,
27,
26,
43,
52,
56,
64,
58,
75,
102,
12,
11,
21,
27,
21,
33,
31,
14,
11,
112,
70,
75,
40,
54,
47,
18,
19,
15,
12,
14,
10,
13,
15,
13,
13,
10,
24,
16,
22,
15,
35,
44,
51,
44,
61,
61,
54,
13,
17,
18,
23,
26,
22,
19,
29,
14,
10,
14,
15,
73,
72,
45,
54,
46,
26,
33,
13,
10,
14,
13,
12,
15,
10,
12,
12,
100,
18,
28,
24,
33,
36,
37,
69,
66,
100,
76,
21,
13,
10,
23,
24,
38,
39,
12,
82,
55,
59,
51,
40,
27,
23,
12,
13,
12,
10,
11,
10,
11,
10,
19,
16,
19,
10,
15,
12,
19,
20,
21,
33,
40,
34,
49,
63,
87,
72,
15,
14,
22,
18,
15,
25,
31,
17,
74,
49,
64,
41,
35,
35,
22,
13,
14,
11,
11,
10,
15,
11,
15,
12,
10,
10,
19,
10,
15,
28,
26,
24,
38,
33,
39,
64,
59,
71,
89,
60,
57,
54,
61,
51,
31,
17,
14,
12,
23,
19,
24,
44,
46,
20,
15,
14,
12,
13,
10,
10,
16,
24,
11,
11,
11,
19,
11,
18,
20,
25,
34,
53,
47,
51,
61,
79,
71,
12,
10,
11,
18,
20,
18,
25,
28,
21,
64,
62,
57,
42,
34,
36,
19,
12,
15,
11,
14,
12,
12,
14,
14,
10,
12,
24,
15,
14,
17,
21,
19,
26,
24,
44,
49,
57,
52,
19,
13,
18,
31,
21,
25,
23,
78,
58,
44,
59,
46,
23,
20,
10,
13,
13,
13,
12,
11,
15,
13,
34,
50,
114,
72,
83,
91,
102,
174,
109,
65,
44,
36,
59,
42,
36,
77,
56,
46,
47,
31,
53,
77,
28,
32,
57,
46,
41,
47,
37,
46,
42,
41,
20,
10,
16,
56,
19,
10,
19,
12,
11,
15,
10,
11,
66,
69,
52,
82,
57,
57,
115,
92,
82,
51,
36,
53,
60,
50,
66,
44,
50,
25,
41,
45,
47,
41,
45,
63,
40,
41,
43,
50,
41,
41,
36,
35,
39,
29,
10,
11,
53,
148,
54,
73,
130,
87,
61,
42,
47,
47,
52,
42,
52,
47,
48,
47,
40,
38,
37,
30,
95,
29,
32,
36,
32,
38,
28,
41,
47,
24,
10,
47,
11,
11,
28,
23,
11,
15,
14,
12,
11,
37,
57,
68,
91,
68,
44,
42,
80,
105,
95,
64,
46,
59,
41,
47,
36,
29,
35,
43,
32,
39,
29,
102,
30,
35,
34,
21,
38,
31,
36,
31,
40,
24,
10,
16,
37,
10,
20,
11,
50,
125,
57,
81,
134,
115,
123,
50,
40,
50,
34,
52,
60,
44,
48,
46,
41,
35,
45,
40,
83,
25,
33,
32,
35,
44,
58,
35,
41,
23,
38,
17,
29,
16,
10,
13,
10,
49,
13,
11,
23,
44,
115,
70,
72,
91,
51,
54,
46,
30,
37,
51,
37,
44,
45,
42,
42,
32,
42,
41,
22,
60,
28,
35,
28,
27,
38,
32,
40,
27,
23,
36,
18,
18,
14,
38,
11,
17,
20,
31,
33,
23,
34,
24,
18,
18,
17,
93,
22,
65,
64,
45,
26,
23,
21,
22,
19,
58,
19,
18,
15,
17,
26,
15,
19,
26,
21,
20,
11,
12,
13,
13,
33,
23,
33,
14,
16,
15,
19,
12,
14,
20,
17,
15,
13,
11,
16,
21,
12,
23,
11,
14,
15,
14,
12,
13,
15,
14,
11,
12,
10,
11,
10,
15,
18,
20,
10,
17,
73,
20,
10,
12,
10,
14,
54,
12,
10,
11,
18,
100,
16,
16,
12,
17,
11,
10,
18,
16,
21,
24,
35,
28,
51,
56,
64,
89,
87,
84,
70,
76,
57,
56,
47,
48,
15,
12,
10,
13,
13,
12,
15,
30,
31,
37,
12,
18,
21,
16,
15,
17,
10,
16,
12,
20,
18,
12,
14,
12,
14,
12,
15,
22,
31,
33,
26,
38,
64,
77,
78,
87,
70,
189,
24,
85,
79,
50,
32,
26,
18,
12,
22,
34,
42,
34,
28,
10,
20,
14,
24,
14,
12,
12,
14,
16,
14,
10,
11,
14,
14,
15,
21,
17,
19,
26,
44,
38,
50,
67,
63,
72,
76,
19,
18,
19,
27,
19,
38,
28,
33,
20,
90,
69,
73,
41,
36,
30,
28,
15,
19,
25,
18,
12,
14,
10,
10,
25,
81,
102,
70,
47,
56,
43,
22,
23,
11,
12,
29,
35,
39,
34,
62,
78,
75,
79,
80,
113,
936,
11,
12,
12,
11,
14,
28,
26,
24,
23,
31,
10,
14,
10,
13,
22,
14,
12,
12,
10,
11,
12,
11,
11,
43,
12,
20,
15,
29,
18,
14,
11,
11,
10,
10,
10,
68,
14,
15,
12,
12,
12,
15,
21,
14,
25,
18,
12,
13,
27,
15,
17,
16,
18,
27,
32,
10,
14,
10,
13,
49,
17,
17,
19,
25,
27,
15,
10,
12,
22,
17,
21,
17,
16,
12,
19,
18,
28,
22,
62,
21,
12,
11,
16,
15,
18,
11,
16,
15,
10,
14,
21,
17,
30,
10,
10,
17,
14,
20,
12,
25,
10,
19,
15,
20,
12,
49,
10,
12,
11,
18,
14,
23,
15,
10,
12,
10,
11,
24,
21,
11,
11,
40,
12,
10,
10,
11,
15,
10,
11,
12,
11,
16,
12,
11,
15,
11,
17,
12,
28,
28,
16,
11,
11,
11,
20,
20,
10,
22,
12,
42,
10,
15,
14,
14,
59,
11,
31,
13,
40,
10,
16,
11,
16,
13,
17,
17,
23,
10,
11,
12,
19,
10,
25,
16,
26,
14,
17,
19,
12,
20,
14,
10,
22,
27,
10,
12,
11,
43,
15,
10,
27,
41,
16,
23,
10,
11,
21,
11,
12,
17,
22,
11,
10,
10,
11,
108,
11,
12,
38,
12,
11,
12,
31,
20,
37,
33,
19,
13,
103,
16,
13,
20,
12,
10,
12,
13,
46,
11,
22,
17,
22,
29,
37,
30,
37,
19,
50,
25,
15,
18,
10,
14,
10,
23,
12,
10,
12,
14,
10,
10,
11,
15,
10,
11,
10,
11,
49,
38,
16,
13,
14,
10,
13,
12,
11,
19,
10,
10,
19,
91,
11,
18,
14,
11,
59,
13,
10,
66,
11,
10,
44,
17,
10,
14,
13,
12,
18,
14,
11,
20,
3077,
42,
41,
12,
14,
12,
15,
14,
11,
23,
89,
26,
10,
35,
21,
32,
24,
31,
34,
33,
91,
57,
77,
89,
109,
81,
70,
67,
18,
38,
17,
30,
31,
37,
32,
43,
64,
62,
62,
114,
81,
91,
129,
134,
158,
180,
193,
250,
236,
212,
195,
162,
118,
116,
105,
87,
41,
69,
48,
19,
42,
26,
29,
14,
21,
15,
12,
12,
17,
13,
18,
17,
26,
33,
12,
10,
15,
11,
10,
11,
10,
306,
36,
22,
17,
18,
20,
11,
12,
12,
18,
18,
32,
19,
33,
16,
22,
15,
28,
20,
47,
168,
64,
84,
67,
83,
84,
80,
36,
12,
26,
12,
13,
24,
33,
40,
41,
40,
61,
49,
35,
158,
136,
134,
117,
94,
107,
58,
48,
25,
64,
77,
81,
107,
111,
102,
118,
156,
180,
188,
28,
20,
22,
13,
11,
17,
12,
12,
10,
15,
11,
18,
26,
64,
11,
16,
70,
61,
14,
30,
19,
26,
20,
16,
18,
31,
25,
22,
15,
15,
36,
28,
108,
37,
48,
74,
90,
100,
120,
88,
32,
14,
20,
14,
19,
34,
36,
34,
29,
49,
47,
60,
65,
82,
85,
77,
142,
155,
145,
160,
171,
205,
178,
166,
158,
112,
73,
58,
66,
28,
25,
37,
35,
29,
24,
20,
27,
19,
16,
13,
10,
14,
20,
16,
16,
12,
13,
12,
26,
12,
11,
14,
22,
15,
12,
25,
23,
48,
43,
56,
86,
76,
30,
22,
11,
52,
22,
16,
12,
17,
39,
14,
15,
12,
13,
43,
65,
42,
47,
55,
82,
76,
82,
84,
84,
74,
76,
48,
58,
46,
42,
29,
24,
24,
41,
12,
14,
17,
20,
30,
25,
26,
29,
34,
40,
11,
15,
15,
10,
19,
13,
23,
27,
16,
17,
51,
56,
30,
38,
45,
57,
46,
48,
30,
16,
16,
14,
11,
20,
14,
12,
12,
11,
15,
12,
12,
12,
32,
14,
29,
27,
35,
49,
47,
56,
58,
39,
49,
53,
83,
84,
112,
80,
64,
76,
59,
42,
41,
30,
24,
19,
29,
10,
10,
11,
19,
19,
19,
14,
14,
17,
25,
18,
22,
15,
19,
19,
17,
28,
17,
11,
10,
13,
12,
51,
35,
41,
45,
60,
98,
86,
40,
21,
16,
71,
13,
12,
23,
21,
16,
32,
44,
38,
28,
56,
59,
48,
63,
84,
62,
82,
94,
114,
82,
67,
53,
50,
55,
41,
23,
31,
22,
19,
12,
18,
23,
36,
63,
37,
36,
54,
42,
47,
25,
17,
19,
12,
19,
20,
25,
27,
29,
43,
41,
53,
52,
57,
63,
77,
88,
79,
100,
115,
133,
124,
166,
162,
171,
154,
113,
113,
127,
90,
76,
86,
41,
31,
23,
18,
11,
32,
15,
15,
12,
12,
12,
16,
21,
10,
10,
13,
12,
17,
12,
22,
20,
23,
23,
10,
10,
10,
22,
15,
19,
15,
10,
12,
13,
15,
89,
77,
56,
62,
58,
45,
33,
36,
25,
21,
38,
40,
56,
58,
46,
78,
67,
51,
45,
13,
13,
11,
13,
22,
21,
28,
31,
29,
28,
43,
45,
49,
46,
61,
38,
46,
64,
66,
81,
10,
10,
14,
10,
22,
19,
10,
16,
10,
15,
13,
18,
13,
14,
10,
11,
27,
12,
18,
16,
21,
34,
33,
29,
34,
44,
47,
54,
50,
64,
73,
80,
97,
95,
75,
64,
67,
44,
41,
46,
25,
32,
38,
24,
22,
21,
20,
52,
30,
50,
49,
46,
21,
11,
11,
11,
25,
10,
10,
16,
16,
44,
50,
47,
35,
53,
69,
67,
70,
90,
94,
82,
78,
54,
57,
34,
56,
31,
17,
30,
57,
26,
27,
37,
47,
67,
68,
68,
36,
38,
14,
14,
17,
11,
13,
14,
13,
12,
14,
15,
15,
25,
27,
27,
34,
13,
13,
10,
35,
16,
15,
13,
28,
11,
10,
258,
60,
40,
45,
43,
65,
58,
77,
35,
14,
12,
11,
11,
18,
23,
26,
25,
34,
34,
38,
46,
50,
62,
62,
61,
97,
91,
124,
112,
115,
130,
132,
109,
68,
52,
60,
45,
21,
29,
27,
16,
18,
13,
10,
13,
10,
12,
11,
14,
17,
13,
10,
208,
26,
45,
54,
75,
52,
66,
56,
46,
15,
13,
13,
16,
16,
14,
16,
16,
15,
24,
18,
35,
45,
40,
47,
45,
53,
69,
82,
93,
101,
102,
112,
143,
114,
98,
123,
97,
72,
68,
53,
24,
27,
25,
12,
18,
13,
11,
11,
11,
12,
12,
10,
17,
15,
16,
10,
14,
46,
29,
54,
48,
41,
57,
69,
71,
44,
11,
45,
53,
75,
87,
90,
96,
91,
103,
135,
151,
158,
123,
100,
100,
84,
53,
50,
20,
13,
21,
14,
17,
13,
11,
13,
22,
33,
38,
42,
10,
11,
11,
15,
14,
14,
13,
11,
17,
11,
10,
13,
16,
11,
16,
16,
15,
38,
58,
68,
58,
83,
87,
103,
106,
137,
130,
129,
125,
133,
93,
64,
58,
38,
28,
25,
32,
24,
19,
34,
37,
69,
104,
100,
74,
32,
12,
14,
14,
31,
21,
24,
28,
29,
40,
14,
11,
12,
18,
16,
11,
11,
13,
19,
34,
36,
40,
41,
39,
71,
90,
62,
34,
19,
48,
50,
52,
73,
81,
65,
93,
121,
151,
136,
144,
99,
102,
91,
87,
94,
31,
28,
31,
20,
17,
19,
29,
17,
22,
48,
33,
12,
10,
14,
10,
11,
15,
11,
16,
16,
33,
12,
10,
10,
37,
22,
43,
45,
58,
78,
77,
50,
46,
17,
54,
35,
54,
63,
93,
82,
102,
118,
128,
154,
135,
122,
93,
89,
68,
58,
50,
34,
15,
20,
20,
13,
12,
26,
25,
30,
30,
30,
16,
10,
12,
18,
12,
15,
24,
35,
33,
33,
45,
52,
84,
74,
30,
11,
13,
15,
13,
12,
16,
16,
17,
30,
41,
42,
59,
69,
56,
72,
71,
93,
111,
129,
146,
142,
131,
118,
121,
120,
59,
74,
46,
22,
16,
15,
10,
11,
11,
12,
11,
14,
10,
13,
10,
10,
17,
34,
23,
25,
32,
41,
65,
88,
45,
29,
12,
41,
46,
55,
65,
70,
78,
94,
107,
117,
154,
114,
117,
100,
78,
66,
34,
41,
31,
10,
23,
11,
15,
17,
18,
13,
19,
18,
15,
29,
23,
46,
12,
15,
12,
10,
14,
21,
11,
51,
52,
63,
60,
79,
91,
109,
117,
112,
114,
23,
35,
18,
43,
65,
63,
77,
45,
33,
10,
12,
15,
12,
24,
28,
35,
21,
36,
104,
121,
84,
108,
48,
44,
29,
25,
25,
11,
10,
11,
10,
12,
312,
76,
17,
10,
15,
15,
13,
13,
72,
16,
12,
11,
10,
11,
49,
51,
28,
75,
49,
87,
111,
53,
45,
11,
20,
17,
24,
12,
16,
18,
17,
11,
13,
12,
2269,
12,
11,
14,
11,
15,
16,
23,
21,
28,
27,
34,
42,
50,
46,
49,
52,
58,
53,
84,
82,
102,
93,
102,
84,
90,
50,
47,
56,
25,
14,
13,
30,
12,
13,
11,
10,
21,
13,
15,
24,
28,
82,
74,
70,
54,
37,
32,
28,
27,
12,
16,
57,
41,
128,
65,
67,
75,
91,
48,
27,
17,
17,
10,
20,
18,
17,
26,
18,
25,
34,
32,
40,
52,
64,
57,
63,
88,
90,
82,
114,
92,
11,
20,
16,
13,
13,
18,
17,
13,
11,
11,
20,
11,
13,
11,
12,
19,
20,
12,
11,
11,
14,
46,
49,
50,
71,
36,
69,
67,
43,
27,
16,
16,
12,
10,
11,
17,
19,
31,
39,
53,
47,
43,
56,
62,
63,
74,
83,
88,
93,
108,
122,
102,
83,
52,
54,
48,
43,
40,
33,
19,
37,
20,
25,
23,
25,
35,
40,
28,
33,
42,
29,
24,
19,
21,
11,
18,
19,
11,
16,
13,
11,
19,
17,
20,
14,
12,
12,
40,
32,
34,
59,
43,
69,
57,
47,
35,
12,
12,
13,
15,
15,
19,
23,
27,
39,
34,
41,
57,
53,
59,
55,
80,
82,
77,
73,
93,
92,
109,
65,
66,
42,
38,
44,
28,
28,
54,
28,
11,
15,
15,
12,
15,
10,
13,
22,
16,
19,
35,
33,
31,
51,
89,
68,
90,
54,
25,
19,
61,
45,
49,
50,
84,
73,
85,
99,
84,
109,
79,
75,
76,
66,
43,
43,
42,
28,
37,
45,
14,
16,
11,
26,
29,
32,
31,
37,
33,
25,
10,
14,
11,
12,
14,
12,
11,
24,
11,
13,
13,
29,
15,
11,
10,
24,
18,
11,
10,
11,
37,
60,
49,
61,
85,
62,
71,
66,
98,
87,
87,
88,
78,
66,
44,
33,
28,
24,
21,
37,
33,
42,
54,
50,
55,
102,
69,
44,
30,
11,
15,
16,
17,
20,
32,
27,
42,
45,
13,
12,
11,
12,
15,
12,
10,
10,
22,
11,
26,
15,
16,
15,
27,
17,
26,
28,
41,
40,
53,
40,
54,
42,
49,
56,
67,
76,
84,
75,
50,
39,
42,
46,
61,
66,
71,
42,
24,
82,
74,
67,
68,
47,
36,
27,
28,
28,
36,
12,
12,
10,
11,
26,
23,
41,
36,
46,
69,
46,
30,
27,
13,
22,
13,
20,
15,
19,
34,
33,
31,
33,
49,
56,
44,
44,
50,
51,
72,
92,
69,
65,
84,
65,
64,
47,
49,
36,
28,
16,
21,
25,
19,
303,
10,
11,
45,
47,
45,
44,
51,
63,
81,
71,
98,
96,
95,
74,
62,
53,
59,
34,
46,
18,
24,
30,
34,
50,
61,
34,
40,
73,
50,
37,
26,
14,
13,
13,
25,
29,
28,
23,
35,
51,
16,
12,
10,
12,
14,
16,
11,
35,
40,
36,
43,
51,
51,
54,
57,
20,
55,
50,
39,
62,
54,
66,
72,
75,
111,
113,
67,
68,
62,
60,
44,
35,
38,
23,
19,
17,
14,
10,
13,
22,
14,
21,
19,
21,
39,
36,
11,
19,
18,
18,
29,
83,
60,
47,
50,
45,
34,
35,
26,
30,
54,
51,
43,
66,
64,
76,
66,
90,
73,
43,
44,
58,
103,
49,
45,
35,
29,
16,
16,
12,
13,
18,
20,
21,
24,
25,
43,
11,
11,
12,
14,
19,
49,
52,
46,
37,
63,
77,
41,
72,
87,
78,
95,
90,
64,
36,
41,
30,
29,
16,
19,
39,
25,
26,
28,
32,
46,
49,
45,
38,
22,
20,
19,
22,
17,
25,
29,
22,
34,
42,
27,
11,
11,
10,
17,
12,
17,
11,
53,
21,
20,
48,
13,
12,
10,
10,
11,
15,
16,
11,
26,
23,
45,
50,
69,
87,
100,
108,
90,
32,
30,
19,
34,
55,
66,
57,
70,
89,
106,
110,
115,
98,
96,
66,
63,
42,
40,
21,
26,
10,
20,
23,
21,
13,
13,
10,
10,
11,
13,
10,
21,
14,
19,
13,
14,
10,
18,
18,
12,
12,
20,
22,
43,
39,
56,
46,
64,
87,
73,
86,
12,
10,
16,
12,
29,
22,
40,
33,
31,
80,
47,
68,
51,
42,
44,
20,
17,
10,
16,
17,
12,
17,
13,
10,
10,
21,
14,
17,
18,
10,
10,
11,
11,
17,
30,
39,
31,
30,
45,
52,
54,
75,
53,
85,
87,
86,
87,
51,
38,
21,
33,
10,
13,
10,
12,
17,
37,
28,
33,
29,
23,
10,
11,
10,
13,
21,
18,
16,
16,
11,
23,
19,
26,
23,
45,
30,
51,
63,
83,
83,
82,
76,
70,
89,
70,
40,
36,
27,
15,
10,
13,
11,
21,
38,
30,
34,
24,
11,
16,
11,
17,
16,
19,
15,
15,
13,
14,
10,
16,
12,
16,
18,
12,
22,
19,
23,
31,
35,
54,
64,
61,
90,
95,
12,
14,
17,
13,
34,
43,
27,
23,
12,
11,
11,
11,
11,
83,
72,
73,
44,
58,
33,
27,
20,
13,
11,
15,
13,
13,
10,
19,
14,
24,
17,
27,
32,
50,
53,
61,
95,
90,
93,
16,
11,
16,
22,
18,
21,
35,
25,
22,
89,
65,
63,
49,
42,
40,
12,
11,
15,
11,
11,
14,
21,
11,
12,
13,
22,
14,
23,
21,
19,
40,
44,
40,
36,
50,
69,
86,
96,
18,
22,
18,
15,
12,
29,
28,
42,
13,
85,
72,
64,
53,
50,
30,
17,
12,
13,
15,
10,
11,
11,
13,
11,
15,
14,
14,
19,
19,
18,
33,
34,
36,
60,
73,
62,
76,
101,
10,
11,
15,
31,
20,
11,
29,
28,
13,
65,
75,
76,
64,
60,
38,
24,
10,
10,
11,
15,
10,
13,
11,
19,
11,
21,
16,
14,
13,
31,
39,
29,
47,
53,
46,
72,
71,
15,
13,
10,
20,
28,
30,
28,
28,
76,
55,
49,
45,
48,
43,
29,
13,
10,
11,
10,
14,
11,
12,
15,
12,
10,
11,
20,
13,
22,
20,
12,
11,
13,
14,
15,
10,
15,
13,
21,
16,
15,
10,
30,
27,
23,
36,
22,
35,
53,
39,
16,
25,
21,
29,
35,
64,
51,
65,
89,
118,
123,
103,
78,
69,
72,
44,
35,
22,
13,
10,
11,
24,
28,
15,
29,
23,
16,
13,
15,
15,
18,
17,
10,
12,
11,
11,
16,
10,
15,
10,
13,
13,
14,
18,
28,
23,
27,
37,
39,
47,
57,
69,
87,
104,
112,
82,
98,
64,
73,
63,
43,
19,
12,
10,
24,
22,
14,
16,
44,
23,
36,
38,
18,
17,
18,
17,
14,
15,
12,
10,
10,
10,
16,
17,
21,
10,
10,
13,
18,
15,
12,
13,
10,
14,
19,
16,
26,
37,
38,
52,
55,
74,
78,
104,
114,
22,
17,
13,
25,
22,
37,
37,
32,
19,
104,
84,
68,
40,
48,
35,
21,
19,
10,
18,
23,
19,
18,
18,
10,
10,
14,
15,
16,
29,
22,
37,
40,
59,
39,
56,
74,
71,
81,
84,
86,
82,
75,
102,
104,
72,
48,
41,
27,
14,
11,
14,
20,
19,
12,
23,
29,
34,
12,
14,
11,
11,
13,
14,
10,
15,
369,
23,
16,
10,
30,
11,
27,
14,
19,
20,
17,
27,
16,
10,
16,
12,
11,
15,
25,
10,
12,
16,
21,
13,
16,
12,
21,
10,
20,
31,
19,
12,
13,
1570,
14,
21,
11,
10,
16,
13,
14,
10,
10,
15,
19,
11,
20,
11,
10,
17,
12,
28,
18,
13,
10,
13,
13,
14,
12,
10,
12,
10,
12,
21,
17,
15,
10,
10,
16,
27,
278,
91,
74,
80,
44,
60,
359,
79,
42,
15,
15,
40,
17,
49,
22,
18,
32,
58,
16,
11,
21,
16,
63,
15,
13,
13,
14,
10,
1310,
11,
10,
17,
11,
16,
60,
38,
14,
22,
11,
16,
34,
41,
38,
22,
11,
11,
18,
10,
34,
14,
16,
11,
38,
10,
11,
119,
12,
11,
1091,
30,
30,
25,
16,
11,
15,
18,
14,
19,
11,
32,
33,
40,
35,
35,
36,
43,
16,
13,
12,
12,
12,
19,
11,
10,
17,
13,
11,
21,
30,
45,
61,
29,
35,
16,
12,
11,
12,
15,
13,
11,
12,
15,
12,
11,
15,
12,
11,
12,
13,
18,
46,
18,
10,
19,
14,
12,
16,
10,
17,
10,
12,
39,
11,
11,
11,
10,
10,
14,
10,
24,
10,
10,
23,
10,
10,
10,
198,
27,
17,
10,
2195,
12,
2225,
11,
14,
10,
31,
22,
14,
71,
72,
10,
16,
290,
10,
125,
30,
22,
178,
42,
14,
15,
18,
10,
11,
24,
19,
12,
10,
20,
35,
25,
31,
25,
10,
10,
10,
14,
11,
16,
27,
36,
39,
49,
59,
70,
67,
96,
89,
87,
55,
45,
52,
47,
36,
27,
11,
12,
11,
14,
20,
10,
20,
13,
13,
16,
15,
11,
11,
11,
20,
26,
12,
12,
19,
19,
30,
48,
28,
18,
16,
28,
44,
35,
49,
38,
52,
64,
85,
89,
84,
10,
10,
15,
11,
16,
19,
81,
92,
78,
62,
68,
25,
22,
19,
17,
13,
16,
15,
20,
20,
12,
10,
14,
10,
25,
18,
29,
26,
28,
45,
64,
59,
74,
87,
13,
15,
10,
13,
34,
34,
28,
23,
18,
12,
89,
74,
60,
48,
32,
35,
20,
18,
13,
10,
12,
10,
14,
18,
20,
15,
11,
12,
32,
13,
11,
10,
12,
15,
14,
12,
27,
19,
30,
41,
52,
53,
66,
68,
75,
73,
21,
11,
20,
16,
18,
31,
40,
23,
14,
85,
69,
83,
49,
46,
36,
13,
18,
12,
10,
11,
18,
18,
19,
16,
11,
11,
14,
17,
13,
10,
12,
12,
13,
32,
21,
35,
35,
33,
59,
40,
92,
62,
79,
18,
16,
21,
16,
23,
37,
33,
14,
12,
87,
69,
82,
52,
52,
33,
20,
11,
19,
28,
23,
29,
19,
28,
22,
33,
36,
40,
54,
67,
83,
77,
10,
20,
19,
12,
19,
33,
25,
16,
10,
10,
10,
10,
11,
13,
74,
50,
65,
46,
43,
34,
31,
10,
15,
43,
16,
15,
13,
10,
10,
15,
11,
16,
10,
27,
30,
28,
25,
42,
43,
51,
73,
100,
85,
13,
10,
11,
23,
15,
36,
39,
25,
10,
11,
10,
11,
10,
15,
82,
62,
68,
50,
46,
43,
24,
16,
16,
10,
21,
13,
16,
10,
13,
23,
15,
28,
29,
31,
32,
40,
44,
52,
66,
68,
76,
14,
11,
11,
14,
12,
17,
10,
13,
23,
42,
14,
87,
85,
57,
46,
43,
44,
14,
11,
11,
11,
18,
22,
21,
11,
11,
10,
11,
19,
26,
21,
24,
34,
46,
58,
56,
88,
88,
92,
10,
11,
16,
93,
82,
61,
58,
62,
41,
22,
16,
11,
18,
14,
28,
29,
21,
26,
12,
13,
15,
11,
17,
20,
30,
11,
16,
12,
11,
11,
13,
10,
15,
12,
18,
10,
15,
19,
104,
95,
87,
50,
34,
31,
24,
13,
14,
42,
38,
36,
41,
54,
67,
82,
68,
100,
119,
15,
13,
20,
14,
29,
24,
32,
32,
11,
12,
10,
14,
14,
19,
23,
28,
49,
21,
16,
11,
10,
11,
12,
11,
16,
11,
11,
10,
15,
10,
10,
12,
10,
20,
23,
30,
30,
34,
31,
54,
38,
53,
66,
91,
101,
80,
78,
64,
59,
68,
35,
19,
11,
13,
11,
14,
12,
10,
22,
24,
18,
44,
37,
13,
15,
11,
23,
13,
15,
10,
13,
14,
18,
14,
26,
12,
38,
18,
48,
12,
15,
11,
11,
17,
11,
18,
11,
14,
21,
16,
14,
23,
43,
28,
29,
61,
53,
74,
74,
92,
102,
11,
21,
31,
23,
38,
30,
32,
11,
98,
69,
54,
53,
43,
44,
32,
15,
14,
23,
27,
17,
12,
15,
20,
19,
18,
25,
22,
34,
46,
50,
60,
70,
77,
82,
87,
103,
82,
83,
90,
88,
82,
41,
15,
17,
15,
14,
17,
19,
10,
19,
26,
28,
15,
11,
10,
20,
35,
217,
12,
13,
46,
27,
23,
16,
49,
40,
19,
15,
14,
18,
22,
18,
27,
15,
14,
14,
13,
13,
11,
28,
2946,
15,
21,
27,
17,
20,
10,
15,
10,
10,
20,
13,
10,
19,
20,
10,
18,
10,
12,
13,
12,
16,
11,
17,
21,
38,
25,
21,
11,
10,
23,
28,
18,
13,
11,
13,
14,
13,
11,
10,
13,
12,
18,
10,
14,
10,
11,
21,
15,
17,
15,
13,
12,
13,
14,
24,
21,
26,
42,
33,
36,
38,
37,
36,
20,
14,
11,
20,
13,
10,
10,
24,
21,
11,
11,
10,
11,
15,
17,
151,
28,
22,
11,
66,
53,
13,
13,
14,
16,
14,
10,
23,
13,
10,
12,
12,
10,
10,
19,
11,
10,
13,
24,
44,
35,
14,
14,
10,
10,
11,
12,
18,
29,
12,
10,
11,
12,
49,
20,
11,
11,
12,
21,
11,
15,
10,
10,
10,
16,
10,
14,
10,
162,
653,
75,
32,
13,
59,
13,
46,
16,
19,
31,
49,
11,
13,
12,
12,
204,
964,
51,
43,
12,
12,
10,
21,
59,
10,
10,
10,
35,
11,
25,
18,
32,
13,
10,
21,
55,
10,
10,
23,
10,
10,
10,
20,
31,
11,
19,
29,
20,
18,
33,
37,
65,
71,
82,
96,
91,
93,
68,
60,
43,
34,
45,
27,
16,
10,
12,
12,
11,
12,
18,
16,
12,
21,
35,
30,
25,
20,
10,
17,
13,
15,
18,
13,
10,
14,
12,
10,
10,
11,
11,
10,
10,
13,
35,
15,
29,
45,
51,
48,
66,
69,
65,
99,
21,
10,
15,
29,
26,
19,
40,
14,
92,
63,
72,
56,
39,
29,
31,
12,
13,
15,
10,
14,
11,
20,
15,
12,
14,
12,
12,
10,
11,
36,
26,
22,
43,
44,
22,
11,
24,
26,
30,
27,
37,
41,
55,
48,
68,
93,
84,
70,
64,
70,
48,
28,
33,
18,
10,
11,
17,
13,
11,
14,
11,
11,
12,
16,
21,
17,
12,
24,
29,
31,
44,
67,
44,
60,
88,
96,
100,
15,
20,
16,
19,
35,
46,
33,
14,
94,
68,
65,
46,
41,
39,
16,
10,
12,
19,
16,
16,
12,
10,
18,
13,
18,
16,
14,
21,
30,
35,
39,
53,
65,
53,
83,
77,
10,
21,
20,
16,
32,
25,
24,
29,
10,
82,
82,
53,
51,
36,
44,
20,
16,
11,
10,
13,
11,
11,
11,
19,
13,
13,
17,
13,
18,
21,
25,
31,
29,
20,
58,
76,
79,
63,
88,
14,
12,
10,
14,
19,
21,
35,
30,
17,
82,
68,
69,
52,
48,
26,
24,
17,
16,
11,
10,
15,
20,
15,
12,
13,
15,
26,
16,
30,
34,
45,
55,
46,
67,
98,
85,
11,
16,
25,
16,
17,
17,
27,
40,
14,
96,
66,
72,
63,
35,
39,
16,
13,
10,
11,
15,
16,
11,
11,
12,
12,
24,
15,
13,
14,
15,
22,
19,
16,
28,
54,
38,
41,
59,
75,
58,
14,
10,
12,
11,
15,
30,
31,
26,
11,
70,
59,
77,
64,
43,
34,
30,
16,
10,
24,
13,
14,
14,
24,
34,
41,
46,
40,
46,
51,
70,
64,
82,
12,
21,
20,
29,
29,
29,
21,
72,
77,
75,
53,
46,
31,
29,
12,
10,
15,
10,
15,
10,
15,
10,
46,
24,
10,
14,
13,
13,
11,
10,
12,
15,
11,
16,
15,
26,
44,
28,
44,
48,
59,
72,
96,
103,
106,
16,
14,
19,
20,
31,
32,
51,
45,
11,
108,
69,
66,
63,
37,
42,
17,
12,
13,
25,
20,
18,
20,
12,
12,
14,
11,
12,
15,
12,
11,
11,
14,
15,
10,
14,
10,
102,
85,
61,
58,
51,
37,
20,
15,
28,
23,
44,
52,
61,
62,
65,
76,
73,
109,
14,
16,
17,
25,
18,
29,
33,
30,
20,
12,
13,
16,
11,
11,
16,
15,
17,
10,
11,
12,
17,
19,
20,
11,
11,
16,
10,
11,
10,
18,
28,
24,
29,
35,
39,
65,
65,
82,
89,
74,
16,
10,
15,
14,
26,
27,
39,
37,
17,
86,
75,
67,
54,
60,
38,
27,
12,
11,
18,
10,
16,
10,
10,
10,
15,
18,
15,
46,
34,
32,
45,
50,
54,
52,
85,
62,
86,
81,
99,
83,
91,
72,
36,
40,
18,
15,
11,
12,
22,
13,
21,
22,
33,
33,
10,
10,
12,
12,
12,
22,
1601,
12,
14,
15,
25,
10,
12,
12,
19,
14,
11,
12,
10,
24,
13,
23,
186,
12,
10,
26,
23,
12,
12,
12,
18,
14,
11,
13,
14,
14,
12,
18,
25,
15,
18,
16,
16,
10,
17,
13,
19,
25,
14,
14,
14,
11,
15,
4716,
11,
57,
2366,
147,
11,
11,
12,
310,
30,
30,
12,
591,
224,
16,
18,
10,
12,
19,
73,
20,
12,
18,
12,
14,
22,
22,
37,
38,
45,
25,
28,
37,
117,
32,
25,
24,
22,
13,
17,
10,
11,
24,
12,
11,
10,
19,
14,
19,
10,
10,
23,
10,
17,
32,
30,
45,
20,
31,
10,
10,
12,
12,
37,
10,
13,
14,
26,
10,
12,
11,
11,
10,
11,
11,
13,
13,
14,
10,
12,
19,
11,
10,
10,
16,
13,
13,
16,
11,
15,
12,
12,
13,
18,
12,
10,
10,
12,
10,
73,
20,
14,
20,
23,
15,
12,
21,
10,
11,
11,
14,
18,
13,
11,
17,
10,
13,
18,
27,
16,
24,
38,
45,
35,
10,
35,
33,
38,
43,
43,
51,
69,
85,
100,
85,
81,
81,
74,
53,
49,
39,
19,
10,
19,
10,
16,
14,
14,
16,
14,
11,
16,
14,
11,
13,
11,
16,
16,
14,
21,
21,
25,
32,
26,
63,
47,
60,
72,
66,
16,
12,
19,
17,
26,
47,
30,
17,
68,
61,
63,
50,
45,
29,
28,
14,
10,
16,
15,
12,
20,
14,
15,
11,
13,
11,
19,
24,
18,
50,
30,
56,
42,
49,
76,
83,
75,
61,
44,
65,
47,
40,
30,
15,
13,
14,
18,
25,
33,
29,
23,
12,
11,
13,
10,
11,
10,
14,
13,
13,
13,
21,
27,
27,
39,
33,
46,
47,
59,
50,
71,
11,
10,
12,
11,
25,
24,
45,
23,
91,
90,
66,
52,
36,
27,
22,
10,
11,
10,
11,
12,
15,
25,
13,
13,
12,
11,
22,
18,
28,
30,
35,
38,
54,
49,
89,
71,
17,
13,
14,
12,
15,
22,
41,
38,
21,
76,
91,
55,
57,
37,
39,
20,
17,
13,
19,
12,
10,
11,
10,
12,
12,
14,
21,
20,
20,
41,
46,
45,
44,
49,
65,
72,
74,
63,
66,
50,
38,
48,
26,
10,
10,
13,
18,
17,
21,
24,
22,
23,
10,
14,
11,
13,
15,
10,
10,
10,
17,
13,
35,
18,
29,
28,
16,
34,
29,
41,
47,
70,
16,
10,
10,
15,
17,
26,
28,
27,
12,
75,
47,
51,
38,
38,
40,
19,
13,
16,
13,
10,
11,
10,
14,
25,
23,
23,
27,
45,
56,
44,
53,
78,
53,
18,
10,
21,
28,
45,
26,
16,
83,
53,
60,
48,
41,
24,
25,
10,
11,
11,
10,
11,
10,
17,
12,
16,
32,
20,
28,
35,
44,
44,
68,
56,
58,
77,
81,
50,
34,
27,
25,
13,
10,
11,
12,
11,
20,
10,
23,
36,
26,
20,
16,
10,
10,
12,
14,
15,
11,
16,
14,
27,
31,
25,
34,
44,
41,
44,
69,
107,
92,
11,
11,
28,
21,
30,
22,
36,
25,
19,
74,
95,
56,
60,
48,
39,
20,
20,
21,
23,
13,
11,
11,
10,
12,
14,
20,
16,
10,
10,
16,
13,
13,
12,
11,
86,
96,
72,
62,
52,
28,
33,
18,
23,
60,
33,
35,
39,
53,
68,
63,
91,
82,
13,
18,
18,
27,
23,
54,
25,
18,
13,
13,
16,
17,
12,
14,
18,
11,
14,
12,
10,
18,
29,
29,
34,
47,
54,
52,
79,
62,
89,
18,
17,
21,
23,
36,
42,
33,
33,
23,
12,
13,
11,
13,
11,
17,
19,
85,
84,
74,
57,
39,
42,
12,
12,
15,
17,
10,
17,
10,
14,
17,
16,
15,
31,
152,
19,
19,
17,
12,
15,
10,
12,
14,
22,
26,
32,
42,
49,
54,
61,
76,
84,
97,
100,
80,
80,
62,
71,
36,
33,
21,
13,
11,
12,
13,
15,
25,
21,
17,
28,
32,
11,
10,
1339,
11,
12,
11,
11,
12,
12,
17,
12,
11,
10,
13,
15,
26,
12,
18,
28,
22,
30,
32,
33,
43,
34,
50,
32,
20,
21,
15,
16,
12,
10,
13,
15,
20,
32,
33,
22,
39,
34,
29,
42,
12,
16,
17,
11,
10,
10,
18,
16,
19,
13,
11,
11,
11,
10,
11,
15,
10,
16,
10,
13,
12,
12,
10,
10,
10,
11,
17,
12,
17,
10,
10,
10,
10,
10,
14,
10,
10,
12,
11,
13,
12,
12,
11,
11,
35,
39,
10,
11,
18,
25,
20,
14,
10,
11,
10,
10,
13,
10,
10,
13,
10,
29,
30,
27,
37,
35,
58,
48,
71,
57,
104,
11,
19,
13,
19,
31,
38,
39,
32,
82,
65,
86,
58,
56,
44,
28,
16,
18,
12,
13,
15,
12,
17,
25,
12,
16,
23,
30,
36,
48,
49,
58,
58,
67,
80,
12,
11,
15,
16,
12,
29,
39,
23,
20,
15,
10,
14,
14,
16,
85,
78,
69,
52,
50,
35,
16,
16,
11,
16,
13,
13,
12,
13,
10,
12,
12,
27,
16,
28,
39,
43,
36,
59,
68,
64,
80,
13,
13,
12,
10,
27,
17,
24,
30,
14,
72,
69,
66,
44,
36,
40,
22,
15,
10,
10,
10,
14,
12,
11,
13,
11,
16,
16,
15,
16,
22,
46,
38,
35,
44,
38,
65,
79,
77,
78,
49,
51,
63,
38,
45,
25,
10,
10,
11,
12,
13,
18,
29,
32,
18,
24,
11,
10,
14,
10,
10,
12,
16,
12,
10,
11,
13,
15,
15,
18,
30,
44,
49,
53,
64,
67,
78,
82,
12,
12,
13,
19,
11,
84,
63,
66,
49,
21,
26,
26,
20,
10,
12,
14,
10,
24,
28,
28,
34,
14,
12,
12,
11,
10,
28,
20,
24,
16,
19,
24,
23,
49,
38,
59,
65,
78,
82,
17,
14,
16,
25,
35,
44,
22,
10,
83,
47,
58,
54,
39,
39,
25,
11,
14,
12,
15,
15,
11,
26,
26,
29,
20,
43,
43,
47,
47,
79,
88,
14,
20,
16,
26,
32,
33,
20,
13,
64,
58,
66,
44,
46,
39,
13,
20,
15,
14,
14,
12,
12,
20,
11,
13,
14,
28,
29,
27,
40,
58,
49,
59,
82,
95,
64,
89,
66,
68,
66,
44,
22,
19,
14,
17,
19,
29,
22,
19,
13,
20,
19,
10,
13,
11,
13,
11,
11,
22,
17,
12,
23,
26,
28,
40,
56,
40,
58,
73,
84,
68,
54,
41,
59,
33,
24,
18,
16,
17,
15,
20,
11,
31,
17,
10,
10,
23,
12,
13,
12,
13,
12,
19,
12,
15,
13,
10,
13,
13,
18,
32,
19,
23,
34,
56,
55,
59,
63,
79,
103,
104,
74,
70,
75,
39,
46,
27,
14,
15,
11,
20,
10,
10,
18,
26,
54,
32,
36,
13,
16,
11,
11,
13,
18,
15,
16,
10,
11,
10,
13,
13,
11,
14,
10,
16,
10,
19,
23,
24,
36,
38,
47,
63,
76,
97,
111,
96,
16,
12,
17,
24,
24,
33,
51,
42,
12,
71,
75,
78,
55,
44,
41,
14,
11,
27,
10,
10,
10,
17,
17,
16,
16,
25,
12,
19,
10,
10,
10,
11,
17,
15,
11,
11,
13,
11,
21,
22,
12,
24,
28,
41,
51,
58,
68,
71,
89,
90,
11,
14,
13,
14,
18,
21,
36,
22,
99,
87,
68,
68,
76,
24,
12,
12,
14,
22,
10,
11,
11,
11,
15,
21,
28,
38,
40,
39,
59,
53,
67,
94,
99,
79,
114,
98,
99,
73,
88,
62,
57,
34,
20,
13,
11,
13,
13,
15,
11,
21,
15,
27,
21,
15,
17,
12,
11,
15,
12,
10,
13,
14,
17,
19,
15,
15,
10,
14,
10,
31,
181,
1150,
14,
14,
10,
10,
11,
15,
17,
22,
19,
15,
36,
23,
23,
38,
32,
43,
19,
17,
22,
11,
18,
18,
10,
12,
12,
14,
11,
11,
20,
10,
29,
26,
18,
28,
22,
16,
10,
18,
10,
11,
13,
12,
18,
11,
10,
11,
10,
23,
10,
20,
10,
10,
36,
15,
11,
17,
12,
24,
17,
16,
14,
12,
16,
49,
30,
12,
30,
37,
14,
18,
23,
33,
27,
24,
42,
45,
79,
82,
75,
13,
33,
12,
17,
23,
36,
39,
22,
10,
71,
74,
55,
46,
40,
34,
36,
10,
14,
10,
11,
12,
17,
13,
10,
10,
10,
11,
14,
20,
14,
11,
12,
13,
10,
12,
27,
36,
28,
42,
37,
59,
49,
62,
66,
91,
17,
10,
15,
23,
46,
25,
16,
71,
65,
86,
42,
43,
20,
13,
11,
17,
10,
13,
17,
19,
18,
13,
15,
20,
23,
27,
25,
38,
58,
48,
61,
72,
79,
81,
69,
67,
46,
57,
32,
23,
14,
14,
13,
13,
13,
22,
30,
27,
35,
19,
24,
13,
15,
20,
14,
10,
15,
12,
20,
13,
14,
11,
20,
24,
33,
29,
37,
46,
68,
60,
91,
90,
12,
12,
14,
22,
24,
49,
34,
23,
10,
12,
10,
11,
16,
12,
72,
72,
65,
55,
45,
37,
16,
21,
12,
12,
12,
10,
14,
24,
16,
20,
19,
30,
27,
29,
46,
55,
54,
58,
68,
72,
92,
80,
52,
68,
38,
38,
30,
18,
15,
10,
15,
16,
14,
11,
25,
35,
31,
10,
11,
11,
23,
18,
17,
12,
10,
12,
13,
13,
15,
21,
26,
25,
29,
47,
47,
46,
55,
68,
10,
12,
14,
11,
14,
18,
28,
24,
17,
77,
75,
52,
43,
27,
35,
26,
14,
10,
10,
12,
10,
15,
21,
11,
17,
10,
10,
16,
13,
15,
29,
24,
41,
39,
53,
74,
79,
58,
76,
59,
76,
49,
43,
37,
29,
12,
13,
11,
16,
22,
26,
22,
20,
11,
20,
11,
10,
11,
11,
19,
13,
12,
10,
15,
14,
10,
17,
14,
22,
21,
27,
22,
18,
13,
15,
24,
24,
34,
22,
49,
45,
63,
77,
76,
72,
54,
55,
50,
41,
38,
23,
12,
10,
16,
10,
10,
13,
15,
26,
23,
25,
39,
39,
50,
50,
76,
64,
79,
12,
10,
13,
20,
22,
23,
23,
70,
75,
64,
53,
40,
27,
18,
10,
11,
10,
13,
10,
12,
16,
21,
16,
33,
31,
47,
28,
49,
56,
65,
86,
97,
97,
11,
75,
78,
45,
67,
60,
30,
16,
13,
11,
14,
19,
21,
22,
22,
44,
30,
16,
18,
10,
12,
17,
10,
16,
22,
17,
15,
17,
14,
11,
10,
10,
12,
11,
15,
11,
12,
20,
24,
18,
33,
26,
43,
28,
57,
81,
80,
77,
98,
78,
52,
72,
38,
28,
15,
13,
13,
11,
15,
26,
27,
25,
17,
20,
21,
12,
15,
15,
16,
13,
13,
10,
22,
18,
10,
10,
15,
23,
20,
28,
35,
20,
49,
59,
65,
55,
93,
79,
20,
15,
12,
20,
27,
32,
52,
36,
10,
91,
83,
64,
51,
54,
42,
28,
11,
12,
19,
15,
10,
11,
12,
12,
19,
20,
13,
32,
20,
59,
30,
56,
41,
75,
87,
68,
90,
105,
80,
95,
64,
69,
59,
37,
11,
11,
10,
10,
11,
20,
23,
19,
23,
10,
15,
10,
19,
11,
13,
13,
12,
12,
13,
13,
16,
12,
15,
10,
14,
11,
15,
161,
17,
37,
35,
13,
21,
13,
13,
13,
12,
12,
12,
10,
18,
1046,
11,
10,
15,
11,
15,
15,
22,
15,
28,
27,
36,
35,
23,
23,
29,
23,
17,
19,
169,
11,
12,
10,
11,
19,
13,
14,
11,
11,
18,
12,
16,
20,
37,
34,
34,
15,
11,
15,
10,
13,
11,
11,
10,
10,
16,
10,
22,
25,
10,
10,
13,
10,
11,
12,
25,
15,
11,
21,
19,
10,
18,
35,
10,
13,
12,
12,
10,
10,
20,
10,
17,
12,
12,
15,
17,
10,
1293,
45,
74,
74,
82,
148,
191,
171,
138,
70,
49,
58,
50,
58,
70,
78,
88,
117,
133,
109,
112,
127,
90,
90,
65,
51,
51,
28,
24,
28,
11,
14,
19,
15,
22,
28,
34,
44,
41,
11,
15,
16,
13,
10,
14,
18,
15,
17,
11,
20,
10,
10,
1784,
29,
30,
28,
77,
72,
82,
96,
67,
40,
42,
37,
43,
49,
50,
84,
79,
88,
139,
119,
111,
84,
75,
73,
61,
48,
38,
34,
23,
16,
15,
11,
11,
14,
10,
10,
11,
11,
14,
12,
18,
21,
14,
22,
36,
26,
10,
10,
32,
26,
23,
40,
41,
96,
83,
99,
56,
40,
12,
11,
14,
10,
16,
38,
42,
34,
52,
69,
79,
80,
84,
85,
107,
130,
121,
99,
63,
65,
46,
49,
22,
22,
16,
10,
12,
22,
19,
10,
19,
27,
20,
29,
12,
19,
12,
10,
11,
10,
11,
10,
23,
31,
31,
51,
38,
84,
90,
133,
67,
33,
13,
11,
10,
36,
31,
65,
47,
72,
73,
97,
90,
114,
106,
129,
96,
99,
107,
66,
57,
46,
28,
13,
22,
15,
11,
12,
25,
16,
16,
27,
24,
30,
11,
10,
29,
21,
36,
35,
69,
52,
92,
95,
79,
48,
10,
10,
13,
10,
38,
39,
38,
37,
59,
86,
83,
85,
100,
122,
127,
101,
110,
82,
65,
50,
46,
22,
13,
14,
11,
14,
15,
11,
16,
36,
21,
29,
15,
13,
10,
13,
10,
10,
29,
18,
26,
33,
66,
73,
98,
91,
71,
40,
38,
25,
26,
53,
47,
60,
78,
89,
105,
109,
134,
115,
84,
92,
73,
51,
50,
27,
23,
13,
11,
11,
10,
23,
15,
16,
14,
25,
14,
25,
32,
18,
10,
11,
13,
44,
18,
26,
32,
33,
57,
56,
83,
58,
41,
13,
12,
17,
36,
35,
50,
57,
56,
80,
103,
104,
115,
111,
119,
89,
80,
73,
65,
63,
58,
22,
17,
12,
14,
11,
14,
20,
22,
25,
30,
34,
10,
36,
24,
23,
47,
44,
50,
85,
89,
32,
15,
20,
27,
44,
45,
54,
58,
80,
87,
105,
135,
132,
80,
94,
67,
43,
40,
26,
20,
11,
16,
14,
13,
16,
12,
13,
18,
20,
35,
13,
19,
11,
10,
26,
23,
25,
34,
48,
77,
67,
54,
31,
32,
34,
49,
44,
53,
55,
75,
116,
94,
120,
87,
84,
82,
92,
50,
46,
27,
29,
20,
14,
11,
12,
14,
13,
18,
17,
22,
39,
44,
15,
32,
19,
10,
12,
11,
10,
11,
12,
14,
16,
37,
13,
27,
36,
48,
56,
67,
58,
37,
20,
53,
40,
36,
54,
58,
75,
85,
122,
116,
104,
113,
114,
85,
61,
54,
43,
36,
24,
17,
16,
13,
14,
19,
10,
12,
27,
27,
28,
13,
15,
14,
10,
12,
11,
30,
16,
37,
38,
29,
50,
56,
89,
41,
11,
11,
19,
11,
16,
13,
33,
42,
50,
63,
61,
72,
68,
112,
90,
125,
125,
92,
91,
72,
49,
31,
43,
13,
22,
14,
12,
19,
14,
18,
23,
23,
17,
40,
12,
21,
10,
11,
15,
10,
33,
15,
35,
27,
31,
19,
52,
51,
51,
41,
10,
33,
30,
37,
44,
69,
71,
74,
60,
99,
91,
93,
90,
54,
60,
45,
36,
21,
15,
13,
13,
11,
23,
21,
23,
17,
10,
11,
11,
11,
15,
10,
12,
16,
27,
25,
28,
42,
31,
35,
32,
52,
36,
46,
60,
47,
106,
85,
82,
73,
56,
66,
58,
39,
37,
26,
16,
11,
16,
13,
19,
25,
15,
28,
33,
34,
26,
13,
13,
25,
27,
24,
31,
35,
36,
35,
42,
67,
67,
51,
34,
45,
20,
35,
18,
12,
19,
11,
15,
13,
20,
29,
22,
39,
50,
23,
11,
17,
11,
12,
12,
21,
29,
10,
10,
17,
12,
20,
22,
26,
37,
48,
61,
48,
21,
19,
16,
19,
39,
22,
41,
44,
37,
44,
61,
43,
36,
42,
21,
31,
26,
25,
13,
11,
17,
10,
17,
12,
11,
11,
14,
16,
22,
18,
26,
27,
33,
30,
33,
41,
51,
52,
55,
50,
39,
24,
22,
16,
15,
20,
10,
14,
29,
32,
32,
43,
32,
21,
14,
10,
10,
17,
12,
14,
20,
11,
18,
35,
34,
32,
34,
34,
40,
39,
42,
13,
14,
17,
31,
19,
45,
48,
31,
11,
44,
39,
60,
29,
24,
26,
29,
18,
11,
11,
15,
10,
12,
11,
21,
18,
24,
16,
21,
20,
13,
35,
42,
52,
48,
16,
11,
11,
21,
16,
26,
36,
16,
10,
47,
38,
32,
32,
22,
19,
19,
14,
12,
10,
15,
13,
19,
18,
28,
26,
34,
21,
27,
37,
34,
53,
58,
57,
19,
16,
14,
31,
35,
44,
39,
18,
21,
46,
46,
39,
35,
28,
23,
28,
14,
11,
17,
22,
27,
11,
1675,
13,
13,
16,
25,
26,
10,
27,
29,
51,
42,
25,
16,
14,
19,
27,
27,
32,
32,
53,
53,
58,
64,
59,
56,
42,
33,
27,
20,
24,
11,
10,
20,
25,
60,
10,
10,
19,
12,
10,
10,
22,
24,
41,
10,
12,
47,
17,
19,
18,
22,
22,
26,
27,
61,
27,
35,
21,
33,
22,
40,
38,
43,
33,
43,
59,
62,
91,
43,
53,
55,
46,
32,
42,
26,
21,
15,
18,
11,
13,
22,
18,
18,
20,
13,
11,
12,
16,
17,
21,
30,
21,
14,
10,
32,
21,
43,
55,
45,
39,
23,
25,
19,
28,
40,
36,
40,
34,
46,
49,
33,
10,
11,
12,
15,
15,
11,
14,
16,
14,
57,
49,
53,
48,
28,
22,
11,
19,
20,
11,
11,
16,
31,
22,
23,
28,
53,
43,
53,
26,
12,
20,
21,
34,
35,
34,
46,
49,
56,
56,
55,
56,
55,
51,
39,
29,
20,
18,
16,
11,
17,
10,
10,
13,
12,
13,
21,
17,
13,
15,
24,
10,
12,
20,
27,
37,
47,
46,
43,
23,
19,
26,
27,
24,
32,
47,
51,
41,
55,
65,
64,
58,
52,
47,
48,
30,
27,
28,
24,
18,
15,
10,
15,
14,
12,
14,
24,
19,
18,
23,
29,
19,
15,
21,
27,
42,
45,
74,
32,
26,
21,
26,
21,
34,
23,
23,
44,
35,
54,
51,
66,
41,
44,
45,
26,
23,
21,
18,
11,
10,
133,
23,
14,
11,
13,
10,
17,
19,
24,
27,
23,
31,
30,
47,
67,
61,
30,
24,
33,
25,
32,
22,
33,
42,
54,
51,
62,
59,
51,
57,
44,
45,
37,
29,
22,
14,
17,
16,
11,
10,
10,
13,
12,
25,
21,
25,
11,
20,
17,
27,
21,
36,
32,
48,
48,
34,
16,
24,
16,
33,
33,
39,
53,
48,
44,
47,
70,
57,
40,
34,
35,
26,
19,
18,
11,
10,
15,
12,
12,
20,
25,
15,
28,
31,
22,
24,
22,
36,
37,
41,
54,
62,
17,
10,
23,
20,
44,
28,
42,
16,
11,
63,
38,
51,
44,
21,
19,
14,
14,
11,
13,
10,
22,
13,
16,
20,
10,
17,
24,
27,
23,
34,
34,
47,
42,
57,
55,
51,
36,
50,
35,
32,
26,
23,
11,
13,
11,
35,
17,
17,
31,
37,
41,
42,
27,
11,
12,
14,
12,
11,
19,
23,
23,
19,
33,
28,
35,
36,
49,
43,
18,
13,
12,
19,
25,
16,
19,
15,
49,
36,
36,
25,
15,
15,
12,
10,
14,
13,
11,
16,
13,
16,
18,
48,
27,
24,
40,
33,
50,
45,
50,
53,
10,
19,
16,
16,
32,
21,
20,
13,
10,
46,
43,
28,
30,
20,
30,
16,
11,
14,
13,
17,
20,
26,
246,
53,
76,
61,
15,
14,
19,
13,
11,
10,
22,
621,
13,
24,
35,
59,
73,
115,
87,
58,
31,
46,
38,
58,
65,
64,
98,
108,
96,
136,
135,
127,
83,
110,
129,
62,
70,
39,
25,
20,
32,
16,
15,
19,
13,
17,
23,
31,
114,
10,
12,
17,
10,
14,
11,
10,
11,
12,
10,
13,
19,
10,
14,
11,
10,
22,
47,
19,
15,
25,
38,
53,
76,
97,
75,
33,
34,
29,
46,
53,
59,
71,
75,
88,
107,
118,
104,
92,
82,
72,
53,
53,
36,
31,
15,
24,
10,
12,
20,
17,
29,
29,
30,
10,
10,
11,
17,
37,
35,
20,
21,
38,
131,
105,
62,
41,
20,
34,
40,
29,
32,
54,
64,
79,
91,
102,
112,
119,
91,
100,
82,
56,
47,
32,
29,
15,
21,
11,
10,
11,
12,
11,
10,
10,
11,
13,
10,
22,
19,
18,
11,
11,
10,
16,
10,
10,
13,
62,
18,
30,
37,
37,
47,
68,
74,
61,
42,
34,
42,
37,
47,
64,
52,
84,
81,
78,
98,
111,
93,
86,
73,
60,
36,
34,
28,
21,
14,
10,
19,
14,
17,
11,
15,
12,
26,
22,
22,
12,
12,
10,
38,
32,
25,
28,
40,
39,
66,
67,
41,
99,
44,
30,
36,
54,
68,
73,
85,
102,
113,
113,
126,
90,
90,
63,
69,
42,
33,
34,
14,
25,
10,
13,
14,
11,
11,
11,
10,
16,
14,
16,
27,
19,
26,
10,
12,
10,
16,
11,
10,
30,
12,
13,
18,
28,
38,
39,
62,
32,
34,
47,
44,
42,
59,
67,
61,
78,
94,
93,
116,
104,
98,
73,
59,
50,
40,
27,
24,
15,
16,
13,
14,
10,
10,
18,
12,
20,
20,
19,
25,
12,
13,
13,
17,
39,
25,
24,
29,
40,
58,
60,
50,
36,
18,
34,
40,
47,
52,
46,
68,
86,
134,
106,
109,
107,
98,
69,
63,
46,
47,
38,
21,
12,
15,
10,
24,
16,
12,
21,
22,
33,
10,
14,
11,
10,
11,
17,
38,
42,
37,
57,
53,
52,
38,
26,
19,
28,
48,
38,
50,
59,
59,
70,
91,
102,
87,
79,
88,
55,
47,
47,
29,
26,
16,
18,
11,
16,
13,
26,
26,
20,
19,
10,
10,
12,
19,
126,
24,
25,
39,
43,
67,
66,
44,
18,
22,
30,
33,
31,
42,
43,
57,
67,
82,
79,
114,
78,
69,
49,
46,
50,
27,
16,
14,
15,
19,
13,
16,
20,
17,
13,
11,
14,
45,
27,
16,
27,
45,
67,
90,
85,
24,
19,
13,
15,
17,
12,
14,
12,
17,
14,
30,
52,
62,
50,
78,
72,
102,
93,
106,
146,
119,
79,
100,
76,
66,
53,
38,
28,
16,
29,
14,
10,
11,
19,
20,
18,
28,
34,
36,
22,
12,
10,
10,
10,
17,
10,
11,
23,
10,
12,
14,
12,
10,
14,
28,
15,
26,
22,
36,
54,
65,
52,
28,
15,
31,
43,
51,
64,
85,
78,
77,
91,
118,
160,
102,
102,
92,
67,
81,
58,
30,
18,
26,
20,
20,
16,
17,
15,
30,
32,
24,
11,
10,
10,
10,
14,
41,
19,
17,
24,
51,
68,
82,
54,
43,
13,
47,
36,
47,
59,
58,
67,
83,
83,
111,
144,
128,
127,
102,
79,
53,
34,
42,
24,
19,
18,
12,
17,
17,
11,
16,
14,
14,
17,
26,
39,
27,
38,
10,
10,
12,
10,
11,
10,
10,
37,
12,
15,
18,
29,
36,
32,
27,
22,
12,
20,
28,
25,
35,
32,
44,
40,
34,
48,
46,
51,
43,
33,
33,
16,
20,
22,
16,
14,
12,
12,
10,
20,
15,
11,
11,
22,
20,
15,
15,
32,
26,
41,
33,
49,
21,
12,
14,
21,
27,
35,
30,
45,
43,
48,
42,
67,
46,
36,
37,
34,
24,
20,
13,
19,
17,
10,
15,
12,
13,
18,
23,
17,
14,
11,
36,
10,
23,
33,
29,
42,
29,
21,
14,
33,
17,
21,
33,
36,
29,
36,
58,
55,
70,
48,
41,
31,
33,
29,
26,
27,
13,
13,
11,
13,
14,
11,
12,
22,
20,
24,
19,
22,
13,
27,
34,
38,
49,
28,
27,
19,
20,
24,
16,
27,
26,
32,
43,
37,
35,
45,
59,
33,
50,
34,
30,
18,
16,
11,
23,
12,
12,
16,
17,
20,
10,
15,
13,
11,
41,
40,
49,
52,
69,
85,
83,
90,
97,
87,
82,
64,
80,
44,
42,
55,
38,
24,
19,
14,
15,
11,
13,
17,
17,
29,
35,
33,
35,
18,
24,
37,
48,
30,
35,
29,
22,
14,
26,
22,
25,
26,
40,
54,
51,
58,
60,
40,
17,
24,
48,
54,
38,
31,
15,
54,
44,
45,
19,
14,
16,
22,
16,
24,
14,
12,
14,
19,
15,
26,
21,
25,
14,
33,
24,
41,
38,
30,
26,
15,
17,
26,
28,
25,
28,
42,
39,
33,
42,
49,
57,
49,
42,
19,
29,
29,
19,
10,
11,
16,
15,
15,
29,
18,
19,
32,
29,
36,
52,
38,
33,
13,
28,
15,
31,
40,
40,
33,
48,
44,
52,
66,
69,
46,
58,
40,
27,
29,
25,
14,
12,
11,
10,
14,
21,
12,
24,
11,
11,
12,
16,
14,
25,
24,
33,
43,
63,
44,
18,
17,
22,
31,
25,
25,
34,
49,
55,
24,
56,
64,
55,
37,
49,
28,
25,
23,
13,
19,
12,
13,
14,
14,
12,
16,
15,
19,
10,
10,
13,
11,
11,
23,
19,
27,
26,
35,
54,
51,
22,
16,
26,
27,
28,
27,
28,
33,
33,
39,
41,
59,
62,
36,
32,
39,
24,
28,
20,
17,
11,
21,
11,
14,
16,
15,
13,
15,
35,
13,
13,
19,
33,
49,
48,
45,
14,
19,
34,
27,
31,
39,
38,
35,
60,
62,
59,
54,
62,
36,
45,
31,
21,
23,
14,
16,
16,
12,
16,
10,
18,
20,
17,
35,
52,
21,
15,
22,
19,
36,
53,
30,
32,
24,
18,
27,
31,
29,
28,
38,
40,
43,
47,
52,
45,
61,
29,
26,
19,
29,
24,
19,
12,
12,
16,
16,
21,
14,
26,
12,
15,
15,
35,
30,
46,
33,
29,
23,
33,
26,
30,
22,
30,
42,
44,
54,
58,
59,
57,
47,
54,
40,
30,
16,
15,
13,
12,
13,
11,
10,
17,
13,
15,
10,
10,
17,
16,
15,
22,
24,
44,
50,
40,
21,
14,
15,
18,
24,
24,
34,
21,
27,
42,
37,
61,
43,
50,
32,
31,
25,
31,
15,
17,
27,
18,
10,
14,
10,
15,
26,
22,
12,
13,
30,
37,
30,
30,
49,
33,
38,
42,
51,
50,
57,
54,
39,
19,
17,
19,
22,
16,
17,
14,
20,
13,
14,
32,
31,
46,
34,
25,
10,
12,
13,
13,
21,
18,
22,
15,
18,
30,
40,
34,
39,
47,
32,
24,
12,
29,
27,
21,
37,
39,
40,
52,
44,
49,
40,
49,
36,
25,
12,
19,
15,
16,
14,
25,
13,
15,
23,
14,
21,
16,
33,
23,
43,
39,
46,
38,
51,
58,
11,
14,
18,
30,
29,
30,
45,
23,
29,
41,
36,
27,
34,
30,
34,
15,
12,
11,
10,
20,
19,
29,
15,
12,
10,
17,
20,
21,
25,
24,
20,
22,
27,
17,
38,
24,
30,
24,
38,
36,
41,
59,
37,
33,
31,
25,
26,
18,
10,
13,
12,
10,
25,
22,
13,
23,
11,
13,
20,
21,
19,
13,
11,
25,
20,
23,
19,
25,
23,
31,
42,
33,
32,
41,
41,
40,
37,
16,
24,
12,
12,
16,
10,
14,
10,
958,
10,
21,
54,
50,
62,
96,
88,
66,
29,
11,
13,
24,
13,
13,
19,
24,
37,
45,
31,
31,
43,
77,
69,
79,
79,
101,
93,
136,
120,
140,
126,
117,
109,
70,
56,
46,
20,
28,
20,
16,
12,
10,
13,
11,
16,
11,
13,
11,
10,
10,
10,
15,
44,
25,
25,
27,
44,
49,
73,
76,
45,
36,
53,
35,
28,
56,
73,
87,
98,
110,
127,
118,
119,
110,
98,
80,
61,
58,
45,
27,
27,
17,
17,
12,
15,
10,
11,
17,
11,
23,
23,
29,
23,
23,
19,
12,
16,
13,
11,
39,
12,
29,
61,
48,
69,
85,
59,
63,
38,
37,
36,
30,
47,
60,
70,
78,
80,
102,
117,
142,
107,
81,
76,
86,
42,
47,
19,
19,
21,
13,
11,
14,
11,
13,
13,
15,
12,
17,
26,
23,
38,
18,
14,
12,
13,
11,
14,
15,
44,
22,
28,
41,
38,
44,
108,
92,
84,
36,
13,
11,
10,
11,
39,
45,
52,
63,
56,
75,
89,
81,
116,
110,
115,
119,
86,
80,
66,
64,
52,
22,
16,
22,
11,
14,
10,
13,
28,
19,
17,
26,
43,
14,
13,
10,
11,
10,
10,
12,
10,
30,
195,
22,
16,
23,
47,
103,
70,
72,
35,
39,
52,
42,
48,
65,
86,
72,
90,
135,
93,
118,
105,
102,
69,
80,
44,
49,
31,
23,
19,
10,
19,
13,
12,
10,
13,
12,
16,
21,
17,
29,
35,
20,
10,
10,
18,
16,
30,
45,
41,
45,
54,
60,
46,
34,
34,
31,
39,
53,
55,
67,
71,
106,
76,
114,
97,
101,
95,
70,
59,
40,
26,
26,
21,
11,
11,
13,
11,
13,
10,
14,
15,
22,
28,
23,
14,
16,
10,
11,
12,
18,
20,
29,
31,
40,
48,
77,
61,
36,
20,
10,
13,
12,
35,
41,
43,
58,
65,
77,
77,
108,
121,
101,
137,
83,
89,
81,
61,
51,
35,
20,
14,
15,
17,
17,
16,
18,
28,
28,
12,
11,
12,
11,
10,
27,
18,
46,
35,
136,
90,
80,
102,
70,
23,
33,
35,
46,
43,
52,
60,
72,
96,
95,
112,
106,
92,
96,
85,
52,
53,
32,
29,
18,
25,
15,
21,
14,
16,
23,
25,
27,
17,
11,
40,
22,
18,
55,
46,
46,
55,
56,
47,
21,
24,
29,
37,
51,
39,
75,
63,
65,
98,
90,
100,
87,
56,
50,
55,
47,
30,
21,
14,
16,
11,
11,
12,
21,
23,
22,
10,
10,
11,
14,
11,
13,
16,
12,
60,
10,
11,
20,
27,
17,
13,
32,
52,
37,
78,
50,
28,
10,
39,
51,
44,
41,
66,
86,
100,
103,
124,
100,
140,
95,
90,
68,
48,
58,
31,
39,
34,
20,
16,
10,
13,
13,
21,
34,
22,
30,
28,
16,
13,
15,
13,
11,
14,
11,
11,
10,
12,
15,
43,
21,
13,
26,
41,
68,
59,
65,
28,
24,
14,
11,
10,
20,
15,
25,
17,
26,
30,
36,
42,
55,
53,
66,
78,
84,
97,
132,
126,
127,
121,
84,
79,
88,
72,
62,
36,
32,
26,
14,
16,
10,
11,
14,
12,
14,
10,
10,
20,
13,
10,
12,
15,
24,
52,
25,
23,
41,
49,
81,
78,
59,
31,
22,
52,
48,
51,
59,
66,
69,
101,
101,
144,
105,
113,
113,
95,
101,
52,
35,
33,
16,
20,
17,
11,
10,
16,
16,
14,
23,
34,
26,
11,
12,
15,
17,
53,
43,
41,
77,
94,
106,
109,
129,
67,
36,
16,
29,
28,
44,
51,
58,
49,
68,
79,
82,
76,
65,
61,
38,
33,
36,
55,
26,
30,
23,
11,
10,
10,
14,
10,
12,
14,
17,
18,
28,
25,
27,
10,
14,
19,
14,
28,
25,
63,
80,
63,
27,
22,
19,
25,
28,
33,
30,
31,
30,
33,
52,
48,
43,
36,
39,
44,
29,
36,
16,
16,
18,
16,
21,
10,
13,
17,
12,
15,
16,
19,
12,
10,
10,
18,
22,
20,
40,
36,
45,
49,
47,
30,
26,
27,
31,
23,
33,
36,
40,
39,
39,
64,
48,
54,
53,
33,
44,
37,
28,
16,
18,
18,
11,
11,
13,
11,
11,
19,
14,
14,
15,
10,
15,
30,
18,
18,
31,
37,
62,
42,
22,
20,
62,
47,
62,
59,
81,
84,
94,
89,
80,
95,
66,
82,
77,
56,
53,
39,
35,
18,
18,
10,
14,
13,
20,
25,
40,
25,
33,
29,
46,
23,
11,
13,
36,
37,
30,
48,
31,
16,
11,
21,
25,
29,
27,
26,
28,
26,
59,
56,
50,
62,
68,
41,
23,
20,
20,
31,
19,
19,
14,
14,
12,
14,
16,
27,
23,
11,
39,
14,
25,
19,
31,
33,
40,
45,
32,
16,
32,
30,
27,
31,
38,
44,
45,
47,
50,
57,
48,
40,
47,
26,
36,
25,
21,
15,
20,
15,
17,
17,
19,
17,
25,
11,
10,
12,
21,
22,
21,
18,
25,
37,
43,
36,
18,
24,
16,
32,
32,
29,
26,
29,
56,
54,
45,
48,
37,
31,
34,
26,
19,
30,
15,
23,
12,
14,
10,
13,
14,
18,
13,
11,
11,
10,
25,
18,
10,
24,
23,
52,
63,
39,
26,
13,
21,
17,
22,
32,
33,
37,
39,
58,
51,
53,
50,
43,
38,
22,
29,
30,
20,
13,
10,
11,
19,
14,
11,
11,
19,
13,
20,
17,
11,
12,
11,
13,
21,
11,
10,
13,
13,
11,
13,
27,
40,
47,
45,
28,
15,
19,
19,
28,
25,
36,
34,
46,
52,
42,
45,
44,
42,
58,
26,
30,
27,
22,
12,
11,
16,
13,
12,
14,
28,
16,
23,
11,
10,
12,
15,
34,
28,
13,
35,
24,
27,
32,
47,
27,
15,
12,
23,
31,
31,
38,
48,
36,
47,
40,
84,
48,
36,
28,
39,
19,
13,
22,
15,
10,
18,
12,
13,
18,
31,
10,
17,
23,
32,
33,
47,
46,
26,
17,
29,
23,
25,
30,
40,
30,
54,
48,
46,
51,
54,
50,
44,
19,
18,
22,
14,
12,
16,
12,
15,
11,
12,
21,
10,
13,
25,
19,
25,
21,
27,
43,
42,
32,
45,
55,
14,
33,
35,
36,
39,
36,
36,
28,
15,
51,
39,
39,
21,
20,
23,
25,
17,
19,
14,
18,
19,
20,
13,
30,
23,
24,
33,
41,
41,
38,
33,
57,
54,
38,
37,
26,
28,
22,
18,
11,
11,
23,
28,
39,
25,
34,
39,
16,
20,
10,
10,
10,
23,
21,
16,
18,
32,
20,
29,
36,
31,
40,
58,
36,
41,
49,
41,
22,
26,
20,
10,
17,
11,
37,
17,
22,
28,
34,
37,
23,
12,
10,
15,
10,
13,
16,
22,
22,
21,
32,
34,
36,
46,
42,
44,
62,
11,
19,
10,
32,
25,
33,
30,
29,
12,
46,
39,
48,
24,
18,
19,
24,
11,
11,
15,
20,
11,
10,
24,
22,
26,
33,
33,
45,
39,
34,
51,
50,
22,
16,
16,
29,
41,
38,
34,
27,
10,
68,
41,
32,
38,
31,
14,
15,
11,
10,
22,
24,
23,
17,
22,
30,
21,
27,
30,
15,
11,
15,
25,
11,
40,
57,
20,
12,
798,
42,
29,
38,
43,
65,
77,
121,
68,
44,
55,
56,
40,
71,
92,
95,
102,
130,
139,
159,
139,
86,
77,
82,
46,
45,
29,
17,
19,
38,
13,
19,
10,
12,
15,
15,
19,
25,
25,
39,
47,
16,
14,
17,
11,
10,
10,
17,
10,
22,
19,
23,
33,
32,
46,
54,
51,
47,
28,
39,
31,
31,
51,
45,
54,
69,
68,
114,
90,
116,
78,
70,
61,
55,
42,
31,
17,
12,
21,
18,
11,
11,
12,
19,
25,
23,
12,
12,
11,
11,
11,
10,
167,
18,
50,
30,
48,
60,
60,
93,
38,
16,
24,
36,
35,
41,
50,
53,
73,
73,
89,
84,
112,
88,
71,
56,
42,
47,
20,
29,
20,
11,
10,
10,
11,
15,
19,
27,
18,
17,
12,
10,
12,
13,
15,
28,
23,
29,
80,
39,
37,
54,
44,
42,
30,
38,
45,
46,
58,
68,
81,
100,
98,
83,
97,
86,
81,
74,
46,
42,
35,
24,
11,
17,
12,
12,
15,
22,
15,
31,
22,
15,
10,
14,
11,
10,
22,
41,
32,
36,
39,
57,
63,
63,
31,
15,
19,
27,
47,
42,
42,
48,
65,
76,
89,
84,
102,
62,
66,
36,
37,
32,
14,
25,
17,
20,
11,
10,
11,
13,
10,
15,
14,
14,
16,
14,
24,
28,
20,
24,
41,
60,
74,
39,
27,
22,
30,
35,
41,
59,
73,
77,
82,
74,
75,
91,
85,
90,
63,
49,
36,
34,
19,
12,
21,
10,
13,
20,
12,
15,
32,
17,
27,
10,
10,
10,
10,
16,
16,
38,
40,
44,
58,
58,
58,
43,
15,
42,
32,
40,
49,
64,
54,
72,
76,
87,
85,
121,
72,
74,
50,
38,
42,
28,
21,
20,
18,
12,
12,
26,
24,
24,
10,
13,
14,
12,
17,
22,
35,
42,
34,
60,
49,
53,
35,
17,
21,
40,
48,
49,
66,
48,
71,
65,
66,
107,
90,
70,
68,
47,
33,
24,
27,
16,
16,
12,
11,
21,
21,
19,
25,
11,
25,
40,
36,
42,
62,
55,
70,
85,
100,
85,
14,
21,
35,
29,
44,
51,
56,
44,
31,
106,
72,
72,
51,
33,
30,
31,
20,
23,
10,
14,
12,
19,
23,
22,
12,
12,
12,
34,
12,
13,
14,
16,
15,
10,
11,
11,
11,
13,
20,
15,
29,
44,
52,
67,
44,
13,
38,
48,
46,
39,
76,
71,
90,
85,
116,
110,
119,
106,
87,
60,
47,
51,
30,
32,
12,
20,
10,
17,
19,
15,
25,
32,
14,
13,
13,
13,
13,
11,
20,
28,
35,
44,
58,
52,
101,
64,
22,
38,
50,
51,
61,
69,
86,
91,
111,
119,
126,
120,
88,
82,
84,
76,
45,
42,
14,
32,
12,
11,
11,
13,
13,
15,
10,
12,
21,
11,
15,
11,
14,
16,
27,
25,
33,
28,
10,
15,
25,
54,
29,
37,
57,
38,
49,
57,
27,
45,
40,
43,
50,
82,
90,
118,
104,
112,
124,
119,
98,
80,
64,
43,
39,
32,
18,
19,
17,
15,
11,
16,
16,
22,
21,
43,
19,
31,
19,
15,
19,
12,
13,
15,
16,
12,
10,
12,
12,
14,
12,
30,
34,
38,
40,
27,
28,
14,
11,
16,
18,
20,
25,
31,
46,
34,
58,
49,
40,
54,
57,
84,
64,
80,
101,
81,
99,
68,
70,
72,
75,
40,
39,
31,
24,
26,
16,
10,
10,
12,
24,
13,
11,
16,
11,
19,
31,
42,
62,
39,
56,
31,
16,
10,
15,
21,
23,
34,
41,
30,
44,
43,
44,
49,
49,
61,
64,
29,
27,
25,
17,
13,
15,
27,
13,
11,
15,
12,
13,
21,
16,
16,
14,
10,
15,
10,
10,
32,
25,
23,
19,
33,
40,
33,
26,
10,
20,
35,
39,
40,
32,
41,
57,
36,
59,
55,
50,
38,
41,
29,
20,
19,
12,
14,
10,
15,
13,
11,
12,
16,
23,
12,
13,
13,
18,
29,
33,
32,
45,
38,
46,
49,
56,
55,
47,
47,
36,
20,
20,
24,
17,
18,
11,
13,
10,
18,
39,
25,
41,
28,
16,
15,
11,
10,
10,
14,
15,
17,
28,
12,
12,
10,
33,
23,
25,
32,
37,
28,
39,
57,
58,
51,
14,
21,
37,
23,
35,
31,
40,
44,
23,
44,
34,
26,
30,
27,
24,
23,
14,
15,
14,
15,
15,
10,
14,
11,
18,
10,
12,
28,
37,
40,
34,
45,
51,
38,
60,
46,
61,
55,
42,
40,
29,
22,
22,
15,
17,
11,
10,
15,
18,
12,
26,
20,
44,
43,
25,
24,
10,
13,
11,
12,
24,
10,
10,
10,
10,
27,
23,
34,
23,
20,
40,
46,
53,
61,
36,
22,
13,
21,
25,
20,
42,
46,
29,
14,
46,
52,
38,
26,
26,
20,
10,
12,
16,
10,
12,
20,
22,
19,
10,
11,
23,
18,
27,
22,
47,
28,
33,
26,
15,
19,
30,
43,
38,
27,
34,
39,
35,
46,
40,
67,
71,
44,
40,
28,
24,
22,
17,
16,
24,
12,
11,
18,
14,
15,
18,
15,
11,
18,
18,
17,
20,
16,
11,
21,
29,
26,
33,
49,
43,
48,
50,
50,
53,
55,
53,
33,
33,
23,
17,
16,
20,
11,
11,
18,
17,
23,
46,
36,
42,
50,
30,
20,
10,
10,
10,
14,
20,
15,
14,
14,
10,
11,
10,
11,
43,
15,
24,
30,
44,
47,
65,
35,
19,
29,
37,
45,
33,
43,
34,
48,
52,
77,
48,
51,
48,
37,
32,
29,
24,
19,
21,
15,
12,
10,
15,
18,
19,
20,
38,
11,
21,
36,
50,
20,
55,
49,
44,
58,
40,
75,
60,
55,
32,
33,
28,
20,
26,
19,
11,
13,
22,
40,
29,
42,
36,
37,
35,
20,
10,
12,
10,
14,
17,
22,
31,
31,
10,
11,
17,
33,
22,
27,
47,
32,
49,
30,
23,
12,
23,
38,
27,
30,
42,
41,
43,
53,
68,
61,
62,
46,
38,
33,
17,
30,
18,
14,
10,
15,
12,
13,
15,
17,
19,
18,
10,
14,
15,
24,
38,
27,
31,
35,
30,
18,
12,
18,
38,
35,
28,
36,
34,
41,
51,
63,
50,
51,
60,
39,
25,
24,
19,
19,
20,
15,
10,
15,
16,
25,
22,
11,
17,
25,
43,
40,
38,
22,
44,
43,
41,
51,
14,
17,
37,
27,
22,
35,
41,
37,
18,
14,
10,
10,
12,
10,
22,
17,
24,
64,
58,
40,
38,
28,
17,
13,
12,
15,
21,
28,
38,
42,
40,
41,
51,
52,
60,
70,
59,
35,
30,
20,
25,
35,
13,
21,
17,
13,
18,
30,
14,
24,
18,
28,
48,
27,
12,
12,
11,
20,
14,
19,
13,
29,
11,
13,
17,
15,
14,
47,
30,
38,
37,
25,
16,
11,
31,
28,
29,
34,
45,
47,
47,
67,
79,
49,
42,
34,
40,
27,
20,
23,
12,
19,
16,
12,
12,
12,
16,
25,
33,
14,
18,
17,
22,
23,
29,
58,
35,
26,
17,
15,
26,
23,
26,
27,
46,
40,
60,
60,
70,
62,
62,
57,
44,
39,
26,
28,
11,
16,
19,
12,
21,
26,
24,
17,
11,
1900,
11,
10,
694,
26,
50,
26,
37,
49,
77,
99,
49,
24,
10,
11,
10,
10,
14,
45,
42,
63,
75,
76,
97,
93,
120,
122,
152,
124,
97,
99,
87,
87,
64,
24,
28,
19,
19,
14,
11,
14,
18,
28,
15,
18,
28,
30,
15,
13,
12,
60,
164,
45,
15,
28,
25,
46,
66,
46,
29,
38,
34,
43,
62,
54,
67,
84,
90,
109,
103,
128,
96,
85,
80,
51,
47,
34,
16,
15,
16,
13,
16,
18,
18,
19,
24,
37,
10,
11,
12,
17,
10,
10,
10,
10,
23,
19,
36,
37,
57,
72,
85,
63,
42,
28,
29,
38,
42,
39,
52,
67,
79,
67,
73,
136,
124,
95,
95,
55,
69,
52,
26,
19,
24,
16,
11,
10,
18,
18,
16,
36,
35,
11,
10,
11,
11,
12,
14,
30,
46,
25,
60,
62,
62,
30,
20,
30,
29,
34,
56,
64,
65,
89,
110,
105,
103,
110,
85,
82,
60,
40,
40,
35,
18,
15,
10,
12,
12,
13,
14,
15,
14,
23,
27,
41,
12,
13,
10,
19,
11,
16,
11,
22,
38,
35,
69,
53,
45,
35,
29,
31,
43,
41,
43,
44,
71,
66,
93,
107,
88,
115,
104,
72,
73,
36,
35,
44,
19,
14,
13,
11,
12,
12,
13,
12,
17,
15,
22,
15,
12,
12,
15,
48,
16,
26,
23,
45,
69,
50,
40,
21,
37,
28,
38,
44,
45,
51,
58,
64,
90,
83,
109,
77,
68,
64,
47,
41,
40,
18,
23,
23,
10,
15,
10,
12,
14,
15,
12,
20,
18,
11,
65,
21,
20,
19,
29,
27,
62,
57,
37,
17,
26,
30,
38,
47,
52,
70,
64,
66,
92,
113,
93,
83,
71,
78,
54,
37,
32,
23,
17,
16,
10,
11,
14,
16,
15,
21,
34,
10,
12,
10,
10,
10,
66,
18,
16,
16,
34,
28,
80,
53,
49,
20,
24,
34,
46,
50,
48,
43,
58,
51,
87,
86,
94,
99,
71,
62,
38,
45,
34,
17,
14,
30,
10,
14,
11,
14,
12,
28,
11,
13,
12,
13,
55,
17,
24,
30,
45,
43,
62,
51,
46,
20,
17,
28,
42,
48,
33,
48,
45,
93,
91,
91,
96,
82,
72,
63,
58,
34,
35,
18,
16,
11,
10,
11,
13,
15,
15,
21,
13,
10,
12,
11,
10,
13,
10,
11,
13,
11,
13,
17,
67,
26,
39,
28,
53,
55,
75,
69,
36,
16,
13,
11,
13,
12,
17,
15,
24,
25,
26,
29,
40,
37,
42,
60,
74,
82,
91,
85,
122,
152,
120,
94,
86,
76,
64,
46,
35,
21,
20,
21,
15,
21,
18,
13,
19,
10,
15,
16,
13,
14,
14,
74,
16,
17,
23,
21,
37,
51,
48,
42,
19,
31,
43,
43,
64,
77,
63,
81,
78,
132,
117,
143,
93,
86,
78,
71,
59,
39,
16,
21,
20,
13,
18,
13,
11,
24,
20,
13,
36,
14,
10,
13,
14,
10,
12,
11,
17,
16,
16,
20,
16,
13,
14,
30,
18,
36,
27,
39,
69,
55,
45,
28,
15,
10,
12,
14,
12,
14,
12,
20,
34,
18,
30,
46,
54,
60,
67,
70,
66,
74,
93,
101,
134,
125,
105,
86,
88,
55,
38,
34,
22,
23,
20,
10,
14,
13,
12,
42,
61,
48,
61,
77,
78,
82,
120,
89,
106,
68,
78,
84,
62,
52,
49,
27,
25,
16,
18,
11,
27,
13,
18,
32,
34,
55,
40,
20,
16,
11,
15,
17,
20,
32,
36,
41,
46,
12,
14,
45,
13,
16,
25,
38,
26,
37,
14,
27,
28,
32,
21,
20,
26,
50,
36,
58,
55,
62,
46,
38,
55,
30,
19,
29,
19,
12,
38,
10,
10,
17,
17,
17,
17,
18,
11,
11,
20,
43,
19,
25,
34,
30,
23,
58,
42,
22,
23,
16,
27,
17,
27,
41,
19,
25,
37,
35,
61,
54,
28,
38,
37,
34,
21,
27,
14,
18,
11,
12,
12,
15,
22,
12,
27,
20,
19,
15,
19,
17,
37,
38,
19,
10,
28,
19,
23,
36,
43,
32,
27,
38,
62,
46,
51,
39,
35,
27,
19,
25,
17,
20,
14,
13,
11,
10,
12,
19,
16,
20,
12,
30,
24,
27,
62,
62,
42,
26,
21,
28,
23,
32,
31,
35,
27,
42,
40,
49,
56,
64,
50,
42,
28,
19,
30,
25,
25,
11,
15,
15,
11,
21,
14,
28,
29,
13,
11,
17,
38,
22,
29,
34,
25,
13,
16,
19,
32,
28,
25,
31,
32,
34,
44,
54,
54,
50,
26,
36,
21,
17,
20,
11,
14,
14,
14,
14,
16,
10,
10,
10,
19,
21,
33,
28,
31,
39,
28,
45,
52,
47,
45,
45,
33,
31,
31,
15,
14,
11,
13,
13,
29,
23,
14,
15,
25,
29,
28,
17,
10,
14,
17,
16,
17,
48,
19,
24,
56,
26,
21,
40,
36,
24,
11,
20,
19,
37,
18,
43,
47,
30,
42,
54,
53,
62,
42,
33,
37,
24,
38,
27,
12,
11,
11,
19,
18,
15,
12,
13,
19,
12,
11,
16,
19,
30,
11,
11,
44,
16,
16,
16,
50,
21,
35,
34,
29,
16,
27,
26,
21,
35,
29,
49,
58,
33,
51,
39,
28,
33,
35,
33,
31,
32,
16,
30,
14,
12,
18,
12,
24,
11,
14,
19,
17,
13,
37,
30,
62,
72,
46,
41,
15,
23,
25,
22,
25,
28,
35,
34,
47,
44,
43,
36,
32,
39,
26,
25,
18,
15,
14,
12,
10,
11,
11,
13,
10,
11,
14,
18,
68,
15,
13,
16,
33,
35,
40,
34,
25,
16,
21,
33,
38,
34,
32,
42,
56,
79,
51,
45,
51,
45,
45,
25,
28,
21,
19,
16,
15,
18,
14,
19,
11,
13,
23,
23,
29,
15,
13,
26,
16,
36,
41,
26,
22,
13,
25,
20,
23,
29,
31,
30,
39,
43,
60,
40,
57,
40,
38,
33,
24,
17,
14,
11,
10,
15,
17,
12,
18,
14,
11,
63,
23,
16,
20,
19,
33,
49,
36,
25,
12,
24,
22,
37,
23,
33,
28,
31,
46,
37,
40,
65,
48,
31,
30,
31,
12,
19,
11,
15,
11,
20,
17,
18,
13,
18,
44,
18,
25,
20,
61,
44,
28,
18,
10,
16,
16,
20,
23,
38,
42,
39,
43,
45,
49,
69,
47,
46,
45,
32,
13,
18,
16,
20,
31,
14,
12,
22,
22,
27,
20,
22,
13,
34,
22,
48,
39,
30,
17,
19,
14,
20,
28,
26,
28,
54,
41,
53,
59,
60,
64,
54,
40,
38,
32,
25,
19,
21,
23,
10,
15,
30,
22,
13,
28,
15,
25,
30,
38,
43,
29,
24,
12,
38,
16,
37,
28,
33,
34,
29,
46,
41,
52,
48,
41,
40,
26,
22,
17,
18,
13,
15,
11,
16,
26,
15,
30,
15,
21,
13,
16,
40,
39,
28,
22,
14,
18,
13,
15,
37,
29,
31,
40,
31,
50,
56,
61,
39,
36,
26,
12,
19,
15,
12,
11,
19,
14,
15,
13,
15,
19,
16,
21,
20,
28,
32,
43,
58,
47,
46,
40,
47,
32,
22,
24,
17,
13,
11,
20,
18,
12,
19,
22,
21,
28,
17,
13,
10,
11,
15,
11,
16,
30,
11,
18,
29,
10,
11,
11,
37,
19,
18,
19,
12,
16,
19,
23,
21,
30,
27,
36,
41,
50,
55,
53,
47,
37,
25,
23,
24,
13,
12,
10,
18,
11,
24,
20,
10,
1058,
34,
22,
61,
62,
74,
101,
98,
79,
35,
10,
10,
10,
20,
79,
51,
48,
52,
83,
100,
89,
89,
135,
115,
124,
103,
94,
64,
82,
58,
49,
29,
39,
16,
11,
18,
29,
13,
28,
32,
34,
35,
40,
12,
10,
15,
11,
15,
28,
14,
12,
48,
28,
43,
45,
46,
36,
52,
75,
75,
13,
133,
30,
39,
50,
48,
61,
66,
81,
88,
107,
11,
10,
10,
13,
16,
10,
99,
65,
88,
64,
67,
39,
25,
18,
10,
13,
10,
13,
13,
24,
25,
19,
44,
13,
11,
16,
45,
28,
33,
25,
41,
46,
69,
56,
14,
34,
32,
34,
39,
40,
53,
59,
85,
98,
101,
98,
80,
94,
66,
55,
47,
32,
26,
18,
11,
11,
13,
15,
11,
16,
16,
16,
14,
12,
29,
23,
33,
44,
44,
45,
76,
49,
44,
26,
22,
39,
31,
47,
57,
61,
60,
88,
73,
81,
95,
84,
93,
69,
50,
46,
35,
17,
14,
11,
14,
10,
13,
13,
22,
22,
24,
11,
44,
21,
15,
28,
43,
40,
73,
64,
43,
15,
29,
43,
26,
42,
50,
54,
63,
70,
78,
93,
120,
68,
68,
70,
59,
31,
37,
22,
17,
11,
10,
12,
10,
14,
20,
22,
23,
22,
10,
13,
13,
11,
16,
25,
38,
34,
41,
53,
65,
47,
61,
26,
27,
25,
35,
32,
42,
52,
58,
54,
81,
88,
109,
96,
72,
70,
61,
53,
44,
10,
13,
14,
20,
17,
28,
21,
22,
14,
11,
10,
14,
16,
31,
43,
33,
40,
55,
39,
51,
22,
50,
35,
29,
53,
35,
50,
39,
67,
76,
95,
86,
85,
72,
56,
67,
38,
29,
18,
12,
10,
14,
15,
17,
21,
12,
11,
10,
19,
18,
25,
46,
62,
50,
56,
57,
53,
19,
27,
25,
26,
35,
44,
58,
52,
61,
86,
67,
93,
84,
78,
55,
54,
38,
37,
25,
18,
16,
13,
21,
17,
22,
16,
10,
15,
21,
21,
32,
41,
53,
85,
37,
25,
22,
23,
21,
30,
41,
38,
55,
66,
86,
79,
66,
87,
76,
69,
72,
61,
38,
26,
20,
15,
11,
12,
23,
18,
25,
23,
11,
15,
28,
31,
27,
28,
29,
42,
83,
103,
52,
14,
41,
45,
56,
59,
53,
76,
86,
94,
101,
93,
118,
94,
105,
92,
66,
44,
32,
25,
14,
13,
12,
15,
15,
13,
24,
15,
24,
26,
36,
15,
10,
14,
15,
19,
12,
15,
12,
14,
12,
32,
11,
39,
31,
36,
56,
51,
60,
58,
16,
45,
39,
54,
61,
66,
58,
93,
89,
100,
127,
132,
101,
72,
66,
53,
57,
22,
30,
19,
13,
10,
16,
12,
14,
12,
15,
11,
14,
10,
21,
11,
21,
24,
38,
14,
15,
10,
10,
26,
12,
12,
20,
35,
28,
32,
45,
59,
32,
39,
13,
11,
13,
17,
11,
12,
27,
49,
41,
54,
78,
65,
81,
96,
100,
103,
91,
73,
75,
80,
51,
44,
34,
20,
17,
15,
12,
13,
17,
12,
18,
28,
24,
32,
15,
16,
33,
45,
46,
69,
72,
69,
88,
93,
95,
96,
81,
70,
63,
52,
71,
43,
30,
27,
10,
12,
13,
16,
26,
15,
28,
23,
41,
28,
40,
25,
20,
20,
26,
40,
51,
35,
19,
10,
10,
11,
11,
11,
10,
15,
28,
16,
20,
14,
33,
51,
45,
67,
29,
21,
27,
18,
26,
32,
21,
38,
44,
45,
53,
49,
30,
38,
34,
26,
26,
16,
17,
11,
31,
11,
14,
11,
12,
10,
14,
11,
10,
17,
34,
10,
12,
10,
11,
11,
19,
25,
31,
32,
38,
32,
31,
10,
26,
18,
32,
23,
35,
30,
39,
40,
60,
56,
55,
43,
43,
21,
16,
28,
28,
11,
18,
13,
11,
17,
17,
19,
25,
10,
13,
10,
11,
28,
18,
12,
32,
28,
34,
38,
33,
47,
46,
31,
40,
35,
25,
27,
18,
17,
12,
10,
10,
16,
12,
19,
18,
32,
46,
42,
22,
11,
12,
15,
11,
22,
19,
23,
10,
11,
10,
22,
28,
31,
29,
31,
23,
30,
48,
56,
56,
64,
25,
42,
29,
27,
23,
12,
14,
16,
13,
20,
32,
25,
36,
30,
53,
63,
39,
33,
10,
10,
10,
15,
24,
17,
10,
10,
67,
12,
29,
19,
25,
30,
28,
30,
34,
33,
38,
44,
12,
10,
33,
36,
29,
31,
44,
32,
31,
54,
37,
37,
30,
32,
18,
18,
12,
14,
11,
11,
12,
25,
14,
17,
14,
16,
11,
14,
14,
36,
26,
37,
38,
50,
30,
22,
14,
14,
17,
28,
14,
46,
24,
36,
50,
58,
42,
53,
48,
37,
31,
30,
17,
25,
11,
12,
28,
15,
33,
34,
23,
25,
14,
27,
53,
30,
26,
17,
25,
22,
29,
21,
48,
28,
43,
31,
48,
45,
42,
40,
50,
40,
21,
26,
12,
13,
20,
12,
10,
22,
14,
17,
18,
18,
15,
10,
19,
16,
18,
10,
11,
29,
22,
18,
19,
42,
46,
41,
43,
60,
54,
67,
41,
27,
30,
27,
16,
21,
15,
14,
28,
18,
23,
19,
54,
40,
52,
28,
31,
15,
10,
12,
10,
17,
19,
16,
18,
16,
11,
18,
21,
31,
23,
31,
42,
37,
46,
59,
69,
36,
39,
50,
29,
31,
20,
19,
13,
14,
15,
14,
16,
27,
22,
21,
32,
35,
46,
20,
13,
16,
14,
16,
16,
22,
11,
12,
10,
32,
12,
15,
12,
32,
27,
48,
45,
24,
26,
25,
20,
29,
30,
41,
24,
57,
58,
52,
44,
35,
32,
24,
23,
22,
19,
17,
23,
11,
12,
11,
15,
13,
15,
23,
26,
12,
12,
39,
16,
24,
23,
29,
53,
26,
57,
28,
12,
36,
27,
30,
38,
37,
34,
35,
45,
44,
48,
53,
59,
50,
28,
18,
21,
16,
14,
18,
29,
10,
10,
11,
27,
22,
13,
10,
11,
10,
19,
28,
23,
51,
56,
43,
30,
13,
22,
17,
33,
21,
33,
38,
32,
44,
33,
33,
60,
43,
33,
23,
25,
16,
17,
13,
12,
14,
13,
14,
18,
16,
21,
10,
10,
21,
16,
16,
22,
49,
37,
22,
43,
33,
30,
21,
36,
28,
28,
36,
38,
41,
50,
61,
59,
54,
43,
44,
27,
16,
14,
24,
13,
11,
13,
11,
22,
19,
13,
25,
20,
35,
40,
34,
22,
34,
33,
42,
52,
55,
51,
53,
31,
27,
28,
17,
15,
17,
18,
16,
12,
10,
18,
37,
30,
40,
60,
24,
15,
12,
10,
15,
16,
12,
22,
23,
28,
31,
28,
20,
36,
26,
60,
35,
40,
50,
49,
46,
36,
26,
28,
14,
14,
14,
10,
14,
15,
13,
12,
23,
20,
31,
35,
31,
23,
10,
11,
13,
18,
16,
12,
10,
12,
11,
10,
14,
25,
33,
41,
41,
22,
11,
16,
10,
26,
36,
37,
31,
27,
47,
49,
50,
46,
44,
43,
31,
20,
24,
22,
14,
17,
15,
11,
12,
13,
29,
13,
15,
32,
36,
27,
30,
46,
32,
49,
47,
39,
22,
27,
18,
14,
17,
13,
12,
11,
13,
26,
28,
23,
33,
22,
11,
10,
24,
12,
16,
29,
10,
12,
16,
24,
24,
19,
33,
29,
24,
37,
46,
51,
52,
37,
42,
39,
16,
25,
16,
15,
14,
12,
14,
37,
10,
19,
28,
15,
10,
14,
10,
14,
12,
21,
11,
21,
10,
11,
11,
480,
16,
28,
13,
38,
71,
74,
77,
57,
40,
56,
41,
41,
66,
86,
73,
91,
88,
121,
129,
150,
101,
86,
71,
75,
39,
42,
14,
32,
11,
10,
12,
10,
11,
11,
12,
12,
11,
12,
15,
20,
23,
31,
29,
11,
12,
12,
11,
15,
12,
14,
15,
14,
12,
17,
14,
19,
53,
29,
26,
26,
34,
62,
81,
74,
51,
39,
39,
37,
59,
41,
53,
60,
77,
92,
84,
100,
117,
91,
79,
78,
57,
47,
43,
28,
12,
21,
11,
10,
15,
11,
12,
23,
23,
34,
16,
12,
10,
16,
38,
254,
21,
24,
35,
42,
49,
62,
65,
36,
15,
14,
12,
15,
14,
38,
44,
49,
46,
61,
84,
74,
88,
108,
109,
148,
118,
68,
71,
49,
54,
38,
29,
12,
19,
16,
17,
14,
13,
16,
17,
21,
18,
10,
10,
12,
11,
10,
15,
10,
37,
17,
26,
32,
23,
38,
60,
63,
46,
29,
12,
12,
15,
11,
27,
38,
43,
42,
62,
57,
86,
74,
108,
104,
99,
94,
84,
46,
55,
42,
21,
24,
15,
15,
12,
13,
14,
17,
22,
30,
11,
22,
30,
26,
60,
54,
51,
50,
24,
21,
16,
10,
11,
10,
10,
13,
18,
41,
38,
54,
54,
71,
79,
101,
103,
119,
120,
90,
80,
58,
50,
40,
38,
18,
15,
14,
10,
12,
17,
15,
30,
28,
26,
15,
16,
10,
10,
23,
20,
37,
32,
37,
47,
63,
58,
70,
30,
33,
34,
55,
43,
65,
62,
98,
114,
96,
108,
121,
103,
74,
73,
57,
38,
33,
20,
21,
19,
10,
15,
22,
23,
24,
25,
12,
10,
10,
11,
10,
10,
10,
41,
19,
18,
29,
32,
50,
59,
47,
43,
35,
23,
33,
38,
41,
39,
42,
51,
68,
82,
72,
104,
77,
75,
63,
39,
36,
42,
22,
10,
16,
11,
14,
12,
17,
19,
16,
19,
10,
13,
10,
14,
42,
19,
13,
28,
33,
59,
97,
69,
45,
25,
28,
24,
29,
37,
41,
61,
68,
62,
68,
77,
93,
93,
80,
62,
54,
38,
36,
15,
17,
22,
12,
11,
17,
17,
21,
35,
11,
11,
11,
13,
15,
15,
19,
25,
30,
51,
57,
72,
58,
38,
20,
18,
32,
25,
36,
37,
43,
59,
77,
86,
74,
99,
78,
67,
55,
40,
35,
34,
21,
15,
23,
10,
13,
17,
14,
15,
19,
12,
10,
10,
14,
12,
14,
11,
46,
12,
16,
27,
21,
45,
57,
58,
29,
15,
10,
10,
12,
11,
10,
13,
21,
13,
36,
24,
29,
35,
37,
36,
51,
63,
90,
71,
103,
119,
130,
122,
92,
57,
44,
60,
33,
20,
14,
30,
12,
24,
18,
16,
11,
14,
14,
60,
35,
29,
27,
52,
60,
72,
73,
33,
21,
15,
11,
10,
13,
44,
41,
54,
43,
62,
98,
88,
83,
104,
147,
111,
99,
92,
48,
68,
52,
37,
33,
15,
25,
17,
16,
17,
15,
20,
21,
28,
35,
11,
12,
10,
12,
12,
11,
17,
15,
21,
46,
15,
25,
25,
51,
67,
83,
58,
25,
22,
48,
49,
49,
56,
62,
73,
90,
95,
102,
112,
89,
94,
89,
84,
64,
54,
35,
26,
14,
15,
13,
18,
18,
22,
23,
22,
39,
12,
10,
11,
39,
23,
20,
18,
20,
38,
40,
28,
25,
11,
27,
17,
28,
29,
36,
36,
37,
34,
47,
52,
50,
37,
28,
33,
26,
26,
17,
19,
15,
11,
10,
16,
20,
14,
12,
11,
15,
13,
14,
23,
32,
42,
47,
50,
19,
13,
16,
26,
27,
33,
30,
32,
36,
52,
46,
52,
51,
37,
32,
16,
32,
19,
15,
16,
14,
10,
10,
10,
13,
15,
17,
11,
13,
39,
47,
51,
63,
67,
69,
80,
98,
94,
82,
67,
92,
64,
66,
61,
38,
40,
25,
14,
11,
16,
21,
29,
18,
22,
50,
34,
28,
12,
13,
16,
12,
23,
33,
24,
28,
41,
37,
22,
15,
16,
14,
28,
20,
38,
52,
35,
16,
24,
24,
26,
30,
27,
46,
51,
58,
49,
44,
46,
39,
38,
30,
23,
21,
27,
15,
18,
10,
13,
11,
16,
19,
30,
12,
33,
20,
21,
15,
36,
56,
50,
29,
20,
24,
22,
17,
25,
18,
30,
38,
26,
38,
48,
57,
36,
40,
28,
31,
27,
26,
17,
30,
17,
17,
14,
13,
12,
10,
10,
22,
13,
22,
24,
32,
34,
42,
38,
46,
46,
17,
12,
20,
27,
23,
39,
33,
26,
13,
57,
45,
37,
35,
27,
12,
22,
10,
22,
13,
10,
20,
13,
16,
15,
14,
21,
16,
30,
21,
35,
45,
23,
11,
25,
23,
33,
41,
29,
30,
42,
41,
31,
49,
49,
42,
38,
41,
25,
16,
25,
16,
14,
11,
14,
17,
24,
11,
19,
16,
26,
18,
43,
35,
13,
18,
20,
14,
14,
26,
34,
36,
43,
46,
46,
58,
44,
47,
40,
24,
21,
26,
14,
19,
23,
10,
12,
10,
13,
13,
13,
19,
19,
13,
14,
10,
20,
11,
20,
44,
14,
21,
34,
32,
39,
53,
47,
40,
13,
23,
18,
25,
29,
31,
27,
30,
41,
63,
51,
48,
49,
38,
30,
13,
20,
23,
14,
14,
17,
13,
12,
11,
30,
12,
10,
16,
10,
19,
10,
17,
19,
63,
35,
40,
40,
26,
16,
16,
10,
21,
21,
40,
26,
38,
51,
45,
58,
47,
49,
36,
29,
35,
17,
17,
20,
16,
17,
14,
13,
14,
17,
13,
23,
16,
17,
17,
20,
36,
32,
55,
29,
26,
17,
34,
22,
24,
31,
31,
47,
50,
51,
56,
51,
39,
50,
55,
30,
38,
32,
17,
12,
13,
12,
11,
10,
19,
22,
21,
10,
31,
21,
30,
18,
26,
32,
48,
48,
30,
14,
20,
34,
19,
37,
25,
29,
39,
34,
68,
43,
46,
47,
43,
37,
25,
26,
20,
18,
14,
11,
12,
11,
22,
17,
11,
10,
42,
12,
10,
11,
23,
42,
50,
41,
23,
10,
21,
35,
24,
37,
37,
42,
41,
43,
46,
59,
56,
44,
52,
26,
22,
14,
18,
11,
12,
18,
11,
11,
13,
29,
19,
14,
12,
35,
13,
37,
14,
29,
37,
47,
39,
27,
12,
13,
26,
35,
31,
27,
36,
33,
35,
36,
82,
48,
49,
43,
27,
23,
24,
25,
14,
17,
13,
12,
16,
18,
11,
29,
10,
13,
27,
10,
12,
23,
24,
35,
49,
36,
22,
14,
22,
23,
24,
35,
27,
37,
36,
39,
58,
57,
51,
44,
41,
34,
27,
14,
16,
12,
14,
16,
10,
13,
20,
10,
16,
12,
15,
10,
31,
19,
19,
36,
25,
26,
29,
46,
35,
53,
47,
38,
32,
31,
22,
16,
12,
10,
11,
20,
24,
26,
17,
20,
27,
29,
28,
10,
12,
12,
14,
15,
14,
19,
14,
26,
28,
35,
30,
34,
38,
34,
51,
58,
48,
59,
38,
39,
24,
26,
27,
19,
18,
18,
17,
12,
20,
35,
20,
25,
45,
28,
18,
10,
13,
21,
23,
626,
32,
22,
37,
45,
48,
51,
54,
43,
26,
10,
14,
14,
10,
11,
24,
16,
22,
34,
31,
54,
30,
45,
69,
76,
74,
91,
94,
116,
127,
134,
105,
97,
69,
69,
51,
54,
27,
33,
11,
18,
12,
15,
13,
12,
11,
12,
11,
10,
10,
66,
24,
12,
59,
38,
49,
56,
67,
45,
26,
31,
34,
41,
38,
39,
53,
70,
76,
92,
105,
104,
107,
111,
84,
47,
28,
27,
21,
18,
21,
24,
10,
15,
11,
11,
10,
20,
13,
27,
23,
26,
12,
13,
16,
11,
15,
12,
10,
12,
16,
22,
40,
24,
25,
39,
40,
75,
48,
23,
24,
31,
53,
43,
53,
83,
70,
55,
78,
115,
101,
128,
102,
63,
55,
52,
47,
26,
14,
13,
14,
15,
14,
10,
35,
18,
23,
24,
12,
23,
30,
52,
39,
73,
66,
35,
31,
24,
29,
35,
38,
45,
53,
55,
61,
86,
76,
76,
59,
87,
69,
49,
50,
22,
16,
11,
11,
11,
12,
16,
10,
19,
22,
27,
11,
10,
11,
11,
10,
12,
13,
17,
41,
30,
94,
22,
78,
41,
27,
14,
23,
33,
38,
37,
58,
55,
62,
70,
91,
84,
105,
96,
90,
68,
34,
41,
28,
17,
20,
24,
11,
13,
13,
16,
13,
28,
14,
11,
10,
17,
38,
30,
29,
51,
45,
65,
59,
41,
22,
32,
47,
33,
37,
44,
37,
67,
68,
85,
108,
93,
63,
79,
72,
49,
32,
24,
17,
22,
20,
12,
15,
10,
16,
23,
34,
12,
18,
10,
12,
65,
17,
23,
35,
57,
25,
32,
56,
122,
25,
30,
47,
40,
47,
59,
52,
68,
75,
105,
121,
117,
90,
54,
61,
50,
44,
30,
22,
12,
10,
25,
20,
25,
27,
26,
13,
10,
10,
12,
18,
35,
32,
43,
75,
72,
42,
34,
13,
43,
42,
53,
48,
60,
51,
65,
67,
71,
99,
106,
98,
79,
72,
47,
44,
29,
18,
17,
13,
13,
14,
10,
10,
21,
21,
23,
11,
10,
11,
10,
14,
83,
16,
32,
48,
26,
34,
39,
71,
28,
14,
30,
45,
34,
49,
48,
55,
44,
84,
90,
113,
99,
74,
77,
88,
48,
40,
41,
24,
18,
13,
14,
18,
23,
33,
12,
13,
13,
14,
10,
13,
11,
11,
13,
11,
85,
26,
16,
36,
39,
49,
69,
49,
19,
10,
10,
15,
14,
19,
20,
19,
25,
29,
38,
47,
39,
45,
62,
74,
74,
81,
90,
108,
134,
108,
98,
95,
61,
55,
48,
33,
25,
23,
24,
18,
11,
17,
10,
13,
10,
10,
11,
11,
86,
24,
27,
29,
49,
62,
55,
54,
34,
19,
40,
39,
66,
71,
79,
73,
85,
95,
110,
129,
128,
108,
102,
66,
61,
44,
25,
22,
14,
33,
12,
18,
15,
25,
25,
33,
25,
25,
10,
10,
22,
10,
16,
10,
16,
19,
13,
12,
14,
10,
11,
11,
13,
12,
15,
15,
34,
38,
39,
63,
71,
66,
77,
88,
96,
121,
115,
87,
76,
83,
56,
42,
25,
23,
12,
18,
22,
16,
20,
23,
37,
37,
73,
60,
34,
10,
10,
19,
20,
17,
21,
32,
24,
17,
13,
53,
19,
18,
19,
15,
43,
31,
33,
18,
10,
17,
14,
23,
14,
17,
23,
30,
24,
35,
48,
43,
54,
55,
52,
64,
77,
86,
87,
86,
86,
71,
85,
69,
61,
43,
39,
50,
21,
19,
17,
26,
12,
18,
17,
14,
23,
60,
32,
20,
11,
23,
21,
24,
20,
26,
29,
45,
36,
35,
36,
43,
41,
47,
24,
31,
17,
18,
16,
13,
18,
16,
10,
10,
11,
12,
21,
11,
21,
18,
15,
27,
20,
28,
27,
23,
15,
10,
21,
21,
29,
14,
35,
37,
33,
40,
51,
51,
49,
49,
35,
33,
15,
20,
19,
16,
18,
10,
13,
10,
17,
13,
15,
13,
11,
14,
18,
19,
16,
17,
31,
46,
34,
12,
19,
22,
24,
30,
27,
33,
28,
40,
52,
44,
59,
76,
39,
23,
28,
29,
27,
21,
14,
11,
15,
11,
15,
13,
23,
14,
15,
56,
23,
17,
14,
50,
28,
43,
36,
27,
11,
19,
21,
29,
28,
35,
36,
33,
36,
46,
49,
43,
52,
26,
27,
24,
24,
15,
14,
17,
12,
22,
25,
21,
15,
36,
23,
27,
25,
34,
50,
43,
22,
10,
17,
22,
30,
33,
23,
34,
39,
37,
41,
46,
50,
39,
35,
33,
22,
23,
17,
17,
10,
12,
15,
17,
24,
26,
10,
23,
18,
25,
23,
53,
24,
23,
10,
24,
22,
30,
47,
26,
44,
34,
35,
47,
46,
39,
40,
33,
26,
27,
19,
20,
16,
10,
11,
19,
20,
34,
13,
13,
18,
36,
33,
59,
31,
17,
23,
30,
30,
30,
28,
27,
33,
37,
39,
41,
67,
54,
50,
40,
27,
23,
21,
19,
11,
18,
10,
10,
10,
12,
12,
15,
15,
20,
13,
17,
11,
11,
13,
40,
13,
16,
47,
25,
37,
29,
28,
18,
12,
24,
25,
27,
23,
41,
44,
49,
53,
50,
60,
58,
40,
35,
51,
25,
19,
26,
14,
15,
13,
10,
12,
12,
11,
15,
22,
25,
22,
11,
48,
18,
52,
17,
31,
25,
28,
40,
25,
14,
30,
40,
33,
27,
41,
36,
35,
46,
46,
58,
42,
61,
36,
41,
18,
24,
19,
10,
12,
15,
20,
16,
22,
21,
42,
22,
18,
27,
13,
47,
26,
17,
21,
17,
20,
31,
30,
25,
24,
38,
60,
40,
42,
46,
51,
45,
31,
41,
27,
25,
23,
16,
11,
38,
13,
16,
22,
22,
10,
54,
24,
34,
18,
49,
41,
33,
45,
34,
24,
22,
21,
22,
25,
31,
26,
32,
41,
51,
64,
57,
44,
29,
26,
23,
23,
16,
13,
14,
11,
11,
18,
22,
24,
17,
28,
34,
27,
22,
44,
37,
40,
61,
44,
56,
40,
29,
36,
16,
22,
12,
10,
18,
13,
13,
13,
14,
30,
13,
26,
29,
26,
19,
10,
10,
14,
19,
15,
25,
40,
12,
17,
30,
49,
33,
28,
37,
25,
14,
19,
25,
36,
28,
31,
46,
39,
45,
45,
57,
44,
49,
26,
26,
24,
28,
23,
13,
12,
11,
14,
16,
21,
21,
73,
24,
20,
30,
30,
36,
28,
19,
11,
32,
25,
23,
33,
29,
42,
36,
44,
63,
54,
57,
52,
45,
33,
34,
28,
13,
17,
12,
19,
15,
12,
14,
32,
24,
33,
30,
31,
33,
28,
36,
59,
53,
74,
18,
19,
20,
17,
14,
33,
38,
31,
23,
54,
49,
25,
37,
37,
26,
24,
14,
10,
10,
12,
12,
18,
16,
20,
25,
26,
30,
36,
32,
35,
39,
32,
41,
41,
14,
22,
21,
47,
40,
21,
40,
24,
24,
51,
36,
34,
32,
19,
22,
23,
16,
19,
12,
12,
18,
21,
17,
10,
12,
944,
19,
31,
32,
40,
58,
61,
89,
48,
23,
15,
13,
10,
11,
11,
13,
14,
32,
26,
30,
43,
51,
53,
62,
74,
86,
86,
113,
120,
141,
129,
93,
90,
67,
75,
54,
28,
38,
12,
18,
10,
13,
10,
12,
10,
10,
10,
12,
11,
11,
11,
13,
10,
11,
11,
10,
70,
24,
13,
23,
44,
46,
83,
90,
33,
141,
36,
23,
38,
42,
54,
63,
72,
89,
66,
116,
103,
104,
83,
56,
42,
38,
41,
16,
24,
20,
10,
17,
12,
17,
18,
32,
21,
13,
15,
32,
29,
43,
45,
55,
59,
74,
75,
119,
93,
102,
79,
58,
63,
39,
51,
30,
15,
10,
12,
14,
19,
27,
47,
41,
49,
61,
54,
39,
11,
10,
13,
10,
19,
11,
18,
15,
19,
17,
10,
10,
13,
10,
11,
16,
14,
37,
32,
41,
42,
46,
49,
58,
23,
11,
40,
34,
49,
37,
52,
53,
59,
70,
92,
106,
102,
93,
83,
69,
38,
34,
21,
17,
10,
10,
10,
10,
11,
12,
19,
15,
26,
11,
11,
10,
10,
19,
19,
18,
31,
50,
49,
43,
57,
46,
20,
32,
22,
37,
42,
42,
52,
69,
77,
80,
90,
95,
93,
67,
67,
37,
46,
22,
16,
17,
16,
11,
14,
12,
16,
19,
18,
10,
11,
66,
13,
45,
30,
27,
44,
46,
53,
35,
16,
21,
38,
37,
41,
52,
55,
62,
77,
75,
85,
96,
86,
81,
40,
40,
45,
25,
18,
22,
13,
15,
14,
13,
17,
19,
21,
26,
14,
13,
58,
30,
17,
22,
29,
38,
50,
61,
38,
15,
21,
31,
27,
44,
35,
53,
54,
51,
83,
86,
75,
51,
53,
57,
45,
36,
30,
25,
12,
18,
17,
13,
12,
15,
18,
10,
10,
10,
14,
15,
28,
29,
37,
53,
44,
61,
45,
24,
22,
33,
30,
36,
44,
45,
64,
67,
85,
72,
97,
82,
78,
60,
61,
34,
25,
21,
27,
12,
14,
19,
15,
24,
10,
11,
10,
20,
27,
35,
46,
35,
49,
66,
70,
109,
92,
100,
65,
62,
56,
49,
35,
31,
17,
10,
20,
36,
26,
33,
51,
38,
56,
38,
10,
24,
16,
19,
23,
14,
10,
10,
54,
17,
21,
28,
66,
43,
55,
71,
32,
17,
10,
14,
13,
16,
10,
10,
11,
38,
37,
36,
55,
67,
68,
71,
84,
108,
92,
101,
91,
71,
62,
61,
46,
21,
21,
14,
13,
17,
14,
12,
19,
29,
36,
30,
13,
14,
10,
15,
10,
11,
10,
14,
18,
13,
11,
16,
15,
18,
46,
46,
56,
62,
75,
72,
90,
102,
110,
129,
107,
102,
103,
55,
53,
43,
27,
24,
31,
18,
65,
20,
25,
26,
52,
55,
70,
32,
19,
15,
10,
11,
19,
38,
22,
39,
17,
13,
10,
11,
15,
18,
14,
11,
13,
10,
10,
15,
11,
10,
14,
11,
14,
18,
26,
43,
33,
60,
66,
30,
13,
30,
34,
55,
41,
51,
66,
80,
73,
105,
105,
88,
85,
90,
54,
40,
34,
35,
14,
17,
15,
10,
15,
13,
12,
25,
18,
14,
13,
12,
16,
27,
21,
22,
31,
37,
49,
56,
18,
11,
24,
20,
37,
25,
46,
34,
33,
41,
41,
57,
50,
43,
24,
28,
15,
16,
14,
20,
10,
35,
10,
11,
12,
15,
13,
22,
10,
10,
22,
15,
19,
15,
30,
34,
42,
37,
24,
12,
19,
27,
19,
25,
32,
25,
29,
45,
46,
52,
61,
42,
31,
31,
22,
14,
18,
12,
15,
16,
11,
14,
18,
15,
10,
10,
46,
21,
11,
15,
27,
11,
23,
18,
36,
17,
14,
19,
19,
21,
18,
28,
34,
33,
29,
40,
47,
49,
33,
30,
33,
32,
17,
11,
14,
13,
12,
11,
12,
15,
21,
25,
23,
31,
29,
26,
32,
48,
58,
63,
60,
41,
35,
20,
28,
29,
15,
16,
10,
13,
18,
10,
17,
24,
28,
35,
55,
26,
12,
10,
15,
12,
13,
21,
23,
22,
30,
26,
33,
33,
39,
56,
38,
44,
35,
30,
29,
19,
21,
15,
10,
10,
15,
14,
15,
19,
39,
46,
34,
34,
17,
12,
10,
15,
13,
22,
42,
40,
61,
54,
67,
63,
90,
76,
92,
93,
75,
50,
49,
54,
47,
31,
33,
19,
24,
32,
21,
25,
51,
17,
27,
22,
18,
15,
21,
19,
35,
38,
22,
22,
27,
32,
33,
35,
31,
35,
26,
44,
15,
17,
24,
23,
37,
39,
35,
18,
10,
42,
36,
26,
28,
29,
16,
18,
16,
16,
10,
14,
12,
14,
26,
30,
19,
32,
25,
23,
22,
13,
21,
22,
19,
30,
22,
40,
48,
47,
62,
46,
44,
50,
35,
32,
23,
27,
14,
17,
21,
12,
10,
15,
12,
12,
17,
13,
18,
17,
20,
53,
15,
17,
14,
20,
21,
57,
45,
17,
14,
26,
25,
34,
19,
32,
27,
42,
44,
36,
56,
39,
31,
39,
26,
31,
20,
23,
14,
14,
18,
18,
15,
13,
24,
15,
25,
15,
12,
23,
22,
51,
52,
31,
16,
12,
21,
30,
18,
23,
24,
44,
39,
52,
48,
55,
45,
35,
49,
20,
25,
21,
16,
12,
11,
12,
10,
12,
10,
16,
12,
15,
12,
16,
27,
12,
27,
32,
35,
43,
20,
11,
15,
23,
25,
24,
29,
34,
47,
59,
39,
55,
44,
41,
27,
22,
19,
21,
14,
10,
10,
13,
10,
16,
16,
25,
21,
10,
42,
10,
17,
26,
34,
16,
35,
35,
19,
21,
15,
27,
27,
24,
32,
29,
28,
44,
35,
42,
33,
35,
29,
25,
22,
16,
10,
11,
21,
13,
13,
12,
28,
11,
11,
10,
15,
37,
24,
35,
13,
11,
17,
32,
24,
37,
32,
32,
46,
45,
37,
34,
54,
40,
36,
22,
31,
20,
18,
11,
19,
12,
11,
13,
26,
10,
22,
22,
24,
30,
38,
58,
46,
16,
13,
20,
13,
37,
15,
24,
23,
43,
22,
37,
48,
49,
30,
43,
32,
20,
20,
13,
15,
11,
15,
12,
21,
26,
16,
24,
24,
23,
36,
45,
29,
45,
42,
15,
17,
12,
19,
26,
36,
41,
38,
14,
42,
34,
45,
28,
22,
19,
11,
19,
10,
12,
11,
10,
22,
18,
34,
10,
27,
32,
35,
46,
39,
20,
13,
20,
26,
24,
22,
21,
33,
36,
46,
46,
57,
50,
26,
36,
24,
21,
24,
10,
11,
12,
18,
13,
19,
18,
25,
24,
18,
20,
30,
39,
37,
45,
41,
15,
13,
28,
33,
22,
29,
27,
30,
12,
52,
37,
35,
31,
16,
20,
12,
13,
10,
10,
10,
17,
17,
18,
16,
16,
28,
13,
27,
32,
39,
40,
40,
30,
42,
37,
14,
16,
14,
10,
14,
19,
11,
10,
19,
22,
30,
28,
12,
12,
10,
20,
11,
10,
26,
19,
17,
31,
26,
25,
32,
42,
34,
55,
71,
45,
27,
23,
10,
14,
12,
10,
18,
10,
14,
34,
16,
16,
20,
11,
15,
14,
27,
13476,
375,
67,
74,
56,
31,
110,
246,
64,
99,
69,
78,
25,
67,
38,
36,
33,
41,
46,
32,
28,
13,
36,
36,
40,
20,
31,
34,
31,
20,
13,
14,
10,
13,
14,
10,
10,
11,
13,
13,
14,
10,
14,
16,
11,
14,
42,
312,
14,
178,
11,
39,
14,
12,
22,
10,
16,
13,
10,
59,
10,
41,
11,
21,
10,
16,
21,
27,
26,
33,
37,
26,
27,
35,
41,
43,
47,
55,
54,
68,
70,
71,
98,
61,
86,
45,
55,
59,
39,
53,
35,
33,
12,
10,
10,
11,
14,
16,
12,
16,
16,
27,
20,
11,
11,
251,
12,
14,
26,
21,
13,
10,
13,
14,
17,
11,
12,
27,
103,
14,
12,
10,
22,
15,
18,
18,
17,
14,
18,
12,
10,
10,
36,
106,
62,
12,
13,
12,
28,
15,
10,
11,
19,
13,
15,
13,
15,
12,
15,
10,
11,
11,
10,
39,
11,
20,
10,
18,
19,
15,
29,
36,
47,
17,
37,
34,
10,
12,
11,
27,
16,
15,
12,
18,
17,
23,
20,
20,
15,
43,
14,
19,
19,
20,
23,
15,
10,
20,
15,
16,
22,
12,
13,
54,
21,
12,
13,
12,
11,
16,
34,
15,
12,
29,
15,
12,
12,
12,
16,
37,
21,
35,
36,
31,
21,
12,
25,
28,
32,
55,
39,
56,
52,
82,
85,
110,
93,
84,
78,
96,
48,
43,
23,
17,
14,
14,
10,
13,
15,
14,
16,
23,
11,
13,
11,
15,
14,
30,
25,
33,
35,
62,
50,
55,
68,
105,
102,
82,
83,
61,
62,
47,
32,
26,
14,
12,
10,
14,
22,
18,
24,
25,
21,
26,
11,
13,
15,
11,
10,
13,
13,
15,
24,
17,
14,
12,
10,
12,
23,
28,
39,
35,
48,
49,
65,
78,
95,
88,
87,
89,
85,
72,
57,
63,
42,
19,
14,
11,
12,
14,
18,
13,
13,
11,
10,
22,
28,
53,
26,
17,
10,
14,
20,
16,
21,
21,
25,
28,
36,
36,
58,
39,
61,
53,
66,
10,
19,
12,
17,
27,
30,
39,
20,
11,
76,
64,
55,
61,
42,
30,
26,
16,
11,
10,
12,
37,
12,
13,
10,
11,
12,
13,
11,
11,
16,
12,
11,
11,
10,
10,
12,
24,
18,
38,
42,
52,
61,
82,
79,
93,
84,
95,
72,
74,
50,
58,
38,
25,
16,
15,
13,
22,
13,
17,
22,
40,
28,
29,
22,
13,
18,
14,
29,
13,
10,
10,
23,
31,
35,
34,
39,
44,
72,
91,
75,
88,
20,
12,
13,
99,
77,
85,
71,
52,
42,
18,
13,
11,
19,
16,
12,
27,
41,
33,
12,
18,
12,
16,
12,
13,
12,
13,
21,
12,
16,
12,
11,
13,
12,
10,
10,
30,
25,
33,
37,
48,
57,
66,
75,
85,
126,
76,
71,
54,
56,
41,
24,
23,
16,
12,
15,
18,
28,
19,
29,
22,
11,
13,
10,
14,
14,
15,
10,
13,
10,
11,
10,
18,
22,
24,
29,
43,
44,
58,
57,
67,
83,
14,
18,
12,
15,
35,
26,
27,
22,
12,
91,
69,
72,
45,
40,
34,
26,
17,
19,
10,
13,
12,
21,
20,
12,
18,
17,
18,
32,
29,
41,
50,
66,
84,
72,
116,
87,
17,
12,
25,
24,
17,
45,
23,
25,
12,
87,
67,
72,
57,
49,
36,
21,
18,
10,
12,
15,
11,
12,
15,
17,
13,
12,
11,
12,
13,
19,
18,
16,
11,
87,
59,
18,
24,
18,
14,
13,
12,
10,
13,
21,
13,
30,
10,
22,
12,
11,
12,
12,
10,
11,
22,
16,
10,
11,
15,
15,
25,
45,
40,
35,
39,
48,
65,
65,
85,
110,
93,
115,
73,
67,
43,
46,
32,
28,
10,
10,
12,
30,
18,
17,
19,
26,
48,
63,
36,
18,
12,
17,
17,
20,
18,
15,
11,
10,
10,
31,
16,
12,
12,
14,
18,
24,
14,
19,
21,
30,
41,
42,
46,
18,
35,
26,
43,
47,
62,
81,
82,
95,
101,
99,
95,
91,
91,
79,
47,
49,
24,
14,
13,
17,
10,
12,
10,
15,
20,
20,
25,
21,
21,
22,
23,
13,
13,
15,
15,
35,
13,
10,
19,
10,
103,
82,
73,
74,
62,
47,
21,
12,
13,
20,
28,
41,
52,
49,
57,
94,
86,
88,
106,
22,
14,
29,
28,
20,
34,
29,
36,
11,
15,
11,
17,
12,
26,
27,
21,
13,
24,
23,
19,
13,
39,
36,
47,
41,
69,
92,
88,
95,
74,
90,
82,
58,
81,
66,
70,
51,
26,
32,
16,
15,
13,
11,
10,
18,
21,
22,
34,
22,
24,
14,
11,
11,
10,
22,
26,
14,
10,
10,
11,
983,
2553,
608,
358,
373,
560,
262,
380,
425,
100,
381,
356,
191,
166,
477,
43,
182,
39,
12,
13,
181,
115,
58,
184,
222,
280,
14,
80,
76,
66,
23,
22,
18,
174,
26,
15,
14,
18,
11,
27,
20,
29,
98,
30,
46,
15,
35,
12,
10,
12,
25,
16,
20,
14,
22,
36,
53,
37,
42,
26,
10,
10,
11,
13,
14,
22,
27,
19,
32,
15,
20,
13,
17,
16,
10,
2466,
11,
23,
11,
10,
13,
13,
18,
11,
20,
10,
15,
18,
10,
11,
24,
207,
24,
12,
28,
14,
10,
15,
13,
10,
13,
13,
12,
13,
17,
11,
12,
14,
13,
28,
30,
32,
11,
11,
16,
20,
50,
10,
13,
10,
19,
12,
14,
17,
14,
11,
12,
26,
10,
23,
80,
24,
133,
48,
31,
12,
14,
25,
39,
18,
14,
20,
18,
23,
24,
19,
16,
11,
31,
13,
11,
13,
19,
20,
20,
11,
11,
14,
12,
10,
11,
15,
22,
17,
13,
10,
11,
14,
24,
12,
76,
18,
14,
11,
12,
218,
11,
42,
17,
13,
174,
64,
22,
10,
40,
12,
27,
11,
10,
16,
10,
12,
17,
12,
13,
10,
13,
12,
18,
38,
27,
32,
15,
11,
38,
24,
20,
14,
13,
10,
10,
13,
12,
20,
19,
16,
45,
38,
34,
21,
12,
19,
10,
11,
13,
28,
27,
41,
38,
54,
82,
80,
51,
100,
103,
93,
66,
75,
60,
48,
56,
16,
13,
11,
11,
15,
11,
11,
14,
15,
15,
19,
21,
29,
40,
36,
37,
38,
40,
71,
64,
15,
17,
15,
20,
20,
15,
23,
30,
16,
13,
12,
14,
10,
83,
67,
50,
58,
59,
30,
21,
17,
10,
13,
13,
10,
13,
11,
14,
14,
10,
12,
19,
24,
34,
36,
37,
33,
51,
52,
82,
81,
95,
25,
21,
17,
17,
10,
30,
34,
20,
102,
76,
63,
65,
48,
42,
18,
18,
12,
13,
16,
13,
14,
13,
25,
22,
18,
36,
25,
37,
23,
58,
69,
54,
82,
105,
87,
59,
62,
53,
34,
33,
30,
12,
12,
10,
11,
13,
10,
10,
12,
11,
19,
25,
21,
28,
14,
12,
12,
11,
13,
19,
11,
21,
28,
29,
36,
41,
46,
78,
92,
79,
93,
14,
12,
17,
24,
25,
29,
21,
13,
14,
90,
71,
65,
40,
32,
36,
23,
10,
15,
11,
11,
15,
11,
15,
16,
16,
12,
10,
13,
22,
23,
37,
37,
41,
56,
56,
78,
91,
77,
91,
71,
88,
57,
42,
29,
20,
10,
14,
10,
13,
19,
13,
28,
28,
37,
17,
13,
10,
12,
11,
13,
10,
14,
17,
17,
15,
20,
26,
25,
52,
45,
43,
74,
88,
71,
71,
73,
51,
54,
37,
30,
33,
10,
10,
18,
11,
26,
16,
16,
38,
30,
16,
10,
10,
13,
16,
13,
16,
12,
27,
26,
23,
33,
36,
57,
63,
57,
65,
103,
12,
11,
11,
15,
14,
24,
17,
22,
17,
10,
10,
11,
91,
73,
50,
50,
41,
34,
21,
11,
11,
15,
11,
11,
20,
24,
22,
23,
37,
51,
47,
59,
66,
67,
12,
14,
10,
17,
15,
20,
33,
30,
21,
76,
63,
76,
56,
38,
30,
16,
20,
10,
13,
10,
13,
13,
13,
19,
11,
43,
16,
19,
17,
13,
10,
12,
10,
18,
18,
27,
32,
31,
44,
49,
73,
69,
87,
112,
94,
89,
68,
81,
56,
28,
31,
21,
10,
14,
11,
66,
15,
18,
37,
38,
62,
58,
52,
18,
22,
16,
20,
22,
20,
10,
15,
10,
12,
14,
10,
13,
16,
16,
10,
10,
10,
23,
15,
15,
12,
12,
20,
26,
33,
34,
36,
52,
77,
78,
69,
92,
110,
18,
11,
20,
25,
18,
36,
47,
36,
33,
123,
89,
62,
57,
66,
25,
31,
14,
19,
14,
24,
15,
23,
13,
11,
11,
18,
11,
24,
29,
10,
31,
11,
10,
13,
14,
12,
10,
80,
91,
80,
74,
56,
28,
24,
20,
25,
30,
50,
42,
52,
69,
76,
86,
113,
94,
16,
15,
14,
27,
40,
58,
49,
15,
21,
15,
18,
13,
12,
12,
10,
15,
14,
12,
24,
24,
29,
41,
24,
49,
44,
52,
54,
70,
84,
93,
86,
73,
75,
69,
57,
46,
60,
33,
23,
14,
16,
12,
12,
14,
24,
19,
12,
17,
46,
15,
10,
10,
11,
10,
12,
12,
10,
11,
11,
11,
12,
11,
13,
22,
11,
68,
10,
16,
10,
16,
24,
48,
14,
27,
63,
15,
25,
68,
59,
2388,
27,
28,
37,
36,
40,
78,
52,
42,
35,
25,
17,
29,
21,
26,
19,
12,
20,
12,
14,
52,
25,
28,
22,
16,
16,
23,
14,
11,
57,
13,
13,
17,
16,
10,
15,
13,
15,
11,
13,
10,
12,
12,
47,
173,
10,
14,
20,
21,
11,
24,
34,
22,
19,
12,
15,
16,
18,
13,
11,
49,
59,
10,
28,
20,
16,
19,
11,
11,
22,
14,
17,
11,
13,
10,
13,
13,
40,
11,
20,
13,
30,
18,
11,
16,
11,
10,
10,
24,
20,
17,
17,
15,
15,
10,
11,
30,
10,
16,
11,
27,
14,
32,
23,
22,
14,
11,
12,
16,
10,
10,
11,
13,
57,
20,
13,
10,
20,
32,
37,
16,
12,
15,
45,
40,
10,
17,
10,
29,
10,
15,
19,
17,
23,
11,
11,
11,
12,
34,
13,
13,
11,
13,
10,
34,
11,
20,
12,
12,
12,
10,
15,
10,
14,
15,
61,
24,
10,
10,
20,
10,
45,
17,
15,
11,
11,
35,
12,
13,
13,
27,
13,
24,
32,
13,
10,
10,
12,
12,
12,
10,
12,
23,
26,
17,
15,
18,
20,
45,
13,
10,
15,
16,
15,
13,
15,
14,
13,
12,
12,
13,
16,
16,
11,
11,
11,
12,
12,
14,
35,
10,
11,
12,
13,
12,
10,
12,
10,
14,
10,
33,
12,
10,
16,
22,
10,
11,
37,
11,
139,
21,
17,
16,
18,
118,
12,
16,
16,
14,
13,
161,
26,
43,
15,
15,
387,
129,
14,
21,
20,
31,
12,
12,
14,
15,
30,
29,
12,
20,
19,
21,
20,
20,
20,
22,
10,
10,
12,
25,
19,
19,
23,
12,
16,
14,
15,
20,
12,
14,
11,
18,
14,
20,
16,
17,
10,
11,
24,
24,
21,
40,
35,
51,
73,
84,
83,
90,
33,
18,
17,
24,
32,
40,
31,
23,
44,
14,
74,
73,
62,
55,
40,
24,
27,
10,
25,
11,
10,
13,
20,
18,
32,
21,
15,
15,
15,
15,
19,
16,
24,
16,
18,
16,
17,
16,
22,
15,
13,
14,
12,
18,
11,
16,
24,
11,
13,
16,
35,
34,
40,
59,
49,
57,
58,
87,
108,
32,
19,
17,
15,
23,
22,
31,
48,
34,
11,
89,
63,
54,
58,
48,
32,
15,
14,
13,
13,
11,
18,
11,
10,
13,
10,
10,
12,
15,
19,
17,
18,
19,
13,
11,
10,
11,
20,
19,
11,
13,
15,
15,
14,
23,
40,
29,
16,
28,
28,
41,
58,
38,
28,
19,
19,
37,
31,
24,
41,
52,
81,
96,
90,
90,
82,
72,
76,
53,
50,
35,
19,
17,
16,
10,
14,
11,
10,
10,
12,
17,
21,
22,
12,
13,
10,
16,
29,
12,
11,
10,
11,
12,
18,
20,
11,
20,
11,
12,
12,
45,
14,
10,
25,
18,
28,
48,
35,
20,
11,
24,
23,
37,
30,
39,
55,
70,
67,
94,
85,
72,
80,
67,
49,
44,
33,
13,
15,
11,
10,
18,
10,
20,
21,
27,
13,
13,
11,
10,
15,
14,
15,
15,
10,
30,
13,
10,
18,
10,
10,
19,
83,
14,
37,
18,
26,
32,
35,
35,
25,
17,
21,
16,
32,
33,
48,
42,
48,
48,
57,
84,
84,
60,
64,
54,
28,
48,
18,
15,
24,
14,
17,
15,
18,
11,
12,
15,
17,
11,
13,
11,
12,
11,
10,
14,
10,
10,
13,
10,
18,
11,
23,
29,
24,
17,
27,
32,
18,
13,
33,
22,
26,
39,
48,
49,
76,
60,
79,
110,
82,
73,
49,
56,
43,
28,
23,
21,
10,
10,
10,
15,
15,
17,
19,
15,
11,
13,
11,
11,
12,
13,
13,
15,
15,
15,
25,
19,
15,
18,
41,
34,
39,
33,
28,
14,
11,
10,
10,
11,
10,
17,
27,
29,
43,
35,
56,
73,
55,
89,
80,
101,
52,
66,
50,
45,
27,
23,
15,
11,
10,
10,
10,
13,
10,
10,
10,
14,
13,
21,
10,
10,
12,
10,
15,
13,
15,
12,
13,
27,
18,
35,
33,
65,
63,
55,
58,
69,
48,
12,
20,
33,
23,
25,
29,
25,
19,
75,
67,
60,
53,
51,
31,
23,
14,
11,
11,
11,
17,
16,
10,
12,
16,
14,
17,
10,
10,
20,
11,
13,
12,
32,
24,
20,
20,
13,
28,
40,
35,
25,
16,
16,
27,
43,
36,
43,
36,
55,
88,
67,
78,
68,
65,
54,
59,
31,
21,
26,
14,
18,
13,
18,
13,
12,
12,
10,
214,
18,
26,
11,
24,
26,
27,
28,
12,
24,
13,
10,
17,
50,
12,
16,
10,
19,
13,
39,
33,
42,
47,
72,
71,
80,
79,
115,
92,
100,
61,
62,
66,
46,
35,
25,
10,
10,
14,
27,
17,
14,
21,
22,
37,
44,
38,
13,
40,
13,
23,
22,
11,
15,
12,
12,
19,
17,
21,
10,
15,
12,
11,
13,
18,
18,
14,
11,
23,
22,
11,
36,
26,
32,
47,
50,
49,
67,
69,
102,
83,
10,
50,
32,
32,
23,
31,
34,
35,
25,
80,
82,
72,
56,
44,
33,
28,
11,
10,
10,
11,
13,
12,
17,
21,
18,
19,
11,
18,
10,
10,
21,
10,
12,
16,
10,
12,
11,
12,
22,
100,
90,
86,
54,
33,
35,
22,
10,
14,
23,
41,
32,
40,
51,
67,
83,
76,
86,
101,
16,
14,
33,
20,
30,
24,
33,
35,
14,
11,
21,
19,
11,
20,
12,
13,
19,
27,
16,
30,
26,
33,
27,
34,
59,
70,
93,
63,
73,
43,
54,
53,
50,
55,
52,
22,
15,
12,
13,
11,
14,
16,
22,
23,
15,
16,
16,
10,
10,
11,
15,
1610,
24,
11,
14,
13,
13,
15,
12,
13,
18,
17,
31,
52,
23,
13,
12,
26,
11,
36,
19,
15,
11,
20,
21,
46,
29,
40,
40,
30,
25,
18,
15,
10,
12,
12,
12,
32,
151,
11,
22,
11,
15,
13,
10,
13,
11,
10,
13,
12,
13,
12,
10,
11,
12,
11,
33,
10,
18,
15,
13,
13,
21,
14,
14,
19,
22,
19,
12,
16,
19,
15,
13,
13,
12,
29,
22,
11,
11,
17,
12,
13,
20,
22,
13,
10,
13,
17,
12,
11,
10,
12,
44,
18,
10,
14,
23,
17,
31,
33,
37,
50,
68,
48,
95,
102,
36,
23,
25,
25,
34,
40,
29,
15,
88,
58,
75,
60,
62,
47,
37,
15,
14,
13,
14,
16,
22,
14,
14,
13,
17,
11,
16,
13,
13,
13,
28,
29,
37,
26,
63,
56,
57,
79,
90,
85,
99,
90,
93,
56,
25,
36,
20,
22,
14,
18,
12,
12,
11,
30,
30,
44,
26,
15,
10,
13,
10,
17,
21,
11,
11,
21,
16,
19,
11,
14,
11,
28,
29,
35,
36,
36,
46,
50,
66,
100,
76,
12,
13,
11,
19,
12,
34,
49,
40,
17,
74,
74,
67,
53,
42,
31,
26,
13,
13,
15,
12,
10,
12,
10,
12,
11,
12,
14,
10,
11,
17,
12,
10,
12,
10,
10,
86,
85,
66,
54,
39,
38,
35,
16,
13,
12,
22,
25,
27,
36,
48,
47,
70,
87,
60,
12,
16,
24,
18,
32,
35,
26,
25,
13,
14,
10,
11,
15,
12,
17,
10,
10,
10,
14,
28,
20,
26,
24,
32,
28,
13,
22,
17,
23,
40,
40,
64,
58,
51,
101,
92,
78,
64,
61,
43,
58,
42,
33,
14,
10,
10,
14,
13,
14,
18,
11,
13,
14,
12,
19,
10,
25,
18,
26,
36,
46,
58,
71,
82,
106,
114,
83,
75,
72,
56,
61,
35,
22,
17,
12,
11,
12,
15,
14,
14,
22,
15,
18,
13,
23,
13,
41,
33,
25,
16,
11,
18,
19,
16,
14,
13,
16,
16,
10,
17,
21,
30,
32,
63,
64,
55,
62,
81,
91,
16,
10,
14,
17,
27,
29,
35,
19,
20,
14,
10,
10,
15,
12,
92,
80,
70,
64,
44,
25,
23,
20,
15,
14,
16,
13,
16,
20,
22,
22,
18,
26,
42,
31,
34,
53,
67,
74,
75,
82,
17,
11,
10,
16,
90,
75,
59,
64,
38,
36,
34,
18,
14,
13,
14,
15,
29,
38,
35,
24,
13,
11,
10,
10,
14,
16,
21,
37,
30,
37,
49,
73,
61,
78,
99,
104,
12,
14,
14,
12,
97,
77,
74,
43,
37,
35,
16,
12,
24,
20,
22,
40,
35,
10,
16,
13,
16,
25,
18,
20,
17,
14,
10,
11,
17,
16,
11,
13,
96,
11,
15,
13,
12,
15,
14,
17,
110,
91,
73,
58,
46,
33,
30,
15,
23,
25,
40,
36,
44,
61,
57,
64,
87,
121,
113,
52,
12,
20,
38,
25,
31,
41,
26,
14,
24,
20,
13,
92,
10,
12,
11,
23,
30,
19,
20,
10,
11,
10,
10,
11,
14,
15,
12,
10,
39,
14,
13,
17,
12,
18,
19,
23,
31,
42,
47,
63,
84,
84,
93,
103,
98,
107,
80,
82,
90,
48,
27,
22,
14,
14,
11,
15,
12,
14,
26,
18,
41,
32,
32,
24,
11,
11,
14,
10,
16,
13,
21,
15,
16,
16,
27,
10,
20,
13,
11,
13,
22,
32,
11,
19,
10,
19,
14,
14,
34,
34,
63,
47,
70,
68,
97,
89,
114,
108,
97,
60,
85,
57,
35,
36,
25,
17,
12,
16,
26,
13,
40,
21,
25,
39,
49,
51,
16,
11,
16,
15,
12,
12,
16,
13,
24,
31,
23,
23,
16,
22,
20,
12,
25,
32,
45,
51,
59,
72,
78,
76,
58,
89,
10,
26,
12,
12,
24,
20,
25,
23,
26,
56,
70,
68,
64,
51,
50,
36,
29,
11,
14,
11,
13,
18,
18,
10,
10,
12,
13,
10,
14,
4643,
11,
20,
31,
11,
17,
19,
14,
20,
11,
18,
32,
10,
22,
22,
13,
22,
29,
35,
21,
26,
19,
26,
10,
22,
18,
11,
10,
11,
10,
13,
17,
13,
75,
16,
11,
20,
11,
392,
15,
10,
107,
18,
15,
24,
14,
36,
18,
16,
12,
11,
11,
511,
21,
53,
42,
33,
16,
51,
59,
15,
11,
64,
17,
209,
13,
10,
26,
25,
57,
10,
10,
27,
16,
10,
12,
12,
11,
11,
11,
11,
10,
11,
19,
21,
11,
14,
10,
10,
22,
17,
18,
16,
20,
18,
13,
11,
10,
13,
10,
13,
12,
11,
12,
69,
74,
68,
64,
52,
43,
31,
11,
10,
15,
10,
11,
19,
21,
28,
38,
41,
18,
14,
25,
27,
21,
31,
37,
61,
61,
71,
62,
81,
14,
14,
11,
10,
13,
15,
12,
20,
10,
10,
11,
12,
19,
10,
11,
10,
16,
14,
24,
23,
30,
35,
49,
61,
68,
81,
86,
90,
11,
17,
20,
20,
22,
24,
37,
15,
16,
88,
88,
66,
58,
48,
46,
31,
19,
10,
12,
12,
10,
14,
16,
25,
25,
20,
14,
19,
10,
14,
21,
31,
35,
29,
21,
14,
31,
36,
48,
33,
43,
51,
83,
85,
107,
72,
85,
74,
80,
67,
50,
38,
33,
17,
13,
17,
13,
10,
10,
14,
11,
11,
14,
12,
22,
12,
15,
16,
10,
15,
13,
13,
15,
12,
11,
12,
21,
28,
33,
25,
55,
56,
59,
70,
71,
76,
103,
59,
101,
57,
52,
41,
29,
10,
12,
13,
24,
23,
40,
46,
24,
17,
15,
15,
10,
14,
13,
14,
16,
12,
18,
15,
10,
12,
10,
19,
10,
10,
17,
21,
26,
43,
30,
14,
21,
35,
34,
36,
48,
74,
73,
96,
87,
86,
88,
58,
68,
68,
40,
26,
21,
13,
17,
13,
11,
13,
10,
13,
15,
21,
19,
11,
17,
17,
21,
19,
26,
32,
38,
21,
10,
19,
23,
33,
37,
38,
56,
69,
70,
93,
101,
98,
72,
85,
73,
51,
57,
22,
19,
12,
12,
10,
11,
13,
13,
21,
17,
10,
11,
10,
18,
10,
29,
19,
38,
50,
44,
58,
79,
66,
91,
90,
16,
16,
22,
18,
16,
22,
28,
23,
12,
12,
105,
69,
64,
59,
57,
33,
33,
10,
20,
14,
10,
11,
10,
14,
24,
17,
15,
30,
28,
31,
43,
66,
64,
63,
81,
113,
21,
11,
13,
17,
16,
29,
34,
36,
16,
14,
10,
77,
47,
60,
53,
43,
46,
22,
23,
10,
11,
15,
14,
17,
10,
10,
11,
61,
11,
10,
27,
20,
28,
35,
31,
47,
61,
61,
70,
72,
14,
14,
14,
21,
29,
38,
24,
20,
73,
67,
63,
52,
43,
49,
26,
11,
13,
11,
12,
12,
12,
12,
19,
11,
16,
28,
15,
12,
17,
68,
33,
14,
10,
12,
12,
50,
11,
11,
10,
14,
15,
13,
10,
32,
19,
30,
20,
17,
47,
43,
28,
19,
19,
25,
43,
31,
48,
55,
78,
98,
124,
88,
22,
25,
21,
17,
28,
17,
14,
16,
10,
11,
19,
22,
18,
14,
16,
80,
83,
70,
72,
56,
33,
24,
10,
25,
13,
12,
11,
12,
85,
70,
61,
51,
34,
33,
21,
14,
11,
15,
14,
15,
11,
23,
20,
22,
32,
45,
46,
57,
78,
84,
87,
17,
19,
17,
19,
32,
27,
15,
14,
18,
17,
21,
14,
14,
19,
14,
13,
11,
10,
10,
11,
12,
11,
16,
16,
32,
30,
39,
36,
50,
77,
80,
64,
89,
75,
13,
13,
13,
19,
20,
21,
36,
39,
24,
108,
88,
79,
71,
56,
31,
21,
10,
10,
11,
15,
18,
25,
18,
21,
12,
16,
43,
22,
36,
34,
50,
49,
66,
78,
74,
68,
65,
64,
59,
53,
54,
40,
32,
17,
10,
10,
14,
10,
15,
16,
19,
19,
14,
18,
13,
11,
12,
11,
2068,
19,
18,
10,
10,
14,
15,
10,
12,
11,
20,
21,
12,
11,
11,
30,
20,
11,
21,
16,
22,
39,
20,
29,
49,
33,
14,
16,
13,
16,
17,
10,
11,
11,
16,
13,
15,
24,
13,
10,
42,
27,
20,
24,
13,
19,
15,
15,
15,
12,
10,
18,
25,
10,
471,
18,
226,
18,
20,
12,
17,
10,
15,
12,
11,
15,
13,
26,
44,
28,
24,
18,
14,
27,
24,
18,
24,
22,
10,
12,
11,
21,
10,
13,
11,
10,
11,
12,
21,
11,
14,
15,
14,
13,
14,
15,
13,
12,
23,
11,
10,
11,
14,
17,
14,
136,
67,
24,
12,
12,
17,
14,
11,
12,
10,
10,
18,
10,
13,
20,
23,
22,
12,
18,
10,
12,
11,
11,
12,
10,
13,
13,
13,
11,
11,
12,
10,
10,
13,
10,
11,
17,
12,
10,
10,
11,
13,
19,
26,
29,
38,
41,
45,
56,
65,
90,
77,
51,
44,
64,
55,
37,
24,
19,
11,
10,
15,
19,
20,
24,
27,
37,
20,
14,
10,
13,
10,
12,
15,
11,
14,
13,
25,
24,
34,
26,
55,
45,
60,
76,
67,
80,
11,
15,
12,
36,
23,
29,
28,
14,
94,
70,
58,
42,
55,
31,
23,
12,
10,
10,
18,
10,
10,
17,
11,
13,
18,
18,
11,
11,
10,
15,
11,
14,
19,
18,
25,
24,
31,
42,
56,
52,
69,
68,
77,
57,
73,
46,
53,
41,
34,
15,
11,
17,
20,
18,
19,
29,
44,
23,
11,
12,
11,
13,
10,
14,
16,
36,
25,
50,
42,
35,
47,
60,
83,
100,
18,
11,
10,
15,
16,
21,
35,
24,
20,
108,
78,
72,
70,
47,
33,
11,
11,
14,
10,
14,
15,
16,
10,
13,
16,
18,
18,
33,
30,
36,
37,
49,
80,
77,
79,
83,
93,
81,
61,
62,
41,
22,
19,
19,
16,
11,
11,
13,
17,
33,
36,
19,
15,
12,
11,
11,
11,
10,
12,
17,
10,
11,
13,
11,
17,
13,
19,
23,
52,
36,
40,
45,
53,
75,
98,
71,
66,
81,
62,
57,
36,
34,
22,
13,
15,
14,
10,
22,
21,
44,
26,
20,
10,
10,
12,
17,
13,
12,
15,
13,
14,
18,
10,
22,
10,
11,
14,
12,
20,
26,
25,
16,
13,
15,
18,
19,
20,
26,
46,
42,
53,
53,
56,
60,
71,
70,
67,
44,
46,
26,
21,
20,
11,
11,
30,
12,
11,
14,
10,
10,
12,
10,
21,
24,
23,
33,
36,
55,
48,
66,
100,
88,
79,
50,
58,
58,
42,
30,
25,
11,
12,
12,
16,
24,
24,
25,
14,
26,
15,
10,
13,
10,
15,
13,
15,
19,
16,
23,
34,
33,
27,
51,
46,
60,
71,
65,
90,
12,
15,
15,
13,
24,
24,
24,
14,
79,
74,
58,
45,
44,
27,
26,
10,
10,
11,
12,
13,
13,
14,
16,
16,
12,
13,
27,
14,
11,
10,
19,
19,
23,
12,
10,
26,
29,
28,
46,
49,
69,
75,
75,
82,
119,
11,
12,
11,
15,
24,
26,
40,
31,
16,
97,
105,
82,
54,
71,
38,
33,
13,
14,
14,
21,
20,
18,
15,
14,
10,
11,
18,
22,
18,
10,
10,
15,
11,
11,
10,
19,
12,
12,
20,
33,
35,
45,
33,
44,
58,
57,
84,
78,
92,
28,
11,
22,
22,
37,
43,
36,
29,
17,
91,
68,
66,
45,
50,
27,
26,
13,
11,
11,
13,
12,
14,
14,
21,
19,
19,
12,
22,
16,
15,
12,
13,
13,
14,
23,
45,
40,
48,
66,
43,
80,
76,
100,
88,
72,
85,
84,
64,
57,
43,
17,
15,
10,
10,
23,
13,
17,
32,
32,
49,
27,
14,
16,
26,
11,
16,
12,
13,
12,
22,
24,
22,
31,
33,
39,
47,
54,
57,
75,
77,
65,
86,
84,
70,
65,
72,
54,
58,
45,
27,
13,
14,
12,
11,
12,
20,
23,
21,
16,
13,
26,
12,
47,
237,
13,
26,
16,
31,
43,
54,
32,
40,
24,
12,
15,
14,
16,
18,
12,
13,
11,
10,
17,
12,
10,
1438,
18,
10,
12,
12,
11,
10,
11,
10,
19,
18,
11,
11,
41,
15,
10,
10,
11,
13,
28,
24,
31,
14,
14,
12,
15,
13,
13,
16,
24,
10,
2489,
48,
73,
23,
11,
40,
24,
11,
19,
11,
10,
33,
73,
14,
22,
12,
70,
142,
34,
83,
17,
10,
23,
51,
25,
10,
11,
16,
24,
22,
34,
11,
12,
19,
52,
19,
15,
20,
20,
13,
28,
10,
14,
19,
15,
11,
14,
162,
11,
55,
15,
10,
10,
14,
10,
11,
15,
21,
22,
55,
25,
13,
10,
17,
31,
24,
36,
39,
62,
83,
64,
93,
78,
85,
105,
62,
59,
38,
37,
22,
15,
12,
13,
11,
10,
18,
14,
17,
10,
14,
11,
12,
23,
15,
19,
23,
32,
32,
53,
69,
49,
59,
10,
13,
12,
17,
11,
19,
33,
23,
18,
77,
59,
64,
52,
34,
41,
16,
19,
12,
12,
12,
14,
11,
11,
10,
15,
15,
28,
33,
52,
38,
60,
62,
76,
78,
85,
71,
51,
66,
51,
27,
23,
10,
11,
13,
16,
25,
19,
29,
17,
13,
10,
12,
10,
14,
14,
11,
23,
15,
30,
25,
34,
37,
49,
47,
64,
61,
78,
67,
74,
61,
45,
41,
20,
25,
15,
10,
13,
10,
21,
21,
22,
23,
11,
10,
11,
15,
17,
16,
13,
10,
14,
10,
19,
11,
20,
17,
29,
38,
52,
59,
50,
72,
82,
15,
12,
12,
57,
62,
70,
53,
53,
27,
32,
17,
10,
13,
26,
23,
44,
25,
14,
12,
10,
12,
10,
11,
10,
23,
29,
34,
43,
50,
63,
59,
65,
78,
78,
10,
10,
20,
14,
18,
22,
21,
21,
84,
68,
47,
37,
48,
18,
31,
12,
12,
16,
11,
10,
11,
10,
17,
10,
15,
17,
13,
12,
27,
24,
29,
36,
58,
54,
42,
65,
80,
13,
11,
19,
14,
16,
19,
27,
24,
76,
69,
47,
42,
36,
35,
24,
13,
13,
10,
11,
11,
20,
17,
31,
35,
34,
23,
44,
57,
51,
78,
70,
12,
13,
11,
18,
25,
22,
25,
36,
11,
80,
61,
58,
45,
36,
33,
31,
16,
15,
12,
16,
15,
18,
11,
11,
33,
18,
18,
27,
31,
42,
43,
46,
87,
76,
10,
11,
15,
20,
20,
31,
37,
26,
81,
72,
49,
60,
27,
34,
22,
13,
16,
12,
15,
10,
15,
12,
10,
14,
18,
14,
17,
29,
29,
34,
49,
46,
66,
68,
58,
87,
11,
12,
17,
26,
29,
42,
28,
16,
76,
58,
71,
52,
47,
47,
24,
15,
21,
16,
26,
20,
21,
11,
13,
15,
12,
13,
10,
11,
11,
11,
13,
21,
26,
29,
39,
26,
50,
47,
77,
67,
98,
95,
13,
16,
21,
24,
19,
22,
19,
39,
10,
101,
94,
65,
69,
63,
39,
27,
19,
17,
18,
14,
16,
11,
10,
14,
21,
18,
13,
10,
11,
25,
10,
18,
15,
29,
36,
35,
37,
50,
55,
70,
79,
115,
78,
85,
86,
81,
72,
64,
31,
22,
16,
11,
21,
16,
36,
38,
32,
32,
23,
17,
21,
12,
10,
11,
11,
17,
12,
21,
36,
37,
35,
48,
48,
52,
50,
63,
70,
67,
67,
64,
69,
68,
53,
43,
30,
19,
12,
13,
15,
21,
13,
17,
34,
10,
13,
20,
18,
30,
16,
30,
25,
24,
35,
22,
12,
12,
10,
11,
13,
10,
10,
11,
11,
13,
10,
93,
13,
10,
16,
947,
18,
18,
13,
12,
12,
22,
13,
15,
11,
11,
19,
17,
22,
13,
16,
13,
62,
23,
10,
21,
24,
37,
20,
51,
44,
54,
99,
77,
88,
60,
49,
62,
51,
50,
40,
20,
16,
12,
12,
19,
16,
18,
17,
33,
43,
16,
12,
19,
12,
14,
12,
13,
27,
11,
20,
20,
19,
35,
40,
48,
47,
57,
59,
78,
11,
11,
10,
22,
27,
27,
27,
28,
15,
73,
78,
67,
53,
35,
19,
17,
12,
17,
11,
12,
12,
20,
24,
22,
32,
36,
33,
61,
60,
58,
79,
80,
15,
13,
10,
86,
54,
54,
52,
47,
36,
30,
10,
17,
11,
30,
20,
23,
12,
15,
13,
12,
11,
20,
14,
13,
33,
26,
19,
24,
31,
40,
55,
42,
79,
65,
14,
12,
11,
12,
28,
39,
24,
14,
60,
61,
73,
67,
46,
29,
24,
15,
11,
12,
14,
15,
34,
21,
37,
40,
32,
47,
49,
70,
68,
62,
54,
74,
59,
31,
28,
23,
21,
10,
15,
12,
20,
19,
29,
32,
27,
15,
16,
12,
12,
11,
13,
18,
18,
15,
23,
37,
40,
41,
62,
65,
71,
10,
10,
20,
24,
26,
23,
25,
77,
57,
58,
46,
44,
24,
23,
12,
17,
11,
13,
12,
13,
12,
26,
33,
18,
27,
46,
39,
59,
67,
41,
73,
74,
64,
40,
47,
39,
46,
13,
10,
11,
13,
16,
25,
19,
33,
24,
14,
10,
10,
13,
12,
12,
27,
21,
25,
55,
44,
63,
65,
69,
74,
55,
62,
45,
59,
41,
23,
10,
10,
11,
22,
21,
26,
20,
16,
10,
21,
15,
10,
10,
11,
13,
23,
20,
33,
44,
58,
37,
58,
60,
91,
83,
71,
62,
70,
45,
46,
29,
27,
10,
15,
20,
14,
27,
14,
23,
13,
10,
11,
15,
11,
21,
10,
10,
12,
32,
13,
12,
16,
29,
19,
32,
32,
47,
57,
65,
92,
66,
92,
12,
12,
12,
16,
23,
30,
31,
26,
17,
99,
83,
77,
55,
33,
45,
15,
13,
13,
17,
14,
17,
14,
10,
12,
11,
12,
31,
10,
10,
26,
13,
10,
12,
17,
30,
27,
38,
35,
55,
40,
67,
80,
102,
91,
83,
72,
74,
64,
53,
54,
20,
12,
10,
11,
14,
16,
18,
15,
29,
27,
31,
16,
15,
18,
12,
16,
21,
14,
13,
10,
25,
24,
41,
43,
59,
60,
60,
44,
71,
76,
22,
13,
17,
23,
21,
35,
34,
32,
22,
12,
10,
14,
99,
74,
30,
42,
41,
36,
28,
14,
12,
14,
25,
16,
14,
17,
10,
21,
10,
16,
14,
20,
28,
43,
30,
34,
35,
43,
52,
71,
59,
52,
69,
72,
75,
74,
74,
64,
51,
34,
22,
13,
12,
16,
13,
23,
16,
27,
10,
11,
20,
24,
22,
23,
16,
23,
20,
25,
17,
26,
18,
17,
18,
10,
11,
10,
10,
12,
11,
14,
11,
836,
111,
24,
10,
24,
24,
36,
36,
39,
44,
63,
75,
78,
88,
80,
72,
79,
51,
37,
29,
23,
14,
19,
11,
15,
16,
22,
32,
24,
43,
30,
30,
15,
11,
14,
13,
11,
11,
11,
15,
25,
10,
14,
15,
24,
12,
16,
27,
30,
21,
11,
43,
26,
21,
34,
29,
42,
61,
45,
57,
77,
64,
64,
58,
56,
40,
43,
19,
10,
16,
13,
13,
17,
11,
12,
10,
12,
11,
10,
14,
18,
17,
22,
35,
48,
50,
52,
85,
74,
16,
10,
10,
17,
10,
19,
26,
34,
16,
104,
61,
42,
35,
40,
40,
32,
15,
10,
12,
12,
13,
11,
25,
11,
15,
11,
20,
17,
26,
30,
42,
46,
47,
64,
87,
86,
16,
18,
12,
11,
17,
18,
35,
29,
15,
86,
60,
56,
58,
39,
46,
24,
10,
14,
13,
11,
12,
10,
11,
12,
17,
21,
20,
32,
28,
43,
40,
62,
81,
60,
92,
13,
16,
13,
22,
26,
28,
29,
13,
88,
70,
80,
60,
47,
33,
16,
10,
11,
11,
11,
11,
12,
10,
10,
14,
11,
15,
27,
25,
30,
30,
40,
51,
52,
71,
75,
76,
88,
68,
60,
57,
38,
34,
26,
11,
18,
23,
15,
27,
40,
21,
20,
10,
11,
13,
10,
13,
10,
12,
14,
14,
12,
13,
25,
23,
31,
30,
41,
51,
68,
65,
80,
10,
18,
12,
11,
21,
34,
32,
21,
87,
58,
70,
44,
32,
28,
17,
10,
15,
17,
14,
13,
11,
11,
14,
31,
20,
32,
28,
32,
50,
44,
43,
68,
78,
19,
26,
18,
40,
21,
29,
11,
82,
69,
52,
40,
39,
34,
28,
16,
14,
14,
13,
15,
13,
20,
14,
22,
30,
37,
51,
39,
46,
69,
61,
10,
10,
25,
18,
22,
20,
28,
15,
80,
68,
52,
58,
40,
27,
30,
12,
12,
11,
14,
10,
10,
10,
10,
13,
11,
10,
13,
10,
33,
12,
10,
14,
21,
33,
26,
34,
50,
76,
71,
81,
96,
95,
14,
12,
22,
28,
24,
52,
34,
18,
99,
110,
106,
64,
53,
38,
30,
17,
18,
10,
19,
10,
12,
17,
10,
11,
16,
15,
12,
22,
39,
33,
35,
59,
59,
63,
80,
83,
77,
14,
16,
21,
24,
27,
34,
45,
31,
11,
23,
20,
13,
10,
15,
10,
13,
11,
104,
68,
82,
67,
50,
38,
18,
10,
23,
14,
20,
11,
14,
17,
16,
17,
34,
43,
22,
46,
52,
68,
71,
85,
90,
19,
14,
18,
15,
23,
27,
36,
33,
12,
33,
12,
10,
14,
91,
103,
55,
61,
49,
36,
28,
10,
12,
14,
14,
10,
11,
25,
17,
24,
16,
12,
30,
27,
40,
31,
43,
56,
45,
70,
54,
72,
85,
72,
66,
66,
70,
51,
29,
13,
12,
11,
21,
15,
20,
17,
25,
30,
14,
11,
22,
15,
24,
23,
24,
28,
30,
29,
25,
24,
20,
15,
11,
17,
11,
10,
11,
13,
1008,
10,
27,
11,
17,
16,
17,
13,
25,
11,
15,
24,
28,
38,
30,
65,
58,
73,
85,
101,
106,
59,
89,
63,
37,
40,
21,
14,
12,
15,
18,
14,
16,
14,
20,
25,
35,
38,
25,
10,
11,
12,
20,
17,
16,
17,
10,
14,
15,
28,
27,
20,
46,
60,
51,
72,
83,
63,
52,
46,
41,
37,
38,
22,
12,
10,
12,
15,
21,
13,
13,
24,
20,
12,
11,
10,
15,
24,
24,
23,
17,
33,
51,
48,
45,
61,
86,
72,
62,
44,
46,
52,
29,
21,
14,
13,
18,
19,
20,
22,
23,
18,
10,
11,
12,
14,
13,
16,
21,
21,
33,
20,
42,
52,
49,
55,
43,
74,
55,
59,
63,
40,
24,
32,
13,
10,
12,
11,
31,
14,
23,
22,
12,
13,
12,
10,
19,
15,
30,
32,
29,
43,
38,
54,
61,
56,
61,
71,
57,
43,
54,
31,
27,
13,
10,
11,
16,
16,
32,
21,
12,
12,
14,
12,
10,
13,
21,
27,
29,
27,
47,
44,
55,
68,
85,
74,
15,
11,
14,
18,
13,
28,
14,
18,
81,
62,
68,
43,
33,
27,
12,
12,
13,
10,
10,
15,
11,
11,
12,
10,
20,
19,
20,
25,
47,
49,
51,
75,
67,
73,
12,
12,
10,
15,
11,
24,
27,
92,
59,
45,
58,
33,
27,
21,
10,
10,
14,
16,
18,
18,
15,
10,
12,
20,
19,
32,
26,
35,
48,
47,
62,
61,
82,
69,
66,
47,
50,
37,
33,
15,
15,
15,
20,
21,
18,
12,
12,
13,
17,
10,
10,
13,
12,
16,
19,
23,
13,
28,
70,
61,
12,
10,
24,
12,
32,
27,
30,
38,
45,
41,
66,
87,
91,
68,
82,
60,
69,
63,
54,
32,
22,
13,
11,
13,
10,
16,
18,
25,
28,
18,
12,
14,
15,
15,
10,
12,
12,
11,
18,
22,
10,
19,
31,
25,
26,
48,
48,
75,
68,
80,
70,
17,
18,
21,
20,
33,
37,
28,
17,
72,
63,
75,
42,
47,
33,
11,
13,
10,
14,
22,
17,
13,
13,
14,
11,
12,
10,
16,
15,
13,
20,
27,
25,
32,
34,
45,
53,
63,
59,
95,
79,
94,
69,
49,
62,
44,
30,
31,
15,
12,
22,
11,
17,
11,
10,
26,
18,
22,
27,
20,
10,
10,
11,
11,
14,
20,
20,
10,
15,
15,
21,
26,
49,
32,
47,
48,
53,
75,
60,
64,
54,
79,
60,
77,
46,
57,
33,
20,
13,
11,
11,
10,
15,
21,
32,
13,
10,
13,
15,
13,
17,
23,
22,
38,
20,
16,
22,
18,
10,
16,
16,
13,
689,
10,
21,
14,
41,
11,
17,
49,
35,
37,
10,
18,
25,
33,
359,
16,
39,
11,
19,
12,
30,
13,
30,
48,
138,
12,
25,
105,
11,
34,
1156,
149,
17,
51,
228,
29,
19,
46,
12,
96,
16,
27,
19,
31,
10,
57,
478,
13,
11,
71,
16,
12,
15,
12,
14,
934,
15,
44,
82,
28,
45,
94,
97,
21,
11,
298,
45,
252,
19,
11,
65,
187,
10,
17,
18,
25,
16,
75,
49,
162,
15,
516,
26,
490,
7203,
25,
21,
783,
86,
31,
27,
238,
314,
44,
12,
33,
136,
19,
14,
15,
19,
32,
37,
90,
14,
18,
31,
12,
35,
49,
413,
74,
78,
217,
10,
98,
33,
443,
10,
16,
233,
23,
28,
40,
63,
102,
48,
2379,
108,
26,
10,
32,
21,
13,
25,
12,
14,
20,
10,
18,
13,
17,
46,
48,
381,
31,
25,
12,
33,
59,
63,
342,
15,
27,
15,
14,
22,
75,
13,
87,
215,
17,
103,
55,
22,
119,
98,
122,
38,
14,
48,
36,
19,
23,
268,
15,
46,
77,
51,
1534,
88,
15,
182,
25,
18,
12,
10,
72,
25,
24,
23,
63,
26,
21,
12,
13,
28,
44,
164,
11,
51,
89,
59,
17,
636,
252,
143,
21,
10,
185,
21,
11,
124,
70,
51,
10,
57,
419,
13,
19,
379,
15,
11,
24,
17,
21,
39,
150,
13,
32,
12,
53,
635,
11,
15,
31,
35,
75,
29,
44,
10,
21,
13,
33,
46,
45,
911,
24,
64,
25,
11,
125,
27,
23,
48,
72,
102,
20,
10,
853,
562,
19,
19,
465,
28,
45,
24,
14,
51,
20,
24,
65,
14,
26,
11,
2968,
11,
10,
88,
285,
2074,
287,
11,
10,
977,
62,
64,
239,
13,
326,
15,
39,
10,
16,
10,
626,
95,
104,
10,
148,
59,
56,
16,
64,
128,
51,
39,
10,
19,
27,
57,
692,
1434,
23,
144,
66,
17,
40,
66,
120,
28,
10,
20,
14,
12,
15,
60,
13,
55,
246,
659,
11,
67,
91,
17,
12,
23,
22,
41,
24,
14,
12,
20,
17,
13,
61,
49,
1127,
15,
384,
238,
18,
26,
71,
184,
11,
20,
25,
22,
15,
16,
11,
886,
28,
65,
11,
1414,
313,
135,
14,
11,
13,
136,
23,
29,
387,
31,
32,
12,
16,
12,
52,
22,
28,
442,
18,
15,
76,
75,
129,
24,
13,
17,
271,
18,
3520,
230,
14,
11,
168,
150,
609,
145,
19,
31,
22,
16,
14,
579,
219,
30,
12,
21,
44,
13,
10,
20,
19,
16,
10,
42,
15,
16,
16,
323,
458,
13,
40,
10,
22,
77,
11,
37,
13,
26,
36,
269,
98,
13,
31,
1190,
38,
63,
15,
17,
130,
16,
19,
12,
214,
41,
36,
7096,
525,
22,
21,
145,
22,
12,
22,
16,
17,
135,
31,
88,
22,
315,
20,
101,
72,
94,
73,
14,
40,
12,
52,
14,
193,
64,
17,
22,
13,
65,
13,
137,
412,
17,
420,
42,
3215,
24,
94,
64,
53,
26,
715,
241,
39,
96,
120,
30,
455,
72,
28,
42,
175,
134,
15,
74,
201,
30,
72,
350,
605,
18,
315,
412,
499,
11,
539,
153,
54,
30,
60,
152,
78,
142,
144,
30,
13,
25,
46,
10,
12,
200,
39,
10,
33,
84,
49,
50,
126,
10,
78,
97,
12,
14,
17,
16,
18,
24,
481,
13,
11,
22,
32,
133,
12,
56,
12,
69,
44,
10,
61,
15,
83,
13928,
21,
140,
10,
47,
110,
15,
64,
43,
35,
10,
26,
32,
18,
66,
155,
120,
11,
38,
121,
30,
24,
66,
14,
11,
36,
531,
18,
12,
10,
73,
220,
34,
20,
219,
39,
88,
18,
68,
82,
709,
22,
93,
17,
110,
11,
70,
130,
12,
27,
12,
164,
12,
40,
11,
44,
105,
13,
49,
15,
670,
25,
176,
391,
871,
17,
10,
108,
18,
23,
90,
18,
391,
159,
29,
11,
158,
1612,
24,
10,
938,
38,
18,
25,
36,
137,
109,
13,
350,
107,
67,
332,
1126,
41,
18,
46,
328,
18,
10,
33,
54,
22,
420,
26,
60,
16,
836,
182,
96,
670,
257,
236,
179,
242,
29,
197,
2618,
21,
215,
15,
4460,
92,
35,
254,
14,
726,
1884,
13,
13,
13,
50,
20,
128,
100,
48,
12,
32,
20,
31,
72,
18,
85,
28,
386,
20,
52,
2130,
35,
68,
48,
18,
10,
14,
19,
28,
67,
118,
123,
47,
16,
24,
25,
37,
375,
31,
11,
22,
36,
19,
31,
12,
236,
156,
108,
10,
11,
67,
19,
97,
12,
22,
10,
541,
38,
1766,
25,
56,
381,
243,
136,
54,
17,
12,
657,
26,
156,
176,
10,
31,
10,
55,
908,
61,
10,
72,
75,
22,
15,
72,
16,
148,
31,
31,
11,
39,
43,
118,
76,
365,
950,
25,
18,
18,
11,
12546,
10,
13,
14,
10,
16,
40,
11,
18,
148,
18,
11,
17,
18,
11,
457,
22,
10,
624,
15,
26,
25,
163,
11,
39,
19,
57,
179,
15,
11,
220,
36,
23,
41,
29,
117,
85,
46,
32,
41,
17,
12,
76,
37,
91,
44,
10,
26,
154,
22,
190,
20,
623,
50,
53,
25,
10,
86,
37,
35,
17,
53,
117,
430,
39,
17,
33,
34,
87,
153,
35,
25,
311,
117,
30,
18,
20,
61,
840,
653,
393,
27,
88,
26,
101,
10,
36,
10,
51,
21,
14,
29,
38,
25,
167,
10,
28,
344,
315,
16,
14,
37,
22,
131,
17,
125,
37,
10,
2722,
128,
433,
48,
11,
58,
15,
185,
71,
10,
27,
54,
20,
11,
45,
30,
80,
14,
26,
34,
129,
116,
1173,
275,
525,
18,
9567,
31,
17,
13,
75,
24,
825,
13,
11,
22,
332,
13,
134,
60,
36,
1488,
1834,
140,
11,
288,
17,
130,
12,
317,
20,
28,
13,
16,
16,
40,
28,
23,
17,
34,
16,
39,
14,
300,
19,
22,
12,
22,
2541,
32,
13,
16,
53,
1375,
61,
14,
40,
12,
109,
16,
13,
14,
10,
10,
61,
160,
11,
36,
13,
15,
12,
30,
58,
16,
24,
19,
18,
33,
30,
110,
14,
18,
355,
41,
55,
11,
43,
11,
11,
13,
372,
863,
18,
38,
174,
182,
11,
19,
114,
19,
290,
11,
43,
35,
41,
299,
10,
13,
12,
12,
31,
13,
26,
64,
22,
395,
72,
11,
112,
18,
1202,
11,
72,
18,
25,
31,
12,
916,
11,
641,
219,
12,
19,
361,
56,
263,
23,
11,
202,
11,
52,
58,
112,
15,
26,
31,
114,
67,
354,
15,
44,
1695,
274,
381,
25,
24,
66,
246,
38,
54,
208,
11,
93,
13,
10,
20,
28,
30,
74,
30,
38,
330,
10,
26,
257,
52,
17,
146,
4244,
22,
21,
10,
67,
25,
288,
46,
47,
77,
13,
59,
167,
12,
12,
24,
94,
10,
23,
27,
192,
46,
28,
22,
31,
10,
182,
27,
15,
1686,
91,
11,
16,
124,
1279,
159,
15,
2034,
22,
33,
24,
137,
17,
45,
184,
13,
18,
12,
66,
14,
58,
3888,
263,
156,
80,
19,
177,
69,
35,
11,
63,
17,
10,
14,
119,
53,
14,
143,
108,
87,
38,
85,
10,
30,
30,
12,
73,
92,
442,
11,
42,
12,
96,
104,
41,
65,
71,
46,
729,
20,
200,
82,
14,
18,
139,
195,
43,
135,
924,
12,
12,
17,
12,
21,
42,
50,
16,
34,
10,
20,
98,
11,
22,
107,
221,
10,
111,
15,
223,
16,
1868,
621,
29,
11,
15,
77,
54,
17,
43,
18,
17,
52,
11,
13,
194,
29,
19,
37,
23,
152,
15,
15,
11,
494,
81,
182,
165,
22,
873,
710,
11,
175,
106,
13,
12,
93,
99,
10,
106,
19,
153,
38,
169,
14,
11,
11,
23,
15,
10,
24,
112,
209,
67,
102,
17,
221,
34,
91,
10,
36,
253,
169,
23,
62,
86,
12,
24,
10,
88,
14,
25,
18,
666,
14,
78,
147,
139,
17,
141,
65,
29,
15,
30,
248,
238,
457,
241,
57,
80,
14,
125,
305,
25,
38,
22,
13,
55,
28,
10,
10,
182,
64,
23,
32,
1069,
25,
113,
489,
15,
12,
82,
82,
82,
36,
947,
16,
147,
71,
11,
43,
32,
1609,
17,
29,
2577,
380,
14,
78,
159,
13,
12,
11,
11,
173,
57,
21,
21,
24,
32,
17,
168,
16,
10,
28,
25,
175,
535,
53,
19,
11,
41,
47,
31,
151,
27,
11,
91,
73,
2046,
11,
19,
204,
22,
12,
16,
27,
16,
24,
29,
124,
23,
11,
10,
298,
169,
10,
30,
109,
406,
22,
14,
26,
33,
26,
37,
13,
35,
398,
120,
24,
12,
13,
61,
47,
27,
72,
85,
47,
37,
913,
51,
125,
19,
54,
68,
22,
24,
16,
16,
340,
65,
18,
13,
22,
34,
18,
24,
23,
37,
23,
166,
39,
194,
11,
75,
50,
38,
19,
26,
63,
545,
15,
226,
118,
11,
842,
65,
1394,
19,
99,
38,
155,
32,
18,
10,
58,
10,
21,
111,
499,
67,
16,
22,
136,
20,
1815,
11,
12,
16,
12,
13,
12,
37,
158,
18,
58,
87,
21,
164,
23,
31,
14,
13,
11,
40,
139,
157,
242,
28,
89,
84,
16,
14,
159,
16,
71,
184,
10,
14,
17,
10,
12,
298,
84,
115,
25,
56,
25,
24,
62,
42,
21,
12,
10,
24,
40,
45,
92,
25,
20,
13,
308,
69,
18,
48,
15,
15,
54,
80,
214,
12,
239,
50,
17,
313,
25,
19,
27,
22,
879,
7029,
2694,
31,
103,
11,
10,
39,
12,
13,
1988,
33,
11,
5416,
41,
67,
18,
49,
581,
184,
23,
17,
312,
135,
16,
20,
116,
4894,
36,
24,
23,
1852,
34,
117,
20,
49,
30,
15,
36,
11,
28,
324,
170,
10,
5481,
503,
1944,
2045,
583,
103,
915,
20,
13,
35,
13,
40,
100,
19,
12,
12,
111,
2875,
55,
62,
27,
83,
14,
33,
70,
33,
20,
65,
42,
18,
17,
25,
82,
543,
79,
16,
14,
21,
11,
13,
14,
10,
57,
683,
21,
19,
181,
18,
934,
13,
71,
17,
259,
265,
19,
41,
504,
3812,
157,
91,
97,
15,
23,
24,
1984,
10,
571,
23,
15,
212,
16,
104,
31,
18,
268,
130,
42,
46,
55,
1836,
19,
295,
17,
33,
12,
30,
41,
16,
12,
10,
42,
299,
237,
2212,
30,
11,
21,
22,
537,
37,
16,
86,
25,
47,
15,
12,
2205,
49,
22,
18,
189,
12,
49,
16,
49,
27,
16,
16,
16,
30,
24,
150,
17,
77,
100,
14,
13,
3619,
333,
186,
54,
278,
512,
48,
91,
147,
10,
2544,
36,
26,
630,
19,
13,
181,
45,
63,
1247,
26,
452,
20,
99,
11346,
117,
1246,
35,
47,
11,
1555,
78,
437,
1266,
12,
119,
185,
154,
10,
19,
36,
15,
71,
159,
10,
20,
11,
1066,
16,
72,
5138,
33,
93,
13,
11,
283,
18,
10,
10,
46,
38,
90,
27,
25,
11,
441,
13,
17,
62,
19,
36,
23,
20,
83,
10,
24,
12,
51,
15,
13,
11,
13,
11,
21,
36,
21,
97,
15,
73,
11,
49,
10,
15,
882,
48,
89,
80,
2084,
16,
23,
13,
14,
22,
10,
42,
36,
196,
13,
23,
29,
17,
30,
10,
12,
24,
28,
30,
22,
4584,
20,
8768,
20,
69,
276,
156,
82,
42,
133,
1011,
14,
10,
18,
10,
69,
11,
33,
16,
227,
254,
27,
44,
19,
24,
11,
27,
108,
14,
35,
101,
25,
80,
29,
28,
38,
64,
34,
13,
226,
10,
25,
222,
44,
34,
15,
1177,
12,
11,
139,
47,
64,
29,
504,
31,
10,
12,
204,
10,
10,
12,
118,
61,
40,
188,
107,
17,
23,
38,
62,
43,
47,
15,
22,
21,
99,
33,
18,
57,
50,
10,
24,
205,
366,
18,
34,
37,
352,
79,
92,
16,
68,
45,
103,
13,
790,
36,
16,
10,
153,
33,
30,
22,
30,
14,
17,
207,
1024,
42,
13,
215,
10,
41,
116,
13,
590,
253,
17,
77,
4788,
25,
254,
19,
209,
3318,
121,
13,
22,
14,
14,
217,
34,
18,
10,
397,
32,
586,
10,
17,
475,
11,
208,
32,
307,
132,
53,
54,
364,
43,
56,
151,
6087,
265,
103,
10,
144,
16,
52,
13,
2887,
174,
59,
10,
151,
42,
17,
1393,
27,
13,
1351,
40,
15,
17,
229,
42,
15,
302,
190,
55,
107,
35,
1134,
79,
8557,
18,
16,
30,
591,
10,
116,
11,
11,
40,
377,
18,
57,
107,
57,
1511,
46,
59,
18,
73,
12,
190,
174,
305,
18,
2668,
53,
24,
12,
13,
82,
2929,
3229,
15,
43,
32,
8945,
47,
22,
81,
203,
27,
64,
25,
32,
53,
55,
108,
35,
12,
10,
11,
142,
1386,
16,
14,
12,
15,
69,
44,
14,
21,
65,
19,
21,
127,
423,
49,
37,
36,
31,
12,
11,
26,
12,
12,
154,
1283,
20,
21,
18,
1156,
1701,
17,
233,
373,
27,
181,
781,
13,
12,
159,
117,
15,
10,
1067,
19,
2422,
30,
30,
1388,
772,
35,
729,
4321,
32,
27,
144,
35,
83,
136,
24,
51,
57,
25,
13,
1106,
44,
13,
39,
32,
82,
42,
824,
288,
10,
12,
11,
50,
14,
372,
14,
20,
24,
30,
76,
30,
1628,
1031,
50,
409,
27,
41,
23,
339,
184,
13,
91,
11,
15,
11,
19,
15,
20,
10,
2067,
10,
296,
51,
86,
165,
28,
3733,
916,
358,
14,
1926,
2941,
627,
25,
185,
10,
23,
1891,
106,
64,
42,
77,
26,
502,
60,
54,
230,
44,
76,
1437,
107,
139,
30,
26,
404,
176,
27,
47,
10,
238,
880,
857,
218,
36,
370,
232,
621,
829,
1250,
25,
196,
218,
52,
111,
5315,
10,
64,
464,
68,
1576,
21,
1421,
11,
16,
689,
2872,
550,
32,
878,
175,
12,
56,
332,
10,
14,
11,
19,
17,
27,
217,
12,
2417,
67,
13,
12,
21,
19,
4920,
14,
5802,
13,
33,
35,
197,
78,
29,
94,
51,
166,
68,
27,
225,
13,
214,
2274,
86,
34,
202,
46,
22,
22,
11,
26,
13,
13,
263,
78,
115,
224,
28,
22,
16,
80,
575,
26,
69,
157,
34,
24,
128,
10,
52,
11,
15,
37,
17,
39,
108,
35,
31,
12,
10,
74,
21,
60,
398,
56,
983,
357,
21,
37,
16,
88,
677,
2803,
81,
13,
19,
10,
17,
84,
469,
22,
81,
74,
34,
97,
37,
12,
25,
721,
22,
32,
21,
279,
22,
21,
64,
184,
13,
13,
11,
30,
32,
17,
24,
85,
34,
72,
14,
232,
32,
31,
575,
70,
35,
99,
100,
14,
10,
12,
10,
13,
13,
55,
34,
49,
23,
402,
72,
64,
731,
136,
17,
19,
3239,
63,
40,
2535,
15,
24,
11,
350,
16,
12,
87,
52,
10,
28,
24,
10,
26,
64,
98,
52,
17,
73,
12,
23,
445,
55,
10,
4317,
28,
12,
12,
17,
35,
22,
36,
11,
30,
68,
20,
101,
26,
21,
40,
15,
14,
13,
88,
36,
11,
49,
10,
21,
34,
80,
48,
18,
100,
12,
119,
21,
25,
40,
273,
476,
21,
12,
23,
129,
29,
173,
34,
15,
188,
10,
32,
33,
41,
91,
11,
11,
20,
24,
80,
55,
14,
17,
29,
296,
16,
11,
36,
43,
392,
63,
17,
105,
11,
15,
30,
26,
43,
171,
136,
10,
32,
10,
641,
31,
18,
46,
12,
691,
69,
23,
71,
12,
10,
256,
63,
135,
25,
22,
25,
44,
80,
74,
30,
91,
12,
11,
33,
10,
54,
11,
22,
309,
57,
106,
76,
61,
14,
20,
6624,
184,
24,
11,
137,
11,
33,
48,
692,
20,
18,
431,
360,
50,
19,
39,
22,
1365,
49,
29,
46,
11,
30,
64,
30,
17,
22,
14,
11,
28,
23,
32,
128,
11,
156,
384,
12,
44,
36,
10,
11,
12,
136,
29,
10,
14,
12,
11,
12,
10,
26,
39,
10,
16,
15,
12,
11,
227,
14,
10,
142,
592,
879,
98,
45,
13,
15,
19,
53,
19,
10,
105,
13,
191,
34,
10,
18,
19,
15,
166,
20,
10,
25,
10,
12,
18,
28,
10,
29,
61,
37,
233,
174,
21,
44,
55,
118,
34,
14,
64,
152,
43,
326,
280,
61,
112,
10,
257,
1186,
36,
10,
10,
382,
27,
367,
67,
28,
13,
22,
45,
24,
120,
2174,
60,
12,
10,
157,
39,
16,
14,
187,
11,
153,
81,
966,
74,
80,
10,
17,
22,
10,
15,
573,
170,
31,
53,
10,
49,
1297,
16,
172,
13,
24,
70,
233,
103,
84,
312,
113,
39,
49,
96,
22,
51,
48,
11,
20,
647,
744,
396,
3052,
15,
69,
31,
12,
47,
91,
35,
14,
51,
28,
11,
13,
243,
63,
15,
11,
15,
20,
153,
37,
25,
18,
77,
19,
81,
97,
21,
11,
48,
199,
44,
73,
58,
307,
1506,
13,
111,
66,
12,
28,
76,
108,
11,
98,
78,
23,
27,
17,
32,
13,
46,
12,
30,
26,
44,
11,
8607,
48,
33,
12,
322,
14,
388,
144,
16,
30,
30,
178,
22,
72,
32,
35,
111,
33,
220,
18,
12,
13,
237,
10,
90,
26,
24,
47,
20,
59,
15,
220,
13,
12,
299,
1118,
49,
13,
14,
378,
119,
12,
92,
97,
99,
45,
40,
186,
11,
77,
315,
26,
13,
20,
55,
3116,
603,
12,
109,
1136,
249,
13,
15,
1093,
12,
12,
87,
29,
73,
118,
12,
10,
71,
2051,
121,
14,
64,
1457,
228,
52,
26,
182,
44,
19,
12,
29,
46,
29,
12,
654,
619,
170,
130,
315,
256,
156,
223,
242,
396,
45,
28,
450,
56,
12,
10,
8701,
23,
36,
11,
55,
51,
35,
289,
10,
13,
18,
34,
144,
30,
24,
699,
16,
15,
24,
16,
25,
30,
11,
14,
22,
31,
28,
11,
38,
43,
36,
94,
73,
31,
87,
25,
16,
59,
11,
26,
13,
57,
31,
29,
45,
14,
14,
13,
91,
10,
117,
13,
14,
31,
12,
355,
11,
22,
19,
88,
115,
30,
35,
130,
172,
183,
89,
51,
431,
26,
39,
26,
17,
12,
87,
10,
11,
58,
129,
87,
72,
28,
18,
48,
465,
101,
60,
538,
11,
12,
13,
20,
21,
33,
11,
15,
23,
153,
44,
15,
53,
194,
401,
355,
833,
1143,
385,
10,
82,
81,
23,
16,
14,
45,
70,
28,
13,
30,
36,
23,
10,
21,
38,
1123,
16,
110,
57,
32,
33,
46,
37,
11,
20,
17,
189,
201,
113,
11,
12,
263,
44,
40,
87,
23,
1705,
32,
70,
125,
52,
434,
97,
17,
16,
59,
20,
40,
184,
32,
141,
40,
22,
38,
13,
11,
19,
64,
49,
29,
51,
181,
26,
117,
10,
15,
27,
318,
159,
30,
7559,
26,
11,
154,
10,
21,
326,
21,
10,
76,
12,
1091,
64,
16,
279,
25,
871,
51,
15,
11,
322,
11,
33,
4035,
20,
53,
103,
10,
17,
31,
104,
88,
938,
12,
10,
19,
34,
21,
37,
34222,
146,
10,
140,
13,
34,
74,
13,
35,
811,
21,
22,
73,
163,
10,
29,
225,
88,
1807,
19,
478,
1124,
52,
17,
12,
38,
17,
13,
12,
231,
66,
10,
213,
34,
60,
12,
19,
72,
10,
115,
901,
15,
27,
29,
792,
10,
57,
158,
30,
17,
39,
133,
31,
7530,
28,
28,
1372,
19,
72,
143,
95,
209,
40,
234,
23,
228,
30,
17,
20,
25,
266,
101,
14,
83,
36,
22,
58,
48,
47,
144,
32,
61,
28,
10,
39,
31,
58,
20,
23,
73,
73,
36,
107,
109,
10,
33,
305,
12,
80,
303,
47,
10,
100,
16,
22,
820,
15,
112,
76,
22,
26,
148,
16,
71,
12,
16,
14,
17,
1335,
13,
11,
21,
22,
10,
30,
57,
580,
10,
73,
43,
33,
13,
22,
21,
36,
148,
13,
23,
68,
21,
21,
31,
35,
96,
37,
33,
44,
53,
31,
69,
32,
66,
76,
92,
128,
49,
270,
63,
112,
798,
15,
10,
11,
21,
31,
17,
12,
27,
12,
350,
17,
106,
142,
100,
79,
71,
52,
12,
191,
39,
12,
68,
31,
35,
32,
14,
12,
470,
183,
53,
22,
79,
28,
57,
646,
206,
1102,
15,
16,
94,
791,
13,
28,
68,
11,
29,
1343,
12,
67,
102,
148,
991,
11,
503,
22,
16,
15,
200,
10,
22,
65,
10,
13,
27,
18,
27,
51,
24,
57,
18,
44,
594,
19,
69,
12,
14,
22,
25,
55,
87,
14,
10,
36,
106,
16,
20,
263,
12,
29,
5135,
47,
28,
10,
21,
16,
2472,
59,
49,
16,
25,
679,
73,
3256,
44,
11,
16,
70,
99,
302,
355,
13,
11,
34,
12,
425,
16,
58,
52,
284,
410,
225,
20,
41,
12,
468,
17,
182,
26,
35,
109,
115,
137,
24,
628,
11,
10,
20,
226,
212,
20,
47,
1417,
18,
109,
1059,
23,
118,
101,
30,
10,
12,
42,
24,
86,
14,
23,
30,
31,
76,
12982,
103,
100,
208,
564,
15,
159,
757,
113,
438,
17,
23,
73,
16,
52,
108,
21,
27,
11,
85,
31,
1025,
14,
111,
317,
49,
46,
133,
59,
17,
14,
256,
23,
37,
11,
164,
28,
47,
209,
14,
18,
25,
1202,
22,
30,
17,
58,
12,
158,
1907,
29,
366,
20,
85,
12,
54,
17,
24,
78,
10,
19,
446,
82,
760,
64,
83,
218,
23,
80,
27,
13,
12,
238,
14,
22,
960,
76,
15,
12,
42,
13,
14,
13,
12,
4559,
271,
491,
14,
29,
10178,
32,
15,
378,
235,
22,
38,
149,
272,
144,
160,
12,
20,
22,
1318,
22,
716,
1101,
18,
43,
176,
17,
49,
88,
39,
2508,
50,
52,
70,
141,
58,
24,
384,
15,
10,
17,
445,
19,
292,
315,
15,
20,
27,
40,
125,
38,
11,
1971,
13,
40,
51,
29,
139,
14,
111,
129,
21,
11,
26,
18,
30,
54,
17,
116,
25,
15,
73,
34,
10,
34,
16,
25,
75,
91,
49,
72,
20,
82,
33,
10,
65,
80,
34,
27,
1593,
12,
30,
31,
195,
200,
17,
1240,
22,
10,
17,
256,
160,
12,
202,
22,
63,
13,
105,
672,
40,
88,
31,
1579,
27,
11,
36,
14,
13,
73,
148,
40,
51,
20,
19,
27,
41,
55,
15,
15,
20,
34,
14,
14,
47,
12,
1014,
10,
20,
16,
18,
301,
11,
61,
272,
35,
125,
157,
93,
47,
13,
75,
70,
33,
33,
19,
110,
22,
10,
30,
13,
10,
246,
30,
13,
14,
10,
26,
10,
32,
11,
58,
43,
209,
36,
326,
13,
15,
69,
519,
1080,
17,
29,
189,
45,
16,
981,
22,
22,
16,
67,
21,
730,
29,
313,
11,
11,
47,
34,
28,
72,
15,
16,
11,
59,
219,
25,
67,
15,
32,
111,
138,
150,
279,
32,
46,
1460,
99,
15,
36,
227,
2291,
14,
1549,
24,
63,
37,
252,
264,
141,
7687,
11,
25,
15,
45,
29,
291,
14,
27,
10,
15,
122,
21,
81,
394,
1277,
139,
47,
10,
13,
26,
15,
13,
50,
65,
31,
24,
26,
22,
12,
52,
28,
42,
12,
13,
18,
13,
11,
38,
25,
222,
151,
63,
23,
89,
21,
204,
16,
34,
177,
36,
17,
10,
30,
10,
63,
21,
603,
4652,
55,
60,
17,
692,
379,
119,
3825,
18,
18,
19,
188,
488,
28,
32,
55,
17,
14,
30,
18,
57,
10,
31,
11,
14,
12,
284,
76,
121,
10,
12,
18,
88,
26,
13,
16,
12,
11,
21,
24,
11,
28,
30,
1061,
2038,
17,
22,
139,
17,
204,
249,
48,
250,
17046,
16,
79,
55,
99,
33,
76,
111,
181,
13,
1794,
10,
24,
210,
51,
51,
148,
776,
67,
209,
166,
21,
11,
56,
75,
17,
43,
33,
121,
131,
14,
21,
18,
263,
47,
28,
11,
10,
2802,
208,
19,
12,
11,
10,
711,
5588,
56,
33,
67,
14,
43,
28,
11,
111,
10,
999,
102,
154,
11,
186,
37,
20,
90,
122,
23,
52,
47,
109,
498,
262,
1106,
62,
16,
518,
477,
490,
851,
64,
55,
12,
16,
12,
63,
10,
76,
195,
10,
74,
99,
24,
52,
21,
14,
12,
24,
23,
23,
354,
17,
28,
168,
747,
36,
13,
3451,
285,
29,
10,
49,
16,
98,
572,
13,
14,
37,
99,
177,
85,
138,
12,
15,
12,
178,
375,
26,
63,
22,
14,
314,
583,
27,
23,
105,
10,
18,
71,
194,
14,
210,
32,
37,
469,
32,
97,
27,
137,
28,
750,
323,
807,
187,
45,
20,
251,
13,
15,
833,
36,
13,
73,
82,
14,
41,
23,
79,
120,
15,
26,
21,
83,
2802,
98,
22,
4599,
451,
48,
14,
67,
22,
575,
27,
11,
396,
73,
22,
88,
59,
42,
12,
11,
19,
10,
829,
10,
179,
51,
12,
10,
16,
11,
10,
103,
83,
80,
37,
67,
17,
66,
13,
144,
26,
29,
11,
17,
27,
13,
29,
1383,
10,
44,
66,
12,
15,
61,
45,
62,
141,
121,
39,
116,
50,
78,
46,
178,
21,
16,
33,
54,
175,
39,
58,
159,
39,
40,
11,
19,
17,
35,
11,
39,
23,
44,
31,
30,
21,
2336,
26,
16,
79,
11,
14,
47,
59,
67,
13,
43,
10,
27,
10,
19,
28,
12,
41,
878,
84,
13,
15,
166,
14,
5503,
49,
1518,
16,
138,
25,
23,
16,
13,
11,
265,
26,
24,
457,
19,
131,
71,
277,
614,
74,
24,
11,
30,
10,
48,
93,
40,
10,
14,
10,
37,
32,
11,
144,
53,
21,
622,
18,
12,
134,
412,
83,
805,
14,
42,
401,
48,
51,
10,
33,
141,
3559,
117,
11,
1504,
132,
97,
27,
10,
1545,
376,
48,
38,
35,
38,
301,
43,
155,
20,
116,
13,
38,
24,
88,
191,
170,
14,
945,
84,
37,
13,
40,
34,
16,
23,
57,
50,
34,
75,
29,
64,
83,
201,
17,
149,
21,
15,
13,
81,
47,
90,
55,
388,
47,
22,
648,
21,
14,
208,
107,
34,
20,
18,
35,
17,
38,
62,
11,
13,
26,
63,
64,
19,
10,
11,
164,
28,
11,
14,
22,
265,
44,
26,
13,
18,
58,
43,
35,
13,
74,
91,
40,
428,
12,
408,
17,
46,
28,
15,
32,
14,
20,
11,
21,
38,
33,
89,
333,
202,
404,
39,
13,
332,
32,
331,
13,
15,
165,
12,
12,
149,
13,
2436,
853,
21,
331,
12,
13,
21,
197,
13,
126,
18,
12,
11,
283,
348,
108,
114,
215,
827,
83,
16,
500,
628,
126,
43,
19,
26,
170,
23,
24,
12,
15,
27,
46,
12,
72,
20,
12,
22,
26,
548,
24,
13,
100,
17,
1350,
59,
512,
264,
26,
75,
75,
15,
142,
15,
46,
1248,
35,
30,
63,
244,
598,
13,
35,
17,
66,
3287,
36,
350,
59,
43,
15,
36,
18,
11,
25,
2801,
79,
81,
76,
58,
27,
460,
14,
94,
32,
28,
35,
26,
18,
14,
14,
74,
15,
39,
201,
111,
10,
44,
55,
10,
77,
131,
23,
24,
31,
33,
16,
97,
11,
15,
19,
30,
29,
11,
19,
25,
51,
18,
12,
17,
131,
25,
168,
10,
69,
277,
17,
67,
13,
186,
59,
11,
67,
27,
167,
31,
31,
75,
12,
260,
10,
66,
89,
2263,
28,
600,
187,
85,
10,
264,
39,
55,
22,
162,
723,
32,
11,
51,
11,
33,
33,
75,
12,
45,
46,
25,
10,
229,
14,
13,
10,
138,
93,
15,
56,
38,
42,
67,
105,
17,
91,
13,
48,
45,
61,
1504,
22,
21,
203,
63,
8536,
273,
188,
23,
573,
476,
2713,
21,
512,
357,
2332,
278,
45,
18,
35,
402,
11,
34,
17,
342,
155,
76,
48,
292,
15,
26,
94,
46,
39,
50,
150,
103,
36,
21,
30,
15,
100,
10,
24,
45,
75,
75,
11,
15,
45,
21,
52,
481,
78,
26,
54,
277,
10,
25,
153,
14,
456,
14,
18,
13,
75,
43,
511,
34,
14,
64,
2103,
242,
445,
13,
5202,
31,
14,
46,
15,
35,
507,
21,
36,
18,
10986,
140,
69,
155,
11,
20,
1430,
75,
12,
713,
27,
78,
239,
77,
1336,
536,
68,
8487,
367,
96,
724,
1934,
88,
10,
45,
68,
57,
103,
78,
4799,
232,
23,
12,
11,
11,
394,
12,
30,
480,
136,
133,
1535,
99,
282,
14,
107,
501,
15,
21,
100,
11,
14,
12,
15,
20,
300,
371,
29,
74,
12,
103,
21,
19,
33,
22,
24,
78,
23,
29,
10,
1432,
15,
13,
206,
59,
17,
20,
15,
13,
17,
2710,
15,
3209,
505,
143,
93,
567,
119,
101,
5085,
73,
546,
24,
90,
6432,
214,
62,
208,
42,
73,
24,
104,
117,
180,
22,
19,
43,
517,
107,
701,
24,
57,
23,
355,
12,
52,
1584,
10,
48,
31,
13,
53,
101,
10,
13,
101,
10,
75,
16,
10,
16,
15,
47,
13,
134,
110,
10,
102,
75,
75,
75,
75,
75,
62,
704,
207,
23,
98,
24,
31,
10,
1185,
537,
19,
14,
122,
12,
14,
259,
2027,
19,
15,
75,
75,
142,
30,
51,
12,
29,
13,
11,
20,
114,
663,
25,
93,
10,
12,
11,
12,
13,
17,
20,
14,
56,
28,
87,
15,
30,
18,
61,
10,
50,
249,
59,
14,
29,
103,
205,
31,
119,
72,
117,
41,
12,
16,
12,
19,
27,
502,
13,
1232,
48,
17,
3460,
74,
12,
45,
10,
1831,
19,
78,
33,
14,
10,
350,
57,
229,
14,
26,
13,
35,
19,
893,
361,
57,
27,
14,
48,
56,
22,
61,
12,
12,
15,
17,
148,
82,
28,
15,
13,
51,
20,
15,
31,
20,
168,
15,
19,
21,
186,
22,
83,
23,
170,
30,
50,
369,
35,
47,
185,
15,
10,
11,
24,
11,
40,
29,
20,
10,
102,
13,
214,
706,
93,
10,
11,
21,
1538,
235,
12,
770,
28,
18,
11,
44,
76,
18,
84,
47,
53,
14,
24,
31,
85,
10,
20,
20,
48,
15,
10,
77,
151,
12,
26,
14,
49,
44,
30,
26,
3244,
15,
10,
11,
23,
13,
14,
18,
10,
544,
127,
24,
14,
10,
177,
98,
34,
94,
11,
14,
175,
26,
13,
117,
127,
49,
249,
10,
10,
17,
69,
11,
103,
53,
20,
10,
21,
30,
12,
16,
94,
19,
12,
10,
90,
52,
64,
47,
24,
62,
411,
33,
21,
73,
29,
43,
72,
77,
33,
75,
27,
2093,
43,
1395,
20,
791,
189,
20,
75,
67,
32,
17,
31,
20,
12,
311,
283,
37,
34,
22,
123,
19,
81,
15,
23,
10,
10,
33,
12,
31,
12,
14,
22,
95,
30,
14,
55,
11,
362,
18,
220,
97,
283,
27,
41,
10,
12,
13221,
15,
45,
10,
16,
17,
24,
40,
18,
11,
44,
14,
47,
24,
10,
1823,
13,
311,
16,
195,
15,
23,
22,
108,
45,
50,
101,
16,
11,
951,
14,
14,
10,
17,
13,
146,
10,
29,
88,
46,
200,
37,
14,
130,
30,
210,
82,
58,
41,
19,
26,
363,
33,
242,
18,
169,
24,
11,
108,
422,
271,
10,
24,
14,
18,
37,
27,
12,
31,
10,
17,
15,
17,
2992,
36,
18,
13,
12,
19,
92,
240,
2775,
44,
27,
153,
69,
890,
124,
4150,
733,
113,
68,
135,
94,
14,
25,
432,
25,
11,
59,
81,
67,
12,
38,
59,
19,
26,
11,
13,
285,
12,
47,
18,
21,
16,
22,
14,
27,
77,
22,
15,
47,
13,
17,
65,
47,
24,
14,
11,
38,
15,
13,
18,
17,
20,
33,
20,
18,
14,
30,
11,
52,
102,
10,
64,
33,
418,
175,
334,
501,
89,
78,
105,
25,
77,
115,
215,
10,
10,
26,
19,
35,
134,
12,
12,
110,
14,
16,
11,
82,
45,
89,
16,
30,
13,
28,
12,
79,
19,
20,
12,
33,
53,
81,
204,
12,
123,
13,
25,
12,
31,
80,
22,
17,
87,
46,
13,
12,
48,
15,
206,
120,
34,
239,
16,
61,
23,
23,
34,
82,
52,
33,
24,
62,
172,
17,
74,
185,
18,
23,
52,
77,
68,
42,
14,
14,
41,
279,
12,
26,
30,
563,
67,
59,
14,
14,
48,
94,
12,
209,
28,
13,
278,
37,
85,
53,
15,
11,
10,
13,
3372,
10,
72,
13,
11,
10,
12,
30,
15,
62,
18,
138,
30,
60,
30,
60,
178,
50,
37,
13,
945,
26,
56,
542,
193,
1859,
22,
161,
39,
243,
21,
46,
177,
27,
22,
106,
766,
12,
13,
1160,
62,
42,
40,
122,
20,
56,
57,
58,
34,
60,
11,
18,
58,
60,
239,
38,
51,
11,
14,
14,
475,
39,
1095,
471,
14,
40,
232,
12,
25,
62,
10,
18,
13,
217,
21,
116,
43,
59,
32,
530,
20,
14,
42,
30,
39,
168,
742,
56,
19,
45,
71,
22,
311,
145,
334,
22,
14,
270,
20,
12,
41,
15,
131,
16,
2209,
75,
100,
17,
50,
36,
58,
241,
24,
10,
13,
19,
66,
1323,
5425,
56,
40,
172,
138,
10,
12,
15,
87,
11,
15,
67,
11,
126,
27,
40,
12,
83,
16,
14,
17,
40,
243,
77,
404,
16,
75,
28,
62,
58,
887,
24,
63,
19,
122,
39,
23,
84,
28,
12,
61,
11,
102,
32,
64,
12,
10,
14,
26,
14,
15,
22,
10,
11,
17,
28,
10,
14,
64,
122,
79,
522,
16007,
13382,
4292,
5771,
89,
17,
134,
3300,
38,
11,
13,
41,
621,
179,
24,
20,
56,
28,
147,
369,
133,
52,
46,
104,
32,
10,
228,
23,
52,
16,
32,
42,
14,
18,
14,
34,
41,
139,
18,
36,
12,
139,
12,
62,
11,
19,
13,
12,
15,
206,
14,
42,
10,
11,
83,
329,
107,
25,
965,
590,
20,
58,
105,
24,
48,
84,
15,
120,
18,
21,
12,
56,
31,
181,
55,
28,
10,
177,
19,
18,
11,
90,
72,
11,
559,
114,
24,
482,
98,
10,
37,
82,
146,
158,
16,
56,
12,
18,
17,
28,
49,
10,
23,
14,
11843,
518,
7704,
1328,
9436,
12358,
200,
378,
485,
215,
200,
57,
14,
27,
31,
15,
201,
17,
72,
22,
32,
17,
11,
338,
14,
26,
45,
296,
10,
14,
28,
14,
10,
85,
16,
10,
38,
14,
80,
29,
31,
23,
13,
35,
62,
15,
12,
24,
11,
26,
53,
46,
18,
13,
55,
16,
14,
2564,
78,
16,
10,
54,
32,
46,
163,
13,
14,
154,
62,
11,
11,
20,
42,
19,
91,
13,
25,
27,
109,
47,
47,
17,
17,
18,
76,
47,
13,
226,
12,
17,
36,
138,
181,
44,
82,
10,
15,
35,
35,
19,
164,
67,
41,
48,
138,
54,
20,
10732,
1724,
240,
43,
80,
76,
27,
87,
12,
19,
13,
125,
226,
113,
115,
19,
31,
39,
421,
36,
148,
21,
107,
30,
55,
37,
51,
33,
21,
10,
27,
187,
480,
33,
17,
10,
203,
27,
240,
12,
73,
10,
107,
11,
82,
10,
17,
25,
26,
3299,
65,
39,
19,
19,
22,
10,
39,
131,
182,
13,
16,
11,
28,
34,
442,
138,
10,
24,
17,
33,
481,
230,
14,
1706,
98,
155,
11,
21,
82,
19,
493,
104,
23,
370,
175,
23,
13,
10,
17,
12,
45,
18,
27,
21,
12,
148,
25,
185,
31,
417,
1572,
1943,
137,
54,
10,
13,
12,
1337,
91,
71,
41,
62,
12,
59,
424,
29,
22,
3560,
19,
20,
24,
42,
15,
165,
63,
129,
11,
133,
20,
11,
15,
56,
10,
11,
19,
211,
102,
294,
16,
10,
10,
58,
11,
61,
10,
10,
37,
12,
10,
45,
32,
11,
13,
19,
15,
42,
85,
12,
21,
26,
834,
44,
21,
14,
97,
22,
168,
186,
27,
18,
16,
14,
182,
96,
116,
12,
43,
24,
16,
160,
22,
19,
403,
947,
30,
22,
11,
48,
1976,
30,
40,
104,
13,
332,
424,
16,
37,
10,
13,
103,
87,
373,
28,
27,
7403,
19,
44,
18,
21,
113,
25,
75,
524,
42,
48,
143,
18,
21,
2372,
558,
436,
13,
308,
122,
61,
160,
22,
13,
60,
35,
33,
101,
13,
12,
32,
86,
636,
19,
175,
114,
16,
712,
10,
22,
24,
10,
19,
18,
15,
21,
1952,
437,
833,
116,
151,
47,
36,
74,
11,
15,
36,
27,
119,
54,
11,
53,
1854,
43,
13,
360,
28,
12,
11,
47,
187,
16,
10,
28,
14,
104,
270,
18,
165,
48,
22,
20,
13,
10,
79,
77,
30,
22,
12,
83,
11,
35,
54,
10,
19,
43,
1275,
24,
75,
111,
23,
19,
120,
17,
72,
16,
26,
16,
62,
24,
106,
84,
12,
21,
13,
36,
23,
10,
254,
21,
102,
76,
16,
128,
14,
663,
30,
115,
48,
70,
11,
28,
57,
10,
62,
14650,
108,
22,
27,
13,
25,
17,
181,
18,
12,
75,
232,
79,
11,
782,
32,
12,
113,
14,
29,
29,
21,
152,
136,
15,
13,
19,
80,
132,
15,
2701,
12,
2815,
13,
147,
1901,
26,
12,
3318,
225,
152,
13,
197,
36,
32,
28,
10,
213,
141,
13,
21,
14,
375,
14,
12,
10,
2006,
298,
16,
482,
16,
11,
47,
17,
12,
41,
104,
133,
10,
24,
15,
163,
96,
10,
13,
13,
10,
10,
50,
293,
88,
17,
186,
41,
13,
42,
76,
13,
2075,
1602,
34,
23490,
45,
327,
18,
981,
108,
184,
11,
187,
10,
13,
11,
20,
21,
1062,
39,
23,
21,
16,
249,
13,
44,
47,
22,
12,
225,
10,
10,
20,
114,
10,
50,
23,
207,
254,
10,
10,
400,
742,
10,
17,
24,
81,
15,
40,
75,
14,
30,
123,
23,
65,
62,
10,
12,
159,
53,
38,
31,
4307,
645,
1057,
16,
217,
10,
19,
275,
28,
16,
24,
31,
28,
100,
14,
44,
168,
55,
58,
39,
14,
11,
28,
98,
12,
12,
10,
18,
32,
101,
98,
137,
67,
48,
12,
49,
131,
18,
68,
7470,
19,
259,
241,
35,
91,
54,
11,
286,
42,
37,
10,
10,
14,
536,
505,
13,
402,
687,
35,
202,
45,
476,
13,
30,
34,
83,
54,
13,
62,
13,
11,
23,
11,
10,
21,
112,
4217,
70,
15,
10,
357,
17,
14,
19,
755,
16,
13,
12,
10,
12,
50,
20,
13,
18,
290,
31,
1277,
25,
45,
57,
19,
13,
3723,
20,
33,
21,
1396,
34,
183,
36,
76,
11,
56,
94,
69,
10,
16,
28,
12,
105,
24,
1663,
55,
81,
31,
145,
18,
251,
10,
193,
11,
317,
24,
15,
78,
576,
10,
1197,
24,
23,
15,
10,
10,
13,
14,
12,
14,
302,
15,
36,
11,
14,
17,
12,
17,
12,
39,
20,
114,
64,
18,
26,
34,
124,
61,
12,
15,
131,
13,
61,
370,
19,
14,
152,
19,
285,
86,
149,
10,
45,
4635,
28,
20,
202,
38,
92,
14,
996,
23,
10,
13,
39,
10,
47,
11,
28,
54,
15,
28,
76,
56,
10,
22,
81,
40,
50,
14,
19,
12,
15,
480,
12,
236,
12,
11,
29,
60,
10,
25,
17,
22,
12,
15,
25,
248,
159,
12,
133,
45,
1758,
13,
43,
60,
190,
114,
409,
18,
143,
102,
1279,
484,
234,
21,
11,
23,
29,
642,
32,
37,
297,
15,
16,
15,
10,
26,
52,
147,
29,
41,
20,
12,
40,
272,
25,
13,
11,
211,
389,
65,
1006,
38,
62,
98,
10,
39,
40,
83,
34,
27,
10,
183,
571,
82,
38,
53,
3258,
122,
14,
15,
12,
27,
34,
14,
53,
131,
23,
68,
10,
13,
123,
16,
61,
12,
65,
528,
25,
27,
17,
158,
56,
15,
56,
17,
19,
10,
42,
55,
402,
27,
72,
141,
53,
59,
385,
22,
25,
29,
53,
21,
34,
12,
33,
26,
91,
179,
19,
89,
218,
12,
23,
10,
40,
10,
26,
10,
10,
13,
38,
11,
75,
44,
137,
241,
20,
20,
11,
36,
12,
66,
13,
283,
31,
10,
199,
13,
11906,
13,
31,
19,
184,
3497,
13,
15,
111,
59,
65,
10,
16,
10,
10,
37,
77,
87,
46,
87,
32,
28,
284,
12,
227,
19,
20,
39,
70,
26,
22,
28,
11,
37,
13,
22,
22,
17,
11,
33,
26,
11,
195,
17,
18,
125,
4902,
14,
1689,
130,
280,
90,
10,
25,
1955,
31,
29,
185,
89,
11,
19,
35,
27,
70,
64,
10,
24,
138,
24,
23,
13,
76,
10,
36,
14,
14,
28,
15,
23,
22,
18,
27,
13,
19,
77,
23,
197,
10,
10,
13,
224,
15,
11,
10,
96,
14,
56,
22,
18,
3897,
55,
13,
10,
24,
13,
26,
53,
41,
21,
120,
333,
10,
46,
27,
47,
19,
165,
64,
11,
35,
11,
17,
16,
11,
22,
6041,
236,
106,
21,
24,
10,
43,
13,
40,
11,
20,
20,
13,
15,
10,
81,
28,
38,
14,
14,
11,
13,
10,
31,
68,
15,
13,
26,
17,
14,
18,
78,
11,
10,
25,
179,
47,
31,
11,
32,
840,
54,
26,
95,
19,
100,
265,
15,
52,
11,
36,
34,
47,
2425,
1755,
235,
530,
3804,
48,
21,
656,
639,
33,
11,
42,
82,
32,
11,
2874,
103,
21,
33,
36,
70,
25,
19,
187,
14,
35,
744,
12,
30,
11,
58,
15,
22,
13,
11,
63,
2300,
60,
30,
33,
16,
12,
15,
16,
734,
17,
10,
15,
27,
10,
73,
11,
11,
11,
43,
57,
13,
10,
10,
27,
14,
29,
10,
695,
783,
14,
19,
23,
10,
14,
15,
172,
94,
41,
11,
115,
80,
12,
14,
114,
26,
10,
56,
83,
84,
31,
20,
13,
22,
2769,
255,
1001,
22,
15,
7931,
225,
12,
234,
60,
48,
11,
155,
10,
21,
1360,
244,
131,
29,
12,
1131,
454,
27,
22,
10,
10,
42,
378,
11,
12,
20,
10,
75,
60,
944,
75,
103,
79,
58,
34,
10,
20,
10,
69,
12,
10,
17,
415,
14,
22,
13,
34,
14,
53,
62,
79,
73,
46,
26,
14,
157,
49,
24,
10,
15,
66,
14,
73,
534,
14,
21,
429,
79,
78,
89,
42,
1390,
84,
169,
867,
27,
21,
20,
29,
37,
33,
311,
16,
37,
22,
90,
13,
58,
16,
104,
178,
10,
11,
20,
636,
164,
13,
14,
22,
12,
59,
160,
140,
487,
22,
28,
291,
27,
33,
20,
587,
451,
29,
135,
18,
17,
386,
36,
36,
54,
61,
56,
254,
12,
135,
743,
127,
236,
30,
12,
10,
28,
70,
11,
21,
12,
33,
6707,
49,
10,
17,
12,
160,
72,
1091,
17,
57,
27,
96,
21,
10,
22,
54,
16,
20,
10,
12,
13,
66,
73,
11,
11,
26,
13,
13,
22,
65,
14,
118,
48,
20,
14,
25,
135,
121,
10,
10,
13,
12,
416,
75,
57,
21,
332,
19,
12,
399,
21,
204,
72,
52,
57,
26,
51,
12,
11,
204,
22,
32,
27,
2058,
38,
67,
62,
14,
24,
24,
58,
88,
15,
19,
18,
14,
10,
10,
50,
10,
110,
18,
229,
173,
41,
167,
71,
12,
16,
1023,
15,
32,
23,
34,
11,
327,
25,
776,
29,
69,
10,
11,
20,
15,
38,
43,
32,
20,
990,
47,
3152,
57,
55,
39,
14,
46,
43,
445,
152,
29,
39,
33,
97,
39,
30,
46,
36,
22,
79,
45,
21,
15,
5172,
541,
28,
29,
37,
19,
21,
75,
10,
17,
11,
38,
13,
12,
10,
20,
41,
87,
18,
12,
37,
11,
33,
24,
44,
10,
169,
22,
21,
226,
35,
73,
42,
22,
12,
77,
55,
61,
71,
917,
51,
20,
112,
26,
215,
71,
44,
43,
31,
55,
27,
25,
11,
353,
183,
12,
19,
14,
176,
178,
18,
15,
106,
28,
11,
532,
23,
72,
14,
15,
183,
12,
30,
30,
41,
19,
29,
27,
59,
105,
22,
17,
11,
10,
16,
20,
19,
35,
251,
10,
12,
27,
19,
20,
22,
36,
10,
13,
10,
12,
66,
90,
24,
17,
20,
11,
104,
12,
12,
67,
29,
268,
35,
48,
11,
196,
376,
124,
21,
268,
21,
30,
164,
18,
121,
107,
11,
325,
844,
36,
189,
135,
3298,
136,
11,
78,
58,
1910,
61,
51,
110,
155,
15,
32,
26,
103,
46,
90,
117,
350,
39,
19,
162,
21,
12,
14,
541,
32,
68,
52,
23,
10,
136,
10,
76,
405,
11,
11,
11,
148,
29,
45,
367,
12,
15,
22,
30,
17,
19,
382,
14,
21,
31,
120,
17,
14,
11,
56,
76,
187,
14,
129,
60,
56,
137,
326,
1784,
3970,
12,
213,
36,
28,
17,
13,
17,
64,
11,
44,
97,
69,
109,
38,
49,
11,
15,
75,
22,
489,
10,
45,
173,
99,
11,
23,
18,
20,
11,
124,
10,
40,
25,
11,
79,
166,
30,
36,
10,
64,
186,
19,
309,
11,
14,
52,
12,
25,
12,
23,
33,
1233,
37,
18,
186,
26,
15,
13,
517,
952,
22,
95,
39,
53,
32,
17,
23,
115,
12,
234,
32,
5565,
615,
39,
13,
382,
58,
13,
21,
10,
11,
412,
20,
11,
26,
12,
248,
158,
10,
31,
77,
72,
44,
10,
63,
29,
27,
27,
16,
15,
332,
29,
10,
472,
12,
10,
40,
12,
21,
29,
134,
25,
70,
49,
41,
53,
32,
182,
22,
40,
22,
27,
12,
5111,
442,
73,
580,
294,
48,
47,
173,
31,
54,
30,
12,
36,
13,
17,
14,
120,
686,
51,
352,
26,
10,
199,
24,
21,
14,
85,
17,
13,
19,
52,
11,
11,
244,
312,
10,
21,
39,
17,
16,
11,
12,
21,
13,
204,
10,
13,
13,
60,
30,
14,
70,
22,
26,
21,
10,
76,
14,
27,
13,
260,
35,
503,
168,
12,
24,
26,
19,
25,
12,
61,
3111,
882,
19,
44,
1428,
449,
14,
40,
13,
38,
88,
11,
116,
298,
349,
11,
20,
23,
29,
83,
17,
71,
22,
13,
1430,
17,
57,
42,
12,
27,
202,
10,
12,
2212,
12,
14,
188,
10,
10,
36,
183,
18,
9246,
1446,
20,
14,
12,
65,
15,
28,
22,
65,
11,
36,
250,
17,
42,
26,
139,
28,
79,
20,
24,
20,
11,
11,
24,
29,
55,
10,
19,
166,
35,
16,
13,
201,
204,
349,
19,
16,
759,
46,
275,
16,
3572,
10,
289,
76,
30,
45,
302,
87,
13,
36,
51,
14,
20,
16,
29,
37,
38,
256,
50,
12,
159,
206,
113,
28,
10,
20,
56,
48,
50,
84,
86,
47,
13,
43,
160,
10,
12,
68,
37,
20,
93,
1490,
646,
10,
21,
211,
196,
34,
725,
13,
74,
15,
14,
27,
35,
57,
1329,
474,
14,
13,
13,
13,
23,
10,
962,
31,
63,
82,
25,
33,
10,
38,
117,
67,
10,
11,
531,
139,
72,
532,
14,
20,
732,
23,
74,
36,
18,
14,
13,
11,
156,
17,
31,
19,
14,
22,
28,
115,
18,
24,
46,
741,
279,
81,
34,
10,
18,
14,
213,
34,
2423,
26,
20,
11,
46,
63,
55,
824,
90,
36,
10,
30,
40,
107,
38,
30,
5077,
19,
47,
11,
21,
32,
23,
11,
48,
41,
25,
38,
1708,
11,
84,
178,
99,
33,
22,
11,
38,
30,
40,
46,
15,
197,
10,
32,
36,
10,
641,
26,
42,
25,
10,
473,
13,
2437,
54,
33,
203,
228,
13,
425,
65,
20,
572,
17,
31,
70,
12,
12,
1887,
53,
38,
18,
33,
21,
69,
568,
736,
163,
28,
60,
155,
270,
42,
50,
19,
2120,
17,
110,
130,
232,
14,
99,
50,
2242,
56,
13,
13,
26,
10,
57,
13,
20,
637,
10,
27,
15,
24,
75,
19,
16,
82,
21,
13,
151,
56,
46,
1329,
24,
67,
16,
30,
56,
25,
2613,
194,
10,
25,
11,
11,
105,
145,
72,
97,
4101,
38,
29,
102,
14,
118,
18,
16,
92,
17,
24,
570,
12,
274,
49,
60,
13,
20,
150,
42,
72,
21,
24,
66,
65,
18,
41,
18,
24,
11,
62,
15,
32,
15,
52,
40,
51,
79,
2436,
17,
81,
17,
39,
105,
28,
15,
77,
11,
77,
23,
11,
105,
12,
17,
26,
17,
645,
53,
53,
121,
237,
22,
10,
266,
2495,
40,
10,
16,
14,
75,
18,
30,
11,
18,
106,
16,
17,
30,
13,
10,
74,
261,
29,
16,
39,
11,
2711,
43,
75,
13,
41,
155,
22,
40,
10,
745,
71,
38,
29,
16,
13,
18,
1013,
30,
28,
29,
610,
14,
35,
27,
725,
116,
12,
38,
22,
51,
1122,
179,
534,
57,
34,
20,
96,
21,
18,
15,
154,
231,
116,
176,
71,
145,
32,
203,
129,
11,
32,
19,
19,
93,
57,
12,
23,
18,
19,
10,
63,
27,
10,
56,
84,
34,
14,
42,
563,
34,
53,
13,
11,
21,
14,
10,
2646,
11,
12,
144,
10,
61,
37,
13,
23,
11,
39,
40,
212,
44,
16,
347,
4151,
131,
51,
11,
11,
20,
24,
118,
111,
29,
44,
43,
10,
444,
11,
18,
418,
46,
37,
91,
143,
39,
446,
14,
30,
16,
19,
576,
142,
27,
12,
440,
20,
24,
62,
29,
44,
19,
122,
10,
27,
13,
50,
288,
14,
228,
16,
47,
13,
10,
14,
11,
33,
160,
63,
11,
145,
40,
123,
74,
15,
35,
14,
1835,
194,
53,
39,
13,
22,
56,
211,
303,
12,
16,
67,
24,
10,
123,
406,
355,
13,
28,
41,
11,
283,
59,
92,
17,
12,
31,
14,
55,
15,
19,
23,
48,
12,
16,
22,
17,
406,
378,
22,
47,
54,
342,
13,
20,
859,
341,
18,
10,
10,
32,
57,
10,
22,
16,
76,
197,
26,
326,
126,
30,
10,
20,
12,
46,
13,
15,
16,
13,
12,
13,
49,
12,
21,
179,
5333,
12,
51,
13,
1184,
13,
11,
20,
16,
940,
17,
84,
212,
37,
59,
99,
24,
23,
112,
14,
22,
14,
19,
33,
17,
13,
471,
109,
10,
13,
139,
46,
22,
15,
11,
23,
44,
54,
68,
387,
66,
22,
709,
55,
24,
44,
151,
20,
22,
69,
54,
43,
16,
38,
17,
11,
11,
10,
10,
77,
56,
72,
17,
39,
10,
12,
51,
15,
146,
28,
35,
143,
155,
13,
10,
34,
14,
21,
13,
36,
239,
15,
35,
36,
14,
11,
10,
14,
279,
38,
125,
15,
61,
30,
94,
72,
44,
19,
50,
13,
27,
33,
87,
14,
10,
14,
45,
27,
37,
46,
109,
52,
21,
50,
46,
62,
29,
10,
21,
19,
60,
12,
21,
13,
21,
32,
169,
11,
152,
11,
83,
12,
11,
27,
10,
98,
134,
180,
44,
16,
74,
10,
20,
15,
24,
154,
21,
21,
20,
10,
14,
20,
10,
82,
50,
16,
12,
14,
486,
24,
31,
20,
13,
27,
1048,
55,
741,
65,
12,
22,
15,
10,
66,
281,
177,
137,
35,
25,
86,
153,
10,
58,
10,
46,
49,
852,
19,
126,
44,
30,
11,
11,
12,
488,
59,
12,
36,
87,
178,
153,
12,
49,
12,
209,
214,
719,
14,
10,
207,
145,
272,
39,
11,
284,
64,
83,
45,
12,
14,
37,
117,
14,
481,
42,
14,
11,
16,
40,
23,
14,
14,
513,
101,
40,
254,
12,
46,
87,
165,
1887,
79,
251,
155,
18,
133,
14,
41,
157,
50,
32,
52,
78,
125,
20,
15,
19,
17,
78,
33,
25,
34,
26,
464,
44,
18,
11,
106,
158,
294,
14,
19,
84,
460,
17,
95,
57,
25,
10,
15,
32,
1000,
30,
10,
13,
22,
54,
293,
11,
207,
14,
12,
193,
16,
19,
25,
11,
14,
46,
10,
82,
84,
36,
14,
99,
128,
250,
15,
227,
269,
122,
33,
49,
73,
12,
20,
81,
1245,
28,
481,
29,
1514,
30,
17,
218,
146,
19,
17,
10,
10,
119,
143,
10,
10,
76,
243,
21,
50,
159,
22,
126,
11,
11,
13,
17,
30,
69,
103,
18,
28,
6201,
13,
20,
39,
12,
12,
16,
14,
33,
874,
94,
224,
852,
63,
14,
31,
53,
136,
26,
21,
22,
41,
75,
40,
44,
2571,
11,
324,
495,
47,
27,
37,
13,
38,
22,
47,
141,
14,
26,
107,
22,
36,
65,
132,
62,
13,
228,
129,
42,
23,
130,
10,
23,
54,
42,
28,
67,
26,
43,
62,
17,
51,
1111,
11,
91,
12,
25,
12,
182,
14,
13,
14,
119,
55,
52,
15,
20,
69,
131,
58,
26,
14,
13,
24,
12,
12,
20,
43,
10,
114,
28,
23,
33,
34,
6381,
12,
44,
359,
82,
54,
63,
28,
12,
614,
16,
86,
96,
13,
300,
30,
30,
13,
113,
14,
50,
13,
13,
98,
11,
132,
129,
17,
926,
28,
12,
20,
21,
37,
84,
82,
51,
14,
13,
14,
41,
417,
45,
13,
20,
109,
113,
14,
15,
345,
48,
27,
74,
246,
12,
74,
10,
11,
17791,
54,
27,
16,
20,
215,
27,
84,
19,
16,
507,
22,
17,
24,
65,
446,
44,
15,
15,
34,
15,
41,
74,
16,
21,
145,
41,
14,
38,
29,
106,
86,
13,
136,
27,
15,
20,
91,
35,
48,
11,
23,
12,
13,
11,
71,
23,
261,
15,
167,
279,
15,
14,
2094,
546,
12,
421,
92,
27,
233,
1976,
76,
12,
407,
38,
14,
98,
24,
13,
17,
69,
121,
32,
13,
10,
10,
10,
27,
67,
63,
109,
74,
33,
90,
25,
35,
11,
2069,
224,
17,
26,
530,
35,
21,
1159,
10,
29,
55,
255,
32,
139,
52,
21,
12,
33,
126,
52,
11,
26,
12,
28,
398,
65,
12,
1570,
10,
12,
13,
29,
12,
10,
47,
11,
27,
267,
64,
10,
23,
47,
17,
160,
154,
713,
39,
11,
28,
239,
66,
55,
19,
346,
235,
36,
72,
158,
172,
10,
975,
433,
71,
22,
58,
422,
14,
44,
499,
19,
140,
17,
20813,
10,
12,
15,
10,
32,
14,
72,
600,
19,
33,
286,
1253,
30,
186,
52,
28,
11,
25,
24,
33,
10,
2227,
17,
149,
35,
15,
12,
10,
11,
68,
328,
532,
593,
2590,
16,
680,
37,
328,
42,
169,
11,
12,
75,
997,
11,
185,
81,
14,
11,
14,
13,
60,
28,
17,
62,
129,
22,
12,
4929,
30,
14360,
24,
2099,
106,
244,
11,
12,
17,
998,
148,
37,
10,
114,
556,
70,
38,
12,
12,
11,
25,
26,
70,
42,
13,
10,
45,
10,
47,
530,
17,
26,
32,
47,
11,
15,
30,
22,
105,
23,
30,
10,
13,
18,
67,
19,
95,
35,
11,
22,
44,
11,
30,
19,
1101,
1670,
27,
113,
81,
11,
14,
14,
1450,
57,
75,
13,
11,
213,
10,
18,
28,
18,
1465,
20,
12,
56,
12,
11,
10,
39,
1242,
22,
56,
12,
14,
21,
66,
1234,
197,
39,
14,
544,
21,
23,
31,
1361,
28,
25,
22,
40,
15,
42,
10,
52,
176,
21,
16,
49,
90,
21,
11,
16,
19,
16,
20,
130,
17,
21,
10,
61,
167,
76,
10,
13,
59,
22,
15,
24,
11,
13,
56,
185,
16,
10,
284,
36,
11,
2232,
91,
180,
22,
56,
27,
16,
13,
116,
21,
121,
47,
19,
22,
49,
13,
87,
10,
121,
11,
349,
14,
10,
12,
36,
18,
55,
44,
19,
25,
46,
99,
18,
12,
24,
28,
265,
79,
18,
12,
31,
12,
17,
56,
34,
14,
109,
30,
20,
51,
10,
45,
13,
13,
24,
59,
23,
97,
62,
10,
91,
171,
301,
69,
14,
48,
11,
19,
17,
88,
30,
16,
63,
892,
11,
32,
171,
24,
15,
58,
72,
28,
16,
18,
109,
16,
2841,
33,
10,
92,
316,
10,
24,
73,
28,
14,
12,
31,
13,
16,
49,
24,
11,
14,
23,
10,
21,
12628,
16,
249,
33,
17,
58,
54,
80,
16,
1186,
43,
32,
41,
221,
39,
17,
30,
14,
10,
28,
2014,
93,
14,
158,
54,
75,
57,
70,
23,
11,
113,
10,
193,
61,
469,
12,
487,
32,
148,
22,
25,
512,
171,
231,
130,
18,
13,
10,
60,
473,
251,
305,
23,
129,
384,
34,
31,
30,
14,
14,
109,
16,
13,
15,
1392,
36,
14,
886,
16,
19,
45,
15,
11,
30,
249,
11,
56,
13,
111,
13,
20,
12,
15,
124,
10,
764,
13,
11,
14,
21,
295,
17,
15,
30,
12,
14,
10,
634,
115,
23,
13,
38,
18,
10,
25,
37,
21,
26,
818,
11,
26,
22,
31,
72,
17,
21,
27,
10,
10,
61,
250,
35,
27,
11,
100,
11,
16,
12,
27,
113,
24,
10,
25,
168,
70,
742,
35,
105,
21,
37,
143,
17,
28,
12,
37,
20,
10,
77,
28,
42,
40,
22,
33,
15,
31,
24,
23,
58,
11,
72,
582,
336,
58,
37,
3894,
84,
52,
379,
46,
11,
20,
87,
10,
25,
23,
59,
12,
21,
746,
110,
32,
10,
18,
16,
148,
11,
21,
18,
21,
46,
19,
38,
30,
43,
40,
15,
17,
11,
16,
32,
39,
10,
27,
18,
13,
21,
25,
47,
389,
47,
10,
17,
527,
70,
124,
13,
17,
10,
49,
11,
25,
21,
1920,
46,
137,
143,
368,
93,
23,
10,
12,
16,
27,
17,
476,
13,
19,
37,
13,
11,
21,
286,
20,
550,
10,
14,
59,
11,
39,
10,
10,
14,
11,
12,
85,
24,
113,
204,
12,
202,
10,
366,
182,
18,
12,
10,
11,
26,
10,
977,
101,
19,
5289,
13,
250,
58,
36,
21,
77,
11,
1090,
242,
16,
12,
25,
415,
59,
26,
112,
22,
157,
58,
63,
99,
23,
12,
34,
12,
38,
53,
11,
29,
15,
34,
204,
114,
20,
13,
44,
143,
37,
26,
84,
19,
526,
15,
10,
21,
45,
158,
10,
10,
16,
11,
55,
136,
30,
12,
167,
291,
86,
1643,
20,
988,
20,
52,
142,
12,
296,
1102,
11,
45,
679,
16,
46,
18,
110,
32,
41,
10,
35,
54,
57,
42,
31,
30,
377,
2232,
22,
10,
10,
240,
11,
10,
41,
27,
10,
16,
42,
46,
48,
20,
51,
87,
23,
35,
149,
18,
107,
115,
73,
29,
13,
105,
2594,
77,
11,
10,
41,
93,
36,
94,
396,
38,
11,
121,
59,
46,
19,
13,
32,
36,
63,
15,
18,
11,
128,
19,
26,
10,
11,
19,
608,
27,
50,
15,
89,
71,
10,
3430,
10,
31,
12,
12,
261,
310,
58,
20,
411,
93,
21,
29,
15,
20,
57,
57,
746,
14,
29,
16,
46,
40,
39,
15,
17,
32,
233,
33,
19,
1580,
177,
42,
52,
14,
163,
468,
12,
24,
12,
1597,
50,
18,
23,
11,
56,
47,
22,
11,
14,
24,
40,
21,
14,
31,
558,
34,
19,
31,
150,
16,
36,
31,
10,
12,
75,
41,
26,
10,
32,
36,
13,
49,
175,
370,
38,
29,
488,
15,
54,
14,
18,
64,
10,
64,
436,
14,
11,
91,
180,
17,
49,
55,
48,
126,
50,
14,
155,
738,
31,
40,
130,
43,
137,
314,
11,
1887,
149,
554,
80,
12,
13,
10,
11,
10,
21,
19,
21,
38,
10,
759,
10,
14,
95,
31,
11,
33,
129,
17,
157,
103,
588,
78,
175,
829,
85,
86,
15,
73,
25,
58,
29,
1124,
116,
41,
51,
29,
10,
42,
637,
67,
10,
53,
2203,
17,
55,
486,
63,
35,
12,
41,
271,
183,
10,
12,
17,
11,
164,
174,
4351,
28,
15,
10,
201,
17,
10,
3382,
127,
10,
148,
40,
22,
22,
20,
18,
10,
13,
13,
23,
27,
142,
16,
30,
3620,
218,
42,
30,
13,
49,
32,
22,
1026,
46,
89,
26,
346,
101,
272,
13,
55,
11,
32,
59,
56,
79,
128,
87,
58,
15,
31,
31,
28,
63,
209,
19,
271,
11,
66,
21,
13,
36,
11,
17,
36,
65,
12,
31,
28,
49,
33,
24,
246,
6315,
36,
69,
13,
26,
715,
10,
33,
20,
14,
13,
10,
57,
10,
15,
72,
65,
19,
14,
16,
30,
32,
67,
23,
11,
320,
29,
468,
24,
32,
45,
10,
179,
32,
24,
13,
12,
15,
553,
2009,
13,
43,
187,
29,
18,
12,
10,
17,
19,
82,
24,
10,
91,
35,
175,
42,
16487,
21,
20,
10,
13,
55,
156,
10,
956,
25,
14,
10,
60,
1958,
22,
168,
90,
47,
62,
22,
10,
31,
30,
30,
357,
11,
36,
15,
10,
22,
19,
31,
13,
29,
10,
22,
380,
101,
30,
49,
31,
153,
21,
32,
12,
19,
225,
16,
14,
13,
56,
43,
33,
182,
21,
11,
19,
84,
71,
140,
34,
28,
1814,
20,
19,
27,
11,
90,
24,
40,
17,
16,
181,
27,
22,
187,
132,
85,
69,
21,
33,
27,
10,
21,
397,
21,
885,
20,
19,
11,
14,
21,
10,
12,
56,
83,
276,
56,
44,
20,
505,
14,
25,
52,
1273,
272,
23,
60,
27,
49,
20,
260,
15,
18,
277,
30,
138,
99,
21,
192,
26,
12,
17,
19,
5539,
120,
20,
29,
101,
74,
11,
4474,
46,
10,
112,
196,
10,
11,
313,
44,
63,
1350,
10,
191,
96,
105,
14,
289,
19,
243,
28,
34,
83,
22,
124,
65,
11,
22,
13,
30,
42,
57,
123,
58,
31,
10,
42,
202,
13,
142,
26,
32,
52,
508,
35,
25,
11,
105,
18,
102,
35,
113,
58,
41,
41,
19,
25,
28,
14,
13,
108,
21,
145,
269,
226,
20,
13,
445,
11,
211,
13,
26,
57,
35,
51,
16,
17,
207,
48,
10,
12,
31,
13,
8336,
33,
42,
430,
2296,
11,
77,
34,
12,
13,
10,
20,
12,
17,
14,
11,
43,
38,
73,
24,
10,
25,
19,
11,
23,
17,
13,
13,
66,
10,
156,
21730,
1110,
39,
10,
1048,
55,
15,
24,
250,
270,
72,
212,
298,
168,
734,
174,
154,
343,
240,
77,
22,
12207,
205,
201,
62,
226,
211,
34,
126,
10,
10,
16,
11,
720,
22,
16,
1661,
229,
25,
37,
34,
43,
43,
10,
93,
22,
54,
10,
10,
62,
36,
19,
43,
12,
27,
52,
379,
13,
43,
63,
30,
19,
13,
208,
71,
2081,
86,
100,
10,
55,
15,
53,
268,
2812,
838,
30,
214,
19,
26,
90,
70,
293,
10,
107,
99,
33,
49,
520,
19,
139,
283,
28,
55,
19,
2170,
68,
11,
133,
15,
15,
143,
11,
62,
69,
96,
21,
177,
12,
84,
673,
75,
16,
1660,
19,
17,
852,
630,
440,
581,
3627,
76,
270,
216,
201,
55,
126,
98,
253,
62,
138,
24,
93,
102,
335,
54,
75,
22,
224,
401,
12,
17,
26,
12,
19,
17,
46,
14,
190,
20,
13,
102,
20,
21,
123,
31,
79,
37,
59,
12,
1698,
18,
1862,
12,
76,
43,
10,
18,
20,
14,
5102,
26,
26,
34,
25,
31,
56,
78,
171,
12,
277,
53,
143,
207,
207,
98,
10,
79,
70,
66,
144,
10,
19,
309,
210,
33,
267,
672,
2892,
72,
36,
10,
33,
10,
10,
25,
15,
11,
12,
17,
835,
50,
618,
49,
33,
186,
15,
53,
11,
61,
24,
37,
21,
61,
1189,
10,
10,
67,
32,
11,
100,
2400,
110,
54,
38,
28,
23,
16,
15,
23,
446,
85,
13,
2199,
10,
226,
50,
87,
14,
14,
118,
239,
578,
12,
29,
17,
11,
35,
199,
20,
16,
15,
48,
68,
17,
57,
70,
16,
25,
1437,
13,
64,
25,
90,
14,
19,
53,
15,
18,
12,
365,
12,
529,
34,
13,
41,
12,
12,
38,
731,
210,
39,
14,
26,
39,
19,
11,
32,
629,
17,
15,
18,
264,
4019,
109,
451,
36,
11,
35,
14,
100,
13,
11,
49,
31,
111,
210,
21,
16,
11,
16,
14,
10,
161,
14,
20,
17,
11,
15,
75,
86,
16,
42,
14,
288,
10,
25,
20,
46,
22,
36,
1128,
11,
21,
66,
161,
12,
10,
12,
56,
39,
10,
40,
573,
81,
45,
13,
19,
14,
29,
14,
32,
15,
39,
73,
116,
151,
10,
58,
427,
1612,
9411,
30,
30,
11,
93,
38,
12,
2043,
59,
35,
14,
51,
20,
11,
10,
21,
10,
59,
10,
28,
35,
14,
1656,
19,
553,
50,
14,
164,
39,
26,
24,
135,
43,
155,
11,
46,
13,
143,
11,
72,
11,
237,
11,
188,
164,
16,
14,
14,
1632,
11,
13,
16,
72,
117,
27,
31,
1423,
566,
33,
20,
192,
14,
23,
27,
1556,
976,
129,
54,
102,
96,
24,
70,
302,
878,
18,
15,
13,
33,
10,
17,
38,
83,
26,
164,
174,
13,
12,
46,
14,
17,
30,
133,
10,
16,
24,
41,
17,
40,
14,
10,
24,
136,
14,
15,
12,
12,
19,
101,
84,
542,
21,
31,
30,
11,
10,
284,
15,
19,
118,
208,
29,
39,
83,
3712,
18,
17,
10,
121,
551,
71,
12,
18,
13402,
342,
25,
42,
1507,
97,
11,
10,
279,
18,
39,
50,
14,
28,
28,
12,
19,
34,
22,
34,
32,
3135,
41,
77,
13,
12,
246,
12,
83,
58,
15,
17,
16,
25,
13,
82,
13,
551,
25,
50,
19,
19,
31,
11,
14,
1380,
54,
60,
14,
55,
39,
75,
73,
35,
62,
551,
19,
15,
21,
36,
35,
50,
128,
255,
2055,
10,
10,
10,
26,
12,
199,
10,
145,
12,
55,
50,
25,
858,
32,
135,
12,
30,
258,
33,
13,
36,
11,
11,
122,
11,
28,
712,
57,
48,
17,
22,
14,
89,
16,
10,
46,
11,
81,
100,
10,
13,
17,
13,
16,
16,
12,
75,
11,
26,
10,
11,
11,
73,
164,
33,
13,
581,
10,
759,
11,
85,
11,
10,
16,
11,
10515,
379,
43,
62,
129,
42,
119,
17,
17,
97,
86,
37,
182,
67,
93,
58,
17,
659,
282,
790,
329,
16,
17,
27,
11,
25,
17,
15,
13,
31,
23,
20,
25,
129,
26,
14,
16,
384,
12,
172,
10,
128,
46,
40,
94,
13,
91,
11,
43,
692,
27,
12,
18,
22,
10,
15,
46,
196,
353,
19,
36,
34,
30,
391,
45,
18,
38,
65,
11,
47,
29,
857,
19,
90,
286,
199,
30,
10,
28,
39,
893,
2707,
81,
137,
105,
12,
25,
11,
14,
44,
59,
11,
17,
34,
111,
26,
13,
252,
34,
31,
21,
17,
116,
30,
10,
10,
19,
10,
111,
14,
69,
10,
31,
480,
27,
114,
12,
16,
12,
38,
22,
98,
369,
4763,
37,
238,
61,
37,
13,
22,
14,
16,
20,
10,
10,
98,
10,
39,
366,
16,
31,
29,
32,
78,
13,
1206,
17,
22,
184,
4815,
118,
10,
42,
27,
81,
79,
90,
12,
10,
24,
39,
14,
74,
330,
277,
59,
24,
1896,
17,
50,
39,
115,
10,
10,
15,
35,
3507,
11,
112,
2361,
11,
88,
197,
70,
17,
612,
12,
131,
61,
43,
40,
51,
16,
150,
11,
25,
39,
41,
70,
61,
12,
389,
16,
27,
127,
27,
1840,
24,
33,
252,
12,
30,
10,
42,
440,
181,
14,
12,
26,
34,
77,
11,
92,
63,
37,
42,
58,
30,
28,
845,
17,
184,
10,
53,
233,
44,
13,
16,
2870,
55,
28,
62,
345,
253,
1151,
21348,
11121,
2577,
83,
98,
25,
75,
180,
1241,
779,
18,
94,
320,
14,
10,
1077,
314,
198,
22,
18,
136,
20,
3183,
33,
14,
126,
104,
208,
17,
97,
32,
12,
17,
22,
41,
15,
23,
29,
43,
33,
15,
334,
13,
33,
44,
17,
530,
12,
459,
8823,
74,
45,
106,
33,
45,
109,
33,
24,
16,
12,
15,
13,
12,
26,
1065,
75,
10,
503,
4269,
22,
2330,
46,
48,
25,
103,
83,
39,
40,
34,
872,
21,
13,
34,
264,
16,
742,
21,
17,
36,
59,
13,
14,
121,
29,
23,
12,
86,
24,
50,
15,
32,
22,
112,
191,
10,
14,
14,
2712,
2770,
46,
13,
93,
144,
16,
19,
13,
25,
15,
34,
10,
12,
37,
120,
129,
11,
10,
15,
11,
32,
35,
14,
74,
119,
50,
993,
37,
11,
202,
118,
1100,
559,
11,
36,
28,
58,
10,
41,
74,
812,
80,
13,
50,
152,
63,
123,
253,
136,
80,
40,
39,
45,
475,
2454,
246,
125,
11,
4390,
46,
12,
229,
33,
109,
152,
74,
43,
10,
19,
236,
38,
23,
52,
16,
146,
22,
27,
42,
30,
42,
10,
13,
272,
10,
48,
13,
17,
18,
10,
31,
339,
22,
86,
17,
21,
29,
546,
15,
34,
366,
31,
289,
125,
11,
19,
12,
16,
23,
195,
127,
55,
79,
87,
53,
72,
15,
12,
20,
272,
103,
388,
16,
10,
12,
18,
10,
63,
102,
15,
40,
325,
13,
1126,
50,
52,
903,
149,
149,
26,
16,
15,
201,
85,
13,
117,
338,
2085,
26,
10,
109,
131,
25,
10,
106,
20,
10,
11,
16,
11,
132,
1007,
287,
13,
145,
108,
212,
25,
12,
13,
65,
17,
19,
11,
316,
13,
366,
26,
715,
12,
26,
192,
653,
80,
3954,
15,
112,
1026,
1942,
12,
848,
19,
12,
24,
75,
122,
23,
23,
112,
774,
48,
23,
54,
13,
22,
16,
15,
13,
357,
33,
23,
121,
82,
18,
46,
37,
60,
128,
28,
57,
12,
11,
40,
44,
62,
22,
17,
86,
12,
10,
14,
25,
221,
15,
19,
12,
28,
112,
12,
27,
17,
11,
19,
31,
15,
14,
33,
30,
41,
409,
45,
157,
47,
26,
138,
82,
58,
252,
10,
10,
135,
10,
10,
489,
30,
21,
195,
74,
16,
1281,
11,
91,
54,
17,
16,
30,
10,
55,
11,
13,
13,
10,
11,
33,
88,
12,
159,
23,
10,
13,
44,
15,
12,
11,
518,
52,
25,
37,
54,
15,
30,
183,
323,
21,
12,
11,
24,
15,
12,
17,
669,
47,
18,
28,
27,
33,
21,
336,
506,
74,
28,
100,
15,
11,
2182,
28,
38,
28,
27,
17,
773,
400,
14,
23,
15,
74,
30,
16,
13,
106,
38,
29,
112,
191,
33,
937,
18,
275,
839,
50,
1182,
55,
12,
11,
12,
187,
18,
167,
11,
44,
287,
83,
303,
66,
26,
42,
131,
1536,
193,
176,
12,
1756,
11,
57,
56,
76,
12,
14,
12,
34,
15,
53,
34,
19,
12,
795,
13,
18,
14,
16,
41,
28,
24,
209,
47,
15,
30,
196,
11,
10,
19,
15,
18,
30,
686,
102,
877,
17,
21,
34,
24,
51,
71,
305,
395,
43,
18,
14,
14,
32,
20,
33,
31,
24,
21,
26,
20,
33,
524,
81,
40,
40,
76,
43,
74,
22,
345,
12,
14,
10,
48,
12,
579,
88,
15,
11,
26,
1946,
748,
34,
22,
30,
46,
14,
10,
34,
37,
30,
2395,
34,
26,
20,
107,
123,
10,
10,
14,
195,
12,
25,
15,
12,
11,
87,
171,
19,
15,
39,
16,
17,
11,
10,
19,
1020,
21,
18,
26,
15,
18,
22,
12,
26,
10,
92,
10,
217,
18,
27,
562,
17,
27,
14,
36,
75,
23,
74,
31,
14,
10,
27,
38,
271,
19,
13,
464,
15,
23,
10,
12,
53,
17,
10,
11,
10,
12,
17,
22,
12,
47,
41,
23,
139,
35,
11,
39,
38,
17,
45,
123,
55,
85,
36,
51,
6458,
200,
843,
5613,
10,
955,
155,
73,
19,
17,
91,
46,
258,
13,
41,
170,
30,
29,
118,
16,
64,
35,
15,
45,
15,
10,
208,
10,
10,
314,
134,
30,
112,
51,
31,
70,
11,
65,
11,
20,
53,
30,
21,
30,
81,
29,
18,
41,
16,
566,
18,
13,
230,
15,
83,
128,
218,
20,
138,
39,
240,
92,
177,
26,
58,
13,
43,
109,
18,
22,
14,
152,
15,
44,
68,
54,
49,
114,
71,
10,
16,
30,
185,
15,
1526,
2907,
10,
31,
12,
22,
263,
381,
501,
188,
10,
25,
12,
18,
15,
10,
121,
105,
15,
13,
11,
136,
23,
10,
106,
22,
12,
182,
1472,
15,
123,
14,
12,
11,
10147,
40,
15,
3476,
87,
22,
10,
93,
28,
84,
80,
247,
15,
184,
13,
109,
235,
303,
1846,
49,
401,
225,
12,
28,
128,
14,
958,
668,
49,
20,
14,
46,
134,
39,
34,
14,
4896,
10,
3176,
365,
26,
18,
48,
29,
72,
32,
26,
33,
25,
15,
75,
85,
33,
427,
48,
120,
18,
146,
18,
239,
35,
763,
269,
14,
16,
321,
182,
14,
45,
18,
1057,
10,
16,
191,
11,
13,
13,
90,
11,
46,
39,
1032,
12,
10,
205,
18,
51,
32,
18,
11,
10,
10,
16,
14,
13,
26,
11,
18,
52,
397,
12,
19,
10,
28,
11,
13,
73,
15,
18,
136,
60,
18,
15,
45,
17,
153,
11,
18,
12,
63,
226,
778,
98,
99,
1899,
197,
53,
76,
20,
51,
22,
10,
14,
26,
82,
11,
1878,
22,
200,
80,
45,
37,
109,
17,
75,
32,
24,
445,
17,
2437,
235,
15,
50,
12,
10,
104,
50,
11,
13,
15,
86,
11,
45,
27,
94,
91,
16,
31,
36,
10,
34,
73,
24,
11,
24,
1358,
466,
193,
1339,
48,
26,
29,
32,
20,
19,
162,
10,
346,
218,
76,
25,
45,
288,
121,
301,
648,
87,
305,
482,
115,
24,
17,
39,
35,
10,
207,
18,
87,
10,
220,
246,
15,
92,
30,
80,
7851,
46,
102,
96,
36,
97,
29,
25,
1103,
208,
49,
72,
20,
326,
131,
16,
20,
329,
15,
40,
11,
10,
4088,
77,
11,
155,
299,
252,
27,
40,
11,
41,
21,
66,
40,
182,
59,
11,
43,
31,
11,
13,
169,
64,
14,
10,
7751,
203,
31,
1206,
35,
14,
24,
76,
209,
12,
48,
1306,
13,
14,
17,
75,
986,
235,
419,
49,
10,
11,
16,
15,
16,
13,
16,
135,
19,
81,
14,
12,
25,
49,
34,
632,
57,
10,
23,
15,
65,
11,
18,
14,
3581,
28,
11,
26,
22,
14,
72,
111,
10,
18,
247,
44,
106,
33,
15,
14,
45,
15,
104,
13,
423,
34,
50,
36,
1772,
24,
12,
49,
648,
75,
38,
25,
14,
275,
183,
31,
37,
17,
14,
135,
11,
82,
27,
18,
26,
15,
65,
55,
36,
18,
190,
10,
32,
234,
38,
25,
14,
22,
59,
239,
1273,
18,
69,
42,
61,
50,
26,
63,
36,
43,
78,
27,
11,
29,
13,
29,
382,
16,
131,
19,
17,
148,
29,
31,
17,
80,
34,
51,
65,
15,
23,
10,
35,
13,
326,
12,
2193,
11,
17,
12,
95,
11,
12,
51,
91,
68,
13,
23,
78,
11,
17,
41,
92,
74,
449,
24,
33,
639,
22,
14,
170,
75,
127,
10,
94,
32,
19,
21,
27,
16,
11,
94,
12,
23,
55,
13,
877,
22,
16,
11,
16,
164,
13,
405,
44,
29,
30,
21,
24,
19,
20,
20,
26,
37,
29,
24,
30,
17,
22,
24,
28,
30,
25,
23,
21,
19,
28,
30,
22,
27,
31,
27,
55,
18,
31,
34,
18,
14,
23,
17,
32,
15,
15,
18,
15,
16,
29,
21,
20,
25,
23,
34,
11,
26,
26,
17,
21,
23,
39,
27,
23,
18,
16,
15,
14,
27,
21,
16,
19,
20,
17,
23,
20,
21,
13,
21,
16,
18,
29,
14,
35,
30,
23,
17,
15,
18,
21,
23,
23,
22,
22,
30,
13,
23,
15,
20,
14,
18,
22,
25,
29,
30,
28,
18,
17,
12,
24,
16,
20,
21,
26,
21,
25,
17,
27,
16,
16,
24,
24,
13,
21,
24,
21,
22,
33,
22,
13,
21,
25,
19,
15,
23,
21,
25,
21,
16,
21,
19,
20,
24,
17,
29,
11,
28,
15,
14,
28,
21,
25,
18,
26,
25,
24,
19,
17,
23,
19,
31,
34,
23,
18,
21,
24,
18,
26,
19,
17,
19,
17,
17,
27,
22,
17,
24,
28,
24,
21,
18,
23,
15,
24,
16,
21,
23,
16,
20,
18,
19,
24,
23,
19,
33,
25,
25,
12,
27,
20,
25,
22,
35,
31,
35,
29,
33,
26,
25,
22,
16,
31,
32,
24,
30,
22,
27,
17,
30,
30,
32,
29,
27,
23,
22,
34,
16,
35,
19,
23,
24,
22,
16,
32,
27,
21,
25,
22,
21,
21,
19,
14,
24,
20,
22,
25,
16,
15,
19,
22,
27,
25,
18,
23,
23,
25,
19,
27,
13,
19,
27,
15,
21,
12,
15,
32,
17,
24,
15,
12,
15,
27,
21,
19,
19,
16,
21,
17,
29,
26,
30,
40,
29,
28,
27,
25,
34,
35,
28,
28,
29,
40,
43,
34,
24,
24,
45,
19,
36,
31,
33,
40,
30,
36,
31,
27,
27,
28,
34,
44,
30,
20,
27,
21,
25,
34,
38,
43,
24,
33,
29,
32,
22,
20,
35,
26,
29,
35,
35,
48,
26,
35,
29,
44,
35,
30,
22,
25,
46,
27,
42,
32,
34,
36,
27,
30,
45,
23,
38,
32,
28,
30,
26,
24,
30,
33,
29,
18,
36,
27,
26,
23,
32,
26,
29,
24,
34,
28,
31,
32,
31,
10,
10,
10,
20,
14,
23,
22,
53,
25,
30,
16,
26,
17,
24,
15,
10,
3943,
35,
19,
11,
15,
14,
62,
10,
36,
12,
63,
14,
13,
15,
11,
13,
11,
13,
11,
14,
19,
18,
14,
10,
10,
17,
15,
10,
10,
20,
10,
11,
19,
12,
11,
14,
16,
21,
17,
10,
18,
11,
16,
14,
19,
12,
14,
15,
13,
19,
11,
21,
12,
14,
11,
11,
13,
13,
11,
11,
13,
17,
16,
11,
17,
17,
23,
16,
13,
12,
17,
20,
13,
17,
14,
14,
22,
12,
15,
19,
21,
15,
12,
14,
17,
17,
20,
18,
27,
12,
14,
20,
17,
13,
21,
11,
14,
19,
23,
18,
16,
18,
13,
12,
16,
19,
11,
13,
23,
10,
21,
14,
15,
19,
20,
21,
12,
15,
11,
17,
11,
10,
15,
12,
13,
11,
17,
10,
13,
12,
17,
20,
20,
17,
24,
15,
13,
17,
12,
15,
10,
21,
12,
20,
18,
19,
17,
22,
21,
19,
18,
13,
10,
15,
11,
27,
14,
13,
15,
18,
11,
24,
13,
16,
12,
14,
15,
17,
10,
13,
10,
16,
10,
18,
13,
14,
11,
11,
13,
15,
15,
15,
20,
22,
15,
18,
16,
16,
13,
19,
16,
12,
10,
10,
17,
14,
14,
17,
15,
13,
13,
15,
12,
10,
13,
10,
12,
11,
21,
12,
17,
11,
12,
13,
20,
20,
14,
10,
12,
15,
19,
20,
19,
12,
14,
12,
17,
14,
15,
11,
14,
20,
14,
10,
10,
12,
12,
25,
16,
14,
19,
18,
14,
15,
20,
26,
20,
18,
14,
22,
17,
24,
22,
19,
15,
11,
21,
17,
17,
20,
34,
27,
32,
16,
18,
21,
19,
21,
19,
15,
18,
26,
25,
14,
25,
15,
16,
23,
25,
19,
15,
22,
25,
20,
17,
20,
22,
22,
13,
14,
15,
16,
16,
12,
19,
11,
14,
24,
19,
12,
21,
23,
15,
21,
15,
17,
21,
13,
22,
23,
17,
10,
15,
19,
15,
20,
14,
31,
23,
22,
23,
19,
21,
25,
18,
23,
23,
27,
39,
26,
28,
23,
19,
21,
26,
24,
16,
13,
22,
16,
15,
20,
14,
14,
18,
18,
11,
12,
10,
13,
44,
28,
39,
17,
129,
13,
20,
21,
11,
13,
10,
31,
11,
12,
43,
11,
21,
261,
17,
17,
16,
16,
18,
15,
18,
12,
23,
20,
19,
23,
29,
21,
15,
19,
15,
19,
16,
23,
20,
16,
14,
15,
16,
15,
18,
25,
22,
13,
20,
16,
23,
15,
14,
20,
17,
26,
12,
17,
16,
18,
24,
15,
13,
20,
26,
15,
20,
10,
18,
16,
23,
22,
19,
15,
22,
17,
22,
10,
30,
15,
20,
14,
20,
14,
11,
18,
20,
23,
17,
14,
21,
19,
23,
13,
12,
16,
16,
15,
12,
13,
13,
25,
24,
27,
24,
15,
12,
16,
11,
18,
17,
20,
22,
20,
11,
15,
21,
16,
21,
19,
18,
20,
23,
19,
34,
25,
22,
21,
15,
17,
18,
31,
17,
19,
24,
15,
25,
21,
16,
17,
17,
26,
18,
28,
14,
13,
15,
13,
24,
24,
15,
24,
19,
12,
23,
21,
13,
17,
16,
17,
11,
19,
21,
20,
18,
20,
18,
17,
12,
12,
27,
26,
30,
19,
25,
18,
20,
20,
19,
23,
18,
15,
20,
22,
11,
22,
23,
28,
19,
23,
30,
27,
23,
18,
17,
28,
19,
25,
25,
45,
19,
20,
25,
25,
18,
18,
16,
16,
16,
16,
19,
16,
14,
17,
17,
19,
18,
26,
19,
25,
21,
12,
19,
18,
18,
25,
13,
17,
30,
31,
19,
23,
22,
28,
14,
21,
24,
17,
22,
21,
16,
10,
15,
19,
18,
13,
21,
18,
12,
20,
16,
23,
18,
17,
24,
16,
13,
14,
12,
18,
18,
15,
15,
22,
17,
21,
23,
24,
21,
13,
14,
14,
17,
18,
19,
25,
16,
19,
20,
18,
19,
28,
13,
26,
59,
27,
32,
16,
16,
32,
26,
36,
19,
24,
18,
33,
35,
35,
33,
37,
27,
28,
25,
29,
33,
25,
30,
27,
28,
24,
29,
25,
37,
29,
20,
35,
35,
20,
29,
28,
24,
20,
24,
25,
23,
32,
26,
24,
19,
25,
25,
18,
24,
21,
21,
34,
22,
22,
27,
23,
22,
25,
37,
28,
19,
25,
29,
33,
11,
16,
21,
25,
33,
24,
17,
29,
29,
29,
24,
27,
32,
23,
24,
26,
27,
25,
32,
27,
20,
17,
32,
32,
26,
31,
13,
13,
12,
21,
23,
24,
11,
16,
15,
15,
13,
628,
11,
19,
25,
21,
20,
19,
22,
27,
18,
17,
22,
28,
25,
11,
11,
17,
20,
17,
19,
18,
18,
16,
17,
17,
16,
18,
24,
15,
22,
19,
10,
22,
22,
19,
24,
17,
27,
15,
16,
17,
18,
19,
12,
19,
15,
17,
17,
18,
22,
13,
19,
14,
15,
14,
21,
15,
24,
19,
16,
16,
27,
14,
24,
23,
23,
16,
17,
16,
27,
17,
18,
22,
16,
24,
20,
14,
13,
21,
17,
19,
18,
13,
20,
14,
15,
15,
23,
21,
17,
15,
14,
15,
22,
14,
20,
18,
22,
15,
16,
12,
15,
15,
15,
20,
16,
20,
14,
14,
24,
13,
32,
28,
19,
15,
20,
26,
20,
14,
25,
16,
20,
17,
19,
14,
17,
13,
18,
14,
20,
23,
10,
11,
19,
22,
16,
22,
19,
18,
10,
19,
16,
20,
25,
18,
13,
15,
15,
16,
31,
27,
15,
19,
16,
16,
14,
13,
18,
20,
14,
12,
19,
13,
10,
22,
21,
20,
17,
10,
30,
19,
18,
17,
16,
22,
16,
22,
16,
14,
12,
17,
19,
12,
20,
19,
17,
16,
14,
32,
18,
18,
25,
19,
12,
15,
13,
24,
14,
22,
40,
23,
19,
23,
27,
17,
11,
20,
14,
15,
14,
17,
20,
19,
23,
19,
16,
21,
18,
18,
16,
22,
15,
18,
22,
19,
18,
21,
18,
20,
26,
20,
15,
22,
21,
21,
17,
14,
17,
17,
11,
24,
19,
23,
19,
10,
20,
23,
15,
20,
13,
16,
20,
13,
14,
16,
21,
16,
18,
14,
22,
20,
29,
25,
11,
20,
20,
18,
26,
25,
20,
19,
31,
17,
22,
33,
28,
23,
17,
21,
20,
29,
29,
23,
27,
32,
24,
30,
15,
33,
19,
23,
32,
23,
26,
29,
24,
26,
20,
17,
32,
20,
28,
22,
22,
20,
18,
20,
15,
24,
20,
15,
15,
19,
19,
16,
27,
19,
15,
27,
31,
26,
23,
22,
31,
25,
22,
23,
22,
15,
31,
25,
23,
29,
27,
29,
21,
26,
18,
22,
24,
30,
24,
32,
26,
19,
20,
22,
25,
24,
17,
22,
17,
13,
13,
15,
16,
21,
17,
16,
13,
20,
14,
12,
14,
12,
11,
16,
23,
11,
80,
19,
20,
20,
19,
24,
17,
19,
28,
14,
13,
19,
20,
16,
14,
18,
19,
22,
15,
18,
17,
20,
14,
13,
14,
14,
22,
11,
10,
18,
13,
12,
18,
18,
15,
13,
16,
15,
20,
19,
14,
15,
12,
19,
18,
15,
17,
14,
12,
13,
14,
18,
21,
17,
18,
24,
14,
17,
21,
14,
15,
17,
18,
25,
16,
22,
11,
12,
18,
13,
16,
29,
10,
17,
17,
14,
19,
11,
20,
15,
20,
16,
22,
15,
13,
21,
20,
16,
15,
21,
17,
19,
20,
13,
11,
27,
14,
22,
24,
15,
22,
22,
30,
23,
14,
22,
16,
15,
11,
15,
13,
31,
16,
16,
18,
23,
17,
18,
20,
19,
14,
17,
24,
12,
13,
13,
13,
17,
14,
14,
16,
18,
15,
25,
17,
25,
12,
11,
13,
15,
10,
19,
16,
18,
21,
24,
21,
23,
19,
18,
11,
22,
17,
10,
20,
23,
25,
13,
26,
15,
20,
13,
16,
22,
17,
15,
20,
17,
12,
16,
17,
14,
10,
12,
15,
20,
19,
17,
10,
18,
18,
14,
15,
11,
13,
21,
16,
15,
19,
19,
10,
15,
12,
12,
19,
14,
18,
18,
13,
24,
15,
15,
16,
16,
14,
14,
19,
28,
10,
23,
15,
20,
15,
22,
14,
14,
15,
17,
24,
18,
15,
19,
10,
12,
20,
21,
16,
16,
11,
17,
16,
11,
23,
17,
17,
18,
26,
19,
20,
13,
20,
17,
20,
14,
17,
13,
17,
23,
15,
16,
10,
16,
10,
17,
15,
12,
16,
16,
10,
15,
11,
15,
19,
24,
28,
23,
18,
23,
23,
12,
19,
21,
13,
21,
32,
20,
20,
20,
26,
29,
23,
16,
29,
24,
22,
17,
29,
22,
23,
21,
19,
30,
22,
25,
30,
25,
18,
11,
29,
31,
27,
14,
18,
15,
28,
15,
15,
16,
22,
25,
17,
15,
16,
31,
35,
17,
27,
23,
24,
33,
26,
26,
18,
20,
23,
18,
32,
20,
15,
14,
24,
18,
28,
29,
24,
16,
26,
14,
22,
26,
28,
22,
17,
24,
20,
30,
14,
21,
24,
28,
15,
27,
25,
15,
18,
14,
20,
18,
16,
10,
23,
16,
12,
12,
13,
15,
13,
16,
18,
11,
12,
11,
14,
12,
15,
16,
13,
14,
12,
10,
18,
12,
11,
17,
10,
16,
11,
12,
13,
18,
16,
21,
21,
11,
12,
14,
20,
16,
10,
15,
14,
13,
10,
17,
13,
13,
11,
15,
11,
15,
15,
10,
14,
11,
14,
10,
12,
11,
12,
16,
16,
14,
13,
12,
16,
11,
17,
15,
10,
12,
12,
17,
11,
12,
19,
13,
10,
12,
11,
14,
16,
12,
10,
11,
12,
10,
15,
10,
12,
17,
11,
11,
19,
10,
11,
13,
21,
15,
17,
16,
10,
10,
11,
12,
18,
11,
11,
12,
11,
11,
11,
11,
12,
16,
10,
16,
12,
18,
10,
11,
14,
11,
17,
17,
13,
12,
13,
17,
14,
10,
13,
12,
15,
12,
11,
13,
14,
11,
10,
10,
10,
15,
12,
11,
13,
10,
11,
11,
10,
10,
18,
10,
11,
14,
16,
19,
19,
18,
18,
13,
18,
16,
23,
12,
15,
14,
18,
14,
18,
17,
13,
20,
13,
20,
12,
20,
19,
11,
18,
13,
31,
12,
16,
17,
18,
16,
25,
16,
19,
21,
17,
20,
18,
25,
15,
18,
18,
10,
15,
20,
17,
30,
22,
18,
14,
17,
14,
17,
12,
12,
17,
19,
12,
13,
15,
14,
13,
20,
19,
20,
10,
18,
21,
17,
16,
22,
16,
13,
12,
23,
16,
13,
17,
16,
16,
15,
15,
13,
14,
20,
13,
15,
11,
10,
17,
12,
11,
22,
14,
31,
11,
12,
13,
10,
13,
10,
11,
12,
10,
10,
12,
11,
11,
19,
10,
10,
10,
13,
12,
13,
13,
11,
11,
12,
14,
10,
17,
10,
17,
14,
12,
11,
17,
18,
12,
12,
11,
10,
14,
10,
12,
12,
18,
10,
15,
11,
12,
11,
10,
11,
11,
13,
10,
17,
10,
10,
14,
11,
11,
10,
11,
18,
14,
12,
13,
10,
12,
12,
11,
11,
12,
10,
10,
13,
12,
14,
12,
12,
17,
11,
11,
12,
11,
10,
11,
10,
10,
20,
10,
16,
10,
16,
11,
12,
11,
12,
16,
13,
10,
14,
13,
16,
10,
10,
12,
12,
17,
14,
10,
10,
15,
11,
10,
14,
11,
13,
13,
13,
11,
14,
10,
14,
11,
16,
10,
15,
19,
16,
14,
17,
12,
12,
13,
14,
12,
15,
13,
14,
17,
20,
12,
11,
12,
12,
16,
12,
10,
14,
12,
10,
10,
13,
11,
12,
11,
13,
12,
18,
10,
16,
16,
12,
14,
15,
17,
15,
17,
12,
17,
15,
11,
11,
11,
17,
11,
13,
16,
15,
12,
12,
15,
10,
10,
14,
13,
18,
18,
10,
11,
10,
13,
20,
17,
11,
12,
12,
14,
10,
15,
11,
11,
14,
15,
12,
18,
11,
17,
14,
10,
12,
11,
11,
10,
11,
16,
15,
13,
14,
12,
14,
11,
10,
11,
13,
14,
12,
13,
10,
14,
15,
11,
10,
12,
12,
10,
14,
10,
16,
17,
10,
12,
16,
20,
20,
20,
20,
24,
14,
10,
10,
12,
10,
12,
12,
13,
11,
13,
10,
10,
10,
12,
10,
12,
10,
10,
10,
10,
10,
10,
11,
11,
13,
15,
11,
16,
11,
11,
10,
10,
16,
10,
12,
10,
12,
10,
11,
13,
15,
11,
12,
12,
12,
14,
12,
13,
10,
10,
10,
12,
10,
19,
62,
11,
10,
10,
13,
21,
12,
10,
10,
11,
15,
10,
12,
11,
11,
12,
11,
12,
10,
11,
10,
12,
11,
10,
12,
15,
12,
12,
14,
13,
12,
11,
10,
11,
10,
13,
12,
10,
10,
13,
10,
13,
10,
10,
10,
10,
11,
23,
11,
10,
15,
14,
14,
15,
21,
11,
37,
10,
10,
16,
10,
10,
11,
14,
10,
10,
13,
15,
10,
13,
15,
11,
11,
10,
13,
10,
11,
10,
28,
45,
47,
20,
55,
15,
20,
191,
37,
714,
66,
25,
10,
31,
12,
14,
15,
18,
21,
21,
21,
74,
30,
213,
609,
26,
86,
58,
13,
43,
37,
1046,
13,
26,
323,
403,
103,
31,
104,
19,
13,
10,
26,
136,
24,
157,
46,
749,
77,
10,
28,
45,
16,
115,
172,
2989,
437,
333,
236,
35,
10,
18,
23,
62,
91,
97,
593,
14,
16,
26,
17,
26,
10,
56,
22,
34,
115,
31,
29,
494,
51,
38,
31,
13,
24,
25,
18,
11,
16,
14,
18,
11,
10,
118,
22,
21,
10,
13,
445,
13,
82,
11,
68,
12,
13,
12,
10,
10,
28,
62,
16,
37,
1757,
17,
25,
12,
11,
42,
10,
34,
53,
14,
13,
385,
11,
270,
19,
281,
40,
46,
16,
38,
197,
157,
61,
15,
14,
95,
18,
1238,
52,
234,
105,
71,
53,
28,
25,
40,
336,
62,
12,
220,
50,
18,
37,
19,
10,
12,
14,
17,
20,
12,
18,
10,
61,
40,
21,
112,
13,
11,
20,
13,
15,
72,
49,
19,
13,
23,
25,
13,
707,
29,
23,
23,
19,
28,
3040,
11,
10,
52,
16,
11,
31,
46,
69,
11,
20,
21,
38,
63,
55,
18,
10,
11,
635,
10,
12,
33,
325,
14,
149,
47,
21,
17,
13,
42,
10,
813,
338,
34,
1207,
339,
13,
60,
10,
218,
18,
150,
40,
24,
53,
48,
44,
274,
18,
142,
62,
51,
1493,
18,
251,
53,
96,
55,
56,
13,
22,
275,
13,
31,
39,
166,
37,
2517,
12,
48,
157,
340,
22,
11,
22,
55,
53,
14,
304,
571,
15,
913,
217,
12,
56,
87,
10,
44,
15,
146,
92,
319,
76,
41,
56,
31,
67,
28,
15,
40,
102,
10,
102,
1342,
223,
61,
82,
20,
22,
15,
11,
45,
102,
74,
272,
46,
41,
72,
12,
15,
25,
65,
6132,
190,
23,
32,
69,
15,
54,
421,
51,
17,
33,
14,
11,
42,
23,
16,
38,
32,
38,
14,
20,
263,
12,
34,
543,
142,
42,
17,
1416,
3721,
62,
19,
24,
56,
189,
24,
43,
143,
22,
29,
15,
11,
26,
24,
27,
23,
156,
12,
12,
14,
10,
70,
38,
20,
19,
41,
11,
10,
16,
11,
94,
41,
13,
16,
28,
14,
16,
59,
22,
15,
32,
26,
37,
55,
59,
11,
26,
27,
10,
10,
11,
11,
12,
22,
12,
52,
26,
21,
10,
27,
27,
28,
27,
57,
11,
79,
126,
51,
23,
30,
13,
16,
66,
153,
127,
14,
191,
21,
41,
240,
189,
129,
60,
10,
1138,
628,
53,
28,
12,
17,
2762,
14,
21,
29,
12,
15,
52,
34,
879,
28,
23,
11,
752,
47,
10,
19,
31,
13,
38,
23,
25,
25,
333,
230,
36,
126,
428,
62,
191,
14,
25,
81,
108,
10,
22,
14,
16,
59,
418,
269,
14,
10,
758,
299,
75,
87,
15,
59,
1235,
40,
20,
10,
55,
129,
69,
19,
37,
35,
10,
20,
62,
11,
30,
19,
53,
78,
20,
14,
51,
46,
55,
10,
13,
13,
185,
57,
1135,
60,
60,
23,
143,
21,
108,
18,
15,
103,
21,
26,
31,
59,
1332,
12,
51,
10,
205,
23,
46,
8063,
95,
586,
14,
124,
60,
18,
42,
12,
13,
16,
11,
28,
34,
30,
10,
27,
40,
145,
2475,
14,
32,
53,
113,
20,
78,
20,
69,
10,
1899,
17,
17,
48,
35,
29,
43,
17,
60,
57,
16,
12,
15,
27,
30,
30,
56,
16048,
11,
62,
11,
19,
26,
62,
21,
242,
141,
54,
33,
12,
36,
32,
11,
220,
1183,
290,
155,
22,
17,
47,
25,
56,
27,
31,
24,
38,
11,
25,
30,
16,
22,
13,
95,
11,
38,
15,
14,
11,
11,
115,
12,
128,
33,
301,
10,
196,
67,
13,
11,
105,
150,
27,
29,
174,
24,
12,
87,
10,
14,
1268,
15,
27,
11,
10,
252,
13,
285,
12,
10,
10,
112,
37,
10,
38,
18,
15,
993,
578,
116,
16,
14,
12,
32,
56,
13,
35,
220,
759,
48,
44,
27,
14,
10,
128,
74,
14,
47,
10,
61,
48,
45,
15,
314,
44,
31,
46,
16,
145,
30,
311,
10,
10,
83,
83,
40,
103,
22,
250,
2994,
26,
89,
11,
1172,
29,
31,
66,
31,
27,
141,
16,
17,
310,
11,
2800,
46,
14,
1883,
89,
38,
22,
24,
24,
13,
21,
16,
166,
11,
29,
376,
21,
14,
14,
197,
3258,
75,
610,
20,
23,
10,
87,
14,
126,
25,
20,
58,
116,
204,
140,
274,
26,
1104,
123,
38,
34,
66,
48,
83,
24,
179,
12,
111,
13,
108,
14,
2813,
10,
50,
24,
151,
38,
85,
1143,
177,
72,
19,
588,
22,
34,
176,
10,
484,
114,
1219,
40,
53,
261,
143,
27,
13,
1065,
148,
214,
129,
44,
433,
22,
12,
17,
10,
29,
32,
32,
13,
68,
39,
44,
270,
29,
22,
6304,
10,
43,
12,
49,
26,
210,
292,
11,
134,
11,
163,
193,
66,
30,
50,
14,
20,
20,
12,
63,
102,
17749,
32,
10,
177,
14,
10,
16,
34,
48,
75,
65,
79,
22,
444,
19,
44,
490,
198,
27,
146,
50,
138,
34,
46,
48,
16,
17,
36,
51,
124,
28,
33,
86,
25,
23,
10,
11,
90,
596,
18,
36,
13,
12,
10,
40,
16,
872,
50,
22,
19,
53,
32,
15,
289,
16,
23,
19,
89,
38,
30,
23,
10,
15,
32,
27,
10,
13,
20,
22,
20,
216,
55,
70,
92,
1454,
11,
28,
17,
17,
16,
29,
448,
152,
14,
61,
19,
97,
19,
61,
17,
130,
25,
1186,
954,
225,
18,
11,
289,
53,
25,
19,
20,
46,
536,
32,
39,
10,
84,
16,
392,
72,
47,
54,
10,
15,
983,
16,
11,
19,
516,
29,
184,
328,
23,
251,
116,
40,
26,
62,
32,
20,
107,
62,
13,
1691,
12,
291,
10,
22,
10,
113,
27,
22,
63,
11,
87,
72,
19,
154,
238,
29,
18,
26,
10,
14,
64,
43,
168,
20,
67,
450,
38,
12,
11,
75,
105,
11,
51,
14,
3839,
77,
59,
15,
155,
18,
17,
918,
21,
32,
24,
21,
19,
22,
19,
16,
78,
16,
37,
14,
16,
93,
93,
46,
431,
251,
25,
16,
23,
30,
20,
23,
30,
15,
97,
13,
35,
10,
10,
12,
48,
45,
52,
14,
15,
27,
12,
12,
15,
187,
197,
18,
11,
821,
232,
13,
20,
2144,
10,
26,
10,
36,
17,
344,
34,
12,
80,
53,
84,
23,
10,
14,
12,
256,
34,
26,
420,
16,
17,
18,
159,
26,
238,
333,
10,
24,
123,
41,
42,
10,
13,
35,
32,
127,
696,
49,
19,
54,
23,
55,
10,
225,
106,
69,
10,
10400,
32,
55,
33,
21,
27,
16,
15,
11,
12,
20,
43,
161,
13,
14,
14,
1581,
57,
111,
190,
17,
13,
106,
10,
21,
26,
20,
106,
36,
401,
17,
533,
109,
46,
44,
91,
22,
416,
60,
118,
10,
73,
23,
16,
28,
149,
11,
10,
30,
28,
10,
50,
33,
411,
94,
117,
10,
361,
12,
4683,
177,
11,
11,
23,
16,
13,
67,
205,
36,
508,
22,
84,
58,
105,
247,
442,
280,
25,
39,
156,
11,
152,
62,
88,
63,
406,
16,
54,
36,
24,
23,
31,
217,
97,
15,
1431,
192,
44,
83,
44,
51,
21,
10,
134,
27,
88,
14,
10,
15,
26,
32,
97,
164,
13,
15,
18,
28,
226,
1506,
107,
21,
112,
19,
24,
37,
96,
210,
30,
14,
1828,
196,
40,
57,
25,
386,
14,
138,
11,
64,
19,
10,
104,
119,
11,
12,
73,
24,
62,
109,
72,
36,
26,
10,
11,
12,
25,
25,
28,
18,
27,
18,
20,
31,
23,
44,
14,
49,
236,
21,
14,
87,
192,
19,
219,
22,
73,
24,
17,
122,
194,
113,
25,
56,
160,
10,
58,
18,
33,
36,
80,
530,
433,
187,
21,
16,
85,
19,
17,
20,
22,
77,
133,
108,
18,
44,
73,
28,
538,
21,
62,
25,
43,
13,
58,
17,
19,
33,
28,
481,
21,
11,
512,
25,
62,
94,
155,
14,
12,
11,
196,
54,
43,
17,
21,
10,
10,
2503,
1514,
219,
11,
193,
126,
125,
26,
18,
11,
66,
28,
20,
410,
747,
2008,
724,
293,
40,
227,
64,
28,
35,
22,
18,
41,
109,
60,
32,
12,
56,
16,
77,
82,
10,
76,
11,
10,
13,
59,
67,
59,
1475,
42,
293,
33,
24,
41,
21,
23,
33,
10,
11,
17,
33,
147,
28,
30,
57,
14,
325,
45,
23,
18,
17,
14,
109,
10,
30,
37,
11,
995,
70,
23,
221,
127,
103,
48,
137,
22,
30,
165,
26,
45,
28,
113,
238,
615,
26,
832,
13,
26,
58,
27,
17,
11,
3500,
407,
32,
114,
18,
12,
13,
10,
11,
11,
16,
16,
51,
11,
1377,
31,
24,
264,
20,
37,
95,
23,
19,
369,
26,
246,
58,
169,
90,
121,
220,
35,
66,
59,
79,
108,
80,
548,
70,
61,
306,
110,
15,
35,
12,
95,
16,
10,
10,
43,
25,
341,
10,
64,
76,
16,
46,
11,
19,
10,
13,
11,
15,
13,
1312,
20,
37,
17,
92,
232,
12,
1323,
77,
115,
27,
13,
28,
55,
66,
60,
38,
10,
105,
16,
14,
19,
42,
10,
39,
12,
19,
9741,
43,
82,
116,
11,
14,
245,
220,
12,
237,
63,
33,
30,
193,
40,
46,
63,
11,
21,
77,
17,
20,
859,
10,
61,
35,
191,
23,
39,
1207,
10,
109,
97,
14,
95,
6047,
13,
58,
2266,
18,
486,
961,
27,
26,
191,
85,
12,
203,
7662,
22,
275,
10,
183,
13,
37,
32,
1113,
211,
42,
34,
854,
114,
23,
12,
90,
83,
107,
93,
13,
86,
31,
573,
53,
411,
34,
10,
21,
10,
12,
17,
27,
10,
85,
64,
16,
10,
30,
13,
15,
10,
28,
31,
24,
90,
311,
51,
13,
21,
34,
15,
93,
61,
78,
15,
101,
95,
11,
33,
29,
106,
39,
16,
53,
865,
44,
884,
1022,
48,
94,
661,
195,
37,
77,
1179,
23,
23,
76,
10,
147,
153,
22,
251,
137,
128,
302,
23,
380,
27,
118,
19,
36,
38,
14,
213,
31,
22,
15,
15,
90,
22,
40,
11,
116,
182,
79,
69,
12,
22,
14,
25,
19,
985,
11,
27,
12,
794,
156,
31,
54,
46,
13,
131,
12,
24,
17,
11,
856,
12,
11,
13,
13,
3188,
13,
59,
17,
26,
29,
589,
80,
15,
35,
675,
64,
3912,
65,
14,
101,
153,
12,
27,
12,
126,
83,
21,
11,
11,
17,
12,
223,
310,
42,
13,
16,
14,
10,
27,
22,
30,
58,
86,
26,
39,
38,
999,
102,
159,
32,
57,
143,
24,
88,
68,
15,
232,
18,
28,
27,
24,
30,
29,
70,
19,
22,
121,
141,
13,
87,
17,
71,
270,
16,
10,
25,
13,
12,
129,
40,
13,
15,
139,
111,
43,
64,
511,
89,
12,
27,
14,
12,
121,
27,
18,
72,
15,
357,
20,
55,
2679,
15,
10,
33,
320,
1347,
71,
14,
19,
94,
58,
11,
53,
25,
11,
56,
43,
42,
76,
30,
13,
25,
48,
386,
317,
28,
271,
84,
20,
118,
26,
200,
34,
32,
36,
54,
268,
13,
64,
30,
19,
15,
12,
44,
38,
11,
71,
1438,
49,
68,
93,
15,
20,
103,
25,
49,
243,
398,
658,
3757,
86,
86,
19,
28,
232,
43,
10,
104,
12,
18,
11,
20,
19,
25,
40,
18,
12,
78,
60,
36,
22,
88,
928,
38,
169,
22,
133,
491,
14,
28,
12,
160,
33,
243,
10,
24,
95,
976,
406,
701,
427,
304,
455,
78,
50,
16,
43,
264,
10,
135,
33,
53,
105,
21,
17,
16,
13,
26,
74,
106,
65,
15,
422,
24,
712,
153,
39,
10,
178,
98,
44,
29,
110,
103,
36,
31,
59,
550,
74,
10,
29,
16,
33,
121,
32,
55,
10,
29,
10,
29,
32,
100,
305,
27,
172,
10,
22,
185,
199,
39,
38,
180,
22,
36,
15,
24,
19,
171,
1994,
22,
14,
27,
14,
12,
16,
20,
491,
48,
23,
21,
11,
12,
834,
27,
25,
32,
37,
34,
11,
66,
25,
30,
15,
71,
44,
11,
161,
12,
22,
13,
855,
86,
26,
152,
59,
197,
103,
26,
353,
110,
30,
47,
17,
12,
21,
92,
21,
3002,
50,
77,
2355,
12,
1452,
73,
21,
19,
364,
13,
10,
1516,
30,
37,
16,
218,
14,
74,
13,
11,
53,
1590,
45,
282,
15,
73,
32,
15,
13,
148,
1785,
20,
355,
64,
31,
56,
126,
18,
30,
1904,
66,
16,
16,
37,
437,
10,
1677,
13,
31,
12,
33,
76,
12,
23,
24,
56,
36,
29,
15,
11,
2418,
76,
2706,
1080,
66,
26,
49,
106,
283,
41,
167,
16,
46,
517,
13,
19,
16,
11,
157,
27,
41,
11,
12,
123,
3110,
17,
11,
112,
356,
39,
11,
24,
10,
29,
378,
11,
13,
37,
44,
10,
10,
41,
84,
13,
22,
38,
11,
25,
21,
51,
14,
8229,
161,
10,
11,
126,
10,
16,
10,
12,
14,
41,
10,
35,
19,
16,
11,
979,
18,
11,
43,
11,
11,
16,
11,
13,
48,
41,
11,
56,
17,
22,
14,
14,
103,
15,
176,
30,
194,
53,
10,
10,
24,
33,
39,
15,
209,
19,
166,
41,
14,
77,
206,
10,
133,
16,
627,
625,
24,
52,
13,
214,
16,
14,
16,
120,
17,
24,
74,
41,
59,
28,
79,
14,
190,
13,
10,
10,
16,
41,
32,
102,
10,
19,
38,
107,
13,
53,
23,
243,
13,
22,
44,
13,
23,
10,
1459,
99,
35,
430,
52,
19,
8469,
559,
14,
297,
1368,
42,
66,
170,
269,
660,
348,
78,
16,
976,
39,
62,
11,
14,
83,
122,
209,
437,
19,
51,
13,
20,
84,
12,
89,
877,
152,
10,
13,
121,
49,
11,
2485,
22,
18,
12,
34,
12,
19,
14,
77,
263,
41,
175,
16,
11,
10,
51,
1215,
12,
22,
10,
12,
50,
542,
62,
11,
27,
22,
39,
77,
704,
32,
10,
21,
10,
261,
24,
111,
43,
28,
10,
33,
18,
34,
405,
879,
12,
143,
116,
21,
10,
54,
36,
10,
266,
23,
36,
30,
18,
29,
21,
43,
15,
83,
12,
77,
26,
58,
63,
10,
104,
537,
20,
14,
40,
32,
102,
57,
43,
10,
17,
11,
12,
162,
29,
12,
36,
42,
1409,
347,
23,
2805,
14,
29,
157,
30,
56,
30,
143,
42,
79,
13,
19,
417,
20,
11,
15,
30,
18,
467,
28,
832,
11,
208,
260,
1414,
25,
13,
1239,
13,
37,
14,
31,
11,
38,
13,
267,
19,
34,
10,
18,
489,
16,
18,
1603,
85,
1409,
23,
206,
12,
23,
19,
52,
104,
14759,
85,
39,
18,
52,
19,
37,
37,
13,
195,
14,
12,
17,
17,
17,
16,
10,
24,
42,
365,
33,
29,
18,
6316,
21,
30,
25,
76,
10,
11,
86,
24,
19,
232,
86,
12,
10,
12,
11,
35,
23,
2838,
135,
26,
29,
17,
11,
31,
13,
42,
31,
24,
19,
49,
64,
46,
82,
47,
166,
29,
162,
401,
115,
1402,
142,
975,
54,
15,
169,
1417,
900,
56,
94,
128,
14,
119,
796,
12,
138,
86,
10,
11,
20,
12,
196,
593,
60,
14,
73,
30,
31,
91,
108,
260,
30,
21,
183,
30,
12,
34,
13,
11,
12,
31,
21535,
69,
25,
544,
105,
48,
25,
15,
18,
48,
18,
302,
81,
13,
22,
446,
23,
55,
79,
10,
1678,
28,
60,
65,
769,
1033,
3646,
139,
12,
12,
18,
69,
37,
51,
38,
893,
45,
127,
655,
790,
10,
279,
15,
13,
23,
11,
27,
11,
954,
31,
15,
51,
13,
21,
10,
67,
18,
53,
99,
25,
61,
25,
27,
496,
43,
134,
14,
11,
21,
10,
59,
37,
153,
42,
373,
12,
27,
50,
34,
12,
41,
188,
15,
44,
13,
76,
63,
10,
118,
150,
848,
394,
22,
189,
81,
11,
148,
44,
120,
16,
19,
31,
96,
18,
13,
32,
64,
813,
924,
46,
32,
10,
11,
35,
30,
11,
61,
155,
109,
36,
25,
29,
25,
118,
237,
210,
63,
16,
90,
20,
25,
47,
21,
940,
31,
10,
10,
22,
13,
11,
18,
43,
946,
80,
3973,
55,
37,
20,
39,
89,
2480,
32,
19,
34,
17,
57,
11331,
14,
14,
14,
25,
29,
509,
248,
190,
13,
59,
709,
10,
55,
15,
10,
15,
26,
13,
31,
52,
33,
19,
90,
243,
26,
11,
248,
112,
28,
10,
20,
21,
22,
15,
26,
42,
193,
11,
38,
13,
25,
12,
60,
20,
94,
115,
13,
114,
29,
60,
20,
106,
15,
13,
549,
23,
83,
11,
39,
159,
376,
11,
11,
20,
17,
29,
923,
14,
22,
13028,
11,
39,
1504,
696,
249,
19,
17,
117,
147,
28,
13,
27,
11,
11,
21,
26,
182,
20,
73,
464,
177,
22,
18,
18123,
27,
102,
135,
20,
18,
38,
10,
11,
12,
452,
34,
11,
54,
91,
40,
11,
35,
77,
15,
46,
15,
10,
414,
553,
192,
18,
453,
14,
128,
11,
12,
30,
10,
189,
10,
204,
80,
10,
24,
181,
17,
69,
10,
442,
15,
12,
206,
36,
98,
34,
74,
2227,
124,
112,
10,
29,
102,
113,
25,
68,
43,
27,
22,
12,
138,
22,
17,
77,
173,
20,
73,
15,
13,
16,
129,
2333,
1110,
30,
86,
71,
54,
39,
68,
16,
64,
18,
10,
13,
40,
56,
4847,
444,
11,
55,
306,
1503,
52,
69,
64,
143,
12,
61,
19,
14,
143,
24,
12,
12,
26,
293,
461,
40,
853,
11,
79,
3450,
57,
32,
11,
185,
559,
9743,
449,
42,
448,
22,
10,
37,
74,
75,
13,
18,
69,
84,
17,
11,
10,
15,
46,
24,
27,
45,
79,
186,
49,
157,
175,
207,
24,
12,
10,
42,
22,
15,
18,
63,
35,
53,
21,
10,
31,
17,
47,
227,
12,
31,
16,
50,
167,
13,
104,
54,
16,
13,
31,
16,
45,
16,
10,
27,
14,
131,
10,
22,
300,
49,
124,
16,
12,
216,
73,
11,
11,
59,
12,
20,
12,
20,
63,
39,
53,
1514,
114,
11,
40,
632,
71,
43,
11,
25,
61,
148,
10,
24,
32,
15,
20,
63,
14,
74,
107,
20,
424,
25,
369,
43,
48,
18,
19,
10,
13,
16,
13,
16,
15,
48,
76,
11,
22,
146,
160,
31,
53,
25,
99,
103,
10,
24,
400,
14,
28,
374,
27,
1463,
49,
122,
15,
133,
13,
27,
16,
273,
43,
13,
12,
765,
90,
14,
12,
141,
22,
44,
64,
16,
14,
751,
37,
43,
15,
19,
431,
52,
19,
37,
214,
18,
205,
98,
45,
34,
90,
22,
15,
292,
19,
17,
290,
19,
16,
894,
15,
23,
493,
10,
58,
27,
177,
88,
343,
44,
14,
13,
20,
12,
15,
11,
1010,
14,
92,
10,
11,
21,
69,
15,
16,
31,
44,
29,
10,
13,
27,
40,
1596,
230,
28,
34,
31,
128,
64,
120,
26,
34,
33,
15,
35,
51,
170,
10,
10,
235,
25,
12,
30,
143,
11,
12,
20,
16,
21,
191,
17,
44,
2675,
245,
30,
99,
44,
13,
13,
60,
14,
16,
23,
45,
34,
51,
255,
43,
14,
12,
20,
11,
30,
14,
15,
24,
10,
61,
56,
28,
61,
891,
13,
410,
32,
62,
18,
98,
24,
12,
11,
28,
26,
19,
61,
14,
10,
39,
20,
11,
466,
26,
152,
132,
136,
409,
33,
1182,
29671,
207,
78,
88,
11,
15,
36,
31,
110,
241,
11,
355,
134,
151,
84,
35,
26,
43,
17,
743,
116,
221,
37,
414,
22,
289,
10,
24,
199,
10,
26,
19,
67,
152,
45,
22,
274,
31,
66,
486,
151,
10,
15,
12,
52,
22,
91,
23,
156,
51,
31,
1860,
14,
17,
12,
46,
12,
61,
18,
10,
209,
15,
14,
36,
21,
93,
238,
358,
11,
238,
272,
63,
268,
10,
10,
238,
14,
39,
1828,
10,
14,
14,
11,
359,
105,
30,
36,
615,
251,
106,
40,
76,
11,
305,
135,
10,
25,
2043,
20,
402,
1790,
59,
24,
55,
87,
203,
42,
11,
14,
33,
12,
116,
14,
15,
266,
15,
10,
19,
14,
371,
6359,
70,
39,
269,
45,
100,
16,
58,
44,
4358,
6377,
46,
149,
24,
3246,
38,
142,
46,
33,
17,
38,
21,
38,
256,
154,
70,
126,
1596,
716,
27,
26,
164,
328,
27,
91,
90,
25,
20,
345,
406,
146,
370,
482,
49,
86,
173,
11,
93,
175,
124,
240,
149,
161,
353,
41,
115,
234,
97,
86,
20,
2839,
47,
24,
334,
14,
57,
101,
59,
191,
95,
221,
284,
182,
232,
178,
12,
29,
34,
142,
131,
75,
114,
17,
154,
16,
10,
26,
22,
525,
41,
42,
297,
64,
20,
11,
49,
23,
74,
30,
14316,
157,
54,
177,
150,
70,
280,
58,
573,
15,
11,
15,
33,
15,
29,
82,
91,
12,
271,
17,
24,
27,
31,
61,
11,
13,
16,
36,
4927,
244,
11,
21,
43,
38,
11,
59,
34,
14,
73,
48,
14,
19,
15,
6647,
129,
344,
2644,
29,
11,
11,
36,
84,
100,
21,
15,
38,
55,
184,
64,
16,
244,
420,
55,
824,
35,
148,
50,
10486,
209,
559,
396,
446,
137,
16040,
137,
910,
43,
51,
19,
10,
11,
30,
37,
385,
16,
89,
15,
13,
13,
124,
147,
18,
160,
13,
323,
65,
11,
27,
33,
18593,
25,
118,
101,
256,
18,
17,
12,
67,
27,
22,
12,
366,
120,
18,
2642,
2354,
57,
11,
110,
12,
59,
140,
45,
27,
11,
121,
48,
47,
30,
72,
75,
36,
90,
17,
28,
76,
77,
13,
21,
99,
79,
449,
20,
67,
11,
58,
25,
16,
56,
14,
21,
19,
86,
112,
247,
14,
48,
74,
36,
13,
139,
55,
73,
33,
7651,
13,
20,
656,
363,
72,
13,
90,
32,
12,
13,
75,
37,
92,
3427,
70,
27,
116,
70,
17,
1517,
1155,
13156,
107,
10,
25,
104,
97,
38,
15,
20,
104,
137,
41,
57,
106,
33,
184,
70,
10,
933,
223,
17,
636,
14,
179,
100,
48,
49,
42,
155,
27,
212,
15,
66,
106,
72,
74,
22220,
7191,
516,
34,
10,
25,
17,
653,
30,
31,
31,
43,
43,
42,
975,
104,
14,
103,
64,
23,
35,
255,
243,
11,
23,
100,
127,
73,
10,
43,
42,
22,
42,
74,
27,
16,
271,
11,
1663,
36,
376,
24,
85,
11,
128,
18,
10,
19,
13,
16,
13,
74,
44,
57,
25,
518,
125,
81,
15,
55,
11225,
11,
29,
22,
15,
530,
28,
12,
368,
16,
3601,
10,
25,
76,
16,
53,
1217,
460,
411,
24,
87,
23,
13,
29,
18574,
37,
99,
42,
81,
39,
30,
37,
28,
36,
31,
374,
16,
30,
142,
13,
33,
1376,
1116,
946,
11,
78,
11,
25,
47,
37,
12,
38,
255,
11,
58,
186,
46,
15,
581,
73,
870,
20,
272,
31,
1215,
18,
38,
82,
15,
16,
778,
17,
22,
18,
18,
11,
15,
12,
12,
18,
11,
15,
17,
17,
13,
17,
18,
15,
20,
20,
13,
15,
16,
11,
13,
17,
21,
11,
15,
22,
16,
14,
20,
12,
15,
23,
14,
11,
18,
17,
13,
10,
16,
15,
10,
14,
11,
14,
14,
18,
14,
17,
16,
17,
17,
18,
15,
15,
18,
12,
18,
12,
14,
14,
23,
13,
11,
15,
14,
17,
17,
11,
10,
12,
10,
14,
18,
21,
10,
19,
20,
17,
41,
11,
18,
17,
18,
12,
15,
13,
23,
19,
19,
15,
19,
18,
17,
15,
16,
12,
12,
15,
12,
12,
14,
11,
11,
19,
10,
20,
11,
15,
16,
12,
30,
13,
18,
17,
21,
14,
12,
22,
18,
11,
10,
18,
15,
15,
10,
10,
17,
16,
23,
10,
23,
16,
15,
16,
18,
15,
17,
18,
13,
12,
13,
10,
15,
14,
13,
14,
19,
17,
25,
13,
24,
16,
20,
12,
11,
21,
15,
13,
16,
18,
17,
11,
17,
12,
16,
18,
13,
15,
11,
18,
18,
14,
19,
14,
13,
14,
18,
13,
12,
12,
16,
12,
11,
15,
19,
18,
14,
16,
16,
16,
15,
13,
10,
11,
16,
16,
14,
11,
15,
13,
10,
10,
18,
13,
19,
19,
10,
17,
10,
15,
11,
12,
14,
11,
17,
11,
12,
15,
11,
14,
14,
15,
16,
12,
19,
11,
15,
21,
54,
11,
12,
10,
23,
19,
20,
19,
18,
44,
15,
15,
12,
13,
11,
12,
15,
16,
11,
14,
18,
14,
15,
17,
20,
17,
10,
25,
30,
13,
21,
15,
16,
19,
16,
29,
19,
23,
19,
16,
11,
10,
14,
14,
19,
22,
15,
23,
18,
17,
23,
16,
10,
18,
16,
17,
18,
20,
25,
23,
19,
22,
14,
18,
12,
12,
11,
18,
15,
21,
21,
24,
12,
13,
17,
18,
15,
20,
15,
11,
17,
13,
14,
14,
14,
14,
22,
11,
20,
20,
26,
12,
13,
10,
10,
13,
10,
14,
12,
22,
10,
10,
14,
10,
15,
10,
26,
14,
13,
11,
18,
15,
12,
10,
28,
27,
11,
10,
18,
14,
41,
20,
10,
22,
20,
17,
21,
23,
26,
37,
17,
28,
14,
15,
14,
24,
23,
17,
15,
18,
17,
20,
24,
18,
21,
30,
17,
13,
14,
14,
18,
20,
15,
17,
11,
20,
12,
15,
10,
17,
14,
11,
19,
16,
18,
19,
14,
21,
25,
17,
17,
19,
14,
13,
16,
14,
14,
18,
25,
16,
16,
31,
43,
17,
23,
16,
13,
14,
16,
15,
14,
13,
13,
19,
20,
16,
18,
14,
14,
23,
17,
28,
18,
14,
13,
14,
11,
14,
20,
12,
13,
25,
17,
15,
23,
15,
16,
14,
19,
16,
19,
18,
17,
11,
16,
18,
16,
14,
23,
15,
12,
16,
18,
16,
17,
17,
12,
13,
12,
14,
16,
13,
13,
20,
13,
12,
21,
11,
20,
20,
14,
12,
22,
17,
14,
27,
15,
16,
12,
14,
12,
14,
10,
16,
15,
20,
15,
16,
16,
13,
17,
18,
13,
13,
16,
19,
11,
17,
18,
17,
19,
14,
15,
14,
18,
13,
17,
11,
23,
18,
29,
20,
19,
25,
18,
16,
19,
14,
18,
26,
13,
11,
16,
18,
17,
18,
21,
17,
20,
23,
22,
11,
18,
11,
19,
16,
28,
12,
14,
13,
15,
15,
12,
23,
27,
22,
12,
22,
22,
21,
15,
15,
14,
17,
23,
16,
14,
15,
19,
16,
15,
19,
19,
13,
22,
19,
20,
13,
14,
10,
17,
18,
15,
26,
18,
22,
13,
14,
12,
26,
15,
20,
22,
21,
17,
17,
15,
29,
11,
21,
20,
18,
17,
14,
16,
13,
13,
15,
13,
16,
67,
22,
34,
24,
24,
27,
18,
25,
30,
21,
37,
33,
26,
17,
24,
17,
29,
24,
20,
17,
21,
20,
14,
23,
23,
26,
25,
20,
22,
24,
15,
25,
23,
31,
27,
24,
26,
19,
19,
23,
21,
26,
21,
22,
19,
14,
21,
18,
17,
18,
23,
18,
23,
27,
11,
13,
19,
22,
20,
13,
21,
21,
17,
20,
20,
22,
19,
28,
30,
20,
24,
21,
20,
22,
31,
20,
28,
22,
30,
29,
25,
27,
29,
27,
30,
26,
21,
25,
23,
18,
11,
22,
16,
481,
10,
17,
18,
13,
13,
10,
13,
14,
16,
12,
18,
10,
11,
14,
18,
10,
10,
16,
14,
12,
26,
12,
10,
19,
18,
18,
16,
12,
11,
15,
12,
20,
11,
10,
17,
12,
15,
17,
13,
12,
14,
15,
19,
12,
15,
11,
12,
16,
10,
13,
15,
10,
16,
11,
10,
11,
12,
12,
17,
15,
10,
10,
14,
11,
10,
11,
14,
16,
17,
10,
15,
16,
15,
15,
12,
13,
34,
11,
14,
19,
16,
15,
14,
11,
17,
20,
11,
14,
13,
14,
10,
17,
10,
14,
14,
10,
10,
16,
14,
10,
10,
15,
10,
15,
11,
19,
13,
11,
16,
16,
16,
12,
14,
11,
12,
11,
13,
12,
14,
11,
18,
14,
13,
13,
11,
10,
13,
17,
15,
12,
11,
18,
19,
15,
17,
14,
13,
17,
12,
16,
14,
11,
19,
12,
15,
15,
11,
14,
14,
17,
11,
14,
14,
10,
18,
11,
13,
13,
21,
10,
15,
13,
12,
11,
18,
14,
18,
15,
21,
14,
16,
12,
10,
11,
12,
15,
14,
11,
23,
18,
13,
13,
11,
12,
14,
12,
14,
10,
14,
10,
10,
11,
14,
15,
19,
12,
11,
15,
13,
11,
15,
14,
17,
19,
21,
12,
17,
15,
23,
10,
14,
12,
15,
16,
16,
16,
20,
21,
18,
22,
20,
17,
15,
19,
17,
14,
13,
12,
15,
19,
18,
11,
13,
16,
17,
16,
14,
11,
22,
17,
17,
16,
16,
17,
20,
16,
14,
19,
15,
21,
15,
13,
19,
15,
13,
23,
21,
14,
13,
17,
10,
22,
13,
21,
13,
11,
18,
15,
14,
19,
14,
14,
18,
11,
17,
12,
12,
20,
14,
16,
10,
18,
15,
13,
12,
14,
10,
13,
22,
11,
12,
17,
13,
10,
10,
12,
11,
12,
17,
12,
11,
14,
12,
17,
10,
12,
12,
11,
11,
16,
12,
15,
14,
11,
14,
10,
10,
18,
14,
18,
10,
14,
12,
12,
12,
11,
16,
12,
10,
17,
15,
13,
14,
12,
10,
10,
11,
11,
18,
10,
11,
12,
12,
12,
17,
13,
11,
10,
10,
11,
19,
12,
12,
11,
11,
16,
10,
11,
11,
17,
11,
11,
12,
11,
12,
19,
14,
11,
14,
11,
10,
10,
11,
11,
11,
11,
15,
10,
11,
10,
11,
10,
15,
12,
11,
14,
13,
13,
15,
12,
13,
11,
11,
18,
13,
10,
11,
12,
10,
11,
10,
12,
10,
10,
10,
13,
10,
11,
15,
13,
12,
11,
12,
10,
13,
12,
12,
18,
13,
12,
11,
14,
10,
15,
12,
10,
13,
17,
10,
12,
11,
14,
12,
13,
15,
11,
15,
14,
11,
11,
10,
11,
13,
14,
12,
10,
14,
13,
12,
14,
15,
11,
16,
15,
17,
15,
13,
11,
13,
10,
16,
14,
11,
16,
12,
19,
11,
14,
18,
13,
11,
15,
19,
10,
12,
12,
17,
20,
13,
14,
12,
11,
14,
11,
10,
13,
14,
20,
17,
11,
19,
11,
12,
14,
17,
15,
12,
15,
10,
14,
11,
10,
11,
11,
13,
11,
11,
11,
12,
12,
10,
11,
11,
13,
10,
12,
10,
13,
12,
10,
11,
14,
13,
13,
10,
11,
10,
14,
10,
11,
15,
10,
11,
12,
13,
10,
12,
12,
10,
11,
10,
12,
11,
16,
16,
14,
10,
11,
10,
10,
12,
12,
12,
14,
10,
16,
15,
10,
11,
16,
14,
13,
10,
14,
13,
15,
11,
11,
11,
11,
15,
15,
16,
16,
17,
12,
13,
17,
11,
17,
10,
10,
11,
13,
12,
15,
11,
12,
12,
10,
12,
10,
16,
11,
14,
10,
5200,
28,
29,
10,
11,
28,
12,
10,
26,
15,
14,
25,
28,
24,
26,
25,
33,
21,
35,
32,
22,
26,
19,
12,
10,
14,
81,
18,
14,
15,
4511,
604,
24,
67,
42,
47,
13,
13,
10,
11,
18,
18,
19,
20,
18,
18,
12,
11,
54,
64,
11,
10,
13,
10,
13,
20,
15,
14,
15,
14,
10,
14,
12,
15,
11,
68,
16,
18,
10,
10,
11,
11,
11,
10,
94,
61,
10,
318,
25,
12,
13,
10,
11,
13,
13,
22,
13,
15,
14,
22,
11,
13,
17,
14,
12,
14,
23,
37,
36,
36,
52,
64,
83,
57,
64,
14,
28,
14,
25,
25,
30,
20,
62,
55,
56,
71,
48,
29,
23,
41,
16,
21,
13,
12,
12,
16,
25,
16,
36,
30,
41,
39,
41,
59,
60,
91,
14,
11,
17,
20,
10,
20,
20,
27,
10,
80,
46,
60,
44,
42,
21,
14,
11,
12,
14,
12,
10,
17,
11,
11,
27,
30,
24,
32,
31,
39,
55,
77,
62,
76,
91,
74,
55,
38,
45,
26,
19,
13,
13,
11,
23,
21,
28,
12,
11,
11,
18,
12,
10,
12,
13,
11,
16,
10,
26,
20,
20,
40,
35,
42,
53,
57,
81,
81,
20,
12,
16,
13,
14,
29,
28,
13,
65,
49,
53,
62,
42,
39,
30,
10,
10,
13,
12,
15,
17,
10,
11,
15,
22,
26,
23,
41,
42,
52,
67,
76,
56,
80,
69,
52,
38,
36,
37,
25,
14,
24,
22,
15,
22,
19,
18,
15,
13,
12,
16,
10,
10,
12,
15,
19,
24,
22,
31,
30,
40,
65,
71,
70,
60,
63,
76,
56,
53,
33,
35,
16,
15,
15,
12,
10,
19,
19,
11,
10,
10,
13,
13,
15,
18,
13,
12,
11,
24,
23,
23,
24,
43,
42,
61,
59,
66,
73,
70,
59,
55,
41,
39,
33,
19,
17,
11,
23,
12,
21,
13,
10,
12,
11,
16,
11,
14,
13,
14,
16,
23,
21,
17,
28,
28,
45,
42,
56,
72,
66,
44,
55,
48,
29,
43,
25,
19,
20,
18,
25,
24,
18,
14,
14,
10,
10,
56,
15,
16,
13,
11,
10,
12,
12,
13,
17,
26,
30,
28,
29,
49,
58,
60,
81,
83,
90,
104,
87,
68,
56,
53,
34,
31,
12,
11,
16,
13,
10,
13,
32,
19,
35,
21,
34,
21,
19,
11,
11,
10,
10,
11,
16,
28,
10,
12,
11,
11,
11,
16,
30,
21,
26,
28,
48,
59,
62,
78,
85,
77,
18,
11,
16,
28,
19,
33,
24,
28,
22,
64,
68,
60,
48,
33,
36,
21,
13,
27,
19,
10,
18,
11,
14,
15,
26,
15,
12,
23,
12,
13,
10,
11,
15,
18,
13,
16,
18,
29,
22,
40,
28,
33,
54,
71,
66,
87,
64,
14,
12,
11,
29,
10,
27,
34,
24,
17,
79,
74,
72,
56,
49,
32,
17,
14,
37,
17,
16,
13,
10,
11,
19,
17,
17,
17,
18,
14,
18,
16,
27,
37,
38,
44,
36,
32,
32,
38,
43,
38,
29,
19,
18,
13,
10,
15,
15,
17,
14,
13,
18,
14,
19,
25,
16,
17,
19,
23,
17,
14,
10,
11,
16,
11,
690,
15,
29,
13,
71,
84,
61,
46,
42,
35,
30,
17,
16,
30,
20,
18,
31,
31,
41,
52,
67,
74,
12,
18,
22,
11,
15,
23,
12,
11,
20,
10,
15,
12,
10,
10,
19,
23,
24,
29,
40,
62,
56,
66,
82,
65,
22,
11,
11,
18,
16,
19,
21,
19,
18,
79,
61,
78,
48,
36,
46,
21,
17,
13,
13,
12,
20,
10,
10,
13,
15,
16,
12,
24,
16,
31,
28,
24,
57,
65,
77,
65,
90,
87,
65,
70,
45,
30,
32,
17,
19,
11,
10,
16,
13,
10,
35,
21,
10,
14,
11,
13,
10,
10,
10,
11,
10,
12,
18,
38,
13,
15,
26,
35,
38,
37,
43,
73,
78,
73,
75,
61,
59,
59,
47,
30,
14,
14,
17,
10,
13,
16,
19,
29,
11,
12,
11,
11,
21,
16,
18,
22,
15,
22,
20,
33,
32,
37,
49,
38,
67,
77,
90,
77,
72,
67,
46,
50,
39,
22,
14,
12,
16,
15,
23,
17,
19,
13,
13,
12,
11,
13,
12,
13,
14,
19,
15,
12,
16,
13,
24,
22,
36,
33,
44,
46,
68,
84,
78,
84,
28,
16,
26,
21,
29,
39,
31,
11,
83,
81,
56,
65,
25,
33,
13,
13,
16,
14,
15,
13,
13,
11,
15,
11,
22,
13,
18,
23,
27,
28,
33,
52,
59,
70,
51,
80,
96,
11,
12,
92,
75,
56,
28,
56,
44,
22,
11,
13,
18,
18,
17,
15,
11,
24,
20,
21,
20,
20,
14,
14,
14,
17,
19,
22,
10,
11,
12,
15,
21,
19,
22,
36,
34,
29,
43,
49,
44,
35,
38,
52,
25,
16,
20,
12,
12,
10,
18,
13,
11,
12,
12,
10,
10,
13,
13,
11,
12,
14,
17,
19,
10,
16,
10,
11,
18,
11,
10,
11,
457,
70,
14,
13,
14,
51,
12,
10,
10,
2847,
10,
10,
23,
13,
14,
11,
10,
10,
27,
11,
23,
23,
23,
20,
21,
19,
26,
25,
31,
21,
12,
10,
10,
12,
18,
11,
14,
151,
33,
15,
23,
10,
10,
65,
11,
19,
16,
17,
23,
17,
27,
14,
20,
24,
18,
14,
18,
11,
11,
343,
34,
736,
12,
29,
104,
13,
37,
18,
13,
404,
58,
10,
41,
14,
11,
11,
36,
10,
14,
11,
13,
14,
15,
21,
22,
19,
23,
17,
22,
22,
12,
12,
39,
16,
17,
20,
24,
12,
14,
13,
12,
15,
26,
17,
25,
23,
21,
17,
24,
16,
16,
27,
26,
16,
22,
16,
20,
20,
11,
289,
39,
24,
19,
19,
19,
21,
13,
11,
13,
11,
19,
17,
19,
186,
31,
10,
55,
195,
77,
138,
22,
15,
22,
19,
26,
11,
12,
22,
18,
22,
26,
14,
10,
108,
12,
11,
31,
996,
11,
21,
17,
35,
421,
29,
27,
14,
80,
13,
27,
662,
26,
95,
70,
12,
36,
45,
17,
12,
22,
99,
13,
1267,
45,
40,
46,
15,
15,
14,
16,
165,
12,
22,
117,
102,
100,
53,
675,
69,
400,
79,
21,
12,
14,
58,
84,
1185,
12,
93,
47,
363,
11,
51,
23,
17,
14,
81,
13,
13,
13,
12,
126,
15,
58,
14,
15,
84,
31,
10,
12,
68,
27,
13,
14,
45,
36,
11,
58,
231,
612,
172,
141,
16,
13,
412,
38,
3079,
305,
11,
191,
19,
127,
11,
20,
10,
43,
65,
31,
36,
19,
16,
95,
22,
128,
49,
19,
27,
10,
10,
40,
162,
10,
18,
179,
267,
11,
128,
58,
519,
14,
50,
15,
17,
40,
12,
13,
59,
21,
35,
19,
126,
184,
11,
20,
74,
1661,
32,
28,
11,
74,
89,
13,
11,
10,
12,
15,
20,
23,
37,
18,
350,
84,
17,
91,
21,
21,
20,
105,
35,
250,
71,
14,
19,
87,
530,
132,
15,
18,
19,
13,
30,
155,
12,
13,
29,
55,
1181,
18,
17,
19,
11,
48,
59,
38,
10,
55,
16,
11,
11,
54,
10,
12,
161,
31,
87,
24,
28,
24,
10,
145,
23,
13,
47,
1650,
32,
43,
13,
13,
20,
50,
322,
205,
10,
17,
14,
390,
11,
915,
21,
12,
11,
30,
36,
36,
471,
146,
23,
239,
103,
15,
307,
11,
31,
76,
19,
17,
14,
18,
27,
21,
20,
18,
10,
18,
10,
18,
13,
41,
22,
52,
22,
29,
14,
72,
12,
93,
13,
206,
42,
19,
19,
144,
638,
17,
16,
16,
116,
26,
24,
71,
62,
23,
26,
10,
39,
10,
14,
321,
13,
45,
17,
78,
2800,
17,
450,
10,
10,
127,
121,
26,
24,
29,
28,
41,
199,
2846,
25,
72,
11,
33,
184,
172,
277,
13,
116,
18,
28,
28,
10,
22,
192,
21,
16,
12,
258,
44,
158,
50,
887,
21,
104,
46,
20,
129,
161,
196,
50,
20,
14,
15,
3877,
35,
51,
53,
1548,
15,
22,
13,
87,
12,
30,
17,
97,
20,
17,
10,
105,
13,
62,
25,
23,
13,
170,
11,
22,
235,
47,
10,
135,
12,
98,
1944,
13,
28,
12,
33,
19,
36,
111,
23,
76,
23,
16,
12,
57,
18,
10,
21,
34,
14,
395,
176,
49,
10,
65,
47,
71,
32,
12,
16,
19,
82,
711,
297,
30,
3028,
2492,
30,
16,
17,
10,
25,
16,
10,
219,
17,
20,
10,
270,
60,
31,
31,
305,
15,
15,
5491,
14,
52,
11,
10,
13,
311,
16,
28,
16,
32,
113,
79,
22,
29,
18,
27,
28,
10,
13,
33,
28,
34,
87,
63,
26,
42,
29,
29,
40,
17,
11,
100,
82,
13,
21,
177,
19,
53,
60,
11,
13,
11,
12,
55,
62,
16,
34,
18,
389,
292,
11,
10,
10,
1403,
22,
892,
30,
385,
13,
57,
53,
19,
18,
14,
115,
130,
19,
280,
10,
73,
248,
45,
18,
251,
25,
73,
29,
15,
45,
22,
13,
102,
26,
39,
26,
13,
49,
400,
72,
41,
48,
14,
18,
239,
749,
13,
215,
12,
36,
10,
16,
19,
222,
18,
50,
22,
56,
15,
16,
12,
46,
315,
11,
622,
23,
20,
18,
30,
18,
31,
81,
152,
395,
24,
442,
9454,
38,
30,
15,
22,
70,
48,
99,
49,
492,
12,
11,
13,
31,
80,
41,
433,
12,
75,
13,
21,
67,
53,
35,
4698,
112,
49,
12,
419,
23,
145,
42,
5007,
364,
22,
42,
132,
131,
60,
21,
19,
29,
12,
17,
10,
143,
22,
57,
28,
63,
55,
62,
10,
15,
20,
45,
61,
27,
38,
74,
14,
31,
24,
12,
136,
12,
921,
63,
32,
60,
11,
60,
12,
27,
24,
9532,
69,
15,
14,
19,
18,
107,
25,
71,
11,
31,
61,
32,
21,
17,
10,
11,
31,
10,
31,
52,
62,
12,
10,
16,
20,
32,
19,
25,
26,
294,
13,
11,
49,
373,
54,
19,
14,
31,
119,
609,
15,
28,
11,
337,
43,
11,
344,
10,
5254,
80,
11,
14,
69,
423,
30,
75,
15,
13,
10,
11,
145,
17,
25,
33,
80,
126,
47,
10,
73,
10,
14,
139,
30,
40,
67,
17,
17,
15,
284,
10,
17,
1130,
291,
114,
51,
263,
209,
22,
73,
144,
30,
12,
27,
267,
12,
82,
10,
11,
39,
15,
13,
987,
249,
13,
13,
25,
42,
11,
15,
2518,
13,
22,
13,
37,
18,
38,
12,
38,
17,
35,
26,
99,
223,
30,
67,
28,
69,
30,
136,
11,
13,
35,
1000,
10,
13,
32,
66,
35,
194,
13,
13,
75,
13,
27,
210,
19,
67,
30,
30,
15,
16,
12,
21,
33,
55,
74,
29,
29,
18,
537,
30,
17,
70,
67,
10,
17,
117,
20,
47,
58,
174,
41,
40,
68,
49,
114,
29,
109,
12,
100,
20,
738,
14,
198,
17,
24,
22,
33,
73,
183,
21,
167,
11,
70,
34,
15,
34,
14,
24,
14,
21,
13,
23,
74,
36,
10,
21,
55,
13,
176,
13,
19,
16,
144,
72,
72,
15,
11,
21,
32,
118,
29,
214,
292,
11,
47,
15,
12,
17,
137,
13,
635,
62,
15,
19,
168,
17,
11,
65,
242,
30,
31,
50,
34,
26,
283,
47,
34,
433,
103,
39,
40,
203,
11,
11,
16,
41,
53,
479,
52,
13,
10,
45,
400,
10,
58,
22,
40,
49,
132,
13,
39,
11,
343,
10,
26,
11,
1898,
68,
18,
82,
221,
34,
12,
134,
98,
174,
1127,
16,
115,
11,
512,
84,
49,
26,
10,
14,
11,
20,
11,
13,
71,
15,
98,
86,
17,
142,
58,
70,
32,
12,
81,
10,
55,
29,
10,
213,
570,
5344,
18,
113,
36,
13,
11,
12,
23,
15,
41,
16,
814,
12,
24,
110,
13,
12,
14,
10,
28,
27,
37,
24,
27,
35,
35,
28,
35,
30,
28,
23,
10,
11,
10,
10,
52,
14,
12,
38,
268,
22,
15,
23,
24,
16,
10,
10,
22,
24,
13,
15,
19,
700,
350,
15,
16,
14,
19,
13,
19,
124,
11,
72,
11,
99,
20,
48,
11,
12,
11,
12,
16,
18,
19,
18,
11,
14,
17,
12,
10,
11,
21,
18,
13,
17,
12,
13,
20,
10,
11,
348,
24,
14,
16,
13,
16,
30,
13,
22,
20,
23,
27,
16,
22,
17,
2509,
23,
18,
11,
40,
533,
22,
14,
17,
15,
16,
15,
14,
14,
17,
19,
15,
16,
27,
17,
32,
25,
14,
21,
21,
108,
10,
636,
34,
10,
22,
24,
15,
16,
19,
17,
30,
28,
16,
26,
306,
12,
26,
12,
10,
10,
11,
18,
18,
18,
18,
16,
16,
22,
15,
13,
23,
10,
16,
44,
11,
78,
11,
408,
44,
15,
65,
10,
12,
16,
13,
12,
23,
23,
22,
22,
19,
20,
25,
12,
12,
14,
23,
5149,
11,
82,
11,
18,
453,
13,
23,
59,
66,
13,
510,
12,
16,
26,
36,
17,
20,
20,
13,
125,
12,
14,
12,
17,
20,
27,
12,
23,
19,
15,
26,
17,
14,
472,
10,
35,
255,
27,
16,
11,
12,
41,
3262,
11,
11,
25,
12,
11,
14,
17,
22,
14,
23,
23,
30,
30,
33,
38,
31,
29,
23,
21,
13,
16,
10,
637,
26,
11,
11,
14,
48,
16,
31,
32,
16,
11,
13,
11,
13,
13,
21,
12,
20,
15,
20,
38,
23,
16,
15,
12,
21,
12,
26,
107,
27,
10,
12,
27,
26,
10,
21,
15,
19,
64,
20,
21,
13,
13,
22,
10,
10,
15,
10,
13,
15,
15,
19,
16,
11,
11,
12,
22,
19,
22,
18,
24,
14,
10,
12,
13,
17,
22,
10,
12,
10,
10,
18,
14,
12,
13,
19,
11,
23,
10,
54,
16,
14,
16,
12,
12,
21,
23,
22,
11,
11,
25,
20,
11,
11,
13,
15,
13,
19,
24,
10,
12,
19,
16,
15,
16,
23,
24,
17,
21,
15,
24,
11,
23,
15,
18,
15,
14,
19,
19,
23,
20,
15,
11,
15,
12,
11,
12,
11,
10,
14,
18,
11,
21,
12,
15,
16,
11,
15,
10,
44,
10,
13,
12,
16,
10,
18,
16,
13,
21,
18,
10,
12,
24,
20,
16,
11,
15,
40,
24,
55,
19,
52,
21,
33,
4399,
27,
46,
13,
13,
30,
30,
30,
30,
28,
10,
18,
124,
185,
21,
14,
27,
30,
11,
11,
15,
32,
204,
11,
80,
424,
779,
26,
10,
14,
30,
13,
20,
13,
198,
10,
13,
10,
12,
173,
20,
25,
34,
16,
87,
75,
17,
18,
46,
22,
13,
15,
34,
14,
13,
541,
118,
2369,
18,
165,
47,
15,
51,
117,
642,
53,
18,
20,
17,
51,
63,
30,
30,
211,
26,
129,
181,
13,
130,
26,
30,
271,
10,
35,
79,
14,
54,
178,
19,
107,
15,
11,
10,
72,
72,
13,
12090,
12,
91,
10,
10,
31,
31,
31,
20,
187,
248,
157,
212,
7798,
13,
27,
18,
24,
26,
28,
35,
29,
10,
597,
20,
10,
14,
17,
15,
27,
24,
31,
24,
22,
26,
27,
14,
17,
10,
18,
10,
13,
16,
39,
3184,
13,
13,
10,
11,
11,
12,
18,
27,
26,
13,
29,
13,
16,
138,
11,
34,
29,
13,
14530,
13,
12,
11,
14,
10,
17,
11,
26,
16,
17,
18,
17,
10,
15,
11,
10,
10,
15,
13,
17,
17,
21,
22,
14,
15,
12,
20,
12,
17,
12,
21,
10,
11,
10,
15,
12,
20,
19,
20,
14,
18,
14,
10,
12,
11,
25,
11,
12,
14,
15,
13,
21,
20,
15,
23,
11,
21,
15,
16,
13,
14,
38,
131,
21,
24,
22,
12,
15,
15,
16,
20,
19,
18,
13,
13,
19,
13,
11,
3507,
10,
21,
27,
13,
12,
89,
78,
10,
2095,
17,
178,
10,
11,
134,
13,
13,
12,
11,
27,
13,
26,
22,
22,
24,
18,
17,
16,
16,
13,
14,
13,
10,
11,
738,
13,
13,
13,
19,
18,
2223,
19,
24,
22,
32,
17,
14,
12,
14,
18,
11,
23,
24,
30,
20,
28,
19,
23,
19,
17,
13,
15,
12,
654,
31,
18,
43,
10,
64,
24,
19,
50,
12,
10,
14,
48,
11,
14,
18,
21,
12,
13,
13,
19,
15,
15,
19,
16,
14,
10,
28,
13,
19,
22,
20,
10,
12,
19,
14,
20,
19,
13,
20,
16,
10,
18,
10,
10,
16,
15,
16,
23,
33,
10,
12,
16,
18,
12,
14,
18,
26,
20,
14,
24,
13,
37,
27,
10,
14,
14,
11,
17,
18,
10,
18,
25,
15,
20,
21,
17,
11,
12,
12,
10,
16,
14,
10,
24,
16,
11,
15,
19,
18,
12,
13,
12,
19,
14,
18,
20,
24,
19,
23,
27,
15,
14,
16,
16,
11,
10,
11,
13,
22,
61,
33,
13,
80,
12,
11,
104,
18,
126,
677,
31,
13,
26,
27,
27,
37,
7444,
17,
18,
15,
226,
17,
12,
21,
92,
13,
71,
17,
12,
774,
71,
559,
81,
885,
209,
14,
36,
22,
10,
81,
19,
33,
24,
70,
492,
37,
16,
120,
16,
12,
86,
13,
18,
25,
25,
108,
658,
21839,
76,
11,
31,
31,
31,
11,
78,
1776,
47,
110,
21,
50,
11,
23,
35,
14,
71,
61,
15,
118,
167,
30,
10,
76,
32,
60,
106,
22,
12,
12,
10,
10,
11,
17,
22,
22,
83,
12,
19,
17,
15,
35,
23,
13,
14,
16,
19,
13,
10,
24,
15,
220,
107,
40,
83,
13,
10,
46,
12,
27,
36,
40,
15,
11,
42,
12,
11,
31,
51,
10,
14,
20,
13,
14,
12,
38,
12,
51,
16,
41,
13,
10,
15,
12,
10,
42,
10,
29,
31,
13,
11,
17,
39,
12,
11,
10,
34,
12,
10,
11,
19,
12,
18,
15,
13,
10,
10,
15,
12,
15,
100,
10,
11,
43,
67,
12,
10,
11,
59,
18,
49,
65,
13,
32,
10,
10,
12,
11,
10,
36,
10,
11,
10,
44,
13,
31,
23943,
147,
266,
287,
299,
175,
450,
65,
108,
85,
23,
11,
19,
22,
27,
29,
13,
21,
30,
13,
152,
33,
346,
48,
38,
12,
243,
11,
30,
32,
39,
13,
19,
30,
32,
18,
12,
13,
57,
61,
10,
655,
18,
22,
19,
275,
19,
28,
61,
145,
78,
17,
17,
12,
13,
29,
30,
21,
30,
26,
12,
10,
11,
11,
13,
28,
17,
18,
46,
11,
108,
12,
19,
13,
11,
50,
75,
14,
18,
15,
10,
18,
302,
16,
23,
22,
14,
49,
297,
14,
33,
20,
49,
10,
50,
66,
13,
12,
18,
21,
51,
17,
12,
13,
11,
20,
10,
59,
30,
21,
18,
14,
14,
24,
14,
14,
10,
11,
13,
17,
22,
32,
12,
23,
23,
12,
15,
21,
15,
13,
16,
12,
10,
11,
15,
14,
14,
15,
20,
19,
14,
18,
20,
17,
14,
13,
11,
12,
12,
13,
15,
15,
13,
10,
11,
12,
13,
15,
15,
16,
12,
17,
13,
20,
16,
17,
15,
11,
16,
12,
10,
13,
32,
11,
18,
12,
11,
12,
12,
27,
17,
18,
15,
14,
10,
36,
13,
12,
13,
22,
11,
25,
13,
18,
10,
24,
10,
19,
34,
10,
11,
28,
10,
13,
11,
26,
11,
17,
11,
29,
10,
14,
21,
14,
12,
13,
23,
13,
13,
11,
37,
1405,
13,
36,
30,
90,
11,
11,
10,
11,
18,
10,
10,
12,
11,
10,
12,
19,
12,
24,
13,
21,
27,
31,
19,
17,
17,
19,
27,
11,
17,
15,
14,
177,
39,
11,
20,
88,
69,
31,
23,
13,
17,
11,
16,
11,
16,
14,
11,
11,
12,
15,
15,
15,
12,
24,
12,
12,
14,
12,
12,
15,
12,
11,
10,
10,
10,
89,
12,
20,
27,
32,
24,
26,
10,
170,
12,
11,
11,
13,
13,
11,
13,
12,
12,
21,
22,
16,
23,
25,
27,
36,
30,
41,
13,
10,
10,
41,
13,
11,
69,
247,
111,
28,
46,
54,
46,
28,
39,
12,
25,
14,
14,
13,
18,
12,
11,
15,
10,
21,
12,
50,
12,
12,
16,
13,
16,
18,
14,
10,
20,
22,
13,
12,
10,
15,
23,
14,
17,
14,
11,
18,
10,
15,
21,
11,
12,
21,
15,
12,
17,
13,
13,
13,
15,
12,
12,
13,
16,
13,
10,
11,
11,
14,
24,
11,
11,
10,
12,
25,
10,
10,
13,
13,
25,
50,
12,
11,
11,
10,
10,
21,
10,
10,
15,
20,
10,
11,
13,
11,
12,
11,
13,
10,
12,
28,
13,
10,
12,
14,
14,
45,
12,
10,
14,
39,
10,
11,
10,
42,
11,
12,
11,
36,
11,
45,
12,
47,
10,
11,
14,
10,
14,
14,
22,
22,
20,
22,
28,
24,
39,
31,
31,
31,
17,
14,
14,
15,
12,
10,
11,
17,
13,
10,
18,
16,
14,
23,
22,
25,
23,
42,
34,
28,
33,
35,
26,
27,
17,
12,
10,
17,
14,
26,
18,
30,
18,
23,
37,
32,
27,
25,
13,
11,
10,
15,
13,
20,
23,
32,
37,
31,
36,
36,
35,
26,
26,
19,
18,
10,
128,
36,
12,
11,
13,
13,
23,
15,
16,
26,
28,
26,
30,
29,
18,
19,
13,
20,
10,
27,
21,
24,
16,
18,
12,
11,
10,
11,
15,
20,
16,
13,
19,
27,
13,
12,
12,
10,
112,
11,
11,
21,
16,
32,
29,
10,
11,
10,
10,
10,
11,
12,
28,
10,
10,
11,
10,
18,
10,
10,
11,
27,
17,
24,
27,
10,
23,
22,
18,
13,
17,
232,
29,
13,
15,
19,
12,
18,
21,
22,
26,
30,
33,
26,
39,
31,
28,
15,
10,
10,
19,
15,
10,
31,
10,
36,
116,
11,
16,
12,
35,
23,
13,
137,
11,
14,
30,
150,
12,
129,
13,
20,
81,
10,
78,
12,
11,
41,
21,
15,
11,
185,
14,
10,
11,
26,
12,
10,
19,
16,
20,
54,
21,
47,
56,
13,
68,
10,
35,
14,
10,
46,
14,
41,
33,
11,
29,
12,
22,
10,
10,
10,
16,
35,
12,
10,
35,
21,
33,
75,
11,
10,
18,
14,
15,
26,
10,
12,
16,
17,
12,
11,
20,
12,
17,
20,
15,
13,
10,
10,
19,
11,
10,
14,
14,
10,
12,
14,
10,
10,
17,
12,
11,
31,
11,
14,
13,
11,
12,
30,
16,
13,
14,
11,
12,
10,
128,
20,
25,
92,
11,
11,
18,
12,
10,
14,
16,
15,
10,
11,
12,
10,
11,
12,
39,
10,
48,
14,
56,
11,
70,
16,
17,
11,
12,
11,
10,
54,
10,
10,
36,
34,
36,
37,
33,
15,
13,
19,
14,
11,
11,
10,
10,
24,
24,
11,
13,
10,
12,
10,
10,
15,
18,
14,
10,
14,
18,
21,
14,
13,
14,
10,
18,
12,
11,
16,
14,
12,
10,
12,
13,
13,
15,
16,
12,
14,
12,
10,
11,
10,
18,
16,
10,
12,
34,
16,
16,
17,
27,
16,
17,
26,
10,
10,
11,
10,
11,
13,
11,
11,
13,
11,
14,
10,
12,
131,
11,
10,
40,
10,
28,
12,
10,
32,
42,
26,
164,
10,
21,
20,
12,
23,
17,
35,
13,
23,
10,
10,
11,
71,
10,
83,
12,
10,
10,
12,
10,
1076,
29,
13,
13,
33,
15,
43,
33,
27,
24,
29,
627,
58,
16,
14,
17,
68,
61,
21,
34,
19,
23,
11,
11,
10,
12,
10,
17,
11,
10,
12,
13,
10,
13,
11,
11,
18,
15,
25,
10,
15,
10,
13,
18,
12,
10,
11,
34,
11,
12,
11,
14,
10,
17,
12,
11,
13,
11,
13,
11,
12,
20,
10,
10,
21,
10,
13,
13,
15,
10,
14,
11,
31,
10,
35,
120,
34,
445,
37,
247,
10,
30,
28,
15,
24,
33,
19,
53,
13,
43,
40,
30,
28,
21,
25,
20,
231,
25,
11,
31,
13,
30,
21,
15,
41,
22,
10,
11,
24,
77,
50,
10,
11,
10,
16,
10,
10,
51,
18,
10,
17,
22,
11,
13,
24,
10,
10,
13,
16,
13,
11,
11,
12,
10,
13,
29,
12,
18,
16,
13,
13,
11,
12,
15,
22,
12,
14,
11,
38,
40,
23,
19,
32,
10,
12,
19,
76,
54,
20,
11,
10,
13,
22,
30,
12,
74,
11,
13,
383,
187,
23,
17,
12,
13,
13,
10,
102,
26,
10,
15,
24,
13,
27,
31,
29,
25,
38,
16,
11,
10,
10,
11,
12,
11,
10,
14,
10,
11,
21,
19,
17,
17,
25,
24,
24,
35,
27,
29,
30,
22,
17,
10,
17,
12,
11,
16,
12,
10,
11,
11,
10,
21,
10,
12,
13,
10,
11,
17,
10,
10,
11,
29,
13,
10,
12,
136,
14,
38,
25,
17,
43,
52,
10,
10,
10,
11,
10,
15,
13,
14,
24,
20,
10,
17,
23,
12,
26,
29,
28,
20,
26,
20,
16,
17,
13,
10,
10,
11,
10,
17,
11,
10,
14,
14,
14,
15,
33,
24,
22,
24,
30,
32,
20,
13,
17,
12,
11,
12,
13,
12,
22,
16,
10,
10,
16,
11,
16,
10,
15,
35,
25,
100,
16,
10,
41,
13,
10,
11,
11,
16,
13,
11,
15,
10,
10,
11,
16,
11,
10,
15,
12,
12,
11,
13,
13,
17,
10,
10,
12,
15,
19,
19,
19,
24,
13,
26,
28,
21,
21,
21,
21,
17,
12,
11,
13,
13,
17,
15,
10,
23,
10,
14,
11,
16,
16,
26,
17,
19,
84,
16,
40,
10,
40,
16,
10,
20,
19,
22,
29,
20,
43,
43,
40,
30,
32,
29,
17,
29,
15,
10,
11,
10,
19,
15,
11,
13,
12,
13,
12,
11,
10,
13,
20,
11,
17,
18,
12,
15,
22,
14,
18,
26,
21,
29,
29,
25,
30,
22,
34,
24,
21,
21,
16,
11,
12,
10,
15,
13,
11,
11,
14,
10,
11,
11,
12,
12,
25,
11,
11,
19,
12,
18,
16,
16,
13,
17,
16,
10,
11,
13,
11,
10,
12,
2347,
177,
16,
97,
13,
14,
10,
10,
13,
19,
11,
10,
12,
13,
10,
10,
10,
10,
11,
14,
10,
12,
13,
13,
11,
11,
16,
11,
11,
14,
12,
14,
10,
10,
16,
130,
101,
32,
137,
15,
19,
21,
22,
18,
29,
37,
37,
37,
42,
30,
40,
37,
35,
21,
24,
17,
16,
11,
11,
10,
10,
12,
12,
175,
10,
10,
14,
10,
10,
15,
19,
13,
11,
12,
14,
14,
10,
11,
15,
11,
12,
11,
10,
11,
10,
14,
12,
10,
11,
11,
14,
13,
13,
16,
14,
20,
24,
19,
27,
27,
19,
17,
17,
24,
18,
11,
15,
11,
11,
11,
11,
12,
20,
31,
21,
22,
23,
19,
21,
32,
31,
26,
25,
19,
18,
14,
12,
13,
17,
12,
21,
23,
10,
24,
16,
28,
15,
28,
18,
13,
16,
13,
14,
10,
14,
13,
29,
25,
10,
10,
11,
14,
22,
23,
11,
17,
14,
10,
13,
10,
12,
13,
14,
15,
11,
11,
11,
10,
10,
10,
10,
19,
13,
10,
17,
17,
11,
10,
12,
12,
14,
10,
12,
10,
15,
16,
62,
15,
13,
10,
15,
14,
13,
22,
10,
11,
13,
13,
14,
10,
11,
16,
17,
11,
14,
21,
22,
31,
24,
44,
37,
50,
26,
33,
17,
12,
11,
11,
10,
14,
17,
12,
10,
15,
11,
20,
20,
27,
25,
17,
48,
23,
23,
45,
29,
25,
16,
18,
12,
10,
16,
18,
10,
14,
11,
12,
13,
10,
14,
11,
10,
13,
11,
19,
19,
10,
29,
18,
31,
33,
27,
30,
25,
11,
18,
13,
11,
10,
11,
13,
10,
10,
11,
10,
24,
10,
12,
15,
14,
21,
16,
17,
27,
26,
26,
24,
18,
15,
21,
15,
12,
18,
11,
12,
11,
11,
29,
26,
13,
11,
18,
11,
14,
15,
11,
20,
15,
12,
13,
16,
10,
13,
12,
13,
11,
11,
11,
17,
14,
15,
14,
16,
11,
15,
10,
13,
15,
13,
21,
40,
55,
11,
177,
12,
14,
19,
13,
13,
12,
13,
11,
17,
16,
12,
20,
17,
24,
24,
26,
27,
35,
22,
28,
26,
15,
13,
14,
13,
17,
16,
11,
13,
19,
13,
17,
26,
18,
21,
23,
31,
21,
20,
12,
13,
14,
10,
12,
17,
10,
15,
21,
35,
18,
29,
26,
26,
29,
34,
25,
24,
13,
13,
15,
11,
10,
11,
11,
10,
16,
20,
19,
19,
32,
27,
23,
21,
25,
26,
30,
21,
15,
12,
13,
17,
10,
13,
10,
22,
20,
14,
18,
24,
23,
23,
26,
17,
22,
24,
18,
14,
11,
14,
11,
13,
12,
14,
12,
11,
11,
16,
19,
10,
25,
22,
10,
10,
10,
13,
12,
10,
11,
16,
12,
10,
10,
10,
15,
12,
11,
10,
13,
11,
14,
11,
11,
13,
10,
14,
11,
11,
13,
10,
11,
12,
10,
10,
14,
590,
11,
174,
11,
27,
16,
11,
10,
12,
11,
16,
12,
10,
10,
12,
11,
15,
13,
18,
15,
15,
25,
34,
21,
29,
26,
28,
17,
30,
18,
15,
10,
13,
14,
11,
14,
10,
14,
15,
16,
25,
21,
22,
25,
18,
21,
30,
34,
27,
21,
10,
10,
11,
26,
29,
21,
28,
15,
18,
13,
12,
12,
15,
23,
24,
41,
26,
24,
11,
16,
14,
14,
16,
19,
19,
14,
19,
22,
24,
32,
47,
19,
14,
24,
16,
13,
11,
12,
15,
11,
13,
10,
16,
14,
11,
10,
10,
10,
12,
10,
17,
11,
11,
17,
12,
10,
10,
12,
11,
11,
10,
13,
15,
16,
11,
12,
177,
10,
17,
18,
30,
11,
23,
13,
12,
12,
15,
10,
13,
11,
16,
12,
24,
24,
24,
20,
36,
21,
29,
27,
19,
14,
10,
10,
10,
11,
14,
15,
15,
12,
12,
15,
29,
26,
33,
19,
25,
36,
29,
26,
18,
13,
25,
11,
10,
16,
12,
10,
21,
27,
26,
22,
23,
36,
42,
22,
29,
27,
24,
18,
18,
10,
12,
12,
10,
14,
14,
16,
21,
15,
29,
27,
27,
33,
25,
25,
26,
23,
19,
15,
13,
14,
13,
13,
21,
29,
23,
31,
32,
26,
22,
31,
13,
26,
13,
10,
12,
13,
14,
12,
15,
13,
26,
27,
17,
31,
20,
18,
31,
16,
11,
21,
14,
16,
20,
13,
12,
14,
14,
11,
15,
15,
11,
15,
12,
15,
18,
10,
10,
11,
11,
11,
10,
19,
10,
10,
13,
11,
14,
12,
10,
13,
175,
11,
13,
11,
12,
13,
10,
12,
11,
19,
10,
10,
10,
11,
12,
10,
12,
10,
12,
14,
14,
15,
11,
18,
25,
40,
20,
24,
33,
39,
30,
22,
20,
16,
12,
11,
10,
11,
11,
19,
17,
21,
19,
35,
26,
28,
10,
18,
26,
21,
10,
12,
10,
15,
10,
10,
13,
11,
14,
15,
15,
23,
24,
19,
34,
25,
28,
28,
20,
22,
20,
11,
10,
11,
16,
15,
17,
15,
23,
20,
27,
36,
17,
24,
23,
26,
21,
16,
10,
14,
13,
11,
16,
23,
16,
17,
20,
35,
29,
27,
43,
26,
21,
16,
18,
12,
16,
11,
11,
11,
11,
15,
21,
10,
10,
12,
13,
10,
11,
14,
16,
12,
14,
24,
19,
16,
25,
11,
35,
21,
11,
16,
15,
12,
13,
13,
10,
12,
12,
10,
10,
10,
10,
10,
13,
11,
25,
14,
13,
12,
11,
11,
14,
11,
13,
12,
11,
12,
10,
13,
13,
17,
24,
28,
23,
38,
32,
19,
40,
42,
36,
29,
24,
25,
20,
18,
11,
10,
176,
11,
14,
13,
11,
13,
11,
15,
19,
22,
16,
24,
24,
16,
18,
22,
41,
34,
26,
21,
27,
17,
10,
12,
12,
11,
12,
13,
14,
19,
12,
34,
26,
32,
26,
28,
17,
27,
19,
18,
15,
10,
10,
19,
12,
11,
10,
14,
13,
17,
24,
29,
28,
32,
32,
25,
32,
19,
25,
10,
13,
19,
14,
19,
10,
15,
11,
11,
21,
11,
11,
24,
26,
35,
41,
18,
32,
22,
17,
11,
10,
19,
12,
11,
20,
24,
14,
18,
27,
21,
15,
11,
22,
14,
10,
10,
10,
12,
12,
16,
13,
13,
21,
17,
30,
21,
23,
15,
22,
15,
15,
12,
15,
11,
13,
11,
11,
15,
10,
16,
12,
13,
11,
13,
14,
12,
10,
17,
10,
12,
10,
10,
15,
12,
10,
12,
10,
41,
11,
46,
15,
11,
18,
14,
12,
12,
14,
26,
24,
21,
20,
35,
36,
35,
19,
29,
11,
13,
10,
14,
12,
10,
10,
15,
14,
15,
20,
27,
20,
26,
28,
24,
20,
29,
19,
17,
12,
10,
12,
14,
17,
19,
13,
19,
26,
15,
28,
24,
24,
14,
14,
17,
12,
10,
13,
15,
14,
13,
13,
25,
21,
33,
26,
26,
27,
39,
25,
15,
18,
25,
17,
10,
14,
19,
10,
14,
10,
19,
15,
14,
15,
23,
40,
24,
21,
31,
13,
16,
12,
10,
12,
10,
12,
10,
10,
23,
10,
14,
11,
10,
13,
11,
10,
1069,
67,
11,
17,
120,
19,
38,
12,
14,
21,
10,
10,
12,
12,
21,
12,
24,
27,
12,
12,
30,
15,
15,
13,
11,
46,
10,
10,
15,
18,
10,
16,
14,
16,
13,
18,
30,
32,
32,
37,
41,
28,
31,
25,
16,
18,
10,
15,
12,
12,
23,
23,
23,
27,
32,
30,
30,
38,
22,
26,
15,
16,
13,
12,
11,
18,
14,
20,
38,
26,
37,
35,
31,
13,
23,
16,
22,
14,
10,
17,
15,
10,
18,
13,
24,
33,
23,
25,
27,
34,
37,
34,
26,
23,
17,
13,
23,
11,
20,
13,
15,
17,
22,
22,
21,
27,
23,
36,
26,
18,
25,
18,
12,
15,
10,
10,
13,
17,
32,
30,
24,
22,
12,
17,
16,
17,
13,
17,
14,
25,
14,
15,
11,
16,
18,
22,
15,
30,
28,
35,
29,
30,
25,
16,
25,
19,
10,
25,
13,
10,
10,
43,
17,
12,
62,
10,
12,
15,
32,
10,
16,
155,
374,
36,
32,
29,
23,
23,
18,
54,
52,
40,
49,
21,
14,
38,
29,
23,
45,
45,
28,
10,
28,
15,
61,
52,
44,
11,
10,
11,
10,
19,
10,
14,
12,
13,
11,
10,
11,
21,
22,
18,
28,
14,
13,
10,
11,
34,
12,
12,
13,
11,
11,
13,
10,
12,
14,
102,
15,
21,
173,
553,
217,
1252,
27,
232,
15,
46,
38,
36,
13,
12,
11,
23,
33,
16,
10,
13,
18,
15,
11,
13,
11,
10,
10,
10,
193,
184,
17,
15,
17,
16,
13,
14,
32,
22,
41,
33,
25,
23,
26,
16,
26,
10,
12,
10,
10,
13,
11,
14,
17,
12,
21,
17,
34,
21,
15,
25,
10,
17,
20,
29,
15,
13,
14,
15,
12,
23,
27,
26,
23,
31,
31,
21,
17,
16,
22,
18,
13,
12,
13,
13,
20,
32,
19,
22,
33,
22,
24,
19,
20,
15,
17,
16,
11,
10,
13,
14,
18,
20,
23,
19,
33,
27,
34,
22,
19,
17,
28,
13,
12,
17,
22,
16,
27,
19,
36,
34,
25,
26,
19,
15,
12,
23,
18,
21,
25,
21,
25,
14,
12,
10,
14,
23,
24,
21,
19,
23,
10,
12,
13,
15,
12,
16,
24,
21,
26,
24,
22,
24,
11,
14,
14,
14,
13,
12,
12,
14,
11,
53,
14,
14,
10,
15,
10,
55,
10,
10,
59,
18,
18,
15,
15,
10,
12,
11,
33,
117,
17,
10,
12,
125,
43,
11,
19,
34,
20,
35,
10,
11,
119,
55,
40,
43,
11,
10,
117,
15,
22,
265,
31,
12,
21,
18,
33,
21,
13,
11,
12,
10,
10,
11,
12,
10,
11,
10,
11,
12,
11,
10,
10,
11,
10,
10,
33,
101,
16,
11,
10,
98,
29,
27,
13,
13,
25,
162,
11,
18,
40,
25,
22,
16,
23,
13,
11,
10,
13,
12,
10,
16,
14,
21,
35,
23,
37,
26,
23,
32,
24,
17,
15,
10,
25,
16,
12,
17,
12,
24,
24,
19,
27,
28,
22,
26,
27,
26,
19,
14,
13,
10,
16,
12,
23,
22,
24,
26,
21,
28,
18,
21,
17,
18,
11,
21,
10,
14,
10,
15,
12,
23,
23,
18,
32,
29,
38,
42,
24,
22,
19,
23,
11,
10,
10,
21,
16,
14,
13,
11,
15,
13,
17,
23,
16,
14,
34,
19,
20,
31,
37,
31,
24,
19,
10,
12,
11,
15,
23,
17,
16,
22,
23,
37,
33,
21,
31,
30,
22,
21,
17,
15,
18,
15,
16,
18,
11,
15,
12,
24,
11,
10,
11,
12,
15,
10,
33,
11,
12,
35,
17,
13,
407,
12,
28,
16,
13,
17,
11,
15,
12,
12,
10,
14,
12,
17,
12,
12,
13,
14,
13,
11,
38,
10,
11,
10,
19,
11,
14,
34,
16,
10,
10,
10,
13,
11,
12,
11,
18,
22,
10,
10,
14,
18,
18,
11,
10,
14,
11,
20,
31,
10,
13,
20,
25,
22,
22,
25,
27,
22,
29,
44,
14,
16,
10,
18,
13,
28,
11,
10,
13,
14,
17,
26,
23,
27,
17,
33,
44,
27,
22,
18,
18,
10,
18,
19,
22,
15,
22,
28,
25,
22,
27,
34,
29,
29,
17,
16,
17,
14,
11,
13,
23,
14,
21,
19,
27,
26,
34,
42,
23,
27,
21,
13,
13,
27,
10,
12,
19,
16,
16,
18,
23,
22,
26,
29,
25,
22,
24,
21,
21,
13,
14,
21,
10,
13,
21,
21,
15,
26,
26,
29,
22,
28,
37,
17,
16,
11,
16,
18,
26,
249,
10,
11,
13,
19,
13,
24,
11,
14,
15,
12,
16,
26,
12,
13,
12,
10,
13,
12,
12,
18,
10,
14,
11,
14,
14,
15,
25,
29,
20,
24,
27,
31,
12,
10,
158,
11,
27,
41,
11,
339,
41,
22,
28,
22,
21,
13,
23,
14,
13,
14,
11,
14,
20,
21,
13,
19,
11,
14,
10,
18,
20,
26,
32,
14,
25,
36,
34,
25,
32,
17,
11,
13,
11,
10,
11,
22,
20,
18,
20,
26,
19,
31,
24,
25,
14,
19,
13,
11,
10,
10,
17,
18,
17,
17,
17,
25,
21,
25,
24,
26,
30,
24,
20,
17,
16,
10,
13,
24,
24,
15,
20,
27,
26,
31,
31,
16,
12,
11,
11,
10,
26,
24,
22,
26,
24,
22,
25,
28,
21,
24,
13,
11,
16,
22,
23,
16,
18,
13,
18,
11,
10,
13,
13,
17,
15,
32,
11,
10,
11,
11,
10,
14,
21,
15,
26,
15,
30,
37,
35,
31,
17,
22,
30,
14,
17,
12,
11,
14,
16,
18,
14,
32,
21,
22,
31,
37,
32,
18,
12,
16,
11,
11,
12,
10,
11,
37,
10,
18,
10,
11,
26,
11,
13,
11,
20,
42,
20,
154,
24,
17,
19,
14,
26,
27,
10,
20,
27,
313,
81,
15,
15,
12,
14,
13,
15,
18,
30,
17,
26,
38,
33,
28,
18,
27,
14,
13,
10,
11,
11,
14,
10,
11,
14,
22,
17,
20,
29,
22,
31,
22,
25,
16,
13,
11,
18,
10,
10,
10,
16,
12,
12,
14,
19,
23,
33,
19,
46,
20,
19,
23,
13,
14,
11,
10,
12,
10,
10,
10,
10,
16,
12,
13,
21,
19,
33,
16,
28,
29,
30,
28,
22,
21,
20,
13,
10,
12,
10,
15,
13,
19,
15,
20,
27,
14,
23,
36,
20,
18,
11,
13,
14,
11,
14,
13,
16,
21,
23,
25,
19,
24,
23,
17,
21,
15,
17,
13,
14,
12,
13,
17,
12,
15,
18,
22,
28,
23,
31,
40,
22,
20,
16,
23,
13,
12,
28,
25,
17,
24,
12,
12,
13,
10,
14,
38,
22,
21,
15,
13,
14,
10,
11,
16,
18,
22,
14,
31,
21,
32,
36,
49,
29,
24,
16,
21,
15,
10,
10,
10,
16,
10,
11,
11,
18,
23,
22,
35,
23,
33,
35,
37,
29,
26,
26,
22,
10,
11,
12,
12,
11,
12,
18,
26,
69,
41,
13,
18,
10,
19,
17,
32,
31,
25,
27,
28,
34,
27,
17,
11,
10,
10,
11,
14,
14,
13,
17,
18,
27,
16,
28,
28,
26,
34,
33,
13,
10,
11,
13,
13,
14,
10,
13,
21,
17,
25,
19,
26,
29,
21,
20,
24,
15,
10,
11,
10,
10,
15,
11,
10,
10,
17,
21,
20,
26,
20,
24,
27,
18,
12,
21,
15,
11,
10,
10,
11,
10,
14,
13,
16,
17,
14,
26,
31,
24,
28,
14,
11,
11,
10,
10,
12,
11,
14,
26,
21,
22,
17,
28,
21,
25,
27,
26,
21,
10,
11,
10,
18,
10,
11,
20,
19,
20,
14,
19,
29,
21,
20,
17,
11,
11,
13,
12,
14,
10,
19,
22,
15,
23,
24,
29,
32,
17,
31,
14,
11,
13,
18,
10,
16,
17,
13,
13,
13,
29,
32,
20,
22,
35,
30,
31,
25,
26,
24,
21,
13,
11,
64,
12,
12,
15,
14,
18,
13,
20,
22,
30,
27,
26,
31,
26,
23,
14,
17,
16,
13,
11,
23,
12,
11,
13,
18,
11,
17,
19,
20,
27,
26,
23,
17,
10,
11,
11,
11,
10,
17,
24,
17,
21,
25,
24,
30,
22,
23,
24,
26,
12,
10,
10,
14,
10,
14,
16,
14,
15,
26,
23,
21,
24,
23,
28,
15,
13,
12,
13,
15,
13,
12,
15,
16,
17,
20,
23,
32,
44,
26,
24,
18,
25,
12,
15,
10,
19,
29,
25,
20,
21,
13,
15,
20,
17,
17,
27,
22,
26,
12,
11,
11,
10,
12,
16,
14,
23,
24,
32,
25,
26,
23,
14,
23,
10,
10,
10,
12,
18,
10,
10,
25,
20,
26,
18,
26,
28,
22,
14,
20,
18,
11,
12,
12,
10,
18,
21,
19,
14,
15,
12,
30,
25,
18,
16,
17,
12,
20,
12,
11,
12,
14,
18,
28,
22,
35,
34,
24,
39,
33,
22,
31,
21,
19,
10,
14,
13,
14,
15,
15,
26,
21,
27,
18,
30,
28,
22,
22,
22,
12,
13,
11,
12,
10,
15,
24,
76,
10,
14,
17,
21,
16,
25,
29,
33,
23,
21,
25,
15,
13,
10,
11,
18,
16,
10,
16,
15,
21,
19,
22,
24,
30,
22,
29,
13,
17,
11,
12,
11,
10,
12,
19,
24,
16,
24,
31,
34,
28,
13,
19,
24,
29,
10,
12,
10,
12,
14,
14,
15,
17,
16,
18,
26,
19,
25,
23,
13,
13,
17,
19,
11,
10,
23,
24,
23,
20,
29,
22,
13,
25,
15,
20,
13,
14,
18,
14,
24,
15,
14,
27,
22,
28,
29,
13,
16,
13,
18,
17,
12,
23,
20,
35,
37,
23,
20,
27,
16,
12,
10,
11,
14,
11,
15,
15,
18,
13,
22,
25,
19,
23,
19,
16,
14,
22,
20,
10,
11,
15,
10,
11,
18,
24,
13,
26,
32,
28,
38,
35,
31,
36,
33,
27,
16,
15,
12,
10,
14,
13,
15,
18,
11,
15,
26,
18,
22,
21,
34,
21,
29,
26,
13,
13,
70,
12,
12,
41,
108,
573,
12,
347,
41,
15,
113,
27,
74,
420,
192,
19,
24,
44,
10,
15,
145,
10,
11,
11,
34,
48,
122,
23,
27,
498,
12,
127,
10,
721,
60,
16,
11,
20,
66,
12,
1343,
77,
21,
19,
89,
159,
16,
64,
13,
27,
179,
3107,
30,
76,
17,
86,
36,
21,
64,
39,
139,
26,
12,
1826,
13,
76,
10,
17,
181,
17,
11,
492,
16,
13,
16,
12,
159,
14,
15,
10,
14,
14,
15,
11,
13,
48,
32,
135,
59,
60,
13,
489,
11317,
64,
11,
13,
10,
34,
18,
36,
36,
27,
4620,
65,
18,
24,
27,
17,
34,
22,
11,
4065,
18,
127,
269,
56,
23,
11,
74,
54,
157,
11,
28,
166,
12,
50,
190,
3160,
88,
19,
51,
18,
351,
50,
238,
1488,
18,
149,
351,
27,
68,
29,
13,
14,
25,
55,
11,
19,
11,
254,
11,
48,
13,
14,
35,
87,
14,
26,
11,
20,
14,
47,
12,
34,
17,
54,
200,
28,
6649,
83,
10,
21,
10,
10,
20,
63,
26,
89,
14,
201,
10,
489,
36,
44,
25,
33,
37,
68,
10,
2614,
43,
10,
42,
237,
37,
10,
98,
20,
50,
61,
155,
102,
12,
10,
28,
275,
52,
35,
88,
47,
12,
108,
250,
41,
25,
67,
19,
65,
38,
33,
11,
10,
668,
91,
145,
12,
947,
12,
17,
14,
23,
47,
17,
234,
203,
99,
26,
29,
1707,
53,
65,
14,
26,
18,
47,
388,
30,
14,
12,
24,
81,
108,
46,
16,
40,
2740,
161,
11,
28,
10,
27,
1261,
19,
289,
12,
46,
151,
50,
220,
13,
673,
86,
12,
390,
1103,
23,
10,
158,
137,
94,
49,
216,
17,
24,
11,
42,
42,
50,
13,
18,
10,
1694,
10,
39,
312,
10,
15,
10,
69,
101,
329,
3591,
337,
33,
167,
243,
13,
22,
12,
18,
11,
446,
35,
326,
76,
17,
42,
51,
77,
12,
34,
73,
279,
22,
11,
19,
22,
16,
105,
30,
17,
81,
332,
57,
26,
180,
14,
10,
46,
258,
306,
102,
513,
15,
18,
57,
20,
26,
10,
90,
10,
10,
18,
12,
15,
10,
84,
30,
115,
403,
13,
15,
121,
14,
14,
17,
27,
14,
16,
40,
16,
18,
21,
47,
22,
60,
32,
70,
49,
11,
10,
76,
55,
74,
111,
24,
35,
31,
12,
30,
12,
88,
79,
78,
2412,
25,
43,
113,
79,
16,
15,
21,
477,
105,
13,
36,
19,
314,
16,
22,
136,
11,
16,
57,
35,
52,
14,
57,
95,
11,
14,
14,
62,
20,
223,
202,
16,
39,
11,
12,
841,
19,
11,
81,
1055,
53,
11,
14,
84,
22,
16,
63,
171,
11,
97,
73,
25,
13,
17,
19,
24,
20,
34,
148,
43,
177,
11,
16,
1168,
27,
21,
27,
48,
31,
40,
13,
80,
186,
13,
23,
334,
11,
10,
377,
618,
17,
39,
12,
19,
28,
140,
30,
40,
15,
11,
19,
13,
70,
15,
57,
10,
10,
39,
307,
127,
11,
59,
158,
16,
24,
13,
926,
54,
11,
15,
363,
1428,
38,
90,
10,
30,
332,
372,
55,
10,
45,
68,
56,
13,
387,
11,
31,
11,
11,
117,
1396,
29,
17,
65,
97,
16,
82,
15,
10,
10,
12,
27,
207,
11,
12,
137,
824,
48,
225,
31,
41,
10,
20,
45,
26,
17,
117,
1325,
210,
11,
13,
29,
46,
35,
15,
20,
31,
21,
15,
473,
18,
34,
15,
95,
60,
30,
376,
19,
13,
85,
759,
47,
14,
15,
21,
154,
27,
26,
12,
115,
38,
474,
51,
41,
26,
17,
13,
189,
20,
17,
142,
17,
28,
22,
73,
20,
293,
219,
27,
54,
1161,
17,
133,
65,
54,
24,
2185,
52,
36,
13,
855,
74,
16,
54,
20,
18,
13,
11,
164,
27,
387,
41,
11,
12,
15,
24,
33,
10,
205,
55,
24,
21,
24,
10,
439,
14,
17,
43,
503,
24,
11,
67,
33,
30,
13,
23,
75,
235,
40,
31,
24,
51,
2315,
11,
94,
11,
12,
28,
16,
20,
55,
40,
15,
71,
102,
26,
45,
13,
13,
192,
96,
18,
26,
12,
858,
17,
38,
66,
24,
112,
16,
61,
16,
11,
23,
18,
11,
113,
10,
11,
11,
23,
804,
75,
12,
23,
14,
61,
4846,
218,
15,
48,
146,
11,
64,
15,
42,
58,
1438,
84,
17,
88,
39,
29,
136,
10,
80,
15,
12,
17,
236,
53,
48,
2972,
18,
25,
269,
10,
21,
50,
15,
32,
30,
27,
11,
42,
19,
260,
10,
50,
83,
84,
27,
244,
10,
85,
14,
11,
32,
30,
48,
471,
482,
20,
44,
12,
15,
90,
19,
12,
244,
10,
10,
3604,
25,
260,
1389,
7214,
15,
92,
128,
41,
17,
35,
43,
14,
1895,
10,
50,
44,
27,
2580,
13,
57,
22,
12,
19,
12,
3985,
87,
24,
30,
166,
18,
217,
17,
28,
37,
73,
56,
24,
140,
22,
11,
23,
102,
25,
53,
21,
40,
71,
31,
216,
15,
65,
14,
148,
76,
4421,
214,
20,
578,
97,
10,
203,
1376,
20,
16,
45,
37,
12,
66,
30,
20,
22,
1093,
71,
21,
19,
17,
62,
42,
35,
1800,
18,
2582,
41,
1822,
39,
118,
115,
118,
10,
17,
276,
81,
847,
448,
21,
23,
35,
44,
1248,
97,
20,
245,
50,
151,
25,
1554,
941,
21,
18,
12,
250,
86,
258,
13,
126,
18,
26,
17,
35,
38,
1648,
332,
988,
164,
272,
39,
11,
11,
12,
374,
42,
15,
12,
83,
142,
56,
10,
105,
29,
12,
19,
14,
298,
26,
10,
105,
70,
17,
12,
17,
43,
49,
11,
106,
18,
189,
35,
47,
279,
15,
152,
19,
237,
160,
19,
140,
1995,
25,
31,
12,
127,
20,
119,
55,
14,
53,
21,
513,
527,
57,
248,
17,
250,
191,
15,
17,
32,
56,
15,
17,
120,
21,
217,
1264,
89,
64,
43,
11,
17,
359,
40,
1163,
36,
42,
16,
113,
11,
15,
19,
11,
10,
11,
25,
984,
143,
945,
22,
33,
16,
711,
22,
133,
13,
13,
56,
298,
78,
13,
69,
129,
37,
118,
61,
35,
108,
27,
27,
53,
10,
26,
153,
17,
482,
44,
10,
13,
25,
47,
12,
94,
10,
10,
1016,
25,
98,
125,
43,
29,
13,
53,
22,
24,
42,
17,
10,
167,
17,
16,
15,
11,
88,
142,
49,
819,
121,
167,
14,
113,
11,
11,
16,
169,
103,
12,
12941,
73,
207,
120,
27,
58,
32,
44,
60,
262,
183,
90,
56,
124,
13,
25,
17,
604,
14,
12,
12,
65,
18,
250,
13,
10,
14,
13,
10,
12,
22,
212,
11,
101,
384,
29,
42,
30,
28,
15,
34,
10,
100,
70,
11,
11,
108,
11,
12,
24,
82,
72,
19,
43,
1053,
19,
13,
241,
20,
24,
19,
31,
15,
10,
12,
90,
10,
16,
46,
43,
12,
398,
35,
10,
28,
107,
20,
21,
105,
15,
90,
34,
66,
181,
28,
113,
74,
20,
50,
15,
13,
14,
195,
1133,
47,
74,
16,
31,
83,
1737,
57,
18,
34,
10,
42,
259,
115,
15,
13,
337,
79,
10,
281,
48,
10,
14,
72,
38,
19,
50,
22,
29,
2897,
18,
77,
77,
13,
16,
43,
86,
51,
11,
420,
12,
4886,
99,
324,
367,
124,
20,
30,
19,
13,
418,
43,
55,
296,
28,
45,
28,
36,
25,
597,
3837,
288,
706,
98,
114,
56,
19,
15,
16,
13,
20,
1208,
10,
22,
11,
230,
16,
37,
12,
19,
774,
117,
57,
10,
31,
31,
52,
381,
80,
13,
13,
1202,
10,
16,
47,
13,
82,
14,
165,
122,
2431,
29,
26,
61,
20,
230,
22,
12,
12,
51,
12,
11,
16,
22,
14,
15,
23,
244,
14,
96,
23,
22,
11,
15,
11,
19,
12,
21,
55,
31,
75,
17,
10,
375,
533,
15,
75,
52,
204,
12,
69,
16,
17,
25,
75,
10,
110,
19,
35,
100,
556,
101,
129,
83,
69,
19,
11,
13,
210,
127,
167,
23,
11,
1858,
108,
13,
20559,
21,
60,
17,
209,
562,
99,
1689,
24,
2228,
28,
12,
14,
1060,
13,
14,
49,
35,
16,
11,
33,
55,
69,
11,
542,
18,
234,
19,
30,
18,
90,
11,
13,
50,
25,
27,
3059,
29,
14,
183,
19,
20,
34,
331,
14,
11,
25,
15,
11,
187,
20,
39,
2072,
34,
24,
70,
27,
21,
13,
23,
71,
45,
87,
11135,
11,
35,
46,
160,
49,
79,
230,
3847,
47,
41,
14,
10,
133,
141,
48,
10,
10,
12,
13,
12,
22,
33,
21,
23,
12,
55,
892,
43,
465,
11,
95,
31,
18,
166,
11,
14,
96,
21,
256,
44,
16,
132,
12,
254,
88,
37,
10,
23,
346,
17,
11,
13,
21,
16,
10,
57,
45,
10,
12,
11,
788,
19,
178,
60,
335,
17,
23,
70,
77,
12,
13,
10,
26,
24,
104,
50,
17,
61,
190,
415,
30,
759,
42,
10,
61,
134,
119,
765,
321,
10,
28,
55,
21,
188,
54,
61,
97,
14,
31,
73,
10,
16,
19,
14,
55,
42,
25,
17,
10,
403,
792,
71,
791,
10,
12,
25,
12,
14,
33,
1009,
11,
96,
292,
17,
277,
17,
203,
34,
18,
20,
98,
144,
79,
44,
57,
200,
11,
430,
489,
165,
171,
11,
273,
79,
10,
29,
109,
10,
13,
132,
10,
33,
23,
256,
12,
14,
313,
39,
15,
32,
10,
46,
73,
21,
14,
212,
23,
25,
36,
81,
54,
16,
13,
25,
10,
126,
663,
1033,
23,
156,
35,
40,
294,
233,
143,
128,
161,
93,
11,
28,
47,
38,
10,
14,
29,
21,
14,
463,
41,
11,
14,
25,
32,
187,
10,
232,
71,
15,
115,
56,
16,
12,
18,
11,
44,
174,
12,
14,
145,
12,
73,
21,
1019,
462,
518,
15,
286,
12,
12,
12,
76,
12,
29,
43,
41,
78,
19,
166,
15,
17,
12,
11,
27,
23,
29,
85,
13,
94,
17,
21,
10,
49,
16,
17,
22,
13,
144,
38,
34,
73,
15,
112,
46,
10,
17,
285,
65,
10,
39,
12,
60,
482,
21,
14,
10,
10,
15,
16,
62,
87,
11,
1372,
57,
32,
17,
106,
37,
12,
20,
41,
86,
11,
10,
279,
246,
1164,
90,
19,
15,
19,
312,
20,
6532,
47,
34,
20,
21,
37,
33,
70,
11,
179,
434,
2679,
16,
36,
25,
14,
30,
25,
135,
11,
18,
1568,
36,
23,
146,
10,
18,
22,
52,
17,
1370,
23,
167,
23,
34,
114,
82,
52,
103,
140,
53,
58,
12,
26,
2573,
40,
36,
596,
23,
11,
35,
35,
126,
21,
23,
20,
16,
90,
27,
4857,
10,
67,
22,
741,
14539,
17,
113,
12,
116,
12,
161,
70,
31,
60,
4525,
30,
181,
79,
259,
61,
268,
966,
156,
80,
89,
39,
48,
740,
152,
14,
100,
1090,
29,
339,
36,
33,
33,
35,
74,
466,
11,
11,
19,
591,
25,
11,
22,
77,
37,
88,
10,
66,
71,
28,
44,
34,
347,
1287,
10,
17,
13,
11,
38,
23,
80,
23,
11,
141,
566,
191,
30,
13,
18,
14,
192,
19,
10,
177,
27,
16,
404,
14,
75,
75,
75,
33,
25,
158,
532,
602,
83,
21,
26,
112,
142,
359,
14,
28,
34,
84,
10,
31,
10,
25,
48,
303,
13,
50,
24,
13,
1646,
15,
19,
48,
45,
43,
73,
15,
75,
75,
30,
947,
32,
10,
15,
14,
510,
178,
61,
100,
16,
271,
12,
214,
30,
21,
29,
44,
10,
25,
456,
1689,
448,
641,
68,
28,
32,
20,
133,
1281,
15,
44,
23,
34,
22,
13200,
842,
19,
41,
43,
19,
261,
12,
30,
359,
10,
42,
16,
18,
642,
130,
70,
310,
11,
1476,
39,
20,
19,
23,
11,
177,
2049,
53,
76,
17,
17,
13,
14,
12,
52,
81,
15744,
233,
69,
28,
75,
75,
75,
664,
223,
13,
72,
23,
38,
147,
32,
12,
251,
20,
72,
11,
663,
26,
21,
20,
332,
84,
10,
17,
10,
36,
10,
49,
390,
165,
345,
11,
16,
12,
74,
96,
10,
205,
16,
120,
19,
92,
10,
19,
14,
15,
14,
42,
44,
62,
10,
40,
12,
14,
11,
31,
35,
18,
13,
14,
81,
28,
12,
15,
33,
12,
13,
45,
27,
358,
10,
53,
20,
60,
32,
121,
14,
111,
196,
42,
10,
50,
225,
148,
266,
16,
17,
16,
160,
408,
169,
29,
48,
20,
132,
11,
94,
25,
30,
853,
107,
18,
16,
20,
48,
115,
16,
17,
197,
10,
23,
126,
80,
20,
38,
18,
14,
13,
13,
11,
13,
34,
12,
188,
209,
17,
14,
17,
17,
38,
11,
34,
127,
24,
13,
22,
32,
28,
48,
230,
29,
18,
75,
14,
19,
15,
150,
10,
24,
12,
34,
80,
51,
37,
24,
15,
19,
27,
34,
13,
38,
90,
163,
688,
107,
15,
12,
10,
21,
300,
15,
35,
27,
26,
28,
273,
23,
46,
4379,
105,
32,
399,
254,
399,
22,
16,
14,
11,
18,
5729,
87,
10,
28,
10,
35,
11,
14,
3821,
33,
3446,
338,
52,
927,
19,
243,
139,
291,
20,
68,
42,
24,
11,
13,
391,
1955,
10,
20,
30,
12,
46,
136,
1431,
17,
25,
44,
11,
19,
26,
103,
33,
285,
25,
16,
14,
18,
11,
10,
29,
10,
26,
29,
17,
12,
28,
39,
28,
19,
85,
11,
74,
82,
14,
15,
11,
111,
15,
33,
14,
127,
53,
76,
23,
24,
13,
30,
5838,
24,
15,
30,
270,
72,
246,
30,
17,
14,
21,
691,
24,
200,
50,
447,
5056,
43,
577,
14,
80,
16,
519,
48,
25,
26,
93,
104,
30,
12,
10,
22,
24,
244,
47,
35,
59,
19,
14,
92,
20,
85,
16,
11,
15,
2076,
24,
171,
16,
113,
19,
107,
722,
10,
29,
28,
79,
11,
37,
11,
50,
10,
2152,
31,
49,
242,
12,
28,
13,
35,
16,
13,
43,
26,
27,
124,
40,
21,
72,
161,
2015,
125,
166,
98,
29,
34,
16,
42,
24,
21,
21,
76,
101,
14,
152,
20,
15,
13,
12,
27,
14,
285,
22,
43,
62,
849,
15,
835,
358,
310,
77,
13,
11,
15,
106,
15,
49,
299,
358,
2370,
76,
39,
33,
14,
11,
121,
44,
27,
33,
23,
7336,
963,
40,
46,
44,
382,
16357,
57,
99,
320,
26,
249,
46,
15,
15,
16,
16,
17,
10,
59,
182,
14,
17,
92,
177,
786,
66,
744,
1129,
606,
103,
141,
123,
103,
318,
30,
34,
99,
75,
33,
1826,
909,
17,
19,
537,
80,
143,
69,
25,
39,
107,
94,
247,
23,
95,
31,
38,
46,
28,
1313,
267,
67,
2163,
26,
10,
35,
177,
20,
12,
19,
24,
335,
53,
22,
13,
107,
86,
22,
14,
17,
25,
77,
84,
458,
5731,
20,
120,
6558,
16,
49,
391,
44,
17,
27,
23,
16,
16,
47,
31,
262,
218,
1227,
487,
71,
255,
3767,
10,
20,
274,
31,
13,
27,
14,
26,
78,
129,
242,
65,
21,
25,
700,
23,
10,
1274,
43,
34,
25,
11,
39,
14,
11,
13,
30,
37,
118,
488,
31,
94,
69,
114,
14,
64,
11,
12,
32,
482,
13,
44,
10,
2320,
115,
261,
77,
16,
12,
50,
161,
17,
24,
26,
67,
63,
127,
28,
25,
21,
17,
166,
44,
25,
7563,
12,
17,
26,
75,
1020,
12,
33,
36,
24,
24,
55,
44,
25,
35,
135,
56,
21,
14,
59,
303,
42,
13,
14,
12,
59,
52,
8790,
87,
58,
27,
15,
35,
92,
30,
119,
116,
45,
534,
24,
51,
78,
64,
15,
11,
43,
10,
55,
31,
36,
17,
29,
271,
6161,
11,
625,
265,
41,
115,
233,
4662,
70,
197,
1260,
882,
14,
34,
685,
78,
19,
61,
12,
15,
254,
11,
10,
46,
25,
45,
12,
77,
10,
14,
2719,
12,
26,
154,
145,
23,
368,
12,
11,
98,
53,
105,
174,
14,
26,
13,
63,
265,
18,
47,
21,
238,
221,
23,
53,
13,
141,
33,
44,
121,
32,
37,
74,
19,
15,
143,
37,
18,
15,
10,
19,
22,
49,
34,
15,
23,
281,
105,
217,
92,
11,
35,
175,
562,
510,
161,
24,
43,
15,
42,
25,
18,
10,
12,
376,
116,
12,
20,
26,
28,
26,
10,
37,
55,
1478,
19,
15,
52,
20,
17,
15,
96,
319,
72,
14,
10,
33,
31,
13,
65,
129,
37,
17,
12,
26,
36,
19,
19,
2094,
11,
22,
11,
11,
95,
37,
13,
18,
66,
11,
82,
28,
17,
15,
82,
11,
31,
195,
54,
13,
28,
181,
24,
13,
89,
10,
690,
11,
14,
29,
14,
34,
185,
76,
48,
69,
19,
181,
81,
214,
101,
249,
21,
86,
13,
17,
184,
2314,
42,
16,
25,
24,
38,
86,
11,
14,
54,
89,
199,
19,
65,
94,
55,
224,
15,
352,
1887,
85,
47,
11,
13,
12,
11,
17,
20,
10,
15,
125,
74,
84,
10,
24,
132,
14,
108,
10,
26,
95,
47,
427,
26,
93,
117,
150,
318,
138,
61,
12,
763,
11,
116,
77,
25,
22,
15,
13,
22,
229,
13,
61,
30,
10,
78,
165,
12,
23,
13,
12,
22,
154,
60,
11,
20,
59,
30,
90,
12,
37,
419,
33,
10,
12,
77,
3684,
27,
605,
14,
98,
11,
11,
40,
909,
113,
137,
38,
334,
389,
12,
20,
160,
10,
18,
216,
24,
22,
164,
21,
88,
30,
18,
19,
418,
49,
16,
231,
19,
58,
33,
180,
419,
41,
64,
24,
18,
23,
11,
18,
23,
18,
424,
22,
11,
14,
42,
37,
19,
11,
45,
50,
184,
10,
12,
76,
213,
32,
13,
95,
37,
24,
5143,
425,
31,
14,
288,
13,
51,
41,
12,
926,
205,
17,
26,
24,
18,
31,
14,
14,
129,
65,
24,
11,
401,
10,
12317,
16,
250,
20,
77,
18,
12,
13,
72,
3500,
12,
74,
12,
86,
17,
55,
31,
14,
10,
38,
13,
10,
2107,
142,
12,
12,
22,
47,
16,
4450,
37,
39,
39,
29,
1347,
488,
23,
1678,
57,
90,
294,
184,
79,
65,
124,
16,
10,
13,
1814,
219,
1233,
31,
418,
108,
24,
39,
371,
29,
21,
95,
47,
23,
76,
28,
389,
40,
56,
14,
1918,
683,
60,
13,
95,
135,
16,
21,
2039,
39,
12,
190,
30,
24,
166,
98,
19,
14906,
39,
2404,
21,
15,
30,
12,
25,
11,
145,
41,
31,
37,
15,
14,
24,
216,
10,
236,
43,
17,
111,
46,
218,
139,
20,
155,
20,
36,
62,
27,
115,
25,
302,
20,
28,
17,
20,
137,
10,
75,
42,
59,
224,
13,
435,
18,
139,
26,
12,
33,
11,
36,
16,
15,
12,
16,
259,
406,
97,
107,
33,
28,
477,
20,
73,
943,
70,
73,
67,
11,
14,
38,
13,
188,
87,
163,
104,
17,
24,
11,
15,
32,
35,
11,
20,
95,
134,
12,
13,
25,
26,
99,
19,
43,
41,
12,
79,
60,
11,
56,
14,
10,
3638,
295,
16,
24,
11,
44,
10,
27,
15,
40,
15,
12,
48,
14,
12,
28,
2034,
11,
134,
625,
56,
26,
132,
16,
93,
85,
24,
166,
20,
45,
28,
13,
1124,
117,
55,
49,
156,
20,
15,
20,
11,
55,
47,
11,
11,
36,
11,
10,
85,
10,
10,
17,
2261,
108,
36,
52,
2344,
345,
71,
15,
12,
11,
15,
481,
81,
9242,
38,
74,
840,
42,
28,
847,
12,
12,
28,
12,
324,
38,
24,
12,
11,
47,
24,
2671,
66,
12,
35,
15,
59,
22,
59,
11,
11,
67,
48,
27,
36,
114,
12,
38,
19,
41,
277,
329,
193,
23,
16,
14,
12,
18,
41,
65,
1511,
1753,
187,
14,
141,
56,
39,
28,
63,
1253,
666,
30,
18,
10,
13,
24,
166,
25,
218,
24,
13,
727,
16,
63,
59,
19,
168,
53,
20,
21,
26,
18,
16,
44,
54,
130,
417,
71,
29,
22,
14,
16,
252,
39,
243,
17,
45,
15,
30,
34,
16,
11,
19,
115,
103,
16,
22,
69,
59,
15,
14,
105,
13,
41,
46,
48,
58,
12,
41,
53,
34,
19,
148,
49,
6856,
20,
23,
22,
23,
44,
13,
154,
29,
17,
20,
41,
42,
25,
14,
26,
11,
88,
12,
12,
74,
11,
633,
30,
38,
10,
10,
3646,
32,
19,
18,
148,
66,
18,
74,
18,
27,
126,
106,
43,
346,
15,
35,
125,
113,
68,
118,
14,
74,
17,
189,
62,
34,
10,
22,
439,
55,
20,
30,
12,
42,
30,
33,
16,
18,
20,
16,
28,
10,
32,
14,
109,
11,
28,
12,
35,
12,
39,
31,
64,
31,
79,
337,
16,
12,
126,
26,
14,
18,
92,
20,
93,
10,
10,
11,
348,
14,
29,
14,
34,
178,
38,
71,
16,
10,
262,
15,
26,
81,
30,
20,
11,
2854,
17,
49,
561,
46,
721,
12,
23,
43,
50,
124,
11,
49,
412,
830,
10,
18,
1116,
21,
98,
69,
1936,
85,
24,
63,
26,
422,
78,
10,
12,
51,
11,
109,
15,
20,
31,
5943,
2681,
29,
18,
34,
25,
48,
72,
11,
29,
42,
86,
33,
432,
50,
12,
58,
14,
10,
50,
395,
38,
166,
12,
11,
40,
14,
11,
21,
10,
4508,
11,
215,
80,
22,
10,
26,
103,
51,
24,
110,
448,
53,
25,
193,
1151,
87,
55,
79,
10,
60,
60,
32,
15,
166,
11,
15,
27,
57,
10,
49,
12,
13,
10,
14,
694,
58,
114,
440,
105,
41,
14,
16,
10,
21,
40,
149,
34,
11,
37,
91,
71,
40,
30,
1018,
253,
296,
30,
30,
1664,
18,
31,
81,
10,
24,
22,
878,
32,
47,
20,
44,
239,
13,
21,
43,
16,
24,
30,
128,
16,
17,
17,
14,
11,
257,
12,
40,
50,
285,
13,
133,
16,
17,
50,
135,
131,
28,
12,
11,
16,
20,
101,
36,
46,
21,
14,
10,
90,
13,
11,
64,
21,
12,
1768,
15,
14,
18,
51,
31,
29,
22,
34,
43,
22,
29,
24,
28,
10,
23,
40,
96,
88,
12,
26,
111,
16,
76,
35,
26,
10,
20,
67,
10,
102,
11,
709,
62,
12,
44,
1030,
25,
11,
76,
22,
30,
40,
424,
13,
11,
11,
37,
254,
46,
58,
392,
56,
310,
11,
15,
742,
192,
378,
57,
105,
47,
37,
29,
17,
147,
339,
58,
159,
10,
12,
574,
13,
25,
25,
13,
152,
55,
16,
40,
29,
249,
103,
105,
38,
16,
16,
14,
84,
35,
123,
45,
158,
10,
17,
36,
19,
76,
18,
31,
12,
10,
16,
15,
34,
190,
46,
211,
15,
192,
13,
15,
178,
14,
98,
67,
15,
2439,
30,
386,
108,
3577,
58,
22,
11,
153,
18,
14,
142,
18,
18,
17,
19,
10,
66,
591,
10,
11,
16,
114,
43,
787,
16,
11,
11,
20,
17,
14,
14,
17,
11,
18,
24,
80,
62,
11,
38,
2010,
673,
111,
27,
107,
13,
108,
15,
41,
85,
10,
228,
132,
3370,
28,
14,
23,
11,
54,
22,
16,
22,
43,
22,
52,
166,
20,
48,
56,
34,
10,
18,
63,
38,
12,
18,
371,
62,
14,
16,
65,
44,
14,
11,
112,
1688,
45,
106,
35,
110,
85,
14,
15,
26,
73,
12,
32,
111,
21,
28,
16,
28,
135,
13,
182,
38,
23,
37,
41,
117,
224,
815,
516,
15,
11,
45,
65,
202,
94,
11,
75,
305,
17,
35,
180,
10,
63,
419,
192,
83,
12,
103,
156,
10,
220,
9194,
12,
55,
180,
12,
2063,
11,
13,
204,
21,
294,
39,
29,
938,
12,
13,
40,
14,
11,
15,
17,
10,
77,
13,
204,
33,
51,
64,
12,
57,
40,
181,
45,
12,
11,
12,
14,
32,
26,
17,
25,
18,
37,
17,
13,
15,
152,
34,
56,
15,
21,
34,
154,
15,
111,
177,
74,
56,
2237,
74,
16,
45,
12,
10,
12,
10,
976,
42,
45,
93,
117,
67,
15,
44,
11,
202,
18,
177,
98,
3871,
489,
7532,
46,
39,
469,
12,
12,
45,
20,
313,
197,
2701,
10,
608,
72,
66,
112,
21,
126,
417,
14,
2287,
15,
45,
12,
22,
218,
907,
42,
19,
10,
22,
811,
27,
60,
31,
16,
60,
75,
24,
357,
34,
15,
13,
120,
635,
20,
42,
61,
333,
151,
13,
46,
38,
15,
180,
14,
29,
236,
39,
14,
64,
11,
87,
10,
1231,
34,
23,
20,
22,
2602,
10,
339,
1781,
27,
14,
665,
119,
266,
19,
83,
232,
10,
13,
138,
81,
347,
31,
19,
42,
1890,
39,
16,
17,
13,
255,
96,
14,
14,
28,
16,
47,
17,
22,
2147,
159,
14,
51,
37,
366,
30,
317,
62,
15,
68,
18,
70,
21,
12,
16,
73,
12,
182,
27,
106,
56,
22,
151,
11,
11,
86,
361,
106,
1830,
57,
23,
10,
62,
532,
11,
2917,
84,
60,
16,
32,
375,
12,
61,
38,
28,
15,
29,
14,
10,
83,
15,
14,
13,
45,
36,
160,
256,
11,
129,
25,
18,
10,
22,
30,
35,
108,
15,
206,
95,
23,
10,
10,
225,
125,
162,
27,
173,
15,
43,
35,
63,
13,
12,
125,
32,
106,
80,
30,
89,
1443,
41,
18,
40,
98,
14,
16,
100,
34,
22,
179,
53,
1301,
17,
16,
297,
446,
111,
122,
1064,
48,
54,
110,
131,
111,
54,
99,
467,
41,
13,
123,
34,
29,
13,
13,
21,
11,
28,
1048,
11,
17,
20,
19,
50,
1870,
23,
58,
195,
93,
57,
58,
39,
35,
30,
14,
18,
217,
131,
170,
133,
38,
36,
17,
22,
22,
56,
14,
19,
14,
211,
183,
16,
413,
184,
121,
11,
10,
95,
68,
10,
34,
10,
11,
25,
102,
14,
97,
2878,
52,
124,
133,
15,
29,
133,
423,
88,
14,
59,
67,
97,
12,
839,
32,
324,
14,
11,
10,
48,
48,
698,
53,
1718,
1040,
16,
15171,
105,
10,
16,
10,
180,
32,
65,
14,
639,
68,
23,
10,
61,
32,
66,
12,
27,
53,
121,
2894,
73,
125,
29,
27,
205,
27,
748,
51,
13,
14,
27,
15,
15,
66,
714,
40,
11,
29,
15,
14,
229,
91,
1912,
15,
477,
37,
362,
35,
511,
44,
78,
14,
36,
18,
273,
20,
23,
20,
239,
130,
15,
57,
11,
86,
108,
56,
444,
44,
47,
61,
10,
96,
13,
60,
16,
11,
15,
24,
14,
29,
30,
15,
38,
16,
10,
11,
219,
12,
22,
14,
101,
52,
44,
12,
31,
97,
33,
16,
18,
14,
347,
85,
65,
12,
18,
30,
16,
19,
11,
122,
86,
160,
13,
37,
55,
37,
36,
30,
27,
10,
431,
157,
148,
31,
14,
10,
11,
121,
25,
10,
37,
55,
151,
11,
17,
36,
16,
69,
666,
19,
69,
44,
88,
17,
108,
13,
19,
603,
427,
29,
63,
26,
42,
14,
84,
270,
15,
379,
26,
28,
44,
92,
119,
126,
86,
328,
2041,
31,
333,
459,
64,
436,
62,
1535,
44,
249,
87,
15,
10,
25,
16,
17,
31,
14,
463,
11,
912,
255,
80,
32,
13,
53,
14,
15,
55,
147,
2648,
429,
1184,
11,
245,
81,
78,
56,
4096,
12,
10,
26,
30,
79,
24,
895,
14,
132,
306,
48,
1050,
19,
32,
23,
26,
11,
10,
101,
53,
184,
67,
13,
31,
6734,
10,
67,
2336,
77,
20,
69,
16,
139,
75,
65,
54,
67,
98,
897,
118,
308,
29,
10,
10,
19,
11,
78,
10,
601,
135,
1571,
10,
98,
290,
31,
78,
838,
139,
26,
9762,
11,
92,
522,
18,
21,
23,
14,
104,
170,
742,
10,
80,
174,
4370,
11,
61,
25,
22,
35,
89,
37,
19,
62,
78,
72,
100,
13,
1312,
22,
26,
12,
45,
14,
31,
24,
25,
10,
22,
396,
22,
10,
32,
7341,
40,
235,
6026,
11,
15,
10,
12,
15,
318,
147,
45,
65,
13,
17,
27,
337,
739,
104,
11,
275,
10,
34,
16,
10,
25,
24,
29,
13,
42,
73,
82,
25,
55,
11,
14,
10,
20,
13,
13,
15,
12,
18,
13,
16,
14,
19,
14,
10,
11,
19,
21,
392,
192,
166,
12,
58,
36,
27,
26,
30,
46,
11,
10,
181,
286,
92,
100,
20,
98,
95,
50,
19,
15,
97,
29,
1007,
23,
60,
19,
243,
102,
25,
277,
16,
19,
11,
29,
15,
47,
564,
169,
66,
13,
1232,
310,
11,
58,
12,
11,
15,
30,
33,
52,
11,
22,
64,
10,
13,
555,
134,
13,
40,
24,
12,
122,
1018,
117,
62,
21,
94,
12,
43,
62,
13,
12,
10,
25,
31,
21,
38,
66,
70,
16,
18,
20,
38,
37,
233,
495,
12,
20,
13,
12,
621,
240,
32,
14,
12,
94,
782,
26,
54,
35,
17,
37,
17,
52,
10,
14,
654,
14,
38,
26,
13,
295,
30,
11,
27,
83,
95,
17,
114,
22,
25,
18,
15,
402,
1102,
337,
107,
86,
160,
22,
139,
89,
20,
63,
44,
21,
10,
10,
343,
11,
28,
17,
22,
97,
29,
21,
16,
125,
46,
24,
125,
10,
12,
456,
40,
15,
11,
1362,
14,
13,
27,
49,
11,
13,
19,
74,
20,
21,
13,
31,
71,
28,
30,
51,
13,
33,
119,
73,
1272,
10,
19,
24,
19,
42,
21,
11,
11,
34,
15,
41,
95,
10,
64,
103,
353,
31,
101,
27,
15,
27,
55,
10,
71,
31,
104,
48,
14,
13,
21,
20,
33,
110,
15,
42,
15,
48,
1552,
17,
199,
262,
14,
22,
2180,
19,
3109,
86,
106,
20,
10,
82,
47,
12,
874,
997,
28,
24,
70,
45,
25,
16,
80,
42,
538,
10,
39,
15,
53,
33,
56,
10,
86,
399,
34,
42,
22,
106,
12,
10,
198,
17,
12,
35,
76,
31,
26,
26,
12,
19,
12,
27,
55,
53,
25,
58,
195,
221,
13,
323,
2968,
22,
237,
14,
109,
10,
802,
47,
56,
2183,
1862,
103,
66,
46,
618,
11,
12,
24,
13,
78,
51,
87,
10,
788,
10,
107,
12,
12,
43,
10,
10,
21,
33,
198,
46,
60,
41,
7753,
34,
111,
17,
11,
157,
49,
89,
18,
35,
140,
11,
173,
53,
762,
10,
46,
58,
17,
10,
11,
136,
19,
164,
14,
30,
149,
12,
32,
25,
20,
612,
42,
383,
16,
190,
11,
146,
44,
120,
64,
20,
45,
68,
39,
10,
49,
80,
41,
475,
94,
55,
17,
24,
19,
416,
103,
216,
51,
2552,
75,
405,
315,
27,
353,
2961,
75,
16,
38,
12,
31,
28,
16,
33,
10,
44,
14,
69,
65,
17,
94,
11,
10,
203,
17,
55,
1617,
4922,
21,
465,
10,
1261,
109,
32,
15,
10,
27,
24,
18,
160,
33,
75,
11,
19,
91,
142,
1052,
128,
15,
69,
5371,
1047,
347,
197,
45,
1625,
370,
14,
15,
327,
46,
127,
46,
17,
19,
84,
12,
33,
2670,
609,
11,
1703,
748,
335,
13,
30,
19,
285,
422,
151,
174,
48,
74,
34,
34,
1693,
20,
53,
49,
17,
160,
32,
37,
10,
156,
28,
1754,
22,
18,
12,
20,
60,
11,
197,
10,
11,
21,
75,
297,
124,
24,
84,
11,
11,
19,
68,
28,
10,
24,
11,
5669,
2729,
696,
16,
99,
16,
14,
23,
124,
6484,
27,
40,
13,
2552,
84,
945,
198,
72,
40,
11,
13,
605,
103,
19,
29,
32,
18,
10,
14,
146,
157,
14,
88,
92,
21,
256,
444,
17,
26,
63,
10,
250,
14,
12,
64,
58,
192,
294,
138,
138,
38,
14,
32,
16,
142,
11,
47,
44,
722,
31,
14,
40,
15,
13,
167,
328,
24,
15,
44,
20,
121,
318,
39,
21,
93,
43,
34,
173,
10,
14,
58,
12,
30,
41,
2079,
17,
44,
152,
16,
30,
754,
99,
44,
199,
24,
13,
25,
21,
14,
236,
24,
32,
78,
61,
12,
13,
759,
162,
38,
115,
11,
32,
72,
88,
15,
247,
14,
47,
11,
12,
51,
189,
10,
10,
117,
197,
30,
10,
14,
156,
11,
22,
37,
24,
14,
15,
18,
100,
17,
154,
25,
390,
1751,
110,
14,
10,
29,
10,
12,
1114,
182,
18,
34,
659,
38,
19,
35,
64,
21,
11,
294,
18,
13,
11,
112,
12,
80,
39,
12,
20,
230,
21,
2835,
39,
742,
10,
23,
17,
380,
11,
15,
47,
75,
21,
65,
69,
18,
43,
15,
324,
33,
12,
92,
90,
133,
18,
50,
44,
14,
22,
2063,
23,
732,
22,
54,
10,
18,
200,
464,
94,
94,
48,
51,
22,
57,
102,
16,
98,
15,
80,
113,
207,
405,
83,
1404,
12,
2275,
127,
35,
10,
12,
10,
59,
13,
262,
10,
720,
31,
34,
27,
139,
27,
26,
18,
24,
137,
145,
13,
313,
54,
10,
224,
65,
17,
1651,
31,
14,
10,
10,
21,
56,
252,
47,
41,
232,
13,
23,
28,
215,
1192,
21,
58,
17,
289,
327,
187,
51,
88,
331,
57,
3007,
171,
199,
13,
35,
158,
14,
74,
34,
65,
20,
119,
68,
36,
12,
72,
640,
32,
11,
12,
69,
597,
32,
414,
67,
29,
18,
1539,
12,
384,
10,
401,
12,
17,
11,
152,
44,
35,
24,
30,
125,
3897,
466,
58,
1794,
56,
41,
75,
13,
383,
11,
92,
24,
1792,
14,
20,
15,
26,
4257,
11,
11,
72,
10,
18,
42,
13,
15,
16,
1475,
157,
12,
42,
317,
15,
33,
135,
154,
10,
48,
20,
23,
93,
10,
28,
11,
276,
39,
721,
77,
58,
20,
122,
42,
13,
112,
25,
167,
12,
26,
41,
11,
31,
38,
14,
20,
22,
135,
11,
99,
103,
1612,
10,
181,
11,
136,
211,
19,
49,
55,
41,
10,
33,
41,
222,
276,
84,
160,
41,
62,
68,
23,
47,
48,
23,
39,
46,
16,
46,
12,
542,
159,
192,
2141,
4924,
10,
78,
64,
1036,
12,
43,
27,
36,
19,
13,
32,
96,
10,
13,
17,
11,
906,
11,
10,
18,
13,
11,
31,
19,
41,
28,
60,
68,
167,
26,
95,
41,
201,
11,
295,
44,
226,
22,
54,
50,
10,
82,
27,
11,
135,
22,
11,
132,
14,
19,
52,
25,
2615,
17,
10,
52,
14,
387,
41,
1214,
1271,
14,
25,
48,
10,
13,
98,
22,
118,
30,
815,
948,
35,
104,
2951,
5379,
32,
140,
127,
21,
16,
13,
341,
39,
24,
195,
14,
90,
23,
331,
28,
23,
33,
12,
11,
243,
93,
36,
44,
13,
13,
42,
10,
58,
17,
16,
28,
497,
19,
11,
818,
31,
10,
10,
983,
56,
248,
19,
121,
40,
32,
15,
19,
25,
19,
176,
13,
14,
51,
91,
39,
395,
80,
18,
170,
160,
66,
13,
12,
53,
12,
52,
17,
12,
24,
61,
26,
38,
13,
8635,
43,
25,
64,
27,
64,
17,
47,
158,
2209,
12,
179,
278,
37,
24,
640,
252,
34,
413,
99,
16,
3076,
102,
15,
13,
13,
13,
80,
29,
57,
12,
65,
26,
16,
30,
25,
10,
12,
13,
123,
17,
87,
439,
29,
16,
17,
25,
55,
106,
36,
365,
144,
1397,
57,
76,
14,
48,
56,
161,
1010,
74,
19,
53,
69,
81,
20,
10,
36,
20,
25,
108,
53,
26,
269,
246,
12,
827,
77,
11,
127,
20,
15,
66,
92,
74,
91,
34,
14,
132,
368,
41,
48,
22,
346,
71,
32,
35,
776,
11,
10,
24,
32,
31,
187,
20,
717,
185,
26,
16,
38,
34,
12,
234,
689,
46,
93,
1513,
101,
29,
11,
11,
92,
13,
18,
13,
14,
27,
28,
45,
11,
40,
116,
10127,
596,
93,
31,
3500,
347,
18,
38,
1093,
283,
19,
26,
11,
12,
512,
18,
85,
18,
166,
28,
120,
29,
15,
1291,
158,
11,
10,
35,
188,
45,
15,
14,
37,
11,
86,
1775,
45,
43,
31,
43,
20,
415,
135,
73,
13,
41,
53,
998,
4144,
352,
32,
39,
20,
21,
37,
178,
135,
1672,
51,
127,
797,
325,
10,
15,
652,
111,
177,
138,
511,
52,
2991,
27,
24,
20,
960,
2036,
53,
79,
33,
29,
31,
10,
24,
15,
51,
177,
31,
61,
149,
25,
13,
11,
19,
10,
12,
11,
11,
12,
23,
12,
19,
16,
15,
11,
12,
13,
17,
12,
15,
87,
22,
10,
13,
14,
659,
19,
237,
12,
19,
10,
22,
10,
13,
14,
152,
39,
19,
103,
161,
688,
11,
15,
12,
19,
20,
28,
25,
39,
17,
23,
25,
22,
15,
20,
10,
10,
11,
10,
11,
16,
10,
19,
16,
13,
12,
22,
21,
23,
20,
31,
17,
18,
15,
10,
14,
10,
11,
13,
15,
15,
16,
24,
21,
26,
21,
29,
19,
21,
13,
11,
11,
13,
10,
13,
16,
18,
18,
19,
22,
29,
28,
27,
24,
18,
10,
14,
16,
23,
18,
26,
21,
11,
26,
19,
18,
16,
11,
10,
10,
15,
15,
15,
16,
17,
17,
16,
18,
21,
15,
24,
16,
16,
16,
12,
13,
17,
22,
27,
20,
23,
18,
17,
21,
13,
15,
10,
18,
10,
13,
19,
18,
19,
25,
32,
29,
29,
35,
39,
30,
35,
24,
20,
16,
30,
16,
70,
16,
18,
19,
11,
16,
12,
11,
10,
11,
11,
18,
16,
17,
16,
22,
26,
26,
19,
23,
18,
16,
20,
17,
14,
12,
12,
13,
16,
17,
31,
27,
19,
27,
27,
22,
19,
17,
11,
15,
21,
32,
22,
24,
25,
10,
10,
11,
18,
20,
25,
14,
29,
14,
18,
17,
17,
14,
19,
17,
24,
33,
19,
23,
11,
20,
16,
11,
12,
17,
13,
19,
34,
28,
34,
28,
20,
27,
35,
39,
29,
25,
13,
15,
10,
12,
14,
14,
11,
11,
11,
21,
11,
15,
11,
22,
23,
30,
28,
27,
40,
30,
36,
39,
34,
16,
20,
10,
17,
14,
17,
16,
12,
21,
11,
12,
14,
15,
24,
23,
23,
16,
15,
12,
16,
12,
13,
14,
12,
10,
18,
48,
10,
28,
316,
11,
11,
29,
12,
10,
55,
18,
14,
18,
11,
13,
111,
80,
10,
10,
115,
10,
3876,
20,
33,
24,
11,
35,
22,
53,
31,
14,
14,
164,
10,
466,
52,
751,
398,
235,
397,
15,
43,
17,
18,
37,
18,
10,
10,
33,
11,
193,
45,
85,
183,
102,
11,
142,
45,
71,
133,
21,
155,
41,
148,
10,
32,
449,
81,
30,
37,
38,
69,
3207,
1227,
11,
104,
61,
12,
14,
13,
64,
12,
13,
133,
10,
26,
12,
25,
24,
617,
32,
21,
114,
15,
468,
29,
12,
10,
36,
10,
20,
76,
26,
16,
180,
123,
1245,
16,
40,
49,
147,
105,
10,
17,
56,
1193,
32,
49,
21,
16,
29,
24,
55,
10759,
148,
10,
10,
37,
58,
11,
13,
25,
29,
16,
54,
1029,
52,
32,
20,
15,
121,
100,
31,
336,
51,
63,
2486,
18,
11,
15,
751,
13,
13,
19,
88,
21,
467,
318,
14,
83,
581,
20,
18,
24,
12,
26,
15,
23,
50,
60,
67,
27,
19,
29,
455,
270,
40,
20,
239,
12,
55,
19,
373,
22,
23,
13,
12,
11,
258,
21,
39,
18,
13,
22,
58,
40,
23,
120,
21,
25,
111,
55,
11,
17,
12,
16,
40,
255,
34,
27,
10,
14,
59,
14,
10,
23,
34,
22,
63,
16,
53,
33,
27,
104,
15,
17,
14,
675,
34,
18,
11,
102,
41,
13,
60,
31,
11,
19,
27,
101,
11,
71,
212,
30,
10,
11,
846,
13,
130,
59,
5493,
34,
31,
28,
105,
848,
103,
188,
12,
21,
10,
100,
11,
593,
16,
77,
14,
65,
335,
673,
175,
50,
33,
17,
217,
172,
21,
22,
22,
258,
57,
383,
406,
28,
13,
18,
27,
57,
24,
78,
11,
66,
83,
124,
16,
18,
95,
834,
37,
13,
154,
79,
994,
27,
11,
648,
49,
3672,
10,
15,
56,
63,
41,
20,
18,
22,
15,
467,
42,
41,
202,
14,
12,
14,
36,
50,
30,
28,
146,
12,
16,
14,
46,
10,
1104,
118,
193,
117,
1064,
40,
85,
11,
37,
19,
21,
55,
12,
48,
158,
45,
54,
61,
4919,
322,
129,
11,
42,
258,
109,
408,
11,
53,
17,
11,
91,
15,
42,
41,
30,
26,
10,
87,
32,
834,
10,
2971,
2212,
37,
28,
214,
33,
16,
40,
25,
14,
42,
21,
31,
44,
26,
45,
18,
24,
291,
9155,
141,
16,
14,
2437,
251,
111,
60,
81,
13,
18,
20,
3673,
72,
664,
13,
13,
16,
28,
10,
72,
53,
18,
700,
23,
152,
18,
14,
18,
12,
10,
16,
23,
25,
31,
18,
16,
14,
19,
13,
15,
16,
12,
10,
12,
11,
15,
16,
25,
17,
10,
10,
10,
11,
10,
11,
13,
52,
24,
15,
273,
35,
11,
15,
91,
75,
29,
37,
35,
20,
32,
172,
33,
16,
22,
17,
35,
16,
11,
11,
11,
188,
15,
12,
616,
11,
10,
13,
38,
14,
51,
13,
41,
64,
11,
26,
4821,
10,
11,
20,
33,
187,
56,
30,
213,
13,
179,
46,
13,
10,
57,
15,
10,
11,
10,
16,
16,
327,
208,
10,
2094,
12,
14,
51,
155,
20,
23,
63,
11,
1822,
36,
46,
15,
155,
17,
131,
13,
16,
399,
16,
65,
4301,
34,
99,
47,
47,
31,
31,
18,
16,
13,
31,
45,
1605,
62,
46,
230,
26,
28,
16,
13,
78,
281,
20,
24,
12,
15,
408,
10,
25,
16,
346,
29,
10,
12,
21,
122,
21,
20,
19,
11,
11,
25,
17,
19,
27,
13,
13,
13,
17,
17,
10,
13,
10,
10,
10,
12,
12,
22,
14,
11,
10,
11,
13,
15,
17,
62,
14,
13,
10,
89,
13,
12,
16,
21,
64,
10,
285,
36,
11,
28,
14,
14,
14,
11,
10,
11,
11,
12,
13,
15,
11,
14,
16,
17,
10,
150,
102,
210,
349,
21,
50,
13,
324,
23,
19,
11,
155,
27,
45,
10,
11,
463,
246,
118,
45,
58,
12,
115,
34,
1150,
10,
19,
225,
39,
95,
191,
18,
10,
31,
20,
22,
29,
34,
45,
49,
38,
52,
64,
52,
62,
45,
40,
35,
40,
21,
12,
13,
10,
10,
17,
11,
18,
607,
12,
10,
11,
10,
12,
10,
13,
11,
14,
10,
11,
13,
23,
10,
13,
11,
15,
13,
829,
14,
12,
11,
28,
24,
25,
36,
33,
40,
53,
41,
48,
45,
35,
46,
29,
19,
18,
15,
14,
12,
13,
12,
15,
14,
18,
13,
10,
10,
12,
16,
12,
17,
17,
12,
14,
17,
25,
31,
29,
45,
38,
41,
44,
27,
39,
31,
27,
24,
10,
18,
13,
10,
18,
11,
12,
10,
12,
12,
10,
14,
11,
16,
11,
15,
20,
18,
18,
14,
16,
73,
10,
10,
11,
10,
11,
14,
11,
15,
10,
28,
15,
14,
12,
12,
15,
11,
10,
10,
12,
11,
10,
14,
10,
11,
10,
19,
10,
14,
15,
13,
12,
12,
17,
18,
13,
15,
19,
10,
10,
12,
18,
21,
16,
13,
10,
18,
11,
11,
12,
13,
10,
10,
11,
18,
16,
19,
34,
12,
29,
30,
32,
29,
43,
39,
33,
31,
25,
27,
26,
11,
10,
15,
14,
13,
17,
13,
12,
13,
10,
10,
15,
17,
19,
20,
21,
28,
33,
47,
50,
32,
41,
28,
33,
31,
27,
18,
11,
12,
13,
13,
17,
12,
11,
10,
11,
12,
10,
13,
10,
16,
12,
19,
23,
22,
28,
29,
23,
30,
37,
50,
41,
27,
16,
19,
11,
10,
13,
13,
17,
13,
12,
12,
20,
11,
12,
13,
16,
14,
19,
25,
30,
35,
40,
44,
34,
35,
34,
25,
31,
14,
15,
10,
10,
11,
10,
10,
18,
22,
23,
16,
40,
33,
34,
40,
47,
40,
36,
42,
22,
10,
14,
12,
10,
13,
10,
20,
18,
17,
19,
23,
20,
18,
34,
38,
24,
33,
39,
38,
21,
39,
30,
16,
12,
10,
10,
15,
10,
14,
12,
22,
21,
23,
40,
26,
38,
28,
35,
38,
34,
39,
21,
29,
24,
16,
15,
10,
11,
10,
13,
14,
14,
18,
24,
18,
31,
35,
20,
31,
34,
46,
34,
35,
32,
26,
30,
31,
13,
15,
12,
15,
12,
13,
16,
12,
15,
10,
21,
29,
24,
21,
33,
32,
35,
31,
23,
21,
15,
19,
14,
11,
12,
17,
10,
10,
10,
12,
13,
11,
11,
17,
13,
10,
11,
10,
11,
14,
17,
20,
18,
15,
13,
13,
14,
17,
12,
21,
12,
12,
14,
14,
12,
12,
11,
13,
15,
14,
18,
20,
14,
11,
10,
16,
17,
15,
15,
23,
11,
14,
10,
10,
14,
13,
12,
11,
10,
14,
21,
11,
10,
16,
10,
13,
10,
12,
11,
10,
15,
15,
12,
10,
14,
22590,
35,
83,
236,
43,
10,
18,
49,
18,
14,
61,
77,
31,
11,
33,
13,
49,
42,
13,
11,
14,
13,
13,
13,
97,
10,
20,
10,
13,
30,
33,
33,
13,
19,
17,
64,
102,
1218,
11,
10,
98,
42,
34,
42,
14,
12,
10,
11,
12,
11,
12,
10,
10,
10,
11,
14,
14,
12,
11,
227,
23,
70,
11,
15,
31,
461,
10,
48,
23,
31,
16,
26,
33,
396,
37,
94,
36,
26,
20,
24,
24,
14,
15,
10,
18,
22,
15,
19,
32,
18,
31,
14,
14,
11,
10,
16,
13,
16,
15,
12,
13,
16,
19,
20,
30,
29,
31,
36,
37,
40,
38,
24,
25,
14,
17,
10,
10,
10,
19,
11,
10,
13,
20,
14,
19,
21,
23,
38,
27,
22,
43,
32,
29,
32,
39,
26,
11,
19,
10,
14,
12,
13,
10,
14,
13,
21,
11,
10,
11,
14,
15,
17,
12,
16,
15,
24,
21,
32,
28,
25,
46,
30,
42,
22,
32,
20,
15,
15,
10,
13,
11,
24,
22,
16,
22,
35,
42,
45,
31,
29,
31,
30,
34,
24,
23,
25,
10,
10,
10,
16,
20,
16,
11,
23,
15,
21,
23,
24,
33,
24,
30,
36,
31,
27,
31,
14,
13,
10,
11,
12,
14,
10,
11,
10,
10,
15,
17,
24,
27,
18,
16,
34,
20,
41,
39,
29,
35,
34,
25,
16,
17,
10,
11,
10,
18,
14,
10,
11,
12,
19,
21,
30,
16,
29,
29,
35,
32,
30,
28,
29,
34,
22,
11,
10,
10,
11,
18,
11,
20,
22,
30,
22,
28,
22,
24,
37,
28,
25,
19,
30,
23,
14,
10,
10,
12,
10,
10,
12,
1756,
15,
12,
13,
22,
16,
11,
22,
26,
23,
33,
42,
29,
44,
33,
50,
25,
32,
27,
21,
11,
15,
11,
34,
13,
10,
14,
16,
11,
12,
12,
10,
18,
23,
27,
30,
33,
34,
43,
38,
31,
48,
46,
40,
32,
41,
30,
12,
12,
12,
15,
11,
29,
11,
11,
10,
18,
13,
14,
12,
17,
17,
10,
10,
16,
21,
14,
13,
11,
13,
17,
16,
29,
21,
31,
35,
43,
35,
38,
32,
29,
34,
26,
20,
10,
25,
13,
12,
10,
14,
16,
12,
11,
10,
12,
10,
10,
10,
12,
15,
10,
12,
11,
11,
13,
10,
12,
13,
11,
15,
12,
12,
1248,
16,
17,
25,
56,
15,
12,
12,
10,
14,
10,
10,
17,
15,
13,
15,
20,
13,
11,
15,
14,
13,
11,
685,
13,
10,
13,
13,
13,
13,
16,
17,
14,
11,
10,
15,
13,
11,
15,
11,
12,
10,
10,
10,
14,
12,
12,
19,
13,
14,
12,
14,
12,
10,
11,
16,
13,
12,
11,
12,
10,
11,
13,
12,
11,
12,
14,
16,
10,
13,
436,
10,
12,
24,
11,
10,
14,
11,
10,
14,
12,
11,
11,
10,
10,
15,
33,
22,
11,
10,
12,
439,
20,
15,
10,
19,
19,
10,
12,
13,
12,
12,
10,
11,
11,
10,
12,
10,
10,
24,
30,
23,
14,
10,
10,
10,
10,
10,
11,
10,
11,
10,
12,
11,
12,
337,
11,
12,
14,
17,
18,
17,
10,
13,
12,
405,
22,
15,
11,
13,
11,
10,
17,
21,
28,
12,
10,
375,
12,
30,
25,
16,
12,
13,
10,
21,
18,
11,
14,
11,
11,
13,
12,
11,
339,
39,
12,
14,
21,
12,
11,
268,
23,
13,
10,
10,
14,
268,
10,
14,
238,
17,
10,
11,
11,
219,
17,
13,
12,
11,
17,
22,
15,
17,
30,
22,
29,
31,
33,
31,
19,
18,
11,
11,
14,
10,
10,
11,
10,
11,
12,
18,
14,
16,
24,
25,
36,
37,
37,
39,
22,
24,
33,
14,
12,
14,
11,
11,
14,
18,
25,
32,
34,
19,
34,
21,
23,
24,
14,
12,
418,
37,
26,
13,
28,
26,
13,
336,
35,
23,
10,
10,
10,
22,
19,
10,
15,
373,
13,
30,
38,
14,
14,
21,
22,
14,
325,
32,
28,
14,
13,
12,
10,
10,
10,
13,
13,
19,
15,
14,
17,
381,
22,
26,
12,
13,
20,
32,
20,
337,
11,
16,
27,
11,
22,
31,
13,
11,
24,
21,
14,
135,
12,
10,
10,
11,
21,
14,
18,
24,
22,
24,
24,
33,
39,
59,
34,
48,
33,
21,
19,
11,
12,
16,
12,
17,
10,
10,
18,
15,
11,
10,
12,
11,
10,
18,
12,
11,
12,
20,
32,
36,
34,
31,
24,
44,
40,
35,
35,
25,
23,
14,
10,
11,
10,
12,
12,
25,
15,
10,
15,
15,
15,
20,
15,
10,
14,
154,
188,
11,
11,
10,
127,
14,
14,
156,
10,
25,
36,
33,
21,
36,
39,
36,
45,
53,
52,
56,
56,
43,
72,
57,
47,
38,
29,
13,
12,
19,
13,
14,
21,
30,
286,
10,
12,
17,
10,
17,
19,
12,
13,
11,
12,
22,
30,
24,
12,
17,
20,
14,
15,
18,
19,
21,
26,
31,
24,
51,
43,
44,
43,
33,
25,
31,
27,
21,
12,
10,
12,
13,
15,
11,
15,
16,
16,
21,
27,
13,
10,
11,
12,
10,
20,
22,
29,
34,
36,
30,
40,
44,
56,
67,
45,
57,
47,
42,
35,
38,
22,
12,
15,
10,
13,
21,
11,
14,
15,
11,
13,
22,
10,
13,
10,
21,
12,
16,
10,
10,
11,
12,
10,
12,
14,
12,
12,
10,
11,
18,
11,
10,
11,
11,
14,
16,
12,
20,
10,
12,
15,
14,
11,
14,
16,
14,
13,
10,
13,
13,
12,
12,
18,
10,
10,
16,
13,
12,
17,
16,
16,
14,
12,
12,
10,
15,
18,
25,
30,
13,
21,
25,
34,
42,
32,
31,
24,
20,
10,
10,
10,
14,
14,
16,
15,
11,
11,
11,
19,
13,
26,
15,
21,
20,
21,
19,
21,
27,
42,
37,
34,
49,
51,
24,
30,
22,
24,
13,
11,
15,
11,
13,
11,
12,
13,
18,
17,
26,
22,
16,
36,
33,
37,
44,
27,
26,
20,
33,
21,
11,
10,
11,
12,
13,
10,
16,
15,
18,
13,
17,
27,
37,
22,
32,
31,
40,
26,
33,
21,
11,
11,
10,
10,
11,
10,
10,
20,
23,
17,
19,
25,
27,
35,
25,
40,
32,
30,
29,
33,
29,
23,
11,
10,
10,
12,
10,
13,
11,
20,
13,
13,
15,
16,
18,
12,
18,
30,
30,
26,
42,
33,
31,
40,
24,
27,
23,
23,
10,
11,
13,
11,
13,
12,
19,
11,
18,
14,
28,
28,
22,
45,
18,
41,
38,
28,
26,
20,
28,
18,
11,
11,
20,
14,
19,
18,
15,
32,
32,
38,
33,
39,
41,
37,
24,
30,
15,
21,
13,
10,
10,
20,
12,
18,
24,
36,
20,
22,
25,
37,
23,
30,
27,
34,
16,
10,
25,
11,
15,
12,
10,
14,
16,
14,
10,
11,
10,
332,
10,
11,
11,
19,
10,
11,
12,
10,
14,
10,
13,
10,
14,
13,
13,
10,
11,
10,
10,
11,
11,
17,
11,
10,
13,
15,
16,
12,
12,
13,
16,
24,
16,
14,
15,
13,
13,
11,
15,
10,
361,
15,
11,
15,
11,
11,
12,
12,
10,
13,
11,
15,
12,
11,
10,
104,
13,
20,
16,
18,
23,
29,
26,
27,
31,
36,
33,
40,
27,
31,
19,
17,
13,
18,
17,
10,
13,
14,
10,
13,
10,
13,
16,
23,
29,
28,
23,
27,
51,
25,
28,
22,
20,
19,
11,
12,
11,
12,
12,
11,
12,
11,
11,
17,
10,
12,
17,
27,
37,
23,
33,
21,
21,
23,
19,
14,
10,
13,
10,
11,
11,
13,
15,
12,
19,
14,
30,
11,
30,
33,
21,
19,
32,
14,
11,
15,
10,
12,
15,
12,
15,
13,
14,
12,
34,
18,
24,
25,
24,
29,
16,
23,
14,
14,
11,
16,
20,
20,
18,
24,
32,
36,
37,
35,
26,
20,
31,
21,
11,
15,
19,
10,
13,
13,
13,
11,
26,
34,
27,
17,
21,
28,
17,
22,
24,
15,
11,
10,
10,
10,
11,
10,
18,
28,
22,
29,
33,
32,
25,
25,
15,
18,
17,
28,
20,
24,
22,
12,
14,
13,
10,
10,
28,
21,
23,
21,
16,
12,
16,
19,
21,
15,
20,
24,
19,
36,
31,
31,
46,
32,
43,
38,
34,
20,
11,
10,
13,
10,
10,
17,
14,
11,
11,
12,
13,
14,
13,
17,
12,
20,
23,
31,
29,
29,
35,
38,
35,
33,
39,
38,
34,
11,
10,
13,
17,
12,
13,
16,
10,
14,
11,
23,
14,
10,
17,
18,
22,
17,
24,
30,
21,
35,
39,
38,
23,
20,
24,
24,
14,
13,
12,
13,
14,
10,
10,
22,
306,
12,
14,
534,
18,
25,
10,
24,
10,
48,
12,
54,
86,
11,
15,
14,
23,
25,
35,
18,
22,
27,
27,
19,
23,
24,
18,
19,
11,
11,
15,
13,
12,
11,
11,
11,
15,
16,
26,
26,
24,
22,
25,
32,
33,
15,
30,
13,
17,
10,
17,
20,
12,
16,
23,
19,
34,
32,
29,
35,
19,
26,
26,
15,
16,
14,
10,
11,
11,
15,
13,
12,
16,
16,
11,
17,
25,
23,
24,
20,
42,
44,
20,
26,
19,
16,
13,
15,
19,
14,
22,
15,
16,
23,
23,
24,
38,
38,
32,
24,
19,
15,
13,
10,
19,
10,
17,
12,
11,
15,
14,
23,
31,
22,
20,
27,
16,
22,
13,
12,
20,
10,
15,
19,
20,
16,
29,
19,
32,
18,
29,
17,
10,
15,
18,
12,
14,
12,
18,
11,
20,
31,
32,
21,
28,
33,
24,
33,
21,
17,
15,
11,
12,
12,
11,
17,
11,
18,
13,
28,
23,
26,
21,
31,
29,
22,
27,
22,
18,
15,
11,
10,
10,
10,
11,
12,
12,
15,
16,
26,
22,
19,
28,
31,
40,
31,
36,
36,
20,
14,
12,
10,
17,
10,
15,
16,
10,
13,
19,
15,
24,
22,
28,
30,
45,
38,
28,
43,
35,
29,
29,
25,
10,
10,
14,
12,
11,
11,
14,
16,
13,
10,
11,
10,
16,
19,
14,
18,
17,
27,
29,
23,
21,
22,
44,
36,
32,
32,
22,
23,
11,
10,
10,
10,
13,
19,
13,
17,
16,
10,
10,
42,
11,
26,
12,
274,
19,
21,
32,
11,
10,
17,
34,
23,
27,
29,
22,
37,
22,
29,
23,
13,
16,
14,
10,
10,
10,
11,
10,
18,
20,
17,
23,
23,
19,
25,
31,
28,
19,
18,
22,
18,
10,
21,
13,
13,
10,
12,
14,
14,
17,
20,
17,
12,
27,
26,
24,
27,
33,
26,
24,
15,
20,
12,
10,
16,
12,
10,
21,
12,
21,
32,
24,
32,
27,
20,
16,
19,
14,
16,
15,
16,
12,
15,
15,
10,
22,
23,
23,
20,
26,
19,
29,
31,
18,
25,
17,
14,
17,
11,
10,
12,
13,
18,
26,
27,
30,
21,
29,
21,
23,
28,
27,
16,
11,
12,
12,
11,
20,
27,
15,
24,
23,
27,
27,
27,
20,
16,
19,
13,
11,
14,
23,
24,
21,
15,
16,
15,
19,
25,
18,
13,
11,
10,
10,
11,
12,
11,
11,
11,
16,
29,
15,
18,
25,
27,
12,
32,
29,
19,
21,
18,
26,
15,
27,
33,
29,
27,
33,
41,
42,
28,
40,
42,
28,
20,
11,
11,
10,
15,
15,
14,
14,
12,
14,
10,
15,
11,
16,
11,
17,
17,
18,
15,
14,
22,
23,
31,
36,
33,
33,
24,
18,
15,
12,
11,
14,
12,
11,
11,
17,
15,
17,
19,
20,
30,
28,
44,
28,
44,
43,
36,
40,
26,
23,
23,
13,
19,
12,
10,
11,
11,
124,
58,
12,
30,
11,
28,
90,
14,
12,
11,
15,
12,
182,
67,
17,
16,
29,
18,
44,
10,
69,
13,
13,
107,
35,
12,
47,
11,
19,
26,
32,
23,
13,
13,
22,
33,
12,
23,
10,
11,
20,
18,
11,
18,
42,
23,
18,
24,
30,
21,
22,
18,
10,
11,
14,
12,
16,
22,
16,
32,
25,
16,
31,
20,
25,
20,
16,
14,
15,
10,
12,
13,
12,
18,
18,
20,
28,
24,
31,
34,
19,
27,
20,
18,
24,
11,
11,
22,
10,
11,
13,
15,
22,
19,
26,
24,
31,
31,
33,
26,
25,
17,
13,
13,
11,
13,
13,
18,
15,
23,
26,
33,
27,
31,
26,
29,
29,
21,
13,
10,
12,
15,
10,
11,
17,
13,
16,
24,
23,
22,
32,
19,
17,
15,
10,
14,
12,
10,
10,
19,
14,
18,
21,
18,
41,
18,
24,
26,
21,
25,
16,
13,
10,
10,
14,
11,
14,
10,
16,
15,
29,
20,
24,
23,
26,
25,
24,
24,
12,
11,
12,
12,
20,
19,
21,
23,
20,
29,
35,
30,
44,
35,
33,
34,
24,
19,
12,
13,
10,
14,
16,
15,
15,
26,
15,
27,
26,
33,
33,
27,
27,
26,
31,
12,
10,
14,
28,
11,
13,
11,
16,
15,
26,
24,
29,
38,
30,
32,
35,
36,
25,
19,
24,
19,
16,
11,
22,
13,
16,
15,
10,
22,
27,
30,
32,
30,
29,
20,
17,
12,
10,
10,
15,
11,
11,
10,
16,
15,
24,
18,
21,
22,
36,
28,
25,
21,
14,
13,
12,
11,
13,
13,
15,
13,
19,
31,
21,
26,
29,
32,
19,
18,
11,
13,
14,
12,
11,
10,
24,
22,
26,
17,
20,
14,
14,
22,
16,
25,
19,
194,
28,
10,
14,
11,
12,
11,
15,
17,
19,
17,
24,
28,
24,
26,
31,
20,
28,
27,
13,
11,
14,
12,
10,
14,
10,
14,
17,
22,
24,
18,
27,
17,
26,
30,
14,
16,
13,
11,
17,
11,
12,
11,
15,
12,
20,
25,
24,
27,
19,
30,
32,
23,
20,
16,
12,
12,
10,
15,
24,
18,
32,
36,
28,
33,
40,
42,
36,
34,
17,
12,
13,
11,
10,
12,
10,
13,
10,
18,
10,
12,
15,
12,
20,
28,
29,
26,
29,
28,
30,
25,
28,
23,
15,
11,
10,
12,
11,
18,
11,
17,
14,
14,
11,
17,
19,
15,
16,
10,
25,
28,
23,
27,
40,
31,
46,
32,
30,
24,
11,
10,
11,
10,
16,
13,
18,
14,
13,
17,
13,
16,
14,
13,
11,
25,
22,
33,
38,
32,
16,
24,
23,
13,
17,
10,
10,
18,
12,
20,
19,
20,
34,
16,
27,
19,
27,
20,
20,
11,
11,
10,
10,
10,
10,
10,
12,
11,
13,
11,
10,
16,
12,
19,
19,
15,
28,
25,
31,
27,
28,
17,
10,
13,
11,
18,
21,
22,
31,
17,
30,
19,
26,
30,
20,
15,
13,
13,
16,
17,
10,
18,
17,
14,
29,
26,
28,
15,
25,
24,
23,
27,
12,
15,
17,
16,
17,
22,
41,
19,
29,
13,
23,
17,
15,
21,
28,
20,
32,
33,
23,
31,
36,
22,
18,
12,
19,
12,
11,
12,
13,
14,
16,
14,
16,
20,
17,
25,
12,
33,
28,
15,
11,
10,
11,
11,
11,
14,
18,
20,
21,
27,
24,
35,
22,
23,
32,
18,
17,
12,
14,
15,
12,
11,
10,
12,
10,
14,
10,
11,
15,
11,
23,
22,
25,
32,
37,
28,
44,
41,
49,
24,
25,
18,
14,
13,
12,
11,
16,
14,
10,
12,
17,
17,
13,
10,
18,
12,
16,
17,
28,
23,
39,
26,
35,
32,
44,
35,
24,
32,
16,
10,
14,
12,
12,
18,
20,
16,
13,
19,
23,
44,
34,
41,
20,
15,
10,
10,
10,
10,
10,
10,
10,
14,
20,
35,
20,
36,
31,
48,
43,
47,
43,
52,
40,
52,
30,
19,
19,
20,
16,
11,
11,
12,
17,
16,
14,
89,
11,
12,
15,
14,
15,
36,
24,
42,
38,
33,
53,
35,
36,
29,
23,
22,
14,
13,
16,
13,
267,
15,
13,
10,
14,
14,
11,
10,
11,
12,
12,
12,
13,
15,
13,
20,
18,
27,
33,
38,
35,
35,
27,
29,
27,
37,
25,
18,
19,
14,
10,
13,
11,
11,
11,
11,
11,
17,
19,
18,
30,
26,
45,
35,
27,
39,
32,
31,
27,
32,
19,
17,
12,
12,
12,
11,
13,
15,
12,
10,
10,
19,
25,
23,
25,
26,
32,
36,
37,
37,
39,
32,
45,
22,
31,
18,
16,
11,
14,
11,
17,
11,
10,
13,
19,
14,
15,
17,
18,
23,
29,
33,
30,
42,
26,
36,
41,
24,
14,
24,
10,
19,
10,
13,
27,
18,
31,
29,
30,
32,
41,
28,
36,
28,
37,
15,
23,
12,
11,
10,
11,
17,
16,
11,
26,
30,
36,
34,
24,
39,
37,
36,
25,
27,
19,
17,
13,
15,
11,
10,
11,
10,
10,
11,
14,
11,
13,
13,
10,
12,
10,
16,
15,
18,
13,
19,
29,
33,
36,
20,
29,
22,
17,
30,
17,
22,
15,
10,
14,
14,
10,
11,
15,
12,
19,
16,
16,
21,
16,
21,
20,
26,
21,
24,
19,
13,
11,
361,
14,
34,
13,
92,
30,
10,
12,
10,
10,
31,
135,
10,
21,
12,
48,
12,
16,
21,
18,
22,
18,
24,
26,
30,
26,
20,
30,
28,
21,
22,
11,
10,
12,
11,
10,
13,
10,
15,
19,
13,
13,
19,
30,
26,
23,
36,
26,
29,
32,
20,
19,
23,
15,
12,
10,
16,
13,
17,
11,
32,
21,
25,
29,
17,
30,
32,
32,
29,
29,
34,
10,
24,
10,
17,
14,
11,
15,
10,
13,
30,
30,
36,
25,
21,
40,
27,
32,
30,
24,
17,
14,
11,
13,
10,
11,
18,
24,
24,
23,
27,
25,
29,
31,
18,
20,
15,
15,
10,
10,
13,
17,
21,
21,
25,
25,
24,
29,
32,
25,
29,
25,
29,
23,
31,
20,
11,
13,
15,
14,
15,
31,
24,
28,
41,
26,
29,
38,
32,
18,
21,
16,
15,
10,
13,
13,
11,
10,
10,
14,
18,
19,
18,
29,
26,
29,
40,
33,
33,
23,
32,
14,
17,
13,
18,
19,
19,
32,
33,
39,
34,
39,
38,
32,
40,
33,
30,
23,
21,
10,
16,
24,
17,
12,
12,
17,
11,
19,
26,
29,
27,
33,
28,
36,
29,
26,
37,
29,
37,
17,
16,
11,
10,
15,
14,
16,
13,
13,
24,
23,
24,
33,
32,
33,
42,
32,
29,
28,
33,
25,
20,
11,
11,
11,
11,
11,
12,
11,
12,
18,
16,
21,
27,
23,
30,
35,
34,
36,
37,
30,
27,
32,
17,
13,
12,
13,
10,
12,
14,
20,
22,
22,
24,
43,
35,
27,
30,
40,
41,
35,
26,
25,
14,
10,
12,
10,
11,
11,
12,
16,
15,
12,
10,
16,
25,
19,
19,
22,
38,
29,
47,
31,
35,
35,
40,
31,
19,
12,
11,
15,
10,
17,
19,
13,
13,
25,
32,
34,
36,
27,
28,
29,
28,
29,
28,
26,
20,
16,
13,
11,
10,
10,
13,
13,
15,
11,
10,
13,
17,
18,
18,
18,
17,
18,
30,
32,
35,
31,
22,
25,
35,
29,
28,
26,
18,
12,
10,
10,
10,
14,
12,
13,
16,
12,
14,
18,
24,
19,
25,
32,
30,
35,
43,
46,
31,
26,
29,
31,
30,
15,
15,
15,
14,
11,
79,
11,
13,
16,
10,
15,
16,
16,
15,
22,
25,
19,
30,
30,
29,
23,
20,
13,
14,
15,
11,
11,
15,
18,
13,
23,
27,
22,
23,
32,
28,
26,
26,
22,
23,
25,
20,
12,
12,
11,
10,
10,
24,
22,
19,
29,
17,
25,
21,
18,
17,
25,
23,
14,
10,
13,
10,
18,
18,
24,
18,
28,
25,
32,
29,
35,
21,
23,
17,
12,
20,
11,
20,
21,
22,
28,
17,
39,
19,
26,
25,
21,
27,
19,
13,
14,
18,
10,
25,
10,
19,
22,
13,
21,
15,
27,
21,
20,
25,
32,
15,
526,
18,
13,
17,
17,
11,
31,
28,
37,
29,
45,
31,
33,
21,
29,
29,
23,
11,
11,
13,
10,
16,
11,
32,
10,
13,
10,
11,
13,
15,
20,
25,
28,
35,
26,
27,
32,
28,
25,
23,
21,
23,
15,
10,
20,
15,
17,
22,
15,
25,
23,
24,
26,
43,
29,
19,
24,
17,
11,
12,
12,
19,
25,
11,
35,
23,
22,
35,
31,
38,
23,
17,
29,
16,
11,
13,
10,
11,
14,
11,
18,
13,
24,
19,
24,
31,
23,
21,
24,
21,
19,
13,
16,
21,
11,
19,
24,
19,
19,
28,
33,
31,
40,
33,
24,
27,
25,
13,
13,
12,
12,
10,
11,
10,
10,
14,
11,
11,
14,
13,
15,
32,
23,
34,
44,
34,
27,
32,
23,
29,
16,
19,
10,
12,
10,
11,
11,
14,
14,
13,
10,
17,
13,
24,
28,
26,
18,
20,
17,
21,
26,
11,
13,
14,
15,
17,
13,
18,
23,
21,
36,
35,
29,
32,
35,
32,
33,
21,
30,
23,
11,
14,
11,
77,
11,
13,
10,
21,
10,
18,
13,
12,
24,
24,
26,
42,
37,
33,
26,
16,
22,
15,
15,
13,
10,
10,
10,
11,
21,
15,
33,
22,
22,
18,
27,
21,
21,
15,
13,
10,
11,
16,
21,
18,
26,
22,
27,
24,
42,
40,
32,
37,
34,
18,
20,
13,
10,
10,
10,
10,
18,
11,
19,
12,
23,
17,
21,
22,
16,
23,
11,
17,
14,
11,
19,
18,
28,
27,
20,
24,
21,
27,
33,
36,
22,
19,
23,
13,
12,
11,
12,
18,
22,
34,
37,
29,
48,
36,
37,
36,
30,
22,
31,
29,
14,
11,
13,
12,
39,
11,
17,
13,
17,
16,
24,
32,
30,
25,
32,
23,
28,
36,
23,
22,
10,
10,
11,
16,
12,
12,
11,
15,
20,
18,
19,
24,
31,
17,
36,
33,
33,
34,
32,
24,
31,
21,
14,
13,
11,
13,
10,
15,
15,
16,
19,
34,
35,
34,
26,
28,
20,
17,
21,
20,
11,
15,
10,
11,
13,
10,
10,
11,
11,
12,
14,
17,
12,
14,
19,
21,
28,
27,
20,
30,
22,
36,
38,
28,
21,
21,
19,
12,
10,
10,
11,
10,
18,
12,
20,
20,
24,
29,
29,
24,
33,
37,
26,
31,
17,
14,
19,
10,
10,
13,
12,
12,
10,
28,
12,
10,
15,
15,
17,
22,
20,
29,
29,
35,
29,
43,
31,
26,
17,
18,
14,
10,
11,
10,
11,
10,
12,
13,
16,
12,
13,
20,
20,
20,
17,
17,
32,
31,
27,
20,
23,
21,
17,
15,
11,
14,
13,
12,
10,
10,
10,
16,
22,
17,
26,
24,
24,
21,
24,
32,
33,
19,
32,
22,
12,
13,
13,
10,
13,
10,
11,
14,
10,
13,
14,
12,
18,
24,
22,
27,
33,
25,
26,
18,
24,
20,
24,
16,
17,
14,
14,
12,
12,
18,
18,
22,
27,
31,
33,
36,
27,
22,
35,
19,
20,
13,
18,
15,
25,
16,
18,
18,
27,
36,
46,
45,
37,
32,
22,
24,
26,
10,
10,
11,
16,
16,
13,
20,
17,
10,
15,
23,
22,
33,
26,
29,
30,
27,
32,
41,
23,
17,
13,
11,
12,
10,
12,
12,
10,
11,
10,
12,
19,
18,
11,
15,
29,
23,
26,
25,
22,
14,
17,
18,
10,
10,
15,
10,
11,
14,
26,
15,
20,
23,
33,
40,
24,
29,
26,
20,
19,
11,
17,
11,
16,
16,
11,
12,
14,
17,
19,
16,
22,
27,
21,
30,
27,
29,
14,
17,
20,
12,
11,
15,
11,
13,
11,
10,
10,
11,
19,
12,
10,
16,
10,
21,
25,
22,
16,
17,
21,
11,
15,
11,
13,
13,
14,
12,
14,
23,
18,
21,
15,
23,
16,
26,
32,
26,
26,
21,
23,
25,
23,
13,
11,
10,
10,
10,
13,
1647,
28,
10,
35,
31,
11,
86,
26,
12,
208,
60,
16,
16,
12,
25,
22,
21,
23,
21,
33,
43,
26,
23,
27,
28,
10,
13,
12,
13,
11,
14,
10,
10,
10,
13,
13,
17,
14,
11,
11,
12,
10,
10,
11,
10,
13,
15,
13,
10,
11,
12,
11,
13,
14,
15,
21,
16,
26,
25,
28,
35,
20,
30,
21,
12,
18,
10,
12,
11,
10,
11,
12,
10,
13,
10,
10,
12,
11,
11,
13,
25,
26,
13,
38,
33,
34,
33,
37,
27,
26,
33,
18,
11,
10,
13,
12,
12,
10,
11,
13,
16,
12,
14,
23,
22,
19,
32,
30,
35,
25,
39,
44,
36,
32,
26,
24,
16,
16,
10,
11,
19,
14,
10,
16,
12,
11,
11,
12,
19,
17,
35,
25,
32,
27,
31,
28,
31,
18,
21,
15,
10,
11,
13,
202,
211,
20,
18,
18,
42,
32,
15,
37,
10,
16,
23,
21,
19,
15,
148,
17,
30,
16,
19,
19,
19,
17,
131,
173,
15,
26,
11,
247,
117,
11,
10,
15,
12,
14,
11,
11,
10,
10,
10,
11,
12,
13,
10,
10,
16,
10,
17,
10,
15,
13,
13,
12,
12,
11,
11,
10,
15,
14,
13,
19,
25,
21,
22,
27,
18,
27,
13,
19,
16,
10,
14,
14,
15,
19,
22,
21,
23,
27,
36,
36,
38,
31,
40,
34,
34,
16,
14,
10,
15,
11,
15,
14,
15,
10,
11,
17,
11,
16,
26,
29,
28,
42,
32,
48,
35,
26,
36,
26,
16,
14,
14,
10,
10,
11,
10,
22,
17,
12,
14,
14,
24,
14,
20,
20,
28,
19,
24,
28,
22,
30,
21,
21,
22,
14,
89,
11,
451,
13,
10,
15,
19,
10,
10,
313,
30,
11,
16,
11,
243,
37,
17,
291,
30,
213,
15,
22,
12,
10,
10,
231,
33,
16,
213,
16,
164,
14,
152,
11,
11,
11,
16,
14,
20,
237,
18,
14,
10,
169,
27,
17,
22,
10,
171,
19,
11,
142,
21,
15,
10,
11,
18,
20,
20,
33,
18,
26,
38,
32,
22,
27,
19,
19,
13,
13,
11,
16,
17,
238,
115,
12,
11,
11,
10,
15,
11,
11,
16,
16,
18,
16,
41,
26,
29,
30,
24,
29,
30,
19,
17,
13,
13,
180,
131,
10,
15,
10,
15,
12,
14,
23,
34,
33,
26,
34,
27,
33,
22,
32,
13,
17,
10,
130,
56,
23,
21,
15,
11,
15,
17,
25,
31,
22,
27,
29,
28,
33,
16,
20,
29,
17,
152,
79,
14,
10,
18,
15,
17,
25,
26,
38,
28,
26,
22,
39,
23,
29,
33,
27,
12,
106,
19,
26,
10,
14,
11,
11,
14,
12,
15,
21,
18,
27,
21,
28,
20,
21,
20,
32,
21,
10,
10,
12,
10,
11,
10,
13,
122,
12,
12,
10,
15,
16,
22,
30,
36,
38,
38,
30,
18,
19,
21,
16,
85,
39,
18,
22,
21,
13,
21,
28,
19,
18,
14,
25,
34,
23,
31,
13,
19,
32,
22,
83,
45,
22,
27,
20,
10,
13,
17,
31,
19,
17,
27,
24,
27,
25,
36,
15,
20,
12,
14,
101,
28,
17,
16,
14,
13,
21,
14,
15,
14,
18,
18,
26,
19,
45,
28,
29,
32,
40,
34,
28,
31,
22,
10,
11,
10,
14,
10,
27,
14,
13,
14,
11,
16,
14,
13,
13,
19,
27,
22,
27,
29,
32,
30,
51,
40,
29,
25,
35,
20,
17,
10,
12,
10,
10,
14,
10,
10,
11,
14,
11,
13,
12,
18,
26,
18,
41,
17,
26,
22,
40,
24,
20,
19,
19,
11,
12,
11,
10,
15,
13,
14,
20,
14,
11,
12,
20,
14,
16,
19,
24,
21,
24,
42,
30,
28,
38,
19,
14,
11,
35,
14,
14,
10,
10,
12,
14,
11,
10,
10,
14,
11,
13,
12,
13,
11,
12,
14,
11,
10,
10,
13,
11,
15,
11,
11,
20,
10,
21,
12,
26,
27,
32,
19,
28,
25,
23,
14,
13,
12,
13,
14,
14,
19,
30,
23,
29,
26,
41,
27,
18,
27,
15,
14,
16,
12,
13,
12,
10,
12,
16,
12,
13,
14,
21,
17,
27,
25,
28,
32,
39,
24,
26,
17,
11,
11,
12,
13,
13,
10,
14,
22,
19,
16,
17,
27,
32,
37,
35,
32,
38,
52,
39,
43,
26,
19,
12,
10,
10,
13,
11,
10,
15,
12,
22,
11,
10,
11,
23,
13,
30,
24,
27,
22,
38,
51,
36,
31,
34,
40,
41,
38,
16,
15,
10,
12,
14,
10,
10,
590,
102,
14,
13,
14,
26,
25,
18,
12,
27,
17,
28,
20,
19,
17,
13,
12,
11,
11,
11,
12,
13,
20,
18,
23,
29,
26,
25,
20,
29,
21,
37,
25,
11,
10,
13,
12,
13,
16,
15,
13,
10,
11,
11,
10,
13,
11,
12,
14,
11,
11,
10,
10,
11,
11,
11,
14,
24,
18,
21,
32,
30,
31,
30,
27,
17,
23,
20,
14,
15,
14,
17,
15,
17,
32,
23,
24,
33,
40,
42,
30,
38,
31,
30,
19,
10,
11,
10,
10,
12,
11,
15,
14,
15,
14,
10,
11,
13,
22,
14,
13,
15,
15,
28,
25,
38,
34,
19,
22,
21,
27,
17,
12,
11,
16,
18,
15,
25,
10,
35,
25,
24,
39,
36,
34,
29,
30,
26,
18,
16,
11,
16,
14,
10,
11,
12,
13,
16,
19,
15,
89,
11,
21,
24,
18,
24,
26,
30,
21,
26,
22,
27,
20,
15,
13,
12,
10,
12,
13,
10,
10,
14,
12,
10,
10,
11,
12,
10,
10,
11,
12,
23,
10,
10,
13,
11,
10,
11,
10,
10,
10,
27,
19,
16,
20,
10,
12,
10,
13,
19,
19,
24,
21,
27,
32,
26,
38,
40,
31,
27,
28,
28,
23,
10,
15,
15,
11,
15,
17,
26,
37,
29,
35,
35,
35,
30,
24,
21,
17,
14,
14,
11,
11,
16,
10,
10,
14,
14,
18,
25,
31,
34,
25,
33,
38,
16,
11,
13,
16,
17,
10,
11,
13,
16,
13,
11,
323,
15,
59,
28,
24,
10,
13,
13,
14,
10,
11,
10,
12,
16,
14,
10,
10,
11,
16,
27,
23,
29,
22,
30,
19,
19,
28,
19,
12,
12,
12,
13,
14,
13,
10,
14,
13,
19,
13,
10,
11,
12,
14,
11,
15,
15,
24,
22,
16,
26,
29,
39,
33,
17,
15,
21,
13,
12,
11,
12,
11,
15,
10,
11,
18,
10,
14,
11,
16,
13,
10,
15,
10,
10,
12,
10,
13,
14,
26,
16,
21,
32,
26,
24,
19,
16,
20,
10,
11,
13,
12,
14,
22,
23,
29,
30,
26,
25,
36,
28,
15,
10,
19,
12,
12,
13,
13,
13,
11,
10,
13,
11,
19,
11,
17,
20,
24,
30,
31,
37,
43,
32,
40,
25,
21,
16,
10,
11,
12,
11,
16,
13,
22,
10,
17,
11,
10,
18,
12,
14,
16,
13,
23,
25,
28,
22,
30,
26,
31,
40,
24,
30,
10,
13,
14,
12,
11,
12,
12,
11,
11,
19,
12,
15,
12,
11,
11,
12,
10,
11,
13,
13,
10,
11,
10,
11,
14,
16,
12,
11,
23,
13,
22,
19,
28,
22,
29,
34,
38,
28,
38,
21,
19,
12,
12,
11,
14,
13,
13,
16,
11,
14,
10,
11,
15,
11,
15,
44,
28,
11,
10,
16,
16,
89,
12,
11,
161,
72,
19,
61,
81,
22,
11,
28,
494,
186,
21,
16,
14,
12,
34,
13,
11,
34,
27,
30,
17,
60,
60,
34,
52,
19,
13,
224,
26,
13,
131,
134,
20,
10,
60,
10,
206,
20,
19,
720,
17,
40,
369,
25,
147,
55,
478,
648,
116,
24,
13,
20,
16,
124,
618,
537,
15,
30,
56,
2095,
11,
372,
21,
61,
12,
23,
20,
14,
29,
37,
113,
11,
11,
67,
39,
62,
100,
13,
14,
15,
26,
23,
66,
11,
198,
60,
6838,
4182,
25,
10,
183,
165,
16,
10,
63,
151,
13755,
16,
64,
46,
140,
43,
130,
263,
70,
11,
81,
79,
185,
49,
196,
22,
21,
11,
30,
26,
11,
14,
24,
54,
126,
245,
26,
28,
25,
66,
10,
401,
15,
10,
137,
21,
866,
16,
11,
400,
20,
49,
55,
28,
13,
173,
5170,
70,
20,
12,
240,
26,
12,
32,
68,
27,
13,
23,
2970,
32,
67,
17,
22,
24,
24,
515,
45,
112,
12,
11,
443,
217,
10,
13,
709,
160,
51,
14,
466,
265,
819,
23,
152,
37,
23,
176,
16,
196,
458,
226,
76,
46,
277,
34,
15,
49,
29,
413,
158,
113,
93,
147,
43,
16,
289,
52,
21,
14,
64,
224,
74,
42,
11,
12,
10,
3000,
14,
48,
33,
14,
13,
22,
10,
12,
10,
22,
82,
76,
23,
148,
41,
22,
67,
201,
29,
2083,
26,
63,
30,
13,
66,
28,
14,
12,
56,
277,
91,
148,
20,
11,
25,
10,
112,
25,
129,
82,
352,
10,
143,
3301,
21,
23,
100,
510,
310,
19,
16,
136,
108,
17,
30,
13,
37,
13,
21,
43,
16,
16,
13,
22,
341,
30,
19,
786,
70,
14,
22,
73,
33,
11,
18,
2319,
13,
10,
11,
20,
17,
19,
33,
20,
464,
23,
147,
31,
15,
67,
17,
885,
11,
38,
14,
135,
11,
17,
23,
217,
14,
127,
191,
32,
233,
1382,
87,
59,
32,
450,
11,
17,
17,
4268,
26,
23,
150,
39,
25,
11,
93,
33,
19783,
51,
15,
15,
16,
12,
19,
1284,
244,
14,
15,
78,
121,
13,
11,
26,
10,
10,
4101,
20,
223,
41,
25,
60,
586,
207,
230,
18,
400,
87,
24,
12,
103,
25,
557,
18,
10,
154,
26,
12,
25,
158,
178,
452,
222,
28,
1870,
15,
30,
102,
25,
64,
172,
26,
89,
6974,
2347,
45,
13,
128,
79,
37,
470,
11,
25,
347,
16,
12,
131,
22,
29,
10,
2245,
44,
70,
512,
22,
34,
31,
23,
16,
56,
1673,
14,
111,
14,
10,
16,
21,
40,
3334,
70,
17,
14,
13,
27,
329,
10,
94,
16,
82,
25,
1239,
41,
142,
93,
71,
193,
42,
14,
856,
12,
49,
617,
17,
128,
319,
75,
17,
76,
17,
133,
383,
160,
170,
43,
243,
15,
28,
89,
21,
12,
11,
34,
41,
11,
19,
50,
10,
168,
17,
31,
18,
55,
1417,
189,
204,
24,
77,
113,
70,
17,
21,
25,
56,
15,
184,
335,
595,
16,
193,
12,
18,
40,
173,
138,
17,
41,
24,
58,
153,
60,
2007,
17,
14,
20,
26,
24,
10,
44,
217,
11,
10,
31,
12,
15,
41,
20,
116,
287,
42,
85,
43,
30,
12,
10,
10,
39,
14,
14,
74,
12,
15,
99,
41,
81,
20,
1328,
12,
102,
80,
91,
22,
16,
47,
41,
1273,
25,
16,
27,
89,
30,
516,
28,
20,
10,
12,
9687,
1233,
86,
28,
21,
80,
19,
17,
27,
22,
40,
24,
12,
11,
18,
115,
52,
1119,
3514,
15,
39,
71,
13,
270,
480,
23,
71,
25,
17,
25,
38,
23,
401,
20,
204,
1247,
5224,
391,
19,
14,
20,
11,
62,
15,
34,
55,
432,
10,
21,
1775,
20,
11,
21,
72,
16,
221,
12,
34,
63,
779,
737,
316,
19,
22,
21,
327,
32,
175,
56,
40,
11,
24,
11,
11,
23,
50,
148,
10,
11,
11,
1682,
22,
102,
24,
12,
10,
10,
44,
29,
482,
12,
15,
22,
56,
31,
25,
160,
14,
13,
4011,
14,
26,
15,
25,
103,
21,
270,
41,
13,
4829,
46,
11,
2465,
672,
49,
339,
19,
1208,
2847,
24,
265,
202,
252,
134,
213,
60,
127,
20,
31,
10,
12,
220,
189,
16,
10,
95,
31,
10,
19,
19,
37,
17,
103,
48,
34,
13,
139,
156,
33,
24,
19,
12,
88,
32,
12,
31,
618,
54,
942,
62,
18,
66,
416,
11,
21,
47,
45,
11,
637,
305,
115,
70,
19,
18,
19,
317,
741,
21,
24,
15,
79,
186,
27,
11,
14,
85,
12,
46,
10,
35,
47,
1435,
43,
438,
21,
17,
26,
14,
16,
10,
20,
27,
72,
110,
66,
28,
58,
389,
10,
102,
68,
33,
16,
33,
203,
12,
20,
12,
79,
23,
11,
23,
612,
32,
19,
34,
15,
14,
45,
29,
517,
48,
13,
8926,
20,
25,
33,
16,
53,
350,
7146,
1719,
18,
30,
20,
140,
61,
20,
71,
227,
175,
17,
17,
3303,
13,
37,
25,
11,
267,
10,
211,
1365,
89,
72,
19,
104,
13,
18,
2433,
20,
11,
89,
20,
309,
195,
700,
31,
155,
17,
29,
17,
34,
12,
15,
11,
10,
49,
39,
1220,
21,
17,
26,
35,
24,
877,
342,
34,
146,
59,
34,
147,
1730,
28,
24,
10,
121,
10,
212,
47,
22,
11,
28,
156,
337,
47,
103,
11,
121,
5982,
652,
16,
10,
35,
51,
387,
23,
112702,
215,
26,
26,
10,
328,
49,
30,
301,
18,
30,
277,
12,
55,
18,
15,
12,
37,
1657,
41,
37,
20,
15,
21,
58,
26,
15,
53,
173,
18,
113,
15,
24,
59,
35,
194,
25,
16,
14,
19,
96,
14,
14,
26,
18,
10,
11,
77,
11,
29,
79,
18,
14,
214,
20,
10,
41,
13,
41,
17,
58983,
7835,
297,
560,
71,
31,
23,
20,
15,
22,
13,
16,
10,
23,
55,
10,
40,
12,
44,
37,
18,
74,
17,
41,
270,
27,
33,
11,
438,
118,
43,
95,
168,
30,
15,
130,
10,
48,
10,
55,
20,
156,
259,
11,
12,
377,
12,
23,
10,
66,
32,
34,
15,
21,
203,
39,
20,
299,
13,
12,
10,
21,
19,
103,
42,
213,
23,
118,
12,
12,
10,
15,
24,
68,
25,
35,
18,
13,
22,
19,
57,
114,
14,
36,
499,
91,
13,
33,
14,
10,
16,
57,
22,
58,
45,
36,
9726,
367,
613,
14,
78,
67,
108,
71,
106,
50,
110,
109,
539,
20,
10,
17,
15,
61,
31,
428,
152,
61,
80,
12,
14,
10,
59,
77,
122,
49,
32,
307,
11,
49,
38,
747,
10982,
10,
517,
28,
11,
21,
25,
82,
19,
41,
39,
54,
11,
201,
423,
674,
59,
35,
46,
16,
98,
57,
90,
16,
19,
12,
433,
181,
11,
11,
361,
44,
31,
714,
10,
15,
1298,
40,
24,
79,
20,
46,
33,
127,
38,
134,
336,
13,
553,
14,
29,
44,
29,
10,
19,
27,
27,
109,
781,
16,
30,
29,
10,
33,
34,
21,
40,
16,
32,
14,
175,
23,
12,
111,
155,
37,
127,
22,
18,
11,
16,
407,
28,
33,
10,
11,
43,
19,
26,
72,
16,
15,
14,
109,
11,
563,
884,
10,
20,
84,
120,
193,
47,
22,
16,
16,
11,
1501,
23,
99,
75,
232,
15,
164,
25,
149,
18,
1938,
14,
26,
183,
1290,
289,
104,
13,
11,
229,
30,
10,
100,
2685,
10,
1410,
10,
474,
20,
21,
59,
7374,
2341,
24,
208,
48,
50,
13,
14,
50,
36,
13,
123,
18,
508,
13,
19,
62,
58,
71,
523,
12,
10,
29,
13,
10,
36,
10,
14,
54,
129,
82,
20,
20,
10,
39,
10,
75,
168,
113,
90,
10,
45,
26,
28,
49,
168,
17,
45,
17,
173,
77,
571,
19,
32,
230,
11,
85,
14,
40,
84,
37,
411,
14,
115,
37,
47,
145,
89,
64,
29,
12,
16,
47,
149,
235,
17,
13,
13,
17,
40,
13,
14,
45,
29,
25,
33,
112,
84,
81,
47,
3548,
32,
11,
11,
18,
11,
40,
581,
10,
26,
29,
24,
100,
723,
43,
109,
39,
13,
71,
1847,
1989,
42,
135,
153,
20,
23,
139,
18,
17,
88,
144,
33,
10,
17,
87,
232,
4672,
145,
1193,
14,
14,
14,
12,
24,
70,
26,
14,
19,
33,
11,
59,
59,
24,
71,
25,
18,
99,
12,
78,
356,
15,
22,
54,
11,
153,
13,
92,
22,
22,
25,
1072,
169,
104,
40,
118,
11,
323,
18,
35,
15,
103,
53,
18,
20,
56,
873,
25,
45,
61,
18,
68,
460,
1358,
76,
1079,
41,
648,
10,
56,
28,
94,
52,
10,
21,
207,
121,
43,
417,
13,
415,
14,
210,
10,
33,
28,
20,
70,
24,
33,
81,
135,
49,
15,
12,
27,
306,
119,
21,
36,
113,
22,
95,
28,
19,
44,
39,
527,
18,
83,
80,
11,
319,
14,
84,
10,
11,
104,
35,
16,
15,
15,
26,
22,
73,
49,
103,
158,
35,
17,
14,
127,
34,
15,
12,
40,
887,
218,
10,
36,
40,
16,
28,
10,
21,
31,
3308,
304,
5850,
10,
98,
11,
527,
115,
491,
87,
95,
44,
11,
32,
42,
21,
90,
149,
142,
263,
856,
74,
45,
14,
25,
10,
14,
87,
71,
19,
51,
20,
30,
556,
18,
16,
14,
68,
80,
114,
11,
16,
471,
85,
37,
17,
25,
18,
5163,
91,
47,
16,
84,
52,
14,
19,
10,
72,
10,
43,
46,
1052,
113,
24,
23,
21,
912,
18,
21,
20,
259,
43,
42,
207,
39,
1014,
156,
82,
28,
2264,
158,
12,
18,
47,
996,
1146,
12,
346,
275,
40,
296,
17,
17,
12,
68,
1136,
25,
166,
10,
54,
688,
14,
258,
12,
39,
11,
44,
40,
74,
22,
86,
24,
23,
13,
25,
13,
17,
28,
32,
34,
22,
18,
15,
11,
10,
17,
11,
15,
12,
13,
17,
14,
12,
12,
13,
16,
15,
17,
18,
22,
26,
25,
25,
30,
25,
30,
29,
20,
29,
13,
11,
10,
12,
10,
15,
10,
12,
11,
10,
12,
20,
27,
19,
22,
26,
19,
26,
15,
22,
21,
11,
12,
12,
13,
13,
11,
13,
12,
11,
11,
12,
21,
18,
27,
25,
15,
25,
14,
14,
19,
17,
10,
12,
12,
14,
10,
12,
10,
12,
12,
18,
12,
34,
312,
25,
433,
215,
43,
14,
13,
310,
25,
11,
48,
21,
33,
40,
345,
10,
16,
43,
45,
38,
104,
77,
14,
11,
114,
39,
12,
26,
28,
43,
30,
99,
17,
77,
31,
24,
11,
20,
53,
25,
15,
313,
19,
10,
47,
11,
14,
26,
30,
107,
15,
122,
164,
14,
15,
58,
12,
75,
10,
35,
2602,
13,
151,
21,
13,
20,
1806,
134,
152,
12,
119,
922,
45,
40,
12,
44,
12,
61,
80,
21,
37,
17,
679,
15,
9945,
118,
105,
16,
35,
20,
10,
13,
19,
55,
15,
91,
11,
53,
28,
40,
138,
135,
6933,
64,
33,
60,
466,
15,
37,
12,
80,
13,
94,
21,
19,
1749,
12,
118,
78,
46,
19,
27,
43,
64,
41,
10,
12,
68,
116,
13,
14,
78,
18,
35,
1076,
18,
24,
19,
20,
33,
19,
593,
15,
27,
57,
11,
81,
638,
13,
350,
12,
118,
10,
28,
133,
14,
12,
22,
10,
13,
11,
134,
14,
434,
17,
24,
14,
11,
12,
11,
22,
11,
99,
1495,
11,
350,
409,
21,
234,
32,
14,
85,
21,
22,
56,
143,
194,
69,
17,
47,
16,
23,
27,
17,
39,
93,
288,
40,
16,
18,
144,
21,
119,
11,
399,
13,
99,
58,
15,
15,
12,
28,
20,
20,
28,
148,
10,
5890,
10,
307,
62,
25,
99,
47,
18,
46,
85,
10,
14,
16,
79248,
45,
42,
15,
24,
11,
12,
14,
13,
12,
79,
259,
15,
13,
162,
14,
270,
89,
22,
11,
10,
14,
24,
30,
14,
1480,
29,
79,
11,
12,
16,
1165,
58,
468,
156,
354,
25,
13,
14,
401,
12,
291,
16,
13,
14,
37,
21,
11,
14,
12,
14,
11,
11,
16,
15,
13,
11,
87,
12,
10,
26,
493,
126,
1381,
2286,
58,
92,
226,
13,
33,
21,
41,
30,
20,
40,
95,
38,
52,
36,
18,
23,
26,
17,
14,
19,
87,
10,
21,
149,
218,
14,
19,
186,
115,
15,
474,
11,
14,
324,
29,
31,
25,
22,
575,
89,
67,
69,
77,
75,
41,
30,
41,
40,
13,
131,
80,
162,
39,
50,
59,
48,
106,
68,
10,
17,
26,
11,
25,
38,
10,
24,
51,
81,
24,
20,
173,
34,
82,
17,
37,
65,
181,
108,
13,
14,
87,
85,
105,
5876,
28,
66,
33,
33,
328,
3535,
12,
16,
10,
22,
59,
11,
4038,
22,
53,
44,
15,
126,
22,
27,
289,
91,
77,
46,
34,
33,
16,
15,
206,
48,
16,
51,
25,
1849,
20,
76,
660,
12,
28,
153,
12,
224,
70,
17,
253,
21,
32,
13,
15,
23,
33,
33,
86,
39,
45,
20,
14,
611,
3614,
29,
49,
193,
13,
14,
32,
24,
94,
35,
29,
10,
42,
90,
3366,
782,
42,
19,
390,
6500,
20,
3213,
3775,
18,
17,
99,
80,
13,
40,
35,
29,
132,
12,
11,
11,
228,
115,
243,
10,
11,
18,
12,
11,
211,
11,
21,
302,
42,
24,
399,
152,
120,
37,
133,
10,
90,
87,
93,
117,
60,
262,
12,
27,
33,
106,
29,
441,
10,
18,
227,
780,
10,
87,
13,
112,
731,
61,
88,
7018,
947,
1385,
7506,
413,
407,
100,
93,
33,
11,
34,
14,
21,
264,
129,
87,
87,
12,
23,
33,
44,
1886,
17,
195,
25,
14,
11,
32,
12,
91,
12,
33,
4061,
10350,
10,
21,
30,
22,
79,
628,
288,
232,
20,
141,
18,
552,
16282,
140,
40,
19,
42,
11,
13,
93,
14,
595,
15,
28,
21,
12,
11,
131,
242,
70,
37,
21,
941,
121,
12,
12,
21,
17,
14,
15,
501,
14,
43,
36,
399,
30,
20,
220,
226,
19,
27,
20,
14,
265,
11,
19,
140,
106,
10,
17,
1154,
11,
49,
566,
35,
12,
13,
40,
35,
34,
36,
24,
20,
12,
403,
51,
43,
40,
156,
27,
97,
19,
24,
12203,
102,
122,
11,
15,
25,
27,
62,
697,
12,
46,
27,
27,
16,
32,
37,
871,
38,
12,
611,
463,
35,
123,
55,
853,
1453,
23,
19,
20,
140,
17,
17,
735,
36,
38,
40,
947,
11,
14,
139,
54,
19,
481,
28,
100,
369,
2765,
715,
265,
49,
56,
89,
380,
142,
238,
86,
10,
1215,
61,
27,
116,
42,
81,
1408,
12,
28,
206,
14,
37,
36,
43,
43,
276,
20,
51,
1990,
6726,
366,
122,
43,
17,
118,
10,
11,
63,
14,
181,
10,
42,
14,
46,
189,
408,
41,
16,
11,
91,
12,
28,
37,
19,
13,
97,
11,
66,
16,
25,
13,
32,
52,
23,
42,
10,
25,
25,
13,
1522,
2116,
56,
720,
34,
44,
23,
24,
167,
350,
3360,
163,
35,
235,
104,
25,
103,
26,
70,
10,
12,
12,
380,
26,
33,
467,
31,
21,
78,
29,
88,
77,
32,
58,
12,
19,
94,
13,
11,
9531,
289,
195,
74,
41,
16,
18,
11,
16,
58,
13,
43,
10,
11,
20,
13,
16,
27,
11,
13,
274,
13,
20,
16,
17,
35,
14,
13,
40,
18,
18,
1078,
17,
515,
14,
19,
150,
19,
14,
11,
45,
61,
51,
136,
3454,
1888,
1085,
24,
12,
16,
14,
54,
11,
22,
17,
262,
12,
33,
13,
17,
57,
27,
294,
16,
69,
10,
35,
11,
116,
824,
154,
555,
179,
31,
83,
14,
128,
22,
161,
33,
17,
10,
12,
45,
11,
102,
74,
48,
703,
41,
31,
49,
11,
84,
15,
344,
280,
14,
34,
29,
57,
39,
12,
13,
35,
67,
11,
47,
16,
20,
11,
67,
69,
17,
43,
33,
163,
73,
42,
24,
45,
57,
72,
23,
16,
56,
24,
10,
43,
45,
77,
332,
1325,
24,
54,
10,
13,
10,
10,
13,
10,
11,
55,
142,
161,
15,
18,
29,
49,
60,
31,
140,
31,
521,
551,
11,
17,
25,
199,
14,
29,
33,
154,
138,
79,
140,
12,
17,
52,
124,
22,
33,
12,
28,
2437,
20,
29,
10,
18,
10,
23,
10,
14,
15,
14,
13,
192,
28,
59,
90,
11,
258,
85,
28,
102,
13,
11,
10,
91,
12,
25,
12,
15,
13,
15,
13,
19,
22,
15,
11,
16,
4082,
14,
17,
68,
35,
20,
22,
18,
20,
21,
20,
21,
173,
28,
51,
18,
22,
20,
19,
23,
19,
24,
28,
29,
15,
19,
19,
19,
18,
19,
31,
14,
17,
28,
29,
263,
18,
19,
17,
20,
23,
19,
19,
21,
45,
10,
13,
72,
162,
10,
19,
11,
45,
37,
18,
19,
10,
11,
27,
38,
44,
22,
24,
20,
27,
32,
19,
20,
19,
19,
19,
22,
23,
20,
22,
22,
19,
18,
19,
20,
15,
10,
20,
17,
18,
19,
19,
11,
34,
17,
18,
12,
19,
26,
32,
13,
26,
27,
141,
12,
13,
10,
11,
11,
11,
16,
20,
242,
99,
10,
17,
12,
18,
12,
21,
30,
10,
17,
48,
15,
10,
15,
12,
57,
167,
128,
14,
17,
117,
46,
15,
15,
13,
239,
477,
23,
10,
250,
38,
23,
12,
31,
33,
14,
25,
182,
16467796]
| mit |
wolfskaempf/ga_statistics | lib/python2.7/site-packages/django/contrib/auth/__init__.py | 387 | 7508 | import inspect
import re
from django.apps import apps as django_apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured, PermissionDenied
from django.middleware.csrf import rotate_token
from django.utils.crypto import constant_time_compare
from django.utils.module_loading import import_string
from django.utils.translation import LANGUAGE_SESSION_KEY
from .signals import user_logged_in, user_logged_out, user_login_failed
SESSION_KEY = '_auth_user_id'
BACKEND_SESSION_KEY = '_auth_user_backend'
HASH_SESSION_KEY = '_auth_user_hash'
REDIRECT_FIELD_NAME = 'next'
def load_backend(path):
return import_string(path)()
def _get_backends(return_tuples=False):
backends = []
for backend_path in settings.AUTHENTICATION_BACKENDS:
backend = load_backend(backend_path)
backends.append((backend, backend_path) if return_tuples else backend)
if not backends:
raise ImproperlyConfigured(
'No authentication backends have been defined. Does '
'AUTHENTICATION_BACKENDS contain anything?'
)
return backends
def get_backends():
return _get_backends(return_tuples=False)
def _clean_credentials(credentials):
"""
Cleans a dictionary of credentials of potentially sensitive info before
sending to less secure functions.
Not comprehensive - intended for user_login_failed signal
"""
SENSITIVE_CREDENTIALS = re.compile('api|token|key|secret|password|signature', re.I)
CLEANSED_SUBSTITUTE = '********************'
for key in credentials:
if SENSITIVE_CREDENTIALS.search(key):
credentials[key] = CLEANSED_SUBSTITUTE
return credentials
def _get_user_session_key(request):
# This value in the session is always serialized to a string, so we need
# to convert it back to Python whenever we access it.
return get_user_model()._meta.pk.to_python(request.session[SESSION_KEY])
def authenticate(**credentials):
"""
If the given credentials are valid, return a User object.
"""
for backend, backend_path in _get_backends(return_tuples=True):
try:
inspect.getcallargs(backend.authenticate, **credentials)
except TypeError:
# This backend doesn't accept these credentials as arguments. Try the next one.
continue
try:
user = backend.authenticate(**credentials)
except PermissionDenied:
# This backend says to stop in our tracks - this user should not be allowed in at all.
return None
if user is None:
continue
# Annotate the user object with the path of the backend.
user.backend = backend_path
return user
# The credentials supplied are invalid to all backends, fire signal
user_login_failed.send(sender=__name__,
credentials=_clean_credentials(credentials))
def login(request, user):
"""
Persist a user id and a backend in the request. This way a user doesn't
have to reauthenticate on every request. Note that data set during
the anonymous session is retained when the user logs in.
"""
session_auth_hash = ''
if user is None:
user = request.user
if hasattr(user, 'get_session_auth_hash'):
session_auth_hash = user.get_session_auth_hash()
if SESSION_KEY in request.session:
if _get_user_session_key(request) != user.pk or (
session_auth_hash and
request.session.get(HASH_SESSION_KEY) != session_auth_hash):
# To avoid reusing another user's session, create a new, empty
# session if the existing session corresponds to a different
# authenticated user.
request.session.flush()
else:
request.session.cycle_key()
request.session[SESSION_KEY] = user._meta.pk.value_to_string(user)
request.session[BACKEND_SESSION_KEY] = user.backend
request.session[HASH_SESSION_KEY] = session_auth_hash
if hasattr(request, 'user'):
request.user = user
rotate_token(request)
user_logged_in.send(sender=user.__class__, request=request, user=user)
def logout(request):
"""
Removes the authenticated user's ID from the request and flushes their
session data.
"""
# Dispatch the signal before the user is logged out so the receivers have a
# chance to find out *who* logged out.
user = getattr(request, 'user', None)
if hasattr(user, 'is_authenticated') and not user.is_authenticated():
user = None
user_logged_out.send(sender=user.__class__, request=request, user=user)
# remember language choice saved to session
language = request.session.get(LANGUAGE_SESSION_KEY)
request.session.flush()
if language is not None:
request.session[LANGUAGE_SESSION_KEY] = language
if hasattr(request, 'user'):
from django.contrib.auth.models import AnonymousUser
request.user = AnonymousUser()
def get_user_model():
"""
Returns the User model that is active in this project.
"""
try:
return django_apps.get_model(settings.AUTH_USER_MODEL)
except ValueError:
raise ImproperlyConfigured("AUTH_USER_MODEL must be of the form 'app_label.model_name'")
except LookupError:
raise ImproperlyConfigured(
"AUTH_USER_MODEL refers to model '%s' that has not been installed" % settings.AUTH_USER_MODEL
)
def get_user(request):
"""
Returns the user model instance associated with the given request session.
If no user is retrieved an instance of `AnonymousUser` is returned.
"""
from .models import AnonymousUser
user = None
try:
user_id = _get_user_session_key(request)
backend_path = request.session[BACKEND_SESSION_KEY]
except KeyError:
pass
else:
if backend_path in settings.AUTHENTICATION_BACKENDS:
backend = load_backend(backend_path)
user = backend.get_user(user_id)
# Verify the session
if ('django.contrib.auth.middleware.SessionAuthenticationMiddleware'
in settings.MIDDLEWARE_CLASSES and hasattr(user, 'get_session_auth_hash')):
session_hash = request.session.get(HASH_SESSION_KEY)
session_hash_verified = session_hash and constant_time_compare(
session_hash,
user.get_session_auth_hash()
)
if not session_hash_verified:
request.session.flush()
user = None
return user or AnonymousUser()
def get_permission_codename(action, opts):
"""
Returns the codename of the permission for the specified action.
"""
return '%s_%s' % (action, opts.model_name)
def update_session_auth_hash(request, user):
"""
Updating a user's password logs out all sessions for the user if
django.contrib.auth.middleware.SessionAuthenticationMiddleware is enabled.
This function takes the current request and the updated user object from
which the new session hash will be derived and updates the session hash
appropriately to prevent a password change from logging out the session
from which the password was changed.
"""
if hasattr(user, 'get_session_auth_hash') and request.user == user:
request.session[HASH_SESSION_KEY] = user.get_session_auth_hash()
default_app_config = 'django.contrib.auth.apps.AuthConfig'
| mit |
axcheron/pydbg | pida/basic_block.py | 7 | 9145 | #
# PIDA Basic Block
# Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com>
#
# $Id: basic_block.py 194 2007-04-05 15:31:53Z cameron $
#
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
'''
@author: Pedram Amini
@license: GNU General Public License 2.0 or later
@contact: pedram.amini@gmail.com
@organization: www.openrce.org
'''
try:
from idaapi import *
from idautils import *
from idc import *
except:
pass
import pgraph
from instruction import *
from defines import *
class basic_block (pgraph.node):
'''
'''
id = None
ea_start = None
ea_end = None
depth = None
analysis = None
function = None
instructions = {}
num_instructions = 0
ext = {}
####################################################################################################################
def __init__ (self, ea_start, ea_end, depth=DEPTH_FULL, analysis=ANALYSIS_NONE, function=None):
'''
Analyze the basic block from ea_start to ea_end.
@see: defines.py
@type ea_start: DWORD
@param ea_start: Effective address of start of basic block (inclusive)
@type ea_end: DWORD
@param ea_end: Effective address of end of basic block (inclusive)
@type depth: Integer
@param depth: (Optional, Def=DEPTH_FULL) How deep to analyze the module
@type analysis: Integer
@param analysis: (Optional, Def=ANALYSIS_NONE) Which extra analysis options to enable
@type function: pida.function
@param function: (Optional, Def=None) Pointer to parent function container
'''
# run the parent classes initialization routine first.
super(basic_block, self).__init__(ea_start)
heads = [head for head in Heads(ea_start, ea_end + 1) if isCode(GetFlags(head))]
self.id = ea_start
self.ea_start = ea_start
self.ea_end = ea_end
self.depth = depth
self.analysis = analysis
self.function = function
self.num_instructions = len(heads)
self.instructions = {}
self.ext = {}
# convenience alias.
self.nodes = self.instructions
# bubble up the instruction count to the function. this is in a try except block to catch situations where the
# analysis was not bubbled down from a function.
try:
self.function.num_instructions += self.num_instructions
except:
pass
if self.depth & DEPTH_INSTRUCTIONS:
for ea in heads:
self.instructions[ea] = instr = instruction(ea, self.analysis, self)
####################################################################################################################
def overwrites_register (self, register):
'''
Indicates if the given register is modified by this block.
@type register: String
@param register: The text representation of the register
@rtype: Boolean
@return: True if the register is modified by any instruction in this block.
'''
for ins in self.instructions.values():
if ins.overwrites_register(register):
return True
return False
####################################################################################################################
def ordered_instructions(self):
'''
TODO: deprecated by sorted_instructions().
'''
temp = [key for key in self.instructions.keys()]
temp.sort()
return [self.instructions[key] for key in temp]
####################################################################################################################
def render_node_gml (self, graph):
'''
Overload the default node.render_node_gml() routine to create a custom label. Pass control to the default
node renderer and then return the merged content.
@rtype: String
@return: Contents of rendered node.
'''
self.label = "<span style='font-family: Courier New; font-size: 10pt; color: #000000'>"
self.label += "<p><font color=#004080><b>%08x</b></font></p>" % self.ea_start
self.gml_height = 45
for instruction in self.sorted_instructions():
colored_instruction = instruction.disasm.split()
if colored_instruction[0] == "call":
colored_instruction[0] = "<font color=#FF8040>" + colored_instruction[0] + "</font>"
else:
colored_instruction[0] = "<font color=#004080>" + colored_instruction[0] + "</font>"
colored_instruction = " ".join(colored_instruction)
self.label += "<font color=#999999>%08x</font> %s<br>" % (instruction.ea, colored_instruction)
try: instruction_length = len(instruction.disasm)
except: instruction_length = 0
try: comment_length = len(instruction.comment)
except: comment_length = 0
required_width = (instruction_length + comment_length + 10) * 10
if required_width > self.gml_width:
self.gml_width = required_width
self.gml_height += 20
self.label += "</span>"
return super(basic_block, self).render_node_gml(graph)
####################################################################################################################
def render_node_graphviz (self, graph):
'''
Overload the default node.render_node_graphviz() routine to create a custom label. Pass control to the default
node renderer and then return the merged content.
@type graph: pgraph.graph
@param graph: Top level graph object containing the current node
@rtype: pydot.Node()
@return: Pydot object representing node
'''
self.label = ""
self.shape = "box"
for instruction in self.sorted_instructions():
self.label += "%08x %s\\n" % (instruction.ea, instruction.disasm)
return super(basic_block, self).render_node_graphviz(graph)
####################################################################################################################
def render_node_udraw (self, graph):
'''
Overload the default node.render_node_udraw() routine to create a custom label. Pass control to the default
node renderer and then return the merged content.
@type graph: pgraph.graph
@param graph: Top level graph object containing the current node
@rtype: String
@return: Contents of rendered node.
'''
self.label = ""
for instruction in self.sorted_instructions():
self.label += "%08x %s\\n" % (instruction.ea, instruction.disasm)
return super(basic_block, self).render_node_udraw(graph)
####################################################################################################################
def render_node_udraw_update (self):
'''
Overload the default node.render_node_udraw_update() routine to create a custom label. Pass control to the
default node renderer and then return the merged content.
@rtype: String
@return: Contents of rendered node.
'''
self.label = ""
for instruction in self.sorted_instructions():
self.label += "%08x %s\\n" % (instruction.ea, instruction.disasm)
return super(basic_block, self).render_node_udraw_update()
####################################################################################################################
def sorted_instructions (self):
'''
Return a list of the instructions within the graph, sorted by id.
@rtype: List
@return: List of instructions, sorted by id.
'''
instruction_keys = self.instructions.keys()
instruction_keys.sort()
return [self.instructions[key] for key in instruction_keys] | gpl-2.0 |
williamjturkel/Digital-History-Hacks--2005-08- | offence-category.py | 1 | 1823 | # offence-category.py
# old bailey
#
# given a directory of trial files each marked with XML
# extract a list mapping trial id to offence
import os, sys, re
from BeautifulSoup import BeautifulStoneSoup
# given a directory string, return a list of file names
def getFileNames(dirstr):
import os
dircommand = 'dir ' + dirstr + ' /B'
filelist = os.popen(dircommand).readlines()
filelist = [x.rstrip() for x in filelist]
return filelist
# given an XML tag describing an offence, return as a
# standardized string
def standardizeOffenceTags(offstring):
stdstr = offstring.replace('<', '')
stdstr = stdstr.replace('>', '')
stdstr = stdstr.replace('\"', '')
stdstr = stdstr.replace('category=', '')
stdstr = stdstr.replace(' ', '-')
return stdstr.lower()
# get a list of trial files to process
indirname = 'Mined_1830s'
filelist = getFileNames(indirname)
# scrape out the first child node of each offence
offencepattern = re.compile(r'<.*?>', re.UNICODE)
resultsfile = open('offence-categories-1830s.txt', 'w')
for fn in filelist:
outstr = fn
# read XML file into string and parse it
f = open(indirname+'\\'+fn, 'r')
fnxml = f.read()
f.close()
fnsoup = BeautifulStoneSoup(fnxml)
offencelist = fnsoup.findAll('offence')
# extract offences
for o in offencelist:
offence = o.contents[0]
# one trial had a blank space in front of first node
if offence == ' ': offence = o.contents[1]
omatch = offencepattern.match(str(offence))
offstr = omatch.group()
outstr += ',' + standardizeOffenceTags(offstr)
# write offence data to file
resultsfile.write(outstr+'\n')
resultsfile.flush()
# provide feedback for user
print outstr
sys.stdout.flush()
resultsfile.close()
| mit |
epiphany27/NewsBlur | apps/rss_feeds/migrations/0003_remove_page_data.py | 18 | 5747 |
from south.db import db
from django.db import models
from apps.rss_feeds.models import *
class Migration:
def forwards(self, orm):
# Deleting field 'Feed.page_data'
db.delete_column('feeds', 'page_data')
def backwards(self, orm):
# Adding field 'Feed.page_data'
db.add_column('feeds', 'page_data', orm['rss_feeds.feed:page_data'])
models = {
'rss_feeds.feed': {
'Meta': {'db_table': "'feeds'"},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
'creation': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'days_to_trim': ('django.db.models.fields.IntegerField', [], {'default': '90'}),
'etag': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
'feed_address': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '255'}),
'feed_link': ('django.db.models.fields.URLField', [], {'default': "''", 'max_length': '200'}),
'feed_tagline': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024'}),
'feed_title': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_load_time': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'last_modified': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'last_update': ('django.db.models.fields.DateTimeField', [], {'default': '0', 'auto_now': 'True', 'blank': 'True'}),
'min_to_decay': ('django.db.models.fields.IntegerField', [], {'default': '15'}),
'next_scheduled_update': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'num_subscribers': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'stories_per_month': ('django.db.models.fields.IntegerField', [], {'default': '0'})
},
'rss_feeds.feedpage': {
'feed': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'feed_page'", 'unique': 'True', 'to': "orm['rss_feeds.Feed']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'page_data': ('StoryField', [], {'null': 'True', 'blank': 'True'})
},
'rss_feeds.feedupdatehistory': {
'average_per_feed': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '1'}),
'fetch_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'number_of_feeds': ('django.db.models.fields.IntegerField', [], {}),
'seconds_taken': ('django.db.models.fields.IntegerField', [], {})
},
'rss_feeds.feedxml': {
'feed': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'feed_xml'", 'unique': 'True', 'to': "orm['rss_feeds.Feed']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'rss_xml': ('StoryField', [], {'null': 'True', 'blank': 'True'})
},
'rss_feeds.story': {
'Meta': {'db_table': "'stories'"},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'story_author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.StoryAuthor']"}),
'story_content': ('StoryField', [], {'null': 'True', 'blank': 'True'}),
'story_content_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'story_date': ('django.db.models.fields.DateTimeField', [], {}),
'story_feed': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'stories'", 'to': "orm['rss_feeds.Feed']"}),
'story_guid': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'story_guid_hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
'story_original_content': ('StoryField', [], {'null': 'True', 'blank': 'True'}),
'story_past_trim_date': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
'story_permalink': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'story_tags': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'story_title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['rss_feeds.Tag']", 'symmetrical': 'False'})
},
'rss_feeds.storyauthor': {
'author_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'feed': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.Feed']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
'rss_feeds.tag': {
'feed': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.Feed']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
}
}
complete_apps = ['rss_feeds']
| mit |
wanghongjuan/meta-iotqa-1 | lib/oeqa/runtime/pnp/disksize.py | 3 | 2271 | #[PROTEXCAT]
#\License: ALL RIGHTS RESERVED
"""
@file disksize.py
"""
##
# @addtogroup pnp pnp
# @brief This is pnp component
# @{
# @addtogroup disksize disksize
# @brief This is disksize module
# @{
##
import os
import time
import re
from oeqa.oetest import oeRuntimeTest
from oeqa.utils.helper import collect_pnp_log
class DiskSizeTest(oeRuntimeTest):
"""Disk consumption
@class DiskSizeTest
"""
def _parse_result(self, casename, logname):
"""parse disk size info from log file
@param self
@param casename
@param logname
@return disksize
"""
logpath = os.path.join(".", casename, logname)
file = open(logpath, 'r')
lines = file.readlines()
max = len(lines)
disksize = ""
index = max -1
while index > 0:
#search the latest data from the end line
if '/dev/disk' in lines[index]:
pattern = re.compile(r'(\d*\.?\d*[GM])')
size = pattern.findall(lines[index])
if len(size) > 1:
disksize = size[1]
break
else:
#The result may be at the next line
size = pattern.findall(lines[index+1])
if len(size) > 1:
disksize = size[1]
break
else:
print "Failed to find disk size!"
break
index = index -1
file.close()
return disksize
def test_disksize(self):
"""use df command to calculate the image installed size
@fn test_disksize
@param self
@return
"""
filename = os.path.basename(__file__)
casename = os.path.splitext(filename)[0]
(status, output) = self.target.run("df -h")
logname = casename + "-detail"
collect_pnp_log(casename, logname, output)
disksize = self._parse_result(casename,logname)
collect_pnp_log(casename, casename, disksize)
##
# TESTPOINT: #1, test_disksize
#
print "\n%s:%s\n" % (casename, output)
self.assertEqual(status, 0, output)
##
# @}
# @}
##
| mit |
linkaform/linkaform_api | linkaform_api/upload_file.py | 1 | 12588 | # -*- coding: utf-8 -*-
#!/usr/bin/python
#####
# Made by Jose Patricio VM
#####
# Script para generar pacos a partir de ordenes de Servicio de PCI Industrial
#
#
#####
import wget
import pyexcel
import datetime, time, re
from sys import argv
import simplejson
from linkaform_api import network, utils, settings
#Nombre del campo en la la Forma: Nombre en el Archvio
class LoadFile:
def __init__(self, settings={}):
self.settings = settings
self.lkf_api = utils.Cache(settings)
self.net = network.Network(settings)
#self.cr = self.net.get_collections()
def read_file(self, file_url='', file_name=''):
#sheet = pyexcel.get_sheet(file_name="bolsa.xlsx")
if file_name:
sheet = pyexcel.get_sheet(file_name = file_name)
if file_url:
sheet = pyexcel.get_sheet(url = file_url)
records = sheet.array
header = records.pop(0)
try:
header = [str(col).lower().replace(u'\xa0',u' ').strip().replace(' ', '_') for col in header]
except UnicodeEncodeError:
header = [col.lower().replace(u'\xa0',u' ').strip().replace(' ', '_') for col in header]
return header, records
def convert_to_epoch(self, strisodate):
if type(strisodate) == datetime.date or type(strisodate) == datetime.datetime:
return time.mktime(strisodate.timetuple())
strisodate2 = re.sub(' ','',strisodate)
strisodate2 = strisodate2.split(' ')[0]
try:
date_object = datetime.strptime(strisodate2, '%Y-%m-%d')
except ValueError:
date_object = datetime.strptime(strisodate2[:8], '%d/%m/%y')
return int(date_object.strftime("%s"))
def convert_to_sting_date(self, strisodate):
if type(strisodate) == datetime.date:
return strisodate
strisodate2 = re.sub(' ','',strisodate)
strisodate2 = strisodate2.split(' ')[0]
try:
date_object = datetime.strptime(strisodate2, '%Y-%m-%d')
except ValueError:
try:
date_object = datetime.strptime(strisodate2[:10], '%d/%m/%Y')
except ValueError:
date_object = datetime.strptime(strisodate2[:8], '%d/%m/%y')
return date_object.strftime('%Y-%m-%d')
def convert_to_sting_date(self, field):
res = {'field_id':field['field_id'], 'field_type':field['field_type'], 'label':field['label'], 'options':field['options']}
if field.has_key('group') and field['group']:
res['group_id'] = field['group']['group_id']
return res
def make_header_dict(self, header):
header_dict = {}
for position in range(len(header)):
content = header[position].encode('utf-8')
if str(content).lower().replace(' ' ,'') in header_dict.keys():
continue
header_dict[str(content).lower().replace(' ' ,'')] = position
return header_dict
def get_pos_field_id_dict(self, header, form_id, equivalcens_map={}):
#form_id=10378 el id de bolsa
#pos_field_id ={3: {'field_type': 'text', 'field_id': '584648c8b43fdd7d44ae63d1'}, 9: {'field_type': 'text', 'field_id': '58464a29b43fdd773c240163'}, 51: {'field_type': 'integer', 'field_id': '584648c8b43fdd7d44ae63d0'}}
#return pos_field_id
pos_field_id = {}
form_fields = self.lkf_api.get_form_id_fields(form_id)
if not form_fields:
raise ValueError('No data form FORM')
if not header:
raise ValueError('No data on HEADER')
header_dict = self.make_header_dict(header)
aa = False
assigne_headers = []
if len(form_fields) > 0:
fields = form_fields[0]['fields']
fields_json = {}
if 'folio' in header_dict.keys():
pos_field_id[header_dict['folio']] = {'field_type':'folio'}
elif equivalcens_map.has_key('folio'):
for eq_opt in equivalcens_map['folio']:
if eq_opt in header_dict.keys():
pos_field_id[header_dict[eq_opt]] = {'field_type':'folio'}
for field in fields:
label = field['label'].lower().replace(' ' ,'')
label_underscore = field['label'].lower().replace(' ' ,'_')
if label in header_dict.keys():
if label in assigne_headers:
continue
assigne_headers.append(label)
pos_field_id[header_dict[label]] = self.convert_to_sting_date(field)
elif label_underscore in header_dict.keys():
if label in assigne_headers:
continue
assigne_headers.append(label)
pos_field_id[header_dict[label_underscore]] = self.convert_to_sting_date(field)
elif field['label'] in equivalcens_map.keys():
header_lable = equivalcens_map[field['label']]
header_lable = header_lable.lower().replace(' ' ,'')
if header_lable in header_dict.keys():
if label in assigne_headers:
continue
assigne_headers.append(label)
pos_field_id[header_dict[header_lable]] = self.convert_to_sting_date(field)
return pos_field_id
def set_custom_values(self, pos_field_id, record):
custom_answer = {}
#set status de la orden
#custom_answer['f1054000a030000000000002'] = 'por_asignar'
return custom_answer
def update_metadata_from_record(self, header, record):
res = {}
if 'created_at' in header.keys():
pos = header['created_at']
if record[pos]:
#res['created_at'] = self.convert_to_sting_date(record[pos])
res['created_at'] = convert_to_epoch(record[pos])
if 'form_id' in header.keys():
pos = header['form_id']
if record[pos]:
res['form_id'] = record[pos]
return res
def get_nongroup_fields(self, pos_field_id):
res = []
for pos, element in pos_field_id.iteritems():
if element.has_key('group_id') and element['group_id']:
continue
else:
res.append(pos)
return res
def check_record_is_group_iterration(self, non_group_fields, record):
for pos in non_group_fields:
if record[pos]:
return False
return True
def prepare_record_list(self, pos_field_id, form_id, records, header):
records_to_upload = []
metadata = self.lkf_api.get_metadata(form_id=form_id, user_id=self.settings.config['USER_ID'] )
header_dict = self.make_header_dict(header)
non_group_fields = self.get_nongroup_fields(pos_field_id)
print 'len records', len(records)
for record in records:
is_group_iteration = self.check_record_is_group_iterration(non_group_fields, record)
is_group_iteration = False
metadata.update(self.update_metadata_from_record(header_dict, record))
cont = False
answer = {}
this_record = {}
count = 0
this_record.update(metadata)
group_iteration = {}
for pos, element in pos_field_id.iteritems():
count +=1
if element['field_type'] == 'folio':
this_record['folio'] = str(record[pos])
else:
element_answer = self.lkf_api.make_infosync_json(record[pos], element)
if element.has_key('group_id') and element['group_id'] and element_answer:
if not answer.has_key(element['group_id']):
answer[element['group_id']] = []
#answer.update(element_answer)
if not group_iteration.has_key(element['group_id']):
group_iteration[element['group_id']] = {}
group_iteration[element['group_id']].update(element_answer)
else:
answer.update(element_answer)
#answer[element['group_id']].append(group_iteration)
answer.update(self.set_custom_values(pos_field_id, record ))
if is_group_iteration:
last_rec = records_to_upload[-1]
for group_id in group_iteration.keys():
last_rec['answers'][group_id].append(group_iteration[group_id])
records_to_upload[-1] = last_rec
else:
for group_id in group_iteration.keys():
answer[group_id].append(group_iteration[group_id])
this_record["answers"] = answer
records_to_upload.append(this_record)
return records_to_upload
def create_record(self, records_to_create):
error_list = self.net.post_forms_answers_list(records_to_create)
return error_list
def remove_splecial_characters(self, text, replace_with='', remove_spaces=False):
if type(text) == str:
text = text.replace('\xa0', replace_with)
text = text.replace('\xc2',replace_with)
if remove_spaces:
text = text.strip()
if type(text) == unicode:
text = text.replace(u'\xa0', replace_with)
text = text.replace(u'\xc2', replace_with)
if remove_spaces:
text = text.strip()
return text
def remove_splecial_characters_list(self, text_list):
res = []
for text in text_list:
res.append(self.remove_splecial_characters(text, '', True))
return res
def get_file_to_upload(self, file_url='', file_name='', form_id=None, equivalcens_map={}):
if not form_id:
raise ValueError('Must specify form id')
if not file_url and not file_name:
raise ValueError('Must specify either one, file_url or file_name')
if file_url:
header, records = self.read_file(file_url=file_url)
elif file_name:
header, records = self.read_file(file_name=file_name)
header = self.remove_splecial_characters_list(header)
return header, records
def upload_file(self, file_url='', file_name='', form_id=None, equivalcens_map={}):
header, records = self.get_file_to_upload(file_url=file_url, file_name=file_name, form_id=form_id, equivalcens_map=equivalcens_map)
pos_field_id = self.get_pos_field_id_dict(header, form_id, equivalcens_map)
records_to_upload = self.prepare_record_list(pos_field_id, form_id, records, header)
error_list = self.create_record(records_to_upload)
return error_list
def print_help(self):
print '---------------- HELP --------------------------'
print 'more arguments needed'
print 'the script should be run like this'
print '''python upload_excel_file.py '{"file_name":"/tmp/personal.xlsx", "form_id":"1234", "equivalcens_map":{"foo":"bar"}}' '''
print '* form_id: where 1234 is the id of the form, is a requierd argument'
print '** file_name: file in you local machine'
print '** file_url: file on a remote url'
print 'if running from console you shoud send the settings json a second argument'
print 'running from console example'
print ''''python upload_excel_file.py '{"file_name":"/tmp/personal.xlsx", "form_id":"1234", "equivalcens_map":{"foo":"bar"}} '{"USERNAME": "mike"}' '''
if __name__ == "__main__":
if len(argv) > 1:
config = simplejson.loads(argv[1])
if argv[1] == 'help' or argv[1] == '--help':
LoadFile(settings).print_help()
elif not config.has_key('form_id'):
LoadFile(settings).print_help()
elif not config.has_key('file_name') and not config.has_key('file_url'):
LoadFile(settings).print_help()
else:
try:
if argv[2]:
settings.config.update(simplejson.loads(argv[2]))
except IndexError:
import settings
load_files = LoadFile(settings)
load_files.upload_file(config.get('file_url'), config.get('file_name'),
config.get('form_id'), config.get('equivalcens_map'))
else:
LoadFile(settings).print_help()
| gpl-3.0 |
BeZazz/lamebench | nb_third_party/dns/ttl.py | 248 | 2180 | # Copyright (C) 2003-2007, 2009, 2010 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
"""DNS TTL conversion."""
import dns.exception
class BadTTL(dns.exception.SyntaxError):
pass
def from_text(text):
"""Convert the text form of a TTL to an integer.
The BIND 8 units syntax for TTLs (e.g. '1w6d4h3m10s') is supported.
@param text: the textual TTL
@type text: string
@raises dns.ttl.BadTTL: the TTL is not well-formed
@rtype: int
"""
if text.isdigit():
total = long(text)
else:
if not text[0].isdigit():
raise BadTTL
total = 0L
current = 0L
for c in text:
if c.isdigit():
current *= 10
current += long(c)
else:
c = c.lower()
if c == 'w':
total += current * 604800L
elif c == 'd':
total += current * 86400L
elif c == 'h':
total += current * 3600L
elif c == 'm':
total += current * 60L
elif c == 's':
total += current
else:
raise BadTTL("unknown unit '%s'" % c)
current = 0
if not current == 0:
raise BadTTL("trailing integer")
if total < 0L or total > 2147483647L:
raise BadTTL("TTL should be between 0 and 2^31 - 1 (inclusive)")
return total
| apache-2.0 |
sankhaMukherjee/myCutter | {{cookiecutter.project}}/src/lib/argParsers/config.py | 1 | 5078 | from logs import logDecorator as lD
import jsonref
config = jsonref.load(open('../config/config.json'))
logBase = config['logging']['logBase'] + '.lib.argParsers.config'
@lD.log(logBase + '.parsersAdd')
def addParsers(logger, parser):
'''add argument parsers specific to the ``config/config.json`` file
This function is kgoing to add argument parsers specific to the
``config/config.json`` file. This file has several options for
logging data. This information will be
Parameters
----------
logger : {logging.Logger}
The logger used for logging error information
parser : {argparse.ArgumentParser instance}
An instance of ``argparse.ArgumentParser()`` that will be
used for parsing the command line arguments specific to the
config file
Returns
-------
argparse.ArgumentParser instance
The same parser argument to which new CLI arguments have been
appended
'''
parser.add_argument("--logging_level",
type=str,
choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
help="change the logging level")
# parser.add_argument("--logging_specs_file_todo",
# action="store_true",
# help="allow file logging")
parser.add_argument("--logging_specs_file_logFolder",
type = str,
help = "folder in which to log files")
parser.add_argument("--logging_specs_stdout_todo",
action="store_true",
help="allow stdout logging")
parser.add_argument("--logging_specs_logstash_todo",
action="store_true",
help="allow logstash logging")
parser.add_argument("--logging_specs_logstash_version",
type = int,
help = "version for the logstash server")
parser.add_argument("--logging_specs_logstash_port",
type = int,
help = "port for the logstash server")
parser.add_argument("--logging_specs_logstash_host",
type = str,
help = "hostname for the logstash server")
return parser
@lD.log(logBase + '.decodeParser')
def decodeParser(logger, args):
'''generate a dictionary from the parsed args
The parsed args may/may not be present. When they are
present, they are pretty hard to use. For this reason,
this function is going to convert the result into
something meaningful.
Parameters
----------
logger : {logging.Logger}
The logger used for logging error information
args : {args Namespace}
parsed arguments from the command line
Returns
-------
dict
Dictionary that converts the arguments into something
meaningful
'''
values = {
'specs': {
'file': {},
'stdout': {},
'logstash' : {}
}
}
try:
if args.logging_level is not None:
values['level'] = args.logging_level
except Exception as e:
logger.error('Unable to decode the argument logging_level :{}'.format(
e))
# try:
# if args.logging_specs_file_todo is not None:
# values['specs']['file']['todo'] = args.logging_specs_file_todo
# except Exception as e:
# logger.error('Unable to decode the argument logging_specs_file_todo :{}'.format(
# e))
try:
if args.logging_specs_file_logFolder is not None:
values['specs']['file']['logFolder'] = args.logging_specs_file_logFolder
except Exception as e:
logger.error('Unable to decode the argument logging_specs_file_logFolder :{}'.format(
e))
try:
if args.logging_specs_stdout_todo is not None:
values['specs']['stdout']['todo'] = args.logging_specs_stdout_todo
except Exception as e:
logger.error('Unable to decode the argument logging_specs_stdout_todo :{}'.format(
e))
try:
if args.logging_specs_logstash_todo is not None:
values['specs']['logstash']['todo'] = args.logging_specs_logstash_todo
except Exception as e:
logger.error('Unable to decode the argument logging_specs_logstash_todo :{}'.format(
e))
try:
if args.logging_specs_logstash_version is not None:
values['specs']['logstash']['version'] = args.logging_specs_logstash_version
except Exception as e:
logger.error('Unable to decode the argument logging_specs_logstash_version :{}'.format(
e))
try:
if args.logging_specs_logstash_port is not None:
values['specs']['logstash']['port'] = args.logging_specs_logstash_port
except Exception as e:
logger.error('Unable to decode the argument logging_specs_logstash_port :{}'.format(
e))
try:
if args.logging_specs_logstash_host is not None:
values['specs']['logstash']['host'] = args.logging_specs_logstash_host
except Exception as e:
logger.error('Unable to decode the argument logging_specs_logstash_host :{}'.format(
e))
return values
| mit |
zhuwenping/python-for-android | python-modules/twisted/twisted/internet/posixbase.py | 56 | 16433 | # -*- test-case-name: twisted.test.test_internet,twisted.internet.test.test_posixbase -*-
# Copyright (c) 2001-2010 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Posix reactor base class
"""
import warnings
import socket
import errno
import os
from zope.interface import implements, classImplements
from twisted.python.compat import set
from twisted.internet.interfaces import IReactorUNIX, IReactorUNIXDatagram
from twisted.internet.interfaces import IReactorTCP, IReactorUDP, IReactorSSL, _IReactorArbitrary
from twisted.internet.interfaces import IReactorProcess, IReactorMulticast
from twisted.internet.interfaces import IHalfCloseableDescriptor
from twisted.internet import error
from twisted.internet import tcp, udp
from twisted.python import log, failure, util
from twisted.persisted import styles
from twisted.python.runtime import platformType, platform
from twisted.internet.base import ReactorBase, _SignalReactorMixin
try:
from twisted.internet import ssl
sslEnabled = True
except ImportError:
sslEnabled = False
try:
from twisted.internet import unix
unixEnabled = True
except ImportError:
unixEnabled = False
processEnabled = False
if platformType == 'posix':
from twisted.internet import fdesc, process, _signals
processEnabled = True
if platform.isWindows():
try:
import win32process
processEnabled = True
except ImportError:
win32process = None
class _SocketWaker(log.Logger, styles.Ephemeral):
"""
The I{self-pipe trick<http://cr.yp.to/docs/selfpipe.html>}, implemented
using a pair of sockets rather than pipes (due to the lack of support in
select() on Windows for pipes), used to wake up the main loop from
another thread.
"""
disconnected = 0
def __init__(self, reactor):
"""Initialize.
"""
self.reactor = reactor
# Following select_trigger (from asyncore)'s example;
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
server.bind(('127.0.0.1', 0))
server.listen(1)
client.connect(server.getsockname())
reader, clientaddr = server.accept()
client.setblocking(0)
reader.setblocking(0)
self.r = reader
self.w = client
self.fileno = self.r.fileno
def wakeUp(self):
"""Send a byte to my connection.
"""
try:
util.untilConcludes(self.w.send, 'x')
except socket.error, (err, msg):
if err != errno.WSAEWOULDBLOCK:
raise
def doRead(self):
"""Read some data from my connection.
"""
try:
self.r.recv(8192)
except socket.error:
pass
def connectionLost(self, reason):
self.r.close()
self.w.close()
class _FDWaker(object, log.Logger, styles.Ephemeral):
"""
The I{self-pipe trick<http://cr.yp.to/docs/selfpipe.html>}, used to wake
up the main loop from another thread or a signal handler.
L{_FDWaker} is a base class for waker implementations based on
writing to a pipe being monitored by the reactor.
@ivar o: The file descriptor for the end of the pipe which can be
written to to wake up a reactor monitoring this waker.
@ivar i: The file descriptor which should be monitored in order to
be awoken by this waker.
"""
disconnected = 0
i = None
o = None
def __init__(self, reactor):
"""Initialize.
"""
self.reactor = reactor
self.i, self.o = os.pipe()
fdesc.setNonBlocking(self.i)
fdesc._setCloseOnExec(self.i)
fdesc.setNonBlocking(self.o)
fdesc._setCloseOnExec(self.o)
self.fileno = lambda: self.i
def doRead(self):
"""
Read some bytes from the pipe and discard them.
"""
fdesc.readFromFD(self.fileno(), lambda data: None)
def connectionLost(self, reason):
"""Close both ends of my pipe.
"""
if not hasattr(self, "o"):
return
for fd in self.i, self.o:
try:
os.close(fd)
except IOError:
pass
del self.i, self.o
class _UnixWaker(_FDWaker):
"""
This class provides a simple interface to wake up the event loop.
This is used by threads or signals to wake up the event loop.
"""
def wakeUp(self):
"""Write one byte to the pipe, and flush it.
"""
# We don't use fdesc.writeToFD since we need to distinguish
# between EINTR (try again) and EAGAIN (do nothing).
if self.o is not None:
try:
util.untilConcludes(os.write, self.o, 'x')
except OSError, e:
# XXX There is no unit test for raising the exception
# for other errnos. See #4285.
if e.errno != errno.EAGAIN:
raise
if platformType == 'posix':
_Waker = _UnixWaker
else:
# Primarily Windows and Jython.
_Waker = _SocketWaker
class _SIGCHLDWaker(_FDWaker):
"""
L{_SIGCHLDWaker} can wake up a reactor whenever C{SIGCHLD} is
received.
@see: L{twisted.internet._signals}
"""
def __init__(self, reactor):
_FDWaker.__init__(self, reactor)
def install(self):
"""
Install the handler necessary to make this waker active.
"""
_signals.installHandler(self.o)
def uninstall(self):
"""
Remove the handler which makes this waker active.
"""
_signals.installHandler(-1)
def doRead(self):
"""
Having woken up the reactor in response to receipt of
C{SIGCHLD}, reap the process which exited.
This is called whenever the reactor notices the waker pipe is
writeable, which happens soon after any call to the C{wakeUp}
method.
"""
_FDWaker.doRead(self)
process.reapAllProcesses()
class PosixReactorBase(_SignalReactorMixin, ReactorBase):
"""
A basis for reactors that use file descriptors.
@ivar _childWaker: C{None} or a reference to the L{_SIGCHLDWaker}
which is used to properly notice child process termination.
"""
implements(_IReactorArbitrary, IReactorTCP, IReactorUDP, IReactorMulticast)
def _disconnectSelectable(self, selectable, why, isRead, faildict={
error.ConnectionDone: failure.Failure(error.ConnectionDone()),
error.ConnectionLost: failure.Failure(error.ConnectionLost())
}):
"""
Utility function for disconnecting a selectable.
Supports half-close notification, isRead should be boolean indicating
whether error resulted from doRead().
"""
self.removeReader(selectable)
f = faildict.get(why.__class__)
if f:
if (isRead and why.__class__ == error.ConnectionDone
and IHalfCloseableDescriptor.providedBy(selectable)):
selectable.readConnectionLost(f)
else:
self.removeWriter(selectable)
selectable.connectionLost(f)
else:
self.removeWriter(selectable)
selectable.connectionLost(failure.Failure(why))
def installWaker(self):
"""
Install a `waker' to allow threads and signals to wake up the IO thread.
We use the self-pipe trick (http://cr.yp.to/docs/selfpipe.html) to wake
the reactor. On Windows we use a pair of sockets.
"""
if not self.waker:
self.waker = _Waker(self)
self._internalReaders.add(self.waker)
self.addReader(self.waker)
_childWaker = None
def _handleSignals(self):
"""
Extend the basic signal handling logic to also support
handling SIGCHLD to know when to try to reap child processes.
"""
_SignalReactorMixin._handleSignals(self)
if platformType == 'posix':
if not self._childWaker:
self._childWaker = _SIGCHLDWaker(self)
self._internalReaders.add(self._childWaker)
self.addReader(self._childWaker)
self._childWaker.install()
# Also reap all processes right now, in case we missed any
# signals before we installed the SIGCHLD waker/handler.
# This should only happen if someone used spawnProcess
# before calling reactor.run (and the process also exited
# already).
process.reapAllProcesses()
def _uninstallHandler(self):
"""
If a child waker was created and installed, uninstall it now.
Since this disables reactor functionality and is only called
when the reactor is stopping, it doesn't provide any directly
useful functionality, but the cleanup of reactor-related
process-global state that it does helps in unit tests
involving multiple reactors and is generally just a nice
thing.
"""
# XXX This would probably be an alright place to put all of
# the cleanup code for all internal readers (here and in the
# base class, anyway). See #3063 for that cleanup task.
if self._childWaker:
self._childWaker.uninstall()
# IReactorProcess
def spawnProcess(self, processProtocol, executable, args=(),
env={}, path=None,
uid=None, gid=None, usePTY=0, childFDs=None):
args, env = self._checkProcessArgs(args, env)
if platformType == 'posix':
if usePTY:
if childFDs is not None:
raise ValueError("Using childFDs is not supported with usePTY=True.")
return process.PTYProcess(self, executable, args, env, path,
processProtocol, uid, gid, usePTY)
else:
return process.Process(self, executable, args, env, path,
processProtocol, uid, gid, childFDs)
elif platformType == "win32":
if uid is not None or gid is not None:
raise ValueError("The uid and gid parameters are not supported on Windows.")
if usePTY:
raise ValueError("The usePTY parameter is not supported on Windows.")
if childFDs:
raise ValueError("Customizing childFDs is not supported on Windows.")
if win32process:
from twisted.internet._dumbwin32proc import Process
return Process(self, processProtocol, executable, args, env, path)
else:
raise NotImplementedError, "spawnProcess not available since pywin32 is not installed."
else:
raise NotImplementedError, "spawnProcess only available on Windows or POSIX."
# IReactorUDP
def listenUDP(self, port, protocol, interface='', maxPacketSize=8192):
"""Connects a given L{DatagramProtocol} to the given numeric UDP port.
@returns: object conforming to L{IListeningPort}.
"""
p = udp.Port(port, protocol, interface, maxPacketSize, self)
p.startListening()
return p
# IReactorMulticast
def listenMulticast(self, port, protocol, interface='', maxPacketSize=8192, listenMultiple=False):
"""Connects a given DatagramProtocol to the given numeric UDP port.
EXPERIMENTAL.
@returns: object conforming to IListeningPort.
"""
p = udp.MulticastPort(port, protocol, interface, maxPacketSize, self, listenMultiple)
p.startListening()
return p
# IReactorUNIX
def connectUNIX(self, address, factory, timeout=30, checkPID=0):
"""@see: twisted.internet.interfaces.IReactorUNIX.connectUNIX
"""
assert unixEnabled, "UNIX support is not present"
c = unix.Connector(address, factory, timeout, self, checkPID)
c.connect()
return c
def listenUNIX(self, address, factory, backlog=50, mode=0666, wantPID=0):
"""
@see: twisted.internet.interfaces.IReactorUNIX.listenUNIX
"""
assert unixEnabled, "UNIX support is not present"
p = unix.Port(address, factory, backlog, mode, self, wantPID)
p.startListening()
return p
# IReactorUNIXDatagram
def listenUNIXDatagram(self, address, protocol, maxPacketSize=8192,
mode=0666):
"""
Connects a given L{DatagramProtocol} to the given path.
EXPERIMENTAL.
@returns: object conforming to L{IListeningPort}.
"""
assert unixEnabled, "UNIX support is not present"
p = unix.DatagramPort(address, protocol, maxPacketSize, mode, self)
p.startListening()
return p
def connectUNIXDatagram(self, address, protocol, maxPacketSize=8192,
mode=0666, bindAddress=None):
"""
Connects a L{ConnectedDatagramProtocol} instance to a path.
EXPERIMENTAL.
"""
assert unixEnabled, "UNIX support is not present"
p = unix.ConnectedDatagramPort(address, protocol, maxPacketSize, mode, bindAddress, self)
p.startListening()
return p
# IReactorTCP
def listenTCP(self, port, factory, backlog=50, interface=''):
"""@see: twisted.internet.interfaces.IReactorTCP.listenTCP
"""
p = tcp.Port(port, factory, backlog, interface, self)
p.startListening()
return p
def connectTCP(self, host, port, factory, timeout=30, bindAddress=None):
"""@see: twisted.internet.interfaces.IReactorTCP.connectTCP
"""
c = tcp.Connector(host, port, factory, timeout, bindAddress, self)
c.connect()
return c
# IReactorSSL (sometimes, not implemented)
def connectSSL(self, host, port, factory, contextFactory, timeout=30, bindAddress=None):
"""@see: twisted.internet.interfaces.IReactorSSL.connectSSL
"""
assert sslEnabled, "SSL support is not present"
c = ssl.Connector(host, port, factory, contextFactory, timeout, bindAddress, self)
c.connect()
return c
def listenSSL(self, port, factory, contextFactory, backlog=50, interface=''):
"""@see: twisted.internet.interfaces.IReactorSSL.listenSSL
"""
assert sslEnabled, "SSL support is not present"
p = ssl.Port(port, factory, contextFactory, backlog, interface, self)
p.startListening()
return p
# IReactorArbitrary
def listenWith(self, portType, *args, **kw):
warnings.warn(
"listenWith is deprecated since Twisted 10.1. "
"See IReactorFDSet.",
category=DeprecationWarning,
stacklevel=2)
kw['reactor'] = self
p = portType(*args, **kw)
p.startListening()
return p
def connectWith(self, connectorType, *args, **kw):
warnings.warn(
"connectWith is deprecated since Twisted 10.1. "
"See IReactorFDSet.",
category=DeprecationWarning,
stacklevel=2)
kw['reactor'] = self
c = connectorType(*args, **kw)
c.connect()
return c
def _removeAll(self, readers, writers):
"""
Remove all readers and writers, and list of removed L{IReadDescriptor}s
and L{IWriteDescriptor}s.
Meant for calling from subclasses, to implement removeAll, like::
def removeAll(self):
return self._removeAll(self._reads, self._writes)
where C{self._reads} and C{self._writes} are iterables.
"""
removedReaders = set(readers) - self._internalReaders
for reader in removedReaders:
self.removeReader(reader)
removedWriters = set(writers)
for writer in removedWriters:
self.removeWriter(writer)
return list(removedReaders | removedWriters)
if sslEnabled:
classImplements(PosixReactorBase, IReactorSSL)
if unixEnabled:
classImplements(PosixReactorBase, IReactorUNIX, IReactorUNIXDatagram)
if processEnabled:
classImplements(PosixReactorBase, IReactorProcess)
__all__ = ["PosixReactorBase"]
| apache-2.0 |
katsko/pybbm | pybb/south_migrations/0025_auto__add_unique_topicreadtracker_topic_user__add_unique_forumreadtrac.py | 11 | 11396 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from pybb.compat import get_image_field_full_name, get_user_model_path, get_user_frozen_models
AUTH_USER = get_user_model_path()
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'TopicReadTracker', fields ['topic', 'user']
db.create_unique('pybb_topicreadtracker', ['topic_id', 'user_id'])
# Adding unique constraint on 'ForumReadTracker', fields ['user', 'forum']
db.create_unique('pybb_forumreadtracker', ['user_id', 'forum_id'])
def backwards(self, orm):
# Removing unique constraint on 'ForumReadTracker', fields ['user', 'forum']
db.delete_unique('pybb_forumreadtracker', ['user_id', 'forum_id'])
# Removing unique constraint on 'TopicReadTracker', fields ['topic', 'user']
db.delete_unique('pybb_topicreadtracker', ['topic_id', 'user_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'})
},
'pybb.attachment': {
'Meta': {'object_name': 'Attachment'},
'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'post': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attachments'", 'to': "orm['pybb.Post']"}),
'size': ('django.db.models.fields.IntegerField', [], {})
},
'pybb.category': {
'Meta': {'ordering': "['position']", 'object_name': 'Category'},
'hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
'position': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'})
},
'pybb.forum': {
'Meta': {'ordering': "['position']", 'object_name': 'Forum'},
'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'forums'", 'to': "orm['pybb.Category']"}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'headline': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'moderators': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['%s']"% AUTH_USER, 'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
'position': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
'post_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
'readed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'readed_forums'", 'symmetrical': 'False', 'through': "orm['pybb.ForumReadTracker']", 'to': "orm['%s']"% AUTH_USER}),
'topic_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
'updated': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
},
'pybb.forumreadtracker': {
'Meta': {'unique_together': "(('user', 'forum'),)", 'object_name': 'ForumReadTracker'},
'forum': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['pybb.Forum']", 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'time_stamp': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']"% AUTH_USER})
},
'pybb.pollanswer': {
'Meta': {'object_name': 'PollAnswer'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'text': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'topic': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'poll_answers'", 'to': "orm['pybb.Topic']"})
},
'pybb.pollansweruser': {
'Meta': {'unique_together': "(('poll_answer', 'user'),)", 'object_name': 'PollAnswerUser'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'poll_answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'users'", 'to': "orm['pybb.PollAnswer']"}),
'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'poll_answers'", 'to': "orm['%s']"% AUTH_USER})
},
'pybb.post': {
'Meta': {'ordering': "['created']", 'object_name': 'Post'},
'body': ('django.db.models.fields.TextField', [], {}),
'body_html': ('django.db.models.fields.TextField', [], {}),
'body_text': ('django.db.models.fields.TextField', [], {}),
'created': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'on_moderation': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'topic': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'posts'", 'to': "orm['pybb.Topic']"}),
'updated': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'posts'", 'to': "orm['%s']"% AUTH_USER}),
'user_ip': ('django.db.models.fields.IPAddressField', [], {'default': "'0.0.0.0'", 'max_length': '15', 'blank': 'True'})
},
'pybb.profile': {
'Meta': {'object_name': 'Profile'},
'autosubscribe': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'avatar': (get_image_field_full_name(), [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'language': ('django.db.models.fields.CharField', [], {'default': "'en-us'", 'max_length': '10', 'blank': 'True'}),
'post_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
'show_signatures': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'signature': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'blank': 'True'}),
'signature_html': ('django.db.models.fields.TextField', [], {'max_length': '1054', 'blank': 'True'}),
'time_zone': ('django.db.models.fields.FloatField', [], {'default': '3.0'}),
'user': ('annoying.fields.AutoOneToOneField', [], {'related_name': "'pybb_profile'", 'unique': 'True', 'to': "orm['%s']"% AUTH_USER})
},
'pybb.topic': {
'Meta': {'ordering': "['-created']", 'object_name': 'Topic'},
'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
'forum': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'topics'", 'to': "orm['pybb.Forum']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'on_moderation': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'poll_question': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'poll_type': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'post_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
'readed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'readed_topics'", 'symmetrical': 'False', 'through': "orm['pybb.TopicReadTracker']", 'to': "orm['%s']"% AUTH_USER}),
'sticky': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'subscriptions'", 'blank': 'True', 'to': "orm['%s']"% AUTH_USER}),
'updated': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']"% AUTH_USER}),
'views': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'})
},
'pybb.topicreadtracker': {
'Meta': {'unique_together': "(('user', 'topic'),)", 'object_name': 'TopicReadTracker'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'time_stamp': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'topic': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['pybb.Topic']", 'null': 'True', 'blank': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']"% AUTH_USER})
}
}
models.update(get_user_frozen_models(AUTH_USER))
complete_apps = ['pybb']
| bsd-2-clause |
runekaagaard/django-contrib-locking | tests/distinct_on_fields/models.py | 166 | 1284 | from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Tag(models.Model):
name = models.CharField(max_length=10)
parent = models.ForeignKey('self', blank=True, null=True,
related_name='children')
class Meta:
ordering = ['name']
def __str__(self):
return self.name
@python_2_unicode_compatible
class Celebrity(models.Model):
name = models.CharField("Name", max_length=20)
greatest_fan = models.ForeignKey("Fan", null=True, unique=True)
def __str__(self):
return self.name
class Fan(models.Model):
fan_of = models.ForeignKey(Celebrity)
@python_2_unicode_compatible
class Staff(models.Model):
id = models.IntegerField(primary_key=True)
name = models.CharField(max_length=50)
organisation = models.CharField(max_length=100)
tags = models.ManyToManyField(Tag, through='StaffTag')
coworkers = models.ManyToManyField('self')
def __str__(self):
return self.name
@python_2_unicode_compatible
class StaffTag(models.Model):
staff = models.ForeignKey(Staff)
tag = models.ForeignKey(Tag)
def __str__(self):
return "%s -> %s" % (self.tag, self.staff)
| bsd-3-clause |
BaladiDogGames/baladidoggames.github.io | mingw/bin/lib/imputil.py | 228 | 25764 | """
Import utilities
Exported classes:
ImportManager Manage the import process
Importer Base class for replacing standard import functions
BuiltinImporter Emulate the import mechanism for builtin and frozen modules
DynLoadSuffixImporter
"""
from warnings import warnpy3k
warnpy3k("the imputil module has been removed in Python 3.0", stacklevel=2)
del warnpy3k
# note: avoid importing non-builtin modules
import imp ### not available in Jython?
import sys
import __builtin__
# for the DirectoryImporter
import struct
import marshal
__all__ = ["ImportManager","Importer","BuiltinImporter"]
_StringType = type('')
_ModuleType = type(sys) ### doesn't work in Jython...
class ImportManager:
"Manage the import process."
def install(self, namespace=vars(__builtin__)):
"Install this ImportManager into the specified namespace."
if isinstance(namespace, _ModuleType):
namespace = vars(namespace)
# Note: we have no notion of "chaining"
# Record the previous import hook, then install our own.
self.previous_importer = namespace['__import__']
self.namespace = namespace
namespace['__import__'] = self._import_hook
### fix this
#namespace['reload'] = self._reload_hook
def uninstall(self):
"Restore the previous import mechanism."
self.namespace['__import__'] = self.previous_importer
def add_suffix(self, suffix, importFunc):
assert hasattr(importFunc, '__call__')
self.fs_imp.add_suffix(suffix, importFunc)
######################################################################
#
# PRIVATE METHODS
#
clsFilesystemImporter = None
def __init__(self, fs_imp=None):
# we're definitely going to be importing something in the future,
# so let's just load the OS-related facilities.
if not _os_stat:
_os_bootstrap()
# This is the Importer that we use for grabbing stuff from the
# filesystem. It defines one more method (import_from_dir) for our use.
if fs_imp is None:
cls = self.clsFilesystemImporter or _FilesystemImporter
fs_imp = cls()
self.fs_imp = fs_imp
# Initialize the set of suffixes that we recognize and import.
# The default will import dynamic-load modules first, followed by
# .py files (or a .py file's cached bytecode)
for desc in imp.get_suffixes():
if desc[2] == imp.C_EXTENSION:
self.add_suffix(desc[0],
DynLoadSuffixImporter(desc).import_file)
self.add_suffix('.py', py_suffix_importer)
def _import_hook(self, fqname, globals=None, locals=None, fromlist=None):
"""Python calls this hook to locate and import a module."""
parts = fqname.split('.')
# determine the context of this import
parent = self._determine_import_context(globals)
# if there is a parent, then its importer should manage this import
if parent:
module = parent.__importer__._do_import(parent, parts, fromlist)
if module:
return module
# has the top module already been imported?
try:
top_module = sys.modules[parts[0]]
except KeyError:
# look for the topmost module
top_module = self._import_top_module(parts[0])
if not top_module:
# the topmost module wasn't found at all.
raise ImportError, 'No module named ' + fqname
# fast-path simple imports
if len(parts) == 1:
if not fromlist:
return top_module
if not top_module.__dict__.get('__ispkg__'):
# __ispkg__ isn't defined (the module was not imported by us),
# or it is zero.
#
# In the former case, there is no way that we could import
# sub-modules that occur in the fromlist (but we can't raise an
# error because it may just be names) because we don't know how
# to deal with packages that were imported by other systems.
#
# In the latter case (__ispkg__ == 0), there can't be any sub-
# modules present, so we can just return.
#
# In both cases, since len(parts) == 1, the top_module is also
# the "bottom" which is the defined return when a fromlist
# exists.
return top_module
importer = top_module.__dict__.get('__importer__')
if importer:
return importer._finish_import(top_module, parts[1:], fromlist)
# Grrr, some people "import os.path" or do "from os.path import ..."
if len(parts) == 2 and hasattr(top_module, parts[1]):
if fromlist:
return getattr(top_module, parts[1])
else:
return top_module
# If the importer does not exist, then we have to bail. A missing
# importer means that something else imported the module, and we have
# no knowledge of how to get sub-modules out of the thing.
raise ImportError, 'No module named ' + fqname
def _determine_import_context(self, globals):
"""Returns the context in which a module should be imported.
The context could be a loaded (package) module and the imported module
will be looked for within that package. The context could also be None,
meaning there is no context -- the module should be looked for as a
"top-level" module.
"""
if not globals or not globals.get('__importer__'):
# globals does not refer to one of our modules or packages. That
# implies there is no relative import context (as far as we are
# concerned), and it should just pick it off the standard path.
return None
# The globals refer to a module or package of ours. It will define
# the context of the new import. Get the module/package fqname.
parent_fqname = globals['__name__']
# if a package is performing the import, then return itself (imports
# refer to pkg contents)
if globals['__ispkg__']:
parent = sys.modules[parent_fqname]
assert globals is parent.__dict__
return parent
i = parent_fqname.rfind('.')
# a module outside of a package has no particular import context
if i == -1:
return None
# if a module in a package is performing the import, then return the
# package (imports refer to siblings)
parent_fqname = parent_fqname[:i]
parent = sys.modules[parent_fqname]
assert parent.__name__ == parent_fqname
return parent
def _import_top_module(self, name):
# scan sys.path looking for a location in the filesystem that contains
# the module, or an Importer object that can import the module.
for item in sys.path:
if isinstance(item, _StringType):
module = self.fs_imp.import_from_dir(item, name)
else:
module = item.import_top(name)
if module:
return module
return None
def _reload_hook(self, module):
"Python calls this hook to reload a module."
# reloading of a module may or may not be possible (depending on the
# importer), but at least we can validate that it's ours to reload
importer = module.__dict__.get('__importer__')
if not importer:
### oops. now what...
pass
# okay. it is using the imputil system, and we must delegate it, but
# we don't know what to do (yet)
### we should blast the module dict and do another get_code(). need to
### flesh this out and add proper docco...
raise SystemError, "reload not yet implemented"
class Importer:
"Base class for replacing standard import functions."
def import_top(self, name):
"Import a top-level module."
return self._import_one(None, name, name)
######################################################################
#
# PRIVATE METHODS
#
def _finish_import(self, top, parts, fromlist):
# if "a.b.c" was provided, then load the ".b.c" portion down from
# below the top-level module.
bottom = self._load_tail(top, parts)
# if the form is "import a.b.c", then return "a"
if not fromlist:
# no fromlist: return the top of the import tree
return top
# the top module was imported by self.
#
# this means that the bottom module was also imported by self (just
# now, or in the past and we fetched it from sys.modules).
#
# since we imported/handled the bottom module, this means that we can
# also handle its fromlist (and reliably use __ispkg__).
# if the bottom node is a package, then (potentially) import some
# modules.
#
# note: if it is not a package, then "fromlist" refers to names in
# the bottom module rather than modules.
# note: for a mix of names and modules in the fromlist, we will
# import all modules and insert those into the namespace of
# the package module. Python will pick up all fromlist names
# from the bottom (package) module; some will be modules that
# we imported and stored in the namespace, others are expected
# to be present already.
if bottom.__ispkg__:
self._import_fromlist(bottom, fromlist)
# if the form is "from a.b import c, d" then return "b"
return bottom
def _import_one(self, parent, modname, fqname):
"Import a single module."
# has the module already been imported?
try:
return sys.modules[fqname]
except KeyError:
pass
# load the module's code, or fetch the module itself
result = self.get_code(parent, modname, fqname)
if result is None:
return None
module = self._process_result(result, fqname)
# insert the module into its parent
if parent:
setattr(parent, modname, module)
return module
def _process_result(self, result, fqname):
ispkg, code, values = result
# did get_code() return an actual module? (rather than a code object)
is_module = isinstance(code, _ModuleType)
# use the returned module, or create a new one to exec code into
if is_module:
module = code
else:
module = imp.new_module(fqname)
### record packages a bit differently??
module.__importer__ = self
module.__ispkg__ = ispkg
# insert additional values into the module (before executing the code)
module.__dict__.update(values)
# the module is almost ready... make it visible
sys.modules[fqname] = module
# execute the code within the module's namespace
if not is_module:
try:
exec code in module.__dict__
except:
if fqname in sys.modules:
del sys.modules[fqname]
raise
# fetch from sys.modules instead of returning module directly.
# also make module's __name__ agree with fqname, in case
# the "exec code in module.__dict__" played games on us.
module = sys.modules[fqname]
module.__name__ = fqname
return module
def _load_tail(self, m, parts):
"""Import the rest of the modules, down from the top-level module.
Returns the last module in the dotted list of modules.
"""
for part in parts:
fqname = "%s.%s" % (m.__name__, part)
m = self._import_one(m, part, fqname)
if not m:
raise ImportError, "No module named " + fqname
return m
def _import_fromlist(self, package, fromlist):
'Import any sub-modules in the "from" list.'
# if '*' is present in the fromlist, then look for the '__all__'
# variable to find additional items (modules) to import.
if '*' in fromlist:
fromlist = list(fromlist) + \
list(package.__dict__.get('__all__', []))
for sub in fromlist:
# if the name is already present, then don't try to import it (it
# might not be a module!).
if sub != '*' and not hasattr(package, sub):
subname = "%s.%s" % (package.__name__, sub)
submod = self._import_one(package, sub, subname)
if not submod:
raise ImportError, "cannot import name " + subname
def _do_import(self, parent, parts, fromlist):
"""Attempt to import the module relative to parent.
This method is used when the import context specifies that <self>
imported the parent module.
"""
top_name = parts[0]
top_fqname = parent.__name__ + '.' + top_name
top_module = self._import_one(parent, top_name, top_fqname)
if not top_module:
# this importer and parent could not find the module (relatively)
return None
return self._finish_import(top_module, parts[1:], fromlist)
######################################################################
#
# METHODS TO OVERRIDE
#
def get_code(self, parent, modname, fqname):
"""Find and retrieve the code for the given module.
parent specifies a parent module to define a context for importing. It
may be None, indicating no particular context for the search.
modname specifies a single module (not dotted) within the parent.
fqname specifies the fully-qualified module name. This is a
(potentially) dotted name from the "root" of the module namespace
down to the modname.
If there is no parent, then modname==fqname.
This method should return None, or a 3-tuple.
* If the module was not found, then None should be returned.
* The first item of the 2- or 3-tuple should be the integer 0 or 1,
specifying whether the module that was found is a package or not.
* The second item is the code object for the module (it will be
executed within the new module's namespace). This item can also
be a fully-loaded module object (e.g. loaded from a shared lib).
* The third item is a dictionary of name/value pairs that will be
inserted into new module before the code object is executed. This
is provided in case the module's code expects certain values (such
as where the module was found). When the second item is a module
object, then these names/values will be inserted *after* the module
has been loaded/initialized.
"""
raise RuntimeError, "get_code not implemented"
######################################################################
#
# Some handy stuff for the Importers
#
# byte-compiled file suffix character
_suffix_char = __debug__ and 'c' or 'o'
# byte-compiled file suffix
_suffix = '.py' + _suffix_char
def _compile(pathname, timestamp):
"""Compile (and cache) a Python source file.
The file specified by <pathname> is compiled to a code object and
returned.
Presuming the appropriate privileges exist, the bytecodes will be
saved back to the filesystem for future imports. The source file's
modification timestamp must be provided as a Long value.
"""
codestring = open(pathname, 'rU').read()
if codestring and codestring[-1] != '\n':
codestring = codestring + '\n'
code = __builtin__.compile(codestring, pathname, 'exec')
# try to cache the compiled code
try:
f = open(pathname + _suffix_char, 'wb')
except IOError:
pass
else:
f.write('\0\0\0\0')
f.write(struct.pack('<I', timestamp))
marshal.dump(code, f)
f.flush()
f.seek(0, 0)
f.write(imp.get_magic())
f.close()
return code
_os_stat = _os_path_join = None
def _os_bootstrap():
"Set up 'os' module replacement functions for use during import bootstrap."
names = sys.builtin_module_names
join = None
if 'posix' in names:
sep = '/'
from posix import stat
elif 'nt' in names:
sep = '\\'
from nt import stat
elif 'dos' in names:
sep = '\\'
from dos import stat
elif 'os2' in names:
sep = '\\'
from os2 import stat
else:
raise ImportError, 'no os specific module found'
if join is None:
def join(a, b, sep=sep):
if a == '':
return b
lastchar = a[-1:]
if lastchar == '/' or lastchar == sep:
return a + b
return a + sep + b
global _os_stat
_os_stat = stat
global _os_path_join
_os_path_join = join
def _os_path_isdir(pathname):
"Local replacement for os.path.isdir()."
try:
s = _os_stat(pathname)
except OSError:
return None
return (s.st_mode & 0170000) == 0040000
def _timestamp(pathname):
"Return the file modification time as a Long."
try:
s = _os_stat(pathname)
except OSError:
return None
return long(s.st_mtime)
######################################################################
#
# Emulate the import mechanism for builtin and frozen modules
#
class BuiltinImporter(Importer):
def get_code(self, parent, modname, fqname):
if parent:
# these modules definitely do not occur within a package context
return None
# look for the module
if imp.is_builtin(modname):
type = imp.C_BUILTIN
elif imp.is_frozen(modname):
type = imp.PY_FROZEN
else:
# not found
return None
# got it. now load and return it.
module = imp.load_module(modname, None, modname, ('', '', type))
return 0, module, { }
######################################################################
#
# Internal importer used for importing from the filesystem
#
class _FilesystemImporter(Importer):
def __init__(self):
self.suffixes = [ ]
def add_suffix(self, suffix, importFunc):
assert hasattr(importFunc, '__call__')
self.suffixes.append((suffix, importFunc))
def import_from_dir(self, dir, fqname):
result = self._import_pathname(_os_path_join(dir, fqname), fqname)
if result:
return self._process_result(result, fqname)
return None
def get_code(self, parent, modname, fqname):
# This importer is never used with an empty parent. Its existence is
# private to the ImportManager. The ImportManager uses the
# import_from_dir() method to import top-level modules/packages.
# This method is only used when we look for a module within a package.
assert parent
for submodule_path in parent.__path__:
code = self._import_pathname(_os_path_join(submodule_path, modname), fqname)
if code is not None:
return code
return self._import_pathname(_os_path_join(parent.__pkgdir__, modname),
fqname)
def _import_pathname(self, pathname, fqname):
if _os_path_isdir(pathname):
result = self._import_pathname(_os_path_join(pathname, '__init__'),
fqname)
if result:
values = result[2]
values['__pkgdir__'] = pathname
values['__path__'] = [ pathname ]
return 1, result[1], values
return None
for suffix, importFunc in self.suffixes:
filename = pathname + suffix
try:
finfo = _os_stat(filename)
except OSError:
pass
else:
return importFunc(filename, finfo, fqname)
return None
######################################################################
#
# SUFFIX-BASED IMPORTERS
#
def py_suffix_importer(filename, finfo, fqname):
file = filename[:-3] + _suffix
t_py = long(finfo[8])
t_pyc = _timestamp(file)
code = None
if t_pyc is not None and t_pyc >= t_py:
f = open(file, 'rb')
if f.read(4) == imp.get_magic():
t = struct.unpack('<I', f.read(4))[0]
if t == t_py:
code = marshal.load(f)
f.close()
if code is None:
file = filename
code = _compile(file, t_py)
return 0, code, { '__file__' : file }
class DynLoadSuffixImporter:
def __init__(self, desc):
self.desc = desc
def import_file(self, filename, finfo, fqname):
fp = open(filename, self.desc[1])
module = imp.load_module(fqname, fp, filename, self.desc)
module.__file__ = filename
return 0, module, { }
######################################################################
def _print_importers():
items = sys.modules.items()
items.sort()
for name, module in items:
if module:
print name, module.__dict__.get('__importer__', '-- no importer')
else:
print name, '-- non-existent module'
def _test_revamp():
ImportManager().install()
sys.path.insert(0, BuiltinImporter())
######################################################################
#
# TODO
#
# from Finn Bock:
# type(sys) is not a module in Jython. what to use instead?
# imp.C_EXTENSION is not in Jython. same for get_suffixes and new_module
#
# given foo.py of:
# import sys
# sys.modules['foo'] = sys
#
# ---- standard import mechanism
# >>> import foo
# >>> foo
# <module 'sys' (built-in)>
#
# ---- revamped import mechanism
# >>> import imputil
# >>> imputil._test_revamp()
# >>> import foo
# >>> foo
# <module 'foo' from 'foo.py'>
#
#
# from MAL:
# should BuiltinImporter exist in sys.path or hard-wired in ImportManager?
# need __path__ processing
# performance
# move chaining to a subclass [gjs: it's been nuked]
# deinstall should be possible
# query mechanism needed: is a specific Importer installed?
# py/pyc/pyo piping hooks to filter/process these files
# wish list:
# distutils importer hooked to list of standard Internet repositories
# module->file location mapper to speed FS-based imports
# relative imports
# keep chaining so that it can play nice with other import hooks
#
# from Gordon:
# push MAL's mapper into sys.path[0] as a cache (hard-coded for apps)
#
# from Guido:
# need to change sys.* references for rexec environs
# need hook for MAL's walk-me-up import strategy, or Tim's absolute strategy
# watch out for sys.modules[...] is None
# flag to force absolute imports? (speeds _determine_import_context and
# checking for a relative module)
# insert names of archives into sys.path (see quote below)
# note: reload does NOT blast module dict
# shift import mechanisms and policies around; provide for hooks, overrides
# (see quote below)
# add get_source stuff
# get_topcode and get_subcode
# CRLF handling in _compile
# race condition in _compile
# refactoring of os.py to deal with _os_bootstrap problem
# any special handling to do for importing a module with a SyntaxError?
# (e.g. clean up the traceback)
# implement "domain" for path-type functionality using pkg namespace
# (rather than FS-names like __path__)
# don't use the word "private"... maybe "internal"
#
#
# Guido's comments on sys.path caching:
#
# We could cache this in a dictionary: the ImportManager can have a
# cache dict mapping pathnames to importer objects, and a separate
# method for coming up with an importer given a pathname that's not yet
# in the cache. The method should do a stat and/or look at the
# extension to decide which importer class to use; you can register new
# importer classes by registering a suffix or a Boolean function, plus a
# class. If you register a new importer class, the cache is zapped.
# The cache is independent from sys.path (but maintained per
# ImportManager instance) so that rearrangements of sys.path do the
# right thing. If a path is dropped from sys.path the corresponding
# cache entry is simply no longer used.
#
# My/Guido's comments on factoring ImportManager and Importer:
#
# > However, we still have a tension occurring here:
# >
# > 1) implementing policy in ImportManager assists in single-point policy
# > changes for app/rexec situations
# > 2) implementing policy in Importer assists in package-private policy
# > changes for normal, operating conditions
# >
# > I'll see if I can sort out a way to do this. Maybe the Importer class will
# > implement the methods (which can be overridden to change policy) by
# > delegating to ImportManager.
#
# Maybe also think about what kind of policies an Importer would be
# likely to want to change. I have a feeling that a lot of the code
# there is actually not so much policy but a *necessity* to get things
# working given the calling conventions for the __import__ hook: whether
# to return the head or tail of a dotted name, or when to do the "finish
# fromlist" stuff.
#
| mit |
jianghuaw/nova | nova/tests/unit/notifications/objects/test_service.py | 8 | 3429 | # Copyright (c) 2016 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.
import mock
from oslo_utils import timeutils
from nova import context
from nova.notifications.objects import service as service_notification
from nova import objects
from nova.objects import fields
from nova import test
from nova.tests.unit.objects.test_service import fake_service
class TestServiceStatusNotification(test.TestCase):
def setUp(self):
self.ctxt = context.get_admin_context()
super(TestServiceStatusNotification, self).setUp()
@mock.patch('nova.notifications.objects.service.ServiceStatusNotification')
def _verify_notification(self, service_obj, mock_notification):
service_obj.save()
self.assertTrue(mock_notification.called)
event_type = mock_notification.call_args[1]['event_type']
priority = mock_notification.call_args[1]['priority']
publisher = mock_notification.call_args[1]['publisher']
payload = mock_notification.call_args[1]['payload']
self.assertEqual(service_obj.host, publisher.host)
self.assertEqual(service_obj.binary, publisher.binary)
self.assertEqual(fields.NotificationPriority.INFO, priority)
self.assertEqual('service', event_type.object)
self.assertEqual(fields.NotificationAction.UPDATE,
event_type.action)
for field in service_notification.ServiceStatusPayload.SCHEMA:
if field in fake_service:
self.assertEqual(fake_service[field], getattr(payload, field))
mock_notification.return_value.emit.assert_called_once_with(self.ctxt)
@mock.patch('nova.db.service_update')
def test_service_update_with_notification(self, mock_db_service_update):
service_obj = objects.Service(context=self.ctxt, id=fake_service['id'])
mock_db_service_update.return_value = fake_service
for key, value in {'disabled': True,
'disabled_reason': 'my reason',
'forced_down': True}.items():
setattr(service_obj, key, value)
self._verify_notification(service_obj)
@mock.patch('nova.notifications.objects.service.ServiceStatusNotification')
@mock.patch('nova.db.service_update')
def test_service_update_without_notification(self,
mock_db_service_update,
mock_notification):
service_obj = objects.Service(context=self.ctxt, id=fake_service['id'])
mock_db_service_update.return_value = fake_service
for key, value in {'report_count': 13,
'last_seen_up': timeutils.utcnow()}.items():
setattr(service_obj, key, value)
service_obj.save()
self.assertFalse(mock_notification.called)
| apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.