code
stringlengths 3
1.01M
| repo_name
stringlengths 5
116
| path
stringlengths 3
311
| language
stringclasses 30
values | license
stringclasses 15
values | size
int64 3
1.01M
|
|---|---|---|---|---|---|
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Log format information shared by reader and writer.
// See ../doc/log_format.txt for more detail.
#ifndef STORAGE_LEVELDB_DB_LOG_FORMAT_H_
#define STORAGE_LEVELDB_DB_LOG_FORMAT_H_
namespace leveldb {
namespace log {
/**
* 记录类型
*/
enum RecordType {
// Zero is reserved for preallocated files
/**
* 0类型
*/
kZeroType = 0,
/**
* 全类型
*/
kFullType = 1,
// For fragments
/**
* 开头类型
*/
kFirstType = 2,
/**
* 中间类型
*/
kMiddleType = 3,
/**
* 结尾类型
*/
kLastType = 4
};
/**
* 最大记录类型
*/
static const int kMaxRecordType = kLastType;
/**
* 块大小32k
*/
static const int kBlockSize = 32768;
// Header is checksum (4 bytes), length (2 bytes), type (1 byte).
/**
* 头部的大小
*/
static const int kHeaderSize = 4 + 2 + 1;
} // namespace log
} // namespace leveldb
#endif // STORAGE_LEVELDB_DB_LOG_FORMAT_H_
|
zxylvlp/leveldb
|
db/log_format.h
|
C
|
bsd-3-clause
| 1,145
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly verknüpft sind.
[assembly: AssemblyTitle("XpathTester")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("XpathTester")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("e023074e-2a5a-418a-a35d-82c3b80b9d62")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
VashSan/xpath-tester
|
XpathTester/Properties/AssemblyInfo.cs
|
C#
|
bsd-3-clause
| 1,521
|
//=============================================================================
// System : Sandcastle Help File Builder Utilities
// File : ConceptualContent.cs
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 06/13/2010
// Note : Copyright 2008-2010, Eric Woodruff, All rights reserved
// Compiler: Microsoft Visual C#
//
// This file contains the class used to hold the conceptual content for a
// project during a build and for editing.
//
// This code is published under the Microsoft Public License (Ms-PL). A copy
// of the license should be distributed with the code. It can also be found
// at the project website: http://SHFB.CodePlex.com. This notice, the
// author's name, and all copyright notices must remain intact in all
// applications, documentation, and source files.
//
// Version Date Who Comments
// ============================================================================
// 1.6.0.7 04/24/2008 EFW Created the code
// 1.9.0.0 06/06/2010 EFW Added support for multi-format build output
//=============================================================================
using System.Collections.ObjectModel;
using System.IO;
using System.Xml;
using SandcastleBuilder.Utils.BuildEngine;
namespace SandcastleBuilder.Utils.ConceptualContent
{
/// <summary>
/// This class is used to hold the conceptual content settings for a
/// project during a build and for editing.
/// </summary>
public class ConceptualContentSettings
{
#region Private data members
//=====================================================================
private ImageReferenceCollection imageFiles;
private FileItemCollection codeSnippetFiles, tokenFiles,
contentLayoutFiles;
private Collection<TopicCollection> topics;
#endregion
#region Properties
//=====================================================================
/// <summary>
/// This is used to get the conceptual content image files
/// </summary>
public ImageReferenceCollection ImageFiles
{
get { return imageFiles; }
}
/// <summary>
/// This is used to get the conceptual content code snippet files
/// </summary>
public FileItemCollection CodeSnippetFiles
{
get { return codeSnippetFiles; }
}
/// <summary>
/// This is used to get the conceptual content token files
/// </summary>
public FileItemCollection TokenFiles
{
get { return tokenFiles; }
}
/// <summary>
/// This is used to get the conceptual content layout files
/// </summary>
public FileItemCollection ContentLayoutFiles
{
get { return contentLayoutFiles; }
}
/// <summary>
/// This is used to get a collection of the conceptual content topics
/// </summary>
/// <remarks>Each item in the collection represents one content layout
/// file from the project.</remarks>
public Collection<TopicCollection> Topics
{
get { return topics; }
}
#endregion
#region Constructor
//=====================================================================
/// <summary>
/// Constructor
/// </summary>
/// <param name="project">The project from which to load the settings</param>
public ConceptualContentSettings(SandcastleProject project)
{
imageFiles = new ImageReferenceCollection(project);
codeSnippetFiles = new FileItemCollection(project, BuildAction.CodeSnippets);
tokenFiles = new FileItemCollection(project, BuildAction.Tokens);
contentLayoutFiles = new FileItemCollection(project, BuildAction.ContentLayout);
topics = new Collection<TopicCollection>();
foreach(FileItem file in contentLayoutFiles)
topics.Add(new TopicCollection(file));
}
#endregion
#region Build process methods
//=====================================================================
/// <summary>
/// This is used to copy the additional content token, image, and
/// topic files to the build folder.
/// </summary>
/// <param name="builder">The build process</param>
/// <remarks>This will copy the code snippet file if specified, save
/// token information to a shared content file called <b>_Tokens_.xml</b>
/// in the build process's working folder, copy the image files to the
/// <b>.\media</b> folder in the build process's working folder, save
/// the media map to a file called <b>_MediaContent_.xml</b> in the
/// build process's working folder, and save the topic files to the
/// <b>.\ddueXml</b> folder in the build process's working folder.
/// The topic files will have their content wrapped in a
/// <c><topic></c> tag if needed and will be named using their
/// <see cref="Topic.Id" /> value.</remarks>
public void CopyContentFiles(BuildProcess builder)
{
string folder;
bool missingFile = false;
builder.ReportProgress("Copying standard token shared content file...");
builder.TransformTemplate("HelpFileBuilderTokens.tokens",
builder.TemplateFolder, builder.WorkingFolder);
builder.ReportProgress("Checking for other token files...");
foreach(FileItem tokenFile in this.tokenFiles)
if(!File.Exists(tokenFile.FullPath))
{
missingFile = true;
builder.ReportProgress(" Missing token file: {0}", tokenFile.FullPath);
}
else
{
builder.ReportProgress(" {0} -> {1}", tokenFile.FullPath,
Path.Combine(builder.WorkingFolder, Path.GetFileName(tokenFile.FullPath)));
builder.TransformTemplate(Path.GetFileName(tokenFile.FullPath),
Path.GetDirectoryName(tokenFile.FullPath), builder.WorkingFolder);
}
if(missingFile)
throw new BuilderException("BE0052", "One or more token files could not be found");
builder.ReportProgress("Checking for code snippets files...");
foreach(FileItem snippetsFile in this.codeSnippetFiles)
if(!File.Exists(snippetsFile.FullPath))
{
missingFile = true;
builder.ReportProgress(" Missing code snippets file: {0}", snippetsFile.FullPath);
}
else
builder.ReportProgress(" Found {0}", snippetsFile.FullPath);
if(missingFile)
throw new BuilderException("BE0053", "One or more code snippets files could not be found");
// Save the image info to a shared content file and copy the
// image files to the working folder.
folder = builder.WorkingFolder + "Media";
if(!Directory.Exists(folder))
Directory.CreateDirectory(folder);
// Create the build process's help format output folders too if needed
builder.EnsureOutputFoldersExist("media");
builder.ReportProgress("Copying images and creating the media map file...");
// Copy all image project items and create the content file
imageFiles.SaveAsSharedContent(builder.WorkingFolder + "_MediaContent_.xml", folder, builder);
// Copy the topic files
folder = builder.WorkingFolder + "ddueXml";
if(!Directory.Exists(folder))
Directory.CreateDirectory(folder);
builder.ReportProgress("Generating conceptual topic files");
// Create topic files
foreach(TopicCollection tc in topics)
{
tc.Load();
tc.GenerateConceptualTopics(folder, builder);
}
}
/// <summary>
/// This is used to create the conceptual content build configuration
/// files.
/// </summary>
/// <param name="builder">The build process</param>
/// <remarks>This will create the companion files used to resolve
/// conceptual links and the <b>_ContentMetadata_.xml</b> and
/// <b>ConceptualManifest.xml</b> configuration files.</remarks>
public void CreateConfigurationFiles(BuildProcess builder)
{
this.CreateCompanionFiles(builder);
this.CreateContentMetadata(builder);
this.CreateConceptualManifest(builder);
}
/// <summary>
/// This is used to create the companion files used to resolve
/// conceptual links.
/// </summary>
/// <param name="builder">The build process</param>
private void CreateCompanionFiles(BuildProcess builder)
{
string destFolder = builder.WorkingFolder + "xmlComp\\";
builder.ReportProgress(" Companion files");
if(!Directory.Exists(destFolder))
Directory.CreateDirectory(destFolder);
foreach(TopicCollection tc in topics)
foreach(Topic t in tc)
t.WriteCompanionFile(destFolder, builder);
}
/// <summary>
/// Create the content metadata file
/// </summary>
/// <param name="builder">The build process</param>
/// <remarks>The content metadata file contains metadata information
/// for each topic such as its title, table of contents title, help
/// attributes, and index keywords. Help attributes are a combination
/// of the project-level help attributes and any parsed from the topic
/// file. Any replacement tags in the token values will be replaced
/// with the appropriate project values.
/// <p/>A true MAML version of this file contains several extra
/// attributes. Since Sandcastle doesn't use them, I'm not going to
/// waste time adding them. The only stuff written is what is required
/// by Sandcastle. In addition, I'm putting the <c>title</c> and
/// <c>PBM_FileVersion</c> item elements in here rather than use the
/// separate companion files. They all end up in the metadata section
/// of the topic being built so this saves having two extra components
/// in the configuration that do the same thing with different files.
/// </remarks>
private void CreateContentMetadata(BuildProcess builder)
{
XmlWriterSettings settings = new XmlWriterSettings();
XmlWriter writer = null;
builder.ReportProgress(" _ContentMetadata_.xml");
try
{
settings.Indent = true;
settings.CloseOutput = true;
writer = XmlWriter.Create(builder.WorkingFolder + "_ContentMetadata_.xml", settings);
writer.WriteStartDocument();
writer.WriteStartElement("metadata");
// Write out each topic and all of its sub-topics
foreach(TopicCollection tc in topics)
foreach(Topic t in tc)
t.WriteMetadata(writer, builder);
writer.WriteEndElement(); // </metadata>
writer.WriteEndDocument();
}
finally
{
if(writer != null)
writer.Close();
}
}
/// <summary>
/// Create the content metadata file
/// </summary>
/// <param name="builder">The build process</param>
/// <remarks>The content metadata file contains metadata information
/// for each topic such as its title, table of contents title, help
/// attributes, and index keywords. Help attributes are a combination
/// of the project-level help attributes and any parsed from the topic
/// file. Any replacement tags in the token values will be replaced
/// with the appropriate project values.</remarks>
private void CreateConceptualManifest(BuildProcess builder)
{
XmlWriterSettings settings = new XmlWriterSettings();
XmlWriter writer = null;
builder.ReportProgress(" ConceptualManifest.xml");
try
{
settings.Indent = true;
settings.CloseOutput = true;
writer = XmlWriter.Create(builder.WorkingFolder + "ConceptualManifest.xml", settings);
writer.WriteStartDocument();
writer.WriteStartElement("topics");
foreach(TopicCollection tc in topics)
foreach(Topic t in tc)
t.WriteManifest(writer, builder);
writer.WriteEndElement(); // </topics>
writer.WriteEndDocument();
}
finally
{
if(writer != null)
writer.Close();
}
}
#endregion
}
}
|
jozefizso/sandcastle-presentation
|
SHFB/SandcastleBuilder/SandcastleBuilderUtils/ConceptualContent/ConceptualContentSettings.cs
|
C#
|
bsd-3-clause
| 13,727
|
<!DOCTYPE html>
<!--
Copyright (c) 2013 Intel Corporation.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the original copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors
may be used to endorse or promote products derived from this work without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
Authors:
Feng, GangX <gangx.feng@intel.com>
Xu, Kang <kangx.xu@intel.com>
-->
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
<link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<script src="../../js/main.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<input type="hidden" id="sub_test"/>
<div data-role="page" id="main">
<div data-role="header" data-position="fixed" data-tap-toggle="false">
<h1 id="main_page_title"></h1>
</div>
<div id="content">
<ul data-role="listview" id="cspList" data-divider-theme="b" data-inset="true">
<li data-role="list-divider" role="heading">Test common directives</li>
<li id="csp-none">
<a href="javascript:runApp('res/csp-none.html')" data-transition="slide" style="">
<h2>csp-none</h2>
</a>
</li>
<li id="csp-self">
<a href="javascript:runApp('res/csp-self.html')" data-transition="slide" style="">
<h2>csp-self</h2>
</a>
</li>
<li id="csp-asterisk">
<a href="javascript:runApp('res/csp-asterisk.html')" data-transition="slide" style="">
<h2>csp-asterisk</h2>
</a>
</li>
<li id="csp-cross-origin">
<a href="javascript:runApp('res/csp-cross-origin.html')" data-transition="slide" style="">
<h2>csp-cross-origin</h2>
</a>
</li>
<li id="default-policy-by-directives-csp">
<a href="javascript:runApp('res/default-policy-by-directives-csp.html')" data-transition="slide" style="">
<h2>default-policy-by-directives-csp</h2>
</a>
</li>
<li id="default-policy-by-directives-report-only">
<a href="javascript:runApp('res/default-policy-by-directives-report-only.html')" data-transition="slide" style="">
<h2>default-policy-by-directives-report-only</h2>
</a>
</li>
<li data-role="list-divider" role="heading">Test default-src directive</li>
<li id="default-src_none">
<a href="javascript:runApp('res/default-src_none.html')" data-transition="slide" style="">
<h2>default-src_none</h2>
</a>
</li>
<li id="default-src_self">
<a href="javascript:runApp('res/default-src_self.html')" data-transition="slide" style="">
<h2>default-src_self</h2>
</a>
</li>
<li id="default-src_asterisk">
<a href="javascript:runApp('res/default-src_asterisk.html')" data-transition="slide" style="">
<h2>default-src_asterisk</h2>
</a>
</li>
<li id="default-src_cross_origin">
<a href="javascript:runApp('res/default-src_cross_origin.html')" data-transition="slide" style="">
<h2>default-src_cross_origin</h2>
</a>
</li>
<li data-role="list-divider" role="heading">Test sandbox directive</li>
<li id="sandbox-empty-ext">
<a href="javascript:runApp('res/sandbox-empty-ext.html')" data-transition="slide" style="">
<h2>sandbox-empty-ext</h2>
</a>
</li>
<li id="sandbox-empty-int">
<a href="javascript:runApp('res/sandbox-empty-int.html')" data-transition="slide" style="">
<h2>sandbox-empty-int</h2>
</a>
</li>
<li id="sandbox-empty-inline">
<a href="javascript:runApp('res/sandbox-empty-inline.html')" data-transition="slide" style="">
<h2>sandbox-empty-inline</h2>
</a>
</li>
<li id="sandbox-same-origin-allow-scripts">
<a href="javascript:runApp('res/sandbox-same-origin-allow-scripts.html')" data-transition="slide" style="">
<h2>sandbox-same-origin-allow-scripts</h2>
</a>
</li>
<li data-role="list-divider" role="heading">Test script-src directive</li>
<li id="script-src_none">
<a href="javascript:runApp('res/script-src_none.html')" data-transition="slide" style="">
<h2>script-src_none</h2>
</a>
</li>
<li id="script-src_inline_eval">
<a href="javascript:runApp('res/script-src_inline_eval.html')" data-transition="slide" style="">
<h2>script-src_inline_eval</h2>
</a>
</li>
<li data-role="list-divider" role="heading">Test style-src directive</li>
<li id="style-src_self">
<a href="javascript:runApp('res/style-src_self.html')" data-transition="slide" style="">
<h2>style-src_self</h2>
</a>
</li>
<li data-role="list-divider" role="heading">Clean all the installed packages</li>
<li>
<div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font class="fontSize">
<p>Test Note: </p>
<p>Verifies the functionality of CSP worked well.</p>
<p>Test Pre-condition: </p>
<p>Tinyweb server launched with the command: "tinyweb -ssl_certificate /usr/share/tinyweb/server.pem -document_root / -listening_ports 80,8080,8081,8082,8083,8443s".</p>
<p>Test Purpose: </p>
<p>Verifies the functionality of CSP worked well when script-src, object-src, style-src, img-src, media-src, frame-src, font-src, connect-src directives set different values.</p>
<p>Expected Result: </p>
<p>Test passes if all sub-tests pass.</p>
</font>
</div>
</div>
<div data-role="page" id="test_ui">
<iframe id="test_frame" width="100%" frameborder="no" border="0" src=""></iframe>
</div>
</body>
</html>
|
yugang/crosswalk-test-suite
|
behavior/tests/CSP/index.html
|
HTML
|
bsd-3-clause
| 8,645
|
/* dtpttf.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of the command line, as in
cc *.o -lf2c -lm
Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
http://www.netlib.org/f2c/libf2c.zip
*/
#include "f2c.h"
#include "blaswrap.h"
/* Subroutine */ int dtpttf_(char *transr, char *uplo, integer *n, doublereal
*ap, doublereal *arf, integer *info)
{
/* System generated locals */
integer i__1, i__2, i__3;
/* Local variables */
integer i__, j, k, n1, n2, ij, jp, js, nt, lda, ijp;
logical normaltransr;
logical lower;
logical nisodd;
/* -- LAPACK routine (version 3.2) -- */
/* -- Contributed by Fred Gustavson of the IBM Watson Research Center -- */
/* -- November 2008 -- */
/* -- LAPACK is a software package provided by Univ. of Tennessee, -- */
/* Purpose */
/* ======= */
/* DTPTTF copies a triangular matrix A from standard packed format (TP) */
/* to rectangular full packed format (TF). */
/* Arguments */
/* ========= */
/* TRANSR (input) CHARACTER */
/* = 'N': ARF in Normal format is wanted; */
/* = 'T': ARF in Conjugate-transpose format is wanted. */
/* UPLO (input) CHARACTER */
/* = 'U': A is upper triangular; */
/* = 'L': A is lower triangular. */
/* N (input) INTEGER */
/* The order of the matrix A. N >= 0. */
/* AP (input) DOUBLE PRECISION array, dimension ( N*(N+1)/2 ), */
/* On entry, the upper or lower triangular matrix A, packed */
/* columnwise in a linear array. The j-th column of A is stored */
/* in the array AP as follows: */
/* if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j; */
/* if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n. */
/* ARF (output) DOUBLE PRECISION array, dimension ( N*(N+1)/2 ), */
/* On exit, the upper or lower triangular matrix A stored in */
/* RFP format. For a further discussion see Notes below. */
/* INFO (output) INTEGER */
/* = 0: successful exit */
/* < 0: if INFO = -i, the i-th argument had an illegal value */
/* Notes */
/* ===== */
/* We first consider Rectangular Full Packed (RFP) Format when N is */
/* even. We give an example where N = 6. */
/* AP is Upper AP is Lower */
/* 00 01 02 03 04 05 00 */
/* 11 12 13 14 15 10 11 */
/* 22 23 24 25 20 21 22 */
/* 33 34 35 30 31 32 33 */
/* 44 45 40 41 42 43 44 */
/* 55 50 51 52 53 54 55 */
/* Let TRANSR = 'N'. RFP holds AP as follows: */
/* For UPLO = 'U' the upper trapezoid A(0:5,0:2) consists of the last */
/* three columns of AP upper. The lower triangle A(4:6,0:2) consists of */
/* the transpose of the first three columns of AP upper. */
/* For UPLO = 'L' the lower trapezoid A(1:6,0:2) consists of the first */
/* three columns of AP lower. The upper triangle A(0:2,0:2) consists of */
/* the transpose of the last three columns of AP lower. */
/* This covers the case N even and TRANSR = 'N'. */
/* RFP A RFP A */
/* 03 04 05 33 43 53 */
/* 13 14 15 00 44 54 */
/* 23 24 25 10 11 55 */
/* 33 34 35 20 21 22 */
/* 00 44 45 30 31 32 */
/* 01 11 55 40 41 42 */
/* 02 12 22 50 51 52 */
/* Now let TRANSR = 'T'. RFP A in both UPLO cases is just the */
/* transpose of RFP A above. One therefore gets: */
/* RFP A RFP A */
/* 03 13 23 33 00 01 02 33 00 10 20 30 40 50 */
/* 04 14 24 34 44 11 12 43 44 11 21 31 41 51 */
/* 05 15 25 35 45 55 22 53 54 55 22 32 42 52 */
/* We first consider Rectangular Full Packed (RFP) Format when N is */
/* odd. We give an example where N = 5. */
/* AP is Upper AP is Lower */
/* 00 01 02 03 04 00 */
/* 11 12 13 14 10 11 */
/* 22 23 24 20 21 22 */
/* 33 34 30 31 32 33 */
/* 44 40 41 42 43 44 */
/* Let TRANSR = 'N'. RFP holds AP as follows: */
/* For UPLO = 'U' the upper trapezoid A(0:4,0:2) consists of the last */
/* three columns of AP upper. The lower triangle A(3:4,0:1) consists of */
/* the transpose of the first two columns of AP upper. */
/* For UPLO = 'L' the lower trapezoid A(0:4,0:2) consists of the first */
/* three columns of AP lower. The upper triangle A(0:1,1:2) consists of */
/* the transpose of the last two columns of AP lower. */
/* This covers the case N odd and TRANSR = 'N'. */
/* RFP A RFP A */
/* 02 03 04 00 33 43 */
/* 12 13 14 10 11 44 */
/* 22 23 24 20 21 22 */
/* 00 33 34 30 31 32 */
/* 01 11 44 40 41 42 */
/* Now let TRANSR = 'T'. RFP A in both UPLO cases is just the */
/* transpose of RFP A above. One therefore gets: */
/* RFP A RFP A */
/* 02 12 22 00 01 00 10 20 30 40 50 */
/* 03 13 23 33 11 33 11 21 31 41 51 */
/* 04 14 24 34 44 43 44 22 32 42 52 */
/* ===================================================================== */
/* Test the input parameters. */
*info = 0;
normaltransr = lsame_(transr, "N");
lower = lsame_(uplo, "L");
if (! normaltransr && ! lsame_(transr, "T")) {
*info = -1;
} else if (! lower && ! lsame_(uplo, "U")) {
*info = -2;
} else if (*n < 0) {
*info = -3;
}
if (*info != 0) {
i__1 = -(*info);
xerbla_("DTPTTF", &i__1);
return 0;
}
/* Quick return if possible */
if (*n == 0) {
return 0;
}
if (*n == 1) {
if (normaltransr) {
arf[0] = ap[0];
} else {
arf[0] = ap[0];
}
return 0;
}
/* Size of array ARF(0:NT-1) */
nt = *n * (*n + 1) / 2;
/* Set N1 and N2 depending on LOWER */
if (lower) {
n2 = *n / 2;
n1 = *n - n2;
} else {
n1 = *n / 2;
n2 = *n - n1;
}
/* If N is odd, set NISODD = .TRUE. */
/* If N is even, set K = N/2 and NISODD = .FALSE. */
/* set lda of ARF^C; ARF^C is (0:(N+1)/2-1,0:N-noe) */
/* where noe = 0 if n is even, noe = 1 if n is odd */
if (*n % 2 == 0) {
k = *n / 2;
nisodd = FALSE_;
lda = *n + 1;
} else {
nisodd = TRUE_;
lda = *n;
}
/* ARF^C has lda rows and n+1-noe cols */
if (! normaltransr) {
lda = (*n + 1) / 2;
}
/* start execution: there are eight cases */
if (nisodd) {
/* N is odd */
if (normaltransr) {
/* N is odd and TRANSR = 'N' */
if (lower) {
/* N is odd, TRANSR = 'N', and UPLO = 'L' */
ijp = 0;
jp = 0;
i__1 = n2;
for (j = 0; j <= i__1; ++j) {
i__2 = *n - 1;
for (i__ = j; i__ <= i__2; ++i__) {
ij = i__ + jp;
arf[ij] = ap[ijp];
++ijp;
}
jp += lda;
}
i__1 = n2 - 1;
for (i__ = 0; i__ <= i__1; ++i__) {
i__2 = n2;
for (j = i__ + 1; j <= i__2; ++j) {
ij = i__ + j * lda;
arf[ij] = ap[ijp];
++ijp;
}
}
} else {
/* N is odd, TRANSR = 'N', and UPLO = 'U' */
ijp = 0;
i__1 = n1 - 1;
for (j = 0; j <= i__1; ++j) {
ij = n2 + j;
i__2 = j;
for (i__ = 0; i__ <= i__2; ++i__) {
arf[ij] = ap[ijp];
++ijp;
ij += lda;
}
}
js = 0;
i__1 = *n - 1;
for (j = n1; j <= i__1; ++j) {
ij = js;
i__2 = js + j;
for (ij = js; ij <= i__2; ++ij) {
arf[ij] = ap[ijp];
++ijp;
}
js += lda;
}
}
} else {
/* N is odd and TRANSR = 'T' */
if (lower) {
/* N is odd, TRANSR = 'T', and UPLO = 'L' */
ijp = 0;
i__1 = n2;
for (i__ = 0; i__ <= i__1; ++i__) {
i__2 = *n * lda - 1;
i__3 = lda;
for (ij = i__ * (lda + 1); i__3 < 0 ? ij >= i__2 : ij <=
i__2; ij += i__3) {
arf[ij] = ap[ijp];
++ijp;
}
}
js = 1;
i__1 = n2 - 1;
for (j = 0; j <= i__1; ++j) {
i__3 = js + n2 - j - 1;
for (ij = js; ij <= i__3; ++ij) {
arf[ij] = ap[ijp];
++ijp;
}
js = js + lda + 1;
}
} else {
/* N is odd, TRANSR = 'T', and UPLO = 'U' */
ijp = 0;
js = n2 * lda;
i__1 = n1 - 1;
for (j = 0; j <= i__1; ++j) {
i__3 = js + j;
for (ij = js; ij <= i__3; ++ij) {
arf[ij] = ap[ijp];
++ijp;
}
js += lda;
}
i__1 = n1;
for (i__ = 0; i__ <= i__1; ++i__) {
i__3 = i__ + (n1 + i__) * lda;
i__2 = lda;
for (ij = i__; i__2 < 0 ? ij >= i__3 : ij <= i__3; ij +=
i__2) {
arf[ij] = ap[ijp];
++ijp;
}
}
}
}
} else {
/* N is even */
if (normaltransr) {
/* N is even and TRANSR = 'N' */
if (lower) {
/* N is even, TRANSR = 'N', and UPLO = 'L' */
ijp = 0;
jp = 0;
i__1 = k - 1;
for (j = 0; j <= i__1; ++j) {
i__2 = *n - 1;
for (i__ = j; i__ <= i__2; ++i__) {
ij = i__ + 1 + jp;
arf[ij] = ap[ijp];
++ijp;
}
jp += lda;
}
i__1 = k - 1;
for (i__ = 0; i__ <= i__1; ++i__) {
i__2 = k - 1;
for (j = i__; j <= i__2; ++j) {
ij = i__ + j * lda;
arf[ij] = ap[ijp];
++ijp;
}
}
} else {
/* N is even, TRANSR = 'N', and UPLO = 'U' */
ijp = 0;
i__1 = k - 1;
for (j = 0; j <= i__1; ++j) {
ij = k + 1 + j;
i__2 = j;
for (i__ = 0; i__ <= i__2; ++i__) {
arf[ij] = ap[ijp];
++ijp;
ij += lda;
}
}
js = 0;
i__1 = *n - 1;
for (j = k; j <= i__1; ++j) {
ij = js;
i__2 = js + j;
for (ij = js; ij <= i__2; ++ij) {
arf[ij] = ap[ijp];
++ijp;
}
js += lda;
}
}
} else {
/* N is even and TRANSR = 'T' */
if (lower) {
/* N is even, TRANSR = 'T', and UPLO = 'L' */
ijp = 0;
i__1 = k - 1;
for (i__ = 0; i__ <= i__1; ++i__) {
i__2 = (*n + 1) * lda - 1;
i__3 = lda;
for (ij = i__ + (i__ + 1) * lda; i__3 < 0 ? ij >= i__2 :
ij <= i__2; ij += i__3) {
arf[ij] = ap[ijp];
++ijp;
}
}
js = 0;
i__1 = k - 1;
for (j = 0; j <= i__1; ++j) {
i__3 = js + k - j - 1;
for (ij = js; ij <= i__3; ++ij) {
arf[ij] = ap[ijp];
++ijp;
}
js = js + lda + 1;
}
} else {
/* N is even, TRANSR = 'T', and UPLO = 'U' */
ijp = 0;
js = (k + 1) * lda;
i__1 = k - 1;
for (j = 0; j <= i__1; ++j) {
i__3 = js + j;
for (ij = js; ij <= i__3; ++ij) {
arf[ij] = ap[ijp];
++ijp;
}
js += lda;
}
i__1 = k - 1;
for (i__ = 0; i__ <= i__1; ++i__) {
i__3 = i__ + (k + i__) * lda;
i__2 = lda;
for (ij = i__; i__2 < 0 ? ij >= i__3 : ij <= i__3; ij +=
i__2) {
arf[ij] = ap[ijp];
++ijp;
}
}
}
}
}
return 0;
/* End of DTPTTF */
} /* dtpttf_ */
|
juanjosegarciaripoll/cblapack
|
src/lapack/dtpttf.c
|
C
|
bsd-3-clause
| 11,374
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!-- required because all the links are pseudo-absolute -->
<base href="../..">
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro|Roboto:500,400italic,300,400' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="static-assets/prettify.css">
<link rel="stylesheet" href="static-assets/css/bootstrap.min.css">
<link rel="stylesheet" href="static-assets/styles.css">
<meta name="description" content="">
<link rel="icon" href="static-assets/favicon.png">
<!-- Do not remove placeholder -->
<!-- Header Placeholder -->
</head>
<body>
<div id="overlay-under-drawer"></div>
<header class="container-fluid" id="title">
<nav class="navbar navbar-fixed-top">
<div class="container">
<button id="sidenav-left-toggle" type="button"> </button>
<ol class="breadcrumbs gt-separated hidden-xs">
<li><a href="index.html">polymer_app_layout_template</a></li>
<li><a href="polymer_app_layout/polymer_app_layout-library.html">polymer_app_layout</a></li>
<li><a href="polymer_app_layout/FixedSizeListIterator-class.html">FixedSizeListIterator</a></li>
<li class="self-crumb">FixedSizeListIterator</li>
</ol>
<div class="self-name">FixedSizeListIterator</div>
</div>
</nav>
<div class="container masthead">
<ol class="breadcrumbs gt-separated visible-xs">
<li><a href="index.html">polymer_app_layout_template</a></li>
<li><a href="polymer_app_layout/polymer_app_layout-library.html">polymer_app_layout</a></li>
<li><a href="polymer_app_layout/FixedSizeListIterator-class.html">FixedSizeListIterator</a></li>
<li class="self-crumb">FixedSizeListIterator</li>
</ol>
<div class="title-description">
<h1 class="title">
<div class="kind">constructor</div> FixedSizeListIterator
</h1>
<!-- p class="subtitle">
</p -->
</div>
<ul class="subnav">
</ul>
</div>
</header>
<div class="container body">
<div class="col-xs-6 col-sm-3 sidebar sidebar-offcanvas-left">
<h5><a href="index.html">polymer_app_layout_template</a></h5>
<h5><a href="polymer_app_layout/polymer_app_layout-library.html">polymer_app_layout</a></h5>
<h5><a href="polymer_app_layout/FixedSizeListIterator-class.html">FixedSizeListIterator</a></h5>
<ol>
<li class="section-title"><a href="polymer_app_layout/FixedSizeListIterator-class.html#instance-properties">Properties</a></li>
<li><a href="polymer_app_layout/FixedSizeListIterator/current.html">current</a>
</li>
<li class="section-title"><a href="polymer_app_layout/FixedSizeListIterator-class.html#constructors">Constructors</a></li>
<li><a href="polymer_app_layout/FixedSizeListIterator/FixedSizeListIterator.html">FixedSizeListIterator</a></li>
<li class="section-title"><a href="polymer_app_layout/FixedSizeListIterator-class.html#methods">Methods</a></li>
<li><a href="polymer_app_layout/FixedSizeListIterator/moveNext.html">moveNext</a>
</li>
</ol>
</div><!--/.sidebar-offcanvas-left-->
<div class="col-xs-12 col-sm-9 col-md-6 main-content">
<section class="multi-line-signature">
<span class="name ">FixedSizeListIterator</span>(
<br>
<div class="parameters">
<span class="parameter" id="-param-array"><span class="type-annotation">List<T></span> <span class="parameter-name">array</span></span>
</div>
)
</section>
<section class="desc markdown">
<p class="no-docs">Not documented.</p>
</section>
</div> <!-- /.main-content -->
</div> <!-- container -->
<footer>
<div class="container-fluid">
<div class="container">
<p class="text-center">
<span class="no-break">
polymer_app_layout_template 0.1.0 api docs
</span>
•
<span class="copyright no-break">
<a href="https://www.dartlang.org">
<img src="static-assets/favicon.png" alt="Dart" title="Dart"width="16" height="16">
</a>
</span>
•
<span class="copyright no-break">
<a href="http://creativecommons.org/licenses/by-sa/4.0/">cc license</a>
</span>
</p>
</div>
</div>
</footer>
<script src="static-assets/prettify.js"></script>
<script src="static-assets/script.js"></script>
<!-- Do not remove placeholder -->
<!-- Footer Placeholder -->
</body>
</html>
|
lejard-h/polymer_app_layout_templates
|
doc/api/polymer_app_layout/FixedSizeListIterator/FixedSizeListIterator.html
|
HTML
|
bsd-3-clause
| 5,023
|
import {
fonts,
spacing,
editionBreakpoints,
globalSpacingStyles
} from "@times-components/styleguide";
const fontSizeResolver = {
[editionBreakpoints.wide]: 20,
[editionBreakpoints.huge]: 22
};
export default breakpoint => ({
container: {
flex: 1,
paddingHorizontal: spacing(2),
paddingVertical: spacing(3)
},
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: fontSizeResolver[breakpoint],
lineHeight: fontSizeResolver[breakpoint]
},
imageContainer: {
width: "100%",
marginBottom: spacing(2)
},
summary: {
...globalSpacingStyles.tabletTeaser
}
});
|
newsuk/times-components
|
packages/edition-slices/src/tiles/tile-al/styles/index.js
|
JavaScript
|
bsd-3-clause
| 658
|
/*
* Copyright (c) 2005 Endace Technology Ltd, Hamilton, New Zealand.
* All rights reserved.
*
* This source code is proprietary to Endace Technology Limited and no part
* of it may be redistributed, published or disclosed except as outlined in
* the written contract supplied with this product.
*
*/
#ifndef DAG6_CONSTANTS_H
#define DAG6_CONSTANTS_H
typedef enum s19205cbi {
S19205_RX_TO_TX_SONET_LOOPBACK = 0x000F,
S19205_RX_TO_TX_SYS_LOOPBACK = 0x0022, /* Also TX_PYLD_SCR_INH */
S19205_TX_MAP = 0x0023,
S19205_TX_C2INS = 0x02C1,
S19205_TX_SYS_PRTY_ERR_E = 0x0340,
S19205_TX_SIZE_MODE = 0x0344, /* Also TX_SYS_PRTY_CTL_INH */
S19205_TX_FIFOERR_CNT = 0x034C,
S19205_TX_XMIT_HOLDOFF = 0x034E,
S19205_TX_POS_PMIN = 0x0381,
S19205_TX_POS_PMAX1 = 0x0382,
S19205_TX_POS_PMAX2 = 0x0383,
S19205_TX_POS_ADRCTL_INS = 0x038A,
S19205_XG_CTR_CLR = 0x03C6, /* Also XG_CTR_SNAPSHOT */
S19205_XG_MAC_ADDR = 0x03C0,
S19205_TX_ETH_INH1 = 0x0401,
S19205_TX_ETH_PMAX1 = 0x0402,
S19205_TX_ETH_PMAX2 = 0x0403,
S19205_LATCH_CNT = 0x0800,
S19205_TX_TO_RX_SONET_LOOPBACK = 0x0825,
S19205_RX_MAP = 0x0848, /* Also TX_TO_RX_SYS_LOOPBACK & RX_PYLD_DSCR_INH*/
S19205_RX_LOSEXT_LEVEL = 0x0909,
S19205_RX_LOS = 0x090D,
S19205_RX_B1_ERRCNT1 = 0x0940,
S19205_RX_B1_ERRCNT2 = 0x0941,
S19205_RX_B2_ERRCNT1 = 0x0943,
S19205_RX_B2_ERRCNT2 = 0x0944,
S19205_RX_B2_ERRCNT3 = 0x0945,
S19205_RX_PI_LOP = 0x0C08,
S19205_RX_C2EXP = 0x0D12,
S19205_RX_C2MON = 0x0D15,
S19205_RX_B3_ERRCNT1 = 0x0D16,
S19205_RX_B3_ERRCNT2 = 0x0D17,
S19205_RX_POS_PMIN = 0x0E00,
S19205_RX_POS_PMAX1 = 0x0E01,
S19205_RX_POS_PMAX2 = 0x0E02,
S19205_RX_POS_PMIN_ENB = 0x0E08, /* Also RX_POS_PMAX_ENB & RX_POS_ADRCTL_DROP_INH & RX_POS_FCS_INH*/
S19205_RX_POS_FCS_ERRCNT1 = 0x0E11,
S19205_RX_POS_FCS_ERRCNT2 = 0x0E12,
S19205_RX_POS_FCS_ERRCNT3 = 0x0E13,
S19205_RX_POS_PKT_CNT1 = 0x0E14,
S19205_RX_POS_PKT_CNT2 = 0x0E15,
S19205_RX_POS_PKT_CNT3 = 0x0E16,
S19205_RX_POS_PKT_CNT4 = 0x0E17,
S19205_RX_FIFOERR_CNT = 0x1008,
S19205_RX_ETH_INH1 = 0x1204,
S19205_RX_ETH_INH2 = 0x1205,
S19205_RX_ETH_PMAX1 = 0x1206,
S19205_RX_ETH_PMAX2 = 0x1207,
S19205_RX_ETH_PHY = 0x1214,
S19205_RX_ETH_GOODCNT1 = 0x1258,
S19205_RX_ETH_OCTETS_OK = 0x1260,
S19205_RX_ETH_FCSCNT1 = 0x12B0,
S19205_RX_ETH_OVERRUNCNT1 = 0x12B8,
S19205_RX_ETH_DROPCNT1 = 0x12C0,
S19205_RX_ETH_BADCNT1 = 0x12E8,
S19205_RX_ETH_OCTETS_BAD = 0x12F0,
S19205_DEV_VER = 0x1FFD,
S19205_DEV_ID = 0x1FFF
} s19205cbi_t;
#endif
|
mgrosvenor/camio1.0
|
dag/libdagconf/include/cards/dag6_constants.h
|
C
|
bsd-3-clause
| 3,069
|
#! /usr/bin/env ruby -S rspec
require 'spec_helper'
describe "the flatten function" do
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
expect(Puppet::Parser::Functions.function("flatten")).to eq("function_flatten")
end
it "should raise a ParseError if there is less than 1 arguments" do
expect { scope.function_flatten([]) }.to( raise_error(Puppet::ParseError))
end
it "should raise a ParseError if there is more than 1 argument" do
expect { scope.function_flatten([[], []]) }.to( raise_error(Puppet::ParseError))
end
it "should flatten a complex data structure" do
result = scope.function_flatten([["a","b",["c",["d","e"],"f","g"]]])
expect(result).to(eq(["a","b","c","d","e","f","g"]))
end
it "should do nothing to a structure that is already flat" do
result = scope.function_flatten([["a","b","c","d"]])
expect(result).to(eq(["a","b","c","d"]))
end
end
|
renandanton/codeorders
|
puphpet/puppet/modules/stdlib/spec/functions/flatten_spec.rb
|
Ruby
|
bsd-3-clause
| 965
|
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import "RCTShadowView.h"
#import "RCTTextDecorationLineType.h"
extern NSString *const RCTIsHighlightedAttributeName;
extern NSString *const RCTReactTagAttributeName;
@interface RCTShadowText : RCTShadowView
@property (nonatomic, strong) UIColor *color;
@property (nonatomic, copy) NSString *fontFamily;
@property (nonatomic, assign) CGFloat fontSize;
@property (nonatomic, copy) NSString *fontWeight;
@property (nonatomic, copy) NSString *fontStyle;
@property (nonatomic, assign) BOOL isHighlighted;
@property (nonatomic, assign) CGFloat letterSpacing;
@property (nonatomic, assign) CGFloat lineHeight;
@property (nonatomic, assign) NSLineBreakMode lineBreakMode;
@property (nonatomic, assign) NSUInteger numberOfLines;
@property (nonatomic, assign) CGSize shadowOffset;
@property (nonatomic, assign) NSTextAlignment textAlign;
@property (nonatomic, assign) NSWritingDirection writingDirection;
@property (nonatomic, strong) UIColor *textDecorationColor;
@property (nonatomic, assign) NSUnderlineStyle textDecorationStyle;
@property (nonatomic, assign) RCTTextDecorationLineType textDecorationLine;
@property (nonatomic, assign) CGFloat fontSizeMultiplier;
@property (nonatomic, assign) BOOL allowFontScaling;
@property (nonatomic, assign) CGFloat opacity;
@property (nonatomic, assign) CGSize textShadowOffset;
@property (nonatomic, assign) CGFloat textShadowRadius;
@property (nonatomic, strong) UIColor *textShadowColor;
- (void)recomputeText;
@end
|
miracle2k/react-native
|
Libraries/Text/RCTShadowText.h
|
C
|
bsd-3-clause
| 1,768
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/renderer/browser_plugin/browser_plugin_manager.h"
#include "base/lazy_instance.h"
#include "base/threading/thread_local.h"
#include "content/public/renderer/render_thread.h"
#include "content/renderer/browser_plugin/browser_plugin.h"
#include "content/renderer/browser_plugin/browser_plugin_manager_factory.h"
#include "content/renderer/browser_plugin/browser_plugin_manager_impl.h"
namespace content {
// static
BrowserPluginManagerFactory* BrowserPluginManager::factory_ = NULL;
BrowserPluginManager* BrowserPluginManager::Create(
RenderViewImpl* render_view) {
if (factory_)
return factory_->CreateBrowserPluginManager(render_view);
return new BrowserPluginManagerImpl(render_view);
}
BrowserPluginManager::BrowserPluginManager(RenderViewImpl* render_view)
: RenderViewObserver(render_view),
render_view_(render_view->AsWeakPtr()) {
}
BrowserPluginManager::~BrowserPluginManager() {
}
void BrowserPluginManager::AddBrowserPlugin(
int instance_id,
BrowserPlugin* browser_plugin) {
instances_.AddWithID(browser_plugin, instance_id);
}
void BrowserPluginManager::RemoveBrowserPlugin(int instance_id) {
instances_.Remove(instance_id);
}
BrowserPlugin* BrowserPluginManager::GetBrowserPlugin(int instance_id) const {
return instances_.Lookup(instance_id);
}
void BrowserPluginManager::UpdateDeviceScaleFactor(float device_scale_factor) {
IDMap<BrowserPlugin>::iterator iter(&instances_);
while (!iter.IsAtEnd()) {
iter.GetCurrentValue()->UpdateDeviceScaleFactor(device_scale_factor);
iter.Advance();
}
}
void BrowserPluginManager::UpdateFocusState() {
IDMap<BrowserPlugin>::iterator iter(&instances_);
while (!iter.IsAtEnd()) {
iter.GetCurrentValue()->UpdateGuestFocusState();
iter.Advance();
}
}
} // namespace content
|
loopCM/chromium
|
content/renderer/browser_plugin/browser_plugin_manager.cc
|
C++
|
bsd-3-clause
| 1,983
|
/*L
* Copyright Washington University in St. Louis
* Copyright SemanticBits
* Copyright Persistent Systems
* Copyright Krishagni
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/catissue-tools/LICENSE.txt for details.
*/
/**
* <p>Title: SiteForm Class>
* <p>Description: This Class is used to encapsulate all the request parameters passed
* from Site.jsp page. </p>
* Copyright: Copyright (c) year
* Company: Washington University, School of Medicine, St. Louis.
* @author Aniruddha Phadnis
* @version 1.00
* Created on Jul 18, 2005
*/
package edu.wustl.clinportal.actionForm;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import edu.wustl.clinportal.domain.Site;
import edu.wustl.clinportal.util.global.Constants;
import edu.wustl.clinportal.util.global.DefaultValueManager;
import edu.wustl.common.actionForm.AbstractActionForm;
import edu.wustl.common.domain.AbstractDomainObject;
import edu.wustl.common.util.global.ApplicationProperties;
import edu.wustl.common.util.global.Validator;
import edu.wustl.common.util.logger.Logger;
/**
* This Class is used to encapsulate all the request parameters passed from Site.jsp page.
* @author Rukhsana_Sameer
* */
public class SiteForm extends AbstractActionForm
{
/**
* Name of the site.
*/
private String name;
/**
* EmailAddress Address of the site.
*/
private String emailAddress;
/**
* Street Address of the site.
*/
private String street;
/**
* The City in which the site is.
*/
private String city;
/**
* A string containing the type of the storage.
*/
private String type = (String) DefaultValueManager.getDefaultValue(Constants.DEFAULT_SITE_TYPE);
private String state = (String) DefaultValueManager.getDefaultValue(Constants.DEFAULT_STATES);
private String country = (String) DefaultValueManager
.getDefaultValue(Constants.DEFAULT_COUNTRY);
/**
* The zip code of city where the site is.
*/
private String zipCode;
/**
* Phone number of the site.
* */
private String phoneNumber;
/**
* Fax number of the site.
*/
private String faxNumber;
/**
* Id of the coordinator associated with the site.
*/
private long coordinatorId;
/**
* No argument constructor for StorageTypeForm class
*/
public SiteForm()
{
reset();
}
/**
* This function Copies the data from an site object to a SiteForm object.
* @param abstractDomain An object containing the information about site.
*/
public void setAllValues(AbstractDomainObject abstractDomain)
{
Site site = (Site) abstractDomain;
this.setId(site.getId().longValue());
this.name = site.getName();
this.type = site.getType();
this.emailAddress = site.getEmailAddress();
this.street = site.getAddress().getStreet();
this.city = site.getAddress().getCity();
this.state = site.getAddress().getState();
this.country = site.getAddress().getCountry();
this.zipCode = site.getAddress().getZipCode();
this.phoneNumber = site.getAddress().getPhoneNumber();
this.faxNumber = site.getAddress().getFaxNumber();
this.setActivityStatus(site.getActivityStatus());
this.coordinatorId = site.getCoordinator().getId().longValue();
}
/**
* Returns the Country where the site is.
* @return String representing country where the site is.
* @see #setCountry(String)
*/
public String getCountry()
{
return country;
}
/**
* Returns the name of the site.
* @return the name of the site.
* @see #setName(String)
*/
public String getName()
{
return name;
}
/**
* Sets the fax number of the site.
* @param faxNumber The fax number of the site.
* @see #getFax()
*/
public void setFaxNumber(String faxNumber)
{
this.faxNumber = faxNumber;
}
/**
* Sets the name of the site.
* @param name the name to of the site.
* @see #getName()
*/
public void setName(String name)
{
this.name = name;
}
/**
* Returns the phone number of the site.
* @return Returns the phone number.
* @see #setPhone(String)
*/
public String getPhoneNumber()
{
return phoneNumber;
}
/**
* Returns the fax number of the site.
* @return Returns the fax.
* @see #setFax(String)
*/
public String getFaxNumber()
{
return this.faxNumber;
}
/**
* Returns the type of the site.
* @return the type of the site.
* @see #setType(String)
*/
public String getType()
{
return type;
}
/**
* Sets the type of the site.
* @param type the type of the site.
* @see #getType()
*/
public void setType(String type)
{
this.type = type;
}
/**
* Returns the id of the coordinator.
* @return the id of the coordinator.
* @see #setCoordinatorId(long)
*/
public long getCoordinatorId()
{
return coordinatorId;
}
/**
* @param coordinatorId The coordinatorId to set.
*/
public void setCoordinatorId(long coordinatorId)
{
this.coordinatorId = coordinatorId;
}
/**
* Sets the phone number of the site.
* @param phoneNumber The phone number to site.
* @see #getphoneNumber()
*/
public void setPhoneNumber(String phoneNumber)
{
this.phoneNumber = phoneNumber;
}
/**
* Returns the emailAddress Address of the site.
* @return String representing the emailAddress address of the site.
*/
public String getEmailAddress()
{
return emailAddress;
}
/**
* Sets the emailAddress address of the site.
* @param emailAddress String representing emailAddress address of the site.
* @see #getEmailAddress()
*/
public void setEmailAddress(String emailAddress)
{
this.emailAddress = emailAddress;
}
/**
* Returns the Street Address of the site.
* @return String representing mailing address of the site.
* @see #setStreet(String)
*/
public String getStreet()
{
return street;
}
/**
* Sets the Street Address of the site.
* @param street String representing mailing address of the site.
* @see #getStreet()
*/
public void setStreet(String street)
{
this.street = street;
}
/**
* Returns the City where the site is.
* @return String representing city where the site is.
* @see #setCity(String)
*/
public String getCity()
{
return city;
}
/**
* Sets the City where the site is.
* @param city String name of the city where the site is.
* @see #getCity()
*/
public void setCity(String city)
{
this.city = city;
}
/**
* Returns the State where the site is.
* @return String representing state where the site is.
* @see #setState(String)
*/
public String getState()
{
return state;
}
/**
* Sets the State where the site is.
* @param state String representing state where the site is.
* @see #getState()
*/
public void setState(String state)
{
this.state = state;
}
/**
* Sets the Country where the site is.
* @param country String representing country where the site is.
* @see #getCountry()
*/
public void setCountry(String country)
{
this.country = country;
}
/**
* Returns the zip code of the city where the site is.
* @return Returns the zip.
* @see #setZip(String)
*/
public String getZipCode()
{
return zipCode;
}
/**
* Sets the zip code of the city where the site is.
* @param zipCode The zip code of the city where the site is.
* @see #getZip()
*/
public void setZipCode(String zipCode)
{
this.zipCode = zipCode;
}
/**
* @return Returns the id assigned to form bean.
*/
public int getFormId()
{
return Constants.SITE_FORM_ID;
}
/**
* Resets the values of all the fields.
* Is called by the overridden reset method defined in ActionForm.
* */
protected void reset()
{
}
/**
* Overrides the validate method of ActionForm.
* @param mapping Actionmapping instance
* @param request HttpServletRequest instance
* @return error ActionErrors instance
*/
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
{
ActionErrors errors = new ActionErrors();
final Validator validator = new Validator();
final String ERR_ITEM_REQ = "errors.item.required";
try
{
setRedirectValue(validator);
if (validator.isEmpty(name))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ERR_ITEM_REQ,
ApplicationProperties.getValue("site.name")));
}
if (!validator.isValidOption(type))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ERR_ITEM_REQ,
ApplicationProperties.getValue("site.type")));
}
if (coordinatorId == -1L)
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ERR_ITEM_REQ,
ApplicationProperties.getValue("site.coordinator")));
}
if (!validator.isEmpty(emailAddress) && !validator.isValidEmailAddress(emailAddress))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.item.format",
ApplicationProperties.getValue("site.emailAddress")));
}
if (validator.isEmpty(street))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ERR_ITEM_REQ,
ApplicationProperties.getValue("site.street")));
}
if (validator.isEmpty(city))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ERR_ITEM_REQ,
ApplicationProperties.getValue("site.city")));
}
if (!validator.isValidOption(state))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ERR_ITEM_REQ,
ApplicationProperties.getValue("site.state")));
}
if (!validator.isValidOption(country))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ERR_ITEM_REQ,
ApplicationProperties.getValue("site.country")));
}
// added for zip code , phone and fax number validation
if (validator.isEmpty(zipCode))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ERR_ITEM_REQ,
ApplicationProperties.getValue("site.zipCode")));
}
else
{
if (!validator.isValidZipCode(zipCode))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.zipCode.format",
ApplicationProperties.getValue("site.zipCode")));
}
}
if (getOperation().equals(Constants.EDIT)
&& !validator.isValidOption(getActivityStatus()))
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ERR_ITEM_REQ,
ApplicationProperties.getValue("site.activityStatus")));
}
}
catch (Exception excp)
{
Logger.out.error(excp.getMessage());
}
return errors;
}
/**
* This method sets Identifier of Objects inserted by AddNew activity in Form-Bean which initialized AddNew action
* @param addNewFor - FormBean ID of the object inserted
* @param addObjId - Identifier of the Object inserted
*/
public void setAddNewObjectIdentifier(String addNewFor, Long addObjId)
{
if ("coordinator".equals(addNewFor))
{
setCoordinatorId(addObjId.longValue());
}
}
}
|
NCIP/catissue-tools
|
WEB-INF/src/edu/wustl/clinportal/actionForm/SiteForm.java
|
Java
|
bsd-3-clause
| 11,316
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="lang:clipboard.copied" content="Copied to clipboard">
<meta name="lang:search.language" content="en">
<meta name="lang:search.pipeline.stopwords" content="True">
<meta name="lang:search.pipeline.trimmer" content="True">
<meta name="lang:search.result.none" content="No matching documents">
<meta name="lang:search.result.one" content="1 matching document">
<meta name="lang:search.result.other" content="# matching documents">
<meta name="lang:search.tokenizer" content="[\s\-]+">
<link href="https://fonts.gstatic.com/" rel="preconnect" crossorigin>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,500,700|Roboto:300,400,400i,700&display=fallback" rel="stylesheet">
<style>
body,
input {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif
}
code,
kbd,
pre {
font-family: "Roboto Mono", "Courier New", Courier, monospace
}
</style>
<link rel="stylesheet" href="../_static/stylesheets/application.css"/>
<link rel="stylesheet" href="../_static/stylesheets/application-palette.css"/>
<link rel="stylesheet" href="../_static/stylesheets/application-fixes.css"/>
<link rel="stylesheet" href="../_static/fonts/material-icons.css"/>
<meta name="theme-color" content="#3f51b5">
<script src="../_static/javascripts/modernizr.js"></script>
<title>statsmodels.tsa.statespace.sarimax.SARIMAX.clone — statsmodels</title>
<link rel="icon" type="image/png" sizes="32x32" href="../_static/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../_static/icons/favicon-16x16.png">
<link rel="manifest" href="../_static/icons/site.webmanifest">
<link rel="mask-icon" href="../_static/icons/safari-pinned-tab.svg" color="#919191">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="../_static/icons/browserconfig.xml">
<link rel="stylesheet" href="../_static/stylesheets/examples.css">
<link rel="stylesheet" href="../_static/stylesheets/deprecation.css">
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/material.css" />
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css" />
<link rel="stylesheet" type="text/css" href="../_static/plot_directive.css" />
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script defer="defer" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script>window.MathJax = {"tex": {"inlineMath": [["$", "$"], ["\\(", "\\)"]], "processEscapes": true}, "options": {"ignoreHtmlClass": "tex2jax_ignore|mathjax_ignore|document", "processHtmlClass": "tex2jax_process|mathjax_process|math|output_area"}}</script>
<link rel="shortcut icon" href="../_static/favicon.ico"/>
<link rel="author" title="About these documents" href="../about.html" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="statsmodels.tsa.statespace.sarimax.SARIMAX.filter" href="statsmodels.tsa.statespace.sarimax.SARIMAX.filter.html" />
<link rel="prev" title="statsmodels.tsa.statespace.sarimax.SARIMAX" href="statsmodels.tsa.statespace.sarimax.SARIMAX.html" />
</head>
<body dir=ltr
data-md-color-primary=indigo data-md-color-accent=blue>
<svg class="md-svg">
<defs data-children-count="0">
<svg xmlns="http://www.w3.org/2000/svg" width="416" height="448" viewBox="0 0 416 448" id="__github"><path fill="currentColor" d="M160 304q0 10-3.125 20.5t-10.75 19T128 352t-18.125-8.5-10.75-19T96 304t3.125-20.5 10.75-19T128 256t18.125 8.5 10.75 19T160 304zm160 0q0 10-3.125 20.5t-10.75 19T288 352t-18.125-8.5-10.75-19T256 304t3.125-20.5 10.75-19T288 256t18.125 8.5 10.75 19T320 304zm40 0q0-30-17.25-51T296 232q-10.25 0-48.75 5.25Q229.5 240 208 240t-39.25-2.75Q130.75 232 120 232q-29.5 0-46.75 21T56 304q0 22 8 38.375t20.25 25.75 30.5 15 35 7.375 37.25 1.75h42q20.5 0 37.25-1.75t35-7.375 30.5-15 20.25-25.75T360 304zm56-44q0 51.75-15.25 82.75-9.5 19.25-26.375 33.25t-35.25 21.5-42.5 11.875-42.875 5.5T212 416q-19.5 0-35.5-.75t-36.875-3.125-38.125-7.5-34.25-12.875T37 371.5t-21.5-28.75Q0 312 0 260q0-59.25 34-99-6.75-20.5-6.75-42.5 0-29 12.75-54.5 27 0 47.5 9.875t47.25 30.875Q171.5 96 212 96q37 0 70 8 26.25-20.5 46.75-30.25T376 64q12.75 25.5 12.75 54.5 0 21.75-6.75 42 34 40 34 99.5z"/></svg>
</defs>
</svg>
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search">
<label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
<a href="#generated/statsmodels.tsa.statespace.sarimax.SARIMAX.clone" tabindex="1" class="md-skip"> Skip to content </a>
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid">
<div class="md-flex navheader">
<div class="md-flex__cell md-flex__cell--shrink">
<a href="../index.html" title="statsmodels"
class="md-header-nav__button md-logo">
<img src="../_static/statsmodels-logo-v2-bw.svg" height="26"
alt="statsmodels logo">
</a>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
</div>
<div class="md-flex__cell md-flex__cell--stretch">
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
<span class="md-header-nav__topic">statsmodels v0.13.1</span>
<span class="md-header-nav__topic"> statsmodels.tsa.statespace.sarimax.SARIMAX.clone </span>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" action="../search.html" method="get" name="search">
<input type="text" class="md-search__input" name="q" placeholder="Search"
autocapitalize="off" autocomplete="off" spellcheck="false"
data-md-component="query" data-md-state="active">
<label class="md-icon md-search__icon" for="__search"></label>
<button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">

</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="result">
<div class="md-search-result__meta">
Type to start searching
</div>
<ol class="md-search-result__list"></ol>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
<a href="https://github.com/statsmodels/statsmodels" title="Go to repository" class="md-source" data-md-source="github">
<div class="md-source__icon">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="28" height="28">
<use xlink:href="#__github" width="24" height="24"></use>
</svg>
</div>
<div class="md-source__repository">
statsmodels
</div>
</a>
</div>
</div>
<script src="../_static/javascripts/version_dropdown.js"></script>
<script>
var json_loc = "../../versions-v2.json",
target_loc = "../../",
text = "Versions";
$( document ).ready( add_version_dropdown(json_loc, target_loc, text));
</script>
</div>
</nav>
</header>
<div class="md-container">
<nav class="md-tabs" data-md-component="tabs">
<div class="md-tabs__inner md-grid">
<ul class="md-tabs__list">
<li class="md-tabs__item"><a href="../user-guide.html" class="md-tabs__link">User Guide</a></li>
<li class="md-tabs__item"><a href="../statespace.html" class="md-tabs__link">Time Series Analysis by State Space Methods <code class="xref py py-mod docutils literal notranslate"><span class="pre">statespace</span></code></a></li>
<li class="md-tabs__item"><a href="statsmodels.tsa.statespace.sarimax.SARIMAX.html" class="md-tabs__link">statsmodels.tsa.statespace.sarimax.SARIMAX</a></li>
</ul>
</div>
</nav>
<main class="md-main">
<div class="md-main__inner md-grid" data-md-component="container">
<div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary" data-md-level="0">
<label class="md-nav__title md-nav__title--site" for="__drawer">
<a href="../index.html" title="statsmodels" class="md-nav__button md-logo">
<img src="../_static/statsmodels-logo-v2-bw.svg" alt=" logo" width="48" height="48">
</a>
<a href="../index.html"
title="statsmodels">statsmodels v0.13.1</a>
</label>
<div class="md-nav__source">
<a href="https://github.com/statsmodels/statsmodels" title="Go to repository" class="md-source" data-md-source="github">
<div class="md-source__icon">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="28" height="28">
<use xlink:href="#__github" width="24" height="24"></use>
</svg>
</div>
<div class="md-source__repository">
statsmodels
</div>
</a>
</div>
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="../install.html" class="md-nav__link">Installing statsmodels</a>
</li>
<li class="md-nav__item">
<a href="../gettingstarted.html" class="md-nav__link">Getting started</a>
</li>
<li class="md-nav__item">
<a href="../user-guide.html" class="md-nav__link">User Guide</a>
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="../user-guide.html#background" class="md-nav__link">Background</a>
</li>
<li class="md-nav__item">
<a href="../user-guide.html#regression-and-linear-models" class="md-nav__link">Regression and Linear Models</a>
</li>
<li class="md-nav__item">
<a href="../user-guide.html#time-series-analysis" class="md-nav__link">Time Series Analysis</a>
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="../tsa.html" class="md-nav__link">Time Series analysis <code class="xref py py-mod docutils literal notranslate"><span class="pre">tsa</span></code></a>
</li>
<li class="md-nav__item">
<a href="../statespace.html" class="md-nav__link">Time Series Analysis by State Space Methods <code class="xref py py-mod docutils literal notranslate"><span class="pre">statespace</span></code></a>
</li>
<li class="md-nav__item">
<a href="../vector_ar.html" class="md-nav__link">Vector Autoregressions <code class="xref py py-mod docutils literal notranslate"><span class="pre">tsa.vector_ar</span></code></a>
</li></ul>
</li>
<li class="md-nav__item">
<a href="../user-guide.html#other-models" class="md-nav__link">Other Models</a>
</li>
<li class="md-nav__item">
<a href="../user-guide.html#statistics-and-tools" class="md-nav__link">Statistics and Tools</a>
</li>
<li class="md-nav__item">
<a href="../user-guide.html#data-sets" class="md-nav__link">Data Sets</a>
</li>
<li class="md-nav__item">
<a href="../user-guide.html#sandbox" class="md-nav__link">Sandbox</a>
</li></ul>
</li>
<li class="md-nav__item">
<a href="../examples/index.html" class="md-nav__link">Examples</a>
</li>
<li class="md-nav__item">
<a href="../api.html" class="md-nav__link">API Reference</a>
</li>
<li class="md-nav__item">
<a href="../about.html" class="md-nav__link">About statsmodels</a>
</li>
<li class="md-nav__item">
<a href="../dev/index.html" class="md-nav__link">Developer Page</a>
</li>
<li class="md-nav__item">
<a href="../release/index.html" class="md-nav__link">Release Notes</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary">
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item"><a class="md-nav__extra_link" href="../_sources/generated/statsmodels.tsa.statespace.sarimax.SARIMAX.clone.rst.txt">Show Source</a> </li>
<li id="searchbox" class="md-nav__item"></li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content">
<article class="md-content__inner md-typeset" role="main">
<section id="statsmodels-tsa-statespace-sarimax-sarimax-clone">
<h1 id="generated-statsmodels-tsa-statespace-sarimax-sarimax-clone--page-root">statsmodels.tsa.statespace.sarimax.SARIMAX.clone<a class="headerlink" href="#generated-statsmodels-tsa-statespace-sarimax-sarimax-clone--page-root" title="Permalink to this headline">¶</a></h1>
<dl class="py method">
<dt class="sig sig-object py" id="statsmodels.tsa.statespace.sarimax.SARIMAX.clone">
<span class="sig-prename descclassname"><span class="pre">SARIMAX.</span></span><span class="sig-name descname"><span class="pre">clone</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">endog</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">exog</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/statsmodels/tsa/statespace/sarimax.html#SARIMAX.clone"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#statsmodels.tsa.statespace.sarimax.SARIMAX.clone" title="Permalink to this definition">¶</a></dt>
<dd><p>Clone state space model with new data and optionally new specification</p>
<dl class="field-list">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><dl>
<dt><strong>endog</strong><span class="classifier"><a class="reference external" href="https://numpy.org/doc/stable/glossary.html#term-array_like" title="(in NumPy v1.21)"><span>array_like</span></a></span></dt><dd><p>The observed time-series process <span class="math notranslate nohighlight">\(y\)</span></p>
</dd>
<dt><strong>k_states</strong><span class="classifier"><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.10)"><code class="docutils literal notranslate"><span class="pre">int</span></code></a></span></dt><dd><p>The dimension of the unobserved state process.</p>
</dd>
<dt><strong>exog</strong><span class="classifier"><a class="reference external" href="https://numpy.org/doc/stable/glossary.html#term-array_like" title="(in NumPy v1.21)"><span>array_like</span></a>, <code class="xref py py-obj docutils literal notranslate"><span class="pre">optional</span></code></span></dt><dd><p>Array of exogenous regressors, shaped nobs x k. Default is no
exogenous regressors.</p>
</dd>
<dt><strong>kwargs</strong></dt><dd><p>Keyword arguments to pass to the new model class to change the
model specification.</p>
</dd>
</dl>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><dl>
<dt><strong>model</strong><span class="classifier"><code class="xref py py-obj docutils literal notranslate"><span class="pre">MLEModel</span></code> <code class="xref py py-obj docutils literal notranslate"><span class="pre">subclass</span></code></span></dt><dd></dd>
</dl>
</dd>
</dl>
<p class="rubric">Notes</p>
<p>This method must be implemented</p>
</dd></dl>
</section>
</article>
</div>
</div>
</main>
</div>
<footer class="md-footer">
<div class="md-footer-nav">
<nav class="md-footer-nav__inner md-grid">
<a href="statsmodels.tsa.statespace.sarimax.SARIMAX.html" title="statsmodels.tsa.statespace.sarimax.SARIMAX"
class="md-flex md-footer-nav__link md-footer-nav__link--prev"
rel="prev">
<div class="md-flex__cell md-flex__cell--shrink">
<i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
</div>
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
<span class="md-flex__ellipsis">
<span
class="md-footer-nav__direction"> Previous </span> statsmodels.tsa.statespace.sarimax.SARIMAX </span>
</div>
</a>
<a href="statsmodels.tsa.statespace.sarimax.SARIMAX.filter.html" title="statsmodels.tsa.statespace.sarimax.SARIMAX.filter"
class="md-flex md-footer-nav__link md-footer-nav__link--next"
rel="next">
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"><span
class="md-flex__ellipsis"> <span
class="md-footer-nav__direction"> Next </span> statsmodels.tsa.statespace.sarimax.SARIMAX.filter </span>
</div>
<div class="md-flex__cell md-flex__cell--shrink"><i
class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
</div>
</a>
</nav>
</div>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
© Copyright 2009-2019, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers.
</div>
Last updated on
Nov 12, 2021.
<br/>
Created using
<a href="http://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
and
<a href="https://github.com/bashtage/sphinx-material/">Material for
Sphinx</a>
</div>
</div>
</div>
</footer>
<script src="../_static/javascripts/application.js"></script>
<script>app.initialize({version: "1.0.4", url: {base: ".."}})</script>
</body>
</html>
|
statsmodels/statsmodels.github.io
|
v0.13.1/generated/statsmodels.tsa.statespace.sarimax.SARIMAX.clone.html
|
HTML
|
bsd-3-clause
| 20,295
|
/*
* Copyright (c) 2013 Gerard Green
* All rights reserved
*
* Please see the file 'LICENSE' for further information
*/
#include <anvil/ipc.h>
#include <anvil/ace_msgs.h>
#include <anvil/ace.h>
int ace_win_show(ace_window_t *win) {
struct ace_win_show_msg showmsg;
int status;
int err;
showmsg.win_handle = win->handle;
err = msg_rpc_port_status(win->connection->port, ACE_WIN_SHOW, &showmsg, sizeof(showmsg), &status, NULL, 0);
if (err != 0) {
return -1;
}
else if (status != 0) {
return -1;
}
return 0;
}
|
gerryg400/anvilos
|
src/libc/anvil/ace/ace_win_show.c
|
C
|
bsd-3-clause
| 674
|
package org.opengis.cite.osxgeotime;
import java.net.URI;
import java.util.Map;
import java.util.logging.Level;
import org.opengis.cite.osxgeotime.util.XMLUtils;
import org.opengis.cite.osxgeotime.util.TestSuiteLogger;
import org.opengis.cite.osxgeotime.util.URIUtils;
import org.testng.ISuite;
import org.testng.ISuiteListener;
import org.testng.Reporter;
import org.w3c.dom.Document;
/**
* A listener that performs various tasks before and after a test suite is run,
* usually concerned with maintaining a shared test suite fixture. Since this
* listener is loaded using the ServiceLoader mechanism, its methods will be
* called before those of other suite listeners listed in the test suite
* definition and before any annotated configuration methods.
*
* Attributes set on an ISuite instance are not inherited by constituent test
* group contexts (ITestContext). However, suite attributes are still accessible
* from lower contexts.
*
* @see org.testng.ISuite ISuite interface
*/
public class SuiteFixtureListener implements ISuiteListener {
@Override
public void onStart(ISuite suite) {
processSuiteParameters(suite);
}
@Override
public void onFinish(ISuite suite) {
Reporter.clear(); // clear output from previous test runs
Reporter.log("Test suite parameters:");
Reporter.log(suite.getXmlSuite().getAllParameters().toString());
}
/**
* Processes test suite parameters and sets suite attributes accordingly.
* For example, parsing the entity referenced by the "iut" parameter
* value and setting the resulting Document as the value of the "testSubject"
* attribute.
*
* @param suite An ISuite object representing a TestNG test suite.
*/
void processSuiteParameters(ISuite suite) {
Map<String, String> params = suite.getXmlSuite().getParameters();
TestSuiteLogger.log(Level.CONFIG, "Suite parameters\n" + params.toString());
String iutRef = params.get(TestRunArg.IUT.toString());
if ((null == iutRef) || iutRef.isEmpty()) {
throw new IllegalArgumentException("Required parameter not found");
}
URI iutURI = URI.create(iutRef);
Document doc = null;
try {
doc = URIUtils.resolveURIAsDocument(iutURI);
} catch (Exception ex) {
// push exception up through ISuiteListener interface
throw new RuntimeException("Failed to parse XML resource at "
+ iutURI, ex);
}
if (null != doc) {
suite.setAttribute(SuiteAttribute.TEST_SUBJECT.getName(), doc);
if (TestSuiteLogger.isLoggable(Level.FINE)) {
StringBuilder logMsg = new StringBuilder("Parsed resource from ");
logMsg.append(iutURI).append("\n");
logMsg.append(XMLUtils.writeNodeToString(doc));
TestSuiteLogger.log(Level.FINE, logMsg.toString());
}
}
String rncRef = params.get(TestRunArg.RNC.toString());
if ((null == rncRef) || rncRef.isEmpty()) {
throw new IllegalArgumentException("Required parameter not found");
}
suite.setAttribute(SuiteAttribute.RELAX_NG.getName(), rncRef);
}
}
|
opengeospatial/ets-osxgeotime10
|
src/main/java/org/opengis/cite/osxgeotime/SuiteFixtureListener.java
|
Java
|
bsd-3-clause
| 3,354
|
<?php
/**
* @author MyBB Group
* @version 2.0.0
* @package mybb/core
* @license http://www.mybb.com/licenses/bsd3 BSD-3
*/
namespace MyBB\Core\Form;
use Illuminate\Contracts\View\Factory as ViewFactory;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use Illuminate\Validation\Factory as ValidationFactory;
class Renderer
{
/**
* @var ViewFactory
*/
protected $view;
/**
* @var ValidationFactory
*/
protected $validator;
/**
* @var Request
*/
protected $request;
/**
* @param ViewFactory $viewFactory
* @param ValidationFactory $validationFactory
* @param Request $request
*/
public function __construct(ViewFactory $viewFactory, ValidationFactory $validationFactory, Request $request)
{
$this->view = $viewFactory;
$this->validator = $validationFactory;
$this->request = $request;
}
/**
* @param RenderableInterface $renderable
*
* @return string
*/
public function render(RenderableInterface $renderable)
{
$html = '';
// label
$html .= $this->view->make('partials.form.field_label', [
'for' => $this->slugify($renderable->getLabel()),
'label' => $renderable->getLabel(),
'is_required' => $this->isRequired($renderable)
])->render();
// description
if ($renderable->getDescription()) {
$html .= $this->view->make('partials.form.field_description', [
'description' => $renderable->getDescription()
])->render();
}
switch ($renderable->getType()) {
case 'text':
case 'email':
case 'password':
case 'url':
case 'number':
$html .= $this->renderInput($renderable);
break;
case 'select':
$html .= $this->renderSelect($renderable);
break;
case 'textarea':
$html .= $this->renderTextarea($renderable);
break;
}
return $html;
}
/**
* @param RenderableInterface $renderable
*
* @return string
*/
protected function renderTextarea(RenderableInterface $renderable)
{
return $this->view->make('partials.form.field_textarea', [
'name' => $renderable->getElementName(),
'rows' => 6,
'cols' => 40,
'value' => $this->getValue($renderable),
'is_required' => $this->isRequired($renderable),
'min_length' => $this->getMinLength($renderable),
'max_length' => $this->getMaxLength($renderable)
])->render();
}
/**
* @param RenderableInterface $renderable
*
* @return string
*/
protected function renderInput(RenderableInterface $renderable)
{
return $this->view->make('partials.form.field_input', [
'type' => $renderable->getType(),
'name' => $renderable->getElementName(),
'id' => $this->slugify($renderable->getElementName()),
'value' => $this->getValue($renderable),
'is_required' => $this->isRequired($renderable),
'min_length' => $this->getMinLength($renderable),
'max_length' => $this->getMaxLength($renderable)
])->render();
}
/**
* @param RenderableInterface $renderable
*
* @return string
*/
protected function renderSelect(RenderableInterface $renderable)
{
return $this->view->make('partials.form.field_select', [
'name' => $renderable->getElementName(),
'options' => $renderable->getOptions(),
'selected' => $this->getValue($renderable)
])->render();
}
/**
* @param RenderableInterface $renderable
*
* @return mixed
*/
protected function getValue(RenderableInterface $renderable)
{
$dottedNotation = str_replace(['[', ']'], ['.', ''], $renderable->getElementName());
if (!is_null($this->request->old($dottedNotation))) {
return $this->request->old($dottedNotation);
}
$value = $renderable->getValue();
if (!is_null($value)) {
return $value;
}
return '';
}
/**
* @param string $string
*
* @return string
*/
protected function slugify($string)
{
return Str::slug($string);
}
/**
* @param RenderableInterface $renderable
*
* @return int
*/
protected function getMinLength(RenderableInterface $renderable)
{
return (int)$this->extractValueByKeyFromRules('min', $renderable);
}
/**
* @param RenderableInterface $renderable
*
* @return int
*/
protected function getMaxLength(RenderableInterface $renderable)
{
return (int)$this->extractValueByKeyFromRules('max', $renderable);
}
/**
* @param string $key
* @param RenderableInterface $renderable
*
* @return string
*/
protected function extractValueByKeyFromRules($key, RenderableInterface $renderable)
{
$rules = $this->getRules($renderable);
foreach ($rules as $rule) {
if (strpos($rule, $key . ':') !== false) {
$ruleBits = explode(':', $rule);
return end($ruleBits);
}
}
}
/**
* @param RenderableInterface $renderable
*
* @return bool
*/
protected function isRequired(RenderableInterface $renderable)
{
return in_array('required', $this->getRules($renderable));
}
/**
* @param RenderableInterface $renderable
*
* @return array
*/
protected function getRules(RenderableInterface $renderable)
{
$rules = $this->getValidator($renderable)->getRules();
return $rules[$renderable->getElementName()] ? $rules[$renderable->getElementName()] : [];
}
/**
* @param RenderableInterface $renderable
*
* @return \Illuminate\Validation\Validator
*/
protected function getValidator(RenderableInterface $renderable)
{
return $this->validator->make([], [$renderable->getElementName() => $renderable->getValidationRules()]);
}
}
|
ATofighi/mybb2
|
app/Form/Renderer.php
|
PHP
|
bsd-3-clause
| 5,413
|
<?php
class Simulator extends PHPFIT_Fixture_Action {
/**
* dictionary of variable types
* @var int
*/
protected $typeDict = array(
'nodes' => 'integer',
'zip' => 'integer',
'coord' => 'string',
'coord()' => 'integer',
'nodes()' => 'integer'
);
/**
* counts current nodes
* @var int
*/
public $nodes = 0;
/**
* zip code
* @var string
*/
public $zip;
/**
* geo coordinates
* @var object
*/
public $coord;
/**
* new City
*
* @return void
*/
public function newCity() {
//echo "net.Simulator->". __FUNCTION__ ."() \n";
}
/**
* ok
*
* @return void
*/
public function ok() {
//echo "net.Simulator->". __FUNCTION__ ."() \n";
++$this->nodes;
}
/**
* nodes
*
* @return void
*/
public function cancel() {
//echo "net.Simulator->". __FUNCTION__ ."() \n";
}
/**
* name
*
* @return void
*/
public function name( $n ) {
//echo "net.Simulator->". __FUNCTION__ ."() \n";
}
/**
* zip
*
* Update current zip or receive zip
*
* @return void or current zip
*/
public function zip( $z = null ) {
//echo "net.Simulator->". __FUNCTION__ ."() \n";
if( $z == null ) {
return $this->zip;
}
$this->zip = $z;
}
/**
* population
*
* @return void
*/
public function population( $p ) {
//echo "net.Simulator->". __FUNCTION__ ."() \n";
}
/**
* coord
*
* @return void
*/
public function coord( $c = null ) {
//echo "net.Simulator->". __FUNCTION__ ."() \n";
if( $c == null ) {
return $this->geo;
}
$this->geo = $c;
}
/**
* nodes
*
* @return void
*/
public function nodes() {
//echo "net.Simulator->". __FUNCTION__ ."() \n";
return $this->nodes;
}
/*
public Object parse (String string, Class type) throws Exception {
if (type.equals(GeoCoordinate.class)) {return GeoCoordinate.parse(string);}
return super.parse (string, type);
}
*/
}
|
Symfony-Plugins/sfPHPFitPlugin
|
lib/vendor/phpfit/eg/net/Simulator.php
|
PHP
|
bsd-3-clause
| 2,314
|
<?php
namespace bedezign\yii2\audit\panels;
use bedezign\yii2\audit\Audit;
use bedezign\yii2\audit\components\panels\Panel;
use bedezign\yii2\audit\models\AuditMail;
use bedezign\yii2\audit\models\AuditMailSearch;
use Swift_Message;
use Swift_Mime_Attachment;
use Swift_Mime_MimePart;
use Yii;
use yii\base\Event;
use yii\grid\GridViewAsset;
use yii\mail\BaseMailer;
use yii\mail\MessageInterface;
use yii\swiftmailer\Message;
/**
* MailPanel
* @package bedezign\yii2\audit\panels
*/
class MailPanel extends Panel
{
/**
* Store full email data
*
* /!\ Set this to true will increase database size /!\
*/
public $storeData = true;
/**
* @inheritdoc
*/
public function init()
{
parent::init();
Event::on(BaseMailer::className(), BaseMailer::EVENT_AFTER_SEND, function ($event) {
$this->record($event);
});
}
/**
* @param Event $event
* @return null|static
*/
public function record($event)
{
/* @var $message MessageInterface */
$message = $event->message;
$entry = Audit::getInstance()->getEntry(true);
$mail = new AuditMail();
$mail->entry_id = $entry->id;
$mail->successful = $event->isSuccessful;
$mail->from = self::convertParams($message->getFrom());
$mail->to = self::convertParams($message->getTo());
$mail->reply = self::convertParams($message->getReplyTo());
$mail->cc = self::convertParams($message->getCc());
$mail->bcc = self::convertParams($message->getBcc());
$mail->subject = $message->getSubject();
// add more information when message is a SwiftMailer message
if ($message instanceof Message) {
/* @var $swiftMessage Swift_Message */
$swiftMessage = $message->getSwiftMessage();
if ($swiftMessage->getContentType() == 'text/html') {
$mail->html = $swiftMessage->getBody();
} else {
$mail->text = $swiftMessage->getBody();
}
foreach ($swiftMessage->getChildren() as $part) {
/* @var $part Swift_Mime_MimePart */
if ($part instanceof Swift_Mime_Attachment) {
continue;
}
$contentType = $part->getContentType();
if ($contentType == 'text/plain') {
$mail->text = $part->getBody();
} elseif ($contentType == 'text/html') {
$mail->html = $part->getBody();
}
}
}
// makes full email available for download
if ($this->storeData) {
$mail->data = $message->toString();
}
return $mail->save(false) ? $mail : null;
}
/**
* @param $attr
* @return string
*/
private static function convertParams($attr)
{
if (is_array($attr)) {
$attr = implode(', ', array_keys($attr));
}
return $attr;
}
/**
* @inheritdoc
*/
public function hasEntryData($entry)
{
return count($entry->mails) > 0;
}
/**
* @inheritdoc
*/
public function getName()
{
return Yii::t('audit', 'Mails');
}
/**
* @inheritdoc
*/
public function getLabel()
{
return $this->getName() . ' <small>(' . count($this->_model->mails) . ')</small>';
}
/**
* @inheritdoc
*/
public function getDetail()
{
$searchModel = new AuditMailSearch();
$params = \Yii::$app->request->getQueryParams();
$params['AuditMailSearch']['entry_id'] = $params['id'];
$dataProvider = $searchModel->search($params);
return \Yii::$app->view->render('panels/mail/detail', [
'panel' => $this,
'dataProvider' => $dataProvider,
'searchModel' => $searchModel,
]);
}
/**
* @inheritdoc
*/
public function getIndexUrl()
{
return ['mail/index'];
}
/**
* @inheritdoc
*/
public function getChart()
{
return \Yii::$app->view->render('panels/mail/chart', [
'panel' => $this,
]);
}
/**
* @inheritdoc
*/
public function registerAssets($view)
{
GridViewAsset::register($view);
}
/**
* @inheritdoc
*/
public function cleanup($maxAge = null)
{
$maxAge = $maxAge !== null ? $maxAge : $this->maxAge;
if ($maxAge === null)
return false;
return AuditMail::deleteAll([
'<=', 'created', date('Y-m-d 23:59:59', strtotime("-$maxAge days"))
]);
}
}
|
karataserkan/yii2-audit
|
src/panels/MailPanel.php
|
PHP
|
bsd-3-clause
| 4,735
|
<?php
namespace backend\models;
use Yii;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "attachments".
*
* @property integer $id
* @property integer $user_id
* @property string $orignal_name
* @property string $manupulated_name
* @property integer $created_at
* @property integer $updated_at
*/
class Attachments extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'attachments';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['user_id', 'orignal_name', 'manupulated_name'], 'required'],
[['user_id', 'created_at', 'updated_at'], 'integer'],
[['orignal_name', 'manupulated_name'], 'string', 'max' => 255]
];
}
public function behaviors() {
return [
TimestampBehavior::className(),
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => Yii::t('app', 'ID'),
'user_id' => Yii::t('app', 'User ID'),
'orignal_name' => Yii::t('app', 'Orignal Name'),
'manupulated_name' => Yii::t('app', 'Manupulated Name'),
'created_at' => Yii::t('app', 'Created At'),
'updated_at' => Yii::t('app', 'Updated At'),
];
}
}
|
Junaid-Farid/staylance-new
|
backend/models/Attachments.php
|
PHP
|
bsd-3-clause
| 1,386
|
var classwblut_1_1geom_1_1_w_b___swizzle_1_1_x_z_y =
[
[ "swizzleSelf", "classwblut_1_1geom_1_1_w_b___swizzle_1_1_x_z_y.html#af2e3962f186209cd2f0ff04f2f029a7c", null ],
[ "xd", "classwblut_1_1geom_1_1_w_b___swizzle_1_1_x_z_y.html#a8d5c658a8bea39b4f67274776893005f", null ],
[ "xf", "classwblut_1_1geom_1_1_w_b___swizzle_1_1_x_z_y.html#ae87da1f81a42487596d2dae253090e7b", null ],
[ "yd", "classwblut_1_1geom_1_1_w_b___swizzle_1_1_x_z_y.html#acd1fe537a2fa9132a5e04a4d93bd480d", null ],
[ "yf", "classwblut_1_1geom_1_1_w_b___swizzle_1_1_x_z_y.html#aee38087663cb9738af856f9168b48920", null ],
[ "zd", "classwblut_1_1geom_1_1_w_b___swizzle_1_1_x_z_y.html#a98665092c02747ae5787ea4a2c368c37", null ],
[ "zf", "classwblut_1_1geom_1_1_w_b___swizzle_1_1_x_z_y.html#a7784563cf410e2f7bff9576e800961b4", null ]
];
|
DweebsUnited/CodeMonkey
|
resources/hemesh/ref/html/classwblut_1_1geom_1_1_w_b___swizzle_1_1_x_z_y.js
|
JavaScript
|
bsd-3-clause
| 828
|
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#include "config.h"
#include "HTMLLIElement.h"
#include "Attribute.h"
#include "CSSPropertyNames.h"
#include "CSSValueKeywords.h"
#include "EventPathWalker.h"
#include "HTMLNames.h"
#include "RenderListItem.h"
namespace WebCore {
using namespace HTMLNames;
HTMLLIElement::HTMLLIElement(const QualifiedName& tagName, Document& document)
: HTMLElement(tagName, document)
{
ASSERT(hasTagName(liTag));
setHasCustomStyleResolveCallbacks();
}
PassRefPtr<HTMLLIElement> HTMLLIElement::create(Document& document)
{
return adoptRef(new HTMLLIElement(liTag, document));
}
PassRefPtr<HTMLLIElement> HTMLLIElement::create(const QualifiedName& tagName, Document& document)
{
return adoptRef(new HTMLLIElement(tagName, document));
}
bool HTMLLIElement::isPresentationAttribute(const QualifiedName& name) const
{
if (name == typeAttr)
return true;
return HTMLElement::isPresentationAttribute(name);
}
void HTMLLIElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style)
{
if (name == typeAttr) {
if (value == "a")
addPropertyToPresentationAttributeStyle(style, CSSPropertyListStyleType, CSSValueLowerAlpha);
else if (value == "A")
addPropertyToPresentationAttributeStyle(style, CSSPropertyListStyleType, CSSValueUpperAlpha);
else if (value == "i")
addPropertyToPresentationAttributeStyle(style, CSSPropertyListStyleType, CSSValueLowerRoman);
else if (value == "I")
addPropertyToPresentationAttributeStyle(style, CSSPropertyListStyleType, CSSValueUpperRoman);
else if (value == "1")
addPropertyToPresentationAttributeStyle(style, CSSPropertyListStyleType, CSSValueDecimal);
else
addPropertyToPresentationAttributeStyle(style, CSSPropertyListStyleType, value);
} else
HTMLElement::collectStyleForPresentationAttribute(name, value, style);
}
void HTMLLIElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
{
if (name == valueAttr) {
if (renderer() && renderer()->isListItem())
parseValue(value);
} else
HTMLElement::parseAttribute(name, value);
}
void HTMLLIElement::didAttachRenderers()
{
if (!renderer() || !renderer()->isListItem())
return;
RenderListItem* listItemRenderer = toRenderListItem(renderer());
// Find the enclosing list node.
Element* listNode = 0;
Element* current = this;
while (!listNode) {
current = current->parentElement();
if (!current)
break;
if (current->hasTagName(ulTag) || current->hasTagName(olTag))
listNode = current;
}
// If we are not in a list, tell the renderer so it can position us inside.
// We don't want to change our style to say "inside" since that would affect nested nodes.
if (!listNode)
listItemRenderer->setNotInList(true);
parseValue(fastGetAttribute(valueAttr));
}
inline void HTMLLIElement::parseValue(const AtomicString& value)
{
ASSERT(renderer() && renderer()->isListItem());
bool valueOK;
int requestedValue = value.toInt(&valueOK);
if (valueOK)
toRenderListItem(renderer())->setExplicitValue(requestedValue);
else
toRenderListItem(renderer())->clearExplicitValue();
}
}
|
klim-iv/phantomjs-qt5
|
src/webkit/Source/WebCore/html/HTMLLIElement.cpp
|
C++
|
bsd-3-clause
| 4,331
|
#include "stdafx.h"
#include "AStringMap.h"
AStringMap::AStringMap(void):AObject()
{
memset( m_Data,0,sizeof(myitem*)*KSTRING_MAP_SIZE );
}
AStringMap::~AStringMap(void)
{
Clear();
}
/* A Simple Hash Function */
static unsigned int simple_hash(const ACHAR *str)
{
register unsigned int hash;
#ifdef UNICODE
ACHAR* p;
for(hash=0,p=(ACHAR *)str;*p;p++)
{
char* x = (char *)p;
hash = 31 * hash + *x;
if( *(x+1) != 0 ) hash = 31 * hash + *(x+1);
}
#else
register unsigned char *p;
for(hash = 0, p = (unsigned char *)str; *p ; p++)
hash = 31 * hash + *p;
#endif
unsigned int h = hash & 0x7FFFFFFF;
return h;
}
void AStringMap::SetItem(const AString& sKey,void* pData)
{
myitem* p = _getitem(sKey);
if( p == NULL ) p = _newitem(sKey);
p->pData = pData;
}
void* AStringMap::GetItem(const AString& sKey)
{
myitem* p = _getitem(sKey);
if( p ) return p->pData;
throw AException(_T("[StringMap.GetItem]Out of bound"));
}
AStringMap::myitem* AStringMap::_getitem(const AString& sKey)
{
unsigned int h = GetHashValue(sKey);
int index = h % KSTRING_MAP_SIZE;
myitem* next = m_Data[index];
while( next )
{
if( next->nHashValue == h ) return next;
next = next->pNext;
}
return NULL;
}
AStringMap::myitem* AStringMap::_newitem(const AString& sKey)
{
unsigned int h = GetHashValue(sKey);
int index = h % KSTRING_MAP_SIZE;
myitem* p = new myitem();
p->nHashValue = h;
p->index = index;
p->sKey = sKey;
p->pNext = NULL;
myitem* next = m_Data[index];
if( next == NULL ) m_Data[index] = p;
else
{
while(next->pNext) next = next->pNext;
next->pNext = p;
}
return p;
}
int AStringMap::GetCount()
{
int iCount = 0;
AStringMapEnumerator em(this);
while( em.Next() ) iCount ++;
return iCount;
}
void AStringMap::RemoveItem(const AString& sKey)
{
unsigned int h = GetHashValue(sKey);
int index = h % KSTRING_MAP_SIZE;
myitem* next = m_Data[index];
if( next == NULL ) return;
if( next->nHashValue == h )
{
m_Data[index] = next->pNext;
delete next;
}
else
{
while(next->pNext)
{
if( next->pNext->nHashValue == h )
{
myitem* p = next->pNext;
next->pNext = next->pNext->pNext;
delete p;
break;
}
next = next->pNext;
}
}
}
void AStringMap::Delete(myitem* p)
{
myitem* pFirst = m_Data[p->index];
myitem* next=NULL;
if( pFirst == p )
{
next = pFirst->pNext;
if( next != NULL )
{
m_Data[p->index] = next;
delete p;
}
else
{
m_Data[p->index] = NULL;
delete p;
}
}
else
{
next = pFirst;
while( next->pNext != p ) next = next->pNext;
next->pNext = p->pNext;
delete p;
}
}
bool AStringMap::IsExist(const AString& sKey)
{
return _getitem(sKey) == NULL ? false : true;
}
void AStringMap::Clear()
{
for(int i=0;i<KSTRING_MAP_SIZE;i++)
{
myitem* p = m_Data[i];
while( p )
{
m_Data[i] = p->pNext;
delete p;
p = m_Data[i];
}
}
}
AStringMap::myitem* AStringMap::Begin()
{
for(int i=0;i<KSTRING_MAP_SIZE;i++)
{
myitem* p = m_Data[i];
if( p && p->nHashValue != 0 ) return p;
}
return NULL;
}
bool AStringMap::IsEnd(AStringMap::myitem* p)
{
return ( p == NULL ? true : false );
}
AStringMap::myitem* AStringMap::Next(AStringMap::myitem* p)
{
if( p == NULL ) return NULL;
if( p->pNext != NULL ) return p->pNext;
if( p->index < KSTRING_MAP_SIZE - 1 )
{
for(int i=p->index + 1;i<KSTRING_MAP_SIZE;i++ )
{
myitem* p = m_Data[i];
if( p && p->nHashValue != 0 ) return p;
}
}
return NULL;
}
unsigned int AStringMap::GetHashValue(const AString& s)
{
unsigned int v = simple_hash(s.Text());
if( v == 0 ) v = 1;//ÌØÊâ´¦Àí
return v;
}
//====================== Enumerator ==================
AStringMapEnumerator::AStringMapEnumerator(AStringMap* pOwner):m_pOwner(pOwner)
{
m_pItem = NULL;
m_bEnd = false;
}
AStringMapEnumerator::~AStringMapEnumerator()
{
}
bool AStringMapEnumerator::Next()
{
if( !m_bEnd )
{
if( m_pItem == NULL ) m_pItem = m_pOwner->Begin();
else m_pItem = m_pOwner->Next(m_pItem);
m_bEnd = m_pOwner->IsEnd(m_pItem);
}
return !m_bEnd;
}
void* AStringMapEnumerator::Cur()
{
if( m_pItem == NULL ) return NULL;//throw ?
else return m_pItem->pData;
}
AString AStringMapEnumerator::Index()
{
AString s;
if( m_pItem) return m_pItem->sKey;
return s;
}
|
emuikernel/BaijieCppUILib
|
AFC/src/AStringMap.cpp
|
C++
|
bsd-3-clause
| 4,262
|
<?php
/**
* This is the model class for table "tbl_lookup".
*
* The followings are the available columns in table 'tbl_lookup':
* @property integer $id
* @property string $name
* @property integer $code
* @property string $type
* @property integer $position
*/
class Lookup extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return Lookup the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
/**
* @return string the associated database table name
*/
public function tableName()
{
return 'tbl_lookup';
}
/**
* @return array validation rules for model attributes.
*/
public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('name, code, type, position', 'required'),
array('code, position', 'numerical', 'integerOnly'=>true),
array('name, type', 'length', 'max'=>128),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('id, name, code, type, position', 'safe', 'on'=>'search'),
);
}
/**
* @return array relational rules.
*/
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
);
}
/**
* @return array customized attribute labels (name=>label)
*/
public function attributeLabels()
{
return array(
'id' => 'ID',
'name' => 'Name',
'code' => 'Code',
'type' => 'Type',
'position' => 'Position',
);
}
private static $_items=array();
public static function items($type)
{
if(!isset(self::$_items[$type]))
self::loadItems($type);
return self::$_items[$type];
}
public static function item($type,$code)
{
if(!isset(self::$_items[$type]))
self::loadItems($type);
return isset(self::$_items[$type][$code]) ? self::$_items[$type][$code] : false;
}
private static function loadItems($type)
{
self::$_items[$type]=array();
$models=self::model()->findAll(array(
'condition'=>'type=:type',
'params'=>array(':type'=>$type),
'order'=>'position',
));
foreach($models as $model)
self::$_items[$type][$model->code]=$model->name;
}
/**
* Retrieves a list of models based on the current search/filter conditions.
* @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
*/
public function search()
{
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria=new CDbCriteria;
$criteria->compare('id',$this->id);
$criteria->compare('name',$this->name,true);
$criteria->compare('code',$this->code);
$criteria->compare('type',$this->type,true);
$criteria->compare('position',$this->position);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
}
|
baoweikai/yueyoo
|
adminprotected/models/Lookup.php
|
PHP
|
bsd-3-clause
| 3,196
|
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.
See LICENSE.txt or http://www.mitk.org for details.
===================================================================*/
#ifndef __itkMrtrixPeakImageConverter_cpp
#define __itkMrtrixPeakImageConverter_cpp
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include "itkMrtrixPeakImageConverter.h"
#include <itkImageRegionConstIterator.h>
#include <itkImageRegionConstIteratorWithIndex.h>
#include <itkImageRegionIterator.h>
#include <itkContinuousIndex.h>
#include <vtkSmartPointer.h>
#include <vtkPolyData.h>
#include <vtkCellArray.h>
#include <vtkPoints.h>
#include <vtkPolyLine.h>
namespace itk {
template< class PixelType >
MrtrixPeakImageConverter< PixelType >::MrtrixPeakImageConverter():
m_NormalizationMethod(NO_NORM)
, m_InvertX(false)
, m_InvertY(false)
, m_InvertZ(false)
{
}
template< class PixelType >
void MrtrixPeakImageConverter< PixelType >
::GenerateData()
{
// output vector field
vtkSmartPointer<vtkCellArray> m_VtkCellArray = vtkSmartPointer<vtkCellArray>::New();
vtkSmartPointer<vtkPoints> m_VtkPoints = vtkSmartPointer<vtkPoints>::New();
Vector<float, 4> spacing4 = m_InputImage->GetSpacing();
Point<float, 4> origin4 = m_InputImage->GetOrigin();
Matrix<double, 4, 4> direction4 = m_InputImage->GetDirection();
ImageRegion<4> imageRegion4 = m_InputImage->GetLargestPossibleRegion();
Vector<double, 3> spacing3;
Point<float, 3> origin3;
Matrix<double, 3, 3> direction3;
ImageRegion<3> imageRegion3;
spacing3[0] = spacing4[0]; spacing3[1] = spacing4[1]; spacing3[2] = spacing4[2];
origin3[0] = origin4[0]; origin3[1] = origin4[1]; origin3[2] = origin4[2];
for (int r=0; r<3; r++)
for (int c=0; c<3; c++)
direction3[r][c] = direction4[r][c];
imageRegion3.SetSize(0, imageRegion4.GetSize()[0]);
imageRegion3.SetSize(1, imageRegion4.GetSize()[1]);
imageRegion3.SetSize(2, imageRegion4.GetSize()[2]);
double minSpacing = spacing3[0];
if (spacing3[1]<minSpacing)
minSpacing = spacing3[1];
if (spacing3[2]<minSpacing)
minSpacing = spacing3[2];
m_DirectionImageContainer = DirectionImageContainerType::New();
typedef ImageRegionConstIterator< InputImageType > InputIteratorType;
int x = m_InputImage->GetLargestPossibleRegion().GetSize(0);
int y = m_InputImage->GetLargestPossibleRegion().GetSize(1);
int z = m_InputImage->GetLargestPossibleRegion().GetSize(2);
int numDirs = m_InputImage->GetLargestPossibleRegion().GetSize(3)/3;
m_NumDirectionsImage = ItkUcharImgType::New();
m_NumDirectionsImage->SetSpacing( spacing3 );
m_NumDirectionsImage->SetOrigin( origin3 );
m_NumDirectionsImage->SetDirection( direction3 );
m_NumDirectionsImage->SetRegions( imageRegion3 );
m_NumDirectionsImage->Allocate();
m_NumDirectionsImage->FillBuffer(0);
for (int i=0; i<numDirs; i++)
{
ItkDirectionImageType::Pointer directionImage = ItkDirectionImageType::New();
directionImage->SetSpacing( spacing3 );
directionImage->SetOrigin( origin3 );
directionImage->SetDirection( direction3 );
directionImage->SetRegions( imageRegion3 );
directionImage->Allocate();
Vector< PixelType, 3 > nullVec; nullVec.Fill(0.0);
directionImage->FillBuffer(nullVec);
m_DirectionImageContainer->InsertElement(m_DirectionImageContainer->Size(), directionImage);
}
double minangle = 0;
for (int i=0; i<numDirs; i++)
{
for (int a=0; a<x; a++)
for (int b=0; b<y; b++)
for (int c=0; c<z; c++)
{
// generate vector field
typename InputImageType::IndexType index;
index.SetElement(0,a);
index.SetElement(1,b);
index.SetElement(2,c);
vnl_vector<double> dirVec; dirVec.set_size(4);
for (int k=0; k<3; k++)
{
index.SetElement(3,k+i*3);
dirVec[k] = m_InputImage->GetPixel(index);
}
dirVec[3] = 0;
if (dirVec.magnitude()<0.0001)
continue;
vtkSmartPointer<vtkPolyLine> container = vtkSmartPointer<vtkPolyLine>::New();
itk::ContinuousIndex<double, 4> center;
center[0] = index[0];
center[1] = index[1];
center[2] = index[2];
center[3] = 0;
itk::Point<double, 4> worldCenter;
m_InputImage->TransformContinuousIndexToPhysicalPoint( center, worldCenter );
switch (m_NormalizationMethod)
{
case NO_NORM:
break;
case SINGLE_VEC_NORM:
dirVec.normalize();
break;
}
dirVec.normalize();
dirVec = m_InputImage->GetDirection()*dirVec;
if (m_InvertX)
dirVec[0] *= -1;
if (m_InvertY)
dirVec[1] *= -1;
if (m_InvertZ)
dirVec[2] *= -1;
itk::Point<double> worldStart;
worldStart[0] = worldCenter[0]-dirVec[0]/2 * minSpacing;
worldStart[1] = worldCenter[1]-dirVec[1]/2 * minSpacing;
worldStart[2] = worldCenter[2]-dirVec[2]/2 * minSpacing;
vtkIdType id = m_VtkPoints->InsertNextPoint(worldStart.GetDataPointer());
container->GetPointIds()->InsertNextId(id);
itk::Point<double> worldEnd;
worldEnd[0] = worldCenter[0]+dirVec[0]/2 * minSpacing;
worldEnd[1] = worldCenter[1]+dirVec[1]/2 * minSpacing;
worldEnd[2] = worldCenter[2]+dirVec[2]/2 * minSpacing;
id = m_VtkPoints->InsertNextPoint(worldEnd.GetDataPointer());
container->GetPointIds()->InsertNextId(id);
m_VtkCellArray->InsertNextCell(container);
// generate direction image
typename ItkDirectionImageType::IndexType index2;
index2[0] = a; index2[1] = b; index2[2] = c;
// workaround *********************************************
dirVec = m_InputImage->GetDirection()*dirVec;
dirVec.normalize();
// workaround *********************************************
Vector< PixelType, 3 > pixel;
pixel.SetElement(0, dirVec[0]);
pixel.SetElement(1, dirVec[1]);
pixel.SetElement(2, dirVec[2]);
for (int j=0; j<numDirs; j++)
{
ItkDirectionImageType::Pointer directionImage = m_DirectionImageContainer->ElementAt(j);
Vector< PixelType, 3 > tempPix = directionImage->GetPixel(index2);
if (tempPix.GetNorm()<0.01)
{
directionImage->SetPixel(index2, pixel);
break;
}
else
{
if ( fabs(dot_product(tempPix.GetVnlVector(), pixel.GetVnlVector()))>minangle )
{
minangle = fabs(dot_product(tempPix.GetVnlVector(), pixel.GetVnlVector()));
MITK_INFO << "Minimum angle: " << acos(minangle)*180.0/M_PI;
}
}
}
m_NumDirectionsImage->SetPixel(index2, m_NumDirectionsImage->GetPixel(index2)+1);
}
}
vtkSmartPointer<vtkPolyData> directionsPolyData = vtkSmartPointer<vtkPolyData>::New();
directionsPolyData->SetPoints(m_VtkPoints);
directionsPolyData->SetLines(m_VtkCellArray);
m_OutputFiberBundle = mitk::FiberBundle::New(directionsPolyData);
}
}
#endif // __itkMrtrixPeakImageConverter_cpp
|
RabadanLab/MITKats
|
Modules/DiffusionImaging/DiffusionCore/include/Algorithms/itkMrtrixPeakImageConverter.cpp
|
C++
|
bsd-3-clause
| 8,690
|
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\DeputySearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="deputy-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'id') ?>
<?= $form->field($model, 'fullname') ?>
<?= $form->field($model, 'party') ?>
<?= $form->field($model, 'content') ?>
<?= $form->field($model, 'image') ?>
<?php // echo $form->field($model, 'content_ru') ?>
<?php // echo $form->field($model, 'phone') ?>
<?php // echo $form->field($model, 'email') ?>
<?php // echo $form->field($model, 'address') ?>
<?php // echo $form->field($model, 'views') ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
|
temirfe/oshkenesh
|
views/deputy/_search.php
|
PHP
|
bsd-3-clause
| 1,051
|
/*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2014, The University of Texas
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of The University of Texas nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
void bli_addsc_unb_var1( obj_t* chi,
obj_t* psi );
#undef GENTPROT2
#define GENTPROT2( ctype_x, ctype_y, chx, chy, opname ) \
\
void PASTEMAC2(chx,chy,opname)( \
conj_t conjchi, \
void* chi, \
void* psi \
);
INSERT_GENTPROT2_BASIC( addsc_unb_var1 )
#ifdef BLIS_ENABLE_MIXED_DOMAIN_SUPPORT
INSERT_GENTPROT2_MIX_D( addsc_unb_var1 )
#endif
#ifdef BLIS_ENABLE_MIXED_PRECISION_SUPPORT
INSERT_GENTPROT2_MIX_P( addsc_unb_var1 )
#endif
|
audiofilter/blis
|
frame/0/addsc/bli_addsc_unb_var1.h
|
C
|
bsd-3-clause
| 2,255
|
# Copyright (c) 2007-2008, Paul Saieg
# All rights reserved.
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of the Paul Saieg nor 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.
module EasyRoleRequirementSystem
def self.included(klass)
super
klass.extend ClassMethods
klass.enforce_permissions
def klass.inherited(sub_klass)
super
sub_klass.reset_role_requirements!
sub_klass.enforce_permissions
end
end
module InstanceMethods
def included(klass)
raise "Include RoleRequirementSystem first BEFORE including EasyRoleRequirementSystem." unless klass.included_modules.include?(RoleRequirementSystem)
end
end
include InstanceMethods
module ClassMethods
def role_permissions_file_path
@role_permissions_file_path ||= "#{Rails.root}/config/spree_permissions.yml"
end
def has_role_requirements?
self.role_requirements && self.role_requirements != [] ? true : false
end
# calls RoleRequirementSystem::require_role for every permission set in the
# config file for the current controller
def enforce_permissions
controller_permissions.each do |permission|
all_parameters = []
permission.each do |p|
check_format(p)
parameter = {}
parameter[:roles] = add_roles(p)
parameter[:options] = (reformat_options(p[:options]) if p[:options]) || {}
all_parameters << parameter
end
all_parameters.each{|param| self.require_role(param[:roles], param[:options]) \
if param[:roles]}
end
end
private
# walks up the class ancestry to find the nearest defined role_requirements.
# returns those requirements or {}
def inherited_permissions(klass = self)
super_class = klass.superclass
if super_class.respond_to?(:has_role_requirements?) &&
super_class.has_role_requirements?
{'permission00' => super_class.role_requirements.last}
elsif super_class.respond_to?(:has_role_requirements?)
inherited_permissions(super_class)
else
{}
end
end
def check_format(permission)
legal_keys = [:role, :roles, :options]
illegal_keys = permission.reject {|key, val| legal_keys.include?(key)}
raise "Improperly formatted permission #{permission.inspect}. The following keys are illegal: #{illegal_keys.inspect}" if illegal_keys != {}
end
# Enforces permission formatting, gets permissions for controller. If none are
# defined, it gets them from the controller's nearest parent who has them defined.
# this gives the illusion of inherited permissions
def controller_permissions
permissions = []
permission_format = /permission\d+/
@permissions = all_permissions[self.to_s] || inherited_permissions
@permissions.each_pair do |key, value|
value = symbolize_keys(value)
if key =~ permission_format && (value.has_key?(:roles) || value.has_key?(:role))
permissions.push([value])
else
raise "Incorrectly formatted permission: #{{key => value}.inspect}. Permission line must match #{permission_format.inspect}. Permission also must contain one 'role:' or 'roles:' node."
end
end
permissions
end
def symbolize_keys(hash)
rehash = {}
hash.each_pair {|key, value| rehash[key.to_sym] = value}
rehash
end
# sets permissions for class from the permissions file (if it is mentioned ther)
# or from default if it is not. The default is no restrictions at all.
def all_permissions
@permissions_file ||= load_permissions_file
@permissions_file.has_key?(self.to_s) ? @permissions_file : no_permissions
end
# raises an error if permissions file is not loaded or child nodes got deleted
# during YAML serialization
def load_permissions_file
begin
permissions_file = YAML.load_file(role_permissions_file_path)
# raise unless permissions_file && yaml_loaded_correctly(permissions_file)
rescue
raise "#{__FILE__ }: #{__LINE__}: in 'all_permissions': YAML Could not load role pemissions file at '#{role_permissions_file_path}', check the file location and YAML formatting. Duplicate YAML nodes may have been deleted during serialization."
end
#load_extension_permissions_files(permissions_file)
end
def merge_permissions_files(permissions_file, new_permissions_file)
new_permissions_file.keys.each{|pf_key|
if permissions_file.has_key?(pf_key)
new_permissions_file[pf_key].keys.each{|p_key|
permissions_file[pf_key][p_key] = new_permissions_file[pf_key][p_key]
}
else
permissions_file[pf_key] = new_permissions_file[pf_key]
end
}
end
# make sure nothing is deleted in serialization
def yaml_loaded_correctly(permissions_file)
# scans a raw dump of the YAML file for entered values
number_of_value_nodes_in_file =
YAML.dump(YAML.parse_file(role_permissions_file_path)).scan(/\s*value:\s*\w/).length
# scans an inspect string of the hash for entered values, each value is "quoted".
number_of_value_nodes_in_hash =
permissions_file.inspect.scan(/"/).length / 2
number_of_value_nodes_in_hash == number_of_value_nodes_in_file
end
# default no permissions YAML doc
def no_permissions
no_permissions_doc = <<-YAML_END
NoControllerHere:
permission0:
roles:
options:
YAML_END
YAML.load(no_permissions_doc)
end
# Allows for either "roles:" or "role:" syntax in config file
def add_roles(permission)
roles = []
role_key = has_role_node(permission)
if role_key == :role
permission[:roles] = permission[role_key].dup
permission.delete role_key
role_key = :roles
end
if permission[role_key].is_a?(Array)
permission[role_key].each do |role|
role = fix_comma_errors(role)
role.each {|r| roles << r}
end
else
fix_comma_errors(permission[role_key]).each do |other_role|
other_role.each {|r| roles << r}
end
end
result = roles.compact
(result != [] && result != [{}]) ? result : nil
end
# YAML interperts [admin,user] as ["admin,user"]. This corrects YAMLs default
# behaviour by changing ["admin,user"] to ["admin","user"]
def fix_comma_errors(field)
field.is_a?(Array) ? field.map {|f| split_fields(f)} : split_fields(field)
end
def split_fields(field)
field = field.to_s.gsub(/\s+?/, '')
field.include?(',') ? symbolize_values(field.split(',')) : symbolize_values([field])
end
def symbolize_values(array)
array.map {|val| val.to_s.to_sym}
end
# Tells us whether the permissions defines a 'roles:' or 'role:' node.
# returns first encountered node (always 'roles' before'role') - never both.
def has_role_node(permission)
roles = [:roles,:role].map {|key| key if permission.has_key?(key)}.compact
case
when roles.length == 1 then roles[0]
else
raise "Improper Role Configuration: Permission has more than one role/roles node (nodes are #{roles.inspect}. Choose 'role' if there is one value, and 'roles' for an array of values. Change this in your config file at #{role_permissions_file_path})"
end
end
# Transforms YAML hash formatting into correct format for require_role.
# Also, enforces correct values for the 'options:' node.
def reformat_options(hash)
rehash = {}
options = [['if', 'unless'], ['only', 'except', 'for', 'for_all_except']]
hash.each_pair do |key, val|
case
when options[0].include?(key.to_s.downcase) then rehash[key.to_sym] = val.to_s
when options[1].include?(key.to_s.downcase) then rehash[key.to_sym] =
reformat_value(val)
else
raise "Unknown Option: #{key}, options are: #{options.flatten.inspect}"
end
end
rehash
end
def reformat_value(value)
value.is_a?(Array) ? value.map{|val| val.to_s} : value.to_s
end
end
end
|
preston-scott/spree
|
core/lib/spree_core/easy_role_requirement_system.rb
|
Ruby
|
bsd-3-clause
| 9,635
|
<!-- bindinator.js Copyright ©2016-2017 Tonio Loewald -->
<style>
body {
font-family: Helvetica, Sans-serif;
font-size: 14px;
}
h2, p, ul, li {
margin: 0;
padding: 0;
}
.test_widgets {
display: flex;
}
.test_widgets > div {
flex-grow: 1;
padding: 8px;
}
.success {
background-color: #bfb;
}
.failure {
background-color: #ffa;
}
.report p {
padding: 2px;
margin: 0;
border-bottom: 1px solid rgba(0,0,0,0.2);
}
[data-bind] {
display: block;
}
input[type=radio] {
display: inline-block;
}
[data-list] {
display: none;
}
</style>
<body>
<h2>b8r Tests</h2>
<div class="test_widgets">
<div>
<span id="a" data-bind="text=test1.base;style(color)=test1.color">A</span>
<span id="c" data-bind="text=test1.sub.list[2]">A</span>
<span id="d" data-bind="text=test1.list[0].y">A</span>
<span id="b" data-bind="text=test1.sub.prop;style(color)=test2.color">A</span>
<input id="e" data-bind="value=test1.sub.list[2];attr(type)=test1.type">
<input id="f" data-bind="value=test1.sub.list[2]">
<h3>Complex Lists</h3>
<div id="complex-lists">
<div data-list="test1.sort(nested_list):id">
<h3 data-bind="text=.name"></h3>
<div class="child" data-list="test1.sort(.children):name" data-bind="text=.name"></div>
</div>
</div>
<h3>Interpolated Strings</h3>
<div id="intepolated-1" data-bind="text=hello ${test1.complex_list[id=-3].foo.bar}!"></div>
<div id="intepolated-2" data-bind="text=hello ${test1.complex_list[id=${test1.buried.id}].foo.bar}!"></div>
</div>
<div>
<select data-bind="value=test1.option">
<option>ONE</option>
<option>two</option>
<option>3</option>
</select>
<span id="g" data-bind="text=test1.option">A</span>
<input data-bind="checked=test1.checkbox" type="checkbox" checked>
<span id="h" data-bind="text=test1.checkbox">A</span>
</div>
<div>
<label>
<input data-bind="value=test1.list[0].y"> Test list-bound values
</label>
<ul>
<li data-list="test1.list:_auto_">
<span style="display: inline" data-bind="text=.x">x</span>, <input style="display: inline" data-bind="value=.y">
</li>
</ul>
<label>
<input type="radio" name="group" value="first" data-bind="value=test1.radio">
first
</label>
<label>
<input type="radio" name="group" value="second" data-bind="value=test1.radio">
second
</label>
<label>
<input type="radio" name="group" value="third" data-bind="value=test1.radio">
third
</label>
<span data-bind="text=test1.radio"></span>
<h4>Computed List</h4>
<div data-list="computedList.oddOnly(computedList.list)" data-bind="text=.value"></div>
<h4>Complex Bindings</h4>
<ul id="complex-list">
<li data-list="test1.complex_list:id"><span data-component="show-bar" data-path=".foo"></span></li>
</ul>
<div id="indirect-bind" data-component="show-bar" data-bind="data_path=test1.bind_path"></div>
</div>
<div data-component="test">
<p>First Child</p>
<p>Second Child</p>
<ul>
<li class="bad-list" data-list="test1.id_list:id" data-bind="text=.label"></li>
</ul>
<ul>
<li class="obj-list" data-list="test1.obj_list" data-bind="text=.label"></li>
</ul>
</div>
<div id="method_binding" data-bind="method(method_binding.test),fromMethod(method_binding.test)=method_binding.val"></div>
</div>
<div class="report"></div>
<script type="module">
import b8r from './source/b8r.js';
import Test from './lib/test.js';
import {getByPath, setByPath} from './source/b8r.byPath.js';
Test.setReportContainer(b8r.findOne('.report'));
/*
Test(() => 2).shouldBe(2);
Test(() => 2).shouldBe(1);
*/
var obj = {
base: 17,
buried: { id: -3 },
sub: {
list: [1,2,3],
prop: 'hello'
},
list: [
{x: 10, y: 11},
{x: 12, y: 13},
{x: 'y=z', y: Math.PI}
],
complex_list: [
{id: -3, foo: {bar: 'baz'}},
{id: 42, foo: {bar: 'lurman'}},
],
color: 'red',
type: 'range',
nested_list: [
[4,5,6],
[7,8,9]
],
id_list: [{id: 'A', label: 'A'}, {id: 'B', label: 'B'}, {id: 'C', label: 'C'}, {id: 'A', label: 'bogus A'}],
obj_list: {
a: {label: 'object.a'},
b: {label: 'object.b'},
c: {label: 'object.c'},
},
option: '3',
checkbox: true,
radio: 'second',
bind_path: 'test1.complex_list[id=-3].foo',
};
const computedList = {
oddOnly: (list) => list.filter(item => item.value % 2),
list: [{value: 1}, {value: 2}, {value: 3}]
}
b8r.makeComponent('show-bar', `<span data-bind="text=_data_.bar">xxx</span>`, 'testy');
Test(() => getByPath(obj, '')).shouldBe(obj);
Test(() => getByPath(obj, '/')).shouldBe(obj);
Test(() => getByPath(obj, 'base')).shouldBe(obj.base);
Test(() => getByPath(obj, 'sub.prop')).shouldBe(obj.sub.prop);
Test(() => getByPath(obj, 'sub.list')).shouldBe(obj.sub.list);
Test(() => getByPath(obj, 'sub.list[1]')).shouldBe(obj.sub.list[1]);
Test(() => getByPath(obj, 'list[1].x')).shouldBe(obj.list[1].x);
Test(() => getByPath(obj, 'nested_list[1][1]')).shouldBe(obj.nested_list[1][1]);
Test(() => getByPath(obj, 'list[x=12]')).shouldBe(obj.list[1]);
Test(() => getByPath(obj, 'list[x=y=z]')).shouldBe(obj.list[2]);
setByPath(obj, 'base', 42);
setByPath(obj, 'kettle.black', 11);
b8r.forceUpdate();
Test(() => getByPath(obj, 'base')).shouldBe(obj.base);
Test(() => getByPath(obj, 'kettle.black')).shouldBe(obj.kettle.black);
setByPath(obj, 'sub.list[2]', 25);
b8r.forceUpdate();
Test(() => getByPath(obj, 'sub.list[2]')).shouldBe(obj.sub.list[2]);
// binding (to), data mounting
b8r.register('test1', obj);
b8r.forceUpdate();
Test(() => b8r.id('a').textContent).shouldBe('42');
Test(() => b8r.id('b').textContent).shouldBe('hello');
Test(() => b8r.id('c').textContent).shouldBe(obj.sub.list[2] + '');
Test(() => b8r.id('d').textContent).shouldBe('11');
Test(() => b8r.id('e').value).shouldBe(obj.sub.list[2] + '');
Test(() => b8r.id('a').style.color).shouldBe('red');
Test(() => b8r.id('e').getAttribute('type')).shouldBe('range');
Test(() => b8r.id('complex-list').querySelectorAll('li')[1].textContent, 'explicitly setting data-path for component').shouldBe('lurman');
Test(() => b8r.id('indirect-bind').textContent, 'indirect binding via data_path toTarget').shouldBe('baz');
// interpolated strings
Test(() => b8r.id('intepolated-1').textContent, 'interpolated RHS value').shouldBe('hello baz!');
Test(() => b8r.id('intepolated-2').textContent, 'nested interpolated RHS value').shouldBe('hello baz!');
b8r.set('test1.buried.id', 42);
b8r.forceUpdate();
Test(() => b8r.id('intepolated-2').textContent, 'dynamically updated nested interpolated RHS value').shouldBe('hello lurman!');
b8r.register('test2', {color: 'green'});
b8r.forceUpdate();
Test(() => b8r.id('b').style.color).shouldBe('green');
Test(() => b8r.findOne('[data-list-instance="test1.list[_auto_=2]"] span').textContent).shouldBe('12');
// binding (from)
b8r.findOne('input').value = 55;
Test.trigger('input', b8r.findOne('input'));
b8r.forceUpdate();
Test(() => b8r.id('e').value)
.shouldBe(obj.sub.list[2] + '');
Test(() => b8r.id('c').textContent)
.shouldBe(obj.sub.list[2] + '');
b8r.setByPath('test2', 'color', 'purple');
b8r.forceUpdate();
Test(() => b8r.id('b').style.color).shouldBe('purple');
b8r.findOne('select').value = 'two';
Test.trigger('change', 'select');
Test(() => obj.option).shouldBe('two');
b8r.findOne('[type=checkbox]').checked = false;
Test.trigger('input', '[type=checkbox]');
Test(() => obj.checkbox).shouldBe(false);
// verify type-matching
obj.checkbox = false;
b8r.findOne('[type=checkbox]').checked = true;
Test.trigger('input', '[type=checkbox]');
Test(() => obj.checkbox).shouldBe(true);
b8r.findOne('[type=radio][value=first]').checked = true;
Test.trigger('change', '[type=radio][value=first]');
Test(() => obj.radio).shouldBe('first');
// ajax methods
b8r.ajax('test/test.txt', 'GET').then(ajax_data => Test(() => ajax_data).shouldBe('esteban'));
{
var failures = 0;
b8r.ajax('test/does-not-exist.txt', 'GET')
.then(() => {}, () => failures++)
.then(() => Test(() => failures).shouldBe(1));
}
b8r.json('test/test.json', 'GET')
.then(data => Test(() => data.bar.baz[1].foo).shouldBe('BAZ'));
{
// loads malformed response, should reject with error
let failures = 0;
b8r.json('test/malformed.json', 'GET')
.then(() => {}, () => failures++)
.then(() => Test(() => failures).shouldBe(1));
}
{
// loads empty response, resolves with valid JSON "null" string
let failures = 0;
b8r.json('test/empty.json', 'GET')
.then(() => {}, () => failures++)
.then(() => Test(() => failures).shouldBe(0));
}
// method to and from targets
b8r.register('method_binding', {
test: (elt, value) => {
if (value) {
const [first,second] = value.split(',');
elt.setAttribute('first', first);
elt.setAttribute('second', second);
} else {
return elt.getAttribute('first') + ',' + elt.getAttribute('second');
}
},
val: 'A,B',
});
const elt = b8r.id('method_binding');
b8r.forceUpdate();
Test(() => elt.getAttribute('first')).shouldBe('A');
b8r.setByPath('method_binding', 'val', 'C,D');
b8r.forceUpdate();
Test(() => elt.getAttribute('second')).shouldBe('D');
elt.setAttribute('second', 'Q');
b8r.trigger('change', elt);
Test(() => b8r.getByPath('method_binding', 'val')).shouldBe('C,Q');
function computed_color(name) {
var p = b8r.create(p);
p.style.color = name;
p.style.display = 'none';
document.body.appendChild(p);
var computed = window.getComputedStyle(p).color;
document.body.removeChild(p);
return computed;
}
// async updates
b8r.set('test1.base', 86);
Test(() => b8r.id('a').textContent, 'Async Update is actually asynchronous').shouldNotBe('86');
b8r.forceUpdate();
Test(() => b8r.id('a').textContent, 'Async Update afterUpdate').shouldBe('86');
b8r.register('empty_obj', {});
b8r.set('empty_obj.array[id=5]', {id: 5, name: 'fred'});
b8r.set('empty_obj.array[3]', {id:17, name: 'bloggs'});
b8r.set('empty_obj.x.y', {id: 5, name: 'fred'});
Test(() => b8r.get('empty_obj.array[0].name'), 'automatic array insertion by id path').shouldBe('fred');
Test(() => b8r.get('empty_obj.array[id=17].name'), 'array insertion by index').shouldBe('bloggs');
Test(() => b8r.get('empty_obj.x.y.id'), 'object insertion by path').shouldBe(5);
// components
b8r.component('test', 'test/test')
.then(() => {
b8r.forceUpdate();
Test(() => b8r.findOne('.test-component p').textContent, 'Component loaded')
.shouldBe('This is a test');
Test(() => b8r.findOne('.test-component input').value, 'Component bound')
.shouldBe('55');
Test(() => window.getComputedStyle(b8r.findOne('.test-component > h2')).backgroundColor, 'Component stylesheet inserted')
.shouldBe(computed_color('purple'));
Test(() => window.getComputedStyle(b8r.findOne('h2')).backgroundColor, 'Component stylesheet did not "leak"')
.shouldBe(window.getComputedStyle(document.body).backgroundColor);
Test(() => b8r.findOne('.test-component h2').textContent, 'Component script ran')
.shouldBe('Set on load');
Test(() => b8r.find('.test-component [data-children] p').length, 'Component received children')
.shouldBe(2);
Test(() => b8r.find('.bad-list[data-list-instance]').length).shouldBe(3);
});
// complex lists
b8r.set('test1.sort', list => {
return list.sort((a, b) => b8r.sortAscending(a.name, b.name));
});
b8r.register('nested_list', [
{
id: 1,
name: 'Tolkien',
children: [
{name: 'Gollum'},
{name: 'Frodo'},
{name: 'Aragorn'},
],
},
{
id: 2,
name: 'Bradley',
children: [
{name: 'Melora'},
{name: 'Romilly'},
{name: 'Jaelle'},
],
},
{
id: 3,
name: 'Vance',
children: [
{name: 'Murgen'},
{name: 'Tamurello'},
{name: 'Desmei'},
],
},
]);
b8r.forceUpdate();
Test(() => b8r.find('#complex-lists h3')[2].textContent, 'computed list binding').
shouldBe('Vance');
Test(() => b8r.find('#complex-lists .child[data-list-instance]', 'computed nested list binding')[4].textContent).
shouldBe('Frodo');
b8r.forceUpdate();
b8r.set('nested_list[id=1].name', 'John Ronald Reuel Tolkien');
b8r.push('nested_list[id=1].children', {name: 'Elrond'});
b8r.set('nested_list[id=2].name', 'Marion Zimmer Bradley');
b8r.set('nested_list[id=3].name', 'Jack Vance');
b8r.touch('nested_list');
b8r.forceUpdate();
Test(() => b8r.find('#complex-lists h3')[2].textContent, 'computed list update').
shouldBe('Marion Zimmer Bradley');
Test(() => b8r.find('#complex-lists .child[data-list-instance]', 'computed nested list update')[4].textContent).
shouldBe('Elrond');
Test(() => {
b8r.register('computedList', computedList)
b8r.forceUpdate()
return b8r.find('[data-list-instance*="computedList"]').length
}).shouldBe(0);
Test(async () => {
const listTemplate = b8r.findOne('[data-list="computedList.oddOnly(computedList.list)"]')
listTemplate.dataset.list += ':_auto_'
b8r.touchElement(listTemplate)
b8r.forceUpdate()
return b8r.find('[data-list-instance*="computedList"]').length
}).shouldBe(2);
</script>
</body>
|
tonioloewald/Bind-O-Matic.js
|
tests.html
|
HTML
|
bsd-3-clause
| 14,428
|
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = Yii::t('app', 'Вход');
$this->params['breadcrumbs'][] = $this->title;
$this->registerMetaTag(['name' => 'description', 'content' => $this->title]);
?>
<div class="site-login">
<div class="sign-form">
<h1 class="headline first-child text-color"><?= Html::encode($this->title) ?></h1>
<p><?=Yii::t('app', 'Пожалуйста, заполните следующие поля для входа')?>:</p>
<div class="row">
<div class="col-lg-5">
<?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
<?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?>
<?= $form->field($model, 'password')->passwordInput() ?>
<?= $form->field($model, 'rememberMe')->checkbox() ?>
<?php if($errorLogin){ ?>
<?= $form->field($model, 'verifyCode')->widget(
\common\recaptcha\ReCaptcha::className(),
['siteKey' => \common\recaptcha\ReCaptcha::SITE_KEY]
) ?>
<?php } ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('app', 'Войти'), ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
</div>
<?php ActiveForm::end(); ?>
<a href="<?=\yii\helpers\Url::toRoute(['site/requestpasswordreset'])?>" title="<?=Html::encode(Yii::t('app', 'Забыли пароль?'))?>"><?=Yii::t('app', 'Забыли пароль?')?></a>
</div>
</div>
</div>
</div>
|
comaw/stomat
|
frontend/views/site/login.php
|
PHP
|
bsd-3-clause
| 1,824
|
Spree::OptionType.class_eval do
has_many :taxon_option_types, dependent: :destroy, inverse_of: :option_type
has_many :taxons, through: :taxon_option_types
end
|
gsix/spree_filter_products
|
app/models/spree/option_type_decorator.rb
|
Ruby
|
bsd-3-clause
| 167
|
Ext.define("W2B.view.mis.costcenter.digitequip.DigitalMainParamsView", {
extend: 'Ext.panel.Panel',
xtype: 'digitmainparams',
controller: 'digitalview',
viewModel: {
type: 'missystem'
},
bodyPadding: 5,
layout: 'anchor',
defaults: {
anchor: '100%',
labelWidth: 250
},
items: [
{
xtype: 'textfield',
name: 'name',
allowBlank: false,
fieldLabel: 'Наименование',
},
{
xtype: "textarea",
name: 'stripname',
fieldLabel: 'Краткое описание',
},
{
xtype: 'textfield',
name: 'result',
fieldLabel: 'Описание результата',
},
{
xtype: 'textfield',
name: 'idOEM',
fieldLabel: 'ID OEM устройства',
},
{
xtype: 'textfield',
name: 'expenses',
fieldLabel: 'Центр затрат',
allowBlank: false
},
{
xtype: "checkbox",
name: "integration",
inputValue: true,
uncheckedValue: false,
fieldLabel: 'Интегрированное устройство',
},
{
xtype: 'radiogroup',
fieldLabel: 'Тип принтера',
vertical: true,
columns: 1,
items: [
{
boxLabel: 'Ч/б',
name: 'printType',
inputValue: 'black',
checked: true
},
{
boxLabel: 'Цветной',
name: 'printType',
inputValue: 'color',
},
{
boxLabel: 'Большой формат',
name: 'printType',
inputValue: 'big',
},
]
},
{
xtype: 'combobox',
name: 'digit_method',
fieldLabel: 'Метод',
editable: false,
queryMode: 'local'
},
{
xtype: 'combobox',
name: "digit_catprodaj",
fieldLabel: 'Кат. продаж',
editable: false,
queryMode: 'local'
},
{
xtype: 'radiogroup',
vertical: true,
fieldLabel: 'Бумага',
columns: 1,
items: [
{
boxLabel: 'Листы (листовая печать)',
name: 'paperType',
inputValue: 'sheet',
checked: true
},
{
boxLabel: 'Рулоны (рулонная)',
name: 'paperType',
inputValue: 'roll',
}
]
}
]
});
|
killer-djon/dev-v2.web2book.ru
|
public/web2book/app/view/mis/costcenter/digitequip/DigitalMainParamsView.js
|
JavaScript
|
bsd-3-clause
| 2,118
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
#include "ash/desktop_background/desktop_background_controller.h"
#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/chromeos/extensions/wallpaper_function_base.h"
#include "chrome/browser/chromeos/login/user.h"
#include "net/url_request/url_fetcher_delegate.h"
namespace chromeos {
class UserImage;
}
// Wallpaper manager strings.
class WallpaperPrivateGetStringsFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getStrings",
WALLPAPERPRIVATE_GETSTRINGS)
protected:
virtual ~WallpaperPrivateGetStringsFunction() {}
// SyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
};
class WallpaperPrivateSetWallpaperIfExistsFunction
: public WallpaperFunctionBase {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setWallpaperIfExists",
WALLPAPERPRIVATE_SETWALLPAPERIFEXISTS)
WallpaperPrivateSetWallpaperIfExistsFunction();
protected:
virtual ~WallpaperPrivateSetWallpaperIfExistsFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
private:
virtual void OnWallpaperDecoded(const gfx::ImageSkia& wallpaper) OVERRIDE;
// File doesn't exist. Sets javascript callback parameter to false.
void OnFileNotExists(const std::string& error);
// Reads file specified by |file_path|. If success, post a task to start
// decoding the file.
void ReadFileAndInitiateStartDecode(const base::FilePath& file_path,
const base::FilePath& fallback_path);
// Online wallpaper URL or file name of custom wallpaper.
std::string urlOrFile_;
// Layout of the loaded wallpaper.
ash::WallpaperLayout layout_;
// Type of the loaded wallpaper.
chromeos::User::WallpaperType type_;
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateSetWallpaperFunction : public WallpaperFunctionBase {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setWallpaper",
WALLPAPERPRIVATE_SETWALLPAPER)
WallpaperPrivateSetWallpaperFunction();
protected:
virtual ~WallpaperPrivateSetWallpaperFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
private:
virtual void OnWallpaperDecoded(const gfx::ImageSkia& wallpaper) OVERRIDE;
// Saves the image data to a file.
void SaveToFile();
// Sets wallpaper to the decoded image.
void SetDecodedWallpaper(scoped_ptr<gfx::ImageSkia> wallpaper);
// Layout of the downloaded wallpaper.
ash::WallpaperLayout layout_;
// The decoded wallpaper. It may accessed from UI thread to set wallpaper or
// FILE thread to resize and save wallpaper to disk.
gfx::ImageSkia wallpaper_;
// Email address of logged in user.
std::string email_;
// High resolution wallpaper URL.
std::string url_;
// String representation of downloaded wallpaper.
std::string image_data_;
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateResetWallpaperFunction
: public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.resetWallpaper",
WALLPAPERPRIVATE_RESETWALLPAPER)
WallpaperPrivateResetWallpaperFunction();
protected:
virtual ~WallpaperPrivateResetWallpaperFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
};
class WallpaperPrivateSetCustomWallpaperFunction
: public WallpaperFunctionBase {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setCustomWallpaper",
WALLPAPERPRIVATE_SETCUSTOMWALLPAPER)
WallpaperPrivateSetCustomWallpaperFunction();
protected:
virtual ~WallpaperPrivateSetCustomWallpaperFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
private:
virtual void OnWallpaperDecoded(const gfx::ImageSkia& wallpaper) OVERRIDE;
// Generates thumbnail of custom wallpaper. A simple STRETCH is used for
// generating thunbail.
void GenerateThumbnail(const base::FilePath& thumbnail_path,
scoped_ptr<gfx::ImageSkia> image);
// Thumbnail is ready. Calls api function javascript callback.
void ThumbnailGenerated(base::RefCountedBytes* data);
// Layout of the downloaded wallpaper.
ash::WallpaperLayout layout_;
// True if need to generate thumbnail and pass to callback.
bool generate_thumbnail_;
// Unique file name of the custom wallpaper.
std::string file_name_;
// Email address of logged in user.
std::string email_;
// String representation of downloaded wallpaper.
std::string image_data_;
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateSetCustomWallpaperLayoutFunction
: public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setCustomWallpaperLayout",
WALLPAPERPRIVATE_SETCUSTOMWALLPAPERLAYOUT)
WallpaperPrivateSetCustomWallpaperLayoutFunction();
protected:
virtual ~WallpaperPrivateSetCustomWallpaperLayoutFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
};
class WallpaperPrivateMinimizeInactiveWindowsFunction
: public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.minimizeInactiveWindows",
WALLPAPERPRIVATE_MINIMIZEINACTIVEWINDOWS)
WallpaperPrivateMinimizeInactiveWindowsFunction();
protected:
virtual ~WallpaperPrivateMinimizeInactiveWindowsFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
};
class WallpaperPrivateRestoreMinimizedWindowsFunction
: public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.restoreMinimizedWindows",
WALLPAPERPRIVATE_RESTOREMINIMIZEDWINDOWS)
WallpaperPrivateRestoreMinimizedWindowsFunction();
protected:
virtual ~WallpaperPrivateRestoreMinimizedWindowsFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
};
class WallpaperPrivateGetThumbnailFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getThumbnail",
WALLPAPERPRIVATE_GETTHUMBNAIL)
WallpaperPrivateGetThumbnailFunction();
protected:
virtual ~WallpaperPrivateGetThumbnailFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
private:
// Failed to get thumbnail for |file_name|.
void Failure(const std::string& file_name);
// Returns true to suppress javascript console error. Called when the
// requested thumbnail is not found or corrupted in thumbnail directory.
void FileNotLoaded();
// Sets data field to the loaded thumbnail binary data in the results. Called
// when requested wallpaper thumbnail loaded successfully.
void FileLoaded(const std::string& data);
// Gets thumbnail from |path|. If |path| does not exist, call FileNotLoaded().
void Get(const base::FilePath& path);
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateSaveThumbnailFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.saveThumbnail",
WALLPAPERPRIVATE_SAVETHUMBNAIL)
WallpaperPrivateSaveThumbnailFunction();
protected:
virtual ~WallpaperPrivateSaveThumbnailFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
private:
// Failed to save thumbnail for |file_name|.
void Failure(const std::string& file_name);
// Saved thumbnail to thumbnail directory.
void Success();
// Saves thumbnail to thumbnail directory as |file_name|.
void Save(const std::string& data, const std::string& file_name);
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
base::SequencedWorkerPool::SequenceToken sequence_token_;
};
class WallpaperPrivateGetOfflineWallpaperListFunction
: public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getOfflineWallpaperList",
WALLPAPERPRIVATE_GETOFFLINEWALLPAPERLIST)
WallpaperPrivateGetOfflineWallpaperListFunction();
protected:
virtual ~WallpaperPrivateGetOfflineWallpaperListFunction();
// AsyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
private:
// Enumerates the list of files in wallpaper directory of given |source|.
void GetList(const std::string& email, const std::string& source);
// Sends the list of files to extension api caller. If no files or no
// directory, sends empty list.
void OnComplete(const std::vector<std::string>& file_list);
// Sequence token associated with wallpaper operations. Shared with
// WallpaperManager.
base::SequencedWorkerPool::SequenceToken sequence_token_;
};
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
|
mogoweb/chromium-crosswalk
|
chrome/browser/chromeos/extensions/wallpaper_private_api.h
|
C
|
bsd-3-clause
| 9,677
|
import subprocess
import sys
import setup_util
import os
def start(args, logfile, errfile):
try:
subprocess.check_call("mvn clean compile assembly:single", shell=True, cwd="netty", stderr=errfile, stdout=logfile)
subprocess.Popen("java -jar netty-example-0.1-jar-with-dependencies.jar".rsplit(" "), cwd="netty/target", stderr=errfile, stdout=logfile)
return 0
except subprocess.CalledProcessError:
return 1
def stop(logfile, errfile):
if os.name == 'nt':
subprocess.check_call("wmic process where \"CommandLine LIKE '%netty-example%'\" call terminate", stderr=errfile, stdout=logfile)
else:
p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
out, err = p.communicate()
for line in out.splitlines():
if 'netty-example' in line:
pid = int(line.split(None, 2)[1])
os.kill(pid, 9)
return 0
|
morrisonlevi/FrameworkBenchmarks
|
netty/setup.py
|
Python
|
bsd-3-clause
| 860
|
// Copyright 2018 The go-python Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Frozen version of importlib/_bootstrap.py
package py
import (
"github.com/go-python/gpython/py"
)
// Load the frozen module
func init() {
py.RegisterModule(&py.ModuleImpl{
Info: py.ModuleInfo{
Name: "importlib",
},
CodeBuf: data,
})
}
// Auto-generated by Modules/_freeze_importlib.c
var data = []byte{
99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0,
0, 64, 0, 0, 0, 115, 206, 3, 0, 0, 100, 0, 0, 90, 0, 0,
100, 131, 0, 90, 1, 0, 100, 4, 0, 100, 5, 0, 132, 0, 0, 90,
2, 0, 100, 6, 0, 100, 7, 0, 132, 0, 0, 90, 3, 0, 100, 8,
0, 100, 9, 0, 132, 0, 0, 90, 4, 0, 100, 10, 0, 100, 11, 0,
132, 0, 0, 90, 5, 0, 100, 12, 0, 100, 13, 0, 132, 0, 0, 90,
6, 0, 100, 14, 0, 100, 15, 0, 132, 0, 0, 90, 7, 0, 100, 16,
0, 100, 17, 0, 132, 0, 0, 90, 8, 0, 100, 18, 0, 100, 19, 0,
132, 0, 0, 90, 9, 0, 100, 20, 0, 100, 21, 0, 100, 22, 0, 132,
1, 0, 90, 10, 0, 100, 23, 0, 100, 24, 0, 132, 0, 0, 90, 11,
0, 101, 12, 0, 101, 11, 0, 106, 13, 0, 131, 1, 0, 90, 14, 0,
100, 25, 0, 100, 26, 0, 132, 0, 0, 90, 15, 0, 105, 0, 0, 90,
16, 0, 105, 0, 0, 90, 17, 0, 71, 100, 27, 0, 100, 28, 0, 132,
0, 0, 100, 28, 0, 101, 18, 0, 131, 3, 0, 90, 19, 0, 71, 100,
29, 0, 100, 30, 0, 132, 0, 0, 100, 30, 0, 131, 2, 0, 90, 20,
0, 71, 100, 31, 0, 100, 32, 0, 132, 0, 0, 100, 32, 0, 131, 2,
0, 90, 21, 0, 100, 33, 0, 100, 34, 0, 132, 0, 0, 90, 22, 0,
100, 35, 0, 100, 36, 0, 132, 0, 0, 90, 23, 0, 100, 37, 0, 100,
38, 0, 132, 0, 0, 90, 24, 0, 100, 39, 0, 101, 25, 0, 100, 40,
0, 131, 1, 0, 100, 41, 0, 62, 66, 101, 25, 0, 100, 42, 0, 131,
1, 0, 100, 43, 0, 62, 66, 90, 26, 0, 101, 27, 0, 100, 44, 0,
100, 45, 0, 132, 0, 0, 101, 28, 0, 100, 46, 0, 100, 47, 0, 100,
48, 0, 131, 3, 0, 68, 131, 1, 0, 131, 1, 0, 90, 29, 0, 100,
49, 0, 90, 30, 0, 100, 50, 0, 103, 1, 0, 90, 31, 0, 100, 51,
0, 103, 1, 0, 90, 32, 0, 100, 52, 0, 103, 1, 0, 90, 33, 0,
100, 130, 0, 100, 53, 0, 100, 54, 0, 132, 1, 0, 90, 35, 0, 100,
55, 0, 100, 56, 0, 132, 0, 0, 90, 36, 0, 100, 57, 0, 100, 58,
0, 132, 0, 0, 90, 37, 0, 100, 59, 0, 100, 60, 0, 100, 61, 0,
100, 62, 0, 132, 0, 1, 90, 38, 0, 100, 63, 0, 100, 64, 0, 132,
0, 0, 90, 39, 0, 100, 65, 0, 100, 66, 0, 132, 0, 0, 90, 40,
0, 100, 67, 0, 100, 68, 0, 132, 0, 0, 90, 41, 0, 100, 69, 0,
100, 70, 0, 132, 0, 0, 90, 42, 0, 100, 71, 0, 100, 72, 0, 132,
0, 0, 90, 43, 0, 100, 73, 0, 100, 74, 0, 132, 0, 0, 90, 44,
0, 100, 75, 0, 100, 76, 0, 132, 0, 0, 90, 45, 0, 71, 100, 77,
0, 100, 78, 0, 132, 0, 0, 100, 78, 0, 131, 2, 0, 90, 46, 0,
71, 100, 79, 0, 100, 80, 0, 132, 0, 0, 100, 80, 0, 131, 2, 0,
90, 47, 0, 71, 100, 81, 0, 100, 82, 0, 132, 0, 0, 100, 82, 0,
131, 2, 0, 90, 48, 0, 71, 100, 83, 0, 100, 84, 0, 132, 0, 0,
100, 84, 0, 131, 2, 0, 90, 49, 0, 71, 100, 85, 0, 100, 86, 0,
132, 0, 0, 100, 86, 0, 101, 49, 0, 131, 3, 0, 90, 50, 0, 71,
100, 87, 0, 100, 88, 0, 132, 0, 0, 100, 88, 0, 131, 2, 0, 90,
51, 0, 71, 100, 89, 0, 100, 90, 0, 132, 0, 0, 100, 90, 0, 101,
51, 0, 101, 50, 0, 131, 4, 0, 90, 52, 0, 71, 100, 91, 0, 100,
92, 0, 132, 0, 0, 100, 92, 0, 101, 51, 0, 101, 49, 0, 131, 4,
0, 90, 53, 0, 103, 0, 0, 90, 54, 0, 71, 100, 93, 0, 100, 94,
0, 132, 0, 0, 100, 94, 0, 131, 2, 0, 90, 55, 0, 71, 100, 95,
0, 100, 96, 0, 132, 0, 0, 100, 96, 0, 131, 2, 0, 90, 56, 0,
71, 100, 97, 0, 100, 98, 0, 132, 0, 0, 100, 98, 0, 131, 2, 0,
90, 57, 0, 71, 100, 99, 0, 100, 100, 0, 132, 0, 0, 100, 100, 0,
131, 2, 0, 90, 58, 0, 71, 100, 101, 0, 100, 102, 0, 132, 0, 0,
100, 102, 0, 131, 2, 0, 90, 59, 0, 71, 100, 103, 0, 100, 104, 0,
132, 0, 0, 100, 104, 0, 131, 2, 0, 90, 60, 0, 100, 105, 0, 100,
106, 0, 132, 0, 0, 90, 61, 0, 100, 107, 0, 100, 108, 0, 132, 0,
0, 90, 62, 0, 100, 109, 0, 100, 110, 0, 132, 0, 0, 90, 63, 0,
100, 111, 0, 90, 64, 0, 100, 112, 0, 100, 113, 0, 132, 0, 0, 90,
65, 0, 100, 114, 0, 100, 115, 0, 132, 0, 0, 90, 66, 0, 100, 130,
0, 100, 46, 0, 100, 116, 0, 100, 117, 0, 132, 2, 0, 90, 67, 0,
100, 118, 0, 100, 119, 0, 132, 0, 0, 90, 68, 0, 100, 120, 0, 100,
121, 0, 132, 0, 0, 90, 69, 0, 100, 122, 0, 100, 123, 0, 132, 0,
0, 90, 70, 0, 100, 130, 0, 100, 130, 0, 102, 0, 0, 100, 46, 0,
100, 124, 0, 100, 125, 0, 132, 4, 0, 90, 71, 0, 100, 126, 0, 100,
127, 0, 132, 0, 0, 90, 72, 0, 100, 128, 0, 100, 129, 0, 132, 0,
0, 90, 73, 0, 100, 130, 0, 83, 40, 132, 0, 0, 0, 117, 83, 1,
0, 0, 67, 111, 114, 101, 32, 105, 109, 112, 108, 101, 109, 101, 110, 116,
97, 116, 105, 111, 110, 32, 111, 102, 32, 105, 109, 112, 111, 114, 116, 46,
10, 10, 84, 104, 105, 115, 32, 109, 111, 100, 117, 108, 101, 32, 105, 115,
32, 78, 79, 84, 32, 109, 101, 97, 110, 116, 32, 116, 111, 32, 98, 101,
32, 100, 105, 114, 101, 99, 116, 108, 121, 32, 105, 109, 112, 111, 114, 116,
101, 100, 33, 32, 73, 116, 32, 104, 97, 115, 32, 98, 101, 101, 110, 32,
100, 101, 115, 105, 103, 110, 101, 100, 32, 115, 117, 99, 104, 10, 116, 104,
97, 116, 32, 105, 116, 32, 99, 97, 110, 32, 98, 101, 32, 98, 111, 111,
116, 115, 116, 114, 97, 112, 112, 101, 100, 32, 105, 110, 116, 111, 32, 80,
121, 116, 104, 111, 110, 32, 97, 115, 32, 116, 104, 101, 32, 105, 109, 112,
108, 101, 109, 101, 110, 116, 97, 116, 105, 111, 110, 32, 111, 102, 32, 105,
109, 112, 111, 114, 116, 46, 32, 65, 115, 10, 115, 117, 99, 104, 32, 105,
116, 32, 114, 101, 113, 117, 105, 114, 101, 115, 32, 116, 104, 101, 32, 105,
110, 106, 101, 99, 116, 105, 111, 110, 32, 111, 102, 32, 115, 112, 101, 99,
105, 102, 105, 99, 32, 109, 111, 100, 117, 108, 101, 115, 32, 97, 110, 100,
32, 97, 116, 116, 114, 105, 98, 117, 116, 101, 115, 32, 105, 110, 32, 111,
114, 100, 101, 114, 32, 116, 111, 10, 119, 111, 114, 107, 46, 32, 79, 110,
101, 32, 115, 104, 111, 117, 108, 100, 32, 117, 115, 101, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 32, 97, 115, 32, 116, 104, 101, 32, 112, 117,
98, 108, 105, 99, 45, 102, 97, 99, 105, 110, 103, 32, 118, 101, 114, 115,
105, 111, 110, 32, 111, 102, 32, 116, 104, 105, 115, 32, 109, 111, 100, 117,
108, 101, 46, 10, 10, 117, 3, 0, 0, 0, 119, 105, 110, 117, 6, 0,
0, 0, 99, 121, 103, 119, 105, 110, 117, 6, 0, 0, 0, 100, 97, 114,
119, 105, 110, 99, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
2, 0, 0, 0, 67, 0, 0, 0, 115, 49, 0, 0, 0, 116, 0, 0,
106, 1, 0, 106, 2, 0, 116, 3, 0, 131, 1, 0, 114, 33, 0, 100,
1, 0, 100, 2, 0, 132, 0, 0, 125, 0, 0, 110, 12, 0, 100, 3,
0, 100, 2, 0, 132, 0, 0, 125, 0, 0, 124, 0, 0, 83, 40, 4,
0, 0, 0, 78, 99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 2, 0, 0, 0, 83, 0, 0, 0, 115, 13, 0, 0, 0, 100, 1,
0, 116, 0, 0, 106, 1, 0, 107, 6, 0, 83, 40, 2, 0, 0, 0,
117, 53, 0, 0, 0, 84, 114, 117, 101, 32, 105, 102, 32, 102, 105, 108,
101, 110, 97, 109, 101, 115, 32, 109, 117, 115, 116, 32, 98, 101, 32, 99,
104, 101, 99, 107, 101, 100, 32, 99, 97, 115, 101, 45, 105, 110, 115, 101,
110, 115, 105, 116, 105, 118, 101, 108, 121, 46, 115, 12, 0, 0, 0, 80,
89, 84, 72, 79, 78, 67, 65, 83, 69, 79, 75, 40, 2, 0, 0, 0,
117, 3, 0, 0, 0, 95, 111, 115, 117, 7, 0, 0, 0, 101, 110, 118,
105, 114, 111, 110, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 11, 0, 0, 0, 95, 114, 101, 108, 97, 120,
95, 99, 97, 115, 101, 34, 0, 0, 0, 115, 2, 0, 0, 0, 0, 2,
117, 37, 0, 0, 0, 95, 109, 97, 107, 101, 95, 114, 101, 108, 97, 120,
95, 99, 97, 115, 101, 46, 60, 108, 111, 99, 97, 108, 115, 62, 46, 95,
114, 101, 108, 97, 120, 95, 99, 97, 115, 101, 99, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 83, 0, 0, 0, 115,
4, 0, 0, 0, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 53, 0,
0, 0, 84, 114, 117, 101, 32, 105, 102, 32, 102, 105, 108, 101, 110, 97,
109, 101, 115, 32, 109, 117, 115, 116, 32, 98, 101, 32, 99, 104, 101, 99,
107, 101, 100, 32, 99, 97, 115, 101, 45, 105, 110, 115, 101, 110, 115, 105,
116, 105, 118, 101, 108, 121, 46, 70, 40, 1, 0, 0, 0, 117, 5, 0,
0, 0, 70, 97, 108, 115, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0, 0, 95, 114, 101,
108, 97, 120, 95, 99, 97, 115, 101, 38, 0, 0, 0, 115, 2, 0, 0,
0, 0, 2, 40, 4, 0, 0, 0, 117, 3, 0, 0, 0, 115, 121, 115,
117, 8, 0, 0, 0, 112, 108, 97, 116, 102, 111, 114, 109, 117, 10, 0,
0, 0, 115, 116, 97, 114, 116, 115, 119, 105, 116, 104, 117, 27, 0, 0,
0, 95, 67, 65, 83, 69, 95, 73, 78, 83, 69, 78, 83, 73, 84, 73,
86, 69, 95, 80, 76, 65, 84, 70, 79, 82, 77, 83, 40, 1, 0, 0,
0, 117, 11, 0, 0, 0, 95, 114, 101, 108, 97, 120, 95, 99, 97, 115,
101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0,
60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 16, 0,
0, 0, 95, 109, 97, 107, 101, 95, 114, 101, 108, 97, 120, 95, 99, 97,
115, 101, 32, 0, 0, 0, 115, 8, 0, 0, 0, 0, 1, 18, 1, 15,
4, 12, 3, 117, 16, 0, 0, 0, 95, 109, 97, 107, 101, 95, 114, 101,
108, 97, 120, 95, 99, 97, 115, 101, 99, 1, 0, 0, 0, 0, 0, 0,
0, 2, 0, 0, 0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 108, 0,
0, 0, 116, 0, 0, 124, 0, 0, 131, 1, 0, 125, 0, 0, 103, 0,
0, 125, 1, 0, 124, 1, 0, 106, 1, 0, 124, 0, 0, 100, 1, 0,
64, 131, 1, 0, 1, 124, 1, 0, 106, 1, 0, 124, 0, 0, 100, 2,
0, 63, 100, 1, 0, 64, 131, 1, 0, 1, 124, 1, 0, 106, 1, 0,
124, 0, 0, 100, 3, 0, 63, 100, 1, 0, 64, 131, 1, 0, 1, 124,
1, 0, 106, 1, 0, 124, 0, 0, 100, 4, 0, 63, 100, 1, 0, 64,
131, 1, 0, 1, 116, 2, 0, 124, 1, 0, 131, 1, 0, 83, 40, 5,
0, 0, 0, 117, 111, 0, 0, 0, 67, 111, 110, 118, 101, 114, 116, 32,
97, 32, 51, 50, 45, 98, 105, 116, 32, 105, 110, 116, 101, 103, 101, 114,
32, 116, 111, 32, 108, 105, 116, 116, 108, 101, 45, 101, 110, 100, 105, 97,
110, 46, 10, 10, 32, 32, 32, 32, 88, 88, 88, 32, 84, 101, 109, 112,
111, 114, 97, 114, 121, 32, 117, 110, 116, 105, 108, 32, 109, 97, 114, 115,
104, 97, 108, 39, 115, 32, 108, 111, 110, 103, 32, 102, 117, 110, 99, 116,
105, 111, 110, 115, 32, 97, 114, 101, 32, 101, 120, 112, 111, 115, 101, 100,
46, 10, 10, 32, 32, 32, 32, 105, 255, 0, 0, 0, 105, 8, 0, 0,
0, 105, 16, 0, 0, 0, 105, 24, 0, 0, 0, 40, 3, 0, 0, 0,
117, 3, 0, 0, 0, 105, 110, 116, 117, 6, 0, 0, 0, 97, 112, 112,
101, 110, 100, 117, 9, 0, 0, 0, 98, 121, 116, 101, 97, 114, 114, 97,
121, 40, 2, 0, 0, 0, 117, 1, 0, 0, 0, 120, 117, 9, 0, 0,
0, 105, 110, 116, 95, 98, 121, 116, 101, 115, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 7, 0, 0, 0, 95, 119, 95, 108, 111,
110, 103, 45, 0, 0, 0, 115, 14, 0, 0, 0, 0, 6, 12, 1, 6,
1, 17, 1, 21, 1, 21, 1, 21, 1, 117, 7, 0, 0, 0, 95, 119,
95, 108, 111, 110, 103, 99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0,
0, 0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 68, 0, 0, 0, 124,
0, 0, 100, 1, 0, 25, 125, 1, 0, 124, 1, 0, 124, 0, 0, 100,
2, 0, 25, 100, 3, 0, 62, 79, 125, 1, 0, 124, 1, 0, 124, 0,
0, 100, 4, 0, 25, 100, 5, 0, 62, 79, 125, 1, 0, 124, 1, 0,
124, 0, 0, 100, 6, 0, 25, 100, 7, 0, 62, 79, 125, 1, 0, 124,
1, 0, 83, 40, 8, 0, 0, 0, 117, 115, 0, 0, 0, 67, 111, 110,
118, 101, 114, 116, 32, 52, 32, 98, 121, 116, 101, 115, 32, 105, 110, 32,
108, 105, 116, 116, 108, 101, 45, 101, 110, 100, 105, 97, 110, 32, 116, 111,
32, 97, 110, 32, 105, 110, 116, 101, 103, 101, 114, 46, 10, 10, 32, 32,
32, 32, 88, 88, 88, 32, 84, 101, 109, 112, 111, 114, 97, 114, 121, 32,
117, 110, 116, 105, 108, 32, 109, 97, 114, 115, 104, 97, 108, 39, 115, 32,
108, 111, 110, 103, 32, 102, 117, 110, 99, 116, 105, 111, 110, 32, 97, 114,
101, 32, 101, 120, 112, 111, 115, 101, 100, 46, 10, 10, 32, 32, 32, 32,
105, 0, 0, 0, 0, 105, 1, 0, 0, 0, 105, 8, 0, 0, 0, 105,
2, 0, 0, 0, 105, 16, 0, 0, 0, 105, 3, 0, 0, 0, 105, 24,
0, 0, 0, 40, 0, 0, 0, 0, 40, 2, 0, 0, 0, 117, 9, 0,
0, 0, 105, 110, 116, 95, 98, 121, 116, 101, 115, 117, 1, 0, 0, 0,
120, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0,
60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 7, 0,
0, 0, 95, 114, 95, 108, 111, 110, 103, 61, 0, 0, 0, 115, 10, 0,
0, 0, 0, 6, 10, 1, 18, 1, 18, 1, 18, 1, 117, 7, 0, 0,
0, 95, 114, 95, 108, 111, 110, 103, 99, 0, 0, 0, 0, 0, 0, 0,
0, 3, 0, 0, 0, 4, 0, 0, 0, 71, 0, 0, 0, 115, 103, 0,
0, 0, 103, 0, 0, 125, 1, 0, 120, 71, 0, 124, 0, 0, 68, 93,
63, 0, 125, 2, 0, 124, 2, 0, 115, 31, 0, 113, 13, 0, 110, 0,
0, 124, 1, 0, 106, 0, 0, 124, 2, 0, 131, 1, 0, 1, 124, 2,
0, 100, 4, 0, 25, 116, 1, 0, 107, 7, 0, 114, 13, 0, 124, 1,
0, 106, 0, 0, 116, 2, 0, 131, 1, 0, 1, 113, 13, 0, 113, 13,
0, 87, 100, 2, 0, 106, 3, 0, 124, 1, 0, 100, 3, 0, 100, 5,
0, 133, 2, 0, 25, 131, 1, 0, 83, 40, 6, 0, 0, 0, 117, 31,
0, 0, 0, 82, 101, 112, 108, 97, 99, 101, 109, 101, 110, 116, 32, 102,
111, 114, 32, 111, 115, 46, 112, 97, 116, 104, 46, 106, 111, 105, 110, 40,
41, 46, 105, 1, 0, 0, 0, 117, 0, 0, 0, 0, 78, 105, 255, 255,
255, 255, 105, 255, 255, 255, 255, 40, 4, 0, 0, 0, 117, 6, 0, 0,
0, 97, 112, 112, 101, 110, 100, 117, 15, 0, 0, 0, 112, 97, 116, 104,
95, 115, 101, 112, 97, 114, 97, 116, 111, 114, 115, 117, 8, 0, 0, 0,
112, 97, 116, 104, 95, 115, 101, 112, 117, 4, 0, 0, 0, 106, 111, 105,
110, 40, 3, 0, 0, 0, 117, 10, 0, 0, 0, 112, 97, 116, 104, 95,
112, 97, 114, 116, 115, 117, 9, 0, 0, 0, 110, 101, 119, 95, 112, 97,
114, 116, 115, 117, 4, 0, 0, 0, 112, 97, 114, 116, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 95, 112, 97,
116, 104, 95, 106, 111, 105, 110, 74, 0, 0, 0, 115, 16, 0, 0, 0,
0, 2, 6, 1, 13, 1, 6, 1, 6, 1, 13, 1, 16, 1, 20, 1,
117, 10, 0, 0, 0, 95, 112, 97, 116, 104, 95, 106, 111, 105, 110, 99,
1, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 3, 0, 0, 0,
67, 0, 0, 0, 115, 85, 0, 0, 0, 120, 48, 0, 116, 0, 0, 124,
0, 0, 131, 1, 0, 68, 93, 28, 0, 125, 1, 0, 124, 1, 0, 116,
1, 0, 107, 6, 0, 114, 13, 0, 124, 1, 0, 125, 2, 0, 80, 113,
13, 0, 113, 13, 0, 87, 116, 2, 0, 125, 2, 0, 124, 0, 0, 106,
3, 0, 124, 2, 0, 131, 1, 0, 92, 3, 0, 125, 3, 0, 125, 4,
0, 125, 5, 0, 124, 3, 0, 124, 5, 0, 102, 2, 0, 83, 40, 1,
0, 0, 0, 117, 32, 0, 0, 0, 82, 101, 112, 108, 97, 99, 101, 109,
101, 110, 116, 32, 102, 111, 114, 32, 111, 115, 46, 112, 97, 116, 104, 46,
115, 112, 108, 105, 116, 40, 41, 46, 40, 4, 0, 0, 0, 117, 8, 0,
0, 0, 114, 101, 118, 101, 114, 115, 101, 100, 117, 15, 0, 0, 0, 112,
97, 116, 104, 95, 115, 101, 112, 97, 114, 97, 116, 111, 114, 115, 117, 8,
0, 0, 0, 112, 97, 116, 104, 95, 115, 101, 112, 117, 10, 0, 0, 0,
114, 112, 97, 114, 116, 105, 116, 105, 111, 110, 40, 6, 0, 0, 0, 117,
4, 0, 0, 0, 112, 97, 116, 104, 117, 1, 0, 0, 0, 120, 117, 3,
0, 0, 0, 115, 101, 112, 117, 5, 0, 0, 0, 102, 114, 111, 110, 116,
117, 1, 0, 0, 0, 95, 117, 4, 0, 0, 0, 116, 97, 105, 108, 40,
0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102,
114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46,
95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0, 0,
95, 112, 97, 116, 104, 95, 115, 112, 108, 105, 116, 86, 0, 0, 0, 115,
14, 0, 0, 0, 0, 2, 19, 1, 12, 1, 6, 1, 8, 2, 6, 1,
24, 1, 117, 11, 0, 0, 0, 95, 112, 97, 116, 104, 95, 115, 112, 108,
105, 116, 99, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 11,
0, 0, 0, 67, 0, 0, 0, 115, 61, 0, 0, 0, 121, 19, 0, 116,
0, 0, 106, 1, 0, 124, 0, 0, 131, 1, 0, 125, 2, 0, 87, 110,
22, 0, 4, 116, 2, 0, 107, 10, 0, 114, 43, 0, 1, 1, 1, 100,
2, 0, 83, 89, 110, 1, 0, 88, 124, 2, 0, 106, 4, 0, 100, 1,
0, 64, 124, 1, 0, 107, 2, 0, 83, 40, 3, 0, 0, 0, 117, 49,
0, 0, 0, 84, 101, 115, 116, 32, 119, 104, 101, 116, 104, 101, 114, 32,
116, 104, 101, 32, 112, 97, 116, 104, 32, 105, 115, 32, 116, 104, 101, 32,
115, 112, 101, 99, 105, 102, 105, 101, 100, 32, 109, 111, 100, 101, 32, 116,
121, 112, 101, 46, 105, 0, 240, 0, 0, 70, 40, 5, 0, 0, 0, 117,
3, 0, 0, 0, 95, 111, 115, 117, 4, 0, 0, 0, 115, 116, 97, 116,
117, 7, 0, 0, 0, 79, 83, 69, 114, 114, 111, 114, 117, 5, 0, 0,
0, 70, 97, 108, 115, 101, 117, 7, 0, 0, 0, 115, 116, 95, 109, 111,
100, 101, 40, 3, 0, 0, 0, 117, 4, 0, 0, 0, 112, 97, 116, 104,
117, 4, 0, 0, 0, 109, 111, 100, 101, 117, 9, 0, 0, 0, 115, 116,
97, 116, 95, 105, 110, 102, 111, 40, 0, 0, 0, 0, 40, 0, 0, 0,
0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109,
112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114,
97, 112, 62, 117, 18, 0, 0, 0, 95, 112, 97, 116, 104, 95, 105, 115,
95, 109, 111, 100, 101, 95, 116, 121, 112, 101, 98, 0, 0, 0, 115, 10,
0, 0, 0, 0, 2, 3, 1, 19, 1, 13, 1, 9, 1, 117, 18, 0,
0, 0, 95, 112, 97, 116, 104, 95, 105, 115, 95, 109, 111, 100, 101, 95,
116, 121, 112, 101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 13, 0, 0, 0, 116, 0,
0, 124, 0, 0, 100, 1, 0, 131, 2, 0, 83, 40, 2, 0, 0, 0,
117, 31, 0, 0, 0, 82, 101, 112, 108, 97, 99, 101, 109, 101, 110, 116,
32, 102, 111, 114, 32, 111, 115, 46, 112, 97, 116, 104, 46, 105, 115, 102,
105, 108, 101, 46, 105, 0, 128, 0, 0, 40, 1, 0, 0, 0, 117, 18,
0, 0, 0, 95, 112, 97, 116, 104, 95, 105, 115, 95, 109, 111, 100, 101,
95, 116, 121, 112, 101, 40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 112,
97, 116, 104, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
12, 0, 0, 0, 95, 112, 97, 116, 104, 95, 105, 115, 102, 105, 108, 101,
108, 0, 0, 0, 115, 2, 0, 0, 0, 0, 2, 117, 12, 0, 0, 0,
95, 112, 97, 116, 104, 95, 105, 115, 102, 105, 108, 101, 99, 1, 0, 0,
0, 0, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 67, 0, 0,
0, 115, 34, 0, 0, 0, 124, 0, 0, 115, 21, 0, 116, 0, 0, 106,
1, 0, 131, 0, 0, 125, 0, 0, 110, 0, 0, 116, 2, 0, 124, 0,
0, 100, 1, 0, 131, 2, 0, 83, 40, 2, 0, 0, 0, 117, 30, 0,
0, 0, 82, 101, 112, 108, 97, 99, 101, 109, 101, 110, 116, 32, 102, 111,
114, 32, 111, 115, 46, 112, 97, 116, 104, 46, 105, 115, 100, 105, 114, 46,
105, 0, 64, 0, 0, 40, 3, 0, 0, 0, 117, 3, 0, 0, 0, 95,
111, 115, 117, 6, 0, 0, 0, 103, 101, 116, 99, 119, 100, 117, 18, 0,
0, 0, 95, 112, 97, 116, 104, 95, 105, 115, 95, 109, 111, 100, 101, 95,
116, 121, 112, 101, 40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 112, 97,
116, 104, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0,
0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108,
105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11,
0, 0, 0, 95, 112, 97, 116, 104, 95, 105, 115, 100, 105, 114, 114, 0,
0, 0, 115, 6, 0, 0, 0, 0, 2, 6, 1, 15, 1, 117, 11, 0,
0, 0, 95, 112, 97, 116, 104, 95, 105, 115, 100, 105, 114, 105, 182, 1,
0, 0, 99, 3, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 17,
0, 0, 0, 67, 0, 0, 0, 115, 192, 0, 0, 0, 100, 1, 0, 106,
0, 0, 124, 0, 0, 116, 1, 0, 124, 0, 0, 131, 1, 0, 131, 2,
0, 125, 3, 0, 116, 2, 0, 106, 3, 0, 124, 3, 0, 116, 2, 0,
106, 4, 0, 116, 2, 0, 106, 5, 0, 66, 116, 2, 0, 106, 6, 0,
66, 124, 2, 0, 100, 2, 0, 64, 131, 3, 0, 125, 4, 0, 121, 60,
0, 116, 7, 0, 106, 8, 0, 124, 4, 0, 100, 3, 0, 131, 2, 0,
143, 20, 0, 125, 5, 0, 124, 5, 0, 106, 9, 0, 124, 1, 0, 131,
1, 0, 1, 87, 100, 4, 0, 81, 88, 116, 2, 0, 106, 10, 0, 124,
3, 0, 124, 0, 0, 131, 2, 0, 1, 87, 110, 59, 0, 4, 116, 11,
0, 107, 10, 0, 114, 187, 0, 1, 1, 1, 121, 17, 0, 116, 2, 0,
106, 12, 0, 124, 3, 0, 131, 1, 0, 1, 87, 110, 18, 0, 4, 116,
11, 0, 107, 10, 0, 114, 179, 0, 1, 1, 1, 89, 110, 1, 0, 88,
130, 0, 0, 89, 110, 1, 0, 88, 100, 4, 0, 83, 40, 5, 0, 0,
0, 117, 162, 0, 0, 0, 66, 101, 115, 116, 45, 101, 102, 102, 111, 114,
116, 32, 102, 117, 110, 99, 116, 105, 111, 110, 32, 116, 111, 32, 119, 114,
105, 116, 101, 32, 100, 97, 116, 97, 32, 116, 111, 32, 97, 32, 112, 97,
116, 104, 32, 97, 116, 111, 109, 105, 99, 97, 108, 108, 121, 46, 10, 32,
32, 32, 32, 66, 101, 32, 112, 114, 101, 112, 97, 114, 101, 100, 32, 116,
111, 32, 104, 97, 110, 100, 108, 101, 32, 97, 32, 70, 105, 108, 101, 69,
120, 105, 115, 116, 115, 69, 114, 114, 111, 114, 32, 105, 102, 32, 99, 111,
110, 99, 117, 114, 114, 101, 110, 116, 32, 119, 114, 105, 116, 105, 110, 103,
32, 111, 102, 32, 116, 104, 101, 10, 32, 32, 32, 32, 116, 101, 109, 112,
111, 114, 97, 114, 121, 32, 102, 105, 108, 101, 32, 105, 115, 32, 97, 116,
116, 101, 109, 112, 116, 101, 100, 46, 117, 5, 0, 0, 0, 123, 125, 46,
123, 125, 105, 182, 1, 0, 0, 117, 2, 0, 0, 0, 119, 98, 78, 40,
13, 0, 0, 0, 117, 6, 0, 0, 0, 102, 111, 114, 109, 97, 116, 117,
2, 0, 0, 0, 105, 100, 117, 3, 0, 0, 0, 95, 111, 115, 117, 4,
0, 0, 0, 111, 112, 101, 110, 117, 6, 0, 0, 0, 79, 95, 69, 88,
67, 76, 117, 7, 0, 0, 0, 79, 95, 67, 82, 69, 65, 84, 117, 8,
0, 0, 0, 79, 95, 87, 82, 79, 78, 76, 89, 117, 3, 0, 0, 0,
95, 105, 111, 117, 6, 0, 0, 0, 70, 105, 108, 101, 73, 79, 117, 5,
0, 0, 0, 119, 114, 105, 116, 101, 117, 7, 0, 0, 0, 114, 101, 112,
108, 97, 99, 101, 117, 7, 0, 0, 0, 79, 83, 69, 114, 114, 111, 114,
117, 6, 0, 0, 0, 117, 110, 108, 105, 110, 107, 40, 6, 0, 0, 0,
117, 4, 0, 0, 0, 112, 97, 116, 104, 117, 4, 0, 0, 0, 100, 97,
116, 97, 117, 4, 0, 0, 0, 109, 111, 100, 101, 117, 8, 0, 0, 0,
112, 97, 116, 104, 95, 116, 109, 112, 117, 2, 0, 0, 0, 102, 100, 117,
4, 0, 0, 0, 102, 105, 108, 101, 40, 0, 0, 0, 0, 40, 0, 0,
0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105,
109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116,
114, 97, 112, 62, 117, 13, 0, 0, 0, 95, 119, 114, 105, 116, 101, 95,
97, 116, 111, 109, 105, 99, 121, 0, 0, 0, 115, 26, 0, 0, 0, 0,
5, 24, 1, 9, 1, 33, 1, 3, 3, 21, 1, 19, 1, 20, 1, 13,
1, 3, 1, 17, 1, 13, 1, 5, 1, 117, 13, 0, 0, 0, 95, 119,
114, 105, 116, 101, 95, 97, 116, 111, 109, 105, 99, 99, 2, 0, 0, 0,
0, 0, 0, 0, 3, 0, 0, 0, 7, 0, 0, 0, 67, 0, 0, 0,
115, 95, 0, 0, 0, 120, 69, 0, 100, 1, 0, 100, 2, 0, 100, 3,
0, 100, 4, 0, 103, 4, 0, 68, 93, 49, 0, 125, 2, 0, 116, 0,
0, 124, 1, 0, 124, 2, 0, 131, 2, 0, 114, 19, 0, 116, 1, 0,
124, 0, 0, 124, 2, 0, 116, 2, 0, 124, 1, 0, 124, 2, 0, 131,
2, 0, 131, 3, 0, 1, 113, 19, 0, 113, 19, 0, 87, 124, 0, 0,
106, 3, 0, 106, 4, 0, 124, 1, 0, 106, 3, 0, 131, 1, 0, 1,
100, 5, 0, 83, 40, 6, 0, 0, 0, 117, 47, 0, 0, 0, 83, 105,
109, 112, 108, 101, 32, 115, 117, 98, 115, 116, 105, 116, 117, 116, 101, 32,
102, 111, 114, 32, 102, 117, 110, 99, 116, 111, 111, 108, 115, 46, 117, 112,
100, 97, 116, 101, 95, 119, 114, 97, 112, 112, 101, 114, 46, 117, 10, 0,
0, 0, 95, 95, 109, 111, 100, 117, 108, 101, 95, 95, 117, 8, 0, 0,
0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 12, 0, 0, 0, 95, 95,
113, 117, 97, 108, 110, 97, 109, 101, 95, 95, 117, 7, 0, 0, 0, 95,
95, 100, 111, 99, 95, 95, 78, 40, 5, 0, 0, 0, 117, 7, 0, 0,
0, 104, 97, 115, 97, 116, 116, 114, 117, 7, 0, 0, 0, 115, 101, 116,
97, 116, 116, 114, 117, 7, 0, 0, 0, 103, 101, 116, 97, 116, 116, 114,
117, 8, 0, 0, 0, 95, 95, 100, 105, 99, 116, 95, 95, 117, 6, 0,
0, 0, 117, 112, 100, 97, 116, 101, 40, 3, 0, 0, 0, 117, 3, 0,
0, 0, 110, 101, 119, 117, 3, 0, 0, 0, 111, 108, 100, 117, 7, 0,
0, 0, 114, 101, 112, 108, 97, 99, 101, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 5, 0, 0, 0, 95, 119, 114, 97, 112, 143,
0, 0, 0, 115, 8, 0, 0, 0, 0, 2, 25, 1, 15, 1, 32, 1,
117, 5, 0, 0, 0, 95, 119, 114, 97, 112, 99, 1, 0, 0, 0, 0,
0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 67, 0, 0, 0, 115,
16, 0, 0, 0, 116, 0, 0, 116, 1, 0, 131, 1, 0, 124, 0, 0,
131, 1, 0, 83, 40, 1, 0, 0, 0, 117, 75, 0, 0, 0, 67, 114,
101, 97, 116, 101, 32, 97, 32, 110, 101, 119, 32, 109, 111, 100, 117, 108,
101, 46, 10, 10, 32, 32, 32, 32, 84, 104, 101, 32, 109, 111, 100, 117,
108, 101, 32, 105, 115, 32, 110, 111, 116, 32, 101, 110, 116, 101, 114, 101,
100, 32, 105, 110, 116, 111, 32, 115, 121, 115, 46, 109, 111, 100, 117, 108,
101, 115, 46, 10, 10, 32, 32, 32, 32, 40, 2, 0, 0, 0, 117, 4,
0, 0, 0, 116, 121, 112, 101, 117, 3, 0, 0, 0, 95, 105, 111, 40,
1, 0, 0, 0, 117, 4, 0, 0, 0, 110, 97, 109, 101, 40, 0, 0,
0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111,
122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98,
111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 110, 101,
119, 95, 109, 111, 100, 117, 108, 101, 154, 0, 0, 0, 115, 2, 0, 0,
0, 0, 6, 117, 10, 0, 0, 0, 110, 101, 119, 95, 109, 111, 100, 117,
108, 101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1,
0, 0, 0, 66, 0, 0, 0, 115, 20, 0, 0, 0, 124, 0, 0, 69,
101, 0, 0, 90, 1, 0, 100, 0, 0, 90, 2, 0, 100, 1, 0, 83,
40, 2, 0, 0, 0, 117, 14, 0, 0, 0, 95, 68, 101, 97, 100, 108,
111, 99, 107, 69, 114, 114, 111, 114, 78, 40, 3, 0, 0, 0, 117, 8,
0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 10, 0, 0, 0,
95, 95, 109, 111, 100, 117, 108, 101, 95, 95, 117, 12, 0, 0, 0, 95,
95, 113, 117, 97, 108, 110, 97, 109, 101, 95, 95, 40, 1, 0, 0, 0,
117, 10, 0, 0, 0, 95, 95, 108, 111, 99, 97, 108, 115, 95, 95, 40,
0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102,
114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46,
95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 14, 0, 0, 0,
95, 68, 101, 97, 100, 108, 111, 99, 107, 69, 114, 114, 111, 114, 171, 0,
0, 0, 115, 2, 0, 0, 0, 16, 1, 117, 14, 0, 0, 0, 95, 68,
101, 97, 100, 108, 111, 99, 107, 69, 114, 114, 111, 114, 99, 1, 0, 0,
0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 66, 0, 0,
0, 115, 86, 0, 0, 0, 124, 0, 0, 69, 101, 0, 0, 90, 1, 0,
100, 0, 0, 90, 2, 0, 100, 1, 0, 90, 3, 0, 100, 2, 0, 100,
3, 0, 132, 0, 0, 90, 4, 0, 100, 4, 0, 100, 5, 0, 132, 0,
0, 90, 5, 0, 100, 6, 0, 100, 7, 0, 132, 0, 0, 90, 6, 0,
100, 8, 0, 100, 9, 0, 132, 0, 0, 90, 7, 0, 100, 10, 0, 100,
11, 0, 132, 0, 0, 90, 8, 0, 100, 12, 0, 83, 40, 13, 0, 0,
0, 117, 11, 0, 0, 0, 95, 77, 111, 100, 117, 108, 101, 76, 111, 99,
107, 117, 169, 0, 0, 0, 65, 32, 114, 101, 99, 117, 114, 115, 105, 118,
101, 32, 108, 111, 99, 107, 32, 105, 109, 112, 108, 101, 109, 101, 110, 116,
97, 116, 105, 111, 110, 32, 119, 104, 105, 99, 104, 32, 105, 115, 32, 97,
98, 108, 101, 32, 116, 111, 32, 100, 101, 116, 101, 99, 116, 32, 100, 101,
97, 100, 108, 111, 99, 107, 115, 10, 32, 32, 32, 32, 40, 101, 46, 103,
46, 32, 116, 104, 114, 101, 97, 100, 32, 49, 32, 116, 114, 121, 105, 110,
103, 32, 116, 111, 32, 116, 97, 107, 101, 32, 108, 111, 99, 107, 115, 32,
65, 32, 116, 104, 101, 110, 32, 66, 44, 32, 97, 110, 100, 32, 116, 104,
114, 101, 97, 100, 32, 50, 32, 116, 114, 121, 105, 110, 103, 32, 116, 111,
10, 32, 32, 32, 32, 116, 97, 107, 101, 32, 108, 111, 99, 107, 115, 32,
66, 32, 116, 104, 101, 110, 32, 65, 41, 46, 10, 32, 32, 32, 32, 99,
2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0,
67, 0, 0, 0, 115, 70, 0, 0, 0, 116, 0, 0, 106, 1, 0, 131,
0, 0, 124, 0, 0, 95, 2, 0, 116, 0, 0, 106, 1, 0, 131, 0,
0, 124, 0, 0, 95, 3, 0, 124, 1, 0, 124, 0, 0, 95, 4, 0,
100, 0, 0, 124, 0, 0, 95, 6, 0, 100, 1, 0, 124, 0, 0, 95,
7, 0, 100, 1, 0, 124, 0, 0, 95, 8, 0, 100, 0, 0, 83, 40,
2, 0, 0, 0, 78, 105, 0, 0, 0, 0, 40, 9, 0, 0, 0, 117,
7, 0, 0, 0, 95, 116, 104, 114, 101, 97, 100, 117, 13, 0, 0, 0,
97, 108, 108, 111, 99, 97, 116, 101, 95, 108, 111, 99, 107, 117, 4, 0,
0, 0, 108, 111, 99, 107, 117, 6, 0, 0, 0, 119, 97, 107, 101, 117,
112, 117, 4, 0, 0, 0, 110, 97, 109, 101, 117, 4, 0, 0, 0, 78,
111, 110, 101, 117, 5, 0, 0, 0, 111, 119, 110, 101, 114, 117, 5, 0,
0, 0, 99, 111, 117, 110, 116, 117, 7, 0, 0, 0, 119, 97, 105, 116,
101, 114, 115, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108,
102, 117, 4, 0, 0, 0, 110, 97, 109, 101, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 8, 0, 0, 0, 95, 95, 105, 110, 105,
116, 95, 95, 181, 0, 0, 0, 115, 12, 0, 0, 0, 0, 1, 15, 1,
15, 1, 9, 1, 9, 1, 9, 1, 117, 20, 0, 0, 0, 95, 77, 111,
100, 117, 108, 101, 76, 111, 99, 107, 46, 95, 95, 105, 110, 105, 116, 95,
95, 99, 1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 2, 0,
0, 0, 67, 0, 0, 0, 115, 87, 0, 0, 0, 116, 0, 0, 106, 1,
0, 131, 0, 0, 125, 1, 0, 124, 0, 0, 106, 2, 0, 125, 2, 0,
120, 59, 0, 116, 3, 0, 106, 4, 0, 124, 2, 0, 131, 1, 0, 125,
3, 0, 124, 3, 0, 100, 0, 0, 107, 8, 0, 114, 55, 0, 100, 1,
0, 83, 124, 3, 0, 106, 2, 0, 125, 2, 0, 124, 2, 0, 124, 1,
0, 107, 2, 0, 114, 24, 0, 100, 2, 0, 83, 113, 24, 0, 100, 0,
0, 83, 40, 3, 0, 0, 0, 78, 70, 84, 40, 8, 0, 0, 0, 117,
7, 0, 0, 0, 95, 116, 104, 114, 101, 97, 100, 117, 9, 0, 0, 0,
103, 101, 116, 95, 105, 100, 101, 110, 116, 117, 5, 0, 0, 0, 111, 119,
110, 101, 114, 117, 12, 0, 0, 0, 95, 98, 108, 111, 99, 107, 105, 110,
103, 95, 111, 110, 117, 3, 0, 0, 0, 103, 101, 116, 117, 4, 0, 0,
0, 78, 111, 110, 101, 117, 5, 0, 0, 0, 70, 97, 108, 115, 101, 117,
4, 0, 0, 0, 84, 114, 117, 101, 40, 4, 0, 0, 0, 117, 4, 0,
0, 0, 115, 101, 108, 102, 117, 2, 0, 0, 0, 109, 101, 117, 3, 0,
0, 0, 116, 105, 100, 117, 4, 0, 0, 0, 108, 111, 99, 107, 40, 0,
0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114,
111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95,
98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 12, 0, 0, 0, 104,
97, 115, 95, 100, 101, 97, 100, 108, 111, 99, 107, 189, 0, 0, 0, 115,
18, 0, 0, 0, 0, 2, 12, 1, 9, 1, 3, 1, 15, 1, 12, 1,
4, 1, 9, 1, 12, 1, 117, 24, 0, 0, 0, 95, 77, 111, 100, 117,
108, 101, 76, 111, 99, 107, 46, 104, 97, 115, 95, 100, 101, 97, 100, 108,
111, 99, 107, 99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0,
17, 0, 0, 0, 67, 0, 0, 0, 115, 214, 0, 0, 0, 116, 0, 0,
106, 1, 0, 131, 0, 0, 125, 1, 0, 124, 0, 0, 116, 2, 0, 124,
1, 0, 60, 122, 177, 0, 120, 170, 0, 124, 0, 0, 106, 3, 0, 143,
130, 0, 1, 124, 0, 0, 106, 4, 0, 100, 1, 0, 107, 2, 0, 115,
68, 0, 124, 0, 0, 106, 5, 0, 124, 1, 0, 107, 2, 0, 114, 96,
0, 124, 1, 0, 124, 0, 0, 95, 5, 0, 124, 0, 0, 4, 106, 4,
0, 100, 2, 0, 55, 2, 95, 4, 0, 100, 5, 0, 83, 124, 0, 0,
106, 7, 0, 131, 0, 0, 114, 127, 0, 116, 8, 0, 100, 3, 0, 124,
0, 0, 22, 131, 1, 0, 130, 1, 0, 110, 0, 0, 124, 0, 0, 106,
9, 0, 106, 10, 0, 100, 6, 0, 131, 1, 0, 114, 163, 0, 124, 0,
0, 4, 106, 12, 0, 100, 2, 0, 55, 2, 95, 12, 0, 110, 0, 0,
87, 100, 4, 0, 81, 88, 124, 0, 0, 106, 9, 0, 106, 10, 0, 131,
0, 0, 1, 124, 0, 0, 106, 9, 0, 106, 13, 0, 131, 0, 0, 1,
113, 28, 0, 87, 100, 4, 0, 116, 2, 0, 124, 1, 0, 61, 88, 100,
4, 0, 83, 40, 7, 0, 0, 0, 117, 185, 0, 0, 0, 10, 32, 32,
32, 32, 32, 32, 32, 32, 65, 99, 113, 117, 105, 114, 101, 32, 116, 104,
101, 32, 109, 111, 100, 117, 108, 101, 32, 108, 111, 99, 107, 46, 32, 32,
73, 102, 32, 97, 32, 112, 111, 116, 101, 110, 116, 105, 97, 108, 32, 100,
101, 97, 100, 108, 111, 99, 107, 32, 105, 115, 32, 100, 101, 116, 101, 99,
116, 101, 100, 44, 10, 32, 32, 32, 32, 32, 32, 32, 32, 97, 32, 95,
68, 101, 97, 100, 108, 111, 99, 107, 69, 114, 114, 111, 114, 32, 105, 115,
32, 114, 97, 105, 115, 101, 100, 46, 10, 32, 32, 32, 32, 32, 32, 32,
32, 79, 116, 104, 101, 114, 119, 105, 115, 101, 44, 32, 116, 104, 101, 32,
108, 111, 99, 107, 32, 105, 115, 32, 97, 108, 119, 97, 121, 115, 32, 97,
99, 113, 117, 105, 114, 101, 100, 32, 97, 110, 100, 32, 84, 114, 117, 101,
32, 105, 115, 32, 114, 101, 116, 117, 114, 110, 101, 100, 46, 10, 32, 32,
32, 32, 32, 32, 32, 32, 105, 0, 0, 0, 0, 105, 1, 0, 0, 0,
117, 23, 0, 0, 0, 100, 101, 97, 100, 108, 111, 99, 107, 32, 100, 101,
116, 101, 99, 116, 101, 100, 32, 98, 121, 32, 37, 114, 78, 84, 70, 40,
14, 0, 0, 0, 117, 7, 0, 0, 0, 95, 116, 104, 114, 101, 97, 100,
117, 9, 0, 0, 0, 103, 101, 116, 95, 105, 100, 101, 110, 116, 117, 12,
0, 0, 0, 95, 98, 108, 111, 99, 107, 105, 110, 103, 95, 111, 110, 117,
4, 0, 0, 0, 108, 111, 99, 107, 117, 5, 0, 0, 0, 99, 111, 117,
110, 116, 117, 5, 0, 0, 0, 111, 119, 110, 101, 114, 117, 4, 0, 0,
0, 84, 114, 117, 101, 117, 12, 0, 0, 0, 104, 97, 115, 95, 100, 101,
97, 100, 108, 111, 99, 107, 117, 14, 0, 0, 0, 95, 68, 101, 97, 100,
108, 111, 99, 107, 69, 114, 114, 111, 114, 117, 6, 0, 0, 0, 119, 97,
107, 101, 117, 112, 117, 7, 0, 0, 0, 97, 99, 113, 117, 105, 114, 101,
117, 5, 0, 0, 0, 70, 97, 108, 115, 101, 117, 7, 0, 0, 0, 119,
97, 105, 116, 101, 114, 115, 117, 7, 0, 0, 0, 114, 101, 108, 101, 97,
115, 101, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102,
117, 3, 0, 0, 0, 116, 105, 100, 40, 0, 0, 0, 0, 40, 0, 0,
0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105,
109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116,
114, 97, 112, 62, 117, 7, 0, 0, 0, 97, 99, 113, 117, 105, 114, 101,
201, 0, 0, 0, 115, 32, 0, 0, 0, 0, 6, 12, 1, 10, 1, 3,
1, 3, 1, 10, 1, 30, 1, 9, 1, 15, 1, 4, 1, 12, 1, 19,
1, 18, 1, 24, 2, 13, 1, 20, 2, 117, 19, 0, 0, 0, 95, 77,
111, 100, 117, 108, 101, 76, 111, 99, 107, 46, 97, 99, 113, 117, 105, 114,
101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 10, 0,
0, 0, 67, 0, 0, 0, 115, 165, 0, 0, 0, 116, 0, 0, 106, 1,
0, 131, 0, 0, 125, 1, 0, 124, 0, 0, 106, 2, 0, 143, 138, 0,
1, 124, 0, 0, 106, 3, 0, 124, 1, 0, 107, 3, 0, 114, 52, 0,
116, 4, 0, 100, 1, 0, 131, 1, 0, 130, 1, 0, 110, 0, 0, 124,
0, 0, 106, 5, 0, 100, 2, 0, 107, 4, 0, 115, 73, 0, 116, 6,
0, 130, 1, 0, 124, 0, 0, 4, 106, 5, 0, 100, 3, 0, 56, 2,
95, 5, 0, 124, 0, 0, 106, 5, 0, 100, 2, 0, 107, 2, 0, 114,
155, 0, 100, 0, 0, 124, 0, 0, 95, 3, 0, 124, 0, 0, 106, 8,
0, 114, 155, 0, 124, 0, 0, 4, 106, 8, 0, 100, 3, 0, 56, 2,
95, 8, 0, 124, 0, 0, 106, 9, 0, 106, 10, 0, 131, 0, 0, 1,
113, 155, 0, 110, 0, 0, 87, 100, 0, 0, 81, 88, 100, 0, 0, 83,
40, 4, 0, 0, 0, 78, 117, 31, 0, 0, 0, 99, 97, 110, 110, 111,
116, 32, 114, 101, 108, 101, 97, 115, 101, 32, 117, 110, 45, 97, 99, 113,
117, 105, 114, 101, 100, 32, 108, 111, 99, 107, 105, 0, 0, 0, 0, 105,
1, 0, 0, 0, 40, 11, 0, 0, 0, 117, 7, 0, 0, 0, 95, 116,
104, 114, 101, 97, 100, 117, 9, 0, 0, 0, 103, 101, 116, 95, 105, 100,
101, 110, 116, 117, 4, 0, 0, 0, 108, 111, 99, 107, 117, 5, 0, 0,
0, 111, 119, 110, 101, 114, 117, 12, 0, 0, 0, 82, 117, 110, 116, 105,
109, 101, 69, 114, 114, 111, 114, 117, 5, 0, 0, 0, 99, 111, 117, 110,
116, 117, 14, 0, 0, 0, 65, 115, 115, 101, 114, 116, 105, 111, 110, 69,
114, 114, 111, 114, 117, 4, 0, 0, 0, 78, 111, 110, 101, 117, 7, 0,
0, 0, 119, 97, 105, 116, 101, 114, 115, 117, 6, 0, 0, 0, 119, 97,
107, 101, 117, 112, 117, 7, 0, 0, 0, 114, 101, 108, 101, 97, 115, 101,
40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 3,
0, 0, 0, 116, 105, 100, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 7, 0, 0, 0, 114, 101, 108, 101, 97, 115, 101, 226, 0,
0, 0, 115, 22, 0, 0, 0, 0, 1, 12, 1, 10, 1, 15, 1, 15,
1, 21, 1, 15, 1, 15, 1, 9, 1, 9, 1, 15, 1, 117, 19, 0,
0, 0, 95, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107, 46, 114, 101,
108, 101, 97, 115, 101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0,
0, 0, 4, 0, 0, 0, 67, 0, 0, 0, 115, 23, 0, 0, 0, 100,
1, 0, 124, 0, 0, 106, 0, 0, 116, 1, 0, 124, 0, 0, 131, 1,
0, 102, 2, 0, 22, 83, 40, 2, 0, 0, 0, 78, 117, 21, 0, 0,
0, 95, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107, 40, 37, 114, 41,
32, 97, 116, 32, 37, 100, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0,
110, 97, 109, 101, 117, 2, 0, 0, 0, 105, 100, 40, 1, 0, 0, 0,
117, 4, 0, 0, 0, 115, 101, 108, 102, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 8, 0, 0, 0, 95, 95, 114, 101, 112, 114,
95, 95, 239, 0, 0, 0, 115, 2, 0, 0, 0, 0, 1, 117, 20, 0,
0, 0, 95, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107, 46, 95, 95,
114, 101, 112, 114, 95, 95, 78, 40, 9, 0, 0, 0, 117, 8, 0, 0,
0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 10, 0, 0, 0, 95, 95,
109, 111, 100, 117, 108, 101, 95, 95, 117, 12, 0, 0, 0, 95, 95, 113,
117, 97, 108, 110, 97, 109, 101, 95, 95, 117, 7, 0, 0, 0, 95, 95,
100, 111, 99, 95, 95, 117, 8, 0, 0, 0, 95, 95, 105, 110, 105, 116,
95, 95, 117, 12, 0, 0, 0, 104, 97, 115, 95, 100, 101, 97, 100, 108,
111, 99, 107, 117, 7, 0, 0, 0, 97, 99, 113, 117, 105, 114, 101, 117,
7, 0, 0, 0, 114, 101, 108, 101, 97, 115, 101, 117, 8, 0, 0, 0,
95, 95, 114, 101, 112, 114, 95, 95, 40, 1, 0, 0, 0, 117, 10, 0,
0, 0, 95, 95, 108, 111, 99, 97, 108, 115, 95, 95, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0, 0, 95, 77, 111,
100, 117, 108, 101, 76, 111, 99, 107, 175, 0, 0, 0, 115, 12, 0, 0,
0, 16, 4, 6, 2, 12, 8, 12, 12, 12, 25, 12, 13, 117, 11, 0,
0, 0, 95, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107, 99, 1, 0,
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 66, 0,
0, 0, 115, 74, 0, 0, 0, 124, 0, 0, 69, 101, 0, 0, 90, 1,
0, 100, 0, 0, 90, 2, 0, 100, 1, 0, 90, 3, 0, 100, 2, 0,
100, 3, 0, 132, 0, 0, 90, 4, 0, 100, 4, 0, 100, 5, 0, 132,
0, 0, 90, 5, 0, 100, 6, 0, 100, 7, 0, 132, 0, 0, 90, 6,
0, 100, 8, 0, 100, 9, 0, 132, 0, 0, 90, 7, 0, 100, 10, 0,
83, 40, 11, 0, 0, 0, 117, 16, 0, 0, 0, 95, 68, 117, 109, 109,
121, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107, 117, 86, 0, 0, 0,
65, 32, 115, 105, 109, 112, 108, 101, 32, 95, 77, 111, 100, 117, 108, 101,
76, 111, 99, 107, 32, 101, 113, 117, 105, 118, 97, 108, 101, 110, 116, 32,
102, 111, 114, 32, 80, 121, 116, 104, 111, 110, 32, 98, 117, 105, 108, 100,
115, 32, 119, 105, 116, 104, 111, 117, 116, 10, 32, 32, 32, 32, 109, 117,
108, 116, 105, 45, 116, 104, 114, 101, 97, 100, 105, 110, 103, 32, 115, 117,
112, 112, 111, 114, 116, 46, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2,
0, 0, 0, 2, 0, 0, 0, 67, 0, 0, 0, 115, 22, 0, 0, 0,
124, 1, 0, 124, 0, 0, 95, 0, 0, 100, 1, 0, 124, 0, 0, 95,
1, 0, 100, 0, 0, 83, 40, 2, 0, 0, 0, 78, 105, 0, 0, 0,
0, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 110, 97, 109, 101, 117,
5, 0, 0, 0, 99, 111, 117, 110, 116, 40, 2, 0, 0, 0, 117, 4,
0, 0, 0, 115, 101, 108, 102, 117, 4, 0, 0, 0, 110, 97, 109, 101,
40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 8, 0, 0,
0, 95, 95, 105, 110, 105, 116, 95, 95, 247, 0, 0, 0, 115, 4, 0,
0, 0, 0, 1, 9, 1, 117, 25, 0, 0, 0, 95, 68, 117, 109, 109,
121, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107, 46, 95, 95, 105, 110,
105, 116, 95, 95, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 19, 0, 0, 0, 124, 0,
0, 4, 106, 0, 0, 100, 1, 0, 55, 2, 95, 0, 0, 100, 2, 0,
83, 40, 3, 0, 0, 0, 78, 105, 1, 0, 0, 0, 84, 40, 2, 0,
0, 0, 117, 5, 0, 0, 0, 99, 111, 117, 110, 116, 117, 4, 0, 0,
0, 84, 114, 117, 101, 40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 115,
101, 108, 102, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
7, 0, 0, 0, 97, 99, 113, 117, 105, 114, 101, 251, 0, 0, 0, 115,
4, 0, 0, 0, 0, 1, 15, 1, 117, 24, 0, 0, 0, 95, 68, 117,
109, 109, 121, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107, 46, 97, 99,
113, 117, 105, 114, 101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0,
0, 0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 49, 0, 0, 0, 124,
0, 0, 106, 0, 0, 100, 1, 0, 107, 2, 0, 114, 30, 0, 116, 1,
0, 100, 2, 0, 131, 1, 0, 130, 1, 0, 110, 0, 0, 124, 0, 0,
4, 106, 0, 0, 100, 3, 0, 56, 2, 95, 0, 0, 100, 0, 0, 83,
40, 4, 0, 0, 0, 78, 105, 0, 0, 0, 0, 117, 31, 0, 0, 0,
99, 97, 110, 110, 111, 116, 32, 114, 101, 108, 101, 97, 115, 101, 32, 117,
110, 45, 97, 99, 113, 117, 105, 114, 101, 100, 32, 108, 111, 99, 107, 105,
1, 0, 0, 0, 40, 2, 0, 0, 0, 117, 5, 0, 0, 0, 99, 111,
117, 110, 116, 117, 12, 0, 0, 0, 82, 117, 110, 116, 105, 109, 101, 69,
114, 114, 111, 114, 40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101,
108, 102, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0,
0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108,
105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 7,
0, 0, 0, 114, 101, 108, 101, 97, 115, 101, 255, 0, 0, 0, 115, 6,
0, 0, 0, 0, 1, 15, 1, 15, 1, 117, 24, 0, 0, 0, 95, 68,
117, 109, 109, 121, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107, 46, 114,
101, 108, 101, 97, 115, 101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 4, 0, 0, 0, 67, 0, 0, 0, 115, 23, 0, 0, 0,
100, 1, 0, 124, 0, 0, 106, 0, 0, 116, 1, 0, 124, 0, 0, 131,
1, 0, 102, 2, 0, 22, 83, 40, 2, 0, 0, 0, 78, 117, 26, 0,
0, 0, 95, 68, 117, 109, 109, 121, 77, 111, 100, 117, 108, 101, 76, 111,
99, 107, 40, 37, 114, 41, 32, 97, 116, 32, 37, 100, 40, 2, 0, 0,
0, 117, 4, 0, 0, 0, 110, 97, 109, 101, 117, 2, 0, 0, 0, 105,
100, 40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 40,
0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102,
114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46,
95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 8, 0, 0, 0,
95, 95, 114, 101, 112, 114, 95, 95, 4, 1, 0, 0, 115, 2, 0, 0,
0, 0, 1, 117, 25, 0, 0, 0, 95, 68, 117, 109, 109, 121, 77, 111,
100, 117, 108, 101, 76, 111, 99, 107, 46, 95, 95, 114, 101, 112, 114, 95,
95, 78, 40, 8, 0, 0, 0, 117, 8, 0, 0, 0, 95, 95, 110, 97,
109, 101, 95, 95, 117, 10, 0, 0, 0, 95, 95, 109, 111, 100, 117, 108,
101, 95, 95, 117, 12, 0, 0, 0, 95, 95, 113, 117, 97, 108, 110, 97,
109, 101, 95, 95, 117, 7, 0, 0, 0, 95, 95, 100, 111, 99, 95, 95,
117, 8, 0, 0, 0, 95, 95, 105, 110, 105, 116, 95, 95, 117, 7, 0,
0, 0, 97, 99, 113, 117, 105, 114, 101, 117, 7, 0, 0, 0, 114, 101,
108, 101, 97, 115, 101, 117, 8, 0, 0, 0, 95, 95, 114, 101, 112, 114,
95, 95, 40, 1, 0, 0, 0, 117, 10, 0, 0, 0, 95, 95, 108, 111,
99, 97, 108, 115, 95, 95, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 16, 0, 0, 0, 95, 68, 117, 109, 109, 121, 77, 111, 100,
117, 108, 101, 76, 111, 99, 107, 243, 0, 0, 0, 115, 10, 0, 0, 0,
16, 2, 6, 2, 12, 4, 12, 4, 12, 5, 117, 16, 0, 0, 0, 95,
68, 117, 109, 109, 121, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107, 99,
1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 11, 0, 0, 0,
3, 0, 0, 0, 115, 142, 0, 0, 0, 100, 3, 0, 125, 1, 0, 121,
17, 0, 116, 1, 0, 136, 0, 0, 25, 131, 0, 0, 125, 1, 0, 87,
110, 18, 0, 4, 116, 2, 0, 107, 10, 0, 114, 43, 0, 1, 1, 1,
89, 110, 1, 0, 88, 124, 1, 0, 100, 3, 0, 107, 8, 0, 114, 138,
0, 116, 3, 0, 100, 3, 0, 107, 8, 0, 114, 83, 0, 116, 4, 0,
136, 0, 0, 131, 1, 0, 125, 1, 0, 110, 12, 0, 116, 5, 0, 136,
0, 0, 131, 1, 0, 125, 1, 0, 135, 0, 0, 102, 1, 0, 100, 1,
0, 100, 2, 0, 134, 0, 0, 125, 2, 0, 116, 6, 0, 106, 7, 0,
124, 1, 0, 124, 2, 0, 131, 2, 0, 116, 1, 0, 136, 0, 0, 60,
110, 0, 0, 124, 1, 0, 83, 40, 4, 0, 0, 0, 117, 109, 0, 0,
0, 71, 101, 116, 32, 111, 114, 32, 99, 114, 101, 97, 116, 101, 32, 116,
104, 101, 32, 109, 111, 100, 117, 108, 101, 32, 108, 111, 99, 107, 32, 102,
111, 114, 32, 97, 32, 103, 105, 118, 101, 110, 32, 109, 111, 100, 117, 108,
101, 32, 110, 97, 109, 101, 46, 10, 10, 32, 32, 32, 32, 83, 104, 111,
117, 108, 100, 32, 111, 110, 108, 121, 32, 98, 101, 32, 99, 97, 108, 108,
101, 100, 32, 119, 105, 116, 104, 32, 116, 104, 101, 32, 105, 109, 112, 111,
114, 116, 32, 108, 111, 99, 107, 32, 116, 97, 107, 101, 110, 46, 99, 1,
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 19,
0, 0, 0, 115, 11, 0, 0, 0, 116, 0, 0, 136, 0, 0, 61, 100,
0, 0, 83, 40, 1, 0, 0, 0, 78, 40, 1, 0, 0, 0, 117, 13,
0, 0, 0, 95, 109, 111, 100, 117, 108, 101, 95, 108, 111, 99, 107, 115,
40, 1, 0, 0, 0, 117, 1, 0, 0, 0, 95, 40, 1, 0, 0, 0,
117, 4, 0, 0, 0, 110, 97, 109, 101, 40, 0, 0, 0, 0, 117, 29,
0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114,
116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62,
117, 2, 0, 0, 0, 99, 98, 24, 1, 0, 0, 115, 2, 0, 0, 0,
0, 1, 117, 28, 0, 0, 0, 95, 103, 101, 116, 95, 109, 111, 100, 117,
108, 101, 95, 108, 111, 99, 107, 46, 60, 108, 111, 99, 97, 108, 115, 62,
46, 99, 98, 78, 40, 8, 0, 0, 0, 117, 4, 0, 0, 0, 78, 111,
110, 101, 117, 13, 0, 0, 0, 95, 109, 111, 100, 117, 108, 101, 95, 108,
111, 99, 107, 115, 117, 8, 0, 0, 0, 75, 101, 121, 69, 114, 114, 111,
114, 117, 7, 0, 0, 0, 95, 116, 104, 114, 101, 97, 100, 117, 16, 0,
0, 0, 95, 68, 117, 109, 109, 121, 77, 111, 100, 117, 108, 101, 76, 111,
99, 107, 117, 11, 0, 0, 0, 95, 77, 111, 100, 117, 108, 101, 76, 111,
99, 107, 117, 8, 0, 0, 0, 95, 119, 101, 97, 107, 114, 101, 102, 117,
3, 0, 0, 0, 114, 101, 102, 40, 3, 0, 0, 0, 117, 4, 0, 0,
0, 110, 97, 109, 101, 117, 4, 0, 0, 0, 108, 111, 99, 107, 117, 2,
0, 0, 0, 99, 98, 40, 0, 0, 0, 0, 40, 1, 0, 0, 0, 117,
4, 0, 0, 0, 110, 97, 109, 101, 117, 29, 0, 0, 0, 60, 102, 114,
111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95,
98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 16, 0, 0, 0, 95,
103, 101, 116, 95, 109, 111, 100, 117, 108, 101, 95, 108, 111, 99, 107, 10,
1, 0, 0, 115, 24, 0, 0, 0, 0, 4, 6, 1, 3, 1, 17, 1,
13, 1, 5, 1, 12, 1, 12, 1, 15, 2, 12, 1, 18, 2, 25, 1,
117, 16, 0, 0, 0, 95, 103, 101, 116, 95, 109, 111, 100, 117, 108, 101,
95, 108, 111, 99, 107, 99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0,
0, 0, 11, 0, 0, 0, 67, 0, 0, 0, 115, 71, 0, 0, 0, 116,
0, 0, 124, 0, 0, 131, 1, 0, 125, 1, 0, 116, 1, 0, 106, 2,
0, 131, 0, 0, 1, 121, 14, 0, 124, 1, 0, 106, 3, 0, 131, 0,
0, 1, 87, 110, 18, 0, 4, 116, 4, 0, 107, 10, 0, 114, 56, 0,
1, 1, 1, 89, 110, 11, 0, 88, 124, 1, 0, 106, 5, 0, 131, 0,
0, 1, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 21, 1, 0, 0,
82, 101, 108, 101, 97, 115, 101, 32, 116, 104, 101, 32, 103, 108, 111, 98,
97, 108, 32, 105, 109, 112, 111, 114, 116, 32, 108, 111, 99, 107, 44, 32,
97, 110, 100, 32, 97, 99, 113, 117, 105, 114, 101, 115, 32, 116, 104, 101,
110, 32, 114, 101, 108, 101, 97, 115, 101, 32, 116, 104, 101, 10, 32, 32,
32, 32, 109, 111, 100, 117, 108, 101, 32, 108, 111, 99, 107, 32, 102, 111,
114, 32, 97, 32, 103, 105, 118, 101, 110, 32, 109, 111, 100, 117, 108, 101,
32, 110, 97, 109, 101, 46, 10, 32, 32, 32, 32, 84, 104, 105, 115, 32,
105, 115, 32, 117, 115, 101, 100, 32, 116, 111, 32, 101, 110, 115, 117, 114,
101, 32, 97, 32, 109, 111, 100, 117, 108, 101, 32, 105, 115, 32, 99, 111,
109, 112, 108, 101, 116, 101, 108, 121, 32, 105, 110, 105, 116, 105, 97, 108,
105, 122, 101, 100, 44, 32, 105, 110, 32, 116, 104, 101, 10, 32, 32, 32,
32, 101, 118, 101, 110, 116, 32, 105, 116, 32, 105, 115, 32, 98, 101, 105,
110, 103, 32, 105, 109, 112, 111, 114, 116, 101, 100, 32, 98, 121, 32, 97,
110, 111, 116, 104, 101, 114, 32, 116, 104, 114, 101, 97, 100, 46, 10, 10,
32, 32, 32, 32, 83, 104, 111, 117, 108, 100, 32, 111, 110, 108, 121, 32,
98, 101, 32, 99, 97, 108, 108, 101, 100, 32, 119, 105, 116, 104, 32, 116,
104, 101, 32, 105, 109, 112, 111, 114, 116, 32, 108, 111, 99, 107, 32, 116,
97, 107, 101, 110, 46, 78, 40, 6, 0, 0, 0, 117, 16, 0, 0, 0,
95, 103, 101, 116, 95, 109, 111, 100, 117, 108, 101, 95, 108, 111, 99, 107,
117, 4, 0, 0, 0, 95, 105, 109, 112, 117, 12, 0, 0, 0, 114, 101,
108, 101, 97, 115, 101, 95, 108, 111, 99, 107, 117, 7, 0, 0, 0, 97,
99, 113, 117, 105, 114, 101, 117, 14, 0, 0, 0, 95, 68, 101, 97, 100,
108, 111, 99, 107, 69, 114, 114, 111, 114, 117, 7, 0, 0, 0, 114, 101,
108, 101, 97, 115, 101, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 110,
97, 109, 101, 117, 4, 0, 0, 0, 108, 111, 99, 107, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 19, 0, 0, 0, 95, 108, 111,
99, 107, 95, 117, 110, 108, 111, 99, 107, 95, 109, 111, 100, 117, 108, 101,
29, 1, 0, 0, 115, 14, 0, 0, 0, 0, 7, 12, 1, 10, 1, 3,
1, 14, 1, 13, 3, 5, 2, 117, 19, 0, 0, 0, 95, 108, 111, 99,
107, 95, 117, 110, 108, 111, 99, 107, 95, 109, 111, 100, 117, 108, 101, 99,
1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0,
79, 0, 0, 0, 115, 13, 0, 0, 0, 124, 0, 0, 124, 1, 0, 124,
2, 0, 142, 0, 0, 83, 40, 1, 0, 0, 0, 117, 46, 1, 0, 0,
114, 101, 109, 111, 118, 101, 95, 105, 109, 112, 111, 114, 116, 108, 105, 98,
95, 102, 114, 97, 109, 101, 115, 32, 105, 110, 32, 105, 109, 112, 111, 114,
116, 46, 99, 32, 119, 105, 108, 108, 32, 97, 108, 119, 97, 121, 115, 32,
114, 101, 109, 111, 118, 101, 32, 115, 101, 113, 117, 101, 110, 99, 101, 115,
10, 32, 32, 32, 32, 111, 102, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 32, 102, 114, 97, 109, 101, 115, 32, 116, 104, 97, 116, 32, 101, 110,
100, 32, 119, 105, 116, 104, 32, 97, 32, 99, 97, 108, 108, 32, 116, 111,
32, 116, 104, 105, 115, 32, 102, 117, 110, 99, 116, 105, 111, 110, 10, 10,
32, 32, 32, 32, 85, 115, 101, 32, 105, 116, 32, 105, 110, 115, 116, 101,
97, 100, 32, 111, 102, 32, 97, 32, 110, 111, 114, 109, 97, 108, 32, 99,
97, 108, 108, 32, 105, 110, 32, 112, 108, 97, 99, 101, 115, 32, 119, 104,
101, 114, 101, 32, 105, 110, 99, 108, 117, 100, 105, 110, 103, 32, 116, 104,
101, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 10, 32, 32, 32, 32,
102, 114, 97, 109, 101, 115, 32, 105, 110, 116, 114, 111, 100, 117, 99, 101,
115, 32, 117, 110, 119, 97, 110, 116, 101, 100, 32, 110, 111, 105, 115, 101,
32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 116, 114, 97, 99, 101, 98,
97, 99, 107, 32, 40, 101, 46, 103, 46, 32, 119, 104, 101, 110, 32, 101,
120, 101, 99, 117, 116, 105, 110, 103, 10, 32, 32, 32, 32, 109, 111, 100,
117, 108, 101, 32, 99, 111, 100, 101, 41, 10, 32, 32, 32, 32, 40, 0,
0, 0, 0, 40, 3, 0, 0, 0, 117, 1, 0, 0, 0, 102, 117, 4,
0, 0, 0, 97, 114, 103, 115, 117, 4, 0, 0, 0, 107, 119, 100, 115,
40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 25, 0, 0,
0, 95, 99, 97, 108, 108, 95, 119, 105, 116, 104, 95, 102, 114, 97, 109,
101, 115, 95, 114, 101, 109, 111, 118, 101, 100, 49, 1, 0, 0, 115, 2,
0, 0, 0, 0, 8, 117, 25, 0, 0, 0, 95, 99, 97, 108, 108, 95,
119, 105, 116, 104, 95, 102, 114, 97, 109, 101, 115, 95, 114, 101, 109, 111,
118, 101, 100, 105, 158, 12, 0, 0, 117, 1, 0, 0, 0, 13, 105, 16,
0, 0, 0, 117, 1, 0, 0, 0, 10, 105, 24, 0, 0, 0, 99, 1,
0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 99,
0, 0, 0, 115, 29, 0, 0, 0, 124, 0, 0, 93, 19, 0, 125, 1,
0, 116, 0, 0, 124, 1, 0, 63, 100, 0, 0, 64, 86, 1, 113, 3,
0, 100, 1, 0, 83, 40, 2, 0, 0, 0, 105, 255, 0, 0, 0, 78,
40, 1, 0, 0, 0, 117, 17, 0, 0, 0, 95, 82, 65, 87, 95, 77,
65, 71, 73, 67, 95, 78, 85, 77, 66, 69, 82, 40, 2, 0, 0, 0,
117, 2, 0, 0, 0, 46, 48, 117, 1, 0, 0, 0, 110, 40, 0, 0,
0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111,
122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98,
111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 9, 0, 0, 0, 60, 103,
101, 110, 101, 120, 112, 114, 62, 150, 1, 0, 0, 115, 2, 0, 0, 0,
6, 0, 117, 9, 0, 0, 0, 60, 103, 101, 110, 101, 120, 112, 114, 62,
105, 0, 0, 0, 0, 105, 25, 0, 0, 0, 105, 8, 0, 0, 0, 117,
11, 0, 0, 0, 95, 95, 112, 121, 99, 97, 99, 104, 101, 95, 95, 117,
3, 0, 0, 0, 46, 112, 121, 117, 4, 0, 0, 0, 46, 112, 121, 99,
117, 4, 0, 0, 0, 46, 112, 121, 111, 99, 2, 0, 0, 0, 0, 0,
0, 0, 11, 0, 0, 0, 6, 0, 0, 0, 67, 0, 0, 0, 115, 180,
0, 0, 0, 124, 1, 0, 100, 5, 0, 107, 8, 0, 114, 25, 0, 116,
1, 0, 106, 2, 0, 106, 3, 0, 12, 110, 3, 0, 124, 1, 0, 125,
2, 0, 124, 2, 0, 114, 46, 0, 116, 4, 0, 125, 3, 0, 110, 6,
0, 116, 5, 0, 125, 3, 0, 116, 6, 0, 124, 0, 0, 131, 1, 0,
92, 2, 0, 125, 4, 0, 125, 5, 0, 124, 5, 0, 106, 7, 0, 100,
1, 0, 131, 1, 0, 92, 3, 0, 125, 6, 0, 125, 7, 0, 125, 8,
0, 116, 1, 0, 106, 8, 0, 106, 9, 0, 125, 9, 0, 124, 9, 0,
100, 5, 0, 107, 8, 0, 114, 133, 0, 116, 10, 0, 100, 2, 0, 131,
1, 0, 130, 1, 0, 110, 0, 0, 100, 3, 0, 106, 11, 0, 124, 6,
0, 124, 7, 0, 124, 9, 0, 124, 3, 0, 100, 4, 0, 25, 103, 4,
0, 131, 1, 0, 125, 10, 0, 116, 12, 0, 124, 4, 0, 116, 13, 0,
124, 10, 0, 131, 3, 0, 83, 40, 6, 0, 0, 0, 117, 244, 1, 0,
0, 71, 105, 118, 101, 110, 32, 116, 104, 101, 32, 112, 97, 116, 104, 32,
116, 111, 32, 97, 32, 46, 112, 121, 32, 102, 105, 108, 101, 44, 32, 114,
101, 116, 117, 114, 110, 32, 116, 104, 101, 32, 112, 97, 116, 104, 32, 116,
111, 32, 105, 116, 115, 32, 46, 112, 121, 99, 47, 46, 112, 121, 111, 32,
102, 105, 108, 101, 46, 10, 10, 32, 32, 32, 32, 84, 104, 101, 32, 46,
112, 121, 32, 102, 105, 108, 101, 32, 100, 111, 101, 115, 32, 110, 111, 116,
32, 110, 101, 101, 100, 32, 116, 111, 32, 101, 120, 105, 115, 116, 59, 32,
116, 104, 105, 115, 32, 115, 105, 109, 112, 108, 121, 32, 114, 101, 116, 117,
114, 110, 115, 32, 116, 104, 101, 32, 112, 97, 116, 104, 32, 116, 111, 32,
116, 104, 101, 10, 32, 32, 32, 32, 46, 112, 121, 99, 47, 46, 112, 121,
111, 32, 102, 105, 108, 101, 32, 99, 97, 108, 99, 117, 108, 97, 116, 101,
100, 32, 97, 115, 32, 105, 102, 32, 116, 104, 101, 32, 46, 112, 121, 32,
102, 105, 108, 101, 32, 119, 101, 114, 101, 32, 105, 109, 112, 111, 114, 116,
101, 100, 46, 32, 32, 84, 104, 101, 32, 101, 120, 116, 101, 110, 115, 105,
111, 110, 10, 32, 32, 32, 32, 119, 105, 108, 108, 32, 98, 101, 32, 46,
112, 121, 99, 32, 117, 110, 108, 101, 115, 115, 32, 115, 121, 115, 46, 102,
108, 97, 103, 115, 46, 111, 112, 116, 105, 109, 105, 122, 101, 32, 105, 115,
32, 110, 111, 110, 45, 122, 101, 114, 111, 44, 32, 116, 104, 101, 110, 32,
105, 116, 32, 119, 105, 108, 108, 32, 98, 101, 32, 46, 112, 121, 111, 46,
10, 10, 32, 32, 32, 32, 73, 102, 32, 100, 101, 98, 117, 103, 95, 111,
118, 101, 114, 114, 105, 100, 101, 32, 105, 115, 32, 110, 111, 116, 32, 78,
111, 110, 101, 44, 32, 116, 104, 101, 110, 32, 105, 116, 32, 109, 117, 115,
116, 32, 98, 101, 32, 97, 32, 98, 111, 111, 108, 101, 97, 110, 32, 97,
110, 100, 32, 105, 115, 32, 117, 115, 101, 100, 32, 105, 110, 10, 32, 32,
32, 32, 112, 108, 97, 99, 101, 32, 111, 102, 32, 115, 121, 115, 46, 102,
108, 97, 103, 115, 46, 111, 112, 116, 105, 109, 105, 122, 101, 46, 10, 10,
32, 32, 32, 32, 73, 102, 32, 115, 121, 115, 46, 105, 109, 112, 108, 101,
109, 101, 110, 116, 97, 116, 105, 111, 110, 46, 99, 97, 99, 104, 101, 95,
116, 97, 103, 32, 105, 115, 32, 78, 111, 110, 101, 32, 116, 104, 101, 110,
32, 78, 111, 116, 73, 109, 112, 108, 101, 109, 101, 110, 116, 101, 100, 69,
114, 114, 111, 114, 32, 105, 115, 32, 114, 97, 105, 115, 101, 100, 46, 10,
10, 32, 32, 32, 32, 117, 1, 0, 0, 0, 46, 117, 36, 0, 0, 0,
115, 121, 115, 46, 105, 109, 112, 108, 101, 109, 101, 110, 116, 97, 116, 105,
111, 110, 46, 99, 97, 99, 104, 101, 95, 116, 97, 103, 32, 105, 115, 32,
78, 111, 110, 101, 117, 0, 0, 0, 0, 105, 0, 0, 0, 0, 78, 40,
14, 0, 0, 0, 117, 4, 0, 0, 0, 78, 111, 110, 101, 117, 3, 0,
0, 0, 115, 121, 115, 117, 5, 0, 0, 0, 102, 108, 97, 103, 115, 117,
8, 0, 0, 0, 111, 112, 116, 105, 109, 105, 122, 101, 117, 23, 0, 0,
0, 68, 69, 66, 85, 71, 95, 66, 89, 84, 69, 67, 79, 68, 69, 95,
83, 85, 70, 70, 73, 88, 69, 83, 117, 27, 0, 0, 0, 79, 80, 84,
73, 77, 73, 90, 69, 68, 95, 66, 89, 84, 69, 67, 79, 68, 69, 95,
83, 85, 70, 70, 73, 88, 69, 83, 117, 11, 0, 0, 0, 95, 112, 97,
116, 104, 95, 115, 112, 108, 105, 116, 117, 9, 0, 0, 0, 112, 97, 114,
116, 105, 116, 105, 111, 110, 117, 14, 0, 0, 0, 105, 109, 112, 108, 101,
109, 101, 110, 116, 97, 116, 105, 111, 110, 117, 9, 0, 0, 0, 99, 97,
99, 104, 101, 95, 116, 97, 103, 117, 19, 0, 0, 0, 78, 111, 116, 73,
109, 112, 108, 101, 109, 101, 110, 116, 101, 100, 69, 114, 114, 111, 114, 117,
4, 0, 0, 0, 106, 111, 105, 110, 117, 10, 0, 0, 0, 95, 112, 97,
116, 104, 95, 106, 111, 105, 110, 117, 8, 0, 0, 0, 95, 80, 89, 67,
65, 67, 72, 69, 40, 11, 0, 0, 0, 117, 4, 0, 0, 0, 112, 97,
116, 104, 117, 14, 0, 0, 0, 100, 101, 98, 117, 103, 95, 111, 118, 101,
114, 114, 105, 100, 101, 117, 5, 0, 0, 0, 100, 101, 98, 117, 103, 117,
8, 0, 0, 0, 115, 117, 102, 102, 105, 120, 101, 115, 117, 4, 0, 0,
0, 104, 101, 97, 100, 117, 4, 0, 0, 0, 116, 97, 105, 108, 117, 13,
0, 0, 0, 98, 97, 115, 101, 95, 102, 105, 108, 101, 110, 97, 109, 101,
117, 3, 0, 0, 0, 115, 101, 112, 117, 1, 0, 0, 0, 95, 117, 3,
0, 0, 0, 116, 97, 103, 117, 8, 0, 0, 0, 102, 105, 108, 101, 110,
97, 109, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
17, 0, 0, 0, 99, 97, 99, 104, 101, 95, 102, 114, 111, 109, 95, 115,
111, 117, 114, 99, 101, 159, 1, 0, 0, 115, 22, 0, 0, 0, 0, 13,
31, 1, 6, 1, 9, 2, 6, 1, 18, 1, 24, 1, 12, 1, 12, 1,
15, 1, 31, 1, 117, 17, 0, 0, 0, 99, 97, 99, 104, 101, 95, 102,
114, 111, 109, 95, 115, 111, 117, 114, 99, 101, 99, 1, 0, 0, 0, 0,
0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 67, 0, 0, 0, 115,
193, 0, 0, 0, 116, 0, 0, 106, 1, 0, 106, 2, 0, 100, 7, 0,
107, 8, 0, 114, 33, 0, 116, 4, 0, 100, 1, 0, 131, 1, 0, 130,
1, 0, 110, 0, 0, 116, 5, 0, 124, 0, 0, 131, 1, 0, 92, 2,
0, 125, 1, 0, 125, 2, 0, 116, 5, 0, 124, 1, 0, 131, 1, 0,
92, 2, 0, 125, 1, 0, 125, 3, 0, 124, 3, 0, 116, 6, 0, 107,
3, 0, 114, 108, 0, 116, 7, 0, 100, 2, 0, 106, 8, 0, 116, 6,
0, 124, 0, 0, 131, 2, 0, 131, 1, 0, 130, 1, 0, 110, 0, 0,
124, 2, 0, 106, 9, 0, 100, 3, 0, 131, 1, 0, 100, 4, 0, 107,
3, 0, 114, 153, 0, 116, 7, 0, 100, 5, 0, 106, 8, 0, 124, 2,
0, 131, 1, 0, 131, 1, 0, 130, 1, 0, 110, 0, 0, 124, 2, 0,
106, 10, 0, 100, 3, 0, 131, 1, 0, 100, 6, 0, 25, 125, 4, 0,
116, 11, 0, 124, 1, 0, 124, 4, 0, 116, 12, 0, 100, 6, 0, 25,
23, 131, 2, 0, 83, 40, 8, 0, 0, 0, 117, 121, 1, 0, 0, 71,
105, 118, 101, 110, 32, 116, 104, 101, 32, 112, 97, 116, 104, 32, 116, 111,
32, 97, 32, 46, 112, 121, 99, 46, 47, 46, 112, 121, 111, 32, 102, 105,
108, 101, 44, 32, 114, 101, 116, 117, 114, 110, 32, 116, 104, 101, 32, 112,
97, 116, 104, 32, 116, 111, 32, 105, 116, 115, 32, 46, 112, 121, 32, 102,
105, 108, 101, 46, 10, 10, 32, 32, 32, 32, 84, 104, 101, 32, 46, 112,
121, 99, 47, 46, 112, 121, 111, 32, 102, 105, 108, 101, 32, 100, 111, 101,
115, 32, 110, 111, 116, 32, 110, 101, 101, 100, 32, 116, 111, 32, 101, 120,
105, 115, 116, 59, 32, 116, 104, 105, 115, 32, 115, 105, 109, 112, 108, 121,
32, 114, 101, 116, 117, 114, 110, 115, 32, 116, 104, 101, 32, 112, 97, 116,
104, 32, 116, 111, 10, 32, 32, 32, 32, 116, 104, 101, 32, 46, 112, 121,
32, 102, 105, 108, 101, 32, 99, 97, 108, 99, 117, 108, 97, 116, 101, 100,
32, 116, 111, 32, 99, 111, 114, 114, 101, 115, 112, 111, 110, 100, 32, 116,
111, 32, 116, 104, 101, 32, 46, 112, 121, 99, 47, 46, 112, 121, 111, 32,
102, 105, 108, 101, 46, 32, 32, 73, 102, 32, 112, 97, 116, 104, 32, 100,
111, 101, 115, 10, 32, 32, 32, 32, 110, 111, 116, 32, 99, 111, 110, 102,
111, 114, 109, 32, 116, 111, 32, 80, 69, 80, 32, 51, 49, 52, 55, 32,
102, 111, 114, 109, 97, 116, 44, 32, 86, 97, 108, 117, 101, 69, 114, 114,
111, 114, 32, 119, 105, 108, 108, 32, 98, 101, 32, 114, 97, 105, 115, 101,
100, 46, 32, 73, 102, 10, 32, 32, 32, 32, 115, 121, 115, 46, 105, 109,
112, 108, 101, 109, 101, 110, 116, 97, 116, 105, 111, 110, 46, 99, 97, 99,
104, 101, 95, 116, 97, 103, 32, 105, 115, 32, 78, 111, 110, 101, 32, 116,
104, 101, 110, 32, 78, 111, 116, 73, 109, 112, 108, 101, 109, 101, 110, 116,
101, 100, 69, 114, 114, 111, 114, 32, 105, 115, 32, 114, 97, 105, 115, 101,
100, 46, 10, 10, 32, 32, 32, 32, 117, 36, 0, 0, 0, 115, 121, 115,
46, 105, 109, 112, 108, 101, 109, 101, 110, 116, 97, 116, 105, 111, 110, 46,
99, 97, 99, 104, 101, 95, 116, 97, 103, 32, 105, 115, 32, 78, 111, 110,
101, 117, 37, 0, 0, 0, 123, 125, 32, 110, 111, 116, 32, 98, 111, 116,
116, 111, 109, 45, 108, 101, 118, 101, 108, 32, 100, 105, 114, 101, 99, 116,
111, 114, 121, 32, 105, 110, 32, 123, 33, 114, 125, 117, 1, 0, 0, 0,
46, 105, 2, 0, 0, 0, 117, 28, 0, 0, 0, 101, 120, 112, 101, 99,
116, 101, 100, 32, 111, 110, 108, 121, 32, 50, 32, 100, 111, 116, 115, 32,
105, 110, 32, 123, 33, 114, 125, 105, 0, 0, 0, 0, 78, 40, 13, 0,
0, 0, 117, 3, 0, 0, 0, 115, 121, 115, 117, 14, 0, 0, 0, 105,
109, 112, 108, 101, 109, 101, 110, 116, 97, 116, 105, 111, 110, 117, 9, 0,
0, 0, 99, 97, 99, 104, 101, 95, 116, 97, 103, 117, 4, 0, 0, 0,
78, 111, 110, 101, 117, 19, 0, 0, 0, 78, 111, 116, 73, 109, 112, 108,
101, 109, 101, 110, 116, 101, 100, 69, 114, 114, 111, 114, 117, 11, 0, 0,
0, 95, 112, 97, 116, 104, 95, 115, 112, 108, 105, 116, 117, 8, 0, 0,
0, 95, 80, 89, 67, 65, 67, 72, 69, 117, 10, 0, 0, 0, 86, 97,
108, 117, 101, 69, 114, 114, 111, 114, 117, 6, 0, 0, 0, 102, 111, 114,
109, 97, 116, 117, 5, 0, 0, 0, 99, 111, 117, 110, 116, 117, 9, 0,
0, 0, 112, 97, 114, 116, 105, 116, 105, 111, 110, 117, 10, 0, 0, 0,
95, 112, 97, 116, 104, 95, 106, 111, 105, 110, 117, 15, 0, 0, 0, 83,
79, 85, 82, 67, 69, 95, 83, 85, 70, 70, 73, 88, 69, 83, 40, 5,
0, 0, 0, 117, 4, 0, 0, 0, 112, 97, 116, 104, 117, 4, 0, 0,
0, 104, 101, 97, 100, 117, 16, 0, 0, 0, 112, 121, 99, 97, 99, 104,
101, 95, 102, 105, 108, 101, 110, 97, 109, 101, 117, 7, 0, 0, 0, 112,
121, 99, 97, 99, 104, 101, 117, 13, 0, 0, 0, 98, 97, 115, 101, 95,
102, 105, 108, 101, 110, 97, 109, 101, 40, 0, 0, 0, 0, 40, 0, 0,
0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105,
109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116,
114, 97, 112, 62, 117, 17, 0, 0, 0, 115, 111, 117, 114, 99, 101, 95,
102, 114, 111, 109, 95, 99, 97, 99, 104, 101, 186, 1, 0, 0, 115, 24,
0, 0, 0, 0, 9, 18, 1, 15, 1, 18, 1, 18, 1, 12, 1, 9,
1, 18, 1, 21, 1, 9, 1, 15, 1, 19, 1, 117, 17, 0, 0, 0,
115, 111, 117, 114, 99, 101, 95, 102, 114, 111, 109, 95, 99, 97, 99, 104,
101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 13, 0,
0, 0, 67, 0, 0, 0, 115, 164, 0, 0, 0, 116, 0, 0, 124, 0,
0, 131, 1, 0, 100, 1, 0, 107, 2, 0, 114, 22, 0, 100, 6, 0,
83, 124, 0, 0, 106, 2, 0, 100, 2, 0, 131, 1, 0, 92, 3, 0,
125, 1, 0, 125, 2, 0, 125, 3, 0, 124, 1, 0, 12, 115, 81, 0,
124, 3, 0, 106, 3, 0, 131, 0, 0, 100, 7, 0, 100, 8, 0, 133,
2, 0, 25, 100, 5, 0, 107, 3, 0, 114, 85, 0, 124, 0, 0, 83,
121, 16, 0, 116, 4, 0, 124, 0, 0, 131, 1, 0, 125, 4, 0, 87,
110, 40, 0, 4, 116, 5, 0, 116, 6, 0, 102, 2, 0, 107, 10, 0,
114, 143, 0, 1, 1, 1, 124, 0, 0, 100, 6, 0, 100, 9, 0, 133,
2, 0, 25, 125, 4, 0, 89, 110, 1, 0, 88, 116, 7, 0, 124, 4,
0, 131, 1, 0, 114, 160, 0, 124, 4, 0, 83, 124, 0, 0, 83, 40,
10, 0, 0, 0, 117, 188, 0, 0, 0, 67, 111, 110, 118, 101, 114, 116,
32, 97, 32, 98, 121, 116, 101, 99, 111, 100, 101, 32, 102, 105, 108, 101,
32, 112, 97, 116, 104, 32, 116, 111, 32, 97, 32, 115, 111, 117, 114, 99,
101, 32, 112, 97, 116, 104, 32, 40, 105, 102, 32, 112, 111, 115, 115, 105,
98, 108, 101, 41, 46, 10, 10, 32, 32, 32, 32, 84, 104, 105, 115, 32,
102, 117, 110, 99, 116, 105, 111, 110, 32, 101, 120, 105, 115, 116, 115, 32,
112, 117, 114, 101, 108, 121, 32, 102, 111, 114, 32, 98, 97, 99, 107, 119,
97, 114, 100, 115, 45, 99, 111, 109, 112, 97, 116, 105, 98, 105, 108, 105,
116, 121, 32, 102, 111, 114, 10, 32, 32, 32, 32, 80, 121, 73, 109, 112,
111, 114, 116, 95, 69, 120, 101, 99, 67, 111, 100, 101, 77, 111, 100, 117,
108, 101, 87, 105, 116, 104, 70, 105, 108, 101, 110, 97, 109, 101, 115, 40,
41, 32, 105, 110, 32, 116, 104, 101, 32, 67, 32, 65, 80, 73, 46, 10,
10, 32, 32, 32, 32, 105, 0, 0, 0, 0, 117, 1, 0, 0, 0, 46,
105, 3, 0, 0, 0, 105, 1, 0, 0, 0, 117, 2, 0, 0, 0, 112,
121, 78, 105, 253, 255, 255, 255, 105, 255, 255, 255, 255, 105, 255, 255, 255,
255, 40, 8, 0, 0, 0, 117, 3, 0, 0, 0, 108, 101, 110, 117, 4,
0, 0, 0, 78, 111, 110, 101, 117, 10, 0, 0, 0, 114, 112, 97, 114,
116, 105, 116, 105, 111, 110, 117, 5, 0, 0, 0, 108, 111, 119, 101, 114,
117, 17, 0, 0, 0, 115, 111, 117, 114, 99, 101, 95, 102, 114, 111, 109,
95, 99, 97, 99, 104, 101, 117, 19, 0, 0, 0, 78, 111, 116, 73, 109,
112, 108, 101, 109, 101, 110, 116, 101, 100, 69, 114, 114, 111, 114, 117, 10,
0, 0, 0, 86, 97, 108, 117, 101, 69, 114, 114, 111, 114, 117, 12, 0,
0, 0, 95, 112, 97, 116, 104, 95, 105, 115, 102, 105, 108, 101, 40, 5,
0, 0, 0, 117, 13, 0, 0, 0, 98, 121, 116, 101, 99, 111, 100, 101,
95, 112, 97, 116, 104, 117, 4, 0, 0, 0, 114, 101, 115, 116, 117, 1,
0, 0, 0, 95, 117, 9, 0, 0, 0, 101, 120, 116, 101, 110, 115, 105,
111, 110, 117, 11, 0, 0, 0, 115, 111, 117, 114, 99, 101, 95, 112, 97,
116, 104, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0,
0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108,
105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 15,
0, 0, 0, 95, 103, 101, 116, 95, 115, 111, 117, 114, 99, 101, 102, 105,
108, 101, 209, 1, 0, 0, 115, 20, 0, 0, 0, 0, 7, 18, 1, 4,
1, 24, 1, 35, 1, 4, 1, 3, 1, 16, 1, 19, 1, 21, 1, 117,
15, 0, 0, 0, 95, 103, 101, 116, 95, 115, 111, 117, 114, 99, 101, 102,
105, 108, 101, 117, 9, 0, 0, 0, 118, 101, 114, 98, 111, 115, 105, 116,
121, 105, 1, 0, 0, 0, 99, 1, 0, 0, 0, 1, 0, 0, 0, 3,
0, 0, 0, 4, 0, 0, 0, 71, 0, 0, 0, 115, 81, 0, 0, 0,
116, 0, 0, 106, 1, 0, 106, 2, 0, 124, 1, 0, 107, 5, 0, 114,
77, 0, 124, 0, 0, 106, 3, 0, 100, 6, 0, 131, 1, 0, 115, 46,
0, 100, 3, 0, 124, 0, 0, 23, 125, 0, 0, 110, 0, 0, 116, 4,
0, 124, 0, 0, 106, 5, 0, 124, 2, 0, 140, 0, 0, 100, 4, 0,
116, 0, 0, 106, 6, 0, 131, 1, 1, 1, 110, 0, 0, 100, 5, 0,
83, 40, 7, 0, 0, 0, 117, 61, 0, 0, 0, 80, 114, 105, 110, 116,
32, 116, 104, 101, 32, 109, 101, 115, 115, 97, 103, 101, 32, 116, 111, 32,
115, 116, 100, 101, 114, 114, 32, 105, 102, 32, 45, 118, 47, 80, 89, 84,
72, 79, 78, 86, 69, 82, 66, 79, 83, 69, 32, 105, 115, 32, 116, 117,
114, 110, 101, 100, 32, 111, 110, 46, 117, 1, 0, 0, 0, 35, 117, 7,
0, 0, 0, 105, 109, 112, 111, 114, 116, 32, 117, 2, 0, 0, 0, 35,
32, 117, 4, 0, 0, 0, 102, 105, 108, 101, 78, 40, 2, 0, 0, 0,
117, 1, 0, 0, 0, 35, 117, 7, 0, 0, 0, 105, 109, 112, 111, 114,
116, 32, 40, 7, 0, 0, 0, 117, 3, 0, 0, 0, 115, 121, 115, 117,
5, 0, 0, 0, 102, 108, 97, 103, 115, 117, 7, 0, 0, 0, 118, 101,
114, 98, 111, 115, 101, 117, 10, 0, 0, 0, 115, 116, 97, 114, 116, 115,
119, 105, 116, 104, 117, 5, 0, 0, 0, 112, 114, 105, 110, 116, 117, 6,
0, 0, 0, 102, 111, 114, 109, 97, 116, 117, 6, 0, 0, 0, 115, 116,
100, 101, 114, 114, 40, 3, 0, 0, 0, 117, 7, 0, 0, 0, 109, 101,
115, 115, 97, 103, 101, 117, 9, 0, 0, 0, 118, 101, 114, 98, 111, 115,
105, 116, 121, 117, 4, 0, 0, 0, 97, 114, 103, 115, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 16, 0, 0, 0, 95, 118, 101,
114, 98, 111, 115, 101, 95, 109, 101, 115, 115, 97, 103, 101, 228, 1, 0,
0, 115, 8, 0, 0, 0, 0, 2, 18, 1, 15, 1, 13, 1, 117, 16,
0, 0, 0, 95, 118, 101, 114, 98, 111, 115, 101, 95, 109, 101, 115, 115,
97, 103, 101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0,
3, 0, 0, 0, 3, 0, 0, 0, 115, 35, 0, 0, 0, 135, 0, 0,
102, 1, 0, 100, 1, 0, 100, 2, 0, 134, 0, 0, 125, 1, 0, 116,
0, 0, 124, 1, 0, 136, 0, 0, 131, 2, 0, 1, 124, 1, 0, 83,
40, 3, 0, 0, 0, 117, 39, 0, 0, 0, 83, 101, 116, 32, 95, 95,
112, 97, 99, 107, 97, 103, 101, 95, 95, 32, 111, 110, 32, 116, 104, 101,
32, 114, 101, 116, 117, 114, 110, 101, 100, 32, 109, 111, 100, 117, 108, 101,
46, 99, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 4, 0,
0, 0, 31, 0, 0, 0, 115, 101, 0, 0, 0, 136, 0, 0, 124, 0,
0, 124, 1, 0, 142, 0, 0, 125, 2, 0, 116, 0, 0, 124, 2, 0,
100, 1, 0, 100, 0, 0, 131, 3, 0, 100, 0, 0, 107, 8, 0, 114,
97, 0, 124, 2, 0, 106, 2, 0, 124, 2, 0, 95, 3, 0, 116, 4,
0, 124, 2, 0, 100, 2, 0, 131, 2, 0, 115, 97, 0, 124, 2, 0,
106, 3, 0, 106, 5, 0, 100, 3, 0, 131, 1, 0, 100, 4, 0, 25,
124, 2, 0, 95, 3, 0, 113, 97, 0, 110, 0, 0, 124, 2, 0, 83,
40, 5, 0, 0, 0, 78, 117, 11, 0, 0, 0, 95, 95, 112, 97, 99,
107, 97, 103, 101, 95, 95, 117, 8, 0, 0, 0, 95, 95, 112, 97, 116,
104, 95, 95, 117, 1, 0, 0, 0, 46, 105, 0, 0, 0, 0, 40, 6,
0, 0, 0, 117, 7, 0, 0, 0, 103, 101, 116, 97, 116, 116, 114, 117,
4, 0, 0, 0, 78, 111, 110, 101, 117, 8, 0, 0, 0, 95, 95, 110,
97, 109, 101, 95, 95, 117, 11, 0, 0, 0, 95, 95, 112, 97, 99, 107,
97, 103, 101, 95, 95, 117, 7, 0, 0, 0, 104, 97, 115, 97, 116, 116,
114, 117, 10, 0, 0, 0, 114, 112, 97, 114, 116, 105, 116, 105, 111, 110,
40, 3, 0, 0, 0, 117, 4, 0, 0, 0, 97, 114, 103, 115, 117, 6,
0, 0, 0, 107, 119, 97, 114, 103, 115, 117, 6, 0, 0, 0, 109, 111,
100, 117, 108, 101, 40, 1, 0, 0, 0, 117, 3, 0, 0, 0, 102, 120,
110, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 19, 0, 0, 0, 115, 101, 116,
95, 112, 97, 99, 107, 97, 103, 101, 95, 119, 114, 97, 112, 112, 101, 114,
238, 1, 0, 0, 115, 12, 0, 0, 0, 0, 1, 15, 1, 24, 1, 12,
1, 15, 1, 31, 1, 117, 40, 0, 0, 0, 115, 101, 116, 95, 112, 97,
99, 107, 97, 103, 101, 46, 60, 108, 111, 99, 97, 108, 115, 62, 46, 115,
101, 116, 95, 112, 97, 99, 107, 97, 103, 101, 95, 119, 114, 97, 112, 112,
101, 114, 40, 1, 0, 0, 0, 117, 5, 0, 0, 0, 95, 119, 114, 97,
112, 40, 2, 0, 0, 0, 117, 3, 0, 0, 0, 102, 120, 110, 117, 19,
0, 0, 0, 115, 101, 116, 95, 112, 97, 99, 107, 97, 103, 101, 95, 119,
114, 97, 112, 112, 101, 114, 40, 0, 0, 0, 0, 40, 1, 0, 0, 0,
117, 3, 0, 0, 0, 102, 120, 110, 117, 29, 0, 0, 0, 60, 102, 114,
111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95,
98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0, 0, 115,
101, 116, 95, 112, 97, 99, 107, 97, 103, 101, 236, 1, 0, 0, 115, 6,
0, 0, 0, 0, 2, 18, 7, 13, 1, 117, 11, 0, 0, 0, 115, 101,
116, 95, 112, 97, 99, 107, 97, 103, 101, 99, 1, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 115, 35,
0, 0, 0, 135, 0, 0, 102, 1, 0, 100, 1, 0, 100, 2, 0, 134,
0, 0, 125, 1, 0, 116, 0, 0, 124, 1, 0, 136, 0, 0, 131, 2,
0, 1, 124, 1, 0, 83, 40, 3, 0, 0, 0, 117, 38, 0, 0, 0,
83, 101, 116, 32, 95, 95, 108, 111, 97, 100, 101, 114, 95, 95, 32, 111,
110, 32, 116, 104, 101, 32, 114, 101, 116, 117, 114, 110, 101, 100, 32, 109,
111, 100, 117, 108, 101, 46, 99, 1, 0, 0, 0, 0, 0, 0, 0, 4,
0, 0, 0, 4, 0, 0, 0, 31, 0, 0, 0, 115, 49, 0, 0, 0,
136, 0, 0, 124, 0, 0, 124, 1, 0, 124, 2, 0, 142, 1, 0, 125,
3, 0, 116, 0, 0, 124, 3, 0, 100, 1, 0, 131, 2, 0, 115, 45,
0, 124, 0, 0, 124, 3, 0, 95, 1, 0, 110, 0, 0, 124, 3, 0,
83, 40, 2, 0, 0, 0, 78, 117, 10, 0, 0, 0, 95, 95, 108, 111,
97, 100, 101, 114, 95, 95, 40, 2, 0, 0, 0, 117, 7, 0, 0, 0,
104, 97, 115, 97, 116, 116, 114, 117, 10, 0, 0, 0, 95, 95, 108, 111,
97, 100, 101, 114, 95, 95, 40, 4, 0, 0, 0, 117, 4, 0, 0, 0,
115, 101, 108, 102, 117, 4, 0, 0, 0, 97, 114, 103, 115, 117, 6, 0,
0, 0, 107, 119, 97, 114, 103, 115, 117, 6, 0, 0, 0, 109, 111, 100,
117, 108, 101, 40, 1, 0, 0, 0, 117, 3, 0, 0, 0, 102, 120, 110,
40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101,
110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111,
116, 115, 116, 114, 97, 112, 62, 117, 18, 0, 0, 0, 115, 101, 116, 95,
108, 111, 97, 100, 101, 114, 95, 119, 114, 97, 112, 112, 101, 114, 251, 1,
0, 0, 115, 8, 0, 0, 0, 0, 1, 18, 1, 15, 1, 12, 1, 117,
38, 0, 0, 0, 115, 101, 116, 95, 108, 111, 97, 100, 101, 114, 46, 60,
108, 111, 99, 97, 108, 115, 62, 46, 115, 101, 116, 95, 108, 111, 97, 100,
101, 114, 95, 119, 114, 97, 112, 112, 101, 114, 40, 1, 0, 0, 0, 117,
5, 0, 0, 0, 95, 119, 114, 97, 112, 40, 2, 0, 0, 0, 117, 3,
0, 0, 0, 102, 120, 110, 117, 18, 0, 0, 0, 115, 101, 116, 95, 108,
111, 97, 100, 101, 114, 95, 119, 114, 97, 112, 112, 101, 114, 40, 0, 0,
0, 0, 40, 1, 0, 0, 0, 117, 3, 0, 0, 0, 102, 120, 110, 117,
29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111,
114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112,
62, 117, 10, 0, 0, 0, 115, 101, 116, 95, 108, 111, 97, 100, 101, 114,
249, 1, 0, 0, 115, 6, 0, 0, 0, 0, 2, 18, 5, 13, 1, 117,
10, 0, 0, 0, 115, 101, 116, 95, 108, 111, 97, 100, 101, 114, 99, 1,
0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 3,
0, 0, 0, 115, 35, 0, 0, 0, 135, 0, 0, 102, 1, 0, 100, 1,
0, 100, 2, 0, 134, 0, 0, 125, 1, 0, 116, 0, 0, 124, 1, 0,
136, 0, 0, 131, 2, 0, 1, 124, 1, 0, 83, 40, 3, 0, 0, 0,
117, 42, 3, 0, 0, 68, 101, 99, 111, 114, 97, 116, 111, 114, 32, 116,
111, 32, 104, 97, 110, 100, 108, 101, 32, 115, 101, 108, 101, 99, 116, 105,
110, 103, 32, 116, 104, 101, 32, 112, 114, 111, 112, 101, 114, 32, 109, 111,
100, 117, 108, 101, 32, 102, 111, 114, 32, 108, 111, 97, 100, 101, 114, 115,
46, 10, 10, 32, 32, 32, 32, 84, 104, 101, 32, 100, 101, 99, 111, 114,
97, 116, 101, 100, 32, 102, 117, 110, 99, 116, 105, 111, 110, 32, 105, 115,
32, 112, 97, 115, 115, 101, 100, 32, 116, 104, 101, 32, 109, 111, 100, 117,
108, 101, 32, 116, 111, 32, 117, 115, 101, 32, 105, 110, 115, 116, 101, 97,
100, 32, 111, 102, 32, 116, 104, 101, 32, 109, 111, 100, 117, 108, 101, 10,
32, 32, 32, 32, 110, 97, 109, 101, 46, 32, 84, 104, 101, 32, 109, 111,
100, 117, 108, 101, 32, 112, 97, 115, 115, 101, 100, 32, 105, 110, 32, 116,
111, 32, 116, 104, 101, 32, 102, 117, 110, 99, 116, 105, 111, 110, 32, 105,
115, 32, 101, 105, 116, 104, 101, 114, 32, 102, 114, 111, 109, 32, 115, 121,
115, 46, 109, 111, 100, 117, 108, 101, 115, 32, 105, 102, 10, 32, 32, 32,
32, 105, 116, 32, 97, 108, 114, 101, 97, 100, 121, 32, 101, 120, 105, 115,
116, 115, 32, 111, 114, 32, 105, 115, 32, 97, 32, 110, 101, 119, 32, 109,
111, 100, 117, 108, 101, 46, 32, 73, 102, 32, 116, 104, 101, 32, 109, 111,
100, 117, 108, 101, 32, 105, 115, 32, 110, 101, 119, 44, 32, 116, 104, 101,
110, 32, 95, 95, 110, 97, 109, 101, 95, 95, 10, 32, 32, 32, 32, 105,
115, 32, 115, 101, 116, 32, 116, 104, 101, 32, 102, 105, 114, 115, 116, 32,
97, 114, 103, 117, 109, 101, 110, 116, 32, 116, 111, 32, 116, 104, 101, 32,
109, 101, 116, 104, 111, 100, 44, 32, 95, 95, 108, 111, 97, 100, 101, 114,
95, 95, 32, 105, 115, 32, 115, 101, 116, 32, 116, 111, 32, 115, 101, 108,
102, 44, 32, 97, 110, 100, 10, 32, 32, 32, 32, 95, 95, 112, 97, 99,
107, 97, 103, 101, 95, 95, 32, 105, 115, 32, 115, 101, 116, 32, 97, 99,
99, 111, 114, 100, 105, 110, 103, 108, 121, 32, 40, 105, 102, 32, 115, 101,
108, 102, 46, 105, 115, 95, 112, 97, 99, 107, 97, 103, 101, 40, 41, 32,
105, 115, 32, 100, 101, 102, 105, 110, 101, 100, 41, 32, 119, 105, 108, 108,
32, 98, 101, 32, 115, 101, 116, 10, 32, 32, 32, 32, 98, 101, 102, 111,
114, 101, 32, 105, 116, 32, 105, 115, 32, 112, 97, 115, 115, 101, 100, 32,
116, 111, 32, 116, 104, 101, 32, 100, 101, 99, 111, 114, 97, 116, 101, 100,
32, 102, 117, 110, 99, 116, 105, 111, 110, 32, 40, 105, 102, 32, 115, 101,
108, 102, 46, 105, 115, 95, 112, 97, 99, 107, 97, 103, 101, 40, 41, 32,
100, 111, 101, 115, 10, 32, 32, 32, 32, 110, 111, 116, 32, 119, 111, 114,
107, 32, 102, 111, 114, 32, 116, 104, 101, 32, 109, 111, 100, 117, 108, 101,
32, 105, 116, 32, 119, 105, 108, 108, 32, 98, 101, 32, 115, 101, 116, 32,
112, 111, 115, 116, 45, 108, 111, 97, 100, 41, 46, 10, 10, 32, 32, 32,
32, 73, 102, 32, 97, 110, 32, 101, 120, 99, 101, 112, 116, 105, 111, 110,
32, 105, 115, 32, 114, 97, 105, 115, 101, 100, 32, 97, 110, 100, 32, 116,
104, 101, 32, 100, 101, 99, 111, 114, 97, 116, 111, 114, 32, 99, 114, 101,
97, 116, 101, 100, 32, 116, 104, 101, 32, 109, 111, 100, 117, 108, 101, 32,
105, 116, 32, 105, 115, 10, 32, 32, 32, 32, 115, 117, 98, 115, 101, 113,
117, 101, 110, 116, 108, 121, 32, 114, 101, 109, 111, 118, 101, 100, 32, 102,
114, 111, 109, 32, 115, 121, 115, 46, 109, 111, 100, 117, 108, 101, 115, 46,
10, 10, 32, 32, 32, 32, 84, 104, 101, 32, 100, 101, 99, 111, 114, 97,
116, 111, 114, 32, 97, 115, 115, 117, 109, 101, 115, 32, 116, 104, 97, 116,
32, 116, 104, 101, 32, 100, 101, 99, 111, 114, 97, 116, 101, 100, 32, 102,
117, 110, 99, 116, 105, 111, 110, 32, 116, 97, 107, 101, 115, 32, 116, 104,
101, 32, 109, 111, 100, 117, 108, 101, 32, 110, 97, 109, 101, 32, 97, 115,
10, 32, 32, 32, 32, 116, 104, 101, 32, 115, 101, 99, 111, 110, 100, 32,
97, 114, 103, 117, 109, 101, 110, 116, 46, 10, 10, 32, 32, 32, 32, 99,
2, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 25, 0, 0, 0,
31, 0, 0, 0, 115, 254, 0, 0, 0, 116, 0, 0, 106, 1, 0, 106,
2, 0, 124, 1, 0, 131, 1, 0, 125, 4, 0, 124, 4, 0, 100, 0,
0, 107, 9, 0, 125, 5, 0, 124, 5, 0, 115, 168, 0, 116, 4, 0,
124, 1, 0, 131, 1, 0, 125, 4, 0, 100, 3, 0, 124, 4, 0, 95,
6, 0, 124, 4, 0, 116, 0, 0, 106, 1, 0, 124, 1, 0, 60, 124,
0, 0, 124, 4, 0, 95, 7, 0, 121, 19, 0, 124, 0, 0, 106, 8,
0, 124, 1, 0, 131, 1, 0, 125, 6, 0, 87, 110, 24, 0, 4, 116,
9, 0, 116, 10, 0, 102, 2, 0, 107, 10, 0, 114, 124, 0, 1, 1,
1, 89, 113, 177, 0, 88, 124, 6, 0, 114, 143, 0, 124, 1, 0, 124,
4, 0, 95, 11, 0, 113, 177, 0, 124, 1, 0, 106, 12, 0, 100, 1,
0, 131, 1, 0, 100, 2, 0, 25, 124, 4, 0, 95, 11, 0, 110, 9,
0, 100, 3, 0, 124, 4, 0, 95, 6, 0, 122, 60, 0, 121, 23, 0,
136, 0, 0, 124, 0, 0, 124, 4, 0, 124, 2, 0, 124, 3, 0, 142,
2, 0, 83, 87, 110, 30, 0, 1, 1, 1, 124, 5, 0, 115, 228, 0,
116, 0, 0, 106, 1, 0, 124, 1, 0, 61, 110, 0, 0, 130, 0, 0,
89, 110, 1, 0, 88, 87, 100, 0, 0, 100, 4, 0, 124, 4, 0, 95,
6, 0, 88, 100, 0, 0, 83, 40, 5, 0, 0, 0, 78, 117, 1, 0,
0, 0, 46, 105, 0, 0, 0, 0, 84, 70, 40, 14, 0, 0, 0, 117,
3, 0, 0, 0, 115, 121, 115, 117, 7, 0, 0, 0, 109, 111, 100, 117,
108, 101, 115, 117, 3, 0, 0, 0, 103, 101, 116, 117, 4, 0, 0, 0,
78, 111, 110, 101, 117, 10, 0, 0, 0, 110, 101, 119, 95, 109, 111, 100,
117, 108, 101, 117, 4, 0, 0, 0, 84, 114, 117, 101, 117, 16, 0, 0,
0, 95, 95, 105, 110, 105, 116, 105, 97, 108, 105, 122, 105, 110, 103, 95,
95, 117, 10, 0, 0, 0, 95, 95, 108, 111, 97, 100, 101, 114, 95, 95,
117, 10, 0, 0, 0, 105, 115, 95, 112, 97, 99, 107, 97, 103, 101, 117,
11, 0, 0, 0, 73, 109, 112, 111, 114, 116, 69, 114, 114, 111, 114, 117,
14, 0, 0, 0, 65, 116, 116, 114, 105, 98, 117, 116, 101, 69, 114, 114,
111, 114, 117, 11, 0, 0, 0, 95, 95, 112, 97, 99, 107, 97, 103, 101,
95, 95, 117, 10, 0, 0, 0, 114, 112, 97, 114, 116, 105, 116, 105, 111,
110, 117, 5, 0, 0, 0, 70, 97, 108, 115, 101, 40, 7, 0, 0, 0,
117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 8, 0, 0, 0, 102, 117,
108, 108, 110, 97, 109, 101, 117, 4, 0, 0, 0, 97, 114, 103, 115, 117,
6, 0, 0, 0, 107, 119, 97, 114, 103, 115, 117, 6, 0, 0, 0, 109,
111, 100, 117, 108, 101, 117, 9, 0, 0, 0, 105, 115, 95, 114, 101, 108,
111, 97, 100, 117, 10, 0, 0, 0, 105, 115, 95, 112, 97, 99, 107, 97,
103, 101, 40, 1, 0, 0, 0, 117, 3, 0, 0, 0, 102, 120, 110, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 25, 0, 0, 0, 109, 111, 100, 117, 108,
101, 95, 102, 111, 114, 95, 108, 111, 97, 100, 101, 114, 95, 119, 114, 97,
112, 112, 101, 114, 22, 2, 0, 0, 115, 44, 0, 0, 0, 0, 1, 18,
1, 12, 1, 6, 4, 12, 3, 9, 1, 13, 1, 9, 1, 3, 1, 19,
1, 19, 1, 5, 2, 6, 1, 12, 2, 25, 2, 9, 1, 6, 2, 23,
1, 3, 1, 6, 1, 13, 1, 12, 2, 117, 52, 0, 0, 0, 109, 111,
100, 117, 108, 101, 95, 102, 111, 114, 95, 108, 111, 97, 100, 101, 114, 46,
60, 108, 111, 99, 97, 108, 115, 62, 46, 109, 111, 100, 117, 108, 101, 95,
102, 111, 114, 95, 108, 111, 97, 100, 101, 114, 95, 119, 114, 97, 112, 112,
101, 114, 40, 1, 0, 0, 0, 117, 5, 0, 0, 0, 95, 119, 114, 97,
112, 40, 2, 0, 0, 0, 117, 3, 0, 0, 0, 102, 120, 110, 117, 25,
0, 0, 0, 109, 111, 100, 117, 108, 101, 95, 102, 111, 114, 95, 108, 111,
97, 100, 101, 114, 95, 119, 114, 97, 112, 112, 101, 114, 40, 0, 0, 0,
0, 40, 1, 0, 0, 0, 117, 3, 0, 0, 0, 102, 120, 110, 117, 29,
0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114,
116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62,
117, 17, 0, 0, 0, 109, 111, 100, 117, 108, 101, 95, 102, 111, 114, 95,
108, 111, 97, 100, 101, 114, 4, 2, 0, 0, 115, 6, 0, 0, 0, 0,
18, 18, 33, 13, 1, 117, 17, 0, 0, 0, 109, 111, 100, 117, 108, 101,
95, 102, 111, 114, 95, 108, 111, 97, 100, 101, 114, 99, 1, 0, 0, 0,
0, 0, 0, 0, 2, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0,
115, 38, 0, 0, 0, 100, 3, 0, 135, 0, 0, 102, 1, 0, 100, 1,
0, 100, 2, 0, 134, 1, 0, 125, 1, 0, 116, 1, 0, 124, 1, 0,
136, 0, 0, 131, 2, 0, 1, 124, 1, 0, 83, 40, 4, 0, 0, 0,
117, 252, 0, 0, 0, 68, 101, 99, 111, 114, 97, 116, 111, 114, 32, 116,
111, 32, 118, 101, 114, 105, 102, 121, 32, 116, 104, 97, 116, 32, 116, 104,
101, 32, 109, 111, 100, 117, 108, 101, 32, 98, 101, 105, 110, 103, 32, 114,
101, 113, 117, 101, 115, 116, 101, 100, 32, 109, 97, 116, 99, 104, 101, 115,
32, 116, 104, 101, 32, 111, 110, 101, 32, 116, 104, 101, 10, 32, 32, 32,
32, 108, 111, 97, 100, 101, 114, 32, 99, 97, 110, 32, 104, 97, 110, 100,
108, 101, 46, 10, 10, 32, 32, 32, 32, 84, 104, 101, 32, 102, 105, 114,
115, 116, 32, 97, 114, 103, 117, 109, 101, 110, 116, 32, 40, 115, 101, 108,
102, 41, 32, 109, 117, 115, 116, 32, 100, 101, 102, 105, 110, 101, 32, 95,
110, 97, 109, 101, 32, 119, 104, 105, 99, 104, 32, 116, 104, 101, 32, 115,
101, 99, 111, 110, 100, 32, 97, 114, 103, 117, 109, 101, 110, 116, 32, 105,
115, 10, 32, 32, 32, 32, 99, 111, 109, 112, 97, 114, 101, 100, 32, 97,
103, 97, 105, 110, 115, 116, 46, 32, 73, 102, 32, 116, 104, 101, 32, 99,
111, 109, 112, 97, 114, 105, 115, 111, 110, 32, 102, 97, 105, 108, 115, 32,
116, 104, 101, 110, 32, 73, 109, 112, 111, 114, 116, 69, 114, 114, 111, 114,
32, 105, 115, 32, 114, 97, 105, 115, 101, 100, 46, 10, 10, 32, 32, 32,
32, 99, 2, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 5, 0,
0, 0, 31, 0, 0, 0, 115, 83, 0, 0, 0, 124, 1, 0, 100, 0,
0, 107, 8, 0, 114, 24, 0, 124, 0, 0, 106, 1, 0, 125, 1, 0,
110, 40, 0, 124, 0, 0, 106, 1, 0, 124, 1, 0, 107, 3, 0, 114,
64, 0, 116, 2, 0, 100, 1, 0, 124, 1, 0, 22, 100, 2, 0, 124,
1, 0, 131, 1, 1, 130, 1, 0, 110, 0, 0, 136, 0, 0, 124, 0,
0, 124, 1, 0, 124, 2, 0, 124, 3, 0, 142, 2, 0, 83, 40, 3,
0, 0, 0, 78, 117, 23, 0, 0, 0, 108, 111, 97, 100, 101, 114, 32,
99, 97, 110, 110, 111, 116, 32, 104, 97, 110, 100, 108, 101, 32, 37, 115,
117, 4, 0, 0, 0, 110, 97, 109, 101, 40, 3, 0, 0, 0, 117, 4,
0, 0, 0, 78, 111, 110, 101, 117, 4, 0, 0, 0, 110, 97, 109, 101,
117, 11, 0, 0, 0, 73, 109, 112, 111, 114, 116, 69, 114, 114, 111, 114,
40, 4, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 4,
0, 0, 0, 110, 97, 109, 101, 117, 4, 0, 0, 0, 97, 114, 103, 115,
117, 6, 0, 0, 0, 107, 119, 97, 114, 103, 115, 40, 1, 0, 0, 0,
117, 6, 0, 0, 0, 109, 101, 116, 104, 111, 100, 40, 0, 0, 0, 0,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 19, 0, 0, 0, 95, 99, 104, 101, 99, 107, 95, 110, 97,
109, 101, 95, 119, 114, 97, 112, 112, 101, 114, 67, 2, 0, 0, 115, 10,
0, 0, 0, 0, 1, 12, 1, 12, 1, 15, 1, 25, 1, 117, 40, 0,
0, 0, 95, 99, 104, 101, 99, 107, 95, 110, 97, 109, 101, 46, 60, 108,
111, 99, 97, 108, 115, 62, 46, 95, 99, 104, 101, 99, 107, 95, 110, 97,
109, 101, 95, 119, 114, 97, 112, 112, 101, 114, 78, 40, 2, 0, 0, 0,
117, 4, 0, 0, 0, 78, 111, 110, 101, 117, 5, 0, 0, 0, 95, 119,
114, 97, 112, 40, 2, 0, 0, 0, 117, 6, 0, 0, 0, 109, 101, 116,
104, 111, 100, 117, 19, 0, 0, 0, 95, 99, 104, 101, 99, 107, 95, 110,
97, 109, 101, 95, 119, 114, 97, 112, 112, 101, 114, 40, 0, 0, 0, 0,
40, 1, 0, 0, 0, 117, 6, 0, 0, 0, 109, 101, 116, 104, 111, 100,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 11, 0, 0, 0, 95, 99, 104, 101, 99, 107, 95, 110, 97,
109, 101, 59, 2, 0, 0, 115, 6, 0, 0, 0, 0, 8, 21, 6, 13,
1, 117, 11, 0, 0, 0, 95, 99, 104, 101, 99, 107, 95, 110, 97, 109,
101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0,
0, 0, 3, 0, 0, 0, 115, 35, 0, 0, 0, 135, 0, 0, 102, 1,
0, 100, 1, 0, 100, 2, 0, 134, 0, 0, 125, 1, 0, 116, 0, 0,
124, 1, 0, 136, 0, 0, 131, 2, 0, 1, 124, 1, 0, 83, 40, 3,
0, 0, 0, 117, 49, 0, 0, 0, 68, 101, 99, 111, 114, 97, 116, 111,
114, 32, 116, 111, 32, 118, 101, 114, 105, 102, 121, 32, 116, 104, 101, 32,
110, 97, 109, 101, 100, 32, 109, 111, 100, 117, 108, 101, 32, 105, 115, 32,
98, 117, 105, 108, 116, 45, 105, 110, 46, 99, 2, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0, 4, 0, 0, 0, 19, 0, 0, 0, 115, 58,
0, 0, 0, 124, 1, 0, 116, 0, 0, 106, 1, 0, 107, 7, 0, 114,
45, 0, 116, 2, 0, 100, 1, 0, 106, 3, 0, 124, 1, 0, 131, 1,
0, 100, 2, 0, 124, 1, 0, 131, 1, 1, 130, 1, 0, 110, 0, 0,
136, 0, 0, 124, 0, 0, 124, 1, 0, 131, 2, 0, 83, 40, 3, 0,
0, 0, 78, 117, 27, 0, 0, 0, 123, 125, 32, 105, 115, 32, 110, 111,
116, 32, 97, 32, 98, 117, 105, 108, 116, 45, 105, 110, 32, 109, 111, 100,
117, 108, 101, 117, 4, 0, 0, 0, 110, 97, 109, 101, 40, 4, 0, 0,
0, 117, 3, 0, 0, 0, 115, 121, 115, 117, 20, 0, 0, 0, 98, 117,
105, 108, 116, 105, 110, 95, 109, 111, 100, 117, 108, 101, 95, 110, 97, 109,
101, 115, 117, 11, 0, 0, 0, 73, 109, 112, 111, 114, 116, 69, 114, 114,
111, 114, 117, 6, 0, 0, 0, 102, 111, 114, 109, 97, 116, 40, 2, 0,
0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 8, 0, 0, 0,
102, 117, 108, 108, 110, 97, 109, 101, 40, 1, 0, 0, 0, 117, 3, 0,
0, 0, 102, 120, 110, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 25, 0, 0,
0, 95, 114, 101, 113, 117, 105, 114, 101, 115, 95, 98, 117, 105, 108, 116,
105, 110, 95, 119, 114, 97, 112, 112, 101, 114, 79, 2, 0, 0, 115, 8,
0, 0, 0, 0, 1, 15, 1, 18, 1, 12, 1, 117, 52, 0, 0, 0,
95, 114, 101, 113, 117, 105, 114, 101, 115, 95, 98, 117, 105, 108, 116, 105,
110, 46, 60, 108, 111, 99, 97, 108, 115, 62, 46, 95, 114, 101, 113, 117,
105, 114, 101, 115, 95, 98, 117, 105, 108, 116, 105, 110, 95, 119, 114, 97,
112, 112, 101, 114, 40, 1, 0, 0, 0, 117, 5, 0, 0, 0, 95, 119,
114, 97, 112, 40, 2, 0, 0, 0, 117, 3, 0, 0, 0, 102, 120, 110,
117, 25, 0, 0, 0, 95, 114, 101, 113, 117, 105, 114, 101, 115, 95, 98,
117, 105, 108, 116, 105, 110, 95, 119, 114, 97, 112, 112, 101, 114, 40, 0,
0, 0, 0, 40, 1, 0, 0, 0, 117, 3, 0, 0, 0, 102, 120, 110,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 17, 0, 0, 0, 95, 114, 101, 113, 117, 105, 114, 101, 115,
95, 98, 117, 105, 108, 116, 105, 110, 77, 2, 0, 0, 115, 6, 0, 0,
0, 0, 2, 18, 5, 13, 1, 117, 17, 0, 0, 0, 95, 114, 101, 113,
117, 105, 114, 101, 115, 95, 98, 117, 105, 108, 116, 105, 110, 99, 1, 0,
0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 3, 0,
0, 0, 115, 35, 0, 0, 0, 135, 0, 0, 102, 1, 0, 100, 1, 0,
100, 2, 0, 134, 0, 0, 125, 1, 0, 116, 0, 0, 124, 1, 0, 136,
0, 0, 131, 2, 0, 1, 124, 1, 0, 83, 40, 3, 0, 0, 0, 117,
47, 0, 0, 0, 68, 101, 99, 111, 114, 97, 116, 111, 114, 32, 116, 111,
32, 118, 101, 114, 105, 102, 121, 32, 116, 104, 101, 32, 110, 97, 109, 101,
100, 32, 109, 111, 100, 117, 108, 101, 32, 105, 115, 32, 102, 114, 111, 122,
101, 110, 46, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 19, 0, 0, 0, 115, 58, 0, 0, 0, 116, 0, 0,
106, 1, 0, 124, 1, 0, 131, 1, 0, 115, 45, 0, 116, 2, 0, 100,
1, 0, 106, 3, 0, 124, 1, 0, 131, 1, 0, 100, 2, 0, 124, 1,
0, 131, 1, 1, 130, 1, 0, 110, 0, 0, 136, 0, 0, 124, 0, 0,
124, 1, 0, 131, 2, 0, 83, 40, 3, 0, 0, 0, 78, 117, 25, 0,
0, 0, 123, 125, 32, 105, 115, 32, 110, 111, 116, 32, 97, 32, 102, 114,
111, 122, 101, 110, 32, 109, 111, 100, 117, 108, 101, 117, 4, 0, 0, 0,
110, 97, 109, 101, 40, 4, 0, 0, 0, 117, 4, 0, 0, 0, 95, 105,
109, 112, 117, 9, 0, 0, 0, 105, 115, 95, 102, 114, 111, 122, 101, 110,
117, 11, 0, 0, 0, 73, 109, 112, 111, 114, 116, 69, 114, 114, 111, 114,
117, 6, 0, 0, 0, 102, 111, 114, 109, 97, 116, 40, 2, 0, 0, 0,
117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 8, 0, 0, 0, 102, 117,
108, 108, 110, 97, 109, 101, 40, 1, 0, 0, 0, 117, 3, 0, 0, 0,
102, 120, 110, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114,
111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95,
98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 24, 0, 0, 0, 95,
114, 101, 113, 117, 105, 114, 101, 115, 95, 102, 114, 111, 122, 101, 110, 95,
119, 114, 97, 112, 112, 101, 114, 90, 2, 0, 0, 115, 8, 0, 0, 0,
0, 1, 15, 1, 18, 1, 12, 1, 117, 50, 0, 0, 0, 95, 114, 101,
113, 117, 105, 114, 101, 115, 95, 102, 114, 111, 122, 101, 110, 46, 60, 108,
111, 99, 97, 108, 115, 62, 46, 95, 114, 101, 113, 117, 105, 114, 101, 115,
95, 102, 114, 111, 122, 101, 110, 95, 119, 114, 97, 112, 112, 101, 114, 40,
1, 0, 0, 0, 117, 5, 0, 0, 0, 95, 119, 114, 97, 112, 40, 2,
0, 0, 0, 117, 3, 0, 0, 0, 102, 120, 110, 117, 24, 0, 0, 0,
95, 114, 101, 113, 117, 105, 114, 101, 115, 95, 102, 114, 111, 122, 101, 110,
95, 119, 114, 97, 112, 112, 101, 114, 40, 0, 0, 0, 0, 40, 1, 0,
0, 0, 117, 3, 0, 0, 0, 102, 120, 110, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 16, 0, 0,
0, 95, 114, 101, 113, 117, 105, 114, 101, 115, 95, 102, 114, 111, 122, 101,
110, 88, 2, 0, 0, 115, 6, 0, 0, 0, 0, 2, 18, 5, 13, 1,
117, 16, 0, 0, 0, 95, 114, 101, 113, 117, 105, 114, 101, 115, 95, 102,
114, 111, 122, 101, 110, 99, 2, 0, 0, 0, 0, 0, 0, 0, 5, 0,
0, 0, 5, 0, 0, 0, 67, 0, 0, 0, 115, 87, 0, 0, 0, 124,
0, 0, 106, 0, 0, 124, 1, 0, 131, 1, 0, 92, 2, 0, 125, 2,
0, 125, 3, 0, 124, 2, 0, 100, 3, 0, 107, 8, 0, 114, 83, 0,
116, 2, 0, 124, 3, 0, 131, 1, 0, 114, 83, 0, 100, 1, 0, 125,
4, 0, 116, 3, 0, 106, 4, 0, 124, 4, 0, 106, 5, 0, 124, 3,
0, 100, 2, 0, 25, 131, 1, 0, 116, 6, 0, 131, 2, 0, 1, 110,
0, 0, 124, 2, 0, 83, 40, 4, 0, 0, 0, 117, 86, 0, 0, 0,
84, 114, 121, 32, 116, 111, 32, 102, 105, 110, 100, 32, 97, 32, 108, 111,
97, 100, 101, 114, 32, 102, 111, 114, 32, 116, 104, 101, 32, 115, 112, 101,
99, 105, 102, 105, 101, 100, 32, 109, 111, 100, 117, 108, 101, 32, 98, 121,
32, 100, 101, 108, 101, 103, 97, 116, 105, 110, 103, 32, 116, 111, 10, 32,
32, 32, 32, 115, 101, 108, 102, 46, 102, 105, 110, 100, 95, 108, 111, 97,
100, 101, 114, 40, 41, 46, 117, 44, 0, 0, 0, 78, 111, 116, 32, 105,
109, 112, 111, 114, 116, 105, 110, 103, 32, 100, 105, 114, 101, 99, 116, 111,
114, 121, 32, 123, 125, 58, 32, 109, 105, 115, 115, 105, 110, 103, 32, 95,
95, 105, 110, 105, 116, 95, 95, 105, 0, 0, 0, 0, 78, 40, 7, 0,
0, 0, 117, 11, 0, 0, 0, 102, 105, 110, 100, 95, 108, 111, 97, 100,
101, 114, 117, 4, 0, 0, 0, 78, 111, 110, 101, 117, 3, 0, 0, 0,
108, 101, 110, 117, 9, 0, 0, 0, 95, 119, 97, 114, 110, 105, 110, 103,
115, 117, 4, 0, 0, 0, 119, 97, 114, 110, 117, 6, 0, 0, 0, 102,
111, 114, 109, 97, 116, 117, 13, 0, 0, 0, 73, 109, 112, 111, 114, 116,
87, 97, 114, 110, 105, 110, 103, 40, 5, 0, 0, 0, 117, 4, 0, 0,
0, 115, 101, 108, 102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97,
109, 101, 117, 6, 0, 0, 0, 108, 111, 97, 100, 101, 114, 117, 8, 0,
0, 0, 112, 111, 114, 116, 105, 111, 110, 115, 117, 3, 0, 0, 0, 109,
115, 103, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0,
0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108,
105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 17,
0, 0, 0, 95, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108, 101, 95,
115, 104, 105, 109, 99, 2, 0, 0, 115, 10, 0, 0, 0, 0, 6, 21,
1, 24, 1, 6, 1, 32, 1, 117, 17, 0, 0, 0, 95, 102, 105, 110,
100, 95, 109, 111, 100, 117, 108, 101, 95, 115, 104, 105, 109, 99, 1, 0,
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 6, 0, 0, 0, 66, 0,
0, 0, 115, 173, 0, 0, 0, 124, 0, 0, 69, 101, 0, 0, 90, 1,
0, 100, 0, 0, 90, 2, 0, 100, 1, 0, 90, 3, 0, 101, 4, 0,
100, 2, 0, 100, 3, 0, 132, 0, 0, 131, 1, 0, 90, 5, 0, 101,
4, 0, 100, 14, 0, 100, 4, 0, 100, 5, 0, 132, 1, 0, 131, 1,
0, 90, 7, 0, 101, 4, 0, 101, 8, 0, 101, 9, 0, 101, 10, 0,
100, 6, 0, 100, 7, 0, 132, 0, 0, 131, 1, 0, 131, 1, 0, 131,
1, 0, 131, 1, 0, 90, 11, 0, 101, 4, 0, 101, 10, 0, 100, 8,
0, 100, 9, 0, 132, 0, 0, 131, 1, 0, 131, 1, 0, 90, 12, 0,
101, 4, 0, 101, 10, 0, 100, 10, 0, 100, 11, 0, 132, 0, 0, 131,
1, 0, 131, 1, 0, 90, 13, 0, 101, 4, 0, 101, 10, 0, 100, 12,
0, 100, 13, 0, 132, 0, 0, 131, 1, 0, 131, 1, 0, 90, 14, 0,
100, 14, 0, 83, 40, 15, 0, 0, 0, 117, 15, 0, 0, 0, 66, 117,
105, 108, 116, 105, 110, 73, 109, 112, 111, 114, 116, 101, 114, 117, 144, 0,
0, 0, 77, 101, 116, 97, 32, 112, 97, 116, 104, 32, 105, 109, 112, 111,
114, 116, 32, 102, 111, 114, 32, 98, 117, 105, 108, 116, 45, 105, 110, 32,
109, 111, 100, 117, 108, 101, 115, 46, 10, 10, 32, 32, 32, 32, 65, 108,
108, 32, 109, 101, 116, 104, 111, 100, 115, 32, 97, 114, 101, 32, 101, 105,
116, 104, 101, 114, 32, 99, 108, 97, 115, 115, 32, 111, 114, 32, 115, 116,
97, 116, 105, 99, 32, 109, 101, 116, 104, 111, 100, 115, 32, 116, 111, 32,
97, 118, 111, 105, 100, 32, 116, 104, 101, 32, 110, 101, 101, 100, 32, 116,
111, 10, 32, 32, 32, 32, 105, 110, 115, 116, 97, 110, 116, 105, 97, 116,
101, 32, 116, 104, 101, 32, 99, 108, 97, 115, 115, 46, 10, 10, 32, 32,
32, 32, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2,
0, 0, 0, 67, 0, 0, 0, 115, 16, 0, 0, 0, 100, 1, 0, 106,
0, 0, 124, 1, 0, 106, 1, 0, 131, 1, 0, 83, 40, 2, 0, 0,
0, 78, 117, 24, 0, 0, 0, 60, 109, 111, 100, 117, 108, 101, 32, 39,
123, 125, 39, 32, 40, 98, 117, 105, 108, 116, 45, 105, 110, 41, 62, 40,
2, 0, 0, 0, 117, 6, 0, 0, 0, 102, 111, 114, 109, 97, 116, 117,
8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 40, 2, 0, 0,
0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 6, 0, 0, 0, 109, 111,
100, 117, 108, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29,
0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114,
116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62,
117, 11, 0, 0, 0, 109, 111, 100, 117, 108, 101, 95, 114, 101, 112, 114,
125, 2, 0, 0, 115, 2, 0, 0, 0, 0, 2, 117, 27, 0, 0, 0,
66, 117, 105, 108, 116, 105, 110, 73, 109, 112, 111, 114, 116, 101, 114, 46,
109, 111, 100, 117, 108, 101, 95, 114, 101, 112, 114, 99, 3, 0, 0, 0,
0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 67, 0, 0, 0,
115, 39, 0, 0, 0, 124, 2, 0, 100, 1, 0, 107, 9, 0, 114, 16,
0, 100, 1, 0, 83, 116, 1, 0, 106, 2, 0, 124, 1, 0, 131, 1,
0, 114, 35, 0, 124, 0, 0, 83, 100, 1, 0, 83, 40, 2, 0, 0,
0, 117, 113, 0, 0, 0, 70, 105, 110, 100, 32, 116, 104, 101, 32, 98,
117, 105, 108, 116, 45, 105, 110, 32, 109, 111, 100, 117, 108, 101, 46, 10,
10, 32, 32, 32, 32, 32, 32, 32, 32, 73, 102, 32, 39, 112, 97, 116,
104, 39, 32, 105, 115, 32, 101, 118, 101, 114, 32, 115, 112, 101, 99, 105,
102, 105, 101, 100, 32, 116, 104, 101, 110, 32, 116, 104, 101, 32, 115, 101,
97, 114, 99, 104, 32, 105, 115, 32, 99, 111, 110, 115, 105, 100, 101, 114,
101, 100, 32, 97, 32, 102, 97, 105, 108, 117, 114, 101, 46, 10, 10, 32,
32, 32, 32, 32, 32, 32, 32, 78, 40, 3, 0, 0, 0, 117, 4, 0,
0, 0, 78, 111, 110, 101, 117, 4, 0, 0, 0, 95, 105, 109, 112, 117,
10, 0, 0, 0, 105, 115, 95, 98, 117, 105, 108, 116, 105, 110, 40, 3,
0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8, 0, 0, 0,
102, 117, 108, 108, 110, 97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116,
104, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0,
60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0,
0, 0, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108, 101, 129, 2, 0,
0, 115, 6, 0, 0, 0, 0, 7, 12, 1, 4, 1, 117, 27, 0, 0,
0, 66, 117, 105, 108, 116, 105, 110, 73, 109, 112, 111, 114, 116, 101, 114,
46, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108, 101, 99, 2, 0, 0,
0, 0, 0, 0, 0, 3, 0, 0, 0, 9, 0, 0, 0, 67, 0, 0,
0, 115, 88, 0, 0, 0, 124, 1, 0, 116, 0, 0, 106, 1, 0, 107,
6, 0, 125, 2, 0, 121, 20, 0, 116, 2, 0, 116, 3, 0, 106, 4,
0, 124, 1, 0, 131, 2, 0, 83, 87, 110, 46, 0, 1, 1, 1, 124,
2, 0, 12, 114, 76, 0, 124, 1, 0, 116, 0, 0, 106, 1, 0, 107,
6, 0, 114, 76, 0, 116, 0, 0, 106, 1, 0, 124, 1, 0, 61, 110,
0, 0, 130, 0, 0, 89, 110, 1, 0, 88, 100, 1, 0, 83, 40, 2,
0, 0, 0, 117, 23, 0, 0, 0, 76, 111, 97, 100, 32, 97, 32, 98,
117, 105, 108, 116, 45, 105, 110, 32, 109, 111, 100, 117, 108, 101, 46, 78,
40, 5, 0, 0, 0, 117, 3, 0, 0, 0, 115, 121, 115, 117, 7, 0,
0, 0, 109, 111, 100, 117, 108, 101, 115, 117, 25, 0, 0, 0, 95, 99,
97, 108, 108, 95, 119, 105, 116, 104, 95, 102, 114, 97, 109, 101, 115, 95,
114, 101, 109, 111, 118, 101, 100, 117, 4, 0, 0, 0, 95, 105, 109, 112,
117, 12, 0, 0, 0, 105, 110, 105, 116, 95, 98, 117, 105, 108, 116, 105,
110, 40, 3, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8,
0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 117, 9, 0, 0, 0,
105, 115, 95, 114, 101, 108, 111, 97, 100, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 11, 0, 0, 0, 108, 111, 97, 100, 95, 109,
111, 100, 117, 108, 101, 140, 2, 0, 0, 115, 14, 0, 0, 0, 0, 6,
15, 1, 3, 1, 20, 1, 3, 1, 22, 1, 13, 1, 117, 27, 0, 0,
0, 66, 117, 105, 108, 116, 105, 110, 73, 109, 112, 111, 114, 116, 101, 114,
46, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 99, 2, 0, 0,
0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 67, 0, 0,
0, 115, 4, 0, 0, 0, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117,
57, 0, 0, 0, 82, 101, 116, 117, 114, 110, 32, 78, 111, 110, 101, 32,
97, 115, 32, 98, 117, 105, 108, 116, 45, 105, 110, 32, 109, 111, 100, 117,
108, 101, 115, 32, 100, 111, 32, 110, 111, 116, 32, 104, 97, 118, 101, 32,
99, 111, 100, 101, 32, 111, 98, 106, 101, 99, 116, 115, 46, 78, 40, 1,
0, 0, 0, 117, 4, 0, 0, 0, 78, 111, 110, 101, 40, 2, 0, 0,
0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8, 0, 0, 0, 102, 117,
108, 108, 110, 97, 109, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 8, 0, 0, 0, 103, 101, 116, 95, 99, 111, 100, 101, 154,
2, 0, 0, 115, 2, 0, 0, 0, 0, 4, 117, 24, 0, 0, 0, 66,
117, 105, 108, 116, 105, 110, 73, 109, 112, 111, 114, 116, 101, 114, 46, 103,
101, 116, 95, 99, 111, 100, 101, 99, 2, 0, 0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 1, 0, 0, 0, 67, 0, 0, 0, 115, 4, 0, 0,
0, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 56, 0, 0, 0, 82,
101, 116, 117, 114, 110, 32, 78, 111, 110, 101, 32, 97, 115, 32, 98, 117,
105, 108, 116, 45, 105, 110, 32, 109, 111, 100, 117, 108, 101, 115, 32, 100,
111, 32, 110, 111, 116, 32, 104, 97, 118, 101, 32, 115, 111, 117, 114, 99,
101, 32, 99, 111, 100, 101, 46, 78, 40, 1, 0, 0, 0, 117, 4, 0,
0, 0, 78, 111, 110, 101, 40, 2, 0, 0, 0, 117, 3, 0, 0, 0,
99, 108, 115, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101,
40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 10, 0, 0,
0, 103, 101, 116, 95, 115, 111, 117, 114, 99, 101, 160, 2, 0, 0, 115,
2, 0, 0, 0, 0, 4, 117, 26, 0, 0, 0, 66, 117, 105, 108, 116,
105, 110, 73, 109, 112, 111, 114, 116, 101, 114, 46, 103, 101, 116, 95, 115,
111, 117, 114, 99, 101, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0,
0, 0, 1, 0, 0, 0, 67, 0, 0, 0, 115, 4, 0, 0, 0, 100,
1, 0, 83, 40, 2, 0, 0, 0, 117, 52, 0, 0, 0, 82, 101, 116,
117, 114, 110, 32, 70, 97, 108, 115, 101, 32, 97, 115, 32, 98, 117, 105,
108, 116, 45, 105, 110, 32, 109, 111, 100, 117, 108, 101, 115, 32, 97, 114,
101, 32, 110, 101, 118, 101, 114, 32, 112, 97, 99, 107, 97, 103, 101, 115,
46, 70, 40, 1, 0, 0, 0, 117, 5, 0, 0, 0, 70, 97, 108, 115,
101, 40, 2, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8,
0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 40, 0, 0, 0, 0,
40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101,
110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111,
116, 115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 105, 115, 95, 112,
97, 99, 107, 97, 103, 101, 166, 2, 0, 0, 115, 2, 0, 0, 0, 0,
4, 117, 26, 0, 0, 0, 66, 117, 105, 108, 116, 105, 110, 73, 109, 112,
111, 114, 116, 101, 114, 46, 105, 115, 95, 112, 97, 99, 107, 97, 103, 101,
78, 40, 15, 0, 0, 0, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109,
101, 95, 95, 117, 10, 0, 0, 0, 95, 95, 109, 111, 100, 117, 108, 101,
95, 95, 117, 12, 0, 0, 0, 95, 95, 113, 117, 97, 108, 110, 97, 109,
101, 95, 95, 117, 7, 0, 0, 0, 95, 95, 100, 111, 99, 95, 95, 117,
11, 0, 0, 0, 99, 108, 97, 115, 115, 109, 101, 116, 104, 111, 100, 117,
11, 0, 0, 0, 109, 111, 100, 117, 108, 101, 95, 114, 101, 112, 114, 117,
4, 0, 0, 0, 78, 111, 110, 101, 117, 11, 0, 0, 0, 102, 105, 110,
100, 95, 109, 111, 100, 117, 108, 101, 117, 11, 0, 0, 0, 115, 101, 116,
95, 112, 97, 99, 107, 97, 103, 101, 117, 10, 0, 0, 0, 115, 101, 116,
95, 108, 111, 97, 100, 101, 114, 117, 17, 0, 0, 0, 95, 114, 101, 113,
117, 105, 114, 101, 115, 95, 98, 117, 105, 108, 116, 105, 110, 117, 11, 0,
0, 0, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 117, 8, 0,
0, 0, 103, 101, 116, 95, 99, 111, 100, 101, 117, 10, 0, 0, 0, 103,
101, 116, 95, 115, 111, 117, 114, 99, 101, 117, 10, 0, 0, 0, 105, 115,
95, 112, 97, 99, 107, 97, 103, 101, 40, 1, 0, 0, 0, 117, 10, 0,
0, 0, 95, 95, 108, 111, 99, 97, 108, 115, 95, 95, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 15, 0, 0, 0, 66, 117, 105,
108, 116, 105, 110, 73, 109, 112, 111, 114, 116, 101, 114, 116, 2, 0, 0,
115, 28, 0, 0, 0, 16, 7, 6, 2, 18, 4, 3, 1, 18, 10, 3,
1, 3, 1, 3, 1, 27, 11, 3, 1, 21, 5, 3, 1, 21, 5, 3,
1, 117, 15, 0, 0, 0, 66, 117, 105, 108, 116, 105, 110, 73, 109, 112,
111, 114, 116, 101, 114, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0,
0, 0, 6, 0, 0, 0, 66, 0, 0, 0, 115, 173, 0, 0, 0, 124,
0, 0, 69, 101, 0, 0, 90, 1, 0, 100, 0, 0, 90, 2, 0, 100,
1, 0, 90, 3, 0, 101, 4, 0, 100, 2, 0, 100, 3, 0, 132, 0,
0, 131, 1, 0, 90, 5, 0, 101, 4, 0, 100, 14, 0, 100, 4, 0,
100, 5, 0, 132, 1, 0, 131, 1, 0, 90, 7, 0, 101, 4, 0, 101,
8, 0, 101, 9, 0, 101, 10, 0, 100, 6, 0, 100, 7, 0, 132, 0,
0, 131, 1, 0, 131, 1, 0, 131, 1, 0, 131, 1, 0, 90, 11, 0,
101, 4, 0, 101, 10, 0, 100, 8, 0, 100, 9, 0, 132, 0, 0, 131,
1, 0, 131, 1, 0, 90, 12, 0, 101, 4, 0, 101, 10, 0, 100, 10,
0, 100, 11, 0, 132, 0, 0, 131, 1, 0, 131, 1, 0, 90, 13, 0,
101, 4, 0, 101, 10, 0, 100, 12, 0, 100, 13, 0, 132, 0, 0, 131,
1, 0, 131, 1, 0, 90, 14, 0, 100, 14, 0, 83, 40, 15, 0, 0,
0, 117, 14, 0, 0, 0, 70, 114, 111, 122, 101, 110, 73, 109, 112, 111,
114, 116, 101, 114, 117, 142, 0, 0, 0, 77, 101, 116, 97, 32, 112, 97,
116, 104, 32, 105, 109, 112, 111, 114, 116, 32, 102, 111, 114, 32, 102, 114,
111, 122, 101, 110, 32, 109, 111, 100, 117, 108, 101, 115, 46, 10, 10, 32,
32, 32, 32, 65, 108, 108, 32, 109, 101, 116, 104, 111, 100, 115, 32, 97,
114, 101, 32, 101, 105, 116, 104, 101, 114, 32, 99, 108, 97, 115, 115, 32,
111, 114, 32, 115, 116, 97, 116, 105, 99, 32, 109, 101, 116, 104, 111, 100,
115, 32, 116, 111, 32, 97, 118, 111, 105, 100, 32, 116, 104, 101, 32, 110,
101, 101, 100, 32, 116, 111, 10, 32, 32, 32, 32, 105, 110, 115, 116, 97,
110, 116, 105, 97, 116, 101, 32, 116, 104, 101, 32, 99, 108, 97, 115, 115,
46, 10, 10, 32, 32, 32, 32, 99, 2, 0, 0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 2, 0, 0, 0, 67, 0, 0, 0, 115, 16, 0, 0,
0, 100, 1, 0, 106, 0, 0, 124, 1, 0, 106, 1, 0, 131, 1, 0,
83, 40, 2, 0, 0, 0, 78, 117, 22, 0, 0, 0, 60, 109, 111, 100,
117, 108, 101, 32, 39, 123, 125, 39, 32, 40, 102, 114, 111, 122, 101, 110,
41, 62, 40, 2, 0, 0, 0, 117, 6, 0, 0, 0, 102, 111, 114, 109,
97, 116, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 40,
2, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 1, 0, 0,
0, 109, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0,
0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108,
105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11,
0, 0, 0, 109, 111, 100, 117, 108, 101, 95, 114, 101, 112, 114, 182, 2,
0, 0, 115, 2, 0, 0, 0, 0, 2, 117, 26, 0, 0, 0, 70, 114,
111, 122, 101, 110, 73, 109, 112, 111, 114, 116, 101, 114, 46, 109, 111, 100,
117, 108, 101, 95, 114, 101, 112, 114, 99, 3, 0, 0, 0, 0, 0, 0,
0, 3, 0, 0, 0, 2, 0, 0, 0, 67, 0, 0, 0, 115, 23, 0,
0, 0, 116, 0, 0, 106, 1, 0, 124, 1, 0, 131, 1, 0, 114, 19,
0, 124, 0, 0, 83, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 21,
0, 0, 0, 70, 105, 110, 100, 32, 97, 32, 102, 114, 111, 122, 101, 110,
32, 109, 111, 100, 117, 108, 101, 46, 78, 40, 3, 0, 0, 0, 117, 4,
0, 0, 0, 95, 105, 109, 112, 117, 9, 0, 0, 0, 105, 115, 95, 102,
114, 111, 122, 101, 110, 117, 4, 0, 0, 0, 78, 111, 110, 101, 40, 3,
0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8, 0, 0, 0,
102, 117, 108, 108, 110, 97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116,
104, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0,
60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0,
0, 0, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108, 101, 186, 2, 0,
0, 115, 2, 0, 0, 0, 0, 3, 117, 26, 0, 0, 0, 70, 114, 111,
122, 101, 110, 73, 109, 112, 111, 114, 116, 101, 114, 46, 102, 105, 110, 100,
95, 109, 111, 100, 117, 108, 101, 99, 2, 0, 0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 9, 0, 0, 0, 67, 0, 0, 0, 115, 100, 0, 0,
0, 124, 1, 0, 116, 0, 0, 106, 1, 0, 107, 6, 0, 125, 2, 0,
121, 32, 0, 116, 2, 0, 116, 3, 0, 106, 4, 0, 124, 1, 0, 131,
2, 0, 125, 3, 0, 124, 3, 0, 96, 5, 0, 124, 3, 0, 83, 87,
110, 46, 0, 1, 1, 1, 124, 2, 0, 12, 114, 88, 0, 124, 1, 0,
116, 0, 0, 106, 1, 0, 107, 6, 0, 114, 88, 0, 116, 0, 0, 106,
1, 0, 124, 1, 0, 61, 110, 0, 0, 130, 0, 0, 89, 110, 1, 0,
88, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 21, 0, 0, 0, 76,
111, 97, 100, 32, 97, 32, 102, 114, 111, 122, 101, 110, 32, 109, 111, 100,
117, 108, 101, 46, 78, 40, 6, 0, 0, 0, 117, 3, 0, 0, 0, 115,
121, 115, 117, 7, 0, 0, 0, 109, 111, 100, 117, 108, 101, 115, 117, 25,
0, 0, 0, 95, 99, 97, 108, 108, 95, 119, 105, 116, 104, 95, 102, 114,
97, 109, 101, 115, 95, 114, 101, 109, 111, 118, 101, 100, 117, 4, 0, 0,
0, 95, 105, 109, 112, 117, 11, 0, 0, 0, 105, 110, 105, 116, 95, 102,
114, 111, 122, 101, 110, 117, 8, 0, 0, 0, 95, 95, 102, 105, 108, 101,
95, 95, 40, 4, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117,
8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 117, 9, 0, 0,
0, 105, 115, 95, 114, 101, 108, 111, 97, 100, 117, 1, 0, 0, 0, 109,
40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0,
0, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 191, 2, 0, 0,
115, 18, 0, 0, 0, 0, 6, 15, 1, 3, 1, 18, 2, 6, 1, 8,
1, 3, 1, 22, 1, 13, 1, 117, 26, 0, 0, 0, 70, 114, 111, 122,
101, 110, 73, 109, 112, 111, 114, 116, 101, 114, 46, 108, 111, 97, 100, 95,
109, 111, 100, 117, 108, 101, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2,
0, 0, 0, 2, 0, 0, 0, 67, 0, 0, 0, 115, 13, 0, 0, 0,
116, 0, 0, 106, 1, 0, 124, 1, 0, 131, 1, 0, 83, 40, 1, 0,
0, 0, 117, 45, 0, 0, 0, 82, 101, 116, 117, 114, 110, 32, 116, 104,
101, 32, 99, 111, 100, 101, 32, 111, 98, 106, 101, 99, 116, 32, 102, 111,
114, 32, 116, 104, 101, 32, 102, 114, 111, 122, 101, 110, 32, 109, 111, 100,
117, 108, 101, 46, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 95, 105,
109, 112, 117, 17, 0, 0, 0, 103, 101, 116, 95, 102, 114, 111, 122, 101,
110, 95, 111, 98, 106, 101, 99, 116, 40, 2, 0, 0, 0, 117, 3, 0,
0, 0, 99, 108, 115, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97,
109, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0,
0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108,
105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 8,
0, 0, 0, 103, 101, 116, 95, 99, 111, 100, 101, 208, 2, 0, 0, 115,
2, 0, 0, 0, 0, 4, 117, 23, 0, 0, 0, 70, 114, 111, 122, 101,
110, 73, 109, 112, 111, 114, 116, 101, 114, 46, 103, 101, 116, 95, 99, 111,
100, 101, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1,
0, 0, 0, 67, 0, 0, 0, 115, 4, 0, 0, 0, 100, 1, 0, 83,
40, 2, 0, 0, 0, 117, 54, 0, 0, 0, 82, 101, 116, 117, 114, 110,
32, 78, 111, 110, 101, 32, 97, 115, 32, 102, 114, 111, 122, 101, 110, 32,
109, 111, 100, 117, 108, 101, 115, 32, 100, 111, 32, 110, 111, 116, 32, 104,
97, 118, 101, 32, 115, 111, 117, 114, 99, 101, 32, 99, 111, 100, 101, 46,
78, 40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 78, 111, 110, 101, 40,
2, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8, 0, 0,
0, 102, 117, 108, 108, 110, 97, 109, 101, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 103, 101, 116, 95, 115, 111,
117, 114, 99, 101, 214, 2, 0, 0, 115, 2, 0, 0, 0, 0, 4, 117,
25, 0, 0, 0, 70, 114, 111, 122, 101, 110, 73, 109, 112, 111, 114, 116,
101, 114, 46, 103, 101, 116, 95, 115, 111, 117, 114, 99, 101, 99, 2, 0,
0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 67, 0,
0, 0, 115, 13, 0, 0, 0, 116, 0, 0, 106, 1, 0, 124, 1, 0,
131, 1, 0, 83, 40, 1, 0, 0, 0, 117, 46, 0, 0, 0, 82, 101,
116, 117, 114, 110, 32, 84, 114, 117, 101, 32, 105, 102, 32, 116, 104, 101,
32, 102, 114, 111, 122, 101, 110, 32, 109, 111, 100, 117, 108, 101, 32, 105,
115, 32, 97, 32, 112, 97, 99, 107, 97, 103, 101, 46, 40, 2, 0, 0,
0, 117, 4, 0, 0, 0, 95, 105, 109, 112, 117, 17, 0, 0, 0, 105,
115, 95, 102, 114, 111, 122, 101, 110, 95, 112, 97, 99, 107, 97, 103, 101,
40, 2, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8, 0,
0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 105, 115, 95, 112, 97,
99, 107, 97, 103, 101, 220, 2, 0, 0, 115, 2, 0, 0, 0, 0, 4,
117, 25, 0, 0, 0, 70, 114, 111, 122, 101, 110, 73, 109, 112, 111, 114,
116, 101, 114, 46, 105, 115, 95, 112, 97, 99, 107, 97, 103, 101, 78, 40,
15, 0, 0, 0, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95,
95, 117, 10, 0, 0, 0, 95, 95, 109, 111, 100, 117, 108, 101, 95, 95,
117, 12, 0, 0, 0, 95, 95, 113, 117, 97, 108, 110, 97, 109, 101, 95,
95, 117, 7, 0, 0, 0, 95, 95, 100, 111, 99, 95, 95, 117, 11, 0,
0, 0, 99, 108, 97, 115, 115, 109, 101, 116, 104, 111, 100, 117, 11, 0,
0, 0, 109, 111, 100, 117, 108, 101, 95, 114, 101, 112, 114, 117, 4, 0,
0, 0, 78, 111, 110, 101, 117, 11, 0, 0, 0, 102, 105, 110, 100, 95,
109, 111, 100, 117, 108, 101, 117, 11, 0, 0, 0, 115, 101, 116, 95, 112,
97, 99, 107, 97, 103, 101, 117, 10, 0, 0, 0, 115, 101, 116, 95, 108,
111, 97, 100, 101, 114, 117, 16, 0, 0, 0, 95, 114, 101, 113, 117, 105,
114, 101, 115, 95, 102, 114, 111, 122, 101, 110, 117, 11, 0, 0, 0, 108,
111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 117, 8, 0, 0, 0, 103,
101, 116, 95, 99, 111, 100, 101, 117, 10, 0, 0, 0, 103, 101, 116, 95,
115, 111, 117, 114, 99, 101, 117, 10, 0, 0, 0, 105, 115, 95, 112, 97,
99, 107, 97, 103, 101, 40, 1, 0, 0, 0, 117, 10, 0, 0, 0, 95,
95, 108, 111, 99, 97, 108, 115, 95, 95, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 14, 0, 0, 0, 70, 114, 111, 122, 101, 110,
73, 109, 112, 111, 114, 116, 101, 114, 173, 2, 0, 0, 115, 28, 0, 0,
0, 16, 7, 6, 2, 18, 4, 3, 1, 18, 4, 3, 1, 3, 1, 3,
1, 27, 14, 3, 1, 21, 5, 3, 1, 21, 5, 3, 1, 117, 14, 0,
0, 0, 70, 114, 111, 122, 101, 110, 73, 109, 112, 111, 114, 116, 101, 114,
99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0,
0, 66, 0, 0, 0, 115, 101, 0, 0, 0, 124, 0, 0, 69, 101, 0,
0, 90, 1, 0, 100, 0, 0, 90, 2, 0, 100, 1, 0, 90, 3, 0,
100, 2, 0, 90, 4, 0, 100, 3, 0, 90, 5, 0, 100, 11, 0, 90,
7, 0, 101, 8, 0, 100, 4, 0, 100, 5, 0, 132, 0, 0, 131, 1,
0, 90, 9, 0, 101, 8, 0, 100, 6, 0, 100, 7, 0, 132, 0, 0,
131, 1, 0, 90, 10, 0, 101, 8, 0, 100, 10, 0, 100, 8, 0, 100,
9, 0, 132, 1, 0, 131, 1, 0, 90, 12, 0, 100, 10, 0, 83, 40,
12, 0, 0, 0, 117, 21, 0, 0, 0, 87, 105, 110, 100, 111, 119, 115,
82, 101, 103, 105, 115, 116, 114, 121, 70, 105, 110, 100, 101, 114, 117, 67,
0, 0, 0, 77, 101, 116, 97, 32, 112, 97, 116, 104, 32, 102, 105, 110,
100, 101, 114, 32, 102, 111, 114, 32, 109, 111, 100, 117, 108, 101, 115, 32,
100, 101, 99, 108, 97, 114, 101, 100, 32, 105, 110, 32, 116, 104, 101, 32,
87, 105, 110, 100, 111, 119, 115, 32, 114, 101, 103, 105, 115, 116, 114, 121,
46, 10, 32, 32, 32, 32, 117, 59, 0, 0, 0, 83, 111, 102, 116, 119,
97, 114, 101, 92, 80, 121, 116, 104, 111, 110, 92, 80, 121, 116, 104, 111,
110, 67, 111, 114, 101, 92, 123, 115, 121, 115, 95, 118, 101, 114, 115, 105,
111, 110, 125, 92, 77, 111, 100, 117, 108, 101, 115, 92, 123, 102, 117, 108,
108, 110, 97, 109, 101, 125, 117, 65, 0, 0, 0, 83, 111, 102, 116, 119,
97, 114, 101, 92, 80, 121, 116, 104, 111, 110, 92, 80, 121, 116, 104, 111,
110, 67, 111, 114, 101, 92, 123, 115, 121, 115, 95, 118, 101, 114, 115, 105,
111, 110, 125, 92, 77, 111, 100, 117, 108, 101, 115, 92, 123, 102, 117, 108,
108, 110, 97, 109, 101, 125, 92, 68, 101, 98, 117, 103, 99, 2, 0, 0,
0, 0, 0, 0, 0, 2, 0, 0, 0, 11, 0, 0, 0, 67, 0, 0,
0, 115, 67, 0, 0, 0, 121, 23, 0, 116, 0, 0, 106, 1, 0, 116,
0, 0, 106, 2, 0, 124, 1, 0, 131, 2, 0, 83, 87, 110, 37, 0,
4, 116, 3, 0, 107, 10, 0, 114, 62, 0, 1, 1, 1, 116, 0, 0,
106, 1, 0, 116, 0, 0, 106, 4, 0, 124, 1, 0, 131, 2, 0, 83,
89, 110, 1, 0, 88, 100, 0, 0, 83, 40, 1, 0, 0, 0, 78, 40,
5, 0, 0, 0, 117, 7, 0, 0, 0, 95, 119, 105, 110, 114, 101, 103,
117, 7, 0, 0, 0, 79, 112, 101, 110, 75, 101, 121, 117, 17, 0, 0,
0, 72, 75, 69, 89, 95, 67, 85, 82, 82, 69, 78, 84, 95, 85, 83,
69, 82, 117, 12, 0, 0, 0, 87, 105, 110, 100, 111, 119, 115, 69, 114,
114, 111, 114, 117, 18, 0, 0, 0, 72, 75, 69, 89, 95, 76, 79, 67,
65, 76, 95, 77, 65, 67, 72, 73, 78, 69, 40, 2, 0, 0, 0, 117,
3, 0, 0, 0, 99, 108, 115, 117, 3, 0, 0, 0, 107, 101, 121, 40,
0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102,
114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46,
95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 14, 0, 0, 0,
95, 111, 112, 101, 110, 95, 114, 101, 103, 105, 115, 116, 114, 121, 240, 2,
0, 0, 115, 8, 0, 0, 0, 0, 2, 3, 1, 23, 1, 13, 1, 117,
36, 0, 0, 0, 87, 105, 110, 100, 111, 119, 115, 82, 101, 103, 105, 115,
116, 114, 121, 70, 105, 110, 100, 101, 114, 46, 95, 111, 112, 101, 110, 95,
114, 101, 103, 105, 115, 116, 114, 121, 99, 2, 0, 0, 0, 0, 0, 0,
0, 6, 0, 0, 0, 16, 0, 0, 0, 67, 0, 0, 0, 115, 142, 0,
0, 0, 124, 0, 0, 106, 0, 0, 114, 21, 0, 124, 0, 0, 106, 1,
0, 125, 2, 0, 110, 9, 0, 124, 0, 0, 106, 2, 0, 125, 2, 0,
124, 2, 0, 106, 3, 0, 100, 1, 0, 124, 1, 0, 100, 2, 0, 116,
4, 0, 106, 5, 0, 100, 0, 0, 100, 3, 0, 133, 2, 0, 25, 131,
0, 2, 125, 3, 0, 121, 46, 0, 124, 0, 0, 106, 6, 0, 124, 3,
0, 131, 1, 0, 143, 25, 0, 125, 4, 0, 116, 7, 0, 106, 8, 0,
124, 4, 0, 100, 4, 0, 131, 2, 0, 125, 5, 0, 87, 100, 0, 0,
81, 88, 87, 110, 22, 0, 4, 116, 9, 0, 107, 10, 0, 114, 137, 0,
1, 1, 1, 100, 0, 0, 83, 89, 110, 1, 0, 88, 124, 5, 0, 83,
40, 5, 0, 0, 0, 78, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110,
97, 109, 101, 117, 11, 0, 0, 0, 115, 121, 115, 95, 118, 101, 114, 115,
105, 111, 110, 105, 3, 0, 0, 0, 117, 0, 0, 0, 0, 40, 11, 0,
0, 0, 117, 11, 0, 0, 0, 68, 69, 66, 85, 71, 95, 66, 85, 73,
76, 68, 117, 18, 0, 0, 0, 82, 69, 71, 73, 83, 84, 82, 89, 95,
75, 69, 89, 95, 68, 69, 66, 85, 71, 117, 12, 0, 0, 0, 82, 69,
71, 73, 83, 84, 82, 89, 95, 75, 69, 89, 117, 6, 0, 0, 0, 102,
111, 114, 109, 97, 116, 117, 3, 0, 0, 0, 115, 121, 115, 117, 7, 0,
0, 0, 118, 101, 114, 115, 105, 111, 110, 117, 14, 0, 0, 0, 95, 111,
112, 101, 110, 95, 114, 101, 103, 105, 115, 116, 114, 121, 117, 7, 0, 0,
0, 95, 119, 105, 110, 114, 101, 103, 117, 10, 0, 0, 0, 81, 117, 101,
114, 121, 86, 97, 108, 117, 101, 117, 12, 0, 0, 0, 87, 105, 110, 100,
111, 119, 115, 69, 114, 114, 111, 114, 117, 4, 0, 0, 0, 78, 111, 110,
101, 40, 6, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8,
0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 117, 12, 0, 0, 0,
114, 101, 103, 105, 115, 116, 114, 121, 95, 107, 101, 121, 117, 3, 0, 0,
0, 107, 101, 121, 117, 4, 0, 0, 0, 104, 107, 101, 121, 117, 8, 0,
0, 0, 102, 105, 108, 101, 112, 97, 116, 104, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 16, 0, 0, 0, 95, 115, 101, 97, 114,
99, 104, 95, 114, 101, 103, 105, 115, 116, 114, 121, 247, 2, 0, 0, 115,
22, 0, 0, 0, 0, 2, 9, 1, 12, 2, 9, 1, 15, 1, 22, 1,
3, 1, 18, 1, 28, 1, 13, 1, 9, 1, 117, 38, 0, 0, 0, 87,
105, 110, 100, 111, 119, 115, 82, 101, 103, 105, 115, 116, 114, 121, 70, 105,
110, 100, 101, 114, 46, 95, 115, 101, 97, 114, 99, 104, 95, 114, 101, 103,
105, 115, 116, 114, 121, 99, 3, 0, 0, 0, 0, 0, 0, 0, 6, 0,
0, 0, 12, 0, 0, 0, 67, 0, 0, 0, 115, 137, 0, 0, 0, 124,
0, 0, 106, 0, 0, 124, 1, 0, 131, 1, 0, 125, 3, 0, 124, 3,
0, 100, 1, 0, 107, 8, 0, 114, 31, 0, 100, 1, 0, 83, 121, 17,
0, 116, 2, 0, 106, 3, 0, 124, 3, 0, 131, 1, 0, 1, 87, 110,
22, 0, 4, 116, 4, 0, 107, 10, 0, 114, 72, 0, 1, 1, 1, 100,
1, 0, 83, 89, 110, 1, 0, 88, 120, 57, 0, 116, 5, 0, 131, 0,
0, 68, 93, 46, 0, 92, 2, 0, 125, 4, 0, 125, 5, 0, 124, 3,
0, 106, 6, 0, 116, 7, 0, 124, 5, 0, 131, 1, 0, 131, 1, 0,
114, 83, 0, 124, 4, 0, 124, 1, 0, 124, 3, 0, 131, 2, 0, 83,
113, 83, 0, 87, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 34, 0,
0, 0, 70, 105, 110, 100, 32, 109, 111, 100, 117, 108, 101, 32, 110, 97,
109, 101, 100, 32, 105, 110, 32, 116, 104, 101, 32, 114, 101, 103, 105, 115,
116, 114, 121, 46, 78, 40, 8, 0, 0, 0, 117, 16, 0, 0, 0, 95,
115, 101, 97, 114, 99, 104, 95, 114, 101, 103, 105, 115, 116, 114, 121, 117,
4, 0, 0, 0, 78, 111, 110, 101, 117, 3, 0, 0, 0, 95, 111, 115,
117, 4, 0, 0, 0, 115, 116, 97, 116, 117, 7, 0, 0, 0, 79, 83,
69, 114, 114, 111, 114, 117, 27, 0, 0, 0, 95, 103, 101, 116, 95, 115,
117, 112, 112, 111, 114, 116, 101, 100, 95, 102, 105, 108, 101, 95, 108, 111,
97, 100, 101, 114, 115, 117, 8, 0, 0, 0, 101, 110, 100, 115, 119, 105,
116, 104, 117, 5, 0, 0, 0, 116, 117, 112, 108, 101, 40, 6, 0, 0,
0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8, 0, 0, 0, 102, 117,
108, 108, 110, 97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116, 104, 117,
8, 0, 0, 0, 102, 105, 108, 101, 112, 97, 116, 104, 117, 6, 0, 0,
0, 108, 111, 97, 100, 101, 114, 117, 8, 0, 0, 0, 115, 117, 102, 102,
105, 120, 101, 115, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29,
0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114,
116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62,
117, 11, 0, 0, 0, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108, 101,
6, 3, 0, 0, 115, 20, 0, 0, 0, 0, 3, 15, 1, 12, 1, 4,
1, 3, 1, 17, 1, 13, 1, 9, 1, 22, 1, 21, 1, 117, 33, 0,
0, 0, 87, 105, 110, 100, 111, 119, 115, 82, 101, 103, 105, 115, 116, 114,
121, 70, 105, 110, 100, 101, 114, 46, 102, 105, 110, 100, 95, 109, 111, 100,
117, 108, 101, 78, 70, 40, 13, 0, 0, 0, 117, 8, 0, 0, 0, 95,
95, 110, 97, 109, 101, 95, 95, 117, 10, 0, 0, 0, 95, 95, 109, 111,
100, 117, 108, 101, 95, 95, 117, 12, 0, 0, 0, 95, 95, 113, 117, 97,
108, 110, 97, 109, 101, 95, 95, 117, 7, 0, 0, 0, 95, 95, 100, 111,
99, 95, 95, 117, 12, 0, 0, 0, 82, 69, 71, 73, 83, 84, 82, 89,
95, 75, 69, 89, 117, 18, 0, 0, 0, 82, 69, 71, 73, 83, 84, 82,
89, 95, 75, 69, 89, 95, 68, 69, 66, 85, 71, 117, 5, 0, 0, 0,
70, 97, 108, 115, 101, 117, 11, 0, 0, 0, 68, 69, 66, 85, 71, 95,
66, 85, 73, 76, 68, 117, 11, 0, 0, 0, 99, 108, 97, 115, 115, 109,
101, 116, 104, 111, 100, 117, 14, 0, 0, 0, 95, 111, 112, 101, 110, 95,
114, 101, 103, 105, 115, 116, 114, 121, 117, 16, 0, 0, 0, 95, 115, 101,
97, 114, 99, 104, 95, 114, 101, 103, 105, 115, 116, 114, 121, 117, 4, 0,
0, 0, 78, 111, 110, 101, 117, 11, 0, 0, 0, 102, 105, 110, 100, 95,
109, 111, 100, 117, 108, 101, 40, 1, 0, 0, 0, 117, 10, 0, 0, 0,
95, 95, 108, 111, 99, 97, 108, 115, 95, 95, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 21, 0, 0, 0, 87, 105, 110, 100, 111,
119, 115, 82, 101, 103, 105, 115, 116, 114, 121, 70, 105, 110, 100, 101, 114,
227, 2, 0, 0, 115, 16, 0, 0, 0, 16, 3, 6, 3, 6, 3, 6,
2, 6, 2, 18, 7, 18, 15, 3, 1, 117, 21, 0, 0, 0, 87, 105,
110, 100, 111, 119, 115, 82, 101, 103, 105, 115, 116, 114, 121, 70, 105, 110,
100, 101, 114, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
5, 0, 0, 0, 66, 0, 0, 0, 115, 74, 0, 0, 0, 124, 0, 0,
69, 101, 0, 0, 90, 1, 0, 100, 0, 0, 90, 2, 0, 100, 1, 0,
90, 3, 0, 100, 2, 0, 100, 3, 0, 132, 0, 0, 90, 4, 0, 100,
4, 0, 100, 5, 0, 132, 0, 0, 90, 5, 0, 101, 6, 0, 100, 6,
0, 100, 10, 0, 100, 7, 0, 100, 8, 0, 132, 0, 1, 131, 1, 0,
90, 8, 0, 100, 9, 0, 83, 40, 11, 0, 0, 0, 117, 13, 0, 0,
0, 95, 76, 111, 97, 100, 101, 114, 66, 97, 115, 105, 99, 115, 117, 83,
0, 0, 0, 66, 97, 115, 101, 32, 99, 108, 97, 115, 115, 32, 111, 102,
32, 99, 111, 109, 109, 111, 110, 32, 99, 111, 100, 101, 32, 110, 101, 101,
100, 101, 100, 32, 98, 121, 32, 98, 111, 116, 104, 32, 83, 111, 117, 114,
99, 101, 76, 111, 97, 100, 101, 114, 32, 97, 110, 100, 10, 32, 32, 32,
32, 83, 111, 117, 114, 99, 101, 108, 101, 115, 115, 70, 105, 108, 101, 76,
111, 97, 100, 101, 114, 46, 99, 2, 0, 0, 0, 0, 0, 0, 0, 5,
0, 0, 0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 88, 0, 0, 0,
116, 0, 0, 124, 0, 0, 106, 1, 0, 124, 1, 0, 131, 1, 0, 131,
1, 0, 100, 1, 0, 25, 125, 2, 0, 124, 2, 0, 106, 2, 0, 100,
2, 0, 100, 1, 0, 131, 2, 0, 100, 3, 0, 25, 125, 3, 0, 124,
1, 0, 106, 3, 0, 100, 2, 0, 131, 1, 0, 100, 4, 0, 25, 125,
4, 0, 124, 3, 0, 100, 5, 0, 107, 2, 0, 111, 87, 0, 124, 4,
0, 100, 5, 0, 107, 3, 0, 83, 40, 6, 0, 0, 0, 117, 141, 0,
0, 0, 67, 111, 110, 99, 114, 101, 116, 101, 32, 105, 109, 112, 108, 101,
109, 101, 110, 116, 97, 116, 105, 111, 110, 32, 111, 102, 32, 73, 110, 115,
112, 101, 99, 116, 76, 111, 97, 100, 101, 114, 46, 105, 115, 95, 112, 97,
99, 107, 97, 103, 101, 32, 98, 121, 32, 99, 104, 101, 99, 107, 105, 110,
103, 32, 105, 102, 10, 32, 32, 32, 32, 32, 32, 32, 32, 116, 104, 101,
32, 112, 97, 116, 104, 32, 114, 101, 116, 117, 114, 110, 101, 100, 32, 98,
121, 32, 103, 101, 116, 95, 102, 105, 108, 101, 110, 97, 109, 101, 32, 104,
97, 115, 32, 97, 32, 102, 105, 108, 101, 110, 97, 109, 101, 32, 111, 102,
32, 39, 95, 95, 105, 110, 105, 116, 95, 95, 46, 112, 121, 39, 46, 105,
1, 0, 0, 0, 117, 1, 0, 0, 0, 46, 105, 0, 0, 0, 0, 105,
2, 0, 0, 0, 117, 8, 0, 0, 0, 95, 95, 105, 110, 105, 116, 95,
95, 40, 4, 0, 0, 0, 117, 11, 0, 0, 0, 95, 112, 97, 116, 104,
95, 115, 112, 108, 105, 116, 117, 12, 0, 0, 0, 103, 101, 116, 95, 102,
105, 108, 101, 110, 97, 109, 101, 117, 6, 0, 0, 0, 114, 115, 112, 108,
105, 116, 117, 10, 0, 0, 0, 114, 112, 97, 114, 116, 105, 116, 105, 111,
110, 40, 5, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117,
8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 117, 8, 0, 0,
0, 102, 105, 108, 101, 110, 97, 109, 101, 117, 13, 0, 0, 0, 102, 105,
108, 101, 110, 97, 109, 101, 95, 98, 97, 115, 101, 117, 9, 0, 0, 0,
116, 97, 105, 108, 95, 110, 97, 109, 101, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 105, 115, 95, 112, 97, 99,
107, 97, 103, 101, 26, 3, 0, 0, 115, 8, 0, 0, 0, 0, 3, 25,
1, 22, 1, 19, 1, 117, 24, 0, 0, 0, 95, 76, 111, 97, 100, 101,
114, 66, 97, 115, 105, 99, 115, 46, 105, 115, 95, 112, 97, 99, 107, 97,
103, 101, 99, 5, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 22,
0, 0, 0, 67, 0, 0, 0, 115, 208, 1, 0, 0, 124, 2, 0, 100,
1, 0, 100, 2, 0, 133, 2, 0, 25, 125, 5, 0, 124, 2, 0, 100,
2, 0, 100, 3, 0, 133, 2, 0, 25, 125, 6, 0, 124, 2, 0, 100,
3, 0, 100, 4, 0, 133, 2, 0, 25, 125, 7, 0, 124, 5, 0, 116,
0, 0, 107, 3, 0, 114, 115, 0, 100, 5, 0, 106, 1, 0, 124, 1,
0, 124, 5, 0, 131, 2, 0, 125, 8, 0, 116, 2, 0, 124, 8, 0,
131, 1, 0, 1, 116, 3, 0, 124, 8, 0, 100, 6, 0, 124, 1, 0,
100, 7, 0, 124, 3, 0, 131, 1, 2, 130, 1, 0, 110, 116, 0, 116,
4, 0, 124, 6, 0, 131, 1, 0, 100, 2, 0, 107, 3, 0, 114, 173,
0, 100, 8, 0, 106, 1, 0, 124, 1, 0, 131, 1, 0, 125, 9, 0,
116, 2, 0, 124, 9, 0, 131, 1, 0, 1, 116, 5, 0, 124, 9, 0,
131, 1, 0, 130, 1, 0, 110, 58, 0, 116, 4, 0, 124, 7, 0, 131,
1, 0, 100, 2, 0, 107, 3, 0, 114, 231, 0, 100, 9, 0, 106, 1,
0, 124, 1, 0, 131, 1, 0, 125, 9, 0, 116, 2, 0, 124, 9, 0,
131, 1, 0, 1, 116, 5, 0, 124, 9, 0, 131, 1, 0, 130, 1, 0,
110, 0, 0, 124, 4, 0, 100, 1, 0, 107, 9, 0, 114, 194, 1, 121,
20, 0, 116, 7, 0, 124, 4, 0, 100, 10, 0, 25, 131, 1, 0, 125,
10, 0, 87, 110, 18, 0, 4, 116, 8, 0, 107, 10, 0, 114, 27, 1,
1, 1, 1, 89, 110, 71, 0, 88, 116, 9, 0, 124, 6, 0, 131, 1,
0, 124, 10, 0, 107, 3, 0, 114, 98, 1, 100, 11, 0, 106, 1, 0,
124, 1, 0, 131, 1, 0, 125, 9, 0, 116, 2, 0, 124, 9, 0, 131,
1, 0, 1, 116, 3, 0, 124, 9, 0, 100, 6, 0, 124, 1, 0, 100,
7, 0, 124, 3, 0, 131, 1, 2, 130, 1, 0, 110, 0, 0, 121, 18,
0, 124, 4, 0, 100, 12, 0, 25, 100, 13, 0, 64, 125, 11, 0, 87,
110, 18, 0, 4, 116, 8, 0, 107, 10, 0, 114, 136, 1, 1, 1, 1,
89, 113, 194, 1, 88, 116, 9, 0, 124, 7, 0, 131, 1, 0, 124, 11,
0, 107, 3, 0, 114, 194, 1, 116, 3, 0, 100, 11, 0, 106, 1, 0,
124, 1, 0, 131, 1, 0, 100, 6, 0, 124, 1, 0, 100, 7, 0, 124,
3, 0, 131, 1, 2, 130, 1, 0, 113, 194, 1, 110, 0, 0, 124, 2,
0, 100, 4, 0, 100, 1, 0, 133, 2, 0, 25, 83, 40, 14, 0, 0,
0, 117, 193, 0, 0, 0, 82, 101, 116, 117, 114, 110, 32, 116, 104, 101,
32, 109, 97, 114, 115, 104, 97, 108, 108, 101, 100, 32, 98, 121, 116, 101,
115, 32, 102, 114, 111, 109, 32, 98, 121, 116, 101, 99, 111, 100, 101, 44,
32, 118, 101, 114, 105, 102, 121, 105, 110, 103, 32, 116, 104, 101, 32, 109,
97, 103, 105, 99, 10, 32, 32, 32, 32, 32, 32, 32, 32, 110, 117, 109,
98, 101, 114, 44, 32, 116, 105, 109, 101, 115, 116, 97, 109, 112, 32, 97,
110, 100, 32, 115, 111, 117, 114, 99, 101, 32, 115, 105, 122, 101, 32, 97,
108, 111, 110, 103, 32, 116, 104, 101, 32, 119, 97, 121, 46, 10, 10, 32,
32, 32, 32, 32, 32, 32, 32, 73, 102, 32, 115, 111, 117, 114, 99, 101,
95, 115, 116, 97, 116, 115, 32, 105, 115, 32, 78, 111, 110, 101, 32, 116,
104, 101, 110, 32, 115, 107, 105, 112, 32, 116, 104, 101, 32, 116, 105, 109,
101, 115, 116, 97, 109, 112, 32, 99, 104, 101, 99, 107, 46, 10, 10, 32,
32, 32, 32, 32, 32, 32, 32, 78, 105, 4, 0, 0, 0, 105, 8, 0,
0, 0, 105, 12, 0, 0, 0, 117, 30, 0, 0, 0, 98, 97, 100, 32,
109, 97, 103, 105, 99, 32, 110, 117, 109, 98, 101, 114, 32, 105, 110, 32,
123, 33, 114, 125, 58, 32, 123, 33, 114, 125, 117, 4, 0, 0, 0, 110,
97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116, 104, 117, 19, 0, 0,
0, 98, 97, 100, 32, 116, 105, 109, 101, 115, 116, 97, 109, 112, 32, 105,
110, 32, 123, 125, 117, 14, 0, 0, 0, 98, 97, 100, 32, 115, 105, 122,
101, 32, 105, 110, 32, 123, 125, 117, 5, 0, 0, 0, 109, 116, 105, 109,
101, 117, 24, 0, 0, 0, 98, 121, 116, 101, 99, 111, 100, 101, 32, 105,
115, 32, 115, 116, 97, 108, 101, 32, 102, 111, 114, 32, 123, 125, 117, 4,
0, 0, 0, 115, 105, 122, 101, 108, 3, 0, 0, 0, 255, 127, 255, 127,
3, 0, 40, 10, 0, 0, 0, 117, 12, 0, 0, 0, 95, 77, 65, 71,
73, 67, 95, 66, 89, 84, 69, 83, 117, 6, 0, 0, 0, 102, 111, 114,
109, 97, 116, 117, 16, 0, 0, 0, 95, 118, 101, 114, 98, 111, 115, 101,
95, 109, 101, 115, 115, 97, 103, 101, 117, 11, 0, 0, 0, 73, 109, 112,
111, 114, 116, 69, 114, 114, 111, 114, 117, 3, 0, 0, 0, 108, 101, 110,
117, 8, 0, 0, 0, 69, 79, 70, 69, 114, 114, 111, 114, 117, 4, 0,
0, 0, 78, 111, 110, 101, 117, 3, 0, 0, 0, 105, 110, 116, 117, 8,
0, 0, 0, 75, 101, 121, 69, 114, 114, 111, 114, 117, 7, 0, 0, 0,
95, 114, 95, 108, 111, 110, 103, 40, 12, 0, 0, 0, 117, 4, 0, 0,
0, 115, 101, 108, 102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97,
109, 101, 117, 4, 0, 0, 0, 100, 97, 116, 97, 117, 13, 0, 0, 0,
98, 121, 116, 101, 99, 111, 100, 101, 95, 112, 97, 116, 104, 117, 12, 0,
0, 0, 115, 111, 117, 114, 99, 101, 95, 115, 116, 97, 116, 115, 117, 5,
0, 0, 0, 109, 97, 103, 105, 99, 117, 13, 0, 0, 0, 114, 97, 119,
95, 116, 105, 109, 101, 115, 116, 97, 109, 112, 117, 8, 0, 0, 0, 114,
97, 119, 95, 115, 105, 122, 101, 117, 3, 0, 0, 0, 109, 115, 103, 117,
7, 0, 0, 0, 109, 101, 115, 115, 97, 103, 101, 117, 12, 0, 0, 0,
115, 111, 117, 114, 99, 101, 95, 109, 116, 105, 109, 101, 117, 11, 0, 0,
0, 115, 111, 117, 114, 99, 101, 95, 115, 105, 122, 101, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 20, 0, 0, 0, 95, 98, 121,
116, 101, 115, 95, 102, 114, 111, 109, 95, 98, 121, 116, 101, 99, 111, 100,
101, 34, 3, 0, 0, 115, 68, 0, 0, 0, 0, 7, 16, 1, 16, 1,
16, 1, 12, 1, 18, 1, 10, 1, 27, 1, 18, 1, 15, 1, 10, 1,
15, 1, 18, 1, 15, 1, 10, 1, 15, 1, 12, 1, 3, 1, 20, 1,
13, 1, 5, 2, 18, 1, 15, 1, 10, 1, 15, 1, 12, 1, 3, 1,
18, 1, 13, 1, 5, 2, 18, 1, 3, 1, 15, 1, 21, 3, 117, 34,
0, 0, 0, 95, 76, 111, 97, 100, 101, 114, 66, 97, 115, 105, 99, 115,
46, 95, 98, 121, 116, 101, 115, 95, 102, 114, 111, 109, 95, 98, 121, 116,
101, 99, 111, 100, 101, 117, 10, 0, 0, 0, 115, 111, 117, 114, 99, 101,
108, 101, 115, 115, 99, 2, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0,
0, 12, 0, 0, 0, 67, 0, 0, 0, 115, 227, 0, 0, 0, 124, 1,
0, 106, 0, 0, 125, 3, 0, 124, 0, 0, 106, 1, 0, 124, 3, 0,
131, 1, 0, 125, 4, 0, 124, 0, 0, 106, 2, 0, 124, 3, 0, 131,
1, 0, 124, 1, 0, 95, 3, 0, 124, 2, 0, 115, 106, 0, 121, 22,
0, 116, 4, 0, 124, 1, 0, 106, 3, 0, 131, 1, 0, 124, 1, 0,
95, 5, 0, 87, 113, 118, 0, 4, 116, 6, 0, 107, 10, 0, 114, 102,
0, 1, 1, 1, 124, 1, 0, 106, 3, 0, 124, 1, 0, 95, 5, 0,
89, 113, 118, 0, 88, 110, 12, 0, 124, 1, 0, 106, 3, 0, 124, 1,
0, 95, 5, 0, 124, 3, 0, 124, 1, 0, 95, 7, 0, 124, 0, 0,
106, 8, 0, 124, 3, 0, 131, 1, 0, 114, 170, 0, 116, 9, 0, 124,
1, 0, 106, 3, 0, 131, 1, 0, 100, 1, 0, 25, 103, 1, 0, 124,
1, 0, 95, 10, 0, 110, 25, 0, 124, 1, 0, 106, 7, 0, 106, 11,
0, 100, 2, 0, 131, 1, 0, 100, 1, 0, 25, 124, 1, 0, 95, 7,
0, 124, 0, 0, 124, 1, 0, 95, 12, 0, 116, 13, 0, 116, 14, 0,
124, 4, 0, 124, 1, 0, 106, 15, 0, 131, 3, 0, 1, 124, 1, 0,
83, 40, 3, 0, 0, 0, 117, 82, 0, 0, 0, 72, 101, 108, 112, 101,
114, 32, 102, 111, 114, 32, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108,
101, 32, 97, 98, 108, 101, 32, 116, 111, 32, 104, 97, 110, 100, 108, 101,
32, 101, 105, 116, 104, 101, 114, 32, 115, 111, 117, 114, 99, 101, 32, 111,
114, 32, 115, 111, 117, 114, 99, 101, 108, 101, 115, 115, 10, 32, 32, 32,
32, 32, 32, 32, 32, 108, 111, 97, 100, 105, 110, 103, 46, 105, 0, 0,
0, 0, 117, 1, 0, 0, 0, 46, 40, 16, 0, 0, 0, 117, 8, 0,
0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 8, 0, 0, 0, 103,
101, 116, 95, 99, 111, 100, 101, 117, 12, 0, 0, 0, 103, 101, 116, 95,
102, 105, 108, 101, 110, 97, 109, 101, 117, 8, 0, 0, 0, 95, 95, 102,
105, 108, 101, 95, 95, 117, 17, 0, 0, 0, 99, 97, 99, 104, 101, 95,
102, 114, 111, 109, 95, 115, 111, 117, 114, 99, 101, 117, 10, 0, 0, 0,
95, 95, 99, 97, 99, 104, 101, 100, 95, 95, 117, 19, 0, 0, 0, 78,
111, 116, 73, 109, 112, 108, 101, 109, 101, 110, 116, 101, 100, 69, 114, 114,
111, 114, 117, 11, 0, 0, 0, 95, 95, 112, 97, 99, 107, 97, 103, 101,
95, 95, 117, 10, 0, 0, 0, 105, 115, 95, 112, 97, 99, 107, 97, 103,
101, 117, 11, 0, 0, 0, 95, 112, 97, 116, 104, 95, 115, 112, 108, 105,
116, 117, 8, 0, 0, 0, 95, 95, 112, 97, 116, 104, 95, 95, 117, 10,
0, 0, 0, 114, 112, 97, 114, 116, 105, 116, 105, 111, 110, 117, 10, 0,
0, 0, 95, 95, 108, 111, 97, 100, 101, 114, 95, 95, 117, 25, 0, 0,
0, 95, 99, 97, 108, 108, 95, 119, 105, 116, 104, 95, 102, 114, 97, 109,
101, 115, 95, 114, 101, 109, 111, 118, 101, 100, 117, 4, 0, 0, 0, 101,
120, 101, 99, 117, 8, 0, 0, 0, 95, 95, 100, 105, 99, 116, 95, 95,
40, 5, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 6,
0, 0, 0, 109, 111, 100, 117, 108, 101, 117, 10, 0, 0, 0, 115, 111,
117, 114, 99, 101, 108, 101, 115, 115, 117, 4, 0, 0, 0, 110, 97, 109,
101, 117, 11, 0, 0, 0, 99, 111, 100, 101, 95, 111, 98, 106, 101, 99,
116, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0,
60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 12, 0,
0, 0, 95, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 80, 3,
0, 0, 115, 32, 0, 0, 0, 0, 4, 9, 1, 15, 1, 18, 1, 6,
1, 3, 1, 22, 1, 13, 1, 20, 2, 12, 1, 9, 1, 15, 1, 28,
2, 25, 1, 9, 1, 19, 1, 117, 26, 0, 0, 0, 95, 76, 111, 97,
100, 101, 114, 66, 97, 115, 105, 99, 115, 46, 95, 108, 111, 97, 100, 95,
109, 111, 100, 117, 108, 101, 78, 70, 40, 9, 0, 0, 0, 117, 8, 0,
0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 10, 0, 0, 0, 95,
95, 109, 111, 100, 117, 108, 101, 95, 95, 117, 12, 0, 0, 0, 95, 95,
113, 117, 97, 108, 110, 97, 109, 101, 95, 95, 117, 7, 0, 0, 0, 95,
95, 100, 111, 99, 95, 95, 117, 10, 0, 0, 0, 105, 115, 95, 112, 97,
99, 107, 97, 103, 101, 117, 20, 0, 0, 0, 95, 98, 121, 116, 101, 115,
95, 102, 114, 111, 109, 95, 98, 121, 116, 101, 99, 111, 100, 101, 117, 17,
0, 0, 0, 109, 111, 100, 117, 108, 101, 95, 102, 111, 114, 95, 108, 111,
97, 100, 101, 114, 117, 5, 0, 0, 0, 70, 97, 108, 115, 101, 117, 12,
0, 0, 0, 95, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 40,
1, 0, 0, 0, 117, 10, 0, 0, 0, 95, 95, 108, 111, 99, 97, 108,
115, 95, 95, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
13, 0, 0, 0, 95, 76, 111, 97, 100, 101, 114, 66, 97, 115, 105, 99,
115, 21, 3, 0, 0, 115, 10, 0, 0, 0, 16, 3, 6, 2, 12, 8,
12, 46, 6, 1, 117, 13, 0, 0, 0, 95, 76, 111, 97, 100, 101, 114,
66, 97, 115, 105, 99, 115, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 2, 0, 0, 0, 66, 0, 0, 0, 115, 104, 0, 0, 0,
124, 0, 0, 69, 101, 0, 0, 90, 1, 0, 100, 0, 0, 90, 2, 0,
100, 1, 0, 100, 2, 0, 132, 0, 0, 90, 3, 0, 100, 3, 0, 100,
4, 0, 132, 0, 0, 90, 4, 0, 100, 5, 0, 100, 6, 0, 132, 0,
0, 90, 5, 0, 100, 7, 0, 100, 8, 0, 132, 0, 0, 90, 6, 0,
100, 9, 0, 100, 10, 0, 132, 0, 0, 90, 7, 0, 100, 11, 0, 100,
12, 0, 132, 0, 0, 90, 8, 0, 100, 13, 0, 100, 14, 0, 132, 0,
0, 90, 9, 0, 100, 15, 0, 83, 40, 16, 0, 0, 0, 117, 12, 0,
0, 0, 83, 111, 117, 114, 99, 101, 76, 111, 97, 100, 101, 114, 99, 2,
0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 67,
0, 0, 0, 115, 10, 0, 0, 0, 116, 0, 0, 130, 1, 0, 100, 1,
0, 83, 40, 2, 0, 0, 0, 117, 121, 0, 0, 0, 79, 112, 116, 105,
111, 110, 97, 108, 32, 109, 101, 116, 104, 111, 100, 32, 116, 104, 97, 116,
32, 114, 101, 116, 117, 114, 110, 115, 32, 116, 104, 101, 32, 109, 111, 100,
105, 102, 105, 99, 97, 116, 105, 111, 110, 32, 116, 105, 109, 101, 32, 40,
97, 110, 32, 105, 110, 116, 41, 32, 102, 111, 114, 32, 116, 104, 101, 10,
32, 32, 32, 32, 32, 32, 32, 32, 115, 112, 101, 99, 105, 102, 105, 101,
100, 32, 112, 97, 116, 104, 44, 32, 119, 104, 101, 114, 101, 32, 112, 97,
116, 104, 32, 105, 115, 32, 97, 32, 115, 116, 114, 46, 10, 32, 32, 32,
32, 32, 32, 32, 32, 78, 40, 1, 0, 0, 0, 117, 19, 0, 0, 0,
78, 111, 116, 73, 109, 112, 108, 101, 109, 101, 110, 116, 101, 100, 69, 114,
114, 111, 114, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108,
102, 117, 4, 0, 0, 0, 112, 97, 116, 104, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 112, 97, 116, 104, 95,
109, 116, 105, 109, 101, 106, 3, 0, 0, 115, 2, 0, 0, 0, 0, 4,
117, 23, 0, 0, 0, 83, 111, 117, 114, 99, 101, 76, 111, 97, 100, 101,
114, 46, 112, 97, 116, 104, 95, 109, 116, 105, 109, 101, 99, 2, 0, 0,
0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 67, 0, 0,
0, 115, 20, 0, 0, 0, 105, 1, 0, 124, 0, 0, 106, 0, 0, 124,
1, 0, 131, 1, 0, 100, 1, 0, 54, 83, 40, 2, 0, 0, 0, 117,
114, 1, 0, 0, 79, 112, 116, 105, 111, 110, 97, 108, 32, 109, 101, 116,
104, 111, 100, 32, 114, 101, 116, 117, 114, 110, 105, 110, 103, 32, 97, 32,
109, 101, 116, 97, 100, 97, 116, 97, 32, 100, 105, 99, 116, 32, 102, 111,
114, 32, 116, 104, 101, 32, 115, 112, 101, 99, 105, 102, 105, 101, 100, 32,
112, 97, 116, 104, 10, 32, 32, 32, 32, 32, 32, 32, 32, 116, 111, 32,
98, 121, 32, 116, 104, 101, 32, 112, 97, 116, 104, 32, 40, 115, 116, 114,
41, 46, 10, 32, 32, 32, 32, 32, 32, 32, 32, 80, 111, 115, 115, 105,
98, 108, 101, 32, 107, 101, 121, 115, 58, 10, 32, 32, 32, 32, 32, 32,
32, 32, 45, 32, 39, 109, 116, 105, 109, 101, 39, 32, 40, 109, 97, 110,
100, 97, 116, 111, 114, 121, 41, 32, 105, 115, 32, 116, 104, 101, 32, 110,
117, 109, 101, 114, 105, 99, 32, 116, 105, 109, 101, 115, 116, 97, 109, 112,
32, 111, 102, 32, 108, 97, 115, 116, 32, 115, 111, 117, 114, 99, 101, 10,
32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 99, 111, 100, 101, 32, 109,
111, 100, 105, 102, 105, 99, 97, 116, 105, 111, 110, 59, 10, 32, 32, 32,
32, 32, 32, 32, 32, 45, 32, 39, 115, 105, 122, 101, 39, 32, 40, 111,
112, 116, 105, 111, 110, 97, 108, 41, 32, 105, 115, 32, 116, 104, 101, 32,
115, 105, 122, 101, 32, 105, 110, 32, 98, 121, 116, 101, 115, 32, 111, 102,
32, 116, 104, 101, 32, 115, 111, 117, 114, 99, 101, 32, 99, 111, 100, 101,
46, 10, 10, 32, 32, 32, 32, 32, 32, 32, 32, 73, 109, 112, 108, 101,
109, 101, 110, 116, 105, 110, 103, 32, 116, 104, 105, 115, 32, 109, 101, 116,
104, 111, 100, 32, 97, 108, 108, 111, 119, 115, 32, 116, 104, 101, 32, 108,
111, 97, 100, 101, 114, 32, 116, 111, 32, 114, 101, 97, 100, 32, 98, 121,
116, 101, 99, 111, 100, 101, 32, 102, 105, 108, 101, 115, 46, 10, 32, 32,
32, 32, 32, 32, 32, 32, 117, 5, 0, 0, 0, 109, 116, 105, 109, 101,
40, 1, 0, 0, 0, 117, 10, 0, 0, 0, 112, 97, 116, 104, 95, 109,
116, 105, 109, 101, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101,
108, 102, 117, 4, 0, 0, 0, 112, 97, 116, 104, 40, 0, 0, 0, 0,
40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101,
110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111,
116, 115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 112, 97, 116, 104,
95, 115, 116, 97, 116, 115, 112, 3, 0, 0, 115, 2, 0, 0, 0, 0,
10, 117, 23, 0, 0, 0, 83, 111, 117, 114, 99, 101, 76, 111, 97, 100,
101, 114, 46, 112, 97, 116, 104, 95, 115, 116, 97, 116, 115, 99, 4, 0,
0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 67, 0,
0, 0, 115, 16, 0, 0, 0, 124, 0, 0, 106, 0, 0, 124, 2, 0,
124, 3, 0, 131, 2, 0, 83, 40, 1, 0, 0, 0, 117, 228, 0, 0,
0, 79, 112, 116, 105, 111, 110, 97, 108, 32, 109, 101, 116, 104, 111, 100,
32, 119, 104, 105, 99, 104, 32, 119, 114, 105, 116, 101, 115, 32, 100, 97,
116, 97, 32, 40, 98, 121, 116, 101, 115, 41, 32, 116, 111, 32, 97, 32,
102, 105, 108, 101, 32, 112, 97, 116, 104, 32, 40, 97, 32, 115, 116, 114,
41, 46, 10, 10, 32, 32, 32, 32, 32, 32, 32, 32, 73, 109, 112, 108,
101, 109, 101, 110, 116, 105, 110, 103, 32, 116, 104, 105, 115, 32, 109, 101,
116, 104, 111, 100, 32, 97, 108, 108, 111, 119, 115, 32, 102, 111, 114, 32,
116, 104, 101, 32, 119, 114, 105, 116, 105, 110, 103, 32, 111, 102, 32, 98,
121, 116, 101, 99, 111, 100, 101, 32, 102, 105, 108, 101, 115, 46, 10, 10,
32, 32, 32, 32, 32, 32, 32, 32, 84, 104, 101, 32, 115, 111, 117, 114,
99, 101, 32, 112, 97, 116, 104, 32, 105, 115, 32, 110, 101, 101, 100, 101,
100, 32, 105, 110, 32, 111, 114, 100, 101, 114, 32, 116, 111, 32, 99, 111,
114, 114, 101, 99, 116, 108, 121, 32, 116, 114, 97, 110, 115, 102, 101, 114,
32, 112, 101, 114, 109, 105, 115, 115, 105, 111, 110, 115, 10, 32, 32, 32,
32, 32, 32, 32, 32, 40, 1, 0, 0, 0, 117, 8, 0, 0, 0, 115,
101, 116, 95, 100, 97, 116, 97, 40, 4, 0, 0, 0, 117, 4, 0, 0,
0, 115, 101, 108, 102, 117, 11, 0, 0, 0, 115, 111, 117, 114, 99, 101,
95, 112, 97, 116, 104, 117, 10, 0, 0, 0, 99, 97, 99, 104, 101, 95,
112, 97, 116, 104, 117, 4, 0, 0, 0, 100, 97, 116, 97, 40, 0, 0,
0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111,
122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98,
111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 15, 0, 0, 0, 95, 99,
97, 99, 104, 101, 95, 98, 121, 116, 101, 99, 111, 100, 101, 124, 3, 0,
0, 115, 2, 0, 0, 0, 0, 8, 117, 28, 0, 0, 0, 83, 111, 117,
114, 99, 101, 76, 111, 97, 100, 101, 114, 46, 95, 99, 97, 99, 104, 101,
95, 98, 121, 116, 101, 99, 111, 100, 101, 99, 3, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 67, 0, 0, 0, 115, 10,
0, 0, 0, 116, 0, 0, 130, 1, 0, 100, 1, 0, 83, 40, 2, 0,
0, 0, 117, 151, 0, 0, 0, 79, 112, 116, 105, 111, 110, 97, 108, 32,
109, 101, 116, 104, 111, 100, 32, 119, 104, 105, 99, 104, 32, 119, 114, 105,
116, 101, 115, 32, 100, 97, 116, 97, 32, 40, 98, 121, 116, 101, 115, 41,
32, 116, 111, 32, 97, 32, 102, 105, 108, 101, 32, 112, 97, 116, 104, 32,
40, 97, 32, 115, 116, 114, 41, 46, 10, 10, 32, 32, 32, 32, 32, 32,
32, 32, 73, 109, 112, 108, 101, 109, 101, 110, 116, 105, 110, 103, 32, 116,
104, 105, 115, 32, 109, 101, 116, 104, 111, 100, 32, 97, 108, 108, 111, 119,
115, 32, 102, 111, 114, 32, 116, 104, 101, 32, 119, 114, 105, 116, 105, 110,
103, 32, 111, 102, 32, 98, 121, 116, 101, 99, 111, 100, 101, 32, 102, 105,
108, 101, 115, 46, 10, 10, 32, 32, 32, 32, 32, 32, 32, 32, 78, 40,
1, 0, 0, 0, 117, 19, 0, 0, 0, 78, 111, 116, 73, 109, 112, 108,
101, 109, 101, 110, 116, 101, 100, 69, 114, 114, 111, 114, 40, 3, 0, 0,
0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 4, 0, 0, 0, 112,
97, 116, 104, 117, 4, 0, 0, 0, 100, 97, 116, 97, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 8, 0, 0, 0, 115, 101, 116,
95, 100, 97, 116, 97, 134, 3, 0, 0, 115, 2, 0, 0, 0, 0, 6,
117, 21, 0, 0, 0, 83, 111, 117, 114, 99, 101, 76, 111, 97, 100, 101,
114, 46, 115, 101, 116, 95, 100, 97, 116, 97, 99, 2, 0, 0, 0, 0,
0, 0, 0, 9, 0, 0, 0, 44, 0, 0, 0, 67, 0, 0, 0, 115,
62, 1, 0, 0, 100, 1, 0, 100, 2, 0, 108, 0, 0, 125, 2, 0,
124, 0, 0, 106, 1, 0, 124, 1, 0, 131, 1, 0, 125, 3, 0, 121,
19, 0, 124, 0, 0, 106, 2, 0, 124, 3, 0, 131, 1, 0, 125, 4,
0, 87, 110, 58, 0, 4, 116, 3, 0, 107, 10, 0, 114, 106, 0, 1,
125, 5, 0, 1, 122, 26, 0, 116, 4, 0, 100, 3, 0, 100, 4, 0,
124, 1, 0, 131, 1, 1, 124, 5, 0, 130, 2, 0, 87, 89, 100, 2,
0, 100, 2, 0, 125, 5, 0, 126, 5, 0, 88, 110, 1, 0, 88, 116,
5, 0, 106, 6, 0, 124, 4, 0, 131, 1, 0, 106, 7, 0, 125, 6,
0, 121, 19, 0, 124, 2, 0, 106, 8, 0, 124, 6, 0, 131, 1, 0,
125, 7, 0, 87, 110, 58, 0, 4, 116, 9, 0, 107, 10, 0, 114, 204,
0, 1, 125, 5, 0, 1, 122, 26, 0, 116, 4, 0, 100, 5, 0, 100,
4, 0, 124, 1, 0, 131, 1, 1, 124, 5, 0, 130, 2, 0, 87, 89,
100, 2, 0, 100, 2, 0, 125, 5, 0, 126, 5, 0, 88, 110, 1, 0,
88, 116, 5, 0, 106, 10, 0, 100, 2, 0, 100, 7, 0, 131, 2, 0,
125, 8, 0, 121, 30, 0, 124, 8, 0, 106, 13, 0, 124, 4, 0, 106,
13, 0, 124, 7, 0, 100, 1, 0, 25, 131, 1, 0, 131, 1, 0, 83,
87, 110, 58, 0, 4, 116, 14, 0, 107, 10, 0, 114, 57, 1, 1, 125,
5, 0, 1, 122, 26, 0, 116, 4, 0, 100, 6, 0, 100, 4, 0, 124,
1, 0, 131, 1, 1, 124, 5, 0, 130, 2, 0, 87, 89, 100, 2, 0,
100, 2, 0, 125, 5, 0, 126, 5, 0, 88, 110, 1, 0, 88, 100, 2,
0, 83, 40, 8, 0, 0, 0, 117, 52, 0, 0, 0, 67, 111, 110, 99,
114, 101, 116, 101, 32, 105, 109, 112, 108, 101, 109, 101, 110, 116, 97, 116,
105, 111, 110, 32, 111, 102, 32, 73, 110, 115, 112, 101, 99, 116, 76, 111,
97, 100, 101, 114, 46, 103, 101, 116, 95, 115, 111, 117, 114, 99, 101, 46,
105, 0, 0, 0, 0, 78, 117, 39, 0, 0, 0, 115, 111, 117, 114, 99,
101, 32, 110, 111, 116, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 32,
116, 104, 114, 111, 117, 103, 104, 32, 103, 101, 116, 95, 100, 97, 116, 97,
40, 41, 117, 4, 0, 0, 0, 110, 97, 109, 101, 117, 25, 0, 0, 0,
70, 97, 105, 108, 101, 100, 32, 116, 111, 32, 100, 101, 116, 101, 99, 116,
32, 101, 110, 99, 111, 100, 105, 110, 103, 117, 28, 0, 0, 0, 70, 97,
105, 108, 101, 100, 32, 116, 111, 32, 100, 101, 99, 111, 100, 101, 32, 115,
111, 117, 114, 99, 101, 32, 102, 105, 108, 101, 84, 40, 15, 0, 0, 0,
117, 8, 0, 0, 0, 116, 111, 107, 101, 110, 105, 122, 101, 117, 12, 0,
0, 0, 103, 101, 116, 95, 102, 105, 108, 101, 110, 97, 109, 101, 117, 8,
0, 0, 0, 103, 101, 116, 95, 100, 97, 116, 97, 117, 7, 0, 0, 0,
73, 79, 69, 114, 114, 111, 114, 117, 11, 0, 0, 0, 73, 109, 112, 111,
114, 116, 69, 114, 114, 111, 114, 117, 3, 0, 0, 0, 95, 105, 111, 117,
7, 0, 0, 0, 66, 121, 116, 101, 115, 73, 79, 117, 8, 0, 0, 0,
114, 101, 97, 100, 108, 105, 110, 101, 117, 15, 0, 0, 0, 100, 101, 116,
101, 99, 116, 95, 101, 110, 99, 111, 100, 105, 110, 103, 117, 11, 0, 0,
0, 83, 121, 110, 116, 97, 120, 69, 114, 114, 111, 114, 117, 25, 0, 0,
0, 73, 110, 99, 114, 101, 109, 101, 110, 116, 97, 108, 78, 101, 119, 108,
105, 110, 101, 68, 101, 99, 111, 100, 101, 114, 117, 4, 0, 0, 0, 78,
111, 110, 101, 117, 4, 0, 0, 0, 84, 114, 117, 101, 117, 6, 0, 0,
0, 100, 101, 99, 111, 100, 101, 117, 18, 0, 0, 0, 85, 110, 105, 99,
111, 100, 101, 68, 101, 99, 111, 100, 101, 69, 114, 114, 111, 114, 40, 9,
0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 8, 0, 0,
0, 102, 117, 108, 108, 110, 97, 109, 101, 117, 8, 0, 0, 0, 116, 111,
107, 101, 110, 105, 122, 101, 117, 4, 0, 0, 0, 112, 97, 116, 104, 117,
12, 0, 0, 0, 115, 111, 117, 114, 99, 101, 95, 98, 121, 116, 101, 115,
117, 3, 0, 0, 0, 101, 120, 99, 117, 10, 0, 0, 0, 114, 101, 97,
100, 115, 111, 117, 114, 99, 101, 117, 8, 0, 0, 0, 101, 110, 99, 111,
100, 105, 110, 103, 117, 15, 0, 0, 0, 110, 101, 119, 108, 105, 110, 101,
95, 100, 101, 99, 111, 100, 101, 114, 40, 0, 0, 0, 0, 40, 0, 0,
0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105,
109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116,
114, 97, 112, 62, 117, 10, 0, 0, 0, 103, 101, 116, 95, 115, 111, 117,
114, 99, 101, 143, 3, 0, 0, 115, 38, 0, 0, 0, 0, 2, 12, 1,
15, 1, 3, 1, 19, 1, 18, 1, 9, 1, 31, 1, 18, 1, 3, 1,
19, 1, 18, 1, 9, 1, 31, 1, 18, 1, 3, 1, 30, 1, 18, 1,
9, 1, 117, 23, 0, 0, 0, 83, 111, 117, 114, 99, 101, 76, 111, 97,
100, 101, 114, 46, 103, 101, 116, 95, 115, 111, 117, 114, 99, 101, 99, 2,
0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 45, 0, 0, 0, 67,
0, 0, 0, 115, 52, 2, 0, 0, 124, 0, 0, 106, 0, 0, 124, 1,
0, 131, 1, 0, 125, 2, 0, 100, 10, 0, 125, 3, 0, 121, 16, 0,
116, 2, 0, 124, 2, 0, 131, 1, 0, 125, 4, 0, 87, 110, 24, 0,
4, 116, 3, 0, 107, 10, 0, 114, 63, 0, 1, 1, 1, 100, 10, 0,
125, 4, 0, 89, 110, 14, 1, 88, 121, 19, 0, 124, 0, 0, 106, 4,
0, 124, 2, 0, 131, 1, 0, 125, 5, 0, 87, 110, 18, 0, 4, 116,
3, 0, 107, 10, 0, 114, 103, 0, 1, 1, 1, 89, 110, 230, 0, 88,
116, 5, 0, 124, 5, 0, 100, 1, 0, 25, 131, 1, 0, 125, 3, 0,
121, 19, 0, 124, 0, 0, 106, 6, 0, 124, 4, 0, 131, 1, 0, 125,
6, 0, 87, 110, 18, 0, 4, 116, 7, 0, 107, 10, 0, 114, 159, 0,
1, 1, 1, 89, 110, 174, 0, 88, 121, 28, 0, 124, 0, 0, 106, 8,
0, 124, 1, 0, 124, 6, 0, 124, 4, 0, 124, 5, 0, 131, 4, 0,
125, 7, 0, 87, 110, 24, 0, 4, 116, 9, 0, 116, 10, 0, 102, 2,
0, 107, 10, 0, 114, 214, 0, 1, 1, 1, 89, 110, 119, 0, 88, 116,
11, 0, 100, 2, 0, 124, 4, 0, 124, 2, 0, 131, 3, 0, 1, 116,
12, 0, 106, 13, 0, 124, 7, 0, 131, 1, 0, 125, 8, 0, 116, 14,
0, 124, 8, 0, 116, 15, 0, 131, 2, 0, 114, 38, 1, 116, 16, 0,
106, 17, 0, 124, 8, 0, 124, 2, 0, 131, 2, 0, 1, 116, 11, 0,
100, 3, 0, 124, 4, 0, 131, 2, 0, 1, 124, 8, 0, 83, 100, 4,
0, 125, 9, 0, 116, 9, 0, 124, 9, 0, 106, 18, 0, 124, 4, 0,
131, 1, 0, 100, 5, 0, 124, 1, 0, 100, 6, 0, 124, 4, 0, 131,
1, 2, 130, 1, 0, 124, 0, 0, 106, 6, 0, 124, 2, 0, 131, 1,
0, 125, 10, 0, 116, 19, 0, 116, 20, 0, 124, 10, 0, 124, 2, 0,
100, 7, 0, 100, 8, 0, 100, 11, 0, 131, 4, 1, 125, 11, 0, 116,
11, 0, 100, 3, 0, 124, 2, 0, 131, 2, 0, 1, 116, 22, 0, 106,
23, 0, 12, 114, 48, 2, 124, 4, 0, 100, 10, 0, 107, 9, 0, 114,
48, 2, 124, 3, 0, 100, 10, 0, 107, 9, 0, 114, 48, 2, 116, 24,
0, 116, 25, 0, 131, 1, 0, 125, 6, 0, 124, 6, 0, 106, 26, 0,
116, 27, 0, 124, 3, 0, 131, 1, 0, 131, 1, 0, 1, 124, 6, 0,
106, 26, 0, 116, 27, 0, 116, 28, 0, 124, 10, 0, 131, 1, 0, 131,
1, 0, 131, 1, 0, 1, 124, 6, 0, 106, 26, 0, 116, 12, 0, 106,
29, 0, 124, 11, 0, 131, 1, 0, 131, 1, 0, 1, 121, 36, 0, 124,
0, 0, 106, 30, 0, 124, 2, 0, 124, 4, 0, 124, 6, 0, 131, 3,
0, 1, 116, 11, 0, 100, 9, 0, 124, 4, 0, 131, 2, 0, 1, 87,
113, 48, 2, 4, 116, 3, 0, 107, 10, 0, 114, 44, 2, 1, 1, 1,
89, 113, 48, 2, 88, 110, 0, 0, 124, 11, 0, 83, 40, 12, 0, 0,
0, 117, 190, 0, 0, 0, 67, 111, 110, 99, 114, 101, 116, 101, 32, 105,
109, 112, 108, 101, 109, 101, 110, 116, 97, 116, 105, 111, 110, 32, 111, 102,
32, 73, 110, 115, 112, 101, 99, 116, 76, 111, 97, 100, 101, 114, 46, 103,
101, 116, 95, 99, 111, 100, 101, 46, 10, 10, 32, 32, 32, 32, 32, 32,
32, 32, 82, 101, 97, 100, 105, 110, 103, 32, 111, 102, 32, 98, 121, 116,
101, 99, 111, 100, 101, 32, 114, 101, 113, 117, 105, 114, 101, 115, 32, 112,
97, 116, 104, 95, 115, 116, 97, 116, 115, 32, 116, 111, 32, 98, 101, 32,
105, 109, 112, 108, 101, 109, 101, 110, 116, 101, 100, 46, 32, 84, 111, 32,
119, 114, 105, 116, 101, 10, 32, 32, 32, 32, 32, 32, 32, 32, 98, 121,
116, 101, 99, 111, 100, 101, 44, 32, 115, 101, 116, 95, 100, 97, 116, 97,
32, 109, 117, 115, 116, 32, 97, 108, 115, 111, 32, 98, 101, 32, 105, 109,
112, 108, 101, 109, 101, 110, 116, 101, 100, 46, 10, 10, 32, 32, 32, 32,
32, 32, 32, 32, 117, 5, 0, 0, 0, 109, 116, 105, 109, 101, 117, 13,
0, 0, 0, 123, 125, 32, 109, 97, 116, 99, 104, 101, 115, 32, 123, 125,
117, 19, 0, 0, 0, 99, 111, 100, 101, 32, 111, 98, 106, 101, 99, 116,
32, 102, 114, 111, 109, 32, 123, 125, 117, 21, 0, 0, 0, 78, 111, 110,
45, 99, 111, 100, 101, 32, 111, 98, 106, 101, 99, 116, 32, 105, 110, 32,
123, 125, 117, 4, 0, 0, 0, 110, 97, 109, 101, 117, 4, 0, 0, 0,
112, 97, 116, 104, 117, 4, 0, 0, 0, 101, 120, 101, 99, 117, 12, 0,
0, 0, 100, 111, 110, 116, 95, 105, 110, 104, 101, 114, 105, 116, 117, 10,
0, 0, 0, 119, 114, 111, 116, 101, 32, 123, 33, 114, 125, 78, 84, 40,
31, 0, 0, 0, 117, 12, 0, 0, 0, 103, 101, 116, 95, 102, 105, 108,
101, 110, 97, 109, 101, 117, 4, 0, 0, 0, 78, 111, 110, 101, 117, 17,
0, 0, 0, 99, 97, 99, 104, 101, 95, 102, 114, 111, 109, 95, 115, 111,
117, 114, 99, 101, 117, 19, 0, 0, 0, 78, 111, 116, 73, 109, 112, 108,
101, 109, 101, 110, 116, 101, 100, 69, 114, 114, 111, 114, 117, 10, 0, 0,
0, 112, 97, 116, 104, 95, 115, 116, 97, 116, 115, 117, 3, 0, 0, 0,
105, 110, 116, 117, 8, 0, 0, 0, 103, 101, 116, 95, 100, 97, 116, 97,
117, 7, 0, 0, 0, 73, 79, 69, 114, 114, 111, 114, 117, 20, 0, 0,
0, 95, 98, 121, 116, 101, 115, 95, 102, 114, 111, 109, 95, 98, 121, 116,
101, 99, 111, 100, 101, 117, 11, 0, 0, 0, 73, 109, 112, 111, 114, 116,
69, 114, 114, 111, 114, 117, 8, 0, 0, 0, 69, 79, 70, 69, 114, 114,
111, 114, 117, 16, 0, 0, 0, 95, 118, 101, 114, 98, 111, 115, 101, 95,
109, 101, 115, 115, 97, 103, 101, 117, 7, 0, 0, 0, 109, 97, 114, 115,
104, 97, 108, 117, 5, 0, 0, 0, 108, 111, 97, 100, 115, 117, 10, 0,
0, 0, 105, 115, 105, 110, 115, 116, 97, 110, 99, 101, 117, 10, 0, 0,
0, 95, 99, 111, 100, 101, 95, 116, 121, 112, 101, 117, 4, 0, 0, 0,
95, 105, 109, 112, 117, 16, 0, 0, 0, 95, 102, 105, 120, 95, 99, 111,
95, 102, 105, 108, 101, 110, 97, 109, 101, 117, 6, 0, 0, 0, 102, 111,
114, 109, 97, 116, 117, 25, 0, 0, 0, 95, 99, 97, 108, 108, 95, 119,
105, 116, 104, 95, 102, 114, 97, 109, 101, 115, 95, 114, 101, 109, 111, 118,
101, 100, 117, 7, 0, 0, 0, 99, 111, 109, 112, 105, 108, 101, 117, 4,
0, 0, 0, 84, 114, 117, 101, 117, 3, 0, 0, 0, 115, 121, 115, 117,
19, 0, 0, 0, 100, 111, 110, 116, 95, 119, 114, 105, 116, 101, 95, 98,
121, 116, 101, 99, 111, 100, 101, 117, 9, 0, 0, 0, 98, 121, 116, 101,
97, 114, 114, 97, 121, 117, 12, 0, 0, 0, 95, 77, 65, 71, 73, 67,
95, 66, 89, 84, 69, 83, 117, 6, 0, 0, 0, 101, 120, 116, 101, 110,
100, 117, 7, 0, 0, 0, 95, 119, 95, 108, 111, 110, 103, 117, 3, 0,
0, 0, 108, 101, 110, 117, 5, 0, 0, 0, 100, 117, 109, 112, 115, 117,
15, 0, 0, 0, 95, 99, 97, 99, 104, 101, 95, 98, 121, 116, 101, 99,
111, 100, 101, 40, 12, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108,
102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 117, 11,
0, 0, 0, 115, 111, 117, 114, 99, 101, 95, 112, 97, 116, 104, 117, 12,
0, 0, 0, 115, 111, 117, 114, 99, 101, 95, 109, 116, 105, 109, 101, 117,
13, 0, 0, 0, 98, 121, 116, 101, 99, 111, 100, 101, 95, 112, 97, 116,
104, 117, 2, 0, 0, 0, 115, 116, 117, 4, 0, 0, 0, 100, 97, 116,
97, 117, 10, 0, 0, 0, 98, 121, 116, 101, 115, 95, 100, 97, 116, 97,
117, 5, 0, 0, 0, 102, 111, 117, 110, 100, 117, 3, 0, 0, 0, 109,
115, 103, 117, 12, 0, 0, 0, 115, 111, 117, 114, 99, 101, 95, 98, 121,
116, 101, 115, 117, 11, 0, 0, 0, 99, 111, 100, 101, 95, 111, 98, 106,
101, 99, 116, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
8, 0, 0, 0, 103, 101, 116, 95, 99, 111, 100, 101, 165, 3, 0, 0,
115, 98, 0, 0, 0, 0, 7, 15, 1, 6, 1, 3, 1, 16, 1, 13,
1, 11, 2, 3, 1, 19, 1, 13, 1, 5, 2, 16, 1, 3, 1, 19,
1, 13, 1, 5, 2, 3, 1, 12, 1, 3, 1, 13, 1, 19, 1, 5,
2, 9, 1, 7, 1, 15, 1, 15, 1, 16, 1, 6, 1, 7, 1, 4,
2, 6, 1, 18, 1, 15, 1, 15, 1, 6, 1, 12, 1, 9, 1, 13,
1, 22, 1, 12, 1, 12, 1, 19, 1, 25, 1, 22, 1, 3, 1, 19,
1, 17, 1, 13, 1, 8, 1, 117, 21, 0, 0, 0, 83, 111, 117, 114,
99, 101, 76, 111, 97, 100, 101, 114, 46, 103, 101, 116, 95, 99, 111, 100,
101, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0,
0, 0, 67, 0, 0, 0, 115, 13, 0, 0, 0, 124, 0, 0, 106, 0,
0, 124, 1, 0, 131, 1, 0, 83, 40, 1, 0, 0, 0, 117, 0, 1,
0, 0, 67, 111, 110, 99, 114, 101, 116, 101, 32, 105, 109, 112, 108, 101,
109, 101, 110, 116, 97, 116, 105, 111, 110, 32, 111, 102, 32, 76, 111, 97,
100, 101, 114, 46, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 46,
10, 10, 32, 32, 32, 32, 32, 32, 32, 32, 82, 101, 113, 117, 105, 114,
101, 115, 32, 69, 120, 101, 99, 117, 116, 105, 111, 110, 76, 111, 97, 100,
101, 114, 46, 103, 101, 116, 95, 102, 105, 108, 101, 110, 97, 109, 101, 32,
97, 110, 100, 32, 82, 101, 115, 111, 117, 114, 99, 101, 76, 111, 97, 100,
101, 114, 46, 103, 101, 116, 95, 100, 97, 116, 97, 32, 116, 111, 32, 98,
101, 10, 32, 32, 32, 32, 32, 32, 32, 32, 105, 109, 112, 108, 101, 109,
101, 110, 116, 101, 100, 32, 116, 111, 32, 108, 111, 97, 100, 32, 115, 111,
117, 114, 99, 101, 32, 99, 111, 100, 101, 46, 32, 85, 115, 101, 32, 111,
102, 32, 98, 121, 116, 101, 99, 111, 100, 101, 32, 105, 115, 32, 100, 105,
99, 116, 97, 116, 101, 100, 32, 98, 121, 32, 119, 104, 101, 116, 104, 101,
114, 10, 32, 32, 32, 32, 32, 32, 32, 32, 103, 101, 116, 95, 99, 111,
100, 101, 32, 117, 115, 101, 115, 47, 119, 114, 105, 116, 101, 115, 32, 98,
121, 116, 101, 99, 111, 100, 101, 46, 10, 10, 32, 32, 32, 32, 32, 32,
32, 32, 40, 1, 0, 0, 0, 117, 12, 0, 0, 0, 95, 108, 111, 97,
100, 95, 109, 111, 100, 117, 108, 101, 40, 2, 0, 0, 0, 117, 4, 0,
0, 0, 115, 101, 108, 102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110,
97, 109, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
11, 0, 0, 0, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 227,
3, 0, 0, 115, 2, 0, 0, 0, 0, 8, 117, 24, 0, 0, 0, 83,
111, 117, 114, 99, 101, 76, 111, 97, 100, 101, 114, 46, 108, 111, 97, 100,
95, 109, 111, 100, 117, 108, 101, 78, 40, 10, 0, 0, 0, 117, 8, 0,
0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 10, 0, 0, 0, 95,
95, 109, 111, 100, 117, 108, 101, 95, 95, 117, 12, 0, 0, 0, 95, 95,
113, 117, 97, 108, 110, 97, 109, 101, 95, 95, 117, 10, 0, 0, 0, 112,
97, 116, 104, 95, 109, 116, 105, 109, 101, 117, 10, 0, 0, 0, 112, 97,
116, 104, 95, 115, 116, 97, 116, 115, 117, 15, 0, 0, 0, 95, 99, 97,
99, 104, 101, 95, 98, 121, 116, 101, 99, 111, 100, 101, 117, 8, 0, 0,
0, 115, 101, 116, 95, 100, 97, 116, 97, 117, 10, 0, 0, 0, 103, 101,
116, 95, 115, 111, 117, 114, 99, 101, 117, 8, 0, 0, 0, 103, 101, 116,
95, 99, 111, 100, 101, 117, 11, 0, 0, 0, 108, 111, 97, 100, 95, 109,
111, 100, 117, 108, 101, 40, 1, 0, 0, 0, 117, 10, 0, 0, 0, 95,
95, 108, 111, 99, 97, 108, 115, 95, 95, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 12, 0, 0, 0, 83, 111, 117, 114, 99, 101,
76, 111, 97, 100, 101, 114, 104, 3, 0, 0, 115, 14, 0, 0, 0, 16,
2, 12, 6, 12, 12, 12, 10, 12, 9, 12, 22, 12, 62, 117, 12, 0,
0, 0, 83, 111, 117, 114, 99, 101, 76, 111, 97, 100, 101, 114, 99, 1,
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 2,
0, 0, 0, 115, 92, 0, 0, 0, 124, 0, 0, 69, 101, 0, 0, 90,
1, 0, 100, 0, 0, 90, 2, 0, 100, 1, 0, 90, 3, 0, 100, 2,
0, 100, 3, 0, 132, 0, 0, 90, 4, 0, 101, 5, 0, 135, 0, 0,
102, 1, 0, 100, 4, 0, 100, 5, 0, 134, 0, 0, 131, 1, 0, 90,
6, 0, 101, 5, 0, 100, 6, 0, 100, 7, 0, 132, 0, 0, 131, 1,
0, 90, 7, 0, 100, 8, 0, 100, 9, 0, 132, 0, 0, 90, 8, 0,
135, 0, 0, 83, 40, 10, 0, 0, 0, 117, 10, 0, 0, 0, 70, 105,
108, 101, 76, 111, 97, 100, 101, 114, 117, 103, 0, 0, 0, 66, 97, 115,
101, 32, 102, 105, 108, 101, 32, 108, 111, 97, 100, 101, 114, 32, 99, 108,
97, 115, 115, 32, 119, 104, 105, 99, 104, 32, 105, 109, 112, 108, 101, 109,
101, 110, 116, 115, 32, 116, 104, 101, 32, 108, 111, 97, 100, 101, 114, 32,
112, 114, 111, 116, 111, 99, 111, 108, 32, 109, 101, 116, 104, 111, 100, 115,
32, 116, 104, 97, 116, 10, 32, 32, 32, 32, 114, 101, 113, 117, 105, 114,
101, 32, 102, 105, 108, 101, 32, 115, 121, 115, 116, 101, 109, 32, 117, 115,
97, 103, 101, 46, 99, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0,
0, 2, 0, 0, 0, 67, 0, 0, 0, 115, 22, 0, 0, 0, 124, 1,
0, 124, 0, 0, 95, 0, 0, 124, 2, 0, 124, 0, 0, 95, 1, 0,
100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 75, 0, 0, 0, 67, 97,
99, 104, 101, 32, 116, 104, 101, 32, 109, 111, 100, 117, 108, 101, 32, 110,
97, 109, 101, 32, 97, 110, 100, 32, 116, 104, 101, 32, 112, 97, 116, 104,
32, 116, 111, 32, 116, 104, 101, 32, 102, 105, 108, 101, 32, 102, 111, 117,
110, 100, 32, 98, 121, 32, 116, 104, 101, 10, 32, 32, 32, 32, 32, 32,
32, 32, 102, 105, 110, 100, 101, 114, 46, 78, 40, 2, 0, 0, 0, 117,
4, 0, 0, 0, 110, 97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116,
104, 40, 3, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117,
8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 117, 4, 0, 0,
0, 112, 97, 116, 104, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117,
29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111,
114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112,
62, 117, 8, 0, 0, 0, 95, 95, 105, 110, 105, 116, 95, 95, 243, 3,
0, 0, 115, 4, 0, 0, 0, 0, 3, 9, 1, 117, 19, 0, 0, 0,
70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 46, 95, 95, 105, 110, 105,
116, 95, 95, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0,
3, 0, 0, 0, 3, 0, 0, 0, 115, 22, 0, 0, 0, 116, 0, 0,
116, 1, 0, 124, 0, 0, 131, 2, 0, 106, 2, 0, 124, 1, 0, 131,
1, 0, 83, 40, 1, 0, 0, 0, 117, 26, 0, 0, 0, 76, 111, 97,
100, 32, 97, 32, 109, 111, 100, 117, 108, 101, 32, 102, 114, 111, 109, 32,
97, 32, 102, 105, 108, 101, 46, 40, 3, 0, 0, 0, 117, 5, 0, 0,
0, 115, 117, 112, 101, 114, 117, 10, 0, 0, 0, 70, 105, 108, 101, 76,
111, 97, 100, 101, 114, 117, 11, 0, 0, 0, 108, 111, 97, 100, 95, 109,
111, 100, 117, 108, 101, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 115,
101, 108, 102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101,
40, 1, 0, 0, 0, 117, 9, 0, 0, 0, 95, 95, 99, 108, 97, 115,
115, 95, 95, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114,
111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95,
98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0, 0, 108,
111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 249, 3, 0, 0, 115, 2,
0, 0, 0, 0, 5, 117, 22, 0, 0, 0, 70, 105, 108, 101, 76, 111,
97, 100, 101, 114, 46, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101,
99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0,
0, 67, 0, 0, 0, 115, 7, 0, 0, 0, 124, 0, 0, 106, 0, 0,
83, 40, 1, 0, 0, 0, 117, 58, 0, 0, 0, 82, 101, 116, 117, 114,
110, 32, 116, 104, 101, 32, 112, 97, 116, 104, 32, 116, 111, 32, 116, 104,
101, 32, 115, 111, 117, 114, 99, 101, 32, 102, 105, 108, 101, 32, 97, 115,
32, 102, 111, 117, 110, 100, 32, 98, 121, 32, 116, 104, 101, 32, 102, 105,
110, 100, 101, 114, 46, 40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 112,
97, 116, 104, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108,
102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 40, 0,
0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114,
111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95,
98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 12, 0, 0, 0, 103,
101, 116, 95, 102, 105, 108, 101, 110, 97, 109, 101, 0, 4, 0, 0, 115,
2, 0, 0, 0, 0, 3, 117, 23, 0, 0, 0, 70, 105, 108, 101, 76,
111, 97, 100, 101, 114, 46, 103, 101, 116, 95, 102, 105, 108, 101, 110, 97,
109, 101, 99, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 8,
0, 0, 0, 67, 0, 0, 0, 115, 41, 0, 0, 0, 116, 0, 0, 106,
1, 0, 124, 1, 0, 100, 1, 0, 131, 2, 0, 143, 17, 0, 125, 2,
0, 124, 2, 0, 106, 2, 0, 131, 0, 0, 83, 87, 100, 2, 0, 81,
88, 100, 2, 0, 83, 40, 3, 0, 0, 0, 117, 39, 0, 0, 0, 82,
101, 116, 117, 114, 110, 32, 116, 104, 101, 32, 100, 97, 116, 97, 32, 102,
114, 111, 109, 32, 112, 97, 116, 104, 32, 97, 115, 32, 114, 97, 119, 32,
98, 121, 116, 101, 115, 46, 117, 1, 0, 0, 0, 114, 78, 40, 3, 0,
0, 0, 117, 3, 0, 0, 0, 95, 105, 111, 117, 6, 0, 0, 0, 70,
105, 108, 101, 73, 79, 117, 4, 0, 0, 0, 114, 101, 97, 100, 40, 3,
0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 4, 0, 0,
0, 112, 97, 116, 104, 117, 4, 0, 0, 0, 102, 105, 108, 101, 40, 0,
0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114,
111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95,
98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 8, 0, 0, 0, 103,
101, 116, 95, 100, 97, 116, 97, 5, 4, 0, 0, 115, 4, 0, 0, 0,
0, 2, 21, 1, 117, 19, 0, 0, 0, 70, 105, 108, 101, 76, 111, 97,
100, 101, 114, 46, 103, 101, 116, 95, 100, 97, 116, 97, 40, 9, 0, 0,
0, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 10,
0, 0, 0, 95, 95, 109, 111, 100, 117, 108, 101, 95, 95, 117, 12, 0,
0, 0, 95, 95, 113, 117, 97, 108, 110, 97, 109, 101, 95, 95, 117, 7,
0, 0, 0, 95, 95, 100, 111, 99, 95, 95, 117, 8, 0, 0, 0, 95,
95, 105, 110, 105, 116, 95, 95, 117, 11, 0, 0, 0, 95, 99, 104, 101,
99, 107, 95, 110, 97, 109, 101, 117, 11, 0, 0, 0, 108, 111, 97, 100,
95, 109, 111, 100, 117, 108, 101, 117, 12, 0, 0, 0, 103, 101, 116, 95,
102, 105, 108, 101, 110, 97, 109, 101, 117, 8, 0, 0, 0, 103, 101, 116,
95, 100, 97, 116, 97, 40, 1, 0, 0, 0, 117, 10, 0, 0, 0, 95,
95, 108, 111, 99, 97, 108, 115, 95, 95, 40, 0, 0, 0, 0, 40, 1,
0, 0, 0, 117, 9, 0, 0, 0, 95, 95, 99, 108, 97, 115, 115, 95,
95, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109,
112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114,
97, 112, 62, 117, 10, 0, 0, 0, 70, 105, 108, 101, 76, 111, 97, 100,
101, 114, 238, 3, 0, 0, 115, 10, 0, 0, 0, 16, 3, 6, 2, 12,
6, 24, 7, 18, 5, 117, 10, 0, 0, 0, 70, 105, 108, 101, 76, 111,
97, 100, 101, 114, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 4, 0, 0, 0, 66, 0, 0, 0, 115, 68, 0, 0, 0, 124, 0,
0, 69, 101, 0, 0, 90, 1, 0, 100, 0, 0, 90, 2, 0, 100, 1,
0, 90, 3, 0, 100, 2, 0, 100, 3, 0, 132, 0, 0, 90, 4, 0,
100, 4, 0, 100, 5, 0, 132, 0, 0, 90, 5, 0, 100, 6, 0, 100,
7, 0, 100, 8, 0, 100, 9, 0, 132, 0, 1, 90, 6, 0, 100, 10,
0, 83, 40, 11, 0, 0, 0, 117, 16, 0, 0, 0, 83, 111, 117, 114,
99, 101, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 117, 62, 0, 0,
0, 67, 111, 110, 99, 114, 101, 116, 101, 32, 105, 109, 112, 108, 101, 109,
101, 110, 116, 97, 116, 105, 111, 110, 32, 111, 102, 32, 83, 111, 117, 114,
99, 101, 76, 111, 97, 100, 101, 114, 32, 117, 115, 105, 110, 103, 32, 116,
104, 101, 32, 102, 105, 108, 101, 32, 115, 121, 115, 116, 101, 109, 46, 99,
2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0,
67, 0, 0, 0, 115, 39, 0, 0, 0, 116, 0, 0, 106, 1, 0, 124,
1, 0, 131, 1, 0, 125, 2, 0, 105, 2, 0, 124, 2, 0, 106, 2,
0, 100, 1, 0, 54, 124, 2, 0, 106, 3, 0, 100, 2, 0, 54, 83,
40, 3, 0, 0, 0, 117, 33, 0, 0, 0, 82, 101, 116, 117, 114, 110,
32, 116, 104, 101, 32, 109, 101, 116, 97, 100, 97, 116, 97, 32, 102, 111,
114, 32, 116, 104, 101, 32, 112, 97, 116, 104, 46, 117, 5, 0, 0, 0,
109, 116, 105, 109, 101, 117, 4, 0, 0, 0, 115, 105, 122, 101, 40, 4,
0, 0, 0, 117, 3, 0, 0, 0, 95, 111, 115, 117, 4, 0, 0, 0,
115, 116, 97, 116, 117, 8, 0, 0, 0, 115, 116, 95, 109, 116, 105, 109,
101, 117, 7, 0, 0, 0, 115, 116, 95, 115, 105, 122, 101, 40, 3, 0,
0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 4, 0, 0, 0,
112, 97, 116, 104, 117, 2, 0, 0, 0, 115, 116, 40, 0, 0, 0, 0,
40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101,
110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111,
116, 115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 112, 97, 116, 104,
95, 115, 116, 97, 116, 115, 15, 4, 0, 0, 115, 4, 0, 0, 0, 0,
2, 15, 1, 117, 27, 0, 0, 0, 83, 111, 117, 114, 99, 101, 70, 105,
108, 101, 76, 111, 97, 100, 101, 114, 46, 112, 97, 116, 104, 95, 115, 116,
97, 116, 115, 99, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0,
13, 0, 0, 0, 67, 0, 0, 0, 115, 81, 0, 0, 0, 121, 22, 0,
116, 0, 0, 106, 1, 0, 124, 1, 0, 131, 1, 0, 106, 2, 0, 125,
4, 0, 87, 110, 24, 0, 4, 116, 3, 0, 107, 10, 0, 114, 48, 0,
1, 1, 1, 100, 1, 0, 125, 4, 0, 89, 110, 1, 0, 88, 124, 4,
0, 100, 2, 0, 79, 125, 4, 0, 124, 0, 0, 106, 4, 0, 124, 2,
0, 124, 3, 0, 100, 3, 0, 124, 4, 0, 131, 2, 1, 83, 40, 4,
0, 0, 0, 78, 105, 182, 1, 0, 0, 105, 128, 0, 0, 0, 117, 5,
0, 0, 0, 95, 109, 111, 100, 101, 40, 5, 0, 0, 0, 117, 3, 0,
0, 0, 95, 111, 115, 117, 4, 0, 0, 0, 115, 116, 97, 116, 117, 7,
0, 0, 0, 115, 116, 95, 109, 111, 100, 101, 117, 7, 0, 0, 0, 79,
83, 69, 114, 114, 111, 114, 117, 8, 0, 0, 0, 115, 101, 116, 95, 100,
97, 116, 97, 40, 5, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108,
102, 117, 11, 0, 0, 0, 115, 111, 117, 114, 99, 101, 95, 112, 97, 116,
104, 117, 13, 0, 0, 0, 98, 121, 116, 101, 99, 111, 100, 101, 95, 112,
97, 116, 104, 117, 4, 0, 0, 0, 100, 97, 116, 97, 117, 4, 0, 0,
0, 109, 111, 100, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117,
29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111,
114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112,
62, 117, 15, 0, 0, 0, 95, 99, 97, 99, 104, 101, 95, 98, 121, 116,
101, 99, 111, 100, 101, 20, 4, 0, 0, 115, 12, 0, 0, 0, 0, 2,
3, 1, 22, 1, 13, 1, 11, 3, 10, 1, 117, 32, 0, 0, 0, 83,
111, 117, 114, 99, 101, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 46,
95, 99, 97, 99, 104, 101, 95, 98, 121, 116, 101, 99, 111, 100, 101, 117,
5, 0, 0, 0, 95, 109, 111, 100, 101, 105, 182, 1, 0, 0, 99, 3,
0, 0, 0, 1, 0, 0, 0, 9, 0, 0, 0, 18, 0, 0, 0, 67,
0, 0, 0, 115, 53, 1, 0, 0, 116, 0, 0, 124, 1, 0, 131, 1,
0, 92, 2, 0, 125, 4, 0, 125, 5, 0, 103, 0, 0, 125, 6, 0,
120, 54, 0, 124, 4, 0, 114, 80, 0, 116, 1, 0, 124, 4, 0, 131,
1, 0, 12, 114, 80, 0, 116, 0, 0, 124, 4, 0, 131, 1, 0, 92,
2, 0, 125, 4, 0, 125, 7, 0, 124, 6, 0, 106, 2, 0, 124, 7,
0, 131, 1, 0, 1, 113, 27, 0, 87, 120, 132, 0, 116, 3, 0, 124,
6, 0, 131, 1, 0, 68, 93, 118, 0, 125, 7, 0, 116, 4, 0, 124,
4, 0, 124, 7, 0, 131, 2, 0, 125, 4, 0, 121, 17, 0, 116, 5,
0, 106, 6, 0, 124, 4, 0, 131, 1, 0, 1, 87, 113, 94, 0, 4,
116, 7, 0, 107, 10, 0, 114, 155, 0, 1, 1, 1, 119, 94, 0, 89,
113, 94, 0, 4, 116, 8, 0, 107, 10, 0, 114, 211, 0, 1, 125, 8,
0, 1, 122, 25, 0, 116, 9, 0, 100, 1, 0, 124, 4, 0, 124, 8,
0, 131, 3, 0, 1, 100, 2, 0, 83, 87, 89, 100, 2, 0, 100, 2,
0, 125, 8, 0, 126, 8, 0, 88, 113, 94, 0, 88, 113, 94, 0, 87,
121, 33, 0, 116, 10, 0, 124, 1, 0, 124, 2, 0, 124, 3, 0, 131,
3, 0, 1, 116, 9, 0, 100, 3, 0, 124, 1, 0, 131, 2, 0, 1,
87, 110, 53, 0, 4, 116, 8, 0, 107, 10, 0, 114, 48, 1, 1, 125,
8, 0, 1, 122, 21, 0, 116, 9, 0, 100, 1, 0, 124, 1, 0, 124,
8, 0, 131, 3, 0, 1, 87, 89, 100, 2, 0, 100, 2, 0, 125, 8,
0, 126, 8, 0, 88, 110, 1, 0, 88, 100, 2, 0, 83, 40, 4, 0,
0, 0, 117, 27, 0, 0, 0, 87, 114, 105, 116, 101, 32, 98, 121, 116,
101, 115, 32, 100, 97, 116, 97, 32, 116, 111, 32, 97, 32, 102, 105, 108,
101, 46, 117, 27, 0, 0, 0, 99, 111, 117, 108, 100, 32, 110, 111, 116,
32, 99, 114, 101, 97, 116, 101, 32, 123, 33, 114, 125, 58, 32, 123, 33,
114, 125, 78, 117, 12, 0, 0, 0, 99, 114, 101, 97, 116, 101, 100, 32,
123, 33, 114, 125, 40, 11, 0, 0, 0, 117, 11, 0, 0, 0, 95, 112,
97, 116, 104, 95, 115, 112, 108, 105, 116, 117, 11, 0, 0, 0, 95, 112,
97, 116, 104, 95, 105, 115, 100, 105, 114, 117, 6, 0, 0, 0, 97, 112,
112, 101, 110, 100, 117, 8, 0, 0, 0, 114, 101, 118, 101, 114, 115, 101,
100, 117, 10, 0, 0, 0, 95, 112, 97, 116, 104, 95, 106, 111, 105, 110,
117, 3, 0, 0, 0, 95, 111, 115, 117, 5, 0, 0, 0, 109, 107, 100,
105, 114, 117, 15, 0, 0, 0, 70, 105, 108, 101, 69, 120, 105, 115, 116,
115, 69, 114, 114, 111, 114, 117, 7, 0, 0, 0, 79, 83, 69, 114, 114,
111, 114, 117, 16, 0, 0, 0, 95, 118, 101, 114, 98, 111, 115, 101, 95,
109, 101, 115, 115, 97, 103, 101, 117, 13, 0, 0, 0, 95, 119, 114, 105,
116, 101, 95, 97, 116, 111, 109, 105, 99, 40, 9, 0, 0, 0, 117, 4,
0, 0, 0, 115, 101, 108, 102, 117, 4, 0, 0, 0, 112, 97, 116, 104,
117, 4, 0, 0, 0, 100, 97, 116, 97, 117, 5, 0, 0, 0, 95, 109,
111, 100, 101, 117, 6, 0, 0, 0, 112, 97, 114, 101, 110, 116, 117, 8,
0, 0, 0, 102, 105, 108, 101, 110, 97, 109, 101, 117, 10, 0, 0, 0,
112, 97, 116, 104, 95, 112, 97, 114, 116, 115, 117, 4, 0, 0, 0, 112,
97, 114, 116, 117, 3, 0, 0, 0, 101, 120, 99, 40, 0, 0, 0, 0,
40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101,
110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111,
116, 115, 116, 114, 97, 112, 62, 117, 8, 0, 0, 0, 115, 101, 116, 95,
100, 97, 116, 97, 31, 4, 0, 0, 115, 38, 0, 0, 0, 0, 2, 18,
1, 6, 2, 22, 1, 18, 1, 17, 2, 19, 1, 15, 1, 3, 1, 17,
1, 13, 2, 7, 1, 18, 3, 16, 1, 27, 1, 3, 1, 16, 1, 17,
1, 18, 2, 117, 25, 0, 0, 0, 83, 111, 117, 114, 99, 101, 70, 105,
108, 101, 76, 111, 97, 100, 101, 114, 46, 115, 101, 116, 95, 100, 97, 116,
97, 78, 40, 7, 0, 0, 0, 117, 8, 0, 0, 0, 95, 95, 110, 97,
109, 101, 95, 95, 117, 10, 0, 0, 0, 95, 95, 109, 111, 100, 117, 108,
101, 95, 95, 117, 12, 0, 0, 0, 95, 95, 113, 117, 97, 108, 110, 97,
109, 101, 95, 95, 117, 7, 0, 0, 0, 95, 95, 100, 111, 99, 95, 95,
117, 10, 0, 0, 0, 112, 97, 116, 104, 95, 115, 116, 97, 116, 115, 117,
15, 0, 0, 0, 95, 99, 97, 99, 104, 101, 95, 98, 121, 116, 101, 99,
111, 100, 101, 117, 8, 0, 0, 0, 115, 101, 116, 95, 100, 97, 116, 97,
40, 1, 0, 0, 0, 117, 10, 0, 0, 0, 95, 95, 108, 111, 99, 97,
108, 115, 95, 95, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29,
0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114,
116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62,
117, 16, 0, 0, 0, 83, 111, 117, 114, 99, 101, 70, 105, 108, 101, 76,
111, 97, 100, 101, 114, 11, 4, 0, 0, 115, 8, 0, 0, 0, 16, 2,
6, 2, 12, 5, 12, 11, 117, 16, 0, 0, 0, 83, 111, 117, 114, 99,
101, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 99, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 66, 0, 0, 0,
115, 62, 0, 0, 0, 124, 0, 0, 69, 101, 0, 0, 90, 1, 0, 100,
0, 0, 90, 2, 0, 100, 1, 0, 90, 3, 0, 100, 2, 0, 100, 3,
0, 132, 0, 0, 90, 4, 0, 100, 4, 0, 100, 5, 0, 132, 0, 0,
90, 5, 0, 100, 6, 0, 100, 7, 0, 132, 0, 0, 90, 6, 0, 100,
8, 0, 83, 40, 9, 0, 0, 0, 117, 20, 0, 0, 0, 83, 111, 117,
114, 99, 101, 108, 101, 115, 115, 70, 105, 108, 101, 76, 111, 97, 100, 101,
114, 117, 45, 0, 0, 0, 76, 111, 97, 100, 101, 114, 32, 119, 104, 105,
99, 104, 32, 104, 97, 110, 100, 108, 101, 115, 32, 115, 111, 117, 114, 99,
101, 108, 101, 115, 115, 32, 102, 105, 108, 101, 32, 105, 109, 112, 111, 114,
116, 115, 46, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 67, 0, 0, 0, 115, 19, 0, 0, 0, 124, 0, 0,
106, 0, 0, 124, 1, 0, 100, 1, 0, 100, 2, 0, 131, 1, 1, 83,
40, 3, 0, 0, 0, 78, 117, 10, 0, 0, 0, 115, 111, 117, 114, 99,
101, 108, 101, 115, 115, 84, 40, 2, 0, 0, 0, 117, 12, 0, 0, 0,
95, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 117, 4, 0, 0,
0, 84, 114, 117, 101, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 115,
101, 108, 102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101,
40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0,
0, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 64, 4, 0, 0,
115, 2, 0, 0, 0, 0, 1, 117, 32, 0, 0, 0, 83, 111, 117, 114,
99, 101, 108, 101, 115, 115, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114,
46, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 99, 2, 0, 0,
0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 67, 0, 0,
0, 115, 138, 0, 0, 0, 124, 0, 0, 106, 0, 0, 124, 1, 0, 131,
1, 0, 125, 2, 0, 124, 0, 0, 106, 1, 0, 124, 2, 0, 131, 1,
0, 125, 3, 0, 124, 0, 0, 106, 2, 0, 124, 1, 0, 124, 3, 0,
124, 2, 0, 100, 0, 0, 131, 4, 0, 125, 4, 0, 116, 4, 0, 106,
5, 0, 124, 4, 0, 131, 1, 0, 125, 5, 0, 116, 6, 0, 124, 5,
0, 116, 7, 0, 131, 2, 0, 114, 101, 0, 116, 8, 0, 100, 1, 0,
124, 2, 0, 131, 2, 0, 1, 124, 5, 0, 83, 116, 9, 0, 100, 2,
0, 106, 10, 0, 124, 2, 0, 131, 1, 0, 100, 3, 0, 124, 1, 0,
100, 4, 0, 124, 2, 0, 131, 1, 2, 130, 1, 0, 100, 0, 0, 83,
40, 5, 0, 0, 0, 78, 117, 21, 0, 0, 0, 99, 111, 100, 101, 32,
111, 98, 106, 101, 99, 116, 32, 102, 114, 111, 109, 32, 123, 33, 114, 125,
117, 21, 0, 0, 0, 78, 111, 110, 45, 99, 111, 100, 101, 32, 111, 98,
106, 101, 99, 116, 32, 105, 110, 32, 123, 125, 117, 4, 0, 0, 0, 110,
97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116, 104, 40, 11, 0, 0,
0, 117, 12, 0, 0, 0, 103, 101, 116, 95, 102, 105, 108, 101, 110, 97,
109, 101, 117, 8, 0, 0, 0, 103, 101, 116, 95, 100, 97, 116, 97, 117,
20, 0, 0, 0, 95, 98, 121, 116, 101, 115, 95, 102, 114, 111, 109, 95,
98, 121, 116, 101, 99, 111, 100, 101, 117, 4, 0, 0, 0, 78, 111, 110,
101, 117, 7, 0, 0, 0, 109, 97, 114, 115, 104, 97, 108, 117, 5, 0,
0, 0, 108, 111, 97, 100, 115, 117, 10, 0, 0, 0, 105, 115, 105, 110,
115, 116, 97, 110, 99, 101, 117, 10, 0, 0, 0, 95, 99, 111, 100, 101,
95, 116, 121, 112, 101, 117, 16, 0, 0, 0, 95, 118, 101, 114, 98, 111,
115, 101, 95, 109, 101, 115, 115, 97, 103, 101, 117, 11, 0, 0, 0, 73,
109, 112, 111, 114, 116, 69, 114, 114, 111, 114, 117, 6, 0, 0, 0, 102,
111, 114, 109, 97, 116, 40, 6, 0, 0, 0, 117, 4, 0, 0, 0, 115,
101, 108, 102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101,
117, 4, 0, 0, 0, 112, 97, 116, 104, 117, 4, 0, 0, 0, 100, 97,
116, 97, 117, 10, 0, 0, 0, 98, 121, 116, 101, 115, 95, 100, 97, 116,
97, 117, 5, 0, 0, 0, 102, 111, 117, 110, 100, 40, 0, 0, 0, 0,
40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101,
110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111,
116, 115, 116, 114, 97, 112, 62, 117, 8, 0, 0, 0, 103, 101, 116, 95,
99, 111, 100, 101, 67, 4, 0, 0, 115, 18, 0, 0, 0, 0, 1, 15,
1, 15, 1, 24, 1, 15, 1, 15, 1, 13, 1, 4, 2, 18, 1, 117,
29, 0, 0, 0, 83, 111, 117, 114, 99, 101, 108, 101, 115, 115, 70, 105,
108, 101, 76, 111, 97, 100, 101, 114, 46, 103, 101, 116, 95, 99, 111, 100,
101, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0,
0, 0, 67, 0, 0, 0, 115, 4, 0, 0, 0, 100, 1, 0, 83, 40,
2, 0, 0, 0, 117, 39, 0, 0, 0, 82, 101, 116, 117, 114, 110, 32,
78, 111, 110, 101, 32, 97, 115, 32, 116, 104, 101, 114, 101, 32, 105, 115,
32, 110, 111, 32, 115, 111, 117, 114, 99, 101, 32, 99, 111, 100, 101, 46,
78, 40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 78, 111, 110, 101, 40,
2, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 8, 0,
0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 103, 101, 116, 95, 115,
111, 117, 114, 99, 101, 79, 4, 0, 0, 115, 2, 0, 0, 0, 0, 2,
117, 31, 0, 0, 0, 83, 111, 117, 114, 99, 101, 108, 101, 115, 115, 70,
105, 108, 101, 76, 111, 97, 100, 101, 114, 46, 103, 101, 116, 95, 115, 111,
117, 114, 99, 101, 78, 40, 7, 0, 0, 0, 117, 8, 0, 0, 0, 95,
95, 110, 97, 109, 101, 95, 95, 117, 10, 0, 0, 0, 95, 95, 109, 111,
100, 117, 108, 101, 95, 95, 117, 12, 0, 0, 0, 95, 95, 113, 117, 97,
108, 110, 97, 109, 101, 95, 95, 117, 7, 0, 0, 0, 95, 95, 100, 111,
99, 95, 95, 117, 11, 0, 0, 0, 108, 111, 97, 100, 95, 109, 111, 100,
117, 108, 101, 117, 8, 0, 0, 0, 103, 101, 116, 95, 99, 111, 100, 101,
117, 10, 0, 0, 0, 103, 101, 116, 95, 115, 111, 117, 114, 99, 101, 40,
1, 0, 0, 0, 117, 10, 0, 0, 0, 95, 95, 108, 111, 99, 97, 108,
115, 95, 95, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
20, 0, 0, 0, 83, 111, 117, 114, 99, 101, 108, 101, 115, 115, 70, 105,
108, 101, 76, 111, 97, 100, 101, 114, 60, 4, 0, 0, 115, 8, 0, 0,
0, 16, 2, 6, 2, 12, 3, 12, 12, 117, 20, 0, 0, 0, 83, 111,
117, 114, 99, 101, 108, 101, 115, 115, 70, 105, 108, 101, 76, 111, 97, 100,
101, 114, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 5,
0, 0, 0, 66, 0, 0, 0, 115, 104, 0, 0, 0, 124, 0, 0, 69,
101, 0, 0, 90, 1, 0, 100, 0, 0, 90, 2, 0, 100, 1, 0, 90,
3, 0, 100, 2, 0, 100, 3, 0, 132, 0, 0, 90, 4, 0, 101, 5,
0, 101, 6, 0, 101, 7, 0, 100, 4, 0, 100, 5, 0, 132, 0, 0,
131, 1, 0, 131, 1, 0, 131, 1, 0, 90, 8, 0, 100, 6, 0, 100,
7, 0, 132, 0, 0, 90, 9, 0, 100, 8, 0, 100, 9, 0, 132, 0,
0, 90, 10, 0, 100, 10, 0, 100, 11, 0, 132, 0, 0, 90, 11, 0,
100, 12, 0, 83, 40, 13, 0, 0, 0, 117, 19, 0, 0, 0, 69, 120,
116, 101, 110, 115, 105, 111, 110, 70, 105, 108, 101, 76, 111, 97, 100, 101,
114, 117, 93, 0, 0, 0, 76, 111, 97, 100, 101, 114, 32, 102, 111, 114,
32, 101, 120, 116, 101, 110, 115, 105, 111, 110, 32, 109, 111, 100, 117, 108,
101, 115, 46, 10, 10, 32, 32, 32, 32, 84, 104, 101, 32, 99, 111, 110,
115, 116, 114, 117, 99, 116, 111, 114, 32, 105, 115, 32, 100, 101, 115, 105,
103, 110, 101, 100, 32, 116, 111, 32, 119, 111, 114, 107, 32, 119, 105, 116,
104, 32, 70, 105, 108, 101, 70, 105, 110, 100, 101, 114, 46, 10, 10, 32,
32, 32, 32, 99, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0,
2, 0, 0, 0, 67, 0, 0, 0, 115, 22, 0, 0, 0, 124, 1, 0,
124, 0, 0, 95, 0, 0, 124, 2, 0, 124, 0, 0, 95, 1, 0, 100,
0, 0, 83, 40, 1, 0, 0, 0, 78, 40, 2, 0, 0, 0, 117, 4,
0, 0, 0, 110, 97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116, 104,
40, 3, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 4,
0, 0, 0, 110, 97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116, 104,
40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 8, 0, 0,
0, 95, 95, 105, 110, 105, 116, 95, 95, 96, 4, 0, 0, 115, 4, 0,
0, 0, 0, 1, 9, 1, 117, 28, 0, 0, 0, 69, 120, 116, 101, 110,
115, 105, 111, 110, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 46, 95,
95, 105, 110, 105, 116, 95, 95, 99, 2, 0, 0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 10, 0, 0, 0, 67, 0, 0, 0, 115, 175, 0, 0,
0, 124, 1, 0, 116, 0, 0, 106, 1, 0, 107, 6, 0, 125, 2, 0,
121, 107, 0, 116, 2, 0, 116, 3, 0, 106, 4, 0, 124, 1, 0, 124,
0, 0, 106, 5, 0, 131, 3, 0, 125, 3, 0, 116, 6, 0, 100, 1,
0, 124, 0, 0, 106, 5, 0, 131, 2, 0, 1, 124, 0, 0, 106, 7,
0, 124, 1, 0, 131, 1, 0, 114, 117, 0, 116, 8, 0, 124, 3, 0,
100, 2, 0, 131, 2, 0, 12, 114, 117, 0, 116, 9, 0, 124, 0, 0,
106, 5, 0, 131, 1, 0, 100, 3, 0, 25, 103, 1, 0, 124, 3, 0,
95, 10, 0, 110, 0, 0, 124, 3, 0, 83, 87, 110, 46, 0, 1, 1,
1, 124, 2, 0, 12, 114, 163, 0, 124, 1, 0, 116, 0, 0, 106, 1,
0, 107, 6, 0, 114, 163, 0, 116, 0, 0, 106, 1, 0, 124, 1, 0,
61, 110, 0, 0, 130, 0, 0, 89, 110, 1, 0, 88, 100, 4, 0, 83,
40, 5, 0, 0, 0, 117, 25, 0, 0, 0, 76, 111, 97, 100, 32, 97,
110, 32, 101, 120, 116, 101, 110, 115, 105, 111, 110, 32, 109, 111, 100, 117,
108, 101, 46, 117, 33, 0, 0, 0, 101, 120, 116, 101, 110, 115, 105, 111,
110, 32, 109, 111, 100, 117, 108, 101, 32, 108, 111, 97, 100, 101, 100, 32,
102, 114, 111, 109, 32, 123, 33, 114, 125, 117, 8, 0, 0, 0, 95, 95,
112, 97, 116, 104, 95, 95, 105, 0, 0, 0, 0, 78, 40, 11, 0, 0,
0, 117, 3, 0, 0, 0, 115, 121, 115, 117, 7, 0, 0, 0, 109, 111,
100, 117, 108, 101, 115, 117, 25, 0, 0, 0, 95, 99, 97, 108, 108, 95,
119, 105, 116, 104, 95, 102, 114, 97, 109, 101, 115, 95, 114, 101, 109, 111,
118, 101, 100, 117, 4, 0, 0, 0, 95, 105, 109, 112, 117, 12, 0, 0,
0, 108, 111, 97, 100, 95, 100, 121, 110, 97, 109, 105, 99, 117, 4, 0,
0, 0, 112, 97, 116, 104, 117, 16, 0, 0, 0, 95, 118, 101, 114, 98,
111, 115, 101, 95, 109, 101, 115, 115, 97, 103, 101, 117, 10, 0, 0, 0,
105, 115, 95, 112, 97, 99, 107, 97, 103, 101, 117, 7, 0, 0, 0, 104,
97, 115, 97, 116, 116, 114, 117, 11, 0, 0, 0, 95, 112, 97, 116, 104,
95, 115, 112, 108, 105, 116, 117, 8, 0, 0, 0, 95, 95, 112, 97, 116,
104, 95, 95, 40, 4, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108,
102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 117, 9,
0, 0, 0, 105, 115, 95, 114, 101, 108, 111, 97, 100, 117, 6, 0, 0,
0, 109, 111, 100, 117, 108, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0,
0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109,
112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114,
97, 112, 62, 117, 11, 0, 0, 0, 108, 111, 97, 100, 95, 109, 111, 100,
117, 108, 101, 100, 4, 0, 0, 115, 24, 0, 0, 0, 0, 5, 15, 1,
3, 1, 9, 1, 15, 1, 16, 1, 31, 1, 28, 1, 8, 1, 3, 1,
22, 1, 13, 1, 117, 31, 0, 0, 0, 69, 120, 116, 101, 110, 115, 105,
111, 110, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 46, 108, 111, 97,
100, 95, 109, 111, 100, 117, 108, 101, 99, 2, 0, 0, 0, 0, 0, 0,
0, 2, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 115, 48, 0,
0, 0, 116, 0, 0, 124, 0, 0, 106, 1, 0, 131, 1, 0, 100, 1,
0, 25, 137, 0, 0, 116, 2, 0, 135, 0, 0, 102, 1, 0, 100, 2,
0, 100, 3, 0, 134, 0, 0, 116, 3, 0, 68, 131, 1, 0, 131, 1,
0, 83, 40, 4, 0, 0, 0, 117, 49, 0, 0, 0, 82, 101, 116, 117,
114, 110, 32, 84, 114, 117, 101, 32, 105, 102, 32, 116, 104, 101, 32, 101,
120, 116, 101, 110, 115, 105, 111, 110, 32, 109, 111, 100, 117, 108, 101, 32,
105, 115, 32, 97, 32, 112, 97, 99, 107, 97, 103, 101, 46, 105, 1, 0,
0, 0, 99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 4,
0, 0, 0, 51, 0, 0, 0, 115, 31, 0, 0, 0, 124, 0, 0, 93,
21, 0, 125, 1, 0, 136, 0, 0, 100, 0, 0, 124, 1, 0, 23, 107,
2, 0, 86, 1, 113, 3, 0, 100, 1, 0, 83, 40, 2, 0, 0, 0,
117, 8, 0, 0, 0, 95, 95, 105, 110, 105, 116, 95, 95, 78, 40, 0,
0, 0, 0, 40, 2, 0, 0, 0, 117, 2, 0, 0, 0, 46, 48, 117,
6, 0, 0, 0, 115, 117, 102, 102, 105, 120, 40, 1, 0, 0, 0, 117,
9, 0, 0, 0, 102, 105, 108, 101, 95, 110, 97, 109, 101, 40, 0, 0,
0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105,
109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116,
114, 97, 112, 62, 117, 9, 0, 0, 0, 60, 103, 101, 110, 101, 120, 112,
114, 62, 121, 4, 0, 0, 115, 2, 0, 0, 0, 6, 1, 117, 49, 0,
0, 0, 69, 120, 116, 101, 110, 115, 105, 111, 110, 70, 105, 108, 101, 76,
111, 97, 100, 101, 114, 46, 105, 115, 95, 112, 97, 99, 107, 97, 103, 101,
46, 60, 108, 111, 99, 97, 108, 115, 62, 46, 60, 103, 101, 110, 101, 120,
112, 114, 62, 40, 4, 0, 0, 0, 117, 11, 0, 0, 0, 95, 112, 97,
116, 104, 95, 115, 112, 108, 105, 116, 117, 4, 0, 0, 0, 112, 97, 116,
104, 117, 3, 0, 0, 0, 97, 110, 121, 117, 18, 0, 0, 0, 69, 88,
84, 69, 78, 83, 73, 79, 78, 95, 83, 85, 70, 70, 73, 88, 69, 83,
40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 8,
0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 40, 0, 0, 0, 0,
40, 1, 0, 0, 0, 117, 9, 0, 0, 0, 102, 105, 108, 101, 95, 110,
97, 109, 101, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 105, 115, 95, 112, 97, 99,
107, 97, 103, 101, 118, 4, 0, 0, 115, 6, 0, 0, 0, 0, 2, 19,
1, 18, 1, 117, 30, 0, 0, 0, 69, 120, 116, 101, 110, 115, 105, 111,
110, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 46, 105, 115, 95, 112,
97, 99, 107, 97, 103, 101, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2,
0, 0, 0, 1, 0, 0, 0, 67, 0, 0, 0, 115, 4, 0, 0, 0,
100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 63, 0, 0, 0, 82, 101,
116, 117, 114, 110, 32, 78, 111, 110, 101, 32, 97, 115, 32, 97, 110, 32,
101, 120, 116, 101, 110, 115, 105, 111, 110, 32, 109, 111, 100, 117, 108, 101,
32, 99, 97, 110, 110, 111, 116, 32, 99, 114, 101, 97, 116, 101, 32, 97,
32, 99, 111, 100, 101, 32, 111, 98, 106, 101, 99, 116, 46, 78, 40, 1,
0, 0, 0, 117, 4, 0, 0, 0, 78, 111, 110, 101, 40, 2, 0, 0,
0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 8, 0, 0, 0, 102,
117, 108, 108, 110, 97, 109, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0,
0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109,
112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114,
97, 112, 62, 117, 8, 0, 0, 0, 103, 101, 116, 95, 99, 111, 100, 101,
124, 4, 0, 0, 115, 2, 0, 0, 0, 0, 2, 117, 28, 0, 0, 0,
69, 120, 116, 101, 110, 115, 105, 111, 110, 70, 105, 108, 101, 76, 111, 97,
100, 101, 114, 46, 103, 101, 116, 95, 99, 111, 100, 101, 99, 2, 0, 0,
0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 67, 0, 0,
0, 115, 4, 0, 0, 0, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117,
53, 0, 0, 0, 82, 101, 116, 117, 114, 110, 32, 78, 111, 110, 101, 32,
97, 115, 32, 101, 120, 116, 101, 110, 115, 105, 111, 110, 32, 109, 111, 100,
117, 108, 101, 115, 32, 104, 97, 118, 101, 32, 110, 111, 32, 115, 111, 117,
114, 99, 101, 32, 99, 111, 100, 101, 46, 78, 40, 1, 0, 0, 0, 117,
4, 0, 0, 0, 78, 111, 110, 101, 40, 2, 0, 0, 0, 117, 4, 0,
0, 0, 115, 101, 108, 102, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110,
97, 109, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
10, 0, 0, 0, 103, 101, 116, 95, 115, 111, 117, 114, 99, 101, 128, 4,
0, 0, 115, 2, 0, 0, 0, 0, 2, 117, 30, 0, 0, 0, 69, 120,
116, 101, 110, 115, 105, 111, 110, 70, 105, 108, 101, 76, 111, 97, 100, 101,
114, 46, 103, 101, 116, 95, 115, 111, 117, 114, 99, 101, 78, 40, 12, 0,
0, 0, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117,
10, 0, 0, 0, 95, 95, 109, 111, 100, 117, 108, 101, 95, 95, 117, 12,
0, 0, 0, 95, 95, 113, 117, 97, 108, 110, 97, 109, 101, 95, 95, 117,
7, 0, 0, 0, 95, 95, 100, 111, 99, 95, 95, 117, 8, 0, 0, 0,
95, 95, 105, 110, 105, 116, 95, 95, 117, 11, 0, 0, 0, 95, 99, 104,
101, 99, 107, 95, 110, 97, 109, 101, 117, 11, 0, 0, 0, 115, 101, 116,
95, 112, 97, 99, 107, 97, 103, 101, 117, 10, 0, 0, 0, 115, 101, 116,
95, 108, 111, 97, 100, 101, 114, 117, 11, 0, 0, 0, 108, 111, 97, 100,
95, 109, 111, 100, 117, 108, 101, 117, 10, 0, 0, 0, 105, 115, 95, 112,
97, 99, 107, 97, 103, 101, 117, 8, 0, 0, 0, 103, 101, 116, 95, 99,
111, 100, 101, 117, 10, 0, 0, 0, 103, 101, 116, 95, 115, 111, 117, 114,
99, 101, 40, 1, 0, 0, 0, 117, 10, 0, 0, 0, 95, 95, 108, 111,
99, 97, 108, 115, 95, 95, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 19, 0, 0, 0, 69, 120, 116, 101, 110, 115, 105, 111, 110,
70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 88, 4, 0, 0, 115, 16,
0, 0, 0, 16, 6, 6, 2, 12, 4, 3, 1, 3, 1, 24, 16, 12,
6, 12, 4, 117, 19, 0, 0, 0, 69, 120, 116, 101, 110, 115, 105, 111,
110, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 99, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 66, 0, 0, 0,
115, 134, 0, 0, 0, 124, 0, 0, 69, 101, 0, 0, 90, 1, 0, 100,
0, 0, 90, 2, 0, 100, 1, 0, 90, 3, 0, 100, 2, 0, 100, 3,
0, 132, 0, 0, 90, 4, 0, 100, 4, 0, 100, 5, 0, 132, 0, 0,
90, 5, 0, 100, 6, 0, 100, 7, 0, 132, 0, 0, 90, 6, 0, 100,
8, 0, 100, 9, 0, 132, 0, 0, 90, 7, 0, 100, 10, 0, 100, 11,
0, 132, 0, 0, 90, 8, 0, 100, 12, 0, 100, 13, 0, 132, 0, 0,
90, 9, 0, 100, 14, 0, 100, 15, 0, 132, 0, 0, 90, 10, 0, 100,
16, 0, 100, 17, 0, 132, 0, 0, 90, 11, 0, 100, 18, 0, 100, 19,
0, 132, 0, 0, 90, 12, 0, 100, 20, 0, 83, 40, 21, 0, 0, 0,
117, 14, 0, 0, 0, 95, 78, 97, 109, 101, 115, 112, 97, 99, 101, 80,
97, 116, 104, 117, 38, 1, 0, 0, 82, 101, 112, 114, 101, 115, 101, 110,
116, 115, 32, 97, 32, 110, 97, 109, 101, 115, 112, 97, 99, 101, 32, 112,
97, 99, 107, 97, 103, 101, 39, 115, 32, 112, 97, 116, 104, 46, 32, 32,
73, 116, 32, 117, 115, 101, 115, 32, 116, 104, 101, 32, 109, 111, 100, 117,
108, 101, 32, 110, 97, 109, 101, 10, 32, 32, 32, 32, 116, 111, 32, 102,
105, 110, 100, 32, 105, 116, 115, 32, 112, 97, 114, 101, 110, 116, 32, 109,
111, 100, 117, 108, 101, 44, 32, 97, 110, 100, 32, 102, 114, 111, 109, 32,
116, 104, 101, 114, 101, 32, 105, 116, 32, 108, 111, 111, 107, 115, 32, 117,
112, 32, 116, 104, 101, 32, 112, 97, 114, 101, 110, 116, 39, 115, 10, 32,
32, 32, 32, 95, 95, 112, 97, 116, 104, 95, 95, 46, 32, 32, 87, 104,
101, 110, 32, 116, 104, 105, 115, 32, 99, 104, 97, 110, 103, 101, 115, 44,
32, 116, 104, 101, 32, 109, 111, 100, 117, 108, 101, 39, 115, 32, 111, 119,
110, 32, 112, 97, 116, 104, 32, 105, 115, 32, 114, 101, 99, 111, 109, 112,
117, 116, 101, 100, 44, 10, 32, 32, 32, 32, 117, 115, 105, 110, 103, 32,
112, 97, 116, 104, 95, 102, 105, 110, 100, 101, 114, 46, 32, 32, 70, 111,
114, 32, 116, 111, 112, 45, 108, 101, 118, 101, 108, 32, 109, 111, 100, 117,
108, 101, 115, 44, 32, 116, 104, 101, 32, 112, 97, 114, 101, 110, 116, 32,
109, 111, 100, 117, 108, 101, 39, 115, 32, 112, 97, 116, 104, 10, 32, 32,
32, 32, 105, 115, 32, 115, 121, 115, 46, 112, 97, 116, 104, 46, 99, 4,
0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 67,
0, 0, 0, 115, 52, 0, 0, 0, 124, 1, 0, 124, 0, 0, 95, 0,
0, 124, 2, 0, 124, 0, 0, 95, 1, 0, 116, 2, 0, 124, 0, 0,
106, 3, 0, 131, 0, 0, 131, 1, 0, 124, 0, 0, 95, 4, 0, 124,
3, 0, 124, 0, 0, 95, 5, 0, 100, 0, 0, 83, 40, 1, 0, 0,
0, 78, 40, 6, 0, 0, 0, 117, 5, 0, 0, 0, 95, 110, 97, 109,
101, 117, 5, 0, 0, 0, 95, 112, 97, 116, 104, 117, 5, 0, 0, 0,
116, 117, 112, 108, 101, 117, 16, 0, 0, 0, 95, 103, 101, 116, 95, 112,
97, 114, 101, 110, 116, 95, 112, 97, 116, 104, 117, 17, 0, 0, 0, 95,
108, 97, 115, 116, 95, 112, 97, 114, 101, 110, 116, 95, 112, 97, 116, 104,
117, 12, 0, 0, 0, 95, 112, 97, 116, 104, 95, 102, 105, 110, 100, 101,
114, 40, 4, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117,
4, 0, 0, 0, 110, 97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116,
104, 117, 11, 0, 0, 0, 112, 97, 116, 104, 95, 102, 105, 110, 100, 101,
114, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0,
60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 8, 0,
0, 0, 95, 95, 105, 110, 105, 116, 95, 95, 140, 4, 0, 0, 115, 8,
0, 0, 0, 0, 1, 9, 1, 9, 1, 21, 1, 117, 23, 0, 0, 0,
95, 78, 97, 109, 101, 115, 112, 97, 99, 101, 80, 97, 116, 104, 46, 95,
95, 105, 110, 105, 116, 95, 95, 99, 1, 0, 0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 53, 0, 0,
0, 124, 0, 0, 106, 0, 0, 106, 1, 0, 100, 1, 0, 131, 1, 0,
92, 3, 0, 125, 1, 0, 125, 2, 0, 125, 3, 0, 124, 2, 0, 100,
2, 0, 107, 2, 0, 114, 43, 0, 100, 6, 0, 83, 124, 1, 0, 100,
5, 0, 102, 2, 0, 83, 40, 7, 0, 0, 0, 117, 62, 0, 0, 0,
82, 101, 116, 117, 114, 110, 115, 32, 97, 32, 116, 117, 112, 108, 101, 32,
111, 102, 32, 40, 112, 97, 114, 101, 110, 116, 45, 109, 111, 100, 117, 108,
101, 45, 110, 97, 109, 101, 44, 32, 112, 97, 114, 101, 110, 116, 45, 112,
97, 116, 104, 45, 97, 116, 116, 114, 45, 110, 97, 109, 101, 41, 117, 1,
0, 0, 0, 46, 117, 0, 0, 0, 0, 117, 3, 0, 0, 0, 115, 121,
115, 117, 4, 0, 0, 0, 112, 97, 116, 104, 117, 8, 0, 0, 0, 95,
95, 112, 97, 116, 104, 95, 95, 40, 2, 0, 0, 0, 117, 3, 0, 0,
0, 115, 121, 115, 117, 4, 0, 0, 0, 112, 97, 116, 104, 40, 2, 0,
0, 0, 117, 5, 0, 0, 0, 95, 110, 97, 109, 101, 117, 10, 0, 0,
0, 114, 112, 97, 114, 116, 105, 116, 105, 111, 110, 40, 4, 0, 0, 0,
117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 6, 0, 0, 0, 112, 97,
114, 101, 110, 116, 117, 3, 0, 0, 0, 100, 111, 116, 117, 2, 0, 0,
0, 109, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
23, 0, 0, 0, 95, 102, 105, 110, 100, 95, 112, 97, 114, 101, 110, 116,
95, 112, 97, 116, 104, 95, 110, 97, 109, 101, 115, 146, 4, 0, 0, 115,
8, 0, 0, 0, 0, 2, 27, 1, 12, 2, 4, 3, 117, 38, 0, 0,
0, 95, 78, 97, 109, 101, 115, 112, 97, 99, 101, 80, 97, 116, 104, 46,
95, 102, 105, 110, 100, 95, 112, 97, 114, 101, 110, 116, 95, 112, 97, 116,
104, 95, 110, 97, 109, 101, 115, 99, 1, 0, 0, 0, 0, 0, 0, 0,
3, 0, 0, 0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 38, 0, 0,
0, 124, 0, 0, 106, 0, 0, 131, 0, 0, 92, 2, 0, 125, 1, 0,
125, 2, 0, 116, 1, 0, 116, 2, 0, 106, 3, 0, 124, 1, 0, 25,
124, 2, 0, 131, 2, 0, 83, 40, 1, 0, 0, 0, 78, 40, 4, 0,
0, 0, 117, 23, 0, 0, 0, 95, 102, 105, 110, 100, 95, 112, 97, 114,
101, 110, 116, 95, 112, 97, 116, 104, 95, 110, 97, 109, 101, 115, 117, 7,
0, 0, 0, 103, 101, 116, 97, 116, 116, 114, 117, 3, 0, 0, 0, 115,
121, 115, 117, 7, 0, 0, 0, 109, 111, 100, 117, 108, 101, 115, 40, 3,
0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 18, 0, 0,
0, 112, 97, 114, 101, 110, 116, 95, 109, 111, 100, 117, 108, 101, 95, 110,
97, 109, 101, 117, 14, 0, 0, 0, 112, 97, 116, 104, 95, 97, 116, 116,
114, 95, 110, 97, 109, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 16, 0, 0, 0, 95, 103, 101, 116, 95, 112, 97, 114, 101,
110, 116, 95, 112, 97, 116, 104, 156, 4, 0, 0, 115, 4, 0, 0, 0,
0, 1, 18, 1, 117, 31, 0, 0, 0, 95, 78, 97, 109, 101, 115, 112,
97, 99, 101, 80, 97, 116, 104, 46, 95, 103, 101, 116, 95, 112, 97, 114,
101, 110, 116, 95, 112, 97, 116, 104, 99, 1, 0, 0, 0, 0, 0, 0,
0, 4, 0, 0, 0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 103, 0,
0, 0, 116, 0, 0, 124, 0, 0, 106, 1, 0, 131, 0, 0, 131, 1,
0, 125, 1, 0, 124, 1, 0, 124, 0, 0, 106, 2, 0, 107, 3, 0,
114, 96, 0, 124, 0, 0, 106, 3, 0, 124, 0, 0, 106, 4, 0, 124,
1, 0, 131, 2, 0, 92, 2, 0, 125, 2, 0, 125, 3, 0, 124, 2,
0, 100, 0, 0, 107, 8, 0, 114, 84, 0, 124, 3, 0, 124, 0, 0,
95, 6, 0, 110, 0, 0, 124, 1, 0, 124, 0, 0, 95, 2, 0, 110,
0, 0, 124, 0, 0, 106, 6, 0, 83, 40, 1, 0, 0, 0, 78, 40,
7, 0, 0, 0, 117, 5, 0, 0, 0, 116, 117, 112, 108, 101, 117, 16,
0, 0, 0, 95, 103, 101, 116, 95, 112, 97, 114, 101, 110, 116, 95, 112,
97, 116, 104, 117, 17, 0, 0, 0, 95, 108, 97, 115, 116, 95, 112, 97,
114, 101, 110, 116, 95, 112, 97, 116, 104, 117, 12, 0, 0, 0, 95, 112,
97, 116, 104, 95, 102, 105, 110, 100, 101, 114, 117, 5, 0, 0, 0, 95,
110, 97, 109, 101, 117, 4, 0, 0, 0, 78, 111, 110, 101, 117, 5, 0,
0, 0, 95, 112, 97, 116, 104, 40, 4, 0, 0, 0, 117, 4, 0, 0,
0, 115, 101, 108, 102, 117, 11, 0, 0, 0, 112, 97, 114, 101, 110, 116,
95, 112, 97, 116, 104, 117, 6, 0, 0, 0, 108, 111, 97, 100, 101, 114,
117, 8, 0, 0, 0, 110, 101, 119, 95, 112, 97, 116, 104, 40, 0, 0,
0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111,
122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98,
111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 12, 0, 0, 0, 95, 114,
101, 99, 97, 108, 99, 117, 108, 97, 116, 101, 160, 4, 0, 0, 115, 14,
0, 0, 0, 0, 2, 18, 1, 15, 1, 27, 3, 12, 1, 12, 1, 12,
1, 117, 27, 0, 0, 0, 95, 78, 97, 109, 101, 115, 112, 97, 99, 101,
80, 97, 116, 104, 46, 95, 114, 101, 99, 97, 108, 99, 117, 108, 97, 116,
101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0,
0, 0, 67, 0, 0, 0, 115, 16, 0, 0, 0, 116, 0, 0, 124, 0,
0, 106, 1, 0, 131, 0, 0, 131, 1, 0, 83, 40, 1, 0, 0, 0,
78, 40, 2, 0, 0, 0, 117, 4, 0, 0, 0, 105, 116, 101, 114, 117,
12, 0, 0, 0, 95, 114, 101, 99, 97, 108, 99, 117, 108, 97, 116, 101,
40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 40, 0,
0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114,
111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95,
98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 8, 0, 0, 0, 95,
95, 105, 116, 101, 114, 95, 95, 172, 4, 0, 0, 115, 2, 0, 0, 0,
0, 1, 117, 23, 0, 0, 0, 95, 78, 97, 109, 101, 115, 112, 97, 99,
101, 80, 97, 116, 104, 46, 95, 95, 105, 116, 101, 114, 95, 95, 99, 1,
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 67,
0, 0, 0, 115, 16, 0, 0, 0, 116, 0, 0, 124, 0, 0, 106, 1,
0, 131, 0, 0, 131, 1, 0, 83, 40, 1, 0, 0, 0, 78, 40, 2,
0, 0, 0, 117, 3, 0, 0, 0, 108, 101, 110, 117, 12, 0, 0, 0,
95, 114, 101, 99, 97, 108, 99, 117, 108, 97, 116, 101, 40, 1, 0, 0,
0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 7, 0, 0, 0, 95, 95, 108, 101, 110,
95, 95, 175, 4, 0, 0, 115, 2, 0, 0, 0, 0, 1, 117, 22, 0,
0, 0, 95, 78, 97, 109, 101, 115, 112, 97, 99, 101, 80, 97, 116, 104,
46, 95, 95, 108, 101, 110, 95, 95, 99, 1, 0, 0, 0, 0, 0, 0,
0, 1, 0, 0, 0, 2, 0, 0, 0, 67, 0, 0, 0, 115, 16, 0,
0, 0, 100, 1, 0, 106, 0, 0, 124, 0, 0, 106, 1, 0, 131, 1,
0, 83, 40, 2, 0, 0, 0, 78, 117, 20, 0, 0, 0, 95, 78, 97,
109, 101, 115, 112, 97, 99, 101, 80, 97, 116, 104, 40, 123, 33, 114, 125,
41, 40, 2, 0, 0, 0, 117, 6, 0, 0, 0, 102, 111, 114, 109, 97,
116, 117, 5, 0, 0, 0, 95, 112, 97, 116, 104, 40, 1, 0, 0, 0,
117, 4, 0, 0, 0, 115, 101, 108, 102, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 8, 0, 0, 0, 95, 95, 114, 101, 112, 114,
95, 95, 178, 4, 0, 0, 115, 2, 0, 0, 0, 0, 1, 117, 23, 0,
0, 0, 95, 78, 97, 109, 101, 115, 112, 97, 99, 101, 80, 97, 116, 104,
46, 95, 95, 114, 101, 112, 114, 95, 95, 99, 2, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 67, 0, 0, 0, 115, 16,
0, 0, 0, 124, 1, 0, 124, 0, 0, 106, 0, 0, 131, 0, 0, 107,
6, 0, 83, 40, 1, 0, 0, 0, 78, 40, 1, 0, 0, 0, 117, 12,
0, 0, 0, 95, 114, 101, 99, 97, 108, 99, 117, 108, 97, 116, 101, 40,
2, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 4, 0,
0, 0, 105, 116, 101, 109, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 12, 0, 0, 0, 95, 95, 99, 111, 110, 116, 97, 105, 110,
115, 95, 95, 181, 4, 0, 0, 115, 2, 0, 0, 0, 0, 1, 117, 27,
0, 0, 0, 95, 78, 97, 109, 101, 115, 112, 97, 99, 101, 80, 97, 116,
104, 46, 95, 95, 99, 111, 110, 116, 97, 105, 110, 115, 95, 95, 99, 2,
0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 67,
0, 0, 0, 115, 20, 0, 0, 0, 124, 0, 0, 106, 0, 0, 106, 1,
0, 124, 1, 0, 131, 1, 0, 1, 100, 0, 0, 83, 40, 1, 0, 0,
0, 78, 40, 2, 0, 0, 0, 117, 5, 0, 0, 0, 95, 112, 97, 116,
104, 117, 6, 0, 0, 0, 97, 112, 112, 101, 110, 100, 40, 2, 0, 0,
0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 4, 0, 0, 0, 105,
116, 101, 109, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
6, 0, 0, 0, 97, 112, 112, 101, 110, 100, 184, 4, 0, 0, 115, 2,
0, 0, 0, 0, 1, 117, 21, 0, 0, 0, 95, 78, 97, 109, 101, 115,
112, 97, 99, 101, 80, 97, 116, 104, 46, 97, 112, 112, 101, 110, 100, 78,
40, 13, 0, 0, 0, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101,
95, 95, 117, 10, 0, 0, 0, 95, 95, 109, 111, 100, 117, 108, 101, 95,
95, 117, 12, 0, 0, 0, 95, 95, 113, 117, 97, 108, 110, 97, 109, 101,
95, 95, 117, 7, 0, 0, 0, 95, 95, 100, 111, 99, 95, 95, 117, 8,
0, 0, 0, 95, 95, 105, 110, 105, 116, 95, 95, 117, 23, 0, 0, 0,
95, 102, 105, 110, 100, 95, 112, 97, 114, 101, 110, 116, 95, 112, 97, 116,
104, 95, 110, 97, 109, 101, 115, 117, 16, 0, 0, 0, 95, 103, 101, 116,
95, 112, 97, 114, 101, 110, 116, 95, 112, 97, 116, 104, 117, 12, 0, 0,
0, 95, 114, 101, 99, 97, 108, 99, 117, 108, 97, 116, 101, 117, 8, 0,
0, 0, 95, 95, 105, 116, 101, 114, 95, 95, 117, 7, 0, 0, 0, 95,
95, 108, 101, 110, 95, 95, 117, 8, 0, 0, 0, 95, 95, 114, 101, 112,
114, 95, 95, 117, 12, 0, 0, 0, 95, 95, 99, 111, 110, 116, 97, 105,
110, 115, 95, 95, 117, 6, 0, 0, 0, 97, 112, 112, 101, 110, 100, 40,
1, 0, 0, 0, 117, 10, 0, 0, 0, 95, 95, 108, 111, 99, 97, 108,
115, 95, 95, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0,
0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116,
108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117,
14, 0, 0, 0, 95, 78, 97, 109, 101, 115, 112, 97, 99, 101, 80, 97,
116, 104, 133, 4, 0, 0, 115, 20, 0, 0, 0, 16, 5, 6, 2, 12,
6, 12, 10, 12, 4, 12, 12, 12, 3, 12, 3, 12, 3, 12, 3, 117,
14, 0, 0, 0, 95, 78, 97, 109, 101, 115, 112, 97, 99, 101, 80, 97,
116, 104, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3,
0, 0, 0, 66, 0, 0, 0, 115, 68, 0, 0, 0, 124, 0, 0, 69,
101, 0, 0, 90, 1, 0, 100, 0, 0, 90, 2, 0, 100, 1, 0, 100,
2, 0, 132, 0, 0, 90, 3, 0, 101, 4, 0, 100, 3, 0, 100, 4,
0, 132, 0, 0, 131, 1, 0, 90, 5, 0, 101, 6, 0, 100, 5, 0,
100, 6, 0, 132, 0, 0, 131, 1, 0, 90, 7, 0, 100, 7, 0, 83,
40, 8, 0, 0, 0, 117, 15, 0, 0, 0, 78, 97, 109, 101, 115, 112,
97, 99, 101, 76, 111, 97, 100, 101, 114, 99, 4, 0, 0, 0, 0, 0,
0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 67, 0, 0, 0, 115, 25,
0, 0, 0, 116, 0, 0, 124, 1, 0, 124, 2, 0, 124, 3, 0, 131,
3, 0, 124, 0, 0, 95, 1, 0, 100, 0, 0, 83, 40, 1, 0, 0,
0, 78, 40, 2, 0, 0, 0, 117, 14, 0, 0, 0, 95, 78, 97, 109,
101, 115, 112, 97, 99, 101, 80, 97, 116, 104, 117, 5, 0, 0, 0, 95,
112, 97, 116, 104, 40, 4, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101,
108, 102, 117, 4, 0, 0, 0, 110, 97, 109, 101, 117, 4, 0, 0, 0,
112, 97, 116, 104, 117, 11, 0, 0, 0, 112, 97, 116, 104, 95, 102, 105,
110, 100, 101, 114, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29,
0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114,
116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62,
117, 8, 0, 0, 0, 95, 95, 105, 110, 105, 116, 95, 95, 189, 4, 0,
0, 115, 2, 0, 0, 0, 0, 1, 117, 24, 0, 0, 0, 78, 97, 109,
101, 115, 112, 97, 99, 101, 76, 111, 97, 100, 101, 114, 46, 95, 95, 105,
110, 105, 116, 95, 95, 99, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0,
0, 0, 2, 0, 0, 0, 67, 0, 0, 0, 115, 16, 0, 0, 0, 100,
1, 0, 106, 0, 0, 124, 1, 0, 106, 1, 0, 131, 1, 0, 83, 40,
2, 0, 0, 0, 78, 117, 25, 0, 0, 0, 60, 109, 111, 100, 117, 108,
101, 32, 39, 123, 125, 39, 32, 40, 110, 97, 109, 101, 115, 112, 97, 99,
101, 41, 62, 40, 2, 0, 0, 0, 117, 6, 0, 0, 0, 102, 111, 114,
109, 97, 116, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95,
40, 2, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 6, 0,
0, 0, 109, 111, 100, 117, 108, 101, 40, 0, 0, 0, 0, 40, 0, 0,
0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105,
109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116,
114, 97, 112, 62, 117, 11, 0, 0, 0, 109, 111, 100, 117, 108, 101, 95,
114, 101, 112, 114, 192, 4, 0, 0, 115, 2, 0, 0, 0, 0, 2, 117,
27, 0, 0, 0, 78, 97, 109, 101, 115, 112, 97, 99, 101, 76, 111, 97,
100, 101, 114, 46, 109, 111, 100, 117, 108, 101, 95, 114, 101, 112, 114, 99,
2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0,
67, 0, 0, 0, 115, 32, 0, 0, 0, 116, 0, 0, 100, 1, 0, 124,
0, 0, 106, 1, 0, 131, 2, 0, 1, 124, 0, 0, 106, 1, 0, 124,
1, 0, 95, 2, 0, 124, 1, 0, 83, 40, 2, 0, 0, 0, 117, 24,
0, 0, 0, 76, 111, 97, 100, 32, 97, 32, 110, 97, 109, 101, 115, 112,
97, 99, 101, 32, 109, 111, 100, 117, 108, 101, 46, 117, 38, 0, 0, 0,
110, 97, 109, 101, 115, 112, 97, 99, 101, 32, 109, 111, 100, 117, 108, 101,
32, 108, 111, 97, 100, 101, 100, 32, 119, 105, 116, 104, 32, 112, 97, 116,
104, 32, 123, 33, 114, 125, 40, 3, 0, 0, 0, 117, 16, 0, 0, 0,
95, 118, 101, 114, 98, 111, 115, 101, 95, 109, 101, 115, 115, 97, 103, 101,
117, 5, 0, 0, 0, 95, 112, 97, 116, 104, 117, 8, 0, 0, 0, 95,
95, 112, 97, 116, 104, 95, 95, 40, 2, 0, 0, 0, 117, 4, 0, 0,
0, 115, 101, 108, 102, 117, 6, 0, 0, 0, 109, 111, 100, 117, 108, 101,
40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0,
0, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 196, 4, 0, 0,
115, 6, 0, 0, 0, 0, 3, 16, 1, 12, 1, 117, 27, 0, 0, 0,
78, 97, 109, 101, 115, 112, 97, 99, 101, 76, 111, 97, 100, 101, 114, 46,
108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 78, 40, 8, 0, 0,
0, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 10,
0, 0, 0, 95, 95, 109, 111, 100, 117, 108, 101, 95, 95, 117, 12, 0,
0, 0, 95, 95, 113, 117, 97, 108, 110, 97, 109, 101, 95, 95, 117, 8,
0, 0, 0, 95, 95, 105, 110, 105, 116, 95, 95, 117, 11, 0, 0, 0,
99, 108, 97, 115, 115, 109, 101, 116, 104, 111, 100, 117, 11, 0, 0, 0,
109, 111, 100, 117, 108, 101, 95, 114, 101, 112, 114, 117, 17, 0, 0, 0,
109, 111, 100, 117, 108, 101, 95, 102, 111, 114, 95, 108, 111, 97, 100, 101,
114, 117, 11, 0, 0, 0, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108,
101, 40, 1, 0, 0, 0, 117, 10, 0, 0, 0, 95, 95, 108, 111, 99,
97, 108, 115, 95, 95, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117,
29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111,
114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112,
62, 117, 15, 0, 0, 0, 78, 97, 109, 101, 115, 112, 97, 99, 101, 76,
111, 97, 100, 101, 114, 188, 4, 0, 0, 115, 6, 0, 0, 0, 16, 1,
12, 3, 18, 4, 117, 15, 0, 0, 0, 78, 97, 109, 101, 115, 112, 97,
99, 101, 76, 111, 97, 100, 101, 114, 99, 1, 0, 0, 0, 0, 0, 0,
0, 1, 0, 0, 0, 4, 0, 0, 0, 66, 0, 0, 0, 115, 119, 0,
0, 0, 124, 0, 0, 69, 101, 0, 0, 90, 1, 0, 100, 0, 0, 90,
2, 0, 100, 1, 0, 90, 3, 0, 101, 4, 0, 100, 2, 0, 100, 3,
0, 132, 0, 0, 131, 1, 0, 90, 5, 0, 101, 4, 0, 100, 4, 0,
100, 5, 0, 132, 0, 0, 131, 1, 0, 90, 6, 0, 101, 4, 0, 100,
6, 0, 100, 7, 0, 132, 0, 0, 131, 1, 0, 90, 7, 0, 101, 4,
0, 100, 8, 0, 100, 9, 0, 132, 0, 0, 131, 1, 0, 90, 8, 0,
101, 4, 0, 100, 12, 0, 100, 10, 0, 100, 11, 0, 132, 1, 0, 131,
1, 0, 90, 10, 0, 100, 12, 0, 83, 40, 13, 0, 0, 0, 117, 10,
0, 0, 0, 80, 97, 116, 104, 70, 105, 110, 100, 101, 114, 117, 62, 0,
0, 0, 77, 101, 116, 97, 32, 112, 97, 116, 104, 32, 102, 105, 110, 100,
101, 114, 32, 102, 111, 114, 32, 115, 121, 115, 46, 112, 97, 116, 104, 32,
97, 110, 100, 32, 112, 97, 99, 107, 97, 103, 101, 32, 95, 95, 112, 97,
116, 104, 95, 95, 32, 97, 116, 116, 114, 105, 98, 117, 116, 101, 115, 46,
99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 4, 0, 0,
0, 67, 0, 0, 0, 115, 58, 0, 0, 0, 120, 51, 0, 116, 0, 0,
106, 1, 0, 106, 2, 0, 131, 0, 0, 68, 93, 34, 0, 125, 1, 0,
116, 3, 0, 124, 1, 0, 100, 1, 0, 131, 2, 0, 114, 16, 0, 124,
1, 0, 106, 4, 0, 131, 0, 0, 1, 113, 16, 0, 113, 16, 0, 87,
100, 2, 0, 83, 40, 3, 0, 0, 0, 117, 125, 0, 0, 0, 67, 97,
108, 108, 32, 116, 104, 101, 32, 105, 110, 118, 97, 108, 105, 100, 97, 116,
101, 95, 99, 97, 99, 104, 101, 115, 40, 41, 32, 109, 101, 116, 104, 111,
100, 32, 111, 110, 32, 97, 108, 108, 32, 112, 97, 116, 104, 32, 101, 110,
116, 114, 121, 32, 102, 105, 110, 100, 101, 114, 115, 10, 32, 32, 32, 32,
32, 32, 32, 32, 115, 116, 111, 114, 101, 100, 32, 105, 110, 32, 115, 121,
115, 46, 112, 97, 116, 104, 95, 105, 109, 112, 111, 114, 116, 101, 114, 95,
99, 97, 99, 104, 101, 115, 32, 40, 119, 104, 101, 114, 101, 32, 105, 109,
112, 108, 101, 109, 101, 110, 116, 101, 100, 41, 46, 117, 17, 0, 0, 0,
105, 110, 118, 97, 108, 105, 100, 97, 116, 101, 95, 99, 97, 99, 104, 101,
115, 78, 40, 5, 0, 0, 0, 117, 3, 0, 0, 0, 115, 121, 115, 117,
19, 0, 0, 0, 112, 97, 116, 104, 95, 105, 109, 112, 111, 114, 116, 101,
114, 95, 99, 97, 99, 104, 101, 117, 6, 0, 0, 0, 118, 97, 108, 117,
101, 115, 117, 7, 0, 0, 0, 104, 97, 115, 97, 116, 116, 114, 117, 17,
0, 0, 0, 105, 110, 118, 97, 108, 105, 100, 97, 116, 101, 95, 99, 97,
99, 104, 101, 115, 40, 2, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108,
115, 117, 6, 0, 0, 0, 102, 105, 110, 100, 101, 114, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 17, 0, 0, 0, 105, 110, 118,
97, 108, 105, 100, 97, 116, 101, 95, 99, 97, 99, 104, 101, 115, 210, 4,
0, 0, 115, 6, 0, 0, 0, 0, 4, 22, 1, 15, 1, 117, 28, 0,
0, 0, 80, 97, 116, 104, 70, 105, 110, 100, 101, 114, 46, 105, 110, 118,
97, 108, 105, 100, 97, 116, 101, 95, 99, 97, 99, 104, 101, 115, 99, 2,
0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 12, 0, 0, 0, 67,
0, 0, 0, 115, 94, 0, 0, 0, 116, 0, 0, 106, 1, 0, 115, 28,
0, 116, 2, 0, 106, 3, 0, 100, 1, 0, 116, 4, 0, 131, 2, 0,
1, 110, 0, 0, 120, 59, 0, 116, 0, 0, 106, 1, 0, 68, 93, 44,
0, 125, 2, 0, 121, 14, 0, 124, 2, 0, 124, 1, 0, 131, 1, 0,
83, 87, 113, 38, 0, 4, 116, 5, 0, 107, 10, 0, 114, 81, 0, 1,
1, 1, 119, 38, 0, 89, 113, 38, 0, 88, 113, 38, 0, 87, 100, 2,
0, 83, 100, 2, 0, 83, 40, 3, 0, 0, 0, 117, 113, 0, 0, 0,
83, 101, 97, 114, 99, 104, 32, 115, 101, 113, 117, 101, 110, 99, 101, 32,
111, 102, 32, 104, 111, 111, 107, 115, 32, 102, 111, 114, 32, 97, 32, 102,
105, 110, 100, 101, 114, 32, 102, 111, 114, 32, 39, 112, 97, 116, 104, 39,
46, 10, 10, 32, 32, 32, 32, 32, 32, 32, 32, 73, 102, 32, 39, 104,
111, 111, 107, 115, 39, 32, 105, 115, 32, 102, 97, 108, 115, 101, 32, 116,
104, 101, 110, 32, 117, 115, 101, 32, 115, 121, 115, 46, 112, 97, 116, 104,
95, 104, 111, 111, 107, 115, 46, 10, 10, 32, 32, 32, 32, 32, 32, 32,
32, 117, 23, 0, 0, 0, 115, 121, 115, 46, 112, 97, 116, 104, 95, 104,
111, 111, 107, 115, 32, 105, 115, 32, 101, 109, 112, 116, 121, 78, 40, 7,
0, 0, 0, 117, 3, 0, 0, 0, 115, 121, 115, 117, 10, 0, 0, 0,
112, 97, 116, 104, 95, 104, 111, 111, 107, 115, 117, 9, 0, 0, 0, 95,
119, 97, 114, 110, 105, 110, 103, 115, 117, 4, 0, 0, 0, 119, 97, 114,
110, 117, 13, 0, 0, 0, 73, 109, 112, 111, 114, 116, 87, 97, 114, 110,
105, 110, 103, 117, 11, 0, 0, 0, 73, 109, 112, 111, 114, 116, 69, 114,
114, 111, 114, 117, 4, 0, 0, 0, 78, 111, 110, 101, 40, 3, 0, 0,
0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 4, 0, 0, 0, 112, 97,
116, 104, 117, 4, 0, 0, 0, 104, 111, 111, 107, 40, 0, 0, 0, 0,
40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101,
110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111,
116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0, 0, 95, 112, 97, 116,
104, 95, 104, 111, 111, 107, 115, 218, 4, 0, 0, 115, 16, 0, 0, 0,
0, 7, 9, 1, 19, 1, 16, 1, 3, 1, 14, 1, 13, 1, 12, 2,
117, 22, 0, 0, 0, 80, 97, 116, 104, 70, 105, 110, 100, 101, 114, 46,
95, 112, 97, 116, 104, 95, 104, 111, 111, 107, 115, 99, 2, 0, 0, 0,
0, 0, 0, 0, 3, 0, 0, 0, 11, 0, 0, 0, 67, 0, 0, 0,
115, 91, 0, 0, 0, 124, 1, 0, 100, 1, 0, 107, 2, 0, 114, 21,
0, 100, 2, 0, 125, 1, 0, 110, 0, 0, 121, 17, 0, 116, 0, 0,
106, 1, 0, 124, 1, 0, 25, 125, 2, 0, 87, 110, 46, 0, 4, 116,
2, 0, 107, 10, 0, 114, 86, 0, 1, 1, 1, 124, 0, 0, 106, 3,
0, 124, 1, 0, 131, 1, 0, 125, 2, 0, 124, 2, 0, 116, 0, 0,
106, 1, 0, 124, 1, 0, 60, 89, 110, 1, 0, 88, 124, 2, 0, 83,
40, 3, 0, 0, 0, 117, 210, 0, 0, 0, 71, 101, 116, 32, 116, 104,
101, 32, 102, 105, 110, 100, 101, 114, 32, 102, 111, 114, 32, 116, 104, 101,
32, 112, 97, 116, 104, 32, 101, 110, 116, 114, 121, 32, 102, 114, 111, 109,
32, 115, 121, 115, 46, 112, 97, 116, 104, 95, 105, 109, 112, 111, 114, 116,
101, 114, 95, 99, 97, 99, 104, 101, 46, 10, 10, 32, 32, 32, 32, 32,
32, 32, 32, 73, 102, 32, 116, 104, 101, 32, 112, 97, 116, 104, 32, 101,
110, 116, 114, 121, 32, 105, 115, 32, 110, 111, 116, 32, 105, 110, 32, 116,
104, 101, 32, 99, 97, 99, 104, 101, 44, 32, 102, 105, 110, 100, 32, 116,
104, 101, 32, 97, 112, 112, 114, 111, 112, 114, 105, 97, 116, 101, 32, 102,
105, 110, 100, 101, 114, 10, 32, 32, 32, 32, 32, 32, 32, 32, 97, 110,
100, 32, 99, 97, 99, 104, 101, 32, 105, 116, 46, 32, 73, 102, 32, 110,
111, 32, 102, 105, 110, 100, 101, 114, 32, 105, 115, 32, 97, 118, 97, 105,
108, 97, 98, 108, 101, 44, 32, 115, 116, 111, 114, 101, 32, 78, 111, 110,
101, 46, 10, 10, 32, 32, 32, 32, 32, 32, 32, 32, 117, 0, 0, 0,
0, 117, 1, 0, 0, 0, 46, 40, 4, 0, 0, 0, 117, 3, 0, 0,
0, 115, 121, 115, 117, 19, 0, 0, 0, 112, 97, 116, 104, 95, 105, 109,
112, 111, 114, 116, 101, 114, 95, 99, 97, 99, 104, 101, 117, 8, 0, 0,
0, 75, 101, 121, 69, 114, 114, 111, 114, 117, 11, 0, 0, 0, 95, 112,
97, 116, 104, 95, 104, 111, 111, 107, 115, 40, 3, 0, 0, 0, 117, 3,
0, 0, 0, 99, 108, 115, 117, 4, 0, 0, 0, 112, 97, 116, 104, 117,
6, 0, 0, 0, 102, 105, 110, 100, 101, 114, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 20, 0, 0, 0, 95, 112, 97, 116, 104,
95, 105, 109, 112, 111, 114, 116, 101, 114, 95, 99, 97, 99, 104, 101, 235,
4, 0, 0, 115, 16, 0, 0, 0, 0, 8, 12, 1, 9, 1, 3, 1,
17, 1, 13, 1, 15, 1, 18, 1, 117, 31, 0, 0, 0, 80, 97, 116,
104, 70, 105, 110, 100, 101, 114, 46, 95, 112, 97, 116, 104, 95, 105, 109,
112, 111, 114, 116, 101, 114, 95, 99, 97, 99, 104, 101, 99, 3, 0, 0,
0, 0, 0, 0, 0, 8, 0, 0, 0, 5, 0, 0, 0, 67, 0, 0,
0, 115, 189, 0, 0, 0, 103, 0, 0, 125, 3, 0, 120, 176, 0, 124,
2, 0, 68, 93, 158, 0, 125, 4, 0, 116, 0, 0, 124, 4, 0, 116,
1, 0, 116, 2, 0, 102, 2, 0, 131, 2, 0, 115, 46, 0, 113, 13,
0, 110, 0, 0, 124, 0, 0, 106, 3, 0, 124, 4, 0, 131, 1, 0,
125, 5, 0, 124, 5, 0, 100, 2, 0, 107, 9, 0, 114, 13, 0, 116,
5, 0, 124, 5, 0, 100, 1, 0, 131, 2, 0, 114, 112, 0, 124, 5,
0, 106, 6, 0, 124, 1, 0, 131, 1, 0, 92, 2, 0, 125, 6, 0,
125, 7, 0, 110, 21, 0, 124, 5, 0, 106, 7, 0, 124, 1, 0, 131,
1, 0, 125, 6, 0, 103, 0, 0, 125, 7, 0, 124, 6, 0, 100, 2,
0, 107, 9, 0, 114, 155, 0, 124, 6, 0, 124, 3, 0, 102, 2, 0,
83, 124, 3, 0, 106, 8, 0, 124, 7, 0, 131, 1, 0, 1, 113, 13,
0, 113, 13, 0, 87, 100, 2, 0, 124, 3, 0, 102, 2, 0, 83, 100,
2, 0, 83, 40, 3, 0, 0, 0, 117, 63, 0, 0, 0, 70, 105, 110,
100, 32, 116, 104, 101, 32, 108, 111, 97, 100, 101, 114, 32, 111, 114, 32,
110, 97, 109, 101, 115, 112, 97, 99, 101, 95, 112, 97, 116, 104, 32, 102,
111, 114, 32, 116, 104, 105, 115, 32, 109, 111, 100, 117, 108, 101, 47, 112,
97, 99, 107, 97, 103, 101, 32, 110, 97, 109, 101, 46, 117, 11, 0, 0,
0, 102, 105, 110, 100, 95, 108, 111, 97, 100, 101, 114, 78, 40, 9, 0,
0, 0, 117, 10, 0, 0, 0, 105, 115, 105, 110, 115, 116, 97, 110, 99,
101, 117, 3, 0, 0, 0, 115, 116, 114, 117, 5, 0, 0, 0, 98, 121,
116, 101, 115, 117, 20, 0, 0, 0, 95, 112, 97, 116, 104, 95, 105, 109,
112, 111, 114, 116, 101, 114, 95, 99, 97, 99, 104, 101, 117, 4, 0, 0,
0, 78, 111, 110, 101, 117, 7, 0, 0, 0, 104, 97, 115, 97, 116, 116,
114, 117, 11, 0, 0, 0, 102, 105, 110, 100, 95, 108, 111, 97, 100, 101,
114, 117, 11, 0, 0, 0, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108,
101, 117, 6, 0, 0, 0, 101, 120, 116, 101, 110, 100, 40, 8, 0, 0,
0, 117, 3, 0, 0, 0, 99, 108, 115, 117, 8, 0, 0, 0, 102, 117,
108, 108, 110, 97, 109, 101, 117, 4, 0, 0, 0, 112, 97, 116, 104, 117,
14, 0, 0, 0, 110, 97, 109, 101, 115, 112, 97, 99, 101, 95, 112, 97,
116, 104, 117, 5, 0, 0, 0, 101, 110, 116, 114, 121, 117, 6, 0, 0,
0, 102, 105, 110, 100, 101, 114, 117, 6, 0, 0, 0, 108, 111, 97, 100,
101, 114, 117, 8, 0, 0, 0, 112, 111, 114, 116, 105, 111, 110, 115, 40,
0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102,
114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46,
95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0, 0,
95, 103, 101, 116, 95, 108, 111, 97, 100, 101, 114, 252, 4, 0, 0, 115,
28, 0, 0, 0, 0, 5, 6, 1, 13, 1, 21, 1, 6, 1, 15, 1,
12, 1, 15, 1, 24, 2, 15, 1, 6, 1, 12, 2, 10, 5, 20, 2,
117, 22, 0, 0, 0, 80, 97, 116, 104, 70, 105, 110, 100, 101, 114, 46,
95, 103, 101, 116, 95, 108, 111, 97, 100, 101, 114, 99, 3, 0, 0, 0,
0, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 67, 0, 0, 0,
115, 97, 0, 0, 0, 124, 2, 0, 100, 1, 0, 107, 8, 0, 114, 24,
0, 116, 1, 0, 106, 2, 0, 125, 2, 0, 110, 0, 0, 124, 0, 0,
106, 3, 0, 124, 1, 0, 124, 2, 0, 131, 2, 0, 92, 2, 0, 125,
3, 0, 125, 4, 0, 124, 3, 0, 100, 1, 0, 107, 9, 0, 114, 64,
0, 124, 3, 0, 83, 124, 4, 0, 114, 89, 0, 116, 4, 0, 124, 1,
0, 124, 4, 0, 124, 0, 0, 106, 3, 0, 131, 3, 0, 83, 100, 1,
0, 83, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 98, 0, 0, 0,
70, 105, 110, 100, 32, 116, 104, 101, 32, 109, 111, 100, 117, 108, 101, 32,
111, 110, 32, 115, 121, 115, 46, 112, 97, 116, 104, 32, 111, 114, 32, 39,
112, 97, 116, 104, 39, 32, 98, 97, 115, 101, 100, 32, 111, 110, 32, 115,
121, 115, 46, 112, 97, 116, 104, 95, 104, 111, 111, 107, 115, 32, 97, 110,
100, 10, 32, 32, 32, 32, 32, 32, 32, 32, 115, 121, 115, 46, 112, 97,
116, 104, 95, 105, 109, 112, 111, 114, 116, 101, 114, 95, 99, 97, 99, 104,
101, 46, 78, 40, 5, 0, 0, 0, 117, 4, 0, 0, 0, 78, 111, 110,
101, 117, 3, 0, 0, 0, 115, 121, 115, 117, 4, 0, 0, 0, 112, 97,
116, 104, 117, 11, 0, 0, 0, 95, 103, 101, 116, 95, 108, 111, 97, 100,
101, 114, 117, 15, 0, 0, 0, 78, 97, 109, 101, 115, 112, 97, 99, 101,
76, 111, 97, 100, 101, 114, 40, 5, 0, 0, 0, 117, 3, 0, 0, 0,
99, 108, 115, 117, 8, 0, 0, 0, 102, 117, 108, 108, 110, 97, 109, 101,
117, 4, 0, 0, 0, 112, 97, 116, 104, 117, 6, 0, 0, 0, 108, 111,
97, 100, 101, 114, 117, 14, 0, 0, 0, 110, 97, 109, 101, 115, 112, 97,
99, 101, 95, 112, 97, 116, 104, 40, 0, 0, 0, 0, 40, 0, 0, 0,
0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109,
112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114,
97, 112, 62, 117, 11, 0, 0, 0, 102, 105, 110, 100, 95, 109, 111, 100,
117, 108, 101, 23, 5, 0, 0, 115, 16, 0, 0, 0, 0, 4, 12, 1,
12, 1, 24, 1, 12, 1, 4, 2, 6, 3, 19, 2, 117, 22, 0, 0,
0, 80, 97, 116, 104, 70, 105, 110, 100, 101, 114, 46, 102, 105, 110, 100,
95, 109, 111, 100, 117, 108, 101, 78, 40, 11, 0, 0, 0, 117, 8, 0,
0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 10, 0, 0, 0, 95,
95, 109, 111, 100, 117, 108, 101, 95, 95, 117, 12, 0, 0, 0, 95, 95,
113, 117, 97, 108, 110, 97, 109, 101, 95, 95, 117, 7, 0, 0, 0, 95,
95, 100, 111, 99, 95, 95, 117, 11, 0, 0, 0, 99, 108, 97, 115, 115,
109, 101, 116, 104, 111, 100, 117, 17, 0, 0, 0, 105, 110, 118, 97, 108,
105, 100, 97, 116, 101, 95, 99, 97, 99, 104, 101, 115, 117, 11, 0, 0,
0, 95, 112, 97, 116, 104, 95, 104, 111, 111, 107, 115, 117, 20, 0, 0,
0, 95, 112, 97, 116, 104, 95, 105, 109, 112, 111, 114, 116, 101, 114, 95,
99, 97, 99, 104, 101, 117, 11, 0, 0, 0, 95, 103, 101, 116, 95, 108,
111, 97, 100, 101, 114, 117, 4, 0, 0, 0, 78, 111, 110, 101, 117, 11,
0, 0, 0, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108, 101, 40, 1,
0, 0, 0, 117, 10, 0, 0, 0, 95, 95, 108, 111, 99, 97, 108, 115,
95, 95, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0,
0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108,
105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 10,
0, 0, 0, 80, 97, 116, 104, 70, 105, 110, 100, 101, 114, 206, 4, 0,
0, 115, 14, 0, 0, 0, 16, 2, 6, 2, 18, 8, 18, 17, 18, 17,
18, 27, 3, 1, 117, 10, 0, 0, 0, 80, 97, 116, 104, 70, 105, 110,
100, 101, 114, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 66, 0, 0, 0, 115, 110, 0, 0, 0, 124, 0, 0,
69, 101, 0, 0, 90, 1, 0, 100, 0, 0, 90, 2, 0, 100, 1, 0,
90, 3, 0, 100, 2, 0, 100, 3, 0, 132, 0, 0, 90, 4, 0, 100,
4, 0, 100, 5, 0, 132, 0, 0, 90, 5, 0, 101, 6, 0, 90, 7,
0, 100, 6, 0, 100, 7, 0, 132, 0, 0, 90, 8, 0, 100, 8, 0,
100, 9, 0, 132, 0, 0, 90, 9, 0, 101, 10, 0, 100, 10, 0, 100,
11, 0, 132, 0, 0, 131, 1, 0, 90, 11, 0, 100, 12, 0, 100, 13,
0, 132, 0, 0, 90, 12, 0, 100, 14, 0, 83, 40, 15, 0, 0, 0,
117, 10, 0, 0, 0, 70, 105, 108, 101, 70, 105, 110, 100, 101, 114, 117,
172, 0, 0, 0, 70, 105, 108, 101, 45, 98, 97, 115, 101, 100, 32, 102,
105, 110, 100, 101, 114, 46, 10, 10, 32, 32, 32, 32, 73, 110, 116, 101,
114, 97, 99, 116, 105, 111, 110, 115, 32, 119, 105, 116, 104, 32, 116, 104,
101, 32, 102, 105, 108, 101, 32, 115, 121, 115, 116, 101, 109, 32, 97, 114,
101, 32, 99, 97, 99, 104, 101, 100, 32, 102, 111, 114, 32, 112, 101, 114,
102, 111, 114, 109, 97, 110, 99, 101, 44, 32, 98, 101, 105, 110, 103, 10,
32, 32, 32, 32, 114, 101, 102, 114, 101, 115, 104, 101, 100, 32, 119, 104,
101, 110, 32, 116, 104, 101, 32, 100, 105, 114, 101, 99, 116, 111, 114, 121,
32, 116, 104, 101, 32, 102, 105, 110, 100, 101, 114, 32, 105, 115, 32, 104,
97, 110, 100, 108, 105, 110, 103, 32, 104, 97, 115, 32, 98, 101, 101, 110,
32, 109, 111, 100, 105, 102, 105, 101, 100, 46, 10, 10, 32, 32, 32, 32,
99, 2, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0,
0, 7, 0, 0, 0, 115, 122, 0, 0, 0, 103, 0, 0, 125, 3, 0,
120, 52, 0, 124, 2, 0, 68, 93, 44, 0, 92, 2, 0, 137, 0, 0,
125, 4, 0, 124, 3, 0, 106, 0, 0, 135, 0, 0, 102, 1, 0, 100,
1, 0, 100, 2, 0, 134, 0, 0, 124, 4, 0, 68, 131, 1, 0, 131,
1, 0, 1, 113, 13, 0, 87, 124, 3, 0, 124, 0, 0, 95, 1, 0,
124, 1, 0, 112, 79, 0, 100, 3, 0, 124, 0, 0, 95, 2, 0, 100,
6, 0, 124, 0, 0, 95, 3, 0, 116, 4, 0, 131, 0, 0, 124, 0,
0, 95, 5, 0, 116, 4, 0, 131, 0, 0, 124, 0, 0, 95, 6, 0,
100, 5, 0, 83, 40, 7, 0, 0, 0, 117, 154, 0, 0, 0, 73, 110,
105, 116, 105, 97, 108, 105, 122, 101, 32, 119, 105, 116, 104, 32, 116, 104,
101, 32, 112, 97, 116, 104, 32, 116, 111, 32, 115, 101, 97, 114, 99, 104,
32, 111, 110, 32, 97, 110, 100, 32, 97, 32, 118, 97, 114, 105, 97, 98,
108, 101, 32, 110, 117, 109, 98, 101, 114, 32, 111, 102, 10, 32, 32, 32,
32, 32, 32, 32, 32, 50, 45, 116, 117, 112, 108, 101, 115, 32, 99, 111,
110, 116, 97, 105, 110, 105, 110, 103, 32, 116, 104, 101, 32, 108, 111, 97,
100, 101, 114, 32, 97, 110, 100, 32, 116, 104, 101, 32, 102, 105, 108, 101,
32, 115, 117, 102, 102, 105, 120, 101, 115, 32, 116, 104, 101, 32, 108, 111,
97, 100, 101, 114, 10, 32, 32, 32, 32, 32, 32, 32, 32, 114, 101, 99,
111, 103, 110, 105, 122, 101, 115, 46, 99, 1, 0, 0, 0, 0, 0, 0,
0, 2, 0, 0, 0, 3, 0, 0, 0, 51, 0, 0, 0, 115, 27, 0,
0, 0, 124, 0, 0, 93, 17, 0, 125, 1, 0, 124, 1, 0, 136, 0,
0, 102, 2, 0, 86, 1, 113, 3, 0, 100, 0, 0, 83, 40, 1, 0,
0, 0, 78, 40, 0, 0, 0, 0, 40, 2, 0, 0, 0, 117, 2, 0,
0, 0, 46, 48, 117, 6, 0, 0, 0, 115, 117, 102, 102, 105, 120, 40,
1, 0, 0, 0, 117, 6, 0, 0, 0, 108, 111, 97, 100, 101, 114, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 9, 0, 0, 0, 60, 103, 101, 110, 101,
120, 112, 114, 62, 56, 5, 0, 0, 115, 2, 0, 0, 0, 6, 0, 117,
38, 0, 0, 0, 70, 105, 108, 101, 70, 105, 110, 100, 101, 114, 46, 95,
95, 105, 110, 105, 116, 95, 95, 46, 60, 108, 111, 99, 97, 108, 115, 62,
46, 60, 103, 101, 110, 101, 120, 112, 114, 62, 117, 1, 0, 0, 0, 46,
105, 1, 0, 0, 0, 78, 105, 255, 255, 255, 255, 40, 7, 0, 0, 0,
117, 6, 0, 0, 0, 101, 120, 116, 101, 110, 100, 117, 8, 0, 0, 0,
95, 108, 111, 97, 100, 101, 114, 115, 117, 4, 0, 0, 0, 112, 97, 116,
104, 117, 11, 0, 0, 0, 95, 112, 97, 116, 104, 95, 109, 116, 105, 109,
101, 117, 3, 0, 0, 0, 115, 101, 116, 117, 11, 0, 0, 0, 95, 112,
97, 116, 104, 95, 99, 97, 99, 104, 101, 117, 19, 0, 0, 0, 95, 114,
101, 108, 97, 120, 101, 100, 95, 112, 97, 116, 104, 95, 99, 97, 99, 104,
101, 40, 5, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117,
4, 0, 0, 0, 112, 97, 116, 104, 117, 14, 0, 0, 0, 108, 111, 97,
100, 101, 114, 95, 100, 101, 116, 97, 105, 108, 115, 117, 7, 0, 0, 0,
108, 111, 97, 100, 101, 114, 115, 117, 8, 0, 0, 0, 115, 117, 102, 102,
105, 120, 101, 115, 40, 0, 0, 0, 0, 40, 1, 0, 0, 0, 117, 6,
0, 0, 0, 108, 111, 97, 100, 101, 114, 117, 29, 0, 0, 0, 60, 102,
114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46,
95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 8, 0, 0, 0,
95, 95, 105, 110, 105, 116, 95, 95, 50, 5, 0, 0, 115, 16, 0, 0,
0, 0, 4, 6, 1, 19, 1, 36, 1, 9, 2, 15, 1, 9, 1, 12,
1, 117, 19, 0, 0, 0, 70, 105, 108, 101, 70, 105, 110, 100, 101, 114,
46, 95, 95, 105, 110, 105, 116, 95, 95, 99, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 67, 0, 0, 0, 115, 13,
0, 0, 0, 100, 3, 0, 124, 0, 0, 95, 0, 0, 100, 2, 0, 83,
40, 4, 0, 0, 0, 117, 31, 0, 0, 0, 73, 110, 118, 97, 108, 105,
100, 97, 116, 101, 32, 116, 104, 101, 32, 100, 105, 114, 101, 99, 116, 111,
114, 121, 32, 109, 116, 105, 109, 101, 46, 105, 1, 0, 0, 0, 78, 105,
255, 255, 255, 255, 40, 1, 0, 0, 0, 117, 11, 0, 0, 0, 95, 112,
97, 116, 104, 95, 109, 116, 105, 109, 101, 40, 1, 0, 0, 0, 117, 4,
0, 0, 0, 115, 101, 108, 102, 40, 0, 0, 0, 0, 40, 0, 0, 0,
0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109,
112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114,
97, 112, 62, 117, 17, 0, 0, 0, 105, 110, 118, 97, 108, 105, 100, 97,
116, 101, 95, 99, 97, 99, 104, 101, 115, 64, 5, 0, 0, 115, 2, 0,
0, 0, 0, 2, 117, 28, 0, 0, 0, 70, 105, 108, 101, 70, 105, 110,
100, 101, 114, 46, 105, 110, 118, 97, 108, 105, 100, 97, 116, 101, 95, 99,
97, 99, 104, 101, 115, 99, 2, 0, 0, 0, 0, 0, 0, 0, 12, 0,
0, 0, 13, 0, 0, 0, 67, 0, 0, 0, 115, 216, 1, 0, 0, 100,
8, 0, 125, 2, 0, 124, 1, 0, 106, 1, 0, 100, 1, 0, 131, 1,
0, 100, 2, 0, 25, 125, 3, 0, 121, 25, 0, 116, 2, 0, 106, 3,
0, 124, 0, 0, 106, 4, 0, 131, 1, 0, 106, 5, 0, 125, 4, 0,
87, 110, 24, 0, 4, 116, 6, 0, 107, 10, 0, 114, 76, 0, 1, 1,
1, 100, 9, 0, 125, 4, 0, 89, 110, 1, 0, 88, 124, 4, 0, 124,
0, 0, 106, 7, 0, 107, 3, 0, 114, 114, 0, 124, 0, 0, 106, 8,
0, 131, 0, 0, 1, 124, 4, 0, 124, 0, 0, 95, 7, 0, 110, 0,
0, 116, 9, 0, 131, 0, 0, 114, 147, 0, 124, 0, 0, 106, 10, 0,
125, 5, 0, 124, 3, 0, 106, 11, 0, 131, 0, 0, 125, 6, 0, 110,
15, 0, 124, 0, 0, 106, 12, 0, 125, 5, 0, 124, 3, 0, 125, 6,
0, 124, 6, 0, 124, 5, 0, 107, 6, 0, 114, 45, 1, 116, 13, 0,
124, 0, 0, 106, 4, 0, 124, 3, 0, 131, 2, 0, 125, 7, 0, 116,
14, 0, 124, 7, 0, 131, 1, 0, 114, 45, 1, 120, 91, 0, 124, 0,
0, 106, 15, 0, 68, 93, 71, 0, 92, 2, 0, 125, 8, 0, 125, 9,
0, 100, 4, 0, 124, 8, 0, 23, 125, 10, 0, 116, 13, 0, 124, 7,
0, 124, 10, 0, 131, 2, 0, 125, 11, 0, 116, 16, 0, 124, 11, 0,
131, 1, 0, 114, 214, 0, 124, 9, 0, 124, 1, 0, 124, 11, 0, 131,
2, 0, 124, 7, 0, 103, 1, 0, 102, 2, 0, 83, 113, 214, 0, 87,
100, 10, 0, 125, 2, 0, 113, 45, 1, 110, 0, 0, 120, 120, 0, 124,
0, 0, 106, 15, 0, 68, 93, 109, 0, 92, 2, 0, 125, 8, 0, 125,
9, 0, 116, 13, 0, 124, 0, 0, 106, 4, 0, 124, 3, 0, 124, 8,
0, 23, 131, 2, 0, 125, 11, 0, 116, 18, 0, 100, 5, 0, 106, 19,
0, 124, 11, 0, 131, 1, 0, 100, 6, 0, 100, 2, 0, 131, 1, 1,
1, 124, 6, 0, 124, 8, 0, 23, 124, 5, 0, 107, 6, 0, 114, 55,
1, 116, 16, 0, 124, 11, 0, 131, 1, 0, 114, 164, 1, 124, 9, 0,
124, 1, 0, 124, 11, 0, 131, 2, 0, 103, 0, 0, 102, 2, 0, 83,
113, 55, 1, 113, 55, 1, 87, 124, 2, 0, 114, 206, 1, 116, 18, 0,
100, 7, 0, 106, 19, 0, 124, 7, 0, 131, 1, 0, 131, 1, 0, 1,
100, 11, 0, 124, 7, 0, 103, 1, 0, 102, 2, 0, 83, 100, 11, 0,
103, 0, 0, 102, 2, 0, 83, 40, 12, 0, 0, 0, 117, 125, 0, 0,
0, 84, 114, 121, 32, 116, 111, 32, 102, 105, 110, 100, 32, 97, 32, 108,
111, 97, 100, 101, 114, 32, 102, 111, 114, 32, 116, 104, 101, 32, 115, 112,
101, 99, 105, 102, 105, 101, 100, 32, 109, 111, 100, 117, 108, 101, 44, 32,
111, 114, 32, 116, 104, 101, 32, 110, 97, 109, 101, 115, 112, 97, 99, 101,
10, 32, 32, 32, 32, 32, 32, 32, 32, 112, 97, 99, 107, 97, 103, 101,
32, 112, 111, 114, 116, 105, 111, 110, 115, 46, 32, 82, 101, 116, 117, 114,
110, 115, 32, 40, 108, 111, 97, 100, 101, 114, 44, 32, 108, 105, 115, 116,
45, 111, 102, 45, 112, 111, 114, 116, 105, 111, 110, 115, 41, 46, 117, 1,
0, 0, 0, 46, 105, 2, 0, 0, 0, 105, 1, 0, 0, 0, 117, 8,
0, 0, 0, 95, 95, 105, 110, 105, 116, 95, 95, 117, 9, 0, 0, 0,
116, 114, 121, 105, 110, 103, 32, 123, 125, 117, 9, 0, 0, 0, 118, 101,
114, 98, 111, 115, 105, 116, 121, 117, 25, 0, 0, 0, 112, 111, 115, 115,
105, 98, 108, 101, 32, 110, 97, 109, 101, 115, 112, 97, 99, 101, 32, 102,
111, 114, 32, 123, 125, 70, 105, 255, 255, 255, 255, 84, 78, 40, 21, 0,
0, 0, 117, 5, 0, 0, 0, 70, 97, 108, 115, 101, 117, 10, 0, 0,
0, 114, 112, 97, 114, 116, 105, 116, 105, 111, 110, 117, 3, 0, 0, 0,
95, 111, 115, 117, 4, 0, 0, 0, 115, 116, 97, 116, 117, 4, 0, 0,
0, 112, 97, 116, 104, 117, 8, 0, 0, 0, 115, 116, 95, 109, 116, 105,
109, 101, 117, 7, 0, 0, 0, 79, 83, 69, 114, 114, 111, 114, 117, 11,
0, 0, 0, 95, 112, 97, 116, 104, 95, 109, 116, 105, 109, 101, 117, 11,
0, 0, 0, 95, 102, 105, 108, 108, 95, 99, 97, 99, 104, 101, 117, 11,
0, 0, 0, 95, 114, 101, 108, 97, 120, 95, 99, 97, 115, 101, 117, 19,
0, 0, 0, 95, 114, 101, 108, 97, 120, 101, 100, 95, 112, 97, 116, 104,
95, 99, 97, 99, 104, 101, 117, 5, 0, 0, 0, 108, 111, 119, 101, 114,
117, 11, 0, 0, 0, 95, 112, 97, 116, 104, 95, 99, 97, 99, 104, 101,
117, 10, 0, 0, 0, 95, 112, 97, 116, 104, 95, 106, 111, 105, 110, 117,
11, 0, 0, 0, 95, 112, 97, 116, 104, 95, 105, 115, 100, 105, 114, 117,
8, 0, 0, 0, 95, 108, 111, 97, 100, 101, 114, 115, 117, 12, 0, 0,
0, 95, 112, 97, 116, 104, 95, 105, 115, 102, 105, 108, 101, 117, 4, 0,
0, 0, 84, 114, 117, 101, 117, 16, 0, 0, 0, 95, 118, 101, 114, 98,
111, 115, 101, 95, 109, 101, 115, 115, 97, 103, 101, 117, 6, 0, 0, 0,
102, 111, 114, 109, 97, 116, 117, 4, 0, 0, 0, 78, 111, 110, 101, 40,
12, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 8, 0,
0, 0, 102, 117, 108, 108, 110, 97, 109, 101, 117, 12, 0, 0, 0, 105,
115, 95, 110, 97, 109, 101, 115, 112, 97, 99, 101, 117, 11, 0, 0, 0,
116, 97, 105, 108, 95, 109, 111, 100, 117, 108, 101, 117, 5, 0, 0, 0,
109, 116, 105, 109, 101, 117, 5, 0, 0, 0, 99, 97, 99, 104, 101, 117,
12, 0, 0, 0, 99, 97, 99, 104, 101, 95, 109, 111, 100, 117, 108, 101,
117, 9, 0, 0, 0, 98, 97, 115, 101, 95, 112, 97, 116, 104, 117, 6,
0, 0, 0, 115, 117, 102, 102, 105, 120, 117, 6, 0, 0, 0, 108, 111,
97, 100, 101, 114, 117, 13, 0, 0, 0, 105, 110, 105, 116, 95, 102, 105,
108, 101, 110, 97, 109, 101, 117, 9, 0, 0, 0, 102, 117, 108, 108, 95,
112, 97, 116, 104, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29,
0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114,
116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62,
117, 11, 0, 0, 0, 102, 105, 110, 100, 95, 108, 111, 97, 100, 101, 114,
70, 5, 0, 0, 115, 66, 0, 0, 0, 0, 3, 6, 1, 19, 1, 3,
1, 25, 1, 13, 1, 11, 1, 15, 1, 10, 1, 12, 2, 9, 1, 9,
1, 15, 2, 9, 1, 6, 2, 12, 1, 18, 1, 12, 1, 22, 1, 10,
1, 15, 1, 12, 1, 26, 4, 12, 2, 22, 1, 22, 1, 25, 1, 16,
1, 12, 1, 26, 1, 6, 1, 19, 1, 13, 1, 117, 22, 0, 0, 0,
70, 105, 108, 101, 70, 105, 110, 100, 101, 114, 46, 102, 105, 110, 100, 95,
108, 111, 97, 100, 101, 114, 99, 1, 0, 0, 0, 0, 0, 0, 0, 9,
0, 0, 0, 13, 0, 0, 0, 67, 0, 0, 0, 115, 8, 1, 0, 0,
124, 0, 0, 106, 0, 0, 125, 1, 0, 121, 19, 0, 116, 1, 0, 106,
2, 0, 124, 1, 0, 131, 1, 0, 125, 2, 0, 87, 110, 33, 0, 4,
116, 3, 0, 116, 4, 0, 116, 5, 0, 102, 3, 0, 107, 10, 0, 114,
63, 0, 1, 1, 1, 103, 0, 0, 125, 2, 0, 89, 110, 1, 0, 88,
116, 6, 0, 106, 7, 0, 106, 8, 0, 100, 1, 0, 131, 1, 0, 115,
100, 0, 116, 9, 0, 124, 2, 0, 131, 1, 0, 124, 0, 0, 95, 10,
0, 110, 111, 0, 116, 9, 0, 131, 0, 0, 125, 3, 0, 120, 90, 0,
124, 2, 0, 68, 93, 82, 0, 125, 4, 0, 124, 4, 0, 106, 11, 0,
100, 2, 0, 131, 1, 0, 92, 3, 0, 125, 5, 0, 125, 6, 0, 125,
7, 0, 124, 6, 0, 114, 179, 0, 100, 3, 0, 106, 12, 0, 124, 5,
0, 124, 7, 0, 106, 13, 0, 131, 0, 0, 131, 2, 0, 125, 8, 0,
110, 6, 0, 124, 5, 0, 125, 8, 0, 124, 3, 0, 106, 14, 0, 124,
8, 0, 131, 1, 0, 1, 113, 116, 0, 87, 124, 3, 0, 124, 0, 0,
95, 10, 0, 116, 6, 0, 106, 7, 0, 106, 8, 0, 116, 15, 0, 131,
1, 0, 114, 4, 1, 116, 9, 0, 100, 4, 0, 100, 5, 0, 132, 0,
0, 124, 2, 0, 68, 131, 1, 0, 131, 1, 0, 124, 0, 0, 95, 16,
0, 110, 0, 0, 100, 6, 0, 83, 40, 7, 0, 0, 0, 117, 68, 0,
0, 0, 70, 105, 108, 108, 32, 116, 104, 101, 32, 99, 97, 99, 104, 101,
32, 111, 102, 32, 112, 111, 116, 101, 110, 116, 105, 97, 108, 32, 109, 111,
100, 117, 108, 101, 115, 32, 97, 110, 100, 32, 112, 97, 99, 107, 97, 103,
101, 115, 32, 102, 111, 114, 32, 116, 104, 105, 115, 32, 100, 105, 114, 101,
99, 116, 111, 114, 121, 46, 117, 3, 0, 0, 0, 119, 105, 110, 117, 1,
0, 0, 0, 46, 117, 5, 0, 0, 0, 123, 125, 46, 123, 125, 99, 1,
0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 115,
0, 0, 0, 115, 27, 0, 0, 0, 124, 0, 0, 93, 17, 0, 125, 1,
0, 124, 1, 0, 106, 0, 0, 131, 0, 0, 86, 1, 113, 3, 0, 100,
0, 0, 83, 40, 1, 0, 0, 0, 78, 40, 1, 0, 0, 0, 117, 5,
0, 0, 0, 108, 111, 119, 101, 114, 40, 2, 0, 0, 0, 117, 2, 0,
0, 0, 46, 48, 117, 2, 0, 0, 0, 102, 110, 40, 0, 0, 0, 0,
40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101,
110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111,
116, 115, 116, 114, 97, 112, 62, 117, 9, 0, 0, 0, 60, 103, 101, 110,
101, 120, 112, 114, 62, 143, 5, 0, 0, 115, 2, 0, 0, 0, 6, 0,
117, 41, 0, 0, 0, 70, 105, 108, 101, 70, 105, 110, 100, 101, 114, 46,
95, 102, 105, 108, 108, 95, 99, 97, 99, 104, 101, 46, 60, 108, 111, 99,
97, 108, 115, 62, 46, 60, 103, 101, 110, 101, 120, 112, 114, 62, 78, 40,
17, 0, 0, 0, 117, 4, 0, 0, 0, 112, 97, 116, 104, 117, 3, 0,
0, 0, 95, 111, 115, 117, 7, 0, 0, 0, 108, 105, 115, 116, 100, 105,
114, 117, 17, 0, 0, 0, 70, 105, 108, 101, 78, 111, 116, 70, 111, 117,
110, 100, 69, 114, 114, 111, 114, 117, 15, 0, 0, 0, 80, 101, 114, 109,
105, 115, 115, 105, 111, 110, 69, 114, 114, 111, 114, 117, 18, 0, 0, 0,
78, 111, 116, 65, 68, 105, 114, 101, 99, 116, 111, 114, 121, 69, 114, 114,
111, 114, 117, 3, 0, 0, 0, 115, 121, 115, 117, 8, 0, 0, 0, 112,
108, 97, 116, 102, 111, 114, 109, 117, 10, 0, 0, 0, 115, 116, 97, 114,
116, 115, 119, 105, 116, 104, 117, 3, 0, 0, 0, 115, 101, 116, 117, 11,
0, 0, 0, 95, 112, 97, 116, 104, 95, 99, 97, 99, 104, 101, 117, 9,
0, 0, 0, 112, 97, 114, 116, 105, 116, 105, 111, 110, 117, 6, 0, 0,
0, 102, 111, 114, 109, 97, 116, 117, 5, 0, 0, 0, 108, 111, 119, 101,
114, 117, 3, 0, 0, 0, 97, 100, 100, 117, 27, 0, 0, 0, 95, 67,
65, 83, 69, 95, 73, 78, 83, 69, 78, 83, 73, 84, 73, 86, 69, 95,
80, 76, 65, 84, 70, 79, 82, 77, 83, 117, 19, 0, 0, 0, 95, 114,
101, 108, 97, 120, 101, 100, 95, 112, 97, 116, 104, 95, 99, 97, 99, 104,
101, 40, 9, 0, 0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117,
4, 0, 0, 0, 112, 97, 116, 104, 117, 8, 0, 0, 0, 99, 111, 110,
116, 101, 110, 116, 115, 117, 21, 0, 0, 0, 108, 111, 119, 101, 114, 95,
115, 117, 102, 102, 105, 120, 95, 99, 111, 110, 116, 101, 110, 116, 115, 117,
4, 0, 0, 0, 105, 116, 101, 109, 117, 4, 0, 0, 0, 110, 97, 109,
101, 117, 3, 0, 0, 0, 100, 111, 116, 117, 6, 0, 0, 0, 115, 117,
102, 102, 105, 120, 117, 8, 0, 0, 0, 110, 101, 119, 95, 110, 97, 109,
101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0,
60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0,
0, 0, 95, 102, 105, 108, 108, 95, 99, 97, 99, 104, 101, 114, 5, 0,
0, 115, 34, 0, 0, 0, 0, 2, 9, 1, 3, 1, 19, 1, 22, 3,
11, 3, 18, 1, 18, 7, 9, 1, 13, 1, 24, 1, 6, 1, 27, 2,
6, 1, 17, 1, 9, 1, 18, 1, 117, 22, 0, 0, 0, 70, 105, 108,
101, 70, 105, 110, 100, 101, 114, 46, 95, 102, 105, 108, 108, 95, 99, 97,
99, 104, 101, 99, 1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0,
3, 0, 0, 0, 7, 0, 0, 0, 115, 25, 0, 0, 0, 135, 0, 0,
135, 1, 0, 102, 2, 0, 100, 1, 0, 100, 2, 0, 134, 0, 0, 125,
2, 0, 124, 2, 0, 83, 40, 3, 0, 0, 0, 117, 20, 1, 0, 0,
65, 32, 99, 108, 97, 115, 115, 32, 109, 101, 116, 104, 111, 100, 32, 119,
104, 105, 99, 104, 32, 114, 101, 116, 117, 114, 110, 115, 32, 97, 32, 99,
108, 111, 115, 117, 114, 101, 32, 116, 111, 32, 117, 115, 101, 32, 111, 110,
32, 115, 121, 115, 46, 112, 97, 116, 104, 95, 104, 111, 111, 107, 10, 32,
32, 32, 32, 32, 32, 32, 32, 119, 104, 105, 99, 104, 32, 119, 105, 108,
108, 32, 114, 101, 116, 117, 114, 110, 32, 97, 110, 32, 105, 110, 115, 116,
97, 110, 99, 101, 32, 117, 115, 105, 110, 103, 32, 116, 104, 101, 32, 115,
112, 101, 99, 105, 102, 105, 101, 100, 32, 108, 111, 97, 100, 101, 114, 115,
32, 97, 110, 100, 32, 116, 104, 101, 32, 112, 97, 116, 104, 10, 32, 32,
32, 32, 32, 32, 32, 32, 99, 97, 108, 108, 101, 100, 32, 111, 110, 32,
116, 104, 101, 32, 99, 108, 111, 115, 117, 114, 101, 46, 10, 10, 32, 32,
32, 32, 32, 32, 32, 32, 73, 102, 32, 116, 104, 101, 32, 112, 97, 116,
104, 32, 99, 97, 108, 108, 101, 100, 32, 111, 110, 32, 116, 104, 101, 32,
99, 108, 111, 115, 117, 114, 101, 32, 105, 115, 32, 110, 111, 116, 32, 97,
32, 100, 105, 114, 101, 99, 116, 111, 114, 121, 44, 32, 73, 109, 112, 111,
114, 116, 69, 114, 114, 111, 114, 32, 105, 115, 10, 32, 32, 32, 32, 32,
32, 32, 32, 114, 97, 105, 115, 101, 100, 46, 10, 10, 32, 32, 32, 32,
32, 32, 32, 32, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 4, 0, 0, 0, 19, 0, 0, 0, 115, 46, 0, 0, 0, 116, 0,
0, 124, 0, 0, 131, 1, 0, 115, 33, 0, 116, 1, 0, 100, 1, 0,
100, 2, 0, 124, 0, 0, 131, 1, 1, 130, 1, 0, 110, 0, 0, 136,
0, 0, 124, 0, 0, 136, 1, 0, 140, 1, 0, 83, 40, 3, 0, 0,
0, 117, 45, 0, 0, 0, 80, 97, 116, 104, 32, 104, 111, 111, 107, 32,
102, 111, 114, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 109, 97,
99, 104, 105, 110, 101, 114, 121, 46, 70, 105, 108, 101, 70, 105, 110, 100,
101, 114, 46, 117, 30, 0, 0, 0, 111, 110, 108, 121, 32, 100, 105, 114,
101, 99, 116, 111, 114, 105, 101, 115, 32, 97, 114, 101, 32, 115, 117, 112,
112, 111, 114, 116, 101, 100, 117, 4, 0, 0, 0, 112, 97, 116, 104, 40,
2, 0, 0, 0, 117, 11, 0, 0, 0, 95, 112, 97, 116, 104, 95, 105,
115, 100, 105, 114, 117, 11, 0, 0, 0, 73, 109, 112, 111, 114, 116, 69,
114, 114, 111, 114, 40, 1, 0, 0, 0, 117, 4, 0, 0, 0, 112, 97,
116, 104, 40, 2, 0, 0, 0, 117, 3, 0, 0, 0, 99, 108, 115, 117,
14, 0, 0, 0, 108, 111, 97, 100, 101, 114, 95, 100, 101, 116, 97, 105,
108, 115, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111,
122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98,
111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 24, 0, 0, 0, 112, 97,
116, 104, 95, 104, 111, 111, 107, 95, 102, 111, 114, 95, 70, 105, 108, 101,
70, 105, 110, 100, 101, 114, 155, 5, 0, 0, 115, 6, 0, 0, 0, 0,
2, 12, 1, 21, 1, 117, 54, 0, 0, 0, 70, 105, 108, 101, 70, 105,
110, 100, 101, 114, 46, 112, 97, 116, 104, 95, 104, 111, 111, 107, 46, 60,
108, 111, 99, 97, 108, 115, 62, 46, 112, 97, 116, 104, 95, 104, 111, 111,
107, 95, 102, 111, 114, 95, 70, 105, 108, 101, 70, 105, 110, 100, 101, 114,
40, 0, 0, 0, 0, 40, 3, 0, 0, 0, 117, 3, 0, 0, 0, 99,
108, 115, 117, 14, 0, 0, 0, 108, 111, 97, 100, 101, 114, 95, 100, 101,
116, 97, 105, 108, 115, 117, 24, 0, 0, 0, 112, 97, 116, 104, 95, 104,
111, 111, 107, 95, 102, 111, 114, 95, 70, 105, 108, 101, 70, 105, 110, 100,
101, 114, 40, 0, 0, 0, 0, 40, 2, 0, 0, 0, 117, 3, 0, 0,
0, 99, 108, 115, 117, 14, 0, 0, 0, 108, 111, 97, 100, 101, 114, 95,
100, 101, 116, 97, 105, 108, 115, 117, 29, 0, 0, 0, 60, 102, 114, 111,
122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98,
111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 9, 0, 0, 0, 112, 97,
116, 104, 95, 104, 111, 111, 107, 145, 5, 0, 0, 115, 4, 0, 0, 0,
0, 10, 21, 6, 117, 20, 0, 0, 0, 70, 105, 108, 101, 70, 105, 110,
100, 101, 114, 46, 112, 97, 116, 104, 95, 104, 111, 111, 107, 99, 1, 0,
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 67, 0,
0, 0, 115, 14, 0, 0, 0, 100, 1, 0, 124, 0, 0, 106, 0, 0,
102, 1, 0, 22, 83, 40, 2, 0, 0, 0, 78, 117, 14, 0, 0, 0,
70, 105, 108, 101, 70, 105, 110, 100, 101, 114, 40, 37, 114, 41, 40, 1,
0, 0, 0, 117, 4, 0, 0, 0, 112, 97, 116, 104, 40, 1, 0, 0,
0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 8, 0, 0, 0, 95, 95, 114, 101, 112,
114, 95, 95, 163, 5, 0, 0, 115, 2, 0, 0, 0, 0, 1, 117, 19,
0, 0, 0, 70, 105, 108, 101, 70, 105, 110, 100, 101, 114, 46, 95, 95,
114, 101, 112, 114, 95, 95, 78, 40, 13, 0, 0, 0, 117, 8, 0, 0,
0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 10, 0, 0, 0, 95, 95,
109, 111, 100, 117, 108, 101, 95, 95, 117, 12, 0, 0, 0, 95, 95, 113,
117, 97, 108, 110, 97, 109, 101, 95, 95, 117, 7, 0, 0, 0, 95, 95,
100, 111, 99, 95, 95, 117, 8, 0, 0, 0, 95, 95, 105, 110, 105, 116,
95, 95, 117, 17, 0, 0, 0, 105, 110, 118, 97, 108, 105, 100, 97, 116,
101, 95, 99, 97, 99, 104, 101, 115, 117, 17, 0, 0, 0, 95, 102, 105,
110, 100, 95, 109, 111, 100, 117, 108, 101, 95, 115, 104, 105, 109, 117, 11,
0, 0, 0, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108, 101, 117, 11,
0, 0, 0, 102, 105, 110, 100, 95, 108, 111, 97, 100, 101, 114, 117, 11,
0, 0, 0, 95, 102, 105, 108, 108, 95, 99, 97, 99, 104, 101, 117, 11,
0, 0, 0, 99, 108, 97, 115, 115, 109, 101, 116, 104, 111, 100, 117, 9,
0, 0, 0, 112, 97, 116, 104, 95, 104, 111, 111, 107, 117, 8, 0, 0,
0, 95, 95, 114, 101, 112, 114, 95, 95, 40, 1, 0, 0, 0, 117, 10,
0, 0, 0, 95, 95, 108, 111, 99, 97, 108, 115, 95, 95, 40, 0, 0,
0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111,
122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98,
111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 70, 105,
108, 101, 70, 105, 110, 100, 101, 114, 41, 5, 0, 0, 115, 16, 0, 0,
0, 16, 7, 6, 2, 12, 14, 12, 4, 6, 2, 12, 44, 12, 31, 18,
18, 117, 10, 0, 0, 0, 70, 105, 108, 101, 70, 105, 110, 100, 101, 114,
99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0,
0, 66, 0, 0, 0, 115, 50, 0, 0, 0, 124, 0, 0, 69, 101, 0,
0, 90, 1, 0, 100, 0, 0, 90, 2, 0, 100, 1, 0, 90, 3, 0,
100, 2, 0, 100, 3, 0, 132, 0, 0, 90, 4, 0, 100, 4, 0, 100,
5, 0, 132, 0, 0, 90, 5, 0, 100, 6, 0, 83, 40, 7, 0, 0,
0, 117, 18, 0, 0, 0, 95, 73, 109, 112, 111, 114, 116, 76, 111, 99,
107, 67, 111, 110, 116, 101, 120, 116, 117, 36, 0, 0, 0, 67, 111, 110,
116, 101, 120, 116, 32, 109, 97, 110, 97, 103, 101, 114, 32, 102, 111, 114,
32, 116, 104, 101, 32, 105, 109, 112, 111, 114, 116, 32, 108, 111, 99, 107,
46, 99, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0,
0, 0, 67, 0, 0, 0, 115, 14, 0, 0, 0, 116, 0, 0, 106, 1,
0, 131, 0, 0, 1, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 24,
0, 0, 0, 65, 99, 113, 117, 105, 114, 101, 32, 116, 104, 101, 32, 105,
109, 112, 111, 114, 116, 32, 108, 111, 99, 107, 46, 78, 40, 2, 0, 0,
0, 117, 4, 0, 0, 0, 95, 105, 109, 112, 117, 12, 0, 0, 0, 97,
99, 113, 117, 105, 114, 101, 95, 108, 111, 99, 107, 40, 1, 0, 0, 0,
117, 4, 0, 0, 0, 115, 101, 108, 102, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 9, 0, 0, 0, 95, 95, 101, 110, 116, 101,
114, 95, 95, 173, 5, 0, 0, 115, 2, 0, 0, 0, 0, 2, 117, 28,
0, 0, 0, 95, 73, 109, 112, 111, 114, 116, 76, 111, 99, 107, 67, 111,
110, 116, 101, 120, 116, 46, 95, 95, 101, 110, 116, 101, 114, 95, 95, 99,
4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 1, 0, 0, 0,
67, 0, 0, 0, 115, 14, 0, 0, 0, 116, 0, 0, 106, 1, 0, 131,
0, 0, 1, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117, 60, 0, 0,
0, 82, 101, 108, 101, 97, 115, 101, 32, 116, 104, 101, 32, 105, 109, 112,
111, 114, 116, 32, 108, 111, 99, 107, 32, 114, 101, 103, 97, 114, 100, 108,
101, 115, 115, 32, 111, 102, 32, 97, 110, 121, 32, 114, 97, 105, 115, 101,
100, 32, 101, 120, 99, 101, 112, 116, 105, 111, 110, 115, 46, 78, 40, 2,
0, 0, 0, 117, 4, 0, 0, 0, 95, 105, 109, 112, 117, 12, 0, 0,
0, 114, 101, 108, 101, 97, 115, 101, 95, 108, 111, 99, 107, 40, 4, 0,
0, 0, 117, 4, 0, 0, 0, 115, 101, 108, 102, 117, 8, 0, 0, 0,
101, 120, 99, 95, 116, 121, 112, 101, 117, 9, 0, 0, 0, 101, 120, 99,
95, 118, 97, 108, 117, 101, 117, 13, 0, 0, 0, 101, 120, 99, 95, 116,
114, 97, 99, 101, 98, 97, 99, 107, 40, 0, 0, 0, 0, 40, 0, 0,
0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105,
109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116,
114, 97, 112, 62, 117, 8, 0, 0, 0, 95, 95, 101, 120, 105, 116, 95,
95, 177, 5, 0, 0, 115, 2, 0, 0, 0, 0, 2, 117, 27, 0, 0,
0, 95, 73, 109, 112, 111, 114, 116, 76, 111, 99, 107, 67, 111, 110, 116,
101, 120, 116, 46, 95, 95, 101, 120, 105, 116, 95, 95, 78, 40, 6, 0,
0, 0, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117,
10, 0, 0, 0, 95, 95, 109, 111, 100, 117, 108, 101, 95, 95, 117, 12,
0, 0, 0, 95, 95, 113, 117, 97, 108, 110, 97, 109, 101, 95, 95, 117,
7, 0, 0, 0, 95, 95, 100, 111, 99, 95, 95, 117, 9, 0, 0, 0,
95, 95, 101, 110, 116, 101, 114, 95, 95, 117, 8, 0, 0, 0, 95, 95,
101, 120, 105, 116, 95, 95, 40, 1, 0, 0, 0, 117, 10, 0, 0, 0,
95, 95, 108, 111, 99, 97, 108, 115, 95, 95, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 18, 0, 0, 0, 95, 73, 109, 112, 111,
114, 116, 76, 111, 99, 107, 67, 111, 110, 116, 101, 120, 116, 169, 5, 0,
0, 115, 6, 0, 0, 0, 16, 2, 6, 2, 12, 4, 117, 18, 0, 0,
0, 95, 73, 109, 112, 111, 114, 116, 76, 111, 99, 107, 67, 111, 110, 116,
101, 120, 116, 99, 3, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0,
4, 0, 0, 0, 67, 0, 0, 0, 115, 91, 0, 0, 0, 124, 1, 0,
106, 0, 0, 100, 1, 0, 124, 2, 0, 100, 2, 0, 24, 131, 2, 0,
125, 3, 0, 116, 1, 0, 124, 3, 0, 131, 1, 0, 124, 2, 0, 107,
0, 0, 114, 55, 0, 116, 2, 0, 100, 3, 0, 131, 1, 0, 130, 1,
0, 110, 0, 0, 124, 3, 0, 100, 4, 0, 25, 125, 4, 0, 124, 0,
0, 114, 87, 0, 100, 5, 0, 106, 3, 0, 124, 4, 0, 124, 0, 0,
131, 2, 0, 83, 124, 4, 0, 83, 40, 6, 0, 0, 0, 117, 50, 0,
0, 0, 82, 101, 115, 111, 108, 118, 101, 32, 97, 32, 114, 101, 108, 97,
116, 105, 118, 101, 32, 109, 111, 100, 117, 108, 101, 32, 110, 97, 109, 101,
32, 116, 111, 32, 97, 110, 32, 97, 98, 115, 111, 108, 117, 116, 101, 32,
111, 110, 101, 46, 117, 1, 0, 0, 0, 46, 105, 1, 0, 0, 0, 117,
50, 0, 0, 0, 97, 116, 116, 101, 109, 112, 116, 101, 100, 32, 114, 101,
108, 97, 116, 105, 118, 101, 32, 105, 109, 112, 111, 114, 116, 32, 98, 101,
121, 111, 110, 100, 32, 116, 111, 112, 45, 108, 101, 118, 101, 108, 32, 112,
97, 99, 107, 97, 103, 101, 105, 0, 0, 0, 0, 117, 5, 0, 0, 0,
123, 125, 46, 123, 125, 40, 4, 0, 0, 0, 117, 6, 0, 0, 0, 114,
115, 112, 108, 105, 116, 117, 3, 0, 0, 0, 108, 101, 110, 117, 10, 0,
0, 0, 86, 97, 108, 117, 101, 69, 114, 114, 111, 114, 117, 6, 0, 0,
0, 102, 111, 114, 109, 97, 116, 40, 5, 0, 0, 0, 117, 4, 0, 0,
0, 110, 97, 109, 101, 117, 7, 0, 0, 0, 112, 97, 99, 107, 97, 103,
101, 117, 5, 0, 0, 0, 108, 101, 118, 101, 108, 117, 4, 0, 0, 0,
98, 105, 116, 115, 117, 4, 0, 0, 0, 98, 97, 115, 101, 40, 0, 0,
0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111,
122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98,
111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 13, 0, 0, 0, 95, 114,
101, 115, 111, 108, 118, 101, 95, 110, 97, 109, 101, 182, 5, 0, 0, 115,
10, 0, 0, 0, 0, 2, 22, 1, 18, 1, 15, 1, 10, 1, 117, 13,
0, 0, 0, 95, 114, 101, 115, 111, 108, 118, 101, 95, 110, 97, 109, 101,
99, 2, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 11, 0, 0,
0, 67, 0, 0, 0, 115, 138, 0, 0, 0, 116, 0, 0, 106, 1, 0,
115, 28, 0, 116, 2, 0, 106, 3, 0, 100, 1, 0, 116, 4, 0, 131,
2, 0, 1, 110, 0, 0, 120, 103, 0, 116, 0, 0, 106, 1, 0, 68,
93, 88, 0, 125, 2, 0, 116, 5, 0, 131, 0, 0, 143, 23, 0, 1,
124, 2, 0, 106, 6, 0, 124, 0, 0, 124, 1, 0, 131, 2, 0, 125,
3, 0, 87, 100, 2, 0, 81, 88, 124, 3, 0, 100, 2, 0, 107, 9,
0, 114, 38, 0, 124, 0, 0, 116, 0, 0, 106, 8, 0, 107, 7, 0,
114, 109, 0, 124, 3, 0, 83, 116, 0, 0, 106, 8, 0, 124, 0, 0,
25, 106, 9, 0, 83, 113, 38, 0, 113, 38, 0, 87, 100, 2, 0, 83,
100, 2, 0, 83, 40, 3, 0, 0, 0, 117, 23, 0, 0, 0, 70, 105,
110, 100, 32, 97, 32, 109, 111, 100, 117, 108, 101, 39, 115, 32, 108, 111,
97, 100, 101, 114, 46, 117, 22, 0, 0, 0, 115, 121, 115, 46, 109, 101,
116, 97, 95, 112, 97, 116, 104, 32, 105, 115, 32, 101, 109, 112, 116, 121,
78, 40, 10, 0, 0, 0, 117, 3, 0, 0, 0, 115, 121, 115, 117, 9,
0, 0, 0, 109, 101, 116, 97, 95, 112, 97, 116, 104, 117, 9, 0, 0,
0, 95, 119, 97, 114, 110, 105, 110, 103, 115, 117, 4, 0, 0, 0, 119,
97, 114, 110, 117, 13, 0, 0, 0, 73, 109, 112, 111, 114, 116, 87, 97,
114, 110, 105, 110, 103, 117, 18, 0, 0, 0, 95, 73, 109, 112, 111, 114,
116, 76, 111, 99, 107, 67, 111, 110, 116, 101, 120, 116, 117, 11, 0, 0,
0, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108, 101, 117, 4, 0, 0,
0, 78, 111, 110, 101, 117, 7, 0, 0, 0, 109, 111, 100, 117, 108, 101,
115, 117, 10, 0, 0, 0, 95, 95, 108, 111, 97, 100, 101, 114, 95, 95,
40, 4, 0, 0, 0, 117, 4, 0, 0, 0, 110, 97, 109, 101, 117, 4,
0, 0, 0, 112, 97, 116, 104, 117, 6, 0, 0, 0, 102, 105, 110, 100,
101, 114, 117, 6, 0, 0, 0, 108, 111, 97, 100, 101, 114, 40, 0, 0,
0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111,
122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98,
111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 12, 0, 0, 0, 95, 102,
105, 110, 100, 95, 109, 111, 100, 117, 108, 101, 191, 5, 0, 0, 115, 20,
0, 0, 0, 0, 2, 9, 1, 19, 1, 16, 1, 10, 1, 24, 1, 12,
2, 15, 1, 4, 2, 21, 2, 117, 12, 0, 0, 0, 95, 102, 105, 110,
100, 95, 109, 111, 100, 117, 108, 101, 99, 3, 0, 0, 0, 0, 0, 0,
0, 4, 0, 0, 0, 4, 0, 0, 0, 67, 0, 0, 0, 115, 194, 0,
0, 0, 116, 0, 0, 124, 0, 0, 116, 1, 0, 131, 2, 0, 115, 45,
0, 116, 2, 0, 100, 1, 0, 106, 3, 0, 116, 4, 0, 124, 0, 0,
131, 1, 0, 131, 1, 0, 131, 1, 0, 130, 1, 0, 110, 0, 0, 124,
2, 0, 100, 2, 0, 107, 0, 0, 114, 72, 0, 116, 5, 0, 100, 3,
0, 131, 1, 0, 130, 1, 0, 110, 0, 0, 124, 1, 0, 114, 156, 0,
116, 0, 0, 124, 1, 0, 116, 1, 0, 131, 2, 0, 115, 108, 0, 116,
2, 0, 100, 4, 0, 131, 1, 0, 130, 1, 0, 113, 156, 0, 124, 1,
0, 116, 6, 0, 106, 7, 0, 107, 7, 0, 114, 156, 0, 100, 5, 0,
125, 3, 0, 116, 8, 0, 124, 3, 0, 106, 3, 0, 124, 1, 0, 131,
1, 0, 131, 1, 0, 130, 1, 0, 113, 156, 0, 110, 0, 0, 124, 0,
0, 12, 114, 190, 0, 124, 2, 0, 100, 2, 0, 107, 2, 0, 114, 190,
0, 116, 5, 0, 100, 6, 0, 131, 1, 0, 130, 1, 0, 110, 0, 0,
100, 7, 0, 83, 40, 8, 0, 0, 0, 117, 28, 0, 0, 0, 86, 101,
114, 105, 102, 121, 32, 97, 114, 103, 117, 109, 101, 110, 116, 115, 32, 97,
114, 101, 32, 34, 115, 97, 110, 101, 34, 46, 117, 31, 0, 0, 0, 109,
111, 100, 117, 108, 101, 32, 110, 97, 109, 101, 32, 109, 117, 115, 116, 32,
98, 101, 32, 115, 116, 114, 44, 32, 110, 111, 116, 32, 123, 125, 105, 0,
0, 0, 0, 117, 18, 0, 0, 0, 108, 101, 118, 101, 108, 32, 109, 117,
115, 116, 32, 98, 101, 32, 62, 61, 32, 48, 117, 31, 0, 0, 0, 95,
95, 112, 97, 99, 107, 97, 103, 101, 95, 95, 32, 110, 111, 116, 32, 115,
101, 116, 32, 116, 111, 32, 97, 32, 115, 116, 114, 105, 110, 103, 117, 61,
0, 0, 0, 80, 97, 114, 101, 110, 116, 32, 109, 111, 100, 117, 108, 101,
32, 123, 33, 114, 125, 32, 110, 111, 116, 32, 108, 111, 97, 100, 101, 100,
44, 32, 99, 97, 110, 110, 111, 116, 32, 112, 101, 114, 102, 111, 114, 109,
32, 114, 101, 108, 97, 116, 105, 118, 101, 32, 105, 109, 112, 111, 114, 116,
117, 17, 0, 0, 0, 69, 109, 112, 116, 121, 32, 109, 111, 100, 117, 108,
101, 32, 110, 97, 109, 101, 78, 40, 9, 0, 0, 0, 117, 10, 0, 0,
0, 105, 115, 105, 110, 115, 116, 97, 110, 99, 101, 117, 3, 0, 0, 0,
115, 116, 114, 117, 9, 0, 0, 0, 84, 121, 112, 101, 69, 114, 114, 111,
114, 117, 6, 0, 0, 0, 102, 111, 114, 109, 97, 116, 117, 4, 0, 0,
0, 116, 121, 112, 101, 117, 10, 0, 0, 0, 86, 97, 108, 117, 101, 69,
114, 114, 111, 114, 117, 3, 0, 0, 0, 115, 121, 115, 117, 7, 0, 0,
0, 109, 111, 100, 117, 108, 101, 115, 117, 11, 0, 0, 0, 83, 121, 115,
116, 101, 109, 69, 114, 114, 111, 114, 40, 4, 0, 0, 0, 117, 4, 0,
0, 0, 110, 97, 109, 101, 117, 7, 0, 0, 0, 112, 97, 99, 107, 97,
103, 101, 117, 5, 0, 0, 0, 108, 101, 118, 101, 108, 117, 3, 0, 0,
0, 109, 115, 103, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29,
0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114,
116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62,
117, 13, 0, 0, 0, 95, 115, 97, 110, 105, 116, 121, 95, 99, 104, 101,
99, 107, 208, 5, 0, 0, 115, 24, 0, 0, 0, 0, 2, 15, 1, 30,
1, 12, 1, 15, 1, 6, 1, 15, 1, 15, 1, 15, 1, 6, 2, 27,
1, 19, 1, 117, 13, 0, 0, 0, 95, 115, 97, 110, 105, 116, 121, 95,
99, 104, 101, 99, 107, 117, 20, 0, 0, 0, 78, 111, 32, 109, 111, 100,
117, 108, 101, 32, 110, 97, 109, 101, 100, 32, 123, 33, 114, 125, 99, 2,
0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 27, 0, 0, 0, 67,
0, 0, 0, 115, 12, 2, 0, 0, 100, 0, 0, 125, 2, 0, 124, 0,
0, 106, 1, 0, 100, 1, 0, 131, 1, 0, 100, 2, 0, 25, 125, 3,
0, 124, 3, 0, 114, 178, 0, 124, 3, 0, 116, 2, 0, 106, 3, 0,
107, 7, 0, 114, 62, 0, 116, 4, 0, 124, 1, 0, 124, 3, 0, 131,
2, 0, 1, 110, 0, 0, 124, 0, 0, 116, 2, 0, 106, 3, 0, 107,
6, 0, 114, 88, 0, 116, 2, 0, 106, 3, 0, 124, 0, 0, 25, 83,
116, 2, 0, 106, 3, 0, 124, 3, 0, 25, 125, 4, 0, 121, 13, 0,
124, 4, 0, 106, 5, 0, 125, 2, 0, 87, 113, 178, 0, 4, 116, 6,
0, 107, 10, 0, 114, 174, 0, 1, 1, 1, 116, 7, 0, 100, 3, 0,
23, 106, 8, 0, 124, 0, 0, 124, 3, 0, 131, 2, 0, 125, 5, 0,
116, 9, 0, 124, 5, 0, 100, 4, 0, 124, 0, 0, 131, 1, 1, 130,
1, 0, 89, 113, 178, 0, 88, 110, 0, 0, 116, 10, 0, 124, 0, 0,
124, 2, 0, 131, 2, 0, 125, 6, 0, 124, 6, 0, 100, 0, 0, 107,
8, 0, 114, 250, 0, 116, 9, 0, 116, 7, 0, 106, 8, 0, 124, 0,
0, 131, 1, 0, 100, 4, 0, 124, 0, 0, 131, 1, 1, 125, 7, 0,
100, 10, 0, 124, 7, 0, 95, 12, 0, 124, 7, 0, 130, 1, 0, 110,
47, 0, 124, 0, 0, 116, 2, 0, 106, 3, 0, 107, 7, 0, 114, 41,
1, 124, 6, 0, 106, 13, 0, 124, 0, 0, 131, 1, 0, 1, 116, 14,
0, 100, 5, 0, 124, 0, 0, 124, 6, 0, 131, 3, 0, 1, 110, 0,
0, 116, 2, 0, 106, 3, 0, 124, 0, 0, 25, 125, 8, 0, 124, 3,
0, 114, 105, 1, 116, 2, 0, 106, 3, 0, 124, 3, 0, 25, 125, 4,
0, 116, 15, 0, 124, 4, 0, 124, 0, 0, 106, 1, 0, 100, 1, 0,
131, 1, 0, 100, 6, 0, 25, 124, 8, 0, 131, 3, 0, 1, 110, 0,
0, 116, 16, 0, 124, 8, 0, 100, 7, 0, 100, 0, 0, 131, 3, 0,
100, 0, 0, 107, 8, 0, 114, 212, 1, 121, 59, 0, 124, 8, 0, 106,
17, 0, 124, 8, 0, 95, 18, 0, 116, 19, 0, 124, 8, 0, 100, 8,
0, 131, 2, 0, 115, 187, 1, 124, 8, 0, 106, 18, 0, 106, 1, 0,
100, 1, 0, 131, 1, 0, 100, 2, 0, 25, 124, 8, 0, 95, 18, 0,
110, 0, 0, 87, 113, 212, 1, 4, 116, 6, 0, 107, 10, 0, 114, 208,
1, 1, 1, 1, 89, 113, 212, 1, 88, 110, 0, 0, 116, 19, 0, 124,
8, 0, 100, 9, 0, 131, 2, 0, 115, 8, 2, 121, 13, 0, 124, 6,
0, 124, 8, 0, 95, 20, 0, 87, 113, 8, 2, 4, 116, 6, 0, 107,
10, 0, 114, 4, 2, 1, 1, 1, 89, 113, 8, 2, 88, 110, 0, 0,
124, 8, 0, 83, 40, 11, 0, 0, 0, 78, 117, 1, 0, 0, 0, 46,
105, 0, 0, 0, 0, 117, 21, 0, 0, 0, 59, 32, 123, 125, 32, 105,
115, 32, 110, 111, 116, 32, 97, 32, 112, 97, 99, 107, 97, 103, 101, 117,
4, 0, 0, 0, 110, 97, 109, 101, 117, 18, 0, 0, 0, 105, 109, 112,
111, 114, 116, 32, 123, 33, 114, 125, 32, 35, 32, 123, 33, 114, 125, 105,
2, 0, 0, 0, 117, 11, 0, 0, 0, 95, 95, 112, 97, 99, 107, 97,
103, 101, 95, 95, 117, 8, 0, 0, 0, 95, 95, 112, 97, 116, 104, 95,
95, 117, 10, 0, 0, 0, 95, 95, 108, 111, 97, 100, 101, 114, 95, 95,
84, 40, 21, 0, 0, 0, 117, 4, 0, 0, 0, 78, 111, 110, 101, 117,
10, 0, 0, 0, 114, 112, 97, 114, 116, 105, 116, 105, 111, 110, 117, 3,
0, 0, 0, 115, 121, 115, 117, 7, 0, 0, 0, 109, 111, 100, 117, 108,
101, 115, 117, 25, 0, 0, 0, 95, 99, 97, 108, 108, 95, 119, 105, 116,
104, 95, 102, 114, 97, 109, 101, 115, 95, 114, 101, 109, 111, 118, 101, 100,
117, 8, 0, 0, 0, 95, 95, 112, 97, 116, 104, 95, 95, 117, 14, 0,
0, 0, 65, 116, 116, 114, 105, 98, 117, 116, 101, 69, 114, 114, 111, 114,
117, 8, 0, 0, 0, 95, 69, 82, 82, 95, 77, 83, 71, 117, 6, 0,
0, 0, 102, 111, 114, 109, 97, 116, 117, 11, 0, 0, 0, 73, 109, 112,
111, 114, 116, 69, 114, 114, 111, 114, 117, 12, 0, 0, 0, 95, 102, 105,
110, 100, 95, 109, 111, 100, 117, 108, 101, 117, 4, 0, 0, 0, 84, 114,
117, 101, 117, 10, 0, 0, 0, 95, 110, 111, 116, 95, 102, 111, 117, 110,
100, 117, 11, 0, 0, 0, 108, 111, 97, 100, 95, 109, 111, 100, 117, 108,
101, 117, 16, 0, 0, 0, 95, 118, 101, 114, 98, 111, 115, 101, 95, 109,
101, 115, 115, 97, 103, 101, 117, 7, 0, 0, 0, 115, 101, 116, 97, 116,
116, 114, 117, 7, 0, 0, 0, 103, 101, 116, 97, 116, 116, 114, 117, 8,
0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 11, 0, 0, 0,
95, 95, 112, 97, 99, 107, 97, 103, 101, 95, 95, 117, 7, 0, 0, 0,
104, 97, 115, 97, 116, 116, 114, 117, 10, 0, 0, 0, 95, 95, 108, 111,
97, 100, 101, 114, 95, 95, 40, 9, 0, 0, 0, 117, 4, 0, 0, 0,
110, 97, 109, 101, 117, 7, 0, 0, 0, 105, 109, 112, 111, 114, 116, 95,
117, 4, 0, 0, 0, 112, 97, 116, 104, 117, 6, 0, 0, 0, 112, 97,
114, 101, 110, 116, 117, 13, 0, 0, 0, 112, 97, 114, 101, 110, 116, 95,
109, 111, 100, 117, 108, 101, 117, 3, 0, 0, 0, 109, 115, 103, 117, 6,
0, 0, 0, 108, 111, 97, 100, 101, 114, 117, 3, 0, 0, 0, 101, 120,
99, 117, 6, 0, 0, 0, 109, 111, 100, 117, 108, 101, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 23, 0, 0, 0, 95, 102, 105,
110, 100, 95, 97, 110, 100, 95, 108, 111, 97, 100, 95, 117, 110, 108, 111,
99, 107, 101, 100, 227, 5, 0, 0, 115, 76, 0, 0, 0, 0, 1, 6,
1, 19, 1, 6, 1, 15, 1, 16, 2, 15, 1, 11, 2, 13, 1, 3,
1, 13, 1, 13, 1, 22, 1, 26, 1, 15, 1, 12, 1, 27, 3, 9,
1, 9, 1, 15, 2, 13, 1, 19, 2, 13, 1, 6, 2, 13, 1, 32,
2, 24, 1, 3, 1, 12, 1, 15, 1, 32, 1, 13, 1, 8, 2, 15,
1, 3, 1, 13, 1, 13, 1, 8, 1, 117, 23, 0, 0, 0, 95, 102,
105, 110, 100, 95, 97, 110, 100, 95, 108, 111, 97, 100, 95, 117, 110, 108,
111, 99, 107, 101, 100, 99, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0,
0, 0, 18, 0, 0, 0, 67, 0, 0, 0, 115, 75, 0, 0, 0, 122,
16, 0, 116, 0, 0, 124, 0, 0, 131, 1, 0, 125, 2, 0, 87, 100,
1, 0, 116, 1, 0, 106, 2, 0, 131, 0, 0, 1, 88, 124, 2, 0,
106, 3, 0, 131, 0, 0, 1, 122, 17, 0, 116, 4, 0, 124, 0, 0,
124, 1, 0, 131, 2, 0, 83, 87, 100, 1, 0, 124, 2, 0, 106, 5,
0, 131, 0, 0, 1, 88, 100, 1, 0, 83, 40, 2, 0, 0, 0, 117,
54, 0, 0, 0, 70, 105, 110, 100, 32, 97, 110, 100, 32, 108, 111, 97,
100, 32, 116, 104, 101, 32, 109, 111, 100, 117, 108, 101, 44, 32, 97, 110,
100, 32, 114, 101, 108, 101, 97, 115, 101, 32, 116, 104, 101, 32, 105, 109,
112, 111, 114, 116, 32, 108, 111, 99, 107, 46, 78, 40, 6, 0, 0, 0,
117, 16, 0, 0, 0, 95, 103, 101, 116, 95, 109, 111, 100, 117, 108, 101,
95, 108, 111, 99, 107, 117, 4, 0, 0, 0, 95, 105, 109, 112, 117, 12,
0, 0, 0, 114, 101, 108, 101, 97, 115, 101, 95, 108, 111, 99, 107, 117,
7, 0, 0, 0, 97, 99, 113, 117, 105, 114, 101, 117, 23, 0, 0, 0,
95, 102, 105, 110, 100, 95, 97, 110, 100, 95, 108, 111, 97, 100, 95, 117,
110, 108, 111, 99, 107, 101, 100, 117, 7, 0, 0, 0, 114, 101, 108, 101,
97, 115, 101, 40, 3, 0, 0, 0, 117, 4, 0, 0, 0, 110, 97, 109,
101, 117, 7, 0, 0, 0, 105, 109, 112, 111, 114, 116, 95, 117, 4, 0,
0, 0, 108, 111, 99, 107, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0,
117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112,
111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97,
112, 62, 117, 14, 0, 0, 0, 95, 102, 105, 110, 100, 95, 97, 110, 100,
95, 108, 111, 97, 100, 21, 6, 0, 0, 115, 14, 0, 0, 0, 0, 2,
3, 1, 16, 2, 11, 1, 10, 1, 3, 1, 17, 2, 117, 14, 0, 0,
0, 95, 102, 105, 110, 100, 95, 97, 110, 100, 95, 108, 111, 97, 100, 99,
3, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0,
67, 0, 0, 0, 115, 172, 0, 0, 0, 116, 0, 0, 124, 0, 0, 124,
1, 0, 124, 2, 0, 131, 3, 0, 1, 124, 2, 0, 100, 1, 0, 107,
4, 0, 114, 49, 0, 116, 1, 0, 124, 0, 0, 124, 1, 0, 124, 2,
0, 131, 3, 0, 125, 0, 0, 110, 0, 0, 116, 2, 0, 106, 3, 0,
131, 0, 0, 1, 124, 0, 0, 116, 4, 0, 106, 5, 0, 107, 7, 0,
114, 87, 0, 116, 6, 0, 124, 0, 0, 116, 7, 0, 131, 2, 0, 83,
116, 4, 0, 106, 5, 0, 124, 0, 0, 25, 125, 3, 0, 124, 3, 0,
100, 4, 0, 107, 8, 0, 114, 158, 0, 116, 2, 0, 106, 9, 0, 131,
0, 0, 1, 100, 2, 0, 106, 10, 0, 124, 0, 0, 131, 1, 0, 125,
4, 0, 116, 11, 0, 124, 4, 0, 100, 3, 0, 124, 0, 0, 131, 1,
1, 130, 1, 0, 110, 0, 0, 116, 12, 0, 124, 0, 0, 131, 1, 0,
1, 124, 3, 0, 83, 40, 5, 0, 0, 0, 117, 50, 1, 0, 0, 73,
109, 112, 111, 114, 116, 32, 97, 110, 100, 32, 114, 101, 116, 117, 114, 110,
32, 116, 104, 101, 32, 109, 111, 100, 117, 108, 101, 32, 98, 97, 115, 101,
100, 32, 111, 110, 32, 105, 116, 115, 32, 110, 97, 109, 101, 44, 32, 116,
104, 101, 32, 112, 97, 99, 107, 97, 103, 101, 32, 116, 104, 101, 32, 99,
97, 108, 108, 32, 105, 115, 10, 32, 32, 32, 32, 98, 101, 105, 110, 103,
32, 109, 97, 100, 101, 32, 102, 114, 111, 109, 44, 32, 97, 110, 100, 32,
116, 104, 101, 32, 108, 101, 118, 101, 108, 32, 97, 100, 106, 117, 115, 116,
109, 101, 110, 116, 46, 10, 10, 32, 32, 32, 32, 84, 104, 105, 115, 32,
102, 117, 110, 99, 116, 105, 111, 110, 32, 114, 101, 112, 114, 101, 115, 101,
110, 116, 115, 32, 116, 104, 101, 32, 103, 114, 101, 97, 116, 101, 115, 116,
32, 99, 111, 109, 109, 111, 110, 32, 100, 101, 110, 111, 109, 105, 110, 97,
116, 111, 114, 32, 111, 102, 32, 102, 117, 110, 99, 116, 105, 111, 110, 97,
108, 105, 116, 121, 10, 32, 32, 32, 32, 98, 101, 116, 119, 101, 101, 110,
32, 105, 109, 112, 111, 114, 116, 95, 109, 111, 100, 117, 108, 101, 32, 97,
110, 100, 32, 95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 46, 32, 84,
104, 105, 115, 32, 105, 110, 99, 108, 117, 100, 101, 115, 32, 115, 101, 116,
116, 105, 110, 103, 32, 95, 95, 112, 97, 99, 107, 97, 103, 101, 95, 95,
32, 105, 102, 10, 32, 32, 32, 32, 116, 104, 101, 32, 108, 111, 97, 100,
101, 114, 32, 100, 105, 100, 32, 110, 111, 116, 46, 10, 10, 32, 32, 32,
32, 105, 0, 0, 0, 0, 117, 40, 0, 0, 0, 105, 109, 112, 111, 114,
116, 32, 111, 102, 32, 123, 125, 32, 104, 97, 108, 116, 101, 100, 59, 32,
78, 111, 110, 101, 32, 105, 110, 32, 115, 121, 115, 46, 109, 111, 100, 117,
108, 101, 115, 117, 4, 0, 0, 0, 110, 97, 109, 101, 78, 40, 13, 0,
0, 0, 117, 13, 0, 0, 0, 95, 115, 97, 110, 105, 116, 121, 95, 99,
104, 101, 99, 107, 117, 13, 0, 0, 0, 95, 114, 101, 115, 111, 108, 118,
101, 95, 110, 97, 109, 101, 117, 4, 0, 0, 0, 95, 105, 109, 112, 117,
12, 0, 0, 0, 97, 99, 113, 117, 105, 114, 101, 95, 108, 111, 99, 107,
117, 3, 0, 0, 0, 115, 121, 115, 117, 7, 0, 0, 0, 109, 111, 100,
117, 108, 101, 115, 117, 14, 0, 0, 0, 95, 102, 105, 110, 100, 95, 97,
110, 100, 95, 108, 111, 97, 100, 117, 11, 0, 0, 0, 95, 103, 99, 100,
95, 105, 109, 112, 111, 114, 116, 117, 4, 0, 0, 0, 78, 111, 110, 101,
117, 12, 0, 0, 0, 114, 101, 108, 101, 97, 115, 101, 95, 108, 111, 99,
107, 117, 6, 0, 0, 0, 102, 111, 114, 109, 97, 116, 117, 11, 0, 0,
0, 73, 109, 112, 111, 114, 116, 69, 114, 114, 111, 114, 117, 19, 0, 0,
0, 95, 108, 111, 99, 107, 95, 117, 110, 108, 111, 99, 107, 95, 109, 111,
100, 117, 108, 101, 40, 5, 0, 0, 0, 117, 4, 0, 0, 0, 110, 97,
109, 101, 117, 7, 0, 0, 0, 112, 97, 99, 107, 97, 103, 101, 117, 5,
0, 0, 0, 108, 101, 118, 101, 108, 117, 6, 0, 0, 0, 109, 111, 100,
117, 108, 101, 117, 7, 0, 0, 0, 109, 101, 115, 115, 97, 103, 101, 40,
0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102,
114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46,
95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 11, 0, 0, 0,
95, 103, 99, 100, 95, 105, 109, 112, 111, 114, 116, 34, 6, 0, 0, 115,
28, 0, 0, 0, 0, 9, 16, 1, 12, 1, 21, 1, 10, 1, 15, 1,
13, 1, 13, 1, 12, 1, 10, 1, 6, 1, 9, 1, 21, 1, 10, 1,
117, 11, 0, 0, 0, 95, 103, 99, 100, 95, 105, 109, 112, 111, 114, 116,
99, 3, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 17, 0, 0,
0, 67, 0, 0, 0, 115, 254, 0, 0, 0, 116, 0, 0, 124, 0, 0,
100, 1, 0, 131, 2, 0, 114, 250, 0, 100, 2, 0, 124, 1, 0, 107,
6, 0, 114, 89, 0, 116, 1, 0, 124, 1, 0, 131, 1, 0, 125, 1,
0, 124, 1, 0, 106, 2, 0, 100, 2, 0, 131, 1, 0, 1, 116, 0,
0, 124, 0, 0, 100, 3, 0, 131, 2, 0, 114, 89, 0, 124, 1, 0,
106, 3, 0, 124, 0, 0, 106, 4, 0, 131, 1, 0, 1, 113, 89, 0,
110, 0, 0, 120, 158, 0, 124, 1, 0, 68, 93, 147, 0, 125, 3, 0,
116, 0, 0, 124, 0, 0, 124, 3, 0, 131, 2, 0, 115, 96, 0, 100,
4, 0, 106, 5, 0, 124, 0, 0, 106, 6, 0, 124, 3, 0, 131, 2,
0, 125, 4, 0, 121, 17, 0, 116, 7, 0, 124, 2, 0, 124, 4, 0,
131, 2, 0, 1, 87, 113, 243, 0, 4, 116, 8, 0, 107, 10, 0, 114,
239, 0, 1, 125, 5, 0, 1, 122, 50, 0, 116, 9, 0, 124, 5, 0,
100, 5, 0, 100, 7, 0, 131, 3, 0, 114, 218, 0, 124, 5, 0, 106,
11, 0, 124, 4, 0, 107, 2, 0, 114, 218, 0, 119, 96, 0, 113, 218,
0, 110, 0, 0, 130, 0, 0, 87, 89, 100, 6, 0, 100, 6, 0, 125,
5, 0, 126, 5, 0, 88, 113, 243, 0, 88, 113, 96, 0, 113, 96, 0,
87, 110, 0, 0, 124, 0, 0, 83, 40, 8, 0, 0, 0, 117, 238, 0,
0, 0, 70, 105, 103, 117, 114, 101, 32, 111, 117, 116, 32, 119, 104, 97,
116, 32, 95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 32, 115, 104, 111,
117, 108, 100, 32, 114, 101, 116, 117, 114, 110, 46, 10, 10, 32, 32, 32,
32, 84, 104, 101, 32, 105, 109, 112, 111, 114, 116, 95, 32, 112, 97, 114,
97, 109, 101, 116, 101, 114, 32, 105, 115, 32, 97, 32, 99, 97, 108, 108,
97, 98, 108, 101, 32, 119, 104, 105, 99, 104, 32, 116, 97, 107, 101, 115,
32, 116, 104, 101, 32, 110, 97, 109, 101, 32, 111, 102, 32, 109, 111, 100,
117, 108, 101, 32, 116, 111, 10, 32, 32, 32, 32, 105, 109, 112, 111, 114,
116, 46, 32, 73, 116, 32, 105, 115, 32, 114, 101, 113, 117, 105, 114, 101,
100, 32, 116, 111, 32, 100, 101, 99, 111, 117, 112, 108, 101, 32, 116, 104,
101, 32, 102, 117, 110, 99, 116, 105, 111, 110, 32, 102, 114, 111, 109, 32,
97, 115, 115, 117, 109, 105, 110, 103, 32, 105, 109, 112, 111, 114, 116, 108,
105, 98, 39, 115, 10, 32, 32, 32, 32, 105, 109, 112, 111, 114, 116, 32,
105, 109, 112, 108, 101, 109, 101, 110, 116, 97, 116, 105, 111, 110, 32, 105,
115, 32, 100, 101, 115, 105, 114, 101, 100, 46, 10, 10, 32, 32, 32, 32,
117, 8, 0, 0, 0, 95, 95, 112, 97, 116, 104, 95, 95, 117, 1, 0,
0, 0, 42, 117, 7, 0, 0, 0, 95, 95, 97, 108, 108, 95, 95, 117,
5, 0, 0, 0, 123, 125, 46, 123, 125, 117, 10, 0, 0, 0, 95, 110,
111, 116, 95, 102, 111, 117, 110, 100, 78, 70, 40, 12, 0, 0, 0, 117,
7, 0, 0, 0, 104, 97, 115, 97, 116, 116, 114, 117, 4, 0, 0, 0,
108, 105, 115, 116, 117, 6, 0, 0, 0, 114, 101, 109, 111, 118, 101, 117,
6, 0, 0, 0, 101, 120, 116, 101, 110, 100, 117, 7, 0, 0, 0, 95,
95, 97, 108, 108, 95, 95, 117, 6, 0, 0, 0, 102, 111, 114, 109, 97,
116, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 25,
0, 0, 0, 95, 99, 97, 108, 108, 95, 119, 105, 116, 104, 95, 102, 114,
97, 109, 101, 115, 95, 114, 101, 109, 111, 118, 101, 100, 117, 11, 0, 0,
0, 73, 109, 112, 111, 114, 116, 69, 114, 114, 111, 114, 117, 7, 0, 0,
0, 103, 101, 116, 97, 116, 116, 114, 117, 5, 0, 0, 0, 70, 97, 108,
115, 101, 117, 4, 0, 0, 0, 110, 97, 109, 101, 40, 6, 0, 0, 0,
117, 6, 0, 0, 0, 109, 111, 100, 117, 108, 101, 117, 8, 0, 0, 0,
102, 114, 111, 109, 108, 105, 115, 116, 117, 7, 0, 0, 0, 105, 109, 112,
111, 114, 116, 95, 117, 1, 0, 0, 0, 120, 117, 9, 0, 0, 0, 102,
114, 111, 109, 95, 110, 97, 109, 101, 117, 3, 0, 0, 0, 101, 120, 99,
40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60,
102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98,
46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 16, 0, 0,
0, 95, 104, 97, 110, 100, 108, 101, 95, 102, 114, 111, 109, 108, 105, 115,
116, 58, 6, 0, 0, 115, 34, 0, 0, 0, 0, 10, 15, 1, 12, 1,
12, 1, 13, 1, 15, 1, 22, 1, 13, 1, 15, 1, 21, 1, 3, 1,
17, 1, 18, 6, 18, 1, 15, 1, 9, 1, 32, 1, 117, 16, 0, 0,
0, 95, 104, 97, 110, 100, 108, 101, 95, 102, 114, 111, 109, 108, 105, 115,
116, 99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0,
0, 0, 67, 0, 0, 0, 115, 78, 0, 0, 0, 124, 0, 0, 106, 0,
0, 100, 1, 0, 131, 1, 0, 125, 1, 0, 124, 1, 0, 100, 6, 0,
107, 8, 0, 114, 74, 0, 124, 0, 0, 100, 2, 0, 25, 125, 1, 0,
100, 3, 0, 124, 0, 0, 107, 7, 0, 114, 74, 0, 124, 1, 0, 106,
2, 0, 100, 4, 0, 131, 1, 0, 100, 5, 0, 25, 125, 1, 0, 113,
74, 0, 110, 0, 0, 124, 1, 0, 83, 40, 7, 0, 0, 0, 117, 167,
0, 0, 0, 67, 97, 108, 99, 117, 108, 97, 116, 101, 32, 119, 104, 97,
116, 32, 95, 95, 112, 97, 99, 107, 97, 103, 101, 95, 95, 32, 115, 104,
111, 117, 108, 100, 32, 98, 101, 46, 10, 10, 32, 32, 32, 32, 95, 95,
112, 97, 99, 107, 97, 103, 101, 95, 95, 32, 105, 115, 32, 110, 111, 116,
32, 103, 117, 97, 114, 97, 110, 116, 101, 101, 100, 32, 116, 111, 32, 98,
101, 32, 100, 101, 102, 105, 110, 101, 100, 32, 111, 114, 32, 99, 111, 117,
108, 100, 32, 98, 101, 32, 115, 101, 116, 32, 116, 111, 32, 78, 111, 110,
101, 10, 32, 32, 32, 32, 116, 111, 32, 114, 101, 112, 114, 101, 115, 101,
110, 116, 32, 116, 104, 97, 116, 32, 105, 116, 115, 32, 112, 114, 111, 112,
101, 114, 32, 118, 97, 108, 117, 101, 32, 105, 115, 32, 117, 110, 107, 110,
111, 119, 110, 46, 10, 10, 32, 32, 32, 32, 117, 11, 0, 0, 0, 95,
95, 112, 97, 99, 107, 97, 103, 101, 95, 95, 117, 8, 0, 0, 0, 95,
95, 110, 97, 109, 101, 95, 95, 117, 8, 0, 0, 0, 95, 95, 112, 97,
116, 104, 95, 95, 117, 1, 0, 0, 0, 46, 105, 0, 0, 0, 0, 78,
40, 3, 0, 0, 0, 117, 3, 0, 0, 0, 103, 101, 116, 117, 4, 0,
0, 0, 78, 111, 110, 101, 117, 10, 0, 0, 0, 114, 112, 97, 114, 116,
105, 116, 105, 111, 110, 40, 2, 0, 0, 0, 117, 7, 0, 0, 0, 103,
108, 111, 98, 97, 108, 115, 117, 7, 0, 0, 0, 112, 97, 99, 107, 97,
103, 101, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0,
0, 60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108,
105, 98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 17,
0, 0, 0, 95, 99, 97, 108, 99, 95, 95, 95, 112, 97, 99, 107, 97,
103, 101, 95, 95, 92, 6, 0, 0, 115, 12, 0, 0, 0, 0, 7, 15,
1, 12, 1, 10, 1, 12, 1, 25, 1, 117, 17, 0, 0, 0, 95, 99,
97, 108, 99, 95, 95, 95, 112, 97, 99, 107, 97, 103, 101, 95, 95, 99,
0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0,
67, 0, 0, 0, 115, 55, 0, 0, 0, 116, 0, 0, 116, 1, 0, 106,
2, 0, 131, 0, 0, 102, 2, 0, 125, 0, 0, 116, 3, 0, 116, 4,
0, 102, 2, 0, 125, 1, 0, 116, 5, 0, 116, 6, 0, 102, 2, 0,
125, 2, 0, 124, 0, 0, 124, 1, 0, 124, 2, 0, 103, 3, 0, 83,
40, 1, 0, 0, 0, 117, 95, 0, 0, 0, 82, 101, 116, 117, 114, 110,
115, 32, 97, 32, 108, 105, 115, 116, 32, 111, 102, 32, 102, 105, 108, 101,
45, 98, 97, 115, 101, 100, 32, 109, 111, 100, 117, 108, 101, 32, 108, 111,
97, 100, 101, 114, 115, 46, 10, 10, 32, 32, 32, 32, 69, 97, 99, 104,
32, 105, 116, 101, 109, 32, 105, 115, 32, 97, 32, 116, 117, 112, 108, 101,
32, 40, 108, 111, 97, 100, 101, 114, 44, 32, 115, 117, 102, 102, 105, 120,
101, 115, 41, 46, 10, 32, 32, 32, 32, 40, 7, 0, 0, 0, 117, 19,
0, 0, 0, 69, 120, 116, 101, 110, 115, 105, 111, 110, 70, 105, 108, 101,
76, 111, 97, 100, 101, 114, 117, 4, 0, 0, 0, 95, 105, 109, 112, 117,
18, 0, 0, 0, 101, 120, 116, 101, 110, 115, 105, 111, 110, 95, 115, 117,
102, 102, 105, 120, 101, 115, 117, 16, 0, 0, 0, 83, 111, 117, 114, 99,
101, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 117, 15, 0, 0, 0,
83, 79, 85, 82, 67, 69, 95, 83, 85, 70, 70, 73, 88, 69, 83, 117,
20, 0, 0, 0, 83, 111, 117, 114, 99, 101, 108, 101, 115, 115, 70, 105,
108, 101, 76, 111, 97, 100, 101, 114, 117, 17, 0, 0, 0, 66, 89, 84,
69, 67, 79, 68, 69, 95, 83, 85, 70, 70, 73, 88, 69, 83, 40, 3,
0, 0, 0, 117, 10, 0, 0, 0, 101, 120, 116, 101, 110, 115, 105, 111,
110, 115, 117, 6, 0, 0, 0, 115, 111, 117, 114, 99, 101, 117, 8, 0,
0, 0, 98, 121, 116, 101, 99, 111, 100, 101, 40, 0, 0, 0, 0, 40,
0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110,
32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116,
115, 116, 114, 97, 112, 62, 117, 27, 0, 0, 0, 95, 103, 101, 116, 95,
115, 117, 112, 112, 111, 114, 116, 101, 100, 95, 102, 105, 108, 101, 95, 108,
111, 97, 100, 101, 114, 115, 107, 6, 0, 0, 115, 8, 0, 0, 0, 0,
5, 18, 1, 12, 1, 12, 1, 117, 27, 0, 0, 0, 95, 103, 101, 116,
95, 115, 117, 112, 112, 111, 114, 116, 101, 100, 95, 102, 105, 108, 101, 95,
108, 111, 97, 100, 101, 114, 115, 99, 5, 0, 0, 0, 0, 0, 0, 0,
9, 0, 0, 0, 5, 0, 0, 0, 67, 0, 0, 0, 115, 227, 0, 0,
0, 124, 4, 0, 100, 1, 0, 107, 2, 0, 114, 27, 0, 116, 0, 0,
124, 0, 0, 131, 1, 0, 125, 5, 0, 110, 54, 0, 124, 1, 0, 100,
3, 0, 107, 9, 0, 114, 45, 0, 124, 1, 0, 110, 3, 0, 105, 0,
0, 125, 6, 0, 116, 2, 0, 124, 6, 0, 131, 1, 0, 125, 7, 0,
116, 0, 0, 124, 0, 0, 124, 7, 0, 124, 4, 0, 131, 3, 0, 125,
5, 0, 124, 3, 0, 115, 207, 0, 124, 4, 0, 100, 1, 0, 107, 2,
0, 114, 122, 0, 116, 0, 0, 124, 0, 0, 106, 3, 0, 100, 2, 0,
131, 1, 0, 100, 1, 0, 25, 131, 1, 0, 83, 124, 0, 0, 115, 132,
0, 124, 5, 0, 83, 116, 4, 0, 124, 0, 0, 131, 1, 0, 116, 4,
0, 124, 0, 0, 106, 3, 0, 100, 2, 0, 131, 1, 0, 100, 1, 0,
25, 131, 1, 0, 24, 125, 8, 0, 116, 5, 0, 106, 6, 0, 124, 5,
0, 106, 7, 0, 100, 3, 0, 116, 4, 0, 124, 5, 0, 106, 7, 0,
131, 1, 0, 124, 8, 0, 24, 133, 2, 0, 25, 25, 83, 110, 16, 0,
116, 8, 0, 124, 5, 0, 124, 3, 0, 116, 0, 0, 131, 3, 0, 83,
100, 3, 0, 83, 40, 4, 0, 0, 0, 117, 214, 1, 0, 0, 73, 109,
112, 111, 114, 116, 32, 97, 32, 109, 111, 100, 117, 108, 101, 46, 10, 10,
32, 32, 32, 32, 84, 104, 101, 32, 39, 103, 108, 111, 98, 97, 108, 115,
39, 32, 97, 114, 103, 117, 109, 101, 110, 116, 32, 105, 115, 32, 117, 115,
101, 100, 32, 116, 111, 32, 105, 110, 102, 101, 114, 32, 119, 104, 101, 114,
101, 32, 116, 104, 101, 32, 105, 109, 112, 111, 114, 116, 32, 105, 115, 32,
111, 99, 99, 117, 114, 105, 110, 103, 32, 102, 114, 111, 109, 10, 32, 32,
32, 32, 116, 111, 32, 104, 97, 110, 100, 108, 101, 32, 114, 101, 108, 97,
116, 105, 118, 101, 32, 105, 109, 112, 111, 114, 116, 115, 46, 32, 84, 104,
101, 32, 39, 108, 111, 99, 97, 108, 115, 39, 32, 97, 114, 103, 117, 109,
101, 110, 116, 32, 105, 115, 32, 105, 103, 110, 111, 114, 101, 100, 46, 32,
84, 104, 101, 10, 32, 32, 32, 32, 39, 102, 114, 111, 109, 108, 105, 115,
116, 39, 32, 97, 114, 103, 117, 109, 101, 110, 116, 32, 115, 112, 101, 99,
105, 102, 105, 101, 115, 32, 119, 104, 97, 116, 32, 115, 104, 111, 117, 108,
100, 32, 101, 120, 105, 115, 116, 32, 97, 115, 32, 97, 116, 116, 114, 105,
98, 117, 116, 101, 115, 32, 111, 110, 32, 116, 104, 101, 32, 109, 111, 100,
117, 108, 101, 10, 32, 32, 32, 32, 98, 101, 105, 110, 103, 32, 105, 109,
112, 111, 114, 116, 101, 100, 32, 40, 101, 46, 103, 46, 32, 96, 96, 102,
114, 111, 109, 32, 109, 111, 100, 117, 108, 101, 32, 105, 109, 112, 111, 114,
116, 32, 60, 102, 114, 111, 109, 108, 105, 115, 116, 62, 96, 96, 41, 46,
32, 32, 84, 104, 101, 32, 39, 108, 101, 118, 101, 108, 39, 10, 32, 32,
32, 32, 97, 114, 103, 117, 109, 101, 110, 116, 32, 114, 101, 112, 114, 101,
115, 101, 110, 116, 115, 32, 116, 104, 101, 32, 112, 97, 99, 107, 97, 103,
101, 32, 108, 111, 99, 97, 116, 105, 111, 110, 32, 116, 111, 32, 105, 109,
112, 111, 114, 116, 32, 102, 114, 111, 109, 32, 105, 110, 32, 97, 32, 114,
101, 108, 97, 116, 105, 118, 101, 10, 32, 32, 32, 32, 105, 109, 112, 111,
114, 116, 32, 40, 101, 46, 103, 46, 32, 96, 96, 102, 114, 111, 109, 32,
46, 46, 112, 107, 103, 32, 105, 109, 112, 111, 114, 116, 32, 109, 111, 100,
96, 96, 32, 119, 111, 117, 108, 100, 32, 104, 97, 118, 101, 32, 97, 32,
39, 108, 101, 118, 101, 108, 39, 32, 111, 102, 32, 50, 41, 46, 10, 10,
32, 32, 32, 32, 105, 0, 0, 0, 0, 117, 1, 0, 0, 0, 46, 78,
40, 9, 0, 0, 0, 117, 11, 0, 0, 0, 95, 103, 99, 100, 95, 105,
109, 112, 111, 114, 116, 117, 4, 0, 0, 0, 78, 111, 110, 101, 117, 17,
0, 0, 0, 95, 99, 97, 108, 99, 95, 95, 95, 112, 97, 99, 107, 97,
103, 101, 95, 95, 117, 9, 0, 0, 0, 112, 97, 114, 116, 105, 116, 105,
111, 110, 117, 3, 0, 0, 0, 108, 101, 110, 117, 3, 0, 0, 0, 115,
121, 115, 117, 7, 0, 0, 0, 109, 111, 100, 117, 108, 101, 115, 117, 8,
0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 16, 0, 0, 0,
95, 104, 97, 110, 100, 108, 101, 95, 102, 114, 111, 109, 108, 105, 115, 116,
40, 9, 0, 0, 0, 117, 4, 0, 0, 0, 110, 97, 109, 101, 117, 7,
0, 0, 0, 103, 108, 111, 98, 97, 108, 115, 117, 6, 0, 0, 0, 108,
111, 99, 97, 108, 115, 117, 8, 0, 0, 0, 102, 114, 111, 109, 108, 105,
115, 116, 117, 5, 0, 0, 0, 108, 101, 118, 101, 108, 117, 6, 0, 0,
0, 109, 111, 100, 117, 108, 101, 117, 8, 0, 0, 0, 103, 108, 111, 98,
97, 108, 115, 95, 117, 7, 0, 0, 0, 112, 97, 99, 107, 97, 103, 101,
117, 7, 0, 0, 0, 99, 117, 116, 95, 111, 102, 102, 40, 0, 0, 0,
0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122,
101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111,
111, 116, 115, 116, 114, 97, 112, 62, 117, 10, 0, 0, 0, 95, 95, 105,
109, 112, 111, 114, 116, 95, 95, 118, 6, 0, 0, 115, 26, 0, 0, 0,
0, 11, 12, 1, 15, 2, 24, 1, 12, 1, 18, 1, 6, 3, 12, 1,
23, 1, 6, 1, 4, 4, 35, 3, 40, 2, 117, 10, 0, 0, 0, 95,
95, 105, 109, 112, 111, 114, 116, 95, 95, 99, 2, 0, 0, 0, 0, 0,
0, 0, 16, 0, 0, 0, 13, 0, 0, 0, 67, 0, 0, 0, 115, 24,
3, 0, 0, 124, 1, 0, 97, 0, 0, 124, 0, 0, 97, 1, 0, 116,
1, 0, 106, 2, 0, 106, 3, 0, 114, 33, 0, 116, 4, 0, 97, 5,
0, 110, 6, 0, 116, 6, 0, 97, 5, 0, 116, 7, 0, 116, 1, 0,
131, 1, 0, 125, 2, 0, 120, 119, 0, 116, 1, 0, 106, 8, 0, 106,
9, 0, 131, 0, 0, 68, 93, 102, 0, 92, 2, 0, 125, 3, 0, 125,
4, 0, 116, 10, 0, 124, 4, 0, 124, 2, 0, 131, 2, 0, 114, 67,
0, 116, 11, 0, 124, 4, 0, 100, 1, 0, 131, 2, 0, 115, 169, 0,
124, 3, 0, 116, 1, 0, 106, 12, 0, 107, 6, 0, 114, 136, 0, 116,
13, 0, 124, 4, 0, 95, 14, 0, 113, 166, 0, 116, 0, 0, 106, 15,
0, 124, 3, 0, 131, 1, 0, 114, 166, 0, 116, 16, 0, 124, 4, 0,
95, 14, 0, 113, 166, 0, 113, 169, 0, 113, 67, 0, 113, 67, 0, 87,
116, 1, 0, 106, 8, 0, 116, 17, 0, 25, 125, 5, 0, 120, 76, 0,
100, 28, 0, 68, 93, 68, 0, 125, 6, 0, 124, 6, 0, 116, 1, 0,
106, 8, 0, 107, 7, 0, 114, 232, 0, 116, 13, 0, 106, 18, 0, 124,
6, 0, 131, 1, 0, 125, 7, 0, 110, 13, 0, 116, 1, 0, 106, 8,
0, 124, 6, 0, 25, 125, 7, 0, 116, 19, 0, 124, 5, 0, 124, 6,
0, 124, 7, 0, 131, 3, 0, 1, 113, 193, 0, 87, 100, 6, 0, 100,
7, 0, 103, 1, 0, 102, 2, 0, 100, 8, 0, 100, 9, 0, 100, 7,
0, 103, 2, 0, 102, 2, 0, 100, 10, 0, 100, 9, 0, 100, 7, 0,
103, 2, 0, 102, 2, 0, 102, 3, 0, 125, 8, 0, 120, 189, 0, 124,
8, 0, 68, 93, 169, 0, 92, 2, 0, 125, 9, 0, 125, 10, 0, 116,
20, 0, 100, 11, 0, 100, 12, 0, 132, 0, 0, 124, 10, 0, 68, 131,
1, 0, 131, 1, 0, 115, 107, 1, 116, 21, 0, 130, 1, 0, 124, 10,
0, 100, 13, 0, 25, 125, 11, 0, 124, 9, 0, 116, 1, 0, 106, 8,
0, 107, 6, 0, 114, 149, 1, 116, 1, 0, 106, 8, 0, 124, 9, 0,
25, 125, 12, 0, 80, 113, 64, 1, 121, 60, 0, 116, 13, 0, 106, 18,
0, 124, 9, 0, 131, 1, 0, 125, 12, 0, 124, 9, 0, 100, 10, 0,
107, 2, 0, 114, 207, 1, 100, 14, 0, 116, 1, 0, 106, 22, 0, 107,
6, 0, 114, 207, 1, 124, 10, 0, 100, 15, 0, 25, 125, 11, 0, 110,
0, 0, 80, 87, 113, 64, 1, 4, 116, 23, 0, 107, 10, 0, 114, 232,
1, 1, 1, 1, 119, 64, 1, 89, 113, 64, 1, 88, 113, 64, 1, 87,
116, 23, 0, 100, 16, 0, 131, 1, 0, 130, 1, 0, 121, 19, 0, 116,
13, 0, 106, 18, 0, 100, 17, 0, 131, 1, 0, 125, 13, 0, 87, 110,
24, 0, 4, 116, 23, 0, 107, 10, 0, 114, 38, 2, 1, 1, 1, 100,
27, 0, 125, 13, 0, 89, 110, 1, 0, 88, 116, 13, 0, 106, 18, 0,
100, 18, 0, 131, 1, 0, 125, 14, 0, 124, 9, 0, 100, 8, 0, 107,
2, 0, 114, 100, 2, 116, 13, 0, 106, 18, 0, 100, 19, 0, 131, 1,
0, 125, 15, 0, 116, 19, 0, 124, 5, 0, 100, 20, 0, 124, 15, 0,
131, 3, 0, 1, 110, 0, 0, 116, 19, 0, 124, 5, 0, 100, 21, 0,
124, 12, 0, 131, 3, 0, 1, 116, 19, 0, 124, 5, 0, 100, 17, 0,
124, 13, 0, 131, 3, 0, 1, 116, 19, 0, 124, 5, 0, 100, 18, 0,
124, 14, 0, 131, 3, 0, 1, 116, 19, 0, 124, 5, 0, 100, 22, 0,
124, 11, 0, 131, 3, 0, 1, 116, 19, 0, 124, 5, 0, 100, 23, 0,
116, 25, 0, 124, 10, 0, 131, 1, 0, 131, 3, 0, 1, 116, 19, 0,
124, 5, 0, 100, 24, 0, 116, 26, 0, 131, 0, 0, 131, 3, 0, 1,
116, 27, 0, 106, 28, 0, 116, 0, 0, 106, 29, 0, 131, 0, 0, 131,
1, 0, 1, 124, 9, 0, 100, 8, 0, 107, 2, 0, 114, 20, 3, 116,
30, 0, 106, 31, 0, 100, 25, 0, 131, 1, 0, 1, 100, 26, 0, 116,
27, 0, 107, 6, 0, 114, 20, 3, 100, 29, 0, 116, 33, 0, 95, 34,
0, 113, 20, 3, 110, 0, 0, 100, 27, 0, 83, 40, 30, 0, 0, 0,
117, 250, 0, 0, 0, 83, 101, 116, 117, 112, 32, 105, 109, 112, 111, 114,
116, 108, 105, 98, 32, 98, 121, 32, 105, 109, 112, 111, 114, 116, 105, 110,
103, 32, 110, 101, 101, 100, 101, 100, 32, 98, 117, 105, 108, 116, 45, 105,
110, 32, 109, 111, 100, 117, 108, 101, 115, 32, 97, 110, 100, 32, 105, 110,
106, 101, 99, 116, 105, 110, 103, 32, 116, 104, 101, 109, 10, 32, 32, 32,
32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 103, 108, 111, 98, 97, 108,
32, 110, 97, 109, 101, 115, 112, 97, 99, 101, 46, 10, 10, 32, 32, 32,
32, 65, 115, 32, 115, 121, 115, 32, 105, 115, 32, 110, 101, 101, 100, 101,
100, 32, 102, 111, 114, 32, 115, 121, 115, 46, 109, 111, 100, 117, 108, 101,
115, 32, 97, 99, 99, 101, 115, 115, 32, 97, 110, 100, 32, 95, 105, 109,
112, 32, 105, 115, 32, 110, 101, 101, 100, 101, 100, 32, 116, 111, 32, 108,
111, 97, 100, 32, 98, 117, 105, 108, 116, 45, 105, 110, 10, 32, 32, 32,
32, 109, 111, 100, 117, 108, 101, 115, 44, 32, 116, 104, 111, 115, 101, 32,
116, 119, 111, 32, 109, 111, 100, 117, 108, 101, 115, 32, 109, 117, 115, 116,
32, 98, 101, 32, 101, 120, 112, 108, 105, 99, 105, 116, 108, 121, 32, 112,
97, 115, 115, 101, 100, 32, 105, 110, 46, 10, 10, 32, 32, 32, 32, 117,
10, 0, 0, 0, 95, 95, 108, 111, 97, 100, 101, 114, 95, 95, 117, 3,
0, 0, 0, 95, 105, 111, 117, 9, 0, 0, 0, 95, 119, 97, 114, 110,
105, 110, 103, 115, 117, 8, 0, 0, 0, 98, 117, 105, 108, 116, 105, 110,
115, 117, 7, 0, 0, 0, 109, 97, 114, 115, 104, 97, 108, 117, 5, 0,
0, 0, 112, 111, 115, 105, 120, 117, 1, 0, 0, 0, 47, 117, 2, 0,
0, 0, 110, 116, 117, 1, 0, 0, 0, 92, 117, 3, 0, 0, 0, 111,
115, 50, 99, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3,
0, 0, 0, 115, 0, 0, 0, 115, 33, 0, 0, 0, 124, 0, 0, 93,
23, 0, 125, 1, 0, 116, 0, 0, 124, 1, 0, 131, 1, 0, 100, 0,
0, 107, 2, 0, 86, 1, 113, 3, 0, 100, 1, 0, 83, 40, 2, 0,
0, 0, 105, 1, 0, 0, 0, 78, 40, 1, 0, 0, 0, 117, 3, 0,
0, 0, 108, 101, 110, 40, 2, 0, 0, 0, 117, 2, 0, 0, 0, 46,
48, 117, 3, 0, 0, 0, 115, 101, 112, 40, 0, 0, 0, 0, 40, 0,
0, 0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32,
105, 109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115,
116, 114, 97, 112, 62, 117, 9, 0, 0, 0, 60, 103, 101, 110, 101, 120,
112, 114, 62, 191, 6, 0, 0, 115, 2, 0, 0, 0, 6, 0, 117, 25,
0, 0, 0, 95, 115, 101, 116, 117, 112, 46, 60, 108, 111, 99, 97, 108,
115, 62, 46, 60, 103, 101, 110, 101, 120, 112, 114, 62, 105, 0, 0, 0,
0, 117, 7, 0, 0, 0, 69, 77, 88, 32, 71, 67, 67, 105, 1, 0,
0, 0, 117, 30, 0, 0, 0, 105, 109, 112, 111, 114, 116, 108, 105, 98,
32, 114, 101, 113, 117, 105, 114, 101, 115, 32, 112, 111, 115, 105, 120, 32,
111, 114, 32, 110, 116, 117, 7, 0, 0, 0, 95, 116, 104, 114, 101, 97,
100, 117, 8, 0, 0, 0, 95, 119, 101, 97, 107, 114, 101, 102, 117, 6,
0, 0, 0, 119, 105, 110, 114, 101, 103, 117, 7, 0, 0, 0, 95, 119,
105, 110, 114, 101, 103, 117, 3, 0, 0, 0, 95, 111, 115, 117, 8, 0,
0, 0, 112, 97, 116, 104, 95, 115, 101, 112, 117, 15, 0, 0, 0, 112,
97, 116, 104, 95, 115, 101, 112, 97, 114, 97, 116, 111, 114, 115, 117, 11,
0, 0, 0, 95, 114, 101, 108, 97, 120, 95, 99, 97, 115, 101, 117, 4,
0, 0, 0, 46, 112, 121, 119, 117, 6, 0, 0, 0, 95, 100, 46, 112,
121, 100, 78, 40, 4, 0, 0, 0, 117, 3, 0, 0, 0, 95, 105, 111,
117, 9, 0, 0, 0, 95, 119, 97, 114, 110, 105, 110, 103, 115, 117, 8,
0, 0, 0, 98, 117, 105, 108, 116, 105, 110, 115, 117, 7, 0, 0, 0,
109, 97, 114, 115, 104, 97, 108, 84, 40, 35, 0, 0, 0, 117, 4, 0,
0, 0, 95, 105, 109, 112, 117, 3, 0, 0, 0, 115, 121, 115, 117, 5,
0, 0, 0, 102, 108, 97, 103, 115, 117, 8, 0, 0, 0, 111, 112, 116,
105, 109, 105, 122, 101, 117, 27, 0, 0, 0, 79, 80, 84, 73, 77, 73,
90, 69, 68, 95, 66, 89, 84, 69, 67, 79, 68, 69, 95, 83, 85, 70,
70, 73, 88, 69, 83, 117, 17, 0, 0, 0, 66, 89, 84, 69, 67, 79,
68, 69, 95, 83, 85, 70, 70, 73, 88, 69, 83, 117, 23, 0, 0, 0,
68, 69, 66, 85, 71, 95, 66, 89, 84, 69, 67, 79, 68, 69, 95, 83,
85, 70, 70, 73, 88, 69, 83, 117, 4, 0, 0, 0, 116, 121, 112, 101,
117, 7, 0, 0, 0, 109, 111, 100, 117, 108, 101, 115, 117, 5, 0, 0,
0, 105, 116, 101, 109, 115, 117, 10, 0, 0, 0, 105, 115, 105, 110, 115,
116, 97, 110, 99, 101, 117, 7, 0, 0, 0, 104, 97, 115, 97, 116, 116,
114, 117, 20, 0, 0, 0, 98, 117, 105, 108, 116, 105, 110, 95, 109, 111,
100, 117, 108, 101, 95, 110, 97, 109, 101, 115, 117, 15, 0, 0, 0, 66,
117, 105, 108, 116, 105, 110, 73, 109, 112, 111, 114, 116, 101, 114, 117, 10,
0, 0, 0, 95, 95, 108, 111, 97, 100, 101, 114, 95, 95, 117, 9, 0,
0, 0, 105, 115, 95, 102, 114, 111, 122, 101, 110, 117, 14, 0, 0, 0,
70, 114, 111, 122, 101, 110, 73, 109, 112, 111, 114, 116, 101, 114, 117, 8,
0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 11, 0, 0, 0,
108, 111, 97, 100, 95, 109, 111, 100, 117, 108, 101, 117, 7, 0, 0, 0,
115, 101, 116, 97, 116, 116, 114, 117, 3, 0, 0, 0, 97, 108, 108, 117,
14, 0, 0, 0, 65, 115, 115, 101, 114, 116, 105, 111, 110, 69, 114, 114,
111, 114, 117, 7, 0, 0, 0, 118, 101, 114, 115, 105, 111, 110, 117, 11,
0, 0, 0, 73, 109, 112, 111, 114, 116, 69, 114, 114, 111, 114, 117, 4,
0, 0, 0, 78, 111, 110, 101, 117, 3, 0, 0, 0, 115, 101, 116, 117,
16, 0, 0, 0, 95, 109, 97, 107, 101, 95, 114, 101, 108, 97, 120, 95,
99, 97, 115, 101, 117, 18, 0, 0, 0, 69, 88, 84, 69, 78, 83, 73,
79, 78, 95, 83, 85, 70, 70, 73, 88, 69, 83, 117, 6, 0, 0, 0,
101, 120, 116, 101, 110, 100, 117, 18, 0, 0, 0, 101, 120, 116, 101, 110,
115, 105, 111, 110, 95, 115, 117, 102, 102, 105, 120, 101, 115, 117, 15, 0,
0, 0, 83, 79, 85, 82, 67, 69, 95, 83, 85, 70, 70, 73, 88, 69,
83, 117, 6, 0, 0, 0, 97, 112, 112, 101, 110, 100, 117, 4, 0, 0,
0, 84, 114, 117, 101, 117, 21, 0, 0, 0, 87, 105, 110, 100, 111, 119,
115, 82, 101, 103, 105, 115, 116, 114, 121, 70, 105, 110, 100, 101, 114, 117,
11, 0, 0, 0, 68, 69, 66, 85, 71, 95, 66, 85, 73, 76, 68, 40,
16, 0, 0, 0, 117, 10, 0, 0, 0, 115, 121, 115, 95, 109, 111, 100,
117, 108, 101, 117, 11, 0, 0, 0, 95, 105, 109, 112, 95, 109, 111, 100,
117, 108, 101, 117, 11, 0, 0, 0, 109, 111, 100, 117, 108, 101, 95, 116,
121, 112, 101, 117, 4, 0, 0, 0, 110, 97, 109, 101, 117, 6, 0, 0,
0, 109, 111, 100, 117, 108, 101, 117, 11, 0, 0, 0, 115, 101, 108, 102,
95, 109, 111, 100, 117, 108, 101, 117, 12, 0, 0, 0, 98, 117, 105, 108,
116, 105, 110, 95, 110, 97, 109, 101, 117, 14, 0, 0, 0, 98, 117, 105,
108, 116, 105, 110, 95, 109, 111, 100, 117, 108, 101, 117, 10, 0, 0, 0,
111, 115, 95, 100, 101, 116, 97, 105, 108, 115, 117, 10, 0, 0, 0, 98,
117, 105, 108, 116, 105, 110, 95, 111, 115, 117, 15, 0, 0, 0, 112, 97,
116, 104, 95, 115, 101, 112, 97, 114, 97, 116, 111, 114, 115, 117, 8, 0,
0, 0, 112, 97, 116, 104, 95, 115, 101, 112, 117, 9, 0, 0, 0, 111,
115, 95, 109, 111, 100, 117, 108, 101, 117, 13, 0, 0, 0, 116, 104, 114,
101, 97, 100, 95, 109, 111, 100, 117, 108, 101, 117, 14, 0, 0, 0, 119,
101, 97, 107, 114, 101, 102, 95, 109, 111, 100, 117, 108, 101, 117, 13, 0,
0, 0, 119, 105, 110, 114, 101, 103, 95, 109, 111, 100, 117, 108, 101, 40,
0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0, 60, 102,
114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105, 98, 46,
95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 6, 0, 0, 0,
95, 115, 101, 116, 117, 112, 154, 6, 0, 0, 115, 106, 0, 0, 0, 0,
9, 6, 1, 6, 2, 12, 1, 9, 2, 6, 2, 12, 1, 28, 1, 15,
1, 15, 1, 15, 1, 12, 1, 15, 1, 22, 2, 13, 1, 13, 1, 15,
1, 18, 2, 13, 1, 20, 2, 48, 1, 19, 2, 31, 1, 10, 1, 15,
1, 13, 1, 4, 2, 3, 1, 15, 2, 27, 1, 13, 1, 5, 1, 13,
1, 12, 2, 12, 2, 3, 1, 19, 1, 13, 2, 11, 1, 15, 2, 12,
1, 15, 1, 19, 2, 16, 1, 16, 1, 16, 1, 16, 1, 22, 2, 19,
1, 19, 1, 12, 1, 13, 1, 12, 1, 117, 6, 0, 0, 0, 95, 115,
101, 116, 117, 112, 99, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0,
0, 3, 0, 0, 0, 67, 0, 0, 0, 115, 136, 0, 0, 0, 116, 0,
0, 124, 0, 0, 124, 1, 0, 131, 2, 0, 1, 116, 1, 0, 131, 0,
0, 125, 2, 0, 116, 2, 0, 106, 3, 0, 106, 4, 0, 116, 5, 0,
106, 6, 0, 124, 2, 0, 140, 0, 0, 103, 1, 0, 131, 1, 0, 1,
116, 2, 0, 106, 7, 0, 106, 8, 0, 116, 9, 0, 131, 1, 0, 1,
116, 2, 0, 106, 7, 0, 106, 8, 0, 116, 10, 0, 131, 1, 0, 1,
116, 11, 0, 106, 12, 0, 100, 1, 0, 107, 2, 0, 114, 116, 0, 116,
2, 0, 106, 7, 0, 106, 8, 0, 116, 13, 0, 131, 1, 0, 1, 110,
0, 0, 116, 2, 0, 106, 7, 0, 106, 8, 0, 116, 14, 0, 131, 1,
0, 1, 100, 2, 0, 83, 40, 3, 0, 0, 0, 117, 50, 0, 0, 0,
73, 110, 115, 116, 97, 108, 108, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 32, 97, 115, 32, 116, 104, 101, 32, 105, 109, 112, 108, 101, 109, 101,
110, 116, 97, 116, 105, 111, 110, 32, 111, 102, 32, 105, 109, 112, 111, 114,
116, 46, 117, 2, 0, 0, 0, 110, 116, 78, 40, 15, 0, 0, 0, 117,
6, 0, 0, 0, 95, 115, 101, 116, 117, 112, 117, 27, 0, 0, 0, 95,
103, 101, 116, 95, 115, 117, 112, 112, 111, 114, 116, 101, 100, 95, 102, 105,
108, 101, 95, 108, 111, 97, 100, 101, 114, 115, 117, 3, 0, 0, 0, 115,
121, 115, 117, 10, 0, 0, 0, 112, 97, 116, 104, 95, 104, 111, 111, 107,
115, 117, 6, 0, 0, 0, 101, 120, 116, 101, 110, 100, 117, 10, 0, 0,
0, 70, 105, 108, 101, 70, 105, 110, 100, 101, 114, 117, 9, 0, 0, 0,
112, 97, 116, 104, 95, 104, 111, 111, 107, 117, 9, 0, 0, 0, 109, 101,
116, 97, 95, 112, 97, 116, 104, 117, 6, 0, 0, 0, 97, 112, 112, 101,
110, 100, 117, 15, 0, 0, 0, 66, 117, 105, 108, 116, 105, 110, 73, 109,
112, 111, 114, 116, 101, 114, 117, 14, 0, 0, 0, 70, 114, 111, 122, 101,
110, 73, 109, 112, 111, 114, 116, 101, 114, 117, 3, 0, 0, 0, 95, 111,
115, 117, 8, 0, 0, 0, 95, 95, 110, 97, 109, 101, 95, 95, 117, 21,
0, 0, 0, 87, 105, 110, 100, 111, 119, 115, 82, 101, 103, 105, 115, 116,
114, 121, 70, 105, 110, 100, 101, 114, 117, 10, 0, 0, 0, 80, 97, 116,
104, 70, 105, 110, 100, 101, 114, 40, 3, 0, 0, 0, 117, 10, 0, 0,
0, 115, 121, 115, 95, 109, 111, 100, 117, 108, 101, 117, 11, 0, 0, 0,
95, 105, 109, 112, 95, 109, 111, 100, 117, 108, 101, 117, 17, 0, 0, 0,
115, 117, 112, 112, 111, 114, 116, 101, 100, 95, 108, 111, 97, 100, 101, 114,
115, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 117, 29, 0, 0, 0,
60, 102, 114, 111, 122, 101, 110, 32, 105, 109, 112, 111, 114, 116, 108, 105,
98, 46, 95, 98, 111, 111, 116, 115, 116, 114, 97, 112, 62, 117, 8, 0,
0, 0, 95, 105, 110, 115, 116, 97, 108, 108, 233, 6, 0, 0, 115, 16,
0, 0, 0, 0, 2, 13, 1, 9, 1, 28, 1, 16, 1, 16, 1, 15,
1, 19, 1, 117, 8, 0, 0, 0, 95, 105, 110, 115, 116, 97, 108, 108,
78, 40, 3, 0, 0, 0, 117, 3, 0, 0, 0, 119, 105, 110, 117, 6,
0, 0, 0, 99, 121, 103, 119, 105, 110, 117, 6, 0, 0, 0, 100, 97,
114, 119, 105, 110, 40, 74, 0, 0, 0, 117, 7, 0, 0, 0, 95, 95,
100, 111, 99, 95, 95, 117, 27, 0, 0, 0, 95, 67, 65, 83, 69, 95,
73, 78, 83, 69, 78, 83, 73, 84, 73, 86, 69, 95, 80, 76, 65, 84,
70, 79, 82, 77, 83, 117, 16, 0, 0, 0, 95, 109, 97, 107, 101, 95,
114, 101, 108, 97, 120, 95, 99, 97, 115, 101, 117, 7, 0, 0, 0, 95,
119, 95, 108, 111, 110, 103, 117, 7, 0, 0, 0, 95, 114, 95, 108, 111,
110, 103, 117, 10, 0, 0, 0, 95, 112, 97, 116, 104, 95, 106, 111, 105,
110, 117, 11, 0, 0, 0, 95, 112, 97, 116, 104, 95, 115, 112, 108, 105,
116, 117, 18, 0, 0, 0, 95, 112, 97, 116, 104, 95, 105, 115, 95, 109,
111, 100, 101, 95, 116, 121, 112, 101, 117, 12, 0, 0, 0, 95, 112, 97,
116, 104, 95, 105, 115, 102, 105, 108, 101, 117, 11, 0, 0, 0, 95, 112,
97, 116, 104, 95, 105, 115, 100, 105, 114, 117, 13, 0, 0, 0, 95, 119,
114, 105, 116, 101, 95, 97, 116, 111, 109, 105, 99, 117, 5, 0, 0, 0,
95, 119, 114, 97, 112, 117, 4, 0, 0, 0, 116, 121, 112, 101, 117, 8,
0, 0, 0, 95, 95, 99, 111, 100, 101, 95, 95, 117, 10, 0, 0, 0,
95, 99, 111, 100, 101, 95, 116, 121, 112, 101, 117, 10, 0, 0, 0, 110,
101, 119, 95, 109, 111, 100, 117, 108, 101, 117, 13, 0, 0, 0, 95, 109,
111, 100, 117, 108, 101, 95, 108, 111, 99, 107, 115, 117, 12, 0, 0, 0,
95, 98, 108, 111, 99, 107, 105, 110, 103, 95, 111, 110, 117, 12, 0, 0,
0, 82, 117, 110, 116, 105, 109, 101, 69, 114, 114, 111, 114, 117, 14, 0,
0, 0, 95, 68, 101, 97, 100, 108, 111, 99, 107, 69, 114, 114, 111, 114,
117, 11, 0, 0, 0, 95, 77, 111, 100, 117, 108, 101, 76, 111, 99, 107,
117, 16, 0, 0, 0, 95, 68, 117, 109, 109, 121, 77, 111, 100, 117, 108,
101, 76, 111, 99, 107, 117, 16, 0, 0, 0, 95, 103, 101, 116, 95, 109,
111, 100, 117, 108, 101, 95, 108, 111, 99, 107, 117, 19, 0, 0, 0, 95,
108, 111, 99, 107, 95, 117, 110, 108, 111, 99, 107, 95, 109, 111, 100, 117,
108, 101, 117, 25, 0, 0, 0, 95, 99, 97, 108, 108, 95, 119, 105, 116,
104, 95, 102, 114, 97, 109, 101, 115, 95, 114, 101, 109, 111, 118, 101, 100,
117, 3, 0, 0, 0, 111, 114, 100, 117, 17, 0, 0, 0, 95, 82, 65,
87, 95, 77, 65, 71, 73, 67, 95, 78, 85, 77, 66, 69, 82, 117, 5,
0, 0, 0, 98, 121, 116, 101, 115, 117, 5, 0, 0, 0, 114, 97, 110,
103, 101, 117, 12, 0, 0, 0, 95, 77, 65, 71, 73, 67, 95, 66, 89,
84, 69, 83, 117, 8, 0, 0, 0, 95, 80, 89, 67, 65, 67, 72, 69,
117, 15, 0, 0, 0, 83, 79, 85, 82, 67, 69, 95, 83, 85, 70, 70,
73, 88, 69, 83, 117, 23, 0, 0, 0, 68, 69, 66, 85, 71, 95, 66,
89, 84, 69, 67, 79, 68, 69, 95, 83, 85, 70, 70, 73, 88, 69, 83,
117, 27, 0, 0, 0, 79, 80, 84, 73, 77, 73, 90, 69, 68, 95, 66,
89, 84, 69, 67, 79, 68, 69, 95, 83, 85, 70, 70, 73, 88, 69, 83,
117, 4, 0, 0, 0, 78, 111, 110, 101, 117, 17, 0, 0, 0, 99, 97,
99, 104, 101, 95, 102, 114, 111, 109, 95, 115, 111, 117, 114, 99, 101, 117,
17, 0, 0, 0, 115, 111, 117, 114, 99, 101, 95, 102, 114, 111, 109, 95,
99, 97, 99, 104, 101, 117, 15, 0, 0, 0, 95, 103, 101, 116, 95, 115,
111, 117, 114, 99, 101, 102, 105, 108, 101, 117, 16, 0, 0, 0, 95, 118,
101, 114, 98, 111, 115, 101, 95, 109, 101, 115, 115, 97, 103, 101, 117, 11,
0, 0, 0, 115, 101, 116, 95, 112, 97, 99, 107, 97, 103, 101, 117, 10,
0, 0, 0, 115, 101, 116, 95, 108, 111, 97, 100, 101, 114, 117, 17, 0,
0, 0, 109, 111, 100, 117, 108, 101, 95, 102, 111, 114, 95, 108, 111, 97,
100, 101, 114, 117, 11, 0, 0, 0, 95, 99, 104, 101, 99, 107, 95, 110,
97, 109, 101, 117, 17, 0, 0, 0, 95, 114, 101, 113, 117, 105, 114, 101,
115, 95, 98, 117, 105, 108, 116, 105, 110, 117, 16, 0, 0, 0, 95, 114,
101, 113, 117, 105, 114, 101, 115, 95, 102, 114, 111, 122, 101, 110, 117, 17,
0, 0, 0, 95, 102, 105, 110, 100, 95, 109, 111, 100, 117, 108, 101, 95,
115, 104, 105, 109, 117, 15, 0, 0, 0, 66, 117, 105, 108, 116, 105, 110,
73, 109, 112, 111, 114, 116, 101, 114, 117, 14, 0, 0, 0, 70, 114, 111,
122, 101, 110, 73, 109, 112, 111, 114, 116, 101, 114, 117, 21, 0, 0, 0,
87, 105, 110, 100, 111, 119, 115, 82, 101, 103, 105, 115, 116, 114, 121, 70,
105, 110, 100, 101, 114, 117, 13, 0, 0, 0, 95, 76, 111, 97, 100, 101,
114, 66, 97, 115, 105, 99, 115, 117, 12, 0, 0, 0, 83, 111, 117, 114,
99, 101, 76, 111, 97, 100, 101, 114, 117, 10, 0, 0, 0, 70, 105, 108,
101, 76, 111, 97, 100, 101, 114, 117, 16, 0, 0, 0, 83, 111, 117, 114,
99, 101, 70, 105, 108, 101, 76, 111, 97, 100, 101, 114, 117, 20, 0, 0,
0, 83, 111, 117, 114, 99, 101, 108, 101, 115, 115, 70, 105, 108, 101, 76,
111, 97, 100, 101, 114, 117, 18, 0, 0, 0, 69, 88, 84, 69, 78, 83,
73, 79, 78, 95, 83, 85, 70, 70, 73, 88, 69, 83, 117, 19, 0, 0,
0, 69, 120, 116, 101, 110, 115, 105, 111, 110, 70, 105, 108, 101, 76, 111,
97, 100, 101, 114, 117, 14, 0, 0, 0, 95, 78, 97, 109, 101, 115, 112,
97, 99, 101, 80, 97, 116, 104, 117, 15, 0, 0, 0, 78, 97, 109, 101,
115, 112, 97, 99, 101, 76, 111, 97, 100, 101, 114, 117, 10, 0, 0, 0,
80, 97, 116, 104, 70, 105, 110, 100, 101, 114, 117, 10, 0, 0, 0, 70,
105, 108, 101, 70, 105, 110, 100, 101, 114, 117, 18, 0, 0, 0, 95, 73,
109, 112, 111, 114, 116, 76, 111, 99, 107, 67, 111, 110, 116, 101, 120, 116,
117, 13, 0, 0, 0, 95, 114, 101, 115, 111, 108, 118, 101, 95, 110, 97,
109, 101, 117, 12, 0, 0, 0, 95, 102, 105, 110, 100, 95, 109, 111, 100,
117, 108, 101, 117, 13, 0, 0, 0, 95, 115, 97, 110, 105, 116, 121, 95,
99, 104, 101, 99, 107, 117, 8, 0, 0, 0, 95, 69, 82, 82, 95, 77,
83, 71, 117, 23, 0, 0, 0, 95, 102, 105, 110, 100, 95, 97, 110, 100,
95, 108, 111, 97, 100, 95, 117, 110, 108, 111, 99, 107, 101, 100, 117, 14,
0, 0, 0, 95, 102, 105, 110, 100, 95, 97, 110, 100, 95, 108, 111, 97,
100, 117, 11, 0, 0, 0, 95, 103, 99, 100, 95, 105, 109, 112, 111, 114,
116, 117, 16, 0, 0, 0, 95, 104, 97, 110, 100, 108, 101, 95, 102, 114,
111, 109, 108, 105, 115, 116, 117, 17, 0, 0, 0, 95, 99, 97, 108, 99,
95, 95, 95, 112, 97, 99, 107, 97, 103, 101, 95, 95, 117, 27, 0, 0,
0, 95, 103, 101, 116, 95, 115, 117, 112, 112, 111, 114, 116, 101, 100, 95,
102, 105, 108, 101, 95, 108, 111, 97, 100, 101, 114, 115, 117, 10, 0, 0,
0, 95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 117, 6, 0, 0, 0,
95, 115, 101, 116, 117, 112, 117, 8, 0, 0, 0, 95, 105, 110, 115, 116,
97, 108, 108, 40, 0, 0, 0, 0, 40, 0, 0, 0, 0, 40, 0, 0,
0, 0, 117, 29, 0, 0, 0, 60, 102, 114, 111, 122, 101, 110, 32, 105,
109, 112, 111, 114, 116, 108, 105, 98, 46, 95, 98, 111, 111, 116, 115, 116,
114, 97, 112, 62, 117, 8, 0, 0, 0, 60, 109, 111, 100, 117, 108, 101,
62, 8, 0, 0, 0, 115, 132, 0, 0, 0, 6, 21, 6, 3, 12, 13,
12, 16, 12, 13, 12, 12, 12, 12, 12, 10, 12, 6, 12, 7, 15, 22,
12, 8, 15, 3, 12, 12, 6, 2, 6, 3, 22, 4, 19, 68, 19, 23,
12, 19, 12, 20, 12, 100, 34, 1, 37, 2, 6, 2, 9, 2, 9, 1,
9, 2, 15, 27, 12, 23, 12, 19, 18, 8, 12, 13, 12, 11, 12, 55,
12, 18, 12, 11, 12, 11, 12, 17, 19, 57, 19, 54, 19, 50, 19, 83,
22, 134, 19, 29, 25, 49, 25, 25, 6, 3, 19, 45, 19, 55, 19, 18,
19, 91, 19, 128, 19, 13, 12, 9, 12, 17, 12, 17, 6, 2, 12, 50,
12, 13, 18, 24, 12, 34, 12, 15, 12, 11, 24, 36, 12, 79,
}
|
go-python/gpython
|
importlib/importlib.go
|
GO
|
bsd-3-clause
| 295,149
|
/*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef EL_INVERSE_HPD_CHOLESKYLVAR2_HPP
#define EL_INVERSE_HPD_CHOLESKYLVAR2_HPP
namespace El {
namespace hpd_inv {
// This approach is based upon a (conjugate)-transposition of the reordered
// Variant 2 algorithm from Fig. 9 in Bientinesi et al.'s "Families of
// Algorithms Related to the Inversion of a Symmetric Positive Definite Matrix".
// TODO: Rewrite this routine without partition tracking
template<typename F>
inline void
CholeskyLVar2( Matrix<F>& A )
{
DEBUG_ONLY(
CSE cse("hpd_inv::CholeskyLVar2");
if( A.Height() != A.Width() )
LogicError("Nonsquare matrices cannot be triangular");
)
// Matrix views
Matrix<F>
ATL, ATR, A00, A01, A02,
ABL, ABR, A10, A11, A12,
A20, A21, A22;
// Start the algorithm
PartitionDownDiagonal
( A, ATL, ATR,
ABL, ABR, 0 );
while( ATL.Height() < A.Height() )
{
RepartitionDownDiagonal
( ATL, /**/ ATR, A00, /**/ A01, A02,
/*************/ /******************/
/**/ A10, /**/ A11, A12,
ABL, /**/ ABR, A20, /**/ A21, A22 );
//--------------------------------------------------------------------//
Cholesky( LOWER, A11 );
Trsm( LEFT, LOWER, NORMAL, NON_UNIT, F(1), A11, A10 );
Trsm( RIGHT, LOWER, ADJOINT, NON_UNIT, F(1), A11, A21 );
Herk( LOWER, ADJOINT, Base<F>(1), A10, Base<F>(1), A00 );
Gemm( NORMAL, NORMAL, F(-1), A21, A10, F(1), A20 );
Herk( LOWER, NORMAL, Base<F>(-1), A21, Base<F>(1), A22 );
Trsm( LEFT, LOWER, ADJOINT, NON_UNIT, F(1), A11, A10 );
Trsm( RIGHT, LOWER, NORMAL, NON_UNIT, F(-1), A11, A21 );
TriangularInverse( LOWER, NON_UNIT, A11 );
Trtrmm( LOWER, A11, true );
//--------------------------------------------------------------------//
SlidePartitionDownDiagonal
( ATL, /**/ ATR, A00, A01, /**/ A02,
/**/ A10, A11, /**/ A12,
/*************/ /******************/
ABL, /**/ ABR, A20, A21, /**/ A22 );
}
}
// TODO: Rewrite this routine without partition tracking
template<typename F>
inline void
CholeskyLVar2( ElementalMatrix<F>& APre )
{
DEBUG_ONLY(
CSE cse("hpd_inv::CholeskyLVar2");
if( APre.Height() != APre.Width() )
LogicError("Nonsquare matrices cannot be triangular");
)
DistMatrixReadWriteProxy<F,F,MC,MR> AProx( APre );
auto& A = AProx.Get();
// Matrix views
const Grid& g = A.Grid();
DistMatrix<F>
ATL(g), ATR(g), A00(g), A01(g), A02(g),
ABL(g), ABR(g), A10(g), A11(g), A12(g),
A20(g), A21(g), A22(g);
// Temporary distributions
DistMatrix<F,STAR,STAR> A11_STAR_STAR(g);
DistMatrix<F,STAR,VR > A10_STAR_VR(g);
DistMatrix<F,VC, STAR> A21_VC_STAR(g);
DistMatrix<F,STAR,MC > A10_STAR_MC(g);
DistMatrix<F,STAR,MR > A10_STAR_MR(g);
DistMatrix<F,STAR,MC > A21Trans_STAR_MC(g);
DistMatrix<F,VR, STAR> A21_VR_STAR(g);
DistMatrix<F,STAR,MR > A21Adj_STAR_MR(g);
// Start the algorithm
PartitionDownDiagonal
( A, ATL, ATR,
ABL, ABR, 0 );
while( ATL.Height() < A.Height() )
{
RepartitionDownDiagonal
( ATL, /**/ ATR, A00, /**/ A01, A02,
/*************/ /******************/
/**/ A10, /**/ A11, A12,
ABL, /**/ ABR, A20, /**/ A21, A22 );
A10_STAR_VR.AlignWith( A00 );
A21_VC_STAR.AlignWith( A20 );
A10_STAR_MC.AlignWith( A00 );
A10_STAR_MR.AlignWith( A00 );
A21Trans_STAR_MC.AlignWith( A20 );
A21_VR_STAR.AlignWith( A22 );
A21Adj_STAR_MR.AlignWith( A22 );
//--------------------------------------------------------------------//
A11_STAR_STAR = A11;
Cholesky( LOWER, A11_STAR_STAR );
A10_STAR_VR = A10;
LocalTrsm
( LEFT, LOWER, NORMAL, NON_UNIT, F(1), A11_STAR_STAR, A10_STAR_VR );
A21_VC_STAR = A21;
LocalTrsm
( RIGHT, LOWER, ADJOINT, NON_UNIT, F(1), A11_STAR_STAR, A21_VC_STAR );
A10_STAR_MC = A10_STAR_VR;
A10_STAR_MR = A10_STAR_VR;
LocalTrrk
( LOWER, ADJOINT,
F(1), A10_STAR_MC, A10_STAR_MR, F(1), A00 );
Transpose( A21_VC_STAR, A21Trans_STAR_MC );
LocalGemm
( TRANSPOSE, NORMAL, F(-1), A21Trans_STAR_MC, A10_STAR_MR, F(1), A20 );
A21_VR_STAR = A21_VC_STAR;
Adjoint( A21_VR_STAR, A21Adj_STAR_MR );
LocalTrrk
( LOWER, TRANSPOSE,
F(-1), A21Trans_STAR_MC, A21Adj_STAR_MR, F(1), A22 );
LocalTrsm
( LEFT, LOWER, ADJOINT, NON_UNIT, F(1), A11_STAR_STAR, A10_STAR_VR );
LocalTrsm
( RIGHT, LOWER, NORMAL, NON_UNIT, F(-1), A11_STAR_STAR, A21_VC_STAR );
LocalTriangularInverse( LOWER, NON_UNIT, A11_STAR_STAR );
Trtrmm( LOWER, A11_STAR_STAR, true );
A11 = A11_STAR_STAR;
A10 = A10_STAR_VR;
A21 = A21_VC_STAR;
//--------------------------------------------------------------------//
SlidePartitionDownDiagonal
( ATL, /**/ ATR, A00, A01, /**/ A02,
/**/ A10, A11, /**/ A12,
/*************/ /******************/
ABL, /**/ ABR, A20, A21, /**/ A22 );
}
}
} // namespace hpd_inv
} // namespace El
#endif // ifndef EL_INVERSE_HPD_CHOLESKYLVAR2_HPP
|
mcopik/Elemental
|
src/lapack_like/funcs/Inverse/HPD/CholeskyLVar2.hpp
|
C++
|
bsd-3-clause
| 5,720
|
import type { BlinkMRC, ProjectConfig } from '../types'
import configLoader from '@blinkmobile/blinkmrc'
import pkg from '../../package'
function projectConfig(cwd: string): ProjectConfig {
return configLoader.projectConfig({
name: pkg.name,
cwd: cwd,
})
}
function read(cwd: string): Promise<BlinkMRC> {
return projectConfig(cwd)
.load()
.catch(() => ({}))
}
async function write(
cwd: string,
updater: (config: BlinkMRC) => BlinkMRC,
): Promise<BlinkMRC> {
return await projectConfig(cwd).update(updater)
}
export default {
projectConfig,
read,
write,
}
|
blinkmobile/cli
|
src/api/utils/project-meta.ts
|
TypeScript
|
bsd-3-clause
| 595
|
# sl-feeds

This is for proccessing Slackware ChangeLog.txt -> RSS feeds that folks can
subscribed to.
Ultimately ending up at http://www.slackware.com/~vbatts/feeds/ or http://mirrors.slackware.com/feeds/
## Usage
```bash
go get github.com/vbatts/sl-feeds/cmd/sl-feeds
```
Create a configuration from the sample
```bash
sl-feeds --sample-config > ~/.sl-feeds.toml
```
crontab like:
```
0 */2 * * * ~/bin/sl-feeds -c ~/.sl-feeds.toml -q || mail -s "[sl-feeds] failed $(date +%D)" me@example.com
```
|
vbatts/sl-feeds
|
README.md
|
Markdown
|
bsd-3-clause
| 572
|
/* $OpenBSD: midivar.h,v 1.1 1999/01/02 00:02:38 niklas Exp $ */
/* $NetBSD: midivar.h,v 1.6 1998/11/25 22:17:07 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Lennart Augustsson (augustss@netbsd.org).
*
* 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. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
*/
#ifndef _SYS_DEV_MIDIVAR_H_
#define _SYS_DEV_MIDIVAR_H_
#define MIDI_BUFSIZE 1024
#include "sequencer.h"
struct midi_buffer {
u_char *inp;
u_char *outp;
u_char *end;
int used;
int usedhigh;
u_char start[MIDI_BUFSIZE];
};
#define MIDI_MAX_WRITE 32 /* max bytes written with busy wait */
#define MIDI_WAIT 10000 /* microseconds to wait after busy wait */
struct midi_softc {
struct device dev;
void *hw_hdl; /* Hardware driver handle */
struct midi_hw_if *hw_if; /* Hardware interface */
struct device *sc_dev; /* Hardware device struct */
int isopen; /* Open indicator */
int flags; /* Open flags */
struct midi_buffer outbuf;
struct midi_buffer inbuf;
int props;
int rchan, wchan;
int pbus;
struct selinfo wsel; /* write selector */
struct selinfo rsel; /* read selector */
struct proc *async; /* process who wants audio SIGIO */
/* MIDI input state machine */
int in_state;
#define MIDI_IN_START 0
#define MIDI_IN_DATA 1
#define MIDI_IN_SYSEX 2
u_char in_msg[3];
u_char in_status;
u_int in_left;
u_int in_pos;
#if NSEQUENCER > 0
/* Synthesizer emulation stuff */
int seqopen;
struct midi_dev *seq_md; /* structure that links us with the seq. */
#endif
};
#define MIDIUNIT(d) ((d) & 0xff)
#endif /* _SYS_DEV_MIDIVAR_H_ */
|
MarginC/kame
|
openbsd/sys/dev/midivar.h
|
C
|
bsd-3-clause
| 3,358
|
using System;
using System.Collections.Generic;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
using VersionOne.ServiceHost.ConfigurationTool.UI.Interfaces;
namespace VersionOne.ServiceHost.ConfigurationTool.Entities {
/// <summary>
/// Container entity for all services settings.
/// </summary>
[HasSelfValidation]
public class ServiceHostConfiguration {
private readonly List<BaseServiceEntity> services = new List<BaseServiceEntity>();
private ProxyConnectionSettings proxySettings = new ProxyConnectionSettings();
public VersionOneSettings Settings { get; private set; }
public ProxyConnectionSettings ProxySettings {
get { return proxySettings; }
private set { proxySettings = value; }
}
public bool HasChanged { get; set; }
public IEnumerable<BaseServiceEntity> Services {
get { return services; }
}
public ServiceHostConfiguration() {
HasChanged = true;
}
public ServiceHostConfiguration(IEnumerable<BaseServiceEntity> entities) : this() {
foreach(var entity in entities) {
AddService(entity);
}
}
public BaseServiceEntity this[Type type] {
get { return services.Find(entity => entity.GetType() == type); }
}
public void AddService(BaseServiceEntity entity) {
if(entity is IVersionOneSettingsConsumer) {
var settingsConsumer = (IVersionOneSettingsConsumer) entity;
if(Settings != null) {
settingsConsumer.Settings = Settings;
} else {
Settings = settingsConsumer.Settings;
ProxySettings = settingsConsumer.Settings.ProxySettings;
}
}
services.Add(entity);
}
[SelfValidation]
public void CheckQualityCenterMappings(ValidationResults results) {
var qcServiceEntity = (QCServiceEntity) this[typeof (QCServiceEntity)];
var testServiceEntity = (TestServiceEntity) this[typeof (TestServiceEntity)];
if(qcServiceEntity != null && testServiceEntity != null) {
foreach (var mapping in testServiceEntity.Projects) {
var matchingProject = qcServiceEntity.Projects.Find(item => string.Equals(item.Id, mapping.DestinationProject));
if(matchingProject == null) {
var message = string.Format("Mapping '{0}' exists on Test Service page, but not on Quality Center page", mapping.DestinationProject);
results.AddResult(new ValidationResult(message, this, null, "Quality Center", null));
}
}
}
}
}
}
|
KellyKey/Sigma
|
VersionOne.ServiceHost.ConfigurationTool/Entities/ServiceHostConfiguration.cs
|
C#
|
bsd-3-clause
| 2,914
|
#include <lib.h>
#include <sgtty.h>
int stty(fd, argp)
int fd;
struct sgttyb *argp;
{
return ioctl(fd, TIOCSETP, argp);
}
|
macminix/MacMinix
|
src/lib/other/stty.c
|
C
|
bsd-3-clause
| 125
|
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/src/foxitlib.h"
#include "xfa/src/fwl/src/core/include/fwl_targetimp.h"
#include "xfa/src/fwl/src/core/include/fwl_threadimp.h"
#include "xfa/src/fwl/src/core/include/fwl_noteimp.h"
#include "xfa/src/fwl/src/core/include/fwl_widgetimp.h"
#include "xfa/src/fwl/src/core/include/fwl_contentimp.h"
#include "xfa/src/fwl/src/core/include/fwl_gridimp.h"
// static
IFWL_Grid* IFWL_Grid::Create(const CFWL_WidgetImpProperties& properties) {
IFWL_Grid* pGrid = new IFWL_Grid;
CFWL_GridImp* pGridImpl = new CFWL_GridImp(properties, nullptr);
pGrid->SetImpl(pGridImpl);
pGridImpl->SetInterface(pGrid);
return pGrid;
}
IFWL_Grid::IFWL_Grid() {}
FWL_HGRIDCOLROW IFWL_Grid::InsertColRow(FX_BOOL bColumn, int32_t nIndex) {
return static_cast<CFWL_GridImp*>(GetImpl())->InsertColRow(bColumn, nIndex);
}
int32_t IFWL_Grid::CountColRows(FX_BOOL bColumn) {
return static_cast<CFWL_GridImp*>(GetImpl())->CountColRows(bColumn);
}
FWL_HGRIDCOLROW IFWL_Grid::GetColRow(FX_BOOL bColumn, int32_t nIndex) {
return static_cast<CFWL_GridImp*>(GetImpl())->GetColRow(bColumn, nIndex);
}
int32_t IFWL_Grid::GetIndex(FWL_HGRIDCOLROW hColRow) {
return static_cast<CFWL_GridImp*>(GetImpl())->GetIndex(hColRow);
}
FX_FLOAT IFWL_Grid::GetSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit) {
return static_cast<CFWL_GridImp*>(GetImpl())->GetSize(hColRow, eUnit);
}
FWL_ERR IFWL_Grid::SetSize(FWL_HGRIDCOLROW hColRow,
FX_FLOAT fSize,
FWL_GRIDUNIT eUnit) {
return static_cast<CFWL_GridImp*>(GetImpl())->SetSize(hColRow, fSize, eUnit);
}
FX_FLOAT IFWL_Grid::GetMinSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit) {
return static_cast<CFWL_GridImp*>(GetImpl())->GetMinSize(hColRow, eUnit);
}
FWL_ERR IFWL_Grid::SetMinSize(FWL_HGRIDCOLROW hColRow,
FX_FLOAT fSize,
FWL_GRIDUNIT eUnit) {
return static_cast<CFWL_GridImp*>(GetImpl())
->SetMinSize(hColRow, fSize, eUnit);
}
FX_FLOAT IFWL_Grid::GetMaxSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit) {
return static_cast<CFWL_GridImp*>(GetImpl())->GetMaxSize(hColRow, eUnit);
}
FWL_ERR IFWL_Grid::SetMaxSize(FWL_HGRIDCOLROW hColRow,
FX_FLOAT fSize,
FWL_GRIDUNIT eUnit) {
return static_cast<CFWL_GridImp*>(GetImpl())
->SetMaxSize(hColRow, fSize, eUnit);
}
FX_BOOL IFWL_Grid::DeleteColRow(FWL_HGRIDCOLROW hColRow) {
return static_cast<CFWL_GridImp*>(GetImpl())->DeleteColRow(hColRow);
}
FX_BOOL IFWL_Grid::IsColumn(FWL_HGRIDCOLROW hColRow) {
return static_cast<CFWL_GridImp*>(GetImpl())->IsColumn(hColRow);
}
int32_t IFWL_Grid::GetWidgetPos(IFWL_Widget* pWidget, FX_BOOL bColumn) {
return static_cast<CFWL_GridImp*>(GetImpl())->GetWidgetPos(pWidget, bColumn);
}
FWL_ERR IFWL_Grid::SetWidgetPos(IFWL_Widget* pWidget,
int32_t iPos,
FX_BOOL bColumn) {
return static_cast<CFWL_GridImp*>(GetImpl())
->SetWidgetPos(pWidget, iPos, bColumn);
}
int32_t IFWL_Grid::GetWidgetSpan(IFWL_Widget* pWidget, FX_BOOL bColumn) {
return static_cast<CFWL_GridImp*>(GetImpl())->GetWidgetSpan(pWidget, bColumn);
}
FWL_ERR IFWL_Grid::SetWidgetSpan(IFWL_Widget* pWidget,
int32_t iSpan,
FX_BOOL bColumn) {
return static_cast<CFWL_GridImp*>(GetImpl())
->SetWidgetSpan(pWidget, iSpan, bColumn);
}
FX_FLOAT IFWL_Grid::GetWidgetSize(IFWL_Widget* pWidget,
FWL_GRIDSIZE eSize,
FWL_GRIDUNIT& eUnit) {
return static_cast<CFWL_GridImp*>(GetImpl())
->GetWidgetSize(pWidget, eSize, eUnit);
}
FWL_ERR IFWL_Grid::SetWidgetSize(IFWL_Widget* pWidget,
FWL_GRIDSIZE eSize,
FX_FLOAT fSize,
FWL_GRIDUNIT eUit) {
return static_cast<CFWL_GridImp*>(GetImpl())
->SetWidgetSize(pWidget, eSize, fSize, eUit);
}
FX_BOOL IFWL_Grid::GetWidgetMargin(IFWL_Widget* pWidget,
FWL_GRIDMARGIN eMargin,
FX_FLOAT& fMargin) {
return static_cast<CFWL_GridImp*>(GetImpl())
->GetWidgetMargin(pWidget, eMargin, fMargin);
}
FWL_ERR IFWL_Grid::SetWidgetMargin(IFWL_Widget* pWidget,
FWL_GRIDMARGIN eMargin,
FX_FLOAT fMargin) {
return static_cast<CFWL_GridImp*>(GetImpl())
->SetWidgetMargin(pWidget, eMargin, fMargin);
}
FWL_ERR IFWL_Grid::RemoveWidgetMargin(IFWL_Widget* pWidget,
FWL_GRIDMARGIN eMargin) {
return static_cast<CFWL_GridImp*>(GetImpl())
->RemoveWidgetMargin(pWidget, eMargin);
}
FX_FLOAT IFWL_Grid::GetGridSize(FWL_GRIDSIZE eSize, FWL_GRIDUNIT& eUnit) {
return static_cast<CFWL_GridImp*>(GetImpl())->GetGridSize(eSize, eUnit);
}
FWL_ERR IFWL_Grid::SetGridSize(FWL_GRIDSIZE eSize,
FX_FLOAT fSize,
FWL_GRIDUNIT eUit) {
return static_cast<CFWL_GridImp*>(GetImpl())->SetGridSize(eSize, fSize, eUit);
}
CFWL_GridImp::CFWL_GridImp(const CFWL_WidgetImpProperties& properties,
IFWL_Widget* pOuter)
: CFWL_ContentImp(properties, pOuter) {
m_Size[FWL_GRIDSIZE_Width].eUnit = FWL_GRIDUNIT_Auto;
m_Size[FWL_GRIDSIZE_Width].fLength = 0;
m_Size[FWL_GRIDSIZE_Height].eUnit = FWL_GRIDUNIT_Auto;
m_Size[FWL_GRIDSIZE_Height].fLength = 0;
m_Size[FWL_GRIDSIZE_MinWidth].eUnit = FWL_GRIDUNIT_Fixed;
m_Size[FWL_GRIDSIZE_MinWidth].fLength = 0;
m_Size[FWL_GRIDSIZE_MaxWidth].eUnit = FWL_GRIDUNIT_Infinity;
m_Size[FWL_GRIDSIZE_MaxWidth].fLength = 0;
m_Size[FWL_GRIDSIZE_MinHeight].eUnit = FWL_GRIDUNIT_Fixed;
m_Size[FWL_GRIDSIZE_MinHeight].fLength = 0;
m_Size[FWL_GRIDSIZE_MaxHeight].eUnit = FWL_GRIDUNIT_Infinity;
m_Size[FWL_GRIDSIZE_MaxHeight].fLength = 0;
}
CFWL_GridImp::~CFWL_GridImp() {
int32_t iCount = m_Columns.GetSize();
for (int32_t i = 0; i < iCount; i++) {
delete static_cast<CFWL_GridColRow*>(m_Columns[i]);
}
m_Columns.RemoveAll();
iCount = m_Rows.GetSize();
for (int32_t j = 0; j < iCount; j++) {
delete static_cast<CFWL_GridColRow*>(m_Rows[j]);
}
m_Rows.RemoveAll();
FX_POSITION ps = m_mapWidgetInfo.GetStartPosition();
while (ps) {
IFWL_Widget* pWidget;
CFWL_GridWidgetInfo* pInfo;
m_mapWidgetInfo.GetNextAssoc(ps, (void*&)pWidget, (void*&)pInfo);
delete pInfo;
}
m_mapWidgetInfo.RemoveAll();
delete m_pDelegate;
m_pDelegate = nullptr;
}
FWL_ERR CFWL_GridImp::GetClassName(CFX_WideString& wsClass) const {
wsClass = FWL_CLASS_Grid;
return FWL_ERR_Succeeded;
}
FX_DWORD CFWL_GridImp::GetClassID() const {
return FWL_CLASSHASH_Grid;
}
FWL_ERR CFWL_GridImp::Initialize() {
if (CFWL_ContentImp::Initialize() != FWL_ERR_Succeeded)
return FWL_ERR_Indefinite;
m_pDelegate = new CFWL_GridImpDelegate(this);
return FWL_ERR_Succeeded;
}
FWL_ERR CFWL_GridImp::Finalize() {
if (CFWL_ContentImp::Finalize() != FWL_ERR_Succeeded)
return FWL_ERR_Indefinite;
delete m_pDelegate;
m_pDelegate = nullptr;
return FWL_ERR_Succeeded;
}
FWL_ERR CFWL_GridImp::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) {
if (bAutoSize) {
rect.left = 0;
rect.top = 0;
rect.width = ProcessUnCertainColumns();
rect.height = ProcessUnCertainRows();
} else {
rect = m_pProperties->m_rtWidget;
}
return FWL_ERR_Succeeded;
}
FWL_ERR CFWL_GridImp::SetWidgetRect(const CFX_RectF& rect) {
CFWL_WidgetImp::SetWidgetRect(rect);
return FWL_ERR_Succeeded;
}
FWL_ERR CFWL_GridImp::Update() {
if (IsLocked()) {
return FWL_ERR_Indefinite;
}
ProcessColumns(m_pProperties->m_rtWidget.width);
ProcessRows(m_pProperties->m_rtWidget.height);
SetAllWidgetsRect();
return FWL_ERR_Succeeded;
}
FWL_ERR CFWL_GridImp::DrawWidget(CFX_Graphics* pGraphics,
const CFX_Matrix* pMatrix) {
if (!pGraphics)
return FWL_ERR_Indefinite;
if ((m_pProperties->m_dwStyleExes & FWL_GRIDSTYLEEXT_ShowGridLines) == 0) {
return FWL_ERR_Succeeded;
}
pGraphics->SaveGraphState();
if (pMatrix) {
pGraphics->ConcatMatrix(pMatrix);
}
{
FX_BOOL bDrawLine = FALSE;
CFX_Path path;
path.Create();
int32_t iColumns = m_Columns.GetSize();
for (int32_t i = 1; i < iColumns; i++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(m_Columns[i]);
if (!pColRow) {
continue;
}
bDrawLine = TRUE;
path.AddLine(pColRow->m_fActualPos, 0, pColRow->m_fActualPos,
m_pProperties->m_rtWidget.height);
}
int32_t iRows = m_Rows.GetSize();
for (int32_t j = 1; j < iRows; j++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(m_Rows[j]);
if (!pColRow) {
continue;
}
bDrawLine = TRUE;
path.AddLine(0, pColRow->m_fActualPos, m_pProperties->m_rtWidget.width,
pColRow->m_fActualPos);
}
if (bDrawLine) {
CFX_Color cr(0xFFFF0000);
pGraphics->SetStrokeColor(&cr);
pGraphics->StrokePath(&path);
}
}
pGraphics->RestoreGraphState();
return FWL_ERR_Succeeded;
}
FWL_ERR CFWL_GridImp::InsertWidget(IFWL_Widget* pChild, int32_t nIndex) {
if (!pChild)
return FWL_ERR_Indefinite;
CFWL_ContentImp::InsertWidget(pChild, nIndex);
if (!m_mapWidgetInfo.GetValueAt(pChild)) {
CFWL_GridWidgetInfo* pInfo = new CFWL_GridWidgetInfo;
m_mapWidgetInfo.SetAt(pChild, pInfo);
m_Widgets.Add(pChild);
}
return FWL_ERR_Succeeded;
}
FWL_ERR CFWL_GridImp::RemoveWidget(IFWL_Widget* pWidget) {
if (!pWidget)
return FWL_ERR_Indefinite;
CFWL_ContentImp::RemoveWidget(pWidget);
if (CFWL_GridWidgetInfo* pInfo = static_cast<CFWL_GridWidgetInfo*>(
m_mapWidgetInfo.GetValueAt(pWidget))) {
m_mapWidgetInfo.RemoveKey(pWidget);
delete pInfo;
int32_t nIndex = m_Widgets.Find(pWidget);
m_Widgets.RemoveAt(nIndex, 1);
}
return FWL_ERR_Succeeded;
}
FWL_HGRIDCOLROW CFWL_GridImp::InsertColRow(FX_BOOL bColumn, int32_t nIndex) {
if (bColumn) {
if (nIndex < 0 || nIndex > m_Columns.GetSize()) {
nIndex = m_Columns.GetSize();
}
CFWL_GridColRow* pColumn = new CFWL_GridColRow;
m_Columns.InsertAt(nIndex, pColumn, 1);
return (FWL_HGRIDCOLROW)pColumn;
}
if (nIndex < 0 || nIndex > m_Rows.GetSize()) {
nIndex = m_Rows.GetSize();
}
CFWL_GridColRow* pRow = new CFWL_GridColRow;
m_Rows.InsertAt(nIndex, pRow, 1);
return (FWL_HGRIDCOLROW)pRow;
}
int32_t CFWL_GridImp::CountColRows(FX_BOOL bColumn) {
if (bColumn) {
return m_Columns.GetSize();
}
return m_Rows.GetSize();
}
FWL_HGRIDCOLROW CFWL_GridImp::GetColRow(FX_BOOL bColumn, int32_t nIndex) {
if (bColumn) {
if (nIndex < 0 || nIndex >= m_Columns.GetSize()) {
return NULL;
}
return (FWL_HGRIDCOLROW)m_Columns[nIndex];
}
if (nIndex < 0 || nIndex >= m_Rows.GetSize()) {
return NULL;
}
return (FWL_HGRIDCOLROW)m_Rows[nIndex];
}
int32_t CFWL_GridImp::GetIndex(FWL_HGRIDCOLROW hColRow) {
if (IsColumn(hColRow)) {
return m_Columns.Find(hColRow);
}
return m_Rows.Find(hColRow);
}
FX_FLOAT CFWL_GridImp::GetSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit) {
if (!hColRow)
return -1;
CFWL_GridColRow* pColRow = reinterpret_cast<CFWL_GridColRow*>(hColRow);
eUnit = pColRow->m_Size.eUnit;
return pColRow->m_Size.fLength;
}
FWL_ERR CFWL_GridImp::SetSize(FWL_HGRIDCOLROW hColRow,
FX_FLOAT fSize,
FWL_GRIDUNIT eUnit) {
if (!hColRow)
return FWL_ERR_Indefinite;
CFWL_GridColRow* pColRow = reinterpret_cast<CFWL_GridColRow*>(hColRow);
pColRow->m_Size.eUnit = eUnit;
pColRow->m_Size.fLength = fSize;
return FWL_ERR_Succeeded;
}
FX_FLOAT CFWL_GridImp::GetMinSize(FWL_HGRIDCOLROW hColRow,
FWL_GRIDUNIT& eUnit) {
if (!hColRow)
return -1;
CFWL_GridColRow* pColRow = reinterpret_cast<CFWL_GridColRow*>(hColRow);
eUnit = pColRow->m_MinSize.eUnit;
return pColRow->m_MinSize.fLength;
}
FWL_ERR CFWL_GridImp::SetMinSize(FWL_HGRIDCOLROW hColRow,
FX_FLOAT fSize,
FWL_GRIDUNIT eUnit) {
if (!hColRow)
return FWL_ERR_Indefinite;
CFWL_GridColRow* pColRow = reinterpret_cast<CFWL_GridColRow*>(hColRow);
pColRow->m_MinSize.eUnit = eUnit;
pColRow->m_MinSize.fLength = fSize;
return FWL_ERR_Succeeded;
}
FX_FLOAT CFWL_GridImp::GetMaxSize(FWL_HGRIDCOLROW hColRow,
FWL_GRIDUNIT& eUnit) {
if (!hColRow)
return -1;
CFWL_GridColRow* pColRow = reinterpret_cast<CFWL_GridColRow*>(hColRow);
eUnit = pColRow->m_MaxSize.eUnit;
return pColRow->m_MaxSize.fLength;
}
FWL_ERR CFWL_GridImp::SetMaxSize(FWL_HGRIDCOLROW hColRow,
FX_FLOAT fSize,
FWL_GRIDUNIT eUnit) {
if (!hColRow)
return FWL_ERR_Indefinite;
CFWL_GridColRow* pColRow = reinterpret_cast<CFWL_GridColRow*>(hColRow);
pColRow->m_MaxSize.eUnit = eUnit;
pColRow->m_MaxSize.fLength = fSize;
return FWL_ERR_Succeeded;
}
FX_BOOL CFWL_GridImp::DeleteColRow(FWL_HGRIDCOLROW hColRow) {
int32_t nIndex = m_Columns.Find(hColRow);
if (nIndex >= 0) {
m_Columns.RemoveAt(nIndex);
delete reinterpret_cast<CFWL_GridColRow*>(hColRow);
return TRUE;
}
nIndex = m_Rows.Find(hColRow);
if (nIndex >= 0) {
delete reinterpret_cast<CFWL_GridColRow*>(hColRow);
m_Rows.RemoveAt(nIndex);
return TRUE;
}
return FALSE;
}
FX_BOOL CFWL_GridImp::IsColumn(FWL_HGRIDCOLROW hColRow) {
return m_Columns.Find(hColRow) != -1;
}
int32_t CFWL_GridImp::GetWidgetPos(IFWL_Widget* pWidget, FX_BOOL bColumn) {
CFWL_GridWidgetInfo* pInfo =
static_cast<CFWL_GridWidgetInfo*>(GetWidgetInfo(pWidget));
if (pInfo) {
return bColumn ? pInfo->m_iColumn : pInfo->m_iRow;
}
return -1;
}
FWL_ERR CFWL_GridImp::SetWidgetPos(IFWL_Widget* pWidget,
int32_t iPos,
FX_BOOL bColumn) {
CFWL_GridWidgetInfo* pInfo =
static_cast<CFWL_GridWidgetInfo*>(GetWidgetInfo(pWidget));
if (pInfo) {
bColumn ? pInfo->m_iColumn = iPos : pInfo->m_iRow = iPos;
}
return FWL_ERR_Succeeded;
}
int32_t CFWL_GridImp::GetWidgetSpan(IFWL_Widget* pWidget, FX_BOOL bColumn) {
CFWL_GridWidgetInfo* pInfo =
static_cast<CFWL_GridWidgetInfo*>(GetWidgetInfo(pWidget));
if (pInfo) {
return bColumn ? pInfo->m_iColumnSpan : pInfo->m_iRowSpan;
}
return 0;
}
FWL_ERR CFWL_GridImp::SetWidgetSpan(IFWL_Widget* pWidget,
int32_t iSpan,
FX_BOOL bColumn) {
CFWL_GridWidgetInfo* pInfo =
static_cast<CFWL_GridWidgetInfo*>(GetWidgetInfo(pWidget));
if (pInfo) {
bColumn ? pInfo->m_iColumnSpan = iSpan : pInfo->m_iRowSpan = iSpan;
}
return FWL_ERR_Succeeded;
}
FX_FLOAT CFWL_GridImp::GetWidgetSize(IFWL_Widget* pWidget,
FWL_GRIDSIZE eSize,
FWL_GRIDUNIT& eUnit) {
CFWL_GridWidgetInfo* pInfo =
static_cast<CFWL_GridWidgetInfo*>(GetWidgetInfo(pWidget));
if (pInfo) {
eUnit = pInfo->m_Size[eSize].eUnit;
return pInfo->m_Size[eSize].fLength;
}
return 0;
}
FWL_ERR CFWL_GridImp::SetWidgetSize(IFWL_Widget* pWidget,
FWL_GRIDSIZE eSize,
FX_FLOAT fSize,
FWL_GRIDUNIT eUit) {
CFWL_GridWidgetInfo* pInfo =
static_cast<CFWL_GridWidgetInfo*>(GetWidgetInfo(pWidget));
if (pInfo) {
pInfo->m_Size[eSize].fLength = fSize;
pInfo->m_Size[eSize].eUnit = eUit;
}
return FWL_ERR_Succeeded;
}
FX_BOOL CFWL_GridImp::GetWidgetMargin(IFWL_Widget* pWidget,
FWL_GRIDMARGIN eMargin,
FX_FLOAT& fMargin) {
CFWL_GridWidgetInfo* pInfo =
static_cast<CFWL_GridWidgetInfo*>(GetWidgetInfo(pWidget));
if (pInfo) {
fMargin = pInfo->m_Margin[eMargin];
return (pInfo->m_dwMarginFlag & (1 << eMargin)) != 0;
}
return FALSE;
}
FWL_ERR CFWL_GridImp::SetWidgetMargin(IFWL_Widget* pWidget,
FWL_GRIDMARGIN eMargin,
FX_FLOAT fMargin) {
CFWL_GridWidgetInfo* pInfo =
static_cast<CFWL_GridWidgetInfo*>(GetWidgetInfo(pWidget));
if (pInfo) {
pInfo->m_Margin[eMargin] = fMargin;
pInfo->m_dwMarginFlag |= (1 << eMargin);
}
return FWL_ERR_Succeeded;
}
FWL_ERR CFWL_GridImp::RemoveWidgetMargin(IFWL_Widget* pWidget,
FWL_GRIDMARGIN eMargin) {
CFWL_GridWidgetInfo* pInfo =
static_cast<CFWL_GridWidgetInfo*>(GetWidgetInfo(pWidget));
if (pInfo) {
pInfo->m_dwMarginFlag &= ~(1 << eMargin);
}
return FWL_ERR_Succeeded;
}
FX_FLOAT CFWL_GridImp::GetGridSize(FWL_GRIDSIZE eSize, FWL_GRIDUNIT& eUnit) {
eUnit = m_Size[eSize].eUnit;
return m_Size[eSize].fLength;
}
FWL_ERR CFWL_GridImp::SetGridSize(FWL_GRIDSIZE eSize,
FX_FLOAT fSize,
FWL_GRIDUNIT eUit) {
m_Size[eSize].fLength = fSize;
m_Size[eSize].eUnit = eUit;
return FWL_ERR_Succeeded;
}
CFWL_GridWidgetInfo* CFWL_GridImp::GetWidgetInfo(IFWL_Widget* pWidget) {
return static_cast<CFWL_GridWidgetInfo*>(m_mapWidgetInfo.GetValueAt(pWidget));
}
void CFWL_GridImp::ProcFixedColRow(CFWL_GridColRow* pColRow,
int32_t nIndex,
FX_FLOAT fColRowSize,
FX_BOOL bColumn) {
pColRow->m_fActualSize = fColRowSize;
FX_POSITION ps = m_mapWidgetInfo.GetStartPosition();
while (ps) {
void* key = nullptr;
void* value = nullptr;
m_mapWidgetInfo.GetNextAssoc(ps, key, value);
IFWL_Widget* pWidget = static_cast<IFWL_Widget*>(key);
CFWL_GridWidgetInfo* pInfo = static_cast<CFWL_GridWidgetInfo*>(value);
if (bColumn) {
if (pInfo->m_iColumn == nIndex && pInfo->m_iColumnSpan == 1) {
CalcWidgetWidth(pWidget, pInfo, pColRow->m_fActualSize);
}
} else {
if (pInfo->m_iRow == nIndex && pInfo->m_iRowSpan == 1) {
CalcWidgetHeigt(pWidget, pInfo, pColRow->m_fActualSize);
}
}
}
}
void CFWL_GridImp::ProcAutoColRow(CFWL_GridColRow* pColRow,
int32_t nIndex,
FX_BOOL bColumn) {
if (!pColRow)
return;
FX_FLOAT fMaxSize = 0, fWidgetSize = 0;
FX_POSITION ps = m_mapWidgetInfo.GetStartPosition();
while (ps) {
IFWL_Widget* pWidget = NULL;
CFWL_GridWidgetInfo* pInfo = NULL;
m_mapWidgetInfo.GetNextAssoc(ps, (void*&)pWidget, (void*&)pInfo);
if (!pWidget || !pInfo) {
continue;
}
if (bColumn) {
if (pInfo->m_iColumn != nIndex || pInfo->m_iColumnSpan != 1) {
continue;
}
fWidgetSize = CalcAutoColumnWidgetWidth(pWidget, pInfo);
if (fMaxSize < fWidgetSize) {
fMaxSize = fWidgetSize;
}
} else {
if (pInfo->m_iRow != nIndex || pInfo->m_iRowSpan != 1) {
continue;
}
fWidgetSize = CalcAutoColumnWidgetHeight(pWidget, pInfo);
if (fMaxSize < fWidgetSize) {
fMaxSize = fWidgetSize;
}
}
}
SetColRowActualSize(pColRow, fMaxSize);
}
void CFWL_GridImp::ProcScaledColRow(CFWL_GridColRow* pColRow,
int32_t nIndex,
FX_FLOAT fColRowSize,
FX_BOOL bColumn) {
if (fColRowSize > 0) {
ProcFixedColRow(pColRow, nIndex, fColRowSize, bColumn);
}
}
void CFWL_GridImp::CalcWidgetWidth(IFWL_Widget* pWidget,
CFWL_GridWidgetInfo* pInfo,
FX_FLOAT fColunmWidth) {
if (pInfo->m_Size[FWL_GRIDSIZE_Width].eUnit == FWL_GRIDUNIT_Fixed) {
SetWidgetActualWidth(pInfo, pInfo->m_Size[FWL_GRIDSIZE_Width].fLength);
} else {
FX_FLOAT fWidth = 0;
FX_FLOAT fLeftMargin = 0, fRightMargin = 0;
FX_BOOL bLeftMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Left, fLeftMargin);
FX_BOOL bRightMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Right, fRightMargin);
if (bLeftMargin && bRightMargin) {
fWidth = fColunmWidth - fLeftMargin - fRightMargin;
} else {
CFX_RectF rtAuto;
pWidget->GetWidgetRect(rtAuto, TRUE);
fWidth = rtAuto.Width();
}
SetWidgetActualWidth(pInfo, fWidth);
}
}
void CFWL_GridImp::CalcWidgetHeigt(IFWL_Widget* pWidget,
CFWL_GridWidgetInfo* pInfo,
FX_FLOAT fRowHeigt) {
if (pInfo->m_Size[FWL_GRIDSIZE_Height].eUnit == FWL_GRIDUNIT_Fixed) {
SetWidgetActualHeight(pInfo, pInfo->m_Size[FWL_GRIDSIZE_Height].fLength);
} else {
FX_FLOAT fHeight = 0;
FX_FLOAT fTopMargin = 0, fBottomMargin = 0;
FX_BOOL bTopMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Top, fTopMargin);
FX_BOOL bBottomMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Bottom, fBottomMargin);
if (bTopMargin && bBottomMargin) {
fHeight = fRowHeigt - fTopMargin - fBottomMargin;
} else {
CFX_RectF rtAuto;
pWidget->GetWidgetRect(rtAuto, TRUE);
fHeight = rtAuto.Height();
}
SetWidgetActualHeight(pInfo, fHeight);
}
}
FX_FLOAT CFWL_GridImp::CalcAutoColumnWidgetWidth(IFWL_Widget* pWidget,
CFWL_GridWidgetInfo* pInfo) {
FX_FLOAT fLeftMargin = 0, fRightMargin = 0;
FX_BOOL bLeftMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Left, fLeftMargin);
FX_BOOL bRightMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Right, fRightMargin);
if (pInfo->m_Size[FWL_GRIDSIZE_Width].eUnit == FWL_GRIDUNIT_Fixed) {
SetWidgetActualWidth(pInfo, pInfo->m_Size[FWL_GRIDSIZE_Width].fLength);
} else {
CFX_RectF rtAuto;
pWidget->GetWidgetRect(rtAuto, TRUE);
FX_FLOAT fWidth = rtAuto.width;
SetWidgetActualWidth(pInfo, fWidth);
}
FX_FLOAT fTotal = pInfo->m_fActualWidth;
if (bLeftMargin) {
fTotal += fLeftMargin;
}
if (bRightMargin) {
fTotal += fRightMargin;
}
return fTotal;
}
FX_FLOAT CFWL_GridImp::CalcAutoColumnWidgetHeight(IFWL_Widget* pWidget,
CFWL_GridWidgetInfo* pInfo) {
FX_FLOAT fTopMargin = 0, fBottomMargin = 0;
FX_BOOL bTopMargin = GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Top, fTopMargin);
FX_BOOL bBottomMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Bottom, fBottomMargin);
if (pInfo->m_Size[FWL_GRIDSIZE_Height].eUnit == FWL_GRIDUNIT_Fixed) {
SetWidgetActualHeight(pInfo, pInfo->m_Size[FWL_GRIDSIZE_Height].fLength);
} else {
CFX_RectF rtAuto;
pWidget->GetWidgetRect(rtAuto, TRUE);
FX_FLOAT fHeight = rtAuto.height;
SetWidgetActualHeight(pInfo, fHeight);
}
FX_FLOAT fTotal = pInfo->m_fActualHeight;
if (bTopMargin) {
fTotal += fTopMargin;
}
if (bBottomMargin) {
fTotal += fBottomMargin;
}
return fTotal;
}
FX_FLOAT CFWL_GridImp::ProcessColumns(FX_FLOAT fWidth) {
if (fWidth <= 0) {
return ProcessUnCertainColumns();
}
int32_t iColumns = m_Columns.GetSize();
if (iColumns < 1) {
return fWidth;
}
FX_FLOAT fFixedWidth = 0;
FX_FLOAT fAutoWidth = 0;
CFX_PtrArray autoColumns;
CFX_PtrArray scaledColumns;
FX_FLOAT fScaledColumnNum = 0;
for (int32_t i = 0; i < iColumns; i++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(m_Columns[i]);
if (!pColRow) {
continue;
}
switch (pColRow->m_Size.eUnit) {
case FWL_GRIDUNIT_Fixed: {
SetColRowActualSize(pColRow, pColRow->m_Size.fLength);
fFixedWidth += pColRow->m_fActualSize;
break;
}
case FWL_GRIDUNIT_Auto: {
ProcAutoColRow(pColRow, i, TRUE);
autoColumns.Add(pColRow);
break;
}
case FWL_GRIDUNIT_Scaled:
default: {
fScaledColumnNum += pColRow->m_Size.fLength;
scaledColumns.Add(pColRow);
SetColRowActualSize(pColRow, 0);
}
}
}
FX_POSITION ps = m_mapWidgetInfo.GetStartPosition();
while (ps) {
IFWL_Widget* pWidget = NULL;
CFWL_GridWidgetInfo* pInfo = NULL;
m_mapWidgetInfo.GetNextAssoc(ps, (void*&)pWidget, (void*&)pInfo);
if (!pInfo || pInfo->m_iColumnSpan < 2) {
continue;
}
CFX_PtrArray spanAutoColumns;
FX_FLOAT fSpanSize = 0;
int32_t iAutoColRows = 0;
int32_t iScaledColRows = 0;
for (int32_t i = 0; i < pInfo->m_iColumnSpan; i++) {
CFWL_GridColRow* pColumn = reinterpret_cast<CFWL_GridColRow*>(
GetColRow(TRUE, pInfo->m_iColumn + i));
if (!pColumn) {
break;
}
fSpanSize += pColumn->m_fActualSize;
if (pColumn->m_Size.eUnit == FWL_GRIDUNIT_Auto) {
iAutoColRows++;
spanAutoColumns.Add(pColumn);
} else if (pColumn->m_Size.eUnit == FWL_GRIDUNIT_Scaled) {
iScaledColRows++;
}
}
if (iAutoColRows < 1) {
continue;
}
FX_FLOAT fWidgetWidth = CalcAutoColumnWidgetWidth(pWidget, pInfo);
if (fWidgetWidth > fSpanSize) {
if (iScaledColRows > 0) {
} else {
SetSpanAutoColRowSize(spanAutoColumns, fWidgetWidth - fSpanSize);
}
}
}
int32_t iAutoCols = autoColumns.GetSize();
for (int32_t k = 0; k < iAutoCols; k++) {
fAutoWidth += static_cast<CFWL_GridColRow*>(autoColumns[k])->m_fActualSize;
}
FX_FLOAT fScaledWidth = fWidth - fFixedWidth - fAutoWidth;
if (fScaledWidth > 0 && fScaledColumnNum > 0) {
SetScaledColRowsSize(scaledColumns, fScaledWidth, fScaledColumnNum);
}
return fWidth;
}
FX_FLOAT CFWL_GridImp::ProcessRows(FX_FLOAT fHeight) {
if (fHeight <= 0) {
return ProcessUnCertainRows();
}
int32_t iRows = m_Rows.GetSize();
if (iRows < 1) {
return fHeight;
}
FX_FLOAT fFixedHeight = 0;
FX_FLOAT fAutoHeigt = 0;
CFX_PtrArray autoRows;
CFX_PtrArray scaledRows;
FX_FLOAT fScaledRowNum = 0;
for (int32_t i = 0; i < iRows; i++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(m_Rows[i]);
if (!pColRow) {
continue;
}
switch (pColRow->m_Size.eUnit) {
case FWL_GRIDUNIT_Fixed: {
SetColRowActualSize(pColRow, pColRow->m_Size.fLength);
fFixedHeight += pColRow->m_fActualSize;
break;
}
case FWL_GRIDUNIT_Auto: {
ProcAutoColRow(pColRow, i, FALSE);
autoRows.Add(pColRow);
break;
}
case FWL_GRIDUNIT_Scaled:
default: {
fScaledRowNum += pColRow->m_Size.fLength;
scaledRows.Add(pColRow);
SetColRowActualSize(pColRow, 0);
break;
}
}
}
FX_POSITION ps = m_mapWidgetInfo.GetStartPosition();
while (ps) {
IFWL_Widget* pWidget = NULL;
CFWL_GridWidgetInfo* pInfo = NULL;
m_mapWidgetInfo.GetNextAssoc(ps, (void*&)pWidget, (void*&)pInfo);
if (!pInfo || pInfo->m_iRowSpan < 2) {
continue;
}
CFX_PtrArray spanAutoRows;
FX_FLOAT fSpanSize = 0;
int32_t iAutoColRows = 0;
int32_t iScaledColRows = 0;
for (int32_t i = 0; i < pInfo->m_iRowSpan; i++) {
CFWL_GridColRow* pRow = reinterpret_cast<CFWL_GridColRow*>(
GetColRow(FALSE, pInfo->m_iRow + i));
if (!pRow) {
break;
}
fSpanSize += pRow->m_fActualSize;
if (pRow->m_Size.eUnit == FWL_GRIDUNIT_Auto) {
iAutoColRows++;
spanAutoRows.Add(pRow);
} else if (pRow->m_Size.eUnit == FWL_GRIDUNIT_Scaled) {
iScaledColRows++;
}
}
if (iAutoColRows < 1) {
continue;
}
FX_FLOAT fWidgetHeight = CalcAutoColumnWidgetHeight(pWidget, pInfo);
if (fWidgetHeight > fSpanSize) {
if (iScaledColRows > 0) {
} else {
SetSpanAutoColRowSize(spanAutoRows, fWidgetHeight - fSpanSize);
}
}
}
int32_t iAutoRows = autoRows.GetSize();
for (int32_t k = 0; k < iAutoRows; k++) {
fAutoHeigt +=
reinterpret_cast<CFWL_GridColRow*>(autoRows[k])->m_fActualSize;
}
FX_FLOAT fScaledHeight = fHeight - fFixedHeight - fAutoHeigt;
if (fScaledHeight > 0 && fScaledRowNum > 0) {
SetScaledColRowsSize(scaledRows, fScaledHeight, fScaledRowNum);
}
return fHeight;
}
FX_FLOAT CFWL_GridImp::ProcessUnCertainColumns() {
int32_t iColumns = m_Columns.GetSize();
if (iColumns < 1) {
CFWL_GridColRow* pColRow = new CFWL_GridColRow;
pColRow->m_Size.eUnit = FWL_GRIDUNIT_Auto;
ProcAutoColRow(pColRow, 0, TRUE);
FX_FLOAT fWidth = pColRow->m_fActualSize;
delete pColRow;
return fWidth;
}
FX_FLOAT fFixedWidth = 0;
CFX_PtrArray autoColumns;
CFX_PtrArray scaledColumns;
FX_FLOAT fScaledColumnNum = 0;
FX_FLOAT fScaledMaxPerWidth = 0;
for (int32_t i = 0; i < iColumns; i++) {
CFWL_GridColRow* pColRow = reinterpret_cast<CFWL_GridColRow*>(m_Columns[i]);
if (!pColRow) {
continue;
}
switch (pColRow->m_Size.eUnit) {
case FWL_GRIDUNIT_Fixed: {
SetColRowActualSize(pColRow, pColRow->m_Size.fLength);
fFixedWidth += pColRow->m_fActualSize;
break;
}
case FWL_GRIDUNIT_Auto: {
ProcAutoColRow(pColRow, i, TRUE);
autoColumns.Add(pColRow);
break;
}
case FWL_GRIDUNIT_Scaled:
default: {
ProcAutoColRow(pColRow, i, TRUE);
fScaledColumnNum += pColRow->m_Size.fLength;
scaledColumns.Add(pColRow);
if (pColRow->m_Size.fLength <= 0) {
break;
}
FX_FLOAT fPerWidth = pColRow->m_fActualSize / pColRow->m_Size.fLength;
if (fPerWidth > fScaledMaxPerWidth) {
fScaledMaxPerWidth = fPerWidth;
}
}
}
}
iColumns = scaledColumns.GetSize();
for (int32_t j = 0; j < iColumns; j++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(scaledColumns[j]);
if (!pColRow) {
continue;
}
SetColRowActualSize(pColRow, fScaledMaxPerWidth * pColRow->m_Size.fLength);
}
FX_POSITION ps = m_mapWidgetInfo.GetStartPosition();
while (ps) {
IFWL_Widget* pWidget = NULL;
CFWL_GridWidgetInfo* pInfo = NULL;
m_mapWidgetInfo.GetNextAssoc(ps, (void*&)pWidget, (void*&)pInfo);
if (!pInfo || pInfo->m_iColumnSpan < 2) {
continue;
}
CFX_PtrArray spanAutoColumns;
CFX_PtrArray spanScaledColumns;
FX_FLOAT fSpanSize = 0;
FX_FLOAT fScaledSum = 0;
int32_t iAutoColRows = 0;
int32_t iScaledColRows = 0;
for (int32_t i = 0; i < pInfo->m_iColumnSpan; i++) {
CFWL_GridColRow* pColumn = reinterpret_cast<CFWL_GridColRow*>(
GetColRow(TRUE, pInfo->m_iColumn + i));
if (!pColumn) {
break;
}
fSpanSize += pColumn->m_fActualSize;
if (pColumn->m_Size.eUnit == FWL_GRIDUNIT_Auto) {
iAutoColRows++;
spanAutoColumns.Add(pColumn);
} else if (pColumn->m_Size.eUnit == FWL_GRIDUNIT_Scaled) {
iScaledColRows++;
fScaledSum += pColumn->m_Size.fLength;
spanScaledColumns.Add(pColumn);
}
}
if (iAutoColRows < 1 && iScaledColRows < 1) {
continue;
}
FX_FLOAT fWidgetWidth = CalcAutoColumnWidgetWidth(pWidget, pInfo);
if (fWidgetWidth > fSpanSize) {
if (iScaledColRows > 0) {
if (fScaledSum <= 0) {
continue;
}
SetSpanScaledColRowSize(spanScaledColumns, fWidgetWidth - fSpanSize,
fScaledSum);
} else {
SetSpanAutoColRowSize(spanAutoColumns, fWidgetWidth - fSpanSize);
}
}
}
FX_FLOAT fAutoWidth = 0;
int32_t iAutoCols = autoColumns.GetSize();
for (int32_t m = 0; m < iAutoCols; m++) {
fAutoWidth += static_cast<CFWL_GridColRow*>(autoColumns[m])->m_fActualSize;
}
FX_FLOAT fScaledWidth = 0;
iColumns = scaledColumns.GetSize();
for (int32_t n = 0; n < iColumns; n++) {
fScaledWidth +=
static_cast<CFWL_GridColRow*>(scaledColumns[n])->m_fActualSize;
}
return fFixedWidth + fAutoWidth + fScaledWidth;
}
FX_FLOAT CFWL_GridImp::ProcessUnCertainRows() {
int32_t iRows = m_Rows.GetSize();
if (iRows < 1) {
CFWL_GridColRow* pColRow = new CFWL_GridColRow;
pColRow->m_Size.eUnit = FWL_GRIDUNIT_Auto;
ProcAutoColRow(pColRow, 0, FALSE);
FX_FLOAT fWidth = pColRow->m_fActualSize;
delete pColRow;
return fWidth;
}
FX_FLOAT fFixedHeight = 0;
CFX_PtrArray autoRows;
CFX_PtrArray scaledRows;
FX_FLOAT fScaledRowNum = 0;
FX_FLOAT fScaledMaxPerHeight = 0;
for (int32_t i = 0; i < iRows; i++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(m_Rows[i]);
if (!pColRow) {
continue;
}
switch (pColRow->m_Size.eUnit) {
case FWL_GRIDUNIT_Fixed: {
SetColRowActualSize(pColRow, pColRow->m_Size.fLength);
fFixedHeight += pColRow->m_fActualSize;
break;
}
case FWL_GRIDUNIT_Auto: {
ProcAutoColRow(pColRow, i, FALSE);
autoRows.Add(pColRow);
break;
}
case FWL_GRIDUNIT_Scaled:
default: {
ProcAutoColRow(pColRow, i, FALSE);
fScaledRowNum += pColRow->m_Size.fLength;
scaledRows.Add(pColRow);
if (pColRow->m_Size.fLength > 0) {
FX_FLOAT fPerHeight =
pColRow->m_fActualSize / pColRow->m_Size.fLength;
if (fPerHeight > fScaledMaxPerHeight) {
fScaledMaxPerHeight = fPerHeight;
}
}
break;
}
}
}
iRows = scaledRows.GetSize();
for (int32_t j = 0; j < iRows; j++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(scaledRows[j]);
if (!pColRow) {
continue;
}
SetColRowActualSize(pColRow, fScaledMaxPerHeight * pColRow->m_Size.fLength);
}
FX_POSITION ps = m_mapWidgetInfo.GetStartPosition();
while (ps) {
void* key = nullptr;
void* value = nullptr;
m_mapWidgetInfo.GetNextAssoc(ps, key, value);
IFWL_Widget* pWidget = static_cast<IFWL_Widget*>(key);
CFWL_GridWidgetInfo* pInfo = static_cast<CFWL_GridWidgetInfo*>(value);
if (pInfo->m_iRowSpan < 2) {
continue;
}
CFX_PtrArray spanAutoRows;
CFX_PtrArray spanScaledRows;
FX_FLOAT fSpanSize = 0;
FX_FLOAT fScaledSum = 0;
int32_t iAutoColRows = 0;
int32_t iScaledColRows = 0;
for (int32_t i = 0; i < pInfo->m_iRowSpan; i++) {
CFWL_GridColRow* pRow = reinterpret_cast<CFWL_GridColRow*>(
GetColRow(FALSE, pInfo->m_iRow + i));
if (!pRow) {
break;
}
fSpanSize += pRow->m_fActualSize;
if (pRow->m_Size.eUnit == FWL_GRIDUNIT_Auto) {
iAutoColRows++;
spanAutoRows.Add(pRow);
} else if (pRow->m_Size.eUnit == FWL_GRIDUNIT_Scaled) {
iScaledColRows++;
fScaledSum += pRow->m_Size.fLength;
spanScaledRows.Add(pRow);
}
}
if (iAutoColRows < 1 && iScaledColRows < 1) {
continue;
}
FX_FLOAT fWidgetHeight = CalcAutoColumnWidgetHeight(pWidget, pInfo);
if (fWidgetHeight > fSpanSize) {
if (iScaledColRows > 0) {
if (fScaledSum <= 0) {
continue;
}
SetSpanScaledColRowSize(spanScaledRows, fWidgetHeight - fSpanSize,
fScaledSum);
} else {
SetSpanAutoColRowSize(spanAutoRows, fWidgetHeight - fSpanSize);
}
}
}
FX_FLOAT fAutoHeigt = 0;
int32_t iAutoRows = autoRows.GetSize();
for (int32_t m = 0; m < iAutoRows; m++) {
fAutoHeigt += static_cast<CFWL_GridColRow*>(autoRows[m])->m_fActualSize;
}
FX_FLOAT fScaledHeight = 0;
iRows = scaledRows.GetSize();
for (int32_t n = 0; n < iRows; n++) {
fScaledHeight +=
static_cast<CFWL_GridColRow*>(scaledRows[n])->m_fActualSize;
}
return fFixedHeight + fAutoHeigt + fScaledHeight;
}
FX_BOOL CFWL_GridImp::SetColRowActualSize(CFWL_GridColRow* pColRow,
FX_FLOAT fSize,
FX_BOOL bSetBeyond) {
if (pColRow->m_MinSize.eUnit == FWL_GRIDUNIT_Fixed &&
fSize < pColRow->m_MinSize.fLength) {
pColRow->m_fActualSize = pColRow->m_MinSize.fLength;
return FALSE;
}
if (pColRow->m_MaxSize.eUnit == FWL_GRIDUNIT_Fixed &&
fSize > pColRow->m_MaxSize.fLength) {
pColRow->m_fActualSize = pColRow->m_MaxSize.fLength;
return FALSE;
}
if (bSetBeyond) {
return TRUE;
}
pColRow->m_fActualSize = fSize;
return TRUE;
}
FX_FLOAT CFWL_GridImp::SetWidgetActualWidth(CFWL_GridWidgetInfo* pInfo,
FX_FLOAT fWidth) {
if (pInfo->m_Size[FWL_GRIDSIZE_MinWidth].eUnit == FWL_GRIDUNIT_Fixed &&
fWidth < pInfo->m_Size[FWL_GRIDSIZE_MinWidth].fLength) {
fWidth = pInfo->m_Size[FWL_GRIDSIZE_MinWidth].fLength;
}
if (pInfo->m_Size[FWL_GRIDSIZE_MaxWidth].eUnit == FWL_GRIDUNIT_Fixed &&
fWidth > pInfo->m_Size[FWL_GRIDSIZE_MaxWidth].fLength) {
fWidth = pInfo->m_Size[FWL_GRIDSIZE_MaxWidth].fLength;
}
pInfo->m_fActualWidth = fWidth;
return fWidth;
}
FX_FLOAT CFWL_GridImp::SetWidgetActualHeight(CFWL_GridWidgetInfo* pInfo,
FX_FLOAT fHeight) {
if (pInfo->m_Size[FWL_GRIDSIZE_MinHeight].eUnit == FWL_GRIDUNIT_Fixed &&
fHeight < pInfo->m_Size[FWL_GRIDSIZE_MinHeight].fLength) {
fHeight = pInfo->m_Size[FWL_GRIDSIZE_MinHeight].fLength;
}
if (pInfo->m_Size[FWL_GRIDSIZE_MaxHeight].eUnit == FWL_GRIDUNIT_Fixed &&
fHeight > pInfo->m_Size[FWL_GRIDSIZE_MaxHeight].fLength) {
fHeight = pInfo->m_Size[FWL_GRIDSIZE_MaxHeight].fLength;
}
pInfo->m_fActualHeight = fHeight;
return fHeight;
}
void CFWL_GridImp::SetAllWidgetsRect() {
FX_FLOAT fStartLeft = 0;
int32_t iColumns = m_Columns.GetSize();
for (int32_t i = 0; i < iColumns; i++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(m_Columns[i]);
if (!pColRow) {
continue;
}
pColRow->m_fActualPos = fStartLeft;
fStartLeft += pColRow->m_fActualSize;
}
FX_FLOAT fStartTop = 0;
int32_t iRows = m_Rows.GetSize();
for (int32_t j = 0; j < iRows; j++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(m_Rows[j]);
if (!pColRow) {
continue;
}
pColRow->m_fActualPos = fStartTop;
fStartTop += pColRow->m_fActualSize;
}
FX_POSITION ps = m_mapWidgetInfo.GetStartPosition();
while (ps) {
IFWL_Widget* pWidget = NULL;
CFWL_GridWidgetInfo* pInfo = NULL;
m_mapWidgetInfo.GetNextAssoc(ps, (void*&)pWidget, (void*&)pInfo);
if (!pWidget || !pInfo) {
continue;
}
FX_FLOAT fColumnStart = 0;
CFWL_GridColRow* pColumn =
reinterpret_cast<CFWL_GridColRow*>(GetColRow(TRUE, pInfo->m_iColumn));
if (pColumn) {
fColumnStart = pColumn->m_fActualPos;
}
FX_FLOAT fRowStart = 0;
CFWL_GridColRow* pRow =
reinterpret_cast<CFWL_GridColRow*>(GetColRow(FALSE, pInfo->m_iRow));
if (pRow) {
fRowStart = pRow->m_fActualPos;
}
FX_FLOAT fColumnWidth = 0;
if (iColumns > 0) {
for (int32_t j = 0; j < pInfo->m_iColumnSpan; j++) {
CFWL_GridColRow* pCol = reinterpret_cast<CFWL_GridColRow*>(
GetColRow(TRUE, pInfo->m_iColumn + j));
if (!pCol) {
break;
}
fColumnWidth += pCol->m_fActualSize;
}
} else {
fColumnWidth = m_pProperties->m_rtWidget.width;
}
FX_FLOAT fRowHeight = 0;
if (iRows > 0) {
for (int32_t k = 0; k < pInfo->m_iRowSpan; k++) {
CFWL_GridColRow* pR = reinterpret_cast<CFWL_GridColRow*>(
GetColRow(FALSE, pInfo->m_iRow + k));
if (!pR) {
break;
}
fRowHeight += pR->m_fActualSize;
}
} else {
fRowHeight = m_pProperties->m_rtWidget.height;
}
FX_FLOAT fLeftMargin = 0, fRightMargin = 0;
FX_BOOL bLeftMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Left, fLeftMargin);
FX_BOOL bRightMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Right, fRightMargin);
FX_FLOAT fTopMargin = 0, fBottomMargin = 0;
FX_BOOL bTopMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Top, fTopMargin);
FX_BOOL bBottomMargin =
GetWidgetMargin(pWidget, FWL_GRIDMARGIN_Bottom, fBottomMargin);
FWL_LAYOUTDATA ltd;
ltd.fWidth = 0;
ltd.fHeight = 0;
if (pInfo->m_Size[FWL_GRIDSIZE_Width].eUnit == FWL_GRIDUNIT_Fixed) {
SetWidgetActualWidth(pInfo, pInfo->m_Size[FWL_GRIDSIZE_Width].fLength);
ltd.fWidth = pInfo->m_fActualWidth;
} else {
if (bLeftMargin && bRightMargin) {
SetWidgetActualWidth(pInfo, fColumnWidth - fLeftMargin - fRightMargin);
ltd.fWidth = pInfo->m_fActualWidth;
} else {
CFX_RectF rtAuto;
pWidget->GetWidgetRect(rtAuto, TRUE);
SetWidgetActualWidth(pInfo, rtAuto.width);
}
}
if (pInfo->m_Size[FWL_GRIDSIZE_Height].eUnit == FWL_GRIDUNIT_Fixed) {
SetWidgetActualHeight(pInfo, pInfo->m_Size[FWL_GRIDSIZE_Height].fLength);
ltd.fHeight = pInfo->m_fActualHeight;
} else {
if (bTopMargin && bBottomMargin) {
SetWidgetActualHeight(pInfo, fRowHeight - fTopMargin - fBottomMargin);
ltd.fHeight = pInfo->m_fActualHeight;
} else {
CFX_RectF rtAuto;
pWidget->GetWidgetRect(rtAuto, TRUE);
SetWidgetActualHeight(pInfo, rtAuto.height);
}
}
if (bLeftMargin && bRightMargin &&
pInfo->m_Size[FWL_GRIDSIZE_Width].eUnit == FWL_GRIDUNIT_Fixed) {
fLeftMargin =
fColumnStart + fLeftMargin +
(fColumnWidth - fLeftMargin - fRightMargin - pInfo->m_fActualWidth) /
2;
} else if (bLeftMargin) {
fLeftMargin = fColumnStart + fLeftMargin;
} else if (bRightMargin) {
fLeftMargin =
fColumnStart + fColumnWidth - fRightMargin - pInfo->m_fActualWidth;
} else {
fLeftMargin = fColumnStart;
}
if (bTopMargin && bBottomMargin &&
pInfo->m_Size[FWL_GRIDSIZE_Height].eUnit == FWL_GRIDUNIT_Fixed) {
fTopMargin =
fRowStart + fTopMargin +
(fRowHeight - fTopMargin - fBottomMargin - pInfo->m_fActualHeight) /
2;
} else if (bTopMargin) {
fTopMargin = fRowStart + fTopMargin;
} else if (bBottomMargin) {
fTopMargin =
fRowStart + fRowHeight - fBottomMargin - pInfo->m_fActualHeight;
} else {
fTopMargin = fRowStart;
}
CFX_RectF rtWidget, rtOld;
rtWidget.Set(fLeftMargin, fTopMargin, pInfo->m_fActualWidth,
pInfo->m_fActualHeight);
pWidget->GetWidgetRect(rtOld);
if (rtWidget == rtOld) {
continue;
}
pWidget->SetWidgetRect(rtWidget);
if (rtWidget.width == rtOld.width && rtWidget.height == rtOld.height) {
continue;
}
pWidget->Update();
}
}
FX_BOOL CFWL_GridImp::IsGrid(IFWL_Widget* pWidget) {
if (!pWidget)
return FALSE;
return pWidget->GetClassID() == FWL_CLASSHASH_Grid;
}
void CFWL_GridImp::SetSpanAutoColRowSize(const CFX_PtrArray& spanAutos,
FX_FLOAT fTotalSize) {
int32_t iAutoColRows = spanAutos.GetSize();
if (iAutoColRows < 1) {
return;
}
CFX_PtrArray autoNoMinMaxs;
FX_FLOAT fAutoPer = fTotalSize / iAutoColRows;
for (int32_t j = 0; j < iAutoColRows; j++) {
CFWL_GridColRow* pColumn = static_cast<CFWL_GridColRow*>(spanAutos[j]);
FX_FLOAT fOrgSize = pColumn->m_fActualSize;
if (SetColRowActualSize(pColumn, pColumn->m_fActualSize + fAutoPer, TRUE)) {
autoNoMinMaxs.Add(pColumn);
} else {
fTotalSize -= pColumn->m_fActualSize - fOrgSize;
int32_t iNoMinMax = iAutoColRows - (j + 1 - autoNoMinMaxs.GetSize());
if (iNoMinMax > 0 && fTotalSize > 0) {
fAutoPer = fTotalSize / iNoMinMax;
} else {
break;
}
}
}
int32_t iNormals = autoNoMinMaxs.GetSize();
if (fTotalSize > 0) {
if (iNormals == iAutoColRows) {
fAutoPer = fTotalSize / iNormals;
for (int32_t k = 0; k < iNormals; k++) {
CFWL_GridColRow* pColumn =
static_cast<CFWL_GridColRow*>(autoNoMinMaxs[k]);
pColumn->m_fActualSize += fAutoPer;
}
} else {
SetSpanAutoColRowSize(autoNoMinMaxs, fTotalSize);
}
} else {
}
}
void CFWL_GridImp::SetSpanScaledColRowSize(const CFX_PtrArray& spanScaleds,
FX_FLOAT fTotalSize,
FX_FLOAT fTotalScaledNum) {
int32_t iScaledColRows = spanScaleds.GetSize();
if (iScaledColRows < 1) {
return;
}
CFX_PtrArray autoNoMinMaxs;
FX_FLOAT fPerSize = fTotalSize / fTotalScaledNum;
for (int32_t i = 0; i < iScaledColRows; i++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(spanScaleds[i]);
if (SetColRowActualSize(pColRow, pColRow->m_fActualSize +
fPerSize * pColRow->m_Size.fLength,
TRUE)) {
autoNoMinMaxs.Add(pColRow);
} else {
fTotalSize -= pColRow->m_fActualSize;
fTotalScaledNum -= pColRow->m_Size.fLength;
int32_t iNoMinMax = iScaledColRows - (i + 1 - autoNoMinMaxs.GetSize());
if (iNoMinMax > 0 && fTotalSize > 0) {
fPerSize = fTotalSize / fTotalScaledNum;
} else {
break;
}
}
}
int32_t iNormals = autoNoMinMaxs.GetSize();
if (fTotalSize > 0) {
if (iNormals == iScaledColRows) {
fPerSize = fTotalSize / fTotalScaledNum;
for (int32_t j = 0; j < iNormals; j++) {
CFWL_GridColRow* pColumn =
static_cast<CFWL_GridColRow*>(autoNoMinMaxs[j]);
pColumn->m_fActualSize += fPerSize * pColumn->m_Size.fLength;
}
} else {
SetSpanScaledColRowSize(autoNoMinMaxs, fTotalSize, fTotalScaledNum);
}
} else {
}
}
void CFWL_GridImp::SetScaledColRowsSize(const CFX_PtrArray& spanScaleds,
FX_FLOAT fTotalSize,
FX_FLOAT fTotalScaledNum) {
int32_t iScaledColRows = spanScaleds.GetSize();
if (iScaledColRows < 1) {
return;
}
CFX_PtrArray autoNoMinMaxs;
FX_FLOAT fPerSize = fTotalSize / fTotalScaledNum;
for (int32_t i = 0; i < iScaledColRows; i++) {
CFWL_GridColRow* pColRow = static_cast<CFWL_GridColRow*>(spanScaleds[i]);
if (!pColRow) {
continue;
}
FX_FLOAT fSize = fPerSize * pColRow->m_Size.fLength;
FX_FLOAT fOrgSize = pColRow->m_fActualSize;
if (SetColRowActualSize(pColRow, fSize, TRUE)) {
autoNoMinMaxs.Add(pColRow);
} else {
fTotalSize -= pColRow->m_fActualSize - fOrgSize;
fTotalScaledNum -= pColRow->m_Size.fLength;
int32_t iNoMinMax = iScaledColRows - (i + 1 - autoNoMinMaxs.GetSize());
if (iNoMinMax > 0 && fTotalSize > 0) {
fPerSize = fTotalSize / fTotalScaledNum;
} else {
break;
}
}
}
int32_t iNormals = autoNoMinMaxs.GetSize();
if (fTotalSize > 0) {
if (iNormals == iScaledColRows) {
fPerSize = fTotalSize / fTotalScaledNum;
for (int32_t i = 0; i < iNormals; i++) {
CFWL_GridColRow* pColRow =
static_cast<CFWL_GridColRow*>(autoNoMinMaxs[i]);
if (!pColRow) {
continue;
}
FX_FLOAT fSize = fPerSize * pColRow->m_Size.fLength;
pColRow->m_fActualSize = fSize;
}
} else {
SetScaledColRowsSize(autoNoMinMaxs, fTotalSize, fTotalScaledNum);
}
} else {
}
}
CFWL_GridImpDelegate::CFWL_GridImpDelegate(CFWL_GridImp* pOwner)
: m_pOwner(pOwner) {
}
int32_t CFWL_GridImpDelegate::OnProcessMessage(CFWL_Message* pMessage) {
if (pMessage->GetClassID() != FWL_MSGHASH_Mouse) {
return 0;
}
CFWL_MsgMouse* pMsg = static_cast<CFWL_MsgMouse*>(pMessage);
if (pMsg->m_dwCmd != FWL_MSGMOUSECMD_LButtonDown) {
return 0;
}
return 1;
}
FWL_ERR CFWL_GridImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics,
const CFX_Matrix* pMatrix) {
return m_pOwner->DrawWidget(pGraphics, pMatrix);
}
|
andoma/pdfium
|
xfa/src/fwl/src/core/fwl_gridimp.cpp
|
C++
|
bsd-3-clause
| 48,312
|
$(document).ready(function() {
$('#sendReview').click(function(){
if ($('#author').val() == '') {
alert('Укажите свое имя!');
return false;
}
if ($('#comment').val() == '') {
alert('Введите текст отзыва!');
return false;
}
if ($('#city').val() == '') {
alert('Укажите свой адрес!');
return false;
}
$.ajax({type: 'POST', url: '/ajax/add_review', async: true, data:{
author: $('#author').val(),
city: $('#city').val(),
comment: $('#comment').val(),
}})
.done(function(data){
$('#sendReview').remove();
$('#respond .modal-body').html('<div class="alert alert-success"><strong>Отзыв успешно отправлен!</strong><br /> Ваш отзыв появится на сайте после проверки модератором. Спасибо!.</div>');
});
});
});
|
desc0n/dadaauto
|
public/js/scripts.js
|
JavaScript
|
bsd-3-clause
| 1,047
|
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Signing Model Objects
This module contains classes that encapsulate data about the signing process.
"""
import os.path
class CodeSignedProduct(object):
"""Represents a build product that will be signed with `codesign(1)`."""
def __init__(self,
path,
identifier,
options=None,
requirements=None,
identifier_requirement=True,
sign_with_identifier=False,
entitlements=None,
verify_options=None):
"""A build product to be codesigned.
Args:
path: The path to the product to be signed. This is relative to a
work directory containing the build products.
identifier: The unique identifier set when code signing. This is
only explicitly passed with the `--identifier` flag if
|sign_with_identifier| is True.
options: Options flags to pass to `codesign --options`, from
|CodeSignOptions|.
requirements: String for additional `--requirements` to pass to the
`codesign` command. These are joined with a space to the
|config.CodeSignConfig.codesign_requirements_basic| string. See
|CodeSignedProduct.requirements_string()| for details.
identifier_requirement: If True, a designated identifier requirement
based on |identifier| will be inserted into the requirements
string. If False, then no designated requirement will be
generated based on the identifier.
sign_with_identifier: If True, then the identifier will be specified
when running the `codesign` command. If False, `codesign` will
infer the identifier itself.
entitlements: File name of the entitlements file to sign the product
with. The file should reside in the |Paths.packaging_dir|.
verify_options: Flags to pass to `codesign --verify`, from
|VerifyOptions|.
"""
self.path = path
self.identifier = identifier
if not CodeSignOptions.valid(options):
raise ValueError('Invalid CodeSignOptions: {}'.format(options))
self.options = options
self.requirements = requirements
self.identifier_requirement = identifier_requirement
self.sign_with_identifier = sign_with_identifier
self.entitlements = entitlements
if not VerifyOptions.valid(verify_options):
raise ValueError('Invalid VerifyOptions: {}'.format(verify_options))
self.verify_options = verify_options
def requirements_string(self, config):
"""Produces a full requirements string for the product.
Args:
config: A |config.CodeSignConfig| object.
Returns:
A string for designated requirements of the product, which can be
passed to `codesign --requirements`.
"""
# If the signing identity indicates ad-hoc (i.e. no real signing
# identity), do not enforce any requirements. Ad hoc signing will append
# a hash to the identifier, which would violate the
# identifier_requirement and most other requirements that would be
# specified.
if config.identity == '-':
return ''
reqs = []
if self.identifier_requirement:
reqs.append('designated => identifier "{identifier}"'.format(
identifier=self.identifier))
if self.requirements:
reqs.append(self.requirements)
if config.codesign_requirements_basic:
reqs.append(config.codesign_requirements_basic)
return ' '.join(reqs)
def __repr__(self):
return 'CodeSignedProduct(identifier={0.identifier}, ' \
'options={0.options}, path={0.path})'.format(self)
def make_enum(class_name, options):
"""Makes a new class type for an enum.
Args:
class_name: Name of the new type to make.
options: A dictionary of enum options to use. The keys will become
attributes on the class, and the values will be wrapped in a tuple
so that the options can be joined together.
Returns:
A new class for the enum.
"""
attrs = {}
@classmethod
def valid(cls, opts_to_check):
"""Tests if the specified |opts_to_check| are valid.
Args:
options: Iterable of option strings.
Returns:
True if all the options are valid, False if otherwise.
"""
if opts_to_check is None:
return True
valid_values = options.values()
return all([option in valid_values for option in opts_to_check])
attrs['valid'] = valid
for name, value in options.items():
assert type(name) is str
assert type(value) is str
attrs[name] = (value,)
return type(class_name, (object,), attrs)
"""Enum for the options that can be specified when validating the results of
code signing.
These options are passed to `codesign --verify` after the
|CodeSignedProduct| has been signed.
"""
VerifyOptions = make_enum(
'signing.model.VerifyOptions', {
'DEEP': '--deep',
'STRICT': '--strict',
'NO_STRICT': '--no-strict',
'IGNORE_RESOURCES': '--ignore-resources',
})
CodeSignOptions = make_enum(
'signing.model.CodeSignOptions', {
'RESTRICT': 'restrict',
'LIBRARY_VALIDATION': 'library',
'HARDENED_RUNTIME': 'runtime',
'KILL': 'kill',
})
# Specify the components of HARDENED_RUNTIME that are also available on
# older macOS versions.
CodeSignOptions.FULL_HARDENED_RUNTIME_OPTIONS = (
CodeSignOptions.HARDENED_RUNTIME + CodeSignOptions.RESTRICT +
CodeSignOptions.LIBRARY_VALIDATION + CodeSignOptions.KILL)
class Distribution(object):
"""A Distribution represents a final, signed, and potentially channel-
customized Chrome product.
Channel customization refers to modifying parts of the app bundle structure
to have different file names, internal identifiers, and assets.
"""
def __init__(self,
channel=None,
branding_code=None,
app_name_fragment=None,
packaging_name_fragment=None,
product_dirname=None,
creator_code=None,
channel_customize=False,
package_as_dmg=True,
package_as_pkg=False):
"""Creates a new Distribution object. All arguments are optional.
Args:
channel: The release channel for the product.
branding_code: A branding code helps track how users acquired the
product from various marketing channels.
app_name_fragment: If present, this string fragment is appended to
the |config.CodeSignConfig.app_product|. This renames the binary
and outer app bundle.
packaging_name_fragment: If present, this is appended to the
|config.CodeSignConfig.packaging_basename| to help differentiate
different |branding_code|s.
product_dirname: If present, this string value is set in the app's
Info.plist with the key "CrProductDirName". This key influences
the browser's default user-data-dir location.
creator_code: If present, this will set a new macOS creator code
in the Info.plist "CFBundleSignature" key and in the PkgInfo
file. If this is not specified, the original values from the
build products will be kept.
channel_customize: If True, then the product will be modified in
several ways:
- The |channel| will be appended to the
|config.CodeSignConfig.base_bundle_id|.
- The product will be renamed with |app_name_fragment|.
- Different assets will be used for icons in the app.
package_as_dmg: If True, then a .dmg file will be created containing
the product.
package_as_pkg: If True, then a .pkg file will be created containing
the product.
"""
self.channel = channel
self.branding_code = branding_code
self.app_name_fragment = app_name_fragment
self.packaging_name_fragment = packaging_name_fragment
self.product_dirname = product_dirname
self.creator_code = creator_code
self.channel_customize = channel_customize
self.package_as_dmg = package_as_dmg
self.package_as_pkg = package_as_pkg
def to_config(self, base_config):
"""Produces a derived |config.CodeSignConfig| for the Distribution.
Args:
base_config: The base CodeSignConfig to derive.
Returns:
A new CodeSignConfig instance that uses information in the
Distribution to alter various properties of the |base_config|.
"""
this = self
class DistributionCodeSignConfig(base_config.__class__):
@property
def base_config(self):
return base_config
@property
def distribution(self):
return this
@property
def app_product(self):
if this.channel_customize:
return '{} {}'.format(base_config.app_product,
this.app_name_fragment)
return base_config.app_product
@property
def base_bundle_id(self):
base_bundle_id = base_config.base_bundle_id
if this.channel_customize:
return base_bundle_id + '.' + this.channel
return base_bundle_id
@property
def provisioning_profile_basename(self):
profile = base_config.provisioning_profile_basename
if profile and this.channel_customize:
return '{}_{}'.format(profile, this.app_name_fragment)
return profile
@property
def packaging_basename(self):
if this.packaging_name_fragment:
return '{}-{}-{}'.format(
self.app_product.replace(' ', ''), self.version,
this.packaging_name_fragment)
return super(DistributionCodeSignConfig,
self).packaging_basename
return DistributionCodeSignConfig(
base_config.identity, base_config.installer_identity,
base_config.notary_user, base_config.notary_password,
base_config.notary_asc_provider)
class Paths(object):
"""Paths holds the three file path contexts for signing operations.
The input directory always remains un-modified.
The output directory is where final, signed products are stored.
The work directory is set by internal operations.
"""
def __init__(self, input, output, work):
self._input = input
self._output = output
self._work = work
@property
def input(self):
return self._input
@property
def output(self):
return self._output
@property
def work(self):
return self._work
def packaging_dir(self, config):
"""Returns the path to the product packaging directory, which contains
scripts and assets used in signing.
Args:
config: The |config.CodeSignConfig| object.
Returns:
Path to the packaging directory.
"""
return os.path.join(self.input, '{} Packaging'.format(config.product))
def replace_work(self, new_work):
"""Creates a new Paths with the same input and output directories, but
with |work| set to |new_work|."""
return Paths(self.input, self.output, new_work)
def __eq__(self, other):
if not isinstance(other, self.__class__):
return False
return (self._input == other._input and
self._output == other._output and self._work == other._work)
def __repr__(self):
return 'Paths(input={0.input}, output={0.output}, ' \
'work={0.work})'.format(self)
|
endlessm/chromium-browser
|
chrome/installer/mac/signing/model.py
|
Python
|
bsd-3-clause
| 12,611
|
# Installation
```js
angular.module('myModule', ['oui.pagination']);
```
# Configuration
The pagination can be globally configured with a provider.
```js
angular.module('myModule', ['oui.pagination'])
.config(ouiPaginationConfigurationProvider => {
// default page size (when page-size attribute is not set)
ouiPaginationConfigurationProvider.setPageSize(25);
// default list of page sizes
ouiPaginationConfigurationProvider.setPageSizeList([25, 50, 100, 300]);
// default translations (double curly braces for placeholders)
ouiPaginationConfigurationProvider.setTranslations({
resultsPerPage: 'Results per page',
ofNResults: 'of {{totalItems}} results',
currentPageOfPageCount: 'Page {{currentPage}} of {{pageCount}}',
previousPage: 'Previous page',
nextPage: 'Next page'
});
});
```
# API
## Component `oui-pagination`
| Attribute | Type | Binding | One-time Binding | Values | Default | Description
| ---- | ---- | ---- | ---- | ---- | ---- | ----
| `current-offset` | number | < | no | n/a | n/a | offset of the current page first item
| `page-size` | number | <? | no | n/a | `25` | number of items per page
| `page-size-max` | number | <? | no | n/a | n/a | max page size of the page sizes list
| `total-items` | number | < | no | n/a | n/a | total number of items
| `on-change` | function | &? | no | n/a | n/a | change callback, called on pagination changes
### Attribute `on-change`
`on-change` callback takes a parameter `$event` containing:
- `offset`: the new offset
- `pageSize`: the new page size
|
ovh-ux/ovh-ui-kit
|
packages/components/pagination/README.md
|
Markdown
|
bsd-3-clause
| 1,859
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_91) on Tue Dec 29 12:44:31 AEDT 2015 -->
<title>RFC6637Utils (Bouncy Castle Library 1.54 API Specification)</title>
<meta name="date" content="2015-12-29">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="RFC6637Utils (Bouncy Castle Library 1.54 API Specification)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><b>Bouncy Castle Cryptography Library 1.54</b></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/bouncycastle/openpgp/operator/RFC6637KDFCalculator.html" title="class in org.bouncycastle.openpgp.operator"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/bouncycastle/openpgp/operator/RFC6637Utils.html" target="_top">Frames</a></li>
<li><a href="RFC6637Utils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.bouncycastle.openpgp.operator</div>
<h2 title="Class RFC6637Utils" class="title">Class RFC6637Utils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.bouncycastle.openpgp.operator.RFC6637Utils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">RFC6637Utils</span>
extends java.lang.Object</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/bouncycastle/openpgp/operator/RFC6637Utils.html#createUserKeyingMaterial(org.bouncycastle.bcpg.PublicKeyPacket,%20org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator)">createUserKeyingMaterial</a></strong>(<a href="../../../../org/bouncycastle/bcpg/PublicKeyPacket.html" title="class in org.bouncycastle.bcpg">PublicKeyPacket</a> pubKeyData,
<a href="../../../../org/bouncycastle/openpgp/operator/KeyFingerPrintCalculator.html" title="interface in org.bouncycastle.openpgp.operator">KeyFingerPrintCalculator</a> fingerPrintCalculator)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/bouncycastle/openpgp/operator/RFC6637Utils.html#getAgreementAlgorithm(org.bouncycastle.bcpg.PublicKeyPacket)">getAgreementAlgorithm</a></strong>(<a href="../../../../org/bouncycastle/bcpg/PublicKeyPacket.html" title="class in org.bouncycastle.bcpg">PublicKeyPacket</a> pubKeyData)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static org.bouncycastle.asn1.ASN1ObjectIdentifier</code></td>
<td class="colLast"><code><strong><a href="../../../../org/bouncycastle/openpgp/operator/RFC6637Utils.html#getKeyEncryptionOID(int)">getKeyEncryptionOID</a></strong>(int algID)</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getAgreementAlgorithm(org.bouncycastle.bcpg.PublicKeyPacket)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAgreementAlgorithm</h4>
<pre>public static java.lang.String getAgreementAlgorithm(<a href="../../../../org/bouncycastle/bcpg/PublicKeyPacket.html" title="class in org.bouncycastle.bcpg">PublicKeyPacket</a> pubKeyData)</pre>
</li>
</ul>
<a name="getKeyEncryptionOID(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyEncryptionOID</h4>
<pre>public static org.bouncycastle.asn1.ASN1ObjectIdentifier getKeyEncryptionOID(int algID)
throws <a href="../../../../org/bouncycastle/openpgp/PGPException.html" title="class in org.bouncycastle.openpgp">PGPException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/bouncycastle/openpgp/PGPException.html" title="class in org.bouncycastle.openpgp">PGPException</a></code></dd></dl>
</li>
</ul>
<a name="createUserKeyingMaterial(org.bouncycastle.bcpg.PublicKeyPacket, org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>createUserKeyingMaterial</h4>
<pre>public static byte[] createUserKeyingMaterial(<a href="../../../../org/bouncycastle/bcpg/PublicKeyPacket.html" title="class in org.bouncycastle.bcpg">PublicKeyPacket</a> pubKeyData,
<a href="../../../../org/bouncycastle/openpgp/operator/KeyFingerPrintCalculator.html" title="interface in org.bouncycastle.openpgp.operator">KeyFingerPrintCalculator</a> fingerPrintCalculator)
throws java.io.IOException,
<a href="../../../../org/bouncycastle/openpgp/PGPException.html" title="class in org.bouncycastle.openpgp">PGPException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
<dd><code><a href="../../../../org/bouncycastle/openpgp/PGPException.html" title="class in org.bouncycastle.openpgp">PGPException</a></code></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><b>Bouncy Castle Cryptography Library 1.54</b></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/bouncycastle/openpgp/operator/RFC6637KDFCalculator.html" title="class in org.bouncycastle.openpgp.operator"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/bouncycastle/openpgp/operator/RFC6637Utils.html" target="_top">Frames</a></li>
<li><a href="RFC6637Utils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|
GaloisInc/hacrypto
|
src/Java/BouncyCastle/BouncyCastle-1.54/bcpg-jdk15on-154/javadoc/org/bouncycastle/openpgp/operator/RFC6637Utils.html
|
HTML
|
bsd-3-clause
| 10,337
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using Projac.Testing;
namespace Projac.Tests.Testing
{
namespace ProjectionScenarioTests
{
[TestFixture]
public class AnyState
{
[Test]
public void ResolverCanNotBeNull()
{
Assert.Throws<ArgumentNullException>(
() => new ProjectionScenario<object>(null));
}
[Test]
public void GivenArrayCanNotBeNull()
{
var sut = SutFactory.Create<object>();
Assert.Throws<ArgumentNullException>(
() => sut.Given((object[])null));
}
[Test]
public void GivenEnumerableCanNotBeNull()
{
var sut = SutFactory.Create<object>();
Assert.Throws<ArgumentNullException>(
() => sut.Given((IEnumerable<object>)null));
}
[Test]
public void VerifyWithTokenVerificationCanNotBeNull()
{
var sut = SutFactory.Create<object>();
Assert.Throws<ArgumentNullException>(
() => sut.Verify((Func<object, CancellationToken, Task<VerificationResult>>) null));
}
[Test]
public void VerifyWithoutTokenVerificationCanNotBeNull()
{
var sut = SutFactory.Create<object>();
Assert.Throws<ArgumentNullException>(
() => sut.Verify((Func<object, Task<VerificationResult>>)null));
}
[Test]
public void VerifyWithoutTokenReturnsExpectedResult()
{
var sut = SutFactory.Create<object>();
var session = new object();
var result = sut.
Verify(connection =>
{
Assert.That(connection, Is.EqualTo(session));
return Task.FromResult(VerificationResult.Pass());
}).
Verification(session, CancellationToken.None).
Result;
Assert.That(result, Is.EqualTo(VerificationResult.Pass()));
}
[Test]
public void VerifyWithTokenReturnsExpectedResult()
{
var sut = SutFactory.Create<object>();
var session = new object();
var sessionToken = new CancellationToken();
var result = sut.
Verify((connection, token) =>
{
Assert.That(connection, Is.EqualTo(session));
Assert.That(token, Is.EqualTo(sessionToken));
return Task.FromResult(VerificationResult.Pass());
}).
Verification(session, sessionToken).
Result;
Assert.That(result, Is.EqualTo(VerificationResult.Pass()));
}
[Test]
public void ResolverReturnsExpectedResultAfterVerifyWithToken()
{
var resolver = Resolve.WhenEqualToHandlerMessageType(new ProjectionHandler<object>[0]);
var sut = SutFactory.Create(resolver);
var result = sut.Verify((session, token) => null).Resolver;
Assert.That(result, Is.EqualTo(resolver));
}
[Test]
public void ResolverReturnsExpectedResultAfterVerifyWithoutToken()
{
var resolver = Resolve.WhenEqualToHandlerMessageType(new ProjectionHandler<object>[0]);
var sut = SutFactory.Create(resolver);
var result = sut.Verify(session => null).Resolver;
Assert.That(result, Is.EqualTo(resolver));
}
}
[TestFixture]
public class InitialState
{
[Test]
public void GivenArrayReturnsExpectedResultAfterVerifyWithToken()
{
object[] messages =
{
new object(),
new object()
};
var sut = SutFactory.Create<object>();
var result = sut.Given(messages).Verify((session, token) => null).Messages;
Assert.That(result, Is.EqualTo(messages));
}
[Test]
public void GivenArrayReturnsExpectedResultAfterVerifyWithoutToken()
{
object[] messages =
{
new object(),
new object()
};
var sut = SutFactory.Create<object>();
var result = sut.Given(messages).Verify(session => null).Messages;
Assert.That(result, Is.EqualTo(messages));
}
[Test]
public void GivenEnumerableReturnsExpectedResultAfterVerifyWithToken()
{
IEnumerable<object> messages = new []
{
new object(),
new object()
};
var sut = SutFactory.Create<object>();
var result = sut.Given(messages).Verify((session, token) => null).Messages;
Assert.That(result, Is.EqualTo(messages));
}
[Test]
public void GivenEnumerableReturnsExpectedResultAfterVerifyWithoutToken()
{
IEnumerable<object> messages = new[]
{
new object(),
new object()
};
var sut = SutFactory.Create<object>();
var result = sut.Given(messages).Verify(session => null).Messages;
Assert.That(result, Is.EqualTo(messages));
}
}
[TestFixture]
public class GivenArrayState
{
private ProjectionHandlerResolver<object> _resolver;
private ProjectionScenario<object> _sut;
private object[] _messages;
[SetUp]
public void SetUp()
{
_resolver = Resolve.
WhenEqualToHandlerMessageType(new ProjectionHandler<object>[0]);
_messages = new[] { new object(), new object() };
_sut = new ProjectionScenario<object>(_resolver).Given(_messages);
}
[Test]
public void GivenArrayReturnsExpectedResultAfterVerifyWithToken()
{
object[] messages =
{
new object(),
new object()
};
var result = _sut.Given(messages).Verify((session, token) => null).Messages;
Assert.That(result, Is.EqualTo(_messages.Concat(messages).ToArray()));
}
[Test]
public void GivenArrayReturnsExpectedResultAfterVerifyWithoutToken()
{
object[] messages =
{
new object(),
new object()
};
var result = _sut.Given(messages).Verify(session => null).Messages;
Assert.That(result, Is.EqualTo(_messages.Concat(messages).ToArray()));
}
[Test]
public void GivenEnumerableReturnsExpectedResultAfterVerifyWithToken()
{
IEnumerable<object> messages = new[]
{
new object(),
new object()
};
var result = _sut.Given(messages).Verify((session, token) => null).Messages;
Assert.That(result, Is.EqualTo(_messages.Concat(messages).ToArray()));
}
[Test]
public void GivenEnumerableReturnsExpectedResultAfterVerifyWithoutToken()
{
IEnumerable<object> messages = new[]
{
new object(),
new object()
};
var result = _sut.Given(messages).Verify(session => null).Messages;
Assert.That(result, Is.EqualTo(_messages.Concat(messages).ToArray()));
}
}
[TestFixture]
public class GivenEnumerableState
{
private ProjectionHandlerResolver<object> _resolver;
private ProjectionScenario<object> _sut;
private IEnumerable<object> _messages;
[SetUp]
public void SetUp()
{
_resolver = Resolve.
WhenEqualToHandlerMessageType(new ProjectionHandler<object>[0]);
_messages = new[] { new object(), new object() };
_sut = new ProjectionScenario<object>(_resolver).Given(_messages);
}
[Test]
public void GivenArrayReturnsExpectedResultAfterVerifyWithToken()
{
object[] messages =
{
new object(),
new object()
};
var result = _sut.Given(messages).Verify((session, token) => null).Messages;
Assert.That(result, Is.EqualTo(_messages.Concat(messages).ToArray()));
}
[Test]
public void GivenArrayReturnsExpectedResultAfterVerifyWithoutToken()
{
object[] messages =
{
new object(),
new object()
};
var result = _sut.Given(messages).Verify(session => null).Messages;
Assert.That(result, Is.EqualTo(_messages.Concat(messages).ToArray()));
}
[Test]
public void GivenEnumerableReturnsExpectedResultAfterVerifyWithToken()
{
IEnumerable<object> messages = new[]
{
new object(),
new object()
};
var result = _sut.Given(messages).Verify((session, token) => null).Messages;
Assert.That(result, Is.EqualTo(_messages.Concat(messages).ToArray()));
}
[Test]
public void GivenEnumerableReturnsExpectedResultAfterVerifyWithoutToken()
{
IEnumerable<object> messages = new[]
{
new object(),
new object()
};
var result = _sut.Given(messages).Verify(session => null).Messages;
Assert.That(result, Is.EqualTo(_messages.Concat(messages).ToArray()));
}
}
internal static class SutFactory
{
public static ProjectionScenario<TConnection> Create<TConnection>()
{
return new ProjectionScenario<TConnection>(
Resolve.WhenEqualToHandlerMessageType(new ProjectionHandler<TConnection>[0]));
}
public static ProjectionScenario<TConnection> Create<TConnection>(ProjectionHandlerResolver<TConnection> resolver)
{
return new ProjectionScenario<TConnection>(resolver);
}
}
}
}
|
yreynhout/Projac
|
src/Projac.Tests/Testing/ProjectionScenarioTests.cs
|
C#
|
bsd-3-clause
| 11,397
|
using System.Linq;
using NHibernate;
using NHibernate.Criterion;
namespace Lix.Commons.Repositories
{
/// <summary>
/// Represents extensions on the <see cref="ICriteria"/> object.
/// </summary>
public static class CriteriaExtensions
{
/// <summary>
/// Based on the ICriteria will return a paged result set, will create two copies
/// of the query 1 will be used to select the total count of items, the other
/// used to select the page of data.
/// The results will be wraped in a PagedResult object which will contain
/// the items and total item count.
/// </summary>
/// <typeparam name="TEntity">The type of the entity.</typeparam>
/// <param name="criteria">The criteria.</param>
/// <param name="startIndex">The start index.</param>
/// <param name="pageSize">Size of the page.</param>
/// <returns>
/// A <see cref="PagedResult{TEntity}"/> collection.
/// </returns>
public static PagedResult<TEntity> PagedList<TEntity>(this ICriteria criteria, int startIndex, int pageSize)
{
ICriteria countCriteria = CriteriaTransformer.Clone(criteria)
.SetProjection(Projections.RowCountInt64());
countCriteria.ClearOrders();
// Clone a copy fo the criteria to get the page of data,
// setting max and first result, this will get the page of data.s
ICriteria pageCriteria = CriteriaTransformer.Clone(criteria)
.SetMaxResults(pageSize)
.SetFirstResult(startIndex);
var countFuture = countCriteria.FutureValue<long>();
var listFuture = pageCriteria.Future<TEntity>();
var count = countFuture.Value;
var list = listFuture.ToList();
// Create a new pagedresult object and populate it, use the paged query
// to get the items, and the count query to get the total item count.
var pagedResult = new PagedResult<TEntity>(
startIndex,
pageSize,
count,
list);
// Return the result.
return pagedResult;
}
/// <summary>
/// Performs a COUNT(*) on the criteria.
/// </summary>
/// <param name="criteria">The criteria to add a count to.</param>
/// <returns>
/// A numerical value of the number of items matching the criteria.
/// </returns>
public static long Count(this ICriteria criteria)
{
ICriteria countCriteria = CriteriaTransformer.Clone(criteria)
.SetProjection(Projections.RowCountInt64());
countCriteria.ClearOrders();
return countCriteria.UniqueResult<long>();
}
}
}
|
lukesmith/lix
|
src/Lix.NHibernate.Utilities/Repositories/CriteriaExtensions.cs
|
C#
|
bsd-3-clause
| 2,856
|
<?php
namespace Sabre\VObject\Component;
use Sabre\VObject;
use Sabre\Xml;
/**
* The VCard component.
*
* This component represents the BEGIN:VCARD and END:VCARD found in every
* vcard.
*
* @copyright Copyright (C) 2011-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class VCard extends VObject\Document {
/**
* The default name for this component.
*
* This should be 'VCALENDAR' or 'VCARD'.
*
* @var string
*/
static $defaultName = 'VCARD';
/**
* Caching the version number.
*
* @var int
*/
private $version = null;
/**
* List of value-types, and which classes they map to.
*
* @var array
*/
static $valueMap = [
'BINARY' => 'Sabre\\VObject\\Property\\Binary',
'BOOLEAN' => 'Sabre\\VObject\\Property\\Boolean',
'CONTENT-ID' => 'Sabre\\VObject\\Property\\FlatText', // vCard 2.1 only
'DATE' => 'Sabre\\VObject\\Property\\VCard\\Date',
'DATE-TIME' => 'Sabre\\VObject\\Property\\VCard\\DateTime',
'DATE-AND-OR-TIME' => 'Sabre\\VObject\\Property\\VCard\\DateAndOrTime', // vCard only
'FLOAT' => 'Sabre\\VObject\\Property\\FloatValue',
'INTEGER' => 'Sabre\\VObject\\Property\\IntegerValue',
'LANGUAGE-TAG' => 'Sabre\\VObject\\Property\\VCard\\LanguageTag',
'TIMESTAMP' => 'Sabre\\VObject\\Property\\VCard\\TimeStamp',
'TEXT' => 'Sabre\\VObject\\Property\\Text',
'TIME' => 'Sabre\\VObject\\Property\\Time',
'UNKNOWN' => 'Sabre\\VObject\\Property\\Unknown', // jCard / jCal-only.
'URI' => 'Sabre\\VObject\\Property\\Uri',
'URL' => 'Sabre\\VObject\\Property\\Uri', // vCard 2.1 only
'UTC-OFFSET' => 'Sabre\\VObject\\Property\\UtcOffset',
];
/**
* List of properties, and which classes they map to.
*
* @var array
*/
static $propertyMap = [
// vCard 2.1 properties and up
'N' => 'Sabre\\VObject\\Property\\Text',
'FN' => 'Sabre\\VObject\\Property\\FlatText',
'PHOTO' => 'Sabre\\VObject\\Property\\Binary',
'BDAY' => 'Sabre\\VObject\\Property\\VCard\\DateAndOrTime',
'ADR' => 'Sabre\\VObject\\Property\\Text',
'LABEL' => 'Sabre\\VObject\\Property\\FlatText', // Removed in vCard 4.0
'TEL' => 'Sabre\\VObject\\Property\\FlatText',
'EMAIL' => 'Sabre\\VObject\\Property\\FlatText',
'MAILER' => 'Sabre\\VObject\\Property\\FlatText', // Removed in vCard 4.0
'GEO' => 'Sabre\\VObject\\Property\\FlatText',
'TITLE' => 'Sabre\\VObject\\Property\\FlatText',
'ROLE' => 'Sabre\\VObject\\Property\\FlatText',
'LOGO' => 'Sabre\\VObject\\Property\\Binary',
// 'AGENT' => 'Sabre\\VObject\\Property\\', // Todo: is an embedded vCard. Probably rare, so
// not supported at the moment
'ORG' => 'Sabre\\VObject\\Property\\Text',
'NOTE' => 'Sabre\\VObject\\Property\\FlatText',
'REV' => 'Sabre\\VObject\\Property\\VCard\\TimeStamp',
'SOUND' => 'Sabre\\VObject\\Property\\FlatText',
'URL' => 'Sabre\\VObject\\Property\\Uri',
'UID' => 'Sabre\\VObject\\Property\\FlatText',
'VERSION' => 'Sabre\\VObject\\Property\\FlatText',
'KEY' => 'Sabre\\VObject\\Property\\FlatText',
'TZ' => 'Sabre\\VObject\\Property\\Text',
// vCard 3.0 properties
'CATEGORIES' => 'Sabre\\VObject\\Property\\Text',
'SORT-STRING' => 'Sabre\\VObject\\Property\\FlatText',
'PRODID' => 'Sabre\\VObject\\Property\\FlatText',
'NICKNAME' => 'Sabre\\VObject\\Property\\Text',
'CLASS' => 'Sabre\\VObject\\Property\\FlatText', // Removed in vCard 4.0
// rfc2739 properties
'FBURL' => 'Sabre\\VObject\\Property\\Uri',
'CAPURI' => 'Sabre\\VObject\\Property\\Uri',
'CALURI' => 'Sabre\\VObject\\Property\\Uri',
'CALADRURI' => 'Sabre\\VObject\\Property\\Uri',
// rfc4770 properties
'IMPP' => 'Sabre\\VObject\\Property\\Uri',
// vCard 4.0 properties
'SOURCE' => 'Sabre\\VObject\\Property\\Uri',
'XML' => 'Sabre\\VObject\\Property\\FlatText',
'ANNIVERSARY' => 'Sabre\\VObject\\Property\\VCard\\DateAndOrTime',
'CLIENTPIDMAP' => 'Sabre\\VObject\\Property\\Text',
'LANG' => 'Sabre\\VObject\\Property\\VCard\\LanguageTag',
'GENDER' => 'Sabre\\VObject\\Property\\Text',
'KIND' => 'Sabre\\VObject\\Property\\FlatText',
'MEMBER' => 'Sabre\\VObject\\Property\\Uri',
'RELATED' => 'Sabre\\VObject\\Property\\Uri',
// rfc6474 properties
'BIRTHPLACE' => 'Sabre\\VObject\\Property\\FlatText',
'DEATHPLACE' => 'Sabre\\VObject\\Property\\FlatText',
'DEATHDATE' => 'Sabre\\VObject\\Property\\VCard\\DateAndOrTime',
// rfc6715 properties
'EXPERTISE' => 'Sabre\\VObject\\Property\\FlatText',
'HOBBY' => 'Sabre\\VObject\\Property\\FlatText',
'INTEREST' => 'Sabre\\VObject\\Property\\FlatText',
'ORG-DIRECTORY' => 'Sabre\\VObject\\Property\\FlatText',
];
/**
* Returns the current document type.
*
* @return int
*/
function getDocumentType() {
if (!$this->version) {
$version = (string)$this->VERSION;
switch ($version) {
case '2.1' :
$this->version = self::VCARD21;
break;
case '3.0' :
$this->version = self::VCARD30;
break;
case '4.0' :
$this->version = self::VCARD40;
break;
default :
$this->version = self::UNKNOWN;
break;
}
}
return $this->version;
}
/**
* Converts the document to a different vcard version.
*
* Use one of the VCARD constants for the target. This method will return
* a copy of the vcard in the new version.
*
* At the moment the only supported conversion is from 3.0 to 4.0.
*
* If input and output version are identical, a clone is returned.
*
* @param int $target
*
* @return VCard
*/
function convert($target) {
$converter = new VObject\VCardConverter();
return $converter->convert($this, $target);
}
/**
* VCards with version 2.1, 3.0 and 4.0 are found.
*
* If the VCARD doesn't know its version, 2.1 is assumed.
*/
const DEFAULT_VERSION = self::VCARD21;
/**
* Validates the node for correctness.
*
* The following options are supported:
* Node::REPAIR - May attempt to automatically repair the problem.
*
* This method returns an array with detected problems.
* Every element has the following properties:
*
* * level - problem level.
* * message - A human-readable string describing the issue.
* * node - A reference to the problematic node.
*
* The level means:
* 1 - The issue was repaired (only happens if REPAIR was turned on)
* 2 - An inconsequential issue
* 3 - A severe issue.
*
* @param int $options
*
* @return array
*/
function validate($options = 0) {
$warnings = [];
$versionMap = [
self::VCARD21 => '2.1',
self::VCARD30 => '3.0',
self::VCARD40 => '4.0',
];
$version = $this->select('VERSION');
if (count($version) === 1) {
$version = (string)$this->VERSION;
if ($version !== '2.1' && $version !== '3.0' && $version !== '4.0') {
$warnings[] = [
'level' => 3,
'message' => 'Only vcard version 4.0 (RFC6350), version 3.0 (RFC2426) or version 2.1 (icm-vcard-2.1) are supported.',
'node' => $this,
];
if ($options & self::REPAIR) {
$this->VERSION = $versionMap[self::DEFAULT_VERSION];
}
}
if ($version === '2.1' && ($options & self::PROFILE_CARDDAV)) {
$warnings[] = [
'level' => 3,
'message' => 'CardDAV servers are not allowed to accept vCard 2.1.',
'node' => $this,
];
}
}
$uid = $this->select('UID');
if (count($uid) === 0) {
if ($options & self::PROFILE_CARDDAV) {
// Required for CardDAV
$warningLevel = 3;
$message = 'vCards on CardDAV servers MUST have a UID property.';
} else {
// Not required for regular vcards
$warningLevel = 2;
$message = 'Adding a UID to a vCard property is recommended.';
}
if ($options & self::REPAIR) {
$this->UID = VObject\UUIDUtil::getUUID();
$warningLevel = 1;
}
$warnings[] = [
'level' => $warningLevel,
'message' => $message,
'node' => $this,
];
}
$fn = $this->select('FN');
if (count($fn) !== 1) {
$repaired = false;
if (($options & self::REPAIR) && count($fn) === 0) {
// We're going to try to see if we can use the contents of the
// N property.
if (isset($this->N)) {
$value = explode(';', (string)$this->N);
if (isset($value[1]) && $value[1]) {
$this->FN = $value[1] . ' ' . $value[0];
} else {
$this->FN = $value[0];
}
$repaired = true;
// Otherwise, the ORG property may work
} elseif (isset($this->ORG)) {
$this->FN = (string)$this->ORG;
$repaired = true;
}
}
$warnings[] = [
'level' => $repaired ? 1 : 3,
'message' => 'The FN property must appear in the VCARD component exactly 1 time',
'node' => $this,
];
}
return array_merge(
parent::validate($options),
$warnings
);
}
/**
* A simple list of validation rules.
*
* This is simply a list of properties, and how many times they either
* must or must not appear.
*
* Possible values per property:
* * 0 - Must not appear.
* * 1 - Must appear exactly once.
* * + - Must appear at least once.
* * * - Can appear any number of times.
* * ? - May appear, but not more than once.
*
* @var array
*/
function getValidationRules() {
return [
'ADR' => '*',
'ANNIVERSARY' => '?',
'BDAY' => '?',
'CALADRURI' => '*',
'CALURI' => '*',
'CATEGORIES' => '*',
'CLIENTPIDMAP' => '*',
'EMAIL' => '*',
'FBURL' => '*',
'IMPP' => '*',
'GENDER' => '?',
'GEO' => '*',
'KEY' => '*',
'KIND' => '?',
'LANG' => '*',
'LOGO' => '*',
'MEMBER' => '*',
'N' => '?',
'NICKNAME' => '*',
'NOTE' => '*',
'ORG' => '*',
'PHOTO' => '*',
'PRODID' => '?',
'RELATED' => '*',
'REV' => '?',
'ROLE' => '*',
'SOUND' => '*',
'SOURCE' => '*',
'TEL' => '*',
'TITLE' => '*',
'TZ' => '*',
'URL' => '*',
'VERSION' => '1',
'XML' => '*',
// FN is commented out, because it's already handled by the
// validate function, which may also try to repair it.
// 'FN' => '+',
'UID' => '?',
];
}
/**
* Returns a preferred field.
*
* VCards can indicate wether a field such as ADR, TEL or EMAIL is
* preferred by specifying TYPE=PREF (vcard 2.1, 3) or PREF=x (vcard 4, x
* being a number between 1 and 100).
*
* If neither of those parameters are specified, the first is returned, if
* a field with that name does not exist, null is returned.
*
* @param string $fieldName
*
* @return VObject\Property|null
*/
function preferred($propertyName) {
$preferred = null;
$lastPref = 101;
foreach ($this->select($propertyName) as $field) {
$pref = 101;
if (isset($field['TYPE']) && $field['TYPE']->has('PREF')) {
$pref = 1;
} elseif (isset($field['PREF'])) {
$pref = $field['PREF']->getValue();
}
if ($pref < $lastPref || is_null($preferred)) {
$preferred = $field;
$lastPref = $pref;
}
}
return $preferred;
}
/**
* This method should return a list of default property values.
*
* @return array
*/
protected function getDefaults() {
return [
'VERSION' => '3.0',
'PRODID' => '-//Sabre//Sabre VObject ' . VObject\Version::VERSION . '//EN',
];
}
/**
* This method returns an array, with the representation as it should be
* encoded in json. This is used to create jCard or jCal documents.
*
* @return array
*/
function jsonSerialize() {
// A vcard does not have sub-components, so we're overriding this
// method to remove that array element.
$properties = [];
foreach ($this->children() as $child) {
$properties[] = $child->jsonSerialize();
}
return [
strtolower($this->name),
$properties,
];
}
/**
* This method serializes the data into XML. This is used to create xCard or
* xCal documents.
*
* @param Xml\Writer $writer XML writer.
*
* @return void
*/
function xmlSerialize(Xml\Writer $writer) {
$propertiesByGroup = [];
foreach ($this->children() as $property) {
$group = $property->group;
if (!isset($propertiesByGroup[$group])) {
$propertiesByGroup[$group] = [];
}
$propertiesByGroup[$group][] = $property;
}
$writer->startElement(strtolower($this->name));
foreach ($propertiesByGroup as $group => $properties) {
if (!empty($group)) {
$writer->startElement('group');
$writer->writeAttribute('name', strtolower($group));
}
foreach ($properties as $property) {
switch ($property->name) {
case 'VERSION':
continue;
case 'XML':
$value = $property->getParts();
$fragment = new Xml\Element\XmlFragment($value[0]);
$writer->write($fragment);
break;
default:
$property->xmlSerialize($writer);
break;
}
}
if (!empty($group)) {
$writer->endElement();
}
}
$writer->endElement();
}
/**
* Returns the default class for a property name.
*
* @param string $propertyName
*
* @return string
*/
function getClassNameForPropertyName($propertyName) {
$className = parent::getClassNameForPropertyName($propertyName);
// In vCard 4, BINARY no longer exists, and we need URI instead.
if ($className == 'Sabre\\VObject\\Property\\Binary' && $this->getDocumentType() === self::VCARD40) {
return 'Sabre\\VObject\\Property\\Uri';
}
return $className;
}
}
|
armin-hackmann/sabre-vobject
|
lib/Component/VCard.php
|
PHP
|
bsd-3-clause
| 16,882
|
import hashlib
import os
import re
import time
import uuid
import subprocess
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.contrib.staticfiles.finders import find as find_static_path
from olympia.lib.jingo_minify_helpers import ensure_path_exists
def run_command(command):
"""Run a command and correctly poll the output and write that to stdout"""
process = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
while True:
output = process.stdout.readline()
if output == '' and process.poll() is not None:
break
if output:
print(output.strip())
return process.poll()
class Command(BaseCommand):
help = ('Compresses css and js assets defined in settings.MINIFY_BUNDLES')
# This command must not do any system checks because Django runs db-field
# related checks since 1.10 which require a working MySQL connection.
# We don't have that during our docker builds and since `compress_assets`
# is being used while building our docker images we have to disable them.
requires_system_checks = False
checked_hash = {}
bundle_hashes = {}
missing_files = 0
minify_skipped = 0
def add_arguments(self, parser):
"""Handle command arguments."""
parser.add_argument(
'force', action='store_true',
help='Ignores modified/created dates and forces compression.')
def generate_build_id(self):
return uuid.uuid4().hex[:8]
def update_hashes(self):
# Adds a time based hash on to the build id.
self.build_id = '%s-%s' % (
self.generate_build_id(), hex(int(time.time()))[2:])
build_id_file = os.path.realpath(
os.path.join(settings.ROOT, 'build.py'))
with open(build_id_file, 'w') as f:
f.write('BUILD_ID_CSS = "%s"\n' % self.build_id)
f.write('BUILD_ID_JS = "%s"\n' % self.build_id)
f.write('BUILD_ID_IMG = "%s"\n' % self.build_id)
f.write('BUNDLE_HASHES = %s\n' % self.bundle_hashes)
def handle(self, **options):
self.force_compress = options.get('force', False)
# This will loop through every bundle, and do the following:
# - Concat all files into one
# - Cache bust all images in CSS files
# - Minify the concatted files
for ftype, bundle in settings.MINIFY_BUNDLES.iteritems():
for name, files in bundle.iteritems():
# Set the paths to the files.
concatted_file = os.path.join(
settings.ROOT, 'static',
ftype, '%s-all.%s' % (name, ftype,))
compressed_file = os.path.join(
settings.ROOT, 'static',
ftype, '%s-min.%s' % (name, ftype,))
ensure_path_exists(concatted_file)
ensure_path_exists(compressed_file)
files_all = []
for fn in files:
processed = self._preprocess_file(fn)
# If the file can't be processed, we skip it.
if processed is not None:
files_all.append(processed)
# Concat all the files.
tmp_concatted = '%s.tmp' % concatted_file
if len(files_all) == 0:
raise CommandError(
'No input files specified in '
'MINIFY_BUNDLES["%s"]["%s"] in settings.py!' %
(ftype, name)
)
run_command('cat {files} > {tmp}'.format(
files=' '.join(files_all),
tmp=tmp_concatted
))
# Cache bust individual images in the CSS.
if ftype == 'css':
bundle_hash = self._cachebust(tmp_concatted, name)
self.bundle_hashes['%s:%s' % (ftype, name)] = bundle_hash
# Compresses the concatenations.
is_changed = self._is_changed(concatted_file)
self._clean_tmp(concatted_file)
if is_changed or not os.path.isfile(compressed_file):
self._minify(ftype, concatted_file, compressed_file)
else:
print(
'File unchanged, skipping minification of %s' % (
concatted_file))
self.minify_skipped += 1
# Write out the hashes
self.update_hashes()
if self.minify_skipped:
print(
'Unchanged files skipped for minification: %s' % (
self.minify_skipped))
def _preprocess_file(self, filename):
"""Preprocess files and return new filenames."""
css_bin = filename.endswith('.less') and settings.LESS_BIN
source = find_static_path(filename)
target = source
if css_bin:
target = '%s.css' % source
run_command('{lessc} {source} {target}'.format(
lessc=css_bin,
source=str(source),
target=str(target)))
return target
def _is_changed(self, concatted_file):
"""Check if the file has been changed."""
if self.force_compress:
return True
tmp_concatted = '%s.tmp' % concatted_file
file_exists = (
os.path.exists(concatted_file) and
os.path.getsize(concatted_file) == os.path.getsize(tmp_concatted))
if file_exists:
orig_hash = self._file_hash(concatted_file)
temp_hash = self._file_hash(tmp_concatted)
return orig_hash != temp_hash
return True # Different filesize, so it was definitely changed
def _clean_tmp(self, concatted_file):
"""Replace the old file with the temp file."""
tmp_concatted = '%s.tmp' % concatted_file
if os.path.exists(concatted_file):
os.remove(concatted_file)
os.rename(tmp_concatted, concatted_file)
def _cachebust(self, css_file, bundle_name):
"""Cache bust images. Return a new bundle hash."""
self.stdout.write(
'Cache busting images in %s\n' % re.sub('.tmp$', '', css_file))
if not os.path.exists(css_file):
return
css_content = ''
with open(css_file, 'r') as css_in:
css_content = css_in.read()
def _parse(url):
return self._cachebust_regex(url, css_file)
css_parsed = re.sub('url\(([^)]*?)\)', _parse, css_content)
with open(css_file, 'w') as css_out:
css_out.write(css_parsed)
# Return bundle hash for cachebusting JS/CSS files.
file_hash = hashlib.md5(css_parsed).hexdigest()[0:7]
self.checked_hash[css_file] = file_hash
if self.missing_files:
self.stdout.write(
' - Error finding %s images\n' % (self.missing_files,))
self.missing_files = 0
return file_hash
def _minify(self, ftype, file_in, file_out):
"""Run the proper minifier on the file."""
if ftype == 'js' and hasattr(settings, 'UGLIFY_BIN'):
opts = {'method': 'UglifyJS', 'bin': settings.UGLIFY_BIN}
run_command('{uglify} -v -o {target} {source} -m'.format(
uglify=opts['bin'],
target=file_out,
source=file_in))
elif ftype == 'css' and hasattr(settings, 'CLEANCSS_BIN'):
opts = {'method': 'clean-css', 'bin': settings.CLEANCSS_BIN}
run_command('{cleancss} -o {target} {source}'.format(
cleancss=opts['bin'],
target=file_out,
source=file_in))
self.stdout.write(
'Minifying %s (using %s)\n' % (file_in, opts['method']))
def _file_hash(self, url):
"""Open the file and get a hash of it."""
if url in self.checked_hash:
return self.checked_hash[url]
file_hash = ''
try:
with open(url) as f:
file_hash = hashlib.md5(f.read()).hexdigest()[0:7]
except IOError:
self.missing_files += 1
self.stdout.write(' - Could not find file %s\n' % url)
self.checked_hash[url] = file_hash
return file_hash
def _cachebust_regex(self, img, parent):
"""Run over the regex; img is the structural regex object."""
url = img.group(1).strip('"\'')
if url.startswith('data:') or url.startswith('http'):
return 'url(%s)' % url
url = url.split('?')[0]
full_url = os.path.join(
settings.ROOT, os.path.dirname(parent), url)
return 'url(%s?%s)' % (url, self._file_hash(full_url))
|
atiqueahmedziad/addons-server
|
src/olympia/amo/management/commands/compress_assets.py
|
Python
|
bsd-3-clause
| 8,858
|
---
redirect_from:
- /download/windows/stable
redirect_to: https://toggl-open-source.github.io/toggldesktop/download/windows-stable/
---
|
toggl/toggldesktop
|
download/windows-stable.html
|
HTML
|
bsd-3-clause
| 140
|
from __future__ import unicode_literals
from django.conf.urls import patterns, include, url
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
from mezzanine.core.views import direct_to_template
from mezzanine.conf import settings
from hs_core.api import v1_api
from theme import views as theme
import autocomplete_light
autocomplete_light.autodiscover()
admin.autodiscover()
# Add the urlpatterns for any custom Django applications here.
# You can also change the ``home`` view to add your own functionality
# to the project's homepage.
urlpatterns = i18n_patterns("",
# Change the admin prefix here to use an alternate URL for the
# admin interface, which would be marginally more secure.
url("^admin/", include(admin.site.urls)),
url('^ga_resources/', include('ga_resources.urls')),
url('^ga_interactive/', include('ga_interactive.urls')),
url('^r/(?P<shortkey>[A-z0-9\-_]+)', 'hs_core.views.short_url'),
# url('^party/', include('hs_scholar_profile.urls'))
url(r'^user/$', theme.UserProfileView.as_view()),
url(r'^user/(?P<user>.*)/', theme.UserProfileView.as_view()),
url(r'^verify/(?P<pk>[0-9]*)/', 'hs_core.views.verify'),
url(r'^django_irods/', include('django_irods.urls')),
url(r'^autocomplete/', include('autocomplete_light.urls')),
url(r'^hs_metrics/', include('hs_metrics.urls')),
)
# Filebrowser admin media library.
if getattr(settings, "PACKAGE_NAME_FILEBROWSER") in settings.INSTALLED_APPS:
urlpatterns += i18n_patterns("",
("^admin/media-library/", include("%s.urls" %
settings.PACKAGE_NAME_FILEBROWSER)),
)
# Put API URLs before Mezzanine so that Mezzanine doesn't consume them
urlpatterns += patterns('',
(r'^api/', include(v1_api.urls) ),
url("^api/%s/doc/" % (v1_api.api_name,),
include('tastypie_swagger.urls',
namespace='tastypie_swagger'),
kwargs={'tastypie_api_module':'hs_core.api.v1_api',
'namespace':'tastypie_swagger'}
),
url('^hsapi/', include('hs_core.urls'))
url('^party/', include('hs_party.urls'))
)
urlpatterns += patterns('',
# We don't want to presume how your homepage works, so here are a
# few patterns you can use to set it up.
# HOMEPAGE AS STATIC TEMPLATE
# ---------------------------
# This pattern simply loads the index.html template. It isn't
# commented out like the others, so it's the default. You only need
# one homepage pattern, so if you use a different one, comment this
# one out.
# url("^$", direct_to_template, {"template": "index.html"}, name="home"),
# HOMEPAGE AS AN EDITABLE PAGE IN THE PAGE TREE
# ---------------------------------------------
# This pattern gives us a normal ``Page`` object, so that your
# homepage can be managed via the page tree in the admin. If you
# use this pattern, you'll need to create a page in the page tree,
# and specify its URL (in the Meta Data section) as "/", which
# is the value used below in the ``{"slug": "/"}`` part.
# Also note that the normal rule of adding a custom
# template per page with the template name using the page's slug
# doesn't apply here, since we can't have a template called
# "/.html" - so for this case, the template "pages/index.html"
# should be used if you want to customize the homepage's template.
url("^$", "mezzanine.pages.views.page", {"slug": "/"}, name="home"),
# HOMEPAGE FOR A BLOG-ONLY SITE
# -----------------------------
# This pattern points the homepage to the blog post listing page,
# and is useful for sites that are primarily blogs. If you use this
# pattern, you'll also need to set BLOG_SLUG = "" in your
# ``settings.py`` module, and delete the blog page object from the
# page tree in the admin if it was installed.
# url("^$", "mezzanine.blog.views.blog_post_list", name="home"),
# MEZZANINE'S URLS
# ----------------
# ADD YOUR OWN URLPATTERNS *ABOVE* THE LINE BELOW.
# ``mezzanine.urls`` INCLUDES A *CATCH ALL* PATTERN
# FOR PAGES, SO URLPATTERNS ADDED BELOW ``mezzanine.urls``
# WILL NEVER BE MATCHED!
# If you'd like more granular control over the patterns in
# ``mezzanine.urls``, go right ahead and take the parts you want
# from it, and use them directly below instead of using
# ``mezzanine.urls``.
("^", include("mezzanine.urls")),
# MOUNTING MEZZANINE UNDER A PREFIX
# ---------------------------------
# You can also mount all of Mezzanine's urlpatterns under a
# URL prefix if desired. When doing this, you need to define the
# ``SITE_PREFIX`` setting, which will contain the prefix. Eg:
# SITE_PREFIX = "my/site/prefix"
# For convenience, and to avoid repeating the prefix, use the
# commented out pattern below (commenting out the one above of course)
# which will make use of the ``SITE_PREFIX`` setting. Make sure to
# add the import ``from django.conf import settings`` to the top
# of this file as well.
# Note that for any of the various homepage patterns above, you'll
# need to use the ``SITE_PREFIX`` setting as well.
# ("^%s/" % settings.SITE_PREFIX, include("mezzanine.urls"))
)
# Adds ``STATIC_URL`` to the context of error pages, so that error
# pages can use JS, CSS and images.
handler404 = "mezzanine.core.views.page_not_found"
handler500 = "mezzanine.core.views.server_error"
|
hydroshare/hydroshare_temp
|
urls.py
|
Python
|
bsd-3-clause
| 5,696
|
#include "utils.h"
#include "inttypes.h"
#include "criticalSection.h"
#include <stdlib.h>
extern _PTR memalign(size_t, size_t);
/*
* These functions are equivalent to the standard lib functions, except that
* they disable all interrupts before executing the function.
*/
void *safe_malloc(size_t size) {
DECLARE_CRITICAL_SECTION();
void *retVal;
CRITICAL_SECTION_BEGIN();
retVal = malloc(size);
CRITICAL_SECTION_END();
return retVal;
}
void *safe_calloc(size_t nelem, size_t elsize) {
DECLARE_CRITICAL_SECTION();
void *retVal;
CRITICAL_SECTION_BEGIN();
retVal = calloc(nelem, elsize);
CRITICAL_SECTION_END();
return retVal;
}
void *safe_memalign(size_t alignment, size_t length){
DECLARE_CRITICAL_SECTION();
void *retVal;
CRITICAL_SECTION_BEGIN();
retVal = memalign(alignment, length);
CRITICAL_SECTION_END();
return retVal;
}
void *safe_realloc(void *ptr, size_t size) {
DECLARE_CRITICAL_SECTION();
void *retVal;
CRITICAL_SECTION_BEGIN();
retVal = realloc(ptr, size);
CRITICAL_SECTION_END();
return retVal;
}
void safe_free(void *ptr) {
DECLARE_CRITICAL_SECTION();
CRITICAL_SECTION_BEGIN();
free(ptr);
CRITICAL_SECTION_END();
return;
}
|
ekiwi/tinyos-1.x
|
beta/platform/pxa27x/lib/utils.c
|
C
|
bsd-3-clause
| 1,218
|
<?php
/**
* Based on Jan Tvrdík DatePicker (http://nette.merxes.cz/date-picker/)
*
* @author Livio Ribeiro
* @license BSD-3-Clause
*/
namespace NetteDateTimeFields\Controls;
use Nette;
use Nette\Forms;
use DateTime;
/**
* Form control for selecting date.
*
* @author Livio Ribeiro
* @version 1.0
* @link http://github.com/livioribeiro/NetteDateTimeFields
*/
class DateInput extends DateTimeBase {
/**
* Class constructor.
*
* @author Livio Ribeiro
* @param string caption
* @param string format
* @param bool html5 input
*/
public function __construct($caption = NULL, $format = NULL, $html5 = TRUE) {
parent::__construct($caption, $html5);
$this->format = $format === NULL ? self::DEFAULT_DATE_FORMAT : $format;
$this->w3format = self::W3C_DATE_FORMAT;
$this->control->type = $html5 ? 'date' : 'text';
$this->className = 'date';
}
}
|
livioribeiro/NetteDateTimeFields
|
src/NetteDateTimeFields/Controls/DateInput.php
|
PHP
|
bsd-3-clause
| 995
|
#!/bin/sh
BASEDIR="../" # root of translatable sources
PROJECT="fcitx-mozc" # project name
BUGADDR="fcitx-dev@googlegroups.com" # MSGID-Bugs
WDIR="`pwd`" # working dir
echo "Preparing rc files"
echo "Done preparing rc files"
echo "Extracting messages"
# see above on sorting
find "${BASEDIR}" -name '*.cc' -o -name '*.h' -o -name '*.c' | sort > "${WDIR}/infiles.list"
xgettext --from-code=UTF-8 -k_ -kN_ --msgid-bugs-address="${BUGADDR}" --files-from=infiles.list \
-D "${BASEDIR}" -D "${WDIR}" -o "${PROJECT}.pot" || \
{ echo "error while calling xgettext. aborting."; exit 1; }
echo "Done extracting messages"
echo "Merging translations"
catalogs=`find . -name '*.po'`
for cat in $catalogs; do
echo "$cat"
msgmerge -o "$cat.new" "$cat" "${WDIR}/${PROJECT}.pot"
mv "$cat.new" "$cat"
done
echo "Done merging translations"
echo "Cleaning up"
rm "${WDIR}/infiles.list"
echo "Done"
|
fcitx/mozc
|
src/unix/fcitx/po/Messages.sh
|
Shell
|
bsd-3-clause
| 907
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import webapp2
import hinet
import seednet
import StringIO
import PyRSS2Gen
import urllib
import datetime
import hashlib
#from google.appengine.ext import ndb
from google.appengine.api import memcache
HTTP_DATE_FMT = '%a, %d %b %Y %H:%M:%S %Z'
def check_date_fmt(date):
date = date.strip().split(' ')
if len(date) == 5:
HTTP_DATE_FMT = '%a, %d %b %Y %H:%M:%S'
elif len(date) == 6:
HTTP_DATE_FMT = '%a, %d %b %Y %H:%M:%S %Z'
return HTTP_DATE_FMT
#not use yet
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.headers['Cache-Control'] = 'max-age=3600, must-revalidate'
self.response.write('')
#generate hinet rss
class Hinet(webapp2.RequestHandler):
def output_content(self, content, serve=True):
if serve:
self.response.out.write(content)
else:
self.response.set_status(304)
def set_headers(self):
self.response.headers['Content-Type'] = 'application/xhtml+xml'
self.response.headers['Cache-Control'] = 'public, max-age=3600, must-revalidate'
def get_cache_data(self, rss):
output = memcache.get(rss)
mtime = memcache.get('h_mtime')
etag = memcache.get('h_etag')
if mtime is None:
mtime = datetime.datetime.utcnow().strftime(HTTP_DATE_FMT) + 'GMT'
self.response.headers['Last-Modified'] = mtime
return output, mtime, etag
def get(self):
serve = True
output, mtime, etag = self.get_cache_data('hinet_rss')
if 'If-Modified-Since' in self.request.headers:
IFMOD_DATE_FMT = check_date_fmt(self.request.headers['If-Modified-Since'])
last_seen = datetime.datetime.strptime(self.request.headers['If-Modified-Since'], IFMOD_DATE_FMT)
last_modified = datetime.datetime.strptime(mtime, HTTP_DATE_FMT)
if last_seen >= last_modified:
serve = False
if 'If-None-Match' in self.request.headers:
etags = [x.strip('" ') for x in self.request.headers['If-None-Match'].split(',')]
if etag in etags:
serve = False
if output is not None:
self.set_headers()
self.response.headers['ETag'] = '"%s"' % etag
self.output_content(output, serve)
return
items = []
parser = hinet.MyHTMLParser()
parser.feed(urllib.urlopen('http://search.hinet.net/getNotify?callback=jsonpCallback&type=0&sort=0&mobile=1').read())
for i in parser.struc_data:
items.append(PyRSS2Gen.RSSItem(title=i[1] + ' ' +i[3], link=i[2], pubDate=i[0]))
rss = PyRSS2Gen.RSS2(
title=u"Hinet系統公告",
link="http://www.hinet.net/pu/notify.htm",
description=u"此RSS內容取自Hinet網頁,依照著作權法之合理使用原則節錄部份內容。\
本RSS僅供參考,Hinet或任何人都不對內容負責",
lastBuildDate=mtime,
items=items)
output = StringIO.StringIO()
rss.write_xml(output,encoding='utf-8')
etag = hashlib.sha1(output.getvalue()).hexdigest()
memcache.set('hinet_rss', output.getvalue(), time=3600)
memcache.set('h_mtime', mtime, time=3600)
memcache.set('h_etag', etag, time=3600)
self.set_headers()
self.response.headers['ETag'] = '"%s"' % (etag,)
self.output_content(output.getvalue(), serve)
#generate seednet rss
class Seednet(webapp2.RequestHandler):
def output_content(self, content, serve=True):
if serve:
self.response.out.write(content)
else:
self.response.set_status(304)
def set_headers(self):
self.response.headers['Content-Type'] = 'application/xhtml+xml'
self.response.headers['Cache-Control'] = 'public, max-age=3600, must-revalidate'
def get_cache_data(self, rss):
output = memcache.get('seednet_rss')
mtime = memcache.get('s_mtime')
etag = memcache.get('s_etag')
if mtime is None:
mtime = datetime.datetime.utcnow().strftime(HTTP_DATE_FMT) + 'GMT'
self.response.headers['Last-Modified'] = mtime
return output, mtime, etag
def get(self):
serve = True
output, mtime, etag = self.get_cache_data('seednet_rss')
if 'If-Modified-Since' in self.request.headers:
IFMOD_DATE_FMT = check_date_fmt(self.request.headers['If-Modified-Since'])
last_seen = datetime.datetime.strptime(self.request.headers['If-Modified-Since'], IFMOD_DATE_FMT)
last_modified = datetime.datetime.strptime(mtime, HTTP_DATE_FMT)
if last_seen >= last_modified:
serve = False
if 'If-None-Match' in self.request.headers:
etags = [x.strip('" ') for x in self.request.headers['If-None-Match'].split(',')]
if etag in etags:
serve = False
if output is not None:
self.set_headers()
self.response.headers['ETag'] = '"%s"' % etag
self.output_content(output, serve)
return
items = []
parser = seednet.MyHTMLParser()
parser.feed(urllib.urlopen(
'https://service.seed.net.tw/register-cgi/service_notice?FUNC=notice_qry_more&Category=02&Start=1').read())
for i in parser.struc_data:
items.append(PyRSS2Gen.RSSItem(title=i[3], link=i[2], pubDate=i[0]))
rss = PyRSS2Gen.RSS2(
title=u"Seednet系統公告",
link="https://service.seed.net.tw/register-cgi/service_notice?FUNC=notice_qry_more&Category=02&Start=1",
description=u"此RSS內容取自Seednet網頁,依照著作權法之合理使用原則節錄部份內容。\
本RSS僅供參考,Seednet或任何人都不對內容負責",
lastBuildDate=mtime,
items=items)
output = StringIO.StringIO()
rss.write_xml(output,encoding='utf-8')
etag = hashlib.sha1(output.getvalue()).hexdigest()
memcache.set('seednet_rss', output.getvalue(), time=3600)
memcache.set('s_mtime', mtime, time=3600)
memcache.set('s_etag', etag, time=3600)
self.set_headers()
self.response.headers['ETag'] = '"%s"' % (etag,)
self.output_content(output.getvalue(), serve)
application = webapp2.WSGIApplication([
('/', MainPage),
('/hinet', Hinet),
('/seednet', Seednet),
], debug=False)
|
ryanho/ISParser
|
main.py
|
Python
|
bsd-3-clause
| 6,603
|
var shell = require('..');
var assert = require('assert');
shell.config.silent = true;
shell.rm('-rf', 'tmp');
shell.mkdir('tmp');
//
// Invalids
//
// commands like `rm` can't be on the right side of pipes
assert.equal(typeof shell.ls('.').rm, 'undefined');
assert.equal(typeof shell.cat('resources/file1.txt').rm, 'undefined');
//
// Valids
//
// piping to cat() should return roughly the same thing
assert.strictEqual(shell.cat('resources/file1.txt').cat().toString(),
shell.cat('resources/file1.txt').toString());
// piping ls() into cat() converts to a string
assert.strictEqual(shell.ls('resources/').cat().toString(),
shell.ls('resources/').stdout);
var result;
result = shell.ls('resources/').grep('file1');
assert.equal(result + '', 'file1\nfile1.js\nfile1.txt\n');
result = shell.ls('resources/').cat().grep('file1');
assert.equal(result + '', 'file1\nfile1.js\nfile1.txt\n');
// Equivalent to a simple grep() test case
result = shell.cat('resources/grep/file').grep(/alpha*beta/);
assert.equal(shell.error(), null);
assert.equal(result.toString(), 'alphaaaaaaabeta\nalphbeta\n');
// Equivalent to a simple sed() test case
result = shell.cat('resources/grep/file').sed(/l*\.js/, '');
assert.ok(!shell.error());
assert.equal(result.toString(), 'alphaaaaaaabeta\nhowareyou\nalphbeta\nthis line ends in\n\n');
// Sort a file by frequency of each line
result = shell.sort('resources/uniq/pipe').uniq('-c').sort('-n');
assert.equal(shell.error(), null);
assert.equal(result.toString(), shell.cat('resources/uniq/pipeSorted').toString());
// Synchronous exec. To support Windows, the arguments must be passed
// using double quotes because node, following win32 convention,
// passes single quotes through to process.argv verbatim.
result = shell.cat('resources/grep/file').exec('shx grep "alpha*beta"');
assert.ok(!shell.error());
assert.equal(result, 'alphaaaaaaabeta\nalphbeta\n');
// Async exec
shell.cat('resources/grep/file').exec('shx grep "alpha*beta"', function (code, stdout) {
assert.equal(code, 0);
assert.equal(stdout, 'alphaaaaaaabeta\nalphbeta\n');
shell.exit(123);
});
|
freitagbr/shelljs
|
test/pipe.js
|
JavaScript
|
bsd-3-clause
| 2,118
|
{-# LANGUAGE MultiParamTypeClasses #-}
-- |
-- Module: $HEADER$
-- Description: Command line tool that generates random passwords.
-- Copyright: (c) 2013 Peter Trsko
-- License: BSD3
--
-- Maintainer: peter.trsko@gmail.com
-- Stability: experimental
-- Portability: non-portable (FlexibleContexts, depends on non-portable
-- module)
--
-- Command line tool that generates random passwords.
module Main.Application (runApp, processOptions)
where
import Control.Applicative ((<$>))
import Control.Monad (replicateM)
import Data.Char (isDigit)
import Data.Maybe (fromMaybe)
import Data.Version (Version)
import Data.Word (Word32)
import System.Console.GetOpt
( OptDescr(Option)
, ArgDescr(NoArg)
, ArgOrder(Permute)
, getOpt
)
import System.Exit (exitFailure)
import System.IO (Handle, stderr, stdout)
import Data.ByteString (ByteString)
import qualified Data.ByteString.Char8 as BS (hPutStrLn, unwords)
import Data.Default.Class (Default(def))
import Data.Monoid.Endo hiding ((<>))
import Data.Semigroup (Semigroup((<>)))
import System.Console.Terminal.Size as Terminal (Window(..), size)
import System.Console.GetOpt.UsageInfo
( UsageInfoConfig(outputHandle)
, renderUsageInfo
)
import Main.ApplicationMode
( ApplicationMode(..)
, SimpleMode(..)
, changeAction
, updateConfiguration
)
import Main.ApplicationMode.SimpleAction (SimpleAction(..))
import qualified Main.ApplicationMode.SimpleAction as SimpleAction (optErrors)
import Main.Common (Parameters(..), printHelp, printVersion, printOptErrors)
import Main.MiniLens (E, L, get, mkL, set)
import Main.Random (withGenRand)
import qualified Text.Pwgen.Pronounceable as Pronounceable (genPwConfigBS)
import Text.Pwgen (genPassword)
import Paths_hpwgen (version)
-- | Default length of password.
defaultPwlen :: Word32
defaultPwlen = 8
-- | Default number of lines, this is used when printing passwords in columns,
-- but number of passwords wasn't specified.
defaultNumberOfLines :: Int
defaultNumberOfLines = 20
-- | Line length used when printing in columns, but to a handle that isn't a
-- terminal.
defaultLineLength :: Int
defaultLineLength = 80
type HpwgenMode = SimpleMode SimpleAction Config
instance ApplicationMode SimpleMode SimpleAction Config where
optErrors msgs = case SimpleAction.optErrors msgs of
Nothing -> mempty
Just a -> changeAction a
`mappend` updateConfiguration (set outHandleL stderr)
data Config = Config
{ cfgProgName :: String
, cfgVersion :: Version
, cfgPasswordLength :: Word32
, cfgNumberOfPasswords :: Maybe Int
, cfgPrintInColumns :: Maybe Bool
-- ^ If 'Nothing' then it's determined depending on the fact if output is
-- a terminal. When 'True' and output is not a terminal 80 character width
-- is assumed. And when 'False' then only one password is printed per line.
, cfgGeneratePronounceable :: Bool
, cfgIncludeNumbers :: Bool
, cfgIncludeSymbols :: Bool
, cfgIncludeUppers :: Bool
, cfgOutHandle :: Handle
}
instance Default Config where
def = Config
{ cfgProgName = ""
, cfgVersion = version
, cfgPasswordLength = defaultPwlen
, cfgNumberOfPasswords = Nothing
, cfgPrintInColumns = Nothing
, cfgGeneratePronounceable = True
, cfgIncludeNumbers = True
, cfgIncludeSymbols = True
, cfgIncludeUppers = True
, cfgOutHandle = stdout
}
outHandleL :: L Config Handle
outHandleL = mkL cfgOutHandle $ \ h c -> c{cfgOutHandle = h}
progNameL :: L Config String
progNameL = mkL cfgProgName $ \ pn c -> c{cfgProgName = pn}
generatePronounceableL :: L Config Bool
generatePronounceableL =
mkL cfgGeneratePronounceable $ \ b c -> c{cfgGeneratePronounceable = b}
passwordLengthL :: L Config Word32
passwordLengthL = mkL cfgPasswordLength $ \ n c -> c{cfgPasswordLength = n}
numberOfPasswordsL :: L Config (Maybe Int)
numberOfPasswordsL =
mkL cfgNumberOfPasswords $ \ n c -> c{cfgNumberOfPasswords = n}
includeNumbersL :: L Config Bool
includeNumbersL = mkL cfgIncludeNumbers $ \ b c -> c{cfgIncludeNumbers = b}
includeSymbolsL :: L Config Bool
includeSymbolsL = mkL cfgIncludeSymbols $ \ b c -> c{cfgIncludeSymbols = b}
includeUppersL :: L Config Bool
includeUppersL = mkL cfgIncludeUppers $ \ b c -> c{cfgIncludeUppers = b}
printInColumnsL :: L Config (Maybe Bool)
printInColumnsL = mkL cfgPrintInColumns $ \ b c -> c{cfgPrintInColumns = b}
params :: Parameters Config
params = def
{ paramOutputHandle = get outHandleL
, paramProgName = get progNameL
, paramCommand = get progNameL
, paramVersion = cfgVersion
, paramUsage = const
[ "[OPTIONS] [PASSWORD_LENGTH [NUMBER_OF_PASSWORDS]]"
, "{-h|--help|-V|--version|--numeric-version}"
]
}
options :: [OptDescr (Endo HpwgenMode)]
options =
{- TODO
[ Option "s" ["secure"]
(NoArg . updateConfiguration $ set generatePronounceableL False)
"Generate completely random passwords."
-}
[ Option "cu" ["capitalize", "upper"]
(NoArg . updateConfiguration $ set includeUppersL True)
$ defaultMark (get includeUppersL)
"Upper case letters will be included in passwords."
, Option "CU" ["no-capitalize", "no-upper"]
(NoArg . updateConfiguration $ set includeUppersL False)
$ defaultMark (not . get includeUppersL)
"Upper case letters won't be included in passwords."
, Option "n" ["numerals", "numbers"]
(NoArg . updateConfiguration $ set includeNumbersL True)
$ defaultMark (get includeNumbersL)
"Numbers will be included in passwords."
, Option "N0" [ "no-numerals", "no-numbers"]
(NoArg . updateConfiguration $ set includeNumbersL False)
$ defaultMark (not . get includeNumbersL)
"Numbers won't be included in passwords."
, Option "y" [ "symbols"]
(NoArg . updateConfiguration $ set includeSymbolsL True)
$ defaultMark (get includeSymbolsL)
"Special symbols will be included in passwords."
, Option "Y" [ "no-symbols"]
(NoArg . updateConfiguration $ set includeSymbolsL False)
$ defaultMark (not . get includeSymbolsL)
"Special symbols won't be included in passwords."
, Option "1" ["one-column"]
(NoArg . updateConfiguration . set printInColumnsL $ Just False)
"Passwords will be printed in only one column. If number of passwords\
\ is not specified, then only one password will be printed."
, Option "h" ["help"]
(NoArg $ changeAction PrintHelp)
"Print this help and exit."
, Option "V" ["version"]
(NoArg . changeAction $ PrintVersion False)
"Print version number and exit."
, Option "" ["numeric-version"]
(NoArg . changeAction $ PrintVersion True)
"Print version number (numeric form only) and exit. Useful for batch\
\ processing."
]
where
defaultMark :: (Config -> Bool) -> String -> String
defaultMark p
| p def = (++ " (default)")
| otherwise = id
processOptions :: String -> [String] -> Endo HpwgenMode
processOptions progName = mconcat . processOptions' . getOpt Permute options
where
processOptions' (endos, nonOpts, errs) =
optErrors errs
: processNonOpts nonOpts
: updateConfiguration (set progNameL progName)
: reverse endos
setNum :: Read a => (a -> E Config) -> String -> String -> Endo HpwgenMode
setNum setter what s
| all isDigit s = updateConfiguration . setter $ read s
| otherwise = optError
$ "Incorrect " ++ what ++ ": Expecting number, but got: " ++ show s
setPwNum, setPwLen :: String -> Endo HpwgenMode
setPwNum = setNum (set numberOfPasswordsL . Just) "number of passwords"
setPwLen = setNum (set passwordLengthL) "password length"
processNonOpts opts = case opts of
[] -> mempty
[n] -> setPwLen n
[n, m] -> setPwLen n <> setPwNum m
_ -> optError . ("Too many options: " ++) . unwords $ drop 2 opts
-- | Print passwords in columns.
printPasswords
:: Handle
-> Int
-- ^ Number of columns to print passwords in.
-> [ByteString]
-- ^ List of generated passwords.
-> IO ()
printPasswords _ _ [] = return ()
printPasswords h n pws = do
BS.hPutStrLn h $ BS.unwords x
printPasswords h n xs
where
(x, xs) = splitAt n pws
-- | Calculate number of columns to print passwords in and number of passwords
-- that should be generated.
numberOfColumnsAndPasswords
:: Config
-> Maybe Int
-- ^ Terminal width or 'Nothing' if not a terminal.
-> (Int, Int)
-- ^ Number of columns to print passwords in and number of passowrds that
-- will be generated.
numberOfColumnsAndPasswords cfg s = case (get printInColumnsL cfg, s) of
(Nothing, Nothing) -> (1, fromMaybe 1 pwNum)
-- In auto mode and output is not a terminal.
(Just False, _) -> (1, fromMaybe 1 pwNum)
-- Forcing one column mode, then by default just one password shouls be
-- printed.
(Just True, Nothing) -> let cols = numberOfColumns defaultLineLength
in (cols, fromMaybe (cols * defaultNumberOfLines) pwNum)
-- Forced to print in columns, but output is not a terminal, assuming
-- defaultLineLength character width.
(_, Just n) -> let cols = numberOfColumns n
in (cols, fromMaybe (cols * defaultNumberOfLines) pwNum)
-- Either in auto mode or forced to print in columns, output is a
-- terminal.
where
pwNum = fromIntegral <$> get numberOfPasswordsL cfg
-- n * pwlen + n - 1 <= terminalWidth
-- n * (pwlen + 1) - 1 <= terminalWidth
--
-- terminalWidth + 1
-- n <= -------------------
-- pwlen + 1
numberOfColumns n
| n <= pwlen = 1
| otherwise = case (n + 1) `div` (pwlen + 1) of
d | d <= 1 -> 1
| otherwise -> d
where
pwlen = fromIntegral $ get passwordLengthL cfg
runApp :: SimpleAction -> Config -> IO ()
runApp a cfg = case a of
PrintVersion numericOnly -> printVersion' numericOnly
PrintHelp -> printHelp'
OptErrors errs -> printOptErrors' errs >> printHelp' >> exitFailure
Action -> generatePasswords cfg
where
withParams f = f params cfg
printVersion' = withParams printVersion
printOptErrors' = withParams printOptErrors
printHelp' = do
str <- renderUsageInfo usageInfoCfg "" options
withParams printHelp (\ _ _ -> unlines [str])
where usageInfoCfg = def{outputHandle = get outHandleL cfg}
generatePasswords :: Config -> IO ()
generatePasswords cfg = do
(cols, pwNum) <- numberOfColumnsAndPasswords cfg . fmap width
<$> Terminal.size
printPasswords handle cols =<< withGenRand (\ genRandom ->
replicateM pwNum $ genPassword genPwCfg genRandom pwLen)
where
pwLen = get passwordLengthL cfg
handle = get outHandleL cfg
genPwCfg = (if get generatePronounceableL cfg
then Pronounceable.genPwConfigBS
else Pronounceable.genPwConfigBS)
(get includeUppersL cfg)
(get includeNumbersL cfg)
(get includeSymbolsL cfg)
-- secureCfg cfg =
|
trskop/hpwgen
|
src/Main/Application.hs
|
Haskell
|
bsd-3-clause
| 11,354
|
# Create your views here.
import socket
from pyasn1.error import PyAsn1Error
import requests
from .heartbleed import test_heartbleed
from .models import Check
try:
from OpenSSL.SSL import Error as SSLError
except ImportError:
# In development, we might not have OpenSSL - it's only needed for SNI
class SSLError(Exception):
pass
class SecurityChecker(object):
def run_check(self, url):
self.session = requests.session()
self.session.headers = [('User-agent', "Sasha's pony checkup - http://ponycheckup.com/")]
try:
homepage = self.session.get(url, timeout=7)
check_record = Check(url=url)
check_record.hsts_header_found = self.check_supports_hsts(url)
check_record.xframe_header_found = True if 'X-Frame-Options' in homepage.headers else False
check_record.supports_https = self.check_supports_https(url)
check_record.heartbleed_vuln = self.check_heartbleed_vuln(url)
(check_record.admin_found, check_record.admin_forces_https) = self.check_admin(url)
(check_record.login_found, check_record.login_forces_https) = self.check_login(url)
check_record.allows_trace = self.check_trace(url)
check_record.runs_debug = self.check_runs_debug(url)
check_record.csrf_cookie_found = True if self.find_csrf_cookie() else False
session_cookie = self.find_session_cookie()
if session_cookie:
check_record.session_cookie_found = True
check_record.session_cookie_secure = session_cookie.secure
check_record.session_cookie_httponly = session_cookie.has_nonstandard_attr('httponly')
else:
check_record.session_cookie_found = False
check_record.update_recommendation_count()
check_record.save()
return check_record
except (requests.RequestException, SSLError, PyAsn1Error) as error:
return error
def check_supports_https(self, url):
try:
self.session.get(url.replace("http", "https"), timeout=7)
except:
return False
return True
def check_heartbleed_vuln(self, url):
try:
url = url.replace("http://", "").replace("/", "")
return bool(test_heartbleed(url))
except socket.error:
return False
def check_supports_hsts(self, url):
try:
ssltest = self.session.get(url.replace("http", "https"), timeout=7)
except:
return False
return 'Strict-Transport-Security' in ssltest.headers
def check_runs_debug(self, url):
data = self.session.get(url+"/[][][][][]-this-tries-to-trigger-404....", timeout=7)
return "You're seeing this error because you have <code>DEBUG = True</code>" in data.content
def check_trace(self, url):
response = self.session.request('TRACE', url, timeout=7)
return 'Content-Type' in response.headers and response.headers['Content-Type'] == "message/http"
def check_admin(self, url):
response = self.session.get(url + "/admin", timeout=7)
if response.status_code == 404:
return (False, None)
data = response.content.lower()
admin_found = '"id_username"' in data and ("csrfmiddlewaretoken" in data or "Django" in data or "__admin_media_prefix__" in data)
return (admin_found, self._response_used_https(response))
def check_login(self, url):
response = self.session.get(url + "/accounts/login", timeout=7)
if response.status_code == 404:
response = self.session.get(url + "/login", timeout=7)
if response.status_code == 404:
return (False, None)
return (True, self._response_used_https(response))
def _response_used_https(self, response):
return response.url[:5] == "https"
def find_session_cookie(self):
for cookie in self.session.cookies:
if cookie.name == 'sessionid':
return cookie
return False
def find_csrf_cookie(self):
for cookie in self.session.cookies:
if cookie.name == 'csrftoken':
return cookie
return False
|
erikr/ponycheckup
|
ponycheckup/check/checker.py
|
Python
|
bsd-3-clause
| 4,346
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>F-4020ILK_QnnSafe</title>
<meta name="keywords" content="F-4020ILK,Solid,steel,construc" />
<meta name="description" content="Solid steel construction, fully welded body construction(1/8) Front-loading anti-fishing hopper Anti-pry solid steel door (1/2) Satin texture L shape handle Bolt detent pins and re-locking device on door La Gard group combination lock/digi" />
<link href="/templets/default/style/dedecms.css" rel="stylesheet" media="screen" type="text/css" />
<link href="/templets/default/style/css.css" rel="stylesheet" media="screen" type="text/css" />
<link href="/templets/default/style/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/templets/default/js/action.js"></script>
<script type="text/javascript" src="/templets/default/js/mzp-packed-me.js"></script>
<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
<!--
function CheckLogin(){
var taget_obj = document.getElementById('_ajax_feedback');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/member/ajax_feedback.php");
DedeXHTTP = null;
}
function postBadGood(ftype,fid)
{
var taget_obj = document.getElementById(ftype+fid);
var saveid = GetCookie('badgoodid');
if(saveid != null)
{
var saveids = saveid.split(',');
var hasid = false;
saveid = '';
j = 1;
for(i=saveids.length-1;i>=0;i--)
{
if(saveids[i]==fid && hasid) continue;
else {
if(saveids[i]==fid && !hasid) hasid = true;
saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
j++;
if(j==10 && hasid) break;
if(j==9 && !hasid) break;
}
}
if(hasid) { alert('Äú¸Õ²ÅÒѱí¾ö¹ýÁËร¡'); return false;}
else saveid += ','+fid;
SetCookie('badgoodid',saveid,1);
}
else
{
SetCookie('badgoodid',fid,1);
}
//document.write("feedback.php?action="+ftype+"&fid="+fid);
//return;
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/plus/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
DedeXHTTP = null;
}
-->
</script>
<script type="text/javascript">
//SuckerTree Vertical Menu (Aug 4th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/
var menuids=["suckertree1"] //Enter id(s) of SuckerTree UL menus, separated by commas
function buildsubmenus(){
for (var i=0; i<menuids.length; i++){
var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
for (var t=0; t<ultags.length; t++){
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
ultags[t].parentNode.onmouseover=function(){
this.getElementsByTagName("ul")[0].style.display="block"
}
ultags[t].parentNode.onmouseout=function(){
this.getElementsByTagName("ul")[0].style.display="none"
}
}
}
}
if (window.addEventListener)
window.addEventListener("load", buildsubmenus, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus)
</script>
<!--Ñ¡Ï-->
<script language=javascript>
<!--
function setTab(name,cursel,n){
for(i=1;i<=n;i++){
var menu=document.getElementById(name+i);
var con=document.getElementById("con_"+name+"_"+i);
menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
}
//-->
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35938362-1']);
_gaq.push(['_setDomainName', 'qnnsafes.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body class="productview">
<div class="header_top">
<div class="w960 center">
<span id="time" class="time">We are one of the biggest OEM manufacturer in the world£¡</span><div style="text-align:right;"><a href="http://www.qnn.com.cn" target="_blank">Chinese</a></div>
<!-- <div class="toplinks"><a href="/plus/heightsearch.php" target="_blank">¸ß¼¶ËÑË÷</a>|<a href="/data/sitemap.html" target="_blank">ÍøÕ¾µØÍ¼</a>|<a href="/tags.php">TAG±êÇ©</a><a href="/data/rssmap.html" class="rss">RSS¶©ÔÄ</a><span>[<a href=""onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.qnnsafes.com');">ÉèΪÊ×Ò³</a>] [<a href="javascript:window.external.AddFavorite('http://www.qnnsafes.com','QnnSafe')">¼ÓÈëÊÕ²Ø</a>]</span></div> -->
</div>
</div>
<!-- /header -->
<div class="w960 center clear mt1">
<div class="pleft">
<div class="place">
<strong>Current Location:</strong> <a href='../../../../../index.html'>HOME</a> > <a href='../../../../index.html'>PRODUCTS</a> > <a href='../../../index.html'>depositary safe</a> > <a href='../../index.html'>Front Loading</a> >
</div><!-- /place -->
<div class="viewbox">
<div class="title">
<h2>Front Loading</h2>
</div><!-- /title -->
<div class="infolist">
<small>Model Number£º</small><span>F-4020ILK</span>
<span></span>
<small>Exterior Size£º</small><span>H1016XW508XD508mm</span>
<!-- <small>Interior Size£º</small><span></span> -->
<small>Approx Weight£º</small><span>119kgs (261.8lbs)</span>
</div><!-- /info -->
<div class="picview">
<div class="AreaR">
<div id="goodsInfo" class="clearfix">
<div class="imgInfo">
<a style="position: relative; display: block; outline: 0pt none; text-decoration: none; width: 310px; -moz-user-select: none;" href="../../../../../uploads/120704/1-120F4113304L9.jpg" id="zoom1" class="MagicZoom MagicThumb" title="F-4020ILK"><img id="sim126707" src="../../../../../uploads/120704/1-120F4113304L9.jpg" alt="F-4020ILK" height="310px" width="310px;">
</a>
<div class="blank5"></div>
<div class="picture" id="imglist">
<a style="outline: 0pt none;" href="../../../../../uploads/120704/1-120F4113304L9.jpg" rel="zoom1" rev="/uploads/120704/1-120F4113304L9.jpg" title="">
<img src="../../../../../uploads/120704/1-120F4113304L9.jpg" alt="'/}" class="onbg"></a>
<a style="outline: 0pt none;" href="../../../../../uploads/120730/1-120I010105Y54.jpg" rel="zoom1" rev="/uploads/120730/1-120I010105Y54.jpg" title="">
<img src="../../../../../uploads/120730/1-120I010105Y54.jpg" alt="" class="autobg"></a>
<a style="outline: 0pt none;" href="../../../../../uploads/120730/1-120I010105Y54.jpg" rel="zoom1" rev="/uploads/120730/1-120I010105Y54.jpg" title="">
<img src="../../../../../uploads/120730/1-120I010105Y54.jpg" alt="" class="autobg"></a>
<a style="outline: 0pt none;" href="../../../../../uploads/120730/1-120I010105Y54.jpg" rel="zoom1" rev="/uploads/120730/1-120I010105Y54.jpg" title="">
<img src="../../../../../uploads/120730/1-120I010105Y54.jpg" alt="" class="autobg"></a>
</div>
</div>
<script type="text/javascript">
mypicBg();
</script>
</div>
</div>
</div><!-- /info -->
<div class="Tab1" id="bb1">
<div class="tab2">
</div>
<div class="tab3">
<div class="Menubox">
<ul>
<li id="two1" onclick="setTab('two',1,7)" class="hover">
<span class="li01">Features</span></li>
<li class="li01" id="two2" onclick="setTab('two',2,7)" >
<span class="li02">Parameter</span></li>
<li class="li02" id="two3" onclick="setTab('two',3,7)" >
<span class="li03">Additional Information</span></li>
</ul>
</div>
</div>
</div>
<div class="Contentbox">
<div id="con_two_1" class="hover"><ul>
<li>
Solid steel construction, fully welded body construction(1/8”)</li>
<li>
Front-loading anti-fishing hopper</li>
<li>
Anti-pry solid steel door (1/2”)</li>
<li>
Satin texture L shape handle</li>
<li>
Bolt detent pins and re-locking device on door</li>
<li>
La Gard group combination lock/digital lock/dual heads key lock</li>
<li>
Heavy-duty vault hinges</li>
<li>
1-1/4” chrome plated bolts</li>
<li>
Pre-drilled anchor holes</li>
<li>
Stainless steel decoration plate</li>
<li>
1/4”anti-drill hard plate behind the lock</li>
<li>
Hinge side “L” dead bar</li>
<li>
Quality powder coating finished</li>
</ul>
</div>
<div id="con_two_2" style="display:none"><ul>
<li>
Exterior Size –H1016XW508XD508mm</li>
<li>
Approx Weight: 119kgs (261.8lbs) </li>
<li>
Thickness: 3mm/body, 12mm/door</li>
<li>
C: mechanical dial lock</li>
<li>
K: dual key lock</li>
<li>
CC: two compartments with mechanical dial locks</li>
<li>
ILK: inner locker with key lock</li>
</ul>
</div>
<div id="con_two_3" style="display:none"><strong>F.O.C. Spare parts</strong><br />
<br />
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px">
<tbody>
<tr>
<td style="text-align: center">
<img alt="" src="../../../../../uploads/allimg/120704/1-120F4105339613.jpg" style="width: 162px; height: 124px" /></td>
</tr>
<tr>
<td style="text-align: center">
<strong>Screws</strong></td>
</tr>
</tbody>
</table>
<br />
<strong>Locks available</strong><br />
King Kong electronic lock<br />
La Guard combination lock<br />
dual heads key lock<br />
<br />
<strong>Packaging</strong><br />
<br />
<table border="1" cellpadding="0" cellspacing="1" style="width: 500px" width="500">
<tbody>
<tr>
<td>
<img alt="" src="../../../../../uploads/allimg/120703/1-120F309153U34.jpg" style="width: 227px; height: 170px" /></td>
<td>
<img alt="" src="../../../../../uploads/allimg/120703/1-120F3091519215.jpg" style="width: 230px; height: 173px" /></td>
<td>
</td>
</tr>
</tbody>
</table>
<br />
<strong>Warranty</strong><br />
With limited 1 year warranty<br />
<br />
</div>
</div>
<div class="boxoff">
<strong>------·Ö¸ôÏß----------------------------</strong>
</div>
<div class="handle">
<!-- <div class="context">
<ul>
<li>ÉÏһƪ£º<a href='/Products/deposit safe/F/2012/0704/140.html'>F-3214CCM/EEM</a> </li>
<li>ÏÂһƪ£ºÃ»ÓÐÁË </li>
</ul>
</div> --> <!-- /context -->
<!-- <div class="actbox">
<ul>
<li id="act-fav"><a href="/plus/stow.php?aid=141" target="_blank">ÊÕ²Ø</a></li>
<li id="act-err"><a href="/plus/erraddsave.php?aid=141&title=F-4020ILK" target="_blank">Ìô´í</a></li>
<li id="act-pus"><a href="/plus/recommend.php?aid=141" target="_blank">ÍÆ¼ö</a></li>
<li id="act-pnt"><a href="#" target="_blank" onClick="window.print();">´òÓ¡</a></li>
</ul>
</div> -->
</div><!-- /handle -->
</div><!-- viewbox -->
</div><!-- /pleft -->
<div class="pright">
<div class="home"><img src="/templets/default/images/logo.gif"/>
<ul>
<li><a href="../../../../../index.html">HOME</a></li>
</ul>
</div>
<div>
<dl class="tbox">
<dt><strong><a href="../../../../index.html">All QNN Safes</a></strong></dt>
<dd>
<ul class="d6">
<li><a href="../../../../hotel safe/index.html">Hotel Safe</a></li>
<li><a href="../../../../gun safe/index.html">Gun Safe</a></li>
<li><a href="../../../../commercial safe/index.html">Commercial Safe</a></li>
<li><a href="../../../../fireproof safe/index.html">Fireproof Safe</a></li>
<li><a href="../../../../filing canine safe/index.html">Filing Cabinet Safe</a></li>
<li><a href="../../../../burglary and fire safe/index.html">Burglary And Fire Safe</a></li>
<li><a href="../../../../locker/index.html">Locker</a></li>
<li><a href="../../../../wall safe/index.html">Wall Safe</a></li>
<li><a href="../../../../floor safe/index.html">Floor Safe</a></li>
<li><a href="../../../index.html">Deposit Safe</a></li>
<li><a href="../../../../fingerprint safe/index.html">Fingerprint Safe</a></li>
<li><a href="../../../../home or office safe/index.html">Home & Office Safe</a></li>
<li><a href="../../../../new safe/index.html">New Safe</a></li>
</ul>
</dd>
</dl>
</div>
<div id="navMenu">
<ul>
<li><a href='../../../../../news/index.html' >NEWS</a></li>
<li><a href='../../../../../about/index.html' >ABOUT US</a></li>
<li><a href='../../../../../tech/index.html' >TECH SUPPORT</a></li>
<li><a href='../../../../../contact/index.html' >CONTACT</a></li>
<li><a href='../../../../../search/index.html' >CUSTOMER CARE</a></li>
<li><a href='../../../../../certificate/index.html' >CERTIFICATE</a></li>
<li class='hover'><a href='../../../../index.html' rel='dropmenu8'>PRODUCTS</a></li>
</ul>
</div>
</div>
<!-- /pright -->
</div>
<!-- <div id="innerfooterAD2" style="margin:10px auto; width:726px"><script type="text/javascript" src="http://ad.dedecms.com/adsview/?action=single&key=innerfooterad2&charset=gbk"></script></div> -->
<!-- //µ×²¿Ä£°å -->
<div class="footer w960 center mt1 clear">
<!--
ΪÁËÖ§³ÖÖ¯ÃÎÍŶӵķ¢Õ¹,ÇëÄú±£ÁôÖ¯ÃÎÄÚÈݹÜÀíϵͳµÄÁ´½ÓÐÅÏ¢.
ÎÒÃǶÔÖ§³ÖÖ¯ÃÎÍŶӷ¢Õ¹µÄÅóÓѱíÊ¾ÕæÐĵĸÐл!Ö¯ÃÎÒòÄú¸ü¾«²Ê!
-->
<div class="footer_left"></div>
<div class="footer_body">
<p class="powered">
<img src="/templets/default/images/logo.gif" /> <br/>
NO.8 Dexiang Road,Fengxiang Industrial Park, Daliang, Shunde district, Foshan city, Guangdong Province China<br /><div class="copyright">Copyright © 2010-2012 QNN SAFE MANUFACTURING CO., LTD. All rights reserved.  Guangdong ICP No. 05038637 - 1</div></p>
<!-- /powered -->
</div>
<div class="footer_right"></div>
</div>
<!-- Google Code for 再营销代码 -->
<!-- Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. For instructions on adding this tag and more information on the above requirements, read the setup guide: google.com/ads/remarketingsetup -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 994753711;
var google_conversion_label = "3XjLCPn8-AMQr_mq2gM";
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="http://googleads.g.doubleclick.net/pagead/viewthroughconversion/994753711/?value=0&label=3XjLCPn8-AMQr_mq2gM&guid=ON&script=0"/>
</div>
</noscript>
<!-- /footer -->
</body>
</html>
|
qnn/qnnsafes.com-v1
|
Products/deposit safe/F/2012/0704/141.html
|
HTML
|
bsd-3-clause
| 15,812
|
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2014 Couchbase, 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.
*/
#include <algorithm>
#include <cstring>
#include <sstream>
#include <cJSON.h>
#include <platform/dirutils.h>
#include <memcached/isotime.h>
#include "auditd.h"
#include "audit.h"
#include "config.h"
#include "auditd_audit_events.h"
#include "event.h"
Audit audit;
void process_auditd_stats(ADD_STAT add_stats, void *c) {
const char *enabled;
enabled = audit.config.is_auditd_enabled() ? "true" : "false";
add_stats("enabled", (uint16_t)strlen("enabled"),
enabled, (uint32_t)strlen(enabled), c);
std::stringstream num_of_dropped_events;
num_of_dropped_events << audit.dropped_events;
add_stats("dropped_events", (uint16_t)strlen("dropped_events"),
num_of_dropped_events.str().c_str(),
(uint32_t)num_of_dropped_events.str().length(), c);
}
static void (*audit_processed_listener)(void) = NULL;
void audit_set_audit_processed_listener(void (*listener)(void)) {
audit_processed_listener = listener;
}
static void consume_events(void *arg) {
cb_mutex_enter(&audit.producer_consumer_lock);
while (!audit.terminate_audit_daemon) {
assert(audit.filleventqueue != NULL);
if (audit.filleventqueue->empty()) {
// wait up after 10 secs no matter what
cb_cond_timedwait(&audit.events_arrived,
&audit.producer_consumer_lock,
audit.auditfile.get_seconds_to_rotation() * 1000);
if (audit.filleventqueue->empty()) {
// We timed out, so just rotate the files
audit.auditfile.maybe_rotate_files();
}
}
/* now have producer_consumer lock!
* event(s) have arrived or shutdown requested
*/
swap(audit.processeventqueue, audit.filleventqueue);
cb_mutex_exit(&audit.producer_consumer_lock);
// Now outside of the producer_consumer_lock
assert(audit.processeventqueue != NULL);
while (!audit.processeventqueue->empty()) {
Event *event = audit.processeventqueue->front();
if (!event->process(audit)) {
audit.dropped_events++;
}
audit.processeventqueue->pop();
delete event;
if (audit_processed_listener) {
audit_processed_listener();
}
}
audit.auditfile.flush();
cb_mutex_enter(&audit.producer_consumer_lock);
}
cb_mutex_exit(&audit.producer_consumer_lock);
// close the auditfile
audit.auditfile.close();
}
AUDIT_ERROR_CODE start_auditdaemon(const AUDIT_EXTENSION_DATA *extension_data) {
Audit::logger = extension_data->log_extension;
char host[128];
gethostname(host, sizeof(host));
Audit::hostname = std::string(host);
Audit::notify_io_complete = extension_data->notify_io_complete;
if (extension_data->version != 1) {
Audit::log_error(AuditErrorCode::AUDIT_EXTENSION_DATA_ERROR, NULL);
return AUDIT_FAILED;
}
AuditConfig::min_file_rotation_time = extension_data->min_file_rotation_time;
AuditConfig::max_file_rotation_time = extension_data->max_file_rotation_time;
if (cb_create_named_thread(&audit.consumer_tid, consume_events, NULL, 0,
"mc:auditd") != 0) {
Audit::log_error(AuditErrorCode::CB_CREATE_THREAD_ERROR, NULL);
return AUDIT_FAILED;
}
return AUDIT_SUCCESS;
}
AUDIT_ERROR_CODE configure_auditdaemon(const char *config, const void *cookie) {
AUDIT_ERROR_CODE res;
audit.configfile = std::string(config);
if (cookie == NULL) {
res = audit.configure() ? AUDIT_SUCCESS : AUDIT_FAILED;
} else {
res = audit.add_reconfigure_event(cookie) ? AUDIT_EWOULDBLOCK : AUDIT_FAILED;
}
return res;
}
AUDIT_ERROR_CODE put_audit_event(const uint32_t audit_eventid,
const void *payload, size_t length) {
if (audit.config.is_auditd_enabled()) {
if (!audit.add_to_filleventqueue(audit_eventid, (char *)payload, length)) {
return AUDIT_FAILED;
}
}
return AUDIT_SUCCESS;
}
AUDIT_ERROR_CODE put_json_audit_event(uint32_t id, cJSON *event) {
cJSON *ts = cJSON_GetObjectItem(event, "timestamp");
if (ts == NULL) {
std::string timestamp = ISOTime::generatetimestamp();
cJSON_AddStringToObject(event, "timestamp", timestamp.c_str());
}
char *text = cJSON_PrintUnformatted(event);
AUDIT_ERROR_CODE ret = put_audit_event(id, text, strlen(text));
cJSON_Free(text);
return ret;
}
AUDIT_ERROR_CODE shutdown_auditdaemon(const char *config) {
if (config != NULL && audit.config.is_auditd_enabled()) {
// send event to say we are shutting down the audit daemon
cJSON *payload = cJSON_CreateObject();
assert(payload != NULL);
if (!audit.create_audit_event(AUDITD_AUDIT_SHUTTING_DOWN_AUDIT_DAEMON,
payload)) {
cJSON_Delete(payload);
audit.clean_up();
return AUDIT_FAILED;
}
char *content = cJSON_Print(payload);
assert(content != NULL);
cJSON_Delete(payload);
if (!audit.add_to_filleventqueue(AUDITD_AUDIT_SHUTTING_DOWN_AUDIT_DAEMON,
content, strlen(content))) {
cJSON_Free(content);
audit.clean_up();
return AUDIT_FAILED;
}
cJSON_Free(content);
}
cb_mutex_enter(&audit.producer_consumer_lock);
audit.terminate_audit_daemon = true;
cb_mutex_exit(&audit.producer_consumer_lock);
/* consumer thread maybe waiting for an event to arrive so need
* to send it a broadcast so it can exit cleanly
*/
cb_mutex_enter(&audit.producer_consumer_lock);
cb_cond_broadcast(&audit.events_arrived);
cb_mutex_exit(&audit.producer_consumer_lock);
if (cb_join_thread(audit.consumer_tid) != 0) {
audit.clean_up();
return AUDIT_FAILED;
}
audit.clean_up();
return AUDIT_SUCCESS;
}
static std::atomic<time_t> auditd_test_timetravel_offset;
time_t auditd_time(time_t *tloc) {
time_t now;
time(&now);
now += auditd_test_timetravel_offset.load(std::memory_order_acquire);
if (tloc != NULL) {
*tloc = now;
}
return now;
}
MEMCACHED_PUBLIC_API
void audit_test_timetravel(time_t offset) {
auditd_test_timetravel_offset += offset;
}
|
cloudrain21/memcached-1
|
auditd/src/auditd.cc
|
C++
|
bsd-3-clause
| 7,167
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="sv">
<context>
<name>MainUI</name>
<message>
<location filename="../MainUI.ui" line="14"/>
<location filename="../MainUI.ui" line="29"/>
<location filename="../MainUI.cpp" line="184"/>
<source>File Information</source>
<translation>Filinformation</translation>
</message>
<message>
<location filename="../MainUI.ui" line="61"/>
<source>Owner:</source>
<translation>Ägare:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="78"/>
<source>Group:</source>
<translation>Grupp:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="95"/>
<source>Permissions:</source>
<translation>Behörigheter:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="109"/>
<source>Created:</source>
<translation>Skapad:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="116"/>
<source>Note: The time a file was created might be more recent than the time modified if the file permissions were changed recently.</source>
<translation>Obs: Tiden en fil skapades kan vara nyare än den tid filen sist ändrades om filrättigheterna ändrades nyligen.</translation>
</message>
<message>
<location filename="../MainUI.ui" line="129"/>
<source>Last Modified:</source>
<translation>Senast ändrad:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="136"/>
<source>Type:</source>
<translation>Typ:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="143"/>
<source>MimeType:</source>
<translation>MIME-typ:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="190"/>
<source>File Size:</source>
<translation>Filstorlek:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="221"/>
<location filename="../MainUI.cpp" line="232"/>
<source>Advanced</source>
<translation>Avancerad</translation>
</message>
<message>
<location filename="../MainUI.ui" line="235"/>
<source>ZFS Pool:</source>
<translation>ZFS Pool:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="255"/>
<source>Property</source>
<translation>Egenskap</translation>
</message>
<message>
<location filename="../MainUI.ui" line="260"/>
<source>Value</source>
<translation>Värde</translation>
</message>
<message>
<location filename="../MainUI.ui" line="265"/>
<source>Source</source>
<translation>Källa</translation>
</message>
<message>
<location filename="../MainUI.ui" line="277"/>
<source>Snapshot</source>
<translation>Ögonblicksbild</translation>
</message>
<message>
<location filename="../MainUI.ui" line="282"/>
<source>Date Created</source>
<translation>Datum skapad></translation>
</message>
<message>
<location filename="../MainUI.ui" line="287"/>
<source>Date Modified</source>
<translation>Datum modiferad</translation>
</message>
<message>
<location filename="../MainUI.ui" line="617"/>
<source>&File</source>
<translation>& Fil</translation>
</message>
<message>
<location filename="../MainUI.ui" line="621"/>
<source>Save As</source>
<translation>Spara som</translation>
</message>
<message>
<location filename="../MainUI.ui" line="649"/>
<source>Open File</source>
<translation>Öppna fil</translation>
</message>
<message>
<location filename="../MainUI.ui" line="652"/>
<source>Ctrl+O</source>
<translation>CTRL+O</translation>
</message>
<message>
<location filename="../MainUI.ui" line="664"/>
<source>Quit</source>
<translation>Avsluta</translation>
</message>
<message>
<location filename="../MainUI.ui" line="667"/>
<source>Ctrl+Q</source>
<translation>CTRL+Q</translation>
</message>
<message>
<location filename="../MainUI.ui" line="679"/>
<source>Save Shortcut</source>
<translation>Spara genväg</translation>
</message>
<message>
<location filename="../MainUI.ui" line="682"/>
<source>Ctrl+S</source>
<translation>CTRL+S></translation>
</message>
<message>
<location filename="../MainUI.ui" line="694"/>
<source>Local Shortcut</source>
<translation>Lokal genväg</translation>
</message>
<message>
<location filename="../MainUI.ui" line="703"/>
<source>Register Shortcut</source>
<translation>Registrera genväg</translation>
</message>
<message>
<location filename="../MainUI.ui" line="712"/>
<source>Open Directory</source>
<translation>Öppna katalog</translation>
</message>
<message>
<location filename="../MainUI.ui" line="721"/>
<source>New Shortcut</source>
<translation>Ny genväg></translation>
</message>
<message>
<location filename="../MainUI.ui" line="319"/>
<source>Working Dir:</source>
<translation>Arbetskatalog:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="326"/>
<source>Use startup notification</source>
<translation>Använd uppstartsnotifiering</translation>
</message>
<message>
<location filename="../MainUI.ui" line="340"/>
<source>Icon:</source>
<translation>Ikon:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="347"/>
<source>Command:</source>
<translation>Kommando:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="354"/>
<source>Comment:</source>
<translation>Kommentar:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="364"/>
<source>Run in terminal</source>
<translation>Kör i terminal</translation>
</message>
<message>
<location filename="../MainUI.ui" line="371"/>
<source>Name:</source>
<translation>Namn:</translation>
</message>
<message>
<location filename="../MainUI.ui" line="378"/>
<source>Options</source>
<translation>Inställningar</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="141"/>
<source>---Calculating---</source>
<translation>---Beräknar---</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="150"/>
<source>Read/Write</source>
<translation>Läs/Skriv</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="151"/>
<source>Read Only</source>
<translation>Skrivskyddad</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="152"/>
<source>Write Only</source>
<translation>Endast skriva</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="153"/>
<source>No Access</source>
<translation>Ingen åtkomst</translation>
</message>
<message>
<location filename="../MainUI.ui" line="296"/>
<location filename="../MainUI.cpp" line="157"/>
<location filename="../MainUI.cpp" line="191"/>
<location filename="../MainUI.cpp" line="256"/>
<source>XDG Shortcut</source>
<translation>XDG Genväg</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="158"/>
<source>Directory</source>
<translation>Katalog</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="159"/>
<source>Binary</source>
<translation>Binär</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="161"/>
<source>Hidden %1</source>
<translation>Dold %1</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="284"/>
<source>URL:</source>
<translation>URL:</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="398"/>
<location filename="../MainUI.cpp" line="413"/>
<location filename="../MainUI.cpp" line="430"/>
<source>Save Application File</source>
<translation>Spara programfil</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="398"/>
<location filename="../MainUI.cpp" line="413"/>
<location filename="../MainUI.cpp" line="430"/>
<source>XDG Shortcuts (*.desktop)</source>
<translation>XDG genvägar (*.desktop)</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="461"/>
<source>Select a binary</source>
<translation>Välj en binär</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="464"/>
<source>Error</source>
<translation>Fel</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="464"/>
<source>Invalid selection: Not a valid executable</source>
<translation>Ogiltigt val: Inte giltig körbar fil</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="476"/>
<source>Select a directory</source>
<translation>Välj en katalog</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="489"/>
<source>Select an icon</source>
<translation>Välj en ikon</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="489"/>
<source>Images (%1);; All Files (*)</source>
<translation>Bilder (%1);; Alla filer (*)</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="516"/>
<source>Valid Settings</source>
<translation>Giltiga inställningar</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="516"/>
<source>Invalid Settings</source>
<translation>Ogiltiga inställningar</translation>
</message>
<message>
<location filename="../MainUI.cpp" line="535"/>
<location filename="../MainUI.cpp" line="537"/>
<source> Folders: </source>
<translation> Mappar: </translation>
</message>
<message>
<location filename="../MainUI.cpp" line="535"/>
<location filename="../MainUI.cpp" line="537"/>
<source>Files: </source>
<translation>Filer: </translation>
</message>
<message>
<location filename="../MainUI.cpp" line="537"/>
<source> Calculating...</source>
<translation> Beräknar...</translation>
</message>
</context>
<context>
<name>XDGDesktopList</name>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="618"/>
<source>Multimedia</source>
<translation>Multimedia</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="619"/>
<source>Development</source>
<translation>Utveckling</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="620"/>
<source>Education</source>
<translation>Utbildning</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="621"/>
<source>Games</source>
<translation>Spel</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="622"/>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="623"/>
<source>Network</source>
<translation>Nätverk</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="624"/>
<source>Office</source>
<translation>Kontor</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="625"/>
<source>Science</source>
<translation>Vetenskap</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="626"/>
<source>Settings</source>
<translation>Inställningar</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="627"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="628"/>
<source>Utility</source>
<translation>Verktyg</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="629"/>
<source>Wine</source>
<translation>Wine</translation>
</message>
<message>
<location filename="../../../core/libLumina/LuminaXDG.cpp" line="630"/>
<source>Unsorted</source>
<translation>Oserterat</translation>
</message>
</context>
</TS>
|
pcbsd/lumina
|
src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_sv.ts
|
TypeScript
|
bsd-3-clause
| 13,851
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.coderedrobotics.libs.dash;
/**
*
* @author laptop
*/
public class Packet {
public final double val;
public final String name;
public final long time;
Packet(double val, String name, long time) {
this.val = val;
this.name = name;
this.time = time;
}
}
|
CodeRed2771/Sally
|
src/com/coderedrobotics/libs/dash/Packet.java
|
Java
|
bsd-3-clause
| 413
|
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Makefile
#
# usage: 'make [package]'
#
# This makefile builds all of the Native Client ports listed below
# in $(ALL_PORTS). Each port has a dependency on its own sentinel
# file, which can be found at out/sentinels/*
#
# The makefile depends on the NACL_SDK_ROOT environment variable
OS_NAME := $(shell uname -s)
OS_SUBDIR := UNKNOWN
ifeq ($(OS_NAME), Darwin)
OS_SUBDIR := mac
endif
ifeq ($(OS_NAME), Linux)
OS_SUBDIR := linux
endif
ifneq (, $(filter CYGWIN%,$(OS_NAME)))
OS_SUBDIR := win
endif
ifeq ($(OS_SUBDIR), UNKNOWN)
$(error No support for the Operating System: $(OS_NAME))
endif
ifndef NACL_ARCH
ifeq ($(OS_NAME), Darwin)
NACL_ARCH := i686
else
NACL_ARCH := x86_64
endif
endif
ifndef NACL_SDK_ROOT
$(error NACL_SDK_ROOT not set, see README.txt)
endif
ifeq ($(NACL_GLIBC), 1)
ifeq ($(NACL_ARCH), arm)
$(error NACL_GLIBC does not work with arm)
endif
ifeq ($(NACL_ARCH), pnacl)
$(error NACL_GLIBC does not work with pnacl)
endif
endif
ifeq ($(NACL_ARCH), arm)
NACL_TOOLCHAIN_ROOT = $(NACL_SDK_ROOT)/toolchain/$(OS_SUBDIR)_arm_newlib
NACL_LIBC = newlib
else
ifeq ($(NACL_GLIBC), 1)
NACL_TOOLCHAIN_ROOT = $(NACL_SDK_ROOT)/toolchain/$(OS_SUBDIR)_x86_glibc
NACL_LIBC = glibc
else
NACL_TOOLCHAIN_ROOT = $(NACL_SDK_ROOT)/toolchain/$(OS_SUBDIR)_x86_newlib
NACL_LIBC = newlib
endif
endif
NACL_OUT = out
NACL_DIRS_TO_REMOVE = $(NACL_OUT)/sentinels $(NACL_OUT)/stamp $(NACL_OUT)/repository
ifneq ($(NACL_ARCH),pnacl)
# The toolchain's 'usr' folder is reserved for naclports and we
# remove it completely on clean. Except under 'pnacl' where the
# toolchain itself uses 'usr' so we can't currenctly cleanup
# fully.
NACLPORTS_PREFIX ?= $(NACL_TOOLCHAIN_ROOT)/$(NACL_ARCH)-nacl/usr
NACL_DIRS_TO_REMOVE += $(NACLPORTS_PREFIX)
else
NACLPORTS_PREFIX ?= $(NACL_TOOLCHAIN_ROOT)/usr
endif
ALL_PORTS = \
ports/agg \
ports/bash \
ports/bochs \
ports/boost \
ports/box2d \
ports/bullet \
ports/bzip2 \
ports/cairo \
ports/cfitsio \
ports/civetweb \
ports/curl \
ports/DevIL \
ports/dosbox \
ports/dreadthread \
ports/drod \
ports/expat \
ports/faac \
ports/faad2 \
ports/ffmpeg \
ports/fftw \
ports/flac \
ports/fontconfig \
ports/freealut \
ports/FreeImage \
ports/freetype \
ports/gc \
ports/gdb \
ports/giflib \
ports/glib \
ports/glibc-compat \
ports/gsl \
ports/ImageMagick \
ports/jpeg6b \
ports/jpeg8d \
ports/jsoncpp \
ports/lame \
ports/lcms \
ports/libav \
ports/libhangul \
ports/libmikmod \
ports/libmng \
ports/libmodplug \
ports/libogg \
ports/libpng \
ports/libtar \
ports/libtheora \
ports/libtomcrypt \
ports/libtommath \
ports/libvorbis \
ports/libxml2 \
ports/lua5.1 \
ports/lua5.2 \
ports/lua_ppapi \
ports/Mesa \
ports/mesagl \
ports/metakit \
ports/mongoose \
ports/mpg123 \
ports/nacl-mounts \
ports/nano \
ports/ncurses \
ports/nethack \
ports/openal-ogg \
ports/openal-soft \
ports/opencv \
ports/OpenSceneGraph \
ports/openssh \
ports/openssl \
ports/pango \
ports/physfs \
ports/pixman \
ports/podofo \
ports/poppler \
ports/protobuf \
ports/python \
ports/python_ppapi \
ports/python3 \
ports/python3_ppapi \
ports/readline \
ports/Regal \
ports/ruby \
ports/ruby_ppapi \
ports/scummvm \
ports/SDL \
ports/SDL_image \
ports/SDL_mixer \
ports/SDL_net \
ports/SDL_ttf \
ports/snes9x \
ports/speex \
ports/sqlite \
ports/thttpd \
ports/tiff \
ports/tinyxml \
ports/vim \
ports/webp \
ports/x264 \
ports/xaos \
ports/yajl \
ports/zlib
SENTINELS_DIR = $(NACL_OUT)/sentinels
SENT := $(SENTINELS_DIR)/$(NACL_ARCH)
ifneq ($(NACL_ARCH), pnacl)
SENT := $(SENT)_$(NACL_LIBC)
endif
ifeq ($(NACL_DEBUG), 1)
SENT := $(SENT)_debug
endif
all: $(ALL_PORTS)
# The subset of libraries that are shipped as part of the
# official NaCl SDK
SDK_LIBS = freealut freetype jpeg lua5.2 modplug ogg openal png theora tiff tinyxml
SDK_LIBS += vorbis webp xml2 zlib
sdklibs: $(SDK_LIBS)
package_list:
@echo $(notdir $(ALL_PORTS))
sdklibs_list:
@echo $(SDK_LIBS)
run:
./httpd.py
.PHONY: all run clean sdklibs sdklibs_list reallyclean
clean:
rm -rf $(NACL_DIRS_TO_REMOVE)
reallyclean: clean
rm -rf $(NACL_OUT)
ifdef PRINT_DEPS
# Defining PRINT_DEPS means that we don't actually build anything
# but only echo the names of the packages that would have been built.
# In this case we use a dummy sentinal directory which will always
# be empty.
SENT = $(NACL_OUT)/dummy_location
$(ALL_PORTS): %: $(SENT)/%
else
$(ALL_PORTS): %: $(SENT)/%
endif
ifdef NACLPORTS_NO_ANNOTATE
START_BUILD=echo "*** Building $(NACL_ARCH) $(notdir $*) ***"
else
START_BUILD=echo "@@@BUILD_STEP $(NACL_ARCH) $(NACL_LIBC) $(notdir $*)@@@"
endif
ifdef CLEAN
.PHONY: $(ALL_PORTS:%=$(SENT)/%)
$(ALL_PORTS:%=$(SENT)/%):
@rm $@
else
ifdef PRINT_DEPS
$(ALL_PORTS:%=$(SENT)/%): $(SENT)/%:
@echo $(notdir $(subst $(SENT)/,,$@))
else
$(ALL_PORTS:%=$(SENT)/%): $(SENT)/%:
@$(START_BUILD)
python build_tools/naclports.py check -C $*
if python build_tools/naclports.py enabled -C $*; then \
cd $* && NACL_ARCH=$(NACL_ARCH) NACL_GLIBC=$(NACL_GLIBC) ./build.sh; fi
mkdir -p $(@D)
touch $@
endif
endif
# packages with dependencies
$(SENT)/ports/libvorbis: ports/libogg
$(SENT)/ports/libtheora: ports/libogg
$(SENT)/ports/flac: ports/libogg
$(SENT)/ports/speex: ports/libogg
$(SENT)/ports/fontconfig: ports/expat ports/freetype
$(SENT)/ports/libtar: ports/zlib
$(SENT)/ports/libpng: ports/zlib
$(SENT)/ports/agg: ports/freetype
$(SENT)/ports/cairo: ports/pixman ports/fontconfig ports/libpng
$(SENT)/ports/ffmpeg: ports/lame ports/libvorbis ports/libtheora \
ports/glibc-compat
$(SENT)/ports/webp: ports/tiff ports/jpeg8d
$(SENT)/ports/libav: ports/lame ports/libvorbis
$(SENT)/ports/libtar: ports/zlib
ifeq ($(LUA_NO_READLINE),)
$(SENT)/ports/lua5.1: ports/readline
$(SENT)/ports/lua5.2: ports/readline
endif
$(SENT)/ports/podofo: ports/openssl ports/jpeg8d
$(SENT)/ports/poppler: ports/fontconfig ports/cairo
$(SENT)/ports/python: ports/readline ports/zlib
$(SENT)/ports/python3: ports/readline ports/zlib
$(SENT)/ports/ruby: ports/readline ports/zlib
$(SENT)/ports/sqlite: ports/readline
$(SENT)/ports/nethack: ports/ncurses ports/libtar
$(SENT)/ports/bash: ports/ncurses ports/libtar
$(SENT)/ports/nano: ports/ncurses ports/libtar
$(SENT)/ports/vim: ports/ncurses ports/libtar
$(SENT)/ports/texlive: ports/libtar
$(SENT)/ports/thttpd: ports/jsoncpp
$(SENT)/ports/openssh: ports/zlib ports/openssl ports/jsoncpp
$(SENT)/ports/python_ppapi: ports/python ports/libtar
$(SENT)/ports/python3_ppapi: ports/python3 ports/libtar
$(SENT)/ports/lua_ppapi: ports/lua5.2 ports/libtar
$(SENT)/ports/ruby_ppapi: ports/ruby ports/libtar ports/glibc-compat
$(SENT)/ports/scummvm: ports/SDL ports/libvorbis ports/libtar
$(SENT)/ports/bochs: ports/SDL
$(SENT)/ports/dosbox: ports/SDL ports/zlib ports/libpng
$(SENT)/ports/drod: ports/SDL ports/SDL_mixer ports/SDL_ttf ports/zlib \
ports/metakit ports/libtar ports/expat
$(SENT)/ports/mesagl: ports/Mesa
$(SENT)/ports/glib: ports/zlib
$(SENT)/ports/pango: ports/glib ports/cairo
$(SENT)/ports/Regal: ports/libpng
$(SENT)/ports/SDL: ports/libtar
ifneq ($(NACL_ARCH), pnacl)
$(SENT)/ports/SDL: ports/Regal
endif
$(SENT)/ports/SDL_mixer: ports/SDL ports/libogg ports/libvorbis ports/libmikmod
$(SENT)/ports/SDL_image: ports/SDL ports/libpng ports/jpeg8d
$(SENT)/ports/SDL_net: ports/SDL
$(SENT)/ports/SDL_ttf: ports/SDL ports/freetype
$(SENT)/ports/boost: ports/zlib ports/bzip2
$(SENT)/ports/freealut: ports/openal-soft
$(SENT)/ports/openal-ogg: ports/openal-soft ports/libvorbis
$(SENT)/ports/opencv: ports/zlib ports/libpng ports/jpeg6b
$(SENT)/ports/readline: ports/ncurses
ifneq ($(NACL_GLIBC), 1)
$(SENT)/ports/readline: ports/glibc-compat
$(SENT)/ports/openssl: ports/glibc-compat
$(SENT)/ports/ncurses: ports/glibc-compat
endif
$(SENT)/ports/libmng: ports/zlib ports/jpeg8d
$(SENT)/ports/lcms: ports/zlib ports/jpeg8d ports/tiff
$(SENT)/ports/DevIL: ports/libpng ports/jpeg8d ports/libmng ports/tiff \
ports/lcms
$(SENT)/ports/physfs: ports/zlib
$(SENT)/ports/mpg123: ports/openal-soft
$(SENT)/ports/ImageMagick: ports/libpng ports/jpeg8d ports/bzip2 ports/zlib
$(SENT)/ports/gdb: ports/ncurses ports/expat ports/readline
# shortcuts libraries (alphabetical)
agg: ports/agg ;
boost: ports/boost ;
box2d: ports/box2d ;
bullet: ports/bullet ;
bzip2: ports/bzip2 ;
cairo: ports/cairo ;
cfitsio: ports/cfitsio ;
curl: ports/curl ;
DevIL: ports/DevIL ;
dreadthread: ports/dreadthread ;
expat: ports/expat ;
faac: ports/faac ;
faad faad2: ports/faad2 ;
ffmpeg: ports/ffmpeg ;
fftw: ports/fftw ;
flac: ports/flac ;
fontconfig: ports/fontconfig ;
freealut: ports/freealut ;
freeimage FreeImage: ports/FreeImage ;
freetype: ports/freetype ;
gc: ports/gc ;
gif giflib: ports/giflib ;
glib: ports/glib ;
glibc-compat: ports/glibc-compat ;
gsl: ports/gsl ;
hangul libhangul: ports/libhangul ;
imagemagick ImageMagick: ports/ImageMagick ;
jpeg jpeg8d: ports/jpeg8d ;
jpeg6b: ports/jpeg6b ;
jsoncpp: ports/jsoncpp ;
lame: ports/lame ;
lcms: ports/lcms ;
libav: ports/libav ;
lua5.1: ports/lua5.1 ;
lua5.2: ports/lua5.2 ;
lua: ports/lua5.2 ;
mesa Mesa: ports/Mesa ;
metakit: ports/metakit ;
mikmod libmikmod: ports/libmikmod ;
mng libmng: ports/libmng ;
modplug libmodplug: ports/libmodplug ;
mpg123: ports/mpg123 ;
nacl-mounts: ports/nacl-mounts ;
ncurses: ports/ncurses ;
ogg libogg: ports/libogg ;
openal openal-soft: ports/openal-soft ;
opencv: ports/opencv ;
openscenegraph OpenSceneGraph: ports/OpenSceneGraph ;
openssl: ports/openssl ;
pango: ports/pango ;
physfs: ports/physfs ;
pixman: ports/pixman ;
podofo: ports/podofo ;
poppler: ports/poppler ;
png libpng: ports/libpng ;
protobuf: ports/protobuf ;
python: ports/python ;
python3: ports/python3 ;
readline: ports/readline ;
regal Regal: ports/Regal ;
ruby: ports/ruby ;
sdl SDL: ports/SDL ;
sdl_image SDL_image: ports/SDL_image ;
sdl_mixer SDL_mixer: ports/SDL_mixer ;
sdl_net SDL_net: ports/SDL_net ;
sdl_ttf SDL_ttf: ports/SDL_ttf ;
speex: ports/speex ;
sqlite: ports/sqlite ;
tar libtar: ports/libtar ;
theora libtheora: ports/libtheora ;
tiff: ports/tiff ;
tinyxml: ports/tinyxml ;
tomcrypt libtomcrypt: ports/libtomcrypt ;
tommath libtommath: ports/libtommath ;
vorbis libvorbis: ports/libvorbis ;
webp: ports/webp ;
x264: ports/x264 ;
xml2 libxml2: ports/libxml2 ;
yajl: ports/yajl ;
zlib: ports/zlib ;
# shortcuts examples (alphabetical)
bash: ports/bash ;
bochs: ports/bochs ;
civetweb: ports/civetweb ;
dosbox: ports/dosbox ;
drod: ports/drod ;
gdb: ports/gdb ;
git: ports/git ;
mesagl: ports/mesagl ;
mongoose: ports/mongoose ;
nano: ports/nano ;
nethack: ports/nethack ;
openal-ogg: ports/openal-ogg ;
lua_ppapi: ports/lua_ppapi ;
python_ppapi: ports/python_ppapi ;
python3_ppapi: ports/python3_ppapi ;
ruby_ppapi: ports/ruby_ppapi ;
scummvm: ports/scummvm ;
snes9x: ports/snes9x ;
texlive: ports/texlive ;
thttpd: ports/thttpd ;
openssh: ports/openssh ;
# Deliberate space after vim target to avoid detection
# as modeline string.
vim : ports/vim ;
xaos: ports/xaos ;
|
adlr/naclports
|
Makefile
|
Makefile
|
bsd-3-clause
| 11,589
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// IPC messages for page rendering.
// Multiply-included message file, hence no include guard.
#include "base/memory/shared_memory.h"
#include "base/process/process.h"
#include "base/strings/string16.h"
#include "cc/output/begin_frame_args.h"
#include "cc/output/compositor_frame.h"
#include "cc/output/compositor_frame_ack.h"
#include "cc/resources/shared_bitmap.h"
#include "content/common/content_export.h"
#include "content/common/content_param_traits.h"
#include "content/common/date_time_suggestion.h"
#include "content/common/frame_replication_state.h"
#include "content/common/media/media_param_traits.h"
#include "content/common/navigation_gesture.h"
#include "content/common/view_message_enums.h"
#include "content/common/webplugin_geometry.h"
#include "content/public/common/common_param_traits.h"
#include "content/public/common/favicon_url.h"
#include "content/public/common/file_chooser_file_info.h"
#include "content/public/common/file_chooser_params.h"
#include "content/public/common/menu_item.h"
#include "content/public/common/message_port_types.h"
#include "content/public/common/page_state.h"
#include "content/public/common/page_zoom.h"
#include "content/public/common/referrer.h"
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/stop_find_action.h"
#include "content/public/common/three_d_api_types.h"
#include "content/public/common/window_container_type.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_platform_file.h"
#include "media/audio/audio_parameters.h"
#include "media/base/channel_layout.h"
#include "media/base/media_log_event.h"
#include "net/base/network_change_notifier.h"
#include "third_party/WebKit/public/platform/WebDisplayMode.h"
#include "third_party/WebKit/public/platform/WebFloatPoint.h"
#include "third_party/WebKit/public/platform/WebFloatRect.h"
#include "third_party/WebKit/public/platform/WebScreenInfo.h"
#include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationType.h"
#include "third_party/WebKit/public/web/WebDeviceEmulationParams.h"
#include "third_party/WebKit/public/web/WebFindOptions.h"
#include "third_party/WebKit/public/web/WebMediaPlayerAction.h"
#include "third_party/WebKit/public/web/WebPluginAction.h"
#include "third_party/WebKit/public/web/WebPopupType.h"
#include "third_party/WebKit/public/web/WebTextDirection.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/ime/text_input_mode.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/geometry/vector2d_f.h"
#include "ui/gfx/ipc/gfx_param_traits.h"
#include "ui/gfx/range/range.h"
#if defined(OS_MACOSX)
#include "content/common/mac/font_descriptor.h"
#include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h"
#endif
#if defined(ENABLE_PLUGINS)
#include "content/common/pepper_renderer_instance_data.h"
#endif
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
#define IPC_MESSAGE_START ViewMsgStart
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDeviceEmulationParams::ScreenPosition,
blink::WebDeviceEmulationParams::ScreenPositionLast)
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMediaPlayerAction::Type,
blink::WebMediaPlayerAction::Type::TypeLast)
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type,
blink::WebPluginAction::Type::TypeLast)
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType,
blink::WebPopupType::WebPopupTypeLast)
// TODO(dcheng): Update WebScreenOrientationType to have a "Last" enum member.
IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType,
blink::WebScreenOrientationUndefined,
blink::WebScreenOrientationLandscapeSecondary)
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection,
blink::WebTextDirection::WebTextDirectionLast)
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode,
blink::WebDisplayMode::WebDisplayModeLast)
IPC_ENUM_TRAITS_MAX_VALUE(WindowContainerType, WINDOW_CONTAINER_TYPE_MAX_VALUE)
IPC_ENUM_TRAITS(content::FaviconURL::IconType)
IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
IPC_ENUM_TRAITS(content::MenuItem::Type)
IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture,
content::NavigationGestureLast)
IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom,
content::PageZoom::PAGE_ZOOM_OUT,
content::PageZoom::PAGE_ZOOM_IN)
IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting,
gfx::FontRenderParams::HINTING_MAX)
IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering,
gfx::FontRenderParams::SUBPIXEL_RENDERING_MAX)
IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy,
content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX)
IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction,
content::STOP_FIND_ACTION_LAST)
IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType,
content::THREE_D_API_TYPE_LAST)
IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type,
media::MediaLogEvent::TYPE_LAST)
IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX)
IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputType, ui::TEXT_INPUT_TYPE_MAX)
#if defined(OS_MACOSX)
IPC_ENUM_TRAITS_MAX_VALUE(
blink::ScrollbarButtonsPlacement,
blink::ScrollbarButtonsPlacement::ScrollbarButtonsPlacementLast)
IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay)
IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
IPC_STRUCT_TRAITS_MEMBER(font_name)
IPC_STRUCT_TRAITS_MEMBER(font_point_size)
IPC_STRUCT_TRAITS_END()
#endif
IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions)
IPC_STRUCT_TRAITS_MEMBER(forward)
IPC_STRUCT_TRAITS_MEMBER(matchCase)
IPC_STRUCT_TRAITS_MEMBER(findNext)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(blink::WebMediaPlayerAction)
IPC_STRUCT_TRAITS_MEMBER(type)
IPC_STRUCT_TRAITS_MEMBER(enable)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(blink::WebPluginAction)
IPC_STRUCT_TRAITS_MEMBER(type)
IPC_STRUCT_TRAITS_MEMBER(enable)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatPoint)
IPC_STRUCT_TRAITS_MEMBER(x)
IPC_STRUCT_TRAITS_MEMBER(y)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatRect)
IPC_STRUCT_TRAITS_MEMBER(x)
IPC_STRUCT_TRAITS_MEMBER(y)
IPC_STRUCT_TRAITS_MEMBER(width)
IPC_STRUCT_TRAITS_MEMBER(height)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(blink::WebSize)
IPC_STRUCT_TRAITS_MEMBER(width)
IPC_STRUCT_TRAITS_MEMBER(height)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(blink::WebDeviceEmulationParams)
IPC_STRUCT_TRAITS_MEMBER(screenPosition)
IPC_STRUCT_TRAITS_MEMBER(screenSize)
IPC_STRUCT_TRAITS_MEMBER(viewPosition)
IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor)
IPC_STRUCT_TRAITS_MEMBER(viewSize)
IPC_STRUCT_TRAITS_MEMBER(fitToView)
IPC_STRUCT_TRAITS_MEMBER(offset)
IPC_STRUCT_TRAITS_MEMBER(scale)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(blink::WebScreenInfo)
IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor)
IPC_STRUCT_TRAITS_MEMBER(depth)
IPC_STRUCT_TRAITS_MEMBER(depthPerComponent)
IPC_STRUCT_TRAITS_MEMBER(isMonochrome)
IPC_STRUCT_TRAITS_MEMBER(rect)
IPC_STRUCT_TRAITS_MEMBER(availableRect)
IPC_STRUCT_TRAITS_MEMBER(orientationType)
IPC_STRUCT_TRAITS_MEMBER(orientationAngle)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::MenuItem)
IPC_STRUCT_TRAITS_MEMBER(label)
IPC_STRUCT_TRAITS_MEMBER(tool_tip)
IPC_STRUCT_TRAITS_MEMBER(type)
IPC_STRUCT_TRAITS_MEMBER(action)
IPC_STRUCT_TRAITS_MEMBER(rtl)
IPC_STRUCT_TRAITS_MEMBER(has_directional_override)
IPC_STRUCT_TRAITS_MEMBER(enabled)
IPC_STRUCT_TRAITS_MEMBER(checked)
IPC_STRUCT_TRAITS_MEMBER(submenu)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion)
IPC_STRUCT_TRAITS_MEMBER(value)
IPC_STRUCT_TRAITS_MEMBER(localized_value)
IPC_STRUCT_TRAITS_MEMBER(label)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL)
IPC_STRUCT_TRAITS_MEMBER(icon_url)
IPC_STRUCT_TRAITS_MEMBER(icon_type)
IPC_STRUCT_TRAITS_MEMBER(icon_sizes)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo)
IPC_STRUCT_TRAITS_MEMBER(file_path)
IPC_STRUCT_TRAITS_MEMBER(display_name)
IPC_STRUCT_TRAITS_MEMBER(file_system_url)
IPC_STRUCT_TRAITS_MEMBER(modification_time)
IPC_STRUCT_TRAITS_MEMBER(length)
IPC_STRUCT_TRAITS_MEMBER(is_directory)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams)
IPC_STRUCT_TRAITS_MEMBER(mode)
IPC_STRUCT_TRAITS_MEMBER(title)
IPC_STRUCT_TRAITS_MEMBER(default_file_name)
IPC_STRUCT_TRAITS_MEMBER(accept_types)
IPC_STRUCT_TRAITS_MEMBER(need_local_path)
#if defined(OS_ANDROID)
IPC_STRUCT_TRAITS_MEMBER(capture)
#endif
IPC_STRUCT_TRAITS_END()
#if defined(ENABLE_PLUGINS)
IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData)
IPC_STRUCT_TRAITS_MEMBER(render_process_id)
IPC_STRUCT_TRAITS_MEMBER(render_frame_id)
IPC_STRUCT_TRAITS_MEMBER(document_url)
IPC_STRUCT_TRAITS_MEMBER(plugin_url)
IPC_STRUCT_TRAITS_MEMBER(is_potentially_secure_plugin_context)
IPC_STRUCT_TRAITS_END()
#endif
IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences)
IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops)
IPC_STRUCT_TRAITS_MEMBER(should_antialias_text)
IPC_STRUCT_TRAITS_MEMBER(hinting)
IPC_STRUCT_TRAITS_MEMBER(use_autohinter)
IPC_STRUCT_TRAITS_MEMBER(use_bitmaps)
IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering)
IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning)
IPC_STRUCT_TRAITS_MEMBER(focus_ring_color)
IPC_STRUCT_TRAITS_MEMBER(thumb_active_color)
IPC_STRUCT_TRAITS_MEMBER(thumb_inactive_color)
IPC_STRUCT_TRAITS_MEMBER(track_color)
IPC_STRUCT_TRAITS_MEMBER(active_selection_bg_color)
IPC_STRUCT_TRAITS_MEMBER(active_selection_fg_color)
IPC_STRUCT_TRAITS_MEMBER(inactive_selection_bg_color)
IPC_STRUCT_TRAITS_MEMBER(inactive_selection_fg_color)
IPC_STRUCT_TRAITS_MEMBER(browser_handles_non_local_top_level_requests)
IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_top_level_requests)
IPC_STRUCT_TRAITS_MEMBER(caret_blink_interval)
IPC_STRUCT_TRAITS_MEMBER(use_custom_colors)
IPC_STRUCT_TRAITS_MEMBER(enable_referrers)
IPC_STRUCT_TRAITS_MEMBER(enable_do_not_track)
IPC_STRUCT_TRAITS_MEMBER(enable_webrtc_multiple_routes)
IPC_STRUCT_TRAITS_MEMBER(default_zoom_level)
IPC_STRUCT_TRAITS_MEMBER(user_agent_override)
IPC_STRUCT_TRAITS_MEMBER(accept_languages)
IPC_STRUCT_TRAITS_MEMBER(report_frame_name_changes)
IPC_STRUCT_TRAITS_MEMBER(tap_multiple_targets_strategy)
IPC_STRUCT_TRAITS_MEMBER(disable_client_blocked_error_page)
IPC_STRUCT_TRAITS_MEMBER(plugin_fullscreen_allowed)
IPC_STRUCT_TRAITS_MEMBER(use_video_overlay_for_embedded_encrypted_video)
IPC_STRUCT_TRAITS_MEMBER(use_view_overlay_for_all_video)
IPC_STRUCT_TRAITS_MEMBER(network_contry_iso)
#if defined(OS_WIN)
IPC_STRUCT_TRAITS_MEMBER(caption_font_family_name)
IPC_STRUCT_TRAITS_MEMBER(caption_font_height)
IPC_STRUCT_TRAITS_MEMBER(small_caption_font_family_name)
IPC_STRUCT_TRAITS_MEMBER(small_caption_font_height)
IPC_STRUCT_TRAITS_MEMBER(menu_font_family_name)
IPC_STRUCT_TRAITS_MEMBER(menu_font_height)
IPC_STRUCT_TRAITS_MEMBER(status_font_family_name)
IPC_STRUCT_TRAITS_MEMBER(status_font_height)
IPC_STRUCT_TRAITS_MEMBER(message_font_family_name)
IPC_STRUCT_TRAITS_MEMBER(message_font_height)
IPC_STRUCT_TRAITS_MEMBER(vertical_scroll_bar_width_in_dips)
IPC_STRUCT_TRAITS_MEMBER(horizontal_scroll_bar_height_in_dips)
IPC_STRUCT_TRAITS_MEMBER(arrow_bitmap_height_vertical_scroll_bar_in_dips)
IPC_STRUCT_TRAITS_MEMBER(arrow_bitmap_width_horizontal_scroll_bar_in_dips)
#endif
IPC_STRUCT_TRAITS_MEMBER(default_font_size)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::WebPluginGeometry)
IPC_STRUCT_TRAITS_MEMBER(window)
IPC_STRUCT_TRAITS_MEMBER(window_rect)
IPC_STRUCT_TRAITS_MEMBER(clip_rect)
IPC_STRUCT_TRAITS_MEMBER(cutout_rects)
IPC_STRUCT_TRAITS_MEMBER(rects_valid)
IPC_STRUCT_TRAITS_MEMBER(visible)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(media::MediaLogEvent)
IPC_STRUCT_TRAITS_MEMBER(id)
IPC_STRUCT_TRAITS_MEMBER(type)
IPC_STRUCT_TRAITS_MEMBER(params)
IPC_STRUCT_TRAITS_MEMBER(time)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params)
// Routing ID of the view initiating the open.
IPC_STRUCT_MEMBER(int, opener_id)
// True if this open request came in the context of a user gesture.
IPC_STRUCT_MEMBER(bool, user_gesture)
// Type of window requested.
IPC_STRUCT_MEMBER(WindowContainerType, window_container_type)
// The session storage namespace ID this view should use.
IPC_STRUCT_MEMBER(int64, session_storage_namespace_id)
// The name of the resulting frame that should be created (empty if none
// has been specified). UTF8 encoded string.
IPC_STRUCT_MEMBER(std::string, frame_name)
// The routing id of the frame initiating the open.
IPC_STRUCT_MEMBER(int, opener_render_frame_id)
// The URL of the frame initiating the open.
IPC_STRUCT_MEMBER(GURL, opener_url)
// The URL of the top frame containing the opener.
IPC_STRUCT_MEMBER(GURL, opener_top_level_frame_url)
// The security origin of the frame initiating the open.
IPC_STRUCT_MEMBER(GURL, opener_security_origin)
// Whether the opener will be suppressed in the new window, in which case
// scripting the new window is not allowed.
IPC_STRUCT_MEMBER(bool, opener_suppressed)
// Whether the window should be opened in the foreground, background, etc.
IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
// The URL that will be loaded in the new window (empty if none has been
// sepcified).
IPC_STRUCT_MEMBER(GURL, target_url)
// The referrer that will be used to load |target_url| (empty if none has
// been specified).
IPC_STRUCT_MEMBER(content::Referrer, referrer)
// The window features to use for the new view.
IPC_STRUCT_MEMBER(blink::WebWindowFeatures, features)
// The additional window features to use for the new view. We pass these
// separately from |features| above because we cannot serialize WebStrings
// over IPC.
IPC_STRUCT_MEMBER(std::vector<base::string16>, additional_features)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params)
// URL for the worker script.
IPC_STRUCT_MEMBER(GURL, url)
// Name for a SharedWorker, otherwise empty string.
IPC_STRUCT_MEMBER(base::string16, name)
// Security policy used in the worker.
IPC_STRUCT_MEMBER(base::string16, content_security_policy)
// Security policy type used in the worker.
IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type)
// The ID of the parent document (unique within parent renderer).
IPC_STRUCT_MEMBER(unsigned long long, document_id)
// RenderFrame routing id used to send messages back to the parent.
IPC_STRUCT_MEMBER(int, render_frame_route_id)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params)
IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type)
IPC_STRUCT_MEMBER(double, dialog_value)
IPC_STRUCT_MEMBER(double, minimum)
IPC_STRUCT_MEMBER(double, maximum)
IPC_STRUCT_MEMBER(double, step)
IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params)
IPC_STRUCT_MEMBER(gfx::Rect, anchor_rect)
IPC_STRUCT_MEMBER(blink::WebTextDirection, anchor_dir)
IPC_STRUCT_MEMBER(gfx::Rect, focus_rect)
IPC_STRUCT_MEMBER(blink::WebTextDirection, focus_dir)
IPC_STRUCT_MEMBER(bool, is_anchor_first)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params)
// The type of input field
IPC_STRUCT_MEMBER(ui::TextInputType, type)
// The mode of input field
IPC_STRUCT_MEMBER(ui::TextInputMode, mode)
// The flags of the input field (autocorrect, autocomplete, etc.)
IPC_STRUCT_MEMBER(int, flags)
// The value of the input field
IPC_STRUCT_MEMBER(std::string, value)
// The cursor position of the current selection start, or the caret position
// if nothing is selected
IPC_STRUCT_MEMBER(int, selection_start)
// The cursor position of the current selection end, or the caret position
// if nothing is selected
IPC_STRUCT_MEMBER(int, selection_end)
// The start position of the current composition, or -1 if there is none
IPC_STRUCT_MEMBER(int, composition_start)
// The end position of the current composition, or -1 if there is none
IPC_STRUCT_MEMBER(int, composition_end)
// Whether or not inline composition can be performed for the current input.
IPC_STRUCT_MEMBER(bool, can_compose_inline)
// Whether or not the IME should be shown as a result of this update. Even if
// true, the IME will only be shown if the type is appropriate (e.g. not
// TEXT_INPUT_TYPE_NONE).
IPC_STRUCT_MEMBER(bool, show_ime_if_needed)
// Whether this change is originated from non-IME (e.g. Javascript, Autofill).
IPC_STRUCT_MEMBER(bool, is_non_ime_change)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
// The size of the RenderView when this message was generated. This is
// included so the host knows how large the view is from the perspective of
// the renderer process. This is necessary in case a resize operation is in
// progress. If auto-resize is enabled, this should update the corresponding
// view size.
IPC_STRUCT_MEMBER(gfx::Size, view_size)
// New window locations for plugin child windows.
IPC_STRUCT_MEMBER(std::vector<content::WebPluginGeometry>,
plugin_window_moves)
// The following describes the various bits that may be set in flags:
//
// ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK
// Indicates that this is a response to a ViewMsg_Resize message.
//
// ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK
// Indicates that this is a response to a ViewMsg_Repaint message.
//
// If flags is zero, then this message corresponds to an unsolicited paint
// request by the render view. Any of the above bits may be set in flags,
// which would indicate that this paint message is an ACK for multiple
// request messages.
IPC_STRUCT_MEMBER(int, flags)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewMsg_Resize_Params)
// Information about the screen (dpi, depth, etc..).
IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info)
// The size of the renderer.
IPC_STRUCT_MEMBER(gfx::Size, new_size)
// The size of the view's backing surface in non-DPI-adjusted pixels.
IPC_STRUCT_MEMBER(gfx::Size, physical_backing_size)
// Whether or not Blink's viewport size should be shrunk by the height of the
// URL-bar (always false on platforms where URL-bar hiding isn't supported).
IPC_STRUCT_MEMBER(bool, top_controls_shrink_blink_size)
// The height of the top controls (always 0 on platforms where URL-bar hiding
// isn't supported).
IPC_STRUCT_MEMBER(float, top_controls_height)
// The size of the visible viewport, which may be smaller than the view if the
// view is partially occluded (e.g. by a virtual keyboard). The size is in
// DPI-adjusted pixels.
IPC_STRUCT_MEMBER(gfx::Size, visible_viewport_size)
// The resizer rect.
IPC_STRUCT_MEMBER(gfx::Rect, resizer_rect)
// Indicates whether tab-initiated fullscreen was granted.
IPC_STRUCT_MEMBER(bool, is_fullscreen_granted)
// The display mode.
IPC_STRUCT_MEMBER(blink::WebDisplayMode, display_mode)
// If set, requests the renderer to reply with a ViewHostMsg_UpdateRect
// with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags.
IPC_STRUCT_MEMBER(bool, needs_resize_ack)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewMsg_New_Params)
// Renderer-wide preferences.
IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences)
// Preferences for this view.
IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences)
// The ID of the view to be created.
IPC_STRUCT_MEMBER(int32, view_id)
// The ID of the main frame hosted in the view.
IPC_STRUCT_MEMBER(int32, main_frame_routing_id)
// The ID of the rendering surface.
IPC_STRUCT_MEMBER(int32, surface_id)
// The session storage namespace ID this view should use.
IPC_STRUCT_MEMBER(int64, session_storage_namespace_id)
// The route ID of the opener RenderFrame or RenderFrameProxy, if we need to
// set one (MSG_ROUTING_NONE otherwise).
IPC_STRUCT_MEMBER(int, opener_frame_route_id)
// Whether the RenderView should initially be swapped out.
IPC_STRUCT_MEMBER(bool, swapped_out)
// Carries replicated information, such as frame name and sandbox flags, for
// this view's main frame, which will be a proxy in |swapped_out|
// views when in --site-per-process mode, or a RenderFrame in all other
// cases.
IPC_STRUCT_MEMBER(content::FrameReplicationState, replicated_frame_state)
// The ID of the proxy object for the main frame in this view. It is only
// used if |swapped_out| is true.
IPC_STRUCT_MEMBER(int32, proxy_routing_id)
// Whether the RenderView should initially be hidden.
IPC_STRUCT_MEMBER(bool, hidden)
// Whether the RenderView will never be visible.
IPC_STRUCT_MEMBER(bool, never_visible)
// Whether the window associated with this view was created with an opener.
IPC_STRUCT_MEMBER(bool, window_was_created_with_opener)
// The initial page ID to use for this view, which must be larger than any
// existing navigation that might be loaded in the view. Page IDs are unique
// to a view and are only updated by the renderer after this initial value.
IPC_STRUCT_MEMBER(int32, next_page_id)
// The initial renderer size.
IPC_STRUCT_MEMBER(ViewMsg_Resize_Params, initial_size)
// Whether to enable auto-resize.
IPC_STRUCT_MEMBER(bool, enable_auto_resize)
// The minimum size to layout the page if auto-resize is enabled.
IPC_STRUCT_MEMBER(gfx::Size, min_size)
// The maximum size to layout the page if auto-resize is enabled.
IPC_STRUCT_MEMBER(gfx::Size, max_size)
IPC_STRUCT_END()
#if defined(OS_MACOSX)
IPC_STRUCT_BEGIN(ViewMsg_UpdateScrollbarTheme_Params)
IPC_STRUCT_MEMBER(float, initial_button_delay)
IPC_STRUCT_MEMBER(float, autoscroll_button_delay)
IPC_STRUCT_MEMBER(bool, jump_on_track_click)
IPC_STRUCT_MEMBER(blink::ScrollerStyle, preferred_scroller_style)
IPC_STRUCT_MEMBER(bool, redraw)
IPC_STRUCT_MEMBER(bool, scroll_animation_enabled)
IPC_STRUCT_MEMBER(blink::ScrollbarButtonsPlacement, button_placement)
IPC_STRUCT_END()
#endif
// Messages sent from the browser to the renderer.
#if defined(OS_ANDROID)
// Tells the renderer to cancel an opened date/time dialog.
IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog)
// Replaces a date time input field.
IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime,
double /* dialog_value */)
#endif
// Get all savable resource links from current webpage, include main
// frame and sub-frame.
IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
GURL /* url of page which is needed to save */)
// Get html data by serializing all frames of current page with lists
// which contain all resource links that have local copy.
IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
std::vector<GURL> /* urls that have local copy */,
std::vector<base::FilePath> /* paths of local copy */,
base::FilePath /* local directory path */)
// Tells the render side that a ViewHostMsg_LockMouse message has been
// processed. |succeeded| indicates whether the mouse has been successfully
// locked or not.
IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK,
bool /* succeeded */)
// Tells the render side that the mouse has been unlocked.
IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost)
// Sent by the browser when the parameters for vsync alignment have changed.
IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters,
base::TimeTicks /* timebase */,
base::TimeDelta /* interval */)
// Sent when the history is altered outside of navigation. The history list was
// reset to |history_length| length, and the offset was reset to be
// |history_offset|.
IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryOffsetAndLength,
int /* history_offset */,
int /* history_length */)
// Tells the renderer to create a new view.
// This message is slightly different, the view it takes (via
// ViewMsg_New_Params) is the view to create, the message itself is sent as a
// non-view control message.
IPC_MESSAGE_CONTROL1(ViewMsg_New,
ViewMsg_New_Params)
// Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
// similar to the new command, but used when the renderer created a view
// first, and we need to update it.
IPC_MESSAGE_ROUTED0(ViewMsg_CreatingNew_ACK)
// Sends updated preferences to the renderer.
IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs,
content::RendererPreferences)
// This passes a set of webkit preferences down to the renderer.
IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences,
content::WebPreferences)
// Informs the renderer that the timezone has changed along with a new
// timezone ID.
IPC_MESSAGE_CONTROL1(ViewMsg_TimezoneChange, std::string)
// Tells the render view to close.
// Expects a Close_ACK message when finished.
IPC_MESSAGE_ROUTED0(ViewMsg_Close)
// Tells the render view to change its size. A ViewHostMsg_UpdateRect message
// is generated in response provided new_size is not empty and not equal to
// the view's current size. The generated ViewHostMsg_UpdateRect message will
// have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that
// we don't have to fetch it every time WebKit asks for it.
IPC_MESSAGE_ROUTED1(ViewMsg_Resize,
ViewMsg_Resize_Params /* params */)
// Enables device emulation. See WebDeviceEmulationParams for description.
IPC_MESSAGE_ROUTED1(ViewMsg_EnableDeviceEmulation,
blink::WebDeviceEmulationParams /* params */)
// Disables device emulation, enabled previously by EnableDeviceEmulation.
IPC_MESSAGE_ROUTED0(ViewMsg_DisableDeviceEmulation)
// Sent to inform the renderer of its screen device color profile. An empty
// profile tells the renderer use the default sRGB color profile.
IPC_MESSAGE_ROUTED1(ViewMsg_ColorProfile,
std::vector<char> /* color profile */)
// Tells the render view that the resize rect has changed.
IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect,
gfx::Rect /* resizer_rect */)
// Sent to inform the view that it was hidden. This allows it to reduce its
// resource utilization.
IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden)
// Tells the render view that it is no longer hidden (see WasHidden), and the
// render view is expected to respond with a full repaint if needs_repainting
// is true. If needs_repainting is false, then this message does not trigger a
// message in response.
IPC_MESSAGE_ROUTED2(ViewMsg_WasShown,
bool /* needs_repainting */,
ui::LatencyInfo /* latency_info */)
// Tells the renderer to focus the first (last if reverse is true) focusable
// node.
IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus,
bool /* reverse */)
// Sent to inform the renderer to invoke a context menu.
// The parameter specifies the location in the render view's coordinates.
IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu,
ui::MenuSourceType,
gfx::Point /* location where menu should be shown */)
// Sent when the user wants to search for a word on the page (find in page).
IPC_MESSAGE_ROUTED3(ViewMsg_Find,
int /* request_id */,
base::string16 /* search_text */,
blink::WebFindOptions)
// This message notifies the renderer that the user has closed the FindInPage
// window (and what action to take regarding the selection).
IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding,
content::StopFindAction /* action */)
// Copies the image at location x, y to the clipboard (if there indeed is an
// image at that location).
IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt,
int /* x */,
int /* y */)
// Saves the image at location x, y to the disk (if there indeed is an
// image at that location).
IPC_MESSAGE_ROUTED2(ViewMsg_SaveImageAt,
int /* x */,
int /* y */)
// Tells the renderer to perform the given action on the media player
// located at the given point.
IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt,
gfx::Point, /* location */
blink::WebMediaPlayerAction)
// Tells the renderer to perform the given action on the plugin located at
// the given point.
IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt,
gfx::Point, /* location */
blink::WebPluginAction)
// Resets the page scale for the current main frame to the default page scale.
IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale)
// Change the zoom level for the current main frame. If the level actually
// changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
// telling it what url got zoomed and what its current zoom level is.
IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
content::PageZoom /* function */)
// Set the zoom level for a particular url that the renderer is in the
// process of loading. This will be stored, to be used if the load commits
// and ignored otherwise.
IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
GURL /* url */,
double /* zoom_level */)
// Set the zoom level for a particular url, so all render views
// displaying this url can update their zoom levels to match.
// If scheme is empty, then only host is used for matching.
IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL,
std::string /* scheme */,
std::string /* host */,
double /* zoom_level */)
// Set the zoom level for a particular render view.
IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForView,
bool /* uses_temporary_zoom_level */,
double /* zoom_level */)
// Change encoding of page in the renderer.
IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
std::string /*new encoding name*/)
// Reset encoding of page in the renderer back to default.
IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
// Used to tell a render view whether it should expose various bindings
// that allow JS content extended privileges. See BindingsPolicy for valid
// flag values.
IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings,
int /* enabled_bindings_flags */)
// Tell the renderer to add a property to the WebUI binding object. This
// only works if we allowed WebUI bindings.
IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty,
std::string /* property_name */,
std::string /* property_value_json */)
// Used to notify the render-view that we have received a target URL. Used
// to prevent target URLs spamming the browser.
IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
std::vector<content::FileChooserFileInfo>)
// Provides the results of directory enumeration.
IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse,
int /* request_id */,
std::vector<base::FilePath> /* files_in_directory */)
// Tells the renderer to suppress any further modal dialogs until it receives a
// corresponding ViewMsg_SwapOut message. This ensures that no
// PageGroupLoadDeferrer is on the stack for SwapOut.
IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut)
// Instructs the renderer to close the current page, including running the
// onunload event handler.
//
// Expects a ClosePage_ACK message when finished.
IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage)
// Notifies the renderer about ui theme changes
IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged)
// Notifies the renderer that a paint is to be generated for the rectangle
// passed in.
IPC_MESSAGE_ROUTED1(ViewMsg_Repaint,
gfx::Size /* The view size to be repainted */)
// Notification that a move or resize renderer's containing window has
// started.
IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted)
IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects,
gfx::Rect /* view_screen_rect */,
gfx::Rect /* window_screen_rect */)
// Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and
// ViewHostMsg_ShowWidget to inform the renderer that the browser has
// processed the move. The browser may have ignored the move, but it finished
// processing. This is used because the renderer keeps a temporary cache of
// the widget position while these asynchronous operations are in progress.
IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK)
// Used to instruct the RenderView to send back updates to the preferred size.
IPC_MESSAGE_ROUTED0(ViewMsg_EnablePreferredSizeChangedMode)
// Used to instruct the RenderView to automatically resize and send back
// updates for the new size.
IPC_MESSAGE_ROUTED2(ViewMsg_EnableAutoResize,
gfx::Size /* min_size */,
gfx::Size /* max_size */)
// Used to instruct the RenderView to disalbe automatically resize.
IPC_MESSAGE_ROUTED1(ViewMsg_DisableAutoResize,
gfx::Size /* new_size */)
// Changes the text direction of the currently selected input field (if any).
IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection,
blink::WebTextDirection /* direction */)
// Tells the renderer to clear the focused element (if any).
IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedElement)
// Make the RenderView background transparent or opaque.
IPC_MESSAGE_ROUTED1(ViewMsg_SetBackgroundOpaque, bool /* opaque */)
// Used to tell the renderer not to add scrollbars with height and
// width below a threshold.
IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows,
gfx::Size /* disable_scrollbar_size_limit */)
// Activate/deactivate the RenderView (i.e., set its controls' tint
// accordingly, etc.).
IPC_MESSAGE_ROUTED1(ViewMsg_SetActive,
bool /* active */)
// Response message to ViewHostMsg_CreateWorker.
// Sent when the worker has started.
IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated)
// Sent when the worker failed to load the worker script.
// In normal cases, this message is sent after ViewMsg_WorkerCreated is sent.
// But if the shared worker of the same URL already exists and it has failed
// to load the script, when the renderer send ViewHostMsg_CreateWorker before
// the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent.
IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed)
// Sent when the worker has connected.
// This message is sent only if the worker successfully loaded the script.
IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected)
// Tells the renderer that the network type has changed so that navigator.onLine
// and navigator.connection can be updated.
IPC_MESSAGE_CONTROL1(ViewMsg_NetworkTypeChanged,
net::NetworkChangeNotifier::ConnectionType /* type */)
#if defined(ENABLE_PLUGINS)
// Reply to ViewHostMsg_OpenChannelToPpapiBroker
// Tells the renderer that the channel to the broker has been created.
IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated,
base::ProcessId /* broker_pid */,
IPC::ChannelHandle /* handle */)
// Reply to ViewHostMsg_RequestPpapiBrokerPermission.
// Tells the renderer whether permission to access to PPAPI broker was granted
// or not.
IPC_MESSAGE_ROUTED1(ViewMsg_PpapiBrokerPermissionResult,
bool /* result */)
// Tells the renderer to empty its plugin list cache, optional reloading
// pages containing plugins.
IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
bool /* reload_pages */)
#endif
// Used to instruct the RenderView to go into "view source" mode.
IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode)
// Instructs the renderer to save the current page to MHTML.
IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML,
int /* job_id */,
IPC::PlatformFileForTransit /* file handle */)
// An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer
// process to release the magnified image.
IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap,
cc::SharedBitmapId /* id */)
// Fetches complete rendered content of a web page as plain text.
IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText)
#if defined(OS_MACOSX)
// Notification of a change in scrollbar appearance and/or behavior.
IPC_MESSAGE_CONTROL1(ViewMsg_UpdateScrollbarTheme,
ViewMsg_UpdateScrollbarTheme_Params /* params */)
#endif
#if defined(OS_ANDROID)
// Tells the renderer to suspend/resume the webkit timers.
IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended,
bool /* suspend */)
// Sent when the browser wants the bounding boxes of the current find matches.
//
// If match rects are already cached on the browser side, |current_version|
// should be the version number from the ViewHostMsg_FindMatchRects_Reply
// they came in, so the renderer can tell if it needs to send updated rects.
// Otherwise just pass -1 to always receive the list of rects.
//
// There must be an active search string (it is probably most useful to call
// this immediately after a ViewHostMsg_Find_Reply message arrives with
// final_update set to true).
IPC_MESSAGE_ROUTED1(ViewMsg_FindMatchRects,
int /* current_version */)
// Notifies the renderer whether hiding/showing the top controls is enabled
// and whether or not to animate to the proper state.
IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState,
bool /* enable_hiding */,
bool /* enable_showing */,
bool /* animate */)
IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
// Extracts the data at the given rect, returning it through the
// ViewHostMsg_SmartClipDataExtracted IPC.
IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData,
gfx::Rect /* rect */)
#elif defined(OS_MACOSX)
// Let the RenderView know its window has changed visibility.
IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility,
bool /* visibile */)
// Let the RenderView know its window's frame has changed.
IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged,
gfx::Rect /* window frame */,
gfx::Rect /* content view frame */)
// Message sent from the browser to the renderer when the user starts or stops
// resizing the view.
IPC_MESSAGE_ROUTED1(ViewMsg_SetInLiveResize,
bool /* enable */)
// Tell the renderer that plugin IME has completed.
IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted,
base::string16 /* text */,
int /* plugin_id */)
#endif
// Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame.
IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck,
uint32 /* output_surface_id */,
cc::CompositorFrameAck /* ack */)
// Sent by browser to tell renderer compositor that some resources that were
// given to the browser in a swap are not being used anymore.
IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources,
uint32 /* output_surface_id */,
cc::CompositorFrameAck /* ack */)
// Sent by browser to give renderer compositor a new namespace ID for any
// SurfaceSequences it has to create.
IPC_MESSAGE_ROUTED1(ViewMsg_SetSurfaceIdNamespace,
uint32_t /* surface_id_namespace */)
IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret)
// Sent by the browser to ask the renderer to redraw.
// If |request_id| is not zero, it is added to the forced frame's latency info
// as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT.
IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw,
int /* request_id */)
// Sent by the browser when the renderer should generate a new frame.
IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame,
cc::BeginFrameArgs /* args */)
// -----------------------------------------------------------------------------
// Messages sent from the renderer to the browser.
// Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
// display events. If |enabled| is true, the BeginFrame message will continue
// to be be delivered until the notification is disabled.
IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames,
bool /* enabled */)
// Sent by the renderer when it is creating a new window. The browser creates
// a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
// MSG_ROUTING_NONE, the view couldn't be created.
IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow,
ViewHostMsg_CreateWindow_Params,
int /* route_id */,
int /* main_frame_route_id */,
int32 /* surface_id */,
int64 /* cloned_session_storage_namespace_id */)
// Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
// <select> dropdowns. This message is sent to the WebContentsImpl that
// contains the widget being created.
IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget,
int /* opener_id */,
blink::WebPopupType /* popup type */,
int /* route_id */,
int32 /* surface_id */)
// Similar to ViewHostMsg_CreateWidget except the widget is a full screen
// window.
IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateFullscreenWidget,
int /* opener_id */,
int /* route_id */,
int32 /* surface_id */)
// Asks the browser for a unique routing ID.
IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID,
int /* routing_id */)
// Asks the browser for the default audio hardware configuration.
IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig,
media::AudioParameters /* input parameters */,
media::AudioParameters /* output parameters */)
// Asks the browser for the renderer process memory size stats.
IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetProcessMemorySizes,
size_t /* private_bytes */,
size_t /* shared_bytes */)
// These three messages are sent to the parent RenderViewHost to display the
// page/widget that was created by
// CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id
// refers to the id that was returned from the Create message above.
// The initial_rect parameter is in screen coordinates.
//
// FUTURE: there will probably be flags here to control if the result is
// in a new window.
IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView,
int /* route_id */,
WindowOpenDisposition /* disposition */,
gfx::Rect /* initial_rect */,
bool /* opened_by_user_gesture */)
IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget,
int /* route_id */,
gfx::Rect /* initial_rect */)
// Message to show a full screen widget.
IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget,
int /* route_id */)
// Indicates the renderer is ready in response to a ViewMsg_New or
// a ViewMsg_CreatingNew_ACK.
IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady)
// Sent by the renderer process to request that the browser close the view.
// This corresponds to the window.close() API, and the browser may ignore
// this message. Otherwise, the browser will generates a ViewMsg_Close
// message to close the view.
IPC_MESSAGE_ROUTED0(ViewHostMsg_Close)
// Send in response to a ViewMsg_UpdateScreenRects so that the renderer can
// throttle these messages.
IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK)
// Sent by the renderer process to request that the browser move the view.
// This corresponds to the window.resizeTo() and window.moveTo() APIs, and
// the browser may ignore this message.
IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove,
gfx::Rect /* position */)
// Result of string search in the page.
// Response to ViewMsg_Find with the results of the requested find-in-page
// search, the number of matches found and the selection rect (in screen
// coordinates) for the string found. If |final_update| is false, it signals
// that this is not the last Find_Reply message - more will be sent as the
// scoping effort continues.
IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply,
int /* request_id */,
int /* number of matches */,
gfx::Rect /* selection_rect */,
int /* active_match_ordinal */,
bool /* final_update */)
// Indicates that the render view has been closed in respose to a
// Close message.
IPC_MESSAGE_CONTROL1(ViewHostMsg_Close_ACK,
int /* old_route_id */)
// Indicates that the current page has been closed, after a ClosePage
// message.
IPC_MESSAGE_ROUTED0(ViewHostMsg_ClosePage_ACK)
// Notifies the browser that we have session history information.
// page_id: unique ID that allows us to distinguish between history entries.
IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState,
int32 /* page_id */,
content::PageState /* state */)
// Notifies the browser that we want to show a destination url for a potential
// action (e.g. when the user is hovering over a link).
IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateTargetURL,
GURL)
// Sent when the document element is available for the top-level frame. This
// happens after the page starts loading, but before all resources are
// finished.
IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame,
bool /* uses_temporary_zoom_level */)
// Sent when the renderer loads a resource from its memory cache.
// The security info is non empty if the resource was originally loaded over
// a secure connection.
// Note: May only be sent once per URL per frame per committed load.
IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache,
GURL /* url */,
std::string /* security info */,
std::string /* http method */,
std::string /* mime type */,
content::ResourceType /* resource type */)
// Sent when the renderer displays insecure content in a secure page.
IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisplayInsecureContent)
// Sent when the renderer runs insecure content in a secure origin.
IPC_MESSAGE_ROUTED2(ViewHostMsg_DidRunInsecureContent,
std::string /* security_origin */,
GURL /* target URL */)
// Sent to update part of the view. In response to this message, the host
// generates a ViewMsg_UpdateRect_ACK message.
IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect,
ViewHostMsg_UpdateRect_Params)
IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
// Message sent from renderer to the browser when focus changes inside the
// webpage. The first parameter says whether the newly focused element needs
// keyboard input (true for textfields, text areas and content editable divs).
// The second parameter is the node bounds relative to RenderWidgetHostView.
IPC_MESSAGE_ROUTED2(ViewHostMsg_FocusedNodeChanged,
bool /* is_editable_node */,
gfx::Rect /* node_bounds */)
IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor)
// Used to get the list of plugins
IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins,
bool /* refresh*/,
std::vector<content::WebPluginInfo> /* plugins */)
#if defined(OS_WIN)
IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated,
gfx::NativeViewId /* dummy_activation_window */)
IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed,
gfx::NativeViewId /* dummy_activation_window */)
// Asks the browser for the user's monitor profile.
IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetMonitorColorProfile,
std::vector<char> /* profile */)
#endif
// Get the list of proxies to use for |url|, as a semicolon delimited list
// of "<TYPE> <HOST>:<PORT>" | "DIRECT".
IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy,
GURL /* url */,
bool /* result */,
std::string /* proxy list */)
// A renderer sends this to the browser process when it wants to create a
// worker. The browser will create the worker process if necessary, and
// will return the route id on success. On error returns MSG_ROUTING_NONE.
IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker,
ViewHostMsg_CreateWorker_Params,
int /* route_id */)
// A renderer sends this to the browser process when a document has been
// detached. The browser will use this to constrain the lifecycle of worker
// processes (SharedWorkers are shut down when their last associated document
// is detached).
IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached,
uint64 /* document_id */)
// Wraps an IPC message that's destined to the worker on the renderer->browser
// hop.
IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker,
IPC::Message /* message */)
// Tells the browser that a specific Appcache manifest in the current page
// was accessed.
IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed,
GURL /* manifest url */,
bool /* blocked by policy */)
// Initiates a download based on user actions like 'ALT+click'.
IPC_MESSAGE_CONTROL4(ViewHostMsg_DownloadUrl,
int /* render_view_id */,
GURL /* url */,
content::Referrer /* referrer */,
base::string16 /* suggested_name */)
// Used to go to the session history entry at the given offset (ie, -1 will
// return the "back" item).
IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset,
int /* offset (from current) of history item to get */)
// Sent from an inactive renderer for the browser to route to the active
// renderer, instructing it to close.
IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent)
// Notifies that the preferred size of the content changed.
IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange,
gfx::Size /* pref_size */)
// Notifies whether there are JavaScript touch event handlers or not.
IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers,
bool /* has_handlers */)
// A message from HTML-based UI. When (trusted) Javascript calls
// send(message, args), this message is sent to the browser.
IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend,
GURL /* source_url */,
std::string /* message */,
base::ListValue /* args */)
#if defined(ENABLE_PLUGINS)
// A renderer sends this to the browser process when it wants to create a ppapi
// plugin. The browser will create the plugin process if necessary, and will
// return a handle to the channel on success.
//
// The plugin_child_id is the ChildProcessHost ID assigned in the browser
// process. This ID is valid only in the context of the browser process and is
// used to identify the proper process when the renderer notifies it that the
// plugin is hung.
//
// On error an empty string and null handles are returned.
IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_OpenChannelToPepperPlugin,
base::FilePath /* path */,
IPC::ChannelHandle /* handle to channel */,
base::ProcessId /* plugin_pid */,
int /* plugin_child_id */)
// Notification that a plugin has created a new plugin instance. The parameters
// indicate:
// -The plugin process ID that we're creating the instance for.
// -The instance ID of the instance being created.
// -A PepperRendererInstanceData struct which contains properties from the
// renderer which are associated with the plugin instance. This includes the
// routing ID of the associated render view and the URL of plugin.
// -Whether the plugin we're creating an instance for is external or internal.
//
// This message must be sync even though it returns no parameters to avoid
// a race condition with the plugin process. The plugin process sends messages
// to the browser that assume the browser knows about the instance. We need to
// make sure that the browser actually knows about the instance before we tell
// the plugin to run.
IPC_SYNC_MESSAGE_CONTROL4_0(
ViewHostMsg_DidCreateOutOfProcessPepperInstance,
int /* plugin_child_id */,
int32 /* pp_instance */,
content::PepperRendererInstanceData /* creation_data */,
bool /* is_external */)
// Notification that a plugin has destroyed an instance. This is the opposite of
// the "DidCreate" message above.
IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance,
int /* plugin_child_id */,
int32 /* pp_instance */,
bool /* is_external */)
// Message from the renderer to the browser indicating the in-process instance
// has been created.
IPC_MESSAGE_CONTROL2(ViewHostMsg_DidCreateInProcessInstance,
int32 /* instance */,
content::PepperRendererInstanceData /* instance_data */)
// Message from the renderer to the browser indicating the in-process instance
// has been destroyed.
IPC_MESSAGE_CONTROL1(ViewHostMsg_DidDeleteInProcessInstance,
int32 /* instance */)
// A renderer sends this to the browser process when it wants to
// create a ppapi broker. The browser will create the broker process
// if necessary, and will return a handle to the channel on success.
// On error an empty string is returned.
// The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker,
int /* routing_id */,
base::FilePath /* path */)
// A renderer sends this to the browser process when it wants to access a PPAPI
// broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called
// for every connection.
// The browser will respond with ViewMsg_PpapiBrokerPermissionResult.
IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission,
int /* routing_id */,
GURL /* document_url */,
base::FilePath /* plugin_path */)
// A renderer sends this to the browser process when it throttles or unthrottles
// a plugin instance for the Plugin Power Saver feature.
IPC_MESSAGE_CONTROL3(ViewHostMsg_PluginInstanceThrottleStateChange,
int /* plugin_child_id */,
int32 /* pp_instance */,
bool /* is_throttled */)
#endif // defined(ENABLE_PLUGINS)
// Send the tooltip text for the current mouse position to the browser.
IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText,
base::string16 /* tooltip text string */,
blink::WebTextDirection /* text direction hint */)
// Notification that the text selection has changed.
// Note: The secound parameter is the character based offset of the
// base::string16
// text in the document.
IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
base::string16 /* text covers the selection range */,
size_t /* the offset of the text in the document */,
gfx::Range /* selection range in the document */)
// Notification that the selection bounds have changed.
IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged,
ViewHostMsg_SelectionBounds_Params)
// Asks the browser to display the file chooser. The result is returned in a
// ViewMsg_RunFileChooserResponse message.
IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
content::FileChooserParams)
// Asks the browser to enumerate a directory. This is equivalent to running
// the file chooser in directory-enumeration mode and having the user select
// the given directory. The result is returned in a
// ViewMsg_EnumerateDirectoryResponse message.
IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory,
int /* request_id */,
base::FilePath /* file_path */)
// Asks the browser to save a image (for <canvas> or <img>) from a data URL.
// Note: |data_url| is the contents of a data:URL, and that it's represented as
// a string only to work around size limitations for GURLs in IPC messages.
IPC_MESSAGE_CONTROL2(ViewHostMsg_SaveImageFromDataURL,
int /* render_view_id */,
std::string /* data_url */)
// Tells the browser to move the focus to the next (previous if reverse is
// true) focusable element.
IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus,
bool /* reverse */)
// Required for opening a date/time dialog
IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog,
ViewHostMsg_DateTimeDialogValue_Params /* value */)
// Required for updating text input state.
IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged,
ViewHostMsg_TextInputState_Params /* input state params */)
// Sent when the renderer changes the zoom level for a particular url, so the
// browser can update its records. If the view is a plugin doc, then url is
// used to update the zoom level for all pages in that site. Otherwise, the
// render view's id is used so that only the menu is updated.
IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL,
double /* zoom_level */,
GURL /* url */)
// Sent when the renderer changes its page scale factor and whether or not the
// page scale factor is one changes.
IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */)
// Updates the minimum/maximum allowed zoom percent for this tab from the
// default values. If |remember| is true, then the zoom setting is applied to
// other pages in the site and is saved, otherwise it only applies to this
// tab.
IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits,
int /* minimum_percent */,
int /* maximum_percent */)
// Notify the browser that this render process can or can't be suddenly
// terminated.
IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged,
bool /* enabled */)
IPC_MESSAGE_ROUTED3(
ViewHostMsg_SwapCompositorFrame,
uint32 /* output_surface_id */,
cc::CompositorFrame /* frame */,
std::vector<IPC::Message> /* messages_to_deliver_with_frame */)
//---------------------------------------------------------------------------
// Request for cryptographic operation messages:
// These are messages from the renderer to the browser to perform a
// cryptographic operation.
// Asks the browser process to generate a keypair for grabbing a client
// certificate from a CA (<keygen> tag), and returns the signed public
// key and challenge string.
IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen,
uint32 /* key size index */,
std::string /* challenge string */,
GURL /* URL of requestor */,
std::string /* signed public key and challenge */)
// Message sent from the renderer to the browser to request that the browser
// cache |data| associated with |url| and |expected_response_time|.
IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata,
GURL /* url */,
base::Time /* expected_response_time */,
std::vector<char> /* data */)
// Send back a string to be recorded by UserMetrics.
IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction,
std::string /* action */)
// Notifies the browser that the page was or was not saved as MHTML.
IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML,
int /* job_id */,
int64 /* size of the MHTML file, -1 if error */)
IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks,
std::vector<GURL> /* all savable resource links */,
std::vector<content::Referrer> /* all referrers */,
std::vector<GURL> /* all frame links */)
IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData,
GURL /* frame's url */,
std::string /* data buffer */,
int32 /* complete status */)
// Notifies the browser of an event occurring in the media pipeline.
IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents,
std::vector<media::MediaLogEvent> /* events */)
// Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
// being sent back.
// |privileged| is used by Pepper Flash. If this flag is set to true, we won't
// pop up a bubble to ask for user permission or take mouse lock content into
// account.
IPC_MESSAGE_ROUTED3(ViewHostMsg_LockMouse,
bool /* user_gesture */,
bool /* last_unlocked_by_target */,
bool /* privileged */)
// Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
// whenever the mouse is unlocked (which may or may not be caused by
// ViewHostMsg_UnlockMouse).
IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
// Notifies that multiple touch targets may have been pressed, and to show
// the disambiguation popup.
IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup,
gfx::Rect, /* Border of touched targets */
gfx::Size, /* Size of zoomed image */
cc::SharedBitmapId /* id */)
// Sent by the renderer process to check whether client 3D APIs
// (Pepper 3D, WebGL) are explicitly blocked.
IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Are3DAPIsBlocked,
int /* render_view_id */,
GURL /* top_origin_url */,
content::ThreeDAPIType /* requester */,
bool /* blocked */)
// Sent by the renderer process to indicate that a context was lost by
// client 3D content (Pepper 3D, WebGL) running on the page at the
// given URL.
IPC_MESSAGE_CONTROL3(ViewHostMsg_DidLose3DContext,
GURL /* top_origin_url */,
content::ThreeDAPIType /* context_type */,
int /* arb_robustness_status_code */)
// Notifies the browser that document has parsed the body. This is used by the
// ResourceScheduler as an indication that bandwidth contention won't block
// first paint.
IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody)
// Notification that the urls for the favicon of a site has been determined.
IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL,
std::vector<content::FaviconURL> /* candidates */)
// Message sent from renderer to the browser when the element that is focused
// has been touched. A bool is passed in this message which indicates if the
// node is editable.
IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeTouched,
bool /* editable */)
// Message sent from the renderer to the browser when an HTML form has failed
// validation constraints.
IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowValidationMessage,
gfx::Rect /* anchor rectangle in root view coordinate */,
base::string16 /* validation message */,
base::string16 /* supplemental text */)
// Message sent from the renderer to the browser when a HTML form validation
// message should be hidden from view.
IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage)
// Message sent from the renderer to the browser when the suggested co-ordinates
// of the anchor for a HTML form validation message have changed.
IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage,
gfx::Rect /* anchor rectangle in root view coordinate */)
#if defined(OS_ANDROID)
// Response to ViewMsg_FindMatchRects.
//
// |version| will contain the current version number of the renderer's find
// match list (incremented whenever they change), which should be passed in the
// next call to ViewMsg_FindMatchRects.
//
// |rects| will either contain a list of the enclosing rects of all matches
// found by the most recent Find operation, or will be empty if |version| is not
// greater than the |current_version| passed to ViewMsg_FindMatchRects (hence
// your locally cached rects should still be valid). The rect coords will be
// custom normalized fractions of the document size. The rects will be sorted by
// frame traversal order starting in the main frame, then by dom order.
//
// |active_rect| will contain the bounding box of the active find-in-page match
// marker, in similarly normalized coords (or an empty rect if there isn't one).
IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply,
int /* version */,
std::vector<gfx::RectF> /* rects */,
gfx::RectF /* active_rect */)
// Start an android intent with the given URI.
IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent,
GURL /* content_url */)
// Message sent when the renderer changed the background color for the view.
IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor,
uint32 /* bg_color */)
// This message runs the MediaCodec for decoding audio for webaudio.
IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec,
base::SharedMemoryHandle /* encoded_data_handle */,
base::FileDescriptor /* pcm_output */,
uint32_t /* data_size*/)
// Reply to the ViewMsg_ExtractSmartClipData message.
IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted,
base::string16 /* text */,
base::string16 /* html */,
gfx::Rect /* rect */)
// Notifies that an unhandled tap has occurred at the specified x,y position
// and that the UI may need to be triggered.
IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowUnhandledTapUIIfNeeded,
int /* x */,
int /* y */)
#elif defined(OS_MACOSX)
// Request that the browser load a font into shared memory for us.
IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont,
FontDescriptor /* font to load */,
uint32 /* buffer size */,
base::SharedMemoryHandle /* font data */,
uint32 /* font id */)
// Informs the browser that a plugin has gained or lost focus.
IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged,
bool, /* focused */
int /* plugin_id */)
// Instructs the browser to start plugin IME.
IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme)
// Receives content of a web page as plain text.
IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string);
#elif defined(OS_WIN)
// Request that the given font characters be loaded by the browser so it's
// cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
// for details.
IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
LOGFONT /* font_data */,
base::string16 /* characters */)
#endif
// Adding a new message? Stick to the sort order above: first platform
// independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
// independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
|
Pluto-tv/chromium-crosswalk
|
content/common/view_messages.h
|
C
|
bsd-3-clause
| 69,037
|
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\search\CategoriaSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Categorias';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="categoria-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Categoria', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id_categoria',
'nombre',
'status',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
|
sburgos/easydelivery
|
modules/admin/views/categoria/index.php
|
PHP
|
bsd-3-clause
| 866
|
# Commands
## Introduction
The SDK comes with a commands system that lets you handle and manage all inbound commands seamlessly and efficiently. The Commands Handler System is smart enough to trigger the right command when it sees one in an inbound message from Telegram. The commands are lazy loaded and processed on-demand, So registering them won't cause any performance issues to your application.
Lets get started with writing and registering our command.
## Writing Commands
First step before the Commands Handler System can start handling all your inbound commands is to write one. All the commands you write should extend the `Telegram\Bot\Commands\Command` class which is an implementation of [Telegram\Bot\Commands\CommandInterface](https://github.com/irazasyed/telegram-bot-sdk/blob/master/src/Commands/CommandInterface.php). You may store your custom commands in any directory as long as your commands can be autoloaded based on your `composer.json` settings and are registered properly with the Commands Handler System.
So for this example, Will build a `/start` command which will be triggered when a user sends `/start` or when they start an interaction with your bot for the first time.
### Command Structure
You should always add the `$name` and `$description` properties of the class with the appropriate values, which will be used when displaying a list of commands as well as when processing inbound message.
Example Command:
```php
<?php
namespace Vendor\App\Commands;
use Telegram\Bot\Actions;
use Telegram\Bot\Commands\Command;
class StartCommand extends Command
{
/**
* @var string Command Name
*/
protected $name = "start";
/**
* @var string Command Description
*/
protected $description = "Start Command to get you started";
/**
* @inheritdoc
*/
public function handle($arguments)
{
// This will send a message using `sendMessage` method behind the scenes to
// the user/chat id who triggered this command.
// `replyWith<Message|Photo|Audio|Video|Voice|Document|Sticker|Location|ChatAction>()` all the available methods are dynamically
// handled when you replace `send<Method>` with `replyWith` and use the same parameters - except chat_id does NOT need to be included in the array.
$this->replyWithMessage(['text' => 'Hello! Welcome to our bot, Here are our available commands:']);
// This will update the chat status to typing...
$this->replyWithChatAction(['action' => Actions::TYPING]);
// This will prepare a list of available commands and send the user.
// First, Get an array of all registered commands
// They'll be in 'command-name' => 'Command Handler Class' format.
$commands = $this->getTelegram()->getCommands();
// Build the list
$response = '';
foreach ($commands as $name => $command) {
$response .= sprintf('/%s - %s' . PHP_EOL, $name, $command->getDescription());
}
// Reply with the commands list
$this->replyWithMessage(['text' => $response]);
// Trigger another command dynamically from within this command
// When you want to chain multiple commands within one or process the request further.
// The method supports second parameter arguments which you can optionally pass, By default
// it'll pass the same arguments that are received for this command originally.
$this->triggerCommand('subscribe');
}
}
```
Notice, The `$name` of the command is `start` so when a user sends `/start`, this class would be triggered.
So always make sure the name is correct and in lowercase. The description is helpful when you get a list of all the available commands either with the `/help` command or for other purposes using the `getCommands()` method.
All the commands you create should implement the `handle($arguments)` method which would be called when a user sends the command and will be passed with the arguments (Currently we don't break the arguments into an array but you can use methods like `explode()` to break by space and use it for whatever purposes).
In your handle method, You also get access to `getTelegram()` and `getUpdate()` methods which gives you access to the super class and the original update object sent from Telegram.
The commands system as you can see in above example command comes with a few helper methods (They're optional just to help you and make things easier):
1. `replyWith<Message|Photo|Audio|Video|Voice|Document|Sticker|Location|ChatAction>()` - Basically, All the `send<API Method>` are supported and are pre-filled with the chat id of the message that triggered the command. All other params of each method can easily be passed to it like you would normally as per the docs (Exclude `chat_id` from the array since it's already being added.)
2. `triggerCommand(<Command Name>)` - This is useful to chain a bunch of commands within a command. Say for example, I want to fire the `/subscribe` command that is registered already with the Commands Handler System. By using this method, I can tell the system to simulate the `/subscribe` command as if the user sent it and i can then process such request normally within that command. I would use this method to trigger that command in my `/start` command for example. So as soon as the user sends `/start` or interacts with my bot for the first time, they would also be automatically triggering `/subscribe` command which for example could be subscribing them for some alerts from your bot. The function supports second param called `$arguments` which is optional and can be used to send some arguments from the original command (The one which is triggering) to the other command. By default, The arguments would be the same as what Telegram originally sent it.
If a command is not registered but the user fires one (Lets say an invalid command), By default the system will look for a help command if its registered and if yes, then it'll be triggered. So the default help command class if you were to use would respond the user with the available list of commands with description.
## Registering Commands
The first step is to register our commands after we create one.
### Registering Single Command
In order to register a single command, we can make use of `addCommand()` method which supports either the command object or full path to the command itself and it'll automatically initialize it behind the scenes.
**Standalone:**
```php
$telegram->addCommand(Telegram\Bot\Commands\HelpCommand::class);
// OR
$command = new Telegram\Bot\Commands\HelpCommand();
$telegram->addCommand($command);
```
**Laravel:**
Registering Commands in Laravel is actually very easy. Simply open the `telegram.php` configuration file and add all your commands full path to the `commands` array and the SDK will take care of the rest.
Example:
```php
'commands' => [
Telegram\Bot\Commands\HelpCommand::class,
Vendor\Project\Commands\StartCommand::class,
Vendor\Project\Commands\SettingsCommand::class,
]
```
By default, The SDK registers a Help Command in Laravel, But you can either choose to disable it by simply commenting out the HelpCommand line/removing it completely or Replace it with your own Help Command.
You can also register/un-register commands on-fly using the same `addCommand()` or `removeCommand()` methods like above in Standalone example.
Example:
```php
Telegram::addCommand(Telegram\Bot\Commands\HelpCommand::class);
// OR
$command = new Telegram\Bot\Commands\HelpCommand();
Telegram::addCommand($command);
```
### Registering Multiple Commands
To register multiple commands, You can pass an array with all the commands that has to be registered to the `addCommands()` method.
Example:
```php
// Standalone
$telegram->addCommands([
Telegram\Bot\Commands\HelpCommand::class,
Vendor\Project\TestCommand::class,
Vendor\Project\StartCommand::class,
]);
// Laravel
Telegram::addCommands([
Telegram\Bot\Commands\HelpCommand::class,
Vendor\Project\TestCommand::class,
Vendor\Project\StartCommand::class,
]);
```
> **Note:** All commands are lazy loaded.
There is also a `removeCommands()` method to un-register multiple commands.
## Handling Commands
Now to handle inbound commands, You have to use the new method called `commandsHandler()`.
Here's an example used with a Webhook registered:
```php
// Laravel
Route::post('/<token>/webhook', function () {
$update = Telegram::commandsHandler(true);
// Commands handler method returns an Update object.
// So you can further process $update object
// to however you want.
return 'ok';
});
// Standalone
$update = $telegram->commandsHandler(true);
```
The method accepts a boolean value, Defaults to `false` which means the commands should manually be processed using `getUpdates()` method. Set it to `true` to process incoming updates sent from Telegram to your Webhook. The commands handler system will go through the incoming Update object to see if there is any command that matches the registered once and process them accordingly.
Commands Handler method will always return an Update object (Whether it processes the command or not), So you can use it to process further or for anything.
**Example**: In case the incoming message is not a command, You can use the returned Update object to save the incoming message and or respond accordingly.
|
m4h4n/telegram-bot-sdk
|
docs/usage/commands.md
|
Markdown
|
bsd-3-clause
| 9,473
|
// Arguments: Ints, Doubles, Doubles
#include <stan/math/prim.hpp>
using stan::math::var;
using std::numeric_limits;
using std::vector;
class AgradDistributionsNegBinomial2 : public AgradDistributionTest {
public:
void valid_values(vector<vector<double> >& parameters,
vector<double>& log_prob) {
vector<double> param(3);
param[0] = 10; // n
param[1] = 2.0; // mu
param[2] = 1.5; // phi
parameters.push_back(param);
log_prob.push_back(-5.55873452880806); // expected log_prob
param[0] = 100; // n
param[1] = 3.0; // mu
param[2] = 3.5; // phi
parameters.push_back(param);
log_prob.push_back(-69.1303554183435); // expected log_prob
param[0] = 100; // n
param[1] = 4; // mu
param[2] = 200; // phi
parameters.push_back(param);
log_prob.push_back(-209.614066642678); // expected log_prob
}
void invalid_values(vector<size_t>& index, vector<double>& value) {
// n
index.push_back(0U);
value.push_back(-1);
// mu
index.push_back(1U);
value.push_back(-1);
// phi
index.push_back(2U);
value.push_back(-1);
}
template <class T_n, class T_location, class T_inv_scale, typename T3,
typename T4, typename T5>
stan::return_type_t<T_location, T_inv_scale> log_prob(const T_n& n,
const T_location& mu,
const T_inv_scale& phi,
const T3&, const T4&,
const T5&) {
return stan::math::neg_binomial_2_log(n, mu, phi);
}
template <bool propto, class T_n, class T_location, class T_inv_scale,
typename T3, typename T4, typename T5>
stan::return_type_t<T_location, T_inv_scale> log_prob(const T_n& n,
const T_location& mu,
const T_inv_scale& phi,
const T3&, const T4&,
const T5&) {
return stan::math::neg_binomial_2_log<propto>(n, mu, phi);
}
template <class T_n, class T_location, class T_inv_scale, typename T3,
typename T4, typename T5>
stan::return_type_t<T_location, T_inv_scale> log_prob_function(
const T_n& n, const T_location& mu, const T_inv_scale& phi, const T3&,
const T4&, const T5&) {
using stan::math::binomial_coefficient_log;
using stan::math::multiply_log;
using std::log;
if (n != 0)
return binomial_coefficient_log<
typename stan::scalar_type<T_inv_scale>::type>(n + phi - 1.0,
n)
+ multiply_log(n, mu) + multiply_log(phi, phi)
- (n + phi) * log(mu + phi);
return log(0.0);
}
};
|
stan-dev/math
|
test/prob/neg_binomial_2/neg_binomial_2_test.hpp
|
C++
|
bsd-3-clause
| 2,986
|
require 'test_helper'
class SnapshotTest < ActiveSupport::TestCase
include MockHelper
fixtures :investigations
setup do
@investigation = Factory(:investigation, :description => 'not blank', :policy => Factory(:publicly_viewable_policy))
end
test 'snapshot number correctly set' do
s1 = @investigation.create_snapshot
s2 = @investigation.create_snapshot
assert_equal 1, s1.snapshot_number
assert_equal 2, s2.snapshot_number
end
test 'sha1 and md5 checksum' do
s1 = @investigation.create_snapshot
refute_nil s1.md5sum
refute_nil s1.sha1sum
assert_equal s1.content_blob.md5sum,s1.md5sum
assert_equal s1.content_blob.sha1sum,s1.sha1sum
assert_match /\b([a-f0-9]{40})\b/,s1.sha1sum
end
test 'can access snapshot metadata' do
snapshot = @investigation.create_snapshot
assert snapshot.metadata.is_a?(Hash)
assert_equal @investigation.title, snapshot.metadata['title']
end
test 'can fetch by snapshot number' do
s1 = @investigation.create_snapshot
s2 = @investigation.create_snapshot
s3 = @investigation.create_snapshot
assert_equal 3, @investigation.snapshots.count
assert_equal s2, @investigation.snapshot(2)
assert_equal s3, @investigation.snapshot(3)
assert_equal s1, @investigation.snapshot(1)
end
test 'snapshot captures state' do
old_title = @investigation.title
old_description = @investigation.description
snapshot = @investigation.create_snapshot
@investigation.update_attributes(title: "New title", description: "New description")
assert_equal "New title", @investigation.title
assert_equal "New description", @investigation.description
assert_equal old_title, snapshot.title
assert_equal old_description, snapshot.description
end
test 'generates sensible DOI' do
snapshot = @investigation.create_snapshot
assert_equal "#{Seek::Config.doi_prefix}/#{Seek::Config.doi_suffix}.investigation.#{@investigation.id}.#{snapshot.snapshot_number}", snapshot.suggested_doi
end
test 'generates valid DataCite metadata' do
snapshot = @investigation.create_snapshot
assert snapshot.datacite_metadata.validate
end
test 'creates DOI via datacite' do
datacite_mock
snapshot = @investigation.create_snapshot
res = snapshot.mint_doi
assert res
assert_equal snapshot.suggested_doi, snapshot.doi
assert_empty snapshot.errors
end
test "doesn't create DOI if already minted" do
datacite_mock
snapshot = @investigation.create_snapshot
snapshot.doi = '123'
res = snapshot.mint_doi
assert !res
assert_equal '123', snapshot.doi
assert_not_empty snapshot.errors
end
test "exports to Zenodo" do
zenodo_mock
snapshot = @investigation.create_snapshot
snapshot.doi = '123'
snapshot.save
assert_nil snapshot.zenodo_deposition_id
res = snapshot.export_to_zenodo(MockHelper::ZENODO_ACCESS_TOKEN)
assert res
assert_not_nil snapshot.zenodo_deposition_id
assert_empty snapshot.errors
end
test "publishes to Zenodo" do
zenodo_mock
snapshot = @investigation.create_snapshot
snapshot.doi = '123'
snapshot.save
snapshot.export_to_zenodo(MockHelper::ZENODO_ACCESS_TOKEN)
assert_nil snapshot.zenodo_record_url
res = snapshot.publish_in_zenodo(MockHelper::ZENODO_ACCESS_TOKEN)
assert res
assert_not_nil snapshot.zenodo_record_url
assert_empty snapshot.errors
end
test "doesn't export to Zenodo if already exported" do
zenodo_mock
snapshot = @investigation.create_snapshot
snapshot.zenodo_deposition_id = 123
snapshot.save
res = snapshot.export_to_zenodo(MockHelper::ZENODO_ACCESS_TOKEN)
assert !res
assert_equal 123, snapshot.zenodo_deposition_id
assert_not_empty snapshot.errors
end
test "doesn't export to Zenodo if no DOI" do
zenodo_mock
snapshot = @investigation.create_snapshot
res = snapshot.export_to_zenodo(MockHelper::ZENODO_ACCESS_TOKEN)
assert !res
assert_nil snapshot.zenodo_deposition_id
assert_not_empty snapshot.errors
end
test "doesn't publish to Zenodo if not exported first" do
zenodo_mock
snapshot = @investigation.create_snapshot
snapshot.doi = '123'
snapshot.save
res = snapshot.publish_in_zenodo(MockHelper::ZENODO_ACCESS_TOKEN)
assert !res
assert_nil snapshot.zenodo_record_url
assert_not_empty snapshot.errors
end
end
|
SynthSys/seek
|
test/unit/snapshot_test.rb
|
Ruby
|
bsd-3-clause
| 4,464
|
using System.Collections;
namespace Platform.VirtualFileSystem
{
public class NullNodeCache
: INodeCache
{
public virtual IEnumerator GetEnumerator()
{
return new object[0].GetEnumerator();
}
public void Add(INodeAddress address, INode node)
{
}
public INode Get(INodeAddress address, Platform.VirtualFileSystem.NodeType nodeType)
{
return null;
}
public void Purge()
{
}
void INodeCache.Purge(INodeAddress address, NodeType nodeType)
{
}
public void PurgeWithDescendents(INodeAddress address, NodeType nodeType)
{
}
public object SyncLock
{
get { return this; }
}
public IAutoLock GetAutoLock()
{
return new AutoLock(this);
}
public virtual IAutoLock AquireAutoLock()
{
return GetAutoLock().Lock();
}
}
}
|
platformdotnet/Platform.VirtualFileSystem
|
src/Platform.VirtualFileSystem/NullNodeCache.cs
|
C#
|
bsd-3-clause
| 840
|
<script language="javascript" type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profilowanie: raport podsumowuj¹cy");
console.log(" iloæ razem rednia min max ");
<?php
foreach($data as $index=>$entry)
{
$proc=CJavaScript::quote($entry[0]);
$count=sprintf('%5d',$entry[1]);
$min=sprintf('%0.5f',$entry[2]);
$max=sprintf('%0.5f',$entry[3]);
$total=sprintf('%0.5f',$entry[4]);
$average=sprintf('%0.5f',$entry[4]/$entry[1]);
echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
}
?>
console.groupEnd();
}
/*]]>*/
</script>
|
hukumonline/yii
|
framework/views/pl/profile-summary-firebug.php
|
PHP
|
bsd-3-clause
| 606
|
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\JurulatihSukanAcara */
$this->title = 'Update Jurulatih Sukan Acara: ' . $model->jurulatih_sukan_acara_id;
$this->params['breadcrumbs'][] = ['label' => 'Jurulatih Sukan Acaras', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->jurulatih_sukan_acara_id, 'url' => ['view', 'id' => $model->jurulatih_sukan_acara_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="jurulatih-sukan-acara-update">
<!--<h1><?= Html::encode($this->title) ?></h1>-->
<?= $this->render('_form', [
'model' => $model,
'readonly' => $readonly,
]) ?>
</div>
|
hung101/kbs
|
frontend/views/jurulatih-sukan-acara/update.php
|
PHP
|
bsd-3-clause
| 683
|
<?php
/***
* ActionLeaf (www.actionleaf.com / actionleaf.googlecode.com) PHP Framework
* Copyright (c) 2008, Wess D. Cope <wess@wattz.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of the <ORGANIZATION> nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
**/
/**
* Foundation.ALPostgreSQLDriver
* Create PDO PostgreSQL database connections and connection requests...
*/
class ALPostgreSQLDriver extends PDO
{
/**
* Create a new connection to a mysql database
*
* @param string
* @param string
* @param string
* @param string
* @param int
**/
public function __construct($host,$db,$user,$pass,$port=5432)
{
parent::__construct("pgsql:host={$host};port={$port};dbname={$db}", $user, $pass);
}
}
|
google-code/actionleaf
|
system/Foundation/ALPostgreSQLDriver.php
|
PHP
|
bsd-3-clause
| 2,348
|
//===-- NativeRegisterContextLinux_arm64.cpp ------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#if defined(__arm64__) || defined(__aarch64__)
#include "NativeRegisterContextLinux_arm.h"
#include "NativeRegisterContextLinux_arm64.h"
#include "lldb/Host/common/NativeProcessProtocol.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/RegisterValue.h"
#include "lldb/Utility/Status.h"
#include "Plugins/Process/Linux/NativeProcessLinux.h"
#include "Plugins/Process/Linux/Procfs.h"
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
#include "Plugins/Process/Utility/RegisterInfoPOSIX_arm64.h"
// System includes - They have to be included after framework includes because
// they define some macros which collide with variable names in other modules
#include <sys/socket.h>
// NT_PRSTATUS and NT_FPREGSET definition
#include <elf.h>
// user_hwdebug_state definition
#include <asm/ptrace.h>
#define REG_CONTEXT_SIZE (GetGPRSize() + GetFPRSize())
using namespace lldb;
using namespace lldb_private;
using namespace lldb_private::process_linux;
// ARM64 general purpose registers.
static const uint32_t g_gpr_regnums_arm64[] = {
gpr_x0_arm64, gpr_x1_arm64, gpr_x2_arm64, gpr_x3_arm64,
gpr_x4_arm64, gpr_x5_arm64, gpr_x6_arm64, gpr_x7_arm64,
gpr_x8_arm64, gpr_x9_arm64, gpr_x10_arm64, gpr_x11_arm64,
gpr_x12_arm64, gpr_x13_arm64, gpr_x14_arm64, gpr_x15_arm64,
gpr_x16_arm64, gpr_x17_arm64, gpr_x18_arm64, gpr_x19_arm64,
gpr_x20_arm64, gpr_x21_arm64, gpr_x22_arm64, gpr_x23_arm64,
gpr_x24_arm64, gpr_x25_arm64, gpr_x26_arm64, gpr_x27_arm64,
gpr_x28_arm64, gpr_fp_arm64, gpr_lr_arm64, gpr_sp_arm64,
gpr_pc_arm64, gpr_cpsr_arm64, gpr_w0_arm64, gpr_w1_arm64,
gpr_w2_arm64, gpr_w3_arm64, gpr_w4_arm64, gpr_w5_arm64,
gpr_w6_arm64, gpr_w7_arm64, gpr_w8_arm64, gpr_w9_arm64,
gpr_w10_arm64, gpr_w11_arm64, gpr_w12_arm64, gpr_w13_arm64,
gpr_w14_arm64, gpr_w15_arm64, gpr_w16_arm64, gpr_w17_arm64,
gpr_w18_arm64, gpr_w19_arm64, gpr_w20_arm64, gpr_w21_arm64,
gpr_w22_arm64, gpr_w23_arm64, gpr_w24_arm64, gpr_w25_arm64,
gpr_w26_arm64, gpr_w27_arm64, gpr_w28_arm64,
LLDB_INVALID_REGNUM // register sets need to end with this flag
};
static_assert(((sizeof g_gpr_regnums_arm64 / sizeof g_gpr_regnums_arm64[0]) -
1) == k_num_gpr_registers_arm64,
"g_gpr_regnums_arm64 has wrong number of register infos");
// ARM64 floating point registers.
static const uint32_t g_fpu_regnums_arm64[] = {
fpu_v0_arm64, fpu_v1_arm64, fpu_v2_arm64, fpu_v3_arm64,
fpu_v4_arm64, fpu_v5_arm64, fpu_v6_arm64, fpu_v7_arm64,
fpu_v8_arm64, fpu_v9_arm64, fpu_v10_arm64, fpu_v11_arm64,
fpu_v12_arm64, fpu_v13_arm64, fpu_v14_arm64, fpu_v15_arm64,
fpu_v16_arm64, fpu_v17_arm64, fpu_v18_arm64, fpu_v19_arm64,
fpu_v20_arm64, fpu_v21_arm64, fpu_v22_arm64, fpu_v23_arm64,
fpu_v24_arm64, fpu_v25_arm64, fpu_v26_arm64, fpu_v27_arm64,
fpu_v28_arm64, fpu_v29_arm64, fpu_v30_arm64, fpu_v31_arm64,
fpu_s0_arm64, fpu_s1_arm64, fpu_s2_arm64, fpu_s3_arm64,
fpu_s4_arm64, fpu_s5_arm64, fpu_s6_arm64, fpu_s7_arm64,
fpu_s8_arm64, fpu_s9_arm64, fpu_s10_arm64, fpu_s11_arm64,
fpu_s12_arm64, fpu_s13_arm64, fpu_s14_arm64, fpu_s15_arm64,
fpu_s16_arm64, fpu_s17_arm64, fpu_s18_arm64, fpu_s19_arm64,
fpu_s20_arm64, fpu_s21_arm64, fpu_s22_arm64, fpu_s23_arm64,
fpu_s24_arm64, fpu_s25_arm64, fpu_s26_arm64, fpu_s27_arm64,
fpu_s28_arm64, fpu_s29_arm64, fpu_s30_arm64, fpu_s31_arm64,
fpu_d0_arm64, fpu_d1_arm64, fpu_d2_arm64, fpu_d3_arm64,
fpu_d4_arm64, fpu_d5_arm64, fpu_d6_arm64, fpu_d7_arm64,
fpu_d8_arm64, fpu_d9_arm64, fpu_d10_arm64, fpu_d11_arm64,
fpu_d12_arm64, fpu_d13_arm64, fpu_d14_arm64, fpu_d15_arm64,
fpu_d16_arm64, fpu_d17_arm64, fpu_d18_arm64, fpu_d19_arm64,
fpu_d20_arm64, fpu_d21_arm64, fpu_d22_arm64, fpu_d23_arm64,
fpu_d24_arm64, fpu_d25_arm64, fpu_d26_arm64, fpu_d27_arm64,
fpu_d28_arm64, fpu_d29_arm64, fpu_d30_arm64, fpu_d31_arm64,
fpu_fpsr_arm64, fpu_fpcr_arm64,
LLDB_INVALID_REGNUM // register sets need to end with this flag
};
static_assert(((sizeof g_fpu_regnums_arm64 / sizeof g_fpu_regnums_arm64[0]) -
1) == k_num_fpr_registers_arm64,
"g_fpu_regnums_arm64 has wrong number of register infos");
namespace {
// Number of register sets provided by this context.
enum { k_num_register_sets = 2 };
}
// Register sets for ARM64.
static const RegisterSet g_reg_sets_arm64[k_num_register_sets] = {
{"General Purpose Registers", "gpr", k_num_gpr_registers_arm64,
g_gpr_regnums_arm64},
{"Floating Point Registers", "fpu", k_num_fpr_registers_arm64,
g_fpu_regnums_arm64}};
std::unique_ptr<NativeRegisterContextLinux>
NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux(
const ArchSpec &target_arch, NativeThreadProtocol &native_thread) {
switch (target_arch.GetMachine()) {
case llvm::Triple::arm:
return std::make_unique<NativeRegisterContextLinux_arm>(target_arch,
native_thread);
case llvm::Triple::aarch64:
return std::make_unique<NativeRegisterContextLinux_arm64>(target_arch,
native_thread);
default:
llvm_unreachable("have no register context for architecture");
}
}
NativeRegisterContextLinux_arm64::NativeRegisterContextLinux_arm64(
const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
: NativeRegisterContextLinux(native_thread,
new RegisterInfoPOSIX_arm64(target_arch)) {
switch (target_arch.GetMachine()) {
case llvm::Triple::aarch64:
m_reg_info.num_registers = k_num_registers_arm64;
m_reg_info.num_gpr_registers = k_num_gpr_registers_arm64;
m_reg_info.num_fpr_registers = k_num_fpr_registers_arm64;
m_reg_info.last_gpr = k_last_gpr_arm64;
m_reg_info.first_fpr = k_first_fpr_arm64;
m_reg_info.last_fpr = k_last_fpr_arm64;
m_reg_info.first_fpr_v = fpu_v0_arm64;
m_reg_info.last_fpr_v = fpu_v31_arm64;
m_reg_info.gpr_flags = gpr_cpsr_arm64;
break;
default:
llvm_unreachable("Unhandled target architecture.");
break;
}
::memset(&m_fpr, 0, sizeof(m_fpr));
::memset(&m_gpr_arm64, 0, sizeof(m_gpr_arm64));
::memset(&m_hwp_regs, 0, sizeof(m_hwp_regs));
::memset(&m_hbr_regs, 0, sizeof(m_hbr_regs));
// 16 is just a maximum value, query hardware for actual watchpoint count
m_max_hwp_supported = 16;
m_max_hbp_supported = 16;
m_refresh_hwdebug_info = true;
m_gpr_is_valid = false;
m_fpu_is_valid = false;
}
uint32_t NativeRegisterContextLinux_arm64::GetRegisterSetCount() const {
return k_num_register_sets;
}
const RegisterSet *
NativeRegisterContextLinux_arm64::GetRegisterSet(uint32_t set_index) const {
if (set_index < k_num_register_sets)
return &g_reg_sets_arm64[set_index];
return nullptr;
}
uint32_t NativeRegisterContextLinux_arm64::GetUserRegisterCount() const {
uint32_t count = 0;
for (uint32_t set_index = 0; set_index < k_num_register_sets; ++set_index)
count += g_reg_sets_arm64[set_index].num_registers;
return count;
}
Status
NativeRegisterContextLinux_arm64::ReadRegister(const RegisterInfo *reg_info,
RegisterValue ®_value) {
Status error;
if (!reg_info) {
error.SetErrorString("reg_info NULL");
return error;
}
const uint32_t reg = reg_info->kinds[lldb::eRegisterKindLLDB];
if (reg == LLDB_INVALID_REGNUM)
return Status("no lldb regnum for %s", reg_info && reg_info->name
? reg_info->name
: "<unknown register>");
uint8_t *src;
uint32_t offset;
if (IsGPR(reg)) {
if (!m_gpr_is_valid) {
error = ReadGPR();
if (error.Fail())
return error;
}
offset = reg_info->byte_offset;
assert(offset < GetGPRSize());
src = (uint8_t *)GetGPRBuffer() + offset;
} else if (IsFPR(reg)) {
if (!m_fpu_is_valid) {
error = ReadFPR();
if (error.Fail())
return error;
}
offset = CalculateFprOffset(reg_info);
assert(offset < GetFPRSize());
src = (uint8_t *)GetFPRBuffer() + offset;
} else
return Status("failed - register wasn't recognized to be a GPR or an FPR, "
"write strategy unknown");
reg_value.SetFromMemoryData(reg_info, src, reg_info->byte_size,
eByteOrderLittle, error);
return error;
}
Status NativeRegisterContextLinux_arm64::WriteRegister(
const RegisterInfo *reg_info, const RegisterValue ®_value) {
Status error;
if (!reg_info)
return Status("reg_info NULL");
const uint32_t reg = reg_info->kinds[lldb::eRegisterKindLLDB];
if (reg == LLDB_INVALID_REGNUM)
return Status("no lldb regnum for %s", reg_info && reg_info->name
? reg_info->name
: "<unknown register>");
uint8_t *dst;
uint32_t offset;
if (IsGPR(reg)) {
if (!m_gpr_is_valid) {
error = ReadGPR();
if (error.Fail())
return error;
}
offset = reg_info->byte_offset;
assert(offset < GetGPRSize());
dst = (uint8_t *)GetGPRBuffer() + offset;
::memcpy(dst, reg_value.GetBytes(), reg_info->byte_size);
return WriteGPR();
} else if (IsFPR(reg)) {
if (!m_fpu_is_valid) {
error = ReadFPR();
if (error.Fail())
return error;
}
offset = CalculateFprOffset(reg_info);
assert(offset < GetFPRSize());
dst = (uint8_t *)GetFPRBuffer() + offset;
::memcpy(dst, reg_value.GetBytes(), reg_info->byte_size);
return WriteFPR();
}
return error;
}
Status NativeRegisterContextLinux_arm64::ReadAllRegisterValues(
lldb::DataBufferSP &data_sp) {
Status error;
data_sp.reset(new DataBufferHeap(REG_CONTEXT_SIZE, 0));
if (!m_gpr_is_valid) {
error = ReadGPR();
if (error.Fail())
return error;
}
if (!m_fpu_is_valid) {
error = ReadFPR();
if (error.Fail())
return error;
}
uint8_t *dst = data_sp->GetBytes();
::memcpy(dst, GetGPRBuffer(), GetGPRSize());
dst += GetGPRSize();
::memcpy(dst, GetFPRBuffer(), GetFPRSize());
return error;
}
Status NativeRegisterContextLinux_arm64::WriteAllRegisterValues(
const lldb::DataBufferSP &data_sp) {
Status error;
if (!data_sp) {
error.SetErrorStringWithFormat(
"NativeRegisterContextLinux_x86_64::%s invalid data_sp provided",
__FUNCTION__);
return error;
}
if (data_sp->GetByteSize() != REG_CONTEXT_SIZE) {
error.SetErrorStringWithFormat(
"NativeRegisterContextLinux_x86_64::%s data_sp contained mismatched "
"data size, expected %" PRIu64 ", actual %" PRIu64,
__FUNCTION__, REG_CONTEXT_SIZE, data_sp->GetByteSize());
return error;
}
uint8_t *src = data_sp->GetBytes();
if (src == nullptr) {
error.SetErrorStringWithFormat("NativeRegisterContextLinux_x86_64::%s "
"DataBuffer::GetBytes() returned a null "
"pointer",
__FUNCTION__);
return error;
}
::memcpy(GetGPRBuffer(), src, GetRegisterInfoInterface().GetGPRSize());
error = WriteGPR();
if (error.Fail())
return error;
src += GetRegisterInfoInterface().GetGPRSize();
::memcpy(GetFPRBuffer(), src, GetFPRSize());
error = WriteFPR();
if (error.Fail())
return error;
return error;
}
bool NativeRegisterContextLinux_arm64::IsGPR(unsigned reg) const {
return reg <= m_reg_info.last_gpr; // GPR's come first.
}
bool NativeRegisterContextLinux_arm64::IsFPR(unsigned reg) const {
return (m_reg_info.first_fpr <= reg && reg <= m_reg_info.last_fpr);
}
uint32_t NativeRegisterContextLinux_arm64::NumSupportedHardwareBreakpoints() {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_BREAKPOINTS));
LLDB_LOGF(log, "NativeRegisterContextLinux_arm64::%s()", __FUNCTION__);
Status error;
// Read hardware breakpoint and watchpoint information.
error = ReadHardwareDebugInfo();
if (error.Fail())
return 0;
return m_max_hbp_supported;
}
uint32_t
NativeRegisterContextLinux_arm64::SetHardwareBreakpoint(lldb::addr_t addr,
size_t size) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_BREAKPOINTS));
LLDB_LOG(log, "addr: {0:x}, size: {1:x}", addr, size);
// Read hardware breakpoint and watchpoint information.
Status error = ReadHardwareDebugInfo();
if (error.Fail())
return LLDB_INVALID_INDEX32;
uint32_t control_value = 0, bp_index = 0;
// Check if size has a valid hardware breakpoint length.
if (size != 4)
return LLDB_INVALID_INDEX32; // Invalid size for a AArch64 hardware
// breakpoint
// Check 4-byte alignment for hardware breakpoint target address.
if (addr & 0x03)
return LLDB_INVALID_INDEX32; // Invalid address, should be 4-byte aligned.
// Setup control value
control_value = 0;
control_value |= ((1 << size) - 1) << 5;
control_value |= (2 << 1) | 1;
// Iterate over stored breakpoints and find a free bp_index
bp_index = LLDB_INVALID_INDEX32;
for (uint32_t i = 0; i < m_max_hbp_supported; i++) {
if ((m_hbr_regs[i].control & 1) == 0) {
bp_index = i; // Mark last free slot
} else if (m_hbr_regs[i].address == addr) {
return LLDB_INVALID_INDEX32; // We do not support duplicate breakpoints.
}
}
if (bp_index == LLDB_INVALID_INDEX32)
return LLDB_INVALID_INDEX32;
// Update breakpoint in local cache
m_hbr_regs[bp_index].real_addr = addr;
m_hbr_regs[bp_index].address = addr;
m_hbr_regs[bp_index].control = control_value;
// PTRACE call to set corresponding hardware breakpoint register.
error = WriteHardwareDebugRegs(eDREGTypeBREAK);
if (error.Fail()) {
m_hbr_regs[bp_index].address = 0;
m_hbr_regs[bp_index].control &= ~1;
return LLDB_INVALID_INDEX32;
}
return bp_index;
}
bool NativeRegisterContextLinux_arm64::ClearHardwareBreakpoint(
uint32_t hw_idx) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_BREAKPOINTS));
LLDB_LOG(log, "hw_idx: {0}", hw_idx);
// Read hardware breakpoint and watchpoint information.
Status error = ReadHardwareDebugInfo();
if (error.Fail())
return false;
if (hw_idx >= m_max_hbp_supported)
return false;
// Create a backup we can revert to in case of failure.
lldb::addr_t tempAddr = m_hbr_regs[hw_idx].address;
uint32_t tempControl = m_hbr_regs[hw_idx].control;
m_hbr_regs[hw_idx].control &= ~1;
m_hbr_regs[hw_idx].address = 0;
// PTRACE call to clear corresponding hardware breakpoint register.
error = WriteHardwareDebugRegs(eDREGTypeBREAK);
if (error.Fail()) {
m_hbr_regs[hw_idx].control = tempControl;
m_hbr_regs[hw_idx].address = tempAddr;
return false;
}
return true;
}
Status NativeRegisterContextLinux_arm64::GetHardwareBreakHitIndex(
uint32_t &bp_index, lldb::addr_t trap_addr) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_BREAKPOINTS));
LLDB_LOGF(log, "NativeRegisterContextLinux_arm64::%s()", __FUNCTION__);
lldb::addr_t break_addr;
for (bp_index = 0; bp_index < m_max_hbp_supported; ++bp_index) {
break_addr = m_hbr_regs[bp_index].address;
if ((m_hbr_regs[bp_index].control & 0x1) && (trap_addr == break_addr)) {
m_hbr_regs[bp_index].hit_addr = trap_addr;
return Status();
}
}
bp_index = LLDB_INVALID_INDEX32;
return Status();
}
Status NativeRegisterContextLinux_arm64::ClearAllHardwareBreakpoints() {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_BREAKPOINTS));
LLDB_LOGF(log, "NativeRegisterContextLinux_arm64::%s()", __FUNCTION__);
Status error;
// Read hardware breakpoint and watchpoint information.
error = ReadHardwareDebugInfo();
if (error.Fail())
return error;
lldb::addr_t tempAddr = 0;
uint32_t tempControl = 0;
for (uint32_t i = 0; i < m_max_hbp_supported; i++) {
if (m_hbr_regs[i].control & 0x01) {
// Create a backup we can revert to in case of failure.
tempAddr = m_hbr_regs[i].address;
tempControl = m_hbr_regs[i].control;
// Clear watchpoints in local cache
m_hbr_regs[i].control &= ~1;
m_hbr_regs[i].address = 0;
// Ptrace call to update hardware debug registers
error = WriteHardwareDebugRegs(eDREGTypeBREAK);
if (error.Fail()) {
m_hbr_regs[i].control = tempControl;
m_hbr_regs[i].address = tempAddr;
return error;
}
}
}
return Status();
}
uint32_t NativeRegisterContextLinux_arm64::NumSupportedHardwareWatchpoints() {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_WATCHPOINTS));
// Read hardware breakpoint and watchpoint information.
Status error = ReadHardwareDebugInfo();
if (error.Fail())
return 0;
LLDB_LOG(log, "{0}", m_max_hwp_supported);
return m_max_hwp_supported;
}
uint32_t NativeRegisterContextLinux_arm64::SetHardwareWatchpoint(
lldb::addr_t addr, size_t size, uint32_t watch_flags) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_WATCHPOINTS));
LLDB_LOG(log, "addr: {0:x}, size: {1:x} watch_flags: {2:x}", addr, size,
watch_flags);
// Read hardware breakpoint and watchpoint information.
Status error = ReadHardwareDebugInfo();
if (error.Fail())
return LLDB_INVALID_INDEX32;
uint32_t control_value = 0, wp_index = 0;
lldb::addr_t real_addr = addr;
// Check if we are setting watchpoint other than read/write/access Also
// update watchpoint flag to match AArch64 write-read bit configuration.
switch (watch_flags) {
case 1:
watch_flags = 2;
break;
case 2:
watch_flags = 1;
break;
case 3:
break;
default:
return LLDB_INVALID_INDEX32;
}
// Check if size has a valid hardware watchpoint length.
if (size != 1 && size != 2 && size != 4 && size != 8)
return LLDB_INVALID_INDEX32;
// Check 8-byte alignment for hardware watchpoint target address. Below is a
// hack to recalculate address and size in order to make sure we can watch
// non 8-byte aligned addresses as well.
if (addr & 0x07) {
uint8_t watch_mask = (addr & 0x07) + size;
if (watch_mask > 0x08)
return LLDB_INVALID_INDEX32;
else if (watch_mask <= 0x02)
size = 2;
else if (watch_mask <= 0x04)
size = 4;
else
size = 8;
addr = addr & (~0x07);
}
// Setup control value
control_value = watch_flags << 3;
control_value |= ((1 << size) - 1) << 5;
control_value |= (2 << 1) | 1;
// Iterate over stored watchpoints and find a free wp_index
wp_index = LLDB_INVALID_INDEX32;
for (uint32_t i = 0; i < m_max_hwp_supported; i++) {
if ((m_hwp_regs[i].control & 1) == 0) {
wp_index = i; // Mark last free slot
} else if (m_hwp_regs[i].address == addr) {
return LLDB_INVALID_INDEX32; // We do not support duplicate watchpoints.
}
}
if (wp_index == LLDB_INVALID_INDEX32)
return LLDB_INVALID_INDEX32;
// Update watchpoint in local cache
m_hwp_regs[wp_index].real_addr = real_addr;
m_hwp_regs[wp_index].address = addr;
m_hwp_regs[wp_index].control = control_value;
// PTRACE call to set corresponding watchpoint register.
error = WriteHardwareDebugRegs(eDREGTypeWATCH);
if (error.Fail()) {
m_hwp_regs[wp_index].address = 0;
m_hwp_regs[wp_index].control &= ~1;
return LLDB_INVALID_INDEX32;
}
return wp_index;
}
bool NativeRegisterContextLinux_arm64::ClearHardwareWatchpoint(
uint32_t wp_index) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_WATCHPOINTS));
LLDB_LOG(log, "wp_index: {0}", wp_index);
// Read hardware breakpoint and watchpoint information.
Status error = ReadHardwareDebugInfo();
if (error.Fail())
return false;
if (wp_index >= m_max_hwp_supported)
return false;
// Create a backup we can revert to in case of failure.
lldb::addr_t tempAddr = m_hwp_regs[wp_index].address;
uint32_t tempControl = m_hwp_regs[wp_index].control;
// Update watchpoint in local cache
m_hwp_regs[wp_index].control &= ~1;
m_hwp_regs[wp_index].address = 0;
// Ptrace call to update hardware debug registers
error = WriteHardwareDebugRegs(eDREGTypeWATCH);
if (error.Fail()) {
m_hwp_regs[wp_index].control = tempControl;
m_hwp_regs[wp_index].address = tempAddr;
return false;
}
return true;
}
Status NativeRegisterContextLinux_arm64::ClearAllHardwareWatchpoints() {
// Read hardware breakpoint and watchpoint information.
Status error = ReadHardwareDebugInfo();
if (error.Fail())
return error;
lldb::addr_t tempAddr = 0;
uint32_t tempControl = 0;
for (uint32_t i = 0; i < m_max_hwp_supported; i++) {
if (m_hwp_regs[i].control & 0x01) {
// Create a backup we can revert to in case of failure.
tempAddr = m_hwp_regs[i].address;
tempControl = m_hwp_regs[i].control;
// Clear watchpoints in local cache
m_hwp_regs[i].control &= ~1;
m_hwp_regs[i].address = 0;
// Ptrace call to update hardware debug registers
error = WriteHardwareDebugRegs(eDREGTypeWATCH);
if (error.Fail()) {
m_hwp_regs[i].control = tempControl;
m_hwp_regs[i].address = tempAddr;
return error;
}
}
}
return Status();
}
uint32_t
NativeRegisterContextLinux_arm64::GetWatchpointSize(uint32_t wp_index) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_WATCHPOINTS));
LLDB_LOG(log, "wp_index: {0}", wp_index);
switch ((m_hwp_regs[wp_index].control >> 5) & 0xff) {
case 0x01:
return 1;
case 0x03:
return 2;
case 0x0f:
return 4;
case 0xff:
return 8;
default:
return 0;
}
}
bool NativeRegisterContextLinux_arm64::WatchpointIsEnabled(uint32_t wp_index) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_WATCHPOINTS));
LLDB_LOG(log, "wp_index: {0}", wp_index);
if ((m_hwp_regs[wp_index].control & 0x1) == 0x1)
return true;
else
return false;
}
Status NativeRegisterContextLinux_arm64::GetWatchpointHitIndex(
uint32_t &wp_index, lldb::addr_t trap_addr) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_WATCHPOINTS));
LLDB_LOG(log, "wp_index: {0}, trap_addr: {1:x}", wp_index, trap_addr);
uint32_t watch_size;
lldb::addr_t watch_addr;
for (wp_index = 0; wp_index < m_max_hwp_supported; ++wp_index) {
watch_size = GetWatchpointSize(wp_index);
watch_addr = m_hwp_regs[wp_index].address;
if (WatchpointIsEnabled(wp_index) && trap_addr >= watch_addr &&
trap_addr < watch_addr + watch_size) {
m_hwp_regs[wp_index].hit_addr = trap_addr;
return Status();
}
}
wp_index = LLDB_INVALID_INDEX32;
return Status();
}
lldb::addr_t
NativeRegisterContextLinux_arm64::GetWatchpointAddress(uint32_t wp_index) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_WATCHPOINTS));
LLDB_LOG(log, "wp_index: {0}", wp_index);
if (wp_index >= m_max_hwp_supported)
return LLDB_INVALID_ADDRESS;
if (WatchpointIsEnabled(wp_index))
return m_hwp_regs[wp_index].real_addr;
else
return LLDB_INVALID_ADDRESS;
}
lldb::addr_t
NativeRegisterContextLinux_arm64::GetWatchpointHitAddress(uint32_t wp_index) {
Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_WATCHPOINTS));
LLDB_LOG(log, "wp_index: {0}", wp_index);
if (wp_index >= m_max_hwp_supported)
return LLDB_INVALID_ADDRESS;
if (WatchpointIsEnabled(wp_index))
return m_hwp_regs[wp_index].hit_addr;
else
return LLDB_INVALID_ADDRESS;
}
Status NativeRegisterContextLinux_arm64::ReadHardwareDebugInfo() {
if (!m_refresh_hwdebug_info) {
return Status();
}
::pid_t tid = m_thread.GetID();
int regset = NT_ARM_HW_WATCH;
struct iovec ioVec;
struct user_hwdebug_state dreg_state;
Status error;
ioVec.iov_base = &dreg_state;
ioVec.iov_len = sizeof(dreg_state);
error = NativeProcessLinux::PtraceWrapper(PTRACE_GETREGSET, tid, ®set,
&ioVec, ioVec.iov_len);
if (error.Fail())
return error;
m_max_hwp_supported = dreg_state.dbg_info & 0xff;
regset = NT_ARM_HW_BREAK;
error = NativeProcessLinux::PtraceWrapper(PTRACE_GETREGSET, tid, ®set,
&ioVec, ioVec.iov_len);
if (error.Fail())
return error;
m_max_hbp_supported = dreg_state.dbg_info & 0xff;
m_refresh_hwdebug_info = false;
return error;
}
Status NativeRegisterContextLinux_arm64::WriteHardwareDebugRegs(int hwbType) {
struct iovec ioVec;
struct user_hwdebug_state dreg_state;
Status error;
memset(&dreg_state, 0, sizeof(dreg_state));
ioVec.iov_base = &dreg_state;
if (hwbType == eDREGTypeWATCH) {
hwbType = NT_ARM_HW_WATCH;
ioVec.iov_len = sizeof(dreg_state.dbg_info) + sizeof(dreg_state.pad) +
(sizeof(dreg_state.dbg_regs[0]) * m_max_hwp_supported);
for (uint32_t i = 0; i < m_max_hwp_supported; i++) {
dreg_state.dbg_regs[i].addr = m_hwp_regs[i].address;
dreg_state.dbg_regs[i].ctrl = m_hwp_regs[i].control;
}
} else {
hwbType = NT_ARM_HW_BREAK;
ioVec.iov_len = sizeof(dreg_state.dbg_info) + sizeof(dreg_state.pad) +
(sizeof(dreg_state.dbg_regs[0]) * m_max_hbp_supported);
for (uint32_t i = 0; i < m_max_hbp_supported; i++) {
dreg_state.dbg_regs[i].addr = m_hbr_regs[i].address;
dreg_state.dbg_regs[i].ctrl = m_hbr_regs[i].control;
}
}
return NativeProcessLinux::PtraceWrapper(PTRACE_SETREGSET, m_thread.GetID(),
&hwbType, &ioVec, ioVec.iov_len);
}
Status NativeRegisterContextLinux_arm64::ReadGPR() {
Status error;
struct iovec ioVec;
ioVec.iov_base = GetGPRBuffer();
ioVec.iov_len = GetGPRSize();
error = ReadRegisterSet(&ioVec, GetGPRSize(), NT_PRSTATUS);
if (error.Success())
m_gpr_is_valid = true;
return error;
}
Status NativeRegisterContextLinux_arm64::WriteGPR() {
struct iovec ioVec;
m_gpr_is_valid = false;
ioVec.iov_base = GetGPRBuffer();
ioVec.iov_len = GetGPRSize();
return WriteRegisterSet(&ioVec, GetGPRSize(), NT_PRSTATUS);
}
Status NativeRegisterContextLinux_arm64::ReadFPR() {
Status error;
struct iovec ioVec;
ioVec.iov_base = GetFPRBuffer();
ioVec.iov_len = GetFPRSize();
error = ReadRegisterSet(&ioVec, GetFPRSize(), NT_FPREGSET);
if (error.Success())
m_fpu_is_valid = true;
return error;
}
Status NativeRegisterContextLinux_arm64::WriteFPR() {
struct iovec ioVec;
m_fpu_is_valid = false;
ioVec.iov_base = GetFPRBuffer();
ioVec.iov_len = GetFPRSize();
return WriteRegisterSet(&ioVec, GetFPRSize(), NT_FPREGSET);
}
void NativeRegisterContextLinux_arm64::InvalidateAllRegisters() {
m_gpr_is_valid = false;
m_fpu_is_valid = false;
}
uint32_t NativeRegisterContextLinux_arm64::CalculateFprOffset(
const RegisterInfo *reg_info) const {
return reg_info->byte_offset -
GetRegisterInfoAtIndex(m_reg_info.first_fpr)->byte_offset;
}
#endif // defined (__arm64__) || defined (__aarch64__)
|
endlessm/chromium-browser
|
third_party/llvm/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
|
C++
|
bsd-3-clause
| 27,890
|
/*
* Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 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.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``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 APPLE COMPUTER, INC. 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.
*/
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_KEYFRAMES_RULE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_KEYFRAMES_RULE_H_
#include "third_party/blink/renderer/core/css/css_rule.h"
#include "third_party/blink/renderer/core/css/style_rule.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
#include "third_party/blink/renderer/platform/wtf/forward.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string.h"
namespace blink {
class CSSRuleList;
class CSSKeyframeRule;
class StyleRuleKeyframe;
class StyleRuleKeyframes final : public StyleRuleBase {
public:
StyleRuleKeyframes();
explicit StyleRuleKeyframes(const StyleRuleKeyframes&);
~StyleRuleKeyframes();
const HeapVector<Member<StyleRuleKeyframe>>& Keyframes() const {
return keyframes_;
}
void ParserAppendKeyframe(StyleRuleKeyframe*);
void WrapperAppendKeyframe(StyleRuleKeyframe*);
void WrapperRemoveKeyframe(unsigned);
String GetName() const { return name_; }
void SetName(const String& name) { name_ = AtomicString(name); }
bool IsVendorPrefixed() const { return is_prefixed_; }
void SetVendorPrefixed(bool is_prefixed) { is_prefixed_ = is_prefixed; }
int FindKeyframeIndex(const String& key) const;
StyleRuleKeyframes* Copy() const {
return MakeGarbageCollected<StyleRuleKeyframes>(*this);
}
void TraceAfterDispatch(blink::Visitor*) const;
void StyleChanged() { version_++; }
unsigned Version() const { return version_; }
private:
HeapVector<Member<StyleRuleKeyframe>> keyframes_;
AtomicString name_;
unsigned version_ : 31;
unsigned is_prefixed_ : 1;
};
template <>
struct DowncastTraits<StyleRuleKeyframes> {
static bool AllowFrom(const StyleRuleBase& rule) {
return rule.IsKeyframesRule();
}
};
class CSSKeyframesRule final : public CSSRule {
DEFINE_WRAPPERTYPEINFO();
public:
CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent);
~CSSKeyframesRule() override;
StyleRuleKeyframes* Keyframes() { return keyframes_rule_.Get(); }
String cssText() const override;
void Reattach(StyleRuleBase*) override;
String name() const { return keyframes_rule_->GetName(); }
void setName(const String&);
CSSRuleList* cssRules() const override;
void appendRule(const ExecutionContext*, const String& rule);
void deleteRule(const String& key);
CSSKeyframeRule* findRule(const String& key);
// For IndexedGetter and CSSRuleList.
unsigned length() const;
CSSKeyframeRule* Item(unsigned index) const;
CSSKeyframeRule* AnonymousIndexedGetter(unsigned index) const;
bool IsVendorPrefixed() const { return is_prefixed_; }
void SetVendorPrefixed(bool is_prefixed) { is_prefixed_ = is_prefixed; }
void StyleChanged() { keyframes_rule_->StyleChanged(); }
void Trace(Visitor*) override;
private:
CSSRule::Type type() const override { return kKeyframesRule; }
Member<StyleRuleKeyframes> keyframes_rule_;
mutable HeapVector<Member<CSSKeyframeRule>> child_rule_cssom_wrappers_;
mutable Member<CSSRuleList> rule_list_cssom_wrapper_;
bool is_prefixed_;
};
template <>
struct DowncastTraits<CSSKeyframesRule> {
static bool AllowFrom(const CSSRule& rule) {
return rule.type() == CSSRule::kKeyframesRule;
}
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_KEYFRAMES_RULE_H_
|
endlessm/chromium-browser
|
third_party/blink/renderer/core/css/css_keyframes_rule.h
|
C
|
bsd-3-clause
| 4,688
|
<?php
class RoleController extends Controller
{
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'protected/views/layouts/column2.php'.
*/
public $layout='//layouts/column2';
/**
* @return array action filters
*/
public function filters()
{
return array(
'accessControl', // perform access control for CRUD operations
);
}
/**
* Specifies the access control rules.
* This method is used by the 'accessControl' filter.
* @return array access control rules
*/
public function accessRules()
{
return array(
array('allow', // allow all users to perform 'index' and 'view' actions
'actions'=>array('index','view'),
'users'=>array('*'),
),
array('allow', // allow authenticated user to perform 'create' and 'update' actions
'actions'=>array('create','update'),
'users'=>array('@'),
),
array('allow', // allow admin user to perform 'admin' and 'delete' actions
'actions'=>array('admin','delete'),
'users'=>array('admin'),
),
array('deny', // deny all users
'users'=>array('*'),
),
);
}
/**
* Displays a particular model.
* @param integer $id the ID of the model to be displayed
*/
public function actionView($id)
{
$this->render('view',array(
'model'=>$this->loadModel($id),
));
}
/**
* Creates a new model.
* If creation is successful, the browser will be redirected to the 'view' page.
*/
public function actionCreate()
{
$model=new Role;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if(isset($_POST['Role']))
{
$model->attributes=$_POST['Role'];
if($model->save())
$this->redirect(array('view','id'=>$model->id));
}
$this->render('create',array(
'model'=>$model,
));
}
/**
* Updates a particular model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id the ID of the model to be updated
*/
public function actionUpdate($id)
{
$model=$this->loadModel($id);
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if(isset($_POST['Role']))
{
$model->attributes=$_POST['Role'];
if($model->save())
$this->redirect(array('view','id'=>$model->id));
}
$this->render('update',array(
'model'=>$model,
));
}
/**
* Deletes a particular model.
* If deletion is successful, the browser will be redirected to the 'admin' page.
* @param integer $id the ID of the model to be deleted
*/
public function actionDelete($id)
{
if(Yii::app()->request->isPostRequest)
{
// we only allow deletion via POST request
$this->loadModel($id)->delete();
// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
if(!isset($_GET['ajax']))
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
}
else
throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
}
/**
* Lists all models.
*/
public function actionIndex()
{
$dataProvider=new CActiveDataProvider('Role');
$this->render('index',array(
'dataProvider'=>$dataProvider,
));
}
/**
* Manages all models.
*/
public function actionAdmin()
{
$model=new Role('search');
$model->unsetAttributes(); // clear any default values
if(isset($_GET['Role']))
$model->attributes=$_GET['Role'];
$this->render('admin',array(
'model'=>$model,
));
}
/**
* Returns the data model based on the primary key given in the GET variable.
* If the data model is not found, an HTTP exception will be raised.
* @param integer the ID of the model to be loaded
*/
public function loadModel($id)
{
$model=Role::model()->findByPk($id);
if($model===null)
throw new CHttpException(404,'The requested page does not exist.');
return $model;
}
}
|
piaoxuedtian/myrepo
|
adminprotected/controllers/RoleController.php
|
PHP
|
bsd-3-clause
| 4,132
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/wm/base_layout_manager.h"
#include "ash/screen_ash.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/test/ash_test_base.h"
#include "ash/wm/property_util.h"
#include "ash/wm/window_util.h"
#include "ash/wm/workspace/workspace_window_resizer.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/root_window.h"
#include "ui/aura/test/test_windows.h"
#include "ui/aura/window.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/insets.h"
#include "ui/gfx/screen.h"
namespace ash {
namespace {
class BaseLayoutManagerTest : public test::AshTestBase {
public:
BaseLayoutManagerTest() {}
virtual ~BaseLayoutManagerTest() {}
virtual void SetUp() OVERRIDE {
test::AshTestBase::SetUp();
Shell::GetInstance()->SetDisplayWorkAreaInsets(
Shell::GetPrimaryRootWindow(),
gfx::Insets(1, 2, 3, 4));
Shell::GetPrimaryRootWindow()->SetHostSize(gfx::Size(800, 600));
aura::Window* default_container = Shell::GetContainer(
Shell::GetPrimaryRootWindow(),
internal::kShellWindowId_DefaultContainer);
default_container->SetLayoutManager(new internal::BaseLayoutManager(
Shell::GetPrimaryRootWindow()));
}
aura::Window* CreateTestWindow(const gfx::Rect& bounds) {
return aura::test::CreateTestWindowWithBounds(bounds, NULL);
}
private:
DISALLOW_COPY_AND_ASSIGN(BaseLayoutManagerTest);
};
// Tests normal->maximize->normal.
TEST_F(BaseLayoutManagerTest, Maximize) {
gfx::Rect bounds(100, 100, 200, 200);
scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
// Maximized window fills the work area, not the whole display.
EXPECT_EQ(
ScreenAsh::GetMaximizedWindowBoundsInParent(window.get()).ToString(),
window->bounds().ToString());
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
EXPECT_EQ(bounds.ToString(), window->bounds().ToString());
}
// Tests normal->minimize->normal.
TEST_F(BaseLayoutManagerTest, Minimize) {
gfx::Rect bounds(100, 100, 200, 200);
scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MINIMIZED);
// Note: Currently minimize doesn't do anything except set the state.
// See crbug.com/104571.
EXPECT_EQ(bounds.ToString(), window->bounds().ToString());
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
EXPECT_EQ(bounds.ToString(), window->bounds().ToString());
}
// Tests maximized window size during root window resize.
TEST_F(BaseLayoutManagerTest, MaximizeRootWindowResize) {
gfx::Rect bounds(100, 100, 200, 200);
scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
gfx::Rect initial_work_area_bounds =
ScreenAsh::GetMaximizedWindowBoundsInParent(window.get());
EXPECT_EQ(initial_work_area_bounds.ToString(), window->bounds().ToString());
// Enlarge the root window. We should still match the work area size.
Shell::GetPrimaryRootWindow()->SetHostSize(gfx::Size(900, 700));
EXPECT_EQ(
ScreenAsh::GetMaximizedWindowBoundsInParent(window.get()).ToString(),
window->bounds().ToString());
EXPECT_NE(
initial_work_area_bounds.ToString(),
ScreenAsh::GetMaximizedWindowBoundsInParent(window.get()).ToString());
}
// Tests normal->fullscreen->normal.
TEST_F(BaseLayoutManagerTest, Fullscreen) {
gfx::Rect bounds(100, 100, 200, 200);
scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN);
// Fullscreen window fills the whole display.
EXPECT_EQ(Shell::GetScreen()->GetDisplayNearestWindow(
window.get()).bounds().ToString(),
window->bounds().ToString());
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
EXPECT_EQ(bounds.ToString(), window->bounds().ToString());
}
// Tests fullscreen window size during root window resize.
TEST_F(BaseLayoutManagerTest, FullscreenRootWindowResize) {
gfx::Rect bounds(100, 100, 200, 200);
scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
// Fullscreen window fills the whole display.
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN);
EXPECT_EQ(Shell::GetScreen()->GetDisplayNearestWindow(
window.get()).bounds().ToString(),
window->bounds().ToString());
// Enlarge the root window. We should still match the display size.
Shell::GetPrimaryRootWindow()->SetHostSize(gfx::Size(800, 600));
EXPECT_EQ(Shell::GetScreen()->GetDisplayNearestWindow(
window.get()).bounds().ToString(),
window->bounds().ToString());
}
// Fails on Mac only. Need to be implemented. http://crbug.com/111279.
#if defined(OS_MACOSX)
#define MAYBE_RootWindowResizeShrinksWindows \
DISABLED_RootWindowResizeShrinksWindows
#else
#define MAYBE_RootWindowResizeShrinksWindows RootWindowResizeShrinksWindows
#endif
// Tests that when the screen gets smaller the windows aren't bigger than
// the screen.
TEST_F(BaseLayoutManagerTest, MAYBE_RootWindowResizeShrinksWindows) {
scoped_ptr<aura::Window> window(
CreateTestWindow(gfx::Rect(10, 20, 500, 400)));
gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow(
window.get()).work_area();
// Invariant: Window is smaller than work area.
EXPECT_LE(window->bounds().width(), work_area.width());
EXPECT_LE(window->bounds().height(), work_area.height());
// Make the root window narrower than our window.
Shell::GetPrimaryRootWindow()->SetHostSize(gfx::Size(300, 400));
work_area = Shell::GetScreen()->GetDisplayNearestWindow(
window.get()).work_area();
EXPECT_LE(window->bounds().width(), work_area.width());
EXPECT_LE(window->bounds().height(), work_area.height());
// Make the root window shorter than our window.
Shell::GetPrimaryRootWindow()->SetHostSize(gfx::Size(300, 200));
work_area = Shell::GetScreen()->GetDisplayNearestWindow(
window.get()).work_area();
EXPECT_LE(window->bounds().width(), work_area.width());
EXPECT_LE(window->bounds().height(), work_area.height());
// Enlarging the root window does not change the window bounds.
gfx::Rect old_bounds = window->bounds();
Shell::GetPrimaryRootWindow()->SetHostSize(gfx::Size(800, 600));
EXPECT_EQ(old_bounds.width(), window->bounds().width());
EXPECT_EQ(old_bounds.height(), window->bounds().height());
}
// Tests that a maximized window with too-large restore bounds will be restored
// to smaller than the full work area.
TEST_F(BaseLayoutManagerTest, BoundsWithScreenEdgeVisible) {
// Create a window with bounds that fill the screen.
gfx::Rect bounds = Shell::GetScreen()->GetPrimaryDisplay().bounds();
scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
// Maximize it, which writes the old bounds to restore bounds.
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
// Restore it.
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
// It should have the default maximized window bounds, inset by the grid size.
int grid_size = internal::WorkspaceWindowResizer::kScreenEdgeInset;
gfx::Rect max_bounds =
ash::ScreenAsh::GetMaximizedWindowBoundsInParent(window.get());
max_bounds.Inset(grid_size, grid_size);
EXPECT_EQ(max_bounds.ToString(), window->bounds().ToString());
}
// Verifies maximizing sets the restore bounds, and restoring
// restores the bounds.
TEST_F(BaseLayoutManagerTest, MaximizeSetsRestoreBounds) {
scoped_ptr<aura::Window> window(CreateTestWindow(gfx::Rect(1, 2, 3, 4)));
// Maximize it, which will keep the previous restore bounds.
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
EXPECT_EQ("1,2 3x4", GetRestoreBoundsInParent(window.get()).ToString());
// Restore it, which should restore bounds and reset restore bounds.
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
EXPECT_EQ("1,2 3x4", window->bounds().ToString());
EXPECT_TRUE(GetRestoreBoundsInScreen(window.get()) == NULL);
}
// Verifies maximizing keeps the restore bounds if set.
TEST_F(BaseLayoutManagerTest, MaximizeResetsRestoreBounds) {
scoped_ptr<aura::Window> window(CreateTestWindow(gfx::Rect(1, 2, 3, 4)));
SetRestoreBoundsInParent(window.get(), gfx::Rect(10, 11, 12, 13));
// Maximize it, which will keep the previous restore bounds.
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
EXPECT_EQ("10,11 12x13", GetRestoreBoundsInParent(window.get()).ToString());
}
// Verifies that the restore bounds do not get reset when restoring to a
// maximzied state from a minimized state.
TEST_F(BaseLayoutManagerTest, BoundsAfterRestoringToMaximizeFromMinimize) {
scoped_ptr<aura::Window> window(CreateTestWindow(gfx::Rect(1, 2, 3, 4)));
gfx::Rect bounds(10, 15, 25, 35);
window->SetBounds(bounds);
// Maximize it, which should reset restore bounds.
wm::MaximizeWindow(window.get());
EXPECT_EQ(bounds.ToString(),
GetRestoreBoundsInParent(window.get()).ToString());
// Minimize the window. The restore bounds should not change.
wm::MinimizeWindow(window.get());
EXPECT_EQ(bounds.ToString(),
GetRestoreBoundsInParent(window.get()).ToString());
// Show the window again. The window should be maximized, and the restore
// bounds should not change.
window->Show();
EXPECT_EQ(bounds.ToString(),
GetRestoreBoundsInParent(window.get()).ToString());
EXPECT_TRUE(wm::IsWindowMaximized(window.get()));
wm::RestoreWindow(window.get());
EXPECT_EQ(bounds.ToString(), window->bounds().ToString());
}
} // namespace
} // namespace ash
|
leighpauls/k2cro4
|
ash/wm/base_layout_manager_unittest.cc
|
C++
|
bsd-3-clause
| 10,068
|
# -*- coding: utf-8 -*-
import csv
import json
from cStringIO import StringIO
from datetime import datetime
from django.conf import settings
from django.core import mail, management
from django.core.cache import cache
import mock
from nose.plugins.attrib import attr
from nose.tools import eq_
from piston.models import Consumer
from pyquery import PyQuery as pq
import amo
import amo.tests
from amo.tests import (assert_no_validation_errors, assert_required, formset,
initial)
from access.models import Group, GroupUser
from addons.models import Addon, CompatOverride, CompatOverrideRange
from amo.urlresolvers import reverse
from amo.utils import urlparams
from applications.models import AppVersion
from bandwagon.models import FeaturedCollection, MonthlyPick
from compat.cron import compatibility_report
from compat.models import CompatReport
from devhub.models import ActivityLog
from files.models import Approval, File
from stats.models import UpdateCount
from users.models import UserProfile
from users.utils import get_task_user
from versions.models import ApplicationsVersions, Version
from zadmin import forms, tasks
from zadmin.forms import DevMailerForm
from zadmin.models import EmailPreviewTopic, ValidationJob, ValidationResult
from zadmin.views import completed_versions_dirty, find_files
no_op_validation = dict(errors=0, warnings=0, notices=0, messages=[],
compatibility_summary=dict(errors=0, warnings=0,
notices=0))
class TestSiteEvents(amo.tests.TestCase):
fixtures = ['base/users', 'zadmin/tests/siteevents']
def setUp(self):
self.client.login(username='admin@mozilla.com', password='password')
def test_get(self):
url = reverse('zadmin.site_events')
response = self.client.get(url)
eq_(response.status_code, 200)
events = response.context['events']
eq_(len(events), 1)
def test_add(self):
url = reverse('zadmin.site_events')
new_event = {
'event_type': 2,
'start': '2012-01-01',
'description': 'foo',
}
response = self.client.post(url, new_event, follow=True)
eq_(response.status_code, 200)
events = response.context['events']
eq_(len(events), 2)
def test_edit(self):
url = reverse('zadmin.site_events', args=[1])
modified_event = {
'event_type': 2,
'start': '2012-01-01',
'description': 'bar',
}
response = self.client.post(url, modified_event, follow=True)
eq_(response.status_code, 200)
events = response.context['events']
eq_(events[0].description, 'bar')
def test_delete(self):
url = reverse('zadmin.site_events.delete', args=[1])
response = self.client.get(url, follow=True)
eq_(response.status_code, 200)
events = response.context['events']
eq_(len(events), 0)
class TestFlagged(amo.tests.TestCase):
fixtures = ['base/users', 'zadmin/tests/flagged']
def setUp(self):
super(TestFlagged, self).setUp()
self.client.login(username='admin@mozilla.com', password='password')
self.url = reverse('zadmin.flagged')
@mock.patch.object(settings, 'MARKETPLACE', False)
def test_get(self):
response = self.client.get(self.url, follow=True)
addons = dict((a.id, a) for a in response.context['addons'])
eq_(len(addons), 3)
# 1. an addon should have latest version and approval attached
addon = Addon.objects.get(id=1)
eq_(addons[1], addon)
eq_(addons[1].version.id,
Version.objects.filter(addon=addon).latest().id)
eq_(addons[1].approval.id,
Approval.objects.filter(addon=addon).latest().id)
# 2. missing approval is ok
addon = Addon.objects.get(id=2)
eq_(addons[2], addon)
eq_(addons[2].version.id,
Version.objects.filter(addon=addon).latest().id)
eq_(addons[2].approval, None)
# 3. missing approval is ok
addon = Addon.objects.get(id=3)
eq_(addons[3], addon)
eq_(addons[3].approval.id,
Approval.objects.filter(addon=addon).latest().id)
eq_(addons[3].version, None)
@mock.patch.object(settings, 'MARKETPLACE', False)
def test_post(self):
response = self.client.post(self.url, {'addon_id': ['1', '2']},
follow=True)
self.assertRedirects(response, self.url)
assert not Addon.objects.no_cache().get(id=1).admin_review
assert not Addon.objects.no_cache().get(id=2).admin_review
addons = response.context['addons']
eq_(len(addons), 1)
eq_(addons[0], Addon.objects.get(id=3))
@mock.patch.object(settings, 'MARKETPLACE', False)
def test_empty(self):
Addon.objects.update(admin_review=False)
res = self.client.get(self.url)
eq_(set(res.context['addons']), set([]))
@mock.patch.object(settings, 'MARKETPLACE', False)
def test_addons_only(self):
Addon.objects.get(id=2).update(type=amo.ADDON_WEBAPP)
res = self.client.get(self.url)
eq_(set([r.pk for r in res.context['addons']]),
set([1, 3]))
class BulkValidationTest(amo.tests.TestCase):
fixtures = ['base/apps', 'base/platforms', 'base/addon_3615',
'base/appversion', 'base/users']
def setUp(self):
assert self.client.login(username='admin@mozilla.com',
password='password')
self.addon = Addon.objects.get(pk=3615)
self.creator = UserProfile.objects.get(username='editor')
self.version = self.addon.get_version()
ApplicationsVersions.objects.filter(
application=1, version=self.version).update(
max=AppVersion.objects.get(application=1, version='3.7a1pre'))
self.application_version = self.version.apps.all()[0]
self.application = self.application_version.application
self.min = self.application_version.min
self.max = self.application_version.max
self.curr_max = self.appversion('3.7a1pre')
self.counter = 0
self.old_task_user = settings.TASK_USER_ID
settings.TASK_USER_ID = self.creator.id
def tearDown(self):
settings.TASK_USER_ID = self.old_task_user
def appversion(self, version, application=amo.FIREFOX.id):
return AppVersion.objects.get(application=application,
version=version)
def create_job(self, **kwargs):
kw = dict(application_id=amo.FIREFOX.id,
curr_max_version=kwargs.pop('current', self.curr_max),
target_version=kwargs.pop('target',
self.appversion('3.7a3')),
creator=self.creator)
kw.update(kwargs)
return ValidationJob.objects.create(**kw)
def create_file(self, version=None, platform_id=amo.PLATFORM_ALL.id):
if not version:
version = self.version
return File.objects.create(version=version,
filename='file-%s' % self.counter,
platform_id=platform_id,
status=amo.STATUS_PUBLIC)
def create_result(self, job, f, **kwargs):
self.counter += 1
kw = dict(file=f,
validation='{}',
errors=0,
warnings=0,
notices=0,
validation_job=job,
task_error=None,
valid=0,
completed=datetime.now())
kw.update(kwargs)
return ValidationResult.objects.create(**kw)
def start_validation(self, new_max='3.7a3'):
self.new_max = self.appversion(new_max)
r = self.client.post(reverse('zadmin.start_validation'),
{'application': amo.FIREFOX.id,
'curr_max_version': self.curr_max.id,
'target_version': self.new_max.id,
'finish_email': 'fliggy@mozilla.com'},
follow=True)
eq_(r.status_code, 200)
class TestBulkValidation(BulkValidationTest):
@mock.patch('zadmin.tasks.bulk_validate_file')
def test_start(self, bulk_validate_file):
new_max = self.appversion('3.7a3')
r = self.client.post(reverse('zadmin.start_validation'),
{'application': amo.FIREFOX.id,
'curr_max_version': self.curr_max.id,
'target_version': new_max.id,
'finish_email': 'fliggy@mozilla.com'},
follow=True)
self.assertNoFormErrors(r)
self.assertRedirects(r, reverse('zadmin.validation'))
job = ValidationJob.objects.get()
eq_(job.application_id, amo.FIREFOX.id)
eq_(job.curr_max_version.version, self.curr_max.version)
eq_(job.target_version.version, new_max.version)
eq_(job.finish_email, 'fliggy@mozilla.com')
eq_(job.completed, None)
eq_(job.result_set.all().count(),
len(self.version.all_files))
assert bulk_validate_file.delay.called
@mock.patch('zadmin.tasks.bulk_validate_file')
def test_ignore_user_disabled_addons(self, bulk_validate_file):
self.addon.update(disabled_by_user=True)
r = self.client.post(reverse('zadmin.start_validation'),
{'application': amo.FIREFOX.id,
'curr_max_version': self.curr_max.id,
'target_version': self.appversion('3.7a3').id,
'finish_email': 'fliggy@mozilla.com'},
follow=True)
self.assertNoFormErrors(r)
self.assertRedirects(r, reverse('zadmin.validation'))
assert not bulk_validate_file.delay.called
@mock.patch('zadmin.tasks.bulk_validate_file')
def test_ignore_non_public_addons(self, bulk_validate_file):
target_ver = self.appversion('3.7a3').id
for status in (amo.STATUS_DISABLED, amo.STATUS_NULL,
amo.STATUS_DELETED):
self.addon.update(status=status)
r = self.client.post(reverse('zadmin.start_validation'),
{'application': amo.FIREFOX.id,
'curr_max_version': self.curr_max.id,
'target_version': target_ver,
'finish_email': 'fliggy@mozilla.com'},
follow=True)
self.assertNoFormErrors(r)
self.assertRedirects(r, reverse('zadmin.validation'))
assert not bulk_validate_file.delay.called, (
'Addon with status %s should be ignored' % status)
@mock.patch('zadmin.tasks.bulk_validate_file')
def test_ignore_lang_packs(self, bulk_validate_file):
target_ver = self.appversion('3.7a3').id
self.addon.update(type=amo.ADDON_LPAPP)
r = self.client.post(reverse('zadmin.start_validation'),
{'application': amo.FIREFOX.id,
'curr_max_version': self.curr_max.id,
'target_version': target_ver,
'finish_email': 'fliggy@mozilla.com'},
follow=True)
self.assertNoFormErrors(r)
self.assertRedirects(r, reverse('zadmin.validation'))
assert not bulk_validate_file.delay.called, (
'Lang pack addons should be ignored')
@mock.patch('zadmin.tasks.bulk_validate_file')
def test_ignore_themes(self, bulk_validate_file):
target_ver = self.appversion('3.7a3').id
self.addon.update(type=amo.ADDON_THEME)
self.client.post(reverse('zadmin.start_validation'),
{'application': amo.FIREFOX.id,
'curr_max_version': self.curr_max.id,
'target_version': target_ver,
'finish_email': 'fliggy@mozilla.com'})
assert not bulk_validate_file.delay.called, (
'Theme addons should be ignored')
@mock.patch('zadmin.tasks.bulk_validate_file')
def test_validate_all_non_disabled_addons(self, bulk_validate_file):
target_ver = self.appversion('3.7a3').id
bulk_validate_file.delay.called = False
self.addon.update(status=amo.STATUS_PUBLIC)
r = self.client.post(reverse('zadmin.start_validation'),
{'application': amo.FIREFOX.id,
'curr_max_version': self.curr_max.id,
'target_version': target_ver,
'finish_email': 'fliggy@mozilla.com'},
follow=True)
self.assertNoFormErrors(r)
self.assertRedirects(r, reverse('zadmin.validation'))
assert bulk_validate_file.delay.called, (
'Addon with status %s should be validated' % self.addon.status)
def test_grid(self):
job = self.create_job()
for res in (dict(errors=0), dict(errors=1)):
self.create_result(job, self.create_file(), **res)
r = self.client.get(reverse('zadmin.validation'))
eq_(r.status_code, 200)
doc = pq(r.content)
eq_(doc('table tr td').eq(0).text(), str(job.pk)) # ID
eq_(doc('table tr td').eq(3).text(), 'Firefox') # Application
eq_(doc('table tr td').eq(4).text(), self.curr_max.version)
eq_(doc('table tr td').eq(5).text(), '3.7a3')
eq_(doc('table tr td').eq(6).text(), '2') # tested
eq_(doc('table tr td').eq(7).text(), '1') # failing
eq_(doc('table tr td').eq(8).text()[0], '1') # passing
eq_(doc('table tr td').eq(9).text(), '0') # exceptions
def test_application_versions_json(self):
r = self.client.post(reverse('zadmin.application_versions_json'),
{'application_id': amo.FIREFOX.id})
eq_(r.status_code, 200)
data = json.loads(r.content)
empty = True
for id, ver in data['choices']:
empty = False
eq_(AppVersion.objects.get(pk=id).version, ver)
assert not empty, "Unexpected: %r" % data
def test_job_status(self):
job = self.create_job()
def get_data():
self.create_result(job, self.create_file(), **{})
r = self.client.post(reverse('zadmin.job_status'),
{'job_ids': json.dumps([job.pk])})
eq_(r.status_code, 200)
data = json.loads(r.content)[str(job.pk)]
return data
data = get_data()
eq_(data['completed'], 1)
eq_(data['total'], 1)
eq_(data['percent_complete'], '100')
eq_(data['job_id'], job.pk)
eq_(data['completed_timestamp'], '')
job.update(completed=datetime.now())
data = get_data()
assert data['completed_timestamp'] != '', (
'Unexpected: %s' % data['completed_timestamp'])
class TestBulkUpdate(BulkValidationTest):
def setUp(self):
super(TestBulkUpdate, self).setUp()
self.job = self.create_job(completed=datetime.now())
self.update_url = reverse('zadmin.notify.success', args=[self.job.pk])
self.list_url = reverse('zadmin.validation')
self.data = {'text': '{{ APPLICATION }} {{ VERSION }}',
'subject': '..'}
self.version_one = Version.objects.create(addon=self.addon)
self.version_two = Version.objects.create(addon=self.addon)
def test_no_update_link(self):
self.create_result(self.job, self.create_file(), **{})
r = self.client.get(self.list_url)
doc = pq(r.content)
eq_(doc('table tr td a.set-max-version').text(), 'Set max version')
def test_update_link(self):
self.create_result(self.job, self.create_file(), **{'valid': 1})
r = self.client.get(self.list_url)
doc = pq(r.content)
eq_(doc('table tr td a.set-max-version').text(), 'Set max version')
def test_update_url(self):
self.create_result(self.job, self.create_file(), **{'valid': 1})
r = self.client.get(self.list_url)
doc = pq(r.content)
eq_(doc('table tr td a.set-max-version').attr('data-job-url'),
self.update_url)
def test_update_anonymous(self):
self.client.logout()
r = self.client.post(self.update_url)
eq_(r.status_code, 302)
def test_version_pks(self):
for version in [self.version_one, self.version_two]:
for x in range(0, 3):
self.create_result(self.job, self.create_file(version))
eq_(sorted(completed_versions_dirty(self.job)),
[self.version_one.pk, self.version_two.pk])
def test_update_passing_only(self):
self.create_result(self.job, self.create_file(self.version_one))
self.create_result(self.job, self.create_file(self.version_two),
errors=1)
eq_(sorted(completed_versions_dirty(self.job)),
[self.version_one.pk])
def test_update_pks(self):
self.create_result(self.job, self.create_file(self.version))
r = self.client.post(self.update_url, self.data)
eq_(r.status_code, 302)
eq_(self.version.apps.all()[0].max, self.job.target_version)
def test_update_unclean_pks(self):
self.create_result(self.job, self.create_file(self.version))
self.create_result(self.job, self.create_file(self.version),
errors=1)
r = self.client.post(self.update_url, self.data)
eq_(r.status_code, 302)
eq_(self.version.apps.all()[0].max, self.job.curr_max_version)
def test_update_pks_logs(self):
self.create_result(self.job, self.create_file(self.version))
eq_(ActivityLog.objects.for_addons(self.addon).count(), 0)
self.client.post(self.update_url, self.data)
upd = amo.LOG.MAX_APPVERSION_UPDATED.id
logs = ActivityLog.objects.for_addons(self.addon).filter(action=upd)
eq_(logs.count(), 1)
eq_(logs[0].user, get_task_user())
def test_update_wrong_version(self):
self.create_result(self.job, self.create_file(self.version))
av = self.version.apps.all()[0]
av.max = self.appversion('3.6')
av.save()
self.client.post(self.update_url, self.data)
eq_(self.version.apps.all()[0].max, self.appversion('3.6'))
def test_update_all_within_range(self):
self.create_result(self.job, self.create_file(self.version))
# Create an appversion in between current and target.
av = self.version.apps.all()[0]
av.max = self.appversion('3.7a2')
av.save()
self.client.post(self.update_url, self.data)
eq_(self.version.apps.all()[0].max, self.appversion('3.7a3'))
def test_version_comparison(self):
# regression test for bug 691984
job = self.create_job(completed=datetime.now(),
current=self.appversion('3.0.9'),
target=self.appversion('3.5'))
# .* was not sorting right
self.version.apps.all().update(max=self.appversion('3.0.*'))
self.create_result(job, self.create_file(self.version))
self.client.post(reverse('zadmin.notify.success', args=[job.pk]),
self.data)
eq_(self.version.apps.all()[0].max, self.appversion('3.5'))
def test_update_different_app(self):
self.create_result(self.job, self.create_file(self.version))
target = self.version.apps.all()[0]
target.application_id = amo.FIREFOX.id
target.save()
eq_(self.version.apps.all()[0].max, self.curr_max)
def test_update_twice(self):
self.create_result(self.job, self.create_file(self.version))
self.client.post(self.update_url, self.data)
eq_(self.version.apps.all()[0].max, self.job.target_version)
now = self.version.modified
self.client.post(self.update_url, self.data)
eq_(self.version.modified, now)
def test_update_notify(self):
self.create_result(self.job, self.create_file(self.version))
self.client.post(self.update_url, self.data)
eq_(len(mail.outbox), 1)
def test_update_subject(self):
data = self.data.copy()
data['subject'] = '{{ ADDON_NAME }}{{ ADDON_VERSION }}'
f = self.create_file(self.version)
self.create_result(self.job, f)
self.client.post(self.update_url, data)
eq_(mail.outbox[0].subject,
'%s%s' % (self.addon.name, f.version.version))
@mock.patch('zadmin.tasks.log')
def test_bulk_update_logs_stats(self, log):
log.info = mock.Mock()
self.create_result(self.job, self.create_file(self.version))
self.client.post(self.update_url, self.data)
eq_(log.info.call_args_list[-1][0][0],
'[1@None] bulk update stats for job %s: '
'{author_emailed: 1, bumped: 1, is_dry_run: 0, processed: 1}'
% self.job.pk)
def test_application_version(self):
self.create_result(self.job, self.create_file(self.version))
self.client.post(self.update_url, self.data)
eq_(mail.outbox[0].body, 'Firefox 3.7a3')
def test_multiple_result_links(self):
# Creates validation results for two files of the same addon:
results = [
self.create_result(self.job, self.create_file(self.version)),
self.create_result(self.job, self.create_file(self.version))]
self.client.post(self.update_url, {'text': '{{ RESULT_LINKS }}',
'subject': '..'})
links = mail.outbox[0].body.split(' ')
for result in results:
assert any(ln.endswith(reverse('devhub.bulk_compat_result',
args=(self.addon.slug, result.pk)))
for ln in links), ('Unexpected links: %s' % links)
def test_notify_mail_preview(self):
self.create_result(self.job, self.create_file(self.version))
self.client.post(self.update_url,
{'text': 'the message', 'subject': 'the subject',
'preview_only': 'on'})
eq_(len(mail.outbox), 0)
rs = self.job.get_success_preview_emails()
eq_([e.subject for e in rs], ['the subject'])
# version should not be bumped since it's in preview mode:
eq_(self.version.apps.all()[0].max, self.max)
upd = amo.LOG.MAX_APPVERSION_UPDATED.id
logs = ActivityLog.objects.for_addons(self.addon).filter(action=upd)
eq_(logs.count(), 0)
class TestBulkNotify(BulkValidationTest):
def setUp(self):
super(TestBulkNotify, self).setUp()
self.job = self.create_job(completed=datetime.now())
self.update_url = reverse('zadmin.notify.failure', args=[self.job.pk])
self.syntax_url = reverse('zadmin.notify.syntax')
self.list_url = reverse('zadmin.validation')
self.version_one = Version.objects.create(addon=self.addon)
self.version_two = Version.objects.create(addon=self.addon)
def test_no_notify_link(self):
self.create_result(self.job, self.create_file(), **{})
r = self.client.get(self.list_url)
doc = pq(r.content)
eq_(len(doc('table tr td a.notify')), 0)
def test_notify_link(self):
self.create_result(self.job, self.create_file(), **{'errors': 1})
r = self.client.get(self.list_url)
doc = pq(r.content)
eq_(doc('table tr td a.notify').text(), 'Notify')
def test_notify_url(self):
self.create_result(self.job, self.create_file(), **{'errors': 1})
r = self.client.get(self.list_url)
doc = pq(r.content)
eq_(doc('table tr td a.notify').attr('data-job-url'), self.update_url)
def test_notify_anonymous(self):
self.client.logout()
r = self.client.post(self.update_url)
eq_(r.status_code, 302)
def test_notify_log(self):
self.create_result(self.job, self.create_file(self.version),
**{'errors': 1})
eq_(ActivityLog.objects.for_addons(self.addon).count(), 0)
self.client.post(self.update_url, {'text': '..', 'subject': '..'})
upd = amo.LOG.BULK_VALIDATION_EMAILED.id
logs = ActivityLog.objects.for_addons(self.addon).filter(action=upd)
eq_(logs.count(), 1)
eq_(logs[0].user, self.creator)
def test_notify_mail(self):
self.create_result(self.job, self.create_file(self.version),
**{'errors': 1})
r = self.client.post(self.update_url, {'text': '..',
'subject': '{{ ADDON_NAME }}'})
eq_(r.status_code, 302)
eq_(len(mail.outbox), 1)
eq_(mail.outbox[0].body, '..')
eq_(mail.outbox[0].subject, self.addon.name)
eq_(mail.outbox[0].to, [u'del@icio.us'])
def test_result_links(self):
result = self.create_result(self.job, self.create_file(self.version),
**{'errors': 1})
r = self.client.post(self.update_url, {'text': '{{ RESULT_LINKS }}',
'subject': '...'})
eq_(r.status_code, 302)
eq_(len(mail.outbox), 1)
res = reverse('devhub.bulk_compat_result',
args=(self.addon.slug, result.pk))
email = mail.outbox[0].body
assert res in email, ('Unexpected message: %s' % email)
def test_notify_mail_partial(self):
self.create_result(self.job, self.create_file(self.version),
**{'errors': 1})
self.create_result(self.job, self.create_file(self.version))
r = self.client.post(self.update_url, {'text': '..', 'subject': '..'})
eq_(r.status_code, 302)
eq_(len(mail.outbox), 1)
def test_notify_mail_multiple(self):
self.create_result(self.job, self.create_file(self.version),
**{'errors': 1})
self.create_result(self.job, self.create_file(self.version),
**{'errors': 1})
r = self.client.post(self.update_url, {'text': '..', 'subject': '..'})
eq_(r.status_code, 302)
eq_(len(mail.outbox), 2)
def test_notify_mail_preview(self):
for i in range(2):
self.create_result(self.job, self.create_file(self.version),
**{'errors': 1})
r = self.client.post(self.update_url,
{'text': 'the message', 'subject': 'the subject',
'preview_only': 'on'})
eq_(r.status_code, 302)
eq_(len(mail.outbox), 0)
rs = self.job.get_failure_preview_emails()
eq_([e.subject for e in rs], ['the subject', 'the subject'])
def test_notify_rendering(self):
self.create_result(self.job, self.create_file(self.version),
**{'errors': 1})
r = self.client.post(self.update_url,
{'text': '{{ ADDON_NAME }}{{ COMPAT_LINK }}',
'subject': '{{ ADDON_NAME }} blah'})
eq_(r.status_code, 302)
eq_(len(mail.outbox), 1)
url = reverse('devhub.versions.edit', args=[self.addon.pk,
self.version.pk])
assert str(self.addon.name) in mail.outbox[0].body
assert url in mail.outbox[0].body
assert str(self.addon.name) in mail.outbox[0].subject
def test_notify_unicode(self):
self.addon.name = u'འབྲུག་ཡུལ།'
self.addon.save()
self.create_result(self.job, self.create_file(self.version),
**{'errors': 1})
r = self.client.post(self.update_url,
{'text': '{{ ADDON_NAME }}',
'subject': '{{ ADDON_NAME }} blah'})
eq_(r.status_code, 302)
eq_(len(mail.outbox), 1)
eq_(mail.outbox[0].body, self.addon.name)
def test_notify_template(self):
for text, res in (['some sample text', True],
['{{ ADDON_NAME }}{% if %}', False]):
eq_(forms.NotifyForm({'text': text, 'subject': '...'}).is_valid(),
res)
def test_notify_syntax(self):
for text, res in (['some sample text', True],
['{{ ADDON_NAME }}{% if %}', False]):
r = self.client.post(self.syntax_url, {'text': text,
'subject': '..'})
eq_(r.status_code, 200)
eq_(json.loads(r.content)['valid'], res)
def test_undeclared_variables(self):
for text, res in (['{{NOT_DECLARED}}', False],
['{{ NOT_DECLARED }}', False],
["""
{{ADDON_NAME}}
{{NOT_DECLARED}}
""", False],
['{{ADDON_NAME}} {{NOT_DECLARED}}', False],
['{{ADDON_NAME}}', True]):
r = self.client.post(self.syntax_url, {'text': text,
'subject': '..'})
eq_(r.status_code, 200)
assert json.loads(r.content)['valid'] == res, (
'Text %r unexpectedly resulted in %r' % (text, res))
def test_undeclared_variable_form_submit(self):
f = forms.NotifyForm({'text': '{{ UNDECLARED }}', 'subject': '...'})
eq_(f.is_valid(), False)
def test_addon_name_contains_platform(self):
for pl in (amo.PLATFORM_MAC.id, amo.PLATFORM_LINUX.id):
f = self.create_file(self.version, platform_id=pl)
self.create_result(self.job, f, errors=1)
self.client.post(self.update_url, {'text': '...',
'subject': '{{ ADDON_NAME }}'})
subjects = sorted(m.subject for m in mail.outbox)
eq_(subjects,
['Delicious Bookmarks (Linux)',
'Delicious Bookmarks (Mac OS X)'])
def test_addon_name_for_platform_all(self):
f = self.create_file(self.version, platform_id=amo.PLATFORM_ALL.id)
self.create_result(self.job, f, errors=1)
self.client.post(self.update_url, {'text': '...',
'subject': '{{ ADDON_NAME }}'})
eq_(mail.outbox[0].subject, unicode(self.addon.name))
class TestBulkValidationTask(BulkValidationTest):
@attr('validator')
def test_validate(self):
self.start_validation()
res = ValidationResult.objects.get()
self.assertCloseToNow(res.completed)
assert_no_validation_errors(res)
eq_(res.errors, 1) # package could not be found
eq_(res.valid, False)
eq_(res.warnings, 0)
eq_(res.notices, 0)
v = json.loads(res.validation)
eq_(v['errors'], 1)
self.assertCloseToNow(res.validation_job.completed)
eq_(res.validation_job.stats['total'], 1)
eq_(res.validation_job.stats['completed'], 1)
eq_(res.validation_job.stats['passing'], 0)
eq_(res.validation_job.stats['failing'], 1)
eq_(res.validation_job.stats['errors'], 0)
eq_(len(mail.outbox), 1)
eq_(mail.outbox[0].subject,
'Behold! Validation results for Firefox %s->%s'
% (self.curr_max.version, self.new_max.version))
eq_(mail.outbox[0].to, ['fliggy@mozilla.com'])
@mock.patch('validator.validate.validate')
def test_validator_bulk_compat_flag(self, validate):
try:
self.start_validation()
except Exception:
# We only care about the call to `validate()`, not the result.
pass
assert validate.call_args[1].get('compat_test')
@mock.patch('zadmin.tasks.run_validator')
def test_task_error(self, run_validator):
run_validator.side_effect = RuntimeError('validation error')
try:
self.start_validation()
except:
# the real test is how it's handled, below...
pass
res = ValidationResult.objects.get()
err = res.task_error.strip()
assert err.endswith('RuntimeError: validation error'), (
'Unexpected: %s' % err)
self.assertCloseToNow(res.completed)
eq_(res.validation_job.stats['total'], 1)
eq_(res.validation_job.stats['errors'], 1)
eq_(res.validation_job.stats['passing'], 0)
eq_(res.validation_job.stats['failing'], 0)
@mock.patch('zadmin.tasks.run_validator')
def test_validate_for_appversions(self, run_validator):
data = {
"errors": 1,
"warnings": 50,
"notices": 1,
"messages": [],
"compatibility_summary": {
"errors": 0,
"warnings": 0,
"notices": 0
},
"metadata": {}
}
run_validator.return_value = json.dumps(data)
self.start_validation()
assert run_validator.called
eq_(run_validator.call_args[1]['for_appversions'],
{amo.FIREFOX.guid: [self.new_max.version]})
@mock.patch('zadmin.tasks.run_validator')
def test_validate_all_tiers(self, run_validator):
run_validator.return_value = json.dumps(no_op_validation)
res = self.create_result(self.create_job(), self.create_file(), **{})
tasks.bulk_validate_file(res.id)
assert run_validator.called
eq_(run_validator.call_args[1]['test_all_tiers'], True)
@mock.patch('zadmin.tasks.run_validator')
def test_merge_with_compat_summary(self, run_validator):
data = {
"errors": 1,
"detected_type": "extension",
"success": False,
"warnings": 50,
"notices": 1,
"ending_tier": 5,
"messages": [
{
"description": "A global function was called ...",
"tier": 3,
"message": "Global called in dangerous manner",
"uid": "de93a48831454e0b9d965642f6d6bf8f",
"id": [],
"compatibility_type": None,
"for_appversions": None,
"type": "warning",
},
{
"description": ("...no longer indicate the language "
"of Firefox's UI..."),
"tier": 5,
"message": "navigator.language may not behave as expected",
"uid": "f44c1930887c4d9e8bd2403d4fe0253a",
"id": [],
"compatibility_type": "error",
"for_appversions": {
"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}": ["4.2a1pre",
"5.0a2",
"6.0a1"]
},
"type": "warning"
}],
"compatibility_summary": {
"notices": 1,
"errors": 6,
"warnings": 0
},
"metadata": {
"version": "1.0",
"name": "FastestFox",
"id": "<id>"
}
}
run_validator.return_value = json.dumps(data)
res = self.create_result(self.create_job(), self.create_file(), **{})
tasks.bulk_validate_file(res.id)
assert run_validator.called
res = ValidationResult.objects.get(pk=res.pk)
eq_(res.errors,
data['errors'] + data['compatibility_summary']['errors'])
eq_(res.warnings,
data['warnings'] + data['compatibility_summary']['warnings'])
eq_(res.notices,
data['notices'] + data['compatibility_summary']['notices'])
@mock.patch('validator.validate.validate')
def test_app_version_overrides(self, validate):
validate.return_value = json.dumps(no_op_validation)
self.start_validation(new_max='3.7a4')
assert validate.called
overrides = validate.call_args[1]['overrides']
eq_(overrides['targetapp_minVersion'], {amo.FIREFOX.guid: '3.7a4'})
eq_(overrides['targetapp_maxVersion'], {amo.FIREFOX.guid: '3.7a4'})
def create_version(self, addon, statuses, version_str=None):
max = self.max
if version_str:
max = AppVersion.objects.filter(version=version_str)[0]
version = Version.objects.create(addon=addon)
ApplicationsVersions.objects.create(application=self.application,
min=self.min, max=max,
version=version)
for status in statuses:
File.objects.create(status=status, version=version)
return version
def find_files(self, job_kwargs=None):
if not job_kwargs:
job_kwargs = {}
job = self.create_job(**job_kwargs)
find_files(job)
return list(job.result_set.values_list('file_id', flat=True))
def test_getting_disabled(self):
self.addon.update(status=amo.STATUS_DISABLED)
eq_(len(self.find_files()), 0)
def test_getting_deleted(self):
self.addon.update(status=amo.STATUS_DELETED)
eq_(len(self.find_files()), 0)
def test_getting_status(self):
self.create_version(self.addon, [amo.STATUS_PUBLIC,
amo.STATUS_NOMINATED])
ids = self.find_files()
eq_(len(ids), 2)
def test_getting_latest_public(self):
old_version = self.create_version(self.addon, [amo.STATUS_PUBLIC])
self.create_version(self.addon, [amo.STATUS_NULL])
ids = self.find_files()
eq_(len(ids), 1)
eq_(old_version.files.all()[0].pk, ids[0])
def test_getting_latest_public_order(self):
self.create_version(self.addon, [amo.STATUS_PURGATORY])
new_version = self.create_version(self.addon, [amo.STATUS_PUBLIC])
ids = self.find_files()
eq_(len(ids), 1)
eq_(new_version.files.all()[0].pk, ids[0])
def delete_orig_version(self, fixup=True):
# Because deleting versions resets the status...
self.version.delete()
# Don't really care what status this is, as long
# as it gets past the first SQL query.
self.addon.update(status=amo.STATUS_PUBLIC)
def test_no_versions(self):
self.delete_orig_version()
eq_(len(self.find_files()), 0)
def test_no_files(self):
self.version.files.all().delete()
self.addon.update(status=amo.STATUS_PUBLIC)
eq_(len(self.find_files()), 0)
def test_not_public(self):
version = self.create_version(self.addon, [amo.STATUS_LITE])
self.delete_orig_version()
ids = self.find_files()
eq_(len(ids), 1)
eq_(version.files.all()[0].pk, ids[0])
def test_not_public_and_newer(self):
self.create_version(self.addon, [amo.STATUS_LITE])
new_version = self.create_version(self.addon, [amo.STATUS_LITE])
self.delete_orig_version()
ids = self.find_files()
eq_(len(ids), 1)
eq_(new_version.files.all()[0].pk, ids[0])
def test_not_public_w_beta(self):
self.create_version(self.addon, [amo.STATUS_LITE])
self.create_version(self.addon, [amo.STATUS_BETA])
self.delete_orig_version()
ids = self.find_files()
eq_(len(ids), 2)
def test_not_public_w_multiple_files(self):
self.create_version(self.addon, [amo.STATUS_BETA])
new_version = self.create_version(self.addon, [amo.STATUS_LITE,
amo.STATUS_BETA])
self.delete_orig_version()
ids = self.find_files()
eq_(len(ids), 2)
eq_(sorted([v.id for v in new_version.files.all()]), sorted(ids))
def test_not_prelim_w_multiple_files(self):
self.create_version(self.addon, [amo.STATUS_BETA])
self.create_version(self.addon, [amo.STATUS_BETA,
amo.STATUS_NOMINATED])
self.delete_orig_version()
ids = self.find_files()
eq_(len(ids), 3)
def test_public_partial(self):
self.create_version(self.addon, [amo.STATUS_PUBLIC])
new_version = self.create_version(self.addon, [amo.STATUS_BETA,
amo.STATUS_DISABLED])
ids = self.find_files()
eq_(len(ids), 2)
assert new_version.files.all()[1].pk not in ids
def test_getting_w_unreviewed(self):
old_version = self.create_version(self.addon, [amo.STATUS_PUBLIC])
new_version = self.create_version(self.addon, [amo.STATUS_UNREVIEWED])
ids = self.find_files()
eq_(len(ids), 2)
eq_(sorted([old_version.files.all()[0].pk,
new_version.files.all()[0].pk]),
sorted(ids))
def test_multiple_files(self):
self.create_version(self.addon, [amo.STATUS_PUBLIC, amo.STATUS_PUBLIC,
amo.STATUS_PUBLIC])
ids = self.find_files()
eq_(len(ids), 3)
def test_multiple_public(self):
self.create_version(self.addon, [amo.STATUS_PUBLIC])
new_version = self.create_version(self.addon, [amo.STATUS_PUBLIC])
ids = self.find_files()
eq_(len(ids), 1)
eq_(new_version.files.all()[0].pk, ids[0])
def test_multiple_addons(self):
addon = Addon.objects.create(type=amo.ADDON_EXTENSION)
self.create_version(addon, [amo.STATUS_PURGATORY])
ids = self.find_files()
eq_(len(ids), 1)
eq_(self.version.files.all()[0].pk, ids[0])
def test_no_app(self):
version = self.create_version(self.addon, [amo.STATUS_LITE])
self.delete_orig_version()
version.apps.all().delete()
ids = self.find_files()
eq_(len(ids), 0)
def test_wrong_version(self):
self.create_version(self.addon, [amo.STATUS_LITE],
version_str='4.0b2pre')
self.delete_orig_version()
ids = self.find_files()
eq_(len(ids), 0)
def test_version_slightly_newer_than_current(self):
# addon matching current app/version but with a newer public version
# that is within range of the target app/version.
# See bug 658739.
self.create_version(self.addon, [amo.STATUS_PUBLIC],
version_str='3.7a2')
newer = self.create_version(self.addon, [amo.STATUS_PUBLIC],
version_str='3.7a3')
kw = dict(curr_max_version=self.appversion('3.7a2'),
target_version=self.appversion('3.7a4'))
ids = self.find_files(job_kwargs=kw)
eq_(newer.files.all()[0].pk, ids[0])
def test_version_compatible_with_newer_app(self):
# addon with a newer public version that is already compatible with
# an app/version higher than the target.
# See bug 658739.
self.create_version(self.addon, [amo.STATUS_PUBLIC],
version_str='3.7a2')
# A version that supports a newer Firefox than what we're targeting
self.create_version(self.addon, [amo.STATUS_PUBLIC],
version_str='3.7a4')
kw = dict(curr_max_version=self.appversion('3.7a2'),
target_version=self.appversion('3.7a3'))
ids = self.find_files(job_kwargs=kw)
eq_(len(ids), 0)
def test_version_compatible_with_target_app(self):
self.create_version(self.addon, [amo.STATUS_PUBLIC],
version_str='3.7a2')
# Already has a version that supports target:
self.create_version(self.addon, [amo.STATUS_PUBLIC],
version_str='3.7a3')
kw = dict(curr_max_version=self.appversion('3.7a2'),
target_version=self.appversion('3.7a3'))
ids = self.find_files(job_kwargs=kw)
eq_(len(ids), 0)
class TestTallyValidationErrors(BulkValidationTest):
def setUp(self):
super(TestTallyValidationErrors, self).setUp()
self.data = {
"errors": 1,
"warnings": 1,
"notices": 0,
"messages": [
{
"message": "message one",
"description": ["message one long"],
"id": ["path", "to", "test_one"],
"uid": "de93a48831454e0b9d965642f6d6bf8f",
"type": "error",
},
{
"message": "message two",
"description": "message two long",
"id": ["path", "to", "test_two"],
"uid": "f44c1930887c4d9e8bd2403d4fe0253a",
"compatibility_type": "error",
"type": "warning"
}],
"metadata": {},
"compatibility_summary": {
"errors": 1,
"warnings": 1,
"notices": 0
}
}
def csv(self, job_id):
r = self.client.get(reverse('zadmin.validation_tally_csv',
args=[job_id]))
eq_(r.status_code, 200)
rdr = csv.reader(StringIO(r.content))
header = rdr.next()
rows = sorted((r for r in rdr), key=lambda r: r[0])
return header, rows
@mock.patch('zadmin.tasks.run_validator')
def test_csv(self, run_validator):
run_validator.return_value = json.dumps(self.data)
self.start_validation()
res = ValidationResult.objects.get()
eq_(res.task_error, None)
header, rows = self.csv(res.validation_job.pk)
eq_(header, ['message_id', 'message', 'long_message',
'type', 'addons_affected'])
eq_(rows.pop(0), ['path.to.test_one',
'message one', 'message one long', 'error', '1'])
eq_(rows.pop(0), ['path.to.test_two',
'message two', 'message two long', 'error', '1'])
def test_count_per_addon(self):
job = self.create_job()
data_str = json.dumps(self.data)
for i in range(3):
tasks.tally_validation_results(job.pk, data_str)
header, rows = self.csv(job.pk)
eq_(rows.pop(0), ['path.to.test_one',
'message one', 'message one long', 'error', '3'])
eq_(rows.pop(0), ['path.to.test_two',
'message two', 'message two long', 'error', '3'])
def test_nested_list_messages(self):
job = self.create_job()
self.data['messages'] = [{
"message": "message one",
"description": ["message one long", ["something nested"]],
"id": ["path", "to", "test_one"],
"uid": "de93a48831454e0b9d965642f6d6bf8f",
"type": "error",
}]
data_str = json.dumps(self.data)
# This was raising an exception. bug 733845
tasks.tally_validation_results(job.pk, data_str)
class TestEmailPreview(amo.tests.TestCase):
fixtures = ['base/addon_3615', 'base/users']
def setUp(self):
assert self.client.login(username='admin@mozilla.com',
password='password')
addon = Addon.objects.get(pk=3615)
self.topic = EmailPreviewTopic(addon)
def test_csv(self):
self.topic.send_mail('the subject', u'Hello Ivan Krsti\u0107',
from_email='admin@mozilla.org',
recipient_list=['funnyguy@mozilla.org'])
r = self.client.get(reverse('zadmin.email_preview_csv',
args=[self.topic.topic]))
eq_(r.status_code, 200)
rdr = csv.reader(StringIO(r.content))
eq_(rdr.next(), ['from_email', 'recipient_list', 'subject', 'body'])
eq_(rdr.next(), ['admin@mozilla.org', 'funnyguy@mozilla.org',
'the subject', 'Hello Ivan Krsti\xc4\x87'])
class TestMonthlyPick(amo.tests.TestCase):
fixtures = ['base/addon_3615', 'base/apps', 'base/users']
def setUp(self):
assert self.client.login(username='admin@mozilla.com',
password='password')
self.url = reverse('zadmin.monthly_pick')
addon = Addon.objects.get(pk=3615)
MonthlyPick.objects.create(addon=addon,
locale='zh-CN',
blurb="test data",
image="http://www.google.com")
self.f = self.client.get(self.url).context['form'].initial_forms[0]
self.initial = self.f.initial
def test_form_initial(self):
eq_(self.initial['addon'], 3615)
eq_(self.initial['locale'], 'zh-CN')
eq_(self.initial['blurb'], 'test data')
eq_(self.initial['image'], 'http://www.google.com')
def test_success_insert(self):
dupe = initial(self.f)
del dupe['id']
dupe.update(locale='fr')
data = formset(initial(self.f), dupe, initial_count=1)
self.client.post(self.url, data)
eq_(MonthlyPick.objects.count(), 2)
eq_(MonthlyPick.objects.all()[1].locale, 'fr')
def test_insert_no_image(self):
dupe = initial(self.f)
dupe.update(id='', image='', locale='en-US')
data = formset(initial(self.f), dupe, initial_count=1)
self.client.post(self.url, data)
eq_(MonthlyPick.objects.count(), 2)
eq_(MonthlyPick.objects.all()[1].image, '')
def test_success_insert_no_locale(self):
dupe = initial(self.f)
del dupe['id']
del dupe['locale']
data = formset(initial(self.f), dupe, initial_count=1)
self.client.post(self.url, data)
eq_(MonthlyPick.objects.count(), 2)
eq_(MonthlyPick.objects.all()[1].locale, '')
def test_insert_long_blurb(self):
dupe = initial(self.f)
dupe.update(id='', blurb='x' * 201, locale='en-US')
data = formset(initial(self.f), dupe, initial_count=1)
r = self.client.post(self.url, data)
eq_(r.context['form'].errors[1]['blurb'][0],
'Ensure this value has at most 200 characters (it has 201).')
def test_success_update(self):
d = initial(self.f)
d.update(locale='fr')
r = self.client.post(self.url, formset(d, initial_count=1))
eq_(r.status_code, 302)
eq_(MonthlyPick.objects.all()[0].locale, 'fr')
def test_success_delete(self):
d = initial(self.f)
d.update(DELETE=True)
self.client.post(self.url, formset(d, initial_count=1))
eq_(MonthlyPick.objects.count(), 0)
def test_require_login(self):
self.client.logout()
r = self.client.get(self.url)
eq_(r.status_code, 302)
class TestFeatures(amo.tests.TestCase):
fixtures = ['base/apps', 'base/users', 'base/collections',
'base/addon_3615.json']
def setUp(self):
assert self.client.login(username='admin@mozilla.com',
password='password')
self.url = reverse('zadmin.features')
FeaturedCollection.objects.create(application_id=amo.FIREFOX.id,
locale='zh-CN', collection_id=80)
self.f = self.client.get(self.url).context['form'].initial_forms[0]
self.initial = self.f.initial
def test_form_initial(self):
eq_(self.initial['application'], amo.FIREFOX.id)
eq_(self.initial['locale'], 'zh-CN')
eq_(self.initial['collection'], 80)
def test_form_attrs(self):
r = self.client.get(self.url)
eq_(r.status_code, 200)
doc = pq(r.content)
eq_(doc('#features tr').attr('data-app'), str(amo.FIREFOX.id))
assert doc('#features td.app').hasClass(amo.FIREFOX.short)
eq_(doc('#features td.collection.loading').attr('data-collection'),
'80')
assert doc('#features .collection-ac.js-hidden')
assert not doc('#features .collection-ac[disabled]')
def test_disabled_autocomplete_errors(self):
"""If any collection errors, autocomplete field should be enabled."""
d = dict(application=amo.FIREFOX.id, collection=999)
data = formset(self.initial, d, initial_count=1)
r = self.client.post(self.url, data)
doc = pq(r.content)
assert not doc('#features .collection-ac[disabled]')
def test_required_app(self):
d = dict(locale='zh-CN', collection=80)
data = formset(self.initial, d, initial_count=1)
r = self.client.post(self.url, data)
eq_(r.status_code, 200)
eq_(r.context['form'].errors[0]['application'],
['This field is required.'])
eq_(r.context['form'].errors[0]['collection'],
['Invalid collection for this application.'])
def test_bad_app(self):
d = dict(application=999, collection=80)
data = formset(self.initial, d, initial_count=1)
r = self.client.post(self.url, data)
eq_(r.context['form'].errors[0]['application'],
['Select a valid choice. That choice is not one of the available '
'choices.'])
def test_bad_collection_for_app(self):
d = dict(application=amo.THUNDERBIRD.id, collection=80)
data = formset(self.initial, d, initial_count=1)
r = self.client.post(self.url, data)
eq_(r.context['form'].errors[0]['collection'],
['Invalid collection for this application.'])
def test_optional_locale(self):
d = dict(application=amo.FIREFOX.id, collection=80)
data = formset(self.initial, d, initial_count=1)
r = self.client.post(self.url, data)
eq_(r.context['form'].errors, [{}])
def test_bad_locale(self):
d = dict(application=amo.FIREFOX.id, locale='klingon', collection=80)
data = formset(self.initial, d, initial_count=1)
r = self.client.post(self.url, data)
eq_(r.context['form'].errors[0]['locale'],
['Select a valid choice. klingon is not one of the available '
'choices.'])
def test_required_collection(self):
d = dict(application=amo.FIREFOX.id)
data = formset(self.initial, d, initial_count=1)
r = self.client.post(self.url, data)
eq_(r.context['form'].errors[0]['collection'],
['This field is required.'])
def test_bad_collection(self):
d = dict(application=amo.FIREFOX.id, collection=999)
data = formset(self.initial, d, initial_count=1)
r = self.client.post(self.url, data)
eq_(r.context['form'].errors[0]['collection'],
['Invalid collection for this application.'])
def test_success_insert(self):
dupe = initial(self.f)
del dupe['id']
dupe.update(locale='fr')
data = formset(initial(self.f), dupe, initial_count=1)
self.client.post(self.url, data)
eq_(FeaturedCollection.objects.count(), 2)
eq_(FeaturedCollection.objects.all()[1].locale, 'fr')
def test_success_update(self):
d = initial(self.f)
d.update(locale='fr')
r = self.client.post(self.url, formset(d, initial_count=1))
eq_(r.status_code, 302)
eq_(FeaturedCollection.objects.all()[0].locale, 'fr')
def test_success_delete(self):
d = initial(self.f)
d.update(DELETE=True)
self.client.post(self.url, formset(d, initial_count=1))
eq_(FeaturedCollection.objects.count(), 0)
class TestOAuth(amo.tests.TestCase):
fixtures = ['base/users']
def setUp(self):
assert self.client.login(username='admin@mozilla.com',
password='password')
def test_create_consumer(self):
self.client.post(reverse('zadmin.oauth-consumer-create'),
data={'name': 'Test',
'description': 'Test description',
'status': 'accepted'})
eq_(Consumer.objects.count(), 1)
class TestLookup(amo.tests.TestCase):
fixtures = ['base/users']
def setUp(self):
assert self.client.login(username='admin@mozilla.com',
password='password')
self.user = UserProfile.objects.get(pk=999)
self.url = reverse('zadmin.search', args=['users', 'userprofile'])
def test_logged_out(self):
self.client.logout()
eq_(self.client.get('%s?q=admin' % self.url).status_code, 403)
def check_results(self, q, expected):
res = self.client.get(urlparams(self.url, q=q))
eq_(res.status_code, 200)
content = json.loads(res.content)
eq_(len(content), len(expected))
ids = [int(c['value']) for c in content]
emails = [u'%s' % c['label'] for c in content]
for d in expected:
id = d['value']
email = u'%s' % d['label']
assert id in ids, (
'Expected user ID "%s" not found' % id)
assert email in emails, (
'Expected username "%s" not found' % email)
def test_lookup_wrong_model(self):
self.url = reverse('zadmin.search', args=['doesnt', 'exist'])
res = self.client.get(urlparams(self.url, q=''))
eq_(res.status_code, 404)
def test_lookup_empty(self):
users = UserProfile.objects.values('id', 'email')
self.check_results('', [dict(
value=u['id'], label=u['email']) for u in users])
def test_lookup_by_id(self):
self.check_results(self.user.id, [dict(value=self.user.id,
label=self.user.email)])
def test_lookup_by_email(self):
self.check_results(self.user.email, [dict(value=self.user.id,
label=self.user.email)])
def test_lookup_by_username(self):
self.check_results(self.user.username, [dict(value=self.user.id,
label=self.user.email)])
class TestAddonSearch(amo.tests.ESTestCase):
fixtures = ['base/users', 'base/addon_3615']
def setUp(self):
self.reindex(Addon)
assert self.client.login(username='admin@mozilla.com',
password='password')
self.url = reverse('zadmin.addon-search')
@mock.patch('mkt.webapps.tasks.index_webapps')
def test_lookup_app(self, index_webapps_mock):
# Load the Webapp fixture here, as loading it in the
# TestAddonSearch.fixtures would trigger the reindex, and fail, as
# this is an AMO test.
management.call_command('loaddata', 'base/337141-steamcube')
index_webapps_mock.assert_called()
res = self.client.get(urlparams(self.url, q='steamcube'))
eq_(res.status_code, 200)
links = pq(res.content)('form + h3 + ul li a')
eq_(len(links), 0)
if any(li.text().contains('Steamcube') for li in links):
raise AssertionError('Did not expect webapp in results.')
def test_lookup_addon(self):
res = self.client.get(urlparams(self.url, q='delicious'))
# There's only one result, so it should just forward us to that page.
eq_(res.status_code, 302)
class TestAddonAdmin(amo.tests.TestCase):
fixtures = ['base/users', 'base/337141-steamcube', 'base/addon_3615']
def setUp(self):
assert self.client.login(username='admin@mozilla.com',
password='password')
self.url = reverse('admin:addons_addon_changelist')
def test_no_webapps(self):
res = self.client.get(self.url)
doc = pq(res.content)
rows = doc('#result_list tbody tr')
eq_(rows.length, 1)
eq_(rows.find('a').attr('href'),
'3615/')
class TestAddonManagement(amo.tests.TestCase):
fixtures = ['base/addon_3615', 'base/users']
def setUp(self):
self.addon = Addon.objects.get(pk=3615)
self.url = reverse('zadmin.addon_manage', args=[self.addon.slug])
self.client.login(username='admin@mozilla.com', password='password')
def _form_data(self, data=None):
initial_data = {
'status': '4',
'highest_status': '4',
'outstanding': '0',
'form-0-status': '4',
'form-0-id': '67442',
'form-TOTAL_FORMS': '1',
'form-INITIAL_FORMS': '1',
}
if data:
initial_data.update(data)
return initial_data
def test_addon_status_change(self):
data = self._form_data({'status': '2'})
r = self.client.post(self.url, data, follow=True)
eq_(r.status_code, 200)
addon = Addon.objects.get(pk=3615)
eq_(addon.status, 2)
def test_outstanding_change(self):
data = self._form_data({'outstanding': '1'})
r = self.client.post(self.url, data, follow=True)
eq_(r.status_code, 200)
addon = Addon.objects.get(pk=3615)
eq_(addon.outstanding, 1)
def test_addon_file_status_change(self):
data = self._form_data({'form-0-status': '2'})
r = self.client.post(self.url, data, follow=True)
eq_(r.status_code, 200)
file = File.objects.get(pk=67442)
eq_(file.status, 2)
@mock.patch.object(File, 'file_path',
amo.tests.AMOPaths().file_fixture_path(
'delicious_bookmarks-2.1.106-fx.xpi'))
def test_regenerate_hash(self):
version = Version.objects.create(addon_id=3615)
file = File.objects.create(
filename='delicious_bookmarks-2.1.106-fx.xpi', version=version)
r = self.client.post(reverse('zadmin.recalc_hash', args=[file.id]))
eq_(json.loads(r.content)[u'success'], 1)
file = File.objects.get(pk=file.id)
assert file.size, 'File size should not be zero'
assert file.hash, 'File hash should not be empty'
@mock.patch.object(File, 'file_path',
amo.tests.AMOPaths().file_fixture_path(
'delicious_bookmarks-2.1.106-fx.xpi'))
def test_regenerate_hash_get(self):
""" Don't allow GET """
version = Version.objects.create(addon_id=3615)
file = File.objects.create(
filename='delicious_bookmarks-2.1.106-fx.xpi', version=version)
r = self.client.get(reverse('zadmin.recalc_hash', args=[file.id]))
eq_(r.status_code, 405) # GET out of here
class TestJetpack(amo.tests.TestCase):
fixtures = ['base/users']
def setUp(self):
self.url = reverse('zadmin.jetpack')
self.client.login(username='admin@mozilla.com', password='password')
self.versions = '["1.0", "1.1", "1.2", "1.2.1"]'
self.patcher = mock.patch('devhub.tasks.urllib2.urlopen')
self.urlopen_mock = self.patcher.start()
self.urlopen_mock.return_value = self.urlopener(self.versions)
self.addCleanup(self.patcher.stop)
def urlopener(self, content):
m = mock.Mock()
m.read.return_value = content
return m
def test_no_builder_versions(self):
self.urlopen_mock.return_value = self.urlopener('xxx')
r = self.client.get(self.url)
eq_(r.status_code, 200)
doc = pq(r.content)
for field in ('minver', 'maxver'):
eq_(doc('input[name=%s]' % field).length, 1)
def test_get_builder_versions(self):
r = self.client.get(self.url)
eq_(r.status_code, 200)
doc = pq(r.content)
for field in ('minver', 'maxver'):
eq_(doc('select[name=%s]' % field).length, 1)
options = doc('select[name=%s] option' % field)
versions = [''] + json.loads(self.versions)
for option, version in zip(options, versions):
eq_(pq(option).attr('value'), version)
def test_change_range_optional(self):
r = self.client.post(self.url)
self.assertRedirects(r, self.url)
def test_change_range_max_required(self):
r = self.client.post(self.url, {'minver': '1.0'})
eq_(r.status_code, 200)
assert_required(r.context['form'].errors['maxver'][0])
def test_change_range_min_required(self):
r = self.client.post(self.url, {'maxver': '1.1'})
eq_(r.status_code, 200)
assert_required(r.context['form'].errors['minver'][0])
def test_change_range_bad(self):
r = self.client.post(self.url, {'minver': '1.1', 'maxver': '1.0'})
eq_(r.status_code, 200)
eq_(r.context['form'].non_field_errors(), ['Invalid version range.'])
def test_change_range_unknown(self):
r = self.client.post(self.url, {'minver': '9.0', 'maxver': '99.0'})
eq_(r.status_code, 200)
self.assertFormError(r, 'form', 'minver',
'Select a valid choice. 9.0 is not one of the available choices.')
self.assertFormError(r, 'form', 'maxver',
'Select a valid choice. 99.0 is not one of the available choices.')
def set_range(self, min_, max_):
r = self.client.post(self.url, {'minver': min_, 'maxver': max_})
self.assertRedirects(r, self.url)
r = self.client.get(self.url)
eq_(r.status_code, 200)
minver, maxver = r.context['upgrader'].jetpack_versions()
eq_(minver, min_)
eq_(maxver, max_)
eq_(r.context['upgrader'].version(), None)
eq_(pq(r.content)('input[name=upgrade]').length, 1)
def test_change_range_success(self):
self.set_range('1.0', '1.1')
def submit_upgrade(self):
r = self.client.post(self.url, {'upgrade': True})
self.assertRedirects(r, self.url)
def test_upgrade(self):
self.set_range('1.2', '1.2.1')
self.submit_upgrade()
r = self.client.get(self.url)
eq_(r.status_code, 200)
eq_(r.context['upgrader'].version(), '1.2.1')
eq_(pq(r.content)('input[name=cancel]').length, 1)
def test_cancel(self):
self.set_range('1.2', '1.2.1')
self.submit_upgrade()
r = self.client.post(self.url, {'cancel': True})
self.assertRedirects(r, self.url)
r = self.client.get(self.url)
eq_(r.status_code, 200)
eq_(r.context['upgrader'].version(), None)
@mock.patch('zadmin.views.start_upgrade_task.delay')
def test_resend(self, start_upgrade):
self.set_range('1.2', '1.2.1')
self.submit_upgrade()
file_id = str(5)
self.client.get(reverse('zadmin.jetpack.resend', args=[file_id]))
start_upgrade.assert_called_with([file_id], sdk_version='1.2.1')
class TestCompat(amo.tests.ESTestCase):
fixtures = ['base/users']
def setUp(self):
self.url = reverse('zadmin.compat')
self.client.login(username='admin@mozilla.com', password='password')
self.app = amo.FIREFOX
self.app_version = amo.COMPAT[0]['main']
self.addon = self.populate(guid='xxx')
self.generate_reports(self.addon, good=0, bad=0, app=self.app,
app_version=self.app_version)
def update(self):
compatibility_report()
self.refresh()
def populate(self, **kw):
now = datetime.now()
name = 'Addon %s' % now
kw.update(guid=name)
addon = amo.tests.addon_factory(name=name, **kw)
UpdateCount.objects.create(addon=addon, count=10, date=now)
return addon
def generate_reports(self, addon, good, bad, app, app_version):
defaults = dict(guid=addon.guid, app_guid=app.guid,
app_version=app_version)
for x in xrange(good):
CompatReport.objects.create(works_properly=True, **defaults)
for x in xrange(bad):
CompatReport.objects.create(works_properly=False, **defaults)
self.update()
def get_pq(self, **kw):
r = self.client.get(self.url, kw)
eq_(r.status_code, 200)
return pq(r.content)('#compat-results')
def test_defaults(self):
r = self.client.get(self.url)
eq_(r.status_code, 200)
eq_(r.context['app'], self.app)
eq_(r.context['version'], self.app_version)
table = pq(r.content)('#compat-results')
eq_(table.length, 1)
eq_(table.find('.no-results').length, 1)
def check_row(self, tr, addon, good, bad, percentage, app, app_version):
eq_(tr.length, 1)
version = addon.current_version.version
name = tr.find('.name')
eq_(name.find('.version').text(), 'v' + version)
eq_(name.remove('.version').text(), unicode(addon.name))
eq_(name.find('a').attr('href'), addon.get_url_path())
eq_(tr.find('.maxver').text(), addon.compatible_apps[app].max.version)
incompat = tr.find('.incompat')
eq_(incompat.find('.bad').text(), str(bad))
eq_(incompat.find('.total').text(), str(good + bad))
percentage += '%'
assert percentage in incompat.text(), (
'Expected incompatibility to be %r' % percentage)
eq_(tr.find('.version a').attr('href'),
reverse('devhub.versions.edit',
args=[addon.slug, addon.current_version.id]))
eq_(tr.find('.reports a').attr('href'),
reverse('compat.reporter_detail', args=[addon.guid]))
form = tr.find('.overrides form')
eq_(form.attr('action'), reverse('admin:addons_compatoverride_add'))
self.check_field(form, '_compat_ranges-TOTAL_FORMS', '1')
self.check_field(form, '_compat_ranges-INITIAL_FORMS', '0')
self.check_field(form, '_continue', '1')
self.check_field(form, '_confirm', '1')
self.check_field(form, 'addon', str(addon.id))
self.check_field(form, 'guid', addon.guid)
compat_field = '_compat_ranges-0-%s'
self.check_field(form, compat_field % 'min_version', '0')
self.check_field(form, compat_field % 'max_version', version)
self.check_field(form, compat_field % 'app', str(app.id))
self.check_field(form, compat_field % 'min_app_version',
app_version + 'a1')
self.check_field(form, compat_field % 'max_app_version',
app_version + '*')
def check_field(self, form, name, val):
eq_(form.find('input[name="%s"]' % name).val(), val)
def test_firefox_hosted(self):
addon = self.populate()
self.generate_reports(addon, good=0, bad=11, app=self.app,
app_version=self.app_version)
tr = self.get_pq().find('tr[data-guid="%s"]' % addon.guid)
self.check_row(tr, addon, good=0, bad=11, percentage='100.0',
app=self.app, app_version=self.app_version)
# Add an override for this current app version.
compat = CompatOverride.objects.create(addon=addon, guid=addon.guid)
CompatOverrideRange.objects.create(compat=compat,
app_id=amo.FIREFOX.id, min_app_version=self.app_version + 'a1',
max_app_version=self.app_version + '*')
# Check that there is an override for this current app version.
tr = self.get_pq().find('tr[data-guid="%s"]' % addon.guid)
eq_(tr.find('.overrides a').attr('href'),
reverse('admin:addons_compatoverride_change', args=[compat.id]))
def test_non_default_version(self):
app_version = amo.COMPAT[2]['main']
addon = self.populate()
self.generate_reports(addon, good=0, bad=11, app=self.app,
app_version=app_version)
eq_(self.get_pq().find('tr[data-guid="%s"]' % addon.guid).length, 0)
appver = '%s-%s' % (self.app.id, app_version)
tr = self.get_pq(appver=appver)('tr[data-guid="%s"]' % addon.guid)
self.check_row(tr, addon, good=0, bad=11, percentage='100.0',
app=self.app, app_version=app_version)
def test_minor_versions(self):
addon = self.populate()
self.generate_reports(addon, good=0, bad=1, app=self.app,
app_version=self.app_version)
self.generate_reports(addon, good=1, bad=2, app=self.app,
app_version=self.app_version + 'a2')
tr = self.get_pq(ratio=0.0, minimum=0).find('tr[data-guid="%s"]' %
addon.guid)
self.check_row(tr, addon, good=1, bad=3, percentage='75.0',
app=self.app, app_version=self.app_version)
def test_ratio(self):
addon = self.populate()
self.generate_reports(addon, good=11, bad=11, app=self.app,
app_version=self.app_version)
# Should not show up for > 80%.
eq_(self.get_pq().find('tr[data-guid="%s"]' % addon.guid).length, 0)
# Should not show up for > 50%.
tr = self.get_pq(ratio=.5).find('tr[data-guid="%s"]' % addon.guid)
eq_(tr.length, 0)
# Should show up for > 40%.
tr = self.get_pq(ratio=.4).find('tr[data-guid="%s"]' % addon.guid)
eq_(tr.length, 1)
def test_min_incompatible(self):
addon = self.populate()
self.generate_reports(addon, good=0, bad=11, app=self.app,
app_version=self.app_version)
# Should show up for >= 10.
eq_(self.get_pq().find('tr[data-guid="%s"]' % addon.guid).length, 1)
# Should show up for >= 0.
tr = self.get_pq(minimum=0).find('tr[data-guid="%s"]' % addon.guid)
eq_(tr.length, 1)
# Should not show up for >= 20.
tr = self.get_pq(minimum=20).find('tr[data-guid="%s"]' % addon.guid)
eq_(tr.length, 0)
class TestMemcache(amo.tests.TestCase):
fixtures = ['base/addon_3615', 'base/users']
def setUp(self):
self.url = reverse('zadmin.memcache')
cache.set('foo', 'bar')
self.client.login(username='admin@mozilla.com', password='password')
def test_login(self):
self.client.logout()
eq_(self.client.get(self.url).status_code, 302)
def test_can_clear(self):
self.client.post(self.url, {'yes': 'True'})
eq_(cache.get('foo'), None)
def test_cant_clear(self):
self.client.post(self.url, {'yes': 'False'})
eq_(cache.get('foo'), 'bar')
class TestElastic(amo.tests.ESTestCase):
fixtures = ['base/addon_3615', 'base/users']
def setUp(self):
self.url = reverse('zadmin.elastic')
self.client.login(username='admin@mozilla.com', password='password')
def test_login(self):
self.client.logout()
self.assertRedirects(self.client.get(self.url),
reverse('users.login') + '?to=/en-US/admin/elastic')
class TestEmailDevs(amo.tests.TestCase):
fixtures = ['base/addon_3615', 'base/users']
def setUp(self):
self.login('admin')
self.addon = Addon.objects.get(pk=3615)
def post(self, recipients='eula', subject='subject', message='msg',
preview_only=False):
return self.client.post(reverse('zadmin.email_devs'),
dict(recipients=recipients, subject=subject,
message=message,
preview_only=preview_only))
def test_preview(self):
res = self.post(preview_only=True)
self.assertNoFormErrors(res)
preview = EmailPreviewTopic(topic='email-devs')
eq_([e.recipient_list for e in preview.filter()], ['del@icio.us'])
eq_(len(mail.outbox), 0)
def test_actual(self):
subject = 'about eulas'
message = 'message about eulas'
res = self.post(subject=subject, message=message)
self.assertNoFormErrors(res)
self.assertRedirects(res, reverse('zadmin.email_devs'))
eq_(len(mail.outbox), 1)
eq_(mail.outbox[0].subject, subject)
eq_(mail.outbox[0].body, message)
eq_(mail.outbox[0].to, ['del@icio.us'])
eq_(mail.outbox[0].from_email, settings.DEFAULT_FROM_EMAIL)
def test_only_eulas(self):
self.addon.update(eula=None)
res = self.post()
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
def test_sdk_devs(self):
(File.objects.filter(version__addon=self.addon)
.update(jetpack_version='1.5'))
res = self.post(recipients='sdk')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
eq_(mail.outbox[0].to, ['del@icio.us'])
def test_only_sdk_devs(self):
res = self.post(recipients='sdk')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
def test_only_apps_with_payments(self):
self.addon.update(type=amo.ADDON_WEBAPP,
premium_type=amo.ADDON_PREMIUM)
res = self.post(recipients='payments')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
mail.outbox = []
self.addon.update(status=amo.STATUS_PENDING)
res = self.post(recipients='payments')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
mail.outbox = []
self.addon.update(status=amo.STATUS_DELETED)
res = self.post(recipients='payments')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
def test_only_free_apps_with_new_regions(self):
self.addon.update(type=amo.ADDON_WEBAPP)
res = self.post(recipients='free_apps_region_enabled')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
mail.outbox = []
res = self.post(recipients='free_apps_region_disabled')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
mail.outbox = []
self.addon.update(enable_new_regions=True)
res = self.post(recipients='free_apps_region_enabled')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
mail.outbox = []
res = self.post(recipients='free_apps_region_disabled')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
def test_only_apps_with_payments_and_new_regions(self):
self.addon.update(type=amo.ADDON_WEBAPP,
premium_type=amo.ADDON_PREMIUM)
res = self.post(recipients='payments_region_enabled')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
mail.outbox = []
res = self.post(recipients='payments_region_disabled')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
mail.outbox = []
self.addon.update(enable_new_regions=True)
res = self.post(recipients='payments_region_enabled')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
mail.outbox = []
res = self.post(recipients='payments_region_disabled')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
def test_only_desktop_apps(self):
from addons.models import AddonDeviceType
self.addon.update(type=amo.ADDON_WEBAPP)
AddonDeviceType.objects.create(addon=self.addon,
device_type=amo.DEVICE_MOBILE.id)
res = self.post(recipients='desktop_apps')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
mail.outbox = []
AddonDeviceType.objects.create(addon=self.addon,
device_type=amo.DEVICE_DESKTOP.id)
res = self.post(recipients='desktop_apps')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
mail.outbox = []
self.addon.update(status=amo.STATUS_PENDING)
res = self.post(recipients='desktop_apps')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
mail.outbox = []
self.addon.update(status=amo.STATUS_DELETED)
res = self.post(recipients='desktop_apps')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
def test_only_apps(self):
self.addon.update(type=amo.ADDON_WEBAPP)
res = self.post(recipients='apps')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
def test_only_extensions(self):
self.addon.update(type=amo.ADDON_EXTENSION)
res = self.post(recipients='all_extensions')
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 1)
def test_ignore_deleted_always(self):
self.addon.update(status=amo.STATUS_DELETED)
for name, label in DevMailerForm._choices:
res = self.post(recipients=name)
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
def test_exclude_pending_for_addons(self):
self.addon.update(status=amo.STATUS_PENDING)
for name, label in DevMailerForm._choices:
if name in ('payments', 'desktop_apps'):
continue
res = self.post(recipients=name)
self.assertNoFormErrors(res)
eq_(len(mail.outbox), 0)
class TestPerms(amo.tests.TestCase):
fixtures = ['base/users', 'base/apps', 'zadmin/tests/flagged']
def test_admin_user(self):
# Admin should see views with Django's perm decorator and our own.
assert self.client.login(username='admin@mozilla.com',
password='password')
eq_(self.client.get(reverse('zadmin.index')).status_code, 200)
eq_(self.client.get(reverse('zadmin.settings')).status_code, 200)
eq_(self.client.get(reverse('zadmin.flagged')).status_code, 200)
eq_(self.client.get(reverse('zadmin.langpacks')).status_code, 200)
eq_(self.client.get(reverse('zadmin.addon-search')).status_code, 200)
eq_(self.client.get(reverse('zadmin.monthly_pick')).status_code, 200)
eq_(self.client.get(reverse('zadmin.features')).status_code, 200)
eq_(self.client.get(
reverse('discovery.module_admin')).status_code, 200)
eq_(self.client.get(
reverse('zadmin.oauth-consumer-create')).status_code, 200)
def test_staff_user(self):
# Staff users have some privileges.
user = UserProfile.objects.get(email='regular@mozilla.com')
group = Group.objects.create(name='Staff', rules='AdminTools:View')
GroupUser.objects.create(group=group, user=user)
assert self.client.login(username='regular@mozilla.com',
password='password')
eq_(self.client.get(reverse('zadmin.index')).status_code, 200)
eq_(self.client.get(reverse('zadmin.settings')).status_code, 200)
eq_(self.client.get(reverse('zadmin.flagged')).status_code, 200)
eq_(self.client.get(reverse('zadmin.langpacks')).status_code, 200)
eq_(self.client.get(reverse('zadmin.addon-search')).status_code, 200)
eq_(self.client.get(reverse('zadmin.monthly_pick')).status_code, 200)
eq_(self.client.get(reverse('zadmin.features')).status_code, 200)
eq_(self.client.get(
reverse('discovery.module_admin')).status_code, 200)
eq_(self.client.get(
reverse('zadmin.oauth-consumer-create')).status_code, 403)
def test_sr_reviewers_user(self):
# Sr Reviewers users have only a few privileges.
user = UserProfile.objects.get(email='regular@mozilla.com')
group = Group.objects.create(name='Sr Reviewer',
rules='ReviewerAdminTools:View')
GroupUser.objects.create(group=group, user=user)
assert self.client.login(username='regular@mozilla.com',
password='password')
eq_(self.client.get(reverse('zadmin.index')).status_code, 200)
eq_(self.client.get(reverse('zadmin.flagged')).status_code, 200)
eq_(self.client.get(reverse('zadmin.langpacks')).status_code, 200)
eq_(self.client.get(reverse('zadmin.addon-search')).status_code, 200)
eq_(self.client.get(reverse('zadmin.settings')).status_code, 403)
eq_(self.client.get(
reverse('zadmin.oauth-consumer-create')).status_code, 403)
def test_bulk_compat_user(self):
# Bulk Compatibility Updaters only have access to /admin/validation/*.
user = UserProfile.objects.get(email='regular@mozilla.com')
group = Group.objects.create(name='Bulk Compatibility Updaters',
rules='BulkValidationAdminTools:View')
GroupUser.objects.create(group=group, user=user)
assert self.client.login(username='regular@mozilla.com',
password='password')
eq_(self.client.get(reverse('zadmin.index')).status_code, 200)
eq_(self.client.get(reverse('zadmin.validation')).status_code, 200)
eq_(self.client.get(reverse('zadmin.flagged')).status_code, 403)
eq_(self.client.get(reverse('zadmin.langpacks')).status_code, 403)
eq_(self.client.get(reverse('zadmin.addon-search')).status_code, 403)
eq_(self.client.get(reverse('zadmin.settings')).status_code, 403)
eq_(self.client.get(
reverse('zadmin.oauth-consumer-create')).status_code, 403)
def test_unprivileged_user(self):
# Unprivileged user.
assert self.client.login(username='regular@mozilla.com',
password='password')
eq_(self.client.get(reverse('zadmin.index')).status_code, 403)
eq_(self.client.get(reverse('zadmin.settings')).status_code, 403)
eq_(self.client.get(reverse('zadmin.flagged')).status_code, 403)
eq_(self.client.get(reverse('zadmin.langpacks')).status_code, 403)
eq_(self.client.get(reverse('zadmin.addon-search')).status_code, 403)
eq_(self.client.get(reverse('zadmin.monthly_pick')).status_code, 403)
eq_(self.client.get(reverse('zadmin.features')).status_code, 403)
eq_(self.client.get(
reverse('discovery.module_admin')).status_code, 403)
eq_(self.client.get(
reverse('zadmin.oauth-consumer-create')).status_code, 403)
# Anonymous users should also get a 403.
self.client.logout()
self.assertRedirects(self.client.get(reverse('zadmin.index')),
reverse('users.login') + '?to=/en-US/admin/')
|
robhudson/zamboni
|
apps/zadmin/tests/test_views.py
|
Python
|
bsd-3-clause
| 87,057
|
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
* Copyright (C) 2012 Intel Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @constructor
* @extends {WebInspector.Panel}
* @implements {WebInspector.TimelineModeViewDelegate}
* @implements {WebInspector.Searchable}
*/
WebInspector.TimelinePanel = function()
{
WebInspector.Panel.call(this, "timeline");
this.registerRequiredCSS("timeline/timelinePanel.css");
this.registerRequiredCSS("ui/filter.css");
this.element.addEventListener("contextmenu", this._contextMenu.bind(this), false);
this._detailsLinkifier = new WebInspector.Linkifier();
this._windowStartTime = 0;
this._windowEndTime = Infinity;
// Create model.
if (Runtime.experiments.isEnabled("timelineOnTraceEvents")) {
this._tracingManager = new WebInspector.TracingManager();
this._tracingManager.addEventListener(WebInspector.TracingManager.Events.BufferUsage, this._onTracingBufferUsage, this);
this._tracingModel = new WebInspector.TracingModel();
this._uiUtils = new WebInspector.TracingTimelineUIUtils();
this._tracingTimelineModel = new WebInspector.TracingTimelineModel(this._tracingManager, this._tracingModel, this._uiUtils.hiddenRecordsFilter());
this._model = this._tracingTimelineModel;
} else {
this._uiUtils = new WebInspector.TimelineUIUtilsImpl();
this._model = new WebInspector.TimelineModelImpl();
}
this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStarted, this._onRecordingStarted, this);
this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStopped, this._onRecordingStopped, this);
this._model.addEventListener(WebInspector.TimelineModel.Events.RecordsCleared, this._onRecordsCleared, this);
this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingProgress, this._onRecordingProgress, this);
this._model.addEventListener(WebInspector.TimelineModel.Events.RecordFilterChanged, this._refreshViews, this);
this._model.addEventListener(WebInspector.TimelineModel.Events.RecordAdded, this._onRecordAdded, this);
this._categoryFilter = new WebInspector.TimelineCategoryFilter(this._uiUtils);
this._durationFilter = new WebInspector.TimelineIsLongFilter();
this._textFilter = new WebInspector.TimelineTextFilter(this._uiUtils);
var hiddenEmptyRecordsFilter = this._uiUtils.hiddenEmptyRecordsFilter();
if (hiddenEmptyRecordsFilter)
this._model.addFilter(hiddenEmptyRecordsFilter);
this._model.addFilter(this._uiUtils.hiddenRecordsFilter());
this._model.addFilter(this._categoryFilter);
this._model.addFilter(this._durationFilter);
this._model.addFilter(this._textFilter);
/** @type {!Array.<!WebInspector.TimelineModeView>} */
this._currentViews = [];
this._overviewModeSetting = WebInspector.settings.createSetting("timelineOverviewMode", Runtime.experiments.isEnabled("timelineOnTraceEvents") ? WebInspector.TimelinePanel.OverviewMode.Frames : WebInspector.TimelinePanel.OverviewMode.Events);
this._flameChartEnabledSetting = WebInspector.settings.createSetting("timelineFlameChartEnabled", true);
this._createStatusBarItems();
var topPaneElement = this.element.createChild("div", "hbox");
topPaneElement.id = "timeline-overview-panel";
// Create top overview component.
this._overviewPane = new WebInspector.TimelineOverviewPane(this._model, this._uiUtils);
this._overviewPane.addEventListener(WebInspector.TimelineOverviewPane.Events.WindowChanged, this._onWindowChanged.bind(this));
this._overviewPane.show(topPaneElement);
this._createFileSelector();
this._registerShortcuts();
WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.WillReloadPage, this._willReloadPage, this);
WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.Load, this._loadEventFired, this);
// Create top level properties splitter.
this._detailsSplitView = new WebInspector.SplitView(false, true, "timelinePanelDetailsSplitViewState");
this._detailsSplitView.element.classList.add("timeline-details-split");
this._detailsSplitView.sidebarElement().classList.add("timeline-details");
this._detailsView = new WebInspector.TimelineDetailsView();
this._detailsSplitView.installResizer(this._detailsView.headerElement());
this._detailsView.show(this._detailsSplitView.sidebarElement());
this._searchableView = new WebInspector.SearchableView(this);
this._searchableView.setMinimumSize(0, 25);
this._searchableView.element.classList.add("searchable-view");
this._searchableView.show(this._detailsSplitView.mainElement());
this._stackView = new WebInspector.StackView(false);
this._stackView.show(this._searchableView.element);
this._stackView.element.classList.add("timeline-view-stack");
WebInspector.dockController.addEventListener(WebInspector.DockController.Events.DockSideChanged, this._dockSideChanged.bind(this));
WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(this._dockSideChanged.bind(this));
this._dockSideChanged();
this._onModeChanged();
this._detailsSplitView.show(this.element);
WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChanged, this);
}
WebInspector.TimelinePanel.OverviewMode = {
Events: "Events",
Frames: "Frames"
};
/**
* @enum {string}
*/
WebInspector.TimelinePanel.DetailsTab = {
Details: "Details",
PaintProfiler: "PaintProfiler",
LayerViewer: "LayerViewer"
};
// Define row and header height, should be in sync with styles for timeline graphs.
WebInspector.TimelinePanel.rowHeight = 18;
WebInspector.TimelinePanel.headerHeight = 20;
WebInspector.TimelinePanel.durationFilterPresetsMs = [0, 1, 15];
WebInspector.TimelinePanel.prototype = {
/**
* @return {?WebInspector.SearchableView}
*/
searchableView: function()
{
return this._searchableView;
},
wasShown: function()
{
if (!WebInspector.TimelinePanel._categoryStylesInitialized) {
WebInspector.TimelinePanel._categoryStylesInitialized = true;
var style = createElement("style");
var categories = WebInspector.TimelineUIUtils.categories();
style.textContent = Object.values(categories).map(WebInspector.TimelineUIUtils.createStyleRuleForCategory).join("\n");
this.element.ownerDocument.head.appendChild(style);
}
},
_dockSideChanged: function()
{
var dockSide = WebInspector.dockController.dockSide();
var vertically = false;
if (dockSide === WebInspector.DockController.State.DockedToBottom)
vertically = true;
else
vertically = !WebInspector.settings.splitVerticallyWhenDockedToRight.get();
this._detailsSplitView.setVertical(vertically);
},
/**
* @return {number}
*/
windowStartTime: function()
{
if (this._windowStartTime)
return this._windowStartTime;
return this._model.minimumRecordTime();
},
/**
* @return {number}
*/
windowEndTime: function()
{
if (this._windowEndTime < Infinity)
return this._windowEndTime;
return this._model.maximumRecordTime() || Infinity;
},
/**
* @param {!WebInspector.Event} event
*/
_sidebarResized: function(event)
{
var width = /** @type {number} */ (event.data);
for (var i = 0; i < this._currentViews.length; ++i)
this._currentViews[i].setSidebarSize(width);
},
/**
* @param {!WebInspector.Event} event
*/
_onWindowChanged: function(event)
{
this._windowStartTime = event.data.startTime;
this._windowEndTime = event.data.endTime;
for (var i = 0; i < this._currentViews.length; ++i)
this._currentViews[i].setWindowTimes(this._windowStartTime, this._windowEndTime);
},
/**
* @param {number} windowStartTime
* @param {number} windowEndTime
*/
requestWindowTimes: function(windowStartTime, windowEndTime)
{
this._overviewPane.requestWindowTimes(windowStartTime, windowEndTime);
},
/**
* @return {!WebInspector.TimelineFrameModelBase}
*/
_frameModel: function()
{
if (this._lazyFrameModel)
return this._lazyFrameModel;
if (this._tracingModel) {
var tracingFrameModel = new WebInspector.TracingTimelineFrameModel();
tracingFrameModel.addTraceEvents(this._tracingTimelineModel.inspectedTargetEvents(), this._tracingModel.sessionId() || "");
this._lazyFrameModel = tracingFrameModel;
} else {
var frameModel = new WebInspector.TimelineFrameModel();
frameModel.addRecords(this._model.records());
this._lazyFrameModel = frameModel;
}
return this._lazyFrameModel;
},
/**
* @return {!WebInspector.TimelineView}
*/
_timelineView: function()
{
if (!this._lazyTimelineView)
this._lazyTimelineView = new WebInspector.TimelineView(this, this._model, this._uiUtils);
return this._lazyTimelineView;
},
/**
* @return {!WebInspector.View}
*/
_layersView: function()
{
if (this._lazyLayersView)
return this._lazyLayersView;
this._lazyLayersView = new WebInspector.TimelineLayersView();
this._lazyLayersView.setTimelineModelAndDelegate(this._model, this);
return this._lazyLayersView;
},
_paintProfilerView: function()
{
if (this._lazyPaintProfilerView)
return this._lazyPaintProfilerView;
this._lazyPaintProfilerView = new WebInspector.TimelinePaintProfilerView();
return this._lazyPaintProfilerView;
},
/**
* @param {!WebInspector.TimelineModeView} modeView
*/
_addModeView: function(modeView)
{
modeView.setWindowTimes(this.windowStartTime(), this.windowEndTime());
modeView.refreshRecords(this._textFilter._regex);
this._stackView.appendView(modeView.view(), "timelinePanelTimelineStackSplitViewState");
modeView.view().addEventListener(WebInspector.SplitView.Events.SidebarSizeChanged, this._sidebarResized, this);
this._currentViews.push(modeView);
},
_removeAllModeViews: function()
{
for (var i = 0; i < this._currentViews.length; ++i) {
this._currentViews[i].removeEventListener(WebInspector.SplitView.Events.SidebarSizeChanged, this._sidebarResized, this);
this._currentViews[i].dispose();
}
this._currentViews = [];
this._stackView.detachChildViews();
},
/**
* @param {string} name
* @param {!WebInspector.Setting} setting
* @param {string} tooltip
* @return {!Element}
*/
_createSettingCheckbox: function(name, setting, tooltip)
{
if (!this._recordingOptionUIControls)
this._recordingOptionUIControls = [];
var checkboxElement = createElement("input");
var labelElement = WebInspector.SettingsUI.createSettingCheckbox(name, setting, true, checkboxElement, tooltip);
this._recordingOptionUIControls.push({ "label": labelElement, "checkbox": checkboxElement });
return labelElement;
},
_createStatusBarItems: function()
{
var panelStatusBarElement = this.element.createChild("div", "panel-status-bar");
this._statusBarButtons = /** @type {!Array.<!WebInspector.StatusBarItem>} */ ([]);
this.toggleTimelineButton = new WebInspector.StatusBarButton("Record timeline", "record-profile-status-bar-item");
this.toggleTimelineButton.addEventListener("click", this._toggleTimelineButtonClicked, this);
this._statusBarButtons.push(this.toggleTimelineButton);
panelStatusBarElement.appendChild(this.toggleTimelineButton.element);
this._updateToggleTimelineButton(false);
var clearButton = new WebInspector.StatusBarButton(WebInspector.UIString("Clear recording"), "clear-status-bar-item");
clearButton.addEventListener("click", this._onClearButtonClick, this);
this._statusBarButtons.push(clearButton);
panelStatusBarElement.appendChild(clearButton.element);
this._filterBar = this._createFilterBar();
panelStatusBarElement.appendChild(this._filterBar.filterButton().element);
var garbageCollectButton = new WebInspector.StatusBarButton(WebInspector.UIString("Collect garbage"), "timeline-garbage-collect-status-bar-item");
garbageCollectButton.addEventListener("click", this._garbageCollectButtonClicked, this);
this._statusBarButtons.push(garbageCollectButton);
panelStatusBarElement.appendChild(garbageCollectButton.element);
var framesToggleButton = new WebInspector.StatusBarButton(WebInspector.UIString("Frames view. (Activity split into frames)"), "timeline-frames-status-bar-item");
framesToggleButton.toggled = this._overviewModeSetting.get() === WebInspector.TimelinePanel.OverviewMode.Frames;
framesToggleButton.addEventListener("click", this._overviewModeChanged.bind(this, framesToggleButton));
this._statusBarButtons.push(framesToggleButton);
panelStatusBarElement.appendChild(framesToggleButton.element);
if (Runtime.experiments.isEnabled("timelineOnTraceEvents")) {
this._flameChartToggleButton = new WebInspector.StatusBarButton(WebInspector.UIString("Flame chart view. (Use WASD or time selection to navigate)"), "timeline-flame-chart-status-bar-item");
this._flameChartToggleButton.toggled = this._flameChartEnabledSetting.get();
this._flameChartToggleButton.addEventListener("click", this._flameChartEnabledChanged.bind(this));
this._statusBarButtons.push(this._flameChartToggleButton);
panelStatusBarElement.appendChild(this._flameChartToggleButton.element);
}
this._captureCausesSetting = WebInspector.settings.createSetting("timelineCaptureCauses", true);
this._captureCausesSetting.addChangeListener(this._refreshViews, this);
panelStatusBarElement.appendChild(this._createSettingCheckbox(WebInspector.UIString("Causes"),
this._captureCausesSetting,
WebInspector.UIString("Capture causes (e.g., stack traces) for timeline events. (Has performance overhead)")));
if (Runtime.experiments.isEnabled("timelineJSCPUProfile")) {
this._enableJSSamplingSettingSetting = WebInspector.settings.createSetting("timelineEnableJSSampling", false);
panelStatusBarElement.appendChild(this._createSettingCheckbox(WebInspector.UIString("JS Profiler"),
this._enableJSSamplingSettingSetting,
WebInspector.UIString("Enable JavaScript sampling profiler. (Has performance overhead)")));
}
this._captureMemorySetting = WebInspector.settings.createSetting("timelineCaptureMemory", false);
panelStatusBarElement.appendChild(this._createSettingCheckbox(WebInspector.UIString("Memory"),
this._captureMemorySetting,
WebInspector.UIString("Capture memory information on every timeline event")));
this._captureMemorySetting.addChangeListener(this._onModeChanged, this);
if (Runtime.experiments.isEnabled("timelinePowerProfiler") &&
WebInspector.targetManager.mainTarget().hasCapability(WebInspector.Target.Capabilities.CanProfilePower)) {
this._capturePowerSetting = WebInspector.settings.createSetting("timelineCapturePower", false);
panelStatusBarElement.appendChild(this._createSettingCheckbox(WebInspector.UIString("Power"),
this._capturePowerSetting,
WebInspector.UIString("Capture power information")));
this._capturePowerSetting.addChangeListener(this._onModeChanged, this);
}
if (Runtime.experiments.isEnabled("timelineOnTraceEvents")) {
this._captureLayersAndPicturesSetting = WebInspector.settings.createSetting("timelineCaptureLayersAndPictures", false);
panelStatusBarElement.appendChild(this._createSettingCheckbox(WebInspector.UIString("Paint"),
this._captureLayersAndPicturesSetting,
WebInspector.UIString("Capture graphics layer positions and painted pictures. (Has performance overhead)")));
}
this._miscStatusBarItems = panelStatusBarElement.createChild("div", "status-bar-item");
this._filtersContainer = this.element.createChild("div", "timeline-filters-header hidden");
this._filtersContainer.appendChild(this._filterBar.filtersElement());
this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersToggled, this._onFiltersToggled, this);
this._filterBar.setName("timelinePanel");
if (!Runtime.experiments.isEnabled("timelineOnTraceEvents")) {
var targetsComboBox = new WebInspector.StatusBarComboBox(null);
panelStatusBarElement.appendChild(targetsComboBox.element);
new WebInspector.TargetsComboBoxController(targetsComboBox.selectElement(), targetsComboBox.element);
}
},
/**
* @return {!WebInspector.FilterBar}
*/
_createFilterBar: function()
{
this._filterBar = new WebInspector.FilterBar();
this._filters = {};
this._filters._textFilterUI = new WebInspector.TextFilterUI();
this._filters._textFilterUI.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._textFilterChanged, this);
this._filterBar.addFilter(this._filters._textFilterUI);
var durationOptions = [];
for (var presetIndex = 0; presetIndex < WebInspector.TimelinePanel.durationFilterPresetsMs.length; ++presetIndex) {
var durationMs = WebInspector.TimelinePanel.durationFilterPresetsMs[presetIndex];
var durationOption = {};
if (!durationMs) {
durationOption.label = WebInspector.UIString("All");
durationOption.title = WebInspector.UIString("Show all records");
} else {
durationOption.label = WebInspector.UIString("\u2265 %dms", durationMs);
durationOption.title = WebInspector.UIString("Hide records shorter than %dms", durationMs);
}
durationOption.value = durationMs;
durationOptions.push(durationOption);
}
this._filters._durationFilterUI = new WebInspector.ComboBoxFilterUI(durationOptions);
this._filters._durationFilterUI.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._durationFilterChanged, this);
this._filterBar.addFilter(this._filters._durationFilterUI);
this._filters._categoryFiltersUI = {};
var categoryTypes = [];
var categories = WebInspector.TimelineUIUtils.categories();
for (var categoryName in categories) {
var category = categories[categoryName];
if (category.overviewStripGroupIndex < 0)
continue;
var filter = new WebInspector.CheckboxFilterUI(category.name, category.title);
this._filters._categoryFiltersUI[category.name] = filter;
filter.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._categoriesFilterChanged.bind(this, categoryName), this);
this._filterBar.addFilter(filter);
}
return this._filterBar;
},
_textFilterChanged: function(event)
{
var searchQuery = this._filters._textFilterUI.value();
this.searchCanceled();
this._textFilter.setRegex(searchQuery ? createPlainTextSearchRegex(searchQuery, "i") : null);
},
_durationFilterChanged: function()
{
var duration = this._filters._durationFilterUI.value();
var minimumRecordDuration = parseInt(duration, 10);
this._durationFilter.setMinimumRecordDuration(minimumRecordDuration);
},
_categoriesFilterChanged: function(name, event)
{
var categories = WebInspector.TimelineUIUtils.categories();
categories[name].hidden = !this._filters._categoryFiltersUI[name].checked();
this._categoryFilter.notifyFilterChanged();
},
_onFiltersToggled: function(event)
{
var toggled = /** @type {boolean} */ (event.data);
this._filtersContainer.classList.toggle("hidden", !toggled);
this.doResize();
},
/**
* @return {?WebInspector.ProgressIndicator}
*/
_prepareToLoadTimeline: function()
{
if (this._operationInProgress)
return null;
if (this._recordingInProgress()) {
this._updateToggleTimelineButton(false);
this._stopRecording();
}
var progressIndicator = new WebInspector.ProgressIndicator();
progressIndicator.addEventListener(WebInspector.Progress.Events.Done, this._setOperationInProgress.bind(this, null));
this._setOperationInProgress(progressIndicator);
return progressIndicator;
},
/**
* @param {?WebInspector.ProgressIndicator} indicator
*/
_setOperationInProgress: function(indicator)
{
this._operationInProgress = !!indicator;
for (var i = 0; i < this._statusBarButtons.length; ++i)
this._statusBarButtons[i].setEnabled(!this._operationInProgress);
this._miscStatusBarItems.removeChildren();
if (indicator)
this._miscStatusBarItems.appendChild(indicator.element);
},
_registerShortcuts: function()
{
this.registerShortcuts(WebInspector.ShortcutsScreen.TimelinePanelShortcuts.StartStopRecording, this._toggleTimelineButtonClicked.bind(this));
this.registerShortcuts(WebInspector.ShortcutsScreen.TimelinePanelShortcuts.SaveToFile, this._saveToFile.bind(this));
this.registerShortcuts(WebInspector.ShortcutsScreen.TimelinePanelShortcuts.LoadFromFile, this._selectFileToLoad.bind(this));
},
_createFileSelector: function()
{
if (this._fileSelectorElement)
this._fileSelectorElement.remove();
this._fileSelectorElement = WebInspector.createFileSelectorElement(this._loadFromFile.bind(this));
this.element.appendChild(this._fileSelectorElement);
},
_contextMenu: function(event)
{
var contextMenu = new WebInspector.ContextMenu(event);
contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Save Timeline data\u2026" : "Save Timeline Data\u2026"), this._saveToFile.bind(this), this._operationInProgress);
contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Load Timeline data\u2026" : "Load Timeline Data\u2026"), this._selectFileToLoad.bind(this), this._operationInProgress);
contextMenu.show();
},
/**
* @return {boolean}
*/
_saveToFile: function()
{
if (this._operationInProgress)
return true;
this._model.saveToFile();
return true;
},
/**
* @return {boolean}
*/
_selectFileToLoad: function() {
this._fileSelectorElement.click();
return true;
},
/**
* @param {!File} file
*/
_loadFromFile: function(file)
{
var progressIndicator = this._prepareToLoadTimeline();
if (!progressIndicator)
return;
this._model.loadFromFile(file, progressIndicator);
this._createFileSelector();
},
_refreshViews: function()
{
for (var i = 0; i < this._currentViews.length; ++i) {
var view = this._currentViews[i];
view.refreshRecords(this._textFilter._regex);
}
this._updateSelectionDetails();
},
/**
* @param {!WebInspector.StatusBarButton} button
*/
_overviewModeChanged: function(button)
{
var oldMode = this._overviewModeSetting.get();
if (oldMode === WebInspector.TimelinePanel.OverviewMode.Events) {
this._overviewModeSetting.set(WebInspector.TimelinePanel.OverviewMode.Frames);
button.toggled = true;
} else {
this._overviewModeSetting.set(WebInspector.TimelinePanel.OverviewMode.Events);
button.toggled = false;
}
this._onModeChanged();
},
_flameChartEnabledChanged: function()
{
var oldValue = this._flameChartEnabledSetting.get();
var newValue = !oldValue;
this._flameChartEnabledSetting.set(newValue);
this._flameChartToggleButton.toggled = newValue;
this._onModeChanged();
},
_onModeChanged: function()
{
this._stackView.detach();
var isFrameMode = this._overviewModeSetting.get() === WebInspector.TimelinePanel.OverviewMode.Frames;
this._removeAllModeViews();
this._overviewControls = [];
if (isFrameMode)
this._overviewControls.push(new WebInspector.TimelineFrameOverview(this._model, this._frameModel()));
else
this._overviewControls.push(new WebInspector.TimelineEventOverview(this._model, this._uiUtils));
if (this._tracingTimelineModel && this._flameChartEnabledSetting.get())
this._addModeView(new WebInspector.TimelineFlameChart(this, this._tracingTimelineModel, this._frameModel()));
else
this._addModeView(this._timelineView());
if (this._captureMemorySetting.get()) {
if (!isFrameMode) // Frame mode skews time, don't render aux overviews.
this._overviewControls.push(new WebInspector.TimelineMemoryOverview(this._model, this._uiUtils));
this._addModeView(new WebInspector.MemoryCountersGraph(this, this._model, this._uiUtils));
}
if (this._capturePowerSetting && this._capturePowerSetting.get() &&
WebInspector.targetManager.mainTarget().hasCapability(WebInspector.Target.Capabilities.CanProfilePower)) {
if (!isFrameMode) // Frame mode skews time, don't render aux overviews.
this._overviewControls.push(new WebInspector.TimelinePowerOverview(this._model));
this._addModeView(new WebInspector.TimelinePowerGraph(this, this._model));
}
if (this._lazyTimelineView)
this._lazyTimelineView.setFrameModel(isFrameMode ? this._frameModel() : null);
this._overviewPane.setOverviewControls(this._overviewControls);
this.doResize();
this._selection = null;
this._updateSelectionDetails();
this._stackView.show(this._searchableView.element);
},
/**
* @param {boolean} enabled
*/
_setUIControlsEnabled: function(enabled) {
function handler(uiControl)
{
uiControl.checkbox.disabled = !enabled;
uiControl.label.classList.toggle("dimmed", !enabled);
}
this._recordingOptionUIControls.forEach(handler);
},
/**
* @param {boolean} userInitiated
*/
_startRecording: function(userInitiated)
{
this._userInitiatedRecording = userInitiated;
var enableJSSampling = this._enableJSSamplingSettingSetting && this._enableJSSamplingSettingSetting.get();
this._model.startRecording(this._captureCausesSetting.get(), enableJSSampling, this._captureMemorySetting.get(), this._captureLayersAndPicturesSetting && this._captureLayersAndPicturesSetting.get());
if (this._lazyFrameModel)
this._lazyFrameModel.setMergeRecords(false);
for (var i = 0; i < this._overviewControls.length; ++i)
this._overviewControls[i].timelineStarted();
if (userInitiated)
WebInspector.userMetrics.TimelineStarted.record();
this._setUIControlsEnabled(false);
},
_stopRecording: function()
{
this._stopPending = true;
this._updateToggleTimelineButton(false);
this._userInitiatedRecording = false;
this._model.stopRecording();
if (this._progressElement)
this._updateProgress(WebInspector.UIString("Retrieving events\u2026"));
for (var i = 0; i < this._overviewControls.length; ++i)
this._overviewControls[i].timelineStopped();
this._setUIControlsEnabled(true);
},
_onSuspendStateChanged: function()
{
this._updateToggleTimelineButton(this.toggleTimelineButton.toggled);
},
/**
* @param {boolean} toggled
*/
_updateToggleTimelineButton: function(toggled)
{
this.toggleTimelineButton.toggled = toggled;
if (toggled) {
this.toggleTimelineButton.title = WebInspector.UIString("Stop");
this.toggleTimelineButton.setEnabled(true);
} else if (this._stopPending) {
this.toggleTimelineButton.title = WebInspector.UIString("Stop pending");
this.toggleTimelineButton.setEnabled(false);
} else if (WebInspector.targetManager.allTargetsSuspended()) {
this.toggleTimelineButton.title = WebInspector.anotherProfilerActiveLabel();
this.toggleTimelineButton.setEnabled(false);
} else {
this.toggleTimelineButton.title = WebInspector.UIString("Record");
this.toggleTimelineButton.setEnabled(true);
}
},
/**
* @return {boolean}
*/
_toggleTimelineButtonClicked: function()
{
if (!this.toggleTimelineButton.enabled())
return true;
if (this._operationInProgress)
return true;
if (this._recordingInProgress())
this._stopRecording();
else
this._startRecording(true);
return true;
},
_garbageCollectButtonClicked: function()
{
var targets = WebInspector.targetManager.targets();
for (var i = 0; i < targets.length; ++i)
targets[i].heapProfilerAgent().collectGarbage();
},
_onClearButtonClick: function()
{
if (this._tracingModel)
this._tracingModel.reset();
this._model.reset();
},
_onRecordsCleared: function()
{
this.requestWindowTimes(0, Infinity);
delete this._selection;
if (this._lazyFrameModel)
this._lazyFrameModel.reset();
for (var i = 0; i < this._currentViews.length; ++i)
this._currentViews[i].reset();
for (var i = 0; i < this._overviewControls.length; ++i)
this._overviewControls[i].reset();
this._selection = null;
this._updateSelectionDetails();
},
_onRecordingStarted: function()
{
this._updateToggleTimelineButton(true);
this._updateProgress(WebInspector.UIString("%d events collected", 0));
},
_recordingInProgress: function()
{
return this.toggleTimelineButton.toggled;
},
/**
* @param {!WebInspector.Event} event
*/
_onRecordingProgress: function(event)
{
this._updateProgress(WebInspector.UIString("%d events collected", event.data));
},
/**
* @param {!WebInspector.Event} event
*/
_onTracingBufferUsage: function(event)
{
var usage = /** @type {number} */ (event.data);
this._updateProgress(WebInspector.UIString("Buffer usage %d%", Math.round(usage * 100)));
},
/**
* @param {string} progressMessage
*/
_updateProgress: function(progressMessage)
{
if (!this._progressElement)
this._showProgressPane();
this._progressElement.textContent = progressMessage;
},
_showProgressPane: function()
{
this._hideProgressPane();
this._progressElement = this._detailsSplitView.mainElement().createChild("div", "timeline-progress-pane");
},
_hideProgressPane: function()
{
if (this._progressElement)
this._progressElement.remove();
delete this._progressElement;
},
_onRecordingStopped: function()
{
this._stopPending = false;
this._updateToggleTimelineButton(false);
if (this._lazyFrameModel) {
this._lazyFrameModel.reset();
if (this._tracingTimelineModel)
this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.inspectedTargetEvents(), this._tracingModel.sessionId());
else
this._lazyFrameModel.addRecords(this._model.records());
}
if (this._tracingTimelineModel) {
this.requestWindowTimes(this._tracingTimelineModel.minimumRecordTime(), this._tracingTimelineModel.maximumRecordTime());
this._refreshViews();
}
this._hideProgressPane();
this._overviewPane.update();
},
_onRecordAdded: function(event)
{
this._addRecord(/** @type {!WebInspector.TimelineModel.Record} */(event.data));
},
/**
* @param {!WebInspector.TimelineModel.Record} record
*/
_addRecord: function(record)
{
if (this._lazyFrameModel && !this._tracingModel)
this._lazyFrameModel.addRecord(record);
for (var i = 0; i < this._currentViews.length; ++i)
this._currentViews[i].addRecord(record);
this._updateSearchHighlight(false, true);
},
/**
* @param {!WebInspector.Event} event
*/
_willReloadPage: function(event)
{
if (this._operationInProgress || this._userInitiatedRecording || !this.isShowing())
return;
this._startRecording(false);
},
/**
* @param {!WebInspector.Event} event
*/
_loadEventFired: function(event)
{
if (!this._recordingInProgress() || this._userInitiatedRecording)
return;
this._stopRecording();
},
// WebInspector.Searchable implementation
jumpToNextSearchResult: function()
{
if (!this._searchResults || !this._searchResults.length)
return;
var index = this._selectedSearchResult ? this._searchResults.indexOf(this._selectedSearchResult) : -1;
this._jumpToSearchResult(index + 1);
},
jumpToPreviousSearchResult: function()
{
if (!this._searchResults || !this._searchResults.length)
return;
var index = this._selectedSearchResult ? this._searchResults.indexOf(this._selectedSearchResult) : 0;
this._jumpToSearchResult(index - 1);
},
/**
* @return {boolean}
*/
supportsCaseSensitiveSearch: function()
{
return false;
},
/**
* @return {boolean}
*/
supportsRegexSearch: function()
{
return false;
},
_jumpToSearchResult: function(index)
{
this._selectSearchResult((index + this._searchResults.length) % this._searchResults.length);
this._currentViews[0].highlightSearchResult(this._selectedSearchResult, this._searchRegex, true);
},
_selectSearchResult: function(index)
{
this._selectedSearchResult = this._searchResults[index];
this._searchableView.updateCurrentMatchIndex(index);
},
_clearHighlight: function()
{
this._currentViews[0].highlightSearchResult(null);
},
/**
* @param {boolean} revealRecord
* @param {boolean} shouldJump
* @param {boolean=} jumpBackwards
*/
_updateSearchHighlight: function(revealRecord, shouldJump, jumpBackwards)
{
if (!this._textFilter.isEmpty() || !this._searchRegex) {
this._clearHighlight();
return;
}
if (!this._searchResults)
this._updateSearchResults(shouldJump, jumpBackwards);
this._currentViews[0].highlightSearchResult(this._selectedSearchResult, this._searchRegex, revealRecord);
},
/**
* @param {boolean} shouldJump
* @param {boolean=} jumpBackwards
*/
_updateSearchResults: function(shouldJump, jumpBackwards)
{
var searchRegExp = this._searchRegex;
if (!searchRegExp)
return;
var matches = [];
/**
* @param {!WebInspector.TimelineModel.Record} record
* @this {WebInspector.TimelinePanel}
*/
function processRecord(record)
{
if (record.endTime() < this._windowStartTime ||
record.startTime() > this._windowEndTime)
return;
if (this._uiUtils.testContentMatching(record, searchRegExp))
matches.push(record);
}
this._model.forAllFilteredRecords(processRecord.bind(this));
var matchesCount = matches.length;
if (matchesCount) {
this._searchResults = matches;
this._searchableView.updateSearchMatchesCount(matchesCount);
var selectedIndex = matches.indexOf(this._selectedSearchResult);
if (shouldJump && selectedIndex === -1)
selectedIndex = jumpBackwards ? this._searchResults.length - 1 : 0;
this._selectSearchResult(selectedIndex);
} else {
this._searchableView.updateSearchMatchesCount(0);
delete this._selectedSearchResult;
}
},
searchCanceled: function()
{
this._clearHighlight();
delete this._searchResults;
delete this._selectedSearchResult;
delete this._searchRegex;
},
/**
* @param {!WebInspector.SearchableView.SearchConfig} searchConfig
* @param {boolean} shouldJump
* @param {boolean=} jumpBackwards
*/
performSearch: function(searchConfig, shouldJump, jumpBackwards)
{
var query = searchConfig.query;
this._searchRegex = createPlainTextSearchRegex(query, "i");
delete this._searchResults;
this._updateSearchHighlight(true, shouldJump, jumpBackwards);
},
_updateSelectionDetails: function()
{
if (!this._selection)
this._selection = WebInspector.TimelineSelection.fromRange(this._windowStartTime, this._windowEndTime);
switch (this._selection.type()) {
case WebInspector.TimelineSelection.Type.Record:
var record = /** @type {!WebInspector.TimelineModel.Record} */ (this._selection.object());
if (this._tracingTimelineModel) {
var event = record.traceEvent();
this._uiUtils.generateDetailsContent(record, this._model, this._detailsLinkifier, this._appendDetailsTabsForTraceEventAndShowDetails.bind(this, event));
break;
}
this._uiUtils.generateDetailsContent(record, this._model, this._detailsLinkifier, this.showInDetails.bind(this));
break;
case WebInspector.TimelineSelection.Type.TraceEvent:
var event = /** @type {!WebInspector.TracingModel.Event} */ (this._selection.object());
WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(event, this._tracingTimelineModel, this._detailsLinkifier, this._appendDetailsTabsForTraceEventAndShowDetails.bind(this, event));
break;
case WebInspector.TimelineSelection.Type.Frame:
var frame = /** @type {!WebInspector.TimelineFrame} */ (this._selection.object());
this.showInDetails(WebInspector.TimelineUIUtils.generateDetailsContentForFrame(this._lazyFrameModel, frame));
if (frame.layerTree) {
var layersView = this._layersView();
layersView.showLayerTree(frame.layerTree, frame.paints);
this._detailsView.appendTab(WebInspector.TimelinePanel.DetailsTab.LayerViewer, WebInspector.UIString("Layers"), layersView);
}
break;
case WebInspector.TimelineSelection.Type.Range:
this._updateSelectedRangeStats(this._selection._startTime, this._selection._endTime);
break;
}
},
/**
* @param {!WebInspector.TracingModel.Event} event
* @param {!Node} content
*/
_appendDetailsTabsForTraceEventAndShowDetails: function(event, content)
{
this.showInDetails(content);
this._showEventInPaintProfiler(event);
},
/**
* @param {!WebInspector.TracingModel.Event} event
* @param {boolean=} isCloseable
*/
_showEventInPaintProfiler: function(event, isCloseable)
{
if (!event.picture)
return;
var paintProfilerView = this._paintProfilerView();
if (!this._detailsView.hasTab(WebInspector.TimelinePanel.DetailsTab.PaintProfiler))
this._detailsView.appendTab(WebInspector.TimelinePanel.DetailsTab.PaintProfiler, WebInspector.UIString("Paint Profiler"), paintProfilerView, undefined, undefined, isCloseable);
this._detailsView.selectTab(WebInspector.TimelinePanel.DetailsTab.PaintProfiler, true);
event.picture.requestObject(onGotObject);
function onGotObject(result)
{
if (!result || !result["skp64"])
return;
paintProfilerView.setPicture(event.thread.target(), result["skp64"]);
}
},
/**
* @param {number} startTime
* @param {number} endTime
*/
_updateSelectedRangeStats: function(startTime, endTime)
{
var uiUtils = this._uiUtils;
// Return early in case 0 selection window.
if (startTime < 0)
return;
var aggregatedStats = {};
/**
* @param {number} value
* @param {!WebInspector.TimelineModel.Record} task
* @return {number}
*/
function compareEndTime(value, task)
{
return value < task.endTime() ? -1 : 1;
}
/**
* @param {!WebInspector.TimelineModel.Record} record
*/
function aggregateTimeForRecordWithinWindow(record)
{
if (!record.endTime() || record.endTime() < startTime || record.startTime() > endTime)
return;
var childrenTime = 0;
var children = record.children() || [];
for (var i = 0; i < children.length; ++i) {
var child = children[i];
if (!child.endTime() || child.endTime() < startTime || child.startTime() > endTime)
continue;
childrenTime += Math.min(endTime, child.endTime()) - Math.max(startTime, child.startTime());
aggregateTimeForRecordWithinWindow(child);
}
var categoryName = uiUtils.categoryForRecord(record).name;
var ownTime = Math.min(endTime, record.endTime()) - Math.max(startTime, record.startTime()) - childrenTime;
aggregatedStats[categoryName] = (aggregatedStats[categoryName] || 0) + ownTime;
}
var mainThreadTasks = this._model.mainThreadTasks();
var taskIndex = insertionIndexForObjectInListSortedByFunction(startTime, mainThreadTasks, compareEndTime);
for (; taskIndex < mainThreadTasks.length; ++taskIndex) {
var task = mainThreadTasks[taskIndex];
if (task.startTime() > endTime)
break;
aggregateTimeForRecordWithinWindow(task);
}
var aggregatedTotal = 0;
for (var categoryName in aggregatedStats)
aggregatedTotal += aggregatedStats[categoryName];
aggregatedStats["idle"] = Math.max(0, endTime - startTime - aggregatedTotal);
var contentHelper = new WebInspector.TimelineDetailsContentHelper(null, null, true);
var pieChart = WebInspector.TimelineUIUtils.generatePieChart(aggregatedStats);
var startOffset = startTime - this._model.minimumRecordTime();
var endOffset = endTime - this._model.minimumRecordTime();
contentHelper.appendTextRow(WebInspector.UIString("Range"), WebInspector.UIString("%s \u2013 %s", Number.millisToString(startOffset), Number.millisToString(endOffset)));
contentHelper.appendElementRow(WebInspector.UIString("Aggregated Time"), pieChart);
for (var i = 0; i < this._overviewControls.length; ++i) {
if (this._overviewControls[i] instanceof WebInspector.TimelinePowerOverview) {
var energy = this._overviewControls[i].calculateEnergy(startTime, endTime);
contentHelper.appendTextRow(WebInspector.UIString("Energy"), WebInspector.UIString("%.2f Joules", energy));
contentHelper.appendTextRow(WebInspector.UIString("Accuracy"), WebInspector.powerProfiler.getAccuracyLevel());
break;
}
}
this.showInDetails(contentHelper.element);
},
/**
* @param {?WebInspector.TimelineSelection} selection
* @param {!WebInspector.TimelinePanel.DetailsTab=} preferredTab
*/
select: function(selection, preferredTab)
{
this._detailsLinkifier.reset();
this._selection = selection;
if (preferredTab)
this._detailsView.setPreferredTab(preferredTab);
for (var i = 0; i < this._currentViews.length; ++i) {
var view = this._currentViews[i];
view.setSelection(selection);
}
this._updateSelectionDetails();
},
/**
* @param {!WebInspector.TimelineModel.Record} record
*/
showNestedRecordDetails: function(record)
{
if (!this._tracingTimelineModel)
return;
var event = record.traceEvent();
this._showEventInPaintProfiler(event, true);
},
/**
* @param {!Node} node
*/
showInDetails: function(node)
{
this._detailsView.setContent(node);
},
__proto__: WebInspector.Panel.prototype
}
/**
* @constructor
* @extends {WebInspector.TabbedPane}
*/
WebInspector.TimelineDetailsView = function()
{
WebInspector.TabbedPane.call(this);
this._defaultDetailsView = new WebInspector.VBox();
this._defaultDetailsView.element.classList.add("timeline-details-view");
this._defaultDetailsContentElement = this._defaultDetailsView.element.createChild("div", "timeline-details-view-body vbox");
this.appendTab(WebInspector.TimelinePanel.DetailsTab.Details, WebInspector.UIString("Details"), this._defaultDetailsView);
this.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, this._tabSelected, this);
}
WebInspector.TimelineDetailsView.prototype = {
/**
* @param {!Node} node
*/
setContent: function(node)
{
var otherTabs = this.otherTabs(WebInspector.TimelinePanel.DetailsTab.Details);
for (var i = 0; i < otherTabs.length; ++i)
this.closeTab(otherTabs[i]);
this._defaultDetailsContentElement.removeChildren();
this._defaultDetailsContentElement.appendChild(node);
},
/**
* @override
* @param {string} id
* @param {string} tabTitle
* @param {!WebInspector.View} view
* @param {string=} tabTooltip
* @param {boolean=} userGesture
* @param {boolean=} isCloseable
*/
appendTab: function(id, tabTitle, view, tabTooltip, userGesture, isCloseable)
{
WebInspector.TabbedPane.prototype.appendTab.call(this, id, tabTitle, view, tabTooltip, userGesture, isCloseable);
if (this._preferredTabId !== this.selectedTabId)
this.selectTab(id);
},
/**
* @param {!WebInspector.TimelinePanel.DetailsTab} tabId
*/
setPreferredTab: function(tabId)
{
this._preferredTabId = tabId;
},
_tabSelected: function(event)
{
if (!event.data.isUserGesture)
return;
this.setPreferredTab(event.data.tabId);
},
__proto__: WebInspector.TabbedPane.prototype
}
/**
* @constructor
*/
WebInspector.TimelineSelection = function()
{
}
/**
* @enum {string}
*/
WebInspector.TimelineSelection.Type = {
Record: "Record",
Frame: "Frame",
TraceEvent: "TraceEvent",
Range: "Range"
};
/**
* @param {!WebInspector.TimelineModel.Record} record
* @return {!WebInspector.TimelineSelection}
*/
WebInspector.TimelineSelection.fromRecord = function(record)
{
var selection = new WebInspector.TimelineSelection();
selection._type = WebInspector.TimelineSelection.Type.Record;
selection._object = record;
return selection;
}
/**
* @param {!WebInspector.TimelineFrame} frame
* @return {!WebInspector.TimelineSelection}
*/
WebInspector.TimelineSelection.fromFrame = function(frame)
{
var selection = new WebInspector.TimelineSelection();
selection._type = WebInspector.TimelineSelection.Type.Frame;
selection._object = frame;
return selection;
}
/**
* @param {!WebInspector.TracingModel.Event} event
* @return {!WebInspector.TimelineSelection}
*/
WebInspector.TimelineSelection.fromTraceEvent = function(event)
{
var selection = new WebInspector.TimelineSelection();
selection._type = WebInspector.TimelineSelection.Type.TraceEvent;
selection._object = event;
return selection;
}
/**
* @param {number} startTime
* @param {number} endTime
* @return {!WebInspector.TimelineSelection}
*/
WebInspector.TimelineSelection.fromRange = function(startTime, endTime)
{
var selection = new WebInspector.TimelineSelection();
selection._type = WebInspector.TimelineSelection.Type.Range;
selection._startTime = startTime;
selection._endTime = endTime;
return selection;
}
WebInspector.TimelineSelection.prototype = {
/**
* @return {!WebInspector.TimelineSelection.Type}
*/
type: function()
{
return this._type;
},
/**
* @return {!Object}
*/
object: function()
{
return this._object;
}
};
/**
* @interface
* @extends {WebInspector.EventTarget}
*/
WebInspector.TimelineModeView = function()
{
}
WebInspector.TimelineModeView.prototype = {
/**
* @return {!WebInspector.View}
*/
view: function() {},
dispose: function() {},
reset: function() {},
/**
* @param {?RegExp} textFilter
*/
refreshRecords: function(textFilter) {},
/**
* @param {!WebInspector.TimelineModel.Record} record
*/
addRecord: function(record) {},
/**
* @param {?WebInspector.TimelineModel.Record} record
* @param {string=} regex
* @param {boolean=} selectRecord
*/
highlightSearchResult: function(record, regex, selectRecord) {},
/**
* @param {number} startTime
* @param {number} endTime
*/
setWindowTimes: function(startTime, endTime) {},
/**
* @param {number} width
*/
setSidebarSize: function(width) {},
/**
* @param {?WebInspector.TimelineSelection} selection
*/
setSelection: function(selection) {},
}
/**
* @interface
*/
WebInspector.TimelineModeViewDelegate = function() {}
WebInspector.TimelineModeViewDelegate.prototype = {
/**
* @param {number} startTime
* @param {number} endTime
*/
requestWindowTimes: function(startTime, endTime) {},
/**
* @param {?WebInspector.TimelineSelection} selection
* @param {!WebInspector.TimelinePanel.DetailsTab=} preferredTab
*/
select: function(selection, preferredTab) {},
/**
* @param {!WebInspector.TimelineModel.Record} record
*/
showNestedRecordDetails: function(record) {},
/**
* @param {!Node} node
*/
showInDetails: function(node) {},
}
/**
* @constructor
* @extends {WebInspector.TimelineModel.Filter}
* @param {!WebInspector.TimelineUIUtils} uiUtils
*/
WebInspector.TimelineCategoryFilter = function(uiUtils)
{
WebInspector.TimelineModel.Filter.call(this);
this._uiUtils = uiUtils;
}
WebInspector.TimelineCategoryFilter.prototype = {
/**
* @param {!WebInspector.TimelineModel.Record} record
* @return {boolean}
*/
accept: function(record)
{
return !this._uiUtils.categoryForRecord(record).hidden;
},
__proto__: WebInspector.TimelineModel.Filter.prototype
}
/**
* @constructor
* @extends {WebInspector.TimelineModel.Filter}
*/
WebInspector.TimelineIsLongFilter = function()
{
WebInspector.TimelineModel.Filter.call(this);
this._minimumRecordDuration = 0;
}
WebInspector.TimelineIsLongFilter.prototype = {
/**
* @param {number} value
*/
setMinimumRecordDuration: function(value)
{
this._minimumRecordDuration = value;
this.notifyFilterChanged();
},
/**
* @param {!WebInspector.TimelineModel.Record} record
* @return {boolean}
*/
accept: function(record)
{
return this._minimumRecordDuration ? ((record.endTime() - record.startTime()) >= this._minimumRecordDuration) : true;
},
__proto__: WebInspector.TimelineModel.Filter.prototype
}
/**
* @constructor
* @extends {WebInspector.TimelineModel.Filter}
* @param {!WebInspector.TimelineUIUtils} uiUtils
*/
WebInspector.TimelineTextFilter = function(uiUtils)
{
WebInspector.TimelineModel.Filter.call(this);
this._uiUtils = uiUtils;
}
WebInspector.TimelineTextFilter.prototype = {
/**
* @return {boolean}
*/
isEmpty: function()
{
return !this._regex;
},
/**
* @param {?RegExp} regex
*/
setRegex: function(regex)
{
this._regex = regex;
this.notifyFilterChanged();
},
/**
* @param {!WebInspector.TimelineModel.Record} record
* @return {boolean}
*/
accept: function(record)
{
return !this._regex || this._uiUtils.testContentMatching(record, this._regex);
},
__proto__: WebInspector.TimelineModel.Filter.prototype
}
WebInspector.TimelinePanel.show = function()
{
WebInspector.inspectorView.setCurrentPanel(WebInspector.TimelinePanel._instance());
}
/**
* @return {!WebInspector.TimelinePanel}
*/
WebInspector.TimelinePanel._instance = function()
{
if (!WebInspector.TimelinePanel._instanceObject)
WebInspector.TimelinePanel._instanceObject = new WebInspector.TimelinePanel();
return WebInspector.TimelinePanel._instanceObject;
}
/**
* @constructor
* @implements {WebInspector.PanelFactory}
*/
WebInspector.TimelinePanelFactory = function()
{
}
WebInspector.TimelinePanelFactory.prototype = {
/**
* @return {!WebInspector.Panel}
*/
createPanel: function()
{
return WebInspector.TimelinePanel._instance();
}
}
|
smilusingjavascript/blink
|
Source/devtools/front_end/timeline/TimelinePanel.js
|
JavaScript
|
bsd-3-clause
| 56,446
|
#ifndef ELECTRON_H
#define ELECTRON_H
#include "Particle.h"
class Electron : public Particle {
public:
Electron(double energy, double position, Particle* parent, ResultStore* results);
virtual ~Electron();
protected:
virtual Particle::DecayType TerminalDecay() const;
virtual Particle::DecayType Decay();
virtual void CountResult();
static const double ELECTRON_RAD_LENGTH;
static const double ELECTRON_TERM_DECAY_LENGTH;
static const double ELECTRON_TERM_DECAY_ENERGY;
};
#endif
|
ddamiani/cosmic-sim
|
cpp/include/Electron.h
|
C
|
bsd-3-clause
| 510
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cobalt/media/formats/mp2t/ts_section_pat.h"
#include <vector>
#include "base/logging.h"
#include "cobalt/media/base/bit_reader.h"
#include "cobalt/media/formats/mp2t/mp2t_common.h"
namespace cobalt {
namespace media {
namespace mp2t {
TsSectionPat::TsSectionPat(const RegisterPmtCb& register_pmt_cb)
: register_pmt_cb_(register_pmt_cb), version_number_(-1) {}
TsSectionPat::~TsSectionPat() {}
bool TsSectionPat::ParsePsiSection(BitReader* bit_reader) {
// Read the fixed section length.
int table_id;
int section_syntax_indicator;
int dummy_zero;
int reserved;
int section_length;
int transport_stream_id;
int version_number;
int current_next_indicator;
int section_number;
int last_section_number;
RCHECK(bit_reader->ReadBits(8, &table_id));
RCHECK(bit_reader->ReadBits(1, §ion_syntax_indicator));
RCHECK(bit_reader->ReadBits(1, &dummy_zero));
RCHECK(bit_reader->ReadBits(2, &reserved));
RCHECK(bit_reader->ReadBits(12, §ion_length));
RCHECK(section_length >= 5);
RCHECK(section_length <= 1021);
RCHECK(bit_reader->ReadBits(16, &transport_stream_id));
RCHECK(bit_reader->ReadBits(2, &reserved));
RCHECK(bit_reader->ReadBits(5, &version_number));
RCHECK(bit_reader->ReadBits(1, ¤t_next_indicator));
RCHECK(bit_reader->ReadBits(8, §ion_number));
RCHECK(bit_reader->ReadBits(8, &last_section_number));
section_length -= 5;
// Perform a few verifications:
// - Table ID should be 0 for a PAT.
// - section_syntax_indicator should be one.
// - section length should not exceed 1021
RCHECK(table_id == 0x0);
RCHECK(section_syntax_indicator);
RCHECK(!dummy_zero);
// Both the program table and the CRC have a size multiple of 4.
// Note for pmt_pid_count: minus 4 to account for the CRC.
RCHECK((section_length % 4) == 0);
int pmt_pid_count = (section_length - 4) / 4;
// Read the variable length section: program table & crc.
std::vector<int> program_number_array(pmt_pid_count);
std::vector<int> pmt_pid_array(pmt_pid_count);
for (int k = 0; k < pmt_pid_count; k++) {
int reserved;
RCHECK(bit_reader->ReadBits(16, &program_number_array[k]));
RCHECK(bit_reader->ReadBits(3, &reserved));
RCHECK(bit_reader->ReadBits(13, &pmt_pid_array[k]));
}
int crc32;
RCHECK(bit_reader->ReadBits(32, &crc32));
// Just ignore the PAT if not applicable yet.
if (!current_next_indicator) {
DVLOG(1) << "Not supported: received a PAT not applicable yet";
return true;
}
// Ignore the program table if it hasn't changed.
if (version_number == version_number_) return true;
// Both the MSE and the HLS spec specifies that TS streams should convey
// exactly one program.
if (pmt_pid_count > 1) {
DVLOG(1) << "Multiple programs detected in the Mpeg2 TS stream";
return false;
}
// Can now register the PMT.
#if !defined(NDEBUG)
int expected_version_number = version_number;
if (version_number_ >= 0)
expected_version_number = (version_number_ + 1) % 32;
DVLOG_IF(1, version_number != expected_version_number)
<< "Unexpected version number: " << version_number << " vs "
<< version_number_;
#endif
for (int k = 0; k < pmt_pid_count; k++) {
if (program_number_array[k] != 0) {
// Program numbers different from 0 correspond to PMT.
register_pmt_cb_.Run(program_number_array[k], pmt_pid_array[k]);
// Even if there are multiple programs, only one can be supported now.
// HLS: "Transport Stream segments MUST contain a single MPEG-2 Program."
break;
}
}
version_number_ = version_number;
return true;
}
void TsSectionPat::ResetPsiSection() { version_number_ = -1; }
} // namespace mp2t
} // namespace media
} // namespace cobalt
|
youtube/cobalt
|
cobalt/media/formats/mp2t/ts_section_pat.cc
|
C++
|
bsd-3-clause
| 3,920
|
const express = require('express');
const ErrorsMiddleware = require('../middlewares/errors');
const HealthyCheckController = require('../controllers/healthyCheck');
const v1 = require('./v1');
const router = express.Router();
// Healthy check
router.get('/', HealthyCheckController.index);
// API versions
router.use('/v1', v1);
// catch 404 and forward to error handler
router.use(ErrorsMiddleware.notFound);
// error handler
router.use(ErrorsMiddleware.generic);
module.exports = router;
|
involvestecnologia/business-chat-spike
|
backend/src/routes/index.js
|
JavaScript
|
bsd-3-clause
| 498
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.compositor;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
import android.support.v4.widget.ExploreByTouchHelper;
import android.util.AttributeSet;
import android.util.Pair;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import android.view.inputmethod.InputMethodManager;
import android.widget.FrameLayout;
import org.chromium.base.SysUtils;
import org.chromium.base.TraceEvent;
import org.chromium.base.annotations.SuppressFBWarnings;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.EmptyTabObserver;
import org.chromium.chrome.browser.Tab;
import org.chromium.chrome.browser.TabObserver;
import org.chromium.chrome.browser.compositor.Invalidator.Client;
import org.chromium.chrome.browser.compositor.layouts.LayoutManager;
import org.chromium.chrome.browser.compositor.layouts.LayoutManagerHost;
import org.chromium.chrome.browser.compositor.layouts.LayoutRenderHost;
import org.chromium.chrome.browser.compositor.layouts.components.VirtualView;
import org.chromium.chrome.browser.compositor.layouts.content.ContentOffsetProvider;
import org.chromium.chrome.browser.compositor.layouts.content.TabContentManager;
import org.chromium.chrome.browser.contextualsearch.ContextualSearchManagementDelegate;
import org.chromium.chrome.browser.device.DeviceClassManager;
import org.chromium.chrome.browser.fullscreen.ChromeFullscreenManager;
import org.chromium.chrome.browser.fullscreen.ChromeFullscreenManager.FullscreenListener;
import org.chromium.chrome.browser.tabmodel.EmptyTabModelSelectorObserver;
import org.chromium.chrome.browser.tabmodel.TabCreatorManager;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.widget.ControlContainer;
import org.chromium.content.browser.ContentReadbackHandler;
import org.chromium.content.browser.ContentViewCore;
import org.chromium.content.browser.SPenSupport;
import org.chromium.ui.UiUtils;
import org.chromium.ui.base.DeviceFormFactor;
import org.chromium.ui.base.WindowAndroid;
import org.chromium.ui.resources.ResourceManager;
import org.chromium.ui.resources.dynamics.DynamicResourceLoader;
import org.chromium.ui.resources.dynamics.ViewResourceAdapter;
import java.util.ArrayList;
import java.util.List;
/**
* This class holds a {@link CompositorView}. This level of indirection is needed to benefit from
* the {@link android.view.ViewGroup#onInterceptTouchEvent(android.view.MotionEvent)} capability on
* available on {@link android.view.ViewGroup}s.
* This class also holds the {@link LayoutManager} responsible to describe the items to be
* drawn by the UI compositor on the native side.
*/
public class CompositorViewHolder extends FrameLayout
implements LayoutManagerHost, LayoutRenderHost, Invalidator.Host, FullscreenListener {
private static List<View> sCachedViewList = new ArrayList<View>();
private static List<ContentViewCore> sCachedCVCList = new ArrayList<ContentViewCore>();
private boolean mIsKeyboardShowing = false;
private final Invalidator mInvalidator = new Invalidator();
private LayoutManager mLayoutManager;
private LayerTitleCache mLayerTitleCache;
private CompositorView mCompositorView;
private boolean mContentOverlayVisiblity = true;
private int mPendingSwapBuffersCount;
private final ArrayList<Invalidator.Client> mPendingInvalidations =
new ArrayList<Invalidator.Client>();
private boolean mSkipInvalidation = false;
private boolean mSkipNextToolbarTextureUpdate = false;
/**
* A task to be performed after a resize event.
*/
private Runnable mPostHideKeyboardTask;
private TabModelSelector mTabModelSelector;
private ChromeFullscreenManager mFullscreenManager;
private View mAccessibilityView;
private CompositorAccessibilityProvider mNodeProvider;
private boolean mFullscreenTouchEvent = false;
private float mLastContentOffset = 0;
private float mLastVisibleContentOffset = 0;
/** The toolbar control container. **/
private ControlContainer mControlContainer;
/** The currently visible Tab. */
private Tab mTabVisible;
/** The currently attached View. */
private View mView;
private TabObserver mTabObserver;
private boolean mEnableCompositorTabStrip;
// Cache objects that should not be created frequently.
private final Rect mCacheViewport = new Rect();
private final Rect mCacheVisibleViewport = new Rect();
// If we've drawn at least one frame.
private boolean mHasDrawnOnce = false;
/**
* This view is created on demand to display debugging information.
*/
private static class DebugOverlay extends View {
private final List<Pair<Rect, Integer>> mRectangles = new ArrayList<Pair<Rect, Integer>>();
private final Paint mPaint = new Paint();
private boolean mFirstPush = true;
/**
* @param context The current Android's context.
*/
public DebugOverlay(Context context) {
super(context);
}
/**
* Pushes a rectangle to be drawn on the screen on top of everything.
*
* @param rect The rectangle to be drawn on screen
* @param color The color of the rectangle
*/
public void pushRect(Rect rect, int color) {
if (mFirstPush) {
mRectangles.clear();
mFirstPush = false;
}
mRectangles.add(new Pair<Rect, Integer>(rect, color));
invalidate();
}
@SuppressFBWarnings("NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD")
@Override
protected void onDraw(Canvas canvas) {
for (int i = 0; i < mRectangles.size(); i++) {
mPaint.setColor(mRectangles.get(i).second);
canvas.drawRect(mRectangles.get(i).first, mPaint);
}
mFirstPush = true;
}
}
private DebugOverlay mDebugOverlay;
private View mUrlBar;
/**
* Creates a {@link CompositorView}.
* @param c The Context to create this {@link CompositorView} in.
*/
public CompositorViewHolder(Context c) {
super(c);
internalInit();
}
/**
* Creates a {@link CompositorView}.
* @param c The Context to create this {@link CompositorView} in.
* @param attrs The AttributeSet used to create this {@link CompositorView}.
*/
public CompositorViewHolder(Context c, AttributeSet attrs) {
super(c, attrs);
internalInit();
}
private void internalInit() {
mTabObserver = new EmptyTabObserver() {
@Override
public void onContentChanged(Tab tab) {
CompositorViewHolder.this.onContentChanged();
}
@Override
public void onOverlayContentViewCoreAdded(Tab tab, ContentViewCore content) {
initializeContentViewCore(content);
setSizeOfUnattachedView(content.getContainerView());
}
};
mEnableCompositorTabStrip = DeviceFormFactor.isTablet(getContext());
addOnLayoutChangeListener(new OnLayoutChangeListener() {
@Override
public void onLayoutChange(View v, int left, int top, int right, int bottom,
int oldLeft, int oldTop, int oldRight, int oldBottom) {
propagateViewportToLayouts(right - left, bottom - top);
// If there's an event that needs to occur after the keyboard is hidden, post
// it as a delayed event. Otherwise this happens in the midst of the
// ContentView's relayout, which causes the ContentView to relayout on top of the
// stack view. The 30ms is arbitrary, hoping to let the view get one repaint
// in so the full page is shown.
if (mPostHideKeyboardTask != null) {
new Handler().postDelayed(mPostHideKeyboardTask, 30);
mPostHideKeyboardTask = null;
}
}
});
mCompositorView = new CompositorView(getContext(), this);
addView(mCompositorView,
new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
}
/**
* @param layoutManager The {@link LayoutManager} instance that will be driving what
* shows in this {@link CompositorViewHolder}.
*/
public void setLayoutManager(LayoutManager layoutManager) {
mLayoutManager = layoutManager;
propagateViewportToLayouts(getWidth(), getHeight());
}
/**
* @param view The root view of the hierarchy.
*/
public void setRootView(View view) {
mCompositorView.setRootView(view);
}
/**
* @param controlContainer The ControlContainer.
*/
public void setControlContainer(ControlContainer controlContainer) {
DynamicResourceLoader loader = mCompositorView.getResourceManager() != null
? mCompositorView.getResourceManager().getDynamicResourceLoader()
: null;
if (loader != null && mControlContainer != null) {
loader.unregisterResource(R.id.control_container);
loader.unregisterResource(R.id.progress);
}
mControlContainer = controlContainer;
if (loader != null && mControlContainer != null) {
loader.registerResource(
R.id.control_container, mControlContainer.getToolbarResourceAdapter());
ViewResourceAdapter progressAdapter = mControlContainer.getProgressResourceAdapter();
if (progressAdapter != null) {
loader.registerResource(R.id.progress, progressAdapter);
}
}
}
/**
* @return The CompositorView.
*/
public SurfaceHolder.Callback2 getSurfaceHolderCallback2() {
return mCompositorView;
}
/**
* Reset command line flags. This gets called after the native library finishes
* loading.
*/
public void resetFlags() {
mCompositorView.resetFlags();
}
/**
* Should be called for cleanup when the CompositorView instance is no longer used.
*/
public void shutDown() {
setTab(null);
if (mLayerTitleCache != null) mLayerTitleCache.shutDown();
mCompositorView.shutDown();
}
/**
* This is called when the native library are ready.
*/
public void onNativeLibraryReady(
WindowAndroid windowAndroid, TabContentManager tabContentManager) {
assert mLayerTitleCache == null : "Should be called once";
if (DeviceClassManager.enableLayerDecorationCache()) {
mLayerTitleCache = new LayerTitleCache(getContext());
}
mCompositorView.initNativeCompositor(
SysUtils.isLowEndDevice(), windowAndroid, mLayerTitleCache, tabContentManager);
if (mLayerTitleCache != null) {
mLayerTitleCache.setResourceManager(getResourceManager());
}
if (mControlContainer != null) {
mCompositorView.getResourceManager().getDynamicResourceLoader().registerResource(
R.id.control_container, mControlContainer.getToolbarResourceAdapter());
ViewResourceAdapter progressAdapter = mControlContainer.getProgressResourceAdapter();
if (progressAdapter != null) {
mCompositorView.getResourceManager().getDynamicResourceLoader().registerResource(
R.id.progress, progressAdapter);
}
}
}
@Override
public ResourceManager getResourceManager() {
return mCompositorView.getResourceManager();
}
public ContentOffsetProvider getContentOffsetProvider() {
return mCompositorView;
}
/**
* @return The content readback handler.
*/
public ContentReadbackHandler getContentReadbackHandler() {
if (mCompositorView == null) return null;
return mCompositorView.getContentReadbackHandler();
}
/**
* @return The {@link DynamicResourceLoader} for registering resources.
*/
public DynamicResourceLoader getDynamicResourceLoader() {
return mCompositorView.getResourceManager().getDynamicResourceLoader();
}
/**
* @return The {@link Invalidator} instance that is driven by this {@link CompositorViewHolder}.
*/
public Invalidator getInvalidator() {
return mInvalidator;
}
@Override
public boolean onInterceptTouchEvent(MotionEvent e) {
super.onInterceptTouchEvent(e);
if (mLayoutManager == null) return false;
mFullscreenTouchEvent = false;
if (mFullscreenManager != null && mFullscreenManager.onInterceptMotionEvent(e)
&& !mEnableCompositorTabStrip) {
// Don't eat the event if the new tab strip is enabled.
mFullscreenTouchEvent = true;
return true;
}
setContentViewMotionEventOffsets(e, false);
return mLayoutManager.onInterceptTouchEvent(e, mIsKeyboardShowing);
}
@Override
public boolean onTouchEvent(MotionEvent e) {
if (mFullscreenManager != null) mFullscreenManager.onMotionEvent(e);
if (mFullscreenTouchEvent) return true;
boolean consumed = mLayoutManager != null && mLayoutManager.onTouchEvent(e);
setContentViewMotionEventOffsets(e, true);
return consumed;
}
@Override
public boolean onInterceptHoverEvent(MotionEvent e) {
setContentViewMotionEventOffsets(e, true);
return super.onInterceptHoverEvent(e);
}
@Override
public boolean dispatchHoverEvent(MotionEvent e) {
if (mNodeProvider != null) {
if (mNodeProvider.dispatchHoverEvent(e)) {
return true;
}
}
return super.dispatchHoverEvent(e);
}
/**
* @return The {@link LayoutManager} associated with this view.
*/
public LayoutManager getLayoutManager() {
return mLayoutManager;
}
/**
* @return The SurfaceView used by the Compositor.
*/
public SurfaceView getSurfaceView() {
return mCompositorView;
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
if (mLayoutManager == null) return;
sCachedViewList.clear();
mLayoutManager.getActiveLayout().getAllViews(sCachedViewList);
boolean resized = false;
for (int i = 0; i < sCachedViewList.size(); i++) {
resized |= setSizeOfUnattachedView(sCachedViewList.get(i));
}
sCachedViewList.clear();
if (resized) requestRender();
}
@Override
public void onPhysicalBackingSizeChanged(int width, int height) {
if (mLayoutManager == null) return;
sCachedCVCList.clear();
mLayoutManager.getActiveLayout().getAllContentViewCores(sCachedCVCList);
for (int i = 0; i < sCachedCVCList.size(); i++) {
sCachedCVCList.get(i).onPhysicalBackingSizeChanged(width, height);
}
sCachedCVCList.clear();
}
@Override
public void onOverdrawBottomHeightChanged(int overdrawHeight) {
if (mLayoutManager == null) return;
sCachedCVCList.clear();
mLayoutManager.getActiveLayout().getAllContentViewCores(sCachedCVCList);
for (int i = 0; i < sCachedCVCList.size(); i++) {
sCachedCVCList.get(i).onOverdrawBottomHeightChanged(overdrawHeight);
}
sCachedCVCList.clear();
mSkipNextToolbarTextureUpdate = true;
requestRender();
}
@Override
public int getCurrentOverdrawBottomHeight() {
if (mTabVisible != null) {
float overdrawBottomHeight = mTabVisible.getFullscreenOverdrawBottomHeightPix();
if (!Float.isNaN(overdrawBottomHeight)) {
return (int) overdrawBottomHeight;
}
}
return mCompositorView.getOverdrawBottomHeight();
}
/**
* Called whenever the host activity is started.
*/
public void onStart() {
if (mFullscreenManager != null) {
mLastContentOffset = mFullscreenManager.getContentOffset();
mLastVisibleContentOffset = mFullscreenManager.getVisibleContentOffset();
mFullscreenManager.addListener(this);
}
requestRender();
}
/**
* Called whenever the host activity is stopped.
*/
public void onStop() {
if (mFullscreenManager != null) mFullscreenManager.removeListener(this);
}
@Override
public void onContentOffsetChanged(float offset) {
mLastContentOffset = offset;
propagateViewportToLayouts(getWidth(), getHeight());
}
@Override
public void onVisibleContentOffsetChanged(float offset) {
mLastVisibleContentOffset = offset;
propagateViewportToLayouts(getWidth(), getHeight());
requestRender();
}
@Override
public void onToggleOverlayVideoMode(boolean enabled) {
if (mCompositorView != null) {
mCompositorView.setOverlayVideoMode(enabled);
}
}
private void setContentViewMotionEventOffsets(MotionEvent e, boolean canClear) {
// TODO(dtrainor): Factor this out to LayoutDriver.
if (e == null || mTabVisible == null) return;
ContentViewCore contentViewCore = mTabVisible.getContentViewCore();
if (contentViewCore == null) return;
int actionMasked = e.getActionMasked();
if (SPenSupport.isSPenSupported(getContext())) {
actionMasked = SPenSupport.convertSPenEventAction(actionMasked);
}
if (actionMasked == MotionEvent.ACTION_DOWN
|| actionMasked == MotionEvent.ACTION_HOVER_ENTER) {
if (mLayoutManager != null) mLayoutManager.getViewportPixel(mCacheViewport);
contentViewCore.setCurrentMotionEventOffsets(-mCacheViewport.left, -mCacheViewport.top);
} else if (canClear && (actionMasked == MotionEvent.ACTION_UP
|| actionMasked == MotionEvent.ACTION_CANCEL
|| actionMasked == MotionEvent.ACTION_HOVER_EXIT)) {
contentViewCore.setCurrentMotionEventOffsets(0.f, 0.f);
}
}
private void propagateViewportToLayouts(int contentWidth, int contentHeight) {
int heightMinusTopControls = contentHeight - getTopControlsHeightPixels();
mCacheViewport.set(0, (int) mLastContentOffset, contentWidth, contentHeight);
mCacheVisibleViewport.set(0, (int) mLastVisibleContentOffset, contentWidth, contentHeight);
// TODO(changwan): check if this can be merged with setContentMotionEventOffsets.
if (mTabVisible != null && mTabVisible.getContentViewCore() != null) {
mTabVisible.getContentViewCore().setSmartClipOffsets(
-mCacheViewport.left, -mCacheViewport.top);
}
if (mLayoutManager != null) {
mLayoutManager.pushNewViewport(
mCacheViewport, mCacheVisibleViewport, heightMinusTopControls);
}
}
/**
* To be called once a frame before commit.
*/
@Override
public void onCompositorLayout() {
TraceEvent.begin("CompositorViewHolder:layout");
if (mLayoutManager != null) {
mLayoutManager.onUpdate();
mCompositorView.finalizeLayers(mLayoutManager, mSkipNextToolbarTextureUpdate);
// TODO(changwan): Check if this hack can be removed.
// This is a hack to draw one more frame if the screen just rotated for Nexus 10 + L.
// See http://crbug/440469 for more.
if (mSkipNextToolbarTextureUpdate) {
requestRender();
}
}
TraceEvent.end("CompositorViewHolder:layout");
mSkipNextToolbarTextureUpdate = false;
}
@Override
public void requestRender() {
mCompositorView.requestRender();
}
@Override
public void onSurfaceCreated() {
mPendingSwapBuffersCount = 0;
flushInvalidation();
}
@Override
public void onSwapBuffersCompleted(int pendingSwapBuffersCount) {
TraceEvent.instant("onSwapBuffersCompleted");
// Wait until the second frame to turn off the placeholder background on
// tablets so the tab strip has time to start drawing.
final ViewGroup controlContainer = (ViewGroup) mControlContainer;
if (controlContainer != null && controlContainer.getBackground() != null && mHasDrawnOnce) {
post(new Runnable() {
@Override
public void run() {
controlContainer.setBackgroundResource(0);
}
});
}
mHasDrawnOnce = true;
mPendingSwapBuffersCount = pendingSwapBuffersCount;
if (!mSkipInvalidation || pendingSwapBuffersCount == 0) flushInvalidation();
mSkipInvalidation = !mSkipInvalidation;
}
@Override
public void setContentOverlayVisibility(boolean show) {
if (show != mContentOverlayVisiblity) {
mContentOverlayVisiblity = show;
updateContentOverlayVisibility(mContentOverlayVisiblity);
}
}
@Override
public LayoutRenderHost getLayoutRenderHost() {
return this;
}
@Override
public int getLayoutTabsDrawnCount() {
return mCompositorView.getLastLayerCount();
}
@Override
public void pushDebugRect(Rect rect, int color) {
if (mDebugOverlay == null) {
mDebugOverlay = new DebugOverlay(getContext());
addView(mDebugOverlay);
}
mDebugOverlay.pushRect(rect, color);
}
@Override
public void loadPersitentTextureDataIfNeeded() {}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
mIsKeyboardShowing = UiUtils.isKeyboardShowing(getContext(), this);
}
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
if (changed) {
propagateViewportToLayouts(r - l, b - t);
}
super.onLayout(changed, l, t, r, b);
invalidateAccessibilityProvider();
}
@Override
public void clearChildFocus(View child) {
// Override this method so that the ViewRoot doesn't go looking for a new
// view to take focus. It will find the URL Bar, focus it, then refocus this
// later, causing a keyboard flicker.
}
@Override
public ChromeFullscreenManager getFullscreenManager() {
return mFullscreenManager;
}
/**
* Sets a fullscreen handler.
* @param fullscreen A fullscreen handler.
*/
public void setFullscreenHandler(ChromeFullscreenManager fullscreen) {
mFullscreenManager = fullscreen;
if (mFullscreenManager != null) {
mLastContentOffset = mFullscreenManager.getContentOffset();
mLastVisibleContentOffset = mFullscreenManager.getVisibleContentOffset();
mFullscreenManager.addListener(this);
}
propagateViewportToLayouts(getWidth(), getHeight());
}
/**
* Note that the returned rect is reused for other calls.
*/
@Override
public Rect getVisibleViewport(Rect rect) {
if (rect == null) rect = new Rect();
rect.set(0, (int) mLastVisibleContentOffset, getWidth(), getHeight());
return rect;
}
@Override
public boolean areTopControlsPermanentlyHidden() {
return mFullscreenManager != null && mFullscreenManager.areTopControlsPermanentlyHidden();
}
@Override
public int getTopControlsHeightPixels() {
return mFullscreenManager != null ? mFullscreenManager.getTopControlsHeight() : 0;
}
/**
* Sets the URL bar. This is needed so that the ContentViewHolder can find out
* whether it can claim focus.
*/
public void setUrlBar(View urlBar) {
mUrlBar = urlBar;
}
@Override
protected void onAttachedToWindow() {
mInvalidator.set(this);
super.onAttachedToWindow();
}
@Override
protected void onDetachedFromWindow() {
if (mLayoutManager != null) mLayoutManager.destroy();
flushInvalidation();
mInvalidator.set(null);
super.onDetachedFromWindow();
// Removes the accessibility node provider from this view.
if (mNodeProvider != null) {
mAccessibilityView.setAccessibilityDelegate(null);
mNodeProvider = null;
removeView(mAccessibilityView);
mAccessibilityView = null;
}
}
/**
* @return True if the currently active content view is shown in the normal interactive mode.
*/
public boolean isTabInteractive() {
return mLayoutManager != null && mLayoutManager.getActiveLayout() != null
&& mLayoutManager.getActiveLayout().isTabInteractive() && mContentOverlayVisiblity
&& mView != null;
}
/**
* Hides the the keyboard if it was opened for the ContentView.
* @param postHideTask A task to run after the keyboard is done hiding and the view's
* layout has been updated. If the keyboard was not shown, the task will run
* immediately.
*/
public void hideKeyboard(Runnable postHideTask) {
// When this is called we actually want to hide the keyboard whatever owns it.
// This includes hiding the keyboard, and dropping focus from the URL bar.
// See http://crbug/236424
// TODO(aberent) Find a better place to put this, possibly as part of a wider
// redesign of focus control.
if (mUrlBar != null) mUrlBar.clearFocus();
boolean wasVisible = false;
if (hasFocus()) {
wasVisible = UiUtils.hideKeyboard(this);
}
if (wasVisible) {
mPostHideKeyboardTask = postHideTask;
} else {
postHideTask.run();
}
}
/**
* Sets the appropriate objects this class should represent.
* @param tabModelSelector The {@link TabModelSelector} this View should hold and
* represent.
* @param tabCreatorManager The {@link TabCreatorManager} for this view.
* @param tabContentManager The {@link TabContentManager} for the tabs.
* @param androidContentContainer The {@link ViewGroup} the {@link LayoutManager} should bind
* Android content to.
* @param contextualSearchManager A {@link ContextualSearchManagementDelegate} instance.
*/
public void onFinishNativeInitialization(TabModelSelector tabModelSelector,
TabCreatorManager tabCreatorManager, TabContentManager tabContentManager,
ViewGroup androidContentContainer,
ContextualSearchManagementDelegate contextualSearchManager) {
assert mLayoutManager != null;
mLayoutManager.init(tabModelSelector, tabCreatorManager, tabContentManager,
androidContentContainer, contextualSearchManager,
mCompositorView.getResourceManager().getDynamicResourceLoader());
mTabModelSelector = tabModelSelector;
tabModelSelector.addObserver(new EmptyTabModelSelectorObserver() {
@Override
public void onChange() {
onContentChanged();
}
@Override
public void onNewTabCreated(Tab tab) {
initializeTab(tab);
}
});
onContentChanged();
}
private void updateContentOverlayVisibility(boolean show) {
if (mView == null) return;
sCachedCVCList.clear();
if (mLayoutManager != null) {
mLayoutManager.getActiveLayout().getAllContentViewCores(sCachedCVCList);
}
if (show) {
if (mView.getParent() != this) {
// Make sure the view isn't a child of something else before we attempt to add it.
if (mView.getParent() != null && mView.getParent() instanceof ViewGroup) {
((ViewGroup) mView.getParent()).removeView(mView);
}
for (int i = 0; i < sCachedCVCList.size(); i++) {
ContentViewCore content = sCachedCVCList.get(i);
assert content.isAlive();
content.getContainerView().setVisibility(View.VISIBLE);
if (mFullscreenManager != null) {
mFullscreenManager.updateContentViewViewportSize(content);
}
}
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(
LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
if (mView.getLayoutParams() instanceof MarginLayoutParams) {
MarginLayoutParams existingLayoutParams =
(MarginLayoutParams) mView.getLayoutParams();
layoutParams.leftMargin = existingLayoutParams.leftMargin;
layoutParams.rightMargin = existingLayoutParams.rightMargin;
layoutParams.topMargin = existingLayoutParams.topMargin;
layoutParams.bottomMargin = existingLayoutParams.bottomMargin;
}
addView(mView, layoutParams);
setFocusable(false);
setFocusableInTouchMode(false);
// Claim focus for the new view unless the user is currently using the URL bar.
if (mUrlBar == null || !mUrlBar.hasFocus()) mView.requestFocus();
}
} else {
if (mView.getParent() == this) {
setFocusable(true);
setFocusableInTouchMode(true);
for (int i = 0; i < sCachedCVCList.size(); i++) {
ContentViewCore content = sCachedCVCList.get(i);
if (content.isAlive()) content.getContainerView().setVisibility(View.INVISIBLE);
}
if (hasFocus()) {
InputMethodManager manager = (InputMethodManager) getContext().getSystemService(
Context.INPUT_METHOD_SERVICE);
if (manager.isActive(this)) {
manager.hideSoftInputFromWindow(getWindowToken(), 0, null);
}
}
removeView(mView);
}
}
sCachedCVCList.clear();
}
@Override
public void onContentChanged() {
if (mTabModelSelector == null) {
// Not yet initialized, onContentChanged() will eventually get called by
// setTabModelSelector.
return;
}
Tab tab = mTabModelSelector.getCurrentTab();
setTab(tab);
}
@Override
public void onContentViewCoreAdded(ContentViewCore content) {
// TODO(dtrainor): Look into rolling this into onContentChanged().
initializeContentViewCore(content);
setSizeOfUnattachedView(content.getContainerView());
}
private void setTab(Tab tab) {
if (tab != null && tab.isFrozen()) tab.unfreezeContents();
View newView = tab != null ? tab.getView() : null;
if (mView == newView) return;
// TODO(dtrainor): Look into changing this only if the views differ, but still parse the
// ContentViewCore list even if they're the same.
updateContentOverlayVisibility(false);
if (mTabVisible != tab) {
if (mTabVisible != null) mTabVisible.removeObserver(mTabObserver);
if (tab != null) tab.addObserver(mTabObserver);
}
mTabVisible = tab;
mView = newView;
updateContentOverlayVisibility(mContentOverlayVisiblity);
if (mTabVisible != null) initializeTab(mTabVisible);
}
/**
* Sets the correct size for all {@link View}s on {@code tab} and sets the correct rendering
* parameters on all {@link ContentViewCore}s on {@code tab}.
* @param tab The {@link Tab} to initialize.
*/
private void initializeTab(Tab tab) {
sCachedCVCList.clear();
if (mLayoutManager != null) {
mLayoutManager.getActiveLayout().getAllContentViewCores(sCachedCVCList);
}
for (int i = 0; i < sCachedCVCList.size(); i++) {
initializeContentViewCore(sCachedCVCList.get(i));
}
sCachedCVCList.clear();
sCachedViewList.clear();
tab.getAllViews(sCachedViewList);
for (int i = 0; i < sCachedViewList.size(); i++) {
View view = sCachedViewList.get(i);
// Calling View#measure() and View#layout() on a View before adding it to the view
// hierarchy seems to cause issues with compound drawables on some versions of Android.
// We don't need to proactively size the NTP as we don't need the Android view to render
// if it's not actually attached to the view hierarchy (http://crbug.com/462114).
if (view == tab.getView() && tab.isNativePage()) continue;
setSizeOfUnattachedView(view);
}
sCachedViewList.clear();
}
/**
* Initializes the rendering surface parameters of {@code contentViewCore}. Note that this does
* not size the actual {@link ContentViewCore}.
* @param contentViewCore The {@link ContentViewCore} to initialize.
*/
private void initializeContentViewCore(ContentViewCore contentViewCore) {
contentViewCore.setCurrentMotionEventOffsets(0.f, 0.f);
contentViewCore.setTopControlsHeight(
getTopControlsHeightPixels(), contentViewCore.doTopControlsShrinkBlinkSize());
contentViewCore.onPhysicalBackingSizeChanged(
mCompositorView.getWidth(), mCompositorView.getHeight());
contentViewCore.onOverdrawBottomHeightChanged(mCompositorView.getOverdrawBottomHeight());
}
/**
* Resize {@code view} to match the size of this {@link FrameLayout}. This will only happen if
* {@code view} is not {@code null} and if {@link View#getWindowToken()} returns {@code null}
* (the {@link View} is not part of the view hierarchy).
* @param view The {@link View} to resize.
* @return Whether or not {@code view} was resized.
*/
private boolean setSizeOfUnattachedView(View view) {
// Need to call layout() for the following View if it is not attached to the view hierarchy.
// Calling onSizeChanged() is dangerous because if the View has a different size than the
// ContentViewCore it might think a future size update is a NOOP and not call
// onSizeChanged() on the ContentViewCore.
if (view == null || view.getWindowToken() != null) return false;
int width = getWidth();
int height = getHeight();
view.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY));
view.layout(0, 0, width, height);
return true;
}
@Override
public TitleCache getTitleCache() {
return mLayerTitleCache;
}
@Override
public void deferInvalidate(Client client) {
if (mPendingSwapBuffersCount <= 0) {
client.doInvalidate();
} else if (!mPendingInvalidations.contains(client)) {
mPendingInvalidations.add(client);
}
}
private void flushInvalidation() {
if (mPendingInvalidations.isEmpty()) return;
TraceEvent.instant("CompositorViewHolder.flushInvalidation");
for (int i = 0; i < mPendingInvalidations.size(); i++) {
mPendingInvalidations.get(i).doInvalidate();
}
mPendingInvalidations.clear();
}
@Override
public void invalidateAccessibilityProvider() {
if (mNodeProvider != null) {
mNodeProvider.invalidateRoot();
}
}
/**
* Called when the accessibility enabled state changes.
* @param enabled Whether accessibility is enabled.
*/
public void onAccessibilityStatusChanged(boolean enabled) {
// Instantiate and install the accessibility node provider on this view if necessary.
// This overrides any hover event listeners or accessibility delegates
// that may have been added elsewhere.
if (enabled && (mNodeProvider == null)) {
mAccessibilityView = new View(getContext());
addView(mAccessibilityView);
mNodeProvider = new CompositorAccessibilityProvider(mAccessibilityView);
ViewCompat.setAccessibilityDelegate(mAccessibilityView, mNodeProvider);
}
}
/**
* Class used to provide a virtual view hierarchy to the Accessibility
* framework for this view and its contained items.
* <p>
* <strong>NOTE:</strong> This class is fully backwards compatible for
* compilation, but will only provide touch exploration on devices running
* Ice Cream Sandwich and above.
* </p>
*/
private class CompositorAccessibilityProvider extends ExploreByTouchHelper {
private final float mDpToPx;
List<VirtualView> mVirtualViews = new ArrayList<VirtualView>();
private final Rect mPlaceHolderRect = new Rect(0, 0, 1, 1);
private static final String PLACE_HOLDER_STRING = "";
private final RectF mTouchTarget = new RectF();
private final Rect mPixelRect = new Rect();
public CompositorAccessibilityProvider(View forView) {
super(forView);
mDpToPx = getContext().getResources().getDisplayMetrics().density;
}
@Override
protected int getVirtualViewAt(float x, float y) {
if (mVirtualViews == null) return INVALID_ID;
for (int i = 0; i < mVirtualViews.size(); i++) {
if (mVirtualViews.get(i).checkClicked(x / mDpToPx, y / mDpToPx)) {
return i;
}
}
return INVALID_ID;
}
@Override
protected void getVisibleVirtualViews(List<Integer> virtualViewIds) {
if (mLayoutManager == null) return;
mVirtualViews.clear();
mLayoutManager.getVirtualViews(mVirtualViews);
for (int i = 0; i < mVirtualViews.size(); i++) {
virtualViewIds.add(i);
}
}
@Override
protected boolean onPerformActionForVirtualView(
int virtualViewId, int action, Bundle arguments) {
switch (action) {
case AccessibilityNodeInfoCompat.ACTION_CLICK:
return true;
}
return false;
}
@Override
protected void onPopulateEventForVirtualView(int virtualViewId, AccessibilityEvent event) {
if (mVirtualViews == null || mVirtualViews.size() <= virtualViewId) {
// TODO(clholgat): Remove this work around when the Android bug is fixed.
// crbug.com/420177
event.setContentDescription(PLACE_HOLDER_STRING);
return;
}
VirtualView view = mVirtualViews.get(virtualViewId);
event.setContentDescription(view.getAccessibilityDescription());
event.setClassName(CompositorViewHolder.class.getName());
}
@Override
protected void onPopulateNodeForVirtualView(
int virtualViewId, AccessibilityNodeInfoCompat node) {
if (mVirtualViews == null || mVirtualViews.size() <= virtualViewId) {
// TODO(clholgat): Remove this work around when the Android bug is fixed.
// crbug.com/420177
node.setBoundsInParent(mPlaceHolderRect);
node.setContentDescription(PLACE_HOLDER_STRING);
return;
}
VirtualView view = mVirtualViews.get(virtualViewId);
view.getTouchTarget(mTouchTarget);
node.setBoundsInParent(rectToPx(mTouchTarget));
node.setContentDescription(view.getAccessibilityDescription());
node.addAction(AccessibilityNodeInfoCompat.ACTION_CLICK);
node.addAction(AccessibilityNodeInfoCompat.ACTION_FOCUS);
node.addAction(AccessibilityNodeInfoCompat.ACTION_LONG_CLICK);
}
private Rect rectToPx(RectF rect) {
rect.roundOut(mPixelRect);
mPixelRect.left = (int) (mPixelRect.left * mDpToPx);
mPixelRect.top = (int) (mPixelRect.top * mDpToPx);
mPixelRect.right = (int) (mPixelRect.right * mDpToPx);
mPixelRect.bottom = (int) (mPixelRect.bottom * mDpToPx);
// Don't let any zero sized rects through, they'll cause parent
// size errors in L.
if (mPixelRect.width() == 0) {
mPixelRect.right = mPixelRect.left + 1;
}
if (mPixelRect.height() == 0) {
mPixelRect.bottom = mPixelRect.top + 1;
}
return mPixelRect;
}
}
}
|
SaschaMester/delicium
|
chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java
|
Java
|
bsd-3-clause
| 42,054
|
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc4-master-4aa7160
*/
goog.provide('ng.material.components.whiteframe');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.whiteframe
*/
angular
.module('material.components.whiteframe', ['material.core'])
.directive('mdWhiteframe', MdWhiteframeDirective);
/**
* @ngdoc directive
* @module material.components.whiteframe
* @name mdWhiteframe
*
* @description
* The md-whiteframe directive allows you to apply an elevation shadow to an element.
*
* The attribute values needs to be a number between 1 and 24.
*
* ### Notes
* - If there is no value specified it defaults to 4dp.
* - If the value is not valid it defaults to 4dp.
* @usage
* <hljs lang="html">
* <div md-whiteframe="3">
* <span>Elevation of 3dp</span>
* </div>
* </hljs>
*/
function MdWhiteframeDirective($log) {
var MIN_DP = 1;
var MAX_DP = 24;
var DEFAULT_DP = 4;
return {
link: postLink
};
function postLink(scope, element, attr) {
var elevation = parseInt(attr.mdWhiteframe, 10) || DEFAULT_DP;
if (elevation > MAX_DP || elevation < MIN_DP) {
$log.warn('md-whiteframe attribute value is invalid. It should be a number between ' + MIN_DP + ' and ' + MAX_DP, element[0]);
elevation = DEFAULT_DP;
}
element.addClass('md-whiteframe-' + elevation + 'dp');
}
}
MdWhiteframeDirective.$inject = ["$log"];
ng.material.components.whiteframe = angular.module("material.components.whiteframe");
|
westerncapelabs/gopherairtime
|
controlinterface/static/controlinterface/js/angular-material/modules/closure/whiteframe/whiteframe.js
|
JavaScript
|
bsd-3-clause
| 1,559
|
import './skottie-library-sk';
import './skottie-library-sk.scss';
|
google/skia-buildbot
|
skottie/modules/skottie-library-sk/index.ts
|
TypeScript
|
bsd-3-clause
| 67
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>フロントコントローラ - Zend Framework Manual</title>
</head>
<body>
<table width="100%">
<tr valign="top">
<td width="85%">
<table width="100%">
<tr>
<td width="25%" style="text-align: left;">
<a href="zend.controller.basics.html">Zend_Controller の基本</a>
</td>
<td width="50%" style="text-align: center;">
<div class="up"><span class="up"><a href="zend.controller.html">Zend_Controller</a></span><br />
<span class="home"><a href="manual.html">Programmer's Reference Guide</a></span></div>
</td>
<td width="25%" style="text-align: right;">
<div class="next" style="text-align: right; float: right;"><a href="zend.controller.request.html">リクエストオブジェクト</a></div>
</td>
</tr>
</table>
<hr />
<div id="zend.controller.front" class="section"><div class="info"><h1 class="title">フロントコントローラ</h1></div>
<div class="section" id="zend.controller.front.overview" name="zend.controller.front.overview"><div class="info"><h1 class="title">概要</h1></div>
<p class="para">
<span class="classname">Zend_Controller_Front</span> は
<a href="http://en.wikipedia.org/wiki/Model-view-controller" class="link external">» Model-View-Controller
(MVC)</a> アプリケーションで用いられる
<a href="http://www.martinfowler.com/eaaCatalog/frontController.html" class="link external">»
フロントコントローラパターン</a> を実装したものです。
その役割は、リクエスト環境を初期化してリクエストの配送先を決定し、
見つかった配送先に処理を引き渡すことです。また、
レスポンスの内容を取得してそれをコール元に返します。
</p>
<p class="para">
<span class="classname">Zend_Controller_Front</span> は <a href="http://en.wikipedia.org/wiki/Singleton_pattern" class="link external">» シングルトンパターン</a>
も実装しています。つまり、どんな場合でもひとつのインスタンスしか存在しないことになります。
これを利用すると、コントローラをレジストリとして扱えるようになります。
</p>
<p class="para">
<span class="classname">Zend_Controller_Front</span> は <a href="zend.controller.plugins.html" class="link">プラグインブローカ</a>
を持っています。これにより、さまざまなイベントをプラグインで処理できるようになります。
開発者は、ディスパッチ処理をカスタマイズして機能を追加する際に
フロントコントローラ自体を継承したクラスを作成する必要がなくなります。
</p>
<p class="para">
<a href="zend.controller.action.html" class="link">アクションコントローラ</a>
へのパスを含むディレクトリを最低ひとつは指定しないと、
フロントコントローラは動作しません。
フロントコントローラの動作環境やそのヘルパークラスを変更するために、
さまざまな手法が用意されています。
</p>
<blockquote><p><b class="note">Note</b>: <span class="info"><b>デフォルトの挙動</b><br /></span>
デフォルトでは、フロントコントローラは
<a href="zend.controller.plugins.html#zend.controller.plugins.standard.errorhandler" class="link">ErrorHandler</a>
プラグインと
<a href="zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewrenderer" class="link">ViewRenderer</a>
アクションヘルパープラグインを読み込みます。
これらにより、コントローラ内でのエラー処理やビューのレンダリングがシンプルに行えるようになります。
<br />
<em class="emphasis">ErrorHandler</em> を無効にするには、
<span class="methodname">dispatch()</span> をコールする前のどこかで以下のようにします。
<br />
<div class="programlisting php"><div class="phpcode"><div class="php" style="font-family: monospace;"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// ErrorHandler プラグインを無効にします</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$front</span>-><span style="color: #006600;">setParam</span><span style="color: #66cc66;">(</span><span style="color: #ff0000;">'noErrorHandler'</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">)</span>;</div></li></ol></div></div></div>
<em class="emphasis">ViewRenderer</em> を無効にするには、
<span class="methodname">dispatch()</span> をコールする前に以下を実行します。
<br />
<div class="programlisting php"><div class="phpcode"><div class="php" style="font-family: monospace;"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// ViewRenderer ヘルパーを無効にします</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$front</span>-><span style="color: #006600;">setParam</span><span style="color: #66cc66;">(</span><span style="color: #ff0000;">'noViewRenderer'</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">)</span>;</div></li></ol></div></div></div>
</p></blockquote>
</div>
<div class="section" id="zend.controller.front.methods.primary" name="zend.controller.front.methods.primary"><div class="info"><h1 class="title">主要なメソッド</h1></div>
<p class="para">
フロントコントローラには、その環境設定用のメソッドがいくつか用意されています。
そのうち、フロントコントローラの機能の鍵となる主要なメソッドは、以下の3つです。
</p>
<div class="section" id="zend.controller.front.methods.primary.getinstance" name="zend.controller.front.methods.primary.getinstance"><div class="info"><h1 class="title">getInstance()</h1></div>
<p class="para">
<span class="methodname">getInstance()</span> は、フロントコントローラのインスタンスを取得します。
フロントコントローラはシングルトンパターンを実装しているので、
フロントコントローラのインスタンスを作成する唯一の方法はこのメソッドをコールすることとなります。
</p>
<div class="programlisting php"><div class="phpcode"><div class="php" style="font-family: monospace;"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$front</span> = Zend_Controller_Front::<span style="color: #006600;">getInstance</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;</div></li></ol></div></div></div>
</div>
<div class="section" id="zend.controller.front.methods.primary.setcontrollerdirectory" name="zend.controller.front.methods.primary.setcontrollerdirectory"><div class="info"><h1 class="title">setControllerDirectory() および addControllerDirectory</h1></div>
<p class="para">
<span class="methodname">setControllerDirectory()</span> は、<a href="zend.controller.dispatcher.html" class="link">ディスパッチャ</a>
が <a href="zend.controller.action.html" class="link">アクションコントローラ</a>
クラスファイルをどこから探せばよいのかを指定するメソッドです。
単一のパスを指定することもできますし、複数のパスを連想配列で指定することもできます。
</p>
<p class="para">
いくつか例を示します。
</p>
<div class="programlisting php"><div class="phpcode"><div class="php" style="font-family: monospace;"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// デフォルトのコントローラディレクトリを設定します</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$front</span>-><span style="color: #006600;">setControllerDirectory</span><span style="color: #66cc66;">(</span><span style="color: #ff0000;">'../application/controllers'</span><span style="color: #66cc66;">)</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// 複数のモジュールのディレクトリを一度に指定します</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$front</span>-><span style="color: #006600;">setControllerDirectory</span><span style="color: #66cc66;">(</span><a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">(</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #ff0000;">'default'</span> => <span style="color: #ff0000;">'../application/controllers'</span>,</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #ff0000;">'blog'</span> => <span style="color: #ff0000;">'../modules/blog/controllers'</span>,</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #ff0000;">'news'</span> => <span style="color: #ff0000;">'../modules/news/controllers'</span>,</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// 'foo' モジュールのディレクトリを追加します</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$front</span>-><span style="color: #006600;">addControllerDirectory</span><span style="color: #66cc66;">(</span><span style="color: #ff0000;">'../modules/foo/controllers'</span>, <span style="color: #ff0000;">'foo'</span><span style="color: #66cc66;">)</span>;</div></li></ol></div></div></div>
<blockquote><p><b class="note">Note</b>:
<span class="methodname">addControllerDirectory()</span>
でモジュール名を省略すると、<em class="emphasis">default</em>
モジュールが指定されたものとみなします。
もしすでに存在する場合は、それを上書きします。
<br />
</p></blockquote>
<p class="para">
コントローラディレクトリの現在の設定を取得するには
<span class="methodname">getControllerDirectory()</span> を使用します。
これは、モジュールとディレクトリの組を配列で返します。
</p>
</div>
<div class="section" id="zend.controller.front.methods.primary.addmoduledirectory" name="zend.controller.front.methods.primary.addmoduledirectory"><div class="info"><h1 class="title">addModuleDirectory() および getModuleDirectory()</h1></div>
<p class="para">
フロントコントローラのひとつの側面として、<a href="zend.controller.modular.html" class="link">モジュラーディレクトリ構造を定義
</a> して単体のコンポーネントを作成するということがあります。
これは "モジュール" と呼ばれます。
</p>
<p class="para">
書くモジュールは個別のディレクトリになければならず、
またデフォルトモジュールと同じディレクトリ構成でなければなりません。
すなわち、すくなくともサブディレクトリ <var class="filename">/controllers/</var> がなければならず、
またたいていは <var class="filename">/views/</var> などの他のサブディレクトリもあるということです。
</p>
<p class="para">
<span class="methodname">addModuleDirectory()</span>
には、ひとつあるいは複数のモジュールディレクトリの名前を渡します。
渡された内容を調べ、それをフロントコントローラのコントローラディレクトリに追加します。
</p>
<p class="para">
その後、特定のモジュールや現在のモジュールへのパスを知りたい場合に
<span class="methodname">getModuleDirectory()</span> をコールします。
モジュール名を渡すと、指定したモジュールのディレクトリを取得することができます。
</p>
</div>
<div class="section" id="zend.controller.front.methods.primary.dispatch" name="zend.controller.front.methods.primary.dispatch"><div class="info"><h1 class="title">dispatch()</h1></div>
<p class="para">
<span class="methodname">dispatch(Zend_Controller_Request_Abstract $request = null,
Zend_Controller_Response_Abstract $response = null)</span>
は、フロントコントローラでもっとも重要な仕事を担当します。
オプションで <a href="zend.controller.request.html" class="link">リクエストオブジェクト</a>
や <a href="zend.controller.response.html" class="link">レスポンスオブジェクト</a>
を受け取り、それぞれ独自のオブジェクトを指定することができます。
</p>
<p class="para">
リクエストオブジェクトやレスポンスオブジェクトを省略すると、
<span class="methodname">dispatch()</span> は事前にオブジェクトが登録されているかどうかを確認します。
もし登録されていればそれを使用し、登録されていなければデフォルトのオブジェクトを作成して使用します
(どちらの場合についても、<acronym class="acronym">HTTP</acronym> リクエスト/レスポンス オブジェクトをデフォルトで使用します)。
</p>
<p class="para">
同様に、 <span class="methodname">dispatch()</span> は <a href="zend.controller.router.html" class="link">ルータ</a> や <a href="zend.controller.dispatcher.html" class="link">ディスパッチャ</a>
オブジェクトについても登録済みのものがあるかどうかを確認します。
もしあればそれを使用し、なければデフォルトのオブジェクトを作成して使用します。
</p>
<p class="para">
ディスパッチ処理は、次の三段階に分けられます。
</p>
<ul class="itemizedlist">
<li class="listitem"><p class="para">ルーティング</p></li>
<li class="listitem"><p class="para">ディスパッチ</p></li>
<li class="listitem"><p class="para">レスポンス</p></li>
</ul>
<p class="para">
ルーティングは一度だけ発生します。これは、 <span class="methodname">dispatch()</span>
がコールされた際のリクエストオブジェクトの内容を使用して行います。
ディスパッチは繰り返し行われます。
ひとつのリクエストが複数のアクションを指定している場合や、
コントローラまたはプラグインがリクエストオブジェクトを設定しなおして
別のアクションへディスパッチさせた場合などです。
すべてが終了したら、フロントコントローラはレスポンスを返します。
</p>
</div>
<div class="section" id="zend.controller.front.methods.primary.run" name="zend.controller.front.methods.primary.run"><div class="info"><h1 class="title">run()</h1></div>
<p class="para">
<span class="methodname">Zend_Controller_Front::run($path)</span>
は静的メソッドで、コントローラを含むディレクトリへのパスを指定します。
このメソッドは
<a href="zend.controller.front.html#zend.controller.front.methods.primary.getinstance" class="link">getInstance()</a>
を使用してフロントコントローラのインスタンスを取得し、
<a href="zend.controller.front.html#zend.controller.front.methods.primary.setcontrollerdirectory" class="link">setControllerDirectory()</a>
を使用してパスを登録し、最後に
<a href="zend.controller.front.html#zend.controller.front.methods.primary.dispatch" class="link">ディスパッチ</a>
します。
</p>
<p class="para">
<span class="methodname">run()</span> は、サイト単位の設定などで
フロントコントローラのカスタマイズが不要な場合に便利なメソッドです。
</p>
<div class="programlisting php"><div class="phpcode"><div class="php" style="font-family: monospace;"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// フロントコントローラを作成してコントローラディレクトリを設定し、</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// ディスパッチするまでをいちどでお手軽に行います</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Zend_Controller_Front::<span style="color: #006600;">run</span><span style="color: #66cc66;">(</span><span style="color: #ff0000;">'../application/controllers'</span><span style="color: #66cc66;">)</span>;</div></li></ol></div></div></div>
</div>
</div>
<div class="section" id="zend.controller.front.methods.environment" name="zend.controller.front.methods.environment"><div class="info"><h1 class="title">環境へのアクセス用メソッド群</h1></div>
<p class="para">
これまでに説明したメソッド以外にもさまざまなアクセス用メソッドが用意されており、
これらを使用してフロンとコントローラの環境にアクセスすることができます。
つまり、フロントコントローラが処理を委譲しているクラスの環境にもアクセスできるということです。
</p>
<ul class="itemizedlist">
<li class="listitem">
<p class="para">
<span class="methodname">resetInstance()</span> は、現在の設定をすべて消去します。
主にテスト目的で使用しますが、
複数のフロントコントローラを連結させたい場合などに使用することもあります。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">setDefaultControllerName()</span> および
<span class="methodname">getDefaultControllerName()</span>
で、デフォルトのコントローラとして使用する名前を指定したり
(指定しなければ 'index' となります) 現在の設定を取得したりできます。
これらメソッドは、<a href="zend.controller.dispatcher.html" class="link">
ディスパッチャ</a> へのプロキシです。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">setDefaultAction()</span> および
<span class="methodname">getDefaultAction()</span>
で、デフォルトのアクションとして使用する名前を指定したり
(指定しなければ 'index' となります) 現在の設定を取得したりできます。
これらのメソッドは <a href="zend.controller.dispatcher.html" class="link">
ディスパッチャ</a> へのプロキシです。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">setRequest()</span> および
<span class="methodname">getRequest()</span> は、ディスパッチ処理で使用する
<a href="zend.controller.request.html" class="link">リクエスト</a>
クラスやオブジェクトを指定したり、現在のオブジェクトを取得したりします。
リクエストオブジェクトを指定するときに、クラス名を指定することができます。
この場合、このメソッドは指定したクラスファイルを読み込んでインスタンスを作成します。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">setRouter()</span> および
<span class="methodname">getRouter()</span> は、ディスパッチ処理で使用する
<a href="zend.controller.router.html" class="link">ルータ</a>
クラスやオブジェクトを指定したり、現在のオブジェクトを取得したりします。
ルータオブジェクトを指定するときに、クラス名を指定することができます。
この場合、このメソッドは指定したクラスファイルを読み込んでインスタンスを作成します。
</p>
<p class="para">
ルータオブジェクトを取得する際には、まずルータが存在するかどうかを調べ、
存在しない場合にはデフォルトのルータ (rewrite ルータ) のインスタンスを作成します。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">setBaseUrl()</span> および
<span class="methodname">getBaseUrl()</span> は、リクエストのルーティング時に <acronym class="acronym">URL</acronym> から取り除く
<a href="zend.controller.request.html#zend.controller.request.http.baseurl" class="link">基底 <acronym class="acronym">URL</acronym></a>
を指定したり、現在の値を取得したりします。
この値は、ルーティングの直前にリクエストオブジェクトに渡されます。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">setDispatcher()</span> および
<span class="methodname">getDispatcher()</span> は、ディスパッチ処理で使用する
<a href="zend.controller.dispatcher.html" class="link">ディスパッチャ</a>
クラスやオブジェクトを指定したり、現在のオブジェクトを取得したりします。
ディスパッチャオブジェクトを指定するときに、クラス名を指定することができます。
この場合、このメソッドは指定したクラスファイルを読み込んでインスタンスを作成します。
</p>
<p class="para">
ディスパッチャオブジェクトを取得する際には、まずディスパッチャが存在するかどうかを調べ、
存在しない場合にはデフォルトのディスパッチャのインスタンスを作成します。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">setResponse()</span> および
<span class="methodname">getResponse()</span> は、ディスパッチ処理で使用する
<a href="zend.controller.response.html" class="link">レスポンス</a>
クラスやオブジェクトを指定したり、現在のオブジェクトを取得したりします。
レスポンスオブジェクトを指定するときに、クラス名を指定することができます。
この場合、このメソッドは指定したクラスファイルを読み込んでインスタンスを作成します。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">registerPlugin(Zend_Controller_Plugin_Abstract $plugin, $stackIndex = null)</span>
は、<a href="zend.controller.plugins.html" class="link">プラグインオブジェクト</a>
を登録します。オプションの <var class="varname">$stackIndex</var>
を設定すると、プラグインの実行順を制御することができます。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">unregisterPlugin($plugin)</span> は、
<a href="zend.controller.plugins.html" class="link">プラグインオブジェクト</a>
の登録を解除します。<var class="varname">$plugin</var>
にはプラグインオブジェクトそのものか、あるいはプラグインのクラス名を表す文字列を指定します。
ここで指定したプラグインの登録を解除します。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">throwExceptions($flag)</span> で、ディスパッチの際に発生した例外をスローするかどうかを切り替えます。
デフォルトでは、例外はスローされず、
<a href="zend.controller.response.html" class="link">レスポンスオブジェクト</a>
に保存されます。 <span class="methodname">throwExceptions()</span>
をオンにすると、この挙動を変更できます。
</p>
<p class="para">
詳細は <a href="zend.controller.exceptions.html" class="link">MVC
例外</a> を参照ください。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">returnResponse($flag)</span> は、フロントコントローラが
<span class="methodname">dispatch()</span> からのレスポンスを返す (<b><tt>TRUE</tt></b>)
かレスポンスを自動的に発行する (<b><tt>FALSE</tt></b>)
かを切り替えます。デフォルトでは、レスポンスは
( <span class="methodname">Zend_Controller_Response_Abstract::sendResponse()</span> によって)
自動的に発行されます。 <span class="methodname">returnResponse()</span>
をオンにすると、この挙動を変更できます。
behaviour.
</p>
<p class="para">
レスポンスを返すようにする理由としては、
実際に発行する前に例外のチェックを行いたり
レスポンスの情報 (ヘッダなど) をログに記録したりなどが考えられます。
</p>
</li>
</ul>
</div>
<div class="section" id="zend.controller.front.methods.params" name="zend.controller.front.methods.params"><div class="info"><h1 class="title">フロントコントローラのパラメータ</h1></div>
<p class="para">
最初のほうで、フロントコントローラはレジストリとしても使用できると説明しました。
その際に使用するのが "param" 系のメソッド群です。
これらのメソッドを使用すると、任意のデータ (オブジェクトや変数)
をフロントコントローラに登録することができます。
登録したデータは、ディスパッチチェイン内のどこででも使用できます。
これらの値は、ルータやディスパッチャそしてアクションコントローラにも渡されます。
各メソッドについて、以下にまとめます。
</p>
<ul class="itemizedlist">
<li class="listitem">
<p class="para">
<span class="methodname">setParam($name, $value)</span> は、
パラメータ <var class="varname">$name</var> の値を
<var class="varname">$value</var> に設定します。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">setParams(array $params)</span> は、
連想配列を使用して複数のパラメータを一度に設定します。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">getParam($name)</span> は、
<var class="varname">$name</var> で指定した名前のパラメータの値を取得します。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">getParams()</span> は、
すべてのパラメータの一覧を一度に取得します。
</p>
</li>
<li class="listitem">
<p class="para">
<span class="methodname">clearParams()</span> は、
単一のパラメータ (文字列で指定した場合) か
複数のパラメータ (文字列の配列で指定した場合)、
またはすべてのパラメータ (何も指定しなかった場合)
を消去します。
</p>
</li>
</ul>
<p class="para">
ディスパッチチェイン内で特定の目的で使用するために、
いくつかのパラメータが事前に定義されています。
</p>
<ul class="itemizedlist">
<li class="listitem">
<p class="para">
<em class="emphasis">useDefaultControllerAlways</em> は、
ディスパッチできない
(モジュール、コントローラ、アクションのいずれかが存在しない)
リクエストに対して、
デフォルトモジュールのデフォルトコントローラにディスパッチするよう
<a href="zend.controller.dispatcher.html" class="link">ディスパッチャ</a>
に指示します。デフォルトではこの機能は無効になっています。
</p>
<p class="para">
この設定の使用法についての詳細は
<a href="zend.controller.exceptions.html#zend.controller.exceptions.internal" class="link">
遭遇するであろう MVC 例外</a>
を参照ください。
</p>
</li>
<li class="listitem">
<p class="para">
<em class="emphasis">disableOutputBuffering</em> は、
アクションコントローラの出力をバッファリングしないよう
<a href="zend.controller.dispatcher.html" class="link">ディスパッチャ</a>
に指示します。デフォルトでは、
ディスパッチャがいったんすべての出力をキャプチャして、
レスポンスオブジェクトに追加しています。
</p>
</li>
<li class="listitem">
<p class="para">
<em class="emphasis">noViewRenderer</em> を使用して、<a href="zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewrenderer" class="link">ViewRenderer</a>
を無効にします。このパラメータを <b><tt>TRUE</tt></b> に設定すると、無効となります。
</p>
</li>
<li class="listitem">
<p class="para">
<em class="emphasis">noErrorHandler</em> を使用して、<a href="zend.controller.plugins.html#zend.controller.plugins.standard.errorhandler" class="link">
エラーハンドラプラグイン</a> を無効にします。
このパラメータを <b><tt>TRUE</tt></b> に設定すると、無効となります。
</p>
</li>
</ul>
</div>
<div class="section" id="zend.controller.front.subclassing" name="zend.controller.front.subclassing"><div class="info"><h1 class="title">フロントコントローラの継承</h1></div>
<p class="para">
フロントコントローラを継承する際には、
最低限 <span class="methodname">getInstance()</span> メソッドをオーバーライドしなければなりません。
</p>
<div class="programlisting php"><div class="phpcode"><div class="php" style="font-family: monospace;"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">class</span> My_Controller_Front <span style="color: #000000; font-weight: bold;">extends</span> Zend_Controller_Front</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">{</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.php.net/static"><span style="color: #000066;">static</span></a> <span style="color: #000000; font-weight: bold;">function</span> getInstance<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #66cc66;">{</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">(</span><span style="color: #000000; font-weight: bold;">null</span> === self::<span style="color: #0000ff;">$_instance</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> self::<span style="color: #0000ff;">$_instance</span> = <span style="color: #000000; font-weight: bold;">new</span> self<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #66cc66;">}</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #b1b100;">return</span> self::<span style="color: #0000ff;">$_instance</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #66cc66;">}</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">}</span></div></li></ol></div></div></div>
<p class="para">
<span class="methodname">getInstance()</span> メソッドをオーバーライドすることで、それ以降の
<span class="methodname">Zend_Controller_Front::getInstance()</span> のコールが
<span class="classname">Zend_Controller_Front</span> ではなく新しいサブクラスのインスタンスを返すようになります。
これは、デフォルト以外のルータやビューヘルパーを使用する場合などに便利です。
</p>
<p class="para">
何か新しい機能 (たとえばプラグインの自動ローダーや、
アクションヘルパーのパスの指定方法)
を追加したいというのでもない限り、
ふつうはフロントコントローラのサブクラスを作成する必要はありません。
ほかに変更したくなるような箇所としては、
コントローラディレクトリの保存方法や
デフォルトルータ/デフォルトディスパッチャを使用するかどうかなどがあるでしょう。
</p>
</div>
</div>
<hr />
<table width="100%">
<tr>
<td width="25%" style="text-align: left;">
<a href="zend.controller.basics.html">Zend_Controller の基本</a>
</td>
<td width="50%" style="text-align: center;">
<div class="up"><span class="up"><a href="zend.controller.html">Zend_Controller</a></span><br />
<span class="home"><a href="manual.html">Programmer's Reference Guide</a></span></div>
</td>
<td width="25%" style="text-align: right;">
<div class="next" style="text-align: right; float: right;"><a href="zend.controller.request.html">リクエストオブジェクト</a></div>
</td>
</tr>
</table>
</td>
<td style="font-size: smaller;" width="15%"> <style type="text/css">
#leftbar {
float: left;
width: 186px;
padding: 5px;
font-size: smaller;
}
ul.toc {
margin: 0px 5px 5px 5px;
padding: 0px;
}
ul.toc li {
font-size: 85%;
margin: 1px 0 1px 1px;
padding: 1px 0 1px 11px;
list-style-type: none;
background-repeat: no-repeat;
background-position: center left;
}
ul.toc li.header {
font-size: 115%;
padding: 5px 0px 5px 11px;
border-bottom: 1px solid #cccccc;
margin-bottom: 5px;
}
ul.toc li.active {
font-weight: bold;
}
ul.toc li a {
text-decoration: none;
}
ul.toc li a:hover {
text-decoration: underline;
}
</style>
<ul class="toc">
<li class="header home"><a href="manual.html">Programmer's Reference Guide</a></li>
<li class="header up"><a href="manual.html">Programmer's Reference Guide</a></li>
<li class="header up"><a href="reference.html">Zend Framework Reference</a></li>
<li class="header up"><a href="zend.controller.html">Zend_Controller</a></li>
<li><a href="zend.controller.quickstart.html">Zend_Controller クイックスタート</a></li>
<li><a href="zend.controller.basics.html">Zend_Controller の基本</a></li>
<li class="active"><a href="zend.controller.front.html">フロントコントローラ</a></li>
<li><a href="zend.controller.request.html">リクエストオブジェクト</a></li>
<li><a href="zend.controller.router.html">標準のルータ</a></li>
<li><a href="zend.controller.dispatcher.html">ディスパッチャ</a></li>
<li><a href="zend.controller.action.html">アクションコントローラ</a></li>
<li><a href="zend.controller.actionhelpers.html">アクションヘルパー</a></li>
<li><a href="zend.controller.response.html">レスポンスオブジェクト</a></li>
<li><a href="zend.controller.plugins.html">プラグイン</a></li>
<li><a href="zend.controller.modular.html">モジュラーディレクトリ構造の規約の使用</a></li>
<li><a href="zend.controller.exceptions.html">MVC での例外</a></li>
</ul>
</td>
</tr>
</table>
</body>
</html>
|
wukchung/Home-development
|
documentation/manual/core/ja/zend.controller.front.html
|
HTML
|
bsd-3-clause
| 47,420
|
// Copyright 2014 Tony Wasserka
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the owner 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.
// Enable this for detailed XML overview of parser results
// #define BOOST_SPIRIT_DEBUG
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/spirit/include/qi.hpp>
#include "nihstro/parser_assembly.h"
#include "nihstro/parser_assembly_private.h"
#include "nihstro/shader_binary.h"
#include "nihstro/shader_bytecode.h"
namespace spirit = boost::spirit;
namespace qi = boost::spirit::qi;
namespace ascii = boost::spirit::qi::ascii;
namespace phoenix = boost::phoenix;
using spirit::_1;
using spirit::_2;
using spirit::_3;
using spirit::_4;
using namespace nihstro;
// Adapt parser data structures for use with boost::spirit
BOOST_FUSION_ADAPT_STRUCT(
IntegerWithSign,
(int, sign)
(unsigned, value)
)
/**
* Implementation of transform_attribute from std::vector<InputSwizzlerMask::Component> to InputSwizzlerMask.
* This eases swizzle mask parsing a lot.
*/
namespace boost { namespace spirit { namespace traits {
template<>
struct transform_attribute<InputSwizzlerMask, std::vector<InputSwizzlerMask::Component>, qi::domain>
{
using Exposed = InputSwizzlerMask;
using type = std::vector<InputSwizzlerMask::Component>;
static void post(Exposed& val, const type& attr) {
val.num_components = attr.size();
for (size_t i = 0; i < attr.size(); ++i)
val.components[i] = attr[i];
}
static type pre(Exposed& val) {
type vec;
for (int i = 0; i < val.num_components; ++i)
vec.push_back(val.components[i]);
return vec;
}
static void fail(Exposed&) { }
};
}}} // namespaces
template<>
CommonRules<ParserIterator>::CommonRules(const ParserContext& context) {
// Setup symbol table
opcodes_trivial.add
( "nop", OpCode::Id::NOP )
( "end", OpCode::Id::END )
( "emit", OpCode::Id::EMIT )
( "else", OpCode::Id::ELSE )
( "endif", OpCode::Id::ENDIF )
( "endloop", OpCode::Id::ENDLOOP );
opcodes_float[0].add
( "mova", OpCode::Id::MOVA );
opcodes_float[1].add
( "exp", OpCode::Id::EX2 )
( "log", OpCode::Id::LG2 )
( "lit", OpCode::Id::LIT )
( "flr", OpCode::Id::FLR )
( "rcp", OpCode::Id::RCP )
( "rsq", OpCode::Id::RSQ )
( "mov", OpCode::Id::MOV );
opcodes_float[2].add
( "add", OpCode::Id::ADD )
( "dp3", OpCode::Id::DP3 )
( "dp4", OpCode::Id::DP4 )
( "dph", OpCode::Id::DPH )
( "dst", OpCode::Id::DST )
( "mul", OpCode::Id::MUL )
( "sge", OpCode::Id::SGE )
( "slt", OpCode::Id::SLT )
( "max", OpCode::Id::MAX )
( "min", OpCode::Id::MIN );
opcodes_float[3].add
( "mad", OpCode::Id::MAD );
opcodes_compare.add
( "cmp", OpCode::Id::CMP );
opcodes_flowcontrol[0].add
( "break", OpCode::Id::BREAK )
( "breakc", OpCode::Id::BREAKC )
( "if", OpCode::Id::GEN_IF )
( "loop", OpCode::Id::LOOP );
opcodes_flowcontrol[1].add
( "jmp", OpCode::Id::GEN_JMP )
( "call", OpCode::Id::GEN_CALL );
opcodes_setemit.add
( "setemitraw", OpCode::Id::SETEMIT );
signs.add( "+", +1)
( "-", -1);
// TODO: Add rgba/stq masks
swizzlers.add
( "x", InputSwizzlerMask::x )
( "y", InputSwizzlerMask::y )
( "z", InputSwizzlerMask::z )
( "w", InputSwizzlerMask::w );
// TODO: Make sure this is followed by a space or *some* separator
// TODO: Use qi::repeat(1,4)(swizzlers) instead of Kleene [failed to work when I tried, so make this work!]
// TODO: Use qi::lexeme[swizzlers] [crashed when I tried, so make this work!]
swizzle_mask = qi::attr_cast<InputSwizzlerMask, std::vector<InputSwizzlerMask::Component>>(*swizzlers);
identifier = qi::lexeme[qi::char_("a-zA-Z_") >> *qi::char_("a-zA-Z0-9_")];
peek_identifier = &identifier;
uint_after_sign = qi::uint_; // TODO: NOT dot (or alphanum) after this to prevent floats..., TODO: overflows?
sign_with_uint = signs > uint_after_sign;
index_expression_first_term = (qi::attr(+1) >> qi::uint_) | (peek_identifier > identifier);
index_expression_following_terms = (qi::lit('+') >> peek_identifier > identifier) | sign_with_uint;
index_expression = (-index_expression_first_term) // the first element has an optional sign
>> (*index_expression_following_terms); // following elements have a mandatory sign
expression = ((-signs) > peek_identifier > identifier) >> (-(qi::lit('[') > index_expression > qi::lit(']'))) >> *(qi::lit('.') > swizzle_mask);
end_of_statement = qi::omit[qi::eol | qi::eoi];
// Error handling
BOOST_SPIRIT_DEBUG_NODE(identifier);
BOOST_SPIRIT_DEBUG_NODE(uint_after_sign);
BOOST_SPIRIT_DEBUG_NODE(index_expression);
BOOST_SPIRIT_DEBUG_NODE(peek_identifier);
BOOST_SPIRIT_DEBUG_NODE(expression);
BOOST_SPIRIT_DEBUG_NODE(swizzle_mask);
BOOST_SPIRIT_DEBUG_NODE(end_of_statement);
diagnostics.Add(swizzle_mask.name(), "Expected swizzle mask after period");
diagnostics.Add(peek_identifier.name(), "Expected identifier");
diagnostics.Add(uint_after_sign.name(), "Expected integer number after sign");
diagnostics.Add(index_expression.name(), "Expected index expression between '[' and ']'");
diagnostics.Add(expression.name(), "Expected expression of a known identifier");
diagnostics.Add(end_of_statement.name(), "Expected end of statement");
}
|
neobrain/nihstro
|
src/parser_assembly/common.cpp
|
C++
|
bsd-3-clause
| 7,786
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_BACKGROUND_FETCH_STORAGE_CREATE_METADATA_TASK_H_
#define CONTENT_BROWSER_BACKGROUND_FETCH_STORAGE_CREATE_METADATA_TASK_H_
#include <memory>
#include <string>
#include <vector>
#include "content/browser/background_fetch/background_fetch.pb.h"
#include "content/browser/background_fetch/storage/database_task.h"
#include "content/browser/cache_storage/cache_storage_cache_handle.h"
#include "third_party/blink/public/common/service_worker/service_worker_status_code.h"
#include "third_party/blink/public/mojom/background_fetch/background_fetch.mojom.h"
#include "third_party/skia/include/core/SkBitmap.h"
namespace content {
namespace background_fetch {
// Checks if the registration can be created, then writes the Background
// Fetch metadata in the SW database with corresponding entries in the cache.
class CreateMetadataTask : public DatabaseTask {
public:
using CreateMetadataCallback = base::OnceCallback<void(
blink::mojom::BackgroundFetchError,
blink::mojom::BackgroundFetchRegistrationDataPtr)>;
CreateMetadataTask(DatabaseTaskHost* host,
const BackgroundFetchRegistrationId& registration_id,
std::vector<blink::mojom::FetchAPIRequestPtr> requests,
blink::mojom::BackgroundFetchOptionsPtr options,
const SkBitmap& icon,
bool start_paused,
CreateMetadataCallback callback);
~CreateMetadataTask() override;
void Start() override;
private:
void DidGetCanCreateRegistration(blink::mojom::BackgroundFetchError error,
bool can_create);
void DidGetIsQuotaAvailable(bool is_available);
void GetRegistrationUniqueId();
void DidGetUniqueId(const std::vector<std::string>& data,
blink::ServiceWorkerStatusCode status);
void DidSerializeIcon(std::string serialized_icon);
void StoreMetadata();
void DidStoreMetadata(
blink::ServiceWorkerStatusCode status);
void InitializeMetadataProto();
void DidOpenCache(int64_t trace_id,
CacheStorageCacheHandle handle,
blink::mojom::CacheStorageError error);
void DidStoreRequests(CacheStorageCacheHandle handle,
blink::mojom::CacheStorageVerboseErrorPtr error);
void FinishWithError(blink::mojom::BackgroundFetchError error) override;
std::string HistogramName() const override;
BackgroundFetchRegistrationId registration_id_;
std::vector<blink::mojom::FetchAPIRequestPtr> requests_;
blink::mojom::BackgroundFetchOptionsPtr options_;
SkBitmap icon_;
bool start_paused_;
CreateMetadataCallback callback_;
std::unique_ptr<proto::BackgroundFetchMetadata> metadata_proto_;
std::string serialized_icon_;
base::WeakPtrFactory<CreateMetadataTask> weak_factory_{
this}; // Keep as last.
DISALLOW_COPY_AND_ASSIGN(CreateMetadataTask);
};
} // namespace background_fetch
} // namespace content
#endif // CONTENT_BROWSER_BACKGROUND_FETCH_STORAGE_CREATE_METADATA_TASK_H_
|
endlessm/chromium-browser
|
content/browser/background_fetch/storage/create_metadata_task.h
|
C
|
bsd-3-clause
| 3,237
|
# Late and lazy
Another pattern that `late` can help with is lazy initialization for expensive,
non-nullable fields.
## Exercise
Try this:
* Run this code without changing it, and note the output.
* Think: What will change if you make _cache a late field?
* Make _cache a late field, and run the code. Was your prediction correct?
|
flutter/codelabs
|
dartpad_codelabs/src/null_safety_workshop/step_13/instructions.md
|
Markdown
|
bsd-3-clause
| 334
|
<p>
Please check the item description and edit if incorrect:
</p>
<?php echo validation_errors('<div class="alert">', '</div>'); ?>
<?php
$attributes = array('class' => 'form-horizontal');
echo form_open('crossrefdoimetadata', $attributes);
?>
<div class="control-group">
<label for="title" class="control-label">Title:</label>
<div class="controls">
<input type="text" id="title" name="title" size="80"
value="<?php echo set_value('title'); ?><?php if (!empty($_SESSION['crossrefdoi-title'])) { echo $_SESSION['crossrefdoi-title']; } ?>" />
</div>
</div>
<div class="control-group">
<label for="journaltitle" class="control-label">Journal title:</label>
<div class="controls">
<input type="text" id="journaltitle" name="journaltitle" size="60"
value="<?php echo set_value('journaltitle'); ?><?php if (!empty($_SESSION['crossrefdoi-journaltitle'])) { echo $_SESSION['crossrefdoi-journaltitle']; } ?>" />
</div>
</div>
<?php for ($authorpointer = 1; $authorpointer <= $_SESSION['crossrefdoi-authorcount']; $authorpointer++) { ?>
<div class="control-group">
<label for="author1" class="control-label">Author <?php echo $authorpointer; ?>:</label>
<div class="controls">
<input type="text" id="author1" name="author<?php echo $authorpointer; ?>" size="40"
value="<?php echo set_value('author<?php echo $authorpointer; ?>'); ?><?php if (!empty($_SESSION['crossrefdoi-author' . $authorpointer])) { echo $_SESSION['crossrefdoi-author' . $authorpointer]; } ?>" />
</div>
</div>
<?php } ?>
<div class="control-group">
<label for="year" class="control-label">Year:</label>
<div class="controls">
<input type="text" id="year" name="year" size="10"
value="<?php echo set_value('year'); ?><?php if (!empty($_SESSION['crossrefdoi-year'])) { echo $_SESSION['crossrefdoi-year']; } ?>" />
</div>
</div>
<div class="control-group">
<label for="volume" class="control-label">Volume:</label>
<div class="controls">
<input type="text" id="volume" name="volume" size="10"
value="<?php echo set_value('volume'); ?><?php if (!empty($_SESSION['crossrefdoi-volume'])) { echo $_SESSION['crossrefdoi-volume']; } ?>" />
</div>
</div>
<div class="control-group">
<label for="issue" class="control-label">Issue:</label>
<div class="controls">
<input type="text" id="issue" name="issue" size="10"
value="<?php echo set_value('issue'); ?><?php if (!empty($_SESSION['crossrefdoi-issue'])) { echo $_SESSION['crossrefdoi-issue']; } ?>" />
</div>
</div>
<div class="control-group">
<label for="type" class="control-label">Type of item:</label>
<div class="controls">
<?php
echo form_dropdown('type', $this->config->item('easydeposit_metadata_itemtypes'), set_value('type'), 'id="type"');
?>
</div>
</div>
<div class="control-group">
<label for="peerreviewed" class="control-label">Has the item been peer reviewed?:</label>
<div class="controls">
<?php
echo form_dropdown('peerreviewed', $this->config->item('easydeposit_metadata_peerreviewstatus'), set_value('peerreviewed'), 'id="peerreviewed"');
?>
</div>
</div>
<input type="Submit" name="submit" id="submit" class="btn-primary" value="Next >" />
<?php echo form_close(); ?>
|
stuartlewis/EasyDeposit
|
application/views/crossrefdoimetadata.php
|
PHP
|
bsd-3-clause
| 3,678
|
PREFIX=/usr/local/carrydb
$(shell sh build.sh 1>&2)
include build_config.mk
all:
mkdir -p var var_slave
chmod u+x deps/cpy/cpy
chmod u+x tools/carrydb-cli
cd "${LEVELDB_PATH}"; ${MAKE} static_lib #PORTABLE=1
cd src/util; ${MAKE}
cd src/net; ${MAKE}
cd src/client; ${MAKE}
cd src/db; ${MAKE}
cd src; ${MAKE}
cd tools; ${MAKE}
test:
cd src; ${MAKE} test
.PHONY: ios
ios:
cd "${LEVELDB_PATH}"; make clean; CXXFLAGS=-stdlib=libc++ ${MAKE} PLATFORM=IOS
cd "${SNAPPY_PATH}"; make clean; make -f Makefile-ios
mkdir -p ios
mv ${LEVELDB_PATH}/libleveldb-ios.a ${SNAPPY_PATH}/libsnappy-ios.a ios/
cd src/util; make clean; ${MAKE} -f Makefile-ios
cd src/db; make clean; ${MAKE} -f Makefile-ios
install:
mkdir -p ${PREFIX}
mkdir -p ${PREFIX}/_cpy_
mkdir -p ${PREFIX}/deps
mkdir -p ${PREFIX}/var
mkdir -p ${PREFIX}/var_slave
cp -f carrydb-server carrydb.conf carrydb_slave.conf ${PREFIX}
cp -rf api ${PREFIX}
cp -rf \
tools/carrydb-bench \
tools/carrydb-cli tools/carrydb_cli \
tools/carrydb-cli.cpy tools/carrydb-dump \
tools/carrydb-repair \
${PREFIX}
cp -rf deps/cpy ${PREFIX}/deps
chmod 755 ${PREFIX}
chmod -R ugo+rw ${PREFIX}/*
rm -f ${PREFIX}/Makefile
clean:
rm -f *.exe.stackdump
rm -rf api/cpy/_cpy_
rm -f api/python/SSDB.pyc
rm -rf db_test
cd deps/cpy; ${MAKE} clean
cd tools; ${MAKE} clean
cd src/util; ${MAKE} clean
cd src/db; ${MAKE} clean
cd src/net; ${MAKE} clean
cd src; ${MAKE} clean
clean_all: clean
cd "${LEVELDB_PATH}"; ${MAKE} clean
rm -f ${JEMALLOC_PATH}/Makefile
cd "${SNAPPY_PATH}"; ${MAKE} clean
rm -f ${SNAPPY_PATH}/Makefile
|
carryLabs/carrydb
|
Makefile
|
Makefile
|
bsd-3-clause
| 1,603
|
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-07-10 12:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('django_project', '0013_auto_20160710_1124'),
]
operations = [
migrations.AlterField(
model_name='annotation',
name='comment',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='django_project.Comment'),
),
]
|
kunalsharma05/django-project
|
django_project/migrations/0014_auto_20160710_1200.py
|
Python
|
bsd-3-clause
| 558
|
#!/bin/sh
#
# Protocol Buffers - Google's data interchange format
# Copyright 2009 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Author: kenton@google.com (Kenton Varda)
#
# Test protoc's zip output mode.
fail() {
echo "$@" >&2
exit 1
}
TEST_TMPDIR=.
PROTOC=./protoc
echo '
syntax = "proto2";
option java_multiple_files = true;
option java_package = "test.jar";
option java_outer_classname = "Outer";
message Foo {}
message Bar {}
' > $TEST_TMPDIR/testzip.proto
#--python_out=$TEST_TMPDIR/testzip.zip \
$PROTOC \
--cpp_out=$TEST_TMPDIR/testzip.zip --python_out=$TEST_TMPDIR/testzip.zip \
--java_out=$TEST_TMPDIR/testzip.jar -I$TEST_TMPDIR testzip.proto \
|| fail 'protoc failed.'
echo "Testing output to zip..."
if unzip -h > /dev/null; then
unzip -t $TEST_TMPDIR/testzip.zip > $TEST_TMPDIR/testzip.list || fail 'unzip failed.'
grep 'testing: testzip\.pb\.cc *OK$' $TEST_TMPDIR/testzip.list > /dev/null \
|| fail 'testzip.pb.cc not found in output zip.'
grep 'testing: testzip\.pb\.h *OK$' $TEST_TMPDIR/testzip.list > /dev/null \
|| fail 'testzip.pb.h not found in output zip.'
grep 'testing: testzip_pb2\.py *OK$' $TEST_TMPDIR/testzip.list > /dev/null \
|| fail 'testzip_pb2.py not found in output zip.'
grep -i 'manifest' $TEST_TMPDIR/testzip.list > /dev/null \
&& fail 'Zip file contained manifest.'
else
echo "Warning: 'unzip' command not available. Skipping test."
fi
echo "Testing output to jar..."
if jar c $TEST_TMPDIR/testzip.proto > /dev/null; then
jar tf $TEST_TMPDIR/testzip.jar > $TEST_TMPDIR/testzip.list || fail 'jar failed.'
grep '^test/jar/Foo\.java$' $TEST_TMPDIR/testzip.list > /dev/null \
|| fail 'Foo.java not found in output jar.'
grep '^test/jar/Bar\.java$' $TEST_TMPDIR/testzip.list > /dev/null \
|| fail 'Bar.java not found in output jar.'
grep '^test/jar/Outer\.java$' $TEST_TMPDIR/testzip.list > /dev/null \
|| fail 'Outer.java not found in output jar.'
grep '^META-INF/MANIFEST\.MF$' $TEST_TMPDIR/testzip.list > /dev/null \
|| fail 'Manifest not found in output jar.'
else
echo "Warning: 'jar' command not available. Skipping test."
fi
echo PASS
|
openx/python3-protobuf
|
src/google/protobuf/compiler/zip_output_unittest.sh
|
Shell
|
bsd-3-clause
| 3,675
|
<?php
/**
* User: yunsong
* Date: 3/15/16
* Time: 7:39 PM
* Email:awebc@qq.com
*/
namespace api\modules\v1\controllers;
use api\modules\v1\controllers\BaseController;
use yunsong\favorite\models\Collection;
class CollectionController extends BaseController
{
public $modelClass = 'yunsong\favorite\models\Collection';
public function actionFav($status){
if (!$status) {
echo $this->addFav();
}
else{
echo $this->delFav();
}
}
public function addFav(){
// $params = [
// 'obj_type'=>\Yii::$app->request->post('obj_type'),
// 'obj_id'=>\Yii::$app->request->post('obj_id'),
// 'content'=>\Yii::$app->request->post('content'),
//// 'title'=>\Yii::$app->request->post('title'),
//// 'about'=>\Yii::$app->request->post('about'),
// 'collection_id'=>\Yii::$app->request->post('collection_id'),
// 'from_url'=>\Yii::$app->request->post('from_url'),
//// 'thumb'=>\Yii::$app->request->post('thumb'),
// ];
$params = \Yii::$app->request->post();
$result = Collection::AddFav($params);
if ($result) {
$arr = [
'r'=>1,
'label'=>'已收藏',
'status'=>1,
];
}
else
$arr = [
'r'=>0,
];
return json_encode($arr);
}
private function delFav()
{
$params = [
'obj_type'=>\Yii::$app->request->post('obj_type'),
'obj_id'=>\Yii::$app->request->post('obj_id'),
];
$result = Collection::delFav($params['obj_type'],$params['obj_id']);
if ($result) {
$arr = [
'r'=>1,
'label'=>'收藏',
'status'=>0,
];
}
else
$arr = [
'r'=>0,
];
return json_encode($arr);
}
}
|
awebc/web_yi
|
api/modules/v1/controllers/CollectionController.php
|
PHP
|
bsd-3-clause
| 1,986
|
define([
'ace/theme'
], function(aceTheme) {
var themes = codebox.require("core/themes");
var bgDarker = "#1a1d24";
var colorDarker = "#505c66";
var bgDark = "#222830";
var colorDark = "#64737e";
var bgNormal = "#1c1f25";
var colorNormal = "#dfe0e6";
var bgLight = "#2b303b";
var colorLight = "#dadfe6";
themes.add({
id: "mono.industrial",
title: "Mono Industrial",
editor: {
'theme': aceTheme
},
styles: {
// Top menubar
menubar: {
'background': bgDarker,
'color': colorDark,
'border-color': "#111",
button: {
'border-color': bgNormal
}
},
// Statusbar
statusbar: {
'background': bgDarker,
'color': colorDark,
'border-color': "#111",
button: {
'border-color': bgNormal
}
},
// Lateral bar panels
lateralbar: {
'background': bgDark,
commands: {
'background': bgDark,
'color': colorLight
},
body: {
'color': colorDark
}
},
// Body
body: {
'background': bgDark,
'color': colorDark
},
// Tabs
tabs: {
section: {
'border-color': bgDark
},
header: {
'background': bgDark,
'color': colorDark
},
content: {
'background': bgLight
},
tab: {
'&.active': {
'background': bgLight,
'color': colorLight
}
}
},
// Operations
operations: {
operation: {
'background': bgLight,
'color': "#fff",
'border-color': "transparent"
}
},
// Alerts
alerts: {
alert: {
'background': bgLight,
'color': colorLight,
'border-color': "transparent"
}
},
// Palette
palette: {
'background': bgDark,
'border-color': bgDarker,
input: {
'background': bgLight,
'border-color': bgDarker,
'color': colorLight
},
results: {
'background': bgLight,
'border-color': bgDarker,
'color': colorLight,
command: {
'border-color': bgDarker
}
}
}
}
});
});
|
linc01n/codebox-theme
|
ported-theme/cb.theme.mono.industrial/main.js
|
JavaScript
|
bsd-3-clause
| 3,151
|
--
-- tests/config/test_links.lua
-- Test the list of linked objects retrieval function.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local suite = test.declare("config_links")
local config = premake.config
--
-- Setup and teardown
--
local sln, prj
function suite.setup()
_ACTION = "test"
_OS = "windows"
sln, prj = test.createsolution()
end
local function prepare(kind, part, linkage)
cfg = test.getconfig(prj, "Debug")
return config.getlinks(cfg, kind, part, linkage)
end
--
-- If no links are present, should return an empty table.
--
function suite.emptyResult_onNoLinks()
local r = prepare("all", "object")
test.isequal(0, #r)
end
--
-- System libraries which include path information are made project relative.
--
function suite.pathMadeRelative_onSystemLibWithPath()
location "build"
links { "../libs/z" }
local r = prepare("all", "fullpath")
test.isequal({ "../../libs/z.lib" }, r)
end
--
-- On Windows, system libraries get the ".lib" file extensions.
--
function suite.libAdded_onWindowsSystemLibs()
links { "user32" }
local r = prepare("all", "fullpath")
test.isequal({ "user32.lib" }, r)
end
--
-- Handle the case where the library extension has been explicitly
-- included in the link statement.
--
function suite.skipsExtension_onExplicitExtension()
system "windows"
links { "user32.lib" }
local r = prepare("all", "fullpath")
test.isequal({ "user32.lib" }, r)
end
--
-- Check handling of shell variables in library paths.
--
function suite.variableMaintained_onLeadingVariable()
system "windows"
location "build"
links { "$(SN_PS3_PATH)/sdk/lib/PS3TMAPI" }
local r = prepare("all", "fullpath")
test.isequal({ "$(SN_PS3_PATH)/sdk/lib/PS3TMAPI.lib" }, r)
end
function suite.variableMaintained_onQuotedVariable()
system "windows"
location "build"
links { '"$(SN_PS3_PATH)/sdk/lib/PS3TMAPI.lib"' }
local r = prepare("all", "fullpath")
test.isequal({ '"$(SN_PS3_PATH)/sdk/lib/PS3TMAPI.lib"' }, r)
end
--
-- If fetching directories, the libdirs should be included in the result.
--
function suite.includesLibDirs_onDirectories()
libdirs { "../libs" }
local r = prepare("all", "directory")
test.isequal({ "../libs" }, r)
end
--
-- Managed C++ projects should ignore links to managed assemblies, which
-- are designated with an explicit ".dll" extension.
--
function suite.skipsAssemblies_onManagedCpp()
system "windows"
clr "On"
links { "user32", "System.dll" }
local r = prepare("all", "fullpath")
test.isequal({ "user32.lib" }, r)
end
--
-- When explicitly requesting managed links, any unmanaged items in the
-- list should be ignored.
--
function suite.skipsUnmanagedLibs_onManagedLinkage()
system "windows"
clr "On"
links { "user32", "System.dll" }
local r = prepare("all", "fullpath", "managed")
test.isequal({ "System.dll" }, r)
end
--
-- Managed projects can link to other managed projects, and unmanaged
-- projects can link to unmanaged projects.
--
function suite.canLink_CppAndCpp()
links { "MyProject2" }
project "MyProject2"
kind "StaticLib"
language "C++"
local r = prepare("all", "fullpath")
test.isequal({ "MyProject2.lib" }, r)
end
function suite.canLink_CsAndCs()
language "C#"
links { "MyProject2" }
project "MyProject2"
kind "SharedLib"
language "C#"
local r = prepare("all", "fullpath")
test.isequal({ "MyProject2.dll" }, r)
end
function suite.canLink_ManagedCppAndManagedCpp()
clr "On"
links { "MyProject2" }
project "MyProject2"
kind "StaticLib"
language "C++"
clr "On"
local r = prepare("all", "fullpath")
test.isequal({ "MyProject2.lib" }, r)
end
function suite.canLink_ManagedCppAndCs()
clr "On"
links { "MyProject2" }
project "MyProject2"
kind "SharedLib"
language "C#"
local r = prepare("all", "fullpath")
test.isequal({ "MyProject2.dll" }, r)
end
--
-- Managed and unmanaged projects can not link to each other.
--
function suite.ignoreLink_CppAndCs()
links { "MyProject2" }
project "MyProject2"
kind "SharedLib"
language "C#"
local r = prepare("all", "fullpath")
test.isequal({}, r)
end
|
annulen/premake
|
tests/config/test_links.lua
|
Lua
|
bsd-3-clause
| 4,186
|
// Code generated by protoc-gen-go from "header.proto"
// DO NOT EDIT!
package protorpc
import proto "goprotobuf.googlecode.com/hg/proto"
import "os"
// Reference proto & os imports to suppress error if it's not otherwise used.
var _ = proto.GetString
var _ os.Error
type Header struct {
Seq *uint64 "PB(varint,1,req,name=seq)"
ServiceMethod *string "PB(bytes,2,req,name=service_method)"
Error *string "PB(bytes,3,opt,name=error)"
XXX_unrecognized []byte
}
func (this *Header) Reset() {
*this = Header{}
}
func init() {
}
|
eclark/protorpc
|
header.dist.go
|
GO
|
bsd-3-clause
| 532
|
/*
* This file is part of the optimized implementation of the Picnic signature scheme.
* See the accompanying documentation for complete details.
*
* The code is provided under the MIT license, see LICENSE for
* more details.
* SPDX-License-Identifier: MIT
*/
#ifndef IO_H
#define IO_H
#include <stdint.h>
#include <stdio.h>
#include "mzd_additional.h"
#define PICNIC_EXPORT
void mzd_to_char_array(uint8_t* dst, const mzd_local_t* data, unsigned numbytes);
void mzd_from_char_array(mzd_local_t* result, const uint8_t* data, unsigned len);
void print_hex(FILE* out, const uint8_t* data, size_t len) PICNIC_EXPORT;
#endif
|
GaloisInc/hacrypto
|
src/C/libpqcrypto/crypto_sign/picnicl1fs/avx2/io.h
|
C
|
bsd-3-clause
| 638
|
{%extends "base.html"%}
{% load crispy_forms_tags %}
{%block styles%}
<!-- Data Tables -->
<link href="{{STATIC_URL}}inspinia/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
<link href="{{STATIC_URL}}inspinia/css/plugins/dataTables/dataTables.responsive.css" rel="stylesheet">
<link href="{{STATIC_URL}}inspinia/css/plugins/dataTables/dataTables.tableTools.min.css" rel="stylesheet">
<link href="{{STATIC_URL}}inspinia/css/plugins/touchspin/jquery.bootstrap-touchspin.min.css" rel="stylesheet">
<style>
body.DTTT_Print {
background: #fff;
}
.DTTT_Print #page-wrapper {
margin: 0;
background:#fff;
}
button.DTTT_button, div.DTTT_button, a.DTTT_button {
border: 1px solid #e7eaec;
background: #fff;
color: #676a6c;
box-shadow: none;
padding: 6px 8px;
}
button.DTTT_button:hover, div.DTTT_button:hover, a.DTTT_button:hover {
border: 1px solid #d2d2d2;
background: #fff;
color: #676a6c;
box-shadow: none;
padding: 6px 8px;
}
.dataTables_filter label {
margin-right: 5px;
}
</style>
{%endblock%}
{%block titulo%}
Inventario
{%endblock%}
{%block content%}
<!--
desktop x >= 1024px
tablet-l (landscape) 768 <= x < 1024
tablet-p (portrait) 480 <= x < 768
mobile-l (landscape) 320 <= x < 480
mobile-p (portrait) x < 320
-->
<div class="row">
<div class="col-lg-12">
<div class="ibox float-e-margins">
<div class="ibox-content">
<div class="" style="margin-bottom: 10px;">
{%if request.user.perfil == 'Administrador'%}
<a class="btn btn-success" href="{%url 'agregar_inventario'%}"><i class="fa fa-plus"></i> Agregar producto </a>
{%endif%}
</div>
<table class="table table-striped table-bordered table-hover dataTables-example" >
<thead>
<tr>
<th>UID</th>
<th>Modelo</th>
<th>Item</th>
<th>Cantidad</th>
<th>Area</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
{%for object in objects%}
<tr class="gradeX">
<td>
<a href="#" style="margin-right: 13px; color:inherit">{{object.uid}}</a>
</td>
<td>
<a href="#" style="margin-right: 13px; color:inherit">{{object.modelo}}</a>
</td>
<td>
<a href="#" style="margin-right: 13px; color:inherit">{{object.item}}</a>
</td>
<td>
<a href="#" style="margin-right: 13px; color:inherit">{{object.cantidad}}</a>
</td>
<td>
<a href="#" style="margin-right: 13px; color:inherit">{{object.area}}</a>
</td>
<td>
<div class="btn-group pull-right">
<button data-toggle="dropdown" class="btn btn-default btn-xs dropdown-toggle">Mas
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="{%url 'historial_inventario' object.id%}">Ver historial</a></li>
{%if request.user.perfil == 'Administrador'%}
<li><a href="{%url 'editar_inventario' object.id%}">Editar</a></li>
<li class="divider"></li>
<li><a href="{%url 'eliminar_inventario' object.id%}">Eliminar</a></li>
{%endif%}
</ul>
</div>
<button type="button" class="btn btn-warning btn-xs pull-right modal_inventario" producto_name="{{object.uid}}" producto="{{object.id}}" style="margin-right:5px">
<i class="fa fa-repeat"></i> Actualizar
</button>
</td>
</tr>
{%endfor%}
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal inmodal fade" id="modal_inventario" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<form method="post" enctype="multipart/form-data">{% csrf_token %}
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">Actualizar inventario</h4>
<p id="producto_nombre"></p>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6 col-md-offset-3" >
<input class="textinput textInput form-control" id="id_producto" maxlength="250" name="id_producto" type="text" style="display:none"/>
<input class="touchspin2" type="text" value="0" name="quantity">
<hr />
</div>
</div>
<div class="row">
<div class="col-xs-6">
<button type="submit" name="entrada" class="btn btn-success btn-lg btn-block actualizar_inventario" producto="">
<i class="fa fa-plus"></i> Entrada
</button>
</div>
<div class="col-xs-6">
<button type="submit" name="salida" class="btn btn-warning btn-lg btn-block actualizar_inventario" producto="">
<i class="fa fa-minus"></i> Salida
</button>
</div>
</div>
<div class="row">
<div class="col-md-6 col-md-offset-3" >
<hr />
<div id="div_id_observaciones" class="form-group">
<div class="controls ">
<textarea class="textarea form-control" cols="40" id="id_observaciones" name="observaciones" rows="4"></textarea>
<p id="hint_id_observaciones" class="help-block">Puedes ingresar observaciones de la operacón</p>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-white" data-dismiss="modal">Cerrar</button>
</div>
</div>
</form>
</div>
</div>
{%endblock%}
{%block js%}
<!-- Data Tables -->
<script src="{{STATIC_URL}}inspinia/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="{{STATIC_URL}}inspinia/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="{{STATIC_URL}}inspinia/js/plugins/dataTables/dataTables.responsive.js"></script>
<script src="{{STATIC_URL}}inspinia/js/plugins/dataTables/dataTables.tableTools.min.js"></script>
<script src="{{STATIC_URL}}inspinia/js/plugins/touchspin/jquery.bootstrap-touchspin.min.js"></script>
{%endblock%}
{%block scripts%}
<!-- Page-Level Scripts -->
<script>
$(document).ready(function() {
$( ".modal_inventario" ).click(function() {
$(".actualizar_inventario").attr('producto', $(this).attr('producto'))
$( "#modal_inventario" ).modal('show');
$('#producto_nombre').empty()
$('#id_producto').val($(this).attr('producto'))
$('#producto_nombre').append($(this).attr('producto_name'))
});
$(".touchspin2").TouchSpin({
min: 1,
max: 100,
step: 1,
boostat: 5,
maxboostedstep: 10,
postfix: 'pzs',
buttondown_class: 'btn btn-white',
buttonup_class: 'btn btn-white'
});
$('.dataTables-example').dataTable({
responsive: true,
"dom": 'T<"clear">lfrtip',
"tableTools": {
"sSwfPath": "http://cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls_pdf.swf"
}
});
$( ".eliminar" ).click(function() {
id = $( this ).attr( 'ide' )
nombre = $( this ).attr( 'nombre' )
$('#confirmar-eliminar').attr( 'ide', id);
$('#nombre').empty()
$('#nombre').append( nombre )
$('#modal-eliminar').modal('show')
});
$( "#confirmar-eliminar" ).click(function() {
id = $( this ).attr( 'ide' )
window.location.replace("/eliminar-usuario/" + id + "/");
});
});
</script>
{%endblock%}#
|
flipjack/tecnoservicio
|
tecnoservicio/templates/ordenes/inventario.html
|
HTML
|
bsd-3-clause
| 9,057
|
echo "Setup postgres"
sudo -u postgres psql <<< "
CREATE DATABASE blogdb;
CREATE USER blog1 WITH PASSWORD 'blogpassword';
GRANT ALL PRIVILEGES ON DATABASE blogdb TO blog1;
"
|
giovannicode/giovanniblog
|
provisioning/roles/db/files/postgres/setup.sh
|
Shell
|
bsd-3-clause
| 174
|
/*
* $Id$
*
* Copyright 2006, The jCoderZ.org Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
* * Neither the name of the jCoderZ.org Project 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 REGENTS 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 REGENTS AND 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.
*/
package org.jcoderz.commons.util;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.Timestamp;
import java.sql.Types;
import java.util.Arrays;
import junit.framework.TestCase;
/**
* Tests the DbUtil class.
* @author Albrecht Messner
*/
public class DbUtilTest
extends TestCase
{
private static final int TEST_BATCH_SIZE = 10;
private static final int TEST_LOOPS = 50;
private static final String WRONG_TYPE_CODE = "Wrong type code";
private static final String WRONG_METHOD_CALLED
= "Wrong method called on prepared statement";
/**
* Tests whether a java.sql.Statement, Connection or ResultSet is
* closed correctly.
* @throws Exception if the testcase fails
*/
public void testCloseObject ()
throws Exception
{
final Class[] testInterfaces = {
Statement.class,
Connection.class,
ResultSet.class
};
for (int i = 0; i < testInterfaces.length; i++)
{
final TestInvocationHandler invHandler = new TestInvocationHandler();
final Object obj = Proxy.newProxyInstance(
Statement.class.getClassLoader(),
new Class[] {testInterfaces[i]},
invHandler);
if (obj instanceof Statement)
{
DbUtil.close((Statement) obj);
}
else if (obj instanceof Connection)
{
DbUtil.close((Connection) obj);
}
else
{
DbUtil.close((ResultSet) obj);
}
assertTrue("Close should have been called on the Statement object",
invHandler.isCloseCalled());
}
}
/**
* Tests the setters for various data types on a prepared statement.
* @throws Exception if the testcase fails
*/
public void testParameterSetters ()
throws Exception
{
final TestInvocationHandler invHandler = new TestInvocationHandler();
final PreparedStatement pstmt
= (PreparedStatement) Proxy.newProxyInstance(
PreparedStatement.class.getClassLoader(),
new Class[] {PreparedStatement.class},
invHandler);
final String s1 = "Hello World";
DbUtil.setCharOrNull(pstmt, 0, s1);
assertEquals(WRONG_METHOD_CALLED,
"setString", invHandler.getLastMethod());
DbUtil.setVarcharOrNull(pstmt, 0, s1);
assertEquals(WRONG_METHOD_CALLED,
"setString", invHandler.getLastMethod());
DbUtil.setClobOrNull(pstmt, 0, s1);
assertEquals(WRONG_METHOD_CALLED,
"setCharacterStream", invHandler.getLastMethod());
final Integer i = new Integer(0);
DbUtil.setIntegerOrNull(pstmt, 0, i);
assertEquals(WRONG_METHOD_CALLED,
"setInt", invHandler.getLastMethod());
final Long l = new Long(0);
DbUtil.setLongOrNull(pstmt, 0, l);
assertEquals(WRONG_METHOD_CALLED,
"setLong", invHandler.getLastMethod());
final Timestamp tstamp = new Timestamp(0);
DbUtil.setTimestampOrNull(pstmt, 0, tstamp);
assertEquals(WRONG_METHOD_CALLED,
"setTimestamp", invHandler.getLastMethod());
}
/**
* Tests the parameter setters with null parameters.
* @throws Exception if the testcase fails
*/
public void testSetNullParameters ()
throws Exception
{
final TestInvocationHandler invHandler = new TestInvocationHandler();
final PreparedStatement pstmt
= (PreparedStatement) Proxy.newProxyInstance(
PreparedStatement.class.getClassLoader(),
new Class[] {PreparedStatement.class},
invHandler);
DbUtil.setCharOrNull(pstmt, 0, null);
assertEquals(WRONG_TYPE_CODE, invHandler.getTypeCode(), Types.CHAR);
DbUtil.setClobOrNull(pstmt, 0, null);
assertEquals(WRONG_TYPE_CODE, invHandler.getTypeCode(), Types.CLOB);
DbUtil.setIntegerOrNull(pstmt, 0, null);
assertEquals(WRONG_TYPE_CODE, invHandler.getTypeCode(), Types.INTEGER);
DbUtil.setLongOrNull(pstmt, 0, null);
assertEquals(WRONG_TYPE_CODE, invHandler.getTypeCode(), Types.INTEGER);
DbUtil.setTimestampOrNull(pstmt, 0, null);
assertEquals(WRONG_TYPE_CODE,
invHandler.getTypeCode(), Types.TIMESTAMP);
DbUtil.setVarcharOrNull(pstmt, 0, null);
assertEquals(WRONG_TYPE_CODE, invHandler.getTypeCode(), Types.VARCHAR);
}
/**
* Tests closing of a null java.sql.Statement, Connection and ResultSet.
*/
public void testCloseNullObjects ()
{
try
{
final Statement stmt = null;
DbUtil.close(stmt);
final Connection con = null;
DbUtil.close(con);
final ResultSet rset = null;
DbUtil.close(rset);
}
catch (Exception x)
{
fail("No exception expected when closing a null object");
}
}
public void xtestLimitedBatchSizePreparedStatement ()
throws Exception
{
final PreparedStatementHandler pstmtHandler
= new PreparedStatementHandler();
final PreparedStatement pstmt
= (PreparedStatement) Proxy.newProxyInstance(
PreparedStatement.class.getClassLoader(),
new Class[] {PreparedStatement.class},
pstmtHandler);
final PreparedStatement wrappedPstmt
= DbUtil.getLimitedBatchSizePreparedStatement(
pstmt, TEST_BATCH_SIZE);
int batchCount = 0;
for (int i = 0; i < TEST_LOOPS; i++)
{
wrappedPstmt.addBatch();
batchCount++;
if (batchCount == TEST_BATCH_SIZE + 1)
{
assertTrue("Batch update not called",
pstmtHandler.isExecuteBatchCalled());
assertEquals("Wrong batch count",
pstmtHandler.getLastUpdatedCount(), TEST_BATCH_SIZE);
batchCount = 1;
}
}
final int[] updateCount = wrappedPstmt.executeBatch();
assertEquals("Wrong update counts.", TEST_LOOPS, updateCount.length);
for (int i = 0; i < updateCount.length; i++)
{
assertEquals(
"Wrong update count", Statement.SUCCESS_NO_INFO, updateCount[i]);
}
}
private static final class TestInvocationHandler
implements InvocationHandler
{
private boolean mCloseCalled = false;
private String mLastMethod;
private int mTypeCode = 0;
public Object invoke (Object proxy, Method method, Object[] args)
throws Throwable
{
if (method.getName().equals("close"))
{
mCloseCalled = true;
}
else if (method.getName().equals("setNull"))
{
final Integer arg2 = (Integer) args[1];
mTypeCode = arg2.intValue();
}
mLastMethod = method.getName();
return null;
}
public boolean isCloseCalled ()
{
return mCloseCalled;
}
public String getLastMethod ()
{
return mLastMethod;
}
public int getTypeCode ()
{
return mTypeCode;
}
}
private static final class PreparedStatementHandler
implements InvocationHandler
{
private int mBatchCount = 0;
private boolean mExecuteBatchCalled = false;
private boolean mClearBatchCalled = true;
private int mLastUpdated = 0;
/** {@inheritDoc} */
public Object invoke (Object proxy, Method method, Object[] args)
throws Throwable
{
final Object result;
if (method.getName().equals("addBatch"))
{
mBatchCount++;
result = null;
}
else if (method.getName().equals("executeBatch"))
{
mExecuteBatchCalled = true;
mLastUpdated = mBatchCount;
mBatchCount = 0;
result = new int[mLastUpdated];
Arrays.fill((int[]) result, Statement.SUCCESS_NO_INFO);
}
else if (method.getName().equals("clearBatch"))
{
mClearBatchCalled = true;
result = null;
}
else
{
throw new UnsupportedOperationException(method.getName());
}
return result;
}
/**
* @return Returns the executeBatchCalled.
*/
public boolean isExecuteBatchCalled ()
{
return mExecuteBatchCalled;
}
/**
*
*/
public void resetExecuteBatchCalled ()
{
mExecuteBatchCalled = false;
}
/**
* @return Returns the batchCount.
*/
public int getLastUpdatedCount ()
{
return mLastUpdated;
}
/**
* @return Returns the clearBatchCalled.
*/
public boolean isClearBatchCalled ()
{
return mClearBatchCalled;
}
/**
*
*/
public void resetClearBatchCalled ()
{
mClearBatchCalled = false;
}
}
}
|
jCoderZ/fawkez-old
|
test/java/org/jcoderz/commons/util/DbUtilTest.java
|
Java
|
bsd-3-clause
| 10,856
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.